@procedures/snapshot 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +10 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +13 -9
- package/dist/module.js.map +1 -1
- package/dist/procedures/snapshot/commands.d.ts +17 -9
- package/dist/procedures/snapshot/commands.d.ts.map +1 -1
- package/dist/procedures/snapshot/commands.js +28 -12
- package/dist/procedures/snapshot/commands.js.map +1 -1
- package/dist/procedures/snapshot/create.d.ts.map +1 -1
- package/dist/procedures/snapshot/create.js +20 -11
- package/dist/procedures/snapshot/create.js.map +1 -1
- package/dist/procedures/snapshot/diff.d.ts.map +1 -1
- package/dist/procedures/snapshot/diff.js +15 -9
- package/dist/procedures/snapshot/diff.js.map +1 -1
- package/package.json +7 -7
- package/src/module.ts +13 -10
- package/src/procedures/snapshot/commands.ts +26 -12
- package/src/procedures/snapshot/create.ts +19 -11
- package/src/procedures/snapshot/diff.ts +13 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @procedures/snapshot
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d86363e: `snapshot.create` and `snapshot.diff` work under a root of the files (`mark --fs-root`). Before, a root refused them (tracker item O46).
|
|
8
|
+
|
|
9
|
+
- Their git commands go through the `git.*` procedures of the host, so the rules of git under a root apply.
|
|
10
|
+
- Under a root, each folder of `paths` must be in the root. `snapshot.create` takes the root when the call gives no `paths`. `snapshot.diff` needs `paths`.
|
|
11
|
+
- Under a root, pnpm does not start, and the snapshot records the pnpm version as `unknown`. `snapshot.create` does not read a `package.json` whose real path is outside the root.
|
|
12
|
+
- Without a root, the procedures give the same results as before. A host needs the procedures `git.revParse`, `git.remote` and `git.diff` of `@procedures/git`, as it needs `git.status` already.
|
|
13
|
+
- @procedures/client@0.12.0
|
|
14
|
+
- @procedures/fs@0.12.0
|
|
15
|
+
- @procedures/git@0.12.0
|
|
16
|
+
- @procedures/pnpm@0.12.0
|
|
17
|
+
- @procedures/s3@0.12.0
|
|
18
|
+
- @procedures/shell@0.12.0
|
|
19
|
+
|
|
3
20
|
## 0.11.0
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -726,7 +726,16 @@ Captures comprehensive Git state:
|
|
|
726
726
|
|
|
727
727
|
## The root of the files
|
|
728
728
|
|
|
729
|
-
A host with a root (`mark --fs-root`, `procedure-server --fs-root`, `MCP_FS_ROOT`)
|
|
729
|
+
A host with a root (`mark --fs-root`, `procedure-server --fs-root`, `MCP_FS_ROOT`) confines `snapshot.create` and `snapshot.diff`, and it refuses `snapshot.restore`. A refusal is `FORBIDDEN` with the reason `outside-root`.
|
|
730
|
+
|
|
731
|
+
- Each folder of `paths` must be in the root. A relative path starts at the root.
|
|
732
|
+
- `snapshot.create` takes the root when the call gives no `paths`.
|
|
733
|
+
- `snapshot.diff` needs `paths` under a root, because the snapshot recorded its paths, maybe on another machine.
|
|
734
|
+
- Git goes through the `git.*` procedures, so the rules of git under a root apply. For example, a repository whose configuration starts a program is refused.
|
|
735
|
+
- Pnpm does not start under a root. The snapshot records the pnpm version as `unknown`.
|
|
736
|
+
- `snapshot.create` does not read a `package.json` whose real path is outside the root.
|
|
737
|
+
- `snapshot.restore` stays refused. It downloads the archive into the temporary folder of the host, and the names of the folders come from the data of the snapshot.
|
|
738
|
+
- `snapshot.list` and `snapshot.delete` reach only S3, so they work under a root.
|
|
730
739
|
|
|
731
740
|
The rules and the table of the procedures are in [CAPABILITIES-2026-10.md](../documentation/CAPABILITIES-2026-10.md#the-root-of-the-files-roadmap-r33).
|
|
732
741
|
|