WaiooT asked to see Cursor in Agent Office. It read no Cursor files: Cursor showed only through the gateway hook, which never sees Cursor's own requests (they go to Cursor's servers). It now reads <CURSOR_DATA_DIR or ~/.cursor>/projects/<slug>/agent-transcripts/ <chat>/<chat>.jsonl (and the older agent-transcripts/<chat>.jsonl). A chat with cursor-agent's chats/*/<chat>/meta.json (CURSOR_CONFIG_DIR, else $XDG_CONFIG_HOME/cursor, else ~/.cursor) is "Cursor CLI" with that cwd; the rest are the editor's, a new "cursor-app" agent named "Cursor", with the cwd found by matching the slug against real folders (bounded, cached), else the slug's last part. Lines carry no time, so the file's mtime is used, and the user line's <timestamp>. turn_ended ends a turn (success done, error with its text, else stopped). The editor writes no turn_ended, so its chat counts as done 30s after a last answer with no tool pending. No token counts: Cursor doesn't record them locally. Run on mote at this tree (Bun 1.4.2, HOME=mktemp -d): repo bun test 7866 tests, 7846 pass, 20 skip, 0 fail; bun scripts/check.mjs exit 0; stamp-page.mjs --check exit 0 (agents.js restamped). The fixtures are the bytes a sandboxed cursor-agent wrote here (a Read tool run that ended "WritableIterable is closed", and "Say ok."). Broken by hand: without the editor's quiet-done rule the chat stays "thinking" (red); without meta.json's agent the CLI chat is cursor-app (red). Not tried: a real Cursor editor writing a transcript (no editor in a sandbox here; the format is cursor-agent's, which the editor shares per magpie's Sessions reader), subagent transcripts, the page in a real magpie window.
91 lines
2.2 KiB
JSON
91 lines
2.2 KiB
JSON
{
|
|
"name": "@magpie-community/page-agent-office",
|
|
"version": "0.3.5",
|
|
"description": "我的 Agent 在干嘛:读取本机 Claude Code、Codex、Copilot CLI、Kimi Code、DeepSeek Harness、Gemini CLI、Qwen Code、Pi、omp、Qoder、WorkBuddy、CodeBuddy、Grok Build、Cursor 的会话文件,把每个会话画成真 3D / 等距 / 2D 办公室里的小人,或分组工作台。Live agent activity dashboard for magpie, with a real WebGL office and eleven 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"
|
|
}
|
|
}
|