ccyin found it (#1228): opened through `magpie web` from another computer (magpie in Docker), the LayerFS page was blank with "127.0.0.1:43717 refused to connect". The page entry had no magpie.page.service, so the bridge gave no forward and boot.js jumped to 127.0.0.1, which is the viewing computer there. page-chat and page-fingerprint declare it and worked in the same window. - package.json: page.service {port: 43717, option: "pagePort"}. - boot.js goes to magpie.service when it is an http(s) address, with the language query; otherwise to 127.0.0.1:<pagePort> as before. - The service is unchanged: magpie's forward (internal/gui/ pageservice.go) sends Host 127.0.0.1:<port>, drops the cookie, and a navigation carries no Origin, so its guards pass as they are. Run (mote, HOME=$(mktemp -d)): - bun test in packages/layerfs: 72 pass, 0 fail. - bun scripts/check.mjs layerfs: ok. Broken by hand: origin/main's page/boot.js with the new tests: the forward test fails (the frame still goes to 127.0.0.1). Not tried: a real magpie web in Docker opened from a second computer.
58 lines
2.2 KiB
JSON
58 lines
2.2 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",
|
|
"service": {
|
|
"port": 43717,
|
|
"option": "pagePort"
|
|
},
|
|
"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.3"
|
|
}
|