LayerFS's trajectory page is served by a loopback service the host starts once a store exists (no write into the install), keeps its view in location.hash across its 5 s reload, reports every skipped secret-shaped file in sorted order (#477), and drops the unloaded sample. By @Mola-maker. Run at dfa99f7e merged onto current main: - mote (macOS, Bun 1.4.2, temp HOME): bun test in packages/layerfs, 64 pass 0 fail, 2 of 2; bun scripts/check.mjs layerfs ok; the temp HOME held nothing from layerfs afterwards. - WSL2 Ubuntu 24.04 (temp HOME): 64 pass 0 fail, 2 of 2 (#477's item 3 was red here on f3633eaf8). - Broken by hand: dropping the `location.hash =` assignment in page/app.js turns the hash test red. Earlier rounds' breaks (Origin/Host checks, < escape, start gates, nosniff, sort, restore/settle/round, reload guard) each went red, see the 05:18 and 05:45 reviews. - Earlier round: the page in a magpie-shaped sandboxed frame with pagePolicy CSP, Chromium and WebKit. - PR checks: test and on-npm pass. Not tried: a real magpie window.
74 lines
3.1 KiB
HTML
74 lines
3.1 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>LayerFS trajectory</title>
|
||
<!-- layerfs:style -->
|
||
</head>
|
||
<body>
|
||
<header>
|
||
<div class="hist">
|
||
<h1 id="histLine">HISTORY</h1>
|
||
<p class="hist-meta" id="histMeta"></p>
|
||
</div>
|
||
<div class="menu" id="projectMenu" hidden>
|
||
<button type="button" id="projBtn" aria-haspopup="listbox" aria-expanded="false"></button>
|
||
<div class="menu-list" id="projList" role="listbox" aria-label="project" hidden></div>
|
||
</div>
|
||
<p class="stamp" id="stamp"></p>
|
||
</header>
|
||
|
||
<section class="stats" id="stats">
|
||
<div class="tiles">
|
||
<div class="tile"><span class="k" data-t="checkpointsK">Checkpoints</span><span class="v" id="nCommits">0 / 0</span></div>
|
||
<div class="tile"><span class="k" data-t="branchesK">Branches</span><span class="v" id="tBranches">0</span></div>
|
||
<div class="tile"><span class="k" data-t="asCopies">as copies</span><span class="v" id="vCopies">0 B</span></div>
|
||
<div class="tile"><span class="k" data-t="stored">stored</span><span class="v" id="vStored">0 B</span></div>
|
||
<div class="tile"><span class="k" data-t="dedupe">dedupe</span><span class="v" id="tDedup">–</span><span class="s saved" id="vSaved"></span></div>
|
||
</div>
|
||
<div class="bar-row"><span class="bar-label" data-t="asCopies">as copies</span><div class="bar"><i id="barCopies" class="copies"></i></div></div>
|
||
<div class="bar-row"><span class="bar-label" data-t="stored">stored</span><div class="bar"><i id="barStored" class="stored"></i></div></div>
|
||
<p class="stats-line" id="statsLine"></p>
|
||
</section>
|
||
|
||
<div class="stage" id="stage"><svg id="graph" role="img" aria-label="worktree trajectory"></svg></div>
|
||
<div class="legend" id="legend" hidden></div>
|
||
|
||
<section class="controls" id="controls">
|
||
<button type="button" id="play" class="primary">Replay</button>
|
||
<input type="range" id="scrub" min="0" max="1000" value="0" step="1" aria-label="replay position">
|
||
<div class="seg" id="speed" role="group" aria-label="speed">
|
||
<button type="button" data-speed="0.5">0.5×</button>
|
||
<button type="button" data-speed="1" aria-selected="true">1×</button>
|
||
<button type="button" data-speed="2">2×</button>
|
||
<button type="button" data-speed="4">4×</button>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="detail" id="detail">
|
||
<div class="d-head"><span class="d-branch"><i id="dDot" class="d-dot"></i><span id="dBranch"></span></span><span class="d-time" id="dTime"></span></div>
|
||
<p class="d-msg" id="dMsg"></p>
|
||
<p class="d-meta"><span id="dMeta"></span> <span id="dDelta" class="delta"></span></p>
|
||
</section>
|
||
|
||
<section class="agents" id="agents" hidden>
|
||
<h2 data-t="agentsK">Agent activity</h2>
|
||
<table class="agent-table" id="agentTable">
|
||
<thead><tr>
|
||
<th data-t="agentCol">Agent</th>
|
||
<th data-t="toolCol">Tool</th>
|
||
<th data-t="projectCol">Project</th>
|
||
<th data-t="branchCol">Branch</th>
|
||
<th data-t="whenCol">When</th>
|
||
</tr></thead>
|
||
<tbody id="agentRows"></tbody>
|
||
</table>
|
||
<p class="agents-empty" id="agentsEmpty" hidden></p>
|
||
</section>
|
||
|
||
<p class="empty" id="empty" hidden></p>
|
||
<!-- layerfs:scripts -->
|
||
</body>
|
||
</html>
|