- 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.
19 lines
917 B
JavaScript
19 lines
917 B
JavaScript
// @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))), "");
|
|
});
|