@parcha/pi-durable-disk 0.1.0-beta.18 → 0.1.0-beta.20

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 CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.1.0-beta.20 (2026-10-20)
6
+
7
+ - A start mark keeper whose rewrite fails because the run's directory moved after its check now warns that the directory is no longer the one it started on, and stops. Before, the `PDA_START_MARK` warning said the rewrite failed (ENOENT or ENOTDIR). Nothing is written in either case; only the stated reason changes.
8
+ - The local-disk env conformance cases watch with a 100 ms poll, so pi's fixed 3 s wait for a report keeps seconds of slack on a loaded runner; the product's 1 s watch default is unchanged.
9
+
10
+ ## 0.1.0-beta.19 (2026-10-20)
11
+
12
+ - An instance whose app released the run ends by itself: `pi-durable-disk run --app` exits 0 once `onOpen` has returned and the run is released, so the unit does not stay up with no mount.
13
+ - A stop (SIGTERM or SIGINT) after the app's release, from `onOpen` or later, exits 0 with no drain and no wake written to the released run.
14
+ - `DurableRun` gains `readonly releasing: boolean`, true once `release()` began. A caller that implements `DurableRun` itself must add it.
15
+ - `pi-durable-disk --help`, `help` and `<command> --help` print the usage on stdout and exit 0.
16
+ - **The README is the overview, `docs/reference.md` the reference; three new keyless examples**
17
+ - The package README is now the overview: what it is (an agent's home and runs live on a disk, so any host can open a run where
18
+ the last one released it), when to use it, a keyless example to run from an npm install, Archil as "bring your own disk",
19
+ what you can do with it, what it costs, what it does not do, the install lines, and the low-level API (`openDurableRun`, `localRun`, `seed`, `localPlace` and
20
+ `archilPlace`, `PlaceOutcome`, `withClaim`, `recordHome`) with an example or test for each. The reference sections moved,
21
+ with their headings, to `docs/reference.md` (requirements, the quickstarts on a disk, the app, the CLI, host drivers and the
22
+ supervisor, the failure table, security, the layout, the library). `docs/` is not in the published package, so the README's
23
+ links to it resolve on npm's and GitHub's pages, as the links to `examples/` do. Two fixes in the moved text: `readReleased`
24
+ returns `{ bytes, etag }` or null (a snippet bound it to the bytes), and the quickstarts say what the run does (it moves to
25
+ another host from the disk) with the kill as one line.
26
+ - New examples, all keyless: `pick-up-a-run` (three processes open one run in turn; the README's first example, which the
27
+ stranger test runs), `seed-a-run` (what `seed` writes, once, and the next open keeps what the run changed) and
28
+ `place-outcome` (`localPlace` reports a run that delivers as `complete` and one that gives up as `failed`, with the models).
29
+ `01-durable-chat/on-a-directory.mjs` stays and is still run in CI.
30
+ - The install lines in the README and in `examples/README.md` no longer pin the pi packages to 1.2: the published beta's peers
31
+ are `>=1.0.4 <1.4.0`.
32
+ - The README and `docs/reference.md` say that an instance ends after its app releases the run: returning from `onOpen` after
33
+ `await run.release()` is enough, and the examples' `process.exit(0)` is fine too. This follows the fix that makes such an
34
+ instance exit 0 and a stop after the release clean.
35
+
5
36
  ## 0.1.0-beta.17 (2026-10-18)
6
37
 
7
38
  - **A claim directory's descriptor is closed by `close()` only, never by garbage collection (GRE-3853)**