AlanWang1027713 on X (magpie v0.1.4026, macOS): Plugins -> LayerFS
轨迹 stays on "Connecting to the local trajectory service…".
The page's boot.js jumps its frame to the host's service on 43717, and
the service started only once a store with a project existed. With no
store the jump is refused. The README said the frame then shows the
browser's refused-to-connect page; that is Chromium. A WebKit frame
(magpie's window on macOS and Linux) keeps the old document when its
jump is refused, so it said Connecting for good.
The service now starts when the host loads, store or no store. With no
store (or an empty projects folder) it answers an empty recording
without building the backend, so nothing is written under ~ until a
tool call makes the first project. The empty state now reloads itself
every 5s like the full page, so the first provision shows up without
reopening the page. The retry on a held port no longer waits for a
store, and the store-race recheck it needed is gone.
Run on mote (Bun 1.4.2, temp HOME):
- bun test packages/layerfs: 69 pass, 0 fail. bun scripts/check.mjs: 0.
- Broken by hand: 0.10.1's index.mjs and app.js turn the two new
tests red (the no-store service test and the empty-state reload).
- Real browsers (Playwright 1.62.0): a sandboxed frame doing boot.js's
jump against a no-store host. 0.10.1: WebKit's frame stays on
"Connecting to the local trajectory service…", Chromium's shows
chrome-error. 0.10.2: both show the zh empty state
("还没有记录到轨迹…").
Not tried: the page inside the real magpie window with the plugin
installed.
54 lines
2.1 KiB
JSON
54 lines
2.1 KiB
JSON
{
|
|
"description": "LayerFS workspaces for every agent in magpie: deduplicated checkpoints and branches behind stable filesystem paths, instead of a fresh copy of the tree for every agent, with a page that replays the worktree trajectory",
|
|
"exports": {
|
|
".": "./index.mjs"
|
|
},
|
|
"files": [
|
|
"index.mjs",
|
|
"layerfs.mjs",
|
|
"page-service.mjs",
|
|
"page",
|
|
"README.md",
|
|
"icon.svg"
|
|
],
|
|
"keywords": [
|
|
"magpie",
|
|
"magpie-tools",
|
|
"mcp",
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"layerfs",
|
|
"filesystem",
|
|
"workspace",
|
|
"checkpoint",
|
|
"dedup"
|
|
],
|
|
"license": "MIT",
|
|
"magpie": {
|
|
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCI+CiAgPCEtLSB0b29scy1sYXllcmZzOiBMYXllckZTIHdvcmtzcGFjZXMuIExlYWYtZ3JlZW4gdGlsZSwgd2hpdGUgbGVhZiBpbgogICAgICAgdGhlIHNoYXBlIG9mIExheWVyRlMncyBvd24gbGVhZiBnbHlwaCAocGFnZS92aWV3LmpzIExFQUZfR0xZUEgsCiAgICAgICBzY2FsZWQgeDIpLCB3aXRoIGEgZm9ya2VkIHZlaW4gaW5zaWRlIGl0OiB0aGUgYnJhbmNoIHNwbGl0dGluZywKICAgICAgIHRoZSB0cmFqZWN0b3J5IHBhZ2UncyBib3VnaCBtb3RpZi4gRmxhdCBzaGFwZXMgb25seTsgdGhlIGxlYWYKICAgICAgIHNpbGhvdWV0dGUgY2FycmllcyByZWNvZ25pdGlvbiBkb3duIHRvIDE2IHB4LiAtLT4KICA8cmVjdCB4PSIyIiB5PSIyIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHJ4PSIxNCIgZmlsbD0iIzE2YTM0YSIvPgogIDxwYXRoIGQ9Ik0zMiAxMSBDNDggMTkgNTIgMzkgMzIgNTMgQzEyIDM5IDE2IDE5IDMyIDExIFoiIGZpbGw9IiNmZmZmZmYiLz4KICA8cGF0aCBkPSJNMzIgNTAgTDMyIDMyIE0zMiAzMiBDMjggMjcgMjUgMjUgMjIgMjEgTTMyIDMyIEMzNiAyNyAzOSAyNSA0MiAyMSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTZhMzRhIiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K",
|
|
"options": {
|
|
"exec": false,
|
|
"pagePort": 43717
|
|
},
|
|
"page": {
|
|
"file": "page/index.html",
|
|
"icon": "page/icon.svg",
|
|
"title": "LayerFS trajectory",
|
|
"titles": {
|
|
"ja": "LayerFS の軌跡",
|
|
"zh": "LayerFS 轨迹",
|
|
"zh-TW": "LayerFS 軌跡"
|
|
}
|
|
}
|
|
},
|
|
"main": "./index.mjs",
|
|
"name": "@magpie-community/tools-layerfs",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/layerfs"
|
|
},
|
|
"type": "module",
|
|
"version": "0.10.2"
|
|
}
|