stitchkit 0.134.2 → 0.135.1
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 +42 -0
- package/README.md +1 -1
- package/dist/agent-executor/acp/v1-connect.d.ts +1 -1
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/json-rpc-peer.d.ts +1 -1
- package/dist/agent-executor/json-rpc-peer.d.ts.map +1 -1
- package/dist/agent-runtime/browser/browser-control-contract.d.ts +1364 -0
- package/dist/agent-runtime/browser/browser-control-contract.d.ts.map +1 -0
- package/dist/agent-runtime/browser/browser-controller-view.d.ts +44 -0
- package/dist/agent-runtime/browser/browser-controller-view.d.ts.map +1 -0
- package/dist/agent-runtime/browser/browser-controller.d.ts +53 -0
- package/dist/agent-runtime/browser/browser-controller.d.ts.map +1 -0
- package/dist/agent-runtime/browser/control-interaction-schema.d.ts.map +1 -0
- package/dist/agent-runtime/browser/control-schema.d.ts +1378 -0
- package/dist/agent-runtime/browser/control-schema.d.ts.map +1 -0
- package/dist/agent-runtime/browser/control-view.d.ts +64 -0
- package/dist/agent-runtime/browser/control-view.d.ts.map +1 -0
- package/dist/agent-runtime/browser/react.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-discovery.d.ts +25 -0
- package/dist/agent-runtime/coding/coding-discovery.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-sandbox.d.ts +8 -0
- package/dist/agent-runtime/coding/coding-sandbox.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-search-automaton.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-search-case-fold.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-search-class-ranges.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-search-contract.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-search-limits.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-search-matcher.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-search-output.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-search-regex-syntax.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-search-unit-classes.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-shell-process.d.ts +36 -0
- package/dist/agent-runtime/coding/coding-shell-process.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tool-contract.d.ts +261 -0
- package/dist/agent-runtime/coding/coding-tool-contract.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tool-files.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tool-listing.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tool-paths.d.ts +53 -0
- package/dist/agent-runtime/coding/coding-tool-paths.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tool-refusals.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tool-search-patch.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tool-search.d.ts +113 -0
- package/dist/agent-runtime/coding/coding-tool-search.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tool-shell.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tool-utf8.d.ts.map +1 -0
- package/dist/agent-runtime/coding/coding-tools.d.ts.map +1 -0
- package/dist/agent-runtime/coding/contained-scan-budget.d.ts.map +1 -0
- package/dist/agent-runtime/coding/contained-scan-contract.d.ts.map +1 -0
- package/dist/agent-runtime/coding/contained-scan.d.ts +56 -0
- package/dist/agent-runtime/coding/contained-scan.d.ts.map +1 -0
- package/dist/agent-runtime/coding/workspace-glob.d.ts.map +1 -0
- package/dist/agent-runtime/context-issue.d.ts +1 -1
- package/dist/agent-runtime/context-issue.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tool-types.d.ts +3 -1
- package/dist/agent-runtime/deferred-tool-types.d.ts.map +1 -1
- package/dist/agent-runtime/harness/harness-contract.d.ts +206 -0
- package/dist/agent-runtime/harness/harness-contract.d.ts.map +1 -0
- package/dist/agent-runtime/harness/harness-control.d.ts +34 -0
- package/dist/agent-runtime/harness/harness-control.d.ts.map +1 -0
- package/dist/agent-runtime/harness/harness-file-resources.d.ts +33 -0
- package/dist/agent-runtime/harness/harness-file-resources.d.ts.map +1 -0
- package/dist/agent-runtime/harness/harness-resources.d.ts.map +1 -0
- package/dist/agent-runtime/harness/harness.d.ts +15 -0
- package/dist/agent-runtime/harness/harness.d.ts.map +1 -0
- package/dist/agent-runtime/history/compaction.d.ts +103 -0
- package/dist/agent-runtime/history/compaction.d.ts.map +1 -0
- package/dist/agent-runtime/history/history.d.ts +93 -0
- package/dist/agent-runtime/history/history.d.ts.map +1 -0
- package/dist/agent-runtime/history/run-history-parts.d.ts +14 -0
- package/dist/agent-runtime/history/run-history-parts.d.ts.map +1 -0
- package/dist/agent-runtime/loop/admission-lanes.d.ts +35 -0
- package/dist/agent-runtime/loop/admission-lanes.d.ts.map +1 -0
- package/dist/agent-runtime/loop/coordinator.d.ts.map +1 -0
- package/dist/agent-runtime/loop/deferred-tool-search.d.ts +9 -0
- package/dist/agent-runtime/loop/deferred-tool-search.d.ts.map +1 -0
- package/dist/agent-runtime/loop/deferred-tool-selection.d.ts +32 -0
- package/dist/agent-runtime/loop/deferred-tool-selection.d.ts.map +1 -0
- package/dist/agent-runtime/loop/deferred-tools-internal.d.ts +19 -0
- package/dist/agent-runtime/loop/deferred-tools-internal.d.ts.map +1 -0
- package/dist/agent-runtime/loop/deferred-tools.d.ts +4 -0
- package/dist/agent-runtime/loop/deferred-tools.d.ts.map +1 -0
- package/dist/agent-runtime/loop/injection.d.ts +28 -0
- package/dist/agent-runtime/loop/injection.d.ts.map +1 -0
- package/dist/agent-runtime/loop/invocation-attempt.d.ts +32 -0
- package/dist/agent-runtime/loop/invocation-attempt.d.ts.map +1 -0
- package/dist/agent-runtime/loop/invocation-failure.d.ts.map +1 -0
- package/dist/agent-runtime/loop/invocation-payload.d.ts +38 -0
- package/dist/agent-runtime/loop/invocation-payload.d.ts.map +1 -0
- package/dist/agent-runtime/loop/invocation-read.d.ts +134 -0
- package/dist/agent-runtime/loop/invocation-read.d.ts.map +1 -0
- package/dist/agent-runtime/loop/invocation-spend.d.ts +9 -0
- package/dist/agent-runtime/loop/invocation-spend.d.ts.map +1 -0
- package/dist/agent-runtime/loop/invocation-stream.d.ts +20 -0
- package/dist/agent-runtime/loop/invocation-stream.d.ts.map +1 -0
- package/dist/agent-runtime/loop/invocations.d.ts +63 -0
- package/dist/agent-runtime/loop/invocations.d.ts.map +1 -0
- package/dist/agent-runtime/loop/managed-tools.d.ts +20 -0
- package/dist/agent-runtime/loop/managed-tools.d.ts.map +1 -0
- package/dist/agent-runtime/loop/observability.d.ts +579 -0
- package/dist/agent-runtime/loop/observability.d.ts.map +1 -0
- package/dist/agent-runtime/loop/owned-provider-stream.d.ts.map +1 -0
- package/dist/agent-runtime/loop/provider-origin.d.ts +17 -0
- package/dist/agent-runtime/loop/provider-origin.d.ts.map +1 -0
- package/dist/agent-runtime/loop/provider-stream-parts.d.ts +5 -0
- package/dist/agent-runtime/loop/provider-stream-parts.d.ts.map +1 -0
- package/dist/agent-runtime/loop/provider-stream-segments.d.ts +63 -0
- package/dist/agent-runtime/loop/provider-stream-segments.d.ts.map +1 -0
- package/dist/agent-runtime/loop/retry-policy.d.ts +49 -0
- package/dist/agent-runtime/loop/retry-policy.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-acquisition.d.ts +24 -0
- package/dist/agent-runtime/loop/run-acquisition.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-approval.d.ts +82 -0
- package/dist/agent-runtime/loop/run-approval.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-complete-retry.d.ts +24 -0
- package/dist/agent-runtime/loop/run-complete-retry.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-complete-stream.d.ts +9 -0
- package/dist/agent-runtime/loop/run-complete-stream.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-complete-types.d.ts +171 -0
- package/dist/agent-runtime/loop/run-complete-types.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-complete.d.ts +25 -0
- package/dist/agent-runtime/loop/run-complete.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-driver-compose.d.ts +21 -0
- package/dist/agent-runtime/loop/run-driver-compose.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-execution-state.d.ts +177 -0
- package/dist/agent-runtime/loop/run-execution-state.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-execution.d.ts +22 -0
- package/dist/agent-runtime/loop/run-execution.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-failure.d.ts +21 -0
- package/dist/agent-runtime/loop/run-failure.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-loop-events.d.ts +126 -0
- package/dist/agent-runtime/loop/run-loop-events.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-model-attempts.d.ts +6 -0
- package/dist/agent-runtime/loop/run-model-attempts.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-model-messages.d.ts +9 -0
- package/dist/agent-runtime/loop/run-model-messages.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-model-step.d.ts +43 -0
- package/dist/agent-runtime/loop/run-model-step.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-model-stream.d.ts +27 -0
- package/dist/agent-runtime/loop/run-model-stream.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts +32 -0
- package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-prompt-history.d.ts +53 -0
- package/dist/agent-runtime/loop/run-prompt-history.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-provider-ledger.d.ts +32 -0
- package/dist/agent-runtime/loop/run-provider-ledger.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-step-barriers.d.ts +120 -0
- package/dist/agent-runtime/loop/run-step-barriers.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-step-helpers.d.ts +50 -0
- package/dist/agent-runtime/loop/run-step-helpers.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-step-prepare.d.ts +34 -0
- package/dist/agent-runtime/loop/run-step-prepare.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-step-spend.d.ts +394 -0
- package/dist/agent-runtime/loop/run-step-spend.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-stream-parts.d.ts +34 -0
- package/dist/agent-runtime/loop/run-stream-parts.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-stream-recorded.d.ts +8 -0
- package/dist/agent-runtime/loop/run-stream-recorded.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-stream-step-text.d.ts +47 -0
- package/dist/agent-runtime/loop/run-stream-step-text.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-terminal.d.ts +11 -0
- package/dist/agent-runtime/loop/run-terminal.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts +36 -0
- package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-tool-approval-records.d.ts +24 -0
- package/dist/agent-runtime/loop/run-tool-approval-records.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-tool-call.d.ts +119 -0
- package/dist/agent-runtime/loop/run-tool-call.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-tool-errors.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-tool-executor.d.ts +42 -0
- package/dist/agent-runtime/loop/run-tool-executor.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-tool-progress.d.ts +21 -0
- package/dist/agent-runtime/loop/run-tool-progress.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-tool-slots.d.ts +114 -0
- package/dist/agent-runtime/loop/run-tool-slots.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-turn-preparation.d.ts +25 -0
- package/dist/agent-runtime/loop/run-turn-preparation.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-unacquired.d.ts +19 -0
- package/dist/agent-runtime/loop/run-unacquired.d.ts.map +1 -0
- package/dist/agent-runtime/loop/runtime-admission-gate.d.ts.map +1 -0
- package/dist/agent-runtime/loop/runtime-control.d.ts +9 -0
- package/dist/agent-runtime/loop/runtime-control.d.ts.map +1 -0
- package/dist/agent-runtime/loop/runtime-recovery.d.ts +10 -0
- package/dist/agent-runtime/loop/runtime-recovery.d.ts.map +1 -0
- package/dist/agent-runtime/loop/runtime-state.d.ts +36 -0
- package/dist/agent-runtime/loop/runtime-state.d.ts.map +1 -0
- package/dist/agent-runtime/loop/runtime-submit.d.ts +5 -0
- package/dist/agent-runtime/loop/runtime-submit.d.ts.map +1 -0
- package/dist/agent-runtime/loop/runtime.d.ts +352 -0
- package/dist/agent-runtime/loop/runtime.d.ts.map +1 -0
- package/dist/agent-runtime/loop/state-slots.d.ts +48 -0
- package/dist/agent-runtime/loop/state-slots.d.ts.map +1 -0
- package/dist/agent-runtime/loop/state-tools.d.ts +117 -0
- package/dist/agent-runtime/loop/state-tools.d.ts.map +1 -0
- package/dist/agent-runtime/protocol.d.ts +1 -1
- package/dist/agent-runtime/protocol.d.ts.map +1 -1
- package/dist/agent-runtime/providers/ai-sdk-convert.d.ts +15 -0
- package/dist/agent-runtime/providers/ai-sdk-convert.d.ts.map +1 -0
- package/dist/agent-runtime/providers/ai-sdk.d.ts +31 -0
- package/dist/agent-runtime/providers/ai-sdk.d.ts.map +1 -0
- package/dist/agent-runtime/providers/anthropic-media.d.ts +11 -0
- package/dist/agent-runtime/providers/anthropic-media.d.ts.map +1 -0
- package/dist/agent-runtime/providers/anthropic-messages.d.ts +25 -0
- package/dist/agent-runtime/providers/anthropic-messages.d.ts.map +1 -0
- package/dist/agent-runtime/providers/anthropic-options.d.ts +80 -0
- package/dist/agent-runtime/providers/anthropic-options.d.ts.map +1 -0
- package/dist/agent-runtime/providers/anthropic-response.d.ts +19 -0
- package/dist/agent-runtime/providers/anthropic-response.d.ts.map +1 -0
- package/dist/agent-runtime/providers/anthropic-sse.d.ts.map +1 -0
- package/dist/agent-runtime/providers/anthropic.d.ts.map +1 -0
- package/dist/agent-runtime/providers/models-driver-step.d.ts +212 -0
- package/dist/agent-runtime/providers/models-driver-step.d.ts.map +1 -0
- package/dist/agent-runtime/providers/models-driver-telemetry.d.ts.map +1 -0
- package/dist/agent-runtime/providers/models-driver.d.ts +235 -0
- package/dist/agent-runtime/providers/models-driver.d.ts.map +1 -0
- package/dist/agent-runtime/providers/models.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openai-messages.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openai-options.d.ts +91 -0
- package/dist/agent-runtime/providers/openai-options.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openai-response.d.ts +77 -0
- package/dist/agent-runtime/providers/openai-response.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openai-sse-state.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openai-sse.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openai.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-admission.d.ts +85 -0
- package/dist/agent-runtime/providers/openrouter-admission.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-audio.d.ts +122 -0
- package/dist/agent-runtime/providers/openrouter-audio.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-benchmarks.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-catalog-cache.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-catalog-query.d.ts +82 -0
- package/dist/agent-runtime/providers/openrouter-catalog-query.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-catalog.d.ts +260 -0
- package/dist/agent-runtime/providers/openrouter-catalog.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-http.d.ts +100 -0
- package/dist/agent-runtime/providers/openrouter-http.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-media.d.ts +160 -0
- package/dist/agent-runtime/providers/openrouter-media.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-models.d.ts +203 -0
- package/dist/agent-runtime/providers/openrouter-models.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-options.d.ts +138 -0
- package/dist/agent-runtime/providers/openrouter-options.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-response.d.ts +22 -0
- package/dist/agent-runtime/providers/openrouter-response.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-retrieval.d.ts +114 -0
- package/dist/agent-runtime/providers/openrouter-retrieval.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-route.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-spend.d.ts +28 -0
- package/dist/agent-runtime/providers/openrouter-spend.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-stream.d.ts +29 -0
- package/dist/agent-runtime/providers/openrouter-stream.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-systemone.d.ts +82 -0
- package/dist/agent-runtime/providers/openrouter-systemone.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-url.d.ts +13 -0
- package/dist/agent-runtime/providers/openrouter-url.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter.d.ts +50 -0
- package/dist/agent-runtime/providers/openrouter.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-cache.d.ts +30 -0
- package/dist/agent-runtime/providers/provider-cache.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-content.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-failure.d.ts +97 -0
- package/dist/agent-runtime/providers/provider-failure.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-history.d.ts +13 -0
- package/dist/agent-runtime/providers/provider-history.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-http.d.ts +82 -0
- package/dist/agent-runtime/providers/provider-http.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-journal.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-json-schema-strip.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-json-schema.d.ts +31 -0
- package/dist/agent-runtime/providers/provider-json-schema.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-media.d.ts +49 -0
- package/dist/agent-runtime/providers/provider-media.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-openai-chat-helpers.d.ts +27 -0
- package/dist/agent-runtime/providers/provider-openai-chat-helpers.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-openai-chat-sse.d.ts +25 -0
- package/dist/agent-runtime/providers/provider-openai-chat-sse.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-openai-chat.d.ts +27 -0
- package/dist/agent-runtime/providers/provider-openai-chat.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-sse.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-usage.d.ts +24 -0
- package/dist/agent-runtime/providers/provider-usage.d.ts.map +1 -0
- package/dist/agent-runtime/realtime/harness-realtime.d.ts +53 -0
- package/dist/agent-runtime/realtime/harness-realtime.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-binding.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-broker.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-bubblewrap-args.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-bubblewrap-storage.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-bubblewrap.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-coding-adapter.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-contract.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-process-linux.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-process-macos.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-process-owner.d.ts +19 -0
- package/dist/agent-runtime/sandbox/sandbox-process-owner.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-process-spec.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-process-wrapper.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-process.d.ts +8 -0
- package/dist/agent-runtime/sandbox/sandbox-process.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox-session.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox/sandbox.d.ts +125 -0
- package/dist/agent-runtime/sandbox/sandbox.d.ts.map +1 -0
- package/dist/agent-runtime/stores/archive-projection.d.ts.map +1 -0
- package/dist/agent-runtime/stores/archive-spill.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-contract.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-events.d.ts +25 -0
- package/dist/agent-runtime/stores/branch-events.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-identities.d.ts +75 -0
- package/dist/agent-runtime/stores/branch-identities.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-messages.d.ts +21 -0
- package/dist/agent-runtime/stores/branch-messages.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-observations.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-provider.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-refusal.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-replay.d.ts +456 -0
- package/dist/agent-runtime/stores/branch-replay.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-runtime-tools.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-source.d.ts +33 -0
- package/dist/agent-runtime/stores/branch-source.d.ts.map +1 -0
- package/dist/agent-runtime/stores/branch-transitions.d.ts.map +1 -0
- package/dist/agent-runtime/stores/child-blocking.d.ts.map +1 -0
- package/dist/agent-runtime/stores/child-budget-policy.d.ts +17 -0
- package/dist/agent-runtime/stores/child-budget-policy.d.ts.map +1 -0
- package/dist/agent-runtime/stores/child-tools.d.ts +144 -0
- package/dist/agent-runtime/stores/child-tools.d.ts.map +1 -0
- package/dist/agent-runtime/stores/children-contract.d.ts +236 -0
- package/dist/agent-runtime/stores/children-contract.d.ts.map +1 -0
- package/dist/agent-runtime/stores/children-control.d.ts.map +1 -0
- package/dist/agent-runtime/stores/children-spawn.d.ts.map +1 -0
- package/dist/agent-runtime/stores/children-state.d.ts.map +1 -0
- package/dist/agent-runtime/stores/children-usage.d.ts.map +1 -0
- package/dist/agent-runtime/stores/children.d.ts.map +1 -0
- package/dist/agent-runtime/stores/companion-host.d.ts +38 -0
- package/dist/agent-runtime/stores/companion-host.d.ts.map +1 -0
- package/dist/agent-runtime/stores/conversations.d.ts.map +1 -0
- package/dist/agent-runtime/stores/event-search-postgres.d.ts.map +1 -0
- package/dist/agent-runtime/stores/event-search-terms.d.ts.map +1 -0
- package/dist/agent-runtime/stores/event-search-tools.d.ts +190 -0
- package/dist/agent-runtime/stores/event-search-tools.d.ts.map +1 -0
- package/dist/agent-runtime/stores/event-search.d.ts.map +1 -0
- package/dist/agent-runtime/stores/postgres-schema.d.ts.map +1 -0
- package/dist/agent-runtime/stores/postgres-transactions.d.ts +54 -0
- package/dist/agent-runtime/stores/postgres-transactions.d.ts.map +1 -0
- package/dist/agent-runtime/stores/postgres.d.ts +72 -0
- package/dist/agent-runtime/stores/postgres.d.ts.map +1 -0
- package/dist/agent-runtime/stores/projections.d.ts +109 -0
- package/dist/agent-runtime/stores/projections.d.ts.map +1 -0
- package/dist/agent-runtime/stores/purge.d.ts.map +1 -0
- package/dist/agent-runtime/stores/schedule-contract.d.ts.map +1 -0
- package/dist/agent-runtime/stores/schedule-dispatch.d.ts.map +1 -0
- package/dist/agent-runtime/stores/schedule-records.d.ts.map +1 -0
- package/dist/agent-runtime/stores/schedule-tools.d.ts +76 -0
- package/dist/agent-runtime/stores/schedule-tools.d.ts.map +1 -0
- package/dist/agent-runtime/stores/schedules.d.ts.map +1 -0
- package/dist/agent-runtime/stores/spill.d.ts +26 -0
- package/dist/agent-runtime/stores/spill.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sql-events.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sql-history.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sql-ledger.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sql-purge.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sql-reads.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sql-rows.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sql-session.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sqlite-bun.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sqlite-node.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sqlite-purge.d.ts +6 -0
- package/dist/agent-runtime/stores/sqlite-purge.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sqlite-schema.d.ts +7 -0
- package/dist/agent-runtime/stores/sqlite-schema.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sqlite-transactions.d.ts +29 -0
- package/dist/agent-runtime/stores/sqlite-transactions.d.ts.map +1 -0
- package/dist/agent-runtime/stores/sqlite.d.ts +33 -0
- package/dist/agent-runtime/stores/sqlite.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-archive.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-branch.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-capabilities.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-create.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-driver-contract.d.ts +1016 -0
- package/dist/agent-runtime/stores/store-driver-contract.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-event-once.d.ts +37 -0
- package/dist/agent-runtime/stores/store-event-once.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-events.d.ts +2231 -0
- package/dist/agent-runtime/stores/store-events.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-memory-archive.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-memory-events.d.ts +7 -0
- package/dist/agent-runtime/stores/store-memory-events.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-memory.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-migrations/v1-to-v2.d.ts +6 -0
- package/dist/agent-runtime/stores/store-migrations/v1-to-v2.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-migrations/v2-to-v3.d.ts +14 -0
- package/dist/agent-runtime/stores/store-migrations/v2-to-v3.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-migrations/v3-to-v4.d.ts +4 -0
- package/dist/agent-runtime/stores/store-migrations/v3-to-v4.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-mutate.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-purge.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-reads.d.ts +29 -0
- package/dist/agent-runtime/stores/store-reads.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-reduce-history.d.ts +10 -0
- package/dist/agent-runtime/stores/store-reduce-history.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-reduce-run.d.ts +14 -0
- package/dist/agent-runtime/stores/store-reduce-run.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-reduce-shared.d.ts +78 -0
- package/dist/agent-runtime/stores/store-reduce-shared.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-reduce-terminal.d.ts +6 -0
- package/dist/agent-runtime/stores/store-reduce-terminal.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-reducer.d.ts +24 -0
- package/dist/agent-runtime/stores/store-reducer.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-replay.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store-snapshot.d.ts +19 -0
- package/dist/agent-runtime/stores/store-snapshot.d.ts.map +1 -0
- package/dist/agent-runtime/stores/store.d.ts +3032 -0
- package/dist/agent-runtime/stores/store.d.ts.map +1 -0
- package/dist/agent-runtime/terminal-commit.d.ts +1 -1
- package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
- package/dist/agent-runtime/testing/fault-bench.d.ts.map +1 -0
- package/dist/agent-runtime/testing/run-assertions.d.ts +63 -0
- package/dist/agent-runtime/testing/run-assertions.d.ts.map +1 -0
- package/dist/agent-runtime/testing/store-conformance-branch.d.ts +7 -0
- package/dist/agent-runtime/testing/store-conformance-branch.d.ts.map +1 -0
- package/dist/agent-runtime/testing/store-conformance-capabilities.d.ts +6 -0
- package/dist/agent-runtime/testing/store-conformance-capabilities.d.ts.map +1 -0
- package/dist/agent-runtime/testing/store-conformance-event-once.d.ts +12 -0
- package/dist/agent-runtime/testing/store-conformance-event-once.d.ts.map +1 -0
- package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts +454 -0
- package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts.map +1 -0
- package/dist/agent-runtime/testing/store-conformance-ordering.d.ts +18 -0
- package/dist/agent-runtime/testing/store-conformance-ordering.d.ts.map +1 -0
- package/dist/agent-runtime/testing/store-conformance-seed.d.ts +8 -0
- package/dist/agent-runtime/testing/store-conformance-seed.d.ts.map +1 -0
- package/dist/agent-runtime/testing/store-conformance-support.d.ts +140 -0
- package/dist/agent-runtime/testing/store-conformance-support.d.ts.map +1 -0
- package/dist/agent-runtime/testing/store-conformance-terminal.d.ts +12 -0
- package/dist/agent-runtime/testing/store-conformance-terminal.d.ts.map +1 -0
- package/dist/agent-runtime/testing/store-conformance.d.ts +71 -0
- package/dist/agent-runtime/testing/store-conformance.d.ts.map +1 -0
- package/dist/agent-runtime/testing/testing.d.ts +46 -0
- package/dist/agent-runtime/testing/testing.d.ts.map +1 -0
- package/dist/browser/client-executors.d.ts.map +1 -1
- package/dist/browser/client.d.ts +3 -2
- package/dist/browser/client.d.ts.map +1 -1
- package/dist/browser/http.d.ts +6 -3
- package/dist/browser/http.d.ts.map +1 -1
- package/dist/contract/client-types.d.ts +4 -3
- package/dist/contract/client-types.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +38 -12
- package/dist/entrypoints/agent-executor/claude-sdk.js +1 -1
- package/dist/entrypoints/agent-executor/codex.js +2 -2
- package/dist/entrypoints/agent-executor/testing/claude-sdk.js +3 -3
- package/dist/entrypoints/agent-executor/testing.js +3 -3
- package/dist/entrypoints/agent-executor.js +1 -1
- package/dist/entrypoints/agent-runtime/ai-sdk.d.ts +3 -3
- package/dist/entrypoints/agent-runtime/ai-sdk.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/ai-sdk.js +9 -8
- package/dist/entrypoints/agent-runtime/anthropic.d.ts +3 -3
- package/dist/entrypoints/agent-runtime/anthropic.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/anthropic.js +72 -18
- package/dist/entrypoints/agent-runtime/browser.d.ts +6 -6
- package/dist/entrypoints/agent-runtime/browser.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/browser.js +39 -39
- package/dist/entrypoints/agent-runtime/coding-tools.d.ts +1 -1
- package/dist/entrypoints/agent-runtime/coding-tools.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/coding-tools.js +2 -2
- package/dist/entrypoints/agent-runtime/harness.d.ts +1 -1
- package/dist/entrypoints/agent-runtime/harness.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/harness.js +27 -28
- package/dist/entrypoints/agent-runtime/openai.d.ts +3 -3
- package/dist/entrypoints/agent-runtime/openai.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/openai.js +9 -9
- package/dist/entrypoints/agent-runtime/openrouter.d.ts +17 -10
- package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/openrouter.js +1657 -400
- package/dist/entrypoints/agent-runtime/postgres.d.ts +2 -2
- package/dist/entrypoints/agent-runtime/postgres.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/postgres.js +8 -8
- package/dist/entrypoints/agent-runtime/react.d.ts +1 -1
- package/dist/entrypoints/agent-runtime/react.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/react.js +1 -1
- package/dist/entrypoints/agent-runtime/realtime.d.ts +1 -1
- package/dist/entrypoints/agent-runtime/realtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/realtime.js +5 -5
- package/dist/entrypoints/agent-runtime/sandbox.d.ts +9 -9
- package/dist/entrypoints/agent-runtime/sandbox.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/sandbox.js +220 -93
- package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts +1 -1
- package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +8 -8
- package/dist/entrypoints/agent-runtime/sqlite/node.d.ts +1 -1
- package/dist/entrypoints/agent-runtime/sqlite/node.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/sqlite/node.js +8 -8
- package/dist/entrypoints/agent-runtime/testing.d.ts +4 -4
- package/dist/entrypoints/agent-runtime/testing.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/testing.js +21 -21
- package/dist/entrypoints/agent-runtime.d.ts +50 -50
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime.js +2853 -3107
- package/dist/entrypoints/cli.js +8 -9
- package/dist/entrypoints/http.js +2 -2
- package/dist/entrypoints/index.js +2 -2
- package/dist/entrypoints/react.js +1 -1
- package/dist/entrypoints/remote.js +2 -2
- package/dist/entrypoints/server.js +2 -2
- package/dist/entrypoints/testing.js +7 -9
- package/dist/entrypoints/tools/agent.js +476 -13
- package/dist/entrypoints/tools/connections.js +9 -7
- package/dist/entrypoints/tools/contract.js +4 -4
- package/dist/entrypoints/tools/invoker.js +7 -8
- package/dist/entrypoints/tools/mcp.js +9 -11
- package/dist/entrypoints/tools/toolkit.d.ts +6 -4
- package/dist/entrypoints/tools/toolkit.d.ts.map +1 -1
- package/dist/entrypoints/tools/toolkit.js +11 -18
- package/dist/entrypoints/tools.js +12 -13
- package/dist/index-125ks2ec.js +17 -0
- package/dist/index-1w69rj9f.js +224 -0
- package/dist/index-1zy31r3b.js +26 -0
- package/dist/index-3czc3ykr.js +53 -0
- package/dist/index-3d2c45jn.js +77 -0
- package/dist/index-57sbckhv.js +271 -0
- package/dist/index-64t6pheq.js +2872 -0
- package/dist/index-73wq9abg.js +367 -0
- package/dist/index-84tp547a.js +981 -0
- package/dist/index-9be3tf6r.js +196 -0
- package/dist/index-asnd4h2k.js +969 -0
- package/dist/index-b4c9dpzm.js +1210 -0
- package/dist/index-baba8ehy.js +53 -0
- package/dist/index-c24bj2r1.js +510 -0
- package/dist/index-cgjtj8zh.js +707 -0
- package/dist/index-d4at0q09.js +601 -0
- package/dist/index-de7b0kvz.js +215 -0
- package/dist/index-dm84tsd5.js +164 -0
- package/dist/index-fsw9wxk9.js +349 -0
- package/dist/index-gk6dq9ay.js +124 -0
- package/dist/index-gs0jw0hy.js +174 -0
- package/dist/index-hce3hbdg.js +121 -0
- package/dist/index-ht71v1ag.js +730 -0
- package/dist/index-mcv7b2n0.js +3545 -0
- package/dist/index-n9358ydy.js +63 -0
- package/dist/index-npfdymav.js +409 -0
- package/dist/index-p9cab61p.js +305 -0
- package/dist/index-q86qnzzf.js +231 -0
- package/dist/index-qcy8et93.js +698 -0
- package/dist/index-refgnzy0.js +158 -0
- package/dist/index-rkphknhx.js +40 -0
- package/dist/index-v0j22shs.js +3781 -0
- package/dist/index-vse7x1qt.js +460 -0
- package/dist/index-wdb5jhas.js +51 -0
- package/dist/index-ws0awmzq.js +47 -0
- package/dist/index-wsv11dhg.js +725 -0
- package/dist/index-xbb8ysmq.js +40 -0
- package/dist/index-y0mwkgkf.js +7812 -0
- package/dist/index-yhwx4fwk.js +295 -0
- package/dist/index-z72vazf5.js +502 -0
- package/dist/json-schema/dialect.d.ts.map +1 -1
- package/dist/json-schema/string-format.d.ts.map +1 -1
- package/dist/tools/agent-call-context.d.ts +23 -0
- package/dist/tools/agent-call-context.d.ts.map +1 -0
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/schema/flatten.d.ts.map +1 -1
- package/dist/tools/toolkit.d.ts +8 -6
- package/dist/tools/toolkit.d.ts.map +1 -1
- package/llms/agent-runtime-ai-sdk.txt +2 -2
- package/llms/agent-runtime-anthropic.txt +8 -4
- package/llms/agent-runtime-openrouter.txt +14 -6
- package/llms/agent-runtime-sandbox.txt +20 -7
- package/llms/agent-runtime.2.txt +333 -224
- package/llms/agent-runtime.3.txt +225 -364
- package/llms/agent-runtime.4.txt +381 -158
- package/llms/agent-runtime.5.txt +157 -152
- package/llms/agent-runtime.6.txt +164 -0
- package/llms/agent-runtime.txt +50 -339
- package/llms/cli.2.txt +8 -5
- package/llms/contract.txt +1 -1
- package/llms/server.txt +10 -6
- package/llms/spend.txt +17 -1
- package/llms/stitchkit.2.txt +18 -11
- package/llms/stitchkit.txt +85 -85
- package/llms/tools-toolkit.txt +3 -6
- package/llms/tools.4.txt +3 -3
- package/llms/upgrading-0.128.0-0.135.0.txt +700 -0
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +317 -149
- package/llms.txt +13 -13
- package/package.json +1 -1
- package/dist/agent-runtime/admission-lanes.d.ts +0 -35
- package/dist/agent-runtime/admission-lanes.d.ts.map +0 -1
- package/dist/agent-runtime/ai-sdk-convert.d.ts +0 -15
- package/dist/agent-runtime/ai-sdk-convert.d.ts.map +0 -1
- package/dist/agent-runtime/ai-sdk.d.ts +0 -31
- package/dist/agent-runtime/ai-sdk.d.ts.map +0 -1
- package/dist/agent-runtime/anthropic-media.d.ts +0 -11
- package/dist/agent-runtime/anthropic-media.d.ts.map +0 -1
- package/dist/agent-runtime/anthropic-messages.d.ts +0 -24
- package/dist/agent-runtime/anthropic-messages.d.ts.map +0 -1
- package/dist/agent-runtime/anthropic-options.d.ts +0 -79
- package/dist/agent-runtime/anthropic-options.d.ts.map +0 -1
- package/dist/agent-runtime/anthropic-response.d.ts +0 -19
- package/dist/agent-runtime/anthropic-response.d.ts.map +0 -1
- package/dist/agent-runtime/anthropic-sse.d.ts.map +0 -1
- package/dist/agent-runtime/anthropic.d.ts.map +0 -1
- package/dist/agent-runtime/archive-projection.d.ts.map +0 -1
- package/dist/agent-runtime/archive-spill.d.ts.map +0 -1
- package/dist/agent-runtime/branch-contract.d.ts.map +0 -1
- package/dist/agent-runtime/branch-events.d.ts +0 -25
- package/dist/agent-runtime/branch-events.d.ts.map +0 -1
- package/dist/agent-runtime/branch-identities.d.ts +0 -75
- package/dist/agent-runtime/branch-identities.d.ts.map +0 -1
- package/dist/agent-runtime/branch-messages.d.ts +0 -21
- package/dist/agent-runtime/branch-messages.d.ts.map +0 -1
- package/dist/agent-runtime/branch-observations.d.ts.map +0 -1
- package/dist/agent-runtime/branch-provider.d.ts.map +0 -1
- package/dist/agent-runtime/branch-refusal.d.ts.map +0 -1
- package/dist/agent-runtime/branch-replay.d.ts +0 -456
- package/dist/agent-runtime/branch-replay.d.ts.map +0 -1
- package/dist/agent-runtime/branch-runtime-tools.d.ts.map +0 -1
- package/dist/agent-runtime/branch-source.d.ts +0 -33
- package/dist/agent-runtime/branch-source.d.ts.map +0 -1
- package/dist/agent-runtime/branch-transitions.d.ts.map +0 -1
- package/dist/agent-runtime/browser-control-contract.d.ts +0 -1364
- package/dist/agent-runtime/browser-control-contract.d.ts.map +0 -1
- package/dist/agent-runtime/browser-controller-view.d.ts +0 -44
- package/dist/agent-runtime/browser-controller-view.d.ts.map +0 -1
- package/dist/agent-runtime/browser-controller.d.ts +0 -53
- package/dist/agent-runtime/browser-controller.d.ts.map +0 -1
- package/dist/agent-runtime/child-blocking.d.ts.map +0 -1
- package/dist/agent-runtime/child-budget-policy.d.ts +0 -17
- package/dist/agent-runtime/child-budget-policy.d.ts.map +0 -1
- package/dist/agent-runtime/child-tools.d.ts +0 -144
- package/dist/agent-runtime/child-tools.d.ts.map +0 -1
- package/dist/agent-runtime/children-contract.d.ts +0 -236
- package/dist/agent-runtime/children-contract.d.ts.map +0 -1
- package/dist/agent-runtime/children-control.d.ts.map +0 -1
- package/dist/agent-runtime/children-spawn.d.ts.map +0 -1
- package/dist/agent-runtime/children-state.d.ts.map +0 -1
- package/dist/agent-runtime/children-usage.d.ts.map +0 -1
- package/dist/agent-runtime/children.d.ts.map +0 -1
- package/dist/agent-runtime/coding-discovery.d.ts +0 -25
- package/dist/agent-runtime/coding-discovery.d.ts.map +0 -1
- package/dist/agent-runtime/coding-sandbox.d.ts +0 -8
- package/dist/agent-runtime/coding-sandbox.d.ts.map +0 -1
- package/dist/agent-runtime/coding-search-automaton.d.ts.map +0 -1
- package/dist/agent-runtime/coding-search-case-fold.d.ts.map +0 -1
- package/dist/agent-runtime/coding-search-class-ranges.d.ts.map +0 -1
- package/dist/agent-runtime/coding-search-contract.d.ts.map +0 -1
- package/dist/agent-runtime/coding-search-limits.d.ts.map +0 -1
- package/dist/agent-runtime/coding-search-matcher.d.ts.map +0 -1
- package/dist/agent-runtime/coding-search-output.d.ts.map +0 -1
- package/dist/agent-runtime/coding-search-regex-syntax.d.ts.map +0 -1
- package/dist/agent-runtime/coding-search-unit-classes.d.ts.map +0 -1
- package/dist/agent-runtime/coding-shell-process.d.ts +0 -36
- package/dist/agent-runtime/coding-shell-process.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tool-contract.d.ts +0 -261
- package/dist/agent-runtime/coding-tool-contract.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tool-files.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tool-listing.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tool-paths.d.ts +0 -53
- package/dist/agent-runtime/coding-tool-paths.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tool-refusals.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tool-search-patch.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tool-search.d.ts +0 -113
- package/dist/agent-runtime/coding-tool-search.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tool-shell.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tool-utf8.d.ts.map +0 -1
- package/dist/agent-runtime/coding-tools.d.ts.map +0 -1
- package/dist/agent-runtime/compaction.d.ts +0 -103
- package/dist/agent-runtime/compaction.d.ts.map +0 -1
- package/dist/agent-runtime/companion-host.d.ts +0 -38
- package/dist/agent-runtime/companion-host.d.ts.map +0 -1
- package/dist/agent-runtime/contained-scan-budget.d.ts.map +0 -1
- package/dist/agent-runtime/contained-scan-contract.d.ts.map +0 -1
- package/dist/agent-runtime/contained-scan.d.ts +0 -56
- package/dist/agent-runtime/contained-scan.d.ts.map +0 -1
- package/dist/agent-runtime/control-interaction-schema.d.ts.map +0 -1
- package/dist/agent-runtime/control-schema.d.ts +0 -1378
- package/dist/agent-runtime/control-schema.d.ts.map +0 -1
- package/dist/agent-runtime/control-view.d.ts +0 -64
- package/dist/agent-runtime/control-view.d.ts.map +0 -1
- package/dist/agent-runtime/conversations.d.ts.map +0 -1
- package/dist/agent-runtime/coordinator.d.ts.map +0 -1
- package/dist/agent-runtime/deferred-tool-search.d.ts +0 -9
- package/dist/agent-runtime/deferred-tool-search.d.ts.map +0 -1
- package/dist/agent-runtime/deferred-tool-selection.d.ts +0 -32
- package/dist/agent-runtime/deferred-tool-selection.d.ts.map +0 -1
- package/dist/agent-runtime/deferred-tools-internal.d.ts +0 -9
- package/dist/agent-runtime/deferred-tools-internal.d.ts.map +0 -1
- package/dist/agent-runtime/deferred-tools.d.ts +0 -4
- package/dist/agent-runtime/deferred-tools.d.ts.map +0 -1
- package/dist/agent-runtime/event-search-postgres.d.ts.map +0 -1
- package/dist/agent-runtime/event-search-terms.d.ts.map +0 -1
- package/dist/agent-runtime/event-search-tools.d.ts +0 -190
- package/dist/agent-runtime/event-search-tools.d.ts.map +0 -1
- package/dist/agent-runtime/event-search.d.ts.map +0 -1
- package/dist/agent-runtime/fault-bench.d.ts.map +0 -1
- package/dist/agent-runtime/harness-contract.d.ts +0 -206
- package/dist/agent-runtime/harness-contract.d.ts.map +0 -1
- package/dist/agent-runtime/harness-control.d.ts +0 -34
- package/dist/agent-runtime/harness-control.d.ts.map +0 -1
- package/dist/agent-runtime/harness-file-resources.d.ts +0 -33
- package/dist/agent-runtime/harness-file-resources.d.ts.map +0 -1
- package/dist/agent-runtime/harness-realtime.d.ts +0 -53
- package/dist/agent-runtime/harness-realtime.d.ts.map +0 -1
- package/dist/agent-runtime/harness-resources.d.ts.map +0 -1
- package/dist/agent-runtime/harness.d.ts +0 -15
- package/dist/agent-runtime/harness.d.ts.map +0 -1
- package/dist/agent-runtime/history.d.ts +0 -93
- package/dist/agent-runtime/history.d.ts.map +0 -1
- package/dist/agent-runtime/injection.d.ts +0 -28
- package/dist/agent-runtime/injection.d.ts.map +0 -1
- package/dist/agent-runtime/invocation-attempt.d.ts +0 -32
- package/dist/agent-runtime/invocation-attempt.d.ts.map +0 -1
- package/dist/agent-runtime/invocation-failure.d.ts.map +0 -1
- package/dist/agent-runtime/invocation-payload.d.ts +0 -38
- package/dist/agent-runtime/invocation-payload.d.ts.map +0 -1
- package/dist/agent-runtime/invocation-read.d.ts +0 -134
- package/dist/agent-runtime/invocation-read.d.ts.map +0 -1
- package/dist/agent-runtime/invocation-spend.d.ts +0 -9
- package/dist/agent-runtime/invocation-spend.d.ts.map +0 -1
- package/dist/agent-runtime/invocation-stream.d.ts +0 -20
- package/dist/agent-runtime/invocation-stream.d.ts.map +0 -1
- package/dist/agent-runtime/invocations.d.ts +0 -63
- package/dist/agent-runtime/invocations.d.ts.map +0 -1
- package/dist/agent-runtime/managed-tools.d.ts +0 -20
- package/dist/agent-runtime/managed-tools.d.ts.map +0 -1
- package/dist/agent-runtime/models-driver-step.d.ts +0 -212
- package/dist/agent-runtime/models-driver-step.d.ts.map +0 -1
- package/dist/agent-runtime/models-driver-telemetry.d.ts.map +0 -1
- package/dist/agent-runtime/models-driver.d.ts +0 -235
- package/dist/agent-runtime/models-driver.d.ts.map +0 -1
- package/dist/agent-runtime/models.d.ts.map +0 -1
- package/dist/agent-runtime/observability.d.ts +0 -579
- package/dist/agent-runtime/observability.d.ts.map +0 -1
- package/dist/agent-runtime/openai-messages.d.ts.map +0 -1
- package/dist/agent-runtime/openai-options.d.ts +0 -91
- package/dist/agent-runtime/openai-options.d.ts.map +0 -1
- package/dist/agent-runtime/openai-response.d.ts +0 -77
- package/dist/agent-runtime/openai-response.d.ts.map +0 -1
- package/dist/agent-runtime/openai-sse-state.d.ts.map +0 -1
- package/dist/agent-runtime/openai-sse.d.ts.map +0 -1
- package/dist/agent-runtime/openai.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-admission.d.ts +0 -84
- package/dist/agent-runtime/openrouter-admission.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-benchmarks.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-catalog-cache.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-catalog-query.d.ts +0 -57
- package/dist/agent-runtime/openrouter-catalog-query.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-catalog.d.ts +0 -258
- package/dist/agent-runtime/openrouter-catalog.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-models.d.ts +0 -203
- package/dist/agent-runtime/openrouter-models.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-options.d.ts +0 -136
- package/dist/agent-runtime/openrouter-options.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-response.d.ts +0 -22
- package/dist/agent-runtime/openrouter-response.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-route.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter-spend.d.ts +0 -24
- package/dist/agent-runtime/openrouter-spend.d.ts.map +0 -1
- package/dist/agent-runtime/openrouter.d.ts +0 -47
- package/dist/agent-runtime/openrouter.d.ts.map +0 -1
- package/dist/agent-runtime/owned-provider-stream.d.ts.map +0 -1
- package/dist/agent-runtime/postgres-schema.d.ts.map +0 -1
- package/dist/agent-runtime/postgres-transactions.d.ts +0 -54
- package/dist/agent-runtime/postgres-transactions.d.ts.map +0 -1
- package/dist/agent-runtime/postgres.d.ts +0 -72
- package/dist/agent-runtime/postgres.d.ts.map +0 -1
- package/dist/agent-runtime/projections.d.ts +0 -109
- package/dist/agent-runtime/projections.d.ts.map +0 -1
- package/dist/agent-runtime/provider-cache.d.ts +0 -30
- package/dist/agent-runtime/provider-cache.d.ts.map +0 -1
- package/dist/agent-runtime/provider-content.d.ts.map +0 -1
- package/dist/agent-runtime/provider-failure.d.ts +0 -95
- package/dist/agent-runtime/provider-failure.d.ts.map +0 -1
- package/dist/agent-runtime/provider-history.d.ts +0 -13
- package/dist/agent-runtime/provider-history.d.ts.map +0 -1
- package/dist/agent-runtime/provider-http.d.ts +0 -68
- package/dist/agent-runtime/provider-http.d.ts.map +0 -1
- package/dist/agent-runtime/provider-journal.d.ts.map +0 -1
- package/dist/agent-runtime/provider-json-schema-strip.d.ts.map +0 -1
- package/dist/agent-runtime/provider-json-schema.d.ts +0 -28
- package/dist/agent-runtime/provider-json-schema.d.ts.map +0 -1
- package/dist/agent-runtime/provider-media.d.ts +0 -49
- package/dist/agent-runtime/provider-media.d.ts.map +0 -1
- package/dist/agent-runtime/provider-openai-chat-helpers.d.ts +0 -27
- package/dist/agent-runtime/provider-openai-chat-helpers.d.ts.map +0 -1
- package/dist/agent-runtime/provider-openai-chat-sse.d.ts +0 -25
- package/dist/agent-runtime/provider-openai-chat-sse.d.ts.map +0 -1
- package/dist/agent-runtime/provider-openai-chat.d.ts +0 -27
- package/dist/agent-runtime/provider-openai-chat.d.ts.map +0 -1
- package/dist/agent-runtime/provider-origin.d.ts +0 -10
- package/dist/agent-runtime/provider-origin.d.ts.map +0 -1
- package/dist/agent-runtime/provider-sse.d.ts.map +0 -1
- package/dist/agent-runtime/provider-stream-parts.d.ts +0 -5
- package/dist/agent-runtime/provider-stream-parts.d.ts.map +0 -1
- package/dist/agent-runtime/provider-stream-segments.d.ts +0 -63
- package/dist/agent-runtime/provider-stream-segments.d.ts.map +0 -1
- package/dist/agent-runtime/provider-usage.d.ts +0 -24
- package/dist/agent-runtime/provider-usage.d.ts.map +0 -1
- package/dist/agent-runtime/purge.d.ts.map +0 -1
- package/dist/agent-runtime/react.d.ts.map +0 -1
- package/dist/agent-runtime/retry-policy.d.ts +0 -49
- package/dist/agent-runtime/retry-policy.d.ts.map +0 -1
- package/dist/agent-runtime/run-acquisition.d.ts +0 -24
- package/dist/agent-runtime/run-acquisition.d.ts.map +0 -1
- package/dist/agent-runtime/run-approval.d.ts +0 -82
- package/dist/agent-runtime/run-approval.d.ts.map +0 -1
- package/dist/agent-runtime/run-assertions.d.ts +0 -63
- package/dist/agent-runtime/run-assertions.d.ts.map +0 -1
- package/dist/agent-runtime/run-complete-retry.d.ts +0 -24
- package/dist/agent-runtime/run-complete-retry.d.ts.map +0 -1
- package/dist/agent-runtime/run-complete-stream.d.ts +0 -9
- package/dist/agent-runtime/run-complete-stream.d.ts.map +0 -1
- package/dist/agent-runtime/run-complete-tools.d.ts +0 -21
- package/dist/agent-runtime/run-complete-tools.d.ts.map +0 -1
- package/dist/agent-runtime/run-complete-types.d.ts +0 -168
- package/dist/agent-runtime/run-complete-types.d.ts.map +0 -1
- package/dist/agent-runtime/run-complete.d.ts +0 -25
- package/dist/agent-runtime/run-complete.d.ts.map +0 -1
- package/dist/agent-runtime/run-driver-compose.d.ts +0 -21
- package/dist/agent-runtime/run-driver-compose.d.ts.map +0 -1
- package/dist/agent-runtime/run-execution-state.d.ts +0 -178
- package/dist/agent-runtime/run-execution-state.d.ts.map +0 -1
- package/dist/agent-runtime/run-execution.d.ts +0 -22
- package/dist/agent-runtime/run-execution.d.ts.map +0 -1
- package/dist/agent-runtime/run-failure.d.ts +0 -21
- package/dist/agent-runtime/run-failure.d.ts.map +0 -1
- package/dist/agent-runtime/run-history-parts.d.ts +0 -14
- package/dist/agent-runtime/run-history-parts.d.ts.map +0 -1
- package/dist/agent-runtime/run-loop-events.d.ts +0 -126
- package/dist/agent-runtime/run-loop-events.d.ts.map +0 -1
- package/dist/agent-runtime/run-model-attempts.d.ts +0 -6
- package/dist/agent-runtime/run-model-attempts.d.ts.map +0 -1
- package/dist/agent-runtime/run-model-messages.d.ts +0 -9
- package/dist/agent-runtime/run-model-messages.d.ts.map +0 -1
- package/dist/agent-runtime/run-model-step.d.ts +0 -43
- package/dist/agent-runtime/run-model-step.d.ts.map +0 -1
- package/dist/agent-runtime/run-model-stream.d.ts +0 -27
- package/dist/agent-runtime/run-model-stream.d.ts.map +0 -1
- package/dist/agent-runtime/run-operation-lifecycle.d.ts +0 -32
- package/dist/agent-runtime/run-operation-lifecycle.d.ts.map +0 -1
- package/dist/agent-runtime/run-prompt-history.d.ts +0 -53
- package/dist/agent-runtime/run-prompt-history.d.ts.map +0 -1
- package/dist/agent-runtime/run-provider-ledger.d.ts +0 -32
- package/dist/agent-runtime/run-provider-ledger.d.ts.map +0 -1
- package/dist/agent-runtime/run-step-barriers.d.ts +0 -114
- package/dist/agent-runtime/run-step-barriers.d.ts.map +0 -1
- package/dist/agent-runtime/run-step-helpers.d.ts +0 -49
- package/dist/agent-runtime/run-step-helpers.d.ts.map +0 -1
- package/dist/agent-runtime/run-step-prepare.d.ts +0 -34
- package/dist/agent-runtime/run-step-prepare.d.ts.map +0 -1
- package/dist/agent-runtime/run-step-spend.d.ts +0 -394
- package/dist/agent-runtime/run-step-spend.d.ts.map +0 -1
- package/dist/agent-runtime/run-stream-parts.d.ts +0 -34
- package/dist/agent-runtime/run-stream-parts.d.ts.map +0 -1
- package/dist/agent-runtime/run-stream-recorded.d.ts +0 -8
- package/dist/agent-runtime/run-stream-recorded.d.ts.map +0 -1
- package/dist/agent-runtime/run-stream-step-text.d.ts +0 -29
- package/dist/agent-runtime/run-stream-step-text.d.ts.map +0 -1
- package/dist/agent-runtime/run-terminal.d.ts +0 -11
- package/dist/agent-runtime/run-terminal.d.ts.map +0 -1
- package/dist/agent-runtime/run-tool-approval-flow.d.ts +0 -36
- package/dist/agent-runtime/run-tool-approval-flow.d.ts.map +0 -1
- package/dist/agent-runtime/run-tool-approval-records.d.ts +0 -24
- package/dist/agent-runtime/run-tool-approval-records.d.ts.map +0 -1
- package/dist/agent-runtime/run-tool-call.d.ts +0 -73
- package/dist/agent-runtime/run-tool-call.d.ts.map +0 -1
- package/dist/agent-runtime/run-tool-errors.d.ts.map +0 -1
- package/dist/agent-runtime/run-tool-executor.d.ts +0 -34
- package/dist/agent-runtime/run-tool-executor.d.ts.map +0 -1
- package/dist/agent-runtime/run-tool-progress.d.ts +0 -21
- package/dist/agent-runtime/run-tool-progress.d.ts.map +0 -1
- package/dist/agent-runtime/run-turn-preparation.d.ts +0 -25
- package/dist/agent-runtime/run-turn-preparation.d.ts.map +0 -1
- package/dist/agent-runtime/run-unacquired.d.ts +0 -19
- package/dist/agent-runtime/run-unacquired.d.ts.map +0 -1
- package/dist/agent-runtime/runtime-admission-gate.d.ts.map +0 -1
- package/dist/agent-runtime/runtime-control.d.ts +0 -9
- package/dist/agent-runtime/runtime-control.d.ts.map +0 -1
- package/dist/agent-runtime/runtime-recovery.d.ts +0 -10
- package/dist/agent-runtime/runtime-recovery.d.ts.map +0 -1
- package/dist/agent-runtime/runtime-state.d.ts +0 -36
- package/dist/agent-runtime/runtime-state.d.ts.map +0 -1
- package/dist/agent-runtime/runtime-submit.d.ts +0 -5
- package/dist/agent-runtime/runtime-submit.d.ts.map +0 -1
- package/dist/agent-runtime/runtime.d.ts +0 -352
- package/dist/agent-runtime/runtime.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-binding.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-broker.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-bubblewrap-args.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-bubblewrap-storage.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-bubblewrap.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-coding-adapter.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-contract.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-process-linux.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-process-macos.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-process-owner.d.ts +0 -19
- package/dist/agent-runtime/sandbox-process-owner.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-process-spec.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-process-wrapper.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-process.d.ts +0 -8
- package/dist/agent-runtime/sandbox-process.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox-session.d.ts.map +0 -1
- package/dist/agent-runtime/sandbox.d.ts +0 -125
- package/dist/agent-runtime/sandbox.d.ts.map +0 -1
- package/dist/agent-runtime/schedule-contract.d.ts.map +0 -1
- package/dist/agent-runtime/schedule-dispatch.d.ts.map +0 -1
- package/dist/agent-runtime/schedule-records.d.ts.map +0 -1
- package/dist/agent-runtime/schedule-tools.d.ts +0 -76
- package/dist/agent-runtime/schedule-tools.d.ts.map +0 -1
- package/dist/agent-runtime/schedules.d.ts.map +0 -1
- package/dist/agent-runtime/spill.d.ts +0 -26
- package/dist/agent-runtime/spill.d.ts.map +0 -1
- package/dist/agent-runtime/sql-events.d.ts.map +0 -1
- package/dist/agent-runtime/sql-history.d.ts.map +0 -1
- package/dist/agent-runtime/sql-ledger.d.ts.map +0 -1
- package/dist/agent-runtime/sql-purge.d.ts.map +0 -1
- package/dist/agent-runtime/sql-reads.d.ts.map +0 -1
- package/dist/agent-runtime/sql-rows.d.ts.map +0 -1
- package/dist/agent-runtime/sql-session.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/sqlite-purge.d.ts +0 -6
- package/dist/agent-runtime/sqlite-purge.d.ts.map +0 -1
- package/dist/agent-runtime/sqlite-schema.d.ts +0 -7
- package/dist/agent-runtime/sqlite-schema.d.ts.map +0 -1
- package/dist/agent-runtime/sqlite-transactions.d.ts +0 -29
- package/dist/agent-runtime/sqlite-transactions.d.ts.map +0 -1
- package/dist/agent-runtime/sqlite.d.ts +0 -33
- package/dist/agent-runtime/sqlite.d.ts.map +0 -1
- package/dist/agent-runtime/state-slots.d.ts +0 -48
- package/dist/agent-runtime/state-slots.d.ts.map +0 -1
- package/dist/agent-runtime/state-tools.d.ts +0 -117
- package/dist/agent-runtime/state-tools.d.ts.map +0 -1
- package/dist/agent-runtime/store-archive.d.ts.map +0 -1
- package/dist/agent-runtime/store-branch.d.ts.map +0 -1
- package/dist/agent-runtime/store-capabilities.d.ts.map +0 -1
- package/dist/agent-runtime/store-conformance-branch.d.ts +0 -7
- package/dist/agent-runtime/store-conformance-branch.d.ts.map +0 -1
- package/dist/agent-runtime/store-conformance-capabilities.d.ts +0 -6
- package/dist/agent-runtime/store-conformance-capabilities.d.ts.map +0 -1
- package/dist/agent-runtime/store-conformance-event-once.d.ts +0 -12
- package/dist/agent-runtime/store-conformance-event-once.d.ts.map +0 -1
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +0 -454
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts.map +0 -1
- package/dist/agent-runtime/store-conformance-ordering.d.ts +0 -18
- package/dist/agent-runtime/store-conformance-ordering.d.ts.map +0 -1
- package/dist/agent-runtime/store-conformance-seed.d.ts +0 -8
- package/dist/agent-runtime/store-conformance-seed.d.ts.map +0 -1
- package/dist/agent-runtime/store-conformance-support.d.ts +0 -140
- package/dist/agent-runtime/store-conformance-support.d.ts.map +0 -1
- package/dist/agent-runtime/store-conformance-terminal.d.ts +0 -12
- package/dist/agent-runtime/store-conformance-terminal.d.ts.map +0 -1
- package/dist/agent-runtime/store-conformance.d.ts +0 -71
- package/dist/agent-runtime/store-conformance.d.ts.map +0 -1
- package/dist/agent-runtime/store-create.d.ts.map +0 -1
- package/dist/agent-runtime/store-driver-contract.d.ts +0 -1016
- package/dist/agent-runtime/store-driver-contract.d.ts.map +0 -1
- package/dist/agent-runtime/store-event-once.d.ts +0 -37
- package/dist/agent-runtime/store-event-once.d.ts.map +0 -1
- package/dist/agent-runtime/store-events.d.ts +0 -2231
- package/dist/agent-runtime/store-events.d.ts.map +0 -1
- package/dist/agent-runtime/store-memory-archive.d.ts.map +0 -1
- package/dist/agent-runtime/store-memory-events.d.ts +0 -7
- package/dist/agent-runtime/store-memory-events.d.ts.map +0 -1
- package/dist/agent-runtime/store-memory.d.ts.map +0 -1
- package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts +0 -6
- package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts.map +0 -1
- package/dist/agent-runtime/store-migrations/v2-to-v3.d.ts +0 -14
- package/dist/agent-runtime/store-migrations/v2-to-v3.d.ts.map +0 -1
- package/dist/agent-runtime/store-migrations/v3-to-v4.d.ts +0 -4
- package/dist/agent-runtime/store-migrations/v3-to-v4.d.ts.map +0 -1
- package/dist/agent-runtime/store-mutate.d.ts.map +0 -1
- package/dist/agent-runtime/store-purge.d.ts.map +0 -1
- package/dist/agent-runtime/store-reads.d.ts +0 -29
- package/dist/agent-runtime/store-reads.d.ts.map +0 -1
- package/dist/agent-runtime/store-reduce-history.d.ts +0 -10
- package/dist/agent-runtime/store-reduce-history.d.ts.map +0 -1
- package/dist/agent-runtime/store-reduce-run.d.ts +0 -14
- package/dist/agent-runtime/store-reduce-run.d.ts.map +0 -1
- package/dist/agent-runtime/store-reduce-shared.d.ts +0 -78
- package/dist/agent-runtime/store-reduce-shared.d.ts.map +0 -1
- package/dist/agent-runtime/store-reduce-terminal.d.ts +0 -6
- package/dist/agent-runtime/store-reduce-terminal.d.ts.map +0 -1
- package/dist/agent-runtime/store-reducer.d.ts +0 -24
- package/dist/agent-runtime/store-reducer.d.ts.map +0 -1
- package/dist/agent-runtime/store-replay.d.ts.map +0 -1
- package/dist/agent-runtime/store-snapshot.d.ts +0 -19
- package/dist/agent-runtime/store-snapshot.d.ts.map +0 -1
- package/dist/agent-runtime/store.d.ts +0 -3032
- package/dist/agent-runtime/store.d.ts.map +0 -1
- package/dist/agent-runtime/testing.d.ts +0 -46
- package/dist/agent-runtime/testing.d.ts.map +0 -1
- package/dist/agent-runtime/workspace-glob.d.ts.map +0 -1
- package/dist/index-18pf56dq.js +0 -409
- package/dist/index-1gmgwfn3.js +0 -439
- package/dist/index-23wn8sgf.js +0 -47
- package/dist/index-27hck3z2.js +0 -307
- package/dist/index-27srek2g.js +0 -3781
- package/dist/index-360j58vb.js +0 -63
- package/dist/index-67pnt4bh.js +0 -174
- package/dist/index-6kpwkpgx.js +0 -415
- package/dist/index-6xw1wf4m.js +0 -969
- package/dist/index-6yb4stq3.js +0 -224
- package/dist/index-76yhxa41.js +0 -725
- package/dist/index-79vqbjcz.js +0 -26
- package/dist/index-a84wj6y8.js +0 -510
- package/dist/index-b23s6e2c.js +0 -158
- package/dist/index-cb4nnvfr.js +0 -40
- package/dist/index-ek9w11r0.js +0 -40
- package/dist/index-er483f3w.js +0 -601
- package/dist/index-fjac2w5e.js +0 -3543
- package/dist/index-ga6avd48.js +0 -53
- package/dist/index-hy4653g4.js +0 -345
- package/dist/index-j903yhp4.js +0 -121
- package/dist/index-jzdbkanz.js +0 -215
- package/dist/index-k9g061ma.js +0 -164
- package/dist/index-krekhmp7.js +0 -707
- package/dist/index-ky79wwgs.js +0 -2872
- package/dist/index-mgr0mdqp.js +0 -271
- package/dist/index-mx2gya05.js +0 -465
- package/dist/index-nfeafbzh.js +0 -7379
- package/dist/index-ngwf1s3c.js +0 -51
- package/dist/index-pjjh91vw.js +0 -53
- package/dist/index-qv5v6w9c.js +0 -696
- package/dist/index-rj32hkkp.js +0 -305
- package/dist/index-t5zp1jjj.js +0 -77
- package/dist/index-v5hmyef8.js +0 -951
- package/dist/index-vv0hxrmy.js +0 -295
- package/dist/index-vxm0ya3f.js +0 -707
- package/dist/index-xtxxt87z.js +0 -349
- package/dist/index-zag9sjpd.js +0 -1210
- package/dist/index-zk839vzf.js +0 -231
- package/llms/upgrading-0.128.0-0.134.0.txt +0 -639
- /package/dist/agent-runtime/{control-interaction-schema.d.ts → browser/control-interaction-schema.d.ts} +0 -0
- /package/dist/agent-runtime/{react.d.ts → browser/react.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-search-automaton.d.ts → coding/coding-search-automaton.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-search-case-fold.d.ts → coding/coding-search-case-fold.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-search-class-ranges.d.ts → coding/coding-search-class-ranges.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-search-contract.d.ts → coding/coding-search-contract.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-search-limits.d.ts → coding/coding-search-limits.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-search-matcher.d.ts → coding/coding-search-matcher.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-search-output.d.ts → coding/coding-search-output.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-search-regex-syntax.d.ts → coding/coding-search-regex-syntax.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-search-unit-classes.d.ts → coding/coding-search-unit-classes.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-tool-files.d.ts → coding/coding-tool-files.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-tool-listing.d.ts → coding/coding-tool-listing.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-tool-refusals.d.ts → coding/coding-tool-refusals.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-tool-search-patch.d.ts → coding/coding-tool-search-patch.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-tool-shell.d.ts → coding/coding-tool-shell.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-tool-utf8.d.ts → coding/coding-tool-utf8.d.ts} +0 -0
- /package/dist/agent-runtime/{coding-tools.d.ts → coding/coding-tools.d.ts} +0 -0
- /package/dist/agent-runtime/{contained-scan-budget.d.ts → coding/contained-scan-budget.d.ts} +0 -0
- /package/dist/agent-runtime/{contained-scan-contract.d.ts → coding/contained-scan-contract.d.ts} +0 -0
- /package/dist/agent-runtime/{workspace-glob.d.ts → coding/workspace-glob.d.ts} +0 -0
- /package/dist/agent-runtime/{harness-resources.d.ts → harness/harness-resources.d.ts} +0 -0
- /package/dist/agent-runtime/{coordinator.d.ts → loop/coordinator.d.ts} +0 -0
- /package/dist/agent-runtime/{invocation-failure.d.ts → loop/invocation-failure.d.ts} +0 -0
- /package/dist/agent-runtime/{owned-provider-stream.d.ts → loop/owned-provider-stream.d.ts} +0 -0
- /package/dist/agent-runtime/{run-tool-errors.d.ts → loop/run-tool-errors.d.ts} +0 -0
- /package/dist/agent-runtime/{runtime-admission-gate.d.ts → loop/runtime-admission-gate.d.ts} +0 -0
- /package/dist/agent-runtime/{anthropic-sse.d.ts → providers/anthropic-sse.d.ts} +0 -0
- /package/dist/agent-runtime/{anthropic.d.ts → providers/anthropic.d.ts} +0 -0
- /package/dist/agent-runtime/{models-driver-telemetry.d.ts → providers/models-driver-telemetry.d.ts} +0 -0
- /package/dist/agent-runtime/{models.d.ts → providers/models.d.ts} +0 -0
- /package/dist/agent-runtime/{openai-messages.d.ts → providers/openai-messages.d.ts} +0 -0
- /package/dist/agent-runtime/{openai-sse-state.d.ts → providers/openai-sse-state.d.ts} +0 -0
- /package/dist/agent-runtime/{openai-sse.d.ts → providers/openai-sse.d.ts} +0 -0
- /package/dist/agent-runtime/{openai.d.ts → providers/openai.d.ts} +0 -0
- /package/dist/agent-runtime/{openrouter-benchmarks.d.ts → providers/openrouter-benchmarks.d.ts} +0 -0
- /package/dist/agent-runtime/{openrouter-catalog-cache.d.ts → providers/openrouter-catalog-cache.d.ts} +0 -0
- /package/dist/agent-runtime/{openrouter-route.d.ts → providers/openrouter-route.d.ts} +0 -0
- /package/dist/agent-runtime/{provider-content.d.ts → providers/provider-content.d.ts} +0 -0
- /package/dist/agent-runtime/{provider-journal.d.ts → providers/provider-journal.d.ts} +0 -0
- /package/dist/agent-runtime/{provider-json-schema-strip.d.ts → providers/provider-json-schema-strip.d.ts} +0 -0
- /package/dist/agent-runtime/{provider-sse.d.ts → providers/provider-sse.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-binding.d.ts → sandbox/sandbox-binding.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-broker.d.ts → sandbox/sandbox-broker.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-bubblewrap-args.d.ts → sandbox/sandbox-bubblewrap-args.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-bubblewrap-storage.d.ts → sandbox/sandbox-bubblewrap-storage.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-bubblewrap.d.ts → sandbox/sandbox-bubblewrap.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-coding-adapter.d.ts → sandbox/sandbox-coding-adapter.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-contract.d.ts → sandbox/sandbox-contract.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-process-linux.d.ts → sandbox/sandbox-process-linux.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-process-macos.d.ts → sandbox/sandbox-process-macos.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-process-spec.d.ts → sandbox/sandbox-process-spec.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-process-wrapper.d.ts → sandbox/sandbox-process-wrapper.d.ts} +0 -0
- /package/dist/agent-runtime/{sandbox-session.d.ts → sandbox/sandbox-session.d.ts} +0 -0
- /package/dist/agent-runtime/{archive-projection.d.ts → stores/archive-projection.d.ts} +0 -0
- /package/dist/agent-runtime/{archive-spill.d.ts → stores/archive-spill.d.ts} +0 -0
- /package/dist/agent-runtime/{branch-contract.d.ts → stores/branch-contract.d.ts} +0 -0
- /package/dist/agent-runtime/{branch-observations.d.ts → stores/branch-observations.d.ts} +0 -0
- /package/dist/agent-runtime/{branch-provider.d.ts → stores/branch-provider.d.ts} +0 -0
- /package/dist/agent-runtime/{branch-refusal.d.ts → stores/branch-refusal.d.ts} +0 -0
- /package/dist/agent-runtime/{branch-runtime-tools.d.ts → stores/branch-runtime-tools.d.ts} +0 -0
- /package/dist/agent-runtime/{branch-transitions.d.ts → stores/branch-transitions.d.ts} +0 -0
- /package/dist/agent-runtime/{child-blocking.d.ts → stores/child-blocking.d.ts} +0 -0
- /package/dist/agent-runtime/{children-control.d.ts → stores/children-control.d.ts} +0 -0
- /package/dist/agent-runtime/{children-spawn.d.ts → stores/children-spawn.d.ts} +0 -0
- /package/dist/agent-runtime/{children-state.d.ts → stores/children-state.d.ts} +0 -0
- /package/dist/agent-runtime/{children-usage.d.ts → stores/children-usage.d.ts} +0 -0
- /package/dist/agent-runtime/{children.d.ts → stores/children.d.ts} +0 -0
- /package/dist/agent-runtime/{conversations.d.ts → stores/conversations.d.ts} +0 -0
- /package/dist/agent-runtime/{event-search-postgres.d.ts → stores/event-search-postgres.d.ts} +0 -0
- /package/dist/agent-runtime/{event-search-terms.d.ts → stores/event-search-terms.d.ts} +0 -0
- /package/dist/agent-runtime/{event-search.d.ts → stores/event-search.d.ts} +0 -0
- /package/dist/agent-runtime/{postgres-schema.d.ts → stores/postgres-schema.d.ts} +0 -0
- /package/dist/agent-runtime/{purge.d.ts → stores/purge.d.ts} +0 -0
- /package/dist/agent-runtime/{schedule-contract.d.ts → stores/schedule-contract.d.ts} +0 -0
- /package/dist/agent-runtime/{schedule-dispatch.d.ts → stores/schedule-dispatch.d.ts} +0 -0
- /package/dist/agent-runtime/{schedule-records.d.ts → stores/schedule-records.d.ts} +0 -0
- /package/dist/agent-runtime/{schedules.d.ts → stores/schedules.d.ts} +0 -0
- /package/dist/agent-runtime/{sql-events.d.ts → stores/sql-events.d.ts} +0 -0
- /package/dist/agent-runtime/{sql-history.d.ts → stores/sql-history.d.ts} +0 -0
- /package/dist/agent-runtime/{sql-ledger.d.ts → stores/sql-ledger.d.ts} +0 -0
- /package/dist/agent-runtime/{sql-purge.d.ts → stores/sql-purge.d.ts} +0 -0
- /package/dist/agent-runtime/{sql-reads.d.ts → stores/sql-reads.d.ts} +0 -0
- /package/dist/agent-runtime/{sql-rows.d.ts → stores/sql-rows.d.ts} +0 -0
- /package/dist/agent-runtime/{sql-session.d.ts → stores/sql-session.d.ts} +0 -0
- /package/dist/agent-runtime/{sqlite-bun.d.ts → stores/sqlite-bun.d.ts} +0 -0
- /package/dist/agent-runtime/{sqlite-node.d.ts → stores/sqlite-node.d.ts} +0 -0
- /package/dist/agent-runtime/{store-archive.d.ts → stores/store-archive.d.ts} +0 -0
- /package/dist/agent-runtime/{store-branch.d.ts → stores/store-branch.d.ts} +0 -0
- /package/dist/agent-runtime/{store-capabilities.d.ts → stores/store-capabilities.d.ts} +0 -0
- /package/dist/agent-runtime/{store-create.d.ts → stores/store-create.d.ts} +0 -0
- /package/dist/agent-runtime/{store-memory-archive.d.ts → stores/store-memory-archive.d.ts} +0 -0
- /package/dist/agent-runtime/{store-memory.d.ts → stores/store-memory.d.ts} +0 -0
- /package/dist/agent-runtime/{store-mutate.d.ts → stores/store-mutate.d.ts} +0 -0
- /package/dist/agent-runtime/{store-purge.d.ts → stores/store-purge.d.ts} +0 -0
- /package/dist/agent-runtime/{store-replay.d.ts → stores/store-replay.d.ts} +0 -0
- /package/dist/agent-runtime/{fault-bench.d.ts → testing/fault-bench.d.ts} +0 -0
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
# Upgrading 0.128.0 → 0.135.0 — stitchkit docs slice
|
|
2
|
+
|
|
3
|
+
> Generated from the `docs/` tree by `bun run gen:llms`. The index of all slices is
|
|
4
|
+
> `llms.txt` in this package.
|
|
5
|
+
|
|
6
|
+
Contains: Guide: Upgrading, 0.128.0 → 0.135.0 (docs/guide/upgrading.md)
|
|
7
|
+
|
|
8
|
+
==============================================================================
|
|
9
|
+
# Guide: Upgrading, 0.128.0 → 0.135.0 (docs/guide/upgrading.md)
|
|
10
|
+
==============================================================================
|
|
11
|
+
|
|
12
|
+
## Released migration: 0.135.0
|
|
13
|
+
|
|
14
|
+
### explicit-deadline-propagation
|
|
15
|
+
|
|
16
|
+
**Who must act:** applications relying on per-call `timeout` or contract `endpoint.timeout` in `createHttpClient` or `createClient` to emit the outbound `x-stitchkit-timeout-ms` deadline budget header without setting `propagateDeadline: true`.
|
|
17
|
+
|
|
18
|
+
In `0.135.0` (ADR 0337), `timeout` and contract `endpoint.timeout` bound the local client request only and no longer implicitly send `x-stitchkit-timeout-ms` (which triggered unexpected CORS preflights on third-party origins). Opt in explicitly at the client or call site:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
// Before (implicitly emitted x-stitchkit-timeout-ms when timeout was set)
|
|
22
|
+
const http = createHttpClient({ baseUrl: '/api' });
|
|
23
|
+
await http.get('/reports', { timeout: 5_000 });
|
|
24
|
+
const api = createClient(reportsContract, { baseUrl: 'https://downstream.example' });
|
|
25
|
+
await api.reports.list.withOptions({ timeout: 5_000 });
|
|
26
|
+
|
|
27
|
+
// After (explicit opt-in at client or call level)
|
|
28
|
+
const http = createHttpClient({ baseUrl: '/api', propagateDeadline: true });
|
|
29
|
+
await http.get('/reports', { timeout: 5_000 });
|
|
30
|
+
// Or per call:
|
|
31
|
+
await api.reports.list.withOptions({ timeout: 5_000, propagateDeadline: true });
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### toolkit-without-ai-peer
|
|
35
|
+
|
|
36
|
+
**Who must act:** applications calling `toolkit.mountAgent(...)` on an instance returned by `createToolkit<AppContext>()` from `stitchkit/tools/toolkit`.
|
|
37
|
+
|
|
38
|
+
In `0.135.0` (ADR 0338), `createToolkit` drops `mountAgent` so `stitchkit/tools/toolkit` never imports `ai` and installs cleanly with only `@modelcontextprotocol/server`. Replace `toolkit.mountAgent(...)` with peer-free `toolkit.mountAgentTools(...)`, or import `mountAgent` directly from `stitchkit/tools/agent` when driving a Vercel AI SDK loop:
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
// Before
|
|
42
|
+
const tools = createToolkit<AppContext>();
|
|
43
|
+
const sdkTools = tools.mountAgent(services, { context, access });
|
|
44
|
+
|
|
45
|
+
// After (peer-free StitchKit agent-runtime)
|
|
46
|
+
const tools = createToolkit<AppContext>();
|
|
47
|
+
const agentTools = tools.mountAgentTools(services, { context, access });
|
|
48
|
+
|
|
49
|
+
// After (Vercel AI SDK loop)
|
|
50
|
+
import { mountAgent } from 'stitchkit/tools/agent';
|
|
51
|
+
const sdkTools = mountAgent(services, { context, access });
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### openrouter-separated-cache-write-price-ceiling
|
|
55
|
+
|
|
56
|
+
**Who must act:** applications using `evaluateOpenRouterModelAdmission`, `listOpenRouterModels`, or `resolveOpenRouterModelCeiling` from `stitchkit/agent-runtime/openrouter` that relied on `maxPromptUsdPerMillion` rejecting expensive cache-write rates or on `listOpenRouterModels` ignoring tiered prompt ceilings.
|
|
57
|
+
|
|
58
|
+
In `0.135.0`, `promptUsdPerMillion` ceilings and `maxPromptUsdPerMillion` check prompt rates only (including conditional tiers), while 5m/1h cache-write rates have their own `cacheWriteUsdPerMillion` ceiling and `maxCacheWriteUsdPerMillion` limit shared identically by admission and catalog filtering:
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
// Before (maxPromptUsdPerMillion also rejected cacheWrite/cacheWrite1h in admission only)
|
|
62
|
+
evaluateOpenRouterModelAdmission({ snapshot, modelId, policy: { maxPromptUsdPerMillion: 6 } });
|
|
63
|
+
|
|
64
|
+
// After (declare explicit cache-write cap when desired; both admission and listOpenRouterModels share semantics)
|
|
65
|
+
evaluateOpenRouterModelAdmission({
|
|
66
|
+
snapshot,
|
|
67
|
+
modelId,
|
|
68
|
+
policy: { maxPromptUsdPerMillion: 6, maxCacheWriteUsdPerMillion: 6 },
|
|
69
|
+
});
|
|
70
|
+
listOpenRouterModels(snapshot, { maxPromptUsdPerMillion: 6, maxCacheWriteUsdPerMillion: 6 });
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Released migration: 0.134.0
|
|
74
|
+
|
|
75
|
+
### agent-runtime-native-model-port
|
|
76
|
+
|
|
77
|
+
**Who must act:** applications using `stitchkit/agent-runtime` or `stitchkit/agent-runtime/harness` with AI SDK `LanguageModel`, `ToolSet`, `ModelMessage`, or `LanguageModelUsage` types.
|
|
78
|
+
|
|
79
|
+
`stitchkit/agent-runtime` now executes models exclusively through `AgentModelDriver` (one provider call per step, zero AI SDK dependencies). Migrate cleanly in two steps:
|
|
80
|
+
|
|
81
|
+
#### Step 1 — Mechanical compatibility (keep existing AI SDK models and tools)
|
|
82
|
+
|
|
83
|
+
1. Rename `AgentLanguageModelProvider` to `AgentModelDriverFactory` and `AgentResolvedModel.model` to `AgentResolvedModel.driver`.
|
|
84
|
+
2. Wrap any AI SDK v4 `LanguageModel` with `fromAiSdkModel` and any AI SDK `ToolSet` (including `mountAgent(...)`) with `fromAiSdkTools` from `stitchkit/agent-runtime/ai-sdk`.
|
|
85
|
+
3. Update `history.resolveFile` to return tagged `AgentModelFileData` (`{ type: 'data', data }`, `{ type: 'url', url }`, `{ type: 'reference', reference }`, or `{ type: 'text', text }`), and read `AgentGeneratedFile` (`file.mediaType`, `file.data`, `file.uint8Array`, `file.base64`, `file.url`) in `persistGeneratedFile`.
|
|
86
|
+
4. Update `prepareStep` and `stopPolicies` to read peer-free `AgentStepResult` / `AgentModelMessage` / `AgentInstructions`. `AgentRuntimeStopPolicy<CONTEXT>` now takes a single `<CONTEXT>` generic (removing the unused first generic), and all tool events in `AgentModelStreamPart` and `CompleteStreamPart` use unified `toolCallId`.
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
// Before
|
|
90
|
+
import { mountAgent } from 'stitchkit/tools/agent';
|
|
91
|
+
|
|
92
|
+
const runtime = createAgentRuntime({
|
|
93
|
+
models: { resolve: () => ({ descriptor, model: aiSdkModel }) },
|
|
94
|
+
tools: (ctx) =>
|
|
95
|
+
mountAgent(services, {
|
|
96
|
+
context: ctx.context,
|
|
97
|
+
access: { gate: ctx.toolFenceLifecycle },
|
|
98
|
+
}),
|
|
99
|
+
// ...
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// After (Step 1: compatibility adapter)
|
|
103
|
+
import { fromAiSdkModel, fromAiSdkTools } from 'stitchkit/agent-runtime/ai-sdk';
|
|
104
|
+
import { mountAgent } from 'stitchkit/tools/agent';
|
|
105
|
+
|
|
106
|
+
const runtime = createAgentRuntime({
|
|
107
|
+
models: { resolve: () => ({ descriptor, driver: fromAiSdkModel(aiSdkModel) }) },
|
|
108
|
+
tools: (ctx) =>
|
|
109
|
+
fromAiSdkTools(
|
|
110
|
+
mountAgent(services, {
|
|
111
|
+
context: ctx.context,
|
|
112
|
+
access: { gate: ctx.toolFenceLifecycle },
|
|
113
|
+
}),
|
|
114
|
+
),
|
|
115
|
+
// ...
|
|
116
|
+
});
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
#### Step 2 — Full peer-free migration (remove `ai` and `@openrouter/ai-sdk-provider`)
|
|
120
|
+
|
|
121
|
+
1. Replace `fromAiSdkModel(...)` with one of the three peer-free native providers:
|
|
122
|
+
- `openRouterProvider` from `stitchkit/agent-runtime/openrouter`
|
|
123
|
+
- `openAiProvider` from `stitchkit/agent-runtime/openai`
|
|
124
|
+
- `anthropicProvider` from `stitchkit/agent-runtime/anthropic`
|
|
125
|
+
2. Replace `fromAiSdkTools(mountAgent(...))` with `mountAgentTools(...)` from `stitchkit/tools`, and replace custom AI SDK `tool(...)` declarations with `defineAgentTool(...)` from `stitchkit/tools`.
|
|
126
|
+
3. Replace direct `generateText` / `generateObject` helper calls with `completeText` / `completeObject` from `stitchkit/agent-runtime`, and replace `wrapLanguageModel` middleware with `wrapModelDriver` / `composeModelDrivers`.
|
|
127
|
+
4. Check for every remaining `ai`-requiring `stitchkit` entrypoint — `stitchkit/tools/agent`, `stitchkit/tools/toolkit`, and `stitchkit/agent-runtime/ai-sdk` — before removing `ai` and `@openrouter/ai-sdk-provider` from `package.json`:
|
|
128
|
+
- `stitchkit/tools/toolkit` (`createToolkit`) deliberately requires **both** `@modelcontextprotocol/server` and `ai` because it composes the MCP server factories and AI SDK `mountAgent` together (ADR 0284). Keeping a `stitchkit/tools/toolkit` import after removing `ai` fails clean installs and bundling (`Could not resolve: "ai"`).
|
|
129
|
+
- If you used `createToolkit<AppContext>()` without AI SDK `mountAgent`, replace it with the narrow entrypoints directly:
|
|
130
|
+
- MCP servers (`createMcpHandler`, `buildMcpServer`, `mountMcp`, `createStdioMcpServer`) → import from `stitchkit/tools/mcp` (requires only `@modelcontextprotocol/server`) and annotate the `context` factory return type (`context: (auth): AppContext => ({ ... })`).
|
|
131
|
+
- Peer-free agent tools (`mountAgentTools`, `defineAgentTool`) → import from `stitchkit/tools` (zero optional peers).
|
|
132
|
+
- CLI (`createCli`, `createCliInvoker`) → import from `stitchkit/cli` (zero optional peers; annotate `context: (auth): AppContext => ({ ... })`).
|
|
133
|
+
- Once no imports of `stitchkit/tools/agent`, `stitchkit/tools/toolkit`, or `stitchkit/agent-runtime/ai-sdk` remain (`rg "stitchkit/(tools/agent|tools/toolkit|agent-runtime/ai-sdk)" .`), remove `ai` and `@openrouter/ai-sdk-provider` from `package.json`.
|
|
134
|
+
|
|
135
|
+
```ts
|
|
136
|
+
// After (Step 2: completely peer-free)
|
|
137
|
+
import { openRouterProvider } from 'stitchkit/agent-runtime/openrouter';
|
|
138
|
+
import { defineAgentTool, mountAgentTools } from 'stitchkit/tools';
|
|
139
|
+
|
|
140
|
+
const openrouter = openRouterProvider({ apiKey: env.OPENROUTER_API_KEY });
|
|
141
|
+
|
|
142
|
+
const runtime = createAgentRuntime({
|
|
143
|
+
models: {
|
|
144
|
+
resolve: () => ({ descriptor, driver: openrouter.create(descriptor.modelId) }),
|
|
145
|
+
},
|
|
146
|
+
tools: (ctx) =>
|
|
147
|
+
mountAgentTools(services, {
|
|
148
|
+
context: ctx.context,
|
|
149
|
+
access: { gate: ctx.toolFenceLifecycle },
|
|
150
|
+
}),
|
|
151
|
+
// ...
|
|
152
|
+
});
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### openrouter-native-driver
|
|
156
|
+
|
|
157
|
+
**Who must act:** applications using `stitchkit/agent-runtime/openrouter` with `baseURL`, `extraHeaders`, `provider_api_keys`, or `@openrouter/ai-sdk-provider`.
|
|
158
|
+
|
|
159
|
+
`openRouterProvider` now talks directly to OpenRouter's Chat Completions SSE endpoint over Web `fetch` and requires no optional peers. Update settings keys to camelCase and uninstall `@openrouter/ai-sdk-provider`:
|
|
160
|
+
|
|
161
|
+
```ts
|
|
162
|
+
// Before
|
|
163
|
+
const provider = openRouterProvider({
|
|
164
|
+
apiKey: env.OPENROUTER_API_KEY,
|
|
165
|
+
baseURL: 'https://openrouter.ai/api/v1',
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
// After
|
|
169
|
+
const provider = openRouterProvider({
|
|
170
|
+
apiKey: env.OPENROUTER_API_KEY,
|
|
171
|
+
baseUrl: 'https://openrouter.ai/api/v1',
|
|
172
|
+
appName: 'my-app',
|
|
173
|
+
appUrl: 'https://example.com',
|
|
174
|
+
providerApiKeys: { anthropic: env.ANTHROPIC_BYOK_KEY },
|
|
175
|
+
});
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
`OpenRouterProviderAccess.sessionPerConversation` now reads `request.correlation.conversationId` directly and no longer requires configuring `invocations`.
|
|
179
|
+
|
|
180
|
+
### tools-agent-tool-model-output
|
|
181
|
+
|
|
182
|
+
**Who must act:** callers of `stitchkit/tools` referencing `RuntimeAgentModelOutput` or returning legacy deprecated AI SDK tool-output shapes (`file-data`, `image-data`, `file-url`, `image-url`, `file-id`, `image-file-id`) from `present.agent`.
|
|
183
|
+
|
|
184
|
+
1. Rename `RuntimeAgentModelOutput` imports to `AgentToolModelOutput` from `stitchkit/tools`.
|
|
185
|
+
2. Replace deprecated content part kinds inside `present.agent` with canonical `{ type: 'file', data, mediaType, filename? }`:
|
|
186
|
+
|
|
187
|
+
```ts
|
|
188
|
+
// Before
|
|
189
|
+
import type { RuntimeAgentModelOutput } from 'stitchkit/tools';
|
|
190
|
+
const output: RuntimeAgentModelOutput = {
|
|
191
|
+
type: 'content',
|
|
192
|
+
value: [
|
|
193
|
+
{ type: 'image-data', data: base64Png, mediaType: 'image/png' },
|
|
194
|
+
{ type: 'file-url', url: 'https://example.com/report.pdf', mediaType: 'application/pdf' },
|
|
195
|
+
],
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// After
|
|
199
|
+
import type { AgentToolModelOutput } from 'stitchkit/tools';
|
|
200
|
+
const output: AgentToolModelOutput = {
|
|
201
|
+
type: 'content',
|
|
202
|
+
value: [
|
|
203
|
+
{ type: 'file', data: { type: 'data', data: base64Png }, mediaType: 'image/png' },
|
|
204
|
+
{
|
|
205
|
+
type: 'file',
|
|
206
|
+
data: { type: 'url', url: new URL('https://example.com/report.pdf') },
|
|
207
|
+
mediaType: 'application/pdf',
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
};
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Applications using `mountAgent` (`stitchkit/tools/agent`) with their own AI SDK loop continue to work unchanged and receive non-deprecated `{ type: 'file', data, mediaType }` tool outputs.
|
|
214
|
+
|
|
215
|
+
### agent-runtime-testing-replay-driver
|
|
216
|
+
|
|
217
|
+
**Who must act:** tests calling `createReplayAgentProvider` from `stitchkit/agent-runtime/testing` expecting an AI SDK `LanguageModel` instead of an `AgentModelDriver`.
|
|
218
|
+
|
|
219
|
+
`createReplayAgentProvider` now returns an `AgentModelDriverFactory` whose `.create(modelId)` returns an `AgentModelDriver`. Assign it to `AgentResolvedModel.driver` (or pass it to `completeText`/`completeObject`). For scripted multi-step tests with direct request inspection, use `createScriptedModelDriver` from `stitchkit/agent-runtime/testing`:
|
|
220
|
+
|
|
221
|
+
```ts
|
|
222
|
+
import { createScriptedModelDriver } from 'stitchkit/agent-runtime/testing';
|
|
223
|
+
|
|
224
|
+
const driver = createScriptedModelDriver({
|
|
225
|
+
steps: [
|
|
226
|
+
[
|
|
227
|
+
{ type: 'text-delta', id: 't1', delta: 'Hello' },
|
|
228
|
+
{
|
|
229
|
+
type: 'finish',
|
|
230
|
+
finishReason: 'stop',
|
|
231
|
+
usage: {
|
|
232
|
+
inputTokens: { value: 10, provenance: 'provider-reported' },
|
|
233
|
+
outputTokens: { value: 2, provenance: 'provider-reported' },
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
],
|
|
238
|
+
});
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### executor-acp-plan-and-tool-provider
|
|
242
|
+
|
|
243
|
+
**Who must act:** every caller of `stitchkit/agent-executor` that switches exhaustively on `ExecutorDelta['type']`, and every operator running an executor and its server on different releases across `0.134.0`.
|
|
244
|
+
|
|
245
|
+
`ExecutorDeltaSchema` / `ExecutorDelta` now includes `ExecutorPlanDeltaSchema` (`{ type: 'plan', action, planId?, entries, ... }`) for structured ACP plan lifecycle updates (`plan`, `plan_update`, `plan_removed`), and `ExecutorToolResultDeltaSchema` (plus `AgentToolResultPartSchema`) now carries an optional `provider` envelope for ACP tool metadata (`title`, `kind`, `locations`). `projectExecutorDeltas` ignores `plan` deltas automatically; add a `case 'plan':` branch to any custom exhaustive `switch (delta.type)`.
|
|
246
|
+
|
|
247
|
+
**Upgrade the server before any executor.** Every object on the executor ↔ server wire contract is strict (ADR 0334), so a server on `0.133.x` or older refuses a whole `report` carrying either `deltas[].type = 'plan'` or `tool-result.provider`. An older executor writes neither key and keeps working against a `0.134.0` server. In the reverse direction (`server → executor`), `offer.input` now permits an optional `provider` envelope on `text` and `tool-result` parts (because `AgentMessagePartSchema` parts are non-strict, an older executor strips those keys rather than rejecting the offer, so upgrade executors too if you rely on forwarding them). See the full release matrix in the [API reference](../api/reference.md#version-skew-between-an-executor-and-its-server).
|
|
248
|
+
|
|
249
|
+
## Released migration: 0.133.0
|
|
250
|
+
|
|
251
|
+
### executor-testing-claude-sdk-subpath
|
|
252
|
+
|
|
253
|
+
**Who must act:** tests that import `createFakeClaudeSdkQuery`, `createStubClaudeSdkSession` or a `FakeClaudeSdk*` type from `stitchkit/agent-executor/testing`.
|
|
254
|
+
|
|
255
|
+
Import them from `stitchkit/agent-executor/testing/claude-sdk`. Nothing else changes: the functions, their options and `StubOverrides` (still exported by `stitchkit/agent-executor/testing`) are the same.
|
|
256
|
+
|
|
257
|
+
```ts
|
|
258
|
+
// Before
|
|
259
|
+
import { createFakeClaudeSdkQuery, createStubClaudeSdkSession } from 'stitchkit/agent-executor/testing';
|
|
260
|
+
// After
|
|
261
|
+
import { createFakeClaudeSdkQuery, createStubClaudeSdkSession } from 'stitchkit/agent-executor/testing/claude-sdk';
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
`stitchkit/agent-executor/testing` no longer names the types of `@anthropic-ai/claude-agent-sdk`, so a project that tests a Codex or ACP driver needs neither the SDK nor `skipLibCheck`.
|
|
265
|
+
|
|
266
|
+
### executor-profile-env-sanitizer
|
|
267
|
+
|
|
268
|
+
**Who must act:** callers of `sanitizeProfileEnv` from `stitchkit/agent-executor`.
|
|
269
|
+
|
|
270
|
+
The function is removed: it dropped a variable whose name the profile schema refuses, so one bad name had two outcomes. Pass the variables to the profile and let `ExecutorProfileConfigSchema` refuse a bad name, or filter in the application where dropping is a decision:
|
|
271
|
+
|
|
272
|
+
```ts
|
|
273
|
+
// Before
|
|
274
|
+
const env = sanitizeProfileEnv(untrusted);
|
|
275
|
+
// After
|
|
276
|
+
const env = Object.fromEntries(
|
|
277
|
+
Object.entries(untrusted).filter(
|
|
278
|
+
(entry): entry is [string, string] =>
|
|
279
|
+
typeof entry[1] === 'string' && EXECUTOR_ENV_KEY_PATTERN.test(entry[0]),
|
|
280
|
+
),
|
|
281
|
+
);
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### executor-conformance-lifecycle
|
|
285
|
+
|
|
286
|
+
**Who must act:** tests that run `runAgentEngineConformance` (`stitchkit/agent-executor/testing`) on a driver written outside this package.
|
|
287
|
+
|
|
288
|
+
The kit now proves what a driver does when its session stops, and fails by the name of the rule a driver breaks. The drivers of this package and the replay driver pass. For your own driver, make each of these true:
|
|
289
|
+
|
|
290
|
+
- `open({ signal })` rejects with `signal.reason` when the signal is already aborted, and when it aborts while `open` runs — the kit aborts it from `onStartupPhase`. A driver that reports no startup phase is not asked the second.
|
|
291
|
+
- An abort while a turn runs fails that turn's `deltas` with `signal.reason`; afterwards `turn.respond()` and `session.startTurn()` reject with the same reason.
|
|
292
|
+
- `turn.interrupt()` resolves, without an error, once the turn ended, the signal aborted or the session closed.
|
|
293
|
+
- `session.close()` during a turn fails the turn's `deltas` instead of leaving them open, resolves when called twice at once and again later, and `onStartupPhase` is not called after it.
|
|
294
|
+
- `(await driver.info()).capabilities` equals `driver.capabilities` — both absent, or the same object by value.
|
|
295
|
+
|
|
296
|
+
```ts
|
|
297
|
+
// Before: nothing followed the caller's signal, and the kit did not ask.
|
|
298
|
+
async open(input) {
|
|
299
|
+
return openSession(input.profile, input.cwd);
|
|
300
|
+
}
|
|
301
|
+
// After
|
|
302
|
+
async open(input) {
|
|
303
|
+
input.signal?.throwIfAborted();
|
|
304
|
+
const session = await openSession(input.profile, input.cwd);
|
|
305
|
+
input.signal?.addEventListener('abort', () => session.fail(input.signal?.reason), { once: true });
|
|
306
|
+
return session;
|
|
307
|
+
}
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
Each wait in these checks is bounded at 10 s and a hang fails as `… did not settle within 10000 ms`; give the conformance test a timeout above that (the tests of this package use 30–60 s), or the runner's own timeout reports the hang without the name.
|
|
311
|
+
|
|
312
|
+
### codex-owned-thread-unsubscribe
|
|
313
|
+
|
|
314
|
+
**Who must act:** callers of `stitchkit/agent-executor/codex` that call `unsubscribeThread` on a thread their own driver opened.
|
|
315
|
+
|
|
316
|
+
`CodexSession.unsubscribeThread()` without a `threadId`, with the session's own id, or with the id of any thread open on the same shared server now rejects with `TypeError`. Close the session instead: `close()` interrupts the thread's turn, answers what it still holds and unsubscribes it, and a shared server frees its slot.
|
|
317
|
+
|
|
318
|
+
```ts
|
|
319
|
+
// Before: detached the thread behind the driver; a shared server kept counting it.
|
|
320
|
+
await session.unsubscribeThread();
|
|
321
|
+
await server.unsubscribeThread({ threadId: session.nativeThreadId });
|
|
322
|
+
// After: one way to detach a thread the driver opened.
|
|
323
|
+
await session.close();
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
A thread the driver did not open — an external TUI thread, a sibling client's thread — is still unsubscribed with one raw `thread/unsubscribe`.
|
|
327
|
+
|
|
328
|
+
### process-bootstrap-rename
|
|
329
|
+
|
|
330
|
+
**Who must act:** single-file applications (a `bun build` output that routes its own argv) that import `stitchkit/process/owner-loss`.
|
|
331
|
+
|
|
332
|
+
The narrow bootstrap entry now carries every invocation the package starts for itself — the owner-loss guard of `runNativeCommand` and the process root of `stitchkit/service-host/work` — so both the subpath and the function are renamed. Nothing else changes: call it once before your argv dispatcher and skip the dispatcher when it returns `true`.
|
|
333
|
+
|
|
334
|
+
```ts
|
|
335
|
+
// Before
|
|
336
|
+
import { bootstrapNativeCommandOwnerLoss } from 'stitchkit/process/owner-loss';
|
|
337
|
+
if (!bootstrapNativeCommandOwnerLoss()) await main();
|
|
338
|
+
// After
|
|
339
|
+
import { bootstrapPackageProcess } from 'stitchkit/process/bootstrap';
|
|
340
|
+
if (!bootstrapPackageProcess()) await main();
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
The rename is mechanical; these two commands find every site:
|
|
344
|
+
|
|
345
|
+
```bash
|
|
346
|
+
rg "stitchkit/process/owner-loss" .
|
|
347
|
+
rg "bootstrapNativeCommandOwnerLoss" .
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
An application that does not bundle itself into one file, or that never imported the old subpath, has nothing to do.
|
|
351
|
+
|
|
352
|
+
### client-artifact-package-option
|
|
353
|
+
|
|
354
|
+
**Who must act:** builds that call `buildClientArtifact` (`stitchkit/files/packaging`) with `package` or `executable`, or read `artifact.package`.
|
|
355
|
+
|
|
356
|
+
`buildClientArtifact` now builds the self-contained file and its hash, nothing else. Find the calls:
|
|
357
|
+
|
|
358
|
+
```bash
|
|
359
|
+
rg "buildClientArtifact" .
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
1. A call with `executable` and no `package`: rename the option.
|
|
363
|
+
|
|
364
|
+
```ts
|
|
365
|
+
// Before
|
|
366
|
+
await buildClientArtifact({ entry, outFile, executable: '/opt/bun/bin/bun' });
|
|
367
|
+
// After
|
|
368
|
+
await buildClientArtifact({ entry, outFile, executables: { bun: '/opt/bun/bin/bun' } });
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
2. A call with `package`: the npm archive is built by `buildClientPackage`. It builds from the
|
|
372
|
+
entry itself, not from the bundled file, so keep the `buildClientArtifact` call only if you
|
|
373
|
+
still ship the single file.
|
|
374
|
+
|
|
375
|
+
```ts
|
|
376
|
+
// Before
|
|
377
|
+
const artifact = await buildClientArtifact({
|
|
378
|
+
entry: 'src/api-client.ts',
|
|
379
|
+
outFile: 'dist/api-client.js',
|
|
380
|
+
forbiddenModules: ['src/terminal/'],
|
|
381
|
+
package: { name: '@acme/api-client', version: '1.4.0', outDir: 'dist', exports: ['createApiClient'] },
|
|
382
|
+
});
|
|
383
|
+
publish(artifact.package.tarball);
|
|
384
|
+
// After
|
|
385
|
+
const client = await buildClientPackage({
|
|
386
|
+
name: '@acme/api-client',
|
|
387
|
+
version: '1.4.0',
|
|
388
|
+
entries: { '.': 'src/api-client.ts' },
|
|
389
|
+
tsconfig: 'tsconfig.json',
|
|
390
|
+
peerDependencies: { zod: '^4.6.0' },
|
|
391
|
+
forbiddenModules: ['src/terminal/'],
|
|
392
|
+
outDir: 'dist',
|
|
393
|
+
proof: { exports: { '.': ['createApiClient'] } },
|
|
394
|
+
});
|
|
395
|
+
publish(client.tarball);
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
What differs from the old archive, and may refuse a client the old one packed:
|
|
399
|
+
|
|
400
|
+
- The entry is a `.ts` or `.tsx` module under the directory of `tsconfig`, and a `typescript`
|
|
401
|
+
package is installed in the project: the archive now carries declarations.
|
|
402
|
+
- A package the client imports is bundled unless you list it in `peerDependencies` or
|
|
403
|
+
`dependencies`. A public type that names a package you did not list is refused as
|
|
404
|
+
`declaration-dependency` — list it, usually as a peer.
|
|
405
|
+
- The main module moves from `index.js` to `dist/<path under the tsconfig directory>.js`, behind
|
|
406
|
+
`exports`. A consumer that imports the package by name is unaffected; one that reached for
|
|
407
|
+
`<package>/index.js` imports the package name instead.
|
|
408
|
+
- A failure is a `ClientPackageError` with a `reason` (`missing-export` for a name in
|
|
409
|
+
`proof.exports`), not an `Error` to match by message.
|
|
410
|
+
|
|
411
|
+
[The guide](native-io.md#a-typed-client-as-an-npm-package) describes the options and every refusal.
|
|
412
|
+
|
|
413
|
+
## Released migration: 0.132.0
|
|
414
|
+
|
|
415
|
+
### saved-sync-cursor-zero
|
|
416
|
+
|
|
417
|
+
**Who must act:** users of `stitchkit/sync` whose cursor reader returns zero for an uninitialized replica, or whose `beginFullSync` resets the saved cursor to zero.
|
|
418
|
+
|
|
419
|
+
Return `null` until the first snapshot completes. A saved `0` requests the incremental feed after version zero.
|
|
420
|
+
`beginFullSync` follows the same rule: reset the saved cursor to `null`, not to `0`, or a session
|
|
421
|
+
restarted before the snapshot's first page was saved reads the feed instead of starting the snapshot again.
|
|
422
|
+
|
|
423
|
+
```ts
|
|
424
|
+
// Before: a missing row and a completed snapshot at zero shared the same marker.
|
|
425
|
+
readCursor: () => row?.version ?? 0
|
|
426
|
+
// After: preserve every published server version.
|
|
427
|
+
readCursor: () => row?.version ?? null
|
|
428
|
+
// Before: the reset wrote the same marker a completed snapshot at zero has.
|
|
429
|
+
beginFullSync: () => db.run('UPDATE sync_state SET version = 0')
|
|
430
|
+
// After: the reset is "no completed snapshot".
|
|
431
|
+
beginFullSync: () => db.run('UPDATE sync_state SET version = NULL')
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
If an old store persisted zero for both states and has no completion marker, perform one full
|
|
435
|
+
snapshot for those ambiguous rows. Preserve pending operations and active snapshot resume tokens.
|
|
436
|
+
Adapters that added one to wire versions can now pass them directly. If the offset was applied
|
|
437
|
+
only at the port boundary, remove the translation there and keep the stored server versions.
|
|
438
|
+
|
|
439
|
+
## Released migration: 0.131.0
|
|
440
|
+
|
|
441
|
+
### codex-typed-control-dtos
|
|
442
|
+
|
|
443
|
+
**Who must act:** every caller of `stitchkit/agent-executor/codex` that treats `CodexControlClient` / `CodexSession` / `CodexControlConnection` / `CodexSharedServer` RPC replies as raw `JsonRpcValue`, reads `CodexThreadContext.sandbox` as a plain string or `approvalPolicy` as raw `JsonRpcValue`, or passes an untyped `JsonRpcValue` to `CodexTurnInput.sandboxPolicy`.
|
|
444
|
+
|
|
445
|
+
`CodexControlClient` methods (all 19 inspection/thread/turn RPCs, including `listTurns` → `CodexTurnsPage`, and empty-object mutators `injectItems`, `archiveThread`, `setThreadName` → `Promise<void>`) now validate and return typed loose Zod DTOs, throwing `CodexProtocolError` on malformed replies. `CodexThreadContext.sandbox` and `CodexTurnInput.sandboxPolicy` now use `CodexSandboxPolicy` (`{ type: 'workspaceWrite' | 'readOnly' | 'dangerFullAccess' | 'externalSandbox' | string }`), `CodexThreadContext.approvalPolicy` uses `CodexApprovalPolicy`, and `thread` uses `CodexThread`:
|
|
446
|
+
|
|
447
|
+
```ts
|
|
448
|
+
// before
|
|
449
|
+
const raw = (await session.readThread({ threadId })) as { thread?: { id?: string } }
|
|
450
|
+
const mode = session.threadContext.sandbox // string
|
|
451
|
+
const archived: JsonRpcValue = await session.archiveThread({ threadId })
|
|
452
|
+
|
|
453
|
+
// after
|
|
454
|
+
const { thread } = await session.readThread({ threadId })
|
|
455
|
+
const policyType = session.threadContext.sandbox?.type
|
|
456
|
+
await session.archiveThread({ threadId }) // Promise<void>
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
### claude-sdk-03332-and-typed-permission-controls
|
|
460
|
+
|
|
461
|
+
**Who must act:** every caller of `stitchkit/agent-executor/claude-sdk` that assigns `ClaudeSdkSession.setPermissionMode` to `() => Promise<void>`, mutates `ClaudeSdkPermissionRequestMeta.input` in place or builds it from non-JSON `unknown` values, or pins `@anthropic-ai/claude-agent-sdk` below `0.3.332`.
|
|
462
|
+
|
|
463
|
+
Upgrade `@anthropic-ai/claude-agent-sdk` to `^0.3.332`, read the optional effective mode returned by `setPermissionMode`, and treat `ClaudeSdkPermissionRequestMeta.input` as `Readonly<Record<string, JsonRpcValue>>`:
|
|
464
|
+
|
|
465
|
+
```ts
|
|
466
|
+
// before
|
|
467
|
+
meta.input.command = 'rewritten' // mutable Record<string, unknown>
|
|
468
|
+
const done: void = await session.setPermissionMode('acceptEdits')
|
|
469
|
+
|
|
470
|
+
// after
|
|
471
|
+
const updatedInput = { ...meta.input, command: 'rewritten' } // Readonly<Record<string, JsonRpcValue>>
|
|
472
|
+
const applied = await session.setPermissionMode('acceptEdits')
|
|
473
|
+
const effectiveMode = applied?.mode ?? 'acceptEdits'
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
### plan-limits-due-clean-answers
|
|
477
|
+
|
|
478
|
+
**Who must act:** every caller of `planLimitsDue` from `stitchkit/agent-executor` that relied on clean `no-plan-limit` or `unpublished` answers returning `true` once `maxAgeMs` elapsed.
|
|
479
|
+
|
|
480
|
+
`planLimitsDue` now returns `false` when `limits.answer !== 'known'` and `limits.error === undefined`. Re-poll explicitly when credentials change or an active session opens, or keep relying on `planLimitsDue` for `known` and errored reads:
|
|
481
|
+
|
|
482
|
+
```ts
|
|
483
|
+
// before
|
|
484
|
+
// planLimitsDue returned true for no-plan-limit / unpublished once maxAgeMs passed
|
|
485
|
+
|
|
486
|
+
// after
|
|
487
|
+
const shouldPoll =
|
|
488
|
+
limits === undefined ||
|
|
489
|
+
planLimitsDue({ limits, now, maxAgeMs })
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
## Released migration: 0.130.0
|
|
493
|
+
|
|
494
|
+
### executor-status-delta
|
|
495
|
+
|
|
496
|
+
**Who must act:** every caller of `stitchkit/agent-executor` that switches exhaustively on `ExecutorDelta['type']`, and every operator who runs an executor and its server on different releases across `0.130.0`.
|
|
497
|
+
|
|
498
|
+
`ExecutorDeltaSchema` / `ExecutorDelta` now includes `ExecutorStatusDeltaSchema` (`{ type: 'status', phase, ... }`) for structured startup lifecycle deltas. `phase` is an open label of 1–64 trimmed characters: the drivers emit `spawning`, `initializing` and `verifying`, and a reader treats any other label as a phase it does not know rather than refusing it. `projectExecutorDeltas` ignores `status` deltas automatically; add a `case 'status':` branch to any custom exhaustive `switch (delta.type)`:
|
|
499
|
+
|
|
500
|
+
```ts
|
|
501
|
+
// before
|
|
502
|
+
switch (delta.type) {
|
|
503
|
+
case 'text':
|
|
504
|
+
// ...
|
|
505
|
+
case 'window':
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
// after
|
|
510
|
+
switch (delta.type) {
|
|
511
|
+
case 'text':
|
|
512
|
+
// ...
|
|
513
|
+
case 'status':
|
|
514
|
+
case 'window':
|
|
515
|
+
break;
|
|
516
|
+
}
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
**The wire changed in both directions, not only by the `status` delta.** Every object of the
|
|
520
|
+
executor ↔ server contract is strict, so a reader on `0.129.x` refuses a whole message that carries
|
|
521
|
+
a key `0.130.0` added:
|
|
522
|
+
|
|
523
|
+
| Travels | Message | A `0.129.x` reader refuses |
|
|
524
|
+
|---------|---------|----------------------------|
|
|
525
|
+
| executor → server | `hello` | `engines[].capabilities` — written by every driver, so the handshake itself fails |
|
|
526
|
+
| executor → server | `report` | a `status` delta; `threadDisposition` on `turn-end` and on `failure`; `cacheCreationInputTokens`, `thinkingTokens`, `totalTokens`, `total` and `modelUsage` on a `usage` delta |
|
|
527
|
+
| server → executor | `reply` | `scope` and `updatedInput` on `approve`; `interrupt` on `deny` |
|
|
528
|
+
|
|
529
|
+
Upgrade the server before any executor: an older executor writes none of these keys and keeps
|
|
530
|
+
working. Until every executor is upgraded, the server sends `scope: 'session'`, `updatedInput` and
|
|
531
|
+
`interrupt` only to an executor whose `hello` declared `sessionApproval`, `updatedToolInput` and
|
|
532
|
+
`interruptOnDeny` for the engine — an engine announced without `capabilities` is on `0.129.x`.
|
|
533
|
+
`0.131.0` added `plan` and `windows[].scope` to `planLimits` in `hello` the same way. The rule
|
|
534
|
+
and the table of every release are in the
|
|
535
|
+
[API reference](../api/reference.md#version-skew-between-an-executor-and-its-server) (ADR 0334).
|
|
536
|
+
|
|
537
|
+
## Released migration: 0.129.0
|
|
538
|
+
|
|
539
|
+
### codex-plan-window-keys
|
|
540
|
+
|
|
541
|
+
**Who must act:** every caller of `codexPlanWindows` or `createCodexDriver` (`status()`) from
|
|
542
|
+
`stitchkit/agent-executor/codex` that matches plan window names against `'primary'` or
|
|
543
|
+
`'secondary'`.
|
|
544
|
+
|
|
545
|
+
`codexPlanWindows` now unfolds the full `account/rateLimits/read` response envelope (including
|
|
546
|
+
per-model `rateLimitsByLimitId` buckets) as well as bare `RateLimitSnapshot` objects, keying each
|
|
547
|
+
window as `<limitId|limit>:<windowDurationMins>m` (falling back to `<limitId|limit>:<slot>` when
|
|
548
|
+
duration is absent, or `<limitId|limit>:<windowDurationMins>m:<slot>` when both slots share a
|
|
549
|
+
duration) and populating optional `windowDurationMins` and `label` on `PlanWindow`:
|
|
550
|
+
|
|
551
|
+
```ts
|
|
552
|
+
// before
|
|
553
|
+
const fiveHour = status.planLimits?.windows.find((w) => w.name === 'primary')
|
|
554
|
+
const weekly = status.planLimits?.windows.find((w) => w.name === 'secondary')
|
|
555
|
+
|
|
556
|
+
// after
|
|
557
|
+
const fiveHour = status.planLimits?.windows.find(
|
|
558
|
+
(w) => w.windowDurationMins === 300 || w.name === 'limit:primary',
|
|
559
|
+
)
|
|
560
|
+
const weekly = status.planLimits?.windows.find(
|
|
561
|
+
(w) => w.windowDurationMins === 10080 || w.name === 'limit:secondary',
|
|
562
|
+
)
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
## Released migration: 0.128.0
|
|
566
|
+
|
|
567
|
+
### invocation-payload-lifecycle
|
|
568
|
+
|
|
569
|
+
**Who must act:** every caller of `createModelInvocationLedger` from `stitchkit/agent-runtime`
|
|
570
|
+
that reads `readPayload`, reads `sent.artifactId` on `provider/request` or top-level `artifactId`
|
|
571
|
+
on `provider/response` (`ModelInvocationRecord`), passes `authorize` to `ModelInvocationConfig`,
|
|
572
|
+
or relies on `maxPayloadBytes` aborting the provider call.
|
|
573
|
+
|
|
574
|
+
1. **`readPayload` returns a discriminated status:** encrypted payloads redacted by
|
|
575
|
+
`purgePayloads` / `store.purgeExpiredPayloads` stay readable as `{ status: 'expired', expiredAt }`
|
|
576
|
+
while live payloads return `{ status: 'available', payload }`:
|
|
577
|
+
|
|
578
|
+
```ts
|
|
579
|
+
// before
|
|
580
|
+
const payload = await ledger.readPayload({ conversationId, artifactId }, ctx)
|
|
581
|
+
console.log(payload.payload)
|
|
582
|
+
|
|
583
|
+
// after
|
|
584
|
+
const result = await ledger.readPayload({ conversationId, artifactId }, ctx)
|
|
585
|
+
if (result.status === 'available') {
|
|
586
|
+
console.log(result.payload)
|
|
587
|
+
} else {
|
|
588
|
+
console.log('expired at', result.expiredAt)
|
|
589
|
+
}
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
2. **`sent.artifactId` (`provider/request`) and top-level `artifactId` (`provider/response`) are optional when oversized:** exceeding
|
|
593
|
+
`maxPayloadBytes` no longer aborts or prevents the provider call. Instead, the ledger omits the
|
|
594
|
+
encrypted body, records `payloadOmitted: 'max-payload-bytes'` (with `artifactId` absent and
|
|
595
|
+
`payloadSha256` preserved), and reports `InvocationPayloadTooLargeError` via `complete().receiptError`:
|
|
596
|
+
|
|
597
|
+
```ts
|
|
598
|
+
// before
|
|
599
|
+
const id: string = record.sent.artifactId
|
|
600
|
+
|
|
601
|
+
// after
|
|
602
|
+
if (record.sent.artifactId !== undefined) {
|
|
603
|
+
await ledger.readPayload({ conversationId, artifactId: record.sent.artifactId }, ctx)
|
|
604
|
+
} else if (record.sent.payloadOmitted === 'max-payload-bytes') {
|
|
605
|
+
// body was intentionally omitted past maxPayloadBytes
|
|
606
|
+
}
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
3. **`ModelInvocationConfig.authorize` handles `'purge-payloads'`:** if your `authorize` callback
|
|
610
|
+
switches exhaustively on `input.action`, handle the new `'purge-payloads'` variant alongside
|
|
611
|
+
`'complete'`, `'agent'`, `'read'`, and `'read-payload'` (single-argument `input: ModelInvocationAuthorizationInput` carrying `input.context`):
|
|
612
|
+
|
|
613
|
+
```ts
|
|
614
|
+
authorize: (input) => {
|
|
615
|
+
switch (input.action) {
|
|
616
|
+
case 'complete':
|
|
617
|
+
case 'agent':
|
|
618
|
+
case 'read':
|
|
619
|
+
case 'read-payload':
|
|
620
|
+
case 'purge-payloads':
|
|
621
|
+
return allow(input.context, input)
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
### cli-option-projections-error-field
|
|
627
|
+
|
|
628
|
+
**Who must act:** every caller of `extractCliGlobalOptions` or `scanCliInvocation` from
|
|
629
|
+
`stitchkit/cli` that caught a thrown `CliArgumentError` on call or on `.argv` access (→ ADR 0327).
|
|
630
|
+
|
|
631
|
+
Both projections now return malformed CLI syntax on an explicit `error?: CliArgumentError` field
|
|
632
|
+
with fail-closed empty routing fields (`argv: []` on `extractCliGlobalOptions`; `command: undefined`
|
|
633
|
+
and `commandTokens: []` on `scanCliInvocation`) instead of throwing on call or via a getter on `.argv`:
|
|
634
|
+
|
|
635
|
+
```ts
|
|
636
|
+
// before
|
|
637
|
+
let parsed
|
|
638
|
+
try {
|
|
639
|
+
parsed = extractCliGlobalOptions(argv, globals)
|
|
640
|
+
void parsed.argv
|
|
641
|
+
} catch (err) {
|
|
642
|
+
if (err instanceof CliArgumentError) {
|
|
643
|
+
parsed = { globals: {}, argv: [] }
|
|
644
|
+
} else {
|
|
645
|
+
throw err
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
// after
|
|
650
|
+
const parsed = extractCliGlobalOptions(argv, globals)
|
|
651
|
+
if (parsed.error) {
|
|
652
|
+
// handle parsed.error, or pass raw argv to createCli(...) for exit-code-2 reporting
|
|
653
|
+
}
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
### declaration-single-version
|
|
657
|
+
|
|
658
|
+
**Who must act:** every repository whose `project.json` is validated by `stitchkit/declaration`
|
|
659
|
+
and still carries `identity.version`, or whose server/CLI code reads `declaration.identity.version`.
|
|
660
|
+
|
|
661
|
+
The root `package.json` is the single source of truth for the repository version (whether SemVer or
|
|
662
|
+
CalVer). `ProjectIdentitySchema` no longer accepts `identity.version`:
|
|
663
|
+
|
|
664
|
+
```jsonc
|
|
665
|
+
// before (project.json)
|
|
666
|
+
{
|
|
667
|
+
"identity": {
|
|
668
|
+
"slug": "my-app",
|
|
669
|
+
"name": "My App",
|
|
670
|
+
"version": "0.1.0",
|
|
671
|
+
"description": { "en": "My App." }
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
// after (project.json)
|
|
676
|
+
{
|
|
677
|
+
"identity": {
|
|
678
|
+
"slug": "my-app",
|
|
679
|
+
"name": "My App",
|
|
680
|
+
"description": { "en": "My App." }
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
Read your application version from the root `package.json` for a single-version application — or
|
|
686
|
+
from the package's own `package.json` if that package is released independently — instead of
|
|
687
|
+
`identity.version` (for example, in OpenAPI `info.version`, MCP `serverInfo.version`, and
|
|
688
|
+
`createCli({ version })`).
|
|
689
|
+
|
|
690
|
+
### read-only-surface-inspection
|
|
691
|
+
|
|
692
|
+
**Who must act:** optional — hosts and test suites that currently mount a tool surface with
|
|
693
|
+
`access: { open: 'local-operator' }` solely for read-only surface inspection.
|
|
694
|
+
|
|
695
|
+
Pass `access: { inspect: true }` to `mountAgent`, `mountMcp`, `buildMcpServer`, `createToolInvoker`,
|
|
696
|
+
`createCli`, `createCliInvoker`, or `createDeferredAgentToolSurface().mount` whenever a caller only
|
|
697
|
+
needs catalogs, schemas, `--help`, `--schema`, or `commands`. Every tool execution fails closed with
|
|
698
|
+
`FORBIDDEN` before extensions, hooks, durability, multi-round resolvers, or auth run. Keep
|
|
699
|
+
`access: { gate }` for authenticated execution surfaces and `access: { open: 'local-operator' }` for
|
|
700
|
+
tests or local tools that genuinely execute handlers.
|