variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout

This commit is contained in:
2026-11-15 14:35:00 +00:00
parent c51d31078e
commit fa3f23b474
51 changed files with 3477 additions and 1719 deletions
+5 -4
View File
@@ -1,8 +1,8 @@
// web/router.mjs — path routing and the view lifecycle.
// web/router.mjs -- path routing and the view lifecycle.
//
// Views register { el, enter, leave? } at boot (app.mjs). render()
// routes the path, then show() runs the previous view's leave and
// the next view's enter — each view owns its own teardown, so the
// the next view's enter -- each view owns its own teardown, so the
// router never has to know a pane's internals. Stale async work is
// dropped by the seq guard: a view captures seq at enter and checks
// it after every await.
@@ -32,6 +32,7 @@ export async function render() {
if (p === '/') name = 'home';
else if (p === '/new') name = 'new';
else if ((m = p.match(/^\/runs\/([a-z0-9-]+)\/setup$/))) { name = 'setup'; arg = m[1]; }
else if ((m = p.match(/^\/runs\/([a-z0-9-]+)\/story$/))) { name = 'story'; arg = m[1]; }
else if ((m = p.match(/^\/runs\/([a-z0-9-]+)$/))) { name = 'play'; arg = m[1]; }
else return navigate('/');
if (!state.me) name = 'claim'; // signed out: every path leads to the claim
@@ -51,9 +52,9 @@ async function show(name, arg, seq) {
}
// a run that vanished under us (deleted, 404): leave loudly for home.
// render() clears the banner first — set it after the navigate.
// render() clears the banner first -- set it after the navigate.
export function runGone(id, from) {
navigate('/');
banner(`run ${id} is gone — deleted?`);
banner(`run ${id} is gone -- deleted?`);
logEvent('nav', `left ${from} for home: run gone (404)`);
}