pi-mono/packages/durable/test/examples
Mario Zechner 92ab536024 feat: Durable storage adopt callback inside the commit, watch types in Chord, explicit watch retirement
Breaking changes:
- Durable Storage.commit(writes, adopt, context): storages call adopt(seq) once,
  synchronously, when the batch is durable and before their next commit
- Chord traceIn(options, fn, context): context last
- WatchHandle and WatchEnd move to Chord (Durable re-exports them); end reasons
  ended (was session_closed) and failed (was session_failed); retirement is an
  explicit source event, and an ended watch drops its references into the Session
- Removed Session.documentState(), Conversation.viewState(), Harness.taskGraph()
  and DocumentState; use watchDoc(), watch(), watchTaskGraph()
2026-10-22 10:52:59 +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 feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
05-watches.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
06-harness.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
07-configuration.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
08-harness-conversations.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
09-context.ts feat(ai,durable): add lightweight pi-ai/models entry and avoid TypeBox in durable 2026-09-29 21:24:17 +02:00
10-registry-reload.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
11-extension-state.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
12-tasks.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
13-recovery.ts feat(durable): durable sleeping state replaces runtime.sleep 2026-10-17 22:29:26 +00:00
14-chat.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
15-system-prompt.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
16-real-model.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
17-coding-tools.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
18-print.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
19-json.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
20-inbox.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
21-late-join.ts feat: Durable storage adopt callback inside the commit, watch types in Chord, explicit watch retirement 2026-10-22 10:52:59 +00:00
22-subagent-foreground.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
23-subagent-background.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
24-child-tasks.ts feat: Durable storage adopt callback inside the commit, watch types in Chord, explicit watch retirement 2026-10-22 10:52:59 +00:00
25-compaction.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
26-coding-agent.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
27-plan-mode.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
28-reviewer.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
29-sandbox-per-conversation.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
30-tool-override.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
31-reload-and-restart.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00