pi-mono/packages/durable/test/examples
Mario Zechner d8d99950ac feat(chord,durable): PendingOps folds pending ops for slow consumers; Watch delivers one call per busy period
- chord/delta: PendingOps (push, size, take -> PendingTake): raw pending ops, r drops everything
  before it, a leaf index merges appends and primitive sets per path (cleared by any other op),
  past 10,000 ops only "replace with the current value"; one batch is kept by reference and
  received ops are never mutated
- chord: Watch queues frames in PendingOps while its listener is busy or not started and delivers
  one call with the newest value, the folded ops (or [["r", newest]] after an overflow) and the
  newest frame's context; replaces the 100-frame collapse. NativeWatch is unchanged and takes an
  optional replace()
- durable: watchEvents keeps every event batch in order (NativeWatch with a snapshot replace);
  document, view and task-graph watches fold; spec, README, example 04 and tests updated
- tests: fold fuzzers (tracker, appendText, splices/reorders, root arrays, diffRevisions) with
  codec round trips, adversarial cases, cap, ownership, cost and GC guards
2026-10-24 09:37:12 +00:00
..
00-conversation.ts feat(durable): first runnable chat turn (Package 15) 2026-09-29 14:08:28 +02:00
01-documents.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
02-forks.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
03-owned-conversations.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
04-watches.ts feat(chord,durable): PendingOps folds pending ops for slow consumers; Watch delivers one call per busy period 2026-10-24 09:37:12 +00:00
05-harness.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
06-configuration.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
07-harness-conversations.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
08-context.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
09-registry-reload.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
10-extension-state.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
11-tasks.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
12-recovery.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
13-chat.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
14-system-prompt.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
15-real-model.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
16-coding-tools.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
17-print.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
18-json.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
19-inbox.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
20-late-join.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
21-subagent-foreground.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
22-subagent-background.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
23-child-tasks.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
24-compaction.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
25-coding-agent.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
26-plan-mode.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
27-reviewer.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
28-sandbox-per-conversation.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
29-tool-override.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
30-reload-and-restart.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00