@better-fs-tools/pi-durable 0.3.1 → 0.4.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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Better FS Tools for [`@earendil-works/pi-durable`](https://www.npmjs.com/package/@earendil-works/pi-durable), the experimental durable harness of Pi. It replaces the `read`, `edit`, and `write` of `CodingTools`, and can add `apply_patch` and `bash`. Each call reads and writes through the call's execution environment, so the tools work on the local machine, over SSH with `@earendil-works/pi-env`, and in a container.
6
6
 
7
- `@earendil-works/pi-durable` is experimental. Its API can change in each release. This package follows pi-durable 1.2.
7
+ `@earendil-works/pi-durable` is experimental. Its API can change in each release. This package follows pi-durable 1.6.
8
8
 
9
9
  ## Install
10
10
 
@@ -12,7 +12,7 @@ Better FS Tools for [`@earendil-works/pi-durable`](https://www.npmjs.com/package
12
12
  npm install @better-fs-tools/pi-durable @earendil-works/pi-durable @earendil-works/chord typebox
13
13
  ```
14
14
 
15
- `@earendil-works/pi-durable` (`~1.2.0`), `@earendil-works/chord` (`~1.2.0`), and `typebox` (`^1.3.16`) are required peers. The package imports no `node:` module.
15
+ `@earendil-works/pi-durable` (`~1.6.0`), `@earendil-works/chord` (`~1.6.0`), and `typebox` (`^1.3.16`) are required peers. The package imports no `node:` module.
16
16
 
17
17
  ## Example
18
18
 
@@ -13,6 +13,9 @@ export const ReadStateDoc = defineDocFamily({
13
13
  history: "rewindable",
14
14
  fork: "asOf",
15
15
  initial: () => ({ record: null }),
16
+ // pi-durable 1.4 and later call this on every change, with no default. A write replaces the whole
17
+ // record, so a base is about as large as the delta, and a read replays no earlier deltas.
18
+ checkpointWhen: () => true,
16
19
  });
17
20
  /**
18
21
  * A per-call read store in the conversation's ReadStateDoc documents. Pass it
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-fs-tools/pi-durable",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "The Better FS Tools read, edit, write, apply_patch, and bash tools for the experimental Pi durable harness, over its execution environment.",
5
5
  "homepage": "https://betterfs.dev",
6
6
  "license": "MIT",
@@ -30,20 +30,20 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
- "@better-fs-tools/fs": "^0.3.0",
34
- "@better-fs-tools/read": "^0.3.0",
35
- "@better-fs-tools/shell": "^0.3.0",
36
- "@better-fs-tools/write": "^0.3.0"
33
+ "@better-fs-tools/fs": "^0.4.0",
34
+ "@better-fs-tools/read": "^0.4.0",
35
+ "@better-fs-tools/shell": "^0.4.0",
36
+ "@better-fs-tools/write": "^0.4.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@earendil-works/chord": "~1.2.0",
40
- "@earendil-works/pi-ai": "~1.2.0",
41
- "@earendil-works/pi-durable": "~1.2.0",
39
+ "@earendil-works/chord": "~1.6.0",
40
+ "@earendil-works/pi-ai": "~1.6.0",
41
+ "@earendil-works/pi-durable": "~1.6.0",
42
42
  "typebox": "^1.3.16"
43
43
  },
44
44
  "peerDependencies": {
45
- "@earendil-works/chord": "~1.2.0",
46
- "@earendil-works/pi-durable": "~1.2.0",
45
+ "@earendil-works/chord": "~1.6.0",
46
+ "@earendil-works/pi-durable": "~1.6.0",
47
47
  "typebox": "^1.3.16"
48
48
  }
49
49
  }