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
+11 -41
View File
@@ -10,7 +10,7 @@
<header>
<a id="home-link" href="/">rp-test</a>
<span id="who"></span>
<div id="window-info"></div>
<div id="session-info"></div>
<div id="context-meter" title="context usage of the last call">
<div id="context-bar"><div id="context-fill"></div></div>
<span id="context-label"></span>
@@ -49,7 +49,7 @@
<section id="view-new" hidden>
<h1>new run</h1>
<div id="package-pick">
<p class="hint">a run is a copy of the package — everything stays editable until the window opens</p>
<p class="hint">a run is a copy of the package — everything stays editable until the session opens</p>
<div id="package-list"></div>
</div>
<form id="create-form" hidden>
@@ -78,15 +78,7 @@
<span id="setup-vars-state"></span>
</div>
</div>
<div id="setup-models">
<h2>models — per-run, over the deployment defaults</h2>
<label class="field">player <select id="model-player"></select></label>
<label class="field">housekeeper <select id="model-housekeeper"></select></label>
<div class="form-actions">
<button id="models-save">save models</button>
<span id="models-state"></span>
</div>
</div>
<div id="setup-models"></div>
<div id="setup-savepkg">
<input id="savepkg-name" placeholder="new package display name" autocomplete="off">
<button id="savepkg-btn">save as package</button>
@@ -115,32 +107,16 @@
<aside id="play-aside">
<section id="status-pane">
<div class="pane-head">
<h2>her paper</h2>
<button id="paper-edit">edit</button>
</div>
<div id="paper"></div>
<div id="paper-editor" hidden>
<textarea id="paper-edit-area" rows="5" placeholder="one description per line — empty clears the paper"></textarea>
<div class="pane-editor-actions">
<button id="paper-save">save</button>
<button id="paper-cancel">cancel</button>
</div>
<h2>her status</h2>
</div>
<div id="status"></div>
<div id="conflict" hidden></div>
</section>
<section id="agenda-pane">
<div class="pane-head">
<h2>her agenda</h2>
<button id="agenda-edit">edit</button>
</div>
<div id="agenda"></div>
<div id="agenda-editor" hidden>
<textarea id="agenda-edit-area" rows="4" placeholder="one item per line, top first — empty clears the agenda"></textarea>
<div class="pane-editor-actions">
<button id="agenda-save">save</button>
<button id="agenda-cancel">cancel</button>
</div>
</div>
</section>
<section id="notes-pane">
<div class="pane-head">
@@ -152,11 +128,11 @@
<section id="housekeeping">
<h2>housekeeping</h2>
<div id="hk-state"></div>
<button id="hk-run" hidden>close window &amp; housekeep</button>
<label id="hk-override-wrap"><input type="checkbox" id="hk-override"> override: skip the unhousekept check</label>
<button id="window-open" hidden>open window</button>
<button id="hk-replay" hidden title="run the housekeeper over the session log — nothing applied">dry-run the wrap</button>
<details id="hk-log" hidden><summary>window log</summary><pre id="hk-log-content"></pre></details>
<button id="hk-run" hidden>close session &amp; housekeep</button>
<label id="hk-override-row"><input type="checkbox" id="hk-override"> override: skip the unhousekept check</label>
<button id="session-open" hidden>open session</button>
<button id="hk-replay" hidden title="run the housekeeper over the session log — nothing applied">dry-run housekeeping</button>
<details id="hk-log" hidden><summary>session log</summary><pre id="hk-log-content"></pre></details>
<details id="hk-replay-log" hidden><summary>replay manifest</summary><pre id="hk-replay-content"></pre></details>
</section>
<section id="fork-pane">
@@ -164,13 +140,7 @@
<p class="hint">a copy of this run — yours to continue</p>
<button id="fork-btn">fork this run</button>
</section>
<section id="models-pane" hidden>
<h2>models</h2>
<label class="field">player <select id="pm-player"></select></label>
<label class="field">housekeeper <select id="pm-housekeeper"></select></label>
<button id="pm-save">save models</button>
<span id="pm-state"></span>
</section>
<section id="models-pane" hidden></section>
</aside>
<footer>