Luxe 0.1.3: your sessions on your phone, joinable sessions, and nested AGENTS.md
- luxe remote puts the sessions on your computer in reach of your own phone or tablet over Tailscale: write, steer, answer prompts, send photos, browse files, diffs and GitHub, with a paired device and your own Tailscale login. - luxe join lets another program on the same machine join a running session over the RPC protocol. - An AGENTS.md in a subfolder reaches the model the first time it works there. - Long sessions stay fast: no stall before each model call, lighter memory, cheaper drawing. - A session is open in one Luxe at a time, web_search shares results across its phrasings, and a grep glob starting with ! excludes. The CHANGELOG has the full list.
This commit is contained in:
18
crates/luxe-remote/app-tests/machine.test.mjs
Normal file
18
crates/luxe-remote/app-tests/machine.test.mjs
Normal file
@@ -0,0 +1,18 @@
|
||||
// @ts-check
|
||||
// Which computer the app reaches, as the bridge names the page for it.
|
||||
import assert from "node:assert/strict";
|
||||
import { test } from "node:test";
|
||||
import { machineName } from "../app/sessions.js";
|
||||
|
||||
/** A page whose `luxe-machine` meta says `name`, or that has none. */
|
||||
const page = (/** @type {string | null} */ name) => ({
|
||||
querySelector: (/** @type {string} */ selector) =>
|
||||
selector === 'meta[name="luxe-machine"]' && name !== null ? { getAttribute: () => name } : null,
|
||||
});
|
||||
|
||||
// The break this catches: the session list of two computers' apps looking the same because the
|
||||
// meta goes unread, or a page without one (Tailscale couldn't say) showing a stray label
|
||||
test("the app names the computer its page is named for, and nothing without a name", () => {
|
||||
assert.equal(machineName(/** @type {any} */ (page("desk"))), "desk");
|
||||
assert.equal(machineName(/** @type {any} */ (page(null))), "");
|
||||
});
|
||||
Reference in New Issue
Block a user