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.
91 lines
2.2 KiB
JSON
91 lines
2.2 KiB
JSON
{
|
|
"name": "@magpie-community/page-agent-office",
|
|
"version": "0.2.0",
|
|
"description": "我的 Agent 在干嘛:读取本机 Claude Code、Codex、Copilot CLI、Kimi Code、DeepSeek Harness、Gemini CLI、Qwen Code、Pi、omp、Qoder、WorkBuddy、CodeBuddy、Grok Build 的会话文件,把每个会话画成真 3D / 等距 / 2D 办公室里的小人,或分组工作台。Live agent activity dashboard for magpie, with a real WebGL office and six scenes.",
|
|
"type": "module",
|
|
"files": [
|
|
"page/index.html",
|
|
"page/style.css",
|
|
"page/agents.js",
|
|
"page/model.js",
|
|
"page/icons.js",
|
|
"page/scene.js",
|
|
"page/app.js",
|
|
"page/icon.svg",
|
|
"page/scene3d.js",
|
|
"page/three.min.js",
|
|
"page/icons",
|
|
"lib",
|
|
"office.hooks.mjs",
|
|
"CHANGELOG.md",
|
|
"README.md",
|
|
"LICENSE",
|
|
"bin",
|
|
"SKILL.md"
|
|
],
|
|
"keywords": [
|
|
"magpie",
|
|
"magpie-plugin",
|
|
"magpie-page",
|
|
"agents",
|
|
"status",
|
|
"office",
|
|
"dashboard",
|
|
"opencode",
|
|
"3d",
|
|
"threejs",
|
|
"webgl",
|
|
"scenes"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/agent-office"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/magpie-community/plugins/issues"
|
|
},
|
|
"homepage": "https://github.com/magpie-community/plugins/tree/main/packages/agent-office#readme",
|
|
"engines": {
|
|
"magpie": ">=0.1.1318"
|
|
},
|
|
"scripts": {
|
|
"test": "bun test"
|
|
},
|
|
"magpie": {
|
|
"page": {
|
|
"title": "Agent Office",
|
|
"titles": {
|
|
"zh": "Agent 办公室",
|
|
"zh-TW": "Agent 辦公室",
|
|
"ja": "エージェントオフィス",
|
|
"de": "Agent-Büro"
|
|
},
|
|
"file": "page/index.html",
|
|
"icon": "page/icon.svg"
|
|
},
|
|
"hooks": "./office.hooks.mjs",
|
|
"permissions": [],
|
|
"options": {
|
|
"mode": "office",
|
|
"dim": "3d",
|
|
"demo": false,
|
|
"showDone": true,
|
|
"hideAfter": "6h",
|
|
"text": true,
|
|
"remote": false,
|
|
"scene": "office",
|
|
"quality": "medium",
|
|
"agents": [],
|
|
"showSub": true,
|
|
"showIdle": true,
|
|
"side": false,
|
|
"lang": "auto"
|
|
}
|
|
},
|
|
"bin": {
|
|
"agent-office": "bin/agent-office.mjs"
|
|
}
|
|
}
|