@qodo/sdk 0.13.3 → 2.0.0-next.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/LICENSE +31 -118
- package/README.md +133 -121
- package/bin/qodo-skills.mjs +13 -0
- package/bundled-skills/code-review/SKILL.md +41 -0
- package/bundled-skills/pr-summary/SKILL.md +59 -0
- package/bundled-skills/test-gen/SKILL.md +47 -0
- package/dist/auth/index.browser.d.ts +38 -0
- package/dist/auth/index.browser.d.ts.map +1 -0
- package/dist/auth/index.browser.js +62 -0
- package/dist/auth/index.browser.js.map +1 -0
- package/dist/auth/index.d.ts +44 -30
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +57 -110
- package/dist/auth/index.js.map +1 -1
- package/dist/client/AgentsClient.d.ts +33 -0
- package/dist/client/AgentsClient.d.ts.map +1 -0
- package/dist/client/AgentsClient.js +40 -0
- package/dist/client/AgentsClient.js.map +1 -0
- package/dist/client/ArtifactsClient.d.ts +43 -0
- package/dist/client/ArtifactsClient.d.ts.map +1 -0
- package/dist/client/ArtifactsClient.js +54 -0
- package/dist/client/ArtifactsClient.js.map +1 -0
- package/dist/client/BulletinClient.d.ts +45 -0
- package/dist/client/BulletinClient.d.ts.map +1 -0
- package/dist/client/BulletinClient.js +51 -0
- package/dist/client/BulletinClient.js.map +1 -0
- package/dist/client/InfoClient.d.ts +58 -0
- package/dist/client/InfoClient.d.ts.map +1 -0
- package/dist/client/InfoClient.js +135 -0
- package/dist/client/InfoClient.js.map +1 -0
- package/dist/client/PipelineClient.d.ts +162 -0
- package/dist/client/PipelineClient.d.ts.map +1 -0
- package/dist/client/PipelineClient.js +340 -0
- package/dist/client/PipelineClient.js.map +1 -0
- package/dist/client/QarRegistryClient.d.ts +396 -0
- package/dist/client/QarRegistryClient.d.ts.map +1 -0
- package/dist/client/QarRegistryClient.js +536 -0
- package/dist/client/QarRegistryClient.js.map +1 -0
- package/dist/client/QodoClient.d.ts +296 -0
- package/dist/client/QodoClient.d.ts.map +1 -0
- package/dist/client/QodoClient.js +803 -0
- package/dist/client/QodoClient.js.map +1 -0
- package/dist/client/SpecsClient.d.ts +121 -0
- package/dist/client/SpecsClient.d.ts.map +1 -0
- package/dist/client/SpecsClient.js +252 -0
- package/dist/client/SpecsClient.js.map +1 -0
- package/dist/client/StateClient.d.ts +35 -0
- package/dist/client/StateClient.d.ts.map +1 -0
- package/dist/client/StateClient.js +36 -0
- package/dist/client/StateClient.js.map +1 -0
- package/dist/client/TaskClient.d.ts +706 -0
- package/dist/client/TaskClient.d.ts.map +1 -0
- package/dist/client/TaskClient.js +2522 -0
- package/dist/client/TaskClient.js.map +1 -0
- package/dist/client/ToolClient.d.ts +278 -0
- package/dist/client/ToolClient.d.ts.map +1 -0
- package/dist/client/ToolClient.js +1115 -0
- package/dist/client/ToolClient.js.map +1 -0
- package/dist/client/a2a/index.d.ts +10 -0
- package/dist/client/a2a/index.d.ts.map +1 -0
- package/dist/client/a2a/index.js +9 -0
- package/dist/client/a2a/index.js.map +1 -0
- package/dist/client/a2a/registerA2A.d.ts +170 -0
- package/dist/client/a2a/registerA2A.d.ts.map +1 -0
- package/dist/client/a2a/registerA2A.js +85 -0
- package/dist/client/a2a/registerA2A.js.map +1 -0
- package/dist/client/connection.d.ts +800 -0
- package/dist/client/connection.d.ts.map +1 -0
- package/dist/client/connection.js +2020 -0
- package/dist/client/connection.js.map +1 -0
- package/dist/client/errors.d.ts +735 -0
- package/dist/client/errors.d.ts.map +1 -0
- package/dist/client/errors.js +921 -0
- package/dist/client/errors.js.map +1 -0
- package/dist/client/index.d.ts +26 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +20 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/inlineGraph.d.ts +66 -0
- package/dist/client/inlineGraph.d.ts.map +1 -0
- package/dist/client/inlineGraph.js +500 -0
- package/dist/client/inlineGraph.js.map +1 -0
- package/dist/client/internal/thenable.d.ts +27 -0
- package/dist/client/internal/thenable.d.ts.map +1 -0
- package/dist/client/internal/thenable.js +31 -0
- package/dist/client/internal/thenable.js.map +1 -0
- package/dist/client/iterator.d.ts +32 -0
- package/dist/client/iterator.d.ts.map +1 -0
- package/dist/client/iterator.js +73 -0
- package/dist/client/iterator.js.map +1 -0
- package/dist/client/mcp/McpClientPool.browser.d.ts +76 -0
- package/dist/client/mcp/McpClientPool.browser.d.ts.map +1 -0
- package/dist/client/mcp/McpClientPool.browser.js +78 -0
- package/dist/client/mcp/McpClientPool.browser.js.map +1 -0
- package/dist/client/mcp/McpClientPool.d.ts +236 -0
- package/dist/client/mcp/McpClientPool.d.ts.map +1 -0
- package/dist/client/mcp/McpClientPool.js +585 -0
- package/dist/client/mcp/McpClientPool.js.map +1 -0
- package/dist/client/mcp/projection.d.ts +109 -0
- package/dist/client/mcp/projection.d.ts.map +1 -0
- package/dist/client/mcp/projection.js +446 -0
- package/dist/client/mcp/projection.js.map +1 -0
- package/dist/client/mcp/substituteEnv.browser.d.ts +18 -0
- package/dist/client/mcp/substituteEnv.browser.d.ts.map +1 -0
- package/dist/client/mcp/substituteEnv.browser.js +20 -0
- package/dist/client/mcp/substituteEnv.browser.js.map +1 -0
- package/dist/client/mcp/substituteEnv.d.ts +45 -0
- package/dist/client/mcp/substituteEnv.d.ts.map +1 -0
- package/dist/client/mcp/substituteEnv.js +63 -0
- package/dist/client/mcp/substituteEnv.js.map +1 -0
- package/dist/client/observers.d.ts +57 -0
- package/dist/client/observers.d.ts.map +1 -0
- package/dist/client/observers.js +203 -0
- package/dist/client/observers.js.map +1 -0
- package/dist/client/options.d.ts +269 -0
- package/dist/client/options.d.ts.map +1 -0
- package/dist/client/options.js +9 -0
- package/dist/client/options.js.map +1 -0
- package/dist/client/tools/_readlineApprovalPrompt.browser.d.ts +17 -0
- package/dist/client/tools/_readlineApprovalPrompt.browser.d.ts.map +1 -0
- package/dist/client/tools/_readlineApprovalPrompt.browser.js +24 -0
- package/dist/client/tools/_readlineApprovalPrompt.browser.js.map +1 -0
- package/dist/client/tools/_readlineApprovalPrompt.d.ts +33 -0
- package/dist/client/tools/_readlineApprovalPrompt.d.ts.map +1 -0
- package/dist/client/tools/_readlineApprovalPrompt.js +90 -0
- package/dist/client/tools/_readlineApprovalPrompt.js.map +1 -0
- package/dist/client/tools/approval.d.ts +280 -0
- package/dist/client/tools/approval.d.ts.map +1 -0
- package/dist/client/tools/approval.js +229 -0
- package/dist/client/tools/approval.js.map +1 -0
- package/dist/client/tools/bindFunctionToolDefs.d.ts +156 -0
- package/dist/client/tools/bindFunctionToolDefs.d.ts.map +1 -0
- package/dist/client/tools/bindFunctionToolDefs.js +360 -0
- package/dist/client/tools/bindFunctionToolDefs.js.map +1 -0
- package/dist/client/tools/defineFunctionTool.d.ts +277 -0
- package/dist/client/tools/defineFunctionTool.d.ts.map +1 -0
- package/dist/client/tools/defineFunctionTool.js +190 -0
- package/dist/client/tools/defineFunctionTool.js.map +1 -0
- package/dist/client/transport.browser.d.ts +20 -0
- package/dist/client/transport.browser.d.ts.map +1 -0
- package/dist/client/transport.browser.js +29 -0
- package/dist/client/transport.browser.js.map +1 -0
- package/dist/client/transport.d.ts +47 -0
- package/dist/client/transport.d.ts.map +1 -0
- package/dist/client/transport.js +102 -0
- package/dist/client/transport.js.map +1 -0
- package/dist/client/transport.shared.d.ts +30 -0
- package/dist/client/transport.shared.d.ts.map +1 -0
- package/dist/client/transport.shared.js +40 -0
- package/dist/client/transport.shared.js.map +1 -0
- package/dist/client/uuid.d.ts +32 -0
- package/dist/client/uuid.d.ts.map +1 -0
- package/dist/client/uuid.js +65 -0
- package/dist/client/uuid.js.map +1 -0
- package/dist/index.d.ts +88 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +166 -43
- package/dist/index.js.map +1 -1
- package/dist/observability/attributes.d.ts +136 -0
- package/dist/observability/attributes.d.ts.map +1 -0
- package/dist/observability/attributes.js +184 -0
- package/dist/observability/attributes.js.map +1 -0
- package/dist/observability/index.d.ts +14 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +11 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/resolveOTel.browser.d.ts +13 -0
- package/dist/observability/resolveOTel.browser.d.ts.map +1 -0
- package/dist/observability/resolveOTel.browser.js +14 -0
- package/dist/observability/resolveOTel.browser.js.map +1 -0
- package/dist/observability/resolveOTel.d.ts +28 -0
- package/dist/observability/resolveOTel.d.ts.map +1 -0
- package/dist/observability/resolveOTel.js +74 -0
- package/dist/observability/resolveOTel.js.map +1 -0
- package/dist/observability/spans.d.ts +198 -0
- package/dist/observability/spans.d.ts.map +1 -0
- package/dist/observability/spans.js +300 -0
- package/dist/observability/spans.js.map +1 -0
- package/dist/observability/traceContext.d.ts +51 -0
- package/dist/observability/traceContext.d.ts.map +1 -0
- package/dist/observability/traceContext.js +151 -0
- package/dist/observability/traceContext.js.map +1 -0
- package/dist/observability/transportMetrics.d.ts +58 -0
- package/dist/observability/transportMetrics.d.ts.map +1 -0
- package/dist/observability/transportMetrics.js +55 -0
- package/dist/observability/transportMetrics.js.map +1 -0
- package/dist/qar/agentSpec.d.ts +93 -0
- package/dist/qar/agentSpec.d.ts.map +1 -0
- package/dist/qar/agentSpec.js +184 -0
- package/dist/qar/agentSpec.js.map +1 -0
- package/dist/qar/clientEvents.d.ts +86 -0
- package/dist/qar/clientEvents.d.ts.map +1 -0
- package/dist/qar/clientEvents.js +36 -0
- package/dist/qar/clientEvents.js.map +1 -0
- package/dist/qar/envelopes.d.ts +227 -0
- package/dist/qar/envelopes.d.ts.map +1 -0
- package/dist/qar/envelopes.js +67 -0
- package/dist/qar/envelopes.js.map +1 -0
- package/dist/qar/generated/envelope.d.ts +332 -0
- package/dist/qar/generated/envelope.d.ts.map +1 -0
- package/dist/qar/generated/envelope.js +15 -0
- package/dist/qar/generated/envelope.js.map +1 -0
- package/dist/qar/generated/qar-info.d.ts +76 -0
- package/dist/qar/generated/qar-info.d.ts.map +1 -0
- package/dist/qar/generated/qar-info.js +15 -0
- package/dist/qar/generated/qar-info.js.map +1 -0
- package/dist/qar/generated/qodo-task-start-payload.d.ts +54 -0
- package/dist/qar/generated/qodo-task-start-payload.d.ts.map +1 -0
- package/dist/qar/generated/qodo-task-start-payload.js +15 -0
- package/dist/qar/generated/qodo-task-start-payload.js.map +1 -0
- package/dist/qar/ids.d.ts +19 -0
- package/dist/qar/ids.d.ts.map +1 -0
- package/dist/qar/ids.js +11 -0
- package/dist/qar/ids.js.map +1 -0
- package/dist/qar/index.d.ts +24 -0
- package/dist/qar/index.d.ts.map +1 -0
- package/dist/qar/index.js +16 -0
- package/dist/qar/index.js.map +1 -0
- package/dist/qar/info.d.ts +37 -0
- package/dist/qar/info.d.ts.map +1 -0
- package/dist/qar/info.js +17 -0
- package/dist/qar/info.js.map +1 -0
- package/dist/qar/json.d.ts +14 -0
- package/dist/qar/json.d.ts.map +1 -0
- package/dist/qar/json.js +9 -0
- package/dist/qar/json.js.map +1 -0
- package/dist/qar/payloads.d.ts +480 -0
- package/dist/qar/payloads.d.ts.map +1 -0
- package/dist/qar/payloads.js +37 -0
- package/dist/qar/payloads.js.map +1 -0
- package/dist/qar/specs.d.ts +604 -0
- package/dist/qar/specs.d.ts.map +1 -0
- package/dist/qar/specs.js +29 -0
- package/dist/qar/specs.js.map +1 -0
- package/dist/qar/taskEvents.d.ts +25 -0
- package/dist/qar/taskEvents.d.ts.map +1 -0
- package/dist/qar/taskEvents.js +22 -0
- package/dist/qar/taskEvents.js.map +1 -0
- package/dist/qar/trace.d.ts +12 -0
- package/dist/qar/trace.d.ts.map +1 -0
- package/dist/qar/trace.js +12 -0
- package/dist/qar/trace.js.map +1 -0
- package/dist/skills/activation.d.ts +177 -0
- package/dist/skills/activation.d.ts.map +1 -0
- package/dist/skills/activation.js +428 -0
- package/dist/skills/activation.js.map +1 -0
- package/dist/skills/cli/index.browser.d.ts +18 -0
- package/dist/skills/cli/index.browser.d.ts.map +1 -0
- package/dist/skills/cli/index.browser.js +27 -0
- package/dist/skills/cli/index.browser.js.map +1 -0
- package/dist/skills/cli/index.d.ts +37 -0
- package/dist/skills/cli/index.d.ts.map +1 -0
- package/dist/skills/cli/index.js +494 -0
- package/dist/skills/cli/index.js.map +1 -0
- package/dist/skills/events.d.ts +255 -0
- package/dist/skills/events.d.ts.map +1 -0
- package/dist/skills/events.js +224 -0
- package/dist/skills/events.js.map +1 -0
- package/dist/skills/index.d.ts +45 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +34 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/inject.d.ts +57 -0
- package/dist/skills/inject.d.ts.map +1 -0
- package/dist/skills/inject.js +162 -0
- package/dist/skills/inject.js.map +1 -0
- package/dist/skills/lockfile.browser.d.ts +56 -0
- package/dist/skills/lockfile.browser.d.ts.map +1 -0
- package/dist/skills/lockfile.browser.js +55 -0
- package/dist/skills/lockfile.browser.js.map +1 -0
- package/dist/skills/lockfile.d.ts +137 -0
- package/dist/skills/lockfile.d.ts.map +1 -0
- package/dist/skills/lockfile.js +423 -0
- package/dist/skills/lockfile.js.map +1 -0
- package/dist/skills/manager.browser.d.ts +94 -0
- package/dist/skills/manager.browser.d.ts.map +1 -0
- package/dist/skills/manager.browser.js +159 -0
- package/dist/skills/manager.browser.js.map +1 -0
- package/dist/skills/manager.d.ts +362 -0
- package/dist/skills/manager.d.ts.map +1 -0
- package/dist/skills/manager.js +1386 -0
- package/dist/skills/manager.js.map +1 -0
- package/dist/skills/mcp/index.d.ts +15 -0
- package/dist/skills/mcp/index.d.ts.map +1 -0
- package/dist/skills/mcp/index.js +12 -0
- package/dist/skills/mcp/index.js.map +1 -0
- package/dist/skills/mcp/path.browser.d.ts +27 -0
- package/dist/skills/mcp/path.browser.d.ts.map +1 -0
- package/dist/skills/mcp/path.browser.js +33 -0
- package/dist/skills/mcp/path.browser.js.map +1 -0
- package/dist/skills/mcp/path.d.ts +57 -0
- package/dist/skills/mcp/path.d.ts.map +1 -0
- package/dist/skills/mcp/path.js +150 -0
- package/dist/skills/mcp/path.js.map +1 -0
- package/dist/skills/mcp/server.browser.d.ts +32 -0
- package/dist/skills/mcp/server.browser.d.ts.map +1 -0
- package/dist/skills/mcp/server.browser.js +53 -0
- package/dist/skills/mcp/server.browser.js.map +1 -0
- package/dist/skills/mcp/server.d.ts +144 -0
- package/dist/skills/mcp/server.d.ts.map +1 -0
- package/dist/skills/mcp/server.js +841 -0
- package/dist/skills/mcp/server.js.map +1 -0
- package/dist/skills/mcp/types.d.ts +72 -0
- package/dist/skills/mcp/types.d.ts.map +1 -0
- package/dist/skills/mcp/types.js +20 -0
- package/dist/skills/mcp/types.js.map +1 -0
- package/dist/skills/mcp/wireDefs.d.ts +58 -0
- package/dist/skills/mcp/wireDefs.d.ts.map +1 -0
- package/dist/skills/mcp/wireDefs.js +141 -0
- package/dist/skills/mcp/wireDefs.js.map +1 -0
- package/dist/skills/parser.d.ts +63 -0
- package/dist/skills/parser.d.ts.map +1 -0
- package/dist/skills/parser.js +755 -0
- package/dist/skills/parser.js.map +1 -0
- package/dist/skills/prefilter.d.ts +104 -0
- package/dist/skills/prefilter.d.ts.map +1 -0
- package/dist/skills/prefilter.js +398 -0
- package/dist/skills/prefilter.js.map +1 -0
- package/dist/skills/preprocess.d.ts +169 -0
- package/dist/skills/preprocess.d.ts.map +1 -0
- package/dist/skills/preprocess.js +535 -0
- package/dist/skills/preprocess.js.map +1 -0
- package/dist/skills/render.d.ts +83 -0
- package/dist/skills/render.d.ts.map +1 -0
- package/dist/skills/render.js +397 -0
- package/dist/skills/render.js.map +1 -0
- package/dist/skills/sources/index.browser.d.ts +29 -0
- package/dist/skills/sources/index.browser.d.ts.map +1 -0
- package/dist/skills/sources/index.browser.js +16 -0
- package/dist/skills/sources/index.browser.js.map +1 -0
- package/dist/skills/sources/index.d.ts +59 -0
- package/dist/skills/sources/index.d.ts.map +1 -0
- package/dist/skills/sources/index.js +471 -0
- package/dist/skills/sources/index.js.map +1 -0
- package/dist/skills/sources/walk.browser.d.ts +17 -0
- package/dist/skills/sources/walk.browser.d.ts.map +1 -0
- package/dist/skills/sources/walk.browser.js +19 -0
- package/dist/skills/sources/walk.browser.js.map +1 -0
- package/dist/skills/sources/walk.d.ts +68 -0
- package/dist/skills/sources/walk.d.ts.map +1 -0
- package/dist/skills/sources/walk.js +264 -0
- package/dist/skills/sources/walk.js.map +1 -0
- package/dist/skills/substitute.d.ts +87 -0
- package/dist/skills/substitute.d.ts.map +1 -0
- package/dist/skills/substitute.js +322 -0
- package/dist/skills/substitute.js.map +1 -0
- package/dist/skills/testing/SkillKit.browser.d.ts +62 -0
- package/dist/skills/testing/SkillKit.browser.d.ts.map +1 -0
- package/dist/skills/testing/SkillKit.browser.js +41 -0
- package/dist/skills/testing/SkillKit.browser.js.map +1 -0
- package/dist/skills/testing/SkillKit.d.ts +130 -0
- package/dist/skills/testing/SkillKit.d.ts.map +1 -0
- package/dist/skills/testing/SkillKit.js +316 -0
- package/dist/skills/testing/SkillKit.js.map +1 -0
- package/dist/skills/testing/index.d.ts +9 -0
- package/dist/skills/testing/index.d.ts.map +1 -0
- package/dist/skills/testing/index.js +8 -0
- package/dist/skills/testing/index.js.map +1 -0
- package/dist/skills/trust.d.ts +72 -0
- package/dist/skills/trust.d.ts.map +1 -0
- package/dist/skills/trust.js +183 -0
- package/dist/skills/trust.js.map +1 -0
- package/dist/skills/types.d.ts +627 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/types.js +85 -0
- package/dist/skills/types.js.map +1 -0
- package/dist/skills/validator.d.ts +95 -0
- package/dist/skills/validator.d.ts.map +1 -0
- package/dist/skills/validator.js +486 -0
- package/dist/skills/validator.js.map +1 -0
- package/dist/tracing/PipelineTracer.d.ts +35 -22
- package/dist/tracing/PipelineTracer.d.ts.map +1 -1
- package/dist/tracing/PipelineTracer.js +106 -61
- package/dist/tracing/PipelineTracer.js.map +1 -1
- package/dist/tracing/SdkTracer.d.ts +63 -61
- package/dist/tracing/SdkTracer.d.ts.map +1 -1
- package/dist/tracing/SdkTracer.js +185 -177
- package/dist/tracing/SdkTracer.js.map +1 -1
- package/dist/tracing/index.d.ts +10 -1
- package/dist/tracing/index.d.ts.map +1 -1
- package/dist/tracing/index.js +9 -0
- package/dist/tracing/index.js.map +1 -1
- package/dist/tracing/types.d.ts +89 -16
- package/dist/tracing/types.d.ts.map +1 -1
- package/dist/tracing/types.js +17 -4
- package/dist/tracing/types.js.map +1 -1
- package/dist/types.d.ts +6 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +10 -20
- package/dist/version.js.map +1 -1
- package/package.json +53 -39
- package/.claude/skills/qodo-agent/SKILL.md +0 -974
- package/.claude/skills/qodo-agent/assets/programmatic-agent.ts +0 -407
- package/.claude/skills/qodo-agent/references/builtin-tools.md +0 -342
- package/.claude/skills/qodo-agent/references/common-issues.md +0 -537
- package/bin/rg +0 -0
- package/dist/api/agent.d.ts +0 -104
- package/dist/api/agent.d.ts.map +0 -1
- package/dist/api/agent.js +0 -939
- package/dist/api/agent.js.map +0 -1
- package/dist/api/analytics.d.ts +0 -43
- package/dist/api/analytics.d.ts.map +0 -1
- package/dist/api/analytics.js +0 -163
- package/dist/api/analytics.js.map +0 -1
- package/dist/api/http.d.ts +0 -5
- package/dist/api/http.d.ts.map +0 -1
- package/dist/api/http.js +0 -62
- package/dist/api/http.js.map +0 -1
- package/dist/api/index.d.ts +0 -12
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -17
- package/dist/api/index.js.map +0 -1
- package/dist/api/taskTracking.d.ts +0 -54
- package/dist/api/taskTracking.d.ts.map +0 -1
- package/dist/api/taskTracking.js +0 -208
- package/dist/api/taskTracking.js.map +0 -1
- package/dist/api/types.d.ts +0 -93
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -2
- package/dist/api/types.js.map +0 -1
- package/dist/api/utils.d.ts +0 -8
- package/dist/api/utils.d.ts.map +0 -1
- package/dist/api/utils.js +0 -63
- package/dist/api/utils.js.map +0 -1
- package/dist/api/websocket.d.ts +0 -203
- package/dist/api/websocket.d.ts.map +0 -1
- package/dist/api/websocket.js +0 -1166
- package/dist/api/websocket.js.map +0 -1
- package/dist/bin/install-skill.d.ts +0 -14
- package/dist/bin/install-skill.d.ts.map +0 -1
- package/dist/bin/install-skill.js +0 -125
- package/dist/bin/install-skill.js.map +0 -1
- package/dist/bin/run-helpers.d.ts +0 -34
- package/dist/bin/run-helpers.d.ts.map +0 -1
- package/dist/bin/run-helpers.js +0 -186
- package/dist/bin/run-helpers.js.map +0 -1
- package/dist/bin/run.d.ts +0 -13
- package/dist/bin/run.d.ts.map +0 -1
- package/dist/bin/run.js +0 -57
- package/dist/bin/run.js.map +0 -1
- package/dist/clients/index.d.ts +0 -10
- package/dist/clients/index.d.ts.map +0 -1
- package/dist/clients/index.js +0 -8
- package/dist/clients/index.js.map +0 -1
- package/dist/clients/info/InfoClient.d.ts +0 -37
- package/dist/clients/info/InfoClient.d.ts.map +0 -1
- package/dist/clients/info/InfoClient.js +0 -69
- package/dist/clients/info/InfoClient.js.map +0 -1
- package/dist/clients/info/index.d.ts +0 -4
- package/dist/clients/info/index.d.ts.map +0 -1
- package/dist/clients/info/index.js +0 -2
- package/dist/clients/info/index.js.map +0 -1
- package/dist/clients/info/types.d.ts +0 -21
- package/dist/clients/info/types.d.ts.map +0 -1
- package/dist/clients/info/types.js +0 -2
- package/dist/clients/info/types.js.map +0 -1
- package/dist/clients/sessions/SessionsClient.d.ts +0 -34
- package/dist/clients/sessions/SessionsClient.d.ts.map +0 -1
- package/dist/clients/sessions/SessionsClient.js +0 -71
- package/dist/clients/sessions/SessionsClient.js.map +0 -1
- package/dist/clients/sessions/index.d.ts +0 -4
- package/dist/clients/sessions/index.d.ts.map +0 -1
- package/dist/clients/sessions/index.js +0 -2
- package/dist/clients/sessions/index.js.map +0 -1
- package/dist/clients/sessions/types.d.ts +0 -20
- package/dist/clients/sessions/types.d.ts.map +0 -1
- package/dist/clients/sessions/types.js +0 -2
- package/dist/clients/sessions/types.js.map +0 -1
- package/dist/clients/tools/ToolsClient.d.ts +0 -39
- package/dist/clients/tools/ToolsClient.d.ts.map +0 -1
- package/dist/clients/tools/ToolsClient.js +0 -95
- package/dist/clients/tools/ToolsClient.js.map +0 -1
- package/dist/clients/tools/index.d.ts +0 -4
- package/dist/clients/tools/index.d.ts.map +0 -1
- package/dist/clients/tools/index.js +0 -2
- package/dist/clients/tools/index.js.map +0 -1
- package/dist/clients/tools/types.d.ts +0 -14
- package/dist/clients/tools/types.d.ts.map +0 -1
- package/dist/clients/tools/types.js +0 -2
- package/dist/clients/tools/types.js.map +0 -1
- package/dist/config/ConfigManager.d.ts +0 -43
- package/dist/config/ConfigManager.d.ts.map +0 -1
- package/dist/config/ConfigManager.js +0 -472
- package/dist/config/ConfigManager.js.map +0 -1
- package/dist/config/index.d.ts +0 -6
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -7
- package/dist/config/index.js.map +0 -1
- package/dist/config/urlConfig.d.ts +0 -15
- package/dist/config/urlConfig.d.ts.map +0 -1
- package/dist/config/urlConfig.js +0 -75
- package/dist/config/urlConfig.js.map +0 -1
- package/dist/constants/errors.d.ts +0 -2
- package/dist/constants/errors.d.ts.map +0 -1
- package/dist/constants/errors.js +0 -2
- package/dist/constants/errors.js.map +0 -1
- package/dist/constants/index.d.ts +0 -7
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/constants/index.js +0 -11
- package/dist/constants/index.js.map +0 -1
- package/dist/constants/tools.d.ts +0 -4
- package/dist/constants/tools.d.ts.map +0 -1
- package/dist/constants/tools.js +0 -4
- package/dist/constants/tools.js.map +0 -1
- package/dist/constants/versions.d.ts +0 -2
- package/dist/constants/versions.d.ts.map +0 -1
- package/dist/constants/versions.js +0 -2
- package/dist/constants/versions.js.map +0 -1
- package/dist/context/buildUserContext.d.ts +0 -18
- package/dist/context/buildUserContext.d.ts.map +0 -1
- package/dist/context/buildUserContext.js +0 -34
- package/dist/context/buildUserContext.js.map +0 -1
- package/dist/context/index.d.ts +0 -9
- package/dist/context/index.d.ts.map +0 -1
- package/dist/context/index.js +0 -9
- package/dist/context/index.js.map +0 -1
- package/dist/context/messageManager.d.ts +0 -42
- package/dist/context/messageManager.d.ts.map +0 -1
- package/dist/context/messageManager.js +0 -322
- package/dist/context/messageManager.js.map +0 -1
- package/dist/context/taskFocus.d.ts +0 -2
- package/dist/context/taskFocus.d.ts.map +0 -1
- package/dist/context/taskFocus.js +0 -26
- package/dist/context/taskFocus.js.map +0 -1
- package/dist/context/userInput.d.ts +0 -3
- package/dist/context/userInput.d.ts.map +0 -1
- package/dist/context/userInput.js +0 -20
- package/dist/context/userInput.js.map +0 -1
- package/dist/mcp/MCPManager.d.ts +0 -109
- package/dist/mcp/MCPManager.d.ts.map +0 -1
- package/dist/mcp/MCPManager.js +0 -592
- package/dist/mcp/MCPManager.js.map +0 -1
- package/dist/mcp/approvedTools.d.ts +0 -4
- package/dist/mcp/approvedTools.d.ts.map +0 -1
- package/dist/mcp/approvedTools.js +0 -19
- package/dist/mcp/approvedTools.js.map +0 -1
- package/dist/mcp/baseServer.d.ts +0 -75
- package/dist/mcp/baseServer.d.ts.map +0 -1
- package/dist/mcp/baseServer.js +0 -107
- package/dist/mcp/baseServer.js.map +0 -1
- package/dist/mcp/builtinServers.d.ts +0 -15
- package/dist/mcp/builtinServers.d.ts.map +0 -1
- package/dist/mcp/builtinServers.js +0 -141
- package/dist/mcp/builtinServers.js.map +0 -1
- package/dist/mcp/dynamicBEServer.d.ts +0 -20
- package/dist/mcp/dynamicBEServer.d.ts.map +0 -1
- package/dist/mcp/dynamicBEServer.js +0 -52
- package/dist/mcp/dynamicBEServer.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -18
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -23
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/mcpInitialization.d.ts +0 -2
- package/dist/mcp/mcpInitialization.d.ts.map +0 -1
- package/dist/mcp/mcpInitialization.js +0 -56
- package/dist/mcp/mcpInitialization.js.map +0 -1
- package/dist/mcp/servers/filesystem.d.ts +0 -44
- package/dist/mcp/servers/filesystem.d.ts.map +0 -1
- package/dist/mcp/servers/filesystem.js +0 -776
- package/dist/mcp/servers/filesystem.js.map +0 -1
- package/dist/mcp/servers/git.d.ts +0 -18
- package/dist/mcp/servers/git.d.ts.map +0 -1
- package/dist/mcp/servers/git.js +0 -441
- package/dist/mcp/servers/git.js.map +0 -1
- package/dist/mcp/servers/ripgrep.d.ts +0 -39
- package/dist/mcp/servers/ripgrep.d.ts.map +0 -1
- package/dist/mcp/servers/ripgrep.js +0 -550
- package/dist/mcp/servers/ripgrep.js.map +0 -1
- package/dist/mcp/servers/shell.d.ts +0 -20
- package/dist/mcp/servers/shell.d.ts.map +0 -1
- package/dist/mcp/servers/shell.js +0 -519
- package/dist/mcp/servers/shell.js.map +0 -1
- package/dist/mcp/serversRegistry.d.ts +0 -55
- package/dist/mcp/serversRegistry.d.ts.map +0 -1
- package/dist/mcp/serversRegistry.js +0 -416
- package/dist/mcp/serversRegistry.js.map +0 -1
- package/dist/mcp/toolProcessor.d.ts +0 -82
- package/dist/mcp/toolProcessor.d.ts.map +0 -1
- package/dist/mcp/toolProcessor.js +0 -392
- package/dist/mcp/toolProcessor.js.map +0 -1
- package/dist/mcp/types.d.ts +0 -29
- package/dist/mcp/types.d.ts.map +0 -1
- package/dist/mcp/types.js +0 -2
- package/dist/mcp/types.js.map +0 -1
- package/dist/messages/index.d.ts +0 -8
- package/dist/messages/index.d.ts.map +0 -1
- package/dist/messages/index.js +0 -7
- package/dist/messages/index.js.map +0 -1
- package/dist/messages/openai.d.ts +0 -26
- package/dist/messages/openai.d.ts.map +0 -1
- package/dist/messages/openai.js +0 -55
- package/dist/messages/openai.js.map +0 -1
- package/dist/messages/types.d.ts +0 -73
- package/dist/messages/types.d.ts.map +0 -1
- package/dist/messages/types.js +0 -78
- package/dist/messages/types.js.map +0 -1
- package/dist/parser/index.d.ts +0 -72
- package/dist/parser/index.d.ts.map +0 -1
- package/dist/parser/index.js +0 -967
- package/dist/parser/index.js.map +0 -1
- package/dist/parser/types.d.ts +0 -153
- package/dist/parser/types.d.ts.map +0 -1
- package/dist/parser/types.js +0 -6
- package/dist/parser/types.js.map +0 -1
- package/dist/parser/utils.d.ts +0 -18
- package/dist/parser/utils.d.ts.map +0 -1
- package/dist/parser/utils.js +0 -64
- package/dist/parser/utils.js.map +0 -1
- package/dist/sdk/QodoSDK.d.ts +0 -218
- package/dist/sdk/QodoSDK.d.ts.map +0 -1
- package/dist/sdk/QodoSDK.js +0 -1115
- package/dist/sdk/QodoSDK.js.map +0 -1
- package/dist/sdk/artifacts.d.ts +0 -156
- package/dist/sdk/artifacts.d.ts.map +0 -1
- package/dist/sdk/artifacts.js +0 -166
- package/dist/sdk/artifacts.js.map +0 -1
- package/dist/sdk/bootstrap.d.ts +0 -16
- package/dist/sdk/bootstrap.d.ts.map +0 -1
- package/dist/sdk/bootstrap.js +0 -28
- package/dist/sdk/bootstrap.js.map +0 -1
- package/dist/sdk/builders.d.ts +0 -54
- package/dist/sdk/builders.d.ts.map +0 -1
- package/dist/sdk/builders.js +0 -117
- package/dist/sdk/builders.js.map +0 -1
- package/dist/sdk/defaults.d.ts +0 -11
- package/dist/sdk/defaults.d.ts.map +0 -1
- package/dist/sdk/defaults.js +0 -39
- package/dist/sdk/defaults.js.map +0 -1
- package/dist/sdk/discovery.d.ts +0 -2
- package/dist/sdk/discovery.d.ts.map +0 -1
- package/dist/sdk/discovery.js +0 -25
- package/dist/sdk/discovery.js.map +0 -1
- package/dist/sdk/events.d.ts +0 -269
- package/dist/sdk/events.d.ts.map +0 -1
- package/dist/sdk/events.js +0 -69
- package/dist/sdk/events.js.map +0 -1
- package/dist/sdk/exit-expression.d.ts +0 -13
- package/dist/sdk/exit-expression.d.ts.map +0 -1
- package/dist/sdk/exit-expression.js +0 -35
- package/dist/sdk/exit-expression.js.map +0 -1
- package/dist/sdk/index.d.ts +0 -17
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/index.js +0 -17
- package/dist/sdk/index.js.map +0 -1
- package/dist/sdk/middleware.d.ts +0 -59
- package/dist/sdk/middleware.d.ts.map +0 -1
- package/dist/sdk/middleware.js +0 -69
- package/dist/sdk/middleware.js.map +0 -1
- package/dist/sdk/pipeline/PipelineBuilder.d.ts +0 -79
- package/dist/sdk/pipeline/PipelineBuilder.d.ts.map +0 -1
- package/dist/sdk/pipeline/PipelineBuilder.js +0 -129
- package/dist/sdk/pipeline/PipelineBuilder.js.map +0 -1
- package/dist/sdk/pipeline/PipelineRunner.d.ts +0 -28
- package/dist/sdk/pipeline/PipelineRunner.d.ts.map +0 -1
- package/dist/sdk/pipeline/PipelineRunner.js +0 -326
- package/dist/sdk/pipeline/PipelineRunner.js.map +0 -1
- package/dist/sdk/pipeline/compiler.d.ts +0 -24
- package/dist/sdk/pipeline/compiler.d.ts.map +0 -1
- package/dist/sdk/pipeline/compiler.js +0 -199
- package/dist/sdk/pipeline/compiler.js.map +0 -1
- package/dist/sdk/pipeline/declarative.d.ts +0 -34
- package/dist/sdk/pipeline/declarative.d.ts.map +0 -1
- package/dist/sdk/pipeline/declarative.js +0 -9
- package/dist/sdk/pipeline/declarative.js.map +0 -1
- package/dist/sdk/pipeline/index.d.ts +0 -20
- package/dist/sdk/pipeline/index.d.ts.map +0 -1
- package/dist/sdk/pipeline/index.js +0 -19
- package/dist/sdk/pipeline/index.js.map +0 -1
- package/dist/sdk/pipeline/types.d.ts +0 -93
- package/dist/sdk/pipeline/types.d.ts.map +0 -1
- package/dist/sdk/pipeline/types.js +0 -10
- package/dist/sdk/pipeline/types.js.map +0 -1
- package/dist/sdk/policies.d.ts +0 -163
- package/dist/sdk/policies.d.ts.map +0 -1
- package/dist/sdk/policies.js +0 -243
- package/dist/sdk/policies.js.map +0 -1
- package/dist/sdk/runner/AgentRunner.d.ts +0 -22
- package/dist/sdk/runner/AgentRunner.d.ts.map +0 -1
- package/dist/sdk/runner/AgentRunner.js +0 -222
- package/dist/sdk/runner/AgentRunner.js.map +0 -1
- package/dist/sdk/runner/finalize.d.ts +0 -56
- package/dist/sdk/runner/finalize.d.ts.map +0 -1
- package/dist/sdk/runner/finalize.js +0 -155
- package/dist/sdk/runner/finalize.js.map +0 -1
- package/dist/sdk/runner/formats.d.ts +0 -7
- package/dist/sdk/runner/formats.d.ts.map +0 -1
- package/dist/sdk/runner/formats.js +0 -76
- package/dist/sdk/runner/formats.js.map +0 -1
- package/dist/sdk/runner/index.d.ts +0 -9
- package/dist/sdk/runner/index.d.ts.map +0 -1
- package/dist/sdk/runner/index.js +0 -9
- package/dist/sdk/runner/index.js.map +0 -1
- package/dist/sdk/runner/progress.d.ts +0 -3
- package/dist/sdk/runner/progress.d.ts.map +0 -1
- package/dist/sdk/runner/progress.js +0 -16
- package/dist/sdk/runner/progress.js.map +0 -1
- package/dist/sdk/schemas.d.ts +0 -72
- package/dist/sdk/schemas.d.ts.map +0 -1
- package/dist/sdk/schemas.js +0 -282
- package/dist/sdk/schemas.js.map +0 -1
- package/dist/sdk/trigger-context.d.ts +0 -24
- package/dist/sdk/trigger-context.d.ts.map +0 -1
- package/dist/sdk/trigger-context.js +0 -136
- package/dist/sdk/trigger-context.js.map +0 -1
- package/dist/session/SessionContext.d.ts +0 -89
- package/dist/session/SessionContext.d.ts.map +0 -1
- package/dist/session/SessionContext.js +0 -410
- package/dist/session/SessionContext.js.map +0 -1
- package/dist/session/environment.d.ts +0 -52
- package/dist/session/environment.d.ts.map +0 -1
- package/dist/session/environment.js +0 -27
- package/dist/session/environment.js.map +0 -1
- package/dist/session/history.d.ts +0 -18
- package/dist/session/history.d.ts.map +0 -1
- package/dist/session/history.js +0 -68
- package/dist/session/history.js.map +0 -1
- package/dist/session/index.d.ts +0 -10
- package/dist/session/index.d.ts.map +0 -1
- package/dist/session/index.js +0 -9
- package/dist/session/index.js.map +0 -1
- package/dist/session/serverData.d.ts +0 -38
- package/dist/session/serverData.d.ts.map +0 -1
- package/dist/session/serverData.js +0 -261
- package/dist/session/serverData.js.map +0 -1
- package/dist/tracing/pipelineHelpers.d.ts +0 -29
- package/dist/tracing/pipelineHelpers.d.ts.map +0 -1
- package/dist/tracing/pipelineHelpers.js +0 -224
- package/dist/tracing/pipelineHelpers.js.map +0 -1
- package/dist/tracking/Tracker.d.ts +0 -55
- package/dist/tracking/Tracker.d.ts.map +0 -1
- package/dist/tracking/Tracker.js +0 -217
- package/dist/tracking/Tracker.js.map +0 -1
- package/dist/tracking/index.d.ts +0 -8
- package/dist/tracking/index.d.ts.map +0 -1
- package/dist/tracking/index.js +0 -8
- package/dist/tracking/index.js.map +0 -1
- package/dist/tracking/schemas.d.ts +0 -292
- package/dist/tracking/schemas.d.ts.map +0 -1
- package/dist/tracking/schemas.js +0 -91
- package/dist/tracking/schemas.js.map +0 -1
- package/dist/utils/extractSetFlags.d.ts +0 -6
- package/dist/utils/extractSetFlags.d.ts.map +0 -1
- package/dist/utils/extractSetFlags.js +0 -16
- package/dist/utils/extractSetFlags.js.map +0 -1
- package/dist/utils/formatTimeAgo.d.ts +0 -2
- package/dist/utils/formatTimeAgo.d.ts.map +0 -1
- package/dist/utils/formatTimeAgo.js +0 -20
- package/dist/utils/formatTimeAgo.js.map +0 -1
- package/dist/utils/index.d.ts +0 -12
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -12
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/machineId.d.ts +0 -14
- package/dist/utils/machineId.d.ts.map +0 -1
- package/dist/utils/machineId.js +0 -66
- package/dist/utils/machineId.js.map +0 -1
- package/dist/utils/pathUtils.d.ts +0 -22
- package/dist/utils/pathUtils.d.ts.map +0 -1
- package/dist/utils/pathUtils.js +0 -54
- package/dist/utils/pathUtils.js.map +0 -1
- package/scripts/download-ripgrep.js +0 -269
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-`kind` payload shapes for the QAR envelope union — public surface.
|
|
3
|
+
*
|
|
4
|
+
* Backed by the codegen output in `./generated/envelope.ts`. The overlay
|
|
5
|
+
* sharpens the wire shape with three SDK-side projections that the JSON
|
|
6
|
+
* Schema cannot express:
|
|
7
|
+
*
|
|
8
|
+
* - **Branded UUIDs.** `task_id`, `tool_call_id`, `since_message_id`, and
|
|
9
|
+
* `offending_message_id` arrive from codegen as plain `string`. Each is
|
|
10
|
+
* widened back to its branded type (`TaskId`, `ToolCallId`, `MessageId`)
|
|
11
|
+
* so the compiler stops callers from mixing IDs at API boundaries.
|
|
12
|
+
* - **`ToolResponseResult`.** The discriminated-union convenience accepted
|
|
13
|
+
* by `client.tools.respond(node_name, response)`. The wire ships a flat
|
|
14
|
+
* `status: 'ok' | 'error'` per-response item; the SDK union preserves
|
|
15
|
+
* `success` / `error` / `denied` semantics, and the glue translates
|
|
16
|
+
* between the two at send time (denied → `status: 'error'` with
|
|
17
|
+
* `error.code: 'denied'`).
|
|
18
|
+
* - **Parallel-batched tool envelope.** `tool.request` carries
|
|
19
|
+
* `calls: ToolCall[]` (always a list, even for a single call — modern
|
|
20
|
+
* LLM `parallel_tool_use`) and a required `node_name`; `tool.response`
|
|
21
|
+
* carries `responses: ToolResponseItem[]` plus the same `node_name`.
|
|
22
|
+
* The overlay here is the consumer-facing shape; while the QAR-side
|
|
23
|
+
* schema bump is in flight, the codegen output in
|
|
24
|
+
* `./generated/envelope.ts` still carries the pre-amendment single-call
|
|
25
|
+
* shape — the overlay masks it. When `schemas/qar/.qar-version` is
|
|
26
|
+
* bumped, re-running `npm run codegen:qar` collapses the overlay back
|
|
27
|
+
* to a thin branded-id projection.
|
|
28
|
+
*
|
|
29
|
+
* QAR↔SDK name reconciliation: QAR's `task.start` envelope payload is
|
|
30
|
+
* `TaskStartPayload`; QAR's inner `task.start.input` shape is
|
|
31
|
+
* `QodoTaskStartPayload`. This module exports BOTH names — `TaskStartPayload`
|
|
32
|
+
* (QAR-native) and `QodoTaskStartPayload` (legacy alias) point at the same
|
|
33
|
+
* envelope-payload type; `QodoTaskStartInput` (legacy) and the QAR-native
|
|
34
|
+
* inner-payload type are the same.
|
|
35
|
+
*/
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=payloads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../src/qar/payloads.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG"}
|
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire types for `task.start { agent: InlineAgentSpec }` (Pattern B) and
|
|
3
|
+
* `task.start { graph: InlineGraphSpec }` (Pattern C) — also accepted by
|
|
4
|
+
* `client.specs.validate(spec)` for pre-wire validation.
|
|
5
|
+
*
|
|
6
|
+
* **Naming.** The public symbol `AgentSpec` is owned by `QarRegistryClient`
|
|
7
|
+
* as the *local-registry* agent shape (simple `name` + `instructions` +
|
|
8
|
+
* tool strings). The `Inline*`-prefixed types here are the *wire* shape
|
|
9
|
+
* — what flows on the network to QAR's `task.start` and
|
|
10
|
+
* `POST /v1/specs/validate`. Two different layers, two different types,
|
|
11
|
+
* kept orthogonal so consumers writing local agents and consumers
|
|
12
|
+
* writing inline specs don't have to share a single struct trying to
|
|
13
|
+
* span both.
|
|
14
|
+
*
|
|
15
|
+
* Field names match QAR's wire vocabulary verbatim — `apiVersion`,
|
|
16
|
+
* `instructions` (not `system_prompt`), `tools: FunctionToolDef[]`
|
|
17
|
+
* (not `{ name }`-refs), `kind: 'AgentSpec'` (the discriminator the
|
|
18
|
+
* validator routes on; matches QAR's `SPEC_KIND_AGENT`).
|
|
19
|
+
*
|
|
20
|
+
* Rule-checking lives at QAR's `qar.specs.validator.validate_spec_payload`
|
|
21
|
+
* — single source of truth shared between `POST /v1/specs/validate` and
|
|
22
|
+
* `_handle_task_start`. Client-side, pre-wire
|
|
23
|
+
* `assertInlineAgentSpecPreWire` (see `TaskClient`) rejects the obvious
|
|
24
|
+
* forbidden-key cases at intake so the consumer's stack trace points at
|
|
25
|
+
* their call site instead of a `task.done(failed)` arriving over the
|
|
26
|
+
* wire.
|
|
27
|
+
*/
|
|
28
|
+
import type { JsonObject } from './json.js';
|
|
29
|
+
/**
|
|
30
|
+
* MCP tool annotations — mirrors the upstream `Tool.annotations` shape from
|
|
31
|
+
* the MCP specification (https://modelcontextprotocol.io/docs/concepts/tools,
|
|
32
|
+
* checked 2026-05-21). Carried through the SDK's MCP projection layer so
|
|
33
|
+
* consumers writing dynamic filters (Shape C) and downstream observability
|
|
34
|
+
* (OTel span attrs) can read the upstream hints verbatim.
|
|
35
|
+
*
|
|
36
|
+
* **Annotations are explicitly UNTRUSTED per the MCP spec** — they're
|
|
37
|
+
* advisory hints from a third-party MCP server, not policy authority.
|
|
38
|
+
* QAR's trust-tier classification (whether a tool gates on HITL, whether
|
|
39
|
+
* write operations need confirmation) stays name-based on the consumer
|
|
40
|
+
* side. The QAR-side OTel span attribute pass-through carries them
|
|
41
|
+
* through to span attributes for observability tooling.
|
|
42
|
+
*/
|
|
43
|
+
export interface McpToolAnnotations {
|
|
44
|
+
/** Human-readable title — the upstream `Tool.annotations.title` field. */
|
|
45
|
+
readonly title?: string;
|
|
46
|
+
/** True if the tool only reads state; advisory hint for security-aware filters. */
|
|
47
|
+
readonly readOnlyHint?: boolean;
|
|
48
|
+
/** True if the tool may perform destructive operations; advisory. */
|
|
49
|
+
readonly destructiveHint?: boolean;
|
|
50
|
+
/** True if repeated invocations are safe; advisory. */
|
|
51
|
+
readonly idempotentHint?: boolean;
|
|
52
|
+
/** True if the tool interacts with an external/open world; advisory. */
|
|
53
|
+
readonly openWorldHint?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/** OpenAI function-tool definition body. */
|
|
56
|
+
export interface FunctionDef {
|
|
57
|
+
readonly name: string;
|
|
58
|
+
readonly description?: string;
|
|
59
|
+
/** JSON Schema for the call arguments. Free-form `JsonObject`. */
|
|
60
|
+
readonly parameters: JsonObject;
|
|
61
|
+
/** OpenAI strict-mode flag for argument validation. Defaults to true server-side. */
|
|
62
|
+
readonly strict?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Upstream MCP `Tool.annotations` passed through verbatim by the MCP
|
|
65
|
+
* projection layer. Optional and advisory only — see {@link McpToolAnnotations}.
|
|
66
|
+
* Consumer-shipped `FunctionToolDef` entries may set this directly for
|
|
67
|
+
* non-MCP-backed tools that want to carry the same advisory hints.
|
|
68
|
+
*/
|
|
69
|
+
readonly annotations?: McpToolAnnotations;
|
|
70
|
+
}
|
|
71
|
+
/** Wrapping discriminator for the OpenAI function-tool shape. */
|
|
72
|
+
export interface FunctionToolDef {
|
|
73
|
+
readonly type: 'function';
|
|
74
|
+
readonly function: FunctionDef;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Read-only view of a single MCP-discovered tool, passed to a Shape C
|
|
78
|
+
* filter callback. Carries the upstream MCP `Tool` shape verbatim:
|
|
79
|
+
*
|
|
80
|
+
* - `mcpName` — the registry name passed to `client.qar.registerMcp(name, ...)`
|
|
81
|
+
* - `name` — the upstream tool name as returned by `tools/list`
|
|
82
|
+
* (BEFORE the SDK's optional `<mcp>.<tool>` prefix)
|
|
83
|
+
* - `description` — upstream description (may be overridden by
|
|
84
|
+
* `mcpToolOverrides` at projection time)
|
|
85
|
+
* - `inputSchema` — JSON Schema for the call arguments, verbatim
|
|
86
|
+
* - `outputSchema` — optional JSON Schema for the structured output,
|
|
87
|
+
* verbatim (added in MCP 2025-06-18; absent on older servers)
|
|
88
|
+
* - `annotations` — see {@link McpToolAnnotations}
|
|
89
|
+
*
|
|
90
|
+
* Used by Shape C filter callbacks; consumers can read `annotations`
|
|
91
|
+
* (`readOnlyHint`, `destructiveHint`, etc.) to build security-aware tool
|
|
92
|
+
* surfaces without hand-maintaining a per-tool classification table.
|
|
93
|
+
*/
|
|
94
|
+
export interface DiscoveredMcpTool {
|
|
95
|
+
readonly mcpName: string;
|
|
96
|
+
readonly name: string;
|
|
97
|
+
readonly description?: string;
|
|
98
|
+
readonly inputSchema: JsonObject;
|
|
99
|
+
readonly outputSchema?: JsonObject;
|
|
100
|
+
readonly annotations?: McpToolAnnotations;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Shape B — static allowlist + blocklist. Entries are either bare MCP
|
|
104
|
+
* names (matches every tool from that MCP) or `<mcp>.<tool>` dotted
|
|
105
|
+
* references (matches the specific tool). The effective surface is
|
|
106
|
+
* `union(allowlist) - blocklist`. An entry referencing an unregistered
|
|
107
|
+
* MCP, or a dotted name whose tool isn't in the live catalog, surfaces
|
|
108
|
+
* as a typed projection error at task.start.
|
|
109
|
+
*/
|
|
110
|
+
export interface McpToolsSelectorAllowBlock {
|
|
111
|
+
readonly allowlist?: readonly string[];
|
|
112
|
+
readonly blocklist?: readonly string[];
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Shape C — dynamic filter callback. Receives every discovered tool
|
|
116
|
+
* across every registered MCP (per the pool's cached catalog) and
|
|
117
|
+
* returns `true` to include the tool in the projection. Useful for
|
|
118
|
+
* security-aware filtering off `annotations.readOnlyHint`, alphabetical
|
|
119
|
+
* subsetting, or any rule that needs richer logic than a string-list
|
|
120
|
+
* match.
|
|
121
|
+
*
|
|
122
|
+
* The callback runs once per tool per `tasks.start*` call — keep it pure.
|
|
123
|
+
*/
|
|
124
|
+
export type McpToolsSelectorFilter = (tool: DiscoveredMcpTool) => boolean;
|
|
125
|
+
/**
|
|
126
|
+
* The `mcpTools` selector field. Discriminated union of three shapes:
|
|
127
|
+
*
|
|
128
|
+
* - **Shape A** — `readonly string[]`. Entries are either MCP names
|
|
129
|
+
* (whole-server inclusion) or `<mcp>.<tool>` dotted names (specific
|
|
130
|
+
* tool). Matches the v1 SDK default ergonomic.
|
|
131
|
+
* - **Shape B** — `McpToolsSelectorAllowBlock`. Allowlist + optional
|
|
132
|
+
* blocklist, both using the same `<mcp>` / `<mcp>.<tool>` entry form.
|
|
133
|
+
* - **Shape C** — `McpToolsSelectorFilter` callback for dynamic /
|
|
134
|
+
* security-aware filtering.
|
|
135
|
+
*
|
|
136
|
+
* The shapes are mutually exclusive at the type level. Set `mcpTools` to
|
|
137
|
+
* one of the three; mixing allowlist + dynamic filter requires composing
|
|
138
|
+
* the callback yourself.
|
|
139
|
+
*/
|
|
140
|
+
export type McpToolsSelector = readonly string[] | McpToolsSelectorAllowBlock | McpToolsSelectorFilter;
|
|
141
|
+
/**
|
|
142
|
+
* Per-tool description overlay applied after projection. Keys are tool
|
|
143
|
+
* names AS PROJECTED — including the `<mcp>.<tool>` prefix when the MCP
|
|
144
|
+
* is registered with `prefixToolNames: true` (default), or the bare tool
|
|
145
|
+
* name when prefix is opted out. Values override the discovered MCP
|
|
146
|
+
* `description` only; `inputSchema` / `outputSchema` / `annotations`
|
|
147
|
+
* remain MCP-authoritative.
|
|
148
|
+
*
|
|
149
|
+
* Unknown override keys (no matching projected tool) surface as a
|
|
150
|
+
* typed `QodoUnknownMcpToolError` at task.start.
|
|
151
|
+
*/
|
|
152
|
+
export interface McpToolOverride {
|
|
153
|
+
readonly description?: string;
|
|
154
|
+
}
|
|
155
|
+
export type McpToolOverrides = {
|
|
156
|
+
readonly [projectedToolName: string]: McpToolOverride;
|
|
157
|
+
};
|
|
158
|
+
export interface InstructionsPreset {
|
|
159
|
+
readonly preset: 'qodo-default';
|
|
160
|
+
readonly append?: string;
|
|
161
|
+
}
|
|
162
|
+
export type Instructions = string | InstructionsPreset;
|
|
163
|
+
/**
|
|
164
|
+
* Inner shape of `output_schema.json_schema` and `deps_schema`. `strict`
|
|
165
|
+
* defaults to true server-side so the model's structured output gets
|
|
166
|
+
* OpenAI strict-mode validation.
|
|
167
|
+
*/
|
|
168
|
+
export interface JsonSchemaSpec {
|
|
169
|
+
readonly name: string;
|
|
170
|
+
readonly schema: JsonObject;
|
|
171
|
+
readonly strict?: boolean;
|
|
172
|
+
}
|
|
173
|
+
/** `output_schema` wrapper that carries the OpenAI strict-mode flag. */
|
|
174
|
+
export interface OutputSchemaSpec {
|
|
175
|
+
readonly json_schema: JsonSchemaSpec;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* A composed-skill reference. `vendor` defaults to `'qodo'` (canonical
|
|
179
|
+
* first-party namespace); `version` defaults to `'*'` (resolved at
|
|
180
|
+
* task.start via the deployment's lockfile).
|
|
181
|
+
*/
|
|
182
|
+
export interface SkillRef {
|
|
183
|
+
readonly vendor?: string;
|
|
184
|
+
readonly name: string;
|
|
185
|
+
readonly version?: string;
|
|
186
|
+
readonly config?: JsonObject | null;
|
|
187
|
+
}
|
|
188
|
+
export interface SpawnableAgentRef {
|
|
189
|
+
readonly name: string;
|
|
190
|
+
readonly agent_id?: string | null;
|
|
191
|
+
readonly spec?: InlineAgentSpec | null;
|
|
192
|
+
}
|
|
193
|
+
export interface InlineAgentSpec {
|
|
194
|
+
readonly apiVersion: 'qar/v1';
|
|
195
|
+
/**
|
|
196
|
+
* The Pydantic discriminator QAR's `validate_spec_payload` routes on
|
|
197
|
+
* (`SPEC_KIND_AGENT = "AgentSpec"`). Optional in TypeScript so consumers
|
|
198
|
+
* can write `{ apiVersion, instructions, model }` literally and the SDK's
|
|
199
|
+
* pre-wire normalizer fills it in; the server-side validator requires
|
|
200
|
+
* the field, so an envelope crossing the wire always has it.
|
|
201
|
+
*/
|
|
202
|
+
readonly kind?: 'AgentSpec';
|
|
203
|
+
readonly name?: string;
|
|
204
|
+
readonly instructions: Instructions;
|
|
205
|
+
readonly model: string;
|
|
206
|
+
readonly tools?: readonly FunctionToolDef[] | null;
|
|
207
|
+
readonly use_managed_tools?: boolean;
|
|
208
|
+
readonly excluded_tools?: readonly string[];
|
|
209
|
+
readonly output_schema?: OutputSchemaSpec | null;
|
|
210
|
+
readonly deps_schema?: JsonSchemaSpec | null;
|
|
211
|
+
readonly skills?: readonly SkillRef[];
|
|
212
|
+
readonly spawnable_agents?: readonly SpawnableAgentRef[];
|
|
213
|
+
/**
|
|
214
|
+
* Reserved by `D10-R1`. Rejected by the wire validator until the
|
|
215
|
+
* sandbox-execution ADR designs the runtime. Typing as literal `null`
|
|
216
|
+
* means the only value the TS compiler accepts is `null` itself, so a
|
|
217
|
+
* consumer who tries to attach `custom_code: { ... }` fails at compile
|
|
218
|
+
* time instead of getting a `task.done(failed)` round-trip.
|
|
219
|
+
*/
|
|
220
|
+
readonly custom_code?: null;
|
|
221
|
+
/**
|
|
222
|
+
* Content-trust policy. Threads through to QAR's
|
|
223
|
+
* `AgentSpec.content_trust` and gates how untrusted content sources
|
|
224
|
+
* (tool outputs, HITL reasons, bulletin posts, evaluator rationale
|
|
225
|
+
* when this agent dispatches an evaluator) are wrapped before reaching
|
|
226
|
+
* the model. Absent/null = QAR-side defaults apply.
|
|
227
|
+
*/
|
|
228
|
+
readonly content_trust?: ContentTrustPolicy | null;
|
|
229
|
+
/**
|
|
230
|
+
* Chat-mode primitive — mirror of QAR's
|
|
231
|
+
* `AgentSpec.auto_pause_on_turn_end`. When `true`, the runtime
|
|
232
|
+
* suspends the session on a synthetic `__auto_pause__` HITL after
|
|
233
|
+
* every successful agent turn so the next user message can resume
|
|
234
|
+
* the same session via `task.continue`. Default `false`. Field name
|
|
235
|
+
* is snake_case to match the existing SDK convention (every other
|
|
236
|
+
* AgentSpec field mirrors the Python wire spelling verbatim — see
|
|
237
|
+
* `hitl_default`, `use_managed_tools`, `content_trust`).
|
|
238
|
+
*/
|
|
239
|
+
readonly auto_pause_on_turn_end?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* MCP tool auto-discovery selector. SDK-only field — the projection
|
|
242
|
+
* layer resolves this against the live `McpClientPool` catalog at
|
|
243
|
+
* `tasks.startWithAgent` / `tasks.startWithGraph` time and replaces it
|
|
244
|
+
* with the concrete `tools[]` shipped to QAR. Never crosses the wire as
|
|
245
|
+
* `mcpTools`; QAR sees the projected `tools[]` only.
|
|
246
|
+
*
|
|
247
|
+
* See {@link McpToolsSelector} for the three shapes (A whole-server, B
|
|
248
|
+
* allowlist/blocklist, C dynamic filter). Consumer-shipped `tools[]`
|
|
249
|
+
* entries continue to work and win on name collision with discovered
|
|
250
|
+
* tools — explicit > implicit.
|
|
251
|
+
*/
|
|
252
|
+
readonly mcpTools?: McpToolsSelector;
|
|
253
|
+
/**
|
|
254
|
+
* Per-tool description overlay. SDK-only sibling field to
|
|
255
|
+
* `mcpTools` — applied AFTER projection so keys are tool names as
|
|
256
|
+
* projected (prefix-on or prefix-off depending on per-MCP
|
|
257
|
+
* `prefixToolNames`). Values override the discovered MCP `description`
|
|
258
|
+
* only; `inputSchema` / `outputSchema` / `annotations` remain
|
|
259
|
+
* MCP-authoritative. Stripped from the wire envelope alongside
|
|
260
|
+
* `mcpTools`. See {@link McpToolOverrides}.
|
|
261
|
+
*/
|
|
262
|
+
readonly mcpToolOverrides?: McpToolOverrides;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Closed enum for a graph node's role in a `GraphSpec`.
|
|
266
|
+
*
|
|
267
|
+
* Widening this set (e.g. adding `router`, `peer`, `swarm`) requires bumping
|
|
268
|
+
* the wire `apiVersion` — the no-v0-planning rule binds the SDK to one role
|
|
269
|
+
* set per major version. Required on `InlineGraphAgent` (matches QAR's
|
|
270
|
+
* Pydantic shape, which has no default).
|
|
271
|
+
*/
|
|
272
|
+
export type InlineGraphRole = 'supervisor' | 'collaborator' | 'evaluator';
|
|
273
|
+
/**
|
|
274
|
+
* Closed enum for a graph edge's dispatch kind.
|
|
275
|
+
*
|
|
276
|
+
* - `handoff` — control transfers: the producer hands off the task to the
|
|
277
|
+
* target node and the supervisor resumes when the target completes.
|
|
278
|
+
* - `ai_tool` — the target appears in the producer's tool catalog as a
|
|
279
|
+
* callable LLM-tool; results return as a tool response.
|
|
280
|
+
* - `evaluate` — the producer dispatches the target as an evaluator. The
|
|
281
|
+
* target must have `role: 'evaluator'`; its response is bound to the
|
|
282
|
+
* producer's `_verdicts[node]` state slot.
|
|
283
|
+
*
|
|
284
|
+
* Required on `InlineGraphEdge` (matches QAR's Pydantic shape; the field has
|
|
285
|
+
* no default).
|
|
286
|
+
*/
|
|
287
|
+
export type InlineGraphEdgeKind = 'handoff' | 'ai_tool' | 'evaluate';
|
|
288
|
+
/**
|
|
289
|
+
* Trust mode for a piece of model-facing content. `'trusted'` means the
|
|
290
|
+
* content is passed verbatim to downstream prompts; `'untrusted'` means it
|
|
291
|
+
* is wrapped/sanitized per QAR's content-shielding protocol so injected
|
|
292
|
+
* instructions inside the content cannot exfiltrate authority. New values
|
|
293
|
+
* may be added by QAR without an SDK bump — the field is typed as the
|
|
294
|
+
* union below but the runtime validates against QAR's authoritative set.
|
|
295
|
+
*/
|
|
296
|
+
export type ContentTrustMode = 'trusted' | 'untrusted';
|
|
297
|
+
/**
|
|
298
|
+
* Content-trust policy attached to an `AgentSpec` or
|
|
299
|
+
* `GraphSpec`. Field names match QAR's `ContentTrustPolicy` Pydantic
|
|
300
|
+
* model verbatim; the SDK does no normalization between this shape and
|
|
301
|
+
* the wire shape so the typed object posted by a consumer to
|
|
302
|
+
* `task.start { agent | graph, content_trust }` is what reaches QAR.
|
|
303
|
+
*
|
|
304
|
+
* **Policy fields** (every field is optional; absence = QAR-side default):
|
|
305
|
+
*
|
|
306
|
+
* - `evaluator_rationale_policy` — trust mode applied to rationale text
|
|
307
|
+
* emitted by evaluator-role nodes. Controls whether the
|
|
308
|
+
* rationale is rendered verbatim to the supervisor's prompt context
|
|
309
|
+
* or wrapped as untrusted content.
|
|
310
|
+
* - `hitl_reason_policy` — trust mode applied to HITL resolution
|
|
311
|
+
* `reason` strings. Consumers escalating untrusted user
|
|
312
|
+
* input (chat operator, end-user resolution) should set this to
|
|
313
|
+
* `'untrusted'`.
|
|
314
|
+
* - `tool_output_policy` — trust mode applied to tool response
|
|
315
|
+
* payloads stitched back into the model's context window. Default
|
|
316
|
+
* QAR-side is `'untrusted'` for tools fetching external data and
|
|
317
|
+
* `'trusted'` for in-process SDK tools.
|
|
318
|
+
* - `bulletin_post_policy` — trust mode applied to bulletin findings
|
|
319
|
+
* when forwarded into a supervisor's prompt.
|
|
320
|
+
* - `max_untrusted_bytes` — byte cap applied to any single piece of
|
|
321
|
+
* untrusted content before truncation. Default QAR-side. Use to
|
|
322
|
+
* guard against prompt-injection payloads that try to bury
|
|
323
|
+
* instructions in long content.
|
|
324
|
+
* - `max_trusted_bytes` — byte cap on trusted content too (defense in
|
|
325
|
+
* depth against runaway evaluator rationales). Optional.
|
|
326
|
+
*/
|
|
327
|
+
export interface ContentTrustPolicy {
|
|
328
|
+
readonly evaluator_rationale_policy?: ContentTrustMode | null;
|
|
329
|
+
readonly hitl_reason_policy?: ContentTrustMode | null;
|
|
330
|
+
readonly tool_output_policy?: ContentTrustMode | null;
|
|
331
|
+
readonly bulletin_post_policy?: ContentTrustMode | null;
|
|
332
|
+
readonly max_untrusted_bytes?: number | null;
|
|
333
|
+
readonly max_trusted_bytes?: number | null;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Agent / graph-node HITL mode. Mirrors QAR's `qar.protocol.hitl.HITLMode`
|
|
337
|
+
* string-enum verbatim:
|
|
338
|
+
*
|
|
339
|
+
* - `'enabled'` — frame MAY auto-resolve in-process (subject to the
|
|
340
|
+
* `Sensitivity.SECRET` bypass) or forward upward / to the consumer.
|
|
341
|
+
* - `'passthrough'` — frame forwards every HITL envelope unchanged to its
|
|
342
|
+
* ancestor; never auto-resolves.
|
|
343
|
+
* - `'disabled'` — frame rejects any HITL surfaced at this boundary;
|
|
344
|
+
* synthesized `hitl_resolved` closes the row. ADR-prescribed default —
|
|
345
|
+
* headless automation is the dominant SDK use case.
|
|
346
|
+
*
|
|
347
|
+
* The wire spelling matches Python's `HITLMode` value strings exactly so the
|
|
348
|
+
* dispatch-side parse doesn't translate.
|
|
349
|
+
*/
|
|
350
|
+
export type InlineHITLMode = 'enabled' | 'passthrough' | 'disabled';
|
|
351
|
+
/**
|
|
352
|
+
* Server-static reference inside a graph node's `spec`. Matches QAR's
|
|
353
|
+
* `qar.specs.models.GraphAgentStaticRef` — the only field is
|
|
354
|
+
* `agent_id`, a non-empty string that resolves against the deployment's
|
|
355
|
+
* static agent table. The discriminated-union arm for "this node is a
|
|
356
|
+
* pre-registered static agent, not an inline spec".
|
|
357
|
+
*/
|
|
358
|
+
export interface InlineGraphAgentStaticRef {
|
|
359
|
+
readonly agent_id: string;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* One node in the graph. Matches QAR's `qar.specs.models.GraphAgent`:
|
|
363
|
+
*
|
|
364
|
+
* - `spec` is the discriminated union the validator routes on — inline
|
|
365
|
+
* `InlineAgentSpec` (kind `'AgentSpec'`), nested `InlineGraphSpec`
|
|
366
|
+
* (kind `'GraphSpec'`, recursive subgraph), or
|
|
367
|
+
* `InlineGraphAgentStaticRef` (`{ agent_id }`, server-side ref).
|
|
368
|
+
* The wire validator narrows on `spec.kind` for the first two arms and
|
|
369
|
+
* by the presence of `agent_id` for the static ref.
|
|
370
|
+
* - `role` is required (no Pydantic default).
|
|
371
|
+
* - `hitl` is optional and overrides the enclosing graph's
|
|
372
|
+
* `hitl_default`. `null`/absent means "inherit from the graph default"
|
|
373
|
+
* — a distinct semantic from "explicitly set to `'disabled'`".
|
|
374
|
+
*
|
|
375
|
+
* **The node name is the dict key in `InlineGraphSpec.agents`**, not a
|
|
376
|
+
* field on this type — QAR's Pydantic model is `dict[str, GraphAgent]`.
|
|
377
|
+
* Lifting the name out of the value lets dict key uniqueness enforce
|
|
378
|
+
* agent-name uniqueness for free (D11-R3) and gives `entry: <name>` a
|
|
379
|
+
* referential anchor.
|
|
380
|
+
*/
|
|
381
|
+
export interface InlineGraphAgent {
|
|
382
|
+
readonly spec: InlineAgentSpec | InlineGraphSpec | InlineGraphAgentStaticRef;
|
|
383
|
+
readonly role: InlineGraphRole;
|
|
384
|
+
readonly hitl?: InlineHITLMode | null;
|
|
385
|
+
/**
|
|
386
|
+
* Chat-mode primitive — per-node override for the graph's
|
|
387
|
+
* `auto_pause_on_turn_end_default`. `null` / absent means "inherit
|
|
388
|
+
* the graph default" (matching the `hitl` field's
|
|
389
|
+
* none-vs-disabled distinction). An explicit `false` opts the
|
|
390
|
+
* node OUT of chat-mode the graph turned on. Wire-facing
|
|
391
|
+
* auto-pause only applies to the entry supervisor's turn — see
|
|
392
|
+
* the chat-mode doc for the per-role semantics.
|
|
393
|
+
*/
|
|
394
|
+
readonly auto_pause_on_turn_end?: boolean | null;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Discriminated `on_error` policy for an edge. Mirrors QAR's
|
|
398
|
+
* `EdgeOnErrorAbort | EdgeOnErrorRoute`:
|
|
399
|
+
*
|
|
400
|
+
* - `{ abort: true }` — terminate the graph with the error.
|
|
401
|
+
* - `{ route_to: <node> }` — route control to the named recovery node.
|
|
402
|
+
*
|
|
403
|
+
* Exactly one shape per object (Pydantic `extra='forbid'`).
|
|
404
|
+
*/
|
|
405
|
+
export type InlineEdgeOnError = {
|
|
406
|
+
readonly abort: true;
|
|
407
|
+
} | {
|
|
408
|
+
readonly route_to: string;
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* A directed edge in the graph (spawn permission `from -> to`). Mirrors
|
|
412
|
+
* QAR's `Edge`. `kind` is required (no Pydantic default); `on_error` is
|
|
413
|
+
* optional and carries the same shape across all three edge kinds (no
|
|
414
|
+
* per-kind subclassing — see `Edge.__doc__` in QAR).
|
|
415
|
+
*/
|
|
416
|
+
export interface InlineGraphEdge {
|
|
417
|
+
readonly from: string;
|
|
418
|
+
readonly to: string;
|
|
419
|
+
readonly kind: InlineGraphEdgeKind;
|
|
420
|
+
readonly on_error?: InlineEdgeOnError | null;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Per-graph budget envelope. Mirrors QAR's `GraphBudget` — every field is
|
|
424
|
+
* required and must be `> 0` server-side. The SDK exposes the same shape so
|
|
425
|
+
* a consumer authoring a graph from TS picks the limits explicitly.
|
|
426
|
+
*/
|
|
427
|
+
export interface InlineGraphBudget {
|
|
428
|
+
readonly total_input_tokens: number;
|
|
429
|
+
readonly total_output_tokens: number;
|
|
430
|
+
readonly total_wall_clock_s: number;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Graph-wide limits. Mirrors QAR's `GraphLimits`. Pydantic side has defaults
|
|
434
|
+
* for every numeric field; the SDK type makes `limits` required on
|
|
435
|
+
* `InlineGraphSpec` so consumers think about the caps explicitly, but
|
|
436
|
+
* each individual sub-field stays optional so a consumer who only wants
|
|
437
|
+
* to override `max_steps` doesn't have to copy the other defaults
|
|
438
|
+
* verbatim.
|
|
439
|
+
*
|
|
440
|
+
* `max_depth` is the nesting cap. Pydantic enforces `ge=1`; the
|
|
441
|
+
* effective ceiling at dispatch time is `min(platform_cap, tenant_cap,
|
|
442
|
+
* spec_declared)` — the wire validator emits `D13-R2` when this value
|
|
443
|
+
* exceeds the deployment's effective cap.
|
|
444
|
+
*/
|
|
445
|
+
export interface InlineGraphLimits {
|
|
446
|
+
readonly max_steps?: number;
|
|
447
|
+
readonly max_depth?: number;
|
|
448
|
+
readonly per_agent_iterations?: number;
|
|
449
|
+
readonly budget?: InlineGraphBudget | null;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Per-dispatch
|
|
453
|
+
* budget envelope handed from an outer supervisor to a subgraph. Carried on
|
|
454
|
+
* the subgraph-dispatch tool-call's `args` under the reserved key
|
|
455
|
+
* `allocation`. Mirrors QAR's `SubgraphAllocation`.
|
|
456
|
+
*
|
|
457
|
+
* Every field is optional; omitted layers are auto-filled at dispatch time
|
|
458
|
+
* with `min(inner.declared, outer.remaining)`. The cross-layer comparison
|
|
459
|
+
* is rule `D13-R3` and runs server-side.
|
|
460
|
+
*/
|
|
461
|
+
export interface InlineSubgraphAllocation {
|
|
462
|
+
readonly input_tokens?: number | null;
|
|
463
|
+
readonly output_tokens?: number | null;
|
|
464
|
+
readonly wall_clock_s?: number | null;
|
|
465
|
+
readonly max_steps?: number | null;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Closed union of termination conditions. Mirrors QAR's `TerminationCondition`:
|
|
469
|
+
*
|
|
470
|
+
* - `{ kind: 'agent_returns', agent: <name> }` — graph terminates when the
|
|
471
|
+
* named agent returns.
|
|
472
|
+
* - `{ kind: 'max_steps_reached' }` — graph terminates when `limits.max_steps`
|
|
473
|
+
* is reached.
|
|
474
|
+
* - `{ kind: 'error_uncaught' }` — graph terminates on an unhandled error.
|
|
475
|
+
*
|
|
476
|
+
* `kind` discriminates the three shapes at parse time. QAR's wire validator
|
|
477
|
+
* (`D11-R*`) checks the union exhaustively; the SDK's pre-wire validator
|
|
478
|
+
* does the obvious well-formedness checks.
|
|
479
|
+
*/
|
|
480
|
+
export type InlineTerminationCondition = {
|
|
481
|
+
readonly kind: 'agent_returns';
|
|
482
|
+
readonly agent: string;
|
|
483
|
+
} | {
|
|
484
|
+
readonly kind: 'max_steps_reached';
|
|
485
|
+
} | {
|
|
486
|
+
readonly kind: 'error_uncaught';
|
|
487
|
+
};
|
|
488
|
+
/**
|
|
489
|
+
* Inline-graph spec — multi-agent declarative topology. Mirrors QAR's
|
|
490
|
+
* `qar.specs.models.GraphSpec` verbatim.
|
|
491
|
+
*
|
|
492
|
+
* Wire-required fields per QAR's Pydantic model:
|
|
493
|
+
* - `apiVersion: 'qar/v1'` — discriminator the validator routes on.
|
|
494
|
+
* - `kind: 'GraphSpec'` — matches `SPEC_KIND_GRAPH`.
|
|
495
|
+
* - `agents: Record<string, InlineGraphAgent>` — dict keyed by node name
|
|
496
|
+
* (NOT an array; the dict key gives agent names referential integrity
|
|
497
|
+
* against `entry: <name>` and edge `from`/`to` fields).
|
|
498
|
+
* - `entry: string` — name of the entry node (must be a key of `agents`).
|
|
499
|
+
* - `termination: InlineTerminationCondition[]` — non-empty list of
|
|
500
|
+
* termination conditions.
|
|
501
|
+
*
|
|
502
|
+
* SDK-required (TS-side opinion):
|
|
503
|
+
* - `limits: InlineGraphLimits` — wire-side this has a Pydantic
|
|
504
|
+
* `default_factory=GraphLimits`, but the SDK forces consumers to be
|
|
505
|
+
* explicit. Passing `{}` accepts every default.
|
|
506
|
+
*
|
|
507
|
+
* Optional fields (with Pydantic-side defaults):
|
|
508
|
+
* - `name`, `output_schema`, `deps_schema`, `hitl_default`,
|
|
509
|
+
* `parent_close_policy` (reserved-and-rejected — must be `null`;
|
|
510
|
+
* wire validator emits `D13-R5` on any non-null).
|
|
511
|
+
* - `edges: InlineGraphEdge[]` — defaults to `[]` on the QAR side.
|
|
512
|
+
*/
|
|
513
|
+
export interface InlineGraphSpec {
|
|
514
|
+
readonly apiVersion: 'qar/v1';
|
|
515
|
+
readonly kind: 'GraphSpec';
|
|
516
|
+
readonly name?: string | null;
|
|
517
|
+
readonly agents: Readonly<Record<string, InlineGraphAgent>>;
|
|
518
|
+
readonly edges?: readonly InlineGraphEdge[];
|
|
519
|
+
readonly entry: string;
|
|
520
|
+
readonly limits: InlineGraphLimits;
|
|
521
|
+
readonly termination: readonly InlineTerminationCondition[];
|
|
522
|
+
readonly output_schema?: OutputSchemaSpec | null;
|
|
523
|
+
readonly deps_schema?: JsonSchemaSpec | null;
|
|
524
|
+
/** Graph-wide default HITL mode applied to nodes whose own `hitl` is unset. */
|
|
525
|
+
readonly hitl_default?: InlineHITLMode;
|
|
526
|
+
/**
|
|
527
|
+
* Chat-mode primitive — graph-wide default for
|
|
528
|
+
* `InlineGraphAgent.auto_pause_on_turn_end`. A node whose own
|
|
529
|
+
* field is `null`/absent inherits this value; an explicit
|
|
530
|
+
* per-node `true`/`false` wins. Default `false` matches the
|
|
531
|
+
* ADR-prescribed "headless is default" stance. Threads through to
|
|
532
|
+
* QAR's `GraphSpec.auto_pause_on_turn_end_default`.
|
|
533
|
+
*/
|
|
534
|
+
readonly auto_pause_on_turn_end_default?: boolean;
|
|
535
|
+
/**
|
|
536
|
+
* Reserved-and-rejected — must be `null`. Typed as literal `null` so
|
|
537
|
+
* the only value the TS compiler accepts is `null` itself; QAR's wire
|
|
538
|
+
* validator emits `D13-R5` on any non-null. Mirrors AgentSpec's
|
|
539
|
+
* `custom_code`.
|
|
540
|
+
*/
|
|
541
|
+
readonly parent_close_policy?: null;
|
|
542
|
+
/**
|
|
543
|
+
* Content-trust policy. Graph-wide defaults applied to inline agents
|
|
544
|
+
* that don't declare their own `content_trust`. Threads through to
|
|
545
|
+
* QAR's `GraphSpec.content_trust`. Absent/null = QAR-side defaults
|
|
546
|
+
* apply.
|
|
547
|
+
*/
|
|
548
|
+
readonly content_trust?: ContentTrustPolicy | null;
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Per-agent verdict shape returned by evaluator-role nodes. Mirrors QAR
|
|
552
|
+
* QAR's Pydantic `VerdictResult` (and the LLM-as-judge patterns in
|
|
553
|
+
* RAGAS / OpenAI Evals):
|
|
554
|
+
*
|
|
555
|
+
* - `verdict` — closed three-arm enum. The supervisor's next turn branches
|
|
556
|
+
* on this discriminator.
|
|
557
|
+
* - `confidence` — optional scalar in `[0, 1]`. QAR's Pydantic model
|
|
558
|
+
* enforces the range with `ge=0, le=1`; the SDK matches that for
|
|
559
|
+
* pre-flight rejection (`D11-R12`).
|
|
560
|
+
* - `rationale` — optional free-form explanation. Surfaced verbatim to
|
|
561
|
+
* the supervisor's prompt context.
|
|
562
|
+
* - `[k: string]: unknown` — RAGAS-style additional scores (e.g.
|
|
563
|
+
* `faithfulness`, `answer_relevancy`). QAR's Pydantic model uses
|
|
564
|
+
* `extra="allow"`; the SDK mirrors that with the open index signature.
|
|
565
|
+
*
|
|
566
|
+
* Bound at runtime to the producer's `_verdicts[node]` state slot — see
|
|
567
|
+
* QAR's `dispatch_evaluator` runtime.
|
|
568
|
+
*/
|
|
569
|
+
export interface VerdictResult {
|
|
570
|
+
readonly verdict: 'pass' | 'fail' | 'needs_revision';
|
|
571
|
+
readonly confidence?: number;
|
|
572
|
+
readonly rationale?: string;
|
|
573
|
+
readonly [k: string]: unknown;
|
|
574
|
+
}
|
|
575
|
+
/** Discriminated union accepted by `client.specs.validate`. */
|
|
576
|
+
export type InlineSpec = InlineAgentSpec | InlineGraphSpec;
|
|
577
|
+
/**
|
|
578
|
+
* Discriminator literal — the value of `kind` on each branch.
|
|
579
|
+
* Matches QAR's `SPEC_KIND_AGENT` / `SPEC_KIND_GRAPH` exactly.
|
|
580
|
+
*/
|
|
581
|
+
export type InlineSpecKind = 'AgentSpec' | 'GraphSpec';
|
|
582
|
+
/**
|
|
583
|
+
* Per-rule validation failure. Mirrors QAR's response shape. `rule_id` is
|
|
584
|
+
* one of the `D10-R*` set, the `D11-R*` set, or a small set of
|
|
585
|
+
* surface-rejection ids (`D10-UNSUPPORTED`, `D10-UNSUPPORTED-SPAWN`); `path`
|
|
586
|
+
* is a JSON Pointer (RFC 6901) into the spec, with `""` denoting the root.
|
|
587
|
+
*/
|
|
588
|
+
export interface SpecValidationError {
|
|
589
|
+
readonly rule_id: string;
|
|
590
|
+
readonly path: string;
|
|
591
|
+
readonly message: string;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Result envelope returned by `client.specs.validate`. Discriminated on
|
|
595
|
+
* `valid` so consumers can branch directly on `result.valid` (no extra
|
|
596
|
+
* type guard needed) — the `errors` array only exists on the `false` arm.
|
|
597
|
+
*/
|
|
598
|
+
export type SpecValidateResult = {
|
|
599
|
+
readonly valid: true;
|
|
600
|
+
} | {
|
|
601
|
+
readonly valid: false;
|
|
602
|
+
readonly errors: readonly SpecValidationError[];
|
|
603
|
+
};
|
|
604
|
+
//# sourceMappingURL=specs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specs.d.ts","sourceRoot":"","sources":["../../src/qar/specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA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