Files
luxe/crates/luxe-remote/app/app.js
Evan Whittaker d2129a886f 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.
2026-10-20 02:40:13 -05:00

21 lines
761 B
JavaScript

// @ts-check
// The screens, picked by the address's hash so the back gesture and a home-screen reload
// land where you were.
import { signal } from "@preact/signals";
import { NewSession } from "./folders.js";
import { html } from "./html.js";
import { SessionList } from "./sessions.js";
import { SessionView } from "./session.js";
const route = signal(location.hash);
addEventListener("hashchange", () => (route.value = location.hash));
export function App() {
if (route.value === "#/new") return html`<${NewSession} />`;
const match = /^#\/session\/(.+)$/.exec(route.value);
if (!match) return html`<${SessionList} />`;
const sessionId = decodeURIComponent(match[1]);
return html`<${SessionView} key=${sessionId} sessionId=${sessionId} />`;
}