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
|
|
|
// @ts-check
|
|
|
|
|
// The logotype, drawn from the file `scripts/site-assets.sh` derives from the terminal's art and
|
|
|
|
|
// lit by the terminal's slow drift. Drawn inline rather than as an image, because a theme's colors
|
|
|
|
|
// can't reach inside an <img>.
|
|
|
|
|
|
|
|
|
|
import { signal } from "@preact/signals";
|
|
|
|
|
import { html } from "./html.js";
|
|
|
|
|
|
|
|
|
|
/** @typedef {{ viewBox: string, depth: string, paths: string[] }} Drawing */
|
|
|
|
|
|
|
|
|
|
/** @type {import("@preact/signals").Signal<Drawing | null>} */
|
|
|
|
|
const drawing = signal(null);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* What the app needs from the generated file; null when any of it is missing, so the header falls
|
|
|
|
|
* back to the name. @param {string} svg @returns {Drawing | null}
|
|
|
|
|
*/
|
|
|
|
|
export function readDrawing(svg) {
|
|
|
|
|
const viewBox = /viewBox="([^"]+)"/.exec(svg)?.[1];
|
|
|
|
|
const depth = /data-drift-depth="([^"]+)"/.exec(svg)?.[1];
|
|
|
|
|
const paths = [...svg.matchAll(/<path[^>]*\sd="([^"]+)"/g)].map((match) => match[1]);
|
|
|
|
|
if (!viewBox || !depth || !paths.length) return null;
|
|
|
|
|
return { viewBox, depth, paths };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Where letter `index` of `count` starts in the drift, as a negative share of one swing. Half a
|
|
|
|
|
* swing is spread across the mark, the terminal's `DRIFT_SPREAD`, so one wave runs from the first
|
|
|
|
|
* letter to the last and never folds back. @param {number} index @param {number} count
|
|
|
|
|
*/
|
|
|
|
|
export function driftPhase(index, count) {
|
|
|
|
|
return -1 + (index / Math.max(count - 1, 1)) * 0.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Reads the drawing, once per page. @param {typeof fetch} get */
|
|
|
|
|
export async function loadWordmark(get = fetch) {
|
|
|
|
|
if (drawing.value) return;
|
|
|
|
|
const response = await get("/app/generated/wordmark.svg");
|
|
|
|
|
if (!response.ok) throw new Error(`the wordmark answered ${response.status}`);
|
|
|
|
|
drawing.value = readDrawing(await response.text());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function Wordmark() {
|
|
|
|
|
const art = drawing.value;
|
2026-10-20 13:51:34 -05:00
|
|
|
if (!art) return html`<span class="title">luxe</span>`;
|
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
|
|
|
// a custom property set through the DOM, which the page's style-src allows
|
2026-10-20 13:51:34 -05:00
|
|
|
return html`<svg class="wordmark" viewBox=${art.viewBox} role="img" aria-label="luxe"
|
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
|
|
|
style=${{ "--drift-depth": art.depth }}>
|
|
|
|
|
${art.paths.map((d, index) => html`<path d=${d} style=${{ "--phase": driftPhase(index, art.paths.length) }} />`)}
|
|
|
|
|
</svg>`;
|
|
|
|
|
}
|