spa modules and terminology: app.mjs split into flat es modules (router lifecycle, shared widgets, views own their state), mock smoke in test/; DICTIONARY.md rules the terms, four renames swept clean through the machinery - paper->status (run summary command is report now), window->session, wrap->housekeeping, context window->contwin; no dual-accepts by ruling, old data migrates once in the clerk (restore self-heals old dumps)

This commit is contained in:
2026-11-14 23:48:27 +00:00
parent 89a2c161b3
commit c51d31078e
36 changed files with 2643 additions and 1779 deletions
+14
View File
@@ -0,0 +1,14 @@
// web/state.mjs — the shared runtime state.
//
// Deliberately small: auth (me), the render sequence (seq — the
// async race guard; a view captures it at enter and checks it after
// every await), and the currently addressed run (runId — setup and
// play both write here; saves address it). Everything else is
// module-local to the view or widget that owns it.
export const state = {
view: null, // the active view name ('claim' | 'home' | ...)
seq: 0,
me: null, // the signed-in user ({ id, name, superuser }) or null
runId: null,
};