stitchkit 0.134.1 → 0.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/README.md +7 -7
- 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-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.map +1 -0
- package/dist/agent-runtime/providers/openrouter-models.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-options.d.ts +136 -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-route.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-spend.d.ts +24 -0
- package/dist/agent-runtime/providers/openrouter-spend.d.ts.map +1 -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.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 +227 -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 +202 -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 +11 -11
- 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/application/grammy.d.ts +1 -1
- 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/contract-identity.d.ts +1 -1
- package/dist/browser/http-fetch.d.ts +1 -1
- package/dist/browser/http.d.ts +6 -3
- package/dist/browser/http.d.ts.map +1 -1
- package/dist/browser/socket-io-contract.d.ts +1 -1
- package/dist/contract/bridge-envelope.d.ts +1 -1
- package/dist/contract/client-types.d.ts +4 -3
- package/dist/contract/client-types.d.ts.map +1 -1
- package/dist/contract/define.d.ts +2 -2
- package/dist/contract/errors-factory.d.ts +1 -1
- package/dist/contract/fingerprint.d.ts +1 -1
- package/dist/device-relay/hub.d.ts +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 +10 -10
- package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/openrouter.js +167 -113
- 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 +11 -11
- 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/bin/upgrade-cli.js +1 -1
- package/dist/entrypoints/cli.js +8 -9
- package/dist/entrypoints/files/packaging.js +2 -2
- package/dist/entrypoints/handler.js +2 -2
- package/dist/entrypoints/http.js +2 -2
- package/dist/entrypoints/index.js +2 -2
- package/dist/entrypoints/node.js +2 -2
- package/dist/entrypoints/react.js +1 -1
- package/dist/entrypoints/remote.js +2 -2
- package/dist/entrypoints/server.js +4 -4
- 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 +11 -13
- 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 +13 -20
- package/dist/entrypoints/tools.js +14 -15
- package/dist/files/native-packaging-layout.d.ts +1 -1
- 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-7mjsb7zv.js +163 -0
- package/dist/index-84tp547a.js +981 -0
- package/dist/index-9be3tf6r.js +196 -0
- package/dist/index-a09r9ff0.js +76 -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-m2b49tvc.js +2343 -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/index-zfrysr1e.js +710 -0
- package/dist/internal/postgres-query.d.ts +1 -1
- package/dist/json-schema/dialect.d.ts.map +1 -1
- package/dist/json-schema/string-format.d.ts.map +1 -1
- package/dist/react/query-client.d.ts +1 -1
- package/dist/server/bridge-host.d.ts +1 -1
- package/dist/server/bun.d.ts +1 -1
- package/dist/server/endpoint-dispatch.d.ts.map +1 -1
- package/dist/server/middleware/cors.d.ts +3 -3
- package/dist/server/middleware/cors.d.ts.map +1 -1
- package/dist/server/socket-io-config.d.ts +1 -1
- package/dist/service-host/identity.d.ts +1 -1
- package/dist/service-host/systemd-inspect.d.ts +1 -1
- package/dist/testing/manual-clock.d.ts +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/connections/types.d.ts +1 -1
- package/dist/tools/mcp/handler.d.ts +1 -1
- package/dist/tools/mcp/lazy-discovery.d.ts +1 -1
- package/dist/tools/mcp/mount.d.ts +1 -1
- package/dist/tools/mcp/stdio.d.ts +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-browser.txt +1 -1
- package/llms/agent-runtime-openrouter.txt +4 -4
- package/llms/agent-runtime-sandbox.txt +20 -7
- package/llms/agent-runtime-sqlite-bun.txt +1 -1
- package/llms/agent-runtime.2.txt +1 -1
- package/llms/agent-runtime.3.txt +23 -7
- package/llms/agent-runtime.4.txt +2 -2
- package/llms/agent-runtime.txt +23 -10
- package/llms/application.2.txt +4 -4
- package/llms/application.txt +4 -4
- package/llms/cli.2.txt +30 -6
- package/llms/cli.txt +2 -2
- package/llms/contract.txt +2 -2
- package/llms/files-packaging.txt +1 -1
- package/llms/geo.txt +1 -1
- package/llms/live.txt +1 -1
- package/llms/oauth.txt +4 -4
- package/llms/observability.txt +3 -3
- package/llms/primitives.txt +1 -1
- package/llms/process.2.txt +7 -7
- package/llms/react.txt +4 -4
- package/llms/server.2.txt +7 -7
- package/llms/server.3.txt +5 -5
- package/llms/server.4.txt +6 -6
- package/llms/server.txt +23 -11
- package/llms/stitchkit.2.txt +21 -14
- package/llms/stitchkit.3.txt +1 -1
- package/llms/stitchkit.txt +87 -87
- package/llms/telegram.txt +1 -1
- package/llms/testing.txt +4 -4
- package/llms/tools-connections.txt +1 -1
- package/llms/tools-toolkit.txt +3 -4
- package/llms/tools.2.txt +6 -6
- package/llms/tools.3.txt +8 -8
- package/llms/tools.4.txt +3 -3
- package/llms/upgrading-0.106.0-0.126.0.txt +1 -1
- package/llms/upgrading-0.128.0-0.135.0.txt +700 -0
- package/llms/upgrading-0.37.0-0.53.0.txt +7 -7
- package/llms/upgrading-0.69.0-0.95.0.txt +1 -1
- package/llms/upgrading-0.96.0-0.105.0.txt +1 -1
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +403 -248
- package/llms.txt +12 -12
- 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 +0 -227
- 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.map +0 -1
- 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.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.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 +0 -202
- 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-654rhe5d.js +0 -159
- 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-b23s6e2c.js +0 -158
- package/dist/index-cb4nnvfr.js +0 -40
- package/dist/index-ek9w11r0.js +0 -40
- package/dist/index-epyj7ptp.js +0 -510
- 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-kdw0n92g.js +0 -76
- package/dist/index-krekhmp7.js +0 -707
- package/dist/index-ky79wwgs.js +0 -2872
- package/dist/index-mgr0mdqp.js +0 -271
- package/dist/index-mrng24wq.js +0 -1210
- 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-qymek778.js +0 -2289
- 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-zk839vzf.js +0 -231
- package/llms/upgrading-0.128.0-0.134.0.txt +0 -633
- /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-catalog.d.ts → providers/openrouter-catalog.d.ts} +0 -0
- /package/dist/agent-runtime/{openrouter-models.d.ts → providers/openrouter-models.d.ts} +0 -0
- /package/dist/agent-runtime/{openrouter-route.d.ts → providers/openrouter-route.d.ts} +0 -0
- /package/dist/agent-runtime/{openrouter.d.ts → providers/openrouter.d.ts} +0 -0
- /package/dist/agent-runtime/{provider-content.d.ts → providers/provider-content.d.ts} +0 -0
- /package/dist/agent-runtime/{provider-http.d.ts → providers/provider-http.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-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-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
package/llms/application.2.txt
CHANGED
|
@@ -296,7 +296,7 @@ only through `stitchkit/application` exports.
|
|
|
296
296
|
## Database connection
|
|
297
297
|
|
|
298
298
|
Wrap connection allocation and readiness in `start`, and make `close` safe after
|
|
299
|
-
partial setup.
|
|
299
|
+
partial setup. StitchKit invokes cleanup for every attempted start, including a
|
|
300
300
|
start that allocates a client and then rejects.
|
|
301
301
|
|
|
302
302
|
```ts
|
|
@@ -319,7 +319,7 @@ allocation and proves one rollback close.
|
|
|
319
319
|
|
|
320
320
|
An application-owned client is an ordinary managed resource. Keep SDK creation,
|
|
321
321
|
credentials, authorization and reconnect policy in the application; no Telegram
|
|
322
|
-
client SDK is required by
|
|
322
|
+
client SDK is required by StitchKit. Create a fresh client inside each `start`,
|
|
323
323
|
publish it after connection/readiness succeeds, and share one memoized destroy
|
|
324
324
|
promise between partial-start cleanup, `close` and `force`:
|
|
325
325
|
|
|
@@ -485,7 +485,7 @@ async function handleDelivery(delivery: Delivery) {
|
|
|
485
485
|
}
|
|
486
486
|
```
|
|
487
487
|
|
|
488
|
-
|
|
488
|
+
StitchKit owns only process-local admission accounting and drain. Durable claims,
|
|
489
489
|
visibility timeouts, deduplication, idempotency and retry classification remain
|
|
490
490
|
in the queue/product layer.
|
|
491
491
|
|
|
@@ -514,7 +514,7 @@ await publisher.close()
|
|
|
514
514
|
```
|
|
515
515
|
|
|
516
516
|
The monitoring backend, transport retry and cross-process aggregation remain
|
|
517
|
-
outside
|
|
517
|
+
outside StitchKit. The executable recipe blocks revision 0, coalesces
|
|
518
518
|
intermediate revisions, explicitly admits the final absolute snapshot after
|
|
519
519
|
unsubscribe and proves that `close()` flushes revision 3. Do not rely on an
|
|
520
520
|
asynchronous subscriber callback racing cleanup: publish `getSnapshot()` before
|
package/llms/application.txt
CHANGED
|
@@ -104,7 +104,7 @@ no cost to binding first.
|
|
|
104
104
|
|
|
105
105
|
The exact resource callbacks are typed by their public configuration. The
|
|
106
106
|
important ownership rule is stable: the application decides what the
|
|
107
|
-
database/server/provider objects are and how they are configured;
|
|
107
|
+
database/server/provider objects are and how they are configured; StitchKit
|
|
108
108
|
orders their process-local lifecycle and decides *when* they come into
|
|
109
109
|
existence.
|
|
110
110
|
|
|
@@ -117,9 +117,9 @@ dependency.
|
|
|
117
117
|
|
|
118
118
|
Start and readiness are different. A connection can finish setup and return a
|
|
119
119
|
ready handle. A poller can return a handle immediately, settle `ready` later,
|
|
120
|
-
and keep a long-lived `completion` promise.
|
|
120
|
+
and keep a long-lived `completion` promise. StitchKit observes both.
|
|
121
121
|
|
|
122
|
-
Once
|
|
122
|
+
Once StitchKit invokes start/activation, cleanup is guaranteed to be attempted.
|
|
123
123
|
Write `close` so it is safe when setup was partial:
|
|
124
124
|
|
|
125
125
|
```ts
|
|
@@ -267,7 +267,7 @@ failure, and the startup error stays the `cause` of the `AggregateError` that
|
|
|
267
267
|
failed startup from ever reporting why it failed.
|
|
268
268
|
|
|
269
269
|
A required long-lived completion that rejects after startup makes readiness
|
|
270
|
-
false and health unhealthy.
|
|
270
|
+
false and health unhealthy. StitchKit records the failure but does not restart
|
|
271
271
|
the resource or process.
|
|
272
272
|
|
|
273
273
|
`ApplicationResourceShutdown.failures` names the phase that failed — `start`,
|
package/llms/cli.2.txt
CHANGED
|
@@ -106,7 +106,7 @@ on stdout. A native `defineCliCommand` declares none of those facts, so a failed
|
|
|
106
106
|
|
|
107
107
|
A CLI that mounts a server's tools through `defineMcpClientConnection` never sees the
|
|
108
108
|
method or contract `effect` — every MCP call is a `POST` — so it reads the `readOnlyHint`
|
|
109
|
-
the server publishes. A
|
|
109
|
+
the server publishes. A StitchKit server publishes it for every repeatable read by the
|
|
110
110
|
rule above ([MCP → `readOnlyHint`](./mcp-and-agents.md#saying-which-tools-only-read--readonlyhint)),
|
|
111
111
|
so the same command behaves the same over the contract and over MCP. The hint is the
|
|
112
112
|
server's word: a server that labels a write as read-only makes the CLI withhold that
|
|
@@ -720,7 +720,7 @@ counts raw UTF-8 body bytes, including SSE framing, regardless of `Content-Lengt
|
|
|
720
720
|
Pending legacy calls also count comments and wrong-id frames. `budget.maxTools`
|
|
721
721
|
and `budget.maxSchemaBytes` remain separate mount limits.
|
|
722
722
|
|
|
723
|
-
**A stored catalog is mounted while it is current.** A
|
|
723
|
+
**A stored catalog is mounted while it is current.** A StitchKit server sends its
|
|
724
724
|
[catalog stamp](./mcp-and-agents.md#knowing-your-catalog-is-stale--the-catalog-stamp) with
|
|
725
725
|
the `initialize` answer, as the `stitchkit-catalog` response header. Given a `catalog:
|
|
726
726
|
{ load, store }`, the connection compares it with the stamp of the stored `tools/list`
|
|
@@ -731,7 +731,7 @@ stores again. A listing is stored only when every tool in it carries the stamp t
|
|
|
731
731
|
`initialize` answer announced, so a rolling deploy answering the two requests from
|
|
732
732
|
different builds stores nothing. A server without a stamp, a surface with raw SDK tools
|
|
733
733
|
and a failing `load` or `store` all cost one `tools/list`, never the mount. The stamp
|
|
734
|
-
covers what `tools/list` publishes as
|
|
734
|
+
covers what `tools/list` publishes as StitchKit builds it; the JSON Schema text the
|
|
735
735
|
server's MCP SDK renders from the same schema is not hashed separately.
|
|
736
736
|
|
|
737
737
|
Only the initial `initialize` can negotiate HTTP-to-legacy fallback on 400, 404
|
|
@@ -867,11 +867,35 @@ A native-only CLI (only `commands`, no `services` or `runtimeTools`) takes no
|
|
|
867
867
|
|
|
868
868
|
## Typed context
|
|
869
869
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
870
|
+
For a peer-free CLI, import `createCli` directly from `stitchkit/cli` and
|
|
871
|
+
annotate the `context` factory's return type against your app's context shape
|
|
872
|
+
— no optional peers are loaded:
|
|
873
873
|
|
|
874
874
|
```ts
|
|
875
|
+
import { createCli } from 'stitchkit/cli'
|
|
876
|
+
|
|
877
|
+
await createCli({
|
|
878
|
+
name: 'myapp',
|
|
879
|
+
version: '1.0.0',
|
|
880
|
+
services,
|
|
881
|
+
access: { gate: { beforeHandle: authHook } },
|
|
882
|
+
context: (identity): { user: User | undefined } => ({ user: identity }),
|
|
883
|
+
})
|
|
884
|
+
```
|
|
885
|
+
|
|
886
|
+
If your application already installs `@modelcontextprotocol/server` and mounts
|
|
887
|
+
MCP, peer-free agent tools (`mountAgentTools`), and CLI surfaces together, you
|
|
888
|
+
can also pin the shared context type once via `createToolkit<AppContext>()`
|
|
889
|
+
from `stitchkit/tools/toolkit` — the tool-side mirror of `createImplement`
|
|
890
|
+
([ADR 0017](../decisions/0017-typed-tool-context.md),
|
|
891
|
+
[ADR 0284](../decisions/0284-the-tools-barrel-loads-no-optional-peer.md),
|
|
892
|
+
[ADR 0338](../decisions/0338-toolkit-stays-free-of-ai-peer.md)). It stays free
|
|
893
|
+
of the `ai` peer; callers needing an AI SDK `ToolSet` use `mountAgent` from
|
|
894
|
+
`stitchkit/tools/agent`:
|
|
895
|
+
|
|
896
|
+
```ts
|
|
897
|
+
import { createToolkit } from 'stitchkit/tools/toolkit'
|
|
898
|
+
|
|
875
899
|
const tools = createToolkit<{ user: User }>()
|
|
876
900
|
await tools.createCli({
|
|
877
901
|
name: 'myapp',
|
package/llms/cli.txt
CHANGED
|
@@ -112,7 +112,7 @@ await createCli({
|
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
`createCli({ signal })` and its wait loop honor an explicit caller
|
|
115
|
-
`AbortSignal`.
|
|
115
|
+
`AbortSignal`. StitchKit does not install a process-global SIGINT handler for
|
|
116
116
|
ordinary CLI programs: if desired, the application binds SIGINT to an
|
|
117
117
|
`AbortController` and passes its signal. Aborting wait stops polling only; it
|
|
118
118
|
does not cancel the underlying job.
|
|
@@ -213,7 +213,7 @@ const doctor = defineCliCommand({
|
|
|
213
213
|
})
|
|
214
214
|
```
|
|
215
215
|
|
|
216
|
-
`present` returns the exact stdout bytes, which
|
|
216
|
+
`present` returns the exact stdout bytes, which StitchKit writes once. Without
|
|
217
217
|
it the canonical JSON output is unchanged. `exitCode` classifies a successfully
|
|
218
218
|
validated result and must return an integer in `0..255`; failed `ToolResult`
|
|
219
219
|
envelopes and the application-wide `exitCodes` mapping remain authoritative for
|
package/llms/contract.txt
CHANGED
|
@@ -88,7 +88,7 @@ export const users = defineContract({ prefix: 'users' }, {
|
|
|
88
88
|
`HEAD` is an explicit HTTP-only operation, never an automatic alias for `GET`.
|
|
89
89
|
It must declare `rawResponse: true`; request body, `input`, multipart, `rawBody`,
|
|
90
90
|
typed `output` and tool exposure are rejected. The handler owns status and
|
|
91
|
-
headers, while
|
|
91
|
+
headers, while StitchKit guarantees an empty wire body even if the returned
|
|
92
92
|
`Response` accidentally contains one.
|
|
93
93
|
|
|
94
94
|
## `params` vs `input` vs `output`
|
|
@@ -543,7 +543,7 @@ from the root `stitchkit`.
|
|
|
543
543
|
| `PathParams` | _type_ | infer named `:segments` and a terminal `*wildcard` from a path literal as string params |
|
|
544
544
|
| `ContractMeta` | _type_ | a contract's `prefix` + optional `scope` and `meta` (a default every endpoint shallow-merges over) |
|
|
545
545
|
| `EndpointDef` | _type_ | a single endpoint definition; `output` declares JSON response presence (`null` is data, `undefined` is invalid); optional `timeout` bounds both client calls and server-side deadline clamping; optional `effect?: OperationEffect` declares `'read' \| 'write'` side effects; `safelistedBody: true` admits the JSON body as `text/plain` from an allow-listed `Origin` — [guide](../guide/server.md#safelisted-request-bodies-beacons) |
|
|
546
|
-
| `DEADLINE_BUDGET_HEADER` | constant | `'x-stitchkit-timeout-ms'` — relative remaining call budget in integer milliseconds propagated across HTTP hops (`createHttpClient` / `createClient` outbound
|
|
546
|
+
| `DEADLINE_BUDGET_HEADER` | constant | `'x-stitchkit-timeout-ms'` — relative remaining call budget in integer milliseconds propagated across HTTP hops when explicitly opted in via `propagateDeadline: true` (`createHttpClient` / `createClient` outbound — never auto-enabled by `timeout` or `endpoint.timeout`, ADR 0337 — `createHandler` / `createServer` inbound with contract-ceiling clamping, `408 REQUEST_TIMEOUT` on `'0'`, linked `ctx.signal`, and `ctx.remainingTimeoutMs(reserveMs?)`) |
|
|
547
547
|
| `OperationEffect` / `OperationEffectSchema` | _type_ / schema | closed `'read' \| 'write'` side-effect classification declared on contract endpoints |
|
|
548
548
|
| `contractOperationEffects` / `requireContractOperationEffects` | function | project declared endpoint `effect` tags from a contract; `requireContractOperationEffects` fails closed and lists every operation missing `effect` |
|
|
549
549
|
| `withToolView` | function | declare an endpoint's call and answer on the tool surface (MCP, AGENT, CLI): input `defaults`, and optionally a view `output` and a `project`, typed against the endpoint's own schemas; HTTP keeps the full answer — [guide](../guide/mcp-and-agents.md#a-different-answer-for-tools--withtoolview) |
|
package/llms/files-packaging.txt
CHANGED
|
@@ -23,7 +23,7 @@ fails a build whose entry imports the default loader of another `stitchkit` inst
|
|
|
23
23
|
both versions and roots.
|
|
24
24
|
It resolves the installed package's target/version, reads each selected addon once and checks it
|
|
25
25
|
against the `size` and `sha256` published in the package's `native-assets.json` (`formatVersion: 2`,
|
|
26
|
-
written when
|
|
26
|
+
written when StitchKit is built). Call it once per build and reuse the result.
|
|
27
27
|
`platform`, `architecture`, `delivery`, `entryPath` and `assetPath` are the explicit inputs of
|
|
28
28
|
companion delivery; embedded delivery takes `platform`, one `architecture` and `delivery` only, and
|
|
29
29
|
refuses a path. `assetPath` accepts one template, `[hash]`, replaced by the first 16 hex digits of
|
package/llms/geo.txt
CHANGED
|
@@ -117,7 +117,7 @@ The previous reader closes only after its in-flight lookups finish.
|
|
|
117
117
|
|
|
118
118
|
Use `GeoIpReaderLoader` when the database is not MaxMind-compatible. `revision`
|
|
119
119
|
must identify the complete input generation and return `null` when it cannot be
|
|
120
|
-
read. `open` returns a reader for exactly that revision.
|
|
120
|
+
read. `open` returns a reader for exactly that revision. StitchKit serializes
|
|
121
121
|
reloads, swaps generations and owns their close lifecycle.
|
|
122
122
|
|
|
123
123
|
Download schedules, licenses, database paths, attribution persistence and
|
package/llms/live.txt
CHANGED
|
@@ -53,7 +53,7 @@ is where the full name is *built*, not a second name for the same topic.
|
|
|
53
53
|
### The wire is the socket you already run
|
|
54
54
|
|
|
55
55
|
`toRealtimeContract` projects the declaration onto `RealtimeContract`. Everything
|
|
56
|
-
after that is the machinery
|
|
56
|
+
after that is the machinery StitchKit already ships — validation both ways,
|
|
57
57
|
rejection reporting, rooms, and the client's `retain:` replay.
|
|
58
58
|
|
|
59
59
|
```ts
|
package/llms/oauth.txt
CHANGED
|
@@ -11,7 +11,7 @@ Contains: Guide: OAuth & OpenID Connect (docs/guide/oauth.md) · API reference:
|
|
|
11
11
|
|
|
12
12
|
# Browser OAuth and Google OIDC
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
StitchKit separates the browser's Authorization Code + PKCE transaction from the server's
|
|
15
15
|
provider credential verification. The application still owns navigation, users, account matching
|
|
16
16
|
and merge policy, persistence, sessions, roles, unlink policy and UI.
|
|
17
17
|
|
|
@@ -19,13 +19,13 @@ and merge policy, persistence, sessions, roles, unlink policy and UI.
|
|
|
19
19
|
|
|
20
20
|
The current Google adapter supports one explicit profile: **web OpenID Connect Authorization Code
|
|
21
21
|
with PKCE**. A browser performs a top-level redirect, an application backend exchanges the
|
|
22
|
-
one-time code, and
|
|
22
|
+
one-time code, and StitchKit returns a verified identity. It is the redirect-based sign-in path;
|
|
23
23
|
it is not a generic name for every Google identity or authorization mechanism.
|
|
24
24
|
|
|
25
25
|
Keep adjacent Google capabilities separate because their credentials, lifecycle and trust
|
|
26
26
|
boundaries differ:
|
|
27
27
|
|
|
28
|
-
| Capability | Credential/result |
|
|
28
|
+
| Capability | Credential/result | StitchKit support |
|
|
29
29
|
| --- | --- | --- |
|
|
30
30
|
| Web OIDC Authorization Code + PKCE | verified user identity | `stitchkit/oauth` + `stitchkit/google` |
|
|
31
31
|
| Google Identity Services button, One Tap or FedCM | browser-delivered ID credential | not implemented |
|
|
@@ -107,7 +107,7 @@ const identity = await google.exchangeAuthorizationCode({
|
|
|
107
107
|
|
|
108
108
|
The redirect must match the immutable allowlist exactly before any outbound call. The token
|
|
109
109
|
exchange is bounded by an abort deadline; `google-auth-library` verifies the ID-token signature,
|
|
110
|
-
issuer, audience and expiry.
|
|
110
|
+
issuer, audience and expiry. StitchKit additionally requires `sub`, a valid verified email and an
|
|
111
111
|
exact nonce. Access, refresh and raw ID tokens never leave the adapter.
|
|
112
112
|
|
|
113
113
|
`GoogleOidcError.code` distinguishes `MISCONFIGURED`, `INVALID_CREDENTIAL` and
|
package/llms/observability.txt
CHANGED
|
@@ -230,7 +230,7 @@ bound observes the same drain under its own limit rather than starting another.
|
|
|
230
230
|
Passing no bound keeps the previous behaviour exactly, including the identical
|
|
231
231
|
returned promise.
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
StitchKit manages only in-process delivery. If process-crash durability matters,
|
|
234
234
|
make `write` enqueue into a consumer-owned durable outbox and let that adapter
|
|
235
235
|
own retry, replay and storage policy:
|
|
236
236
|
|
|
@@ -518,7 +518,7 @@ locally; you do not need to change `NODE_ENV` or deploy.
|
|
|
518
518
|
Every response the stitchkit handler produces carries the resolved id as
|
|
519
519
|
**`x-request-id`**. With `cors` configured it is in the default
|
|
520
520
|
`Access-Control-Expose-Headers`, so a browser client can read it and quote it in
|
|
521
|
-
a bug report.
|
|
521
|
+
a bug report. StitchKit browser clients retain it as `ApiError.traceId` on
|
|
522
522
|
response-backed failures. Note the deliberate asymmetry: inbound the id may arrive as
|
|
523
523
|
`X-Trace-Id` *or* `X-Request-Id`; outbound there is one name and no alias.
|
|
524
524
|
|
|
@@ -570,7 +570,7 @@ cross-origin `trace: true` client works out of the box. If you set a custom
|
|
|
570
570
|
the preflight will reject the trace header.
|
|
571
571
|
|
|
572
572
|
MCP tools use the same context. On a modern HTTP or stdio `tools/call`, the
|
|
573
|
-
official SDK exposes W3C propagation values from request `_meta`;
|
|
573
|
+
official SDK exposes W3C propagation values from request `_meta`; StitchKit
|
|
574
574
|
continues a valid `_meta.traceparent` before validation, lifecycle and hooks.
|
|
575
575
|
If MCP metadata omits `traceparent`, an HTTP call keeps its ambient HTTP trace
|
|
576
576
|
and a stdio call starts a new root. If the key is present but malformed or
|
package/llms/primitives.txt
CHANGED
|
@@ -50,7 +50,7 @@ an immutable branded value; `transition()` produces the next one. `availableTran
|
|
|
50
50
|
|
|
51
51
|
`defineOwnerScope` resolves one owner from authenticated identity. Reading across owners is a
|
|
52
52
|
separate `acrossAllOwners(identity)` call and permission. Pass the resulting branded `OwnerScope`
|
|
53
|
-
to the data adapter. This proves the scope was explicit;
|
|
53
|
+
to the data adapter. This proves the scope was explicit; StitchKit cannot prove what SQL an
|
|
54
54
|
arbitrary adapter emits. `scanOwnerFilterRisks` maps existing caller-named manual filters before a
|
|
55
55
|
migration.
|
|
56
56
|
|
package/llms/process.2.txt
CHANGED
|
@@ -15,11 +15,11 @@ Parts of this slice:
|
|
|
15
15
|
|
|
16
16
|
Public leaves keep optional peers out of their import closure. Installing `stitchkit` still
|
|
17
17
|
installs the complete package and ky; selective imports alone do not avoid that installation.
|
|
18
|
-
A library can use
|
|
18
|
+
A library can use StitchKit as a build dependency, bundle its selected public native imports,
|
|
19
19
|
keep Zod external, and publish the resulting implementation with its library artifact.
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
// The library's build entry; all mechanisms remain owned by
|
|
22
|
+
// The library's build entry; all mechanisms remain owned by StitchKit.
|
|
23
23
|
export { canonicalJson } from 'stitchkit/primitives';
|
|
24
24
|
export { writeFileAtomic, withExclusiveLock } from 'stitchkit/files';
|
|
25
25
|
export { observeProcessInstance, probeProcessOwner, runNativeCommand } from 'stitchkit/process';
|
|
@@ -81,7 +81,7 @@ identity, live-owner refusal, dead-owner recovery and contained file operations
|
|
|
81
81
|
with the packaging plugin, and check that an unpackaged build reports the backend `unavailable`
|
|
82
82
|
with stage `packaging` rather than certifying a dead owner. Bun and Node package imports retain the same
|
|
83
83
|
lazy loader; importing a portable leaf does not load a Darwin addon on another OS. Test
|
|
84
|
-
declarations too, and check that importing an unbundled
|
|
84
|
+
declarations too, and check that importing an unbundled StitchKit leaf fails in a deliberately
|
|
85
85
|
isolated library distribution. A separate schema-only entry must not import the native entry.
|
|
86
86
|
|
|
87
87
|
If the Darwin backend cannot load, `observeProcessInstance` still returns `unavailable`.
|
|
@@ -95,20 +95,20 @@ failures or turn unavailable identity into proof that an owner is dead. If a run
|
|
|
95
95
|
no recognized native error code, the stage stays `load`; the loader never infers errno from text.
|
|
96
96
|
|
|
97
97
|
This delivery removes a runtime kernel installation; it does not remove the build-time
|
|
98
|
-
|
|
98
|
+
StitchKit installation or create an independent lightweight npm package.
|
|
99
99
|
|
|
100
100
|
## Public native packaging
|
|
101
101
|
|
|
102
102
|
Custom archives and installers use `stitchkit/files/packaging` at **build time**.
|
|
103
103
|
`createNativePackaging` resolves the installed version and target addon, reads the addon once and
|
|
104
|
-
checks it against the size and SHA256 that
|
|
104
|
+
checks it against the size and SHA256 that StitchKit published in its `native-assets.json` when the
|
|
105
105
|
package was built. A ready asset carries those verified `bytes` with the published `size` and
|
|
106
106
|
`sha256`; its Bun-compatible plugin integrates the same bytes with the same lazy native loader.
|
|
107
107
|
Each call reads and hashes the selected addons, so call it once per build and reuse the result.
|
|
108
108
|
The leaf is evolving. It requires no optional peer or Bun ambient declarations for Node imports.
|
|
109
109
|
Calling it must happen in a process that runs it from its installed package: it locates the
|
|
110
110
|
package's `native-assets.json` beside its own file and throws `Native packaging must run from its
|
|
111
|
-
installed
|
|
111
|
+
installed StitchKit package` anywhere else, such as inside an application's runtime artifact.
|
|
112
112
|
Importing the leaf is side-effect free (it loads no addon and reads no file), so a module that
|
|
113
113
|
both builds and is bundled may import it; only the call has to stay in the build step.
|
|
114
114
|
|
|
@@ -155,7 +155,7 @@ second time. An installed addon whose size or SHA256 differs from the published
|
|
|
155
155
|
with `mismatch` / `NATIVE_ASSET_DIGEST_MISMATCH`, so a file substituted after installation never
|
|
156
156
|
reaches an artifact. Archive the complete output directory with an integrity manifest that records
|
|
157
157
|
`asset.sha256`, unpack to a clean directory, verify the same hashes there, and run offline without
|
|
158
|
-
the build tree or `node_modules`. The published digest ties the bytes to the package
|
|
158
|
+
the build tree or `node_modules`. The published digest ties the bytes to the package StitchKit
|
|
159
159
|
built; the package itself is only as trusted as its tarball (the lockfile integrity of the install).
|
|
160
160
|
Signature and trust policy remain application-owned.
|
|
161
161
|
|
package/llms/react.txt
CHANGED
|
@@ -15,12 +15,12 @@ Also read:
|
|
|
15
15
|
# Frontend integrations
|
|
16
16
|
|
|
17
17
|
The official `bun create stitchkit` application uses Next.js with a separate
|
|
18
|
-
Bun API.
|
|
18
|
+
Bun API. StitchKit remains a Fetch-native backend and does not own frontend
|
|
19
19
|
routing, SSR or HMR.
|
|
20
20
|
|
|
21
21
|
## Theme boundary in the official starter
|
|
22
22
|
|
|
23
|
-
The generated Next.js application uses `@wrksz/themes`, not a
|
|
23
|
+
The generated Next.js application uses `@wrksz/themes`, not a StitchKit-owned
|
|
24
24
|
theme abstraction. Its root `ThemeProvider` comes from `@wrksz/themes/next` and
|
|
25
25
|
lives directly in the server layout so Next 16 can inject the first-paint script
|
|
26
26
|
through `useServerInsertedHTML`. The default `hybrid` storage reads a cookie
|
|
@@ -60,10 +60,10 @@ export async function action({ request }: ActionFunctionArgs) {
|
|
|
60
60
|
|
|
61
61
|
## Vite
|
|
62
62
|
|
|
63
|
-
Run Vite and the
|
|
63
|
+
Run Vite and the StitchKit API as separate development processes. Declare one
|
|
64
64
|
proxy for `/api`, `/mcp` and `/socket.io`; browser code still calls the typed
|
|
65
65
|
client with same-origin paths. Production serves the static Vite output from a
|
|
66
|
-
static host or reverse proxy and routes those backend paths to
|
|
66
|
+
static host or reverse proxy and routes those backend paths to StitchKit.
|
|
67
67
|
|
|
68
68
|
Do not duplicate DTOs or handwritten API wrappers in either integration. The
|
|
69
69
|
shared contract remains the only transport schema source.
|
package/llms/server.2.txt
CHANGED
|
@@ -404,7 +404,7 @@ createServer({
|
|
|
404
404
|
`serviceName` and `action` are optional observability identity. Declare
|
|
405
405
|
`serviceName` when audit, logging, sampling or another cross-cutting policy
|
|
406
406
|
groups this raw route with a service; add `action` when the policy needs an
|
|
407
|
-
operation within that service.
|
|
407
|
+
operation within that service. StitchKit never derives either from `path`.
|
|
408
408
|
`action` without `serviceName`, and empty identity strings, fail at startup.
|
|
409
409
|
|
|
410
410
|
A path may be exact, carry `:param` segments, or end in `/*filePath` for a prefix
|
|
@@ -413,7 +413,7 @@ wildcard — and the two combine: `/app/:slug/*filePath` matches `/app/x/a/b` wi
|
|
|
413
413
|
deep-link fallback). List more specific routes before the wildcard — the first
|
|
414
414
|
match wins. `staticRoute()` builds a raw route that serves a directory.
|
|
415
415
|
|
|
416
|
-
At startup
|
|
416
|
+
At startup StitchKit rejects exact duplicates, equivalent parameter shapes
|
|
417
417
|
(`/users/:id` vs `/users/:userId`) and any later raw route completely hidden by
|
|
418
418
|
an earlier raw route. Partial overlap stays legal, including the recommended
|
|
419
419
|
specific-before-wildcard order. `GET` and `HEAD` remain independent because that
|
|
@@ -718,7 +718,7 @@ them.
|
|
|
718
718
|
|
|
719
719
|
For large files, set `delivery: 'stream'` and define receivers. A receiver gets
|
|
720
720
|
a Web `ReadableStream<Uint8Array>` and writes directly to consumer-owned
|
|
721
|
-
storage;
|
|
721
|
+
storage; StitchKit holds only bounded parser state:
|
|
722
722
|
|
|
723
723
|
```ts
|
|
724
724
|
const streamingUploads = defineContract({ prefix: 'uploads' }, {
|
|
@@ -819,12 +819,12 @@ createServer({ services: [users, orders], rawRoutes: [openApiRoute('/openapi.jso
|
|
|
819
819
|
Only HTTP-exposed methods appear (an MCP/agent-only tool is skipped).
|
|
820
820
|
|
|
821
821
|
OpenAPI 3.1 has no standard multi-segment path parameter. For a contract path
|
|
822
|
-
ending in a named wildcard such as `/*filePath`,
|
|
822
|
+
ending in a named wildcard such as `/*filePath`, StitchKit keeps the literal
|
|
823
823
|
runtime path, omits `filePath` from the
|
|
824
824
|
standard `in: path` parameter list, and emits
|
|
825
825
|
`x-stitchkit-trailing-wildcard` on the operation with its parameter name,
|
|
826
826
|
schema and semantics. A generic OpenAPI client therefore cannot invent
|
|
827
|
-
catch-all expansion; use
|
|
827
|
+
catch-all expansion; use StitchKit's typed client or teach the generator that
|
|
828
828
|
extension.
|
|
829
829
|
|
|
830
830
|
### Curating the spec — `includeMethod`
|
|
@@ -995,7 +995,7 @@ try {
|
|
|
995
995
|
```
|
|
996
996
|
|
|
997
997
|
`path` is `'0.v'` and not `'v'` because event arguments are a tuple: index `0`
|
|
998
|
-
is the first payload. The issues are already flattened by
|
|
998
|
+
is the first payload. The issues are already flattened by StitchKit's own
|
|
999
999
|
normaliser, so telling "wrong generation" from "malformed payload" is one
|
|
1000
1000
|
comparison rather than an inspection of a `ZodError`'s internals.
|
|
1001
1001
|
|
|
@@ -1030,7 +1030,7 @@ The client sends it as `auth`, and a rejection reaches `onConnectError` with
|
|
|
1030
1030
|
deployment reads as a half-rolled deployment and not as an access problem.
|
|
1031
1031
|
|
|
1032
1032
|
What that identity *is* remains the application's decision — a build version, a
|
|
1033
|
-
contract hash, a protocol generation.
|
|
1033
|
+
contract hash, a protocol generation. StitchKit does not compare it for you
|
|
1034
1034
|
(→ ADR 0002); it gives the place where the comparison happens before any frame
|
|
1035
1035
|
is interpreted, and it makes the per-frame alternative honest by letting its
|
|
1036
1036
|
refusals be seen.
|
package/llms/server.3.txt
CHANGED
|
@@ -137,7 +137,7 @@ socket.on('note:created', (note) => { /* typed note */ })
|
|
|
137
137
|
socket.emit('room:join', 'general', ({ joined }) => { /* typed + validated */ })
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
When an application already owns the low-level
|
|
140
|
+
When an application already owns the low-level StitchKit transport, bind the
|
|
141
141
|
contract without opening a second connection:
|
|
142
142
|
|
|
143
143
|
```ts
|
|
@@ -303,7 +303,7 @@ classification detects duplicates—those are different policies.
|
|
|
303
303
|
|
|
304
304
|
A server process that owns such a receiver can place `start()` and `close()` in
|
|
305
305
|
an existing `defineManagedResource` and include it in `createApplication`.
|
|
306
|
-
Readiness follows a successful `live` snapshot; shutdown calls `close()`.
|
|
306
|
+
Readiness follows a successful `live` snapshot; shutdown calls `close()`. StitchKit
|
|
307
307
|
does not add another supervisor, reconnect loop or durable event database.
|
|
308
308
|
|
|
309
309
|
When migrating a hand-written receiver, remove only the superseded attach/snapshot
|
|
@@ -374,7 +374,7 @@ closed phase:
|
|
|
374
374
|
|-------|----------------------|
|
|
375
375
|
| `engine-handoff` | Engine.IO created the outbound message packet and accepted it into its write path |
|
|
376
376
|
| `engine-ack-received` | Engine.IO decoded the inbound acknowledgement message, before Socket.IO invokes the acknowledgement callback |
|
|
377
|
-
| `settled` | the acknowledgement callback ran and
|
|
377
|
+
| `settled` | the acknowledgement callback ran and StitchKit finished acknowledgement validation |
|
|
378
378
|
| `timeout` | the existing native acknowledgement timeout won |
|
|
379
379
|
| `disconnected` | the request began disconnected or an in-flight disconnect won |
|
|
380
380
|
|
|
@@ -396,7 +396,7 @@ await socket.request('room:join', 'general', {
|
|
|
396
396
|
|
|
397
397
|
The client-wide hook receives every observed request; a request hook receives
|
|
398
398
|
only its invocation. If the same function is supplied in both places it runs
|
|
399
|
-
once per phase. The closure is local:
|
|
399
|
+
once per phase. The closure is local: StitchKit does not retain `operationId`,
|
|
400
400
|
add it to the event or transmit it to the peer. A request hook works without a
|
|
401
401
|
client-wide hook, and the no-hook path installs no phase listeners.
|
|
402
402
|
|
|
@@ -782,7 +782,7 @@ question: a list takes one of them, and `createEntityCacheHandlers` refuses both
|
|
|
782
782
|
|
|
783
783
|
The helper deliberately does **not** flatten pages, infer filter semantics,
|
|
784
784
|
derive a sort order or replace arbitrary `setQueryData` logic. Those remain
|
|
785
|
-
declared application policies;
|
|
785
|
+
declared application policies; StitchKit applies their generic cache mechanics.
|
|
786
786
|
|
|
787
787
|
## Raw binary lane (Bun)
|
|
788
788
|
|
package/llms/server.4.txt
CHANGED
|
@@ -59,7 +59,7 @@ The framework attaches no meaning to the strings — `'public'`, `'user'`,
|
|
|
59
59
|
## `createAuthHook`
|
|
60
60
|
|
|
61
61
|
`createAuthHook` builds one scope gate that can run in both HTTP and tool
|
|
62
|
-
lifecycles. On HTTP it belongs in `hooks.authorize`:
|
|
62
|
+
lifecycles. On HTTP it belongs in `hooks.authorize`: StitchKit validates path
|
|
63
63
|
params, resolves identity and scope, and rejects `401`/`403` **before reading a
|
|
64
64
|
JSON or multipart body**. On MCP, agent and CLI surfaces it belongs in
|
|
65
65
|
`access.gate.beforeHandle` (`access: { gate: { beforeHandle: authHook } }`),
|
|
@@ -246,7 +246,7 @@ export const implementFor = createScopedImplement<AuthScopes<typeof auth>>()
|
|
|
246
246
|
|
|
247
247
|
Only hooks that declare the selected scope run. An unknown scope fails closed;
|
|
248
248
|
when several hooks own one scope, every owner must pass in declaration order.
|
|
249
|
-
Each owner evaluates on an isolated shadow context.
|
|
249
|
+
Each owner evaluates on an isolated shadow context. StitchKit validates all
|
|
250
250
|
changed fields, rejects reserved/unsafe fields and cross-owner key collisions,
|
|
251
251
|
then commits the combined contribution once. A rejected or cancelled composite
|
|
252
252
|
therefore exposes no partial fields to the handler.
|
|
@@ -497,7 +497,7 @@ complete: async ({ response }) => {
|
|
|
497
497
|
}
|
|
498
498
|
```
|
|
499
499
|
|
|
500
|
-
Append once per cookie;
|
|
500
|
+
Append once per cookie; StitchKit preserves separate `Set-Cookie` fields through
|
|
501
501
|
both Bun and Node. Cookie/session policy remains application logic.
|
|
502
502
|
|
|
503
503
|
## The error model
|
|
@@ -651,7 +651,7 @@ onError: (ctx, err) => {
|
|
|
651
651
|
|
|
652
652
|
## One application vocabulary and one wire map
|
|
653
653
|
|
|
654
|
-
`defineErrors` can also resolve
|
|
654
|
+
`defineErrors` can also resolve StitchKit's framework codes into the same
|
|
655
655
|
application vocabulary. A status fallback is explicit because several
|
|
656
656
|
application codes may legally share one HTTP status:
|
|
657
657
|
|
|
@@ -743,7 +743,7 @@ retained on the returned `AppError`.
|
|
|
743
743
|
HTTP renders the complete code/status/message/details/hint. Tool transports keep
|
|
744
744
|
their established model-facing projection (code/details/hint, without HTTP
|
|
745
745
|
status), while `invokeOrThrow` recovers the exact normalized `AppError`. The
|
|
746
|
-
codes and schemas remain application-owned;
|
|
746
|
+
codes and schemas remain application-owned; StitchKit stays domain-free.
|
|
747
747
|
|
|
748
748
|
### The codes an operation refuses with
|
|
749
749
|
|
|
@@ -830,7 +830,7 @@ stitchkit code you did not list travels as itself. Set `unmappedCode` to one
|
|
|
830
830
|
wire-code when your public vocabulary has a catch-all, or to a function such as
|
|
831
831
|
`(code) => code.startsWith('FILE_') ? 'storage_error' : 'framework_error'` when
|
|
832
832
|
framework code families need different buckets. An explicit `codeMap` entry
|
|
833
|
-
always wins. Codes your project throws itself do not belong to
|
|
833
|
+
always wins. Codes your project throws itself do not belong to StitchKit's
|
|
834
834
|
vocabulary, so they never pass through this fallback and remain unchanged.
|
|
835
835
|
|
|
836
836
|
One `satisfies` is the **opt-in** to the stricter deal:
|
package/llms/server.txt
CHANGED
|
@@ -64,9 +64,11 @@ which. Anything an auth hook attaches (e.g. the resolved user) is also on `ctx`.
|
|
|
64
64
|
|
|
65
65
|
### Inbound deadline budgets
|
|
66
66
|
|
|
67
|
-
When an HTTP caller
|
|
68
|
-
`createHttpClient({ propagateDeadline: true })`,
|
|
69
|
-
`
|
|
67
|
+
When an HTTP caller explicitly opts into sending its relative remaining budget in
|
|
68
|
+
`x-stitchkit-timeout-ms` (via `createHttpClient({ propagateDeadline: true })`,
|
|
69
|
+
`createClient(contract, { baseUrl, propagateDeadline: true })`, or per-call
|
|
70
|
+
`withOptions(..., { propagateDeadline: true })` — propagation defaults to `false` and is never
|
|
71
|
+
auto-enabled by `timeout` or a contract endpoint's `timeout`, → ADR 0337):
|
|
70
72
|
|
|
71
73
|
- `createHandler` / `createServer` clamps the inbound budget to the endpoint's declared `timeout`
|
|
72
74
|
(a caller can narrow its budget, never extend it past the server's own ceiling).
|
|
@@ -74,11 +76,19 @@ When an HTTP caller sends a relative remaining budget in `x-stitchkit-timeout-ms
|
|
|
74
76
|
`401`/`403`; an inbound value of `0` then fails immediately with `REQUEST_TIMEOUT` (`408`) before
|
|
75
77
|
payload parsing, `beforeHandle`, or the handler runs. Malformed non-integer values are ignored so
|
|
76
78
|
the endpoint's declared timeout remains authoritative.
|
|
79
|
+
- For a streaming endpoint (`stream: { ... }`), `timeout` and `x-stitchkit-timeout-ms` bound only
|
|
80
|
+
the response-open phase until the handler returns its `AsyncIterable` (matching the client's open
|
|
81
|
+
timeout). Once the stream opens, the open deadline timer is disarmed, `ctx.signal` stays bound to
|
|
82
|
+
client disconnect (`req.signal`), managed shutdown, and `stream.lifetimeMs`, and
|
|
83
|
+
`ctx.remainingTimeoutMs` switches to `stream.lifetimeMs` (or `undefined` when unbounded). The same
|
|
84
|
+
open-phase boundary applies to a `rawResponse: true` endpoint returning a `Response` with a body:
|
|
85
|
+
the open timer is disarmed once the `Response` is returned while `ctx.signal` stays subscribed to
|
|
86
|
+
client disconnect (`req.signal`).
|
|
77
87
|
- Inside the handler, `ctx.remainingTimeoutMs?.(reserveMs?)` returns the live remaining integer
|
|
78
88
|
milliseconds (clamped to `>= 0`, subtracting optional `reserveMs` for response serialization), or
|
|
79
89
|
`undefined` when neither an inbound header nor an endpoint `timeout` bounds the request. Always
|
|
80
|
-
check `remaining <= 0` before forwarding `{ timeout: remaining }` so an
|
|
81
|
-
`408` instead of throwing a `RangeError` from timer validation:
|
|
90
|
+
check `remaining <= 0` before forwarding `{ timeout: remaining, propagateDeadline: true }` so an
|
|
91
|
+
exhausted budget fails with `408` instead of throwing a `RangeError` from timer validation:
|
|
82
92
|
|
|
83
93
|
```ts
|
|
84
94
|
const remaining = ctx.remainingTimeoutMs?.(200)
|
|
@@ -88,7 +98,9 @@ if (remaining !== undefined && remaining <= 0) {
|
|
|
88
98
|
message: 'Request deadline budget exhausted',
|
|
89
99
|
})
|
|
90
100
|
}
|
|
91
|
-
await downstream.list.withOptions(
|
|
101
|
+
await downstream.list.withOptions(
|
|
102
|
+
remaining !== undefined ? { timeout: remaining, propagateDeadline: true } : {},
|
|
103
|
+
)
|
|
92
104
|
```
|
|
93
105
|
|
|
94
106
|
### Request attributes from the ingress
|
|
@@ -341,7 +353,7 @@ server. See [Testing & deployment](./testing-and-deployment.md).
|
|
|
341
353
|
| `traceId` | override per-request trace-id resolution — may return `undefined` to fall back |
|
|
342
354
|
| `wrapFetch` | compose wrappers around the finished handler (request context, audit) |
|
|
343
355
|
| `proxyOrigin` | Bun TCP ingress policy: `{ trustedPeer(socketIp) }` restores the external scheme before all composition; independent of client-IP `trustProxy` |
|
|
344
|
-
| `socket` | full
|
|
356
|
+
| `socket` | full StitchKit Socket.IO handle; route, default WebSocket handler and shutdown are mounted once |
|
|
345
357
|
| `websocket` | custom Bun WebSocket handler; with `socket`, this is the explicit composed handler |
|
|
346
358
|
| `development` / `bun` | passthrough to `Bun.serve` |
|
|
347
359
|
|
|
@@ -548,7 +560,7 @@ when forwarding to owned streaming routes; it is also required by native timeout
|
|
|
548
560
|
|
|
549
561
|
### Trusted HTTPS in development
|
|
550
562
|
|
|
551
|
-
|
|
563
|
+
StitchKit does not own local certificate generation or a frontend development
|
|
552
564
|
server. When a device or browser feature requires a secure context, generate a
|
|
553
565
|
trusted certificate outside the application (for example with `mkcert`) and pass
|
|
554
566
|
its files through the Bun server boundary:
|
|
@@ -613,7 +625,7 @@ request-error recorder; an `AbortError` while the request signal is still active
|
|
|
613
625
|
remains an internal failure. A runtime abort reason may be preserved by identity
|
|
614
626
|
through at most eight cycle-safe standard `cause` links; error messages and codes
|
|
615
627
|
are never classifiers. The same rule applies when the disconnect happens while
|
|
616
|
-
|
|
628
|
+
StitchKit is reading a JSON upload body: bounded reads race every pending stream
|
|
617
629
|
read against the request signal and never parse a cancelled partial body. `499`
|
|
618
630
|
is transport telemetry, not a response declared in the contract or generated
|
|
619
631
|
OpenAPI document.
|
|
@@ -815,7 +827,7 @@ That split is deliberate — see [ADR 0003](../decisions/0003-two-context-types.
|
|
|
815
827
|
|
|
816
828
|
## A host beside its own window
|
|
817
829
|
|
|
818
|
-
A desktop app's host — the process beside its window — is an ordinary
|
|
830
|
+
A desktop app's host — the process beside its window — is an ordinary StitchKit server, bound to
|
|
819
831
|
loopback. Calls are plain HTTP through the typed client; events travel the realtime socket with
|
|
820
832
|
`retain` per topic ([realtime](./realtime.md)). There is no second transport to learn.
|
|
821
833
|
|
|
@@ -919,7 +931,7 @@ Trust boundary and operational rules for the unix channel:
|
|
|
919
931
|
container and keep the full UTF-8 path within 103 bytes; TCC permissions remain bound to the host
|
|
920
932
|
process's responsible bundle.
|
|
921
933
|
- **Embedded agents and shell tools.** An unsandboxed agent shell running as the same OS user has full
|
|
922
|
-
access to the socket. Inside
|
|
934
|
+
access to the socket. Inside StitchKit's Linux Bubblewrap sandbox (`stitchkit/agent-runtime/sandbox`),
|
|
923
935
|
the host's `$HOME`, `/tmp`, `/run` and `XDG_RUNTIME_DIR` are not mounted (`--unshare-all --clearenv`),
|
|
924
936
|
so keep the socket outside the agent's mounted `workspace` directory (note that macOS has no
|
|
925
937
|
Bubblewrap isolation).
|