pi-mono/packages/env/src
Mario Zechner 5f312dac4c feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports
Chord's shared watch: listeners take a tagged call, { kind: "value", value, ops, retired } or
{ kind: "failed", error }; a recoverable failure keeps the watch open and the next value arrives as
[["r", value]]; WatchEnd is tagged by kind, and an aborted context ends a watch "aborted".

Durable: observers take the watch's shapes (advance(call, ctx), end(end)); onReport(report) with
report.kind and report.error, session_failed is storage_failed; subscribeCommits is observeCommits;
SessionEnd and ReportFrom are tagged by kind; FileChange is tagged and file watchers stop with
stop(ctx); CompactionFailure and CompactionStatus name their trigger (pi.live version 2 with a
migrate); the task_outdated report uses the scheduler's reasons; TaskInspection's ready is pending;
DocumentCommitChange is tagged. Stored formats are unchanged.
2026-10-27 20:38:08 +00:00
..
connection.ts fix(env): include stderr in pi-env startup errors (#10716) 2026-10-27 16:16:49 +01:00
errors.ts fix(env): daemon robustness, output windows, native watching and Node read semantics 2026-10-05 17:32:22 +02:00
index.ts feat(env): listFiles for remote and local environments, nodePlatform 2026-10-12 15:22:14 +00:00
list-files.ts feat(env): listFiles for remote and local environments, nodePlatform 2026-10-12 15:22:14 +00:00
remote-env.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00
ssh.ts feat(env): run programs in pseudo-terminals for interactive terminals 2026-10-11 16:35:08 +00:00
terminal.ts feat(env): report a terminal's foreground job with ptyForeground 2026-10-11 16:35:08 +00:00
watch.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00