- 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.
21 lines
832 B
JavaScript
21 lines
832 B
JavaScript
// `node --import ./register.mjs --test`: resolves the app's bare imports through index.html's
|
|
// import map, as the browser does, so the tests run the vendored files the phone runs rather than
|
|
// whatever npm would find.
|
|
|
|
import { readFileSync } from "node:fs";
|
|
import { registerHooks } from "node:module";
|
|
|
|
const app = new URL("../app/", import.meta.url);
|
|
const page = readFileSync(new URL("index.html", app), "utf8");
|
|
const block = /<script type="importmap">([\s\S]*?)<\/script>/.exec(page);
|
|
if (!block) throw new Error("index.html has no import map");
|
|
const imports = JSON.parse(block[1]).imports;
|
|
|
|
registerHooks({
|
|
resolve(specifier, context, next) {
|
|
const mapped = imports[specifier];
|
|
if (!mapped) return next(specifier, context);
|
|
return next(new URL(mapped.replace(/^\/app\//, ""), app).href, context);
|
|
},
|
|
});
|