@namzu/sdk 14.0.7 → 15.1.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 +187 -0
- package/dist/public-runtime.d.ts +1 -0
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +5 -0
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-types.d.ts +1 -0
- package/dist/public-types.d.ts.map +1 -1
- package/dist/skills/loader.d.ts.map +1 -1
- package/dist/skills/loader.js +70 -112
- package/dist/skills/loader.js.map +1 -1
- package/dist/types/agent/lifecycle-event.d.ts +0 -13
- package/dist/types/agent/lifecycle-event.d.ts.map +1 -1
- package/dist/types/agent/task.d.ts +0 -12
- package/dist/types/agent/task.d.ts.map +1 -1
- package/dist/types/agent/task.js.map +1 -1
- package/dist/utils/frontmatter.d.ts +85 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +191 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/package.json +11 -1
- package/src/public-runtime.ts +5 -0
- package/src/public-types.ts +1 -0
- package/src/skills/loader.ts +67 -119
- package/src/types/agent/lifecycle-event.ts +0 -9
- package/src/types/agent/task.ts +0 -13
- package/src/utils/frontmatter.ts +240 -0
- package/dist/__tests__/default-path-conformance.test.d.ts +0 -2
- package/dist/__tests__/default-path-conformance.test.d.ts.map +0 -1
- package/dist/__tests__/default-path-conformance.test.js +0 -262
- package/dist/__tests__/default-path-conformance.test.js.map +0 -1
- package/dist/__tests__/replay-public-surface.test.d.ts +0 -2
- package/dist/__tests__/replay-public-surface.test.d.ts.map +0 -1
- package/dist/__tests__/replay-public-surface.test.js +0 -45
- package/dist/__tests__/replay-public-surface.test.js.map +0 -1
- package/dist/__tests__/shipped-defaults.test.d.ts +0 -2
- package/dist/__tests__/shipped-defaults.test.d.ts.map +0 -1
- package/dist/__tests__/shipped-defaults.test.js +0 -97
- package/dist/__tests__/shipped-defaults.test.js.map +0 -1
- package/dist/advisory/__tests__/budget-enforcement.test.d.ts +0 -2
- package/dist/advisory/__tests__/budget-enforcement.test.d.ts.map +0 -1
- package/dist/advisory/__tests__/budget-enforcement.test.js +0 -159
- package/dist/advisory/__tests__/budget-enforcement.test.js.map +0 -1
- package/dist/advisory/__tests__/consultation-context.test.d.ts +0 -2
- package/dist/advisory/__tests__/consultation-context.test.d.ts.map +0 -1
- package/dist/advisory/__tests__/consultation-context.test.js +0 -124
- package/dist/advisory/__tests__/consultation-context.test.js.map +0 -1
- package/dist/advisory/__tests__/structured-response.test.d.ts +0 -2
- package/dist/advisory/__tests__/structured-response.test.d.ts.map +0 -1
- package/dist/advisory/__tests__/structured-response.test.js +0 -99
- package/dist/advisory/__tests__/structured-response.test.js.map +0 -1
- package/dist/advisory/context.test.d.ts +0 -16
- package/dist/advisory/context.test.d.ts.map +0 -1
- package/dist/advisory/context.test.js +0 -92
- package/dist/advisory/context.test.js.map +0 -1
- package/dist/advisory/evaluator.test.d.ts +0 -34
- package/dist/advisory/evaluator.test.d.ts.map +0 -1
- package/dist/advisory/evaluator.test.js +0 -172
- package/dist/advisory/evaluator.test.js.map +0 -1
- package/dist/advisory/executor.test.d.ts +0 -38
- package/dist/advisory/executor.test.d.ts.map +0 -1
- package/dist/advisory/executor.test.js +0 -262
- package/dist/advisory/executor.test.js.map +0 -1
- package/dist/advisory/registry.test.d.ts +0 -16
- package/dist/advisory/registry.test.d.ts.map +0 -1
- package/dist/advisory/registry.test.js +0 -62
- package/dist/advisory/registry.test.js.map +0 -1
- package/dist/agents/__tests__/a-policy-nobody-can-select.test.d.ts +0 -2
- package/dist/agents/__tests__/a-policy-nobody-can-select.test.d.ts.map +0 -1
- package/dist/agents/__tests__/a-policy-nobody-can-select.test.js +0 -177
- package/dist/agents/__tests__/a-policy-nobody-can-select.test.js.map +0 -1
- package/dist/agents/__tests__/idempotency-key.test.d.ts +0 -2
- package/dist/agents/__tests__/idempotency-key.test.d.ts.map +0 -1
- package/dist/agents/__tests__/idempotency-key.test.js +0 -149
- package/dist/agents/__tests__/idempotency-key.test.js.map +0 -1
- package/dist/agents/__tests__/invocation-lock.test.d.ts +0 -2
- package/dist/agents/__tests__/invocation-lock.test.d.ts.map +0 -1
- package/dist/agents/__tests__/invocation-lock.test.js +0 -126
- package/dist/agents/__tests__/invocation-lock.test.js.map +0 -1
- package/dist/agents/__tests__/lock.test.d.ts +0 -2
- package/dist/agents/__tests__/lock.test.d.ts.map +0 -1
- package/dist/agents/__tests__/lock.test.js +0 -131
- package/dist/agents/__tests__/lock.test.js.map +0 -1
- package/dist/agents/__tests__/reachability.test.d.ts +0 -2
- package/dist/agents/__tests__/reachability.test.d.ts.map +0 -1
- package/dist/agents/__tests__/reachability.test.js +0 -173
- package/dist/agents/__tests__/reachability.test.js.map +0 -1
- package/dist/agents/__tests__/run-agent-forwarding.test.d.ts +0 -2
- package/dist/agents/__tests__/run-agent-forwarding.test.d.ts.map +0 -1
- package/dist/agents/__tests__/run-agent-forwarding.test.js +0 -76
- package/dist/agents/__tests__/run-agent-forwarding.test.js.map +0 -1
- package/dist/agents/__tests__/run-agent.test.d.ts +0 -2
- package/dist/agents/__tests__/run-agent.test.d.ts.map +0 -1
- package/dist/agents/__tests__/run-agent.test.js +0 -143
- package/dist/agents/__tests__/run-agent.test.js.map +0 -1
- package/dist/agents/__tests__/run-completed-stop-reason.test.d.ts +0 -2
- package/dist/agents/__tests__/run-completed-stop-reason.test.d.ts.map +0 -1
- package/dist/agents/__tests__/run-completed-stop-reason.test.js +0 -50
- package/dist/agents/__tests__/run-completed-stop-reason.test.js.map +0 -1
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.d.ts +0 -2
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.d.ts.map +0 -1
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.js +0 -153
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.js.map +0 -1
- package/dist/agents/__tests__/supervisor-hands-down-hitl.test.d.ts +0 -2
- package/dist/agents/__tests__/supervisor-hands-down-hitl.test.d.ts.map +0 -1
- package/dist/agents/__tests__/supervisor-hands-down-hitl.test.js +0 -112
- package/dist/agents/__tests__/supervisor-hands-down-hitl.test.js.map +0 -1
- package/dist/agents/__tests__/supervisor-inbox-scope.test.d.ts +0 -2
- package/dist/agents/__tests__/supervisor-inbox-scope.test.d.ts.map +0 -1
- package/dist/agents/__tests__/supervisor-inbox-scope.test.js +0 -125
- package/dist/agents/__tests__/supervisor-inbox-scope.test.js.map +0 -1
- package/dist/agents/__tests__/supervisor-ledger.test.d.ts +0 -2
- package/dist/agents/__tests__/supervisor-ledger.test.d.ts.map +0 -1
- package/dist/agents/__tests__/supervisor-ledger.test.js +0 -131
- package/dist/agents/__tests__/supervisor-ledger.test.js.map +0 -1
- package/dist/bridge/a2a/__tests__/project-is-the-a2a-context.test.d.ts +0 -2
- package/dist/bridge/a2a/__tests__/project-is-the-a2a-context.test.d.ts.map +0 -1
- package/dist/bridge/a2a/__tests__/project-is-the-a2a-context.test.js +0 -55
- package/dist/bridge/a2a/__tests__/project-is-the-a2a-context.test.js.map +0 -1
- package/dist/bridge/a2a/agent-card.test.d.ts +0 -24
- package/dist/bridge/a2a/agent-card.test.d.ts.map +0 -1
- package/dist/bridge/a2a/agent-card.test.js +0 -118
- package/dist/bridge/a2a/agent-card.test.js.map +0 -1
- package/dist/bridge/a2a/late-events.test.d.ts +0 -2
- package/dist/bridge/a2a/late-events.test.d.ts.map +0 -1
- package/dist/bridge/a2a/late-events.test.js +0 -70
- package/dist/bridge/a2a/late-events.test.js.map +0 -1
- package/dist/bridge/a2a/mapper.test.d.ts +0 -29
- package/dist/bridge/a2a/mapper.test.d.ts.map +0 -1
- package/dist/bridge/a2a/mapper.test.js +0 -291
- package/dist/bridge/a2a/mapper.test.js.map +0 -1
- package/dist/bridge/a2a/message.test.d.ts +0 -20
- package/dist/bridge/a2a/message.test.d.ts.map +0 -1
- package/dist/bridge/a2a/message.test.js +0 -116
- package/dist/bridge/a2a/message.test.js.map +0 -1
- package/dist/bridge/a2a/task.test.d.ts +0 -29
- package/dist/bridge/a2a/task.test.d.ts.map +0 -1
- package/dist/bridge/a2a/task.test.js +0 -198
- package/dist/bridge/a2a/task.test.js.map +0 -1
- package/dist/bridge/mcp/connector/adapter.test.d.ts +0 -27
- package/dist/bridge/mcp/connector/adapter.test.d.ts.map +0 -1
- package/dist/bridge/mcp/connector/adapter.test.js +0 -203
- package/dist/bridge/mcp/connector/adapter.test.js.map +0 -1
- package/dist/bridge/sse/late-events.test.d.ts +0 -2
- package/dist/bridge/sse/late-events.test.d.ts.map +0 -1
- package/dist/bridge/sse/late-events.test.js +0 -163
- package/dist/bridge/sse/late-events.test.js.map +0 -1
- package/dist/bridge/sse/mapper.test.d.ts +0 -27
- package/dist/bridge/sse/mapper.test.d.ts.map +0 -1
- package/dist/bridge/sse/mapper.test.js +0 -378
- package/dist/bridge/sse/mapper.test.js.map +0 -1
- package/dist/bridge/tools/connector/adapter.test.d.ts +0 -28
- package/dist/bridge/tools/connector/adapter.test.d.ts.map +0 -1
- package/dist/bridge/tools/connector/adapter.test.js +0 -182
- package/dist/bridge/tools/connector/adapter.test.js.map +0 -1
- package/dist/bridge/tools/connector/definitions.test.d.ts +0 -23
- package/dist/bridge/tools/connector/definitions.test.d.ts.map +0 -1
- package/dist/bridge/tools/connector/definitions.test.js +0 -158
- package/dist/bridge/tools/connector/definitions.test.js.map +0 -1
- package/dist/bridge/tools/connector/router.test.d.ts +0 -21
- package/dist/bridge/tools/connector/router.test.d.ts.map +0 -1
- package/dist/bridge/tools/connector/router.test.js +0 -139
- package/dist/bridge/tools/connector/router.test.js.map +0 -1
- package/dist/bus/breaker.test.d.ts +0 -41
- package/dist/bus/breaker.test.d.ts.map +0 -1
- package/dist/bus/breaker.test.js +0 -242
- package/dist/bus/breaker.test.js.map +0 -1
- package/dist/bus/index.test.d.ts +0 -25
- package/dist/bus/index.test.d.ts.map +0 -1
- package/dist/bus/index.test.js +0 -151
- package/dist/bus/index.test.js.map +0 -1
- package/dist/bus/lock.test.d.ts +0 -44
- package/dist/bus/lock.test.d.ts.map +0 -1
- package/dist/bus/lock.test.js +0 -226
- package/dist/bus/lock.test.js.map +0 -1
- package/dist/bus/ownership.test.d.ts +0 -26
- package/dist/bus/ownership.test.d.ts.map +0 -1
- package/dist/bus/ownership.test.js +0 -205
- package/dist/bus/ownership.test.js.map +0 -1
- package/dist/compaction/__tests__/SlidingWindowManager.test.d.ts +0 -2
- package/dist/compaction/__tests__/SlidingWindowManager.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/SlidingWindowManager.test.js +0 -113
- package/dist/compaction/__tests__/SlidingWindowManager.test.js.map +0 -1
- package/dist/compaction/__tests__/cleared-result-recovery.test.d.ts +0 -2
- package/dist/compaction/__tests__/cleared-result-recovery.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/cleared-result-recovery.test.js +0 -101
- package/dist/compaction/__tests__/cleared-result-recovery.test.js.map +0 -1
- package/dist/compaction/__tests__/context-reducer.test.d.ts +0 -2
- package/dist/compaction/__tests__/context-reducer.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/context-reducer.test.js +0 -197
- package/dist/compaction/__tests__/context-reducer.test.js.map +0 -1
- package/dist/compaction/__tests__/context-window.test.d.ts +0 -2
- package/dist/compaction/__tests__/context-window.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/context-window.test.js +0 -62
- package/dist/compaction/__tests__/context-window.test.js.map +0 -1
- package/dist/compaction/__tests__/dangling.test.d.ts +0 -2
- package/dist/compaction/__tests__/dangling.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/dangling.test.js +0 -367
- package/dist/compaction/__tests__/dangling.test.js.map +0 -1
- package/dist/compaction/__tests__/factory.test.d.ts +0 -2
- package/dist/compaction/__tests__/factory.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/factory.test.js +0 -43
- package/dist/compaction/__tests__/factory.test.js.map +0 -1
- package/dist/compaction/__tests__/lossiness.test.d.ts +0 -2
- package/dist/compaction/__tests__/lossiness.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/lossiness.test.js +0 -163
- package/dist/compaction/__tests__/lossiness.test.js.map +0 -1
- package/dist/compaction/__tests__/state-across-resume.test.d.ts +0 -2
- package/dist/compaction/__tests__/state-across-resume.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/state-across-resume.test.js +0 -88
- package/dist/compaction/__tests__/state-across-resume.test.js.map +0 -1
- package/dist/compaction/__tests__/tool-result-editing.test.d.ts +0 -2
- package/dist/compaction/__tests__/tool-result-editing.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/tool-result-editing.test.js +0 -184
- package/dist/compaction/__tests__/tool-result-editing.test.js.map +0 -1
- package/dist/compaction/__tests__/trim-opens-on-user.test.d.ts +0 -2
- package/dist/compaction/__tests__/trim-opens-on-user.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/trim-opens-on-user.test.js +0 -109
- package/dist/compaction/__tests__/trim-opens-on-user.test.js.map +0 -1
- package/dist/compaction/__tests__/verifier-empty-reply.test.d.ts +0 -12
- package/dist/compaction/__tests__/verifier-empty-reply.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/verifier-empty-reply.test.js +0 -73
- package/dist/compaction/__tests__/verifier-empty-reply.test.js.map +0 -1
- package/dist/compaction/__tests__/verifier-model.test.d.ts +0 -2
- package/dist/compaction/__tests__/verifier-model.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/verifier-model.test.js +0 -58
- package/dist/compaction/__tests__/verifier-model.test.js.map +0 -1
- package/dist/config/__tests__/compaction-budget-schema.test.d.ts +0 -18
- package/dist/config/__tests__/compaction-budget-schema.test.d.ts.map +0 -1
- package/dist/config/__tests__/compaction-budget-schema.test.js +0 -96
- package/dist/config/__tests__/compaction-budget-schema.test.js.map +0 -1
- package/dist/connector/BaseConnector.test.d.ts +0 -21
- package/dist/connector/BaseConnector.test.d.ts.map +0 -1
- package/dist/connector/BaseConnector.test.js +0 -108
- package/dist/connector/BaseConnector.test.js.map +0 -1
- package/dist/connector/builtins/__tests__/oauth2-auth.test.d.ts +0 -2
- package/dist/connector/builtins/__tests__/oauth2-auth.test.d.ts.map +0 -1
- package/dist/connector/builtins/__tests__/oauth2-auth.test.js +0 -54
- package/dist/connector/builtins/__tests__/oauth2-auth.test.js.map +0 -1
- package/dist/connector/builtins/http.test.d.ts +0 -30
- package/dist/connector/builtins/http.test.d.ts.map +0 -1
- package/dist/connector/builtins/http.test.js +0 -260
- package/dist/connector/builtins/http.test.js.map +0 -1
- package/dist/connector/builtins/webhook.test.d.ts +0 -20
- package/dist/connector/builtins/webhook.test.d.ts.map +0 -1
- package/dist/connector/builtins/webhook.test.js +0 -130
- package/dist/connector/builtins/webhook.test.js.map +0 -1
- package/dist/connector/execution/factory.test.d.ts +0 -16
- package/dist/connector/execution/factory.test.d.ts.map +0 -1
- package/dist/connector/execution/factory.test.js +0 -64
- package/dist/connector/execution/factory.test.js.map +0 -1
- package/dist/connector/execution/remote.test.d.ts +0 -16
- package/dist/connector/execution/remote.test.d.ts.map +0 -1
- package/dist/connector/execution/remote.test.js +0 -53
- package/dist/connector/execution/remote.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/a-close-that-means-closed.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/a-close-that-means-closed.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/a-close-that-means-closed.test.js +0 -106
- package/dist/connector/mcp/__tests__/a-close-that-means-closed.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.js +0 -101
- package/dist/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/discovery-policy.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/discovery-policy.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/discovery-policy.test.js +0 -109
- package/dist/connector/mcp/__tests__/discovery-policy.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/list-pagination.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/list-pagination.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/list-pagination.test.js +0 -81
- package/dist/connector/mcp/__tests__/list-pagination.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/policy.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/policy.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/policy.test.js +0 -86
- package/dist/connector/mcp/__tests__/policy.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/positional-arrays.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/positional-arrays.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/positional-arrays.test.js +0 -142
- package/dist/connector/mcp/__tests__/positional-arrays.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/prompt-as-tool.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/prompt-as-tool.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/prompt-as-tool.test.js +0 -122
- package/dist/connector/mcp/__tests__/prompt-as-tool.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/prompts-and-lifecycle.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/prompts-and-lifecycle.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/prompts-and-lifecycle.test.js +0 -214
- package/dist/connector/mcp/__tests__/prompts-and-lifecycle.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/protocol-negotiation.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/protocol-negotiation.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/protocol-negotiation.test.js +0 -81
- package/dist/connector/mcp/__tests__/protocol-negotiation.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/schema-fidelity.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/schema-fidelity.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/schema-fidelity.test.js +0 -206
- package/dist/connector/mcp/__tests__/schema-fidelity.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/structured-result.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/structured-result.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/structured-result.test.js +0 -112
- package/dist/connector/mcp/__tests__/structured-result.test.js.map +0 -1
- package/dist/connector/mcp/adapter.test.d.ts +0 -34
- package/dist/connector/mcp/adapter.test.d.ts.map +0 -1
- package/dist/connector/mcp/adapter.test.js +0 -199
- package/dist/connector/mcp/adapter.test.js.map +0 -1
- package/dist/connector/mcp/client.test.d.ts +0 -2
- package/dist/connector/mcp/client.test.d.ts.map +0 -1
- package/dist/connector/mcp/client.test.js +0 -105
- package/dist/connector/mcp/client.test.js.map +0 -1
- package/dist/connector/mcp/streamable-http.test.d.ts +0 -2
- package/dist/connector/mcp/streamable-http.test.d.ts.map +0 -1
- package/dist/connector/mcp/streamable-http.test.js +0 -132
- package/dist/connector/mcp/streamable-http.test.js.map +0 -1
- package/dist/constants/tools/__tests__/dangerous-patterns.test.d.ts +0 -2
- package/dist/constants/tools/__tests__/dangerous-patterns.test.d.ts.map +0 -1
- package/dist/constants/tools/__tests__/dangerous-patterns.test.js +0 -54
- package/dist/constants/tools/__tests__/dangerous-patterns.test.js.map +0 -1
- package/dist/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.d.ts +0 -2
- package/dist/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.d.ts.map +0 -1
- package/dist/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.js +0 -73
- package/dist/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.js.map +0 -1
- package/dist/directory/__tests__/derive.test.d.ts +0 -2
- package/dist/directory/__tests__/derive.test.d.ts.map +0 -1
- package/dist/directory/__tests__/derive.test.js +0 -111
- package/dist/directory/__tests__/derive.test.js.map +0 -1
- package/dist/directory/__tests__/load-diagnostics.test.d.ts +0 -2
- package/dist/directory/__tests__/load-diagnostics.test.d.ts.map +0 -1
- package/dist/directory/__tests__/load-diagnostics.test.js +0 -106
- package/dist/directory/__tests__/load-diagnostics.test.js.map +0 -1
- package/dist/directory/__tests__/load-directory.test.d.ts +0 -2
- package/dist/directory/__tests__/load-directory.test.d.ts.map +0 -1
- package/dist/directory/__tests__/load-directory.test.js +0 -196
- package/dist/directory/__tests__/load-directory.test.js.map +0 -1
- package/dist/directory/__tests__/subagents.test.d.ts +0 -2
- package/dist/directory/__tests__/subagents.test.d.ts.map +0 -1
- package/dist/directory/__tests__/subagents.test.js +0 -117
- package/dist/directory/__tests__/subagents.test.js.map +0 -1
- package/dist/directory/__tests__/supervisor-budget.test.d.ts +0 -2
- package/dist/directory/__tests__/supervisor-budget.test.d.ts.map +0 -1
- package/dist/directory/__tests__/supervisor-budget.test.js +0 -97
- package/dist/directory/__tests__/supervisor-budget.test.js.map +0 -1
- package/dist/eval/__tests__/case-deadline.test.d.ts +0 -2
- package/dist/eval/__tests__/case-deadline.test.d.ts.map +0 -1
- package/dist/eval/__tests__/case-deadline.test.js +0 -128
- package/dist/eval/__tests__/case-deadline.test.js.map +0 -1
- package/dist/eval/__tests__/end-to-end.test.d.ts +0 -2
- package/dist/eval/__tests__/end-to-end.test.d.ts.map +0 -1
- package/dist/eval/__tests__/end-to-end.test.js +0 -223
- package/dist/eval/__tests__/end-to-end.test.js.map +0 -1
- package/dist/eval/__tests__/harness-honesty.test.d.ts +0 -2
- package/dist/eval/__tests__/harness-honesty.test.d.ts.map +0 -1
- package/dist/eval/__tests__/harness-honesty.test.js +0 -85
- package/dist/eval/__tests__/harness-honesty.test.js.map +0 -1
- package/dist/eval/__tests__/harness.test.d.ts +0 -2
- package/dist/eval/__tests__/harness.test.d.ts.map +0 -1
- package/dist/eval/__tests__/harness.test.js +0 -207
- package/dist/eval/__tests__/harness.test.js.map +0 -1
- package/dist/eval/__tests__/judge.test.d.ts +0 -2
- package/dist/eval/__tests__/judge.test.d.ts.map +0 -1
- package/dist/eval/__tests__/judge.test.js +0 -255
- package/dist/eval/__tests__/judge.test.js.map +0 -1
- package/dist/eval/__tests__/scorer-gates.test.d.ts +0 -2
- package/dist/eval/__tests__/scorer-gates.test.d.ts.map +0 -1
- package/dist/eval/__tests__/scorer-gates.test.js +0 -136
- package/dist/eval/__tests__/scorer-gates.test.js.map +0 -1
- package/dist/execution/local.test.d.ts +0 -2
- package/dist/execution/local.test.d.ts.map +0 -1
- package/dist/execution/local.test.js +0 -37
- package/dist/execution/local.test.js.map +0 -1
- package/dist/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.d.ts +0 -2
- package/dist/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.js +0 -96
- package/dist/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.js.map +0 -1
- package/dist/gateway/__tests__/a-knob-nobody-can-turn.test.d.ts +0 -2
- package/dist/gateway/__tests__/a-knob-nobody-can-turn.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/a-knob-nobody-can-turn.test.js +0 -114
- package/dist/gateway/__tests__/a-knob-nobody-can-turn.test.js.map +0 -1
- package/dist/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.d.ts +0 -2
- package/dist/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.js +0 -137
- package/dist/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.js.map +0 -1
- package/dist/gateway/__tests__/completion-inbox.test.d.ts +0 -2
- package/dist/gateway/__tests__/completion-inbox.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/completion-inbox.test.js +0 -565
- package/dist/gateway/__tests__/completion-inbox.test.js.map +0 -1
- package/dist/gateway/__tests__/list-survives-eviction.test.d.ts +0 -2
- package/dist/gateway/__tests__/list-survives-eviction.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/list-survives-eviction.test.js +0 -102
- package/dist/gateway/__tests__/list-survives-eviction.test.js.map +0 -1
- package/dist/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.js +0 -101
- package/dist/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.js.map +0 -1
- package/dist/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.js +0 -159
- package/dist/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.js.map +0 -1
- package/dist/manager/agent/__tests__/depth-limit-authority.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/depth-limit-authority.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/depth-limit-authority.test.js +0 -58
- package/dist/manager/agent/__tests__/depth-limit-authority.test.js.map +0 -1
- package/dist/manager/agent/__tests__/dispose-cancels.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/dispose-cancels.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/dispose-cancels.test.js +0 -88
- package/dist/manager/agent/__tests__/dispose-cancels.test.js.map +0 -1
- package/dist/manager/agent/__tests__/hitl-across-spawn.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/hitl-across-spawn.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/hitl-across-spawn.test.js +0 -226
- package/dist/manager/agent/__tests__/hitl-across-spawn.test.js.map +0 -1
- package/dist/manager/agent/__tests__/lifecycle.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/lifecycle.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/lifecycle.test.js +0 -602
- package/dist/manager/agent/__tests__/lifecycle.test.js.map +0 -1
- package/dist/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.d.ts +0 -2
- package/dist/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.d.ts.map +0 -1
- package/dist/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.js +0 -73
- package/dist/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.js.map +0 -1
- package/dist/manager/project/__tests__/a-closed-workspace-takes-no-work.test.d.ts +0 -2
- package/dist/manager/project/__tests__/a-closed-workspace-takes-no-work.test.d.ts.map +0 -1
- package/dist/manager/project/__tests__/a-closed-workspace-takes-no-work.test.js +0 -248
- package/dist/manager/project/__tests__/a-closed-workspace-takes-no-work.test.js.map +0 -1
- package/dist/manager/thread/__tests__/lifecycle.test.d.ts +0 -2
- package/dist/manager/thread/__tests__/lifecycle.test.d.ts.map +0 -1
- package/dist/manager/thread/__tests__/lifecycle.test.js +0 -216
- package/dist/manager/thread/__tests__/lifecycle.test.js.map +0 -1
- package/dist/plugin/__tests__/discovery-scopes.test.d.ts +0 -2
- package/dist/plugin/__tests__/discovery-scopes.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/discovery-scopes.test.js +0 -97
- package/dist/plugin/__tests__/discovery-scopes.test.js.map +0 -1
- package/dist/plugin/__tests__/enable-contributions.test.d.ts +0 -2
- package/dist/plugin/__tests__/enable-contributions.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/enable-contributions.test.js +0 -269
- package/dist/plugin/__tests__/enable-contributions.test.js.map +0 -1
- package/dist/plugin/__tests__/hook-ordering.test.d.ts +0 -2
- package/dist/plugin/__tests__/hook-ordering.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/hook-ordering.test.js +0 -227
- package/dist/plugin/__tests__/hook-ordering.test.js.map +0 -1
- package/dist/plugin/__tests__/install-time-refusal.test.d.ts +0 -2
- package/dist/plugin/__tests__/install-time-refusal.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/install-time-refusal.test.js +0 -49
- package/dist/plugin/__tests__/install-time-refusal.test.js.map +0 -1
- package/dist/plugin/__tests__/lifecycle.test.d.ts +0 -2
- package/dist/plugin/__tests__/lifecycle.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/lifecycle.test.js +0 -389
- package/dist/plugin/__tests__/lifecycle.test.js.map +0 -1
- package/dist/plugin/__tests__/mcp-admission.test.d.ts +0 -2
- package/dist/plugin/__tests__/mcp-admission.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/mcp-admission.test.js +0 -227
- package/dist/plugin/__tests__/mcp-admission.test.js.map +0 -1
- package/dist/plugin/__tests__/path-containment.test.d.ts +0 -2
- package/dist/plugin/__tests__/path-containment.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/path-containment.test.js +0 -91
- package/dist/plugin/__tests__/path-containment.test.js.map +0 -1
- package/dist/probe/registry.test.d.ts +0 -13
- package/dist/probe/registry.test.d.ts.map +0 -1
- package/dist/probe/registry.test.js +0 -348
- package/dist/probe/registry.test.js.map +0 -1
- package/dist/provider/__tests__/errors.test.d.ts +0 -2
- package/dist/provider/__tests__/errors.test.d.ts.map +0 -1
- package/dist/provider/__tests__/errors.test.js +0 -61
- package/dist/provider/__tests__/errors.test.js.map +0 -1
- package/dist/provider/__tests__/mock-script.test.d.ts +0 -2
- package/dist/provider/__tests__/mock-script.test.d.ts.map +0 -1
- package/dist/provider/__tests__/mock-script.test.js +0 -151
- package/dist/provider/__tests__/mock-script.test.js.map +0 -1
- package/dist/provider/__tests__/model-version.test.d.ts +0 -2
- package/dist/provider/__tests__/model-version.test.d.ts.map +0 -1
- package/dist/provider/__tests__/model-version.test.js +0 -80
- package/dist/provider/__tests__/model-version.test.js.map +0 -1
- package/dist/provider/__tests__/registry.test.d.ts +0 -16
- package/dist/provider/__tests__/registry.test.d.ts.map +0 -1
- package/dist/provider/__tests__/registry.test.js +0 -303
- package/dist/provider/__tests__/registry.test.js.map +0 -1
- package/dist/provider/__tests__/retry-visibility.test.d.ts +0 -2
- package/dist/provider/__tests__/retry-visibility.test.d.ts.map +0 -1
- package/dist/provider/__tests__/retry-visibility.test.js +0 -137
- package/dist/provider/__tests__/retry-visibility.test.js.map +0 -1
- package/dist/provider/__tests__/retry.test.d.ts +0 -2
- package/dist/provider/__tests__/retry.test.d.ts.map +0 -1
- package/dist/provider/__tests__/retry.test.js +0 -259
- package/dist/provider/__tests__/retry.test.js.map +0 -1
- package/dist/provider/__tests__/strict-schema.test.d.ts +0 -2
- package/dist/provider/__tests__/strict-schema.test.d.ts.map +0 -1
- package/dist/provider/__tests__/strict-schema.test.js +0 -157
- package/dist/provider/__tests__/strict-schema.test.js.map +0 -1
- package/dist/provider/__tests__/thinking-support.test.d.ts +0 -2
- package/dist/provider/__tests__/thinking-support.test.d.ts.map +0 -1
- package/dist/provider/__tests__/thinking-support.test.js +0 -47
- package/dist/provider/__tests__/thinking-support.test.js.map +0 -1
- package/dist/provider/__tests__/typed-error-classification.test.d.ts +0 -2
- package/dist/provider/__tests__/typed-error-classification.test.d.ts.map +0 -1
- package/dist/provider/__tests__/typed-error-classification.test.js +0 -123
- package/dist/provider/__tests__/typed-error-classification.test.js.map +0 -1
- package/dist/provider/__tests__/vendor-detail.test.d.ts +0 -2
- package/dist/provider/__tests__/vendor-detail.test.d.ts.map +0 -1
- package/dist/provider/__tests__/vendor-detail.test.js +0 -89
- package/dist/provider/__tests__/vendor-detail.test.js.map +0 -1
- package/dist/provider/collect.test.d.ts +0 -22
- package/dist/provider/collect.test.d.ts.map +0 -1
- package/dist/provider/collect.test.js +0 -123
- package/dist/provider/collect.test.js.map +0 -1
- package/dist/provider/instrumentation.test.d.ts +0 -17
- package/dist/provider/instrumentation.test.d.ts.map +0 -1
- package/dist/provider/instrumentation.test.js +0 -138
- package/dist/provider/instrumentation.test.js.map +0 -1
- package/dist/rag/__tests__/namespace-isolation.test.d.ts +0 -2
- package/dist/rag/__tests__/namespace-isolation.test.d.ts.map +0 -1
- package/dist/rag/__tests__/namespace-isolation.test.js +0 -80
- package/dist/rag/__tests__/namespace-isolation.test.js.map +0 -1
- package/dist/rag/__tests__/retrieval-math.test.d.ts +0 -2
- package/dist/rag/__tests__/retrieval-math.test.d.ts.map +0 -1
- package/dist/rag/__tests__/retrieval-math.test.js +0 -46
- package/dist/rag/__tests__/retrieval-math.test.js.map +0 -1
- package/dist/rag/chunking.test.d.ts +0 -20
- package/dist/rag/chunking.test.d.ts.map +0 -1
- package/dist/rag/chunking.test.js +0 -92
- package/dist/rag/chunking.test.js.map +0 -1
- package/dist/rag/context-assembler.test.d.ts +0 -19
- package/dist/rag/context-assembler.test.d.ts.map +0 -1
- package/dist/rag/context-assembler.test.js +0 -98
- package/dist/rag/context-assembler.test.js.map +0 -1
- package/dist/rag/embedding.test.d.ts +0 -19
- package/dist/rag/embedding.test.d.ts.map +0 -1
- package/dist/rag/embedding.test.js +0 -164
- package/dist/rag/embedding.test.js.map +0 -1
- package/dist/rag/ingestion.test.d.ts +0 -22
- package/dist/rag/ingestion.test.d.ts.map +0 -1
- package/dist/rag/ingestion.test.js +0 -99
- package/dist/rag/ingestion.test.js.map +0 -1
- package/dist/rag/knowledge-base.test.d.ts +0 -17
- package/dist/rag/knowledge-base.test.d.ts.map +0 -1
- package/dist/rag/knowledge-base.test.js +0 -77
- package/dist/rag/knowledge-base.test.js.map +0 -1
- package/dist/rag/rag-tool.test.d.ts +0 -21
- package/dist/rag/rag-tool.test.d.ts.map +0 -1
- package/dist/rag/rag-tool.test.js +0 -149
- package/dist/rag/rag-tool.test.js.map +0 -1
- package/dist/rag/retriever.test.d.ts +0 -26
- package/dist/rag/retriever.test.d.ts.map +0 -1
- package/dist/rag/retriever.test.js +0 -180
- package/dist/rag/retriever.test.js.map +0 -1
- package/dist/rag/vector-store.test.d.ts +0 -38
- package/dist/rag/vector-store.test.d.ts.map +0 -1
- package/dist/rag/vector-store.test.js +0 -175
- package/dist/rag/vector-store.test.js.map +0 -1
- package/dist/registry/ManagedRegistry.test.d.ts +0 -21
- package/dist/registry/ManagedRegistry.test.d.ts.map +0 -1
- package/dist/registry/ManagedRegistry.test.js +0 -98
- package/dist/registry/ManagedRegistry.test.js.map +0 -1
- package/dist/registry/Registry.test.d.ts +0 -18
- package/dist/registry/Registry.test.d.ts.map +0 -1
- package/dist/registry/Registry.test.js +0 -79
- package/dist/registry/Registry.test.js.map +0 -1
- package/dist/registry/agent/definitions.test.d.ts +0 -15
- package/dist/registry/agent/definitions.test.d.ts.map +0 -1
- package/dist/registry/agent/definitions.test.js +0 -84
- package/dist/registry/agent/definitions.test.js.map +0 -1
- package/dist/registry/connector/definitions.test.d.ts +0 -13
- package/dist/registry/connector/definitions.test.d.ts.map +0 -1
- package/dist/registry/connector/definitions.test.js +0 -41
- package/dist/registry/connector/definitions.test.js.map +0 -1
- package/dist/registry/connector/scoped.test.d.ts +0 -21
- package/dist/registry/connector/scoped.test.d.ts.map +0 -1
- package/dist/registry/connector/scoped.test.js +0 -115
- package/dist/registry/connector/scoped.test.js.map +0 -1
- package/dist/registry/plugin/index.test.d.ts +0 -12
- package/dist/registry/plugin/index.test.d.ts.map +0 -1
- package/dist/registry/plugin/index.test.js +0 -69
- package/dist/registry/plugin/index.test.js.map +0 -1
- package/dist/registry/tool/__tests__/dialect.test.d.ts +0 -2
- package/dist/registry/tool/__tests__/dialect.test.d.ts.map +0 -1
- package/dist/registry/tool/__tests__/dialect.test.js +0 -146
- package/dist/registry/tool/__tests__/dialect.test.js.map +0 -1
- package/dist/registry/tool/__tests__/schema.test.d.ts +0 -2
- package/dist/registry/tool/__tests__/schema.test.d.ts.map +0 -1
- package/dist/registry/tool/__tests__/schema.test.js +0 -176
- package/dist/registry/tool/__tests__/schema.test.js.map +0 -1
- package/dist/registry/tool/__tests__/strict-registration.test.d.ts +0 -2
- package/dist/registry/tool/__tests__/strict-registration.test.d.ts.map +0 -1
- package/dist/registry/tool/__tests__/strict-registration.test.js +0 -82
- package/dist/registry/tool/__tests__/strict-registration.test.js.map +0 -1
- package/dist/registry/tool/__tests__/tool-name-validation.test.d.ts +0 -2
- package/dist/registry/tool/__tests__/tool-name-validation.test.d.ts.map +0 -1
- package/dist/registry/tool/__tests__/tool-name-validation.test.js +0 -70
- package/dist/registry/tool/__tests__/tool-name-validation.test.js.map +0 -1
- package/dist/registry/tool/execute.test.d.ts +0 -47
- package/dist/registry/tool/execute.test.d.ts.map +0 -1
- package/dist/registry/tool/execute.test.js +0 -549
- package/dist/registry/tool/execute.test.js.map +0 -1
- package/dist/registry/toolset/catalog.test.d.ts +0 -2
- package/dist/registry/toolset/catalog.test.d.ts.map +0 -1
- package/dist/registry/toolset/catalog.test.js +0 -247
- package/dist/registry/toolset/catalog.test.js.map +0 -1
- package/dist/run/LimitChecker.test.d.ts +0 -2
- package/dist/run/LimitChecker.test.d.ts.map +0 -1
- package/dist/run/LimitChecker.test.js +0 -26
- package/dist/run/LimitChecker.test.js.map +0 -1
- package/dist/runtime/bidi/__tests__/session.test.d.ts +0 -2
- package/dist/runtime/bidi/__tests__/session.test.d.ts.map +0 -1
- package/dist/runtime/bidi/__tests__/session.test.js +0 -201
- package/dist/runtime/bidi/__tests__/session.test.js.map +0 -1
- package/dist/runtime/decision/parser.test.d.ts +0 -2
- package/dist/runtime/decision/parser.test.d.ts.map +0 -1
- package/dist/runtime/decision/parser.test.js +0 -37
- package/dist/runtime/decision/parser.test.js.map +0 -1
- package/dist/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.js +0 -90
- package/dist/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.js.map +0 -1
- package/dist/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.js +0 -97
- package/dist/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.js.map +0 -1
- package/dist/runtime/query/__tests__/answer-review.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/answer-review.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/answer-review.test.js +0 -141
- package/dist/runtime/query/__tests__/answer-review.test.js.map +0 -1
- package/dist/runtime/query/__tests__/capability-negotiation.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/capability-negotiation.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/capability-negotiation.test.js +0 -235
- package/dist/runtime/query/__tests__/capability-negotiation.test.js.map +0 -1
- package/dist/runtime/query/__tests__/checkpoint-store.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/checkpoint-store.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/checkpoint-store.test.js +0 -227
- package/dist/runtime/query/__tests__/checkpoint-store.test.js.map +0 -1
- package/dist/runtime/query/__tests__/checkpoint.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/checkpoint.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/checkpoint.test.js +0 -148
- package/dist/runtime/query/__tests__/checkpoint.test.js.map +0 -1
- package/dist/runtime/query/__tests__/citations.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/citations.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/citations.test.js +0 -85
- package/dist/runtime/query/__tests__/citations.test.js.map +0 -1
- package/dist/runtime/query/__tests__/completion-does-not-erase-the-answer.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/completion-does-not-erase-the-answer.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/completion-does-not-erase-the-answer.test.js +0 -142
- package/dist/runtime/query/__tests__/completion-does-not-erase-the-answer.test.js.map +0 -1
- package/dist/runtime/query/__tests__/completion-notification.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/completion-notification.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/completion-notification.test.js +0 -550
- package/dist/runtime/query/__tests__/completion-notification.test.js.map +0 -1
- package/dist/runtime/query/__tests__/content-budget.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/content-budget.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/content-budget.test.js +0 -69
- package/dist/runtime/query/__tests__/content-budget.test.js.map +0 -1
- package/dist/runtime/query/__tests__/context-size-on-the-wire.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/context-size-on-the-wire.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/context-size-on-the-wire.test.js +0 -100
- package/dist/runtime/query/__tests__/context-size-on-the-wire.test.js.map +0 -1
- package/dist/runtime/query/__tests__/context.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/context.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/context.test.js +0 -104
- package/dist/runtime/query/__tests__/context.test.js.map +0 -1
- package/dist/runtime/query/__tests__/deferred-tools.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/deferred-tools.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/deferred-tools.test.js +0 -176
- package/dist/runtime/query/__tests__/deferred-tools.test.js.map +0 -1
- package/dist/runtime/query/__tests__/delegation-resume.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/delegation-resume.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/delegation-resume.test.js +0 -111
- package/dist/runtime/query/__tests__/delegation-resume.test.js.map +0 -1
- package/dist/runtime/query/__tests__/document-attachments.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/document-attachments.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/document-attachments.test.js +0 -92
- package/dist/runtime/query/__tests__/document-attachments.test.js.map +0 -1
- package/dist/runtime/query/__tests__/durable-park-and-trace.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/durable-park-and-trace.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/durable-park-and-trace.test.js +0 -194
- package/dist/runtime/query/__tests__/durable-park-and-trace.test.js.map +0 -1
- package/dist/runtime/query/__tests__/durable-question-park.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/durable-question-park.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/durable-question-park.test.js +0 -253
- package/dist/runtime/query/__tests__/durable-question-park.test.js.map +0 -1
- package/dist/runtime/query/__tests__/durable-run-state.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/durable-run-state.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/durable-run-state.test.js +0 -158
- package/dist/runtime/query/__tests__/durable-run-state.test.js.map +0 -1
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.js +0 -118
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.js.map +0 -1
- package/dist/runtime/query/__tests__/executor-concurrency.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/executor-concurrency.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/executor-concurrency.test.js +0 -98
- package/dist/runtime/query/__tests__/executor-concurrency.test.js.map +0 -1
- package/dist/runtime/query/__tests__/executor-plugin-hooks.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/executor-plugin-hooks.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/executor-plugin-hooks.test.js +0 -275
- package/dist/runtime/query/__tests__/executor-plugin-hooks.test.js.map +0 -1
- package/dist/runtime/query/__tests__/finish-reason-vs-tool-calls.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/finish-reason-vs-tool-calls.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/finish-reason-vs-tool-calls.test.js +0 -187
- package/dist/runtime/query/__tests__/finish-reason-vs-tool-calls.test.js.map +0 -1
- package/dist/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.js +0 -95
- package/dist/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.js.map +0 -1
- package/dist/runtime/query/__tests__/guardrails-e2e.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/guardrails-e2e.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/guardrails-e2e.test.js +0 -132
- package/dist/runtime/query/__tests__/guardrails-e2e.test.js.map +0 -1
- package/dist/runtime/query/__tests__/guardrails.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/guardrails.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/guardrails.test.js +0 -163
- package/dist/runtime/query/__tests__/guardrails.test.js.map +0 -1
- package/dist/runtime/query/__tests__/hook-model-visibility.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/hook-model-visibility.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/hook-model-visibility.test.js +0 -119
- package/dist/runtime/query/__tests__/hook-model-visibility.test.js.map +0 -1
- package/dist/runtime/query/__tests__/long-document-flow.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/long-document-flow.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/long-document-flow.test.js +0 -161
- package/dist/runtime/query/__tests__/long-document-flow.test.js.map +0 -1
- package/dist/runtime/query/__tests__/memory-promotion.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/memory-promotion.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/memory-promotion.test.js +0 -119
- package/dist/runtime/query/__tests__/memory-promotion.test.js.map +0 -1
- package/dist/runtime/query/__tests__/orphan-task-turn-end.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/orphan-task-turn-end.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/orphan-task-turn-end.test.js +0 -88
- package/dist/runtime/query/__tests__/orphan-task-turn-end.test.js.map +0 -1
- package/dist/runtime/query/__tests__/overflow-relief.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/overflow-relief.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/overflow-relief.test.js +0 -119
- package/dist/runtime/query/__tests__/overflow-relief.test.js.map +0 -1
- package/dist/runtime/query/__tests__/partial-batch-resume.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/partial-batch-resume.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/partial-batch-resume.test.js +0 -205
- package/dist/runtime/query/__tests__/partial-batch-resume.test.js.map +0 -1
- package/dist/runtime/query/__tests__/per-step-skills.test.d.ts +0 -10
- package/dist/runtime/query/__tests__/per-step-skills.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/per-step-skills.test.js +0 -122
- package/dist/runtime/query/__tests__/per-step-skills.test.js.map +0 -1
- package/dist/runtime/query/__tests__/per-step-tool-choice.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/per-step-tool-choice.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/per-step-tool-choice.test.js +0 -153
- package/dist/runtime/query/__tests__/per-step-tool-choice.test.js.map +0 -1
- package/dist/runtime/query/__tests__/plugin-hooks.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/plugin-hooks.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/plugin-hooks.test.js +0 -20
- package/dist/runtime/query/__tests__/plugin-hooks.test.js.map +0 -1
- package/dist/runtime/query/__tests__/prepare-step-chain.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/prepare-step-chain.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/prepare-step-chain.test.js +0 -104
- package/dist/runtime/query/__tests__/prepare-step-chain.test.js.map +0 -1
- package/dist/runtime/query/__tests__/prepare-step.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/prepare-step.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/prepare-step.test.js +0 -194
- package/dist/runtime/query/__tests__/prepare-step.test.js.map +0 -1
- package/dist/runtime/query/__tests__/probe-veto-is-error.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/probe-veto-is-error.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/probe-veto-is-error.test.js +0 -111
- package/dist/runtime/query/__tests__/probe-veto-is-error.test.js.map +0 -1
- package/dist/runtime/query/__tests__/prompt.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/prompt.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/prompt.test.js +0 -84
- package/dist/runtime/query/__tests__/prompt.test.js.map +0 -1
- package/dist/runtime/query/__tests__/provider-fault-pauses.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/provider-fault-pauses.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/provider-fault-pauses.test.js +0 -86
- package/dist/runtime/query/__tests__/provider-fault-pauses.test.js.map +0 -1
- package/dist/runtime/query/__tests__/reasoning-stream.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/reasoning-stream.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/reasoning-stream.test.js +0 -146
- package/dist/runtime/query/__tests__/reasoning-stream.test.js.map +0 -1
- package/dist/runtime/query/__tests__/recoverable-settle.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/recoverable-settle.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/recoverable-settle.test.js +0 -119
- package/dist/runtime/query/__tests__/recoverable-settle.test.js.map +0 -1
- package/dist/runtime/query/__tests__/resume-budget.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/resume-budget.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/resume-budget.test.js +0 -130
- package/dist/runtime/query/__tests__/resume-budget.test.js.map +0 -1
- package/dist/runtime/query/__tests__/resume-pending.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/resume-pending.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/resume-pending.test.js +0 -226
- package/dist/runtime/query/__tests__/resume-pending.test.js.map +0 -1
- package/dist/runtime/query/__tests__/resume-run.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/resume-run.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/resume-run.test.js +0 -211
- package/dist/runtime/query/__tests__/resume-run.test.js.map +0 -1
- package/dist/runtime/query/__tests__/rich-content-budget-wiring.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/rich-content-budget-wiring.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/rich-content-budget-wiring.test.js +0 -89
- package/dist/runtime/query/__tests__/rich-content-budget-wiring.test.js.map +0 -1
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.d.ts +0 -2
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.js +0 -122
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.js.map +0 -1
- package/dist/runtime/query/__tests__/steering-reaches-the-model.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/steering-reaches-the-model.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/steering-reaches-the-model.test.js +0 -94
- package/dist/runtime/query/__tests__/steering-reaches-the-model.test.js.map +0 -1
- package/dist/runtime/query/__tests__/steering.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/steering.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/steering.test.js +0 -92
- package/dist/runtime/query/__tests__/steering.test.js.map +0 -1
- package/dist/runtime/query/__tests__/step-allow-list.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/step-allow-list.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/step-allow-list.test.js +0 -171
- package/dist/runtime/query/__tests__/step-allow-list.test.js.map +0 -1
- package/dist/runtime/query/__tests__/stop-condition.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/stop-condition.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/stop-condition.test.js +0 -205
- package/dist/runtime/query/__tests__/stop-condition.test.js.map +0 -1
- package/dist/runtime/query/__tests__/stream-recovery.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/stream-recovery.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/stream-recovery.test.js +0 -190
- package/dist/runtime/query/__tests__/stream-recovery.test.js.map +0 -1
- package/dist/runtime/query/__tests__/structured-output.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/structured-output.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/structured-output.test.js +0 -219
- package/dist/runtime/query/__tests__/structured-output.test.js.map +0 -1
- package/dist/runtime/query/__tests__/structured-run-failure.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/structured-run-failure.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/structured-run-failure.test.js +0 -117
- package/dist/runtime/query/__tests__/structured-run-failure.test.js.map +0 -1
- package/dist/runtime/query/__tests__/terminal-tool.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/terminal-tool.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/terminal-tool.test.js +0 -119
- package/dist/runtime/query/__tests__/terminal-tool.test.js.map +0 -1
- package/dist/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.js +0 -81
- package/dist/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.js.map +0 -1
- package/dist/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.js +0 -62
- package/dist/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-grants.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-grants.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-grants.test.js +0 -85
- package/dist/runtime/query/__tests__/tool-grants.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-output-budget.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-output-budget.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-output-budget.test.js +0 -0
- package/dist/runtime/query/__tests__/tool-output-budget.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-pause.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-pause.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-pause.test.js +0 -165
- package/dist/runtime/query/__tests__/tool-pause.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-progress.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-progress.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-progress.test.js +0 -122
- package/dist/runtime/query/__tests__/tool-progress.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-repair-retry.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-repair-retry.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-repair-retry.test.js +0 -196
- package/dist/runtime/query/__tests__/tool-repair-retry.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-result-wire.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-result-wire.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-result-wire.test.js +0 -106
- package/dist/runtime/query/__tests__/tool-result-wire.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-timeout.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-timeout.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-timeout.test.js +0 -218
- package/dist/runtime/query/__tests__/tool-timeout.test.js.map +0 -1
- package/dist/runtime/query/__tests__/trace-parenting.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/trace-parenting.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/trace-parenting.test.js +0 -111
- package/dist/runtime/query/__tests__/trace-parenting.test.js.map +0 -1
- package/dist/runtime/query/__tests__/wiring-seams.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/wiring-seams.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/wiring-seams.test.js +0 -237
- package/dist/runtime/query/__tests__/wiring-seams.test.js.map +0 -1
- package/dist/runtime/query/iteration/__tests__/cancel-settles-turn.test.d.ts +0 -2
- package/dist/runtime/query/iteration/__tests__/cancel-settles-turn.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/__tests__/cancel-settles-turn.test.js +0 -131
- package/dist/runtime/query/iteration/__tests__/cancel-settles-turn.test.js.map +0 -1
- package/dist/runtime/query/iteration/__tests__/settle-grace.test.d.ts +0 -2
- package/dist/runtime/query/iteration/__tests__/settle-grace.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/__tests__/settle-grace.test.js +0 -226
- package/dist/runtime/query/iteration/__tests__/settle-grace.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/__tests__/compaction-declined.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/__tests__/compaction-declined.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/__tests__/compaction-declined.test.js +0 -95
- package/dist/runtime/query/iteration/phases/__tests__/compaction-declined.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/advisory.test.d.ts +0 -42
- package/dist/runtime/query/iteration/phases/advisory.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/advisory.test.js +0 -337
- package/dist/runtime/query/iteration/phases/advisory.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/compaction-model-routing.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/compaction-model-routing.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/compaction-model-routing.test.js +0 -96
- package/dist/runtime/query/iteration/phases/compaction-model-routing.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/compaction-safe-cut.test.d.ts +0 -32
- package/dist/runtime/query/iteration/phases/compaction-safe-cut.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/compaction-safe-cut.test.js +0 -152
- package/dist/runtime/query/iteration/phases/compaction-safe-cut.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/context-measurement.test.d.ts +0 -21
- package/dist/runtime/query/iteration/phases/context-measurement.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/context-measurement.test.js +0 -161
- package/dist/runtime/query/iteration/phases/context-measurement.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/context-reducer-dispatch.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/context-reducer-dispatch.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/context-reducer-dispatch.test.js +0 -180
- package/dist/runtime/query/iteration/phases/context-reducer-dispatch.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/hitl-abort-race.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/hitl-abort-race.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/hitl-abort-race.test.js +0 -73
- package/dist/runtime/query/iteration/phases/hitl-abort-race.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/hitl-answer-question.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/hitl-answer-question.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/hitl-answer-question.test.js +0 -122
- package/dist/runtime/query/iteration/phases/hitl-answer-question.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/overflow-escalation.test.d.ts +0 -15
- package/dist/runtime/query/iteration/phases/overflow-escalation.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/overflow-escalation.test.js +0 -130
- package/dist/runtime/query/iteration/phases/overflow-escalation.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/retained-messages.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/retained-messages.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/retained-messages.test.js +0 -180
- package/dist/runtime/query/iteration/phases/retained-messages.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/tool-review-denials.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/tool-review-denials.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/tool-review-denials.test.js +0 -224
- package/dist/runtime/query/iteration/phases/tool-review-denials.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/working-memory-compaction.test.d.ts +0 -19
- package/dist/runtime/query/iteration/phases/working-memory-compaction.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/working-memory-compaction.test.js +0 -188
- package/dist/runtime/query/iteration/phases/working-memory-compaction.test.js.map +0 -1
- package/dist/runtime/query/replay/__tests__/mutate.test.d.ts +0 -2
- package/dist/runtime/query/replay/__tests__/mutate.test.d.ts.map +0 -1
- package/dist/runtime/query/replay/__tests__/mutate.test.js +0 -123
- package/dist/runtime/query/replay/__tests__/mutate.test.js.map +0 -1
- package/dist/runtime/query/replay/__tests__/prepare.test.d.ts +0 -2
- package/dist/runtime/query/replay/__tests__/prepare.test.d.ts.map +0 -1
- package/dist/runtime/query/replay/__tests__/prepare.test.js +0 -171
- package/dist/runtime/query/replay/__tests__/prepare.test.js.map +0 -1
- package/dist/sandbox/__tests__/exec-cancellation.test.d.ts +0 -2
- package/dist/sandbox/__tests__/exec-cancellation.test.d.ts.map +0 -1
- package/dist/sandbox/__tests__/exec-cancellation.test.js +0 -59
- package/dist/sandbox/__tests__/exec-cancellation.test.js.map +0 -1
- package/dist/sandbox/__tests__/isolation.test.d.ts +0 -2
- package/dist/sandbox/__tests__/isolation.test.d.ts.map +0 -1
- package/dist/sandbox/__tests__/isolation.test.js +0 -139
- package/dist/sandbox/__tests__/isolation.test.js.map +0 -1
- package/dist/sandbox/__tests__/output-truncation.test.d.ts +0 -2
- package/dist/sandbox/__tests__/output-truncation.test.d.ts.map +0 -1
- package/dist/sandbox/__tests__/output-truncation.test.js +0 -88
- package/dist/sandbox/__tests__/output-truncation.test.js.map +0 -1
- package/dist/sandbox/__tests__/resource-limits.test.d.ts +0 -2
- package/dist/sandbox/__tests__/resource-limits.test.d.ts.map +0 -1
- package/dist/sandbox/__tests__/resource-limits.test.js +0 -86
- package/dist/sandbox/__tests__/resource-limits.test.js.map +0 -1
- package/dist/session/__tests__/integration/_fixtures.d.ts +0 -122
- package/dist/session/__tests__/integration/_fixtures.d.ts.map +0 -1
- package/dist/session/__tests__/integration/_fixtures.js +0 -215
- package/dist/session/__tests__/integration/_fixtures.js.map +0 -1
- package/dist/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.d.ts +0 -21
- package/dist/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.js +0 -205
- package/dist/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.js.map +0 -1
- package/dist/session/__tests__/integration/archive-gate.test.d.ts +0 -15
- package/dist/session/__tests__/integration/archive-gate.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/archive-gate.test.js +0 -214
- package/dist/session/__tests__/integration/archive-gate.test.js.map +0 -1
- package/dist/session/__tests__/integration/capacity-caps.test.d.ts +0 -13
- package/dist/session/__tests__/integration/capacity-caps.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/capacity-caps.test.js +0 -123
- package/dist/session/__tests__/integration/capacity-caps.test.js.map +0 -1
- package/dist/session/__tests__/integration/e2e-spawn.test.d.ts +0 -18
- package/dist/session/__tests__/integration/e2e-spawn.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/e2e-spawn.test.js +0 -238
- package/dist/session/__tests__/integration/e2e-spawn.test.js.map +0 -1
- package/dist/session/__tests__/integration/event-stream-ordering.test.d.ts +0 -15
- package/dist/session/__tests__/integration/event-stream-ordering.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/event-stream-ordering.test.js +0 -330
- package/dist/session/__tests__/integration/event-stream-ordering.test.js.map +0 -1
- package/dist/session/__tests__/integration/handoff-broadcast-e2e.test.d.ts +0 -12
- package/dist/session/__tests__/integration/handoff-broadcast-e2e.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/handoff-broadcast-e2e.test.js +0 -182
- package/dist/session/__tests__/integration/handoff-broadcast-e2e.test.js.map +0 -1
- package/dist/session/__tests__/integration/handoff-illegal-transition.test.d.ts +0 -18
- package/dist/session/__tests__/integration/handoff-illegal-transition.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/handoff-illegal-transition.test.js +0 -156
- package/dist/session/__tests__/integration/handoff-illegal-transition.test.js.map +0 -1
- package/dist/session/__tests__/integration/handoff-single-e2e.test.d.ts +0 -15
- package/dist/session/__tests__/integration/handoff-single-e2e.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/handoff-single-e2e.test.js +0 -188
- package/dist/session/__tests__/integration/handoff-single-e2e.test.js.map +0 -1
- package/dist/session/__tests__/integration/hierarchy-lifecycle.test.d.ts +0 -12
- package/dist/session/__tests__/integration/hierarchy-lifecycle.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/hierarchy-lifecycle.test.js +0 -158
- package/dist/session/__tests__/integration/hierarchy-lifecycle.test.js.map +0 -1
- package/dist/session/__tests__/integration/migration-filesystem.test.d.ts +0 -11
- package/dist/session/__tests__/integration/migration-filesystem.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/migration-filesystem.test.js +0 -140
- package/dist/session/__tests__/integration/migration-filesystem.test.js.map +0 -1
- package/dist/session/__tests__/integration/migration-id-prefix.test.d.ts +0 -13
- package/dist/session/__tests__/integration/migration-id-prefix.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/migration-id-prefix.test.js +0 -84
- package/dist/session/__tests__/integration/migration-id-prefix.test.js.map +0 -1
- package/dist/session/__tests__/integration/prev-artifact-dag.test.d.ts +0 -14
- package/dist/session/__tests__/integration/prev-artifact-dag.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/prev-artifact-dag.test.js +0 -242
- package/dist/session/__tests__/integration/prev-artifact-dag.test.js.map +0 -1
- package/dist/session/__tests__/integration/retention-archive.test.d.ts +0 -12
- package/dist/session/__tests__/integration/retention-archive.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/retention-archive.test.js +0 -187
- package/dist/session/__tests__/integration/retention-archive.test.js.map +0 -1
- package/dist/session/__tests__/integration/spawn-rollback.test.d.ts +0 -26
- package/dist/session/__tests__/integration/spawn-rollback.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/spawn-rollback.test.js +0 -236
- package/dist/session/__tests__/integration/spawn-rollback.test.js.map +0 -1
- package/dist/session/__tests__/integration/summary-materialization-e2e.test.d.ts +0 -18
- package/dist/session/__tests__/integration/summary-materialization-e2e.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/summary-materialization-e2e.test.js +0 -201
- package/dist/session/__tests__/integration/summary-materialization-e2e.test.js.map +0 -1
- package/dist/session/__tests__/integration/tenant-isolation.test.d.ts +0 -14
- package/dist/session/__tests__/integration/tenant-isolation.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/tenant-isolation.test.js +0 -189
- package/dist/session/__tests__/integration/tenant-isolation.test.js.map +0 -1
- package/dist/session/handoff/__tests__/broadcast.test.d.ts +0 -2
- package/dist/session/handoff/__tests__/broadcast.test.d.ts.map +0 -1
- package/dist/session/handoff/__tests__/broadcast.test.js +0 -261
- package/dist/session/handoff/__tests__/broadcast.test.js.map +0 -1
- package/dist/session/handoff/__tests__/capacity.test.d.ts +0 -2
- package/dist/session/handoff/__tests__/capacity.test.d.ts.map +0 -1
- package/dist/session/handoff/__tests__/capacity.test.js +0 -103
- package/dist/session/handoff/__tests__/capacity.test.js.map +0 -1
- package/dist/session/handoff/__tests__/single.test.d.ts +0 -2
- package/dist/session/handoff/__tests__/single.test.d.ts.map +0 -1
- package/dist/session/handoff/__tests__/single.test.js +0 -239
- package/dist/session/handoff/__tests__/single.test.js.map +0 -1
- package/dist/session/intervention/__tests__/prev-artifact.test.d.ts +0 -2
- package/dist/session/intervention/__tests__/prev-artifact.test.d.ts.map +0 -1
- package/dist/session/intervention/__tests__/prev-artifact.test.js +0 -179
- package/dist/session/intervention/__tests__/prev-artifact.test.js.map +0 -1
- package/dist/session/migration/__tests__/a-migrated-project-id-is-an-id.test.d.ts +0 -2
- package/dist/session/migration/__tests__/a-migrated-project-id-is-an-id.test.d.ts.map +0 -1
- package/dist/session/migration/__tests__/a-migrated-project-id-is-an-id.test.js +0 -75
- package/dist/session/migration/__tests__/a-migrated-project-id-is-an-id.test.js.map +0 -1
- package/dist/session/migration/__tests__/filesystem.test.d.ts +0 -2
- package/dist/session/migration/__tests__/filesystem.test.d.ts.map +0 -1
- package/dist/session/migration/__tests__/filesystem.test.js +0 -192
- package/dist/session/migration/__tests__/filesystem.test.js.map +0 -1
- package/dist/session/migration/__tests__/id-prefix.test.d.ts +0 -2
- package/dist/session/migration/__tests__/id-prefix.test.d.ts.map +0 -1
- package/dist/session/migration/__tests__/id-prefix.test.js +0 -83
- package/dist/session/migration/__tests__/id-prefix.test.js.map +0 -1
- package/dist/session/migration/__tests__/marker.test.d.ts +0 -2
- package/dist/session/migration/__tests__/marker.test.d.ts.map +0 -1
- package/dist/session/migration/__tests__/marker.test.js +0 -75
- package/dist/session/migration/__tests__/marker.test.js.map +0 -1
- package/dist/session/retention/__tests__/archive.test.d.ts +0 -2
- package/dist/session/retention/__tests__/archive.test.d.ts.map +0 -1
- package/dist/session/retention/__tests__/archive.test.js +0 -253
- package/dist/session/retention/__tests__/archive.test.js.map +0 -1
- package/dist/session/retention/__tests__/disk-backend.test.d.ts +0 -2
- package/dist/session/retention/__tests__/disk-backend.test.d.ts.map +0 -1
- package/dist/session/retention/__tests__/disk-backend.test.js +0 -154
- package/dist/session/retention/__tests__/disk-backend.test.js.map +0 -1
- package/dist/session/status/__tests__/derive.test.d.ts +0 -2
- package/dist/session/status/__tests__/derive.test.d.ts.map +0 -1
- package/dist/session/status/__tests__/derive.test.js +0 -69
- package/dist/session/status/__tests__/derive.test.js.map +0 -1
- package/dist/session/summary/__tests__/materialize.test.d.ts +0 -2
- package/dist/session/summary/__tests__/materialize.test.d.ts.map +0 -1
- package/dist/session/summary/__tests__/materialize.test.js +0 -271
- package/dist/session/summary/__tests__/materialize.test.js.map +0 -1
- package/dist/session/workspace/__tests__/git-worktree.test.d.ts +0 -2
- package/dist/session/workspace/__tests__/git-worktree.test.d.ts.map +0 -1
- package/dist/session/workspace/__tests__/git-worktree.test.js +0 -248
- package/dist/session/workspace/__tests__/git-worktree.test.js.map +0 -1
- package/dist/session/workspace/__tests__/path-builder.test.d.ts +0 -2
- package/dist/session/workspace/__tests__/path-builder.test.d.ts.map +0 -1
- package/dist/session/workspace/__tests__/path-builder.test.js +0 -37
- package/dist/session/workspace/__tests__/path-builder.test.js.map +0 -1
- package/dist/session/workspace/__tests__/shared-run.test.d.ts +0 -2
- package/dist/session/workspace/__tests__/shared-run.test.d.ts.map +0 -1
- package/dist/session/workspace/__tests__/shared-run.test.js +0 -162
- package/dist/session/workspace/__tests__/shared-run.test.js.map +0 -1
- package/dist/skills/__tests__/frontmatter.test.d.ts +0 -2
- package/dist/skills/__tests__/frontmatter.test.d.ts.map +0 -1
- package/dist/skills/__tests__/frontmatter.test.js +0 -106
- package/dist/skills/__tests__/frontmatter.test.js.map +0 -1
- package/dist/skills/loader.test.d.ts +0 -2
- package/dist/skills/loader.test.d.ts.map +0 -1
- package/dist/skills/loader.test.js +0 -65
- package/dist/skills/loader.test.js.map +0 -1
- package/dist/store/__tests__/checkpoint-integrity.test.d.ts +0 -2
- package/dist/store/__tests__/checkpoint-integrity.test.d.ts.map +0 -1
- package/dist/store/__tests__/checkpoint-integrity.test.js +0 -112
- package/dist/store/__tests__/checkpoint-integrity.test.js.map +0 -1
- package/dist/store/__tests__/checkpoint-versioning.test.d.ts +0 -2
- package/dist/store/__tests__/checkpoint-versioning.test.d.ts.map +0 -1
- package/dist/store/__tests__/checkpoint-versioning.test.js +0 -151
- package/dist/store/__tests__/checkpoint-versioning.test.js.map +0 -1
- package/dist/store/__tests__/schema-adoption.test.d.ts +0 -2
- package/dist/store/__tests__/schema-adoption.test.d.ts.map +0 -1
- package/dist/store/__tests__/schema-adoption.test.js +0 -90
- package/dist/store/__tests__/schema-adoption.test.js.map +0 -1
- package/dist/store/__tests__/schema.test.d.ts +0 -2
- package/dist/store/__tests__/schema.test.d.ts.map +0 -1
- package/dist/store/__tests__/schema.test.js +0 -93
- package/dist/store/__tests__/schema.test.js.map +0 -1
- package/dist/store/session/__tests__/a-session-has-one-writer.test.d.ts +0 -2
- package/dist/store/session/__tests__/a-session-has-one-writer.test.d.ts.map +0 -1
- package/dist/store/session/__tests__/a-session-has-one-writer.test.js +0 -79
- package/dist/store/session/__tests__/a-session-has-one-writer.test.js.map +0 -1
- package/dist/store/session/__tests__/a-workspace-can-be-configured.test.d.ts +0 -2
- package/dist/store/session/__tests__/a-workspace-can-be-configured.test.d.ts.map +0 -1
- package/dist/store/session/__tests__/a-workspace-can-be-configured.test.js +0 -149
- package/dist/store/session/__tests__/a-workspace-can-be-configured.test.js.map +0 -1
- package/dist/store/session/__tests__/disk.test.d.ts +0 -2
- package/dist/store/session/__tests__/disk.test.d.ts.map +0 -1
- package/dist/store/session/__tests__/disk.test.js +0 -267
- package/dist/store/session/__tests__/disk.test.js.map +0 -1
- package/dist/store/session/__tests__/memory.test.d.ts +0 -2
- package/dist/store/session/__tests__/memory.test.d.ts.map +0 -1
- package/dist/store/session/__tests__/memory.test.js +0 -258
- package/dist/store/session/__tests__/memory.test.js.map +0 -1
- package/dist/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.d.ts +0 -2
- package/dist/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.d.ts.map +0 -1
- package/dist/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.js +0 -95
- package/dist/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.js.map +0 -1
- package/dist/store/task/__tests__/disk-concurrency.test.d.ts +0 -2
- package/dist/store/task/__tests__/disk-concurrency.test.d.ts.map +0 -1
- package/dist/store/task/__tests__/disk-concurrency.test.js +0 -91
- package/dist/store/task/__tests__/disk-concurrency.test.js.map +0 -1
- package/dist/store/task/__tests__/lookup-across-runs.test.d.ts +0 -2
- package/dist/store/task/__tests__/lookup-across-runs.test.d.ts.map +0 -1
- package/dist/store/task/__tests__/lookup-across-runs.test.js +0 -60
- package/dist/store/task/__tests__/lookup-across-runs.test.js.map +0 -1
- package/dist/streaming/coalesce.test.d.ts +0 -19
- package/dist/streaming/coalesce.test.d.ts.map +0 -1
- package/dist/streaming/coalesce.test.js +0 -120
- package/dist/streaming/coalesce.test.js.map +0 -1
- package/dist/telemetry/__tests__/latency-instruments.test.d.ts +0 -2
- package/dist/telemetry/__tests__/latency-instruments.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/latency-instruments.test.js +0 -82
- package/dist/telemetry/__tests__/latency-instruments.test.js.map +0 -1
- package/dist/telemetry/__tests__/metrics.test.d.ts +0 -2
- package/dist/telemetry/__tests__/metrics.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/metrics.test.js +0 -112
- package/dist/telemetry/__tests__/metrics.test.js.map +0 -1
- package/dist/telemetry/__tests__/model-call-span.test.d.ts +0 -2
- package/dist/telemetry/__tests__/model-call-span.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/model-call-span.test.js +0 -170
- package/dist/telemetry/__tests__/model-call-span.test.js.map +0 -1
- package/dist/telemetry/__tests__/span-closure.test.d.ts +0 -2
- package/dist/telemetry/__tests__/span-closure.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/span-closure.test.js +0 -131
- package/dist/telemetry/__tests__/span-closure.test.js.map +0 -1
- package/dist/telemetry/__tests__/span-hierarchy.test.d.ts +0 -2
- package/dist/telemetry/__tests__/span-hierarchy.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/span-hierarchy.test.js +0 -84
- package/dist/telemetry/__tests__/span-hierarchy.test.js.map +0 -1
- package/dist/test-setup.d.ts +0 -22
- package/dist/test-setup.d.ts.map +0 -1
- package/dist/test-setup.js +0 -23
- package/dist/test-setup.js.map +0 -1
- package/dist/tools/__tests__/file-tool-containment.test.d.ts +0 -2
- package/dist/tools/__tests__/file-tool-containment.test.d.ts.map +0 -1
- package/dist/tools/__tests__/file-tool-containment.test.js +0 -134
- package/dist/tools/__tests__/file-tool-containment.test.js.map +0 -1
- package/dist/tools/__tests__/path-containment.test.d.ts +0 -2
- package/dist/tools/__tests__/path-containment.test.d.ts.map +0 -1
- package/dist/tools/__tests__/path-containment.test.js +0 -133
- package/dist/tools/__tests__/path-containment.test.js.map +0 -1
- package/dist/tools/__tests__/posix-path.test.d.ts +0 -2
- package/dist/tools/__tests__/posix-path.test.d.ts.map +0 -1
- package/dist/tools/__tests__/posix-path.test.js +0 -67
- package/dist/tools/__tests__/posix-path.test.js.map +0 -1
- package/dist/tools/__tests__/sandboxed-search.test.d.ts +0 -2
- package/dist/tools/__tests__/sandboxed-search.test.d.ts.map +0 -1
- package/dist/tools/__tests__/sandboxed-search.test.js +0 -165
- package/dist/tools/__tests__/sandboxed-search.test.js.map +0 -1
- package/dist/tools/__tests__/untrusted-envelope.test.d.ts +0 -2
- package/dist/tools/__tests__/untrusted-envelope.test.d.ts.map +0 -1
- package/dist/tools/__tests__/untrusted-envelope.test.js +0 -71
- package/dist/tools/__tests__/untrusted-envelope.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/bash.proc-test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/bash.proc-test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/bash.proc-test.js +0 -115
- package/dist/tools/builtins/__tests__/bash.proc-test.js.map +0 -1
- package/dist/tools/builtins/__tests__/bash.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/bash.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/bash.test.js +0 -65
- package/dist/tools/builtins/__tests__/bash.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/computer-use.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/computer-use.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/computer-use.test.js +0 -156
- package/dist/tools/builtins/__tests__/computer-use.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/edit-commits-atomically.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/edit-commits-atomically.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/edit-commits-atomically.test.js +0 -78
- package/dist/tools/builtins/__tests__/edit-commits-atomically.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/edit-insert-reachable.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/edit-insert-reachable.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/edit-insert-reachable.test.js +0 -120
- package/dist/tools/builtins/__tests__/edit-insert-reachable.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/edit.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/edit.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/edit.test.js +0 -286
- package/dist/tools/builtins/__tests__/edit.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/payload-budget.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/payload-budget.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/payload-budget.test.js +0 -70
- package/dist/tools/builtins/__tests__/payload-budget.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/read-file.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/read-file.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/read-file.test.js +0 -55
- package/dist/tools/builtins/__tests__/read-file.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/stale-file-refusal.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/stale-file-refusal.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/stale-file-refusal.test.js +0 -187
- package/dist/tools/builtins/__tests__/stale-file-refusal.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/structuredOutput.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/structuredOutput.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/structuredOutput.test.js +0 -224
- package/dist/tools/builtins/__tests__/structuredOutput.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/verify-outputs.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/verify-outputs.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/verify-outputs.test.js +0 -52
- package/dist/tools/builtins/__tests__/verify-outputs.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/write-file.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/write-file.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/write-file.test.js +0 -133
- package/dist/tools/builtins/__tests__/write-file.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.js +0 -101
- package/dist/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.js +0 -139
- package/dist/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.js +0 -160
- package/dist/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/agent.test.d.ts +0 -15
- package/dist/tools/coordinator/__tests__/agent.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/agent.test.js +0 -147
- package/dist/tools/coordinator/__tests__/agent.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/allow-delegation.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/allow-delegation.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/allow-delegation.test.js +0 -94
- package/dist/tools/coordinator/__tests__/allow-delegation.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.js +0 -115
- package/dist/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/approve-plan.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/approve-plan.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/approve-plan.test.js +0 -129
- package/dist/tools/coordinator/__tests__/approve-plan.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/ask-user-question.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/ask-user-question.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/ask-user-question.test.js +0 -411
- package/dist/tools/coordinator/__tests__/ask-user-question.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/completion-delivery.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/completion-delivery.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/completion-delivery.test.js +0 -376
- package/dist/tools/coordinator/__tests__/completion-delivery.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/empty-roster.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/empty-roster.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/empty-roster.test.js +0 -97
- package/dist/tools/coordinator/__tests__/empty-roster.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/plan-dependencies.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/plan-dependencies.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/plan-dependencies.test.js +0 -126
- package/dist/tools/coordinator/__tests__/plan-dependencies.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/task-list.test.d.ts +0 -13
- package/dist/tools/coordinator/__tests__/task-list.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/task-list.test.js +0 -268
- package/dist/tools/coordinator/__tests__/task-list.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/the-plan-a-human-approves.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/the-plan-a-human-approves.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/the-plan-a-human-approves.test.js +0 -99
- package/dist/tools/coordinator/__tests__/the-plan-a-human-approves.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.js +0 -193
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.js.map +0 -1
- package/dist/types/common/__tests__/numeric-correctness.test.d.ts +0 -2
- package/dist/types/common/__tests__/numeric-correctness.test.d.ts.map +0 -1
- package/dist/types/common/__tests__/numeric-correctness.test.js +0 -108
- package/dist/types/common/__tests__/numeric-correctness.test.js.map +0 -1
- package/dist/types/common/usage-merge.test.d.ts +0 -2
- package/dist/types/common/usage-merge.test.d.ts.map +0 -1
- package/dist/types/common/usage-merge.test.js +0 -48
- package/dist/types/common/usage-merge.test.js.map +0 -1
- package/dist/types/errors/__tests__/catalog.test.d.ts +0 -2
- package/dist/types/errors/__tests__/catalog.test.d.ts.map +0 -1
- package/dist/types/errors/__tests__/catalog.test.js +0 -106
- package/dist/types/errors/__tests__/catalog.test.js.map +0 -1
- package/dist/types/errors/__tests__/errors.test.d.ts +0 -2
- package/dist/types/errors/__tests__/errors.test.d.ts.map +0 -1
- package/dist/types/errors/__tests__/errors.test.js +0 -104
- package/dist/types/errors/__tests__/errors.test.js.map +0 -1
- package/dist/types/invocation/__tests__/state.test.d.ts +0 -2
- package/dist/types/invocation/__tests__/state.test.d.ts.map +0 -1
- package/dist/types/invocation/__tests__/state.test.js +0 -174
- package/dist/types/invocation/__tests__/state.test.js.map +0 -1
- package/dist/types/provider/__tests__/cause-chain.test.d.ts +0 -2
- package/dist/types/provider/__tests__/cause-chain.test.d.ts.map +0 -1
- package/dist/types/provider/__tests__/cause-chain.test.js +0 -108
- package/dist/types/provider/__tests__/cause-chain.test.js.map +0 -1
- package/dist/types/provider/__tests__/declared-retryable.test.d.ts +0 -2
- package/dist/types/provider/__tests__/declared-retryable.test.d.ts.map +0 -1
- package/dist/types/provider/__tests__/declared-retryable.test.js +0 -70
- package/dist/types/provider/__tests__/declared-retryable.test.js.map +0 -1
- package/dist/types/provider/__tests__/overflow-classification.test.d.ts +0 -2
- package/dist/types/provider/__tests__/overflow-classification.test.d.ts.map +0 -1
- package/dist/types/provider/__tests__/overflow-classification.test.js +0 -80
- package/dist/types/provider/__tests__/overflow-classification.test.js.map +0 -1
- package/dist/types/run/__tests__/step.test.d.ts +0 -2
- package/dist/types/run/__tests__/step.test.d.ts.map +0 -1
- package/dist/types/run/__tests__/step.test.js +0 -107
- package/dist/types/run/__tests__/step.test.js.map +0 -1
- package/dist/utils/__tests__/abort-reason.test.d.ts +0 -2
- package/dist/utils/__tests__/abort-reason.test.d.ts.map +0 -1
- package/dist/utils/__tests__/abort-reason.test.js +0 -48
- package/dist/utils/__tests__/abort-reason.test.js.map +0 -1
- package/dist/utils/__tests__/atomic-write.test.d.ts +0 -2
- package/dist/utils/__tests__/atomic-write.test.d.ts.map +0 -1
- package/dist/utils/__tests__/atomic-write.test.js +0 -91
- package/dist/utils/__tests__/atomic-write.test.js.map +0 -1
- package/dist/utils/__tests__/shell-compress.test.d.ts +0 -2
- package/dist/utils/__tests__/shell-compress.test.d.ts.map +0 -1
- package/dist/utils/__tests__/shell-compress.test.js +0 -41
- package/dist/utils/__tests__/shell-compress.test.js.map +0 -1
- package/dist/vault/instrumentation.test.d.ts +0 -2
- package/dist/vault/instrumentation.test.d.ts.map +0 -1
- package/dist/vault/instrumentation.test.js +0 -80
- package/dist/vault/instrumentation.test.js.map +0 -1
- package/dist/verification/__tests__/argument-pattern.test.d.ts +0 -2
- package/dist/verification/__tests__/argument-pattern.test.d.ts.map +0 -1
- package/dist/verification/__tests__/argument-pattern.test.js +0 -122
- package/dist/verification/__tests__/argument-pattern.test.js.map +0 -1
- package/dist/verification/__tests__/rule-order-and-reason.test.d.ts +0 -2
- package/dist/verification/__tests__/rule-order-and-reason.test.d.ts.map +0 -1
- package/dist/verification/__tests__/rule-order-and-reason.test.js +0 -126
- package/dist/verification/__tests__/rule-order-and-reason.test.js.map +0 -1
- package/dist/verification/presets.test.d.ts +0 -16
- package/dist/verification/presets.test.d.ts.map +0 -1
- package/dist/verification/presets.test.js +0 -79
- package/dist/verification/presets.test.js.map +0 -1
- package/src/__tests__/default-path-conformance.test.ts +0 -306
- package/src/__tests__/replay-public-surface.test.ts +0 -54
- package/src/__tests__/shipped-defaults.test.ts +0 -111
- package/src/advisory/__tests__/budget-enforcement.test.ts +0 -208
- package/src/advisory/__tests__/consultation-context.test.ts +0 -191
- package/src/advisory/__tests__/structured-response.test.ts +0 -128
- package/src/advisory/context.test.ts +0 -109
- package/src/advisory/evaluator.test.ts +0 -192
- package/src/advisory/executor.test.ts +0 -301
- package/src/advisory/registry.test.ts +0 -75
- package/src/agents/__tests__/a-policy-nobody-can-select.test.ts +0 -202
- package/src/agents/__tests__/idempotency-key.test.ts +0 -177
- package/src/agents/__tests__/invocation-lock.test.ts +0 -154
- package/src/agents/__tests__/lock.test.ts +0 -158
- package/src/agents/__tests__/reachability.test.ts +0 -224
- package/src/agents/__tests__/run-agent-forwarding.test.ts +0 -85
- package/src/agents/__tests__/run-agent.test.ts +0 -165
- package/src/agents/__tests__/run-completed-stop-reason.test.ts +0 -59
- package/src/agents/__tests__/supervisor-coordinator-registration.test.ts +0 -185
- package/src/agents/__tests__/supervisor-hands-down-hitl.test.ts +0 -131
- package/src/agents/__tests__/supervisor-inbox-scope.test.ts +0 -149
- package/src/agents/__tests__/supervisor-ledger.test.ts +0 -185
- package/src/bridge/a2a/__tests__/project-is-the-a2a-context.test.ts +0 -66
- package/src/bridge/a2a/agent-card.test.ts +0 -140
- package/src/bridge/a2a/late-events.test.ts +0 -84
- package/src/bridge/a2a/mapper.test.ts +0 -319
- package/src/bridge/a2a/message.test.ts +0 -138
- package/src/bridge/a2a/task.test.ts +0 -235
- package/src/bridge/mcp/connector/adapter.test.ts +0 -230
- package/src/bridge/sse/late-events.test.ts +0 -182
- package/src/bridge/sse/mapper.test.ts +0 -550
- package/src/bridge/tools/connector/adapter.test.ts +0 -224
- package/src/bridge/tools/connector/definitions.test.ts +0 -183
- package/src/bridge/tools/connector/router.test.ts +0 -159
- package/src/bus/breaker.test.ts +0 -274
- package/src/bus/index.test.ts +0 -183
- package/src/bus/lock.test.ts +0 -265
- package/src/bus/ownership.test.ts +0 -243
- package/src/compaction/__tests__/SlidingWindowManager.test.ts +0 -139
- package/src/compaction/__tests__/cleared-result-recovery.test.ts +0 -118
- package/src/compaction/__tests__/context-reducer.test.ts +0 -239
- package/src/compaction/__tests__/context-window.test.ts +0 -77
- package/src/compaction/__tests__/dangling.test.ts +0 -457
- package/src/compaction/__tests__/factory.test.ts +0 -53
- package/src/compaction/__tests__/lossiness.test.ts +0 -187
- package/src/compaction/__tests__/state-across-resume.test.ts +0 -99
- package/src/compaction/__tests__/tool-result-editing.test.ts +0 -213
- package/src/compaction/__tests__/trim-opens-on-user.test.ts +0 -118
- package/src/compaction/__tests__/verifier-empty-reply.test.ts +0 -96
- package/src/compaction/__tests__/verifier-model.test.ts +0 -83
- package/src/config/__tests__/compaction-budget-schema.test.ts +0 -114
- package/src/connector/BaseConnector.test.ts +0 -130
- package/src/connector/builtins/__tests__/oauth2-auth.test.ts +0 -73
- package/src/connector/builtins/http.test.ts +0 -329
- package/src/connector/builtins/webhook.test.ts +0 -159
- package/src/connector/execution/factory.test.ts +0 -75
- package/src/connector/execution/remote.test.ts +0 -63
- package/src/connector/mcp/__tests__/a-close-that-means-closed.test.ts +0 -119
- package/src/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.ts +0 -127
- package/src/connector/mcp/__tests__/discovery-policy.test.ts +0 -133
- package/src/connector/mcp/__tests__/list-pagination.test.ts +0 -98
- package/src/connector/mcp/__tests__/policy.test.ts +0 -100
- package/src/connector/mcp/__tests__/positional-arrays.test.ts +0 -183
- package/src/connector/mcp/__tests__/prompt-as-tool.test.ts +0 -157
- package/src/connector/mcp/__tests__/prompts-and-lifecycle.test.ts +0 -286
- package/src/connector/mcp/__tests__/protocol-negotiation.test.ts +0 -105
- package/src/connector/mcp/__tests__/schema-fidelity.test.ts +0 -250
- package/src/connector/mcp/__tests__/structured-result.test.ts +0 -143
- package/src/connector/mcp/adapter.test.ts +0 -249
- package/src/connector/mcp/client.test.ts +0 -159
- package/src/connector/mcp/streamable-http.test.ts +0 -169
- package/src/constants/tools/__tests__/dangerous-patterns.test.ts +0 -62
- package/src/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.ts +0 -84
- package/src/directory/__tests__/derive.test.ts +0 -135
- package/src/directory/__tests__/load-diagnostics.test.ts +0 -126
- package/src/directory/__tests__/load-directory.test.ts +0 -243
- package/src/directory/__tests__/subagents.test.ts +0 -155
- package/src/directory/__tests__/supervisor-budget.test.ts +0 -117
- package/src/eval/__tests__/case-deadline.test.ts +0 -147
- package/src/eval/__tests__/end-to-end.test.ts +0 -259
- package/src/eval/__tests__/harness-honesty.test.ts +0 -99
- package/src/eval/__tests__/harness.test.ts +0 -249
- package/src/eval/__tests__/judge.test.ts +0 -306
- package/src/eval/__tests__/scorer-gates.test.ts +0 -156
- package/src/execution/local.test.ts +0 -46
- package/src/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.ts +0 -130
- package/src/gateway/__tests__/a-knob-nobody-can-turn.test.ts +0 -139
- package/src/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.ts +0 -175
- package/src/gateway/__tests__/completion-inbox.test.ts +0 -689
- package/src/gateway/__tests__/list-survives-eviction.test.ts +0 -124
- package/src/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.ts +0 -118
- package/src/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.ts +0 -196
- package/src/manager/agent/__tests__/depth-limit-authority.test.ts +0 -74
- package/src/manager/agent/__tests__/dispose-cancels.test.ts +0 -104
- package/src/manager/agent/__tests__/hitl-across-spawn.test.ts +0 -273
- package/src/manager/agent/__tests__/lifecycle.test.ts +0 -844
- package/src/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.ts +0 -88
- package/src/manager/project/__tests__/a-closed-workspace-takes-no-work.test.ts +0 -314
- package/src/manager/thread/__tests__/lifecycle.test.ts +0 -286
- package/src/plugin/__tests__/discovery-scopes.test.ts +0 -133
- package/src/plugin/__tests__/enable-contributions.test.ts +0 -299
- package/src/plugin/__tests__/hook-ordering.test.ts +0 -252
- package/src/plugin/__tests__/install-time-refusal.test.ts +0 -68
- package/src/plugin/__tests__/lifecycle.test.ts +0 -496
- package/src/plugin/__tests__/mcp-admission.test.ts +0 -286
- package/src/plugin/__tests__/path-containment.test.ts +0 -107
- package/src/probe/registry.test.ts +0 -523
- package/src/provider/__tests__/errors.test.ts +0 -85
- package/src/provider/__tests__/mock-script.test.ts +0 -179
- package/src/provider/__tests__/model-version.test.ts +0 -93
- package/src/provider/__tests__/registry.test.ts +0 -420
- package/src/provider/__tests__/retry-visibility.test.ts +0 -160
- package/src/provider/__tests__/retry.test.ts +0 -296
- package/src/provider/__tests__/strict-schema.test.ts +0 -189
- package/src/provider/__tests__/thinking-support.test.ts +0 -60
- package/src/provider/__tests__/typed-error-classification.test.ts +0 -143
- package/src/provider/__tests__/vendor-detail.test.ts +0 -107
- package/src/provider/collect.test.ts +0 -142
- package/src/provider/instrumentation.test.ts +0 -173
- package/src/rag/__tests__/namespace-isolation.test.ts +0 -109
- package/src/rag/__tests__/retrieval-math.test.ts +0 -54
- package/src/rag/chunking.test.ts +0 -107
- package/src/rag/context-assembler.test.ts +0 -114
- package/src/rag/embedding.test.ts +0 -185
- package/src/rag/ingestion.test.ts +0 -114
- package/src/rag/knowledge-base.test.ts +0 -106
- package/src/rag/rag-tool.test.ts +0 -167
- package/src/rag/retriever.test.ts +0 -210
- package/src/rag/vector-store.test.ts +0 -196
- package/src/registry/ManagedRegistry.test.ts +0 -118
- package/src/registry/Registry.test.ts +0 -91
- package/src/registry/agent/definitions.test.ts +0 -100
- package/src/registry/connector/definitions.test.ts +0 -51
- package/src/registry/connector/scoped.test.ts +0 -129
- package/src/registry/plugin/index.test.ts +0 -85
- package/src/registry/tool/__tests__/dialect.test.ts +0 -200
- package/src/registry/tool/__tests__/schema.test.ts +0 -208
- package/src/registry/tool/__tests__/strict-registration.test.ts +0 -115
- package/src/registry/tool/__tests__/tool-name-validation.test.ts +0 -88
- package/src/registry/tool/execute.test.ts +0 -648
- package/src/registry/toolset/catalog.test.ts +0 -282
- package/src/run/LimitChecker.test.ts +0 -32
- package/src/runtime/bidi/__tests__/session.test.ts +0 -232
- package/src/runtime/decision/parser.test.ts +0 -46
- package/src/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.ts +0 -109
- package/src/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.ts +0 -122
- package/src/runtime/query/__tests__/answer-review.test.ts +0 -172
- package/src/runtime/query/__tests__/capability-negotiation.test.ts +0 -301
- package/src/runtime/query/__tests__/checkpoint-store.test.ts +0 -285
- package/src/runtime/query/__tests__/checkpoint.test.ts +0 -170
- package/src/runtime/query/__tests__/citations.test.ts +0 -111
- package/src/runtime/query/__tests__/completion-does-not-erase-the-answer.test.ts +0 -163
- package/src/runtime/query/__tests__/completion-notification.test.ts +0 -648
- package/src/runtime/query/__tests__/content-budget.test.ts +0 -83
- package/src/runtime/query/__tests__/context-size-on-the-wire.test.ts +0 -122
- package/src/runtime/query/__tests__/context.test.ts +0 -127
- package/src/runtime/query/__tests__/deferred-tools.test.ts +0 -216
- package/src/runtime/query/__tests__/delegation-resume.test.ts +0 -159
- package/src/runtime/query/__tests__/document-attachments.test.ts +0 -125
- package/src/runtime/query/__tests__/durable-park-and-trace.test.ts +0 -245
- package/src/runtime/query/__tests__/durable-question-park.test.ts +0 -305
- package/src/runtime/query/__tests__/durable-run-state.test.ts +0 -194
- package/src/runtime/query/__tests__/effort-reaches-the-wire.test.ts +0 -135
- package/src/runtime/query/__tests__/executor-concurrency.test.ts +0 -122
- package/src/runtime/query/__tests__/executor-plugin-hooks.test.ts +0 -354
- package/src/runtime/query/__tests__/finish-reason-vs-tool-calls.test.ts +0 -206
- package/src/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.ts +0 -115
- package/src/runtime/query/__tests__/guardrails-e2e.test.ts +0 -164
- package/src/runtime/query/__tests__/guardrails.test.ts +0 -236
- package/src/runtime/query/__tests__/hook-model-visibility.test.ts +0 -143
- package/src/runtime/query/__tests__/long-document-flow.test.ts +0 -187
- package/src/runtime/query/__tests__/memory-promotion.test.ts +0 -148
- package/src/runtime/query/__tests__/orphan-task-turn-end.test.ts +0 -101
- package/src/runtime/query/__tests__/overflow-relief.test.ts +0 -139
- package/src/runtime/query/__tests__/partial-batch-resume.test.ts +0 -264
- package/src/runtime/query/__tests__/per-step-skills.test.ts +0 -154
- package/src/runtime/query/__tests__/per-step-tool-choice.test.ts +0 -180
- package/src/runtime/query/__tests__/plugin-hooks.test.ts +0 -27
- package/src/runtime/query/__tests__/prepare-step-chain.test.ts +0 -127
- package/src/runtime/query/__tests__/prepare-step.test.ts +0 -233
- package/src/runtime/query/__tests__/probe-veto-is-error.test.ts +0 -145
- package/src/runtime/query/__tests__/prompt.test.ts +0 -91
- package/src/runtime/query/__tests__/provider-fault-pauses.test.ts +0 -104
- package/src/runtime/query/__tests__/reasoning-stream.test.ts +0 -177
- package/src/runtime/query/__tests__/recoverable-settle.test.ts +0 -145
- package/src/runtime/query/__tests__/resume-budget.test.ts +0 -158
- package/src/runtime/query/__tests__/resume-pending.test.ts +0 -273
- package/src/runtime/query/__tests__/resume-run.test.ts +0 -262
- package/src/runtime/query/__tests__/rich-content-budget-wiring.test.ts +0 -109
- package/src/runtime/query/__tests__/run-survives-its-own-park.proc-test.ts +0 -127
- package/src/runtime/query/__tests__/steering-reaches-the-model.test.ts +0 -117
- package/src/runtime/query/__tests__/steering.test.ts +0 -121
- package/src/runtime/query/__tests__/step-allow-list.test.ts +0 -205
- package/src/runtime/query/__tests__/stop-condition.test.ts +0 -265
- package/src/runtime/query/__tests__/stream-recovery.test.ts +0 -230
- package/src/runtime/query/__tests__/structured-output.test.ts +0 -268
- package/src/runtime/query/__tests__/structured-run-failure.test.ts +0 -144
- package/src/runtime/query/__tests__/terminal-tool.test.ts +0 -148
- package/src/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.ts +0 -95
- package/src/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.ts +0 -79
- package/src/runtime/query/__tests__/tool-grants.test.ts +0 -102
- package/src/runtime/query/__tests__/tool-output-budget.test.ts +0 -0
- package/src/runtime/query/__tests__/tool-pause.test.ts +0 -209
- package/src/runtime/query/__tests__/tool-progress.test.ts +0 -154
- package/src/runtime/query/__tests__/tool-repair-retry.test.ts +0 -255
- package/src/runtime/query/__tests__/tool-result-wire.test.ts +0 -135
- package/src/runtime/query/__tests__/tool-timeout.test.ts +0 -268
- package/src/runtime/query/__tests__/trace-parenting.test.ts +0 -128
- package/src/runtime/query/__tests__/wiring-seams.test.ts +0 -288
- package/src/runtime/query/iteration/__tests__/cancel-settles-turn.test.ts +0 -177
- package/src/runtime/query/iteration/__tests__/settle-grace.test.ts +0 -265
- package/src/runtime/query/iteration/phases/__tests__/compaction-declined.test.ts +0 -124
- package/src/runtime/query/iteration/phases/advisory.test.ts +0 -415
- package/src/runtime/query/iteration/phases/compaction-model-routing.test.ts +0 -125
- package/src/runtime/query/iteration/phases/compaction-safe-cut.test.ts +0 -188
- package/src/runtime/query/iteration/phases/context-measurement.test.ts +0 -196
- package/src/runtime/query/iteration/phases/context-reducer-dispatch.test.ts +0 -238
- package/src/runtime/query/iteration/phases/hitl-abort-race.test.ts +0 -86
- package/src/runtime/query/iteration/phases/hitl-answer-question.test.ts +0 -141
- package/src/runtime/query/iteration/phases/overflow-escalation.test.ts +0 -167
- package/src/runtime/query/iteration/phases/retained-messages.test.ts +0 -226
- package/src/runtime/query/iteration/phases/tool-review-denials.test.ts +0 -270
- package/src/runtime/query/iteration/phases/working-memory-compaction.test.ts +0 -227
- package/src/runtime/query/replay/__tests__/mutate.test.ts +0 -134
- package/src/runtime/query/replay/__tests__/prepare.test.ts +0 -207
- package/src/sandbox/__tests__/exec-cancellation.test.ts +0 -72
- package/src/sandbox/__tests__/isolation.test.ts +0 -164
- package/src/sandbox/__tests__/output-truncation.test.ts +0 -106
- package/src/sandbox/__tests__/resource-limits.test.ts +0 -106
- package/src/session/__tests__/integration/_fixtures.ts +0 -310
- package/src/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.ts +0 -270
- package/src/session/__tests__/integration/archive-gate.test.ts +0 -288
- package/src/session/__tests__/integration/capacity-caps.test.ts +0 -171
- package/src/session/__tests__/integration/e2e-spawn.test.ts +0 -296
- package/src/session/__tests__/integration/event-stream-ordering.test.ts +0 -410
- package/src/session/__tests__/integration/handoff-broadcast-e2e.test.ts +0 -271
- package/src/session/__tests__/integration/handoff-illegal-transition.test.ts +0 -214
- package/src/session/__tests__/integration/handoff-single-e2e.test.ts +0 -260
- package/src/session/__tests__/integration/hierarchy-lifecycle.test.ts +0 -240
- package/src/session/__tests__/integration/migration-filesystem.test.ts +0 -209
- package/src/session/__tests__/integration/migration-id-prefix.test.ts +0 -101
- package/src/session/__tests__/integration/prev-artifact-dag.test.ts +0 -328
- package/src/session/__tests__/integration/retention-archive.test.ts +0 -233
- package/src/session/__tests__/integration/spawn-rollback.test.ts +0 -313
- package/src/session/__tests__/integration/summary-materialization-e2e.test.ts +0 -239
- package/src/session/__tests__/integration/tenant-isolation.test.ts +0 -292
- package/src/session/handoff/__tests__/broadcast.test.ts +0 -378
- package/src/session/handoff/__tests__/capacity.test.ts +0 -129
- package/src/session/handoff/__tests__/single.test.ts +0 -333
- package/src/session/intervention/__tests__/prev-artifact.test.ts +0 -237
- package/src/session/migration/__tests__/a-migrated-project-id-is-an-id.test.ts +0 -92
- package/src/session/migration/__tests__/filesystem.test.ts +0 -270
- package/src/session/migration/__tests__/id-prefix.test.ts +0 -101
- package/src/session/migration/__tests__/marker.test.ts +0 -84
- package/src/session/retention/__tests__/archive.test.ts +0 -318
- package/src/session/retention/__tests__/disk-backend.test.ts +0 -180
- package/src/session/status/__tests__/derive.test.ts +0 -101
- package/src/session/summary/__tests__/materialize.test.ts +0 -340
- package/src/session/workspace/__tests__/git-worktree.test.ts +0 -262
- package/src/session/workspace/__tests__/path-builder.test.ts +0 -51
- package/src/session/workspace/__tests__/shared-run.test.ts +0 -199
- package/src/skills/__tests__/frontmatter.test.ts +0 -135
- package/src/skills/loader.test.ts +0 -89
- package/src/store/__tests__/checkpoint-integrity.test.ts +0 -134
- package/src/store/__tests__/checkpoint-versioning.test.ts +0 -194
- package/src/store/__tests__/schema-adoption.test.ts +0 -118
- package/src/store/__tests__/schema.test.ts +0 -119
- package/src/store/session/__tests__/a-session-has-one-writer.test.ts +0 -116
- package/src/store/session/__tests__/a-workspace-can-be-configured.test.ts +0 -210
- package/src/store/session/__tests__/disk.test.ts +0 -397
- package/src/store/session/__tests__/memory.test.ts +0 -402
- package/src/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.ts +0 -115
- package/src/store/task/__tests__/disk-concurrency.test.ts +0 -118
- package/src/store/task/__tests__/lookup-across-runs.test.ts +0 -77
- package/src/streaming/coalesce.test.ts +0 -132
- package/src/telemetry/__tests__/latency-instruments.test.ts +0 -120
- package/src/telemetry/__tests__/metrics.test.ts +0 -160
- package/src/telemetry/__tests__/model-call-span.test.ts +0 -212
- package/src/telemetry/__tests__/span-closure.test.ts +0 -160
- package/src/telemetry/__tests__/span-hierarchy.test.ts +0 -94
- package/src/test-setup.ts +0 -24
- package/src/tools/__tests__/file-tool-containment.test.ts +0 -190
- package/src/tools/__tests__/path-containment.test.ts +0 -167
- package/src/tools/__tests__/posix-path.test.ts +0 -83
- package/src/tools/__tests__/sandboxed-search.test.ts +0 -206
- package/src/tools/__tests__/untrusted-envelope.test.ts +0 -105
- package/src/tools/builtins/__tests__/bash.proc-test.ts +0 -142
- package/src/tools/builtins/__tests__/bash.test.ts +0 -79
- package/src/tools/builtins/__tests__/computer-use.test.ts +0 -201
- package/src/tools/builtins/__tests__/edit-commits-atomically.test.ts +0 -103
- package/src/tools/builtins/__tests__/edit-insert-reachable.test.ts +0 -172
- package/src/tools/builtins/__tests__/edit.test.ts +0 -388
- package/src/tools/builtins/__tests__/payload-budget.test.ts +0 -92
- package/src/tools/builtins/__tests__/read-file.test.ts +0 -71
- package/src/tools/builtins/__tests__/stale-file-refusal.test.ts +0 -258
- package/src/tools/builtins/__tests__/structuredOutput.test.ts +0 -275
- package/src/tools/builtins/__tests__/verify-outputs.test.ts +0 -71
- package/src/tools/builtins/__tests__/write-file.test.ts +0 -177
- package/src/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.ts +0 -133
- package/src/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.ts +0 -171
- package/src/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.ts +0 -215
- package/src/tools/coordinator/__tests__/agent.test.ts +0 -177
- package/src/tools/coordinator/__tests__/allow-delegation.test.ts +0 -120
- package/src/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.ts +0 -153
- package/src/tools/coordinator/__tests__/approve-plan.test.ts +0 -160
- package/src/tools/coordinator/__tests__/ask-user-question.test.ts +0 -496
- package/src/tools/coordinator/__tests__/completion-delivery.test.ts +0 -501
- package/src/tools/coordinator/__tests__/empty-roster.test.ts +0 -118
- package/src/tools/coordinator/__tests__/plan-dependencies.test.ts +0 -186
- package/src/tools/coordinator/__tests__/task-list.test.ts +0 -303
- package/src/tools/coordinator/__tests__/the-plan-a-human-approves.test.ts +0 -121
- package/src/tools/coordinator/__tests__/wait-with-idle-bound.test.ts +0 -247
- package/src/types/common/__tests__/numeric-correctness.test.ts +0 -123
- package/src/types/common/usage-merge.test.ts +0 -53
- package/src/types/errors/__tests__/catalog.test.ts +0 -130
- package/src/types/errors/__tests__/errors.test.ts +0 -118
- package/src/types/invocation/__tests__/state.test.ts +0 -218
- package/src/types/provider/__tests__/cause-chain.test.ts +0 -132
- package/src/types/provider/__tests__/declared-retryable.test.ts +0 -85
- package/src/types/provider/__tests__/overflow-classification.test.ts +0 -113
- package/src/types/run/__tests__/step.test.ts +0 -123
- package/src/utils/__tests__/abort-reason.test.ts +0 -56
- package/src/utils/__tests__/atomic-write.test.ts +0 -108
- package/src/utils/__tests__/shell-compress.test.ts +0 -49
- package/src/vault/instrumentation.test.ts +0 -98
- package/src/verification/__tests__/argument-pattern.test.ts +0 -158
- package/src/verification/__tests__/rule-order-and-reason.test.ts +0 -149
- package/src/verification/presets.test.ts +0 -112
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import { assertThinkingUnsupported } from '../thinking-support.js'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* `thinking` sits on `ChatCompletionParams`, so every driver accepts it. Six
|
|
7
|
-
* of the seven in this repo did not implement it, and five of those six simply
|
|
8
|
-
* dropped the field: the caller got an ordinary completion with an empty
|
|
9
|
-
* `reasoning` array, indistinguishable from a model that chose not to reason.
|
|
10
|
-
*
|
|
11
|
-
* One driver already refused instead, with the reasoning written out. The rule
|
|
12
|
-
* was decided once and applied once — so it moved here, where a new driver
|
|
13
|
-
* inherits it rather than re-deciding it.
|
|
14
|
-
*/
|
|
15
|
-
describe('a driver that cannot think says so', () => {
|
|
16
|
-
it('refuses a manual thinking request', () => {
|
|
17
|
-
expect(() =>
|
|
18
|
-
assertThinkingUnsupported('TestProvider', { thinking: { type: 'enabled' } }),
|
|
19
|
-
).toThrow(/TestProvider does not implement thinking/)
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
it('refuses an adaptive one too', () => {
|
|
23
|
-
// Both are a request to think. Refusing one and dropping the other
|
|
24
|
-
// would leave exactly the silence this exists to remove.
|
|
25
|
-
expect(() =>
|
|
26
|
-
assertThinkingUnsupported('TestProvider', { thinking: { type: 'adaptive' } }),
|
|
27
|
-
).toThrow(/does not implement thinking/)
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
it('names the driver, not just the problem', () => {
|
|
31
|
-
// In a multi-provider setup this is the difference between a bug
|
|
32
|
-
// report about the model and a one-line config fix.
|
|
33
|
-
expect(() =>
|
|
34
|
-
assertThinkingUnsupported('BedrockProvider', { thinking: { type: 'adaptive' } }),
|
|
35
|
-
).toThrow(/BedrockProvider/)
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
it('says what silence would have looked like', () => {
|
|
39
|
-
let message = ''
|
|
40
|
-
try {
|
|
41
|
-
assertThinkingUnsupported('TestProvider', { thinking: { type: 'enabled' } })
|
|
42
|
-
} catch (err) {
|
|
43
|
-
message = (err as Error).message
|
|
44
|
-
}
|
|
45
|
-
expect(message).toContain('empty reasoning list')
|
|
46
|
-
expect(message).toContain('Drop `thinking`')
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
it('honours an explicit disable as a no-op', () => {
|
|
50
|
-
// A config shared across providers that says "do not think" should not
|
|
51
|
-
// fail on the ones that were never going to.
|
|
52
|
-
expect(() =>
|
|
53
|
-
assertThinkingUnsupported('TestProvider', { thinking: { type: 'disabled' } }),
|
|
54
|
-
).not.toThrow()
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
it('does nothing when the caller said nothing', () => {
|
|
58
|
-
expect(() => assertThinkingUnsupported('TestProvider', {})).not.toThrow()
|
|
59
|
-
})
|
|
60
|
-
})
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import { classifyProviderError } from '../../types/provider/errors.js'
|
|
4
|
-
import type { LLMProvider, StreamChunk } from '../../types/provider/index.js'
|
|
5
|
-
import { ProviderRequestError } from '../errors.js'
|
|
6
|
-
import { withProviderRetry } from '../retry.js'
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A driver that classified its own failure was coming out WORSE than one that
|
|
10
|
-
* did not, in two independent places, and both shipped.
|
|
11
|
-
*
|
|
12
|
-
* `classifyProviderError` never read `kind`. A `ProviderRequestError` fell
|
|
13
|
-
* through to the status heuristics, where a carefully-diagnosed
|
|
14
|
-
* `context_overflow` carrying a 400 became `invalid_request` — so the run
|
|
15
|
-
* loop's overflow branch, which tests for `context_length_exceeded`, could
|
|
16
|
-
* never fire for a first-party driver, and compaction relief was unreachable
|
|
17
|
-
* for exactly the drivers that had diagnosed the problem correctly.
|
|
18
|
-
*
|
|
19
|
-
* And `withProviderRetry` rethrew any such error before the retry loop. Its
|
|
20
|
-
* comment justified preserving the classification, which is right; the code
|
|
21
|
-
* also skipped retrying, which is a different decision that nobody made.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
function providerThatFails(err: unknown): { provider: LLMProvider; calls: () => number } {
|
|
25
|
-
let calls = 0
|
|
26
|
-
const provider = {
|
|
27
|
-
id: 'test',
|
|
28
|
-
name: 'Test',
|
|
29
|
-
async *chatStream(): AsyncIterable<StreamChunk> {
|
|
30
|
-
calls++
|
|
31
|
-
throw err
|
|
32
|
-
// biome-ignore lint/correctness/useYield: it fails before producing anything
|
|
33
|
-
},
|
|
34
|
-
} as unknown as LLMProvider
|
|
35
|
-
return { provider, calls: () => calls }
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const typed = (kind: string, status: number) =>
|
|
39
|
-
new ProviderRequestError({ kind, providerId: 'test', status, message: `a ${kind}` } as never)
|
|
40
|
-
|
|
41
|
-
describe('a driver that classified its own failure is believed', () => {
|
|
42
|
-
const cases: readonly [string, number, string, boolean][] = [
|
|
43
|
-
['throttle', 429, 'rate_limit', true],
|
|
44
|
-
['server', 500, 'server_error', true],
|
|
45
|
-
['network', 0, 'network', true],
|
|
46
|
-
['auth', 401, 'auth', false],
|
|
47
|
-
['bad_request', 400, 'invalid_request', false],
|
|
48
|
-
// The one that mattered most: a 400 whose kind says the prompt was too
|
|
49
|
-
// long is not a bad request, and the difference decides whether the
|
|
50
|
-
// kernel reaches for compaction.
|
|
51
|
-
['context_overflow', 400, 'context_length_exceeded', false],
|
|
52
|
-
]
|
|
53
|
-
|
|
54
|
-
for (const [kind, status, code, retryable] of cases) {
|
|
55
|
-
it(`maps kind "${kind}" to ${code}`, () => {
|
|
56
|
-
const classified = classifyProviderError(typed(kind, status), 'test')
|
|
57
|
-
expect(classified.code).toBe(code)
|
|
58
|
-
expect(classified.retryable).toBe(retryable)
|
|
59
|
-
})
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
it('keeps the driver-supplied status and provider id', () => {
|
|
63
|
-
const classified = classifyProviderError(typed('throttle', 429), 'other')
|
|
64
|
-
expect(classified.status).toBe(429)
|
|
65
|
-
expect(classified.providerId).toBe('test')
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
describe('a classified failure still goes through the retry loop', () => {
|
|
70
|
-
it('retries a typed throttle', async () => {
|
|
71
|
-
// This is the regression: a first-party driver reporting a 429 as
|
|
72
|
-
// `kind: 'throttle'` used to get exactly one attempt, while the same
|
|
73
|
-
// failure from a driver that classified nothing got the full backoff.
|
|
74
|
-
const { provider, calls } = providerThatFails(typed('throttle', 429))
|
|
75
|
-
const wrapped = withProviderRetry(provider, {
|
|
76
|
-
config: { maxRetries: 2 },
|
|
77
|
-
sleepFn: async () => {},
|
|
78
|
-
random: () => 0,
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
await expect(async () => {
|
|
82
|
-
for await (const _ of wrapped.chatStream({} as never)) {
|
|
83
|
-
// drain
|
|
84
|
-
}
|
|
85
|
-
}).rejects.toThrow()
|
|
86
|
-
|
|
87
|
-
expect(calls()).toBe(3)
|
|
88
|
-
})
|
|
89
|
-
|
|
90
|
-
it('does not retry a typed auth failure', async () => {
|
|
91
|
-
const { provider, calls } = providerThatFails(typed('auth', 401))
|
|
92
|
-
const wrapped = withProviderRetry(provider, {
|
|
93
|
-
config: { maxRetries: 2 },
|
|
94
|
-
sleepFn: async () => {},
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
await expect(async () => {
|
|
98
|
-
for await (const _ of wrapped.chatStream({} as never)) {
|
|
99
|
-
// drain
|
|
100
|
-
}
|
|
101
|
-
}).rejects.toThrow()
|
|
102
|
-
|
|
103
|
-
expect(calls()).toBe(1)
|
|
104
|
-
})
|
|
105
|
-
|
|
106
|
-
it('does not retry a typed context overflow', async () => {
|
|
107
|
-
// Correctly non-retryable — an identical prompt overflows identically.
|
|
108
|
-
// The remedy is compaction, which the run loop reaches for once the
|
|
109
|
-
// code is `context_length_exceeded`.
|
|
110
|
-
const { provider, calls } = providerThatFails(typed('context_overflow', 400))
|
|
111
|
-
const wrapped = withProviderRetry(provider, {
|
|
112
|
-
config: { maxRetries: 2 },
|
|
113
|
-
sleepFn: async () => {},
|
|
114
|
-
})
|
|
115
|
-
|
|
116
|
-
await expect(async () => {
|
|
117
|
-
for await (const _ of wrapped.chatStream({} as never)) {
|
|
118
|
-
// drain
|
|
119
|
-
}
|
|
120
|
-
// The ORIGINAL escapes, so the boundary still sees the driver's
|
|
121
|
-
// own kind rather than a wrapper's code.
|
|
122
|
-
}).rejects.toMatchObject({ kind: 'context_overflow', status: 400 })
|
|
123
|
-
|
|
124
|
-
expect(calls()).toBe(1)
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
it('leaves an abort alone', async () => {
|
|
128
|
-
const abort = Object.assign(new Error('aborted'), { name: 'AbortError' })
|
|
129
|
-
const { provider, calls } = providerThatFails(abort)
|
|
130
|
-
const wrapped = withProviderRetry(provider, {
|
|
131
|
-
config: { maxRetries: 2 },
|
|
132
|
-
sleepFn: async () => {},
|
|
133
|
-
})
|
|
134
|
-
|
|
135
|
-
await expect(async () => {
|
|
136
|
-
for await (const _ of wrapped.chatStream({} as never)) {
|
|
137
|
-
// drain
|
|
138
|
-
}
|
|
139
|
-
}).rejects.toThrow(/aborted/)
|
|
140
|
-
|
|
141
|
-
expect(calls()).toBe(1)
|
|
142
|
-
})
|
|
143
|
-
})
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import { providerHttpError, redactSecrets, vendorDetail } from '../errors.js'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The provider's own account of what was wrong, kept — and scrubbed.
|
|
7
|
-
*
|
|
8
|
-
* `ProviderRequestErrorInit` declared `detail` from the beginning and the
|
|
9
|
-
* constructor never read it, so the field existed and carried nothing. The
|
|
10
|
-
* body was read to classify and then dropped, deliberately, because an error
|
|
11
|
-
* body can echo a request and a request can carry a key.
|
|
12
|
-
*
|
|
13
|
-
* The cost of that trade showed up in production: the wire had been saying
|
|
14
|
-
* `tools.0.custom.input_schema: … must match JSON Schema draft 2020-12` and
|
|
15
|
-
* the SDK deleted the sentence, so diagnosing it took seven eliminated
|
|
16
|
-
* hypotheses and a day of downtime. Keeping the sentence and scrubbing the
|
|
17
|
-
* credential shapes is the trade that was actually available.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
describe('the sentence that names the broken field survives', () => {
|
|
21
|
-
it('lifts the structured message out of a vendor body', () => {
|
|
22
|
-
const body = JSON.stringify({
|
|
23
|
-
type: 'error',
|
|
24
|
-
error: {
|
|
25
|
-
type: 'invalid_request_error',
|
|
26
|
-
message:
|
|
27
|
-
'tools.0.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12',
|
|
28
|
-
},
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
expect(vendorDetail(body)).toBe(
|
|
32
|
-
'tools.0.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12',
|
|
33
|
-
)
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
it('reaches the error a caller actually catches', () => {
|
|
37
|
-
const err = providerHttpError({
|
|
38
|
-
providerId: 'anthropic',
|
|
39
|
-
status: 400,
|
|
40
|
-
body: JSON.stringify({ error: { message: "Schema type 'oneOf' is not supported" } }),
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
expect(err.detail).toContain('oneOf')
|
|
44
|
-
// …and the message too, so a log line that prints only the message is
|
|
45
|
-
// still enough to act on.
|
|
46
|
-
expect(err.message).toContain('oneOf')
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
it('falls back to the raw text when the body is not JSON', () => {
|
|
50
|
-
expect(vendorDetail('upstream connect error, transport failure')).toBe(
|
|
51
|
-
'upstream connect error, transport failure',
|
|
52
|
-
)
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
it('says nothing rather than something empty', () => {
|
|
56
|
-
expect(vendorDetail(undefined)).toBeUndefined()
|
|
57
|
-
expect(vendorDetail(null)).toBeUndefined()
|
|
58
|
-
expect(vendorDetail(' ')).toBeUndefined()
|
|
59
|
-
expect(vendorDetail({})).toBeUndefined()
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
it('truncates a body that is not a sentence', () => {
|
|
63
|
-
const detail = vendorDetail('x'.repeat(5_000))
|
|
64
|
-
expect(detail?.length).toBeLessThanOrEqual(401)
|
|
65
|
-
expect(detail?.endsWith('…')).toBe(true)
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
describe('a credential never rides along', () => {
|
|
70
|
-
it.each([
|
|
71
|
-
['sk-ant-api03-AbCdEfGhIjKlMnOpQrStUv', 'anthropic-style key'],
|
|
72
|
-
['npm_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345', 'npm token'],
|
|
73
|
-
['ghp_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345', 'github token'],
|
|
74
|
-
['AKIAIOSFODNN7EXAMPLE', 'aws access key id'],
|
|
75
|
-
])('scrubs %s (%s)', (secret) => {
|
|
76
|
-
const scrubbed = redactSecrets(`upstream rejected token ${secret} for this request`)
|
|
77
|
-
expect(scrubbed).not.toContain(secret)
|
|
78
|
-
expect(scrubbed).toContain('[redacted]')
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
it('scrubs a bearer header the vendor echoed back', () => {
|
|
82
|
-
const scrubbed = redactSecrets('bad header: Authorization: Bearer abcdef0123456789ABCDEF')
|
|
83
|
-
expect(scrubbed).not.toContain('abcdef0123456789ABCDEF')
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
-
it('scrubs a credential-named JSON field without eating the rest', () => {
|
|
87
|
-
const scrubbed = redactSecrets('{"api_key":"sk-live-9999","model":"the-model-that-failed"}')
|
|
88
|
-
expect(scrubbed).not.toContain('sk-live-9999')
|
|
89
|
-
// The surrounding sentence is the whole point — scrubbing must not
|
|
90
|
-
// degrade into deleting the message.
|
|
91
|
-
expect(scrubbed).toContain('the-model-that-failed')
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
it('scrubs on the real path, not only in the helper', () => {
|
|
95
|
-
const err = providerHttpError({
|
|
96
|
-
providerId: 'anthropic',
|
|
97
|
-
status: 401,
|
|
98
|
-
body: JSON.stringify({
|
|
99
|
-
error: { message: 'invalid key sk-ant-api03-AbCdEfGhIjKlMnOpQrStUv supplied' },
|
|
100
|
-
}),
|
|
101
|
-
})
|
|
102
|
-
|
|
103
|
-
expect(err.detail).not.toContain('AbCdEfGhIjKlMnOpQrStUv')
|
|
104
|
-
expect(err.detail).toContain('[redacted]')
|
|
105
|
-
expect(err.message).not.toContain('AbCdEfGhIjKlMnOpQrStUv')
|
|
106
|
-
})
|
|
107
|
-
})
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Behavioural contract for `collect()` (ses_001-tool-stream-events phase 1A):
|
|
3
|
-
*
|
|
4
|
-
* - Drains a `StreamChunk` async iterable into a single
|
|
5
|
-
* `ChatCompletionResponse` matching the legacy `provider.chat()` shape.
|
|
6
|
-
* - Concatenates `delta.content` in arrival order; null when no text
|
|
7
|
-
* chunks ever arrive.
|
|
8
|
-
* - Buckets tool-call argument fragments by `index`; emits `toolCalls`
|
|
9
|
-
* sorted by index. `id` and `function.name` come from the first chunk
|
|
10
|
-
* that supplies them; `function.arguments` is the concatenation of all
|
|
11
|
-
* `arguments` fragments for that index.
|
|
12
|
-
* - Latest-wins for `finishReason` and `usage`; defaults
|
|
13
|
-
* `finishReason: 'stop'` and zero usage if the provider omits them
|
|
14
|
-
* (defensive — a vendor SDK has shipped this shape before).
|
|
15
|
-
* - Throws if any chunk surfaces a `chunk.error`.
|
|
16
|
-
*
|
|
17
|
-
* Phase 2 swaps every internal `provider.chat()` call site for
|
|
18
|
-
* `collect(provider.chatStream())`; the response shape parity guarded
|
|
19
|
-
* here is what makes that swap safe.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
import { describe, expect, it } from 'vitest'
|
|
23
|
-
|
|
24
|
-
import type { StreamChunk } from '../types/provider/stream.js'
|
|
25
|
-
|
|
26
|
-
import { collect } from './collect.js'
|
|
27
|
-
|
|
28
|
-
async function* fromArray(chunks: StreamChunk[]): AsyncIterable<StreamChunk> {
|
|
29
|
-
for (const chunk of chunks) yield chunk
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
describe('collect()', () => {
|
|
33
|
-
it('aggregates text-only stream into single content string', async () => {
|
|
34
|
-
const result = await collect(
|
|
35
|
-
fromArray([
|
|
36
|
-
{ id: 'm1', delta: { content: 'hel' } },
|
|
37
|
-
{ id: 'm1', delta: { content: 'lo' } },
|
|
38
|
-
{ id: 'm1', delta: { content: ' world' } },
|
|
39
|
-
{ id: 'm1', delta: {}, finishReason: 'stop' },
|
|
40
|
-
]),
|
|
41
|
-
)
|
|
42
|
-
expect(result.message.content).toBe('hello world')
|
|
43
|
-
expect(result.message.toolCalls).toBeUndefined()
|
|
44
|
-
expect(result.finishReason).toBe('stop')
|
|
45
|
-
expect(result.id).toBe('m1')
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
it('returns content: null when no text chunks arrive', async () => {
|
|
49
|
-
const result = await collect(fromArray([{ id: 'm', delta: {}, finishReason: 'stop' }]))
|
|
50
|
-
expect(result.message.content).toBeNull()
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
it('buckets parallel tool calls by index, preserves order', async () => {
|
|
54
|
-
const result = await collect(
|
|
55
|
-
fromArray([
|
|
56
|
-
{
|
|
57
|
-
id: 'm',
|
|
58
|
-
delta: {
|
|
59
|
-
toolCalls: [
|
|
60
|
-
{ index: 0, id: 'toolu_a', function: { name: 'read' } },
|
|
61
|
-
{ index: 1, id: 'toolu_b', function: { name: 'WebSearch' } },
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: 'm',
|
|
67
|
-
delta: {
|
|
68
|
-
toolCalls: [{ index: 1, function: { arguments: '{"query":"x"}' } }],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: 'm',
|
|
73
|
-
delta: {
|
|
74
|
-
toolCalls: [
|
|
75
|
-
{ index: 0, function: { arguments: '{"file_path":' } },
|
|
76
|
-
{ index: 0, function: { arguments: '"/a"}' } },
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
{ id: 'm', delta: {}, finishReason: 'tool_calls' },
|
|
81
|
-
]),
|
|
82
|
-
)
|
|
83
|
-
expect(result.message.toolCalls).toEqual([
|
|
84
|
-
{
|
|
85
|
-
id: 'toolu_a',
|
|
86
|
-
type: 'function',
|
|
87
|
-
function: { name: 'read', arguments: '{"file_path":"/a"}' },
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
id: 'toolu_b',
|
|
91
|
-
type: 'function',
|
|
92
|
-
function: { name: 'WebSearch', arguments: '{"query":"x"}' },
|
|
93
|
-
},
|
|
94
|
-
])
|
|
95
|
-
expect(result.finishReason).toBe('tool_calls')
|
|
96
|
-
})
|
|
97
|
-
|
|
98
|
-
it('latest finishReason and usage win', async () => {
|
|
99
|
-
const result = await collect(
|
|
100
|
-
fromArray([
|
|
101
|
-
{ id: 'm', delta: {}, finishReason: 'stop' },
|
|
102
|
-
{
|
|
103
|
-
id: 'm',
|
|
104
|
-
delta: {},
|
|
105
|
-
finishReason: 'length',
|
|
106
|
-
usage: {
|
|
107
|
-
promptTokens: 100,
|
|
108
|
-
completionTokens: 50,
|
|
109
|
-
totalTokens: 150,
|
|
110
|
-
cachedTokens: 0,
|
|
111
|
-
cacheWriteTokens: 0,
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
]),
|
|
115
|
-
)
|
|
116
|
-
expect(result.finishReason).toBe('length')
|
|
117
|
-
expect(result.usage.totalTokens).toBe(150)
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
it('defaults finishReason to stop and usage to zero when provider omits them', async () => {
|
|
121
|
-
const result = await collect(fromArray([{ id: 'm', delta: { content: 'hi' } }]))
|
|
122
|
-
expect(result.finishReason).toBe('stop')
|
|
123
|
-
expect(result.usage).toEqual({
|
|
124
|
-
promptTokens: 0,
|
|
125
|
-
completionTokens: 0,
|
|
126
|
-
totalTokens: 0,
|
|
127
|
-
cachedTokens: 0,
|
|
128
|
-
cacheWriteTokens: 0,
|
|
129
|
-
})
|
|
130
|
-
})
|
|
131
|
-
|
|
132
|
-
it('throws on chunk.error', async () => {
|
|
133
|
-
await expect(
|
|
134
|
-
collect(
|
|
135
|
-
fromArray([
|
|
136
|
-
{ id: 'm', delta: { content: 'hi' } },
|
|
137
|
-
{ id: 'm', delta: {}, error: 'rate limited' },
|
|
138
|
-
]),
|
|
139
|
-
),
|
|
140
|
-
).rejects.toThrow('rate limited')
|
|
141
|
-
})
|
|
142
|
-
})
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Phase 2 of ses_001-tool-stream-events removed `chat()` from
|
|
3
|
-
* `LLMProvider`; this suite now exercises the streaming-only wrapper.
|
|
4
|
-
*
|
|
5
|
-
* Invariants under test:
|
|
6
|
-
* - `wrapProviderWithProbes(provider)` returns an object that
|
|
7
|
-
* forwards `chatStream` to the inner provider while emitting
|
|
8
|
-
* `provider_call_start` before iteration and either
|
|
9
|
-
* `provider_call_completed` (after the iterator drains cleanly,
|
|
10
|
-
* carrying any aggregated `usage` from the last chunk that
|
|
11
|
-
* supplied one) or `provider_call_failed` (on a thrown error).
|
|
12
|
-
* - `callId` is unique per call and correlates start/completed/failed.
|
|
13
|
-
* - Optional methods (`listModels`, `healthCheck`, `doctorCheck`)
|
|
14
|
-
* are forwarded when present on the inner provider.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { describe, expect, it, vi } from 'vitest'
|
|
18
|
-
|
|
19
|
-
import { buildProbeContext } from '../probe/context.js'
|
|
20
|
-
import { createProbeRegistry } from '../probe/registry.js'
|
|
21
|
-
import type { AgentBusEvent } from '../types/bus/index.js'
|
|
22
|
-
import type { TokenUsage } from '../types/common/index.js'
|
|
23
|
-
import type { ChatCompletionParams } from '../types/provider/chat.js'
|
|
24
|
-
import type { LLMProvider } from '../types/provider/interface.js'
|
|
25
|
-
import type { StreamChunk } from '../types/provider/stream.js'
|
|
26
|
-
|
|
27
|
-
import { wrapProviderWithProbes } from './instrumentation.js'
|
|
28
|
-
|
|
29
|
-
const STREAM_USAGE: TokenUsage = {
|
|
30
|
-
promptTokens: 10,
|
|
31
|
-
completionTokens: 5,
|
|
32
|
-
totalTokens: 15,
|
|
33
|
-
cachedTokens: 0,
|
|
34
|
-
cacheWriteTokens: 0,
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function makeFakeProvider(
|
|
38
|
-
overrides: Partial<{
|
|
39
|
-
chatStream: LLMProvider['chatStream']
|
|
40
|
-
}> = {},
|
|
41
|
-
): LLMProvider {
|
|
42
|
-
const defaultStream: LLMProvider['chatStream'] = async function* (
|
|
43
|
-
_params: ChatCompletionParams,
|
|
44
|
-
): AsyncIterable<StreamChunk> {
|
|
45
|
-
yield { id: 'm', delta: { content: 'hi' } }
|
|
46
|
-
yield {
|
|
47
|
-
id: 'm',
|
|
48
|
-
delta: {},
|
|
49
|
-
finishReason: 'stop',
|
|
50
|
-
usage: STREAM_USAGE,
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
id: 'p1',
|
|
55
|
-
name: 'Provider 1',
|
|
56
|
-
chatStream: overrides.chatStream ?? defaultStream,
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const params: ChatCompletionParams = { model: 'm1', messages: [] } as ChatCompletionParams
|
|
61
|
-
|
|
62
|
-
async function drain(iter: AsyncIterable<StreamChunk>): Promise<StreamChunk[]> {
|
|
63
|
-
const out: StreamChunk[] = []
|
|
64
|
-
for await (const c of iter) out.push(c)
|
|
65
|
-
return out
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
describe('wrapProviderWithProbes — chatStream', () => {
|
|
69
|
-
it('emits provider_call_start before iteration and provider_call_completed after drain', async () => {
|
|
70
|
-
const reg = createProbeRegistry()
|
|
71
|
-
const seen: AgentBusEvent[] = []
|
|
72
|
-
reg.onAny((event) => seen.push(event as AgentBusEvent))
|
|
73
|
-
|
|
74
|
-
const wrapped = wrapProviderWithProbes(makeFakeProvider(), { probes: reg })
|
|
75
|
-
await drain(wrapped.chatStream(params))
|
|
76
|
-
|
|
77
|
-
expect(seen.map((e) => e.type)).toEqual(['provider_call_start', 'provider_call_completed'])
|
|
78
|
-
const start = seen[0] as AgentBusEvent & { type: 'provider_call_start' }
|
|
79
|
-
const completed = seen[1] as AgentBusEvent & { type: 'provider_call_completed' }
|
|
80
|
-
expect(start.providerId).toBe('p1')
|
|
81
|
-
expect(start.model).toBe('m1')
|
|
82
|
-
expect(completed.callId).toBe(start.callId)
|
|
83
|
-
expect(completed.durationMs).toBeGreaterThanOrEqual(0)
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
-
it('captures usage from the last chunk that carries it', async () => {
|
|
87
|
-
const reg = createProbeRegistry()
|
|
88
|
-
const seen: AgentBusEvent[] = []
|
|
89
|
-
reg.onAny((event) => seen.push(event as AgentBusEvent))
|
|
90
|
-
|
|
91
|
-
const wrapped = wrapProviderWithProbes(makeFakeProvider(), { probes: reg })
|
|
92
|
-
await drain(wrapped.chatStream(params))
|
|
93
|
-
|
|
94
|
-
const completed = seen[1] as AgentBusEvent & { type: 'provider_call_completed' }
|
|
95
|
-
expect(completed.usage).toMatchObject({
|
|
96
|
-
inputTokens: STREAM_USAGE.promptTokens,
|
|
97
|
-
outputTokens: STREAM_USAGE.completionTokens,
|
|
98
|
-
totalTokens: STREAM_USAGE.totalTokens,
|
|
99
|
-
})
|
|
100
|
-
})
|
|
101
|
-
|
|
102
|
-
it('emits provider_call_failed and re-throws when chatStream throws mid-iteration', async () => {
|
|
103
|
-
const reg = createProbeRegistry()
|
|
104
|
-
const seen: AgentBusEvent[] = []
|
|
105
|
-
reg.onAny((event) => seen.push(event as AgentBusEvent))
|
|
106
|
-
|
|
107
|
-
const failing = makeFakeProvider({
|
|
108
|
-
chatStream: async function* () {
|
|
109
|
-
yield { id: 'm', delta: { content: 'partial' } }
|
|
110
|
-
throw new Error('boom')
|
|
111
|
-
},
|
|
112
|
-
})
|
|
113
|
-
const wrapped = wrapProviderWithProbes(failing, { probes: reg })
|
|
114
|
-
|
|
115
|
-
await expect(drain(wrapped.chatStream(params))).rejects.toThrow('boom')
|
|
116
|
-
expect(seen.map((e) => e.type)).toEqual(['provider_call_start', 'provider_call_failed'])
|
|
117
|
-
const failed = seen[1] as AgentBusEvent & { type: 'provider_call_failed' }
|
|
118
|
-
expect(failed.error).toBe('boom')
|
|
119
|
-
})
|
|
120
|
-
|
|
121
|
-
it('correlates start and completed by callId across multiple calls', async () => {
|
|
122
|
-
const reg = createProbeRegistry()
|
|
123
|
-
const ids: string[] = []
|
|
124
|
-
reg.on('provider_call_start', (event) => ids.push(`s:${event.callId}`))
|
|
125
|
-
reg.on('provider_call_completed', (event) => ids.push(`c:${event.callId}`))
|
|
126
|
-
|
|
127
|
-
const wrapped = wrapProviderWithProbes(makeFakeProvider(), { probes: reg })
|
|
128
|
-
await drain(wrapped.chatStream(params))
|
|
129
|
-
await drain(wrapped.chatStream(params))
|
|
130
|
-
|
|
131
|
-
expect(ids).toHaveLength(4)
|
|
132
|
-
expect(ids[0]?.split(':')[1]).toBe(ids[1]?.split(':')[1])
|
|
133
|
-
expect(ids[2]?.split(':')[1]).toBe(ids[3]?.split(':')[1])
|
|
134
|
-
expect(ids[0]).not.toBe(ids[2])
|
|
135
|
-
})
|
|
136
|
-
|
|
137
|
-
it('forwards optional methods (listModels, healthCheck) to the inner provider', () => {
|
|
138
|
-
const listModels = vi.fn()
|
|
139
|
-
const healthCheck = vi.fn()
|
|
140
|
-
const inner = { ...makeFakeProvider(), listModels, healthCheck }
|
|
141
|
-
const wrapped = wrapProviderWithProbes(inner)
|
|
142
|
-
|
|
143
|
-
wrapped.listModels?.()
|
|
144
|
-
wrapped.healthCheck?.()
|
|
145
|
-
|
|
146
|
-
expect(listModels).toHaveBeenCalled()
|
|
147
|
-
expect(healthCheck).toHaveBeenCalled()
|
|
148
|
-
})
|
|
149
|
-
|
|
150
|
-
it('omits optional methods when inner provider does not declare them', () => {
|
|
151
|
-
const wrapped = wrapProviderWithProbes(makeFakeProvider())
|
|
152
|
-
expect(wrapped.listModels).toBeUndefined()
|
|
153
|
-
expect(wrapped.healthCheck).toBeUndefined()
|
|
154
|
-
})
|
|
155
|
-
|
|
156
|
-
it('uses the configured probe context (runId)', async () => {
|
|
157
|
-
const reg = createProbeRegistry()
|
|
158
|
-
const ctx = buildProbeContext({ runId: 'run_42' as `run_${string}` })
|
|
159
|
-
const seen: AgentBusEvent[] = []
|
|
160
|
-
reg.onAny((event, c) => {
|
|
161
|
-
seen.push(event as AgentBusEvent)
|
|
162
|
-
expect(c.runId).toBe(ctx.runId)
|
|
163
|
-
})
|
|
164
|
-
|
|
165
|
-
const wrapped = wrapProviderWithProbes(makeFakeProvider(), {
|
|
166
|
-
probes: reg,
|
|
167
|
-
runId: ctx.runId,
|
|
168
|
-
})
|
|
169
|
-
await drain(wrapped.chatStream(params))
|
|
170
|
-
|
|
171
|
-
expect(seen.map((e) => e.type)).toEqual(['provider_call_start', 'provider_call_completed'])
|
|
172
|
-
})
|
|
173
|
-
})
|