stitchkit 0.93.0 → 0.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +134 -0
- package/README.md +5 -2
- package/dist/agent-runtime/children-control.d.ts +6 -0
- package/dist/agent-runtime/children-control.d.ts.map +1 -0
- package/dist/agent-runtime/children-spawn.d.ts +6 -0
- package/dist/agent-runtime/children-spawn.d.ts.map +1 -0
- package/dist/agent-runtime/children-state.d.ts +46 -0
- package/dist/agent-runtime/children-state.d.ts.map +1 -0
- package/dist/agent-runtime/children-usage.d.ts +8 -0
- package/dist/agent-runtime/children-usage.d.ts.map +1 -0
- package/dist/agent-runtime/children.d.ts +11 -14
- package/dist/agent-runtime/children.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-contract.d.ts +2 -1
- package/dist/agent-runtime/coding-tool-contract.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tool-types.d.ts +2 -2
- package/dist/agent-runtime/deferred-tool-types.d.ts.map +1 -1
- package/dist/agent-runtime/events.d.ts +1 -1
- package/dist/agent-runtime/events.d.ts.map +1 -1
- package/dist/agent-runtime/managed-tools.d.ts +1 -1
- package/dist/agent-runtime/managed-tools.d.ts.map +1 -1
- package/dist/agent-runtime/observability.d.ts +1 -1
- package/dist/agent-runtime/observability.d.ts.map +1 -1
- package/dist/{agent-runtime-openrouter.d.ts → agent-runtime/openrouter.d.ts} +3 -3
- package/dist/agent-runtime/openrouter.d.ts.map +1 -0
- package/dist/agent-runtime/projections.d.ts +1 -1
- package/dist/agent-runtime/projections.d.ts.map +1 -1
- package/dist/agent-runtime/run-acquisition.d.ts +17 -0
- package/dist/agent-runtime/run-acquisition.d.ts.map +1 -0
- package/dist/agent-runtime/run-execution-state.d.ts +133 -0
- package/dist/agent-runtime/run-execution-state.d.ts.map +1 -0
- package/dist/agent-runtime/run-execution.d.ts +17 -33
- package/dist/agent-runtime/run-execution.d.ts.map +1 -1
- package/dist/agent-runtime/run-failure.d.ts +18 -0
- package/dist/agent-runtime/run-failure.d.ts.map +1 -0
- package/dist/agent-runtime/run-model-attempts.d.ts +6 -0
- package/dist/agent-runtime/run-model-attempts.d.ts.map +1 -0
- package/dist/agent-runtime/run-prompt-history.d.ts +58 -0
- package/dist/agent-runtime/run-prompt-history.d.ts.map +1 -0
- package/dist/agent-runtime/run-provider-ledger.d.ts +26 -0
- package/dist/agent-runtime/run-provider-ledger.d.ts.map +1 -0
- package/dist/agent-runtime/run-stream-parts.d.ts +17 -0
- package/dist/agent-runtime/run-stream-parts.d.ts.map +1 -0
- package/dist/agent-runtime/run-terminal.d.ts +11 -0
- package/dist/agent-runtime/run-terminal.d.ts.map +1 -0
- package/dist/agent-runtime/run-turn-preparation.d.ts +22 -0
- package/dist/agent-runtime/run-turn-preparation.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-admission-gate.d.ts +29 -0
- package/dist/agent-runtime/runtime-admission-gate.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-control.d.ts +9 -0
- package/dist/agent-runtime/runtime-control.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-recovery.d.ts +10 -0
- package/dist/agent-runtime/runtime-recovery.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-state.d.ts +36 -0
- package/dist/agent-runtime/runtime-state.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-submit.d.ts +5 -0
- package/dist/agent-runtime/runtime-submit.d.ts.map +1 -0
- package/dist/agent-runtime/runtime.d.ts +9 -4
- package/dist/agent-runtime/runtime.d.ts.map +1 -1
- package/dist/{agent-runtime-sqlite-bun.d.ts → agent-runtime/sqlite-bun.d.ts} +5 -4
- package/dist/agent-runtime/sqlite-bun.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-events.d.ts +5 -0
- package/dist/agent-runtime/sqlite-events.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-history.d.ts +7 -0
- package/dist/agent-runtime/sqlite-history.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-ledger.d.ts +7 -0
- package/dist/agent-runtime/sqlite-ledger.d.ts.map +1 -0
- package/dist/{agent-runtime-sqlite-node.d.ts → agent-runtime/sqlite-node.d.ts} +5 -4
- package/dist/agent-runtime/sqlite-node.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-reads.d.ts +14 -0
- package/dist/agent-runtime/sqlite-reads.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-rows.d.ts +178 -0
- package/dist/agent-runtime/sqlite-rows.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-schema.d.ts +7 -0
- package/dist/agent-runtime/sqlite-schema.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-transactions.d.ts +25 -0
- package/dist/agent-runtime/sqlite-transactions.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite.d.ts +10 -6
- package/dist/agent-runtime/sqlite.d.ts.map +1 -1
- package/dist/agent-runtime/store-archive.d.ts +16 -0
- package/dist/agent-runtime/store-archive.d.ts.map +1 -0
- package/dist/{testing/agent-store-conformance.d.ts → agent-runtime/store-conformance.d.ts} +2 -2
- package/dist/agent-runtime/store-conformance.d.ts.map +1 -0
- package/dist/agent-runtime/store-create.d.ts +11 -0
- package/dist/agent-runtime/store-create.d.ts.map +1 -0
- package/dist/agent-runtime/{store-driver.d.ts → store-driver-contract.d.ts} +7 -7
- package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -0
- package/dist/agent-runtime/store-events.d.ts +7 -89
- package/dist/agent-runtime/store-events.d.ts.map +1 -1
- package/dist/agent-runtime/store-memory.d.ts +4 -0
- package/dist/agent-runtime/store-memory.d.ts.map +1 -0
- package/dist/agent-runtime/store-mutate.d.ts +13 -0
- package/dist/agent-runtime/store-mutate.d.ts.map +1 -0
- package/dist/agent-runtime/store-purge.d.ts +1 -1
- package/dist/agent-runtime/store-purge.d.ts.map +1 -1
- package/dist/agent-runtime/store-reads.d.ts +29 -0
- package/dist/agent-runtime/store-reads.d.ts.map +1 -0
- package/dist/agent-runtime/store-reduce-history.d.ts +10 -0
- package/dist/agent-runtime/store-reduce-history.d.ts.map +1 -0
- package/dist/agent-runtime/store-reduce-run.d.ts +14 -0
- package/dist/agent-runtime/store-reduce-run.d.ts.map +1 -0
- package/dist/agent-runtime/store-reduce-shared.d.ts +76 -0
- package/dist/agent-runtime/store-reduce-shared.d.ts.map +1 -0
- package/dist/agent-runtime/store-reduce-terminal.d.ts +6 -0
- package/dist/agent-runtime/store-reduce-terminal.d.ts.map +1 -0
- package/dist/agent-runtime/store-reducer.d.ts +24 -0
- package/dist/agent-runtime/store-reducer.d.ts.map +1 -0
- package/dist/agent-runtime/store-snapshot.d.ts +19 -0
- package/dist/agent-runtime/store-snapshot.d.ts.map +1 -0
- package/dist/agent-runtime/store.d.ts +1 -1
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/application/admission.d.ts +1 -1
- package/dist/application/admission.d.ts.map +1 -1
- package/dist/application/events.d.ts +1 -1
- package/dist/application/events.d.ts.map +1 -1
- package/dist/{server → application}/file-state-store.d.ts +1 -1
- package/dist/application/file-state-store.d.ts.map +1 -0
- package/dist/application/health.d.ts +1 -1
- package/dist/application/health.d.ts.map +1 -1
- package/dist/application/kernel-admission.d.ts +8 -0
- package/dist/application/kernel-admission.d.ts.map +1 -0
- package/dist/application/kernel-contract.d.ts +142 -0
- package/dist/application/kernel-contract.d.ts.map +1 -0
- package/dist/application/kernel-resource-context.d.ts +24 -0
- package/dist/application/kernel-resource-context.d.ts.map +1 -0
- package/dist/application/kernel-restart.d.ts +5 -0
- package/dist/application/kernel-restart.d.ts.map +1 -0
- package/dist/application/kernel-rollback.d.ts +4 -0
- package/dist/application/kernel-rollback.d.ts.map +1 -0
- package/dist/application/kernel-shutdown.d.ts +6 -0
- package/dist/application/kernel-shutdown.d.ts.map +1 -0
- package/dist/application/kernel-start.d.ts +20 -0
- package/dist/application/kernel-start.d.ts.map +1 -0
- package/dist/application/kernel-state.d.ts +116 -0
- package/dist/application/kernel-state.d.ts.map +1 -0
- package/dist/application/kernel.d.ts +9 -140
- package/dist/application/kernel.d.ts.map +1 -1
- package/dist/application/latest-sink.d.ts +1 -1
- package/dist/application/latest-sink.d.ts.map +1 -1
- package/dist/application/opentelemetry.d.ts +1 -1
- package/dist/application/opentelemetry.d.ts.map +1 -1
- package/dist/application/watch-hub.d.ts +2 -2
- package/dist/application/watch-hub.d.ts.map +1 -1
- package/dist/browser/client-multipart.d.ts +1 -1
- package/dist/browser/client-multipart.d.ts.map +1 -1
- package/dist/browser/client-url.d.ts +1 -1
- package/dist/browser/client-url.d.ts.map +1 -1
- package/dist/browser/client.d.ts +1 -1
- package/dist/browser/client.d.ts.map +1 -1
- package/dist/browser/contract-stream.d.ts +1 -1
- package/dist/browser/contract-stream.d.ts.map +1 -1
- package/dist/browser/http.d.ts +1 -1
- package/dist/browser/http.d.ts.map +1 -1
- package/dist/browser/resumable.d.ts +1 -28
- package/dist/browser/resumable.d.ts.map +1 -1
- package/dist/browser/retained.d.ts.map +1 -0
- package/dist/browser/socket-io.d.ts +23 -1
- package/dist/browser/socket-io.d.ts.map +1 -1
- package/dist/browser/stream.d.ts +14 -2
- package/dist/browser/stream.d.ts.map +1 -1
- package/dist/contract/define.d.ts +72 -65
- package/dist/contract/define.d.ts.map +1 -1
- package/dist/{internal/errors.d.ts → contract/normalize.d.ts} +3 -39
- package/dist/contract/normalize.d.ts.map +1 -0
- package/dist/contract/tool-view.d.ts +135 -0
- package/dist/contract/tool-view.d.ts.map +1 -0
- package/dist/declaration/declaration.d.ts.map +1 -0
- package/dist/{agent-runtime/durability-contract.d.ts → durability/contract.d.ts} +2 -2
- package/dist/durability/contract.d.ts.map +1 -0
- package/dist/{agent-runtime/durability.d.ts → durability/engine.d.ts} +4 -4
- package/dist/durability/engine.d.ts.map +1 -0
- package/dist/durability/events.d.ts +101 -0
- package/dist/durability/events.d.ts.map +1 -0
- package/dist/{agent-runtime/durability-json.d.ts → durability/json.d.ts} +1 -1
- package/dist/durability/json.d.ts.map +1 -0
- package/dist/{agent-runtime/durability-ledger.d.ts → durability/ledger.d.ts} +2 -2
- package/dist/durability/ledger.d.ts.map +1 -0
- package/dist/{agent-runtime/durability-scheduler.d.ts → durability/scheduler.d.ts} +2 -2
- package/dist/durability/scheduler.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/browser.d.ts +5 -0
- package/dist/entrypoints/agent-runtime/browser.d.ts.map +1 -0
- package/dist/{agent-runtime-browser.js → entrypoints/agent-runtime/browser.js} +3 -3
- package/dist/{agent-runtime-coding-tools.d.ts → entrypoints/agent-runtime/coding-tools.d.ts} +2 -2
- package/dist/entrypoints/agent-runtime/coding-tools.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/coding-tools.js +22 -0
- package/dist/{agent-runtime-harness.d.ts → entrypoints/agent-runtime/harness.d.ts} +2 -2
- package/dist/entrypoints/agent-runtime/harness.d.ts.map +1 -0
- package/dist/{agent-runtime-harness.js → entrypoints/agent-runtime/harness.js} +24 -25
- package/dist/entrypoints/agent-runtime/openrouter.d.ts +2 -0
- package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -0
- package/dist/{agent-runtime-openrouter.js → entrypoints/agent-runtime/openrouter.js} +3 -3
- package/dist/{agent-runtime-sandbox.d.ts → entrypoints/agent-runtime/sandbox.d.ts} +5 -5
- package/dist/entrypoints/agent-runtime/sandbox.d.ts.map +1 -0
- package/dist/{agent-runtime-sandbox.js → entrypoints/agent-runtime/sandbox.js} +11 -12
- package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts +2 -0
- package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts.map +1 -0
- package/dist/{agent-runtime-sqlite-bun.js → entrypoints/agent-runtime/sqlite/bun.js} +8 -6
- package/dist/entrypoints/agent-runtime/sqlite/node.d.ts +2 -0
- package/dist/entrypoints/agent-runtime/sqlite/node.d.ts.map +1 -0
- package/dist/{agent-runtime-sqlite-node.js → entrypoints/agent-runtime/sqlite/node.js} +8 -6
- package/dist/entrypoints/agent-runtime/testing.d.ts +4 -0
- package/dist/entrypoints/agent-runtime/testing.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/testing.js +1084 -0
- package/dist/{agent-runtime.d.ts → entrypoints/agent-runtime.d.ts} +41 -37
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -0
- package/dist/{agent-runtime.js → entrypoints/agent-runtime.js} +408 -366
- package/dist/{application-diagnostic-journal.d.ts → entrypoints/application/diagnostic-journal.d.ts} +2 -2
- package/dist/entrypoints/application/diagnostic-journal.d.ts.map +1 -0
- package/dist/{application-diagnostic-journal.js → entrypoints/application/diagnostic-journal.js} +3 -3
- package/dist/{application-grammy.d.ts → entrypoints/application/grammy.d.ts} +2 -2
- package/dist/entrypoints/application/grammy.d.ts.map +1 -0
- package/dist/{application-grammy.js → entrypoints/application/grammy.js} +2 -2
- package/dist/{application-opentelemetry.d.ts → entrypoints/application/opentelemetry.d.ts} +2 -2
- package/dist/entrypoints/application/opentelemetry.d.ts.map +1 -0
- package/dist/{application-opentelemetry.js → entrypoints/application/opentelemetry.js} +4 -4
- package/dist/{application-schemas.d.ts → entrypoints/application/schemas.d.ts} +2 -2
- package/dist/entrypoints/application/schemas.d.ts.map +1 -0
- package/dist/{application-schemas.js → entrypoints/application/schemas.js} +2 -2
- package/dist/{application.d.ts → entrypoints/application.d.ts} +22 -21
- package/dist/entrypoints/application.d.ts.map +1 -0
- package/dist/{application.js → entrypoints/application.js} +24 -22
- package/dist/entrypoints/bin/upgrade-cli.d.ts.map +1 -0
- package/dist/{upgrade-cli.js → entrypoints/bin/upgrade-cli.js} +3 -3
- package/dist/{cli.d.ts → entrypoints/cli.d.ts} +15 -15
- package/dist/entrypoints/cli.d.ts.map +1 -0
- package/dist/{cli.js → entrypoints/cli.js} +30 -32
- package/dist/entrypoints/contract.d.ts +9 -0
- package/dist/entrypoints/contract.d.ts.map +1 -0
- package/dist/{contract/index.js → entrypoints/contract.js} +14 -6
- package/dist/entrypoints/declaration.d.ts +2 -0
- package/dist/entrypoints/declaration.d.ts.map +1 -0
- package/dist/{declaration.js → entrypoints/declaration.js} +1 -1
- package/dist/{files.d.ts → entrypoints/files.d.ts} +2 -2
- package/dist/entrypoints/files.d.ts.map +1 -0
- package/dist/{files.js → entrypoints/files.js} +3 -3
- package/dist/{geo.d.ts → entrypoints/geo.d.ts} +1 -1
- package/dist/entrypoints/geo.d.ts.map +1 -0
- package/dist/{geo.js → entrypoints/geo.js} +4 -4
- package/dist/entrypoints/google.d.ts +2 -0
- package/dist/entrypoints/google.d.ts.map +1 -0
- package/dist/{google.js → entrypoints/google.js} +1 -1
- package/dist/{index.d.ts → entrypoints/index.d.ts} +14 -13
- package/dist/entrypoints/index.d.ts.map +1 -0
- package/dist/{index.js → entrypoints/index.js} +99 -33
- package/dist/{live.d.ts → entrypoints/live.d.ts} +4 -4
- package/dist/entrypoints/live.d.ts.map +1 -0
- package/dist/{live.js → entrypoints/live.js} +6 -4
- package/dist/{node.d.ts → entrypoints/node.d.ts} +11 -11
- package/dist/entrypoints/node.d.ts.map +1 -0
- package/dist/{node.js → entrypoints/node.js} +20 -16
- package/dist/entrypoints/oauth.d.ts +2 -0
- package/dist/entrypoints/oauth.d.ts.map +1 -0
- package/dist/{oauth.js → entrypoints/oauth.js} +3 -3
- package/dist/{observability/index.d.ts → entrypoints/observability.d.ts} +11 -11
- package/dist/entrypoints/observability.d.ts.map +1 -0
- package/dist/{observability/index.js → entrypoints/observability.js} +9 -11
- package/dist/entrypoints/primitives.d.ts +3 -0
- package/dist/entrypoints/primitives.d.ts.map +1 -0
- package/dist/{primitives.js → entrypoints/primitives.js} +1 -6
- package/dist/{react.d.ts → entrypoints/react.d.ts} +4 -4
- package/dist/entrypoints/react.d.ts.map +1 -0
- package/dist/{react.js → entrypoints/react.js} +3 -3
- package/dist/{release.d.ts → entrypoints/release.d.ts} +4 -4
- package/dist/entrypoints/release.d.ts.map +1 -0
- package/dist/{release.js → entrypoints/release.js} +1 -1
- package/dist/{remote.d.ts → entrypoints/remote.d.ts} +1 -1
- package/dist/entrypoints/remote.d.ts.map +1 -0
- package/dist/entrypoints/remote.js +66 -0
- package/dist/{server/index.d.ts → entrypoints/server.d.ts} +35 -34
- package/dist/entrypoints/server.d.ts.map +1 -0
- package/dist/{server/index.js → entrypoints/server.js} +294 -244
- package/dist/{telegram.d.ts → entrypoints/telegram.d.ts} +2 -2
- package/dist/entrypoints/telegram.d.ts.map +1 -0
- package/dist/{telegram.js → entrypoints/telegram.js} +1 -1
- package/dist/entrypoints/testing.d.ts +9 -0
- package/dist/entrypoints/testing.d.ts.map +1 -0
- package/dist/{testing.js → entrypoints/testing.js} +80 -919
- package/dist/{tools/connections/index.d.ts → entrypoints/tools/connections.d.ts} +6 -7
- package/dist/entrypoints/tools/connections.d.ts.map +1 -0
- package/dist/{tools/connections/index.js → entrypoints/tools/connections.js} +7 -4
- package/dist/{tools-contract.d.ts → entrypoints/tools/contract.d.ts} +5 -5
- package/dist/entrypoints/tools/contract.d.ts.map +1 -0
- package/dist/{tools-contract.js → entrypoints/tools/contract.js} +4 -4
- package/dist/{tool-invoker.d.ts → entrypoints/tools/invoker.d.ts} +2 -2
- package/dist/entrypoints/tools/invoker.d.ts.map +1 -0
- package/dist/entrypoints/tools/invoker.js +20 -0
- package/dist/entrypoints/tools.d.ts +51 -0
- package/dist/entrypoints/tools.d.ts.map +1 -0
- package/dist/{tools.js → entrypoints/tools.js} +1787 -1751
- package/dist/{tracking-server.d.ts → entrypoints/tracking/server.d.ts} +8 -8
- package/dist/entrypoints/tracking/server.d.ts.map +1 -0
- package/dist/{tracking.d.ts → entrypoints/tracking.d.ts} +15 -15
- package/dist/entrypoints/tracking.d.ts.map +1 -0
- package/dist/{tracking.js → entrypoints/tracking.js} +5 -8
- package/dist/google/google.d.ts.map +1 -0
- package/dist/{index-a916km3r.js → index-0b1ess5e.js} +6 -13
- package/dist/{index-zwkgfq1s.js → index-1nd48tm9.js} +113 -118
- package/dist/{index-7zbps32p.js → index-1zbbzgfh.js} +2 -2
- package/dist/{index-mzvgxp0n.js → index-2cr1cqhn.js} +16 -4
- package/dist/{index-f9mb610r.js → index-35mh5bhj.js} +2 -2
- package/dist/index-48ffdxgk.js +6 -0
- package/dist/index-58k4fp34.js +1023 -0
- package/dist/{index-p13mwz16.js → index-83bdg97s.js} +1 -1
- package/dist/index-97ac4gph.js +3618 -0
- package/dist/{index-kw9t5ayn.js → index-cq4qfycf.js} +5 -5
- package/dist/{index-7gnkny4z.js → index-d9pk3td4.js} +1 -1
- package/dist/{index-e42wzzz5.js → index-dcpdvjsc.js} +7 -7
- package/dist/{index-h9etkkyk.js → index-dydjcp8z.js} +102 -25
- package/dist/{index-sr93cwf9.js → index-e2z3ahw9.js} +2 -2
- package/dist/{index-yewwh1w4.js → index-e87kakm4.js} +96 -11
- package/dist/{index-cby4ar3v.js → index-eqqvgdb3.js} +1 -1
- package/dist/index-fdp6hdxn.js +942 -0
- package/dist/{index-0a349c33.js → index-gyr48nzg.js} +125 -198
- package/dist/{index-wnfk50r0.js → index-h6eeys1v.js} +1 -1
- package/dist/{index-77fekveh.js → index-hffjpmq9.js} +1 -15
- package/dist/{index-yn8remb1.js → index-j05z5gn4.js} +50 -14
- package/dist/index-k5hsfc3j.js +31 -0
- package/dist/{index-fq77yfzc.js → index-kj2wbeta.js} +1 -1
- package/dist/index-kvj7f4hq.js +39 -0
- package/dist/{index-4fpa9dy2.js → index-m9zn6cpq.js} +2 -2
- package/dist/{index-2na0qrfn.js → index-mdzh02yc.js} +7 -7
- package/dist/{index-ywd0y6m1.js → index-mkm15s49.js} +1 -1
- package/dist/index-mp5sn43f.js +1084 -0
- package/dist/{index-3bmnp41g.js → index-n6hxg8as.js} +507 -419
- package/dist/index-ngfhvfpd.js +30 -0
- package/dist/{index-e0znv5gn.js → index-p5r7qpdd.js} +2 -93
- package/dist/{index-n0f51dfn.js → index-p81267c2.js} +608 -549
- package/dist/{index-wc4x00bn.js → index-qwhynv6x.js} +1 -1
- package/dist/index-r7nmqpsg.js +154 -0
- package/dist/{index-bx75zwt7.js → index-rewkc2hj.js} +5 -4
- package/dist/{index-9f8ztey6.js → index-sees8yf8.js} +2 -2
- package/dist/{index-vjpvjqpn.js → index-v38qyerb.js} +16 -2
- package/dist/{index-2c2bjw3s.js → index-vcvkq30w.js} +3 -3
- package/dist/index-wqgjfstn.js +18 -0
- package/dist/{index-f477k430.js → index-x4799c19.js} +1 -1
- package/dist/{index-cxqhvq21.js → index-xnj9bgxe.js} +142 -129
- package/dist/index-xsqjkha9.js +281 -0
- package/dist/{index-6kyksz9y.js → index-yw4fzmdz.js} +1 -1
- package/dist/{index-3xwxfj4z.js → index-zeemqhqx.js} +1 -1
- package/dist/{index-tmwcrptx.js → index-zfrhfn82.js} +1 -1
- package/dist/index-znfs20ss.js +98 -0
- package/dist/internal/backoff.d.ts +29 -0
- package/dist/internal/backoff.d.ts.map +1 -0
- package/dist/internal/canonical-json.d.ts +21 -11
- package/dist/internal/canonical-json.d.ts.map +1 -1
- package/dist/internal/channel.d.ts.map +1 -0
- package/dist/internal/logger.d.ts.map +1 -0
- package/dist/internal/request.d.ts.map +1 -0
- package/dist/internal/stable-digest.d.ts +0 -43
- package/dist/internal/stable-digest.d.ts.map +1 -1
- package/dist/internal/typed.d.ts +0 -8
- package/dist/internal/typed.d.ts.map +1 -1
- package/dist/internal/zod-issues.d.ts +38 -0
- package/dist/internal/zod-issues.d.ts.map +1 -0
- package/dist/{tools/json-schema-dialect.d.ts → json-schema/dialect.d.ts} +1 -1
- package/dist/json-schema/dialect.d.ts.map +1 -0
- package/dist/json-schema/json-schema.d.ts.map +1 -0
- package/dist/live/watch-delta.d.ts.map +1 -1
- package/dist/{oauth.d.ts → oauth/authorization-code.d.ts} +1 -1
- package/dist/oauth/authorization-code.d.ts.map +1 -0
- package/dist/observability/audit.d.ts +2 -2
- package/dist/observability/audit.d.ts.map +1 -1
- package/dist/observability/bounded-logger.d.ts +1 -1
- package/dist/observability/bounded-logger.d.ts.map +1 -1
- package/dist/{internal/observability-sink.d.ts → observability/bounded-sink.d.ts} +2 -2
- package/dist/observability/bounded-sink.d.ts.map +1 -0
- package/dist/observability/context.d.ts +1 -1
- package/dist/observability/context.d.ts.map +1 -1
- package/dist/observability/event.d.ts +1 -1
- package/dist/observability/event.d.ts.map +1 -1
- package/dist/observability/work.d.ts +1 -1
- package/dist/observability/work.d.ts.map +1 -1
- package/dist/primitives/audit.d.ts +1 -1
- package/dist/primitives/audit.d.ts.map +1 -1
- package/dist/primitives/export-operation.d.ts +4 -2
- package/dist/primitives/export-operation.d.ts.map +1 -1
- package/dist/realtime/socket.d.ts +1 -1
- package/dist/realtime/socket.d.ts.map +1 -1
- package/dist/server/context-contribution.d.ts +1 -1
- package/dist/server/context-contribution.d.ts.map +1 -1
- package/dist/server/context.d.ts +2 -2
- package/dist/server/context.d.ts.map +1 -1
- package/dist/server/contract-method.d.ts +15 -0
- package/dist/server/contract-method.d.ts.map +1 -0
- package/dist/server/contract-stream.d.ts +1 -1
- package/dist/server/contract-stream.d.ts.map +1 -1
- package/dist/server/create.d.ts +8 -0
- package/dist/server/create.d.ts.map +1 -1
- package/dist/server/endpoint-dispatch.d.ts +10 -0
- package/dist/server/endpoint-dispatch.d.ts.map +1 -0
- package/dist/server/endpoint-response.d.ts +18 -0
- package/dist/server/endpoint-response.d.ts.map +1 -0
- package/dist/server/error-dispatch.d.ts +17 -1
- package/dist/server/error-dispatch.d.ts.map +1 -1
- package/dist/server/error-hook.d.ts +2 -2
- package/dist/server/error-hook.d.ts.map +1 -1
- package/dist/server/handler-state.d.ts +44 -0
- package/dist/server/handler-state.d.ts.map +1 -0
- package/dist/server/implement.d.ts +1 -1
- package/dist/server/implement.d.ts.map +1 -1
- package/dist/server/middleware/auth.d.ts +1 -1
- package/dist/server/middleware/auth.d.ts.map +1 -1
- package/dist/server/middleware/cors.d.ts +17 -0
- package/dist/server/middleware/cors.d.ts.map +1 -1
- package/dist/server/middleware/trust-fence.d.ts +1 -1
- package/dist/server/middleware/trust-fence.d.ts.map +1 -1
- package/dist/server/multipart.d.ts +1 -1
- package/dist/server/multipart.d.ts.map +1 -1
- package/dist/{tools/oauth-metadata.d.ts → server/oauth/metadata.d.ts} +2 -2
- package/dist/server/oauth/metadata.d.ts.map +1 -0
- package/dist/{tools/oauth-provider.d.ts → server/oauth/provider.d.ts} +2 -2
- package/dist/server/oauth/provider.d.ts.map +1 -0
- package/dist/server/realtime.d.ts +1 -1
- package/dist/server/realtime.d.ts.map +1 -1
- package/dist/server/request-completion.d.ts +16 -0
- package/dist/server/request-completion.d.ts.map +1 -0
- package/dist/server/response-metadata.d.ts +1 -1
- package/dist/server/response-metadata.d.ts.map +1 -1
- package/dist/server/route-table.d.ts +9 -0
- package/dist/server/route-table.d.ts.map +1 -0
- package/dist/server/stream.d.ts +0 -13
- package/dist/server/stream.d.ts.map +1 -1
- package/dist/server/types.d.ts +7 -4
- package/dist/server/types.d.ts.map +1 -1
- package/dist/testing/handler-clients.d.ts +31 -0
- package/dist/testing/handler-clients.d.ts.map +1 -0
- package/dist/testing/managed-resource-conformance-scenarios.d.ts.map +1 -1
- package/dist/testing/surface-conformance.d.ts +2 -1
- package/dist/testing/surface-conformance.d.ts.map +1 -1
- package/dist/testing/surface-manifest.d.ts +30 -4
- package/dist/testing/surface-manifest.d.ts.map +1 -1
- package/dist/tools/{cli-args.d.ts → cli/args.d.ts} +1 -1
- package/dist/tools/cli/args.d.ts.map +1 -0
- package/dist/tools/{cli-checkpoint.d.ts → cli/checkpoint.d.ts} +1 -1
- package/dist/tools/cli/checkpoint.d.ts.map +1 -0
- package/dist/tools/{cli-command.d.ts → cli/command.d.ts} +4 -4
- package/dist/tools/cli/command.d.ts.map +1 -0
- package/dist/tools/{cli.d.ts → cli/config.d.ts} +5 -9
- package/dist/tools/cli/config.d.ts.map +1 -0
- package/dist/tools/cli/create-cli.d.ts +36 -0
- package/dist/tools/cli/create-cli.d.ts.map +1 -0
- package/dist/tools/cli/download.d.ts +8 -0
- package/dist/tools/cli/download.d.ts.map +1 -0
- package/dist/tools/{cli-format.d.ts → cli/format.d.ts} +2 -2
- package/dist/tools/cli/format.d.ts.map +1 -0
- package/dist/tools/cli/help.d.ts +24 -0
- package/dist/tools/cli/help.d.ts.map +1 -0
- package/dist/tools/{cli-installer.d.ts → cli/installer.d.ts} +2 -2
- package/dist/tools/cli/installer.d.ts.map +1 -0
- package/dist/tools/{cli-invoke.d.ts → cli/invoke.d.ts} +8 -8
- package/dist/tools/cli/invoke.d.ts.map +1 -0
- package/dist/tools/cli/io.d.ts +10 -0
- package/dist/tools/cli/io.d.ts.map +1 -0
- package/dist/tools/cli/managed-surface.d.ts +30 -0
- package/dist/tools/cli/managed-surface.d.ts.map +1 -0
- package/dist/tools/{cli-manifest.d.ts → cli/manifest.d.ts} +1 -1
- package/dist/tools/cli/manifest.d.ts.map +1 -0
- package/dist/tools/{cli-policy.d.ts → cli/policy.d.ts} +2 -2
- package/dist/tools/cli/policy.d.ts.map +1 -0
- package/dist/tools/cli/prepare.d.ts +14 -0
- package/dist/tools/cli/prepare.d.ts.map +1 -0
- package/dist/tools/{cli-profile.d.ts → cli/profile.d.ts} +2 -2
- package/dist/tools/cli/profile.d.ts.map +1 -0
- package/dist/tools/cli/run-managed.d.ts +5 -0
- package/dist/tools/cli/run-managed.d.ts.map +1 -0
- package/dist/tools/cli/run-native.d.ts +9 -0
- package/dist/tools/cli/run-native.d.ts.map +1 -0
- package/dist/tools/cli/session.d.ts +40 -0
- package/dist/tools/cli/session.d.ts.map +1 -0
- package/dist/tools/{cli-signature.d.ts → cli/signature.d.ts} +2 -2
- package/dist/tools/cli/signature.d.ts.map +1 -0
- package/dist/tools/{cli-stream.d.ts → cli/stream.d.ts} +4 -4
- package/dist/tools/cli/stream.d.ts.map +1 -0
- package/dist/tools/{cli-update.d.ts → cli/update.d.ts} +3 -3
- package/dist/tools/cli/update.d.ts.map +1 -0
- package/dist/tools/{cli-view.d.ts → cli/view.d.ts} +2 -2
- package/dist/tools/cli/view.d.ts.map +1 -0
- package/dist/tools/{cli-wait.d.ts → cli/wait.d.ts} +2 -2
- package/dist/tools/cli/wait.d.ts.map +1 -0
- package/dist/tools/connections/runtime.d.ts +1 -1
- package/dist/tools/connections/runtime.d.ts.map +1 -1
- package/dist/tools/connections/types.d.ts +3 -3
- package/dist/tools/connections/types.d.ts.map +1 -1
- package/dist/tools/durability-context.d.ts +1 -1
- package/dist/tools/durability-context.d.ts.map +1 -1
- package/dist/tools/execute.d.ts +30 -3
- package/dist/tools/execute.d.ts.map +1 -1
- package/dist/tools/internal/surface-projector.d.ts +8 -6
- package/dist/tools/internal/surface-projector.d.ts.map +1 -1
- package/dist/tools/internal/tool-view.d.ts +41 -0
- package/dist/tools/internal/tool-view.d.ts.map +1 -0
- package/dist/tools/invoker.d.ts +11 -3
- package/dist/tools/invoker.d.ts.map +1 -1
- package/dist/tools/list-names.d.ts +3 -3
- package/dist/tools/list-names.d.ts.map +1 -1
- package/dist/tools/manifest.d.ts +2 -2
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools/{mcp-app.d.ts → mcp/app.d.ts} +1 -1
- package/dist/tools/mcp/app.d.ts.map +1 -0
- package/dist/tools/{mcp-catalog.d.ts → mcp/catalog.d.ts} +2 -2
- package/dist/tools/mcp/catalog.d.ts.map +1 -0
- package/dist/tools/{mcp-handler.d.ts → mcp/handler.d.ts} +5 -5
- package/dist/tools/mcp/handler.d.ts.map +1 -0
- package/dist/tools/{mcp.d.ts → mcp/mount.d.ts} +9 -9
- package/dist/tools/mcp/mount.d.ts.map +1 -0
- package/dist/tools/{mcp-prepare.d.ts → mcp/prepare.d.ts} +9 -9
- package/dist/tools/mcp/prepare.d.ts.map +1 -0
- package/dist/tools/{mcp-progress.d.ts → mcp/progress.d.ts} +2 -2
- package/dist/tools/mcp/progress.d.ts.map +1 -0
- package/dist/tools/mcp/register.d.ts +35 -0
- package/dist/tools/mcp/register.d.ts.map +1 -0
- package/dist/tools/{mcp-round-policy.d.ts → mcp/round-policy.d.ts} +2 -2
- package/dist/tools/mcp/round-policy.d.ts.map +1 -0
- package/dist/tools/{mcp-round.d.ts → mcp/round.d.ts} +4 -4
- package/dist/tools/mcp/round.d.ts.map +1 -0
- package/dist/tools/mcp/runtime-tools.d.ts +24 -0
- package/dist/tools/mcp/runtime-tools.d.ts.map +1 -0
- package/dist/tools/{mcp-stdio-signals.d.ts → mcp/stdio-signals.d.ts} +3 -3
- package/dist/tools/mcp/stdio-signals.d.ts.map +1 -0
- package/dist/tools/{mcp-stdio.d.ts → mcp/stdio.d.ts} +4 -4
- package/dist/tools/mcp/stdio.d.ts.map +1 -0
- package/dist/tools/{mcp-trace.d.ts → mcp/trace.d.ts} +1 -1
- package/dist/tools/mcp/trace.d.ts.map +1 -0
- package/dist/tools/mount.d.ts +12 -7
- package/dist/tools/mount.d.ts.map +1 -1
- package/dist/tools/native-definition.d.ts +3 -3
- package/dist/tools/native-definition.d.ts.map +1 -1
- package/dist/tools/operations/async-operation-binding-types.d.ts +127 -0
- package/dist/tools/operations/async-operation-binding-types.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-binding.d.ts +28 -0
- package/dist/tools/operations/async-operation-binding.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-canonical-types.d.ts +110 -0
- package/dist/tools/operations/async-operation-canonical-types.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-canonical.d.ts +7 -0
- package/dist/tools/operations/async-operation-canonical.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-contract.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-id.d.ts +23 -0
- package/dist/tools/operations/async-operation-id.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-runtime-tools.d.ts +40 -0
- package/dist/tools/operations/async-operation-runtime-tools.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-runtime-types.d.ts +68 -0
- package/dist/tools/operations/async-operation-runtime-types.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-runtime.d.ts +5 -0
- package/dist/tools/operations/async-operation-runtime.d.ts.map +1 -0
- package/dist/tools/{define-wait-tool.d.ts → operations/define-wait-tool.d.ts} +2 -2
- package/dist/tools/operations/define-wait-tool.d.ts.map +1 -0
- package/dist/tools/operations/mount-wait.d.ts.map +1 -0
- package/dist/tools/operations/wait-core.d.ts.map +1 -0
- package/dist/tools/remote.d.ts +1 -1
- package/dist/tools/remote.d.ts.map +1 -1
- package/dist/tools/runtime-tool.d.ts +11 -4
- package/dist/tools/runtime-tool.d.ts.map +1 -1
- package/dist/tools/schema/coerce.d.ts.map +1 -0
- package/dist/tools/schema/flatten-join.d.ts.map +1 -0
- package/dist/tools/schema/flatten.d.ts.map +1 -0
- package/dist/tools/schema/portable-formats.d.ts.map +1 -0
- package/dist/tools/{presentation.d.ts → schema/presentation.d.ts} +2 -0
- package/dist/tools/schema/presentation.d.ts.map +1 -0
- package/dist/tools/schema/schema.d.ts.map +1 -0
- package/dist/tools/schema/untyped-properties.d.ts.map +1 -0
- package/dist/tools/surface.d.ts +2 -3
- package/dist/tools/surface.d.ts.map +1 -1
- package/dist/tools/toolkit.d.ts +4 -4
- package/dist/tools/toolkit.d.ts.map +1 -1
- package/dist/tools/{define-download-tool.d.ts → transfer/define-download-tool.d.ts} +4 -4
- package/dist/tools/transfer/define-download-tool.d.ts.map +1 -0
- package/dist/tools/{define-upload-tool.d.ts → transfer/define-upload-tool.d.ts} +3 -3
- package/dist/tools/transfer/define-upload-tool.d.ts.map +1 -0
- package/dist/tools/{define-view-file-tool.d.ts → transfer/define-view-file-tool.d.ts} +2 -2
- package/dist/tools/transfer/define-view-file-tool.d.ts.map +1 -0
- package/dist/tools/{download-core.d.ts → transfer/download-core.d.ts} +2 -2
- package/dist/tools/transfer/download-core.d.ts.map +1 -0
- package/dist/tools/{managed-file-error.d.ts → transfer/managed-file-error.d.ts} +1 -1
- package/dist/tools/transfer/managed-file-error.d.ts.map +1 -0
- package/dist/tools/{mount-download.d.ts → transfer/mount-download.d.ts} +1 -1
- package/dist/tools/transfer/mount-download.d.ts.map +1 -0
- package/dist/tools/{mount-upload.d.ts → transfer/mount-upload.d.ts} +1 -1
- package/dist/tools/transfer/mount-upload.d.ts.map +1 -0
- package/dist/tools/transfer/native-result.d.ts.map +1 -0
- package/dist/tools/{upload-core.d.ts → transfer/upload-core.d.ts} +1 -1
- package/dist/tools/transfer/upload-core.d.ts.map +1 -0
- package/dist/tools/transfer/view-file-contract.d.ts.map +1 -0
- package/dist/tools/{view-file.d.ts → transfer/view-file.d.ts} +1 -1
- package/dist/tools/transfer/view-file.d.ts.map +1 -0
- package/dist/tools/transports.d.ts +1 -1
- package/dist/tools/transports.d.ts.map +1 -1
- package/dist/tracking/contract.d.ts +1 -1
- package/dist/tracking/contract.d.ts.map +1 -1
- package/llms/agent-runtime-browser.txt +33 -0
- package/llms/agent-runtime-coding-tools.txt +58 -0
- package/llms/agent-runtime-harness.txt +45 -0
- package/llms/agent-runtime-openrouter.txt +22 -0
- package/llms/agent-runtime-sandbox.txt +159 -0
- package/llms/agent-runtime-sqlite-bun.txt +29 -0
- package/llms/agent-runtime-sqlite-node.txt +26 -0
- package/llms/agent-runtime-testing.txt +30 -0
- package/llms/agent-runtime.2.txt +550 -0
- package/llms/agent-runtime.3.txt +311 -0
- package/llms/agent-runtime.txt +893 -0
- package/llms/application-diagnostic-journal.txt +30 -0
- package/llms/application-grammy.txt +27 -0
- package/llms/application-opentelemetry.txt +27 -0
- package/llms/application-schemas.txt +42 -0
- package/llms/application.2.txt +223 -0
- package/llms/application.txt +1144 -0
- package/llms/cli.txt +977 -0
- package/llms/contract.txt +606 -0
- package/llms/declaration.txt +286 -0
- package/llms/files.txt +30 -0
- package/llms/geo.txt +114 -0
- package/llms/google.txt +27 -0
- package/llms/live.txt +471 -0
- package/llms/node.txt +43 -0
- package/llms/oauth.txt +136 -0
- package/llms/observability.txt +893 -0
- package/llms/primitives.txt +158 -0
- package/llms/react.txt +184 -0
- package/llms/release.txt +176 -0
- package/llms/remote.txt +25 -0
- package/llms/server.2.txt +361 -0
- package/llms/server.3.txt +1031 -0
- package/llms/server.4.txt +905 -0
- package/llms/server.5.txt +250 -0
- package/llms/server.txt +996 -0
- package/llms/stitchkit.2.txt +836 -0
- package/llms/stitchkit.3.txt +147 -0
- package/llms/stitchkit.txt +260 -0
- package/llms/telegram.txt +30 -0
- package/llms/testing.txt +676 -0
- package/llms/tools-connections.txt +45 -0
- package/llms/tools-contract.txt +9 -0
- package/llms/tools-invoker.txt +9 -0
- package/llms/tools.2.txt +838 -0
- package/llms/tools.txt +1004 -0
- package/llms/tracking-server.txt +32 -0
- package/llms/tracking.txt +263 -0
- package/llms/upgrading-0.37.0-0.50.0.txt +947 -0
- package/llms/upgrading-0.53.0-0.67.0.txt +1174 -0
- package/llms/upgrading-0.68.0-0.94.0.txt +1159 -0
- package/llms/upgrading.txt +215 -0
- package/llms-full.txt +214 -75
- package/llms.txt +54 -5
- package/package.json +84 -83
- package/dist/agent-runtime/durability-contract.d.ts.map +0 -1
- package/dist/agent-runtime/durability-json.d.ts.map +0 -1
- package/dist/agent-runtime/durability-ledger.d.ts.map +0 -1
- package/dist/agent-runtime/durability-scheduler.d.ts.map +0 -1
- package/dist/agent-runtime/durability.d.ts.map +0 -1
- package/dist/agent-runtime/store-driver.d.ts.map +0 -1
- package/dist/agent-runtime-browser.d.ts +0 -5
- package/dist/agent-runtime-browser.d.ts.map +0 -1
- package/dist/agent-runtime-coding-tools.d.ts.map +0 -1
- package/dist/agent-runtime-coding-tools.js +0 -23
- package/dist/agent-runtime-harness.d.ts.map +0 -1
- package/dist/agent-runtime-openrouter.d.ts.map +0 -1
- package/dist/agent-runtime-sandbox.d.ts.map +0 -1
- package/dist/agent-runtime-sqlite-bun.d.ts.map +0 -1
- package/dist/agent-runtime-sqlite-node.d.ts.map +0 -1
- package/dist/agent-runtime-testing.d.ts +0 -3
- package/dist/agent-runtime-testing.d.ts.map +0 -1
- package/dist/agent-runtime-testing.js +0 -156
- package/dist/agent-runtime.d.ts.map +0 -1
- package/dist/application/channel.d.ts.map +0 -1
- package/dist/application-diagnostic-journal.d.ts.map +0 -1
- package/dist/application-grammy.d.ts.map +0 -1
- package/dist/application-opentelemetry.d.ts.map +0 -1
- package/dist/application-schemas.d.ts.map +0 -1
- package/dist/application.d.ts.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/contract/index.d.ts +0 -8
- package/dist/contract/index.d.ts.map +0 -1
- package/dist/declaration.d.ts.map +0 -1
- package/dist/files.d.ts.map +0 -1
- package/dist/geo.d.ts.map +0 -1
- package/dist/google.d.ts.map +0 -1
- package/dist/index-0j3vcp5m.js +0 -28
- package/dist/index-a11g2kry.js +0 -866
- package/dist/index-cnyk6te3.js +0 -77
- package/dist/index-fadnxwna.js +0 -1046
- package/dist/index-hrbajay7.js +0 -1196
- package/dist/index-s8cnx02s.js +0 -90
- package/dist/index-v5573g1k.js +0 -142
- package/dist/index-vk3kq9sb.js +0 -3344
- package/dist/index.d.ts.map +0 -1
- package/dist/internal/errors.d.ts.map +0 -1
- package/dist/internal/observability-sink.d.ts.map +0 -1
- package/dist/live.d.ts.map +0 -1
- package/dist/logger.d.ts.map +0 -1
- package/dist/node.d.ts.map +0 -1
- package/dist/oauth.d.ts.map +0 -1
- package/dist/observability/index.d.ts.map +0 -1
- package/dist/primitives.d.ts +0 -3
- package/dist/primitives.d.ts.map +0 -1
- package/dist/react.d.ts.map +0 -1
- package/dist/release.d.ts.map +0 -1
- package/dist/remote.d.ts.map +0 -1
- package/dist/remote.js +0 -88
- package/dist/retained.d.ts.map +0 -1
- package/dist/server/file-state-store.d.ts.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/request.d.ts.map +0 -1
- package/dist/telegram.d.ts.map +0 -1
- package/dist/testing/agent-store-conformance.d.ts.map +0 -1
- package/dist/testing.d.ts +0 -39
- package/dist/testing.d.ts.map +0 -1
- package/dist/tool-invoker.d.ts.map +0 -1
- package/dist/tool-invoker.js +0 -21
- package/dist/tools/async-operation-contract.d.ts.map +0 -1
- package/dist/tools/async-operation.d.ts +0 -332
- package/dist/tools/async-operation.d.ts.map +0 -1
- package/dist/tools/cli-args.d.ts.map +0 -1
- package/dist/tools/cli-checkpoint.d.ts.map +0 -1
- package/dist/tools/cli-command.d.ts.map +0 -1
- package/dist/tools/cli-format.d.ts.map +0 -1
- package/dist/tools/cli-installer.d.ts.map +0 -1
- package/dist/tools/cli-invoke.d.ts.map +0 -1
- package/dist/tools/cli-manifest.d.ts.map +0 -1
- package/dist/tools/cli-policy.d.ts.map +0 -1
- package/dist/tools/cli-profile.d.ts.map +0 -1
- package/dist/tools/cli-signature.d.ts.map +0 -1
- package/dist/tools/cli-stream.d.ts.map +0 -1
- package/dist/tools/cli-update.d.ts.map +0 -1
- package/dist/tools/cli-view.d.ts.map +0 -1
- package/dist/tools/cli-wait.d.ts.map +0 -1
- package/dist/tools/cli.d.ts.map +0 -1
- package/dist/tools/coerce.d.ts.map +0 -1
- package/dist/tools/connections/index.d.ts.map +0 -1
- package/dist/tools/define-download-tool.d.ts.map +0 -1
- package/dist/tools/define-upload-tool.d.ts.map +0 -1
- package/dist/tools/define-view-file-tool.d.ts.map +0 -1
- package/dist/tools/define-wait-tool.d.ts.map +0 -1
- package/dist/tools/download-core.d.ts.map +0 -1
- package/dist/tools/flatten-join.d.ts.map +0 -1
- package/dist/tools/flatten.d.ts.map +0 -1
- package/dist/tools/json-schema-dialect.d.ts.map +0 -1
- package/dist/tools/json-schema.d.ts.map +0 -1
- package/dist/tools/managed-file-error.d.ts.map +0 -1
- package/dist/tools/mcp-app.d.ts.map +0 -1
- package/dist/tools/mcp-catalog.d.ts.map +0 -1
- package/dist/tools/mcp-handler.d.ts.map +0 -1
- package/dist/tools/mcp-prepare.d.ts.map +0 -1
- package/dist/tools/mcp-progress.d.ts.map +0 -1
- package/dist/tools/mcp-round-policy.d.ts.map +0 -1
- package/dist/tools/mcp-round.d.ts.map +0 -1
- package/dist/tools/mcp-stdio-signals.d.ts.map +0 -1
- package/dist/tools/mcp-stdio.d.ts.map +0 -1
- package/dist/tools/mcp-trace.d.ts.map +0 -1
- package/dist/tools/mcp.d.ts.map +0 -1
- package/dist/tools/mount-download.d.ts.map +0 -1
- package/dist/tools/mount-upload.d.ts.map +0 -1
- package/dist/tools/mount-wait.d.ts.map +0 -1
- package/dist/tools/native-mcp.d.ts +0 -20
- package/dist/tools/native-mcp.d.ts.map +0 -1
- package/dist/tools/native-result.d.ts.map +0 -1
- package/dist/tools/oauth-metadata.d.ts.map +0 -1
- package/dist/tools/oauth-provider.d.ts.map +0 -1
- package/dist/tools/portable-formats.d.ts.map +0 -1
- package/dist/tools/presentation.d.ts.map +0 -1
- package/dist/tools/schema.d.ts.map +0 -1
- package/dist/tools/untyped-properties.d.ts.map +0 -1
- package/dist/tools/upload-core.d.ts.map +0 -1
- package/dist/tools/view-file-contract.d.ts.map +0 -1
- package/dist/tools/view-file.d.ts.map +0 -1
- package/dist/tools/wait-core.d.ts.map +0 -1
- package/dist/tools-contract.d.ts.map +0 -1
- package/dist/tools.d.ts +0 -50
- package/dist/tools.d.ts.map +0 -1
- package/dist/tracking-server.d.ts.map +0 -1
- package/dist/tracking.d.ts.map +0 -1
- package/dist/upgrade-cli.d.ts.map +0 -1
- package/dist/{retained.d.ts → browser/retained.d.ts} +0 -0
- package/dist/{declaration.d.ts → declaration/declaration.d.ts} +0 -0
- package/dist/{upgrade-cli.d.ts → entrypoints/bin/upgrade-cli.d.ts} +0 -0
- package/dist/{tracking-server.js → entrypoints/tracking/server.js} +0 -0
- package/dist/{google.d.ts → google/google.d.ts} +0 -0
- package/dist/{index-pq95qkbf.js → index-5jm36zv1.js} +0 -0
- package/dist/{index-actkayzn.js → index-70yj2ebz.js} +3 -3
- /package/dist/{application → internal}/channel.d.ts +0 -0
- /package/dist/{logger.d.ts → internal/logger.d.ts} +0 -0
- /package/dist/{server → internal}/request.d.ts +0 -0
- /package/dist/{tools → json-schema}/json-schema.d.ts +0 -0
- /package/dist/tools/{async-operation-contract.d.ts → operations/async-operation-contract.d.ts} +0 -0
- /package/dist/tools/{mount-wait.d.ts → operations/mount-wait.d.ts} +0 -0
- /package/dist/tools/{wait-core.d.ts → operations/wait-core.d.ts} +0 -0
- /package/dist/tools/{coerce.d.ts → schema/coerce.d.ts} +0 -0
- /package/dist/tools/{flatten-join.d.ts → schema/flatten-join.d.ts} +0 -0
- /package/dist/tools/{flatten.d.ts → schema/flatten.d.ts} +0 -0
- /package/dist/tools/{portable-formats.d.ts → schema/portable-formats.d.ts} +0 -0
- /package/dist/tools/{schema.d.ts → schema/schema.d.ts} +0 -0
- /package/dist/tools/{untyped-properties.d.ts → schema/untyped-properties.d.ts} +0 -0
- /package/dist/tools/{native-result.d.ts → transfer/native-result.d.ts} +0 -0
- /package/dist/tools/{view-file-contract.d.ts → transfer/view-file-contract.d.ts} +0 -0
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
renderAgentStateSlots,
|
|
25
25
|
repairedSearchCall,
|
|
26
26
|
selectAgentHistory
|
|
27
|
-
} from "
|
|
28
|
-
import"
|
|
27
|
+
} from "../index-97ac4gph.js";
|
|
28
|
+
import"../index-83bdg97s.js";
|
|
29
29
|
import {
|
|
30
30
|
AgentAdmissionEventSchema,
|
|
31
31
|
AgentAttemptResetEventSchema,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
AgentTransientDeltaEventSchema,
|
|
43
43
|
advanceAgentRuntimeEventCursor,
|
|
44
44
|
agentDurableEventId
|
|
45
|
-
} from "
|
|
45
|
+
} from "../index-y64k3s0h.js";
|
|
46
46
|
import {
|
|
47
47
|
AgentModelCapabilitySchema,
|
|
48
48
|
AgentModelCatalogEntrySchema,
|
|
@@ -59,12 +59,26 @@ import {
|
|
|
59
59
|
defineModelRegistry,
|
|
60
60
|
searchAgentModelCatalog,
|
|
61
61
|
validateAgentModelSnapshot
|
|
62
|
-
} from "
|
|
62
|
+
} from "../index-mqv3b5rh.js";
|
|
63
63
|
import {
|
|
64
64
|
AgentConversationMessagePageSchema,
|
|
65
65
|
AgentConversationPageSchema,
|
|
66
66
|
AgentConversationSummarySchema
|
|
67
|
-
} from "
|
|
67
|
+
} from "../index-crykmqkr.js";
|
|
68
|
+
import {
|
|
69
|
+
createBoundedSinkManager
|
|
70
|
+
} from "../index-h6eeys1v.js";
|
|
71
|
+
import {
|
|
72
|
+
AgentSandboxGradeSchema,
|
|
73
|
+
AgentSandboxRestrictionSchema,
|
|
74
|
+
missingSandboxRestrictions,
|
|
75
|
+
probeAgentProcessSandbox,
|
|
76
|
+
recordAgentSandboxProbe,
|
|
77
|
+
refuseUnknownSpillReference
|
|
78
|
+
} from "../index-qmy6zq75.js";
|
|
79
|
+
import {
|
|
80
|
+
createMemoryAgentRuntimeStore
|
|
81
|
+
} from "../index-xsqjkha9.js";
|
|
68
82
|
import {
|
|
69
83
|
ACTIVE_AGENT_RUN_STATES,
|
|
70
84
|
AgentAdmissionReceiptSchema,
|
|
@@ -76,9 +90,8 @@ import {
|
|
|
76
90
|
AgentSeedReceiptSchema,
|
|
77
91
|
AgentStoredRunSchema,
|
|
78
92
|
createAgentRuntimeStore,
|
|
79
|
-
createMemoryAgentRuntimeStore,
|
|
80
93
|
purgeAgentConversation
|
|
81
|
-
} from "
|
|
94
|
+
} from "../index-58k4fp34.js";
|
|
82
95
|
import {
|
|
83
96
|
AcceptInputAndAssignRunSchema,
|
|
84
97
|
AcquireAgentRunSchema,
|
|
@@ -110,7 +123,7 @@ import {
|
|
|
110
123
|
encodeAgentConversationArchive,
|
|
111
124
|
isAssistantHistoryEvidence,
|
|
112
125
|
isCompleteAgentHistoryTurn
|
|
113
|
-
} from "
|
|
126
|
+
} from "../index-1nd48tm9.js";
|
|
114
127
|
import {
|
|
115
128
|
AgentAssistantPlaceholderSchema,
|
|
116
129
|
AgentControlPartSchema,
|
|
@@ -147,55 +160,41 @@ import {
|
|
|
147
160
|
AgentUsageSchema,
|
|
148
161
|
AgentUsageValueSchema,
|
|
149
162
|
runStateForTerminalReason
|
|
150
|
-
} from "
|
|
151
|
-
import {
|
|
152
|
-
createBoundedSinkManager
|
|
153
|
-
} from "./index-wnfk50r0.js";
|
|
154
|
-
import {
|
|
155
|
-
AgentSandboxGradeSchema,
|
|
156
|
-
AgentSandboxRestrictionSchema,
|
|
157
|
-
missingSandboxRestrictions,
|
|
158
|
-
probeAgentProcessSandbox,
|
|
159
|
-
recordAgentSandboxProbe,
|
|
160
|
-
refuseUnknownSpillReference
|
|
161
|
-
} from "./index-qmy6zq75.js";
|
|
163
|
+
} from "../index-gtj3zc53.js";
|
|
162
164
|
import {
|
|
163
165
|
buildToolManifest,
|
|
164
166
|
mountAgent
|
|
165
|
-
} from "
|
|
167
|
+
} from "../index-dcpdvjsc.js";
|
|
166
168
|
import {
|
|
167
169
|
DURABILITY_STEP_EVENT_KIND,
|
|
168
170
|
ParkAbortedError,
|
|
169
171
|
ParkRecordDecodeError,
|
|
170
172
|
StepAbortedError,
|
|
171
173
|
StepResultDecodeError,
|
|
172
|
-
StepResultNotSerializableError
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
import"
|
|
176
|
-
import"
|
|
177
|
-
import"
|
|
178
|
-
import"
|
|
179
|
-
import"./index-f9mb610r.js";
|
|
180
|
-
import"./index-e0znv5gn.js";
|
|
181
|
-
import"./index-0a349c33.js";
|
|
182
|
-
import"./index-rxfy4cq7.js";
|
|
183
|
-
import"./index-6k1937bx.js";
|
|
174
|
+
StepResultNotSerializableError
|
|
175
|
+
} from "../index-cq4qfycf.js";
|
|
176
|
+
import"../index-vcvkq30w.js";
|
|
177
|
+
import"../index-2cr1cqhn.js";
|
|
178
|
+
import"../index-j05z5gn4.js";
|
|
179
|
+
import"../index-zfrhfn82.js";
|
|
180
|
+
import"../index-35mh5bhj.js";
|
|
184
181
|
import {
|
|
185
182
|
childSpan,
|
|
186
183
|
createTraceContext
|
|
187
|
-
} from "
|
|
188
|
-
import"
|
|
189
|
-
import {
|
|
190
|
-
defineRuntimeTool
|
|
191
|
-
} from "./index-vjpvjqpn.js";
|
|
192
|
-
import"./index-h9etkkyk.js";
|
|
193
|
-
import"./index-cby4ar3v.js";
|
|
194
|
-
import"./index-2vtcmrj9.js";
|
|
195
|
-
import"./index-kzfs85xp.js";
|
|
184
|
+
} from "../index-zcgf3gqf.js";
|
|
185
|
+
import"../index-1zbbzgfh.js";
|
|
196
186
|
import {
|
|
187
|
+
defineRuntimeTool,
|
|
197
188
|
executableAgentRuntimeTools
|
|
198
|
-
} from "
|
|
189
|
+
} from "../index-v38qyerb.js";
|
|
190
|
+
import"../index-dydjcp8z.js";
|
|
191
|
+
import"../index-eqqvgdb3.js";
|
|
192
|
+
import"../index-znfs20ss.js";
|
|
193
|
+
import"../index-p5r7qpdd.js";
|
|
194
|
+
import"../index-2vtcmrj9.js";
|
|
195
|
+
import"../index-k5hsfc3j.js";
|
|
196
|
+
import"../index-kzfs85xp.js";
|
|
197
|
+
import"../index-hffjpmq9.js";
|
|
199
198
|
|
|
200
199
|
// src/agent-runtime/child-tools.ts
|
|
201
200
|
import { z as z2 } from "zod";
|
|
@@ -208,9 +207,6 @@ function defineAgentTool(definition) {
|
|
|
208
207
|
};
|
|
209
208
|
}
|
|
210
209
|
|
|
211
|
-
// src/agent-runtime/children.ts
|
|
212
|
-
import { randomUUID } from "node:crypto";
|
|
213
|
-
|
|
214
210
|
// src/agent-runtime/children-contract.ts
|
|
215
211
|
import { z } from "zod";
|
|
216
212
|
var AgentChildBudgetSchema = z.object({
|
|
@@ -409,359 +405,406 @@ function createChildBlockingRelay(input) {
|
|
|
409
405
|
const respondToChildBlocking = (parentConversationId, decision) => serializeBlocking(() => respondToChildBlockingInner(parentConversationId, decision));
|
|
410
406
|
return { retireChildBlocking, listChildBlocking, respondToChildBlocking };
|
|
411
407
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
let lastBoundary = performance.now();
|
|
408
|
+
|
|
409
|
+
// src/agent-runtime/children-state.ts
|
|
410
|
+
function createChildManagerState(config) {
|
|
416
411
|
return {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
const elapsedMs = Math.max(0, performance.now() - lastBoundary);
|
|
424
|
-
lastBoundary = performance.now();
|
|
425
|
-
const usage = normalizeSdkUsage(step.usage);
|
|
426
|
-
const cost = input.cost?.({ usage: step.usage });
|
|
427
|
-
const boundary = await input.manager.recordStepUsage({
|
|
428
|
-
childConversationId: input.childConversationId,
|
|
429
|
-
usage: { ...usage, ...cost && { cost } },
|
|
430
|
-
elapsedMs
|
|
431
|
-
});
|
|
432
|
-
return boundary.stop;
|
|
433
|
-
}
|
|
412
|
+
config,
|
|
413
|
+
database: config.sqlite.database,
|
|
414
|
+
store: config.sqlite.store,
|
|
415
|
+
now: config.now ?? (() => new Date),
|
|
416
|
+
handles: new Map,
|
|
417
|
+
settlements: new Map
|
|
434
418
|
};
|
|
435
419
|
}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
]);
|
|
466
|
-
} finally {
|
|
467
|
-
if (timer)
|
|
468
|
-
clearTimeout(timer);
|
|
469
|
-
}
|
|
470
|
-
};
|
|
471
|
-
const listChildren = (parentConversationId) => database.prepare(`
|
|
420
|
+
function currentState(state, childConversationId) {
|
|
421
|
+
const raw = state.database.prepare("SELECT state FROM stitchkit_agent_runtime_children WHERE child_conversation_id = ?").get(childConversationId);
|
|
422
|
+
return raw === null || raw === undefined ? undefined : AgentChildStateSchema.parse(raw.state);
|
|
423
|
+
}
|
|
424
|
+
function isLive(state, childConversationId) {
|
|
425
|
+
const current = currentState(state, childConversationId);
|
|
426
|
+
return current === "spawned" || current === "running";
|
|
427
|
+
}
|
|
428
|
+
function settleable(state, childConversationId) {
|
|
429
|
+
const current = currentState(state, childConversationId);
|
|
430
|
+
return current === undefined || current === "spawned" || current === "running";
|
|
431
|
+
}
|
|
432
|
+
var STOP_BOUND_MS = 1e4;
|
|
433
|
+
async function bounded(work, fallback) {
|
|
434
|
+
let timer;
|
|
435
|
+
try {
|
|
436
|
+
return await Promise.race([
|
|
437
|
+
Promise.resolve(work),
|
|
438
|
+
new Promise((resolve) => {
|
|
439
|
+
timer = setTimeout(() => resolve(fallback), STOP_BOUND_MS);
|
|
440
|
+
})
|
|
441
|
+
]);
|
|
442
|
+
} finally {
|
|
443
|
+
if (timer)
|
|
444
|
+
clearTimeout(timer);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
function listChildren(state, parentConversationId) {
|
|
448
|
+
return state.database.prepare(`
|
|
472
449
|
SELECT parent_conversation_id, child_conversation_id, seed_upto_seq, state,
|
|
473
450
|
budget_payload, usage_payload, result_reference, created_at, updated_at
|
|
474
451
|
FROM stitchkit_agent_runtime_children
|
|
475
452
|
WHERE parent_conversation_id = ? ORDER BY created_at, child_conversation_id
|
|
476
453
|
`).all(parentConversationId).map(parseChild);
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
454
|
+
}
|
|
455
|
+
async function updateState(state, record, next, resultReference, details = {}) {
|
|
456
|
+
const updatedAt = state.now().toISOString();
|
|
457
|
+
const payload = {
|
|
458
|
+
childConversationId: record.childConversationId,
|
|
459
|
+
state: next,
|
|
460
|
+
...resultReference && { resultReference },
|
|
461
|
+
...details
|
|
462
|
+
};
|
|
463
|
+
const childPayload = {
|
|
464
|
+
parentConversationId: record.parentConversationId,
|
|
465
|
+
state: next,
|
|
466
|
+
...resultReference && { resultReference },
|
|
467
|
+
...details
|
|
468
|
+
};
|
|
469
|
+
const write = (audience) => state.config.sqlite.transaction(async (scope) => {
|
|
470
|
+
scope.database.prepare(`
|
|
493
471
|
UPDATE stitchkit_agent_runtime_children
|
|
494
472
|
SET state = ?, result_reference = ?, updated_at = ? WHERE child_conversation_id = ?
|
|
495
|
-
`).run(
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
473
|
+
`).run(next, resultReference ?? null, updatedAt, record.childConversationId);
|
|
474
|
+
if (audience === "both") {
|
|
475
|
+
await scope.appendEvent({
|
|
476
|
+
conversationId: record.parentConversationId,
|
|
477
|
+
kind: "child/state",
|
|
478
|
+
occurredAt: updatedAt,
|
|
479
|
+
payload
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
if (audience !== "row") {
|
|
483
|
+
await scope.appendEvent({
|
|
484
|
+
conversationId: record.childConversationId,
|
|
485
|
+
kind: "child/state",
|
|
486
|
+
occurredAt: updatedAt,
|
|
487
|
+
payload: childPayload
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
try {
|
|
492
|
+
await write("both");
|
|
493
|
+
} catch (error) {
|
|
494
|
+
if (!(error instanceof AgentConversationPurgedError))
|
|
495
|
+
throw error;
|
|
513
496
|
try {
|
|
514
|
-
await write("
|
|
515
|
-
} catch (
|
|
516
|
-
if (!(
|
|
517
|
-
throw
|
|
518
|
-
|
|
519
|
-
await write("child");
|
|
520
|
-
} catch (inner) {
|
|
521
|
-
if (!(inner instanceof AgentConversationPurgedError))
|
|
522
|
-
throw inner;
|
|
523
|
-
await write("row");
|
|
524
|
-
}
|
|
497
|
+
await write("child");
|
|
498
|
+
} catch (inner) {
|
|
499
|
+
if (!(inner instanceof AgentConversationPurgedError))
|
|
500
|
+
throw inner;
|
|
501
|
+
await write("row");
|
|
525
502
|
}
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function activeChild(state, parentConversationId, childConversationId) {
|
|
506
|
+
const child = listChildren(state, parentConversationId).find((record) => record.childConversationId === childConversationId);
|
|
507
|
+
if (!child)
|
|
508
|
+
throw new TypeError("Unknown child conversation for this parent");
|
|
509
|
+
if (child.state !== "running" && child.state !== "spawned") {
|
|
510
|
+
throw new TypeError("Child conversation is not active");
|
|
511
|
+
}
|
|
512
|
+
const handle = state.handles.get(childConversationId);
|
|
513
|
+
if (!handle)
|
|
514
|
+
throw new TypeError("Child host handle is unavailable");
|
|
515
|
+
return { child, handle };
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
// src/agent-runtime/children-control.ts
|
|
519
|
+
async function stopChildren(state, retireChildBlocking, parentConversationId) {
|
|
520
|
+
const records = listChildren(state, parentConversationId).filter((record) => record.state === "spawned" || record.state === "running");
|
|
521
|
+
await Promise.all(records.map((record) => stopChild(state, retireChildBlocking, record)));
|
|
522
|
+
}
|
|
523
|
+
async function stopChild(state, retireChildBlocking, record) {
|
|
524
|
+
const startedAt = performance.now();
|
|
525
|
+
const handle = state.handles.get(record.childConversationId);
|
|
526
|
+
const reachable = handle ? handle.reachable ? await bounded(handle.reachable(), false) : true : false;
|
|
527
|
+
if (!reachable) {
|
|
528
|
+
if (isLive(state, record.childConversationId)) {
|
|
529
|
+
await updateState(state, record, "lost", undefined, {
|
|
530
|
+
stopDurationMs: Math.max(0, performance.now() - startedAt)
|
|
553
531
|
});
|
|
554
|
-
events.push(...page.items);
|
|
555
|
-
if (page.nextSeq === undefined)
|
|
556
|
-
break;
|
|
557
|
-
cursor = page.nextSeq;
|
|
558
532
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
533
|
+
retireChildBlocking(record.childConversationId);
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
await bounded(Promise.resolve(handle?.stopPolicy("parent-stopped")).then(() => true), false);
|
|
537
|
+
if (!isLive(state, record.childConversationId))
|
|
538
|
+
return;
|
|
539
|
+
await updateState(state, record, "stopped", undefined, {
|
|
540
|
+
stopDurationMs: Math.max(0, performance.now() - startedAt)
|
|
541
|
+
});
|
|
542
|
+
retireChildBlocking(record.childConversationId);
|
|
543
|
+
}
|
|
544
|
+
async function sendMessage(state, parentConversationId, childConversationId, message) {
|
|
545
|
+
const { handle } = activeChild(state, parentConversationId, childConversationId);
|
|
546
|
+
if (!handle.sendMessage)
|
|
547
|
+
throw new TypeError("Child host does not support messages");
|
|
548
|
+
await handle.sendMessage(message);
|
|
549
|
+
await state.store.appendEvent({
|
|
550
|
+
conversationId: parentConversationId,
|
|
551
|
+
kind: "child/state",
|
|
552
|
+
payload: { childConversationId, action: "message-sent" }
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
async function interruptChild(state, retireChildBlocking, parentConversationId, childConversationId) {
|
|
556
|
+
const { child, handle } = activeChild(state, parentConversationId, childConversationId);
|
|
557
|
+
const startedAt = performance.now();
|
|
558
|
+
await handle.stopPolicy("parent-interrupt");
|
|
559
|
+
await updateState(state, child, "stopped", undefined, {
|
|
560
|
+
policyName: "parent-interrupt",
|
|
561
|
+
stopDurationMs: Math.max(0, performance.now() - startedAt)
|
|
562
|
+
});
|
|
563
|
+
retireChildBlocking(childConversationId);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// src/agent-runtime/children-spawn.ts
|
|
567
|
+
import { randomUUID } from "node:crypto";
|
|
568
|
+
async function grantedBudget(state, request) {
|
|
569
|
+
const requestedBudget = AgentChildBudgetSchema.parse(request.budget);
|
|
570
|
+
const remaining = state.config.remainingBudget ? AgentChildBudgetSchema.parse(await state.config.remainingBudget(request.parentConversationId)) : undefined;
|
|
571
|
+
const bounded2 = (requested, available) => {
|
|
572
|
+
if (requested === undefined)
|
|
573
|
+
return available;
|
|
574
|
+
if (available === undefined)
|
|
575
|
+
return requested;
|
|
576
|
+
return Math.min(requested, available);
|
|
577
|
+
};
|
|
578
|
+
const usd = bounded2(requestedBudget.usd, remaining?.usd);
|
|
579
|
+
const tokens = bounded2(requestedBudget.tokens, remaining?.tokens);
|
|
580
|
+
const milliseconds = bounded2(requestedBudget.milliseconds, remaining?.milliseconds);
|
|
581
|
+
return AgentChildBudgetSchema.parse({
|
|
582
|
+
...usd !== undefined && { usd },
|
|
583
|
+
...tokens !== undefined && { tokens },
|
|
584
|
+
...milliseconds !== undefined && { milliseconds }
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
async function readSeedEvents(state, request) {
|
|
588
|
+
const events = [];
|
|
589
|
+
let cursor = 1;
|
|
590
|
+
for (;; ) {
|
|
591
|
+
const page = await state.store.readEvents({
|
|
575
592
|
conversationId: request.parentConversationId,
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
});
|
|
580
|
-
const handle = await input.spawn({
|
|
581
|
-
parentConversationId: record.parentConversationId,
|
|
582
|
-
childConversationId,
|
|
583
|
-
seedArchive,
|
|
584
|
-
childInput: request.childInput,
|
|
585
|
-
budget
|
|
586
|
-
});
|
|
587
|
-
handle.result.catch(() => {
|
|
588
|
-
return;
|
|
593
|
+
fromSeq: cursor,
|
|
594
|
+
...request.seedUptoSeq !== undefined && { toSeq: request.seedUptoSeq },
|
|
595
|
+
limit: 1000
|
|
589
596
|
});
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
597
|
+
events.push(...page.items);
|
|
598
|
+
if (page.nextSeq === undefined)
|
|
599
|
+
break;
|
|
600
|
+
cursor = page.nextSeq;
|
|
601
|
+
}
|
|
602
|
+
return events;
|
|
603
|
+
}
|
|
604
|
+
async function persistSpawn(state, record, handle) {
|
|
605
|
+
const { childConversationId, createdAt } = record;
|
|
606
|
+
try {
|
|
607
|
+
await state.config.sqlite.transaction(async (scope) => {
|
|
608
|
+
scope.database.prepare(`
|
|
593
609
|
INSERT INTO stitchkit_agent_runtime_children (
|
|
594
610
|
parent_conversation_id, child_conversation_id, seed_upto_seq, state,
|
|
595
611
|
budget_payload, usage_payload, result_reference, created_at, updated_at
|
|
596
612
|
) VALUES (?, ?, ?, ?, ?, ?, NULL, ?, ?)
|
|
597
613
|
`).run(record.parentConversationId, record.childConversationId, record.seedUptoSeq, record.state, JSON.stringify(record.budget), JSON.stringify(record.usage), createdAt, createdAt);
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
614
|
+
await scope.appendEvent({
|
|
615
|
+
conversationId: record.parentConversationId,
|
|
616
|
+
kind: "child/spawned",
|
|
617
|
+
occurredAt: createdAt,
|
|
618
|
+
payload: {
|
|
619
|
+
childConversationId,
|
|
620
|
+
seedUptoSeq: record.seedUptoSeq,
|
|
621
|
+
budget: record.budget
|
|
622
|
+
}
|
|
604
623
|
});
|
|
605
|
-
await updateState(record, "running");
|
|
606
|
-
} catch (cause) {
|
|
607
|
-
try {
|
|
608
|
-
await handle.stopPolicy("spawn-persistence-failed");
|
|
609
|
-
} catch (cleanup) {
|
|
610
|
-
throw new AggregateError([cause, cleanup], "Child persistence and stop both failed");
|
|
611
|
-
}
|
|
612
|
-
try {
|
|
613
|
-
if (isLive(childConversationId))
|
|
614
|
-
await updateState(record, "lost", undefined, { reason: "spawn-persistence-failed" });
|
|
615
|
-
} catch (cleanup) {
|
|
616
|
-
throw new AggregateError([cause, cleanup], "Child stopped but persistence reconciliation failed");
|
|
617
|
-
}
|
|
618
|
-
throw cause;
|
|
619
|
-
}
|
|
620
|
-
handles.set(childConversationId, handle);
|
|
621
|
-
const settlement = handle.result.then(async (result) => {
|
|
622
|
-
handles.delete(childConversationId);
|
|
623
|
-
retireChildBlocking(childConversationId);
|
|
624
|
-
if (settleable(childConversationId)) {
|
|
625
|
-
await updateState(record, "finished", result.resultReference);
|
|
626
|
-
}
|
|
627
|
-
}, async () => {
|
|
628
|
-
handles.delete(childConversationId);
|
|
629
|
-
retireChildBlocking(childConversationId);
|
|
630
|
-
if (settleable(childConversationId))
|
|
631
|
-
await updateState(record, "stopped");
|
|
632
|
-
});
|
|
633
|
-
settlements.set(childConversationId, settlement);
|
|
634
|
-
settlement.catch(() => {
|
|
635
|
-
return;
|
|
636
624
|
});
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
FROM stitchkit_agent_runtime_children WHERE child_conversation_id = ?
|
|
644
|
-
`).get(request.childConversationId);
|
|
645
|
-
if (raw === null || raw === undefined)
|
|
646
|
-
throw new TypeError("Unknown child conversation");
|
|
647
|
-
const record = parseChild(raw);
|
|
648
|
-
const measured = usageNumbers(request.usage);
|
|
649
|
-
if (record.budget.tokens !== undefined && measured.tokens === undefined) {
|
|
650
|
-
throw new TypeError("Cannot enforce child token budget without measured token usage");
|
|
625
|
+
await updateState(state, record, "running");
|
|
626
|
+
} catch (cause) {
|
|
627
|
+
try {
|
|
628
|
+
await handle.stopPolicy("spawn-persistence-failed");
|
|
629
|
+
} catch (cleanup) {
|
|
630
|
+
throw new AggregateError([cause, cleanup], "Child persistence and stop both failed");
|
|
651
631
|
}
|
|
652
|
-
|
|
653
|
-
|
|
632
|
+
try {
|
|
633
|
+
if (isLive(state, childConversationId))
|
|
634
|
+
await updateState(state, record, "lost", undefined, {
|
|
635
|
+
reason: "spawn-persistence-failed"
|
|
636
|
+
});
|
|
637
|
+
} catch (cleanup) {
|
|
638
|
+
throw new AggregateError([cause, cleanup], "Child stopped but persistence reconciliation failed");
|
|
654
639
|
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
const stop = record.budget.tokens !== undefined && usage.tokens >= record.budget.tokens || record.budget.usd !== undefined && usage.usd >= record.budget.usd || record.budget.milliseconds !== undefined && usage.milliseconds >= record.budget.milliseconds;
|
|
667
|
-
const handle = handles.get(request.childConversationId);
|
|
668
|
-
let enforced = false;
|
|
669
|
-
if (stop && handle) {
|
|
670
|
-
enforced = await bounded(Promise.resolve().then(() => handle.stopPolicy("child-budget")).then(() => true, () => false), false);
|
|
640
|
+
throw cause;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
function watchSettlement(state, record, handle, retireChildBlocking) {
|
|
644
|
+
const { childConversationId } = record;
|
|
645
|
+
state.handles.set(childConversationId, handle);
|
|
646
|
+
const settlement = handle.result.then(async (result) => {
|
|
647
|
+
state.handles.delete(childConversationId);
|
|
648
|
+
retireChildBlocking(childConversationId);
|
|
649
|
+
if (settleable(state, childConversationId)) {
|
|
650
|
+
await updateState(state, record, "finished", result.resultReference);
|
|
671
651
|
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
652
|
+
}, async () => {
|
|
653
|
+
state.handles.delete(childConversationId);
|
|
654
|
+
retireChildBlocking(childConversationId);
|
|
655
|
+
if (settleable(state, childConversationId))
|
|
656
|
+
await updateState(state, record, "stopped");
|
|
657
|
+
});
|
|
658
|
+
state.settlements.set(childConversationId, settlement);
|
|
659
|
+
settlement.catch(() => {
|
|
660
|
+
return;
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
async function spawnChild(state, retireChildBlocking, request) {
|
|
664
|
+
const budget = await grantedBudget(state, request);
|
|
665
|
+
const events = await readSeedEvents(state, request);
|
|
666
|
+
const seedUptoSeq = events.at(-1)?.seq ?? 0;
|
|
667
|
+
const childConversationId = request.childConversationId ?? randomUUID();
|
|
668
|
+
const createdAt = state.now().toISOString();
|
|
669
|
+
const record = AgentChildRecordSchema.parse({
|
|
670
|
+
parentConversationId: request.parentConversationId,
|
|
671
|
+
childConversationId,
|
|
672
|
+
seedUptoSeq,
|
|
673
|
+
state: "spawned",
|
|
674
|
+
budget,
|
|
675
|
+
usage: { tokens: 0, usd: 0, milliseconds: 0 },
|
|
676
|
+
createdAt,
|
|
677
|
+
updatedAt: createdAt
|
|
678
|
+
});
|
|
679
|
+
const seedArchive = encodeAgentConversationArchive({
|
|
680
|
+
format: "stitchkit.agent-conversation",
|
|
681
|
+
formatVersion: 1,
|
|
682
|
+
conversationId: request.parentConversationId,
|
|
683
|
+
events,
|
|
684
|
+
projections: [],
|
|
685
|
+
spills: []
|
|
686
|
+
});
|
|
687
|
+
const handle = await state.config.spawn({
|
|
688
|
+
parentConversationId: record.parentConversationId,
|
|
689
|
+
childConversationId,
|
|
690
|
+
seedArchive,
|
|
691
|
+
childInput: request.childInput,
|
|
692
|
+
budget
|
|
693
|
+
});
|
|
694
|
+
handle.result.catch(() => {
|
|
695
|
+
return;
|
|
696
|
+
});
|
|
697
|
+
await persistSpawn(state, record, handle);
|
|
698
|
+
watchSettlement(state, record, handle, retireChildBlocking);
|
|
699
|
+
return { ...record, state: "running", updatedAt: state.now().toISOString() };
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
// src/agent-runtime/children-usage.ts
|
|
703
|
+
async function recordStepUsage(state, request) {
|
|
704
|
+
const { database, handles, now } = state;
|
|
705
|
+
const raw = database.prepare(`
|
|
706
|
+
SELECT parent_conversation_id, child_conversation_id, seed_upto_seq, state,
|
|
707
|
+
budget_payload, usage_payload, result_reference, created_at, updated_at
|
|
708
|
+
FROM stitchkit_agent_runtime_children WHERE child_conversation_id = ?
|
|
709
|
+
`).get(request.childConversationId);
|
|
710
|
+
if (raw === null || raw === undefined)
|
|
711
|
+
throw new TypeError("Unknown child conversation");
|
|
712
|
+
const record = parseChild(raw);
|
|
713
|
+
const measured = usageNumbers(request.usage);
|
|
714
|
+
if (record.budget.tokens !== undefined && measured.tokens === undefined) {
|
|
715
|
+
throw new TypeError("Cannot enforce child token budget without measured token usage");
|
|
716
|
+
}
|
|
717
|
+
if (record.budget.usd !== undefined && measured.usd === undefined) {
|
|
718
|
+
throw new TypeError("Cannot enforce child USD budget without USD usage");
|
|
719
|
+
}
|
|
720
|
+
const usage = {
|
|
721
|
+
tokens: record.usage.tokens + (measured.tokens ?? 0),
|
|
722
|
+
usd: record.usage.usd + (measured.usd ?? 0),
|
|
723
|
+
milliseconds: record.usage.milliseconds + request.elapsedMs
|
|
695
724
|
};
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
const reachable = handle ? handle.reachable ? await bounded(handle.reachable(), false) : true : false;
|
|
702
|
-
if (!reachable) {
|
|
703
|
-
if (isLive(record.childConversationId)) {
|
|
704
|
-
await updateState(record, "lost", undefined, {
|
|
705
|
-
stopDurationMs: Math.max(0, performance.now() - startedAt)
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
retireChildBlocking(record.childConversationId);
|
|
709
|
-
return;
|
|
710
|
-
}
|
|
711
|
-
await bounded(Promise.resolve(handle?.stopPolicy("parent-stopped")).then(() => true), false);
|
|
712
|
-
if (!isLive(record.childConversationId))
|
|
713
|
-
return;
|
|
714
|
-
await updateState(record, "stopped", undefined, {
|
|
715
|
-
stopDurationMs: Math.max(0, performance.now() - startedAt)
|
|
716
|
-
});
|
|
717
|
-
retireChildBlocking(record.childConversationId);
|
|
718
|
-
}));
|
|
725
|
+
const updatedAt = now().toISOString();
|
|
726
|
+
const overrun = {
|
|
727
|
+
tokens: Math.max(0, usage.tokens - (record.budget.tokens ?? Number.POSITIVE_INFINITY)),
|
|
728
|
+
usd: Math.max(0, usage.usd - (record.budget.usd ?? Number.POSITIVE_INFINITY)),
|
|
729
|
+
milliseconds: Math.max(0, usage.milliseconds - (record.budget.milliseconds ?? Number.POSITIVE_INFINITY))
|
|
719
730
|
};
|
|
720
|
-
const
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
+
const stop = record.budget.tokens !== undefined && usage.tokens >= record.budget.tokens || record.budget.usd !== undefined && usage.usd >= record.budget.usd || record.budget.milliseconds !== undefined && usage.milliseconds >= record.budget.milliseconds;
|
|
732
|
+
const handle = handles.get(request.childConversationId);
|
|
733
|
+
let enforced = false;
|
|
734
|
+
if (stop && handle) {
|
|
735
|
+
enforced = await bounded(Promise.resolve().then(() => handle.stopPolicy("child-budget")).then(() => true, () => false), false);
|
|
736
|
+
}
|
|
737
|
+
const payload = {
|
|
738
|
+
childConversationId: record.childConversationId,
|
|
739
|
+
state: "running",
|
|
740
|
+
usage,
|
|
741
|
+
overrun,
|
|
742
|
+
...stop && { policyName: "child-budget", enforced }
|
|
731
743
|
};
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
throw new TypeError("Child host does not support messages");
|
|
737
|
-
await handle.sendMessage(message);
|
|
738
|
-
await store.appendEvent({
|
|
739
|
-
conversationId: parentConversationId,
|
|
744
|
+
await state.config.sqlite.transaction(async (scope) => {
|
|
745
|
+
scope.database.prepare("UPDATE stitchkit_agent_runtime_children SET usage_payload = ?, updated_at = ? WHERE child_conversation_id = ?").run(JSON.stringify(usage), updatedAt, request.childConversationId);
|
|
746
|
+
await scope.appendEvent({
|
|
747
|
+
conversationId: record.parentConversationId,
|
|
740
748
|
kind: "child/state",
|
|
741
|
-
|
|
749
|
+
occurredAt: updatedAt,
|
|
750
|
+
payload
|
|
742
751
|
});
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
await updateState(child, "stopped", undefined, {
|
|
749
|
-
policyName: "parent-interrupt",
|
|
750
|
-
stopDurationMs: Math.max(0, performance.now() - startedAt)
|
|
752
|
+
await scope.appendEvent({
|
|
753
|
+
conversationId: record.childConversationId,
|
|
754
|
+
kind: "child/state",
|
|
755
|
+
occurredAt: updatedAt,
|
|
756
|
+
payload: { parentConversationId: record.parentConversationId, ...payload }
|
|
751
757
|
});
|
|
752
|
-
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
|
|
758
|
+
});
|
|
759
|
+
return { stop, enforced, ...stop && { policyName: "child-budget" }, overrun };
|
|
760
|
+
}
|
|
761
|
+
// src/agent-runtime/child-budget-policy.ts
|
|
762
|
+
function agentChildBudgetStopPolicy(input) {
|
|
763
|
+
let stepsSeen = 0;
|
|
764
|
+
let lastBoundary = performance.now();
|
|
765
|
+
return {
|
|
766
|
+
name: "child-budget",
|
|
767
|
+
when: async ({ steps }) => {
|
|
768
|
+
const step = steps.at(-1);
|
|
769
|
+
if (!step || steps.length <= stepsSeen)
|
|
770
|
+
return false;
|
|
771
|
+
stepsSeen = steps.length;
|
|
772
|
+
const elapsedMs = Math.max(0, performance.now() - lastBoundary);
|
|
773
|
+
lastBoundary = performance.now();
|
|
774
|
+
const usage = normalizeSdkUsage(step.usage);
|
|
775
|
+
const cost = input.cost?.({ usage: step.usage });
|
|
776
|
+
const boundary = await input.manager.recordStepUsage({
|
|
777
|
+
childConversationId: input.childConversationId,
|
|
778
|
+
usage: { ...usage, ...cost && { cost } },
|
|
779
|
+
elapsedMs
|
|
780
|
+
});
|
|
781
|
+
return boundary.stop;
|
|
782
|
+
}
|
|
756
783
|
};
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
// src/agent-runtime/children.ts
|
|
787
|
+
function createSqliteAgentChildManager(input) {
|
|
788
|
+
const state = createChildManagerState(input);
|
|
789
|
+
const list = (parentConversationId) => listChildren(state, parentConversationId);
|
|
790
|
+
const { retireChildBlocking, listChildBlocking, respondToChildBlocking } = createChildBlockingRelay({
|
|
791
|
+
store: state.store,
|
|
792
|
+
now: state.now,
|
|
793
|
+
handles: state.handles,
|
|
794
|
+
listChildren: list,
|
|
795
|
+
activeChild: (parentConversationId, childConversationId) => activeChild(state, parentConversationId, childConversationId),
|
|
796
|
+
bounded
|
|
797
|
+
});
|
|
757
798
|
return {
|
|
758
|
-
spawnChild,
|
|
759
|
-
listChildren,
|
|
760
|
-
recordStepUsage,
|
|
761
|
-
stopChildren,
|
|
762
|
-
sendMessage,
|
|
763
|
-
interruptChild,
|
|
764
|
-
waitChild
|
|
799
|
+
spawnChild: (request) => spawnChild(state, retireChildBlocking, request),
|
|
800
|
+
listChildren: list,
|
|
801
|
+
recordStepUsage: (request) => recordStepUsage(state, request),
|
|
802
|
+
stopChildren: (parentConversationId) => stopChildren(state, retireChildBlocking, parentConversationId),
|
|
803
|
+
sendMessage: (parentConversationId, childConversationId, message) => sendMessage(state, parentConversationId, childConversationId, message),
|
|
804
|
+
interruptChild: (parentConversationId, childConversationId) => interruptChild(state, retireChildBlocking, parentConversationId, childConversationId),
|
|
805
|
+
waitChild: async (childConversationId) => {
|
|
806
|
+
await state.settlements.get(childConversationId);
|
|
807
|
+
},
|
|
765
808
|
listChildBlocking,
|
|
766
809
|
respondToChildBlocking
|
|
767
810
|
};
|
|
@@ -2454,7 +2497,6 @@ export {
|
|
|
2454
2497
|
createSqliteAgentChildManager,
|
|
2455
2498
|
createMemoryAgentRuntimeStore,
|
|
2456
2499
|
createMemoryAgentModelSelectionStore,
|
|
2457
|
-
createLocalStepDurability,
|
|
2458
2500
|
createDeferredAgentToolSurface,
|
|
2459
2501
|
createAgentToolFenceLifecycle,
|
|
2460
2502
|
createAgentStateTools,
|