@namzu/sdk 14.0.6 → 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 +110 -0
- package/dist/public-runtime.js +2 -2
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-tools.js +1 -1
- package/dist/public-tools.js.map +1 -1
- package/dist/public-types.js +2 -2
- package/dist/public-types.js.map +1 -1
- package/dist/types/agent/lifecycle-event.d.ts +0 -13
- package/dist/types/agent/lifecycle-event.d.ts.map +1 -1
- package/dist/types/agent/task.d.ts +0 -12
- package/dist/types/agent/task.d.ts.map +1 -1
- package/dist/types/agent/task.js.map +1 -1
- package/dist/types/thread/entity.d.ts +1 -1
- package/package.json +11 -1
- package/src/public-runtime.ts +2 -2
- package/src/public-tools.ts +1 -1
- package/src/public-types.ts +2 -2
- package/src/types/agent/lifecycle-event.ts +0 -9
- package/src/types/agent/task.ts +0 -13
- package/src/types/thread/entity.ts +1 -1
- 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,247 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it, vi } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import type { TaskGateway, TaskHandle } from '../../../types/agent/gateway.js'
|
|
4
|
-
import type { TaskId } from '../../../types/ids/index.js'
|
|
5
|
-
import { describeWaitTimeout, waitForTaskWithBounds } from '../wait-with-idle-bound.js'
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A wall clock cannot tell a slow worker from a stuck one.
|
|
9
|
-
*
|
|
10
|
-
* The bound before this was an hour of elapsed time, and an hour has to do
|
|
11
|
-
* two incompatible jobs: be long enough for a child doing real work, and
|
|
12
|
-
* short enough to notice one that wedged. It cannot be both, so a worker
|
|
13
|
-
* stuck in minute two held the supervisor for another fifty-eight, and one
|
|
14
|
-
* making steady progress at minute fifty-nine was killed for being slow.
|
|
15
|
-
*
|
|
16
|
-
* These tests drive both clocks with a fake one, because the real bounds are
|
|
17
|
-
* measured in minutes and a test that actually waits them out is a test
|
|
18
|
-
* nobody runs.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
function gatewayFor(opts: {
|
|
22
|
-
/** Resolve the wait when this is called. */
|
|
23
|
-
settle?: (resolve: (h: TaskHandle) => void) => void
|
|
24
|
-
withProgress?: boolean
|
|
25
|
-
}): { gateway: TaskGateway; progress: () => void; finish: () => void } {
|
|
26
|
-
let resolveWait: ((h: TaskHandle) => void) | undefined
|
|
27
|
-
const listeners = new Set<(id: TaskId) => void>()
|
|
28
|
-
|
|
29
|
-
const handle: TaskHandle = {
|
|
30
|
-
taskId: 'tsk_1' as TaskId,
|
|
31
|
-
agentId: 'worker',
|
|
32
|
-
state: 'completed',
|
|
33
|
-
createdAt: 0,
|
|
34
|
-
completedAt: 1,
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const gateway = {
|
|
38
|
-
waitForTask: () =>
|
|
39
|
-
new Promise<TaskHandle>((resolve) => {
|
|
40
|
-
resolveWait = resolve
|
|
41
|
-
opts.settle?.(resolve)
|
|
42
|
-
}),
|
|
43
|
-
...(opts.withProgress === false
|
|
44
|
-
? {}
|
|
45
|
-
: {
|
|
46
|
-
onTaskProgress: (cb: (id: TaskId) => void) => {
|
|
47
|
-
listeners.add(cb)
|
|
48
|
-
return () => listeners.delete(cb)
|
|
49
|
-
},
|
|
50
|
-
}),
|
|
51
|
-
} as unknown as TaskGateway
|
|
52
|
-
|
|
53
|
-
return {
|
|
54
|
-
gateway,
|
|
55
|
-
progress: () => {
|
|
56
|
-
for (const cb of listeners) cb('tsk_1' as TaskId)
|
|
57
|
-
},
|
|
58
|
-
finish: () => resolveWait?.(handle),
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/** A clock the test moves by hand. */
|
|
63
|
-
function fakeClock(): { now: () => number; advance: (ms: number) => void } {
|
|
64
|
-
let t = 1_000_000
|
|
65
|
-
return {
|
|
66
|
-
now: () => t,
|
|
67
|
-
advance: (ms) => {
|
|
68
|
-
t += ms
|
|
69
|
-
},
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
describe('a worker that is still working is not killed for being slow', () => {
|
|
74
|
-
it('keeps waiting past the idle bound while progress keeps arriving', async () => {
|
|
75
|
-
vi.useFakeTimers()
|
|
76
|
-
try {
|
|
77
|
-
const clock = fakeClock()
|
|
78
|
-
const { gateway, progress, finish } = gatewayFor({})
|
|
79
|
-
|
|
80
|
-
const waiting = waitForTaskWithBounds(
|
|
81
|
-
gateway,
|
|
82
|
-
'tsk_1' as TaskId,
|
|
83
|
-
{ runMs: 60_000, idleMs: 5_000 },
|
|
84
|
-
clock.now,
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
// Four times the idle bound in elapsed time, but never quiet for
|
|
88
|
-
// more than half of it.
|
|
89
|
-
for (let i = 0; i < 8; i += 1) {
|
|
90
|
-
clock.advance(2_500)
|
|
91
|
-
progress()
|
|
92
|
-
await vi.advanceTimersByTimeAsync(1_000)
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
finish()
|
|
96
|
-
await vi.advanceTimersByTimeAsync(1_000)
|
|
97
|
-
|
|
98
|
-
expect((await waiting).kind, 'a working worker was cut off').toBe('completed')
|
|
99
|
-
} finally {
|
|
100
|
-
vi.useRealTimers()
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
})
|
|
104
|
-
|
|
105
|
-
describe('a worker that has gone quiet is reported as quiet', () => {
|
|
106
|
-
it('fires the idle bound and says which clock it was', async () => {
|
|
107
|
-
vi.useFakeTimers()
|
|
108
|
-
try {
|
|
109
|
-
const clock = fakeClock()
|
|
110
|
-
const { gateway } = gatewayFor({})
|
|
111
|
-
|
|
112
|
-
const waiting = waitForTaskWithBounds(
|
|
113
|
-
gateway,
|
|
114
|
-
'tsk_1' as TaskId,
|
|
115
|
-
{ runMs: 600_000, idleMs: 5_000 },
|
|
116
|
-
clock.now,
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
clock.advance(6_000)
|
|
120
|
-
await vi.advanceTimersByTimeAsync(1_100)
|
|
121
|
-
|
|
122
|
-
const outcome = await waiting
|
|
123
|
-
expect(outcome.kind).toBe('timeout')
|
|
124
|
-
if (outcome.kind !== 'timeout') return
|
|
125
|
-
// The distinction is the point: "went quiet" and "ran too long"
|
|
126
|
-
// are different diagnoses and the caller acts on the message.
|
|
127
|
-
expect(outcome.cause).toBe('idle')
|
|
128
|
-
expect(outcome.idleBoundArmed).toBe(true)
|
|
129
|
-
} finally {
|
|
130
|
-
vi.useRealTimers()
|
|
131
|
-
}
|
|
132
|
-
})
|
|
133
|
-
|
|
134
|
-
it('says it went quiet, and that the worker was not cancelled', () => {
|
|
135
|
-
const text = describeWaitTimeout({
|
|
136
|
-
kind: 'timeout',
|
|
137
|
-
cause: 'idle',
|
|
138
|
-
elapsedMs: 30_000,
|
|
139
|
-
idleBoundArmed: true,
|
|
140
|
-
})
|
|
141
|
-
|
|
142
|
-
expect(text).toContain('went quiet')
|
|
143
|
-
// A wait that ran out is a statement about the WAITER. Losing an
|
|
144
|
-
// eight-minute worker's output because a short clock expired is the
|
|
145
|
-
// bug this whole area has been unpicking.
|
|
146
|
-
expect(text).toContain('not been cancelled')
|
|
147
|
-
})
|
|
148
|
-
})
|
|
149
|
-
|
|
150
|
-
describe('the run bound still catches a worker that never stops', () => {
|
|
151
|
-
it('fires on elapsed time even while progress keeps arriving', async () => {
|
|
152
|
-
vi.useFakeTimers()
|
|
153
|
-
try {
|
|
154
|
-
const clock = fakeClock()
|
|
155
|
-
const { gateway, progress } = gatewayFor({})
|
|
156
|
-
|
|
157
|
-
const waiting = waitForTaskWithBounds(
|
|
158
|
-
gateway,
|
|
159
|
-
'tsk_1' as TaskId,
|
|
160
|
-
{ runMs: 10_000, idleMs: 5_000 },
|
|
161
|
-
clock.now,
|
|
162
|
-
)
|
|
163
|
-
|
|
164
|
-
for (let i = 0; i < 6; i += 1) {
|
|
165
|
-
clock.advance(2_000)
|
|
166
|
-
progress()
|
|
167
|
-
await vi.advanceTimersByTimeAsync(1_000)
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
const outcome = await waiting
|
|
171
|
-
expect(outcome.kind).toBe('timeout')
|
|
172
|
-
if (outcome.kind !== 'timeout') return
|
|
173
|
-
expect(outcome.cause).toBe('run')
|
|
174
|
-
} finally {
|
|
175
|
-
vi.useRealTimers()
|
|
176
|
-
}
|
|
177
|
-
})
|
|
178
|
-
})
|
|
179
|
-
|
|
180
|
-
describe('a gateway that cannot see its children', () => {
|
|
181
|
-
it('is bounded by the wall clock alone, as it was before', async () => {
|
|
182
|
-
vi.useFakeTimers()
|
|
183
|
-
try {
|
|
184
|
-
const clock = fakeClock()
|
|
185
|
-
const { gateway } = gatewayFor({ withProgress: false })
|
|
186
|
-
|
|
187
|
-
const waiting = waitForTaskWithBounds(
|
|
188
|
-
gateway,
|
|
189
|
-
'tsk_1' as TaskId,
|
|
190
|
-
{ runMs: 10_000, idleMs: 1_000 },
|
|
191
|
-
clock.now,
|
|
192
|
-
)
|
|
193
|
-
|
|
194
|
-
// Far past the idle bound, and it must NOT fire — there is no
|
|
195
|
-
// signal, so silence carries no information.
|
|
196
|
-
clock.advance(5_000)
|
|
197
|
-
await vi.advanceTimersByTimeAsync(1_100)
|
|
198
|
-
clock.advance(6_000)
|
|
199
|
-
await vi.advanceTimersByTimeAsync(1_100)
|
|
200
|
-
|
|
201
|
-
const outcome = await waiting
|
|
202
|
-
expect(outcome.kind).toBe('timeout')
|
|
203
|
-
if (outcome.kind !== 'timeout') return
|
|
204
|
-
expect(outcome.cause).toBe('run')
|
|
205
|
-
// And the degradation is visible rather than silent.
|
|
206
|
-
expect(outcome.idleBoundArmed).toBe(false)
|
|
207
|
-
} finally {
|
|
208
|
-
vi.useRealTimers()
|
|
209
|
-
}
|
|
210
|
-
})
|
|
211
|
-
|
|
212
|
-
it('says so, instead of implying the worker was stuck', () => {
|
|
213
|
-
const text = describeWaitTimeout({
|
|
214
|
-
kind: 'timeout',
|
|
215
|
-
cause: 'run',
|
|
216
|
-
elapsedMs: 3_600_000,
|
|
217
|
-
idleBoundArmed: false,
|
|
218
|
-
})
|
|
219
|
-
|
|
220
|
-
expect(text).toContain('cannot report progress')
|
|
221
|
-
})
|
|
222
|
-
})
|
|
223
|
-
|
|
224
|
-
describe('a completion always wins', () => {
|
|
225
|
-
it('returns the handle rather than a timeout when the task finishes first', async () => {
|
|
226
|
-
vi.useFakeTimers()
|
|
227
|
-
try {
|
|
228
|
-
const clock = fakeClock()
|
|
229
|
-
const { gateway, finish } = gatewayFor({})
|
|
230
|
-
|
|
231
|
-
const waiting = waitForTaskWithBounds(
|
|
232
|
-
gateway,
|
|
233
|
-
'tsk_1' as TaskId,
|
|
234
|
-
{ runMs: 10_000, idleMs: 5_000 },
|
|
235
|
-
clock.now,
|
|
236
|
-
)
|
|
237
|
-
|
|
238
|
-
finish()
|
|
239
|
-
await vi.advanceTimersByTimeAsync(10)
|
|
240
|
-
|
|
241
|
-
const outcome = await waiting
|
|
242
|
-
expect(outcome.kind).toBe('completed')
|
|
243
|
-
} finally {
|
|
244
|
-
vi.useRealTimers()
|
|
245
|
-
}
|
|
246
|
-
})
|
|
247
|
-
})
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import { toolsHash } from '../../../connector/mcp/policy.js'
|
|
4
|
-
import type { MCPToolDefinition } from '../../../types/connector/index.js'
|
|
5
|
-
import { mergeTokenUsage } from '../index.js'
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Arithmetic defects, each pinned by the exact counterexample that proves it.
|
|
9
|
-
* A test here is only worth having if it fails against the old formula, so
|
|
10
|
-
* every one names the number the old code produced.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
describe('mergeTokenUsage — totalTokens is derived, not independent', () => {
|
|
14
|
-
it('does not lose the completion tokens Anthropic reports in a later frame', () => {
|
|
15
|
-
// A driver reports the input on `message_start` and the output on
|
|
16
|
-
// `message_delta`. The driver derives each frame's own total as
|
|
17
|
-
// input+output, so the two frames carry 1200 and 350 — and a max of
|
|
18
|
-
// those returns the larger COMPONENT, not the sum.
|
|
19
|
-
const messageStart = {
|
|
20
|
-
promptTokens: 1200,
|
|
21
|
-
completionTokens: 0,
|
|
22
|
-
totalTokens: 1200,
|
|
23
|
-
cachedTokens: 0,
|
|
24
|
-
cacheWriteTokens: 0,
|
|
25
|
-
}
|
|
26
|
-
const messageDelta = {
|
|
27
|
-
promptTokens: 0,
|
|
28
|
-
completionTokens: 350,
|
|
29
|
-
totalTokens: 350,
|
|
30
|
-
cachedTokens: 0,
|
|
31
|
-
cacheWriteTokens: 0,
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const merged = mergeTokenUsage(messageStart, messageDelta)
|
|
35
|
-
|
|
36
|
-
expect(merged.promptTokens).toBe(1200)
|
|
37
|
-
expect(merged.completionTokens).toBe(350)
|
|
38
|
-
// Old formula: Math.max(1200, 350) = 1200. Every completion token was
|
|
39
|
-
// invisible to the budget hard stop, which reads only totalTokens.
|
|
40
|
-
expect(merged.totalTokens).toBe(1550)
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
it('holds for the minimal case too', () => {
|
|
44
|
-
const a = {
|
|
45
|
-
promptTokens: 1,
|
|
46
|
-
completionTokens: 0,
|
|
47
|
-
totalTokens: 1,
|
|
48
|
-
cachedTokens: 0,
|
|
49
|
-
cacheWriteTokens: 0,
|
|
50
|
-
}
|
|
51
|
-
const b = {
|
|
52
|
-
promptTokens: 0,
|
|
53
|
-
completionTokens: 1,
|
|
54
|
-
totalTokens: 1,
|
|
55
|
-
cachedTokens: 0,
|
|
56
|
-
cacheWriteTokens: 0,
|
|
57
|
-
}
|
|
58
|
-
expect(mergeTokenUsage(a, b).totalTokens).toBe(2)
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
it('never under-reports a provider total that exceeds prompt + completion', () => {
|
|
62
|
-
// Some providers count tokens the two components do not cover. The
|
|
63
|
-
// merge must be monotone: it may never return less than what was
|
|
64
|
-
// reported.
|
|
65
|
-
const reported = {
|
|
66
|
-
promptTokens: 10,
|
|
67
|
-
completionTokens: 5,
|
|
68
|
-
totalTokens: 99,
|
|
69
|
-
cachedTokens: 0,
|
|
70
|
-
cacheWriteTokens: 0,
|
|
71
|
-
}
|
|
72
|
-
const empty = {
|
|
73
|
-
promptTokens: 0,
|
|
74
|
-
completionTokens: 0,
|
|
75
|
-
totalTokens: 0,
|
|
76
|
-
cachedTokens: 0,
|
|
77
|
-
cacheWriteTokens: 0,
|
|
78
|
-
}
|
|
79
|
-
expect(mergeTokenUsage(reported, empty).totalTokens).toBe(99)
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
it('is idempotent, so re-merging a frame cannot inflate the total', () => {
|
|
83
|
-
const usage = {
|
|
84
|
-
promptTokens: 1200,
|
|
85
|
-
completionTokens: 350,
|
|
86
|
-
totalTokens: 1550,
|
|
87
|
-
cachedTokens: 0,
|
|
88
|
-
cacheWriteTokens: 0,
|
|
89
|
-
}
|
|
90
|
-
expect(mergeTokenUsage(usage, usage).totalTokens).toBe(1550)
|
|
91
|
-
expect(mergeTokenUsage(mergeTokenUsage(usage, usage), usage).totalTokens).toBe(1550)
|
|
92
|
-
})
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
describe('toolsHash — the fingerprint covers what the HITL gate reads', () => {
|
|
96
|
-
const tool = (annotations?: Record<string, unknown>): MCPToolDefinition =>
|
|
97
|
-
({
|
|
98
|
-
name: 'delete_rows',
|
|
99
|
-
description: 'Delete rows',
|
|
100
|
-
inputSchema: { type: 'object', properties: {} },
|
|
101
|
-
...(annotations ? { annotations } : {}),
|
|
102
|
-
}) as MCPToolDefinition
|
|
103
|
-
|
|
104
|
-
it('notices a server flipping destructive to read-only', () => {
|
|
105
|
-
// `annotations` becomes `isDestructive` / `isReadOnly` on the tool
|
|
106
|
-
// definition, and those drive whether a human reviews the call. A
|
|
107
|
-
// fingerprint that ignores them cannot see the exact rug-pull it was
|
|
108
|
-
// built to catch: same name, same schema, no longer reviewed.
|
|
109
|
-
const before = toolsHash([tool({ destructiveHint: true, readOnlyHint: false })])
|
|
110
|
-
const after = toolsHash([tool({ destructiveHint: false, readOnlyHint: true })])
|
|
111
|
-
expect(after).not.toBe(before)
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
it('notices annotations appearing where there were none', () => {
|
|
115
|
-
expect(toolsHash([tool()])).not.toBe(toolsHash([tool({ readOnlyHint: true })]))
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
it('is still stable for an unchanged tool', () => {
|
|
119
|
-
expect(toolsHash([tool({ destructiveHint: true })])).toBe(
|
|
120
|
-
toolsHash([tool({ destructiveHint: true })]),
|
|
121
|
-
)
|
|
122
|
-
})
|
|
123
|
-
})
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import { type TokenUsage, accumulateTokenUsage, mergeTokenUsage } from './index.js'
|
|
4
|
-
|
|
5
|
-
const zero: TokenUsage = {
|
|
6
|
-
promptTokens: 0,
|
|
7
|
-
completionTokens: 0,
|
|
8
|
-
totalTokens: 0,
|
|
9
|
-
cachedTokens: 0,
|
|
10
|
-
cacheWriteTokens: 0,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* M7: within one streamed turn, usage frames are cumulative/monotonic but a
|
|
15
|
-
* late frame may omit fields. `mergeTokenUsage` keeps the per-field high-water
|
|
16
|
-
* mark so a trailing output-only frame does not zero the earlier prompt/cache
|
|
17
|
-
* counts (the under-report the audit flagged).
|
|
18
|
-
*/
|
|
19
|
-
describe('mergeTokenUsage (within-turn, per-field max)', () => {
|
|
20
|
-
it('preserves prompt/cache tokens when a later frame reports only output', () => {
|
|
21
|
-
// message_start-like frame: input + cache set, output still 0.
|
|
22
|
-
const early: TokenUsage = {
|
|
23
|
-
...zero,
|
|
24
|
-
promptTokens: 1200,
|
|
25
|
-
cachedTokens: 800,
|
|
26
|
-
cacheWriteTokens: 200,
|
|
27
|
-
}
|
|
28
|
-
// message_delta-like frame: only output tokens, input/cache dropped to 0.
|
|
29
|
-
const lateOutputOnly: TokenUsage = { ...zero, completionTokens: 350 }
|
|
30
|
-
|
|
31
|
-
const merged = mergeTokenUsage(early, lateOutputOnly)
|
|
32
|
-
expect(merged.promptTokens).toBe(1200) // NOT zeroed by the late frame
|
|
33
|
-
expect(merged.cachedTokens).toBe(800)
|
|
34
|
-
expect(merged.cacheWriteTokens).toBe(200)
|
|
35
|
-
expect(merged.completionTokens).toBe(350)
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
it('takes the growing (max) completion count across frames', () => {
|
|
39
|
-
const a: TokenUsage = { ...zero, promptTokens: 100, completionTokens: 10 }
|
|
40
|
-
const b: TokenUsage = { ...zero, promptTokens: 100, completionTokens: 42 }
|
|
41
|
-
expect(mergeTokenUsage(a, b).completionTokens).toBe(42)
|
|
42
|
-
// Order-independent (a late smaller frame never regresses the max).
|
|
43
|
-
expect(mergeTokenUsage(b, a).completionTokens).toBe(42)
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
it('is distinct from accumulateTokenUsage (which sums across turns)', () => {
|
|
47
|
-
const t1: TokenUsage = { ...zero, promptTokens: 100, completionTokens: 20 }
|
|
48
|
-
const t2: TokenUsage = { ...zero, promptTokens: 100, completionTokens: 30 }
|
|
49
|
-
// merge = max within a turn; accumulate = sum across turns.
|
|
50
|
-
expect(mergeTokenUsage(t1, t2).promptTokens).toBe(100)
|
|
51
|
-
expect(accumulateTokenUsage(t1, t2).promptTokens).toBe(200)
|
|
52
|
-
})
|
|
53
|
-
})
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import { ProviderError } from '../../provider/errors.js'
|
|
4
|
-
import { DEFAULT_ERROR_RULES, explainError, factsOf, readHint, withHint } from '../catalog.js'
|
|
5
|
-
import { NamzuError } from '../index.js'
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A failure surfaced as whatever prose the vendor SDK happened to write:
|
|
9
|
-
* no stable id to grep in logs, no instruction on what to change, and no
|
|
10
|
-
* growth point — a newly-observed failure shape could only be given
|
|
11
|
-
* curated copy by editing the classifier itself.
|
|
12
|
-
*
|
|
13
|
-
* Classification and remediation are separate jobs. The first is
|
|
14
|
-
* structural and belongs at the boundary; the second is editorial and
|
|
15
|
-
* belongs in a list a human appends to. `DoctorCheckResult` already
|
|
16
|
-
* carried `message` and `remediation` as separate fields — `namzu doctor`
|
|
17
|
-
* was simply the only surface that got either.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
const providerError = (code: string, status?: number) =>
|
|
21
|
-
new ProviderError({
|
|
22
|
-
code: code as never,
|
|
23
|
-
message: 'the vendor wrote this',
|
|
24
|
-
providerId: 'test',
|
|
25
|
-
...(status !== undefined ? { status } : {}),
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
describe('explaining a failure', () => {
|
|
29
|
-
it('gives a stale key an id and something to do about it', () => {
|
|
30
|
-
const explanation = explainError(providerError('auth', 401))
|
|
31
|
-
|
|
32
|
-
expect(explanation?.id).toBe('provider.auth')
|
|
33
|
-
expect(explanation?.hint).toMatch(/API key/)
|
|
34
|
-
// Not the vendor's sentence: the point is copy an operator can act
|
|
35
|
-
// on, keyed by an id they can grep for.
|
|
36
|
-
expect(explanation?.message).not.toContain('the vendor wrote this')
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
it('separates a permission failure from an authentication one', () => {
|
|
40
|
-
// The provider codes collapse 401 and 403, but the two call for
|
|
41
|
-
// different actions and the status still tells them apart.
|
|
42
|
-
expect(explainError(providerError('auth', 403))?.id).toBe('provider.permission')
|
|
43
|
-
expect(explainError(providerError('auth', 401))?.id).toBe('provider.auth')
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
it('recognises the failures an operator hits first', () => {
|
|
47
|
-
expect(explainError(providerError('rate_limit', 429))?.id).toBe('provider.rate_limit')
|
|
48
|
-
expect(explainError(providerError('context_length_exceeded'))?.id).toBe(
|
|
49
|
-
'provider.context_overflow',
|
|
50
|
-
)
|
|
51
|
-
expect(explainError(providerError('overloaded', 529))?.id).toBe('provider.unavailable')
|
|
52
|
-
expect(explainError(providerError('network'))?.id).toBe('provider.network')
|
|
53
|
-
expect(explainError(providerError('not_found', 404))?.id).toBe('provider.model_not_found')
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
it('says nothing rather than inventing advice', () => {
|
|
57
|
-
// A generic fallback would send the reader somewhere specific and
|
|
58
|
-
// wrong, which is worse than admitting the failure is unfamiliar.
|
|
59
|
-
expect(explainError(new Error('something nobody has characterised'))).toBeNull()
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
it('matches on structure, not on vendor prose', () => {
|
|
63
|
-
// Vendor copy changes without warning and differs per SDK version,
|
|
64
|
-
// so a rule keyed to it silently stops matching.
|
|
65
|
-
const reworded = providerError('rate_limit', 429)
|
|
66
|
-
Object.defineProperty(reworded, 'message', { value: 'completely different wording' })
|
|
67
|
-
expect(explainError(reworded)?.id).toBe('provider.rate_limit')
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
it('takes the first matching rule, so a rule can be as specific as it likes', () => {
|
|
71
|
-
const ids = DEFAULT_ERROR_RULES.map((rule) => rule.id)
|
|
72
|
-
expect(ids.indexOf('provider.permission')).toBeLessThan(ids.indexOf('provider.auth'))
|
|
73
|
-
})
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
describe('a hint attached where the failure was raised', () => {
|
|
77
|
-
it('wins over a rule matched on a status code', () => {
|
|
78
|
-
// Code that raised the failure knows more about it than a generic
|
|
79
|
-
// rule ever will — a container that has not been built, a daemon
|
|
80
|
-
// that is not running.
|
|
81
|
-
const err = withHint(providerError('rate_limit', 429), 'the sandbox worker is not running')
|
|
82
|
-
const explanation = explainError(err)
|
|
83
|
-
|
|
84
|
-
expect(explanation?.id).toBe('hint.from_throw_site')
|
|
85
|
-
expect(explanation?.hint).toBe('the sandbox worker is not running')
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
it('survives being read back off a plain throwable', () => {
|
|
89
|
-
expect(readHint(withHint(new Error('boom'), 'check the socket path'))).toBe(
|
|
90
|
-
'check the socket path',
|
|
91
|
-
)
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
it('does not change the message or the type', () => {
|
|
95
|
-
// Baking remediation into the message is what made it impossible to
|
|
96
|
-
// separate again — a surface could not render one without the other.
|
|
97
|
-
const original = new NamzuError({ code: 'storage_error', message: 'write failed' })
|
|
98
|
-
const hinted = withHint(original, 'the run directory is not writable')
|
|
99
|
-
|
|
100
|
-
expect(hinted).toBe(original)
|
|
101
|
-
expect(hinted.message).toBe('write failed')
|
|
102
|
-
expect(hinted instanceof NamzuError).toBe(true)
|
|
103
|
-
})
|
|
104
|
-
|
|
105
|
-
it('is not enumerable, so it cannot leak into a serialized error', () => {
|
|
106
|
-
const err = withHint(new Error('boom'), 'a hint')
|
|
107
|
-
expect(Object.keys(err)).not.toContain('hint')
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
it('ignores an empty or non-string hint', () => {
|
|
111
|
-
expect(readHint(withHint(new Error('boom'), ''))).toBeUndefined()
|
|
112
|
-
expect(readHint({ hint: 42 })).toBeUndefined()
|
|
113
|
-
expect(readHint(null)).toBeUndefined()
|
|
114
|
-
})
|
|
115
|
-
})
|
|
116
|
-
|
|
117
|
-
describe('the facts a rule matches on', () => {
|
|
118
|
-
it('reads a provider classification', () => {
|
|
119
|
-
const facts = factsOf(providerError('rate_limit', 429))
|
|
120
|
-
expect(facts).toMatchObject({ code: 'rate_limit', status: 429 })
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
it('reads a namzu code', () => {
|
|
124
|
-
expect(factsOf(new NamzuError({ code: 'tool_error', message: 'x' })).code).toBe('tool_error')
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
it('still produces facts for something that was never an Error', () => {
|
|
128
|
-
expect(factsOf('just a string').message).toBe('just a string')
|
|
129
|
-
})
|
|
130
|
-
})
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import { ProviderError } from '../../provider/errors.js'
|
|
4
|
-
import { NamzuError, isNamzuError, toPlatformError } from '../index.js'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* `PlatformError` was declared and never constructed — a shape nothing
|
|
8
|
-
* produced and nothing consumed — while the runtime threw bare `Error`
|
|
9
|
-
* everywhere. A caller catching a failure from `query()` could not tell
|
|
10
|
-
* "the model rate-limited us" from "the run was configured wrong" from
|
|
11
|
-
* "that checkpoint does not exist". Matching on message text was the only
|
|
12
|
-
* recourse, and message text is not an interface.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
describe('NamzuError', () => {
|
|
16
|
-
it('is an Error, so code that only knows about Error still works', () => {
|
|
17
|
-
const err = new NamzuError({ code: 'invalid_config', message: 'no model' })
|
|
18
|
-
expect(err).toBeInstanceOf(Error)
|
|
19
|
-
expect(err.message).toBe('no model')
|
|
20
|
-
expect(err.stack).toBeDefined()
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
it('preserves the cause chain', () => {
|
|
24
|
-
const root = new Error('ENOENT')
|
|
25
|
-
const err = new NamzuError({ code: 'storage_error', message: 'write failed', cause: root })
|
|
26
|
-
expect(err.cause).toBe(root)
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
it('defaults `retryable` per code, and lets a caller override it', () => {
|
|
30
|
-
expect(new NamzuError({ code: 'invalid_config', message: 'x' }).retryable).toBe(false)
|
|
31
|
-
expect(new NamzuError({ code: 'storage_error', message: 'x' }).retryable).toBe(true)
|
|
32
|
-
expect(
|
|
33
|
-
new NamzuError({ code: 'invalid_config', message: 'x', retryable: true }).retryable,
|
|
34
|
-
).toBe(true)
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
it('narrows through `isNamzuError`', () => {
|
|
38
|
-
expect(isNamzuError(new NamzuError({ code: 'unknown', message: 'x' }))).toBe(true)
|
|
39
|
-
expect(isNamzuError(new Error('x'))).toBe(false)
|
|
40
|
-
expect(isNamzuError('x')).toBe(false)
|
|
41
|
-
})
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
describe('toPlatformError', () => {
|
|
45
|
-
it('gives a host ONE shape regardless of what was thrown', () => {
|
|
46
|
-
// Which is the entire point: without this, "handle errors from the
|
|
47
|
-
// SDK" means writing the same instanceof ladder in every caller.
|
|
48
|
-
for (const thrown of [
|
|
49
|
-
new NamzuError({ code: 'plugin_error', message: 'a' }),
|
|
50
|
-
new ProviderError({ code: 'rate_limit', message: 'b' }),
|
|
51
|
-
new Error('c'),
|
|
52
|
-
'not even an error',
|
|
53
|
-
]) {
|
|
54
|
-
const platform = toPlatformError(thrown)
|
|
55
|
-
expect(typeof platform.code).toBe('string')
|
|
56
|
-
expect(typeof platform.message).toBe('string')
|
|
57
|
-
expect(typeof platform.retryable).toBe('boolean')
|
|
58
|
-
}
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
it('carries a NamzuError through unchanged', () => {
|
|
62
|
-
const err = new NamzuError({
|
|
63
|
-
code: 'not_found',
|
|
64
|
-
message: 'Checkpoint not found: cp_1',
|
|
65
|
-
details: { checkpointId: 'cp_1' },
|
|
66
|
-
})
|
|
67
|
-
expect(toPlatformError(err)).toEqual({
|
|
68
|
-
code: 'not_found',
|
|
69
|
-
message: 'Checkpoint not found: cp_1',
|
|
70
|
-
details: { checkpointId: 'cp_1' },
|
|
71
|
-
retryable: false,
|
|
72
|
-
})
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
it('keeps a ProviderError`s classification instead of recomputing it', () => {
|
|
76
|
-
// The provider taxonomy already knows things this one does not —
|
|
77
|
-
// which status codes back off, what the server asked for.
|
|
78
|
-
const err = new ProviderError({
|
|
79
|
-
code: 'rate_limit',
|
|
80
|
-
message: 'slow down',
|
|
81
|
-
providerId: 'anthropic',
|
|
82
|
-
status: 429,
|
|
83
|
-
retryAfterMs: 3_000,
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
-
expect(toPlatformError(err)).toEqual({
|
|
87
|
-
code: 'provider_error',
|
|
88
|
-
message: 'slow down',
|
|
89
|
-
details: {
|
|
90
|
-
providerCode: 'rate_limit',
|
|
91
|
-
providerId: 'anthropic',
|
|
92
|
-
status: 429,
|
|
93
|
-
retryAfterMs: 3_000,
|
|
94
|
-
},
|
|
95
|
-
retryable: true,
|
|
96
|
-
})
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
it('does not claim a non-retryable provider failure is retryable', () => {
|
|
100
|
-
const err = new ProviderError({ code: 'auth', message: 'bad key' })
|
|
101
|
-
expect(toPlatformError(err).retryable).toBe(false)
|
|
102
|
-
})
|
|
103
|
-
|
|
104
|
-
it('reports a plain Error honestly as `unknown` rather than guessing', () => {
|
|
105
|
-
expect(toPlatformError(new Error('something broke'))).toEqual({
|
|
106
|
-
code: 'unknown',
|
|
107
|
-
message: 'something broke',
|
|
108
|
-
retryable: false,
|
|
109
|
-
})
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
it('does not lose a thrown non-Error', () => {
|
|
113
|
-
// Rare, and usually a bug elsewhere — but dropping it is worse than
|
|
114
|
-
// reporting it as-is.
|
|
115
|
-
expect(toPlatformError({ weird: true }).message).toBe('[object Object]')
|
|
116
|
-
expect(toPlatformError(undefined).message).toBe('undefined')
|
|
117
|
-
})
|
|
118
|
-
})
|