pi-mono/packages/durable/test/examples
Mario Zechner 7e15f96019 feat(durable): run-end tasks with the afterRun hook
GenerationHooks.afterRun asks, after a run answered, for durable tasks
(runEndTask(task, input)). The answer commits and the run's inputs settle
done first; the generation then creates the tasks as its children in a
finish phase and waits for them in drain, keeping pi.live.run (run.afterRun)
and the conversation busy, so idle waits include them, Stop aborts them and
a crash resumes them. Queued input is placed when they are terminal.
pi.live.run.first and runFailure.first name where a run's history starts,
also for a continue after a failure.

closes #11141
2026-10-28 14:03:25 +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): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +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 feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +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 feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00
19-inbox.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
20-late-join.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00
21-subagent-foreground.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00
22-subagent-background.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +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
31-transcript.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00
32-tests-after-edits.ts feat(durable): run-end tasks with the afterRun hook 2026-10-28 14:03:25 +00:00