@namzu/sdk 14.0.7 → 15.0.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 +81 -0
- 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/package.json +11 -1
- package/src/types/agent/lifecycle-event.ts +0 -9
- package/src/types/agent/task.ts +0 -13
- 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,286 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it, vi } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import { JSON_RPC_METHOD_NOT_FOUND } from '../../../constants/mcp/index.js'
|
|
4
|
-
import type {
|
|
5
|
-
MCPJsonRpcMessage,
|
|
6
|
-
MCPPromptDefinition,
|
|
7
|
-
MCPPromptMessage,
|
|
8
|
-
MCPTransport,
|
|
9
|
-
} from '../../../types/connector/index.js'
|
|
10
|
-
import { MCPClient } from '../client.js'
|
|
11
|
-
import { MCPServer } from '../server.js'
|
|
12
|
-
import type { MCPServerPromptProvider, MCPServerToolProvider } from '../server.js'
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The half of MCP that is not tools.
|
|
16
|
-
*
|
|
17
|
-
* `MCPPromptDefinition` and `MCPPromptArgument` were declared when the types
|
|
18
|
-
* were written; no client method ever asked for a prompt and no server branch
|
|
19
|
-
* ever served one. `MCPLifecycleEvent` and `MCPEventListener` were declared
|
|
20
|
-
* beside them and nothing ever emitted one, so a host could learn that a
|
|
21
|
-
* server had died only by noticing calls had started failing.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
function fakeTransport(): {
|
|
25
|
-
transport: MCPTransport
|
|
26
|
-
sent: MCPJsonRpcMessage[]
|
|
27
|
-
deliver: (m: MCPJsonRpcMessage) => void
|
|
28
|
-
} {
|
|
29
|
-
const sent: MCPJsonRpcMessage[] = []
|
|
30
|
-
let onMessage: ((m: MCPJsonRpcMessage) => void) | undefined
|
|
31
|
-
const transport: MCPTransport = {
|
|
32
|
-
connect: async () => undefined,
|
|
33
|
-
close: async () => undefined,
|
|
34
|
-
send: async (m: MCPJsonRpcMessage) => {
|
|
35
|
-
sent.push(m)
|
|
36
|
-
},
|
|
37
|
-
onMessage: (h: (m: MCPJsonRpcMessage) => void) => {
|
|
38
|
-
onMessage = h
|
|
39
|
-
},
|
|
40
|
-
onClose: () => undefined,
|
|
41
|
-
onError: () => undefined,
|
|
42
|
-
} as unknown as MCPTransport
|
|
43
|
-
return { transport, sent, deliver: (m) => onMessage?.(m) }
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const toolProvider: MCPServerToolProvider = {
|
|
47
|
-
listTools: () => [],
|
|
48
|
-
callTool: async () => ({ content: [{ type: 'text', text: 'ok' }] }),
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function promptProvider(over: Partial<MCPServerPromptProvider> = {}): MCPServerPromptProvider {
|
|
52
|
-
const prompts: MCPPromptDefinition[] = [
|
|
53
|
-
{
|
|
54
|
-
name: 'summarize',
|
|
55
|
-
description: 'Summarize a file',
|
|
56
|
-
arguments: [
|
|
57
|
-
{ name: 'path', required: true },
|
|
58
|
-
{ name: 'style', required: false },
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
]
|
|
62
|
-
const messages: MCPPromptMessage[] = [
|
|
63
|
-
{ role: 'user', content: { type: 'text', text: 'summarize it' } },
|
|
64
|
-
]
|
|
65
|
-
return {
|
|
66
|
-
listPrompts: () => prompts,
|
|
67
|
-
getPrompt: async () => ({ description: 'Summarize a file', messages }),
|
|
68
|
-
...over,
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
async function ask(
|
|
73
|
-
t: ReturnType<typeof fakeTransport>,
|
|
74
|
-
method: string,
|
|
75
|
-
params: Record<string, unknown> = {},
|
|
76
|
-
) {
|
|
77
|
-
t.deliver({ jsonrpc: '2.0', id: 1, method, params } as MCPJsonRpcMessage)
|
|
78
|
-
await new Promise((r) => setTimeout(r, 0))
|
|
79
|
-
return t.sent.at(-1) as MCPJsonRpcMessage & {
|
|
80
|
-
result?: unknown
|
|
81
|
-
error?: { code: number; message: string }
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
describe('a server serves the prompts it publishes', () => {
|
|
86
|
-
it('lists them', async () => {
|
|
87
|
-
const t = fakeTransport()
|
|
88
|
-
const server = new MCPServer({ name: 'srv' }, toolProvider, undefined, promptProvider())
|
|
89
|
-
await server.start(t.transport)
|
|
90
|
-
|
|
91
|
-
const reply = await ask(t, 'prompts/list')
|
|
92
|
-
|
|
93
|
-
expect((reply.result as { prompts: MCPPromptDefinition[] }).prompts[0]?.name).toBe('summarize')
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
it('returns the messages the server composed', async () => {
|
|
97
|
-
const t = fakeTransport()
|
|
98
|
-
const server = new MCPServer({ name: 'srv' }, toolProvider, undefined, promptProvider())
|
|
99
|
-
await server.start(t.transport)
|
|
100
|
-
|
|
101
|
-
const reply = await ask(t, 'prompts/get', {
|
|
102
|
-
name: 'summarize',
|
|
103
|
-
arguments: { path: 'a.ts' },
|
|
104
|
-
})
|
|
105
|
-
|
|
106
|
-
expect((reply.result as { messages: MCPPromptMessage[] }).messages[0]?.content).toEqual({
|
|
107
|
-
type: 'text',
|
|
108
|
-
text: 'summarize it',
|
|
109
|
-
})
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
it('advertises the capability only when something is behind it', async () => {
|
|
113
|
-
const withPrompts = fakeTransport()
|
|
114
|
-
const without = fakeTransport()
|
|
115
|
-
const a = new MCPServer({ name: 'a' }, toolProvider, undefined, promptProvider())
|
|
116
|
-
const b = new MCPServer({ name: 'b' }, toolProvider)
|
|
117
|
-
await a.start(withPrompts.transport)
|
|
118
|
-
await b.start(without.transport)
|
|
119
|
-
|
|
120
|
-
const withCap = await ask(withPrompts, 'initialize')
|
|
121
|
-
const withoutCap = await ask(without, 'initialize')
|
|
122
|
-
|
|
123
|
-
// A capability advertised without a provider is a promise the next
|
|
124
|
-
// call breaks.
|
|
125
|
-
expect(
|
|
126
|
-
(withCap.result as { capabilities: Record<string, unknown> }).capabilities.prompts,
|
|
127
|
-
).toBeDefined()
|
|
128
|
-
expect(
|
|
129
|
-
(withoutCap.result as { capabilities: Record<string, unknown> }).capabilities.prompts,
|
|
130
|
-
).toBeUndefined()
|
|
131
|
-
})
|
|
132
|
-
|
|
133
|
-
it('refuses a required argument the caller omitted', async () => {
|
|
134
|
-
const t = fakeTransport()
|
|
135
|
-
const server = new MCPServer({ name: 'srv' }, toolProvider, undefined, promptProvider())
|
|
136
|
-
await server.start(t.transport)
|
|
137
|
-
|
|
138
|
-
const reply = await ask(t, 'prompts/get', { name: 'summarize', arguments: {} })
|
|
139
|
-
|
|
140
|
-
// Checked from the declaration, so every provider does not have to
|
|
141
|
-
// re-implement it or forget to.
|
|
142
|
-
expect(reply.error?.message).toContain('path')
|
|
143
|
-
})
|
|
144
|
-
|
|
145
|
-
it('accepts an optional argument being absent', async () => {
|
|
146
|
-
const t = fakeTransport()
|
|
147
|
-
const server = new MCPServer({ name: 'srv' }, toolProvider, undefined, promptProvider())
|
|
148
|
-
await server.start(t.transport)
|
|
149
|
-
|
|
150
|
-
const reply = await ask(t, 'prompts/get', {
|
|
151
|
-
name: 'summarize',
|
|
152
|
-
arguments: { path: 'a.ts' },
|
|
153
|
-
})
|
|
154
|
-
|
|
155
|
-
expect(reply.error).toBeUndefined()
|
|
156
|
-
})
|
|
157
|
-
|
|
158
|
-
it('refuses a prompt it does not publish', async () => {
|
|
159
|
-
const t = fakeTransport()
|
|
160
|
-
const server = new MCPServer({ name: 'srv' }, toolProvider, undefined, promptProvider())
|
|
161
|
-
await server.start(t.transport)
|
|
162
|
-
|
|
163
|
-
const reply = await ask(t, 'prompts/get', { name: 'nonexistent' })
|
|
164
|
-
|
|
165
|
-
expect(reply.error?.message).toContain('nonexistent')
|
|
166
|
-
})
|
|
167
|
-
})
|
|
168
|
-
|
|
169
|
-
describe('"none" and "not here" are different answers', () => {
|
|
170
|
-
it('says method-not-found for prompts when there is no provider', async () => {
|
|
171
|
-
const t = fakeTransport()
|
|
172
|
-
const server = new MCPServer({ name: 'srv' }, toolProvider)
|
|
173
|
-
await server.start(t.transport)
|
|
174
|
-
|
|
175
|
-
const reply = await ask(t, 'prompts/list')
|
|
176
|
-
|
|
177
|
-
expect(reply.error?.code).toBe(JSON_RPC_METHOD_NOT_FOUND)
|
|
178
|
-
})
|
|
179
|
-
|
|
180
|
-
it('says method-not-found for resources when there is no provider', async () => {
|
|
181
|
-
const t = fakeTransport()
|
|
182
|
-
const server = new MCPServer({ name: 'srv' }, toolProvider)
|
|
183
|
-
await server.start(t.transport)
|
|
184
|
-
|
|
185
|
-
const reply = await ask(t, 'resources/list')
|
|
186
|
-
|
|
187
|
-
// This used to answer `{ resources: [] }` for a capability
|
|
188
|
-
// `initialize` never advertised — telling a client "none" where the
|
|
189
|
-
// truth is "not here". The two send a client in opposite directions.
|
|
190
|
-
expect(reply.error?.code).toBe(JSON_RPC_METHOD_NOT_FOUND)
|
|
191
|
-
})
|
|
192
|
-
|
|
193
|
-
it('uses the protocol code for an unknown method, not a generic failure', async () => {
|
|
194
|
-
const t = fakeTransport()
|
|
195
|
-
const server = new MCPServer({ name: 'srv' }, toolProvider)
|
|
196
|
-
await server.start(t.transport)
|
|
197
|
-
|
|
198
|
-
const reply = await ask(t, 'completely/unknown')
|
|
199
|
-
|
|
200
|
-
expect(reply.error?.code).toBe(JSON_RPC_METHOD_NOT_FOUND)
|
|
201
|
-
})
|
|
202
|
-
|
|
203
|
-
it('still reports a provider failure as an internal error', async () => {
|
|
204
|
-
const t = fakeTransport()
|
|
205
|
-
const server = new MCPServer(
|
|
206
|
-
{ name: 'srv' },
|
|
207
|
-
toolProvider,
|
|
208
|
-
undefined,
|
|
209
|
-
promptProvider({
|
|
210
|
-
listPrompts: () => {
|
|
211
|
-
throw new Error('provider exploded')
|
|
212
|
-
},
|
|
213
|
-
}),
|
|
214
|
-
)
|
|
215
|
-
await server.start(t.transport)
|
|
216
|
-
|
|
217
|
-
const reply = await ask(t, 'prompts/list')
|
|
218
|
-
|
|
219
|
-
// A broken provider is not the same as an unimplemented method, and
|
|
220
|
-
// collapsing the two would tell a client to stop asking for something
|
|
221
|
-
// that works tomorrow.
|
|
222
|
-
expect(reply.error?.code).toBe(-32603)
|
|
223
|
-
})
|
|
224
|
-
})
|
|
225
|
-
|
|
226
|
-
describe('a client says out loud what it already knew', () => {
|
|
227
|
-
function failingClient() {
|
|
228
|
-
// `connect` failing is the simplest path that actually emits. A
|
|
229
|
-
// never-connected client's `disconnect` returns early and emits
|
|
230
|
-
// nothing — an easy way to write a test that proves nothing, which is
|
|
231
|
-
// what the first version of these did.
|
|
232
|
-
return new MCPClient({
|
|
233
|
-
serverName: 'srv',
|
|
234
|
-
transport: { type: 'stdio', command: 'definitely-not-a-real-binary-xyz', args: [] },
|
|
235
|
-
})
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Covered here: the transport-error emitter. `connect`'s own catch emits
|
|
240
|
-
* the same event and is NOT pinned — a spawn failure surfaces through the
|
|
241
|
-
* transport first, so the catch is the second line of defence rather than
|
|
242
|
-
* the path this reaches. Reaching it needs a connection that opens and
|
|
243
|
-
* then fails negotiation, which this fake cannot stage; said rather than
|
|
244
|
-
* left for a mutation run to discover.
|
|
245
|
-
*/
|
|
246
|
-
it('reports a failure to whoever is listening', async () => {
|
|
247
|
-
const client = failingClient()
|
|
248
|
-
const seen: string[] = []
|
|
249
|
-
client.onLifecycle((e) => seen.push(e.type))
|
|
250
|
-
|
|
251
|
-
await client.connect().catch(() => undefined)
|
|
252
|
-
|
|
253
|
-
expect(seen).toContain('mcp_client_error')
|
|
254
|
-
})
|
|
255
|
-
|
|
256
|
-
it('stops reporting once the listener unsubscribes', async () => {
|
|
257
|
-
const client = failingClient()
|
|
258
|
-
const seen = vi.fn()
|
|
259
|
-
|
|
260
|
-
const off = client.onLifecycle(seen)
|
|
261
|
-
off()
|
|
262
|
-
await client.connect().catch(() => undefined)
|
|
263
|
-
|
|
264
|
-
// `onNotification` returns nothing, so a listener registered there
|
|
265
|
-
// cannot be removed and keeps a disposed host object alive for as
|
|
266
|
-
// long as the client. This is that bug not repeated.
|
|
267
|
-
expect(seen).not.toHaveBeenCalled()
|
|
268
|
-
})
|
|
269
|
-
|
|
270
|
-
it('leaves other listeners working when one throws', async () => {
|
|
271
|
-
const client = failingClient()
|
|
272
|
-
const survivor = vi.fn()
|
|
273
|
-
client.onLifecycle(() => {
|
|
274
|
-
throw new Error('observer bug')
|
|
275
|
-
})
|
|
276
|
-
client.onLifecycle(survivor)
|
|
277
|
-
|
|
278
|
-
await client.connect().catch(() => undefined)
|
|
279
|
-
|
|
280
|
-
// These fire from inside transport callbacks and from `connect`'s
|
|
281
|
-
// failure path, so an escaping exception would surface as a connection
|
|
282
|
-
// error — blaming the server for a bug in the host's own observer, and
|
|
283
|
-
// silencing every listener registered after the broken one.
|
|
284
|
-
expect(survivor).toHaveBeenCalled()
|
|
285
|
-
})
|
|
286
|
-
})
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
MCP_PROTOCOL_VERSION,
|
|
5
|
-
MCP_SUPPORTED_PROTOCOL_VERSIONS,
|
|
6
|
-
} from '../../../constants/mcp/index.js'
|
|
7
|
-
import type {
|
|
8
|
-
MCPJsonRpcMessage,
|
|
9
|
-
MCPTransport,
|
|
10
|
-
MCPTransportUnion,
|
|
11
|
-
} from '../../../types/connector/index.js'
|
|
12
|
-
import { MCPClient } from '../client.js'
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* A server answers `initialize` with the version IT will speak, which need
|
|
16
|
-
* not be the one the client asked for — that is how the handshake is
|
|
17
|
-
* specified. namzu ignored the answer entirely and carried on regardless,
|
|
18
|
-
* so a server responding with a version this client cannot speak looked
|
|
19
|
-
* exactly like a healthy connection until something downstream broke in a
|
|
20
|
-
* confusing way.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
function harness(protocolVersion: string | undefined) {
|
|
24
|
-
const sent: MCPJsonRpcMessage[] = []
|
|
25
|
-
let onMessage: ((m: MCPJsonRpcMessage) => void) | undefined
|
|
26
|
-
|
|
27
|
-
const transport: MCPTransport = {
|
|
28
|
-
connect: async () => {},
|
|
29
|
-
close: async () => {},
|
|
30
|
-
isConnected: () => true,
|
|
31
|
-
send: async (message) => {
|
|
32
|
-
sent.push(message)
|
|
33
|
-
if (message.method === 'initialize') {
|
|
34
|
-
queueMicrotask(() =>
|
|
35
|
-
onMessage?.({
|
|
36
|
-
jsonrpc: '2.0',
|
|
37
|
-
id: message.id,
|
|
38
|
-
result: {
|
|
39
|
-
...(protocolVersion !== undefined ? { protocolVersion } : {}),
|
|
40
|
-
serverInfo: { name: 'fake', version: '1' },
|
|
41
|
-
capabilities: {},
|
|
42
|
-
},
|
|
43
|
-
}),
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
onMessage: (h) => {
|
|
48
|
-
onMessage = h
|
|
49
|
-
},
|
|
50
|
-
onClose: () => {},
|
|
51
|
-
onError: () => {},
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const client = new MCPClient({
|
|
55
|
-
serverName: 'fake',
|
|
56
|
-
transport: { type: 'stdio', command: 'noop' } as MCPTransportUnion,
|
|
57
|
-
})
|
|
58
|
-
;(client as unknown as { transport: MCPTransport }).transport = transport
|
|
59
|
-
|
|
60
|
-
return { client, sent }
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
describe('MCP protocol negotiation', () => {
|
|
64
|
-
it('advertises the version this client actually implements', () => {
|
|
65
|
-
// Advertising a newer version whose requirements are unimplemented
|
|
66
|
-
// is worse than advertising an older one honestly: the server
|
|
67
|
-
// tailors its behavior to the claim.
|
|
68
|
-
expect(MCP_SUPPORTED_PROTOCOL_VERSIONS).toContain(MCP_PROTOCOL_VERSION)
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
it('sends the advertised version on initialize', async () => {
|
|
72
|
-
const h = harness(MCP_PROTOCOL_VERSION)
|
|
73
|
-
await h.client.connect()
|
|
74
|
-
|
|
75
|
-
const init = h.sent.find((m) => m.method === 'initialize')
|
|
76
|
-
expect((init?.params as { protocolVersion: string }).protocolVersion).toBe(MCP_PROTOCOL_VERSION)
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
it('accepts a server that answers with the version we asked for', async () => {
|
|
80
|
-
const h = harness(MCP_PROTOCOL_VERSION)
|
|
81
|
-
await expect(h.client.connect()).resolves.toBeDefined()
|
|
82
|
-
expect(h.client.isConnected()).toBe(true)
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
it('REFUSES a server that negotiates a version this client cannot speak', async () => {
|
|
86
|
-
const h = harness('2099-01-01')
|
|
87
|
-
await expect(h.client.connect()).rejects.toThrow(/negotiated protocol version "2099-01-01"/)
|
|
88
|
-
expect(h.client.isConnected()).toBe(false)
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
it('names the versions it can speak, so the failure is actionable', async () => {
|
|
92
|
-
const h = harness('1999-01-01')
|
|
93
|
-
await expect(h.client.connect()).rejects.toThrow(
|
|
94
|
-
new RegExp(MCP_SUPPORTED_PROTOCOL_VERSIONS.join(', ')),
|
|
95
|
-
)
|
|
96
|
-
})
|
|
97
|
-
|
|
98
|
-
it('tolerates a server that omits the version rather than failing the connection', async () => {
|
|
99
|
-
// Lenient about an ABSENT version, strict about an unsupported one.
|
|
100
|
-
// A missing field is a server being sloppy; a version we cannot
|
|
101
|
-
// speak is a real incompatibility.
|
|
102
|
-
const h = harness(undefined)
|
|
103
|
-
await expect(h.client.connect()).resolves.toBeDefined()
|
|
104
|
-
})
|
|
105
|
-
})
|
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
import { zodToJsonSchema } from 'zod-to-json-schema'
|
|
3
|
-
|
|
4
|
-
import type { MCPJsonSchema } from '../../../types/connector/index.js'
|
|
5
|
-
import { mcpJsonSchemaToZod } from '../adapter.js'
|
|
6
|
-
import { inlineSchemaRefs } from '../schema-refs.js'
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A bridged tool's schema makes a round trip — server JSON Schema → Zod →
|
|
10
|
-
* JSON Schema on the wire — so whatever the conversion drops is dropped
|
|
11
|
-
* from what the MODEL is shown, not just from what is enforced.
|
|
12
|
-
*
|
|
13
|
-
* Two losses were total. A `$ref` hit the permissive branch and became
|
|
14
|
-
* "anything"; since that node is inherently optional in Zod, a `$ref`'d
|
|
15
|
-
* field the server listed as required stopped being required as well, so
|
|
16
|
-
* an empty payload validated clean and reached the server. And every
|
|
17
|
-
* validation keyword except `description` and `default` was discarded.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
const asSchema = (schema: unknown) => schema as MCPJsonSchema
|
|
21
|
-
/** Walking a rendered schema; every node is `unknown` at the type level. */
|
|
22
|
-
// biome-ignore lint/suspicious/noExplicitAny: assertions index arbitrary depth
|
|
23
|
-
type RenderedSchema = Record<string, any>
|
|
24
|
-
|
|
25
|
-
const render = (schema: unknown) =>
|
|
26
|
-
zodToJsonSchema(mcpJsonSchemaToZod(asSchema(schema)), {
|
|
27
|
-
target: 'openApi3',
|
|
28
|
-
}) as RenderedSchema
|
|
29
|
-
|
|
30
|
-
describe('a schema built from $defs', () => {
|
|
31
|
-
const schema = {
|
|
32
|
-
type: 'object',
|
|
33
|
-
properties: { location: { $ref: '#/$defs/Location' } },
|
|
34
|
-
required: ['location'],
|
|
35
|
-
$defs: {
|
|
36
|
-
Location: {
|
|
37
|
-
type: 'object',
|
|
38
|
-
properties: {
|
|
39
|
-
city: { type: 'string', description: 'City name' },
|
|
40
|
-
lat: { type: 'number' },
|
|
41
|
-
},
|
|
42
|
-
required: ['city'],
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
it('shows the model the shape instead of an empty object', () => {
|
|
48
|
-
const rendered = render(schema)
|
|
49
|
-
expect(rendered.properties.location.type).toBe('object')
|
|
50
|
-
expect(rendered.properties.location.properties.city.type).toBe('string')
|
|
51
|
-
expect(rendered.properties.location.properties.city.description).toBe('City name')
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
it('keeps a $ref field required', () => {
|
|
55
|
-
// The real damage: an unknown node is optional in Zod, so the
|
|
56
|
-
// executor's "Required: <field>" hint never fired and an empty
|
|
57
|
-
// payload was forwarded to the server as if it were valid.
|
|
58
|
-
const parsed = mcpJsonSchemaToZod(asSchema(schema)).safeParse({})
|
|
59
|
-
expect(parsed.success).toBe(false)
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
it('enforces the referenced shape', () => {
|
|
63
|
-
const zod = mcpJsonSchemaToZod(asSchema(schema))
|
|
64
|
-
expect(zod.safeParse({ location: { city: 'Ankara' } }).success).toBe(true)
|
|
65
|
-
expect(zod.safeParse({ location: { lat: 39.9 } }).success).toBe(false)
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
it('drops the definition dictionary once its pointers are inlined', () => {
|
|
69
|
-
// Asserted on the inliner's own output, not the rendered schema: the
|
|
70
|
-
// Zod conversion reads only `properties`/`required`, so `$defs` could
|
|
71
|
-
// never have shown up downstream and the assertion would have been
|
|
72
|
-
// unable to fail.
|
|
73
|
-
const inlined = inlineSchemaRefs(schema)
|
|
74
|
-
expect(inlined.$defs).toBeUndefined()
|
|
75
|
-
expect(Object.keys(inlined)).toEqual(['type', 'properties', 'required'])
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
it('reads the legacy definitions keyword too', () => {
|
|
79
|
-
const rendered = render({
|
|
80
|
-
type: 'object',
|
|
81
|
-
properties: { who: { $ref: '#/definitions/Person' } },
|
|
82
|
-
definitions: { Person: { type: 'object', properties: { name: { type: 'string' } } } },
|
|
83
|
-
})
|
|
84
|
-
expect(rendered.properties.who.properties.name.type).toBe('string')
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
describe('pointers that cannot be followed', () => {
|
|
89
|
-
it('stops at a self-referential schema instead of recursing forever', () => {
|
|
90
|
-
const schema = {
|
|
91
|
-
type: 'object',
|
|
92
|
-
properties: { node: { $ref: '#/$defs/Node' } },
|
|
93
|
-
$defs: {
|
|
94
|
-
Node: {
|
|
95
|
-
type: 'object',
|
|
96
|
-
properties: {
|
|
97
|
-
value: { type: 'string' },
|
|
98
|
-
child: { $ref: '#/$defs/Node' },
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// The outer level still expands — only the repeat is cut short, so a
|
|
105
|
-
// recursive type costs one branch rather than the whole document.
|
|
106
|
-
const rendered = render(schema)
|
|
107
|
-
expect(rendered.properties.node.properties.value.type).toBe('string')
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
it('expands the same pointer twice when the uses are siblings, not a cycle', () => {
|
|
111
|
-
const rendered = render({
|
|
112
|
-
type: 'object',
|
|
113
|
-
properties: { from: { $ref: '#/$defs/P' }, to: { $ref: '#/$defs/P' } },
|
|
114
|
-
$defs: { P: { type: 'object', properties: { id: { type: 'string' } } } },
|
|
115
|
-
})
|
|
116
|
-
expect(rendered.properties.from.properties.id.type).toBe('string')
|
|
117
|
-
expect(rendered.properties.to.properties.id.type).toBe('string')
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
it('leaves a dangling pointer permissive rather than guessing', () => {
|
|
121
|
-
expect(() =>
|
|
122
|
-
render({ type: 'object', properties: { x: { $ref: '#/$defs/Missing' } } }),
|
|
123
|
-
).not.toThrow()
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
it('leaves a pointer into another document alone', () => {
|
|
127
|
-
expect(() =>
|
|
128
|
-
render({ type: 'object', properties: { x: { $ref: 'https://example.test/s.json' } } }),
|
|
129
|
-
).not.toThrow()
|
|
130
|
-
})
|
|
131
|
-
|
|
132
|
-
it('lets a sibling keyword override the target', () => {
|
|
133
|
-
const inlined = inlineSchemaRefs({
|
|
134
|
-
$defs: { P: { type: 'string', description: 'from the definition' } },
|
|
135
|
-
properties: { a: { $ref: '#/$defs/P', description: 'from the use site' } },
|
|
136
|
-
}) as unknown as { properties: { a: { type: string; description: string } } }
|
|
137
|
-
|
|
138
|
-
expect(inlined.properties.a.type).toBe('string')
|
|
139
|
-
expect(inlined.properties.a.description).toBe('from the use site')
|
|
140
|
-
})
|
|
141
|
-
|
|
142
|
-
it('decodes an escaped pointer token', () => {
|
|
143
|
-
const inlined = inlineSchemaRefs({
|
|
144
|
-
$defs: { 'a/b': { type: 'number' } },
|
|
145
|
-
properties: { x: { $ref: '#/$defs/a~1b' } },
|
|
146
|
-
}) as unknown as { properties: { x: { type: string } } }
|
|
147
|
-
|
|
148
|
-
expect(inlined.properties.x.type).toBe('number')
|
|
149
|
-
})
|
|
150
|
-
})
|
|
151
|
-
|
|
152
|
-
describe('validation keywords', () => {
|
|
153
|
-
it('carries string bounds, pattern and format through', () => {
|
|
154
|
-
const rendered = render({
|
|
155
|
-
type: 'object',
|
|
156
|
-
properties: {
|
|
157
|
-
code: { type: 'string', minLength: 3, maxLength: 8, pattern: '^[A-Z]+$' },
|
|
158
|
-
contact: { type: 'string', format: 'email' },
|
|
159
|
-
},
|
|
160
|
-
})
|
|
161
|
-
|
|
162
|
-
expect(rendered.properties.code.minLength).toBe(3)
|
|
163
|
-
expect(rendered.properties.code.maxLength).toBe(8)
|
|
164
|
-
expect(rendered.properties.code.pattern).toBe('^[A-Z]+$')
|
|
165
|
-
expect(rendered.properties.contact.format).toBe('email')
|
|
166
|
-
})
|
|
167
|
-
|
|
168
|
-
it('enforces them, so a bad argument is caught before the round trip', () => {
|
|
169
|
-
const zod = mcpJsonSchemaToZod(
|
|
170
|
-
asSchema({
|
|
171
|
-
type: 'object',
|
|
172
|
-
properties: { code: { type: 'string', pattern: '^[A-Z]+$' } },
|
|
173
|
-
required: ['code'],
|
|
174
|
-
}),
|
|
175
|
-
)
|
|
176
|
-
expect(zod.safeParse({ code: 'ABC' }).success).toBe(true)
|
|
177
|
-
expect(zod.safeParse({ code: 'abc' }).success).toBe(false)
|
|
178
|
-
})
|
|
179
|
-
|
|
180
|
-
it('carries numeric bounds through', () => {
|
|
181
|
-
const rendered = render({
|
|
182
|
-
type: 'object',
|
|
183
|
-
properties: {
|
|
184
|
-
count: { type: 'integer', minimum: 1, maximum: 100, multipleOf: 5 },
|
|
185
|
-
},
|
|
186
|
-
})
|
|
187
|
-
expect(rendered.properties.count.minimum).toBe(1)
|
|
188
|
-
expect(rendered.properties.count.maximum).toBe(100)
|
|
189
|
-
expect(rendered.properties.count.multipleOf).toBe(5)
|
|
190
|
-
})
|
|
191
|
-
|
|
192
|
-
it('carries array bounds through', () => {
|
|
193
|
-
const rendered = render({
|
|
194
|
-
type: 'object',
|
|
195
|
-
properties: { tags: { type: 'array', items: { type: 'string' }, minItems: 1, maxItems: 3 } },
|
|
196
|
-
})
|
|
197
|
-
expect(rendered.properties.tags.minItems).toBe(1)
|
|
198
|
-
expect(rendered.properties.tags.maxItems).toBe(3)
|
|
199
|
-
})
|
|
200
|
-
|
|
201
|
-
it('ignores a pattern this engine cannot compile rather than failing to register', () => {
|
|
202
|
-
// A server may use a regex dialect Node's engine rejects. An
|
|
203
|
-
// unenforced pattern is a smaller loss than a tool that vanishes.
|
|
204
|
-
expect(() =>
|
|
205
|
-
render({ type: 'object', properties: { x: { type: 'string', pattern: '[a-' } } }),
|
|
206
|
-
).not.toThrow()
|
|
207
|
-
})
|
|
208
|
-
|
|
209
|
-
it('does not invent a validator for an advisory format', () => {
|
|
210
|
-
const zod = mcpJsonSchemaToZod(
|
|
211
|
-
asSchema({ type: 'object', properties: { when: { type: 'string', format: 'duration' } } }),
|
|
212
|
-
)
|
|
213
|
-
expect(zod.safeParse({ when: 'whatever the server accepts' }).success).toBe(true)
|
|
214
|
-
})
|
|
215
|
-
})
|
|
216
|
-
|
|
217
|
-
describe('allOf', () => {
|
|
218
|
-
it('is flattened into one readable shape', () => {
|
|
219
|
-
const rendered = render({
|
|
220
|
-
type: 'object',
|
|
221
|
-
allOf: [
|
|
222
|
-
{ type: 'object', properties: { id: { type: 'string' } }, required: ['id'] },
|
|
223
|
-
{ type: 'object', properties: { note: { type: 'string' } } },
|
|
224
|
-
],
|
|
225
|
-
})
|
|
226
|
-
|
|
227
|
-
expect(rendered.properties.id.type).toBe('string')
|
|
228
|
-
expect(rendered.properties.note.type).toBe('string')
|
|
229
|
-
expect(rendered.required).toEqual(['id'])
|
|
230
|
-
})
|
|
231
|
-
|
|
232
|
-
it('resolves refs inside its members', () => {
|
|
233
|
-
const rendered = render({
|
|
234
|
-
type: 'object',
|
|
235
|
-
allOf: [{ $ref: '#/$defs/Base' }],
|
|
236
|
-
$defs: { Base: { type: 'object', properties: { id: { type: 'string' } } } },
|
|
237
|
-
})
|
|
238
|
-
expect(rendered.properties.id.type).toBe('string')
|
|
239
|
-
})
|
|
240
|
-
})
|
|
241
|
-
|
|
242
|
-
describe('depth', () => {
|
|
243
|
-
it('converts a deeply nested schema without exhausting the stack', () => {
|
|
244
|
-
let node: Record<string, unknown> = { type: 'string' }
|
|
245
|
-
for (let i = 0; i < 200; i++) {
|
|
246
|
-
node = { type: 'object', properties: { next: node } }
|
|
247
|
-
}
|
|
248
|
-
expect(() => mcpJsonSchemaToZod(asSchema(node))).not.toThrow()
|
|
249
|
-
})
|
|
250
|
-
})
|