@namzu/sdk 14.0.7 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +187 -0
- package/dist/public-runtime.d.ts +1 -0
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +5 -0
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-types.d.ts +1 -0
- package/dist/public-types.d.ts.map +1 -1
- package/dist/skills/loader.d.ts.map +1 -1
- package/dist/skills/loader.js +70 -112
- package/dist/skills/loader.js.map +1 -1
- package/dist/types/agent/lifecycle-event.d.ts +0 -13
- package/dist/types/agent/lifecycle-event.d.ts.map +1 -1
- package/dist/types/agent/task.d.ts +0 -12
- package/dist/types/agent/task.d.ts.map +1 -1
- package/dist/types/agent/task.js.map +1 -1
- package/dist/utils/frontmatter.d.ts +85 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +191 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/package.json +11 -1
- package/src/public-runtime.ts +5 -0
- package/src/public-types.ts +1 -0
- package/src/skills/loader.ts +67 -119
- package/src/types/agent/lifecycle-event.ts +0 -9
- package/src/types/agent/task.ts +0 -13
- package/src/utils/frontmatter.ts +240 -0
- package/dist/__tests__/default-path-conformance.test.d.ts +0 -2
- package/dist/__tests__/default-path-conformance.test.d.ts.map +0 -1
- package/dist/__tests__/default-path-conformance.test.js +0 -262
- package/dist/__tests__/default-path-conformance.test.js.map +0 -1
- package/dist/__tests__/replay-public-surface.test.d.ts +0 -2
- package/dist/__tests__/replay-public-surface.test.d.ts.map +0 -1
- package/dist/__tests__/replay-public-surface.test.js +0 -45
- package/dist/__tests__/replay-public-surface.test.js.map +0 -1
- package/dist/__tests__/shipped-defaults.test.d.ts +0 -2
- package/dist/__tests__/shipped-defaults.test.d.ts.map +0 -1
- package/dist/__tests__/shipped-defaults.test.js +0 -97
- package/dist/__tests__/shipped-defaults.test.js.map +0 -1
- package/dist/advisory/__tests__/budget-enforcement.test.d.ts +0 -2
- package/dist/advisory/__tests__/budget-enforcement.test.d.ts.map +0 -1
- package/dist/advisory/__tests__/budget-enforcement.test.js +0 -159
- package/dist/advisory/__tests__/budget-enforcement.test.js.map +0 -1
- package/dist/advisory/__tests__/consultation-context.test.d.ts +0 -2
- package/dist/advisory/__tests__/consultation-context.test.d.ts.map +0 -1
- package/dist/advisory/__tests__/consultation-context.test.js +0 -124
- package/dist/advisory/__tests__/consultation-context.test.js.map +0 -1
- package/dist/advisory/__tests__/structured-response.test.d.ts +0 -2
- package/dist/advisory/__tests__/structured-response.test.d.ts.map +0 -1
- package/dist/advisory/__tests__/structured-response.test.js +0 -99
- package/dist/advisory/__tests__/structured-response.test.js.map +0 -1
- package/dist/advisory/context.test.d.ts +0 -16
- package/dist/advisory/context.test.d.ts.map +0 -1
- package/dist/advisory/context.test.js +0 -92
- package/dist/advisory/context.test.js.map +0 -1
- package/dist/advisory/evaluator.test.d.ts +0 -34
- package/dist/advisory/evaluator.test.d.ts.map +0 -1
- package/dist/advisory/evaluator.test.js +0 -172
- package/dist/advisory/evaluator.test.js.map +0 -1
- package/dist/advisory/executor.test.d.ts +0 -38
- package/dist/advisory/executor.test.d.ts.map +0 -1
- package/dist/advisory/executor.test.js +0 -262
- package/dist/advisory/executor.test.js.map +0 -1
- package/dist/advisory/registry.test.d.ts +0 -16
- package/dist/advisory/registry.test.d.ts.map +0 -1
- package/dist/advisory/registry.test.js +0 -62
- package/dist/advisory/registry.test.js.map +0 -1
- package/dist/agents/__tests__/a-policy-nobody-can-select.test.d.ts +0 -2
- package/dist/agents/__tests__/a-policy-nobody-can-select.test.d.ts.map +0 -1
- package/dist/agents/__tests__/a-policy-nobody-can-select.test.js +0 -177
- package/dist/agents/__tests__/a-policy-nobody-can-select.test.js.map +0 -1
- package/dist/agents/__tests__/idempotency-key.test.d.ts +0 -2
- package/dist/agents/__tests__/idempotency-key.test.d.ts.map +0 -1
- package/dist/agents/__tests__/idempotency-key.test.js +0 -149
- package/dist/agents/__tests__/idempotency-key.test.js.map +0 -1
- package/dist/agents/__tests__/invocation-lock.test.d.ts +0 -2
- package/dist/agents/__tests__/invocation-lock.test.d.ts.map +0 -1
- package/dist/agents/__tests__/invocation-lock.test.js +0 -126
- package/dist/agents/__tests__/invocation-lock.test.js.map +0 -1
- package/dist/agents/__tests__/lock.test.d.ts +0 -2
- package/dist/agents/__tests__/lock.test.d.ts.map +0 -1
- package/dist/agents/__tests__/lock.test.js +0 -131
- package/dist/agents/__tests__/lock.test.js.map +0 -1
- package/dist/agents/__tests__/reachability.test.d.ts +0 -2
- package/dist/agents/__tests__/reachability.test.d.ts.map +0 -1
- package/dist/agents/__tests__/reachability.test.js +0 -173
- package/dist/agents/__tests__/reachability.test.js.map +0 -1
- package/dist/agents/__tests__/run-agent-forwarding.test.d.ts +0 -2
- package/dist/agents/__tests__/run-agent-forwarding.test.d.ts.map +0 -1
- package/dist/agents/__tests__/run-agent-forwarding.test.js +0 -76
- package/dist/agents/__tests__/run-agent-forwarding.test.js.map +0 -1
- package/dist/agents/__tests__/run-agent.test.d.ts +0 -2
- package/dist/agents/__tests__/run-agent.test.d.ts.map +0 -1
- package/dist/agents/__tests__/run-agent.test.js +0 -143
- package/dist/agents/__tests__/run-agent.test.js.map +0 -1
- package/dist/agents/__tests__/run-completed-stop-reason.test.d.ts +0 -2
- package/dist/agents/__tests__/run-completed-stop-reason.test.d.ts.map +0 -1
- package/dist/agents/__tests__/run-completed-stop-reason.test.js +0 -50
- package/dist/agents/__tests__/run-completed-stop-reason.test.js.map +0 -1
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.d.ts +0 -2
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.d.ts.map +0 -1
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.js +0 -153
- package/dist/agents/__tests__/supervisor-coordinator-registration.test.js.map +0 -1
- package/dist/agents/__tests__/supervisor-hands-down-hitl.test.d.ts +0 -2
- package/dist/agents/__tests__/supervisor-hands-down-hitl.test.d.ts.map +0 -1
- package/dist/agents/__tests__/supervisor-hands-down-hitl.test.js +0 -112
- package/dist/agents/__tests__/supervisor-hands-down-hitl.test.js.map +0 -1
- package/dist/agents/__tests__/supervisor-inbox-scope.test.d.ts +0 -2
- package/dist/agents/__tests__/supervisor-inbox-scope.test.d.ts.map +0 -1
- package/dist/agents/__tests__/supervisor-inbox-scope.test.js +0 -125
- package/dist/agents/__tests__/supervisor-inbox-scope.test.js.map +0 -1
- package/dist/agents/__tests__/supervisor-ledger.test.d.ts +0 -2
- package/dist/agents/__tests__/supervisor-ledger.test.d.ts.map +0 -1
- package/dist/agents/__tests__/supervisor-ledger.test.js +0 -131
- package/dist/agents/__tests__/supervisor-ledger.test.js.map +0 -1
- package/dist/bridge/a2a/__tests__/project-is-the-a2a-context.test.d.ts +0 -2
- package/dist/bridge/a2a/__tests__/project-is-the-a2a-context.test.d.ts.map +0 -1
- package/dist/bridge/a2a/__tests__/project-is-the-a2a-context.test.js +0 -55
- package/dist/bridge/a2a/__tests__/project-is-the-a2a-context.test.js.map +0 -1
- package/dist/bridge/a2a/agent-card.test.d.ts +0 -24
- package/dist/bridge/a2a/agent-card.test.d.ts.map +0 -1
- package/dist/bridge/a2a/agent-card.test.js +0 -118
- package/dist/bridge/a2a/agent-card.test.js.map +0 -1
- package/dist/bridge/a2a/late-events.test.d.ts +0 -2
- package/dist/bridge/a2a/late-events.test.d.ts.map +0 -1
- package/dist/bridge/a2a/late-events.test.js +0 -70
- package/dist/bridge/a2a/late-events.test.js.map +0 -1
- package/dist/bridge/a2a/mapper.test.d.ts +0 -29
- package/dist/bridge/a2a/mapper.test.d.ts.map +0 -1
- package/dist/bridge/a2a/mapper.test.js +0 -291
- package/dist/bridge/a2a/mapper.test.js.map +0 -1
- package/dist/bridge/a2a/message.test.d.ts +0 -20
- package/dist/bridge/a2a/message.test.d.ts.map +0 -1
- package/dist/bridge/a2a/message.test.js +0 -116
- package/dist/bridge/a2a/message.test.js.map +0 -1
- package/dist/bridge/a2a/task.test.d.ts +0 -29
- package/dist/bridge/a2a/task.test.d.ts.map +0 -1
- package/dist/bridge/a2a/task.test.js +0 -198
- package/dist/bridge/a2a/task.test.js.map +0 -1
- package/dist/bridge/mcp/connector/adapter.test.d.ts +0 -27
- package/dist/bridge/mcp/connector/adapter.test.d.ts.map +0 -1
- package/dist/bridge/mcp/connector/adapter.test.js +0 -203
- package/dist/bridge/mcp/connector/adapter.test.js.map +0 -1
- package/dist/bridge/sse/late-events.test.d.ts +0 -2
- package/dist/bridge/sse/late-events.test.d.ts.map +0 -1
- package/dist/bridge/sse/late-events.test.js +0 -163
- package/dist/bridge/sse/late-events.test.js.map +0 -1
- package/dist/bridge/sse/mapper.test.d.ts +0 -27
- package/dist/bridge/sse/mapper.test.d.ts.map +0 -1
- package/dist/bridge/sse/mapper.test.js +0 -378
- package/dist/bridge/sse/mapper.test.js.map +0 -1
- package/dist/bridge/tools/connector/adapter.test.d.ts +0 -28
- package/dist/bridge/tools/connector/adapter.test.d.ts.map +0 -1
- package/dist/bridge/tools/connector/adapter.test.js +0 -182
- package/dist/bridge/tools/connector/adapter.test.js.map +0 -1
- package/dist/bridge/tools/connector/definitions.test.d.ts +0 -23
- package/dist/bridge/tools/connector/definitions.test.d.ts.map +0 -1
- package/dist/bridge/tools/connector/definitions.test.js +0 -158
- package/dist/bridge/tools/connector/definitions.test.js.map +0 -1
- package/dist/bridge/tools/connector/router.test.d.ts +0 -21
- package/dist/bridge/tools/connector/router.test.d.ts.map +0 -1
- package/dist/bridge/tools/connector/router.test.js +0 -139
- package/dist/bridge/tools/connector/router.test.js.map +0 -1
- package/dist/bus/breaker.test.d.ts +0 -41
- package/dist/bus/breaker.test.d.ts.map +0 -1
- package/dist/bus/breaker.test.js +0 -242
- package/dist/bus/breaker.test.js.map +0 -1
- package/dist/bus/index.test.d.ts +0 -25
- package/dist/bus/index.test.d.ts.map +0 -1
- package/dist/bus/index.test.js +0 -151
- package/dist/bus/index.test.js.map +0 -1
- package/dist/bus/lock.test.d.ts +0 -44
- package/dist/bus/lock.test.d.ts.map +0 -1
- package/dist/bus/lock.test.js +0 -226
- package/dist/bus/lock.test.js.map +0 -1
- package/dist/bus/ownership.test.d.ts +0 -26
- package/dist/bus/ownership.test.d.ts.map +0 -1
- package/dist/bus/ownership.test.js +0 -205
- package/dist/bus/ownership.test.js.map +0 -1
- package/dist/compaction/__tests__/SlidingWindowManager.test.d.ts +0 -2
- package/dist/compaction/__tests__/SlidingWindowManager.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/SlidingWindowManager.test.js +0 -113
- package/dist/compaction/__tests__/SlidingWindowManager.test.js.map +0 -1
- package/dist/compaction/__tests__/cleared-result-recovery.test.d.ts +0 -2
- package/dist/compaction/__tests__/cleared-result-recovery.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/cleared-result-recovery.test.js +0 -101
- package/dist/compaction/__tests__/cleared-result-recovery.test.js.map +0 -1
- package/dist/compaction/__tests__/context-reducer.test.d.ts +0 -2
- package/dist/compaction/__tests__/context-reducer.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/context-reducer.test.js +0 -197
- package/dist/compaction/__tests__/context-reducer.test.js.map +0 -1
- package/dist/compaction/__tests__/context-window.test.d.ts +0 -2
- package/dist/compaction/__tests__/context-window.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/context-window.test.js +0 -62
- package/dist/compaction/__tests__/context-window.test.js.map +0 -1
- package/dist/compaction/__tests__/dangling.test.d.ts +0 -2
- package/dist/compaction/__tests__/dangling.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/dangling.test.js +0 -367
- package/dist/compaction/__tests__/dangling.test.js.map +0 -1
- package/dist/compaction/__tests__/factory.test.d.ts +0 -2
- package/dist/compaction/__tests__/factory.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/factory.test.js +0 -43
- package/dist/compaction/__tests__/factory.test.js.map +0 -1
- package/dist/compaction/__tests__/lossiness.test.d.ts +0 -2
- package/dist/compaction/__tests__/lossiness.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/lossiness.test.js +0 -163
- package/dist/compaction/__tests__/lossiness.test.js.map +0 -1
- package/dist/compaction/__tests__/state-across-resume.test.d.ts +0 -2
- package/dist/compaction/__tests__/state-across-resume.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/state-across-resume.test.js +0 -88
- package/dist/compaction/__tests__/state-across-resume.test.js.map +0 -1
- package/dist/compaction/__tests__/tool-result-editing.test.d.ts +0 -2
- package/dist/compaction/__tests__/tool-result-editing.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/tool-result-editing.test.js +0 -184
- package/dist/compaction/__tests__/tool-result-editing.test.js.map +0 -1
- package/dist/compaction/__tests__/trim-opens-on-user.test.d.ts +0 -2
- package/dist/compaction/__tests__/trim-opens-on-user.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/trim-opens-on-user.test.js +0 -109
- package/dist/compaction/__tests__/trim-opens-on-user.test.js.map +0 -1
- package/dist/compaction/__tests__/verifier-empty-reply.test.d.ts +0 -12
- package/dist/compaction/__tests__/verifier-empty-reply.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/verifier-empty-reply.test.js +0 -73
- package/dist/compaction/__tests__/verifier-empty-reply.test.js.map +0 -1
- package/dist/compaction/__tests__/verifier-model.test.d.ts +0 -2
- package/dist/compaction/__tests__/verifier-model.test.d.ts.map +0 -1
- package/dist/compaction/__tests__/verifier-model.test.js +0 -58
- package/dist/compaction/__tests__/verifier-model.test.js.map +0 -1
- package/dist/config/__tests__/compaction-budget-schema.test.d.ts +0 -18
- package/dist/config/__tests__/compaction-budget-schema.test.d.ts.map +0 -1
- package/dist/config/__tests__/compaction-budget-schema.test.js +0 -96
- package/dist/config/__tests__/compaction-budget-schema.test.js.map +0 -1
- package/dist/connector/BaseConnector.test.d.ts +0 -21
- package/dist/connector/BaseConnector.test.d.ts.map +0 -1
- package/dist/connector/BaseConnector.test.js +0 -108
- package/dist/connector/BaseConnector.test.js.map +0 -1
- package/dist/connector/builtins/__tests__/oauth2-auth.test.d.ts +0 -2
- package/dist/connector/builtins/__tests__/oauth2-auth.test.d.ts.map +0 -1
- package/dist/connector/builtins/__tests__/oauth2-auth.test.js +0 -54
- package/dist/connector/builtins/__tests__/oauth2-auth.test.js.map +0 -1
- package/dist/connector/builtins/http.test.d.ts +0 -30
- package/dist/connector/builtins/http.test.d.ts.map +0 -1
- package/dist/connector/builtins/http.test.js +0 -260
- package/dist/connector/builtins/http.test.js.map +0 -1
- package/dist/connector/builtins/webhook.test.d.ts +0 -20
- package/dist/connector/builtins/webhook.test.d.ts.map +0 -1
- package/dist/connector/builtins/webhook.test.js +0 -130
- package/dist/connector/builtins/webhook.test.js.map +0 -1
- package/dist/connector/execution/factory.test.d.ts +0 -16
- package/dist/connector/execution/factory.test.d.ts.map +0 -1
- package/dist/connector/execution/factory.test.js +0 -64
- package/dist/connector/execution/factory.test.js.map +0 -1
- package/dist/connector/execution/remote.test.d.ts +0 -16
- package/dist/connector/execution/remote.test.d.ts.map +0 -1
- package/dist/connector/execution/remote.test.js +0 -53
- package/dist/connector/execution/remote.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/a-close-that-means-closed.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/a-close-that-means-closed.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/a-close-that-means-closed.test.js +0 -106
- package/dist/connector/mcp/__tests__/a-close-that-means-closed.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.js +0 -101
- package/dist/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/discovery-policy.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/discovery-policy.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/discovery-policy.test.js +0 -109
- package/dist/connector/mcp/__tests__/discovery-policy.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/list-pagination.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/list-pagination.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/list-pagination.test.js +0 -81
- package/dist/connector/mcp/__tests__/list-pagination.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/policy.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/policy.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/policy.test.js +0 -86
- package/dist/connector/mcp/__tests__/policy.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/positional-arrays.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/positional-arrays.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/positional-arrays.test.js +0 -142
- package/dist/connector/mcp/__tests__/positional-arrays.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/prompt-as-tool.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/prompt-as-tool.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/prompt-as-tool.test.js +0 -122
- package/dist/connector/mcp/__tests__/prompt-as-tool.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/prompts-and-lifecycle.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/prompts-and-lifecycle.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/prompts-and-lifecycle.test.js +0 -214
- package/dist/connector/mcp/__tests__/prompts-and-lifecycle.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/protocol-negotiation.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/protocol-negotiation.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/protocol-negotiation.test.js +0 -81
- package/dist/connector/mcp/__tests__/protocol-negotiation.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/schema-fidelity.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/schema-fidelity.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/schema-fidelity.test.js +0 -206
- package/dist/connector/mcp/__tests__/schema-fidelity.test.js.map +0 -1
- package/dist/connector/mcp/__tests__/structured-result.test.d.ts +0 -2
- package/dist/connector/mcp/__tests__/structured-result.test.d.ts.map +0 -1
- package/dist/connector/mcp/__tests__/structured-result.test.js +0 -112
- package/dist/connector/mcp/__tests__/structured-result.test.js.map +0 -1
- package/dist/connector/mcp/adapter.test.d.ts +0 -34
- package/dist/connector/mcp/adapter.test.d.ts.map +0 -1
- package/dist/connector/mcp/adapter.test.js +0 -199
- package/dist/connector/mcp/adapter.test.js.map +0 -1
- package/dist/connector/mcp/client.test.d.ts +0 -2
- package/dist/connector/mcp/client.test.d.ts.map +0 -1
- package/dist/connector/mcp/client.test.js +0 -105
- package/dist/connector/mcp/client.test.js.map +0 -1
- package/dist/connector/mcp/streamable-http.test.d.ts +0 -2
- package/dist/connector/mcp/streamable-http.test.d.ts.map +0 -1
- package/dist/connector/mcp/streamable-http.test.js +0 -132
- package/dist/connector/mcp/streamable-http.test.js.map +0 -1
- package/dist/constants/tools/__tests__/dangerous-patterns.test.d.ts +0 -2
- package/dist/constants/tools/__tests__/dangerous-patterns.test.d.ts.map +0 -1
- package/dist/constants/tools/__tests__/dangerous-patterns.test.js +0 -54
- package/dist/constants/tools/__tests__/dangerous-patterns.test.js.map +0 -1
- package/dist/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.d.ts +0 -2
- package/dist/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.d.ts.map +0 -1
- package/dist/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.js +0 -73
- package/dist/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.js.map +0 -1
- package/dist/directory/__tests__/derive.test.d.ts +0 -2
- package/dist/directory/__tests__/derive.test.d.ts.map +0 -1
- package/dist/directory/__tests__/derive.test.js +0 -111
- package/dist/directory/__tests__/derive.test.js.map +0 -1
- package/dist/directory/__tests__/load-diagnostics.test.d.ts +0 -2
- package/dist/directory/__tests__/load-diagnostics.test.d.ts.map +0 -1
- package/dist/directory/__tests__/load-diagnostics.test.js +0 -106
- package/dist/directory/__tests__/load-diagnostics.test.js.map +0 -1
- package/dist/directory/__tests__/load-directory.test.d.ts +0 -2
- package/dist/directory/__tests__/load-directory.test.d.ts.map +0 -1
- package/dist/directory/__tests__/load-directory.test.js +0 -196
- package/dist/directory/__tests__/load-directory.test.js.map +0 -1
- package/dist/directory/__tests__/subagents.test.d.ts +0 -2
- package/dist/directory/__tests__/subagents.test.d.ts.map +0 -1
- package/dist/directory/__tests__/subagents.test.js +0 -117
- package/dist/directory/__tests__/subagents.test.js.map +0 -1
- package/dist/directory/__tests__/supervisor-budget.test.d.ts +0 -2
- package/dist/directory/__tests__/supervisor-budget.test.d.ts.map +0 -1
- package/dist/directory/__tests__/supervisor-budget.test.js +0 -97
- package/dist/directory/__tests__/supervisor-budget.test.js.map +0 -1
- package/dist/eval/__tests__/case-deadline.test.d.ts +0 -2
- package/dist/eval/__tests__/case-deadline.test.d.ts.map +0 -1
- package/dist/eval/__tests__/case-deadline.test.js +0 -128
- package/dist/eval/__tests__/case-deadline.test.js.map +0 -1
- package/dist/eval/__tests__/end-to-end.test.d.ts +0 -2
- package/dist/eval/__tests__/end-to-end.test.d.ts.map +0 -1
- package/dist/eval/__tests__/end-to-end.test.js +0 -223
- package/dist/eval/__tests__/end-to-end.test.js.map +0 -1
- package/dist/eval/__tests__/harness-honesty.test.d.ts +0 -2
- package/dist/eval/__tests__/harness-honesty.test.d.ts.map +0 -1
- package/dist/eval/__tests__/harness-honesty.test.js +0 -85
- package/dist/eval/__tests__/harness-honesty.test.js.map +0 -1
- package/dist/eval/__tests__/harness.test.d.ts +0 -2
- package/dist/eval/__tests__/harness.test.d.ts.map +0 -1
- package/dist/eval/__tests__/harness.test.js +0 -207
- package/dist/eval/__tests__/harness.test.js.map +0 -1
- package/dist/eval/__tests__/judge.test.d.ts +0 -2
- package/dist/eval/__tests__/judge.test.d.ts.map +0 -1
- package/dist/eval/__tests__/judge.test.js +0 -255
- package/dist/eval/__tests__/judge.test.js.map +0 -1
- package/dist/eval/__tests__/scorer-gates.test.d.ts +0 -2
- package/dist/eval/__tests__/scorer-gates.test.d.ts.map +0 -1
- package/dist/eval/__tests__/scorer-gates.test.js +0 -136
- package/dist/eval/__tests__/scorer-gates.test.js.map +0 -1
- package/dist/execution/local.test.d.ts +0 -2
- package/dist/execution/local.test.d.ts.map +0 -1
- package/dist/execution/local.test.js +0 -37
- package/dist/execution/local.test.js.map +0 -1
- package/dist/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.d.ts +0 -2
- package/dist/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.js +0 -96
- package/dist/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.js.map +0 -1
- package/dist/gateway/__tests__/a-knob-nobody-can-turn.test.d.ts +0 -2
- package/dist/gateway/__tests__/a-knob-nobody-can-turn.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/a-knob-nobody-can-turn.test.js +0 -114
- package/dist/gateway/__tests__/a-knob-nobody-can-turn.test.js.map +0 -1
- package/dist/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.d.ts +0 -2
- package/dist/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.js +0 -137
- package/dist/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.js.map +0 -1
- package/dist/gateway/__tests__/completion-inbox.test.d.ts +0 -2
- package/dist/gateway/__tests__/completion-inbox.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/completion-inbox.test.js +0 -565
- package/dist/gateway/__tests__/completion-inbox.test.js.map +0 -1
- package/dist/gateway/__tests__/list-survives-eviction.test.d.ts +0 -2
- package/dist/gateway/__tests__/list-survives-eviction.test.d.ts.map +0 -1
- package/dist/gateway/__tests__/list-survives-eviction.test.js +0 -102
- package/dist/gateway/__tests__/list-survives-eviction.test.js.map +0 -1
- package/dist/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.js +0 -101
- package/dist/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.js.map +0 -1
- package/dist/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.js +0 -159
- package/dist/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.js.map +0 -1
- package/dist/manager/agent/__tests__/depth-limit-authority.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/depth-limit-authority.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/depth-limit-authority.test.js +0 -58
- package/dist/manager/agent/__tests__/depth-limit-authority.test.js.map +0 -1
- package/dist/manager/agent/__tests__/dispose-cancels.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/dispose-cancels.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/dispose-cancels.test.js +0 -88
- package/dist/manager/agent/__tests__/dispose-cancels.test.js.map +0 -1
- package/dist/manager/agent/__tests__/hitl-across-spawn.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/hitl-across-spawn.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/hitl-across-spawn.test.js +0 -226
- package/dist/manager/agent/__tests__/hitl-across-spawn.test.js.map +0 -1
- package/dist/manager/agent/__tests__/lifecycle.test.d.ts +0 -2
- package/dist/manager/agent/__tests__/lifecycle.test.d.ts.map +0 -1
- package/dist/manager/agent/__tests__/lifecycle.test.js +0 -602
- package/dist/manager/agent/__tests__/lifecycle.test.js.map +0 -1
- package/dist/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.d.ts +0 -2
- package/dist/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.d.ts.map +0 -1
- package/dist/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.js +0 -73
- package/dist/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.js.map +0 -1
- package/dist/manager/project/__tests__/a-closed-workspace-takes-no-work.test.d.ts +0 -2
- package/dist/manager/project/__tests__/a-closed-workspace-takes-no-work.test.d.ts.map +0 -1
- package/dist/manager/project/__tests__/a-closed-workspace-takes-no-work.test.js +0 -248
- package/dist/manager/project/__tests__/a-closed-workspace-takes-no-work.test.js.map +0 -1
- package/dist/manager/thread/__tests__/lifecycle.test.d.ts +0 -2
- package/dist/manager/thread/__tests__/lifecycle.test.d.ts.map +0 -1
- package/dist/manager/thread/__tests__/lifecycle.test.js +0 -216
- package/dist/manager/thread/__tests__/lifecycle.test.js.map +0 -1
- package/dist/plugin/__tests__/discovery-scopes.test.d.ts +0 -2
- package/dist/plugin/__tests__/discovery-scopes.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/discovery-scopes.test.js +0 -97
- package/dist/plugin/__tests__/discovery-scopes.test.js.map +0 -1
- package/dist/plugin/__tests__/enable-contributions.test.d.ts +0 -2
- package/dist/plugin/__tests__/enable-contributions.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/enable-contributions.test.js +0 -269
- package/dist/plugin/__tests__/enable-contributions.test.js.map +0 -1
- package/dist/plugin/__tests__/hook-ordering.test.d.ts +0 -2
- package/dist/plugin/__tests__/hook-ordering.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/hook-ordering.test.js +0 -227
- package/dist/plugin/__tests__/hook-ordering.test.js.map +0 -1
- package/dist/plugin/__tests__/install-time-refusal.test.d.ts +0 -2
- package/dist/plugin/__tests__/install-time-refusal.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/install-time-refusal.test.js +0 -49
- package/dist/plugin/__tests__/install-time-refusal.test.js.map +0 -1
- package/dist/plugin/__tests__/lifecycle.test.d.ts +0 -2
- package/dist/plugin/__tests__/lifecycle.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/lifecycle.test.js +0 -389
- package/dist/plugin/__tests__/lifecycle.test.js.map +0 -1
- package/dist/plugin/__tests__/mcp-admission.test.d.ts +0 -2
- package/dist/plugin/__tests__/mcp-admission.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/mcp-admission.test.js +0 -227
- package/dist/plugin/__tests__/mcp-admission.test.js.map +0 -1
- package/dist/plugin/__tests__/path-containment.test.d.ts +0 -2
- package/dist/plugin/__tests__/path-containment.test.d.ts.map +0 -1
- package/dist/plugin/__tests__/path-containment.test.js +0 -91
- package/dist/plugin/__tests__/path-containment.test.js.map +0 -1
- package/dist/probe/registry.test.d.ts +0 -13
- package/dist/probe/registry.test.d.ts.map +0 -1
- package/dist/probe/registry.test.js +0 -348
- package/dist/probe/registry.test.js.map +0 -1
- package/dist/provider/__tests__/errors.test.d.ts +0 -2
- package/dist/provider/__tests__/errors.test.d.ts.map +0 -1
- package/dist/provider/__tests__/errors.test.js +0 -61
- package/dist/provider/__tests__/errors.test.js.map +0 -1
- package/dist/provider/__tests__/mock-script.test.d.ts +0 -2
- package/dist/provider/__tests__/mock-script.test.d.ts.map +0 -1
- package/dist/provider/__tests__/mock-script.test.js +0 -151
- package/dist/provider/__tests__/mock-script.test.js.map +0 -1
- package/dist/provider/__tests__/model-version.test.d.ts +0 -2
- package/dist/provider/__tests__/model-version.test.d.ts.map +0 -1
- package/dist/provider/__tests__/model-version.test.js +0 -80
- package/dist/provider/__tests__/model-version.test.js.map +0 -1
- package/dist/provider/__tests__/registry.test.d.ts +0 -16
- package/dist/provider/__tests__/registry.test.d.ts.map +0 -1
- package/dist/provider/__tests__/registry.test.js +0 -303
- package/dist/provider/__tests__/registry.test.js.map +0 -1
- package/dist/provider/__tests__/retry-visibility.test.d.ts +0 -2
- package/dist/provider/__tests__/retry-visibility.test.d.ts.map +0 -1
- package/dist/provider/__tests__/retry-visibility.test.js +0 -137
- package/dist/provider/__tests__/retry-visibility.test.js.map +0 -1
- package/dist/provider/__tests__/retry.test.d.ts +0 -2
- package/dist/provider/__tests__/retry.test.d.ts.map +0 -1
- package/dist/provider/__tests__/retry.test.js +0 -259
- package/dist/provider/__tests__/retry.test.js.map +0 -1
- package/dist/provider/__tests__/strict-schema.test.d.ts +0 -2
- package/dist/provider/__tests__/strict-schema.test.d.ts.map +0 -1
- package/dist/provider/__tests__/strict-schema.test.js +0 -157
- package/dist/provider/__tests__/strict-schema.test.js.map +0 -1
- package/dist/provider/__tests__/thinking-support.test.d.ts +0 -2
- package/dist/provider/__tests__/thinking-support.test.d.ts.map +0 -1
- package/dist/provider/__tests__/thinking-support.test.js +0 -47
- package/dist/provider/__tests__/thinking-support.test.js.map +0 -1
- package/dist/provider/__tests__/typed-error-classification.test.d.ts +0 -2
- package/dist/provider/__tests__/typed-error-classification.test.d.ts.map +0 -1
- package/dist/provider/__tests__/typed-error-classification.test.js +0 -123
- package/dist/provider/__tests__/typed-error-classification.test.js.map +0 -1
- package/dist/provider/__tests__/vendor-detail.test.d.ts +0 -2
- package/dist/provider/__tests__/vendor-detail.test.d.ts.map +0 -1
- package/dist/provider/__tests__/vendor-detail.test.js +0 -89
- package/dist/provider/__tests__/vendor-detail.test.js.map +0 -1
- package/dist/provider/collect.test.d.ts +0 -22
- package/dist/provider/collect.test.d.ts.map +0 -1
- package/dist/provider/collect.test.js +0 -123
- package/dist/provider/collect.test.js.map +0 -1
- package/dist/provider/instrumentation.test.d.ts +0 -17
- package/dist/provider/instrumentation.test.d.ts.map +0 -1
- package/dist/provider/instrumentation.test.js +0 -138
- package/dist/provider/instrumentation.test.js.map +0 -1
- package/dist/rag/__tests__/namespace-isolation.test.d.ts +0 -2
- package/dist/rag/__tests__/namespace-isolation.test.d.ts.map +0 -1
- package/dist/rag/__tests__/namespace-isolation.test.js +0 -80
- package/dist/rag/__tests__/namespace-isolation.test.js.map +0 -1
- package/dist/rag/__tests__/retrieval-math.test.d.ts +0 -2
- package/dist/rag/__tests__/retrieval-math.test.d.ts.map +0 -1
- package/dist/rag/__tests__/retrieval-math.test.js +0 -46
- package/dist/rag/__tests__/retrieval-math.test.js.map +0 -1
- package/dist/rag/chunking.test.d.ts +0 -20
- package/dist/rag/chunking.test.d.ts.map +0 -1
- package/dist/rag/chunking.test.js +0 -92
- package/dist/rag/chunking.test.js.map +0 -1
- package/dist/rag/context-assembler.test.d.ts +0 -19
- package/dist/rag/context-assembler.test.d.ts.map +0 -1
- package/dist/rag/context-assembler.test.js +0 -98
- package/dist/rag/context-assembler.test.js.map +0 -1
- package/dist/rag/embedding.test.d.ts +0 -19
- package/dist/rag/embedding.test.d.ts.map +0 -1
- package/dist/rag/embedding.test.js +0 -164
- package/dist/rag/embedding.test.js.map +0 -1
- package/dist/rag/ingestion.test.d.ts +0 -22
- package/dist/rag/ingestion.test.d.ts.map +0 -1
- package/dist/rag/ingestion.test.js +0 -99
- package/dist/rag/ingestion.test.js.map +0 -1
- package/dist/rag/knowledge-base.test.d.ts +0 -17
- package/dist/rag/knowledge-base.test.d.ts.map +0 -1
- package/dist/rag/knowledge-base.test.js +0 -77
- package/dist/rag/knowledge-base.test.js.map +0 -1
- package/dist/rag/rag-tool.test.d.ts +0 -21
- package/dist/rag/rag-tool.test.d.ts.map +0 -1
- package/dist/rag/rag-tool.test.js +0 -149
- package/dist/rag/rag-tool.test.js.map +0 -1
- package/dist/rag/retriever.test.d.ts +0 -26
- package/dist/rag/retriever.test.d.ts.map +0 -1
- package/dist/rag/retriever.test.js +0 -180
- package/dist/rag/retriever.test.js.map +0 -1
- package/dist/rag/vector-store.test.d.ts +0 -38
- package/dist/rag/vector-store.test.d.ts.map +0 -1
- package/dist/rag/vector-store.test.js +0 -175
- package/dist/rag/vector-store.test.js.map +0 -1
- package/dist/registry/ManagedRegistry.test.d.ts +0 -21
- package/dist/registry/ManagedRegistry.test.d.ts.map +0 -1
- package/dist/registry/ManagedRegistry.test.js +0 -98
- package/dist/registry/ManagedRegistry.test.js.map +0 -1
- package/dist/registry/Registry.test.d.ts +0 -18
- package/dist/registry/Registry.test.d.ts.map +0 -1
- package/dist/registry/Registry.test.js +0 -79
- package/dist/registry/Registry.test.js.map +0 -1
- package/dist/registry/agent/definitions.test.d.ts +0 -15
- package/dist/registry/agent/definitions.test.d.ts.map +0 -1
- package/dist/registry/agent/definitions.test.js +0 -84
- package/dist/registry/agent/definitions.test.js.map +0 -1
- package/dist/registry/connector/definitions.test.d.ts +0 -13
- package/dist/registry/connector/definitions.test.d.ts.map +0 -1
- package/dist/registry/connector/definitions.test.js +0 -41
- package/dist/registry/connector/definitions.test.js.map +0 -1
- package/dist/registry/connector/scoped.test.d.ts +0 -21
- package/dist/registry/connector/scoped.test.d.ts.map +0 -1
- package/dist/registry/connector/scoped.test.js +0 -115
- package/dist/registry/connector/scoped.test.js.map +0 -1
- package/dist/registry/plugin/index.test.d.ts +0 -12
- package/dist/registry/plugin/index.test.d.ts.map +0 -1
- package/dist/registry/plugin/index.test.js +0 -69
- package/dist/registry/plugin/index.test.js.map +0 -1
- package/dist/registry/tool/__tests__/dialect.test.d.ts +0 -2
- package/dist/registry/tool/__tests__/dialect.test.d.ts.map +0 -1
- package/dist/registry/tool/__tests__/dialect.test.js +0 -146
- package/dist/registry/tool/__tests__/dialect.test.js.map +0 -1
- package/dist/registry/tool/__tests__/schema.test.d.ts +0 -2
- package/dist/registry/tool/__tests__/schema.test.d.ts.map +0 -1
- package/dist/registry/tool/__tests__/schema.test.js +0 -176
- package/dist/registry/tool/__tests__/schema.test.js.map +0 -1
- package/dist/registry/tool/__tests__/strict-registration.test.d.ts +0 -2
- package/dist/registry/tool/__tests__/strict-registration.test.d.ts.map +0 -1
- package/dist/registry/tool/__tests__/strict-registration.test.js +0 -82
- package/dist/registry/tool/__tests__/strict-registration.test.js.map +0 -1
- package/dist/registry/tool/__tests__/tool-name-validation.test.d.ts +0 -2
- package/dist/registry/tool/__tests__/tool-name-validation.test.d.ts.map +0 -1
- package/dist/registry/tool/__tests__/tool-name-validation.test.js +0 -70
- package/dist/registry/tool/__tests__/tool-name-validation.test.js.map +0 -1
- package/dist/registry/tool/execute.test.d.ts +0 -47
- package/dist/registry/tool/execute.test.d.ts.map +0 -1
- package/dist/registry/tool/execute.test.js +0 -549
- package/dist/registry/tool/execute.test.js.map +0 -1
- package/dist/registry/toolset/catalog.test.d.ts +0 -2
- package/dist/registry/toolset/catalog.test.d.ts.map +0 -1
- package/dist/registry/toolset/catalog.test.js +0 -247
- package/dist/registry/toolset/catalog.test.js.map +0 -1
- package/dist/run/LimitChecker.test.d.ts +0 -2
- package/dist/run/LimitChecker.test.d.ts.map +0 -1
- package/dist/run/LimitChecker.test.js +0 -26
- package/dist/run/LimitChecker.test.js.map +0 -1
- package/dist/runtime/bidi/__tests__/session.test.d.ts +0 -2
- package/dist/runtime/bidi/__tests__/session.test.d.ts.map +0 -1
- package/dist/runtime/bidi/__tests__/session.test.js +0 -201
- package/dist/runtime/bidi/__tests__/session.test.js.map +0 -1
- package/dist/runtime/decision/parser.test.d.ts +0 -2
- package/dist/runtime/decision/parser.test.d.ts.map +0 -1
- package/dist/runtime/decision/parser.test.js +0 -37
- package/dist/runtime/decision/parser.test.js.map +0 -1
- package/dist/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.js +0 -90
- package/dist/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.js.map +0 -1
- package/dist/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.js +0 -97
- package/dist/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.js.map +0 -1
- package/dist/runtime/query/__tests__/answer-review.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/answer-review.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/answer-review.test.js +0 -141
- package/dist/runtime/query/__tests__/answer-review.test.js.map +0 -1
- package/dist/runtime/query/__tests__/capability-negotiation.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/capability-negotiation.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/capability-negotiation.test.js +0 -235
- package/dist/runtime/query/__tests__/capability-negotiation.test.js.map +0 -1
- package/dist/runtime/query/__tests__/checkpoint-store.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/checkpoint-store.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/checkpoint-store.test.js +0 -227
- package/dist/runtime/query/__tests__/checkpoint-store.test.js.map +0 -1
- package/dist/runtime/query/__tests__/checkpoint.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/checkpoint.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/checkpoint.test.js +0 -148
- package/dist/runtime/query/__tests__/checkpoint.test.js.map +0 -1
- package/dist/runtime/query/__tests__/citations.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/citations.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/citations.test.js +0 -85
- package/dist/runtime/query/__tests__/citations.test.js.map +0 -1
- package/dist/runtime/query/__tests__/completion-does-not-erase-the-answer.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/completion-does-not-erase-the-answer.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/completion-does-not-erase-the-answer.test.js +0 -142
- package/dist/runtime/query/__tests__/completion-does-not-erase-the-answer.test.js.map +0 -1
- package/dist/runtime/query/__tests__/completion-notification.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/completion-notification.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/completion-notification.test.js +0 -550
- package/dist/runtime/query/__tests__/completion-notification.test.js.map +0 -1
- package/dist/runtime/query/__tests__/content-budget.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/content-budget.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/content-budget.test.js +0 -69
- package/dist/runtime/query/__tests__/content-budget.test.js.map +0 -1
- package/dist/runtime/query/__tests__/context-size-on-the-wire.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/context-size-on-the-wire.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/context-size-on-the-wire.test.js +0 -100
- package/dist/runtime/query/__tests__/context-size-on-the-wire.test.js.map +0 -1
- package/dist/runtime/query/__tests__/context.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/context.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/context.test.js +0 -104
- package/dist/runtime/query/__tests__/context.test.js.map +0 -1
- package/dist/runtime/query/__tests__/deferred-tools.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/deferred-tools.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/deferred-tools.test.js +0 -176
- package/dist/runtime/query/__tests__/deferred-tools.test.js.map +0 -1
- package/dist/runtime/query/__tests__/delegation-resume.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/delegation-resume.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/delegation-resume.test.js +0 -111
- package/dist/runtime/query/__tests__/delegation-resume.test.js.map +0 -1
- package/dist/runtime/query/__tests__/document-attachments.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/document-attachments.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/document-attachments.test.js +0 -92
- package/dist/runtime/query/__tests__/document-attachments.test.js.map +0 -1
- package/dist/runtime/query/__tests__/durable-park-and-trace.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/durable-park-and-trace.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/durable-park-and-trace.test.js +0 -194
- package/dist/runtime/query/__tests__/durable-park-and-trace.test.js.map +0 -1
- package/dist/runtime/query/__tests__/durable-question-park.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/durable-question-park.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/durable-question-park.test.js +0 -253
- package/dist/runtime/query/__tests__/durable-question-park.test.js.map +0 -1
- package/dist/runtime/query/__tests__/durable-run-state.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/durable-run-state.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/durable-run-state.test.js +0 -158
- package/dist/runtime/query/__tests__/durable-run-state.test.js.map +0 -1
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.js +0 -118
- package/dist/runtime/query/__tests__/effort-reaches-the-wire.test.js.map +0 -1
- package/dist/runtime/query/__tests__/executor-concurrency.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/executor-concurrency.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/executor-concurrency.test.js +0 -98
- package/dist/runtime/query/__tests__/executor-concurrency.test.js.map +0 -1
- package/dist/runtime/query/__tests__/executor-plugin-hooks.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/executor-plugin-hooks.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/executor-plugin-hooks.test.js +0 -275
- package/dist/runtime/query/__tests__/executor-plugin-hooks.test.js.map +0 -1
- package/dist/runtime/query/__tests__/finish-reason-vs-tool-calls.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/finish-reason-vs-tool-calls.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/finish-reason-vs-tool-calls.test.js +0 -187
- package/dist/runtime/query/__tests__/finish-reason-vs-tool-calls.test.js.map +0 -1
- package/dist/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.js +0 -95
- package/dist/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.js.map +0 -1
- package/dist/runtime/query/__tests__/guardrails-e2e.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/guardrails-e2e.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/guardrails-e2e.test.js +0 -132
- package/dist/runtime/query/__tests__/guardrails-e2e.test.js.map +0 -1
- package/dist/runtime/query/__tests__/guardrails.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/guardrails.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/guardrails.test.js +0 -163
- package/dist/runtime/query/__tests__/guardrails.test.js.map +0 -1
- package/dist/runtime/query/__tests__/hook-model-visibility.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/hook-model-visibility.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/hook-model-visibility.test.js +0 -119
- package/dist/runtime/query/__tests__/hook-model-visibility.test.js.map +0 -1
- package/dist/runtime/query/__tests__/long-document-flow.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/long-document-flow.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/long-document-flow.test.js +0 -161
- package/dist/runtime/query/__tests__/long-document-flow.test.js.map +0 -1
- package/dist/runtime/query/__tests__/memory-promotion.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/memory-promotion.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/memory-promotion.test.js +0 -119
- package/dist/runtime/query/__tests__/memory-promotion.test.js.map +0 -1
- package/dist/runtime/query/__tests__/orphan-task-turn-end.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/orphan-task-turn-end.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/orphan-task-turn-end.test.js +0 -88
- package/dist/runtime/query/__tests__/orphan-task-turn-end.test.js.map +0 -1
- package/dist/runtime/query/__tests__/overflow-relief.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/overflow-relief.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/overflow-relief.test.js +0 -119
- package/dist/runtime/query/__tests__/overflow-relief.test.js.map +0 -1
- package/dist/runtime/query/__tests__/partial-batch-resume.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/partial-batch-resume.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/partial-batch-resume.test.js +0 -205
- package/dist/runtime/query/__tests__/partial-batch-resume.test.js.map +0 -1
- package/dist/runtime/query/__tests__/per-step-skills.test.d.ts +0 -10
- package/dist/runtime/query/__tests__/per-step-skills.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/per-step-skills.test.js +0 -122
- package/dist/runtime/query/__tests__/per-step-skills.test.js.map +0 -1
- package/dist/runtime/query/__tests__/per-step-tool-choice.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/per-step-tool-choice.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/per-step-tool-choice.test.js +0 -153
- package/dist/runtime/query/__tests__/per-step-tool-choice.test.js.map +0 -1
- package/dist/runtime/query/__tests__/plugin-hooks.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/plugin-hooks.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/plugin-hooks.test.js +0 -20
- package/dist/runtime/query/__tests__/plugin-hooks.test.js.map +0 -1
- package/dist/runtime/query/__tests__/prepare-step-chain.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/prepare-step-chain.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/prepare-step-chain.test.js +0 -104
- package/dist/runtime/query/__tests__/prepare-step-chain.test.js.map +0 -1
- package/dist/runtime/query/__tests__/prepare-step.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/prepare-step.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/prepare-step.test.js +0 -194
- package/dist/runtime/query/__tests__/prepare-step.test.js.map +0 -1
- package/dist/runtime/query/__tests__/probe-veto-is-error.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/probe-veto-is-error.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/probe-veto-is-error.test.js +0 -111
- package/dist/runtime/query/__tests__/probe-veto-is-error.test.js.map +0 -1
- package/dist/runtime/query/__tests__/prompt.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/prompt.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/prompt.test.js +0 -84
- package/dist/runtime/query/__tests__/prompt.test.js.map +0 -1
- package/dist/runtime/query/__tests__/provider-fault-pauses.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/provider-fault-pauses.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/provider-fault-pauses.test.js +0 -86
- package/dist/runtime/query/__tests__/provider-fault-pauses.test.js.map +0 -1
- package/dist/runtime/query/__tests__/reasoning-stream.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/reasoning-stream.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/reasoning-stream.test.js +0 -146
- package/dist/runtime/query/__tests__/reasoning-stream.test.js.map +0 -1
- package/dist/runtime/query/__tests__/recoverable-settle.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/recoverable-settle.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/recoverable-settle.test.js +0 -119
- package/dist/runtime/query/__tests__/recoverable-settle.test.js.map +0 -1
- package/dist/runtime/query/__tests__/resume-budget.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/resume-budget.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/resume-budget.test.js +0 -130
- package/dist/runtime/query/__tests__/resume-budget.test.js.map +0 -1
- package/dist/runtime/query/__tests__/resume-pending.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/resume-pending.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/resume-pending.test.js +0 -226
- package/dist/runtime/query/__tests__/resume-pending.test.js.map +0 -1
- package/dist/runtime/query/__tests__/resume-run.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/resume-run.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/resume-run.test.js +0 -211
- package/dist/runtime/query/__tests__/resume-run.test.js.map +0 -1
- package/dist/runtime/query/__tests__/rich-content-budget-wiring.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/rich-content-budget-wiring.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/rich-content-budget-wiring.test.js +0 -89
- package/dist/runtime/query/__tests__/rich-content-budget-wiring.test.js.map +0 -1
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.d.ts +0 -2
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.js +0 -122
- package/dist/runtime/query/__tests__/run-survives-its-own-park.proc-test.js.map +0 -1
- package/dist/runtime/query/__tests__/steering-reaches-the-model.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/steering-reaches-the-model.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/steering-reaches-the-model.test.js +0 -94
- package/dist/runtime/query/__tests__/steering-reaches-the-model.test.js.map +0 -1
- package/dist/runtime/query/__tests__/steering.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/steering.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/steering.test.js +0 -92
- package/dist/runtime/query/__tests__/steering.test.js.map +0 -1
- package/dist/runtime/query/__tests__/step-allow-list.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/step-allow-list.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/step-allow-list.test.js +0 -171
- package/dist/runtime/query/__tests__/step-allow-list.test.js.map +0 -1
- package/dist/runtime/query/__tests__/stop-condition.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/stop-condition.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/stop-condition.test.js +0 -205
- package/dist/runtime/query/__tests__/stop-condition.test.js.map +0 -1
- package/dist/runtime/query/__tests__/stream-recovery.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/stream-recovery.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/stream-recovery.test.js +0 -190
- package/dist/runtime/query/__tests__/stream-recovery.test.js.map +0 -1
- package/dist/runtime/query/__tests__/structured-output.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/structured-output.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/structured-output.test.js +0 -219
- package/dist/runtime/query/__tests__/structured-output.test.js.map +0 -1
- package/dist/runtime/query/__tests__/structured-run-failure.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/structured-run-failure.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/structured-run-failure.test.js +0 -117
- package/dist/runtime/query/__tests__/structured-run-failure.test.js.map +0 -1
- package/dist/runtime/query/__tests__/terminal-tool.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/terminal-tool.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/terminal-tool.test.js +0 -119
- package/dist/runtime/query/__tests__/terminal-tool.test.js.map +0 -1
- package/dist/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.js +0 -81
- package/dist/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.js.map +0 -1
- package/dist/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.js +0 -62
- package/dist/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-grants.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-grants.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-grants.test.js +0 -85
- package/dist/runtime/query/__tests__/tool-grants.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-output-budget.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-output-budget.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-output-budget.test.js +0 -0
- package/dist/runtime/query/__tests__/tool-output-budget.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-pause.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-pause.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-pause.test.js +0 -165
- package/dist/runtime/query/__tests__/tool-pause.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-progress.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-progress.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-progress.test.js +0 -122
- package/dist/runtime/query/__tests__/tool-progress.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-repair-retry.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-repair-retry.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-repair-retry.test.js +0 -196
- package/dist/runtime/query/__tests__/tool-repair-retry.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-result-wire.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-result-wire.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-result-wire.test.js +0 -106
- package/dist/runtime/query/__tests__/tool-result-wire.test.js.map +0 -1
- package/dist/runtime/query/__tests__/tool-timeout.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/tool-timeout.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/tool-timeout.test.js +0 -218
- package/dist/runtime/query/__tests__/tool-timeout.test.js.map +0 -1
- package/dist/runtime/query/__tests__/trace-parenting.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/trace-parenting.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/trace-parenting.test.js +0 -111
- package/dist/runtime/query/__tests__/trace-parenting.test.js.map +0 -1
- package/dist/runtime/query/__tests__/wiring-seams.test.d.ts +0 -2
- package/dist/runtime/query/__tests__/wiring-seams.test.d.ts.map +0 -1
- package/dist/runtime/query/__tests__/wiring-seams.test.js +0 -237
- package/dist/runtime/query/__tests__/wiring-seams.test.js.map +0 -1
- package/dist/runtime/query/iteration/__tests__/cancel-settles-turn.test.d.ts +0 -2
- package/dist/runtime/query/iteration/__tests__/cancel-settles-turn.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/__tests__/cancel-settles-turn.test.js +0 -131
- package/dist/runtime/query/iteration/__tests__/cancel-settles-turn.test.js.map +0 -1
- package/dist/runtime/query/iteration/__tests__/settle-grace.test.d.ts +0 -2
- package/dist/runtime/query/iteration/__tests__/settle-grace.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/__tests__/settle-grace.test.js +0 -226
- package/dist/runtime/query/iteration/__tests__/settle-grace.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/__tests__/compaction-declined.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/__tests__/compaction-declined.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/__tests__/compaction-declined.test.js +0 -95
- package/dist/runtime/query/iteration/phases/__tests__/compaction-declined.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/advisory.test.d.ts +0 -42
- package/dist/runtime/query/iteration/phases/advisory.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/advisory.test.js +0 -337
- package/dist/runtime/query/iteration/phases/advisory.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/compaction-model-routing.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/compaction-model-routing.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/compaction-model-routing.test.js +0 -96
- package/dist/runtime/query/iteration/phases/compaction-model-routing.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/compaction-safe-cut.test.d.ts +0 -32
- package/dist/runtime/query/iteration/phases/compaction-safe-cut.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/compaction-safe-cut.test.js +0 -152
- package/dist/runtime/query/iteration/phases/compaction-safe-cut.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/context-measurement.test.d.ts +0 -21
- package/dist/runtime/query/iteration/phases/context-measurement.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/context-measurement.test.js +0 -161
- package/dist/runtime/query/iteration/phases/context-measurement.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/context-reducer-dispatch.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/context-reducer-dispatch.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/context-reducer-dispatch.test.js +0 -180
- package/dist/runtime/query/iteration/phases/context-reducer-dispatch.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/hitl-abort-race.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/hitl-abort-race.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/hitl-abort-race.test.js +0 -73
- package/dist/runtime/query/iteration/phases/hitl-abort-race.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/hitl-answer-question.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/hitl-answer-question.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/hitl-answer-question.test.js +0 -122
- package/dist/runtime/query/iteration/phases/hitl-answer-question.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/overflow-escalation.test.d.ts +0 -15
- package/dist/runtime/query/iteration/phases/overflow-escalation.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/overflow-escalation.test.js +0 -130
- package/dist/runtime/query/iteration/phases/overflow-escalation.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/retained-messages.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/retained-messages.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/retained-messages.test.js +0 -180
- package/dist/runtime/query/iteration/phases/retained-messages.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/tool-review-denials.test.d.ts +0 -2
- package/dist/runtime/query/iteration/phases/tool-review-denials.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/tool-review-denials.test.js +0 -224
- package/dist/runtime/query/iteration/phases/tool-review-denials.test.js.map +0 -1
- package/dist/runtime/query/iteration/phases/working-memory-compaction.test.d.ts +0 -19
- package/dist/runtime/query/iteration/phases/working-memory-compaction.test.d.ts.map +0 -1
- package/dist/runtime/query/iteration/phases/working-memory-compaction.test.js +0 -188
- package/dist/runtime/query/iteration/phases/working-memory-compaction.test.js.map +0 -1
- package/dist/runtime/query/replay/__tests__/mutate.test.d.ts +0 -2
- package/dist/runtime/query/replay/__tests__/mutate.test.d.ts.map +0 -1
- package/dist/runtime/query/replay/__tests__/mutate.test.js +0 -123
- package/dist/runtime/query/replay/__tests__/mutate.test.js.map +0 -1
- package/dist/runtime/query/replay/__tests__/prepare.test.d.ts +0 -2
- package/dist/runtime/query/replay/__tests__/prepare.test.d.ts.map +0 -1
- package/dist/runtime/query/replay/__tests__/prepare.test.js +0 -171
- package/dist/runtime/query/replay/__tests__/prepare.test.js.map +0 -1
- package/dist/sandbox/__tests__/exec-cancellation.test.d.ts +0 -2
- package/dist/sandbox/__tests__/exec-cancellation.test.d.ts.map +0 -1
- package/dist/sandbox/__tests__/exec-cancellation.test.js +0 -59
- package/dist/sandbox/__tests__/exec-cancellation.test.js.map +0 -1
- package/dist/sandbox/__tests__/isolation.test.d.ts +0 -2
- package/dist/sandbox/__tests__/isolation.test.d.ts.map +0 -1
- package/dist/sandbox/__tests__/isolation.test.js +0 -139
- package/dist/sandbox/__tests__/isolation.test.js.map +0 -1
- package/dist/sandbox/__tests__/output-truncation.test.d.ts +0 -2
- package/dist/sandbox/__tests__/output-truncation.test.d.ts.map +0 -1
- package/dist/sandbox/__tests__/output-truncation.test.js +0 -88
- package/dist/sandbox/__tests__/output-truncation.test.js.map +0 -1
- package/dist/sandbox/__tests__/resource-limits.test.d.ts +0 -2
- package/dist/sandbox/__tests__/resource-limits.test.d.ts.map +0 -1
- package/dist/sandbox/__tests__/resource-limits.test.js +0 -86
- package/dist/sandbox/__tests__/resource-limits.test.js.map +0 -1
- package/dist/session/__tests__/integration/_fixtures.d.ts +0 -122
- package/dist/session/__tests__/integration/_fixtures.d.ts.map +0 -1
- package/dist/session/__tests__/integration/_fixtures.js +0 -215
- package/dist/session/__tests__/integration/_fixtures.js.map +0 -1
- package/dist/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.d.ts +0 -21
- package/dist/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.js +0 -205
- package/dist/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.js.map +0 -1
- package/dist/session/__tests__/integration/archive-gate.test.d.ts +0 -15
- package/dist/session/__tests__/integration/archive-gate.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/archive-gate.test.js +0 -214
- package/dist/session/__tests__/integration/archive-gate.test.js.map +0 -1
- package/dist/session/__tests__/integration/capacity-caps.test.d.ts +0 -13
- package/dist/session/__tests__/integration/capacity-caps.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/capacity-caps.test.js +0 -123
- package/dist/session/__tests__/integration/capacity-caps.test.js.map +0 -1
- package/dist/session/__tests__/integration/e2e-spawn.test.d.ts +0 -18
- package/dist/session/__tests__/integration/e2e-spawn.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/e2e-spawn.test.js +0 -238
- package/dist/session/__tests__/integration/e2e-spawn.test.js.map +0 -1
- package/dist/session/__tests__/integration/event-stream-ordering.test.d.ts +0 -15
- package/dist/session/__tests__/integration/event-stream-ordering.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/event-stream-ordering.test.js +0 -330
- package/dist/session/__tests__/integration/event-stream-ordering.test.js.map +0 -1
- package/dist/session/__tests__/integration/handoff-broadcast-e2e.test.d.ts +0 -12
- package/dist/session/__tests__/integration/handoff-broadcast-e2e.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/handoff-broadcast-e2e.test.js +0 -182
- package/dist/session/__tests__/integration/handoff-broadcast-e2e.test.js.map +0 -1
- package/dist/session/__tests__/integration/handoff-illegal-transition.test.d.ts +0 -18
- package/dist/session/__tests__/integration/handoff-illegal-transition.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/handoff-illegal-transition.test.js +0 -156
- package/dist/session/__tests__/integration/handoff-illegal-transition.test.js.map +0 -1
- package/dist/session/__tests__/integration/handoff-single-e2e.test.d.ts +0 -15
- package/dist/session/__tests__/integration/handoff-single-e2e.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/handoff-single-e2e.test.js +0 -188
- package/dist/session/__tests__/integration/handoff-single-e2e.test.js.map +0 -1
- package/dist/session/__tests__/integration/hierarchy-lifecycle.test.d.ts +0 -12
- package/dist/session/__tests__/integration/hierarchy-lifecycle.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/hierarchy-lifecycle.test.js +0 -158
- package/dist/session/__tests__/integration/hierarchy-lifecycle.test.js.map +0 -1
- package/dist/session/__tests__/integration/migration-filesystem.test.d.ts +0 -11
- package/dist/session/__tests__/integration/migration-filesystem.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/migration-filesystem.test.js +0 -140
- package/dist/session/__tests__/integration/migration-filesystem.test.js.map +0 -1
- package/dist/session/__tests__/integration/migration-id-prefix.test.d.ts +0 -13
- package/dist/session/__tests__/integration/migration-id-prefix.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/migration-id-prefix.test.js +0 -84
- package/dist/session/__tests__/integration/migration-id-prefix.test.js.map +0 -1
- package/dist/session/__tests__/integration/prev-artifact-dag.test.d.ts +0 -14
- package/dist/session/__tests__/integration/prev-artifact-dag.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/prev-artifact-dag.test.js +0 -242
- package/dist/session/__tests__/integration/prev-artifact-dag.test.js.map +0 -1
- package/dist/session/__tests__/integration/retention-archive.test.d.ts +0 -12
- package/dist/session/__tests__/integration/retention-archive.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/retention-archive.test.js +0 -187
- package/dist/session/__tests__/integration/retention-archive.test.js.map +0 -1
- package/dist/session/__tests__/integration/spawn-rollback.test.d.ts +0 -26
- package/dist/session/__tests__/integration/spawn-rollback.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/spawn-rollback.test.js +0 -236
- package/dist/session/__tests__/integration/spawn-rollback.test.js.map +0 -1
- package/dist/session/__tests__/integration/summary-materialization-e2e.test.d.ts +0 -18
- package/dist/session/__tests__/integration/summary-materialization-e2e.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/summary-materialization-e2e.test.js +0 -201
- package/dist/session/__tests__/integration/summary-materialization-e2e.test.js.map +0 -1
- package/dist/session/__tests__/integration/tenant-isolation.test.d.ts +0 -14
- package/dist/session/__tests__/integration/tenant-isolation.test.d.ts.map +0 -1
- package/dist/session/__tests__/integration/tenant-isolation.test.js +0 -189
- package/dist/session/__tests__/integration/tenant-isolation.test.js.map +0 -1
- package/dist/session/handoff/__tests__/broadcast.test.d.ts +0 -2
- package/dist/session/handoff/__tests__/broadcast.test.d.ts.map +0 -1
- package/dist/session/handoff/__tests__/broadcast.test.js +0 -261
- package/dist/session/handoff/__tests__/broadcast.test.js.map +0 -1
- package/dist/session/handoff/__tests__/capacity.test.d.ts +0 -2
- package/dist/session/handoff/__tests__/capacity.test.d.ts.map +0 -1
- package/dist/session/handoff/__tests__/capacity.test.js +0 -103
- package/dist/session/handoff/__tests__/capacity.test.js.map +0 -1
- package/dist/session/handoff/__tests__/single.test.d.ts +0 -2
- package/dist/session/handoff/__tests__/single.test.d.ts.map +0 -1
- package/dist/session/handoff/__tests__/single.test.js +0 -239
- package/dist/session/handoff/__tests__/single.test.js.map +0 -1
- package/dist/session/intervention/__tests__/prev-artifact.test.d.ts +0 -2
- package/dist/session/intervention/__tests__/prev-artifact.test.d.ts.map +0 -1
- package/dist/session/intervention/__tests__/prev-artifact.test.js +0 -179
- package/dist/session/intervention/__tests__/prev-artifact.test.js.map +0 -1
- package/dist/session/migration/__tests__/a-migrated-project-id-is-an-id.test.d.ts +0 -2
- package/dist/session/migration/__tests__/a-migrated-project-id-is-an-id.test.d.ts.map +0 -1
- package/dist/session/migration/__tests__/a-migrated-project-id-is-an-id.test.js +0 -75
- package/dist/session/migration/__tests__/a-migrated-project-id-is-an-id.test.js.map +0 -1
- package/dist/session/migration/__tests__/filesystem.test.d.ts +0 -2
- package/dist/session/migration/__tests__/filesystem.test.d.ts.map +0 -1
- package/dist/session/migration/__tests__/filesystem.test.js +0 -192
- package/dist/session/migration/__tests__/filesystem.test.js.map +0 -1
- package/dist/session/migration/__tests__/id-prefix.test.d.ts +0 -2
- package/dist/session/migration/__tests__/id-prefix.test.d.ts.map +0 -1
- package/dist/session/migration/__tests__/id-prefix.test.js +0 -83
- package/dist/session/migration/__tests__/id-prefix.test.js.map +0 -1
- package/dist/session/migration/__tests__/marker.test.d.ts +0 -2
- package/dist/session/migration/__tests__/marker.test.d.ts.map +0 -1
- package/dist/session/migration/__tests__/marker.test.js +0 -75
- package/dist/session/migration/__tests__/marker.test.js.map +0 -1
- package/dist/session/retention/__tests__/archive.test.d.ts +0 -2
- package/dist/session/retention/__tests__/archive.test.d.ts.map +0 -1
- package/dist/session/retention/__tests__/archive.test.js +0 -253
- package/dist/session/retention/__tests__/archive.test.js.map +0 -1
- package/dist/session/retention/__tests__/disk-backend.test.d.ts +0 -2
- package/dist/session/retention/__tests__/disk-backend.test.d.ts.map +0 -1
- package/dist/session/retention/__tests__/disk-backend.test.js +0 -154
- package/dist/session/retention/__tests__/disk-backend.test.js.map +0 -1
- package/dist/session/status/__tests__/derive.test.d.ts +0 -2
- package/dist/session/status/__tests__/derive.test.d.ts.map +0 -1
- package/dist/session/status/__tests__/derive.test.js +0 -69
- package/dist/session/status/__tests__/derive.test.js.map +0 -1
- package/dist/session/summary/__tests__/materialize.test.d.ts +0 -2
- package/dist/session/summary/__tests__/materialize.test.d.ts.map +0 -1
- package/dist/session/summary/__tests__/materialize.test.js +0 -271
- package/dist/session/summary/__tests__/materialize.test.js.map +0 -1
- package/dist/session/workspace/__tests__/git-worktree.test.d.ts +0 -2
- package/dist/session/workspace/__tests__/git-worktree.test.d.ts.map +0 -1
- package/dist/session/workspace/__tests__/git-worktree.test.js +0 -248
- package/dist/session/workspace/__tests__/git-worktree.test.js.map +0 -1
- package/dist/session/workspace/__tests__/path-builder.test.d.ts +0 -2
- package/dist/session/workspace/__tests__/path-builder.test.d.ts.map +0 -1
- package/dist/session/workspace/__tests__/path-builder.test.js +0 -37
- package/dist/session/workspace/__tests__/path-builder.test.js.map +0 -1
- package/dist/session/workspace/__tests__/shared-run.test.d.ts +0 -2
- package/dist/session/workspace/__tests__/shared-run.test.d.ts.map +0 -1
- package/dist/session/workspace/__tests__/shared-run.test.js +0 -162
- package/dist/session/workspace/__tests__/shared-run.test.js.map +0 -1
- package/dist/skills/__tests__/frontmatter.test.d.ts +0 -2
- package/dist/skills/__tests__/frontmatter.test.d.ts.map +0 -1
- package/dist/skills/__tests__/frontmatter.test.js +0 -106
- package/dist/skills/__tests__/frontmatter.test.js.map +0 -1
- package/dist/skills/loader.test.d.ts +0 -2
- package/dist/skills/loader.test.d.ts.map +0 -1
- package/dist/skills/loader.test.js +0 -65
- package/dist/skills/loader.test.js.map +0 -1
- package/dist/store/__tests__/checkpoint-integrity.test.d.ts +0 -2
- package/dist/store/__tests__/checkpoint-integrity.test.d.ts.map +0 -1
- package/dist/store/__tests__/checkpoint-integrity.test.js +0 -112
- package/dist/store/__tests__/checkpoint-integrity.test.js.map +0 -1
- package/dist/store/__tests__/checkpoint-versioning.test.d.ts +0 -2
- package/dist/store/__tests__/checkpoint-versioning.test.d.ts.map +0 -1
- package/dist/store/__tests__/checkpoint-versioning.test.js +0 -151
- package/dist/store/__tests__/checkpoint-versioning.test.js.map +0 -1
- package/dist/store/__tests__/schema-adoption.test.d.ts +0 -2
- package/dist/store/__tests__/schema-adoption.test.d.ts.map +0 -1
- package/dist/store/__tests__/schema-adoption.test.js +0 -90
- package/dist/store/__tests__/schema-adoption.test.js.map +0 -1
- package/dist/store/__tests__/schema.test.d.ts +0 -2
- package/dist/store/__tests__/schema.test.d.ts.map +0 -1
- package/dist/store/__tests__/schema.test.js +0 -93
- package/dist/store/__tests__/schema.test.js.map +0 -1
- package/dist/store/session/__tests__/a-session-has-one-writer.test.d.ts +0 -2
- package/dist/store/session/__tests__/a-session-has-one-writer.test.d.ts.map +0 -1
- package/dist/store/session/__tests__/a-session-has-one-writer.test.js +0 -79
- package/dist/store/session/__tests__/a-session-has-one-writer.test.js.map +0 -1
- package/dist/store/session/__tests__/a-workspace-can-be-configured.test.d.ts +0 -2
- package/dist/store/session/__tests__/a-workspace-can-be-configured.test.d.ts.map +0 -1
- package/dist/store/session/__tests__/a-workspace-can-be-configured.test.js +0 -149
- package/dist/store/session/__tests__/a-workspace-can-be-configured.test.js.map +0 -1
- package/dist/store/session/__tests__/disk.test.d.ts +0 -2
- package/dist/store/session/__tests__/disk.test.d.ts.map +0 -1
- package/dist/store/session/__tests__/disk.test.js +0 -267
- package/dist/store/session/__tests__/disk.test.js.map +0 -1
- package/dist/store/session/__tests__/memory.test.d.ts +0 -2
- package/dist/store/session/__tests__/memory.test.d.ts.map +0 -1
- package/dist/store/session/__tests__/memory.test.js +0 -258
- package/dist/store/session/__tests__/memory.test.js.map +0 -1
- package/dist/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.d.ts +0 -2
- package/dist/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.d.ts.map +0 -1
- package/dist/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.js +0 -95
- package/dist/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.js.map +0 -1
- package/dist/store/task/__tests__/disk-concurrency.test.d.ts +0 -2
- package/dist/store/task/__tests__/disk-concurrency.test.d.ts.map +0 -1
- package/dist/store/task/__tests__/disk-concurrency.test.js +0 -91
- package/dist/store/task/__tests__/disk-concurrency.test.js.map +0 -1
- package/dist/store/task/__tests__/lookup-across-runs.test.d.ts +0 -2
- package/dist/store/task/__tests__/lookup-across-runs.test.d.ts.map +0 -1
- package/dist/store/task/__tests__/lookup-across-runs.test.js +0 -60
- package/dist/store/task/__tests__/lookup-across-runs.test.js.map +0 -1
- package/dist/streaming/coalesce.test.d.ts +0 -19
- package/dist/streaming/coalesce.test.d.ts.map +0 -1
- package/dist/streaming/coalesce.test.js +0 -120
- package/dist/streaming/coalesce.test.js.map +0 -1
- package/dist/telemetry/__tests__/latency-instruments.test.d.ts +0 -2
- package/dist/telemetry/__tests__/latency-instruments.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/latency-instruments.test.js +0 -82
- package/dist/telemetry/__tests__/latency-instruments.test.js.map +0 -1
- package/dist/telemetry/__tests__/metrics.test.d.ts +0 -2
- package/dist/telemetry/__tests__/metrics.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/metrics.test.js +0 -112
- package/dist/telemetry/__tests__/metrics.test.js.map +0 -1
- package/dist/telemetry/__tests__/model-call-span.test.d.ts +0 -2
- package/dist/telemetry/__tests__/model-call-span.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/model-call-span.test.js +0 -170
- package/dist/telemetry/__tests__/model-call-span.test.js.map +0 -1
- package/dist/telemetry/__tests__/span-closure.test.d.ts +0 -2
- package/dist/telemetry/__tests__/span-closure.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/span-closure.test.js +0 -131
- package/dist/telemetry/__tests__/span-closure.test.js.map +0 -1
- package/dist/telemetry/__tests__/span-hierarchy.test.d.ts +0 -2
- package/dist/telemetry/__tests__/span-hierarchy.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/span-hierarchy.test.js +0 -84
- package/dist/telemetry/__tests__/span-hierarchy.test.js.map +0 -1
- package/dist/test-setup.d.ts +0 -22
- package/dist/test-setup.d.ts.map +0 -1
- package/dist/test-setup.js +0 -23
- package/dist/test-setup.js.map +0 -1
- package/dist/tools/__tests__/file-tool-containment.test.d.ts +0 -2
- package/dist/tools/__tests__/file-tool-containment.test.d.ts.map +0 -1
- package/dist/tools/__tests__/file-tool-containment.test.js +0 -134
- package/dist/tools/__tests__/file-tool-containment.test.js.map +0 -1
- package/dist/tools/__tests__/path-containment.test.d.ts +0 -2
- package/dist/tools/__tests__/path-containment.test.d.ts.map +0 -1
- package/dist/tools/__tests__/path-containment.test.js +0 -133
- package/dist/tools/__tests__/path-containment.test.js.map +0 -1
- package/dist/tools/__tests__/posix-path.test.d.ts +0 -2
- package/dist/tools/__tests__/posix-path.test.d.ts.map +0 -1
- package/dist/tools/__tests__/posix-path.test.js +0 -67
- package/dist/tools/__tests__/posix-path.test.js.map +0 -1
- package/dist/tools/__tests__/sandboxed-search.test.d.ts +0 -2
- package/dist/tools/__tests__/sandboxed-search.test.d.ts.map +0 -1
- package/dist/tools/__tests__/sandboxed-search.test.js +0 -165
- package/dist/tools/__tests__/sandboxed-search.test.js.map +0 -1
- package/dist/tools/__tests__/untrusted-envelope.test.d.ts +0 -2
- package/dist/tools/__tests__/untrusted-envelope.test.d.ts.map +0 -1
- package/dist/tools/__tests__/untrusted-envelope.test.js +0 -71
- package/dist/tools/__tests__/untrusted-envelope.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/bash.proc-test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/bash.proc-test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/bash.proc-test.js +0 -115
- package/dist/tools/builtins/__tests__/bash.proc-test.js.map +0 -1
- package/dist/tools/builtins/__tests__/bash.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/bash.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/bash.test.js +0 -65
- package/dist/tools/builtins/__tests__/bash.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/computer-use.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/computer-use.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/computer-use.test.js +0 -156
- package/dist/tools/builtins/__tests__/computer-use.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/edit-commits-atomically.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/edit-commits-atomically.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/edit-commits-atomically.test.js +0 -78
- package/dist/tools/builtins/__tests__/edit-commits-atomically.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/edit-insert-reachable.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/edit-insert-reachable.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/edit-insert-reachable.test.js +0 -120
- package/dist/tools/builtins/__tests__/edit-insert-reachable.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/edit.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/edit.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/edit.test.js +0 -286
- package/dist/tools/builtins/__tests__/edit.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/payload-budget.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/payload-budget.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/payload-budget.test.js +0 -70
- package/dist/tools/builtins/__tests__/payload-budget.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/read-file.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/read-file.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/read-file.test.js +0 -55
- package/dist/tools/builtins/__tests__/read-file.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/stale-file-refusal.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/stale-file-refusal.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/stale-file-refusal.test.js +0 -187
- package/dist/tools/builtins/__tests__/stale-file-refusal.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/structuredOutput.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/structuredOutput.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/structuredOutput.test.js +0 -224
- package/dist/tools/builtins/__tests__/structuredOutput.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/verify-outputs.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/verify-outputs.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/verify-outputs.test.js +0 -52
- package/dist/tools/builtins/__tests__/verify-outputs.test.js.map +0 -1
- package/dist/tools/builtins/__tests__/write-file.test.d.ts +0 -2
- package/dist/tools/builtins/__tests__/write-file.test.d.ts.map +0 -1
- package/dist/tools/builtins/__tests__/write-file.test.js +0 -133
- package/dist/tools/builtins/__tests__/write-file.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.js +0 -101
- package/dist/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.js +0 -139
- package/dist/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.js +0 -160
- package/dist/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/agent.test.d.ts +0 -15
- package/dist/tools/coordinator/__tests__/agent.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/agent.test.js +0 -147
- package/dist/tools/coordinator/__tests__/agent.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/allow-delegation.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/allow-delegation.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/allow-delegation.test.js +0 -94
- package/dist/tools/coordinator/__tests__/allow-delegation.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.js +0 -115
- package/dist/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/approve-plan.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/approve-plan.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/approve-plan.test.js +0 -129
- package/dist/tools/coordinator/__tests__/approve-plan.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/ask-user-question.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/ask-user-question.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/ask-user-question.test.js +0 -411
- package/dist/tools/coordinator/__tests__/ask-user-question.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/completion-delivery.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/completion-delivery.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/completion-delivery.test.js +0 -376
- package/dist/tools/coordinator/__tests__/completion-delivery.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/empty-roster.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/empty-roster.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/empty-roster.test.js +0 -97
- package/dist/tools/coordinator/__tests__/empty-roster.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/plan-dependencies.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/plan-dependencies.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/plan-dependencies.test.js +0 -126
- package/dist/tools/coordinator/__tests__/plan-dependencies.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/task-list.test.d.ts +0 -13
- package/dist/tools/coordinator/__tests__/task-list.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/task-list.test.js +0 -268
- package/dist/tools/coordinator/__tests__/task-list.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/the-plan-a-human-approves.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/the-plan-a-human-approves.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/the-plan-a-human-approves.test.js +0 -99
- package/dist/tools/coordinator/__tests__/the-plan-a-human-approves.test.js.map +0 -1
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.d.ts +0 -2
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.d.ts.map +0 -1
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.js +0 -193
- package/dist/tools/coordinator/__tests__/wait-with-idle-bound.test.js.map +0 -1
- package/dist/types/common/__tests__/numeric-correctness.test.d.ts +0 -2
- package/dist/types/common/__tests__/numeric-correctness.test.d.ts.map +0 -1
- package/dist/types/common/__tests__/numeric-correctness.test.js +0 -108
- package/dist/types/common/__tests__/numeric-correctness.test.js.map +0 -1
- package/dist/types/common/usage-merge.test.d.ts +0 -2
- package/dist/types/common/usage-merge.test.d.ts.map +0 -1
- package/dist/types/common/usage-merge.test.js +0 -48
- package/dist/types/common/usage-merge.test.js.map +0 -1
- package/dist/types/errors/__tests__/catalog.test.d.ts +0 -2
- package/dist/types/errors/__tests__/catalog.test.d.ts.map +0 -1
- package/dist/types/errors/__tests__/catalog.test.js +0 -106
- package/dist/types/errors/__tests__/catalog.test.js.map +0 -1
- package/dist/types/errors/__tests__/errors.test.d.ts +0 -2
- package/dist/types/errors/__tests__/errors.test.d.ts.map +0 -1
- package/dist/types/errors/__tests__/errors.test.js +0 -104
- package/dist/types/errors/__tests__/errors.test.js.map +0 -1
- package/dist/types/invocation/__tests__/state.test.d.ts +0 -2
- package/dist/types/invocation/__tests__/state.test.d.ts.map +0 -1
- package/dist/types/invocation/__tests__/state.test.js +0 -174
- package/dist/types/invocation/__tests__/state.test.js.map +0 -1
- package/dist/types/provider/__tests__/cause-chain.test.d.ts +0 -2
- package/dist/types/provider/__tests__/cause-chain.test.d.ts.map +0 -1
- package/dist/types/provider/__tests__/cause-chain.test.js +0 -108
- package/dist/types/provider/__tests__/cause-chain.test.js.map +0 -1
- package/dist/types/provider/__tests__/declared-retryable.test.d.ts +0 -2
- package/dist/types/provider/__tests__/declared-retryable.test.d.ts.map +0 -1
- package/dist/types/provider/__tests__/declared-retryable.test.js +0 -70
- package/dist/types/provider/__tests__/declared-retryable.test.js.map +0 -1
- package/dist/types/provider/__tests__/overflow-classification.test.d.ts +0 -2
- package/dist/types/provider/__tests__/overflow-classification.test.d.ts.map +0 -1
- package/dist/types/provider/__tests__/overflow-classification.test.js +0 -80
- package/dist/types/provider/__tests__/overflow-classification.test.js.map +0 -1
- package/dist/types/run/__tests__/step.test.d.ts +0 -2
- package/dist/types/run/__tests__/step.test.d.ts.map +0 -1
- package/dist/types/run/__tests__/step.test.js +0 -107
- package/dist/types/run/__tests__/step.test.js.map +0 -1
- package/dist/utils/__tests__/abort-reason.test.d.ts +0 -2
- package/dist/utils/__tests__/abort-reason.test.d.ts.map +0 -1
- package/dist/utils/__tests__/abort-reason.test.js +0 -48
- package/dist/utils/__tests__/abort-reason.test.js.map +0 -1
- package/dist/utils/__tests__/atomic-write.test.d.ts +0 -2
- package/dist/utils/__tests__/atomic-write.test.d.ts.map +0 -1
- package/dist/utils/__tests__/atomic-write.test.js +0 -91
- package/dist/utils/__tests__/atomic-write.test.js.map +0 -1
- package/dist/utils/__tests__/shell-compress.test.d.ts +0 -2
- package/dist/utils/__tests__/shell-compress.test.d.ts.map +0 -1
- package/dist/utils/__tests__/shell-compress.test.js +0 -41
- package/dist/utils/__tests__/shell-compress.test.js.map +0 -1
- package/dist/vault/instrumentation.test.d.ts +0 -2
- package/dist/vault/instrumentation.test.d.ts.map +0 -1
- package/dist/vault/instrumentation.test.js +0 -80
- package/dist/vault/instrumentation.test.js.map +0 -1
- package/dist/verification/__tests__/argument-pattern.test.d.ts +0 -2
- package/dist/verification/__tests__/argument-pattern.test.d.ts.map +0 -1
- package/dist/verification/__tests__/argument-pattern.test.js +0 -122
- package/dist/verification/__tests__/argument-pattern.test.js.map +0 -1
- package/dist/verification/__tests__/rule-order-and-reason.test.d.ts +0 -2
- package/dist/verification/__tests__/rule-order-and-reason.test.d.ts.map +0 -1
- package/dist/verification/__tests__/rule-order-and-reason.test.js +0 -126
- package/dist/verification/__tests__/rule-order-and-reason.test.js.map +0 -1
- package/dist/verification/presets.test.d.ts +0 -16
- package/dist/verification/presets.test.d.ts.map +0 -1
- package/dist/verification/presets.test.js +0 -79
- package/dist/verification/presets.test.js.map +0 -1
- package/src/__tests__/default-path-conformance.test.ts +0 -306
- package/src/__tests__/replay-public-surface.test.ts +0 -54
- package/src/__tests__/shipped-defaults.test.ts +0 -111
- package/src/advisory/__tests__/budget-enforcement.test.ts +0 -208
- package/src/advisory/__tests__/consultation-context.test.ts +0 -191
- package/src/advisory/__tests__/structured-response.test.ts +0 -128
- package/src/advisory/context.test.ts +0 -109
- package/src/advisory/evaluator.test.ts +0 -192
- package/src/advisory/executor.test.ts +0 -301
- package/src/advisory/registry.test.ts +0 -75
- package/src/agents/__tests__/a-policy-nobody-can-select.test.ts +0 -202
- package/src/agents/__tests__/idempotency-key.test.ts +0 -177
- package/src/agents/__tests__/invocation-lock.test.ts +0 -154
- package/src/agents/__tests__/lock.test.ts +0 -158
- package/src/agents/__tests__/reachability.test.ts +0 -224
- package/src/agents/__tests__/run-agent-forwarding.test.ts +0 -85
- package/src/agents/__tests__/run-agent.test.ts +0 -165
- package/src/agents/__tests__/run-completed-stop-reason.test.ts +0 -59
- package/src/agents/__tests__/supervisor-coordinator-registration.test.ts +0 -185
- package/src/agents/__tests__/supervisor-hands-down-hitl.test.ts +0 -131
- package/src/agents/__tests__/supervisor-inbox-scope.test.ts +0 -149
- package/src/agents/__tests__/supervisor-ledger.test.ts +0 -185
- package/src/bridge/a2a/__tests__/project-is-the-a2a-context.test.ts +0 -66
- package/src/bridge/a2a/agent-card.test.ts +0 -140
- package/src/bridge/a2a/late-events.test.ts +0 -84
- package/src/bridge/a2a/mapper.test.ts +0 -319
- package/src/bridge/a2a/message.test.ts +0 -138
- package/src/bridge/a2a/task.test.ts +0 -235
- package/src/bridge/mcp/connector/adapter.test.ts +0 -230
- package/src/bridge/sse/late-events.test.ts +0 -182
- package/src/bridge/sse/mapper.test.ts +0 -550
- package/src/bridge/tools/connector/adapter.test.ts +0 -224
- package/src/bridge/tools/connector/definitions.test.ts +0 -183
- package/src/bridge/tools/connector/router.test.ts +0 -159
- package/src/bus/breaker.test.ts +0 -274
- package/src/bus/index.test.ts +0 -183
- package/src/bus/lock.test.ts +0 -265
- package/src/bus/ownership.test.ts +0 -243
- package/src/compaction/__tests__/SlidingWindowManager.test.ts +0 -139
- package/src/compaction/__tests__/cleared-result-recovery.test.ts +0 -118
- package/src/compaction/__tests__/context-reducer.test.ts +0 -239
- package/src/compaction/__tests__/context-window.test.ts +0 -77
- package/src/compaction/__tests__/dangling.test.ts +0 -457
- package/src/compaction/__tests__/factory.test.ts +0 -53
- package/src/compaction/__tests__/lossiness.test.ts +0 -187
- package/src/compaction/__tests__/state-across-resume.test.ts +0 -99
- package/src/compaction/__tests__/tool-result-editing.test.ts +0 -213
- package/src/compaction/__tests__/trim-opens-on-user.test.ts +0 -118
- package/src/compaction/__tests__/verifier-empty-reply.test.ts +0 -96
- package/src/compaction/__tests__/verifier-model.test.ts +0 -83
- package/src/config/__tests__/compaction-budget-schema.test.ts +0 -114
- package/src/connector/BaseConnector.test.ts +0 -130
- package/src/connector/builtins/__tests__/oauth2-auth.test.ts +0 -73
- package/src/connector/builtins/http.test.ts +0 -329
- package/src/connector/builtins/webhook.test.ts +0 -159
- package/src/connector/execution/factory.test.ts +0 -75
- package/src/connector/execution/remote.test.ts +0 -63
- package/src/connector/mcp/__tests__/a-close-that-means-closed.test.ts +0 -119
- package/src/connector/mcp/__tests__/a-transport-forgets-its-listeners.test.ts +0 -127
- package/src/connector/mcp/__tests__/discovery-policy.test.ts +0 -133
- package/src/connector/mcp/__tests__/list-pagination.test.ts +0 -98
- package/src/connector/mcp/__tests__/policy.test.ts +0 -100
- package/src/connector/mcp/__tests__/positional-arrays.test.ts +0 -183
- package/src/connector/mcp/__tests__/prompt-as-tool.test.ts +0 -157
- package/src/connector/mcp/__tests__/prompts-and-lifecycle.test.ts +0 -286
- package/src/connector/mcp/__tests__/protocol-negotiation.test.ts +0 -105
- package/src/connector/mcp/__tests__/schema-fidelity.test.ts +0 -250
- package/src/connector/mcp/__tests__/structured-result.test.ts +0 -143
- package/src/connector/mcp/adapter.test.ts +0 -249
- package/src/connector/mcp/client.test.ts +0 -159
- package/src/connector/mcp/streamable-http.test.ts +0 -169
- package/src/constants/tools/__tests__/dangerous-patterns.test.ts +0 -62
- package/src/contracts/__tests__/an-id-the-sdk-mints-passes-its-own-schema.test.ts +0 -84
- package/src/directory/__tests__/derive.test.ts +0 -135
- package/src/directory/__tests__/load-diagnostics.test.ts +0 -126
- package/src/directory/__tests__/load-directory.test.ts +0 -243
- package/src/directory/__tests__/subagents.test.ts +0 -155
- package/src/directory/__tests__/supervisor-budget.test.ts +0 -117
- package/src/eval/__tests__/case-deadline.test.ts +0 -147
- package/src/eval/__tests__/end-to-end.test.ts +0 -259
- package/src/eval/__tests__/harness-honesty.test.ts +0 -99
- package/src/eval/__tests__/harness.test.ts +0 -249
- package/src/eval/__tests__/judge.test.ts +0 -306
- package/src/eval/__tests__/scorer-gates.test.ts +0 -156
- package/src/execution/local.test.ts +0 -46
- package/src/gateway/__tests__/a-gateway-that-forgets-the-oldest.test.ts +0 -130
- package/src/gateway/__tests__/a-knob-nobody-can-turn.test.ts +0 -139
- package/src/gateway/__tests__/a-progress-tee-cannot-name-a-task-that-does-not-exist.test.ts +0 -175
- package/src/gateway/__tests__/completion-inbox.test.ts +0 -689
- package/src/gateway/__tests__/list-survives-eviction.test.ts +0 -124
- package/src/manager/agent/__tests__/a-fan-out-to-one-agent-id.test.ts +0 -118
- package/src/manager/agent/__tests__/an-env-reaches-the-child-it-was-set-for.test.ts +0 -196
- package/src/manager/agent/__tests__/depth-limit-authority.test.ts +0 -74
- package/src/manager/agent/__tests__/dispose-cancels.test.ts +0 -104
- package/src/manager/agent/__tests__/hitl-across-spawn.test.ts +0 -273
- package/src/manager/agent/__tests__/lifecycle.test.ts +0 -844
- package/src/manager/plan/__tests__/a-plan-that-succeeded-is-not-failed.test.ts +0 -88
- package/src/manager/project/__tests__/a-closed-workspace-takes-no-work.test.ts +0 -314
- package/src/manager/thread/__tests__/lifecycle.test.ts +0 -286
- package/src/plugin/__tests__/discovery-scopes.test.ts +0 -133
- package/src/plugin/__tests__/enable-contributions.test.ts +0 -299
- package/src/plugin/__tests__/hook-ordering.test.ts +0 -252
- package/src/plugin/__tests__/install-time-refusal.test.ts +0 -68
- package/src/plugin/__tests__/lifecycle.test.ts +0 -496
- package/src/plugin/__tests__/mcp-admission.test.ts +0 -286
- package/src/plugin/__tests__/path-containment.test.ts +0 -107
- package/src/probe/registry.test.ts +0 -523
- package/src/provider/__tests__/errors.test.ts +0 -85
- package/src/provider/__tests__/mock-script.test.ts +0 -179
- package/src/provider/__tests__/model-version.test.ts +0 -93
- package/src/provider/__tests__/registry.test.ts +0 -420
- package/src/provider/__tests__/retry-visibility.test.ts +0 -160
- package/src/provider/__tests__/retry.test.ts +0 -296
- package/src/provider/__tests__/strict-schema.test.ts +0 -189
- package/src/provider/__tests__/thinking-support.test.ts +0 -60
- package/src/provider/__tests__/typed-error-classification.test.ts +0 -143
- package/src/provider/__tests__/vendor-detail.test.ts +0 -107
- package/src/provider/collect.test.ts +0 -142
- package/src/provider/instrumentation.test.ts +0 -173
- package/src/rag/__tests__/namespace-isolation.test.ts +0 -109
- package/src/rag/__tests__/retrieval-math.test.ts +0 -54
- package/src/rag/chunking.test.ts +0 -107
- package/src/rag/context-assembler.test.ts +0 -114
- package/src/rag/embedding.test.ts +0 -185
- package/src/rag/ingestion.test.ts +0 -114
- package/src/rag/knowledge-base.test.ts +0 -106
- package/src/rag/rag-tool.test.ts +0 -167
- package/src/rag/retriever.test.ts +0 -210
- package/src/rag/vector-store.test.ts +0 -196
- package/src/registry/ManagedRegistry.test.ts +0 -118
- package/src/registry/Registry.test.ts +0 -91
- package/src/registry/agent/definitions.test.ts +0 -100
- package/src/registry/connector/definitions.test.ts +0 -51
- package/src/registry/connector/scoped.test.ts +0 -129
- package/src/registry/plugin/index.test.ts +0 -85
- package/src/registry/tool/__tests__/dialect.test.ts +0 -200
- package/src/registry/tool/__tests__/schema.test.ts +0 -208
- package/src/registry/tool/__tests__/strict-registration.test.ts +0 -115
- package/src/registry/tool/__tests__/tool-name-validation.test.ts +0 -88
- package/src/registry/tool/execute.test.ts +0 -648
- package/src/registry/toolset/catalog.test.ts +0 -282
- package/src/run/LimitChecker.test.ts +0 -32
- package/src/runtime/bidi/__tests__/session.test.ts +0 -232
- package/src/runtime/decision/parser.test.ts +0 -46
- package/src/runtime/query/__tests__/a-plan-that-succeeded-says-so.test.ts +0 -109
- package/src/runtime/query/__tests__/a-settled-plan-reaches-the-host.test.ts +0 -122
- package/src/runtime/query/__tests__/answer-review.test.ts +0 -172
- package/src/runtime/query/__tests__/capability-negotiation.test.ts +0 -301
- package/src/runtime/query/__tests__/checkpoint-store.test.ts +0 -285
- package/src/runtime/query/__tests__/checkpoint.test.ts +0 -170
- package/src/runtime/query/__tests__/citations.test.ts +0 -111
- package/src/runtime/query/__tests__/completion-does-not-erase-the-answer.test.ts +0 -163
- package/src/runtime/query/__tests__/completion-notification.test.ts +0 -648
- package/src/runtime/query/__tests__/content-budget.test.ts +0 -83
- package/src/runtime/query/__tests__/context-size-on-the-wire.test.ts +0 -122
- package/src/runtime/query/__tests__/context.test.ts +0 -127
- package/src/runtime/query/__tests__/deferred-tools.test.ts +0 -216
- package/src/runtime/query/__tests__/delegation-resume.test.ts +0 -159
- package/src/runtime/query/__tests__/document-attachments.test.ts +0 -125
- package/src/runtime/query/__tests__/durable-park-and-trace.test.ts +0 -245
- package/src/runtime/query/__tests__/durable-question-park.test.ts +0 -305
- package/src/runtime/query/__tests__/durable-run-state.test.ts +0 -194
- package/src/runtime/query/__tests__/effort-reaches-the-wire.test.ts +0 -135
- package/src/runtime/query/__tests__/executor-concurrency.test.ts +0 -122
- package/src/runtime/query/__tests__/executor-plugin-hooks.test.ts +0 -354
- package/src/runtime/query/__tests__/finish-reason-vs-tool-calls.test.ts +0 -206
- package/src/runtime/query/__tests__/grant-cannot-overrule-the-gate.test.ts +0 -115
- package/src/runtime/query/__tests__/guardrails-e2e.test.ts +0 -164
- package/src/runtime/query/__tests__/guardrails.test.ts +0 -236
- package/src/runtime/query/__tests__/hook-model-visibility.test.ts +0 -143
- package/src/runtime/query/__tests__/long-document-flow.test.ts +0 -187
- package/src/runtime/query/__tests__/memory-promotion.test.ts +0 -148
- package/src/runtime/query/__tests__/orphan-task-turn-end.test.ts +0 -101
- package/src/runtime/query/__tests__/overflow-relief.test.ts +0 -139
- package/src/runtime/query/__tests__/partial-batch-resume.test.ts +0 -264
- package/src/runtime/query/__tests__/per-step-skills.test.ts +0 -154
- package/src/runtime/query/__tests__/per-step-tool-choice.test.ts +0 -180
- package/src/runtime/query/__tests__/plugin-hooks.test.ts +0 -27
- package/src/runtime/query/__tests__/prepare-step-chain.test.ts +0 -127
- package/src/runtime/query/__tests__/prepare-step.test.ts +0 -233
- package/src/runtime/query/__tests__/probe-veto-is-error.test.ts +0 -145
- package/src/runtime/query/__tests__/prompt.test.ts +0 -91
- package/src/runtime/query/__tests__/provider-fault-pauses.test.ts +0 -104
- package/src/runtime/query/__tests__/reasoning-stream.test.ts +0 -177
- package/src/runtime/query/__tests__/recoverable-settle.test.ts +0 -145
- package/src/runtime/query/__tests__/resume-budget.test.ts +0 -158
- package/src/runtime/query/__tests__/resume-pending.test.ts +0 -273
- package/src/runtime/query/__tests__/resume-run.test.ts +0 -262
- package/src/runtime/query/__tests__/rich-content-budget-wiring.test.ts +0 -109
- package/src/runtime/query/__tests__/run-survives-its-own-park.proc-test.ts +0 -127
- package/src/runtime/query/__tests__/steering-reaches-the-model.test.ts +0 -117
- package/src/runtime/query/__tests__/steering.test.ts +0 -121
- package/src/runtime/query/__tests__/step-allow-list.test.ts +0 -205
- package/src/runtime/query/__tests__/stop-condition.test.ts +0 -265
- package/src/runtime/query/__tests__/stream-recovery.test.ts +0 -230
- package/src/runtime/query/__tests__/structured-output.test.ts +0 -268
- package/src/runtime/query/__tests__/structured-run-failure.test.ts +0 -144
- package/src/runtime/query/__tests__/terminal-tool.test.ts +0 -148
- package/src/runtime/query/__tests__/the-other-approval-surface-names-the-agent.test.ts +0 -95
- package/src/runtime/query/__tests__/the-plan-graph-reaches-a-host.test.ts +0 -79
- package/src/runtime/query/__tests__/tool-grants.test.ts +0 -102
- package/src/runtime/query/__tests__/tool-output-budget.test.ts +0 -0
- package/src/runtime/query/__tests__/tool-pause.test.ts +0 -209
- package/src/runtime/query/__tests__/tool-progress.test.ts +0 -154
- package/src/runtime/query/__tests__/tool-repair-retry.test.ts +0 -255
- package/src/runtime/query/__tests__/tool-result-wire.test.ts +0 -135
- package/src/runtime/query/__tests__/tool-timeout.test.ts +0 -268
- package/src/runtime/query/__tests__/trace-parenting.test.ts +0 -128
- package/src/runtime/query/__tests__/wiring-seams.test.ts +0 -288
- package/src/runtime/query/iteration/__tests__/cancel-settles-turn.test.ts +0 -177
- package/src/runtime/query/iteration/__tests__/settle-grace.test.ts +0 -265
- package/src/runtime/query/iteration/phases/__tests__/compaction-declined.test.ts +0 -124
- package/src/runtime/query/iteration/phases/advisory.test.ts +0 -415
- package/src/runtime/query/iteration/phases/compaction-model-routing.test.ts +0 -125
- package/src/runtime/query/iteration/phases/compaction-safe-cut.test.ts +0 -188
- package/src/runtime/query/iteration/phases/context-measurement.test.ts +0 -196
- package/src/runtime/query/iteration/phases/context-reducer-dispatch.test.ts +0 -238
- package/src/runtime/query/iteration/phases/hitl-abort-race.test.ts +0 -86
- package/src/runtime/query/iteration/phases/hitl-answer-question.test.ts +0 -141
- package/src/runtime/query/iteration/phases/overflow-escalation.test.ts +0 -167
- package/src/runtime/query/iteration/phases/retained-messages.test.ts +0 -226
- package/src/runtime/query/iteration/phases/tool-review-denials.test.ts +0 -270
- package/src/runtime/query/iteration/phases/working-memory-compaction.test.ts +0 -227
- package/src/runtime/query/replay/__tests__/mutate.test.ts +0 -134
- package/src/runtime/query/replay/__tests__/prepare.test.ts +0 -207
- package/src/sandbox/__tests__/exec-cancellation.test.ts +0 -72
- package/src/sandbox/__tests__/isolation.test.ts +0 -164
- package/src/sandbox/__tests__/output-truncation.test.ts +0 -106
- package/src/sandbox/__tests__/resource-limits.test.ts +0 -106
- package/src/session/__tests__/integration/_fixtures.ts +0 -310
- package/src/session/__tests__/integration/a-successful-delegation-disposes-its-workspace.test.ts +0 -270
- package/src/session/__tests__/integration/archive-gate.test.ts +0 -288
- package/src/session/__tests__/integration/capacity-caps.test.ts +0 -171
- package/src/session/__tests__/integration/e2e-spawn.test.ts +0 -296
- package/src/session/__tests__/integration/event-stream-ordering.test.ts +0 -410
- package/src/session/__tests__/integration/handoff-broadcast-e2e.test.ts +0 -271
- package/src/session/__tests__/integration/handoff-illegal-transition.test.ts +0 -214
- package/src/session/__tests__/integration/handoff-single-e2e.test.ts +0 -260
- package/src/session/__tests__/integration/hierarchy-lifecycle.test.ts +0 -240
- package/src/session/__tests__/integration/migration-filesystem.test.ts +0 -209
- package/src/session/__tests__/integration/migration-id-prefix.test.ts +0 -101
- package/src/session/__tests__/integration/prev-artifact-dag.test.ts +0 -328
- package/src/session/__tests__/integration/retention-archive.test.ts +0 -233
- package/src/session/__tests__/integration/spawn-rollback.test.ts +0 -313
- package/src/session/__tests__/integration/summary-materialization-e2e.test.ts +0 -239
- package/src/session/__tests__/integration/tenant-isolation.test.ts +0 -292
- package/src/session/handoff/__tests__/broadcast.test.ts +0 -378
- package/src/session/handoff/__tests__/capacity.test.ts +0 -129
- package/src/session/handoff/__tests__/single.test.ts +0 -333
- package/src/session/intervention/__tests__/prev-artifact.test.ts +0 -237
- package/src/session/migration/__tests__/a-migrated-project-id-is-an-id.test.ts +0 -92
- package/src/session/migration/__tests__/filesystem.test.ts +0 -270
- package/src/session/migration/__tests__/id-prefix.test.ts +0 -101
- package/src/session/migration/__tests__/marker.test.ts +0 -84
- package/src/session/retention/__tests__/archive.test.ts +0 -318
- package/src/session/retention/__tests__/disk-backend.test.ts +0 -180
- package/src/session/status/__tests__/derive.test.ts +0 -101
- package/src/session/summary/__tests__/materialize.test.ts +0 -340
- package/src/session/workspace/__tests__/git-worktree.test.ts +0 -262
- package/src/session/workspace/__tests__/path-builder.test.ts +0 -51
- package/src/session/workspace/__tests__/shared-run.test.ts +0 -199
- package/src/skills/__tests__/frontmatter.test.ts +0 -135
- package/src/skills/loader.test.ts +0 -89
- package/src/store/__tests__/checkpoint-integrity.test.ts +0 -134
- package/src/store/__tests__/checkpoint-versioning.test.ts +0 -194
- package/src/store/__tests__/schema-adoption.test.ts +0 -118
- package/src/store/__tests__/schema.test.ts +0 -119
- package/src/store/session/__tests__/a-session-has-one-writer.test.ts +0 -116
- package/src/store/session/__tests__/a-workspace-can-be-configured.test.ts +0 -210
- package/src/store/session/__tests__/disk.test.ts +0 -397
- package/src/store/session/__tests__/memory.test.ts +0 -402
- package/src/store/task/__tests__/an-edge-that-already-exists-is-not-news.test.ts +0 -115
- package/src/store/task/__tests__/disk-concurrency.test.ts +0 -118
- package/src/store/task/__tests__/lookup-across-runs.test.ts +0 -77
- package/src/streaming/coalesce.test.ts +0 -132
- package/src/telemetry/__tests__/latency-instruments.test.ts +0 -120
- package/src/telemetry/__tests__/metrics.test.ts +0 -160
- package/src/telemetry/__tests__/model-call-span.test.ts +0 -212
- package/src/telemetry/__tests__/span-closure.test.ts +0 -160
- package/src/telemetry/__tests__/span-hierarchy.test.ts +0 -94
- package/src/test-setup.ts +0 -24
- package/src/tools/__tests__/file-tool-containment.test.ts +0 -190
- package/src/tools/__tests__/path-containment.test.ts +0 -167
- package/src/tools/__tests__/posix-path.test.ts +0 -83
- package/src/tools/__tests__/sandboxed-search.test.ts +0 -206
- package/src/tools/__tests__/untrusted-envelope.test.ts +0 -105
- package/src/tools/builtins/__tests__/bash.proc-test.ts +0 -142
- package/src/tools/builtins/__tests__/bash.test.ts +0 -79
- package/src/tools/builtins/__tests__/computer-use.test.ts +0 -201
- package/src/tools/builtins/__tests__/edit-commits-atomically.test.ts +0 -103
- package/src/tools/builtins/__tests__/edit-insert-reachable.test.ts +0 -172
- package/src/tools/builtins/__tests__/edit.test.ts +0 -388
- package/src/tools/builtins/__tests__/payload-budget.test.ts +0 -92
- package/src/tools/builtins/__tests__/read-file.test.ts +0 -71
- package/src/tools/builtins/__tests__/stale-file-refusal.test.ts +0 -258
- package/src/tools/builtins/__tests__/structuredOutput.test.ts +0 -275
- package/src/tools/builtins/__tests__/verify-outputs.test.ts +0 -71
- package/src/tools/builtins/__tests__/write-file.test.ts +0 -177
- package/src/tools/coordinator/__tests__/a-failed-worker-is-not-an-answer.test.ts +0 -133
- package/src/tools/coordinator/__tests__/a-listing-is-not-a-back-door.test.ts +0 -171
- package/src/tools/coordinator/__tests__/a-plan-step-reports-its-own-outcome.test.ts +0 -215
- package/src/tools/coordinator/__tests__/agent.test.ts +0 -177
- package/src/tools/coordinator/__tests__/allow-delegation.test.ts +0 -120
- package/src/tools/coordinator/__tests__/an-approver-is-never-shown-an-impossible-step.test.ts +0 -153
- package/src/tools/coordinator/__tests__/approve-plan.test.ts +0 -160
- package/src/tools/coordinator/__tests__/ask-user-question.test.ts +0 -496
- package/src/tools/coordinator/__tests__/completion-delivery.test.ts +0 -501
- package/src/tools/coordinator/__tests__/empty-roster.test.ts +0 -118
- package/src/tools/coordinator/__tests__/plan-dependencies.test.ts +0 -186
- package/src/tools/coordinator/__tests__/task-list.test.ts +0 -303
- package/src/tools/coordinator/__tests__/the-plan-a-human-approves.test.ts +0 -121
- package/src/tools/coordinator/__tests__/wait-with-idle-bound.test.ts +0 -247
- package/src/types/common/__tests__/numeric-correctness.test.ts +0 -123
- package/src/types/common/usage-merge.test.ts +0 -53
- package/src/types/errors/__tests__/catalog.test.ts +0 -130
- package/src/types/errors/__tests__/errors.test.ts +0 -118
- package/src/types/invocation/__tests__/state.test.ts +0 -218
- package/src/types/provider/__tests__/cause-chain.test.ts +0 -132
- package/src/types/provider/__tests__/declared-retryable.test.ts +0 -85
- package/src/types/provider/__tests__/overflow-classification.test.ts +0 -113
- package/src/types/run/__tests__/step.test.ts +0 -123
- package/src/utils/__tests__/abort-reason.test.ts +0 -56
- package/src/utils/__tests__/atomic-write.test.ts +0 -108
- package/src/utils/__tests__/shell-compress.test.ts +0 -49
- package/src/vault/instrumentation.test.ts +0 -98
- package/src/verification/__tests__/argument-pattern.test.ts +0 -158
- package/src/verification/__tests__/rule-order-and-reason.test.ts +0 -149
- package/src/verification/presets.test.ts +0 -112
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ActorRef } from '../../types/session/actor.js';
|
|
2
2
|
import type { WorkspaceBackendKind } from '../../types/workspace/ref.js';
|
|
3
|
-
import type { TokenUsage } from '../common/index.js';
|
|
4
3
|
import type { ResumeHandler } from '../hitl/index.js';
|
|
5
4
|
import type { RunId, SessionId, TaskId, TenantId } from '../ids/index.js';
|
|
6
5
|
import type { Message } from '../message/index.js';
|
|
@@ -80,12 +79,6 @@ export interface AgentTask {
|
|
|
80
79
|
context: AgentTaskContext;
|
|
81
80
|
state: AgentTaskState;
|
|
82
81
|
result?: BaseAgentResult;
|
|
83
|
-
/**
|
|
84
|
-
* **Never populated.** Nothing in the SDK writes task progress.
|
|
85
|
-
*
|
|
86
|
-
* @deprecated No producer. Removed in the next major.
|
|
87
|
-
*/
|
|
88
|
-
progress?: AgentTaskProgress;
|
|
89
82
|
/**
|
|
90
83
|
* Tokens reserved from the shared pool when this child was spawned.
|
|
91
84
|
*
|
|
@@ -103,11 +96,6 @@ export interface AgentTask {
|
|
|
103
96
|
evictAfter?: number;
|
|
104
97
|
runEventListener?: RunEventListener;
|
|
105
98
|
}
|
|
106
|
-
export interface AgentTaskProgress {
|
|
107
|
-
toolUseCount: number;
|
|
108
|
-
usage: TokenUsage;
|
|
109
|
-
recentActivities: string[];
|
|
110
|
-
}
|
|
111
99
|
/**
|
|
112
100
|
* Options accepted by {@link AgentManager.sendMessage}. Phase 6 adds the
|
|
113
101
|
* required sub-session spawn scope (`parentSessionId`, `tenantId`, `projectId`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../src/types/agent/task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../src/types/agent/task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC7E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAEvD,MAAM,MAAM,cAAc,GACvB,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,CAAA;AAEnB,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAEvE;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAChC,WAAW,EAAE,KAAK,CAAA;IAElB,aAAa,EAAE,MAAM,CAAA;IAErB,qBAAqB,EAAE,eAAe,CAAA;IAEtC,KAAK,EAAE,MAAM,CAAA;IAEb,aAAa,EAAE,eAAe,CAAA;IAE9B,cAAc,CAAC,EAAE,mBAAmB,CAAA;IAEpC;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,EAAE,aAAa,CAAA;IAE7B,mEAAmE;IACnE,QAAQ,EAAE,QAAQ,CAAA;IAElB;;;;;;OAMG;IACH,QAAQ,EAAE,QAAQ,CAAA;IAElB;;;OAGG;IACH,SAAS,EAAE,SAAS,CAAA;IAEpB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAA;IAEpB;;;;OAIG;IACH,WAAW,EAAE,QAAQ,CAAA;CACrB;AAED,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAA;IAEb,SAAS,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,SAAS;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,KAAK,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;IAC9C,oBAAoB,EAAE,eAAe,CAAA;IACrC,OAAO,EAAE,gBAAgB,CAAA;IACzB,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,CAAC,EAAE,eAAe,CAAA;IAExB;;;;;;;;;OASG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B,eAAe,EAAE,OAAO,EAAE,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CACnC;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAClC,OAAO,EAAE,MAAM,CAAA;IAEf,KAAK,EAAE,UAAU,CAAA;IAEjB,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IAE1C,gBAAgB,CAAC,EAAE;QAClB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,SAAS,CAAC,EAAE,MAAM,CAAA;KAClB,CAAA;IAED;;;OAGG;IACH,eAAe,EAAE,SAAS,CAAA;IAE1B,QAAQ,EAAE,QAAQ,CAAA;IAElB,SAAS,EAAE,SAAS,CAAA;IAEpB,wEAAwE;IACxE,WAAW,EAAE,QAAQ,CAAA;IAErB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACvC;AAED,MAAM,WAAW,kBAAkB;IAClC,QAAQ,EAAE,MAAM,CAAA;IAEhB,UAAU,EAAE,MAAM,CAAA;IAElB,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;;;;;;;;;;OAWG;IACH,cAAc,EAAE,MAAM,CAAA;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../../src/types/agent/task.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../../src/types/agent/task.ts"],"names":[],"mappings":"AAoBA,MAAM,UAAU,wBAAwB,CAAC,KAAqB;IAC7D,OAAO,KAAK,KAAK,WAAW,IAAI,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,UAAU,CAAA;AACnG,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one frontmatter reader.
|
|
3
|
+
*
|
|
4
|
+
* A `SKILL.md`, a command file, and anything else this kernel reads from a
|
|
5
|
+
* markdown file with a `---` fence all come through here. There were three
|
|
6
|
+
* readers before this one and two of them disagreed on the same input: this
|
|
7
|
+
* one **threw** on malformed frontmatter, and a second **silently returned no
|
|
8
|
+
* metadata**, so the same file was a hard error in one code path and a skill
|
|
9
|
+
* named after its own directory with "(no description)" in the other. Refuse
|
|
10
|
+
* versus degrade, on one file shape, is the divergence this module exists to
|
|
11
|
+
* end — see `docs/conventions/refuse-do-not-degrade.md`.
|
|
12
|
+
*
|
|
13
|
+
* **Deliberately not a YAML parser.** It is a flat key/value splitter with one
|
|
14
|
+
* level of nesting, and it refuses the constructs in {@link UNSUPPORTED_YAML}
|
|
15
|
+
* rather than mangling them. That refusal is the design: a reader that
|
|
16
|
+
* half-understands YAML produces a value that passes validation and means
|
|
17
|
+
* nothing.
|
|
18
|
+
*
|
|
19
|
+
* **Known gap, stated rather than implied.** The refusal is not yet total. A
|
|
20
|
+
* *block* sequence
|
|
21
|
+
*
|
|
22
|
+
* ```yaml
|
|
23
|
+
* allowed-tools:
|
|
24
|
+
* - Read
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* is silently dropped — its lines carry no `:` and are skipped — while the
|
|
28
|
+
* flow form `[Read, Grep]` throws. Both readers this replaced behaved that
|
|
29
|
+
* way, so it is inherited rather than introduced, but it contradicts
|
|
30
|
+
* `docs/conventions/refuse-do-not-degrade.md` and is tracked as a follow-up.
|
|
31
|
+
* Do not read the paragraph above as a guarantee it does not make.
|
|
32
|
+
*
|
|
33
|
+
* **Vocabulary belongs to the caller.** This returns the parsed map; it does
|
|
34
|
+
* not know what a skill needs or what a command needs, and it validates no
|
|
35
|
+
* field names. Widening one caller's metadata type to cover another's is how a
|
|
36
|
+
* skill-shaped API comes to mean something it does not.
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* What one frontmatter key holds: a scalar, or a block of indented pairs.
|
|
40
|
+
*
|
|
41
|
+
* A discriminated union rather than two parallel maps, because the source
|
|
42
|
+
* format cannot express both at once. The first shape of this type had
|
|
43
|
+
* `data: Record<string, string>` beside `blocks: Record<string, Record<…>>`,
|
|
44
|
+
* which let one key sit in both — a state no YAML file can produce. Every
|
|
45
|
+
* caller would then have had to decide a precedence for a case that cannot
|
|
46
|
+
* arrive, and the ones who did not would be carrying a latent bug against a
|
|
47
|
+
* shape that told them the case existed. Removing the state beats documenting
|
|
48
|
+
* it.
|
|
49
|
+
*/
|
|
50
|
+
export type FrontmatterValue = {
|
|
51
|
+
readonly kind: 'scalar';
|
|
52
|
+
readonly value: string;
|
|
53
|
+
} | {
|
|
54
|
+
readonly kind: 'mapping';
|
|
55
|
+
readonly entries: Readonly<Record<string, string>>;
|
|
56
|
+
};
|
|
57
|
+
export interface ParsedFrontmatter {
|
|
58
|
+
/**
|
|
59
|
+
* Every top-level key, in the order the file declared it.
|
|
60
|
+
*
|
|
61
|
+
* A key whose value is empty and which has no indented lines under it is
|
|
62
|
+
* absent: it declared nothing. Narrow on `kind` to read it —
|
|
63
|
+
*
|
|
64
|
+
* ```ts
|
|
65
|
+
* const d = values.description
|
|
66
|
+
* if (d?.kind !== 'scalar') throw new Error('description must be a scalar')
|
|
67
|
+
* use(d.value)
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
readonly values: Readonly<Record<string, FrontmatterValue>>;
|
|
71
|
+
/** Everything after the closing fence, trimmed. */
|
|
72
|
+
readonly body: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Parse a markdown file's `---` frontmatter.
|
|
76
|
+
*
|
|
77
|
+
* @param raw The file's full contents. LF and CRLF both parse.
|
|
78
|
+
* @param source A label for error messages — a path, or a phrase naming the
|
|
79
|
+
* file. Used verbatim, so the caller controls how its own errors read.
|
|
80
|
+
* @throws If the frontmatter is absent, unclosed, or uses YAML this reader
|
|
81
|
+
* does not implement. It never returns a partial or empty result to stand in
|
|
82
|
+
* for a file it could not read.
|
|
83
|
+
*/
|
|
84
|
+
export declare function parseFrontmatter(raw: string, source: string): ParsedFrontmatter;
|
|
85
|
+
//# sourceMappingURL=frontmatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontmatter.d.ts","sourceRoot":"","sources":["../../src/utils/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AA8DH;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,gBAAgB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CAAE,CAAA;AAEnF,MAAM,WAAW,iBAAiB;IACjC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAA;IAE3D,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,iBAAiB,CAgF/E"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one frontmatter reader.
|
|
3
|
+
*
|
|
4
|
+
* A `SKILL.md`, a command file, and anything else this kernel reads from a
|
|
5
|
+
* markdown file with a `---` fence all come through here. There were three
|
|
6
|
+
* readers before this one and two of them disagreed on the same input: this
|
|
7
|
+
* one **threw** on malformed frontmatter, and a second **silently returned no
|
|
8
|
+
* metadata**, so the same file was a hard error in one code path and a skill
|
|
9
|
+
* named after its own directory with "(no description)" in the other. Refuse
|
|
10
|
+
* versus degrade, on one file shape, is the divergence this module exists to
|
|
11
|
+
* end — see `docs/conventions/refuse-do-not-degrade.md`.
|
|
12
|
+
*
|
|
13
|
+
* **Deliberately not a YAML parser.** It is a flat key/value splitter with one
|
|
14
|
+
* level of nesting, and it refuses the constructs in {@link UNSUPPORTED_YAML}
|
|
15
|
+
* rather than mangling them. That refusal is the design: a reader that
|
|
16
|
+
* half-understands YAML produces a value that passes validation and means
|
|
17
|
+
* nothing.
|
|
18
|
+
*
|
|
19
|
+
* **Known gap, stated rather than implied.** The refusal is not yet total. A
|
|
20
|
+
* *block* sequence
|
|
21
|
+
*
|
|
22
|
+
* ```yaml
|
|
23
|
+
* allowed-tools:
|
|
24
|
+
* - Read
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* is silently dropped — its lines carry no `:` and are skipped — while the
|
|
28
|
+
* flow form `[Read, Grep]` throws. Both readers this replaced behaved that
|
|
29
|
+
* way, so it is inherited rather than introduced, but it contradicts
|
|
30
|
+
* `docs/conventions/refuse-do-not-degrade.md` and is tracked as a follow-up.
|
|
31
|
+
* Do not read the paragraph above as a guarantee it does not make.
|
|
32
|
+
*
|
|
33
|
+
* **Vocabulary belongs to the caller.** This returns the parsed map; it does
|
|
34
|
+
* not know what a skill needs or what a command needs, and it validates no
|
|
35
|
+
* field names. Widening one caller's metadata type to cover another's is how a
|
|
36
|
+
* skill-shaped API comes to mean something it does not.
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* A closing fence is a line of its own, not `---` wherever it appears.
|
|
40
|
+
*
|
|
41
|
+
* An unanchored search found `---` inside a quoted value, inside a URL, inside
|
|
42
|
+
* prose — and cut the frontmatter there, which both truncated the metadata AND
|
|
43
|
+
* spilled the rest of it into the body, where it reaches the system prompt
|
|
44
|
+
* verbatim.
|
|
45
|
+
*
|
|
46
|
+
* `\r?` is explicit rather than incidental. `$` under `/m` already matches
|
|
47
|
+
* before a `\r` because JavaScript counts `\r` as a line terminator, so this
|
|
48
|
+
* pattern worked on CRLF by accident before it worked on purpose. Naming the
|
|
49
|
+
* carriage return keeps the next edit from removing a property nobody knew was
|
|
50
|
+
* being relied on — a file authored on Windows is the ordinary case, not the
|
|
51
|
+
* exotic one.
|
|
52
|
+
*/
|
|
53
|
+
const FRONTMATTER_FENCE = /^---[ \t]*\r?$/m;
|
|
54
|
+
const FRONTMATTER_DELIMITER = '---';
|
|
55
|
+
/**
|
|
56
|
+
* Splits on any of the three line endings — CRLF, LF, and a lone CR.
|
|
57
|
+
*
|
|
58
|
+
* The `\r?\n` half is defence in depth and was measured as such: reducing it to
|
|
59
|
+
* `/\n/` fails no test, because {@link normalizeScalar} trims the stray `\r`
|
|
60
|
+
* off every value anyway. The fence is the load-bearing half for CRLF, and that
|
|
61
|
+
* one has a mutation profile.
|
|
62
|
+
*
|
|
63
|
+
* The lone `\r` is not decoration. Without it a CR-only file is one single
|
|
64
|
+
* "line", and the whole frontmatter collapses into the first key: `name` came
|
|
65
|
+
* back as `"a-skill\rdescription: d"` — a *wrong value*, silently, which is the
|
|
66
|
+
* failure this module exists to end.
|
|
67
|
+
*
|
|
68
|
+
* `loadSkill` was accidentally protected, though not in the way first written
|
|
69
|
+
* here: the collapse leaves no `description` key at all, so the required-field
|
|
70
|
+
* check refused the file before any value could be used. A caller that
|
|
71
|
+
* validates nothing — which is every caller this is now exported for — would
|
|
72
|
+
* have taken the mangled name.
|
|
73
|
+
*/
|
|
74
|
+
const LINE_SPLIT = /\r\n|\r|\n/;
|
|
75
|
+
/**
|
|
76
|
+
* YAML this reader does not implement, refused rather than mangled.
|
|
77
|
+
*
|
|
78
|
+
* The documented contract says "YAML frontmatter" with no restriction — so an
|
|
79
|
+
* author has every reason to write a block scalar or a flow sequence, and no
|
|
80
|
+
* reason to expect what happened next. A `description: >-` followed by an
|
|
81
|
+
* indented paragraph produced the literal string `">-"`, which passed
|
|
82
|
+
* validation and registered with no warning; the skill then existed and was
|
|
83
|
+
* never selected, because its description said nothing. A `[Read, Grep]`
|
|
84
|
+
* became that literal text and was interpolated straight into the prompt.
|
|
85
|
+
*
|
|
86
|
+
* Refusing names the line and the file. That is worse for exactly one file —
|
|
87
|
+
* the one already silently broken — and better for everyone looking for it.
|
|
88
|
+
*/
|
|
89
|
+
const UNSUPPORTED_YAML = [
|
|
90
|
+
{ pattern: /^[>|][-+]?\s*$/, what: 'a block scalar (`>` or `|`)' },
|
|
91
|
+
{ pattern: /^\[.*\]$/, what: 'a flow sequence (`[a, b]`)' },
|
|
92
|
+
{ pattern: /^\{.*\}$/, what: 'a flow mapping (`{a: b}`)' },
|
|
93
|
+
];
|
|
94
|
+
/**
|
|
95
|
+
* Parse a markdown file's `---` frontmatter.
|
|
96
|
+
*
|
|
97
|
+
* @param raw The file's full contents. LF and CRLF both parse.
|
|
98
|
+
* @param source A label for error messages — a path, or a phrase naming the
|
|
99
|
+
* file. Used verbatim, so the caller controls how its own errors read.
|
|
100
|
+
* @throws If the frontmatter is absent, unclosed, or uses YAML this reader
|
|
101
|
+
* does not implement. It never returns a partial or empty result to stand in
|
|
102
|
+
* for a file it could not read.
|
|
103
|
+
*/
|
|
104
|
+
export function parseFrontmatter(raw, source) {
|
|
105
|
+
const trimmed = raw.trimStart();
|
|
106
|
+
if (!trimmed.startsWith(FRONTMATTER_DELIMITER)) {
|
|
107
|
+
throw new Error(`${source} has no YAML frontmatter`);
|
|
108
|
+
}
|
|
109
|
+
const closing = FRONTMATTER_FENCE.exec(trimmed.slice(FRONTMATTER_DELIMITER.length));
|
|
110
|
+
if (!closing) {
|
|
111
|
+
throw new Error(`${source} has unclosed frontmatter`);
|
|
112
|
+
}
|
|
113
|
+
const endIdx = FRONTMATTER_DELIMITER.length + closing.index;
|
|
114
|
+
const frontmatterRaw = trimmed.slice(FRONTMATTER_DELIMITER.length, endIdx).trim();
|
|
115
|
+
const body = trimmed.slice(endIdx + closing[0].length).trim();
|
|
116
|
+
// `Map`, not an object literal, because the keys come from an untrusted
|
|
117
|
+
// file. `blocks[key] = …` on a plain object with `key === '__proto__'`
|
|
118
|
+
// reaches `Object.prototype` through the inheritance chain and writes
|
|
119
|
+
// **there** — a frontmatter file could set `Object.prototype.metadata` and
|
|
120
|
+
// poison every object in the process. That is not theoretical: it was
|
|
121
|
+
// caught here by an adversarial pass, and the poisoned prototype then
|
|
122
|
+
// showed up in the metadata of an unrelated skill loaded afterwards.
|
|
123
|
+
// A `Map` has no prototype chain for string keys, and `Object.fromEntries`
|
|
124
|
+
// *defines* own properties rather than assigning through setters, so the
|
|
125
|
+
// round trip is safe at both ends.
|
|
126
|
+
const data = new Map();
|
|
127
|
+
const blocks = new Map();
|
|
128
|
+
let currentKey;
|
|
129
|
+
for (const line of frontmatterRaw.split(LINE_SPLIT)) {
|
|
130
|
+
if (!line.trim() || line.trimStart().startsWith('#'))
|
|
131
|
+
continue;
|
|
132
|
+
if (/^\s/.test(line)) {
|
|
133
|
+
if (!currentKey)
|
|
134
|
+
continue;
|
|
135
|
+
const colonIdx = line.indexOf(':');
|
|
136
|
+
if (colonIdx === -1)
|
|
137
|
+
continue;
|
|
138
|
+
const key = line.slice(0, colonIdx).trim();
|
|
139
|
+
const value = normalizeScalar(line.slice(colonIdx + 1));
|
|
140
|
+
if (!key || !value)
|
|
141
|
+
continue;
|
|
142
|
+
let block = blocks.get(currentKey);
|
|
143
|
+
if (!block) {
|
|
144
|
+
block = new Map();
|
|
145
|
+
blocks.set(currentKey, block);
|
|
146
|
+
}
|
|
147
|
+
block.set(key, value);
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
const colonIdx = line.indexOf(':');
|
|
151
|
+
if (colonIdx === -1)
|
|
152
|
+
continue;
|
|
153
|
+
const key = line.slice(0, colonIdx).trim();
|
|
154
|
+
const value = normalizeScalar(line.slice(colonIdx + 1));
|
|
155
|
+
assertReadableScalar(key, value, source);
|
|
156
|
+
currentKey = key;
|
|
157
|
+
if (value)
|
|
158
|
+
data.set(key, value);
|
|
159
|
+
}
|
|
160
|
+
// A key cannot be a scalar and a mapping at once — no YAML file can say
|
|
161
|
+
// that — so refusing here is what makes the illegal state unrepresentable
|
|
162
|
+
// in the returned type rather than merely undocumented. The alternative,
|
|
163
|
+
// picking a precedence, would silently drop half of what the author wrote.
|
|
164
|
+
for (const key of blocks.keys()) {
|
|
165
|
+
if (!data.has(key))
|
|
166
|
+
continue;
|
|
167
|
+
throw new Error(`${source}: "${key}" has both a value and an indented block. A key is one or the other — remove the value, or un-indent the lines beneath it.`);
|
|
168
|
+
}
|
|
169
|
+
const values = new Map();
|
|
170
|
+
for (const [key, value] of data) {
|
|
171
|
+
values.set(key, { kind: 'scalar', value });
|
|
172
|
+
}
|
|
173
|
+
for (const [key, entries] of blocks) {
|
|
174
|
+
values.set(key, { kind: 'mapping', entries: Object.fromEntries(entries) });
|
|
175
|
+
}
|
|
176
|
+
return { values: Object.fromEntries(values), body };
|
|
177
|
+
}
|
|
178
|
+
function normalizeScalar(value) {
|
|
179
|
+
return value
|
|
180
|
+
.trim()
|
|
181
|
+
.replace(/^["']|["']$/g, '')
|
|
182
|
+
.trim();
|
|
183
|
+
}
|
|
184
|
+
function assertReadableScalar(key, value, source) {
|
|
185
|
+
for (const { pattern, what } of UNSUPPORTED_YAML) {
|
|
186
|
+
if (!pattern.test(value))
|
|
187
|
+
continue;
|
|
188
|
+
throw new Error(`${source}: "${key}" uses ${what}, which this reader does not support. Write it as a single-line value instead. Refusing rather than accepting a "${key}" that would read as ${JSON.stringify(value)}.`);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
//# sourceMappingURL=frontmatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontmatter.js","sourceRoot":"","sources":["../../src/utils/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,iBAAiB,GAAG,iBAAiB,CAAA;AAE3C,MAAM,qBAAqB,GAAG,KAAK,CAAA;AAEnC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,GAAG,YAAY,CAAA;AAE/B;;;;;;;;;;;;;GAaG;AACH,MAAM,gBAAgB,GAAG;IACxB,EAAE,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,6BAA6B,EAAE;IAClE,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,4BAA4B,EAAE;IAC3D,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,2BAA2B,EAAE;CACjD,CAAA;AAqCV;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAW,EAAE,MAAc;IAC3D,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,EAAE,CAAA;IAE/B,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,0BAA0B,CAAC,CAAA;IACrD,CAAC;IAED,MAAM,OAAO,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAA;IACnF,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,2BAA2B,CAAC,CAAA;IACtD,CAAC;IAED,MAAM,MAAM,GAAG,qBAAqB,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAA;IAC3D,MAAM,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;IACjF,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;IAE7D,wEAAwE;IACxE,uEAAuE;IACvE,sEAAsE;IACtE,2EAA2E;IAC3E,sEAAsE;IACtE,sEAAsE;IACtE,qEAAqE;IACrE,2EAA2E;IAC3E,yEAAyE;IACzE,mCAAmC;IACnC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAkB,CAAA;IACtC,MAAM,MAAM,GAAG,IAAI,GAAG,EAA+B,CAAA;IACrD,IAAI,UAA8B,CAAA;IAElC,KAAK,MAAM,IAAI,IAAI,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;QACrD,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;YAAE,SAAQ;QAE9D,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,IAAI,CAAC,UAAU;gBAAE,SAAQ;YACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;YAClC,IAAI,QAAQ,KAAK,CAAC,CAAC;gBAAE,SAAQ;YAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAA;YAC1C,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAA;YACvD,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK;gBAAE,SAAQ;YAC5B,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;YAClC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACZ,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAA;gBACjC,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,CAAA;YAC9B,CAAC;YACD,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;YACrB,SAAQ;QACT,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QAClC,IAAI,QAAQ,KAAK,CAAC,CAAC;YAAE,SAAQ;QAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAA;QAC1C,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAA;QAEvD,oBAAoB,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAExC,UAAU,GAAG,GAAG,CAAA;QAChB,IAAI,KAAK;YAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IAChC,CAAC;IAED,wEAAwE;IACxE,0EAA0E;IAC1E,yEAAyE;IACzE,2EAA2E;IAC3E,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,SAAQ;QAC5B,MAAM,IAAI,KAAK,CACd,GAAG,MAAM,MAAM,GAAG,4HAA4H,CAC9I,CAAA;IACF,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,EAA4B,CAAA;IAClD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAA;IAC3C,CAAC;IACD,KAAK,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,MAAM,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IAC3E,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAA;AACpD,CAAC;AAED,SAAS,eAAe,CAAC,KAAa;IACrC,OAAO,KAAK;SACV,IAAI,EAAE;SACN,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;SAC3B,IAAI,EAAE,CAAA;AACT,CAAC;AAED,SAAS,oBAAoB,CAAC,GAAW,EAAE,KAAa,EAAE,MAAc;IACvE,KAAK,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,gBAAgB,EAAE,CAAC;QAClD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;YAAE,SAAQ;QAClC,MAAM,IAAI,KAAK,CACd,GAAG,MAAM,MAAM,GAAG,UAAU,IAAI,oHAAoH,GAAG,wBAAwB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CACvM,CAAA;IACF,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namzu/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.1.0",
|
|
4
4
|
"description": "Open-source AI agent SDK with a built-in runtime. Nothing between you and your agents.",
|
|
5
5
|
"license": "FSL-1.1-MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,17 @@
|
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|
|
26
|
+
"!dist/**/*.test.*",
|
|
27
|
+
"!dist/**/*.proc-test.*",
|
|
28
|
+
"!dist/**/__tests__",
|
|
29
|
+
"!dist/**/__fixtures__",
|
|
30
|
+
"!dist/**/test-setup.*",
|
|
26
31
|
"src",
|
|
32
|
+
"!src/**/*.test.*",
|
|
33
|
+
"!src/**/*.proc-test.*",
|
|
34
|
+
"!src/**/__tests__",
|
|
35
|
+
"!src/**/__fixtures__",
|
|
36
|
+
"!src/**/test-setup.*",
|
|
27
37
|
"LICENSE.md",
|
|
28
38
|
"README.md",
|
|
29
39
|
"CHANGELOG.md"
|
package/src/public-runtime.ts
CHANGED
|
@@ -142,6 +142,11 @@ export {
|
|
|
142
142
|
resolveSkillChain,
|
|
143
143
|
SkillRegistry,
|
|
144
144
|
} from './skills/index.js'
|
|
145
|
+
// The one frontmatter reader. `loadSkill` is built on it, and a host reading
|
|
146
|
+
// its own markdown — a command file, a prompt template — uses the same one
|
|
147
|
+
// rather than hand-rolling a second that disagrees about CRLF or about whether
|
|
148
|
+
// a malformed file throws or quietly returns nothing.
|
|
149
|
+
export { parseFrontmatter } from './utils/frontmatter.js'
|
|
145
150
|
|
|
146
151
|
// ─── the agent directory ─────────────────────────────────────────────────
|
|
147
152
|
//
|
package/src/public-types.ts
CHANGED
|
@@ -99,6 +99,7 @@ export type {
|
|
|
99
99
|
export type { AdvisoryCallContext, AdvisoryExecutionResult } from './advisory/index.js'
|
|
100
100
|
|
|
101
101
|
export type { ModelPricing } from './utils/cost.js'
|
|
102
|
+
export type { FrontmatterValue, ParsedFrontmatter } from './utils/frontmatter.js'
|
|
102
103
|
export type { Logger } from './utils/logger.js'
|
|
103
104
|
export type { ShellCompressOptions, ShellCompressResult } from './utils/shell-compress.js'
|
|
104
105
|
|
package/src/skills/loader.ts
CHANGED
|
@@ -6,151 +6,98 @@ import type {
|
|
|
6
6
|
SkillLoadResult,
|
|
7
7
|
SkillMetadata,
|
|
8
8
|
} from '../types/skills/index.js'
|
|
9
|
+
import { type ParsedFrontmatter, parseFrontmatter } from '../utils/frontmatter.js'
|
|
9
10
|
import { getRootLogger } from '../utils/logger.js'
|
|
10
11
|
|
|
11
12
|
const logger = getRootLogger().child({ component: 'SkillLoader' })
|
|
12
13
|
|
|
13
14
|
const SKILL_FILENAME = 'SKILL.md'
|
|
14
|
-
const FRONTMATTER_DELIMITER = '---'
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
/**
|
|
17
|
+
* How this file's errors name themselves. Passed to the shared reader so a
|
|
18
|
+
* frontmatter failure still reads as a `SKILL.md` failure — the reader is
|
|
19
|
+
* generic, the message is not.
|
|
20
|
+
*/
|
|
21
|
+
function sourceLabel(dirPath: string): string {
|
|
22
|
+
return `SKILL.md at "${dirPath}"`
|
|
19
23
|
}
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const metadata = parseFlatYaml(frontmatterRaw, dirPath)
|
|
43
|
-
|
|
44
|
-
return { metadata, body }
|
|
25
|
+
/**
|
|
26
|
+
* The skill vocabulary, applied to a generic parse.
|
|
27
|
+
*
|
|
28
|
+
* Splitting the file is {@link parseFrontmatter}'s job and knowing what a
|
|
29
|
+
* skill requires is this function's. A command file goes through the same
|
|
30
|
+
* reader and validates an entirely different set of keys.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Read one key, narrowed to the shape this field is declared to have.
|
|
34
|
+
*
|
|
35
|
+
* `Object.hasOwn`, not a bare `values[key]`: a plain property read walks the
|
|
36
|
+
* prototype chain, so a `Object.prototype.description` poisoned by anything
|
|
37
|
+
* else in the process would be picked up here as though the file had declared
|
|
38
|
+
* it. The parser can no longer create that poison; this is the other end of
|
|
39
|
+
* the same guarantee.
|
|
40
|
+
*/
|
|
41
|
+
function scalarAt(values: ParsedFrontmatter['values'], key: string): string | undefined {
|
|
42
|
+
if (!Object.hasOwn(values, key)) return undefined
|
|
43
|
+
const found = values[key]
|
|
44
|
+
return found?.kind === 'scalar' ? found.value : undefined
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
if (/^\s/.test(line)) {
|
|
57
|
-
if (section !== 'metadata') continue
|
|
58
|
-
const colonIdx = line.indexOf(':')
|
|
59
|
-
if (colonIdx === -1) continue
|
|
60
|
-
const key = line.slice(0, colonIdx).trim()
|
|
61
|
-
const value = normalizeYamlScalar(line.slice(colonIdx + 1).trim())
|
|
62
|
-
if (key && value) metadata[key] = value
|
|
63
|
-
continue
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const colonIdx = line.indexOf(':')
|
|
67
|
-
if (colonIdx === -1) continue
|
|
68
|
-
const key = line.slice(0, colonIdx).trim()
|
|
69
|
-
const value = normalizeYamlScalar(line.slice(colonIdx + 1).trim())
|
|
47
|
+
function mappingAt(
|
|
48
|
+
values: ParsedFrontmatter['values'],
|
|
49
|
+
key: string,
|
|
50
|
+
): Readonly<Record<string, string>> | undefined {
|
|
51
|
+
if (!Object.hasOwn(values, key)) return undefined
|
|
52
|
+
const found = values[key]
|
|
53
|
+
return found?.kind === 'mapping' ? found.entries : undefined
|
|
54
|
+
}
|
|
70
55
|
|
|
71
|
-
|
|
56
|
+
function toSkillMetadata(parsed: ParsedFrontmatter, dirPath: string): SkillMetadata {
|
|
57
|
+
const source = sourceLabel(dirPath)
|
|
58
|
+
const { values } = parsed
|
|
72
59
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
60
|
+
const name = scalarAt(values, 'name')
|
|
61
|
+
const description = scalarAt(values, 'description')
|
|
76
62
|
|
|
77
|
-
if (!
|
|
78
|
-
throw new Error(
|
|
63
|
+
if (!name) {
|
|
64
|
+
throw new Error(`${source} missing required field: name`)
|
|
79
65
|
}
|
|
80
|
-
if (!
|
|
81
|
-
throw new Error(
|
|
66
|
+
if (!description) {
|
|
67
|
+
throw new Error(`${source} missing required field: description`)
|
|
82
68
|
}
|
|
83
69
|
|
|
84
|
-
validateSkillName(
|
|
85
|
-
validateDescription(
|
|
70
|
+
validateSkillName(name, dirPath)
|
|
71
|
+
validateDescription(description, dirPath)
|
|
86
72
|
|
|
87
|
-
const skillMetadata: SkillMetadata = {
|
|
88
|
-
name: kv.name,
|
|
89
|
-
description: kv.description,
|
|
90
|
-
}
|
|
73
|
+
const skillMetadata: SkillMetadata = { name, description }
|
|
91
74
|
|
|
92
|
-
|
|
93
|
-
|
|
75
|
+
const license = scalarAt(values, 'license')
|
|
76
|
+
if (license) {
|
|
77
|
+
skillMetadata.license = license
|
|
94
78
|
}
|
|
95
79
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
80
|
+
const compatibility = scalarAt(values, 'compatibility')
|
|
81
|
+
if (compatibility) {
|
|
82
|
+
if (compatibility.length > 500) {
|
|
83
|
+
throw new Error(`${source}: compatibility exceeds 500 characters`)
|
|
99
84
|
}
|
|
100
|
-
skillMetadata.compatibility =
|
|
85
|
+
skillMetadata.compatibility = compatibility
|
|
101
86
|
}
|
|
102
87
|
|
|
103
|
-
|
|
104
|
-
|
|
88
|
+
const allowedTools = scalarAt(values, 'allowed-tools')
|
|
89
|
+
if (allowedTools) {
|
|
90
|
+
skillMetadata.allowedTools = allowedTools
|
|
105
91
|
}
|
|
106
92
|
|
|
107
|
-
|
|
108
|
-
|
|
93
|
+
const extra = mappingAt(values, 'metadata')
|
|
94
|
+
if (extra && Object.keys(extra).length > 0) {
|
|
95
|
+
skillMetadata.metadata = { ...extra }
|
|
109
96
|
}
|
|
110
97
|
|
|
111
98
|
return skillMetadata
|
|
112
99
|
}
|
|
113
100
|
|
|
114
|
-
function normalizeYamlScalar(value: string): string {
|
|
115
|
-
return value.replace(/^["']|["']$/g, '').trim()
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/** A closing fence is a line of its own, not `---` wherever it appears. */
|
|
119
|
-
const FRONTMATTER_FENCE = /^---[ \t]*$/m
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* YAML this reader does not implement, refused rather than mangled.
|
|
123
|
-
*
|
|
124
|
-
* The frontmatter reader here is a flat key/value splitter, and the
|
|
125
|
-
* documented contract says "YAML frontmatter" with no restriction — so an
|
|
126
|
-
* author has every reason to write a block scalar or a flow sequence, and
|
|
127
|
-
* no reason to expect what happened next. A `description: >-` followed by
|
|
128
|
-
* an indented paragraph produced the literal string `">-"`, which passed
|
|
129
|
-
* validation and registered with no warning; the skill then existed and
|
|
130
|
-
* was never selected, because its description said nothing. A
|
|
131
|
-
* `[Read, Grep]` became that literal text and was interpolated straight
|
|
132
|
-
* into the prompt.
|
|
133
|
-
*
|
|
134
|
-
* Refusing names the line and the file. That is worse for exactly one
|
|
135
|
-
* skill — the one already silently broken — and better for everyone
|
|
136
|
-
* looking for it.
|
|
137
|
-
*/
|
|
138
|
-
const UNSUPPORTED_YAML = [
|
|
139
|
-
{ pattern: /^[>|][-+]?\s*$/, what: 'a block scalar (`>` or `|`)' },
|
|
140
|
-
{ pattern: /^\[.*\]$/, what: 'a flow sequence (`[a, b]`)' },
|
|
141
|
-
{ pattern: /^\{.*\}$/, what: 'a flow mapping (`{a: b}`)' },
|
|
142
|
-
] as const
|
|
143
|
-
|
|
144
|
-
function assertReadableScalar(key: string, rawValue: string, dirPath: string): void {
|
|
145
|
-
const value = rawValue.trim()
|
|
146
|
-
for (const { pattern, what } of UNSUPPORTED_YAML) {
|
|
147
|
-
if (!pattern.test(value)) continue
|
|
148
|
-
throw new Error(
|
|
149
|
-
`SKILL.md at "${dirPath}": "${key}" uses ${what}, which this reader does not support. Write it as a single-line value instead. Refusing rather than registering a skill whose "${key}" would read as ${JSON.stringify(value)}.`,
|
|
150
|
-
)
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
101
|
const SKILL_NAME_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/
|
|
155
102
|
|
|
156
103
|
function validateSkillName(name: string, dirPath: string): void {
|
|
@@ -191,10 +138,11 @@ export async function loadSkill(
|
|
|
191
138
|
): Promise<SkillLoadResult> {
|
|
192
139
|
const skillMdPath = join(dirPath, SKILL_FILENAME)
|
|
193
140
|
const raw = await readFile(skillMdPath, 'utf-8')
|
|
194
|
-
const parsed =
|
|
141
|
+
const parsed = parseFrontmatter(raw, sourceLabel(dirPath))
|
|
142
|
+
const metadata = toSkillMetadata(parsed, dirPath)
|
|
195
143
|
|
|
196
144
|
const skill: Skill = {
|
|
197
|
-
metadata
|
|
145
|
+
metadata,
|
|
198
146
|
dirPath,
|
|
199
147
|
}
|
|
200
148
|
|
|
@@ -202,11 +150,11 @@ export async function loadSkill(
|
|
|
202
150
|
skill.body = parsed.body
|
|
203
151
|
}
|
|
204
152
|
|
|
205
|
-
const metadataTokens = estimateTokens(`${
|
|
153
|
+
const metadataTokens = estimateTokens(`${metadata.name}: ${metadata.description}`)
|
|
206
154
|
const bodyTokens = skill.body ? estimateTokens(skill.body) : 0
|
|
207
155
|
|
|
208
156
|
logger.debug('Loaded skill', {
|
|
209
|
-
name:
|
|
157
|
+
name: metadata.name,
|
|
210
158
|
level,
|
|
211
159
|
tokens: metadataTokens + bodyTokens,
|
|
212
160
|
})
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { TaskId } from '../ids/index.js'
|
|
2
2
|
import type { BaseAgentResult } from './base.js'
|
|
3
|
-
import type { AgentTaskProgress } from './task.js'
|
|
4
3
|
|
|
5
4
|
export type AgentLifecycleEvent =
|
|
6
5
|
| {
|
|
@@ -11,14 +10,6 @@ export type AgentLifecycleEvent =
|
|
|
11
10
|
depth: number
|
|
12
11
|
}
|
|
13
12
|
| { type: 'running'; taskId: TaskId }
|
|
14
|
-
/**
|
|
15
|
-
* **Never emitted.** Nothing constructs this variant, so a host that
|
|
16
|
-
* switches on it has written a branch that cannot run — and a host that
|
|
17
|
-
* relies on progress arriving will wait for an event that never comes.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated No producer. Removed in the next major.
|
|
20
|
-
*/
|
|
21
|
-
| { type: 'progress_updated'; taskId: TaskId; progress: AgentTaskProgress }
|
|
22
13
|
| { type: 'completed'; taskId: TaskId; result: BaseAgentResult }
|
|
23
14
|
| { type: 'failed'; taskId: TaskId; error: string }
|
|
24
15
|
| { type: 'canceled'; taskId: TaskId }
|