pi-mono/packages/durable/test
Mario Zechner 0104fef1e9 feat(chord): replace the facet and service runtime with the chord2 host runtime
Moves chord2 (contracts, objects, cells, roots, plugins, hot reload, memory/IPC/WebSocket links)
from p2 into packages/chord, with its tests (now on vitest) and docs. The root export is the new
runtime plus the shared base (Context, JsonValue, JsonRepresentation, Draft, copyJson, isJsonValue,
replicatedState and its types). ./node now holds the host manager, child control, process locks,
and nodeLoader. ./context and ./delta are unchanged; ./bundler is removed.

replicatedState stays a standalone module with the same exports. It no longer exposes the exact-op
subscription the removed service provider used, so listener failures of mutable states are always
reported asynchronously. The package depends on typebox instead of esbuild. The wire format stays JSON.
2026-10-12 10:41:59 +00:00
..
examples feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
fixtures feat(durable): first coding-agent tool turn (Package 16) 2026-09-29 21:24:32 +02:00
chat-support.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
codemode-bench.ts feat(durable): code mode result lists the script's tool calls 2026-10-11 22:00:44 +00:00
codemode-describe.test.ts feat(durable): deferred tools and the tool_search extension 2026-10-12 08:05:26 +00:00
codemode-models.test.ts feat(durable): code mode listing, tool search, output, models.*, grammar; tool error rule 2026-10-12 00:06:09 +00:00
codemode.test.ts feat(durable): deferred tools and the tool_search extension 2026-10-12 08:05:26 +00:00
document-append-bench.ts fix(chord): append to arrays without walking or copying them twice 2026-10-11 18:04:43 +00:00
env-line-scan.test.ts feat(durable): bounded read tool via BinaryReader.scanLines 2026-10-04 23:15:37 +02:00
env-node-conformance.test.ts feat(durable): FileSystem.watch 2026-10-04 23:15:37 +02:00
env-node-spill.test.ts feat(durable): first coding-agent tool turn (Package 16) 2026-09-29 21:24:32 +02:00
env-node.test.ts fix(durable): wait for killed Windows commands in env test cleanup; fix progress test status 2026-10-04 23:15:37 +02:00
env-truncate.test.ts feat(durable): first coding-agent tool turn (Package 16) 2026-09-29 21:24:32 +02:00
harness-callers.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-cancellation-barrier.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-compaction.test.ts fix(durable): fail a run whose blocking compaction failed; keep compaction failures visible 2026-10-11 15:45:13 +00:00
harness-context.test.ts feat(durable): keep each conversation's context in memory; Durable Object SQLite adapter 2026-10-06 20:58:35 +02:00
harness-conversations.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-events.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-generation-recovery.test.ts fix(durable): lead the model context with the initial system message 2026-10-06 20:55:52 +02:00
harness-generation.test.ts feat(durable): bound the Session's document cache by use (documentRetentionMs) 2026-10-11 08:03:35 +00:00
harness-inbox.test.ts feat(durable): inputs placed as application entries, display-only writes appended at once 2026-10-11 13:12:44 +00:00
harness-input-entries.test.ts feat(durable): inputs placed as application entries, display-only writes appended at once 2026-10-11 13:12:44 +00:00
harness-inspect.test.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
harness-lifecycle.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-live-deltas.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-nested-tools-restart.test.ts feat(durable): one document per nested call; TaskRuntime.ownedTasks() 2026-10-10 15:35:29 +00:00
harness-nested-tools.test.ts feat(durable): one document per nested call; TaskRuntime.ownedTasks() 2026-10-10 15:35:29 +00:00
harness-output-skip.test.ts feat(durable): windowed shell output with counted skips 2026-10-04 23:15:37 +02:00
harness-output.test.ts fix(durable): watcher coverage, growing reads, output BOM and progress defaults 2026-10-05 17:32:22 +02:00
harness-ownership.test.ts feat(durable): inputs placed as application entries, display-only writes appended at once 2026-10-11 13:12:44 +00:00
harness-prompt.test.ts feat(durable): deferred tools and the tool_search extension 2026-10-12 08:05:26 +00:00
harness-registry.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-scheduler-indexes.test.ts fix(durable): drop redundant nested-call parent check; test ownedTasks() with a held child 2026-10-10 17:40:24 +00:00
harness-scheduler-retention.test.ts fix(durable): reject waits that close a wait cycle 2026-10-12 10:15:26 +00:00
harness-storage-failure.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-structured-output.test.ts feat(durable): code mode listing, tool search, output, models.*, grammar; tool error rule 2026-10-12 00:06:09 +00:00
harness-structured.test.ts fix(durable): reject waits that close a wait cycle 2026-10-12 10:15:26 +00:00
harness-submissions.test.ts feat(durable): structured concurrency: task ownership, waiting, completing holds, bottom-up abort (Package 19) 2026-09-30 13:50:29 +02:00
harness-support.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-task-graph.test.ts feat(durable): lifecycle conformance and task graph view (Packages 22, 23) 2026-10-01 09:53:21 +02:00
harness-tasks-recovery.test.ts feat: record response, tool execution, and durable task times 2026-10-06 19:28:54 +02:00
harness-tasks.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-tools-recovery.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-tools.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
harness-view.test.ts fix(durable): persist provider session identities 2026-10-04 00:59:08 +02:00
heap-retained.ts feat(durable): bound the Session's document cache by use (documentRetentionMs) 2026-10-11 08:03:35 +00:00
images-wasm-module.test.ts feat(durable): read returns images, optional Photon image processor 2026-10-09 19:38:02 +00:00
jsonl-storage.test.ts feat(durable): structured concurrency: task ownership, waiting, completing holds, bottom-up abort (Package 19) 2026-09-30 13:50:29 +02:00
memory-storage.test.ts feat(durable): add typed IDs and explicit ownership 2026-09-25 17:58:29 +02:00
nested-images-bench.ts feat(durable): one document per nested call; TaskRuntime.ownedTasks() 2026-10-10 15:35:29 +00:00
nested-tools-bench.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
provider-session-cache-e2e.test.ts fix(durable): persist provider session identities 2026-10-04 00:59:08 +02:00
scheduler-fanout-bench.ts fix(durable): scheduler no longer visits every live task on each pass 2026-10-10 14:56:43 +00:00
scheduler-memory-bench.ts feat(durable): bound the Session's document cache by use (documentRetentionMs) 2026-10-11 08:03:35 +00:00
session-checkpoints-migrations.test.ts feat(durable): lifecycle conformance and task graph view (Packages 22, 23) 2026-10-01 09:53:21 +02:00
session-definitions.test.ts feat(durable): lifecycle conformance and task graph view (Packages 22, 23) 2026-10-01 09:53:21 +02:00
session-document-cache-bench.ts feat(durable): bound the Session's document cache by use (documentRetentionMs) 2026-10-11 08:03:35 +00:00
session-document-retention.test.ts feat(durable): bound the Session's document cache by use (documentRetentionMs) 2026-10-11 08:03:35 +00:00
session-documents.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
session-forks.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
session-states.test.ts feat(chord): replace the facet and service runtime with the chord2 host runtime 2026-10-12 10:41:59 +00:00
session-support.ts feat(durable): bound the Session's document cache by use (documentRetentionMs) 2026-10-11 08:03:35 +00:00
session-tables.test.ts feat(durable): structured concurrency: task ownership, waiting, completing holds, bottom-up abort (Package 19) 2026-09-30 13:50:29 +02:00
session-watches.test.ts feat(durable): add document states and buffered watches 2026-09-28 16:36:31 +02:00
setup-document-retention.ts feat(durable): bound the Session's document cache by use (documentRetentionMs) 2026-10-11 08:03:35 +00:00
spec-usage.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
sqlite-cloudflare.test.ts feat(durable): keep each conversation's context in memory; Durable Object SQLite adapter 2026-10-06 20:58:35 +02:00
sqlite-facade.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
sqlite-migrations.test.ts feat(durable): execute SQLite queries by SQL text and cache statements per connection 2026-09-30 19:49:55 +01:00
sqlite-storage.test.ts feat(durable): structured concurrency: task ownership, waiting, completing holds, bottom-up abort (Package 19) 2026-09-30 13:50:29 +02:00
storage-memory.ts feat(durable): export storage benchmark workloads 2026-09-24 14:26:22 +02:00
storage-runtime-boundary.test.ts feat(durable): first coding-agent tool turn (Package 16) 2026-09-29 21:24:32 +02:00
storage.bench.ts feat(durable): add typed IDs and explicit ownership 2026-09-25 17:58:29 +02:00
system-order-cache-e2e.test.ts feat(durable): nested tool calls, structured output, callers; storage errors end the Session 2026-10-09 17:13:34 +00:00
task-support.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
tool-output-bench.ts feat(durable): extensions and per-conversation agents (Package 21) 2026-10-01 01:28:22 +02:00
tool-search.test.ts feat(durable): deferred tools and the tool_search extension 2026-10-12 08:05:26 +00:00
tools-images.test.ts fix(durable): allow image conversion tests more time on CI 2026-10-11 20:25:00 +02:00
tools-read-differential.test.ts feat(durable): read returns images, optional Photon image processor 2026-10-09 19:38:02 +00:00
tools.test.ts feat(durable): read returns images, optional Photon image processor 2026-10-09 19:38:02 +00:00
types.test.ts feat(durable): inputs placed as application entries, display-only writes appended at once 2026-10-11 13:12:44 +00:00