Files
plugins/packages/layerfs/package.json
T
yetone d43b228463 layerfs 0.7.3: workspace paths sit under ~/.layerfs-tools, so a tool result no longer names magpie (#360)
provision, resolve and exec answer the workspace's path, and a tool
result goes to the vendor in the agent's next request. With the default
root ~/.magpie-layerfs every provision named magpie upstream.

The default root is now ~/.layerfs-tools. A ~/.magpie-layerfs made by
0.7.2 or earlier is renamed to it once, at the first backend made, and
a link is left at the old path, so a session still holding an old
workspace path keeps working. A legacy root that is itself a link (the
user's own setup) is used where it is, as is one the rename is refused
on. MAGPIE_LAYERFS_HOME set by the user is unchanged. A second host
racing the rename finds the new root and uses it.

Run, in a sandbox HOME:
- bun test packages/layerfs: 53 pass, 0 fail. bun scripts/check.mjs
  layerfs: ok.
- The three #360 tests against the old default (defaultRoot answering
  ~/.magpie-layerfs): 2 of them red, the third (a user's link) is
  unchanged behaviour.
- Through magpie's real plugin host (origin/main 4dfd88206,
  plugin.Add of this package + plugin.RunTool "provision" in a
  testenv sandbox HOME): a fresh home answers
  ~/.layerfs-tools/workspaces/demo/main and makes nothing at the old
  name; a home with a ~/.magpie-layerfs holding a marker answers the
  new path, the marker is under ~/.layerfs-tools, and ~/.magpie-layerfs
  is a symlink.

Not tried: Windows (the link is a junction there), and moving a root
while an agent's exec runs in it.
2026-10-25 14:26:30 +08:00

50 lines
1.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",
"README.md"
],
"keywords": [
"magpie",
"magpie-tools",
"mcp",
"opencode",
"opencode-plugin",
"layerfs",
"filesystem",
"workspace",
"checkpoint",
"dedup"
],
"license": "MIT",
"magpie": {
"options": {
"exec": false
},
"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.7.3"
}