@better-fs-tools/pi-durable 0.3.0 → 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
@@ -1,8 +1,10 @@
1
+ <a href="https://betterfs.dev"><img src="https://betterfs.dev/brand/D-wordmark-auto.svg" alt="Better FS Tools" height="64"></a>
2
+
1
3
  # @better-fs-tools/pi-durable
2
4
 
3
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.
4
6
 
5
- `@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.
6
8
 
7
9
  ## Install
8
10
 
@@ -10,7 +12,7 @@ Better FS Tools for [`@earendil-works/pi-durable`](https://www.npmjs.com/package
10
12
  npm install @better-fs-tools/pi-durable @earendil-works/pi-durable @earendil-works/chord typebox
11
13
  ```
12
14
 
13
- `@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.
14
16
 
15
17
  ## Example
16
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,7 +1,8 @@
1
1
  {
2
2
  "name": "@better-fs-tools/pi-durable",
3
- "version": "0.3.0",
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
+ "homepage": "https://betterfs.dev",
5
6
  "license": "MIT",
6
7
  "repository": {
7
8
  "type": "git",
@@ -29,20 +30,20 @@
29
30
  "access": "public"
30
31
  },
31
32
  "dependencies": {
32
- "@better-fs-tools/fs": "^0.3.0",
33
- "@better-fs-tools/read": "^0.3.0",
34
- "@better-fs-tools/shell": "^0.3.0",
35
- "@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"
36
37
  },
37
38
  "devDependencies": {
38
- "@earendil-works/chord": "~1.2.0",
39
- "@earendil-works/pi-ai": "~1.2.0",
40
- "@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",
41
42
  "typebox": "^1.3.16"
42
43
  },
43
44
  "peerDependencies": {
44
- "@earendil-works/chord": "~1.2.0",
45
- "@earendil-works/pi-durable": "~1.2.0",
45
+ "@earendil-works/chord": "~1.6.0",
46
+ "@earendil-works/pi-durable": "~1.6.0",
46
47
  "typebox": "^1.3.16"
47
48
  }
48
49
  }