Agent Office 0.2.0 (QingJ01, #551): a real 3D office, the workbench, and the earlier review's fixes. The session scanner now reads growing JSONL logs incrementally. It keeps a saved offset with 128 guard bytes, carries UTF-8 and partial JSON across ticks, applies a record complete at EOF once, and resets on truncation, inode or birthtime change and same-size rewrites. Readers update per kind (Claude response usage replaced, Grok sidecar daily totals replaced, metadata refreshed apart from logs).
Run at the reviewed head 3bf522f, merged on main 622f950, on mote under HOME=$(mktemp -d):
- agent-office bun test: 163 pass, 0 fail. Full bun test: 4310 pass, 9 skip, 0 fail. check.mjs agent-office and stamp-page --check: exit 0.
- 100MB log: append scan ~50ms -> 0.04-0.2ms (4x100MB: ~240ms -> 0.13-0.29ms). Through office.hooks: first scan 82ms, then 0.11-0.24ms per append.
- Fuzz with real Claude, Codex and Grok logs in random appends vs a fresh scanner: 0 mismatches.
- Broken by hand: 9 mutations of the cursor and readers go red. Gaps left as follow-ups: the inode check alone, ExtendedTail, the Codex title cursor and summary.json re-reads. Also follow-up: the first scan of an image-heavy log (336ms vs 42ms, framePart).
The package is new on npm: the owner publishes 0.2.0 by hand the first time.
117 lines
6.0 KiB
HTML
117 lines
6.0 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Agent Office</title>
|
|
<link rel="stylesheet" href="style.css?v=284374c66e69">
|
|
<script src="_magpie/bridge.js"></script>
|
|
<script src="agents.js?v=d958111cd669"></script>
|
|
<script src="model.js?v=691ef399f1c8"></script>
|
|
<script src="icons.js?v=e918b44d46c2"></script>
|
|
<script src="scene.js?v=b27c2e100f3a"></script>
|
|
<script src="three.min.js?v=5b5a0ae404b6"></script>
|
|
<script src="scene3d.js?v=f6a154f817d4"></script>
|
|
<script src="app.js?v=744effc0b6ea" defer></script>
|
|
</head>
|
|
<body>
|
|
<main class="card" id="card">
|
|
<header class="top">
|
|
<h1><span class="eyes" aria-hidden="true"><i></i><i></i></span><span data-t="title">What are my agents doing</span><span class="live" id="live"><i></i><span data-t="live">live</span></span></h1>
|
|
<div class="counts" id="counts">
|
|
<span class="count need"><i></i><span data-t="needYou">Need you</span> <b id="nNeed">0</b></span>
|
|
<span class="count work"><i></i><span data-t="working">Working</span> <b id="nWork">0</b></span>
|
|
<span class="count done"><i></i><span data-t="doneN">Done</span> <b id="nDone">0</b></span>
|
|
</div>
|
|
</header>
|
|
<nav class="bar">
|
|
<div class="seg dark" role="tablist" id="modes">
|
|
<button type="button" role="tab" data-mode="office" data-t="office">Office</button>
|
|
<button type="button" role="tab" data-mode="list" data-t="list">List</button>
|
|
</div>
|
|
<div class="seg plain" role="tablist" id="dims">
|
|
<button type="button" role="tab" data-dim="2d">2D</button>
|
|
<button type="button" role="tab" data-dim="iso">ISO</button>
|
|
<button type="button" role="tab" data-dim="3d">3D</button>
|
|
</div>
|
|
<span class="note" id="note"></span>
|
|
<span class="grow"></span>
|
|
<div class="tools">
|
|
<div class="menu-wrap">
|
|
<button type="button" class="btn" id="todayBtn" aria-haspopup="true" aria-expanded="false"><span data-t="today">Today</span> <span class="today-tokens" id="todayTokens"></span></button>
|
|
<div class="menu today-panel" id="todayMenu" hidden></div>
|
|
</div>
|
|
<button type="button" class="btn" id="sideBtn" aria-pressed="true"><span data-t="panel">Panel</span></button>
|
|
<button type="button" class="btn" id="pip" data-t="pip">Picture in picture</button>
|
|
<div class="menu-wrap">
|
|
<button type="button" class="btn" id="settingsBtn" aria-haspopup="true" aria-expanded="false"><span data-t="settings">Settings</span> <span class="chev">⌄</span></button>
|
|
<div class="menu wide" id="settings" hidden>
|
|
<label class="row"><input type="checkbox" id="optDemo"> <span data-t="demo">Sample agents</span></label>
|
|
<label class="row"><input type="checkbox" id="optDone"> <span data-t="showDone">Show finished agents</span></label>
|
|
<label class="row"><input type="checkbox" id="optText"> <span data-t="showText">Show prompts and replies</span></label>
|
|
<label class="row"><input type="checkbox" id="optSub"> <span data-t="showSub">Show subagents</span></label>
|
|
<label class="row"><input type="checkbox" id="optIdle"> <span data-t="showIdle">Show idle agents</span></label>
|
|
<div class="row col">
|
|
<span data-t="agents">Agents</span>
|
|
<div class="agent-filter" id="optAgents"></div>
|
|
</div>
|
|
<div class="row col">
|
|
<span data-t="language">Language</span>
|
|
<select class="lang-select" id="optLang"></select>
|
|
</div>
|
|
<div class="row col">
|
|
<span data-t="scene">Scene</span>
|
|
<select class="lang-select" id="optScene"></select>
|
|
</div>
|
|
<div class="row col">
|
|
<span data-t="quality">Quality</span>
|
|
<select class="lang-select" id="optQuality">
|
|
<option value="low" data-t="qLow">Low</option>
|
|
<option value="medium" data-t="qMedium">Medium</option>
|
|
<option value="high" data-t="qHigh">High</option>
|
|
</select>
|
|
</div>
|
|
<div class="row col">
|
|
<span data-t="hideAfter">Leave the office after</span>
|
|
<div class="seg small" id="optHide">
|
|
<button type="button" data-hide="1h" data-t="h1">1 hour</button>
|
|
<button type="button" data-hide="6h" data-t="h6">6 hours</button>
|
|
<button type="button" data-hide="24h" data-t="h24">24 hours</button>
|
|
<button type="button" data-hide="never" data-t="never">Never</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<section class="stage" id="stage">
|
|
<canvas id="office" tabindex="0" aria-label="Agent office"></canvas>
|
|
<canvas id="office3d" tabindex="0" aria-label="3D Agent office" hidden></canvas>
|
|
<div class="tags" id="tags"></div>
|
|
<div class="empty" id="empty" hidden></div>
|
|
</section>
|
|
<section class="listview" id="listview" hidden>
|
|
<table>
|
|
<thead><tr><th data-t="agent">Agent</th><th data-t="task">Task</th><th data-t="status">Status</th><th data-t="project">Folder</th><th data-t="model">Model</th><th data-t="last">Last active</th></tr></thead>
|
|
<tbody id="rows"></tbody>
|
|
</table>
|
|
<p class="empty-list" id="emptyList" hidden></p>
|
|
</section>
|
|
<aside class="rail" id="rail" hidden>
|
|
<div class="rail-head"><span data-t="agents">Agents</span> <b id="railCount">0</b><span class="grow"></span><button type="button" class="px" id="railClose" aria-label="Close">✕</button></div>
|
|
<div class="rail-groups" id="railGroups"></div>
|
|
</aside>
|
|
<aside class="pop" id="pop" hidden></aside>
|
|
<footer>
|
|
<div class="legend" id="statusLegend"></div>
|
|
<div class="legend brands" id="brandLegend"></div>
|
|
</footer>
|
|
</main>
|
|
<div class="float" id="float" hidden>
|
|
<div class="floatbar" id="floatbar"><span class="fdots" aria-hidden="true"><i></i><i></i></span><span data-t="pip">Picture in picture</span><button type="button" class="fclose" id="floatClose" aria-label="Close">✕</button></div>
|
|
<div class="floatslot" id="floatslot"></div>
|
|
</div>
|
|
<div class="toasts" id="toasts" aria-live="polite"></div>
|
|
</body>
|
|
</html>
|