synorch 0.2.0 → 0.4.0-beta.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 +55 -1
- package/README.md +338 -28
- package/dist/application/doctor-service.d.ts +16 -0
- package/dist/application/doctor-service.d.ts.map +1 -1
- package/dist/application/doctor-service.js +230 -32
- package/dist/application/doctor-service.js.map +1 -1
- package/dist/application/generated-skill-doctor.d.ts +9 -0
- package/dist/application/generated-skill-doctor.d.ts.map +1 -0
- package/dist/application/generated-skill-doctor.js +433 -0
- package/dist/application/generated-skill-doctor.js.map +1 -0
- package/dist/application/project-discovery.d.ts +26 -1
- package/dist/application/project-discovery.d.ts.map +1 -1
- package/dist/application/project-discovery.js +99 -6
- package/dist/application/project-discovery.js.map +1 -1
- package/dist/application/safe-path.d.ts +19 -0
- package/dist/application/safe-path.d.ts.map +1 -0
- package/dist/application/safe-path.js +35 -0
- package/dist/application/safe-path.js.map +1 -0
- package/dist/application/size-ceiling.d.ts +15 -0
- package/dist/application/size-ceiling.d.ts.map +1 -0
- package/dist/application/size-ceiling.js +32 -0
- package/dist/application/size-ceiling.js.map +1 -0
- package/dist/application/structure-service.d.ts.map +1 -1
- package/dist/application/structure-service.js +10 -1
- package/dist/application/structure-service.js.map +1 -1
- package/dist/build-info.json +4 -0
- package/dist/cli.js +135 -18
- package/dist/cli.js.map +1 -1
- package/dist/domain/canonical-contracts.d.ts +69 -0
- package/dist/domain/canonical-contracts.d.ts.map +1 -0
- package/dist/domain/canonical-contracts.js +92 -0
- package/dist/domain/canonical-contracts.js.map +1 -0
- package/dist/domain/generated-skill.d.ts +55 -0
- package/dist/domain/generated-skill.d.ts.map +1 -0
- package/dist/domain/generated-skill.js +90 -0
- package/dist/domain/generated-skill.js.map +1 -0
- package/dist/domain/generation.d.ts +15 -2
- package/dist/domain/generation.d.ts.map +1 -1
- package/dist/domain/observation-ledger.d.ts +118 -0
- package/dist/domain/observation-ledger.d.ts.map +1 -0
- package/dist/domain/observation-ledger.js +183 -0
- package/dist/domain/observation-ledger.js.map +1 -0
- package/dist/domain/product.d.ts +1 -1
- package/dist/domain/product.d.ts.map +1 -1
- package/dist/domain/product.js +1 -1
- package/dist/domain/product.js.map +1 -1
- package/dist/domain/relative-path.d.ts +21 -0
- package/dist/domain/relative-path.d.ts.map +1 -0
- package/dist/domain/relative-path.js +43 -0
- package/dist/domain/relative-path.js.map +1 -0
- package/dist/domain/skill-packs.d.ts.map +1 -1
- package/dist/domain/skill-packs.js +1 -0
- package/dist/domain/skill-packs.js.map +1 -1
- package/dist/domain/suggest.d.ts +5 -0
- package/dist/domain/suggest.d.ts.map +1 -0
- package/dist/domain/suggest.js +32 -0
- package/dist/domain/suggest.js.map +1 -0
- package/dist/domain/zod-issues.d.ts +21 -0
- package/dist/domain/zod-issues.d.ts.map +1 -0
- package/dist/domain/zod-issues.js +27 -0
- package/dist/domain/zod-issues.js.map +1 -0
- package/dist/harness/auth/api-key.d.ts +13 -0
- package/dist/harness/auth/api-key.d.ts.map +1 -0
- package/dist/harness/auth/api-key.js +87 -0
- package/dist/harness/auth/api-key.js.map +1 -0
- package/dist/harness/auth/claude-bridge.d.ts +22 -0
- package/dist/harness/auth/claude-bridge.d.ts.map +1 -0
- package/dist/harness/auth/claude-bridge.js +92 -0
- package/dist/harness/auth/claude-bridge.js.map +1 -0
- package/dist/harness/auth/command.d.ts +17 -0
- package/dist/harness/auth/command.d.ts.map +1 -0
- package/dist/harness/auth/command.js +223 -0
- package/dist/harness/auth/command.js.map +1 -0
- package/dist/harness/auth/credential-store.d.ts +30 -0
- package/dist/harness/auth/credential-store.d.ts.map +1 -0
- package/dist/harness/auth/credential-store.js +270 -0
- package/dist/harness/auth/credential-store.js.map +1 -0
- package/dist/harness/auth/index.d.ts +13 -0
- package/dist/harness/auth/index.d.ts.map +1 -0
- package/dist/harness/auth/index.js +10 -0
- package/dist/harness/auth/index.js.map +1 -0
- package/dist/harness/auth/json-file.d.ts +8 -0
- package/dist/harness/auth/json-file.d.ts.map +1 -0
- package/dist/harness/auth/json-file.js +57 -0
- package/dist/harness/auth/json-file.js.map +1 -0
- package/dist/harness/auth/jwt.d.ts +11 -0
- package/dist/harness/auth/jwt.d.ts.map +1 -0
- package/dist/harness/auth/jwt.js +37 -0
- package/dist/harness/auth/jwt.js.map +1 -0
- package/dist/harness/auth/keychain.d.ts +39 -0
- package/dist/harness/auth/keychain.d.ts.map +1 -0
- package/dist/harness/auth/keychain.js +191 -0
- package/dist/harness/auth/keychain.js.map +1 -0
- package/dist/harness/auth/locks.d.ts +19 -0
- package/dist/harness/auth/locks.d.ts.map +1 -0
- package/dist/harness/auth/locks.js +102 -0
- package/dist/harness/auth/locks.js.map +1 -0
- package/dist/harness/auth/notices.d.ts +6 -0
- package/dist/harness/auth/notices.d.ts.map +1 -0
- package/dist/harness/auth/notices.js +29 -0
- package/dist/harness/auth/notices.js.map +1 -0
- package/dist/harness/auth/openai-chatgpt.d.ts +32 -0
- package/dist/harness/auth/openai-chatgpt.d.ts.map +1 -0
- package/dist/harness/auth/openai-chatgpt.js +446 -0
- package/dist/harness/auth/openai-chatgpt.js.map +1 -0
- package/dist/harness/auth/profile-state.d.ts +25 -0
- package/dist/harness/auth/profile-state.d.ts.map +1 -0
- package/dist/harness/auth/profile-state.js +77 -0
- package/dist/harness/auth/profile-state.js.map +1 -0
- package/dist/harness/auth/providers.d.ts +27 -0
- package/dist/harness/auth/providers.d.ts.map +1 -0
- package/dist/harness/auth/providers.js +66 -0
- package/dist/harness/auth/providers.js.map +1 -0
- package/dist/harness/auth/resolved-credential.d.ts +11 -0
- package/dist/harness/auth/resolved-credential.d.ts.map +1 -0
- package/dist/harness/auth/resolved-credential.js +35 -0
- package/dist/harness/auth/resolved-credential.js.map +1 -0
- package/dist/harness/cli/appearance.d.ts +28 -0
- package/dist/harness/cli/appearance.d.ts.map +1 -0
- package/dist/harness/cli/appearance.js +123 -0
- package/dist/harness/cli/appearance.js.map +1 -0
- package/dist/harness/cli/args.d.ts +429 -0
- package/dist/harness/cli/args.d.ts.map +1 -0
- package/dist/harness/cli/args.js +372 -0
- package/dist/harness/cli/args.js.map +1 -0
- package/dist/harness/cli/attachments.d.ts +44 -0
- package/dist/harness/cli/attachments.d.ts.map +1 -0
- package/dist/harness/cli/attachments.js +176 -0
- package/dist/harness/cli/attachments.js.map +1 -0
- package/dist/harness/cli/canonical.d.ts +64 -0
- package/dist/harness/cli/canonical.d.ts.map +1 -0
- package/dist/harness/cli/canonical.js +455 -0
- package/dist/harness/cli/canonical.js.map +1 -0
- package/dist/harness/cli/claude-native-approvals.d.ts +45 -0
- package/dist/harness/cli/claude-native-approvals.d.ts.map +1 -0
- package/dist/harness/cli/claude-native-approvals.js +183 -0
- package/dist/harness/cli/claude-native-approvals.js.map +1 -0
- package/dist/harness/cli/command-grants.d.ts +23 -0
- package/dist/harness/cli/command-grants.d.ts.map +1 -0
- package/dist/harness/cli/command-grants.js +76 -0
- package/dist/harness/cli/command-grants.js.map +1 -0
- package/dist/harness/cli/config-command.d.ts +98 -0
- package/dist/harness/cli/config-command.d.ts.map +1 -0
- package/dist/harness/cli/config-command.js +561 -0
- package/dist/harness/cli/config-command.js.map +1 -0
- package/dist/harness/cli/config.d.ts +429 -0
- package/dist/harness/cli/config.d.ts.map +1 -0
- package/dist/harness/cli/config.js +504 -0
- package/dist/harness/cli/config.js.map +1 -0
- package/dist/harness/cli/conversation.d.ts +35 -0
- package/dist/harness/cli/conversation.d.ts.map +1 -0
- package/dist/harness/cli/conversation.js +3755 -0
- package/dist/harness/cli/conversation.js.map +1 -0
- package/dist/harness/cli/doctor.d.ts +32 -0
- package/dist/harness/cli/doctor.d.ts.map +1 -0
- package/dist/harness/cli/doctor.js +329 -0
- package/dist/harness/cli/doctor.js.map +1 -0
- package/dist/harness/cli/effort-command.d.ts +41 -0
- package/dist/harness/cli/effort-command.d.ts.map +1 -0
- package/dist/harness/cli/effort-command.js +133 -0
- package/dist/harness/cli/effort-command.js.map +1 -0
- package/dist/harness/cli/extensions/agents.d.ts +40 -0
- package/dist/harness/cli/extensions/agents.d.ts.map +1 -0
- package/dist/harness/cli/extensions/agents.js +66 -0
- package/dist/harness/cli/extensions/agents.js.map +1 -0
- package/dist/harness/cli/extensions/catalog.d.ts +134 -0
- package/dist/harness/cli/extensions/catalog.d.ts.map +1 -0
- package/dist/harness/cli/extensions/catalog.js +213 -0
- package/dist/harness/cli/extensions/catalog.js.map +1 -0
- package/dist/harness/cli/extensions/claude-home.d.ts +33 -0
- package/dist/harness/cli/extensions/claude-home.d.ts.map +1 -0
- package/dist/harness/cli/extensions/claude-home.js +78 -0
- package/dist/harness/cli/extensions/claude-home.js.map +1 -0
- package/dist/harness/cli/extensions/controller.d.ts +51 -0
- package/dist/harness/cli/extensions/controller.d.ts.map +1 -0
- package/dist/harness/cli/extensions/controller.js +67 -0
- package/dist/harness/cli/extensions/controller.js.map +1 -0
- package/dist/harness/cli/extensions/hooks.d.ts +164 -0
- package/dist/harness/cli/extensions/hooks.d.ts.map +1 -0
- package/dist/harness/cli/extensions/hooks.js +442 -0
- package/dist/harness/cli/extensions/hooks.js.map +1 -0
- package/dist/harness/cli/extensions/index.d.ts +10 -0
- package/dist/harness/cli/extensions/index.d.ts.map +1 -0
- package/dist/harness/cli/extensions/index.js +10 -0
- package/dist/harness/cli/extensions/index.js.map +1 -0
- package/dist/harness/cli/extensions/markdown.d.ts +46 -0
- package/dist/harness/cli/extensions/markdown.d.ts.map +1 -0
- package/dist/harness/cli/extensions/markdown.js +139 -0
- package/dist/harness/cli/extensions/markdown.js.map +1 -0
- package/dist/harness/cli/extensions/plugins.d.ts +160 -0
- package/dist/harness/cli/extensions/plugins.d.ts.map +1 -0
- package/dist/harness/cli/extensions/plugins.js +645 -0
- package/dist/harness/cli/extensions/plugins.js.map +1 -0
- package/dist/harness/cli/extensions/tool-hooks.d.ts +28 -0
- package/dist/harness/cli/extensions/tool-hooks.d.ts.map +1 -0
- package/dist/harness/cli/extensions/tool-hooks.js +63 -0
- package/dist/harness/cli/extensions/tool-hooks.js.map +1 -0
- package/dist/harness/cli/extensions-command.d.ts +64 -0
- package/dist/harness/cli/extensions-command.d.ts.map +1 -0
- package/dist/harness/cli/extensions-command.js +639 -0
- package/dist/harness/cli/extensions-command.js.map +1 -0
- package/dist/harness/cli/help.d.ts +9 -0
- package/dist/harness/cli/help.d.ts.map +1 -0
- package/dist/harness/cli/help.js +191 -0
- package/dist/harness/cli/help.js.map +1 -0
- package/dist/harness/cli/index.d.ts +52 -0
- package/dist/harness/cli/index.d.ts.map +1 -0
- package/dist/harness/cli/index.js +297 -0
- package/dist/harness/cli/index.js.map +1 -0
- package/dist/harness/cli/inspect.d.ts +40 -0
- package/dist/harness/cli/inspect.d.ts.map +1 -0
- package/dist/harness/cli/inspect.js +185 -0
- package/dist/harness/cli/inspect.js.map +1 -0
- package/dist/harness/cli/mcp-command.d.ts +61 -0
- package/dist/harness/cli/mcp-command.d.ts.map +1 -0
- package/dist/harness/cli/mcp-command.js +519 -0
- package/dist/harness/cli/mcp-command.js.map +1 -0
- package/dist/harness/cli/memory-desk.d.ts +28 -0
- package/dist/harness/cli/memory-desk.d.ts.map +1 -0
- package/dist/harness/cli/memory-desk.js +275 -0
- package/dist/harness/cli/memory-desk.js.map +1 -0
- package/dist/harness/cli/model-picker.d.ts +44 -0
- package/dist/harness/cli/model-picker.d.ts.map +1 -0
- package/dist/harness/cli/model-picker.js +267 -0
- package/dist/harness/cli/model-picker.js.map +1 -0
- package/dist/harness/cli/onboarding.d.ts +29 -0
- package/dist/harness/cli/onboarding.d.ts.map +1 -0
- package/dist/harness/cli/onboarding.js +101 -0
- package/dist/harness/cli/onboarding.js.map +1 -0
- package/dist/harness/cli/orchestrate-tool.d.ts +60 -0
- package/dist/harness/cli/orchestrate-tool.d.ts.map +1 -0
- package/dist/harness/cli/orchestrate-tool.js +167 -0
- package/dist/harness/cli/orchestrate-tool.js.map +1 -0
- package/dist/harness/cli/orchestration-view.d.ts +57 -0
- package/dist/harness/cli/orchestration-view.d.ts.map +1 -0
- package/dist/harness/cli/orchestration-view.js +371 -0
- package/dist/harness/cli/orchestration-view.js.map +1 -0
- package/dist/harness/cli/outcome.d.ts +11 -0
- package/dist/harness/cli/outcome.d.ts.map +1 -0
- package/dist/harness/cli/outcome.js +70 -0
- package/dist/harness/cli/outcome.js.map +1 -0
- package/dist/harness/cli/panels/common.d.ts +30 -0
- package/dist/harness/cli/panels/common.d.ts.map +1 -0
- package/dist/harness/cli/panels/common.js +143 -0
- package/dist/harness/cli/panels/common.js.map +1 -0
- package/dist/harness/cli/panels/mcp.d.ts +18 -0
- package/dist/harness/cli/panels/mcp.d.ts.map +1 -0
- package/dist/harness/cli/panels/mcp.js +132 -0
- package/dist/harness/cli/panels/mcp.js.map +1 -0
- package/dist/harness/cli/panels/plugins.d.ts +8 -0
- package/dist/harness/cli/panels/plugins.d.ts.map +1 -0
- package/dist/harness/cli/panels/plugins.js +114 -0
- package/dist/harness/cli/panels/plugins.js.map +1 -0
- package/dist/harness/cli/panels/session.d.ts +54 -0
- package/dist/harness/cli/panels/session.d.ts.map +1 -0
- package/dist/harness/cli/panels/session.js +221 -0
- package/dist/harness/cli/panels/session.js.map +1 -0
- package/dist/harness/cli/panels/skills.d.ts +16 -0
- package/dist/harness/cli/panels/skills.d.ts.map +1 -0
- package/dist/harness/cli/panels/skills.js +146 -0
- package/dist/harness/cli/panels/skills.js.map +1 -0
- package/dist/harness/cli/project-profile.d.ts +87 -0
- package/dist/harness/cli/project-profile.d.ts.map +1 -0
- package/dist/harness/cli/project-profile.js +709 -0
- package/dist/harness/cli/project-profile.js.map +1 -0
- package/dist/harness/cli/project-scope.d.ts +2 -0
- package/dist/harness/cli/project-scope.d.ts.map +1 -0
- package/dist/harness/cli/project-scope.js +55 -0
- package/dist/harness/cli/project-scope.js.map +1 -0
- package/dist/harness/cli/renderers.d.ts +75 -0
- package/dist/harness/cli/renderers.d.ts.map +1 -0
- package/dist/harness/cli/renderers.js +162 -0
- package/dist/harness/cli/renderers.js.map +1 -0
- package/dist/harness/cli/rewind.d.ts +54 -0
- package/dist/harness/cli/rewind.d.ts.map +1 -0
- package/dist/harness/cli/rewind.js +80 -0
- package/dist/harness/cli/rewind.js.map +1 -0
- package/dist/harness/cli/role-policy.d.ts +8 -0
- package/dist/harness/cli/role-policy.d.ts.map +1 -0
- package/dist/harness/cli/role-policy.js +53 -0
- package/dist/harness/cli/role-policy.js.map +1 -0
- package/dist/harness/cli/run-summary.d.ts +16 -0
- package/dist/harness/cli/run-summary.d.ts.map +1 -0
- package/dist/harness/cli/run-summary.js +105 -0
- package/dist/harness/cli/run-summary.js.map +1 -0
- package/dist/harness/cli/runtime.d.ts +182 -0
- package/dist/harness/cli/runtime.d.ts.map +1 -0
- package/dist/harness/cli/runtime.js +999 -0
- package/dist/harness/cli/runtime.js.map +1 -0
- package/dist/harness/cli/scripted-script.d.ts +50 -0
- package/dist/harness/cli/scripted-script.d.ts.map +1 -0
- package/dist/harness/cli/scripted-script.js +110 -0
- package/dist/harness/cli/scripted-script.js.map +1 -0
- package/dist/harness/cli/session-git.d.ts +76 -0
- package/dist/harness/cli/session-git.d.ts.map +1 -0
- package/dist/harness/cli/session-git.js +146 -0
- package/dist/harness/cli/session-git.js.map +1 -0
- package/dist/harness/cli/session.d.ts +22 -0
- package/dist/harness/cli/session.d.ts.map +1 -0
- package/dist/harness/cli/session.js +203 -0
- package/dist/harness/cli/session.js.map +1 -0
- package/dist/harness/cli/slash-commands.d.ts +85 -0
- package/dist/harness/cli/slash-commands.d.ts.map +1 -0
- package/dist/harness/cli/slash-commands.js +114 -0
- package/dist/harness/cli/slash-commands.js.map +1 -0
- package/dist/harness/cli/startup-notices.d.ts +32 -0
- package/dist/harness/cli/startup-notices.d.ts.map +1 -0
- package/dist/harness/cli/startup-notices.js +93 -0
- package/dist/harness/cli/startup-notices.js.map +1 -0
- package/dist/harness/cli/terminal.d.ts +32 -0
- package/dist/harness/cli/terminal.d.ts.map +1 -0
- package/dist/harness/cli/terminal.js +21 -0
- package/dist/harness/cli/terminal.js.map +1 -0
- package/dist/harness/cli/transparency.d.ts +39 -0
- package/dist/harness/cli/transparency.d.ts.map +1 -0
- package/dist/harness/cli/transparency.js +491 -0
- package/dist/harness/cli/transparency.js.map +1 -0
- package/dist/harness/cli/trust.d.ts +40 -0
- package/dist/harness/cli/trust.d.ts.map +1 -0
- package/dist/harness/cli/trust.js +133 -0
- package/dist/harness/cli/trust.js.map +1 -0
- package/dist/harness/cli/usage-stats.d.ts +57 -0
- package/dist/harness/cli/usage-stats.d.ts.map +1 -0
- package/dist/harness/cli/usage-stats.js +341 -0
- package/dist/harness/cli/usage-stats.js.map +1 -0
- package/dist/harness/context/compaction.d.ts +69 -0
- package/dist/harness/context/compaction.d.ts.map +1 -0
- package/dist/harness/context/compaction.js +149 -0
- package/dist/harness/context/compaction.js.map +1 -0
- package/dist/harness/context/context-builder.d.ts +76 -0
- package/dist/harness/context/context-builder.d.ts.map +1 -0
- package/dist/harness/context/context-builder.js +367 -0
- package/dist/harness/context/context-builder.js.map +1 -0
- package/dist/harness/context/history.d.ts +31 -0
- package/dist/harness/context/history.d.ts.map +1 -0
- package/dist/harness/context/history.js +105 -0
- package/dist/harness/context/history.js.map +1 -0
- package/dist/harness/context/index.d.ts +11 -0
- package/dist/harness/context/index.d.ts.map +1 -0
- package/dist/harness/context/index.js +9 -0
- package/dist/harness/context/index.js.map +1 -0
- package/dist/harness/context/instructions.d.ts +30 -0
- package/dist/harness/context/instructions.d.ts.map +1 -0
- package/dist/harness/context/instructions.js +82 -0
- package/dist/harness/context/instructions.js.map +1 -0
- package/dist/harness/context/model-view.d.ts +46 -0
- package/dist/harness/context/model-view.d.ts.map +1 -0
- package/dist/harness/context/model-view.js +136 -0
- package/dist/harness/context/model-view.js.map +1 -0
- package/dist/harness/context/scope.d.ts +9 -0
- package/dist/harness/context/scope.d.ts.map +1 -0
- package/dist/harness/context/scope.js +50 -0
- package/dist/harness/context/scope.js.map +1 -0
- package/dist/harness/context/skills.d.ts +75 -0
- package/dist/harness/context/skills.d.ts.map +1 -0
- package/dist/harness/context/skills.js +109 -0
- package/dist/harness/context/skills.js.map +1 -0
- package/dist/harness/context/tokens.d.ts +10 -0
- package/dist/harness/context/tokens.d.ts.map +1 -0
- package/dist/harness/context/tokens.js +39 -0
- package/dist/harness/context/tokens.js.map +1 -0
- package/dist/harness/contracts/auth.d.ts +214 -0
- package/dist/harness/contracts/auth.d.ts.map +1 -0
- package/dist/harness/contracts/auth.js +120 -0
- package/dist/harness/contracts/auth.js.map +1 -0
- package/dist/harness/contracts/choice.d.ts +115 -0
- package/dist/harness/contracts/choice.d.ts.map +1 -0
- package/dist/harness/contracts/choice.js +115 -0
- package/dist/harness/contracts/choice.js.map +1 -0
- package/dist/harness/contracts/common.d.ts +119 -0
- package/dist/harness/contracts/common.d.ts.map +1 -0
- package/dist/harness/contracts/common.js +66 -0
- package/dist/harness/contracts/common.js.map +1 -0
- package/dist/harness/contracts/digest.d.ts +59 -0
- package/dist/harness/contracts/digest.d.ts.map +1 -0
- package/dist/harness/contracts/digest.js +88 -0
- package/dist/harness/contracts/digest.js.map +1 -0
- package/dist/harness/contracts/errors.d.ts +70 -0
- package/dist/harness/contracts/errors.d.ts.map +1 -0
- package/dist/harness/contracts/errors.js +87 -0
- package/dist/harness/contracts/errors.js.map +1 -0
- package/dist/harness/contracts/events.d.ts +3094 -0
- package/dist/harness/contracts/events.d.ts.map +1 -0
- package/dist/harness/contracts/events.js +426 -0
- package/dist/harness/contracts/events.js.map +1 -0
- package/dist/harness/contracts/evidence.d.ts +286 -0
- package/dist/harness/contracts/evidence.d.ts.map +1 -0
- package/dist/harness/contracts/evidence.js +234 -0
- package/dist/harness/contracts/evidence.js.map +1 -0
- package/dist/harness/contracts/ids.d.ts +77 -0
- package/dist/harness/contracts/ids.d.ts.map +1 -0
- package/dist/harness/contracts/ids.js +126 -0
- package/dist/harness/contracts/ids.js.map +1 -0
- package/dist/harness/contracts/index.d.ts +23 -0
- package/dist/harness/contracts/index.d.ts.map +1 -0
- package/dist/harness/contracts/index.js +23 -0
- package/dist/harness/contracts/index.js.map +1 -0
- package/dist/harness/contracts/jsonl.d.ts +3386 -0
- package/dist/harness/contracts/jsonl.d.ts.map +1 -0
- package/dist/harness/contracts/jsonl.js +87 -0
- package/dist/harness/contracts/jsonl.js.map +1 -0
- package/dist/harness/contracts/memory.d.ts +271 -0
- package/dist/harness/contracts/memory.d.ts.map +1 -0
- package/dist/harness/contracts/memory.js +152 -0
- package/dist/harness/contracts/memory.js.map +1 -0
- package/dist/harness/contracts/model.d.ts +1201 -0
- package/dist/harness/contracts/model.d.ts.map +1 -0
- package/dist/harness/contracts/model.js +386 -0
- package/dist/harness/contracts/model.js.map +1 -0
- package/dist/harness/contracts/packets.d.ts +945 -0
- package/dist/harness/contracts/packets.d.ts.map +1 -0
- package/dist/harness/contracts/packets.js +535 -0
- package/dist/harness/contracts/packets.js.map +1 -0
- package/dist/harness/contracts/panel.d.ts +140 -0
- package/dist/harness/contracts/panel.d.ts.map +1 -0
- package/dist/harness/contracts/panel.js +19 -0
- package/dist/harness/contracts/panel.js.map +1 -0
- package/dist/harness/contracts/paths.d.ts +58 -0
- package/dist/harness/contracts/paths.d.ts.map +1 -0
- package/dist/harness/contracts/paths.js +204 -0
- package/dist/harness/contracts/paths.js.map +1 -0
- package/dist/harness/contracts/policy.d.ts +459 -0
- package/dist/harness/contracts/policy.d.ts.map +1 -0
- package/dist/harness/contracts/policy.js +338 -0
- package/dist/harness/contracts/policy.js.map +1 -0
- package/dist/harness/contracts/projection.d.ts +111 -0
- package/dist/harness/contracts/projection.d.ts.map +1 -0
- package/dist/harness/contracts/projection.js +2 -0
- package/dist/harness/contracts/projection.js.map +1 -0
- package/dist/harness/contracts/renderer.d.ts +291 -0
- package/dist/harness/contracts/renderer.d.ts.map +1 -0
- package/dist/harness/contracts/renderer.js +36 -0
- package/dist/harness/contracts/renderer.js.map +1 -0
- package/dist/harness/contracts/roles.d.ts +28 -0
- package/dist/harness/contracts/roles.d.ts.map +1 -0
- package/dist/harness/contracts/roles.js +36 -0
- package/dist/harness/contracts/roles.js.map +1 -0
- package/dist/harness/contracts/runtime.d.ts +283 -0
- package/dist/harness/contracts/runtime.d.ts.map +1 -0
- package/dist/harness/contracts/runtime.js +13 -0
- package/dist/harness/contracts/runtime.js.map +1 -0
- package/dist/harness/contracts/state.d.ts +124 -0
- package/dist/harness/contracts/state.d.ts.map +1 -0
- package/dist/harness/contracts/state.js +172 -0
- package/dist/harness/contracts/state.js.map +1 -0
- package/dist/harness/contracts/store.d.ts +117 -0
- package/dist/harness/contracts/store.d.ts.map +1 -0
- package/dist/harness/contracts/store.js +54 -0
- package/dist/harness/contracts/store.js.map +1 -0
- package/dist/harness/contracts/tools.d.ts +296 -0
- package/dist/harness/contracts/tools.d.ts.map +1 -0
- package/dist/harness/contracts/tools.js +117 -0
- package/dist/harness/contracts/tools.js.map +1 -0
- package/dist/harness/contracts/views.d.ts +468 -0
- package/dist/harness/contracts/views.d.ts.map +1 -0
- package/dist/harness/contracts/views.js +2 -0
- package/dist/harness/contracts/views.js.map +1 -0
- package/dist/harness/core/driver.d.ts +53 -0
- package/dist/harness/core/driver.d.ts.map +1 -0
- package/dist/harness/core/driver.js +566 -0
- package/dist/harness/core/driver.js.map +1 -0
- package/dist/harness/core/envelope.d.ts +11 -0
- package/dist/harness/core/envelope.d.ts.map +1 -0
- package/dist/harness/core/envelope.js +35 -0
- package/dist/harness/core/envelope.js.map +1 -0
- package/dist/harness/core/index.d.ts +7 -0
- package/dist/harness/core/index.d.ts.map +1 -0
- package/dist/harness/core/index.js +5 -0
- package/dist/harness/core/index.js.map +1 -0
- package/dist/harness/core/projection.d.ts +10 -0
- package/dist/harness/core/projection.d.ts.map +1 -0
- package/dist/harness/core/projection.js +268 -0
- package/dist/harness/core/projection.js.map +1 -0
- package/dist/harness/core/recovery.d.ts +14 -0
- package/dist/harness/core/recovery.d.ts.map +1 -0
- package/dist/harness/core/recovery.js +115 -0
- package/dist/harness/core/recovery.js.map +1 -0
- package/dist/harness/core/stream.d.ts +23 -0
- package/dist/harness/core/stream.d.ts.map +1 -0
- package/dist/harness/core/stream.js +102 -0
- package/dist/harness/core/stream.js.map +1 -0
- package/dist/harness/core/testing.d.ts +80 -0
- package/dist/harness/core/testing.d.ts.map +1 -0
- package/dist/harness/core/testing.js +258 -0
- package/dist/harness/core/testing.js.map +1 -0
- package/dist/harness/mcp/approvals.d.ts +14 -0
- package/dist/harness/mcp/approvals.d.ts.map +1 -0
- package/dist/harness/mcp/approvals.js +60 -0
- package/dist/harness/mcp/approvals.js.map +1 -0
- package/dist/harness/mcp/client.d.ts +74 -0
- package/dist/harness/mcp/client.d.ts.map +1 -0
- package/dist/harness/mcp/client.js +214 -0
- package/dist/harness/mcp/client.js.map +1 -0
- package/dist/harness/mcp/config.d.ts +156 -0
- package/dist/harness/mcp/config.d.ts.map +1 -0
- package/dist/harness/mcp/config.js +180 -0
- package/dist/harness/mcp/config.js.map +1 -0
- package/dist/harness/mcp/errors.d.ts +24 -0
- package/dist/harness/mcp/errors.d.ts.map +1 -0
- package/dist/harness/mcp/errors.js +67 -0
- package/dist/harness/mcp/errors.js.map +1 -0
- package/dist/harness/mcp/index.d.ts +9 -0
- package/dist/harness/mcp/index.d.ts.map +1 -0
- package/dist/harness/mcp/index.js +9 -0
- package/dist/harness/mcp/index.js.map +1 -0
- package/dist/harness/mcp/manager.d.ts +115 -0
- package/dist/harness/mcp/manager.d.ts.map +1 -0
- package/dist/harness/mcp/manager.js +361 -0
- package/dist/harness/mcp/manager.js.map +1 -0
- package/dist/harness/mcp/oauth.d.ts +54 -0
- package/dist/harness/mcp/oauth.d.ts.map +1 -0
- package/dist/harness/mcp/oauth.js +253 -0
- package/dist/harness/mcp/oauth.js.map +1 -0
- package/dist/harness/mcp/tools.d.ts +24 -0
- package/dist/harness/mcp/tools.d.ts.map +1 -0
- package/dist/harness/mcp/tools.js +142 -0
- package/dist/harness/mcp/tools.js.map +1 -0
- package/dist/harness/memory/bootstrap.d.ts +55 -0
- package/dist/harness/memory/bootstrap.d.ts.map +1 -0
- package/dist/harness/memory/bootstrap.js +124 -0
- package/dist/harness/memory/bootstrap.js.map +1 -0
- package/dist/harness/memory/desk.d.ts +74 -0
- package/dist/harness/memory/desk.d.ts.map +1 -0
- package/dist/harness/memory/desk.js +211 -0
- package/dist/harness/memory/desk.js.map +1 -0
- package/dist/harness/memory/graph.d.ts +24 -0
- package/dist/harness/memory/graph.d.ts.map +1 -0
- package/dist/harness/memory/graph.js +92 -0
- package/dist/harness/memory/graph.js.map +1 -0
- package/dist/harness/memory/index.d.ts +12 -0
- package/dist/harness/memory/index.d.ts.map +1 -0
- package/dist/harness/memory/index.js +10 -0
- package/dist/harness/memory/index.js.map +1 -0
- package/dist/harness/memory/markdown-memory-store.d.ts +122 -0
- package/dist/harness/memory/markdown-memory-store.d.ts.map +1 -0
- package/dist/harness/memory/markdown-memory-store.js +419 -0
- package/dist/harness/memory/markdown-memory-store.js.map +1 -0
- package/dist/harness/memory/memory-command.d.ts +22 -0
- package/dist/harness/memory/memory-command.d.ts.map +1 -0
- package/dist/harness/memory/memory-command.js +335 -0
- package/dist/harness/memory/memory-command.js.map +1 -0
- package/dist/harness/memory/memory-index.d.ts +71 -0
- package/dist/harness/memory/memory-index.d.ts.map +1 -0
- package/dist/harness/memory/memory-index.js +206 -0
- package/dist/harness/memory/memory-index.js.map +1 -0
- package/dist/harness/memory/note-format.d.ts +20 -0
- package/dist/harness/memory/note-format.d.ts.map +1 -0
- package/dist/harness/memory/note-format.js +69 -0
- package/dist/harness/memory/note-format.js.map +1 -0
- package/dist/harness/memory/obsidian.d.ts +14 -0
- package/dist/harness/memory/obsidian.d.ts.map +1 -0
- package/dist/harness/memory/obsidian.js +64 -0
- package/dist/harness/memory/obsidian.js.map +1 -0
- package/dist/harness/memory/redaction.d.ts +15 -0
- package/dist/harness/memory/redaction.d.ts.map +1 -0
- package/dist/harness/memory/redaction.js +64 -0
- package/dist/harness/memory/redaction.js.map +1 -0
- package/dist/harness/memory/relations.d.ts +29 -0
- package/dist/harness/memory/relations.d.ts.map +1 -0
- package/dist/harness/memory/relations.js +117 -0
- package/dist/harness/memory/relations.js.map +1 -0
- package/dist/harness/memory/vault.d.ts +35 -0
- package/dist/harness/memory/vault.d.ts.map +1 -0
- package/dist/harness/memory/vault.js +194 -0
- package/dist/harness/memory/vault.js.map +1 -0
- package/dist/harness/orchestration/approval.d.ts +29 -0
- package/dist/harness/orchestration/approval.d.ts.map +1 -0
- package/dist/harness/orchestration/approval.js +86 -0
- package/dist/harness/orchestration/approval.js.map +1 -0
- package/dist/harness/orchestration/artifact-review.d.ts +219 -0
- package/dist/harness/orchestration/artifact-review.d.ts.map +1 -0
- package/dist/harness/orchestration/artifact-review.js +319 -0
- package/dist/harness/orchestration/artifact-review.js.map +1 -0
- package/dist/harness/orchestration/attempt-log.d.ts +53 -0
- package/dist/harness/orchestration/attempt-log.d.ts.map +1 -0
- package/dist/harness/orchestration/attempt-log.js +138 -0
- package/dist/harness/orchestration/attempt-log.js.map +1 -0
- package/dist/harness/orchestration/budget.d.ts +110 -0
- package/dist/harness/orchestration/budget.d.ts.map +1 -0
- package/dist/harness/orchestration/budget.js +197 -0
- package/dist/harness/orchestration/budget.js.map +1 -0
- package/dist/harness/orchestration/capabilities.d.ts +6 -0
- package/dist/harness/orchestration/capabilities.d.ts.map +1 -0
- package/dist/harness/orchestration/capabilities.js +80 -0
- package/dist/harness/orchestration/capabilities.js.map +1 -0
- package/dist/harness/orchestration/claims.d.ts +148 -0
- package/dist/harness/orchestration/claims.d.ts.map +1 -0
- package/dist/harness/orchestration/claims.js +64 -0
- package/dist/harness/orchestration/claims.js.map +1 -0
- package/dist/harness/orchestration/control-plane.d.ts +18 -0
- package/dist/harness/orchestration/control-plane.d.ts.map +1 -0
- package/dist/harness/orchestration/control-plane.js +74 -0
- package/dist/harness/orchestration/control-plane.js.map +1 -0
- package/dist/harness/orchestration/coordinator.d.ts +132 -0
- package/dist/harness/orchestration/coordinator.d.ts.map +1 -0
- package/dist/harness/orchestration/coordinator.js +1628 -0
- package/dist/harness/orchestration/coordinator.js.map +1 -0
- package/dist/harness/orchestration/delegation.d.ts +80 -0
- package/dist/harness/orchestration/delegation.d.ts.map +1 -0
- package/dist/harness/orchestration/delegation.js +81 -0
- package/dist/harness/orchestration/delegation.js.map +1 -0
- package/dist/harness/orchestration/evidence.d.ts +124 -0
- package/dist/harness/orchestration/evidence.d.ts.map +1 -0
- package/dist/harness/orchestration/evidence.js +576 -0
- package/dist/harness/orchestration/evidence.js.map +1 -0
- package/dist/harness/orchestration/factories.d.ts +13 -0
- package/dist/harness/orchestration/factories.d.ts.map +1 -0
- package/dist/harness/orchestration/factories.js +20 -0
- package/dist/harness/orchestration/factories.js.map +1 -0
- package/dist/harness/orchestration/git.d.ts +77 -0
- package/dist/harness/orchestration/git.d.ts.map +1 -0
- package/dist/harness/orchestration/git.js +214 -0
- package/dist/harness/orchestration/git.js.map +1 -0
- package/dist/harness/orchestration/index.d.ts +25 -0
- package/dist/harness/orchestration/index.d.ts.map +1 -0
- package/dist/harness/orchestration/index.js +23 -0
- package/dist/harness/orchestration/index.js.map +1 -0
- package/dist/harness/orchestration/isolation.d.ts +181 -0
- package/dist/harness/orchestration/isolation.d.ts.map +1 -0
- package/dist/harness/orchestration/isolation.js +1357 -0
- package/dist/harness/orchestration/isolation.js.map +1 -0
- package/dist/harness/orchestration/paths.d.ts +18 -0
- package/dist/harness/orchestration/paths.d.ts.map +1 -0
- package/dist/harness/orchestration/paths.js +56 -0
- package/dist/harness/orchestration/paths.js.map +1 -0
- package/dist/harness/orchestration/plan.d.ts +219 -0
- package/dist/harness/orchestration/plan.d.ts.map +1 -0
- package/dist/harness/orchestration/plan.js +537 -0
- package/dist/harness/orchestration/plan.js.map +1 -0
- package/dist/harness/orchestration/planner.d.ts +137 -0
- package/dist/harness/orchestration/planner.d.ts.map +1 -0
- package/dist/harness/orchestration/planner.js +162 -0
- package/dist/harness/orchestration/planner.js.map +1 -0
- package/dist/harness/orchestration/recorder.d.ts +23 -0
- package/dist/harness/orchestration/recorder.d.ts.map +1 -0
- package/dist/harness/orchestration/recorder.js +50 -0
- package/dist/harness/orchestration/recorder.js.map +1 -0
- package/dist/harness/orchestration/scheduler.d.ts +40 -0
- package/dist/harness/orchestration/scheduler.d.ts.map +1 -0
- package/dist/harness/orchestration/scheduler.js +157 -0
- package/dist/harness/orchestration/scheduler.js.map +1 -0
- package/dist/harness/orchestration/testing.d.ts +233 -0
- package/dist/harness/orchestration/testing.d.ts.map +1 -0
- package/dist/harness/orchestration/testing.js +734 -0
- package/dist/harness/orchestration/testing.js.map +1 -0
- package/dist/harness/orchestration/verification-preflight.d.ts +46 -0
- package/dist/harness/orchestration/verification-preflight.d.ts.map +1 -0
- package/dist/harness/orchestration/verification-preflight.js +104 -0
- package/dist/harness/orchestration/verification-preflight.js.map +1 -0
- package/dist/harness/orchestration/worker-control.d.ts +64 -0
- package/dist/harness/orchestration/worker-control.d.ts.map +1 -0
- package/dist/harness/orchestration/worker-control.js +199 -0
- package/dist/harness/orchestration/worker-control.js.map +1 -0
- package/dist/harness/orchestration/worker-manager.d.ts +225 -0
- package/dist/harness/orchestration/worker-manager.d.ts.map +1 -0
- package/dist/harness/orchestration/worker-manager.js +1347 -0
- package/dist/harness/orchestration/worker-manager.js.map +1 -0
- package/dist/harness/orchestration/workspace-digest.d.ts +39 -0
- package/dist/harness/orchestration/workspace-digest.d.ts.map +1 -0
- package/dist/harness/orchestration/workspace-digest.js +147 -0
- package/dist/harness/orchestration/workspace-digest.js.map +1 -0
- package/dist/harness/policy/approval-broker.d.ts +13 -0
- package/dist/harness/policy/approval-broker.d.ts.map +1 -0
- package/dist/harness/policy/approval-broker.js +26 -0
- package/dist/harness/policy/approval-broker.js.map +1 -0
- package/dist/harness/policy/command-classifier.d.ts +29 -0
- package/dist/harness/policy/command-classifier.d.ts.map +1 -0
- package/dist/harness/policy/command-classifier.js +459 -0
- package/dist/harness/policy/command-classifier.js.map +1 -0
- package/dist/harness/policy/command-rules.d.ts +56 -0
- package/dist/harness/policy/command-rules.d.ts.map +1 -0
- package/dist/harness/policy/command-rules.js +588 -0
- package/dist/harness/policy/command-rules.js.map +1 -0
- package/dist/harness/policy/config.d.ts +27 -0
- package/dist/harness/policy/config.d.ts.map +1 -0
- package/dist/harness/policy/config.js +37 -0
- package/dist/harness/policy/config.js.map +1 -0
- package/dist/harness/policy/engine.d.ts +67 -0
- package/dist/harness/policy/engine.d.ts.map +1 -0
- package/dist/harness/policy/engine.js +483 -0
- package/dist/harness/policy/engine.js.map +1 -0
- package/dist/harness/policy/exec-allowlist.d.ts +66 -0
- package/dist/harness/policy/exec-allowlist.d.ts.map +1 -0
- package/dist/harness/policy/exec-allowlist.js +449 -0
- package/dist/harness/policy/exec-allowlist.js.map +1 -0
- package/dist/harness/policy/index.d.ts +10 -0
- package/dist/harness/policy/index.d.ts.map +1 -0
- package/dist/harness/policy/index.js +8 -0
- package/dist/harness/policy/index.js.map +1 -0
- package/dist/harness/policy/secret-patterns.d.ts +12 -0
- package/dist/harness/policy/secret-patterns.d.ts.map +1 -0
- package/dist/harness/policy/secret-patterns.js +48 -0
- package/dist/harness/policy/secret-patterns.js.map +1 -0
- package/dist/harness/policy/shell-parser.d.ts +40 -0
- package/dist/harness/policy/shell-parser.d.ts.map +1 -0
- package/dist/harness/policy/shell-parser.js +278 -0
- package/dist/harness/policy/shell-parser.js.map +1 -0
- package/dist/harness/policy/workspace-trust.d.ts +37 -0
- package/dist/harness/policy/workspace-trust.d.ts.map +1 -0
- package/dist/harness/policy/workspace-trust.js +164 -0
- package/dist/harness/policy/workspace-trust.js.map +1 -0
- package/dist/harness/providers/anthropic-messages.d.ts +48 -0
- package/dist/harness/providers/anthropic-messages.d.ts.map +1 -0
- package/dist/harness/providers/anthropic-messages.js +360 -0
- package/dist/harness/providers/anthropic-messages.js.map +1 -0
- package/dist/harness/providers/assembler.d.ts +29 -0
- package/dist/harness/providers/assembler.d.ts.map +1 -0
- package/dist/harness/providers/assembler.js +130 -0
- package/dist/harness/providers/assembler.js.map +1 -0
- package/dist/harness/providers/authenticated-stream.d.ts +9 -0
- package/dist/harness/providers/authenticated-stream.d.ts.map +1 -0
- package/dist/harness/providers/authenticated-stream.js +81 -0
- package/dist/harness/providers/authenticated-stream.js.map +1 -0
- package/dist/harness/providers/catalog.d.ts +75 -0
- package/dist/harness/providers/catalog.d.ts.map +1 -0
- package/dist/harness/providers/catalog.js +124 -0
- package/dist/harness/providers/catalog.js.map +1 -0
- package/dist/harness/providers/claude-code/adapter.d.ts +96 -0
- package/dist/harness/providers/claude-code/adapter.d.ts.map +1 -0
- package/dist/harness/providers/claude-code/adapter.js +863 -0
- package/dist/harness/providers/claude-code/adapter.js.map +1 -0
- package/dist/harness/providers/claude-code/mcp-relay.d.ts +2 -0
- package/dist/harness/providers/claude-code/mcp-relay.d.ts.map +1 -0
- package/dist/harness/providers/claude-code/mcp-relay.js +27 -0
- package/dist/harness/providers/claude-code/mcp-relay.js.map +1 -0
- package/dist/harness/providers/claude-code/mcp-server.d.ts +40 -0
- package/dist/harness/providers/claude-code/mcp-server.d.ts.map +1 -0
- package/dist/harness/providers/claude-code/mcp-server.js +171 -0
- package/dist/harness/providers/claude-code/mcp-server.js.map +1 -0
- package/dist/harness/providers/claude-code/native.d.ts +36 -0
- package/dist/harness/providers/claude-code/native.d.ts.map +1 -0
- package/dist/harness/providers/claude-code/native.js +153 -0
- package/dist/harness/providers/claude-code/native.js.map +1 -0
- package/dist/harness/providers/claude-code/process.d.ts +48 -0
- package/dist/harness/providers/claude-code/process.d.ts.map +1 -0
- package/dist/harness/providers/claude-code/process.js +128 -0
- package/dist/harness/providers/claude-code/process.js.map +1 -0
- package/dist/harness/providers/codex-app-server.d.ts +8 -0
- package/dist/harness/providers/codex-app-server.d.ts.map +1 -0
- package/dist/harness/providers/codex-app-server.js +45 -0
- package/dist/harness/providers/codex-app-server.js.map +1 -0
- package/dist/harness/providers/effort.d.ts +51 -0
- package/dist/harness/providers/effort.d.ts.map +1 -0
- package/dist/harness/providers/effort.js +108 -0
- package/dist/harness/providers/effort.js.map +1 -0
- package/dist/harness/providers/errors.d.ts +34 -0
- package/dist/harness/providers/errors.d.ts.map +1 -0
- package/dist/harness/providers/errors.js +143 -0
- package/dist/harness/providers/errors.js.map +1 -0
- package/dist/harness/providers/grammar.d.ts +17 -0
- package/dist/harness/providers/grammar.d.ts.map +1 -0
- package/dist/harness/providers/grammar.js +89 -0
- package/dist/harness/providers/grammar.js.map +1 -0
- package/dist/harness/providers/http-stream.d.ts +40 -0
- package/dist/harness/providers/http-stream.d.ts.map +1 -0
- package/dist/harness/providers/http-stream.js +134 -0
- package/dist/harness/providers/http-stream.js.map +1 -0
- package/dist/harness/providers/index.d.ts +20 -0
- package/dist/harness/providers/index.d.ts.map +1 -0
- package/dist/harness/providers/index.js +17 -0
- package/dist/harness/providers/index.js.map +1 -0
- package/dist/harness/providers/responses.d.ts +36 -0
- package/dist/harness/providers/responses.d.ts.map +1 -0
- package/dist/harness/providers/responses.js +435 -0
- package/dist/harness/providers/responses.js.map +1 -0
- package/dist/harness/providers/reviewer-route.d.ts +14 -0
- package/dist/harness/providers/reviewer-route.d.ts.map +1 -0
- package/dist/harness/providers/reviewer-route.js +31 -0
- package/dist/harness/providers/reviewer-route.js.map +1 -0
- package/dist/harness/providers/router.d.ts +50 -0
- package/dist/harness/providers/router.d.ts.map +1 -0
- package/dist/harness/providers/router.js +295 -0
- package/dist/harness/providers/router.js.map +1 -0
- package/dist/harness/providers/scripted.d.ts +22 -0
- package/dist/harness/providers/scripted.d.ts.map +1 -0
- package/dist/harness/providers/scripted.js +111 -0
- package/dist/harness/providers/scripted.js.map +1 -0
- package/dist/harness/providers/sse.d.ts +13 -0
- package/dist/harness/providers/sse.d.ts.map +1 -0
- package/dist/harness/providers/sse.js +82 -0
- package/dist/harness/providers/sse.js.map +1 -0
- package/dist/harness/providers/testing.d.ts +35 -0
- package/dist/harness/providers/testing.d.ts.map +1 -0
- package/dist/harness/providers/testing.js +93 -0
- package/dist/harness/providers/testing.js.map +1 -0
- package/dist/harness/providers/web-search.d.ts +110 -0
- package/dist/harness/providers/web-search.d.ts.map +1 -0
- package/dist/harness/providers/web-search.js +476 -0
- package/dist/harness/providers/web-search.js.map +1 -0
- package/dist/harness/store/blob-store.d.ts +4 -0
- package/dist/harness/store/blob-store.d.ts.map +1 -0
- package/dist/harness/store/blob-store.js +79 -0
- package/dist/harness/store/blob-store.js.map +1 -0
- package/dist/harness/store/durable-file.d.ts +17 -0
- package/dist/harness/store/durable-file.d.ts.map +1 -0
- package/dist/harness/store/durable-file.js +84 -0
- package/dist/harness/store/durable-file.js.map +1 -0
- package/dist/harness/store/event-store.d.ts +56 -0
- package/dist/harness/store/event-store.d.ts.map +1 -0
- package/dist/harness/store/event-store.js +210 -0
- package/dist/harness/store/event-store.js.map +1 -0
- package/dist/harness/store/index.d.ts +8 -0
- package/dist/harness/store/index.d.ts.map +1 -0
- package/dist/harness/store/index.js +4 -0
- package/dist/harness/store/index.js.map +1 -0
- package/dist/harness/store/layout.d.ts +12 -0
- package/dist/harness/store/layout.d.ts.map +1 -0
- package/dist/harness/store/layout.js +27 -0
- package/dist/harness/store/layout.js.map +1 -0
- package/dist/harness/store/lease.d.ts +37 -0
- package/dist/harness/store/lease.d.ts.map +1 -0
- package/dist/harness/store/lease.js +326 -0
- package/dist/harness/store/lease.js.map +1 -0
- package/dist/harness/store/segments.d.ts +49 -0
- package/dist/harness/store/segments.d.ts.map +1 -0
- package/dist/harness/store/segments.js +216 -0
- package/dist/harness/store/segments.js.map +1 -0
- package/dist/harness/store/session-store.d.ts +18 -0
- package/dist/harness/store/session-store.d.ts.map +1 -0
- package/dist/harness/store/session-store.js +319 -0
- package/dist/harness/store/session-store.js.map +1 -0
- package/dist/harness/tools/builtin/control-tools.d.ts +57 -0
- package/dist/harness/tools/builtin/control-tools.d.ts.map +1 -0
- package/dist/harness/tools/builtin/control-tools.js +72 -0
- package/dist/harness/tools/builtin/control-tools.js.map +1 -0
- package/dist/harness/tools/builtin/glob.d.ts +15 -0
- package/dist/harness/tools/builtin/glob.d.ts.map +1 -0
- package/dist/harness/tools/builtin/glob.js +164 -0
- package/dist/harness/tools/builtin/glob.js.map +1 -0
- package/dist/harness/tools/builtin/process-bg.d.ts +72 -0
- package/dist/harness/tools/builtin/process-bg.d.ts.map +1 -0
- package/dist/harness/tools/builtin/process-bg.js +360 -0
- package/dist/harness/tools/builtin/process-bg.js.map +1 -0
- package/dist/harness/tools/builtin/process-tools.d.ts +46 -0
- package/dist/harness/tools/builtin/process-tools.d.ts.map +1 -0
- package/dist/harness/tools/builtin/process-tools.js +263 -0
- package/dist/harness/tools/builtin/process-tools.js.map +1 -0
- package/dist/harness/tools/builtin/read-media.d.ts +10 -0
- package/dist/harness/tools/builtin/read-media.d.ts.map +1 -0
- package/dist/harness/tools/builtin/read-media.js +128 -0
- package/dist/harness/tools/builtin/read-media.js.map +1 -0
- package/dist/harness/tools/builtin/read-tools.d.ts +29 -0
- package/dist/harness/tools/builtin/read-tools.d.ts.map +1 -0
- package/dist/harness/tools/builtin/read-tools.js +329 -0
- package/dist/harness/tools/builtin/read-tools.js.map +1 -0
- package/dist/harness/tools/builtin/shared.d.ts +47 -0
- package/dist/harness/tools/builtin/shared.d.ts.map +1 -0
- package/dist/harness/tools/builtin/shared.js +94 -0
- package/dist/harness/tools/builtin/shared.js.map +1 -0
- package/dist/harness/tools/builtin/todo.d.ts +38 -0
- package/dist/harness/tools/builtin/todo.d.ts.map +1 -0
- package/dist/harness/tools/builtin/todo.js +55 -0
- package/dist/harness/tools/builtin/todo.js.map +1 -0
- package/dist/harness/tools/builtin/web-common.d.ts +18 -0
- package/dist/harness/tools/builtin/web-common.d.ts.map +1 -0
- package/dist/harness/tools/builtin/web-common.js +53 -0
- package/dist/harness/tools/builtin/web-common.js.map +1 -0
- package/dist/harness/tools/builtin/web-fetch.d.ts +33 -0
- package/dist/harness/tools/builtin/web-fetch.d.ts.map +1 -0
- package/dist/harness/tools/builtin/web-fetch.js +173 -0
- package/dist/harness/tools/builtin/web-fetch.js.map +1 -0
- package/dist/harness/tools/builtin/web-html.d.ts +14 -0
- package/dist/harness/tools/builtin/web-html.d.ts.map +1 -0
- package/dist/harness/tools/builtin/web-html.js +314 -0
- package/dist/harness/tools/builtin/web-html.js.map +1 -0
- package/dist/harness/tools/builtin/web-net.d.ts +59 -0
- package/dist/harness/tools/builtin/web-net.d.ts.map +1 -0
- package/dist/harness/tools/builtin/web-net.js +347 -0
- package/dist/harness/tools/builtin/web-net.js.map +1 -0
- package/dist/harness/tools/builtin/web-search.d.ts +40 -0
- package/dist/harness/tools/builtin/web-search.d.ts.map +1 -0
- package/dist/harness/tools/builtin/web-search.js +60 -0
- package/dist/harness/tools/builtin/web-search.js.map +1 -0
- package/dist/harness/tools/builtin/web-state.d.ts +67 -0
- package/dist/harness/tools/builtin/web-state.d.ts.map +1 -0
- package/dist/harness/tools/builtin/web-state.js +227 -0
- package/dist/harness/tools/builtin/web-state.js.map +1 -0
- package/dist/harness/tools/builtin/write-tools.d.ts +18 -0
- package/dist/harness/tools/builtin/write-tools.d.ts.map +1 -0
- package/dist/harness/tools/builtin/write-tools.js +335 -0
- package/dist/harness/tools/builtin/write-tools.js.map +1 -0
- package/dist/harness/tools/environment.d.ts +9 -0
- package/dist/harness/tools/environment.d.ts.map +1 -0
- package/dist/harness/tools/environment.js +59 -0
- package/dist/harness/tools/environment.js.map +1 -0
- package/dist/harness/tools/file-ledger.d.ts +9 -0
- package/dist/harness/tools/file-ledger.d.ts.map +1 -0
- package/dist/harness/tools/file-ledger.js +26 -0
- package/dist/harness/tools/file-ledger.js.map +1 -0
- package/dist/harness/tools/gateway.d.ts +52 -0
- package/dist/harness/tools/gateway.d.ts.map +1 -0
- package/dist/harness/tools/gateway.js +435 -0
- package/dist/harness/tools/gateway.js.map +1 -0
- package/dist/harness/tools/index.d.ts +20 -0
- package/dist/harness/tools/index.d.ts.map +1 -0
- package/dist/harness/tools/index.js +17 -0
- package/dist/harness/tools/index.js.map +1 -0
- package/dist/harness/tools/patch.d.ts +51 -0
- package/dist/harness/tools/patch.d.ts.map +1 -0
- package/dist/harness/tools/patch.js +450 -0
- package/dist/harness/tools/patch.js.map +1 -0
- package/dist/harness/tools/process.d.ts +28 -0
- package/dist/harness/tools/process.d.ts.map +1 -0
- package/dist/harness/tools/process.js +263 -0
- package/dist/harness/tools/process.js.map +1 -0
- package/dist/harness/tools/redaction.d.ts +26 -0
- package/dist/harness/tools/redaction.d.ts.map +1 -0
- package/dist/harness/tools/redaction.js +77 -0
- package/dist/harness/tools/redaction.js.map +1 -0
- package/dist/harness/tools/registry.d.ts +26 -0
- package/dist/harness/tools/registry.d.ts.map +1 -0
- package/dist/harness/tools/registry.js +57 -0
- package/dist/harness/tools/registry.js.map +1 -0
- package/dist/harness/tools/sandbox.d.ts +23 -0
- package/dist/harness/tools/sandbox.d.ts.map +1 -0
- package/dist/harness/tools/sandbox.js +117 -0
- package/dist/harness/tools/sandbox.js.map +1 -0
- package/dist/harness/tools/testing.d.ts +42 -0
- package/dist/harness/tools/testing.d.ts.map +1 -0
- package/dist/harness/tools/testing.js +143 -0
- package/dist/harness/tools/testing.js.map +1 -0
- package/dist/harness/tools/text-file.d.ts +38 -0
- package/dist/harness/tools/text-file.d.ts.map +1 -0
- package/dist/harness/tools/text-file.js +90 -0
- package/dist/harness/tools/text-file.js.map +1 -0
- package/dist/harness/tools/windows-launch.d.ts +52 -0
- package/dist/harness/tools/windows-launch.d.ts.map +1 -0
- package/dist/harness/tools/windows-launch.js +261 -0
- package/dist/harness/tools/windows-launch.js.map +1 -0
- package/dist/harness/tools/workspace-path.d.ts +34 -0
- package/dist/harness/tools/workspace-path.d.ts.map +1 -0
- package/dist/harness/tools/workspace-path.js +133 -0
- package/dist/harness/tools/workspace-path.js.map +1 -0
- package/dist/harness/tui/approvals.d.ts +44 -0
- package/dist/harness/tui/approvals.d.ts.map +1 -0
- package/dist/harness/tui/approvals.js +127 -0
- package/dist/harness/tui/approvals.js.map +1 -0
- package/dist/harness/tui/auth-interaction.d.ts +36 -0
- package/dist/harness/tui/auth-interaction.d.ts.map +1 -0
- package/dist/harness/tui/auth-interaction.js +76 -0
- package/dist/harness/tui/auth-interaction.js.map +1 -0
- package/dist/harness/tui/choice-modal.d.ts +58 -0
- package/dist/harness/tui/choice-modal.d.ts.map +1 -0
- package/dist/harness/tui/choice-modal.js +244 -0
- package/dist/harness/tui/choice-modal.js.map +1 -0
- package/dist/harness/tui/conversation-view.d.ts +250 -0
- package/dist/harness/tui/conversation-view.d.ts.map +1 -0
- package/dist/harness/tui/conversation-view.js +1115 -0
- package/dist/harness/tui/conversation-view.js.map +1 -0
- package/dist/harness/tui/describe.d.ts +21 -0
- package/dist/harness/tui/describe.d.ts.map +1 -0
- package/dist/harness/tui/describe.js +110 -0
- package/dist/harness/tui/describe.js.map +1 -0
- package/dist/harness/tui/index.d.ts +30 -0
- package/dist/harness/tui/index.d.ts.map +1 -0
- package/dist/harness/tui/index.js +26 -0
- package/dist/harness/tui/index.js.map +1 -0
- package/dist/harness/tui/input/attachments.d.ts +20 -0
- package/dist/harness/tui/input/attachments.d.ts.map +1 -0
- package/dist/harness/tui/input/attachments.js +100 -0
- package/dist/harness/tui/input/attachments.js.map +1 -0
- package/dist/harness/tui/input/autocomplete.d.ts +41 -0
- package/dist/harness/tui/input/autocomplete.d.ts.map +1 -0
- package/dist/harness/tui/input/autocomplete.js +85 -0
- package/dist/harness/tui/input/autocomplete.js.map +1 -0
- package/dist/harness/tui/input/clipboard.d.ts +44 -0
- package/dist/harness/tui/input/clipboard.d.ts.map +1 -0
- package/dist/harness/tui/input/clipboard.js +181 -0
- package/dist/harness/tui/input/clipboard.js.map +1 -0
- package/dist/harness/tui/input/commands.d.ts +23 -0
- package/dist/harness/tui/input/commands.d.ts.map +1 -0
- package/dist/harness/tui/input/commands.js +71 -0
- package/dist/harness/tui/input/commands.js.map +1 -0
- package/dist/harness/tui/input/file-index.d.ts +49 -0
- package/dist/harness/tui/input/file-index.d.ts.map +1 -0
- package/dist/harness/tui/input/file-index.js +170 -0
- package/dist/harness/tui/input/file-index.js.map +1 -0
- package/dist/harness/tui/input/index.d.ts +8 -0
- package/dist/harness/tui/input/index.d.ts.map +1 -0
- package/dist/harness/tui/input/index.js +8 -0
- package/dist/harness/tui/input/index.js.map +1 -0
- package/dist/harness/tui/input/mouse.d.ts +68 -0
- package/dist/harness/tui/input/mouse.d.ts.map +1 -0
- package/dist/harness/tui/input/mouse.js +141 -0
- package/dist/harness/tui/input/mouse.js.map +1 -0
- package/dist/harness/tui/interrupt.d.ts +25 -0
- package/dist/harness/tui/interrupt.d.ts.map +1 -0
- package/dist/harness/tui/interrupt.js +49 -0
- package/dist/harness/tui/interrupt.js.map +1 -0
- package/dist/harness/tui/jsonl-renderer.d.ts +68 -0
- package/dist/harness/tui/jsonl-renderer.d.ts.map +1 -0
- package/dist/harness/tui/jsonl-renderer.js +172 -0
- package/dist/harness/tui/jsonl-renderer.js.map +1 -0
- package/dist/harness/tui/line-source.d.ts +39 -0
- package/dist/harness/tui/line-source.d.ts.map +1 -0
- package/dist/harness/tui/line-source.js +137 -0
- package/dist/harness/tui/line-source.js.map +1 -0
- package/dist/harness/tui/logo-art.d.ts +9 -0
- package/dist/harness/tui/logo-art.d.ts.map +1 -0
- package/dist/harness/tui/logo-art.js +24 -0
- package/dist/harness/tui/logo-art.js.map +1 -0
- package/dist/harness/tui/logo.d.ts +28 -0
- package/dist/harness/tui/logo.d.ts.map +1 -0
- package/dist/harness/tui/logo.js +88 -0
- package/dist/harness/tui/logo.js.map +1 -0
- package/dist/harness/tui/open-browser.d.ts +17 -0
- package/dist/harness/tui/open-browser.d.ts.map +1 -0
- package/dist/harness/tui/open-browser.js +45 -0
- package/dist/harness/tui/open-browser.js.map +1 -0
- package/dist/harness/tui/output-chunks.d.ts +8 -0
- package/dist/harness/tui/output-chunks.d.ts.map +1 -0
- package/dist/harness/tui/output-chunks.js +48 -0
- package/dist/harness/tui/output-chunks.js.map +1 -0
- package/dist/harness/tui/panels/index.d.ts +2 -0
- package/dist/harness/tui/panels/index.d.ts.map +1 -0
- package/dist/harness/tui/panels/index.js +2 -0
- package/dist/harness/tui/panels/index.js.map +1 -0
- package/dist/harness/tui/panels/panel-view.d.ts +98 -0
- package/dist/harness/tui/panels/panel-view.d.ts.map +1 -0
- package/dist/harness/tui/panels/panel-view.js +596 -0
- package/dist/harness/tui/panels/panel-view.js.map +1 -0
- package/dist/harness/tui/pi-tui-renderer.d.ts +363 -0
- package/dist/harness/tui/pi-tui-renderer.d.ts.map +1 -0
- package/dist/harness/tui/pi-tui-renderer.js +2696 -0
- package/dist/harness/tui/pi-tui-renderer.js.map +1 -0
- package/dist/harness/tui/plain-line-renderer.d.ts +102 -0
- package/dist/harness/tui/plain-line-renderer.d.ts.map +1 -0
- package/dist/harness/tui/plain-line-renderer.js +491 -0
- package/dist/harness/tui/plain-line-renderer.js.map +1 -0
- package/dist/harness/tui/render-queue.d.ts +34 -0
- package/dist/harness/tui/render-queue.d.ts.map +1 -0
- package/dist/harness/tui/render-queue.js +92 -0
- package/dist/harness/tui/render-queue.js.map +1 -0
- package/dist/harness/tui/sanitize.d.ts +9 -0
- package/dist/harness/tui/sanitize.d.ts.map +1 -0
- package/dist/harness/tui/sanitize.js +31 -0
- package/dist/harness/tui/sanitize.js.map +1 -0
- package/dist/harness/tui/style.d.ts +54 -0
- package/dist/harness/tui/style.d.ts.map +1 -0
- package/dist/harness/tui/style.js +64 -0
- package/dist/harness/tui/style.js.map +1 -0
- package/dist/harness/tui/terminal-lifecycle.d.ts +49 -0
- package/dist/harness/tui/terminal-lifecycle.d.ts.map +1 -0
- package/dist/harness/tui/terminal-lifecycle.js +100 -0
- package/dist/harness/tui/terminal-lifecycle.js.map +1 -0
- package/dist/harness/tui/theme.d.ts +77 -0
- package/dist/harness/tui/theme.d.ts.map +1 -0
- package/dist/harness/tui/theme.js +501 -0
- package/dist/harness/tui/theme.js.map +1 -0
- package/dist/harness/tui/tool-cards.d.ts +35 -0
- package/dist/harness/tui/tool-cards.d.ts.map +1 -0
- package/dist/harness/tui/tool-cards.js +122 -0
- package/dist/harness/tui/tool-cards.js.map +1 -0
- package/dist/harness/tui/tool-row.d.ts +51 -0
- package/dist/harness/tui/tool-row.d.ts.map +1 -0
- package/dist/harness/tui/tool-row.js +98 -0
- package/dist/harness/tui/tool-row.js.map +1 -0
- package/dist/harness/tui/views/board.d.ts +49 -0
- package/dist/harness/tui/views/board.d.ts.map +1 -0
- package/dist/harness/tui/views/board.js +293 -0
- package/dist/harness/tui/views/board.js.map +1 -0
- package/dist/harness/tui/views/cards.d.ts +8 -0
- package/dist/harness/tui/views/cards.d.ts.map +1 -0
- package/dist/harness/tui/views/cards.js +206 -0
- package/dist/harness/tui/views/cards.js.map +1 -0
- package/dist/harness/tui/views/components.d.ts +101 -0
- package/dist/harness/tui/views/components.d.ts.map +1 -0
- package/dist/harness/tui/views/components.js +186 -0
- package/dist/harness/tui/views/components.js.map +1 -0
- package/dist/harness/tui/views/diff.d.ts +11 -0
- package/dist/harness/tui/views/diff.d.ts.map +1 -0
- package/dist/harness/tui/views/diff.js +150 -0
- package/dist/harness/tui/views/diff.js.map +1 -0
- package/dist/harness/tui/views/graph.d.ts +49 -0
- package/dist/harness/tui/views/graph.d.ts.map +1 -0
- package/dist/harness/tui/views/graph.js +361 -0
- package/dist/harness/tui/views/graph.js.map +1 -0
- package/dist/harness/tui/views/index.d.ts +15 -0
- package/dist/harness/tui/views/index.d.ts.map +1 -0
- package/dist/harness/tui/views/index.js +15 -0
- package/dist/harness/tui/views/index.js.map +1 -0
- package/dist/harness/tui/views/kit.d.ts +112 -0
- package/dist/harness/tui/views/kit.d.ts.map +1 -0
- package/dist/harness/tui/views/kit.js +282 -0
- package/dist/harness/tui/views/kit.js.map +1 -0
- package/dist/harness/tui/views/trust-cards.d.ts +27 -0
- package/dist/harness/tui/views/trust-cards.d.ts.map +1 -0
- package/dist/harness/tui/views/trust-cards.js +181 -0
- package/dist/harness/tui/views/trust-cards.js.map +1 -0
- package/dist/harness/tui/views/usage.d.ts +4 -0
- package/dist/harness/tui/views/usage.d.ts.map +1 -0
- package/dist/harness/tui/views/usage.js +182 -0
- package/dist/harness/tui/views/usage.js.map +1 -0
- package/dist/harness/tui/views/worker.d.ts +47 -0
- package/dist/harness/tui/views/worker.d.ts.map +1 -0
- package/dist/harness/tui/views/worker.js +221 -0
- package/dist/harness/tui/views/worker.js.map +1 -0
- package/dist/harness/tui/welcome.d.ts +97 -0
- package/dist/harness/tui/welcome.d.ts.map +1 -0
- package/dist/harness/tui/welcome.js +271 -0
- package/dist/harness/tui/welcome.js.map +1 -0
- package/dist/harness/tui/wrap.d.ts +26 -0
- package/dist/harness/tui/wrap.d.ts.map +1 -0
- package/dist/harness/tui/wrap.js +38 -0
- package/dist/harness/tui/wrap.js.map +1 -0
- package/dist/infrastructure/build-info.d.ts +5 -0
- package/dist/infrastructure/build-info.d.ts.map +1 -0
- package/dist/infrastructure/build-info.js +21 -0
- package/dist/infrastructure/build-info.js.map +1 -0
- package/dist/infrastructure/frontmatter.d.ts +25 -0
- package/dist/infrastructure/frontmatter.d.ts.map +1 -0
- package/dist/infrastructure/frontmatter.js +75 -0
- package/dist/infrastructure/frontmatter.js.map +1 -0
- package/dist/templates/agent-manifests.d.ts +19 -0
- package/dist/templates/agent-manifests.d.ts.map +1 -0
- package/dist/templates/agent-manifests.js +302 -0
- package/dist/templates/agent-manifests.js.map +1 -0
- package/dist/templates/base-skills.d.ts +23 -0
- package/dist/templates/base-skills.d.ts.map +1 -0
- package/dist/templates/base-skills.js +477 -0
- package/dist/templates/base-skills.js.map +1 -0
- package/dist/templates/skill-creator-skill.d.ts +23 -0
- package/dist/templates/skill-creator-skill.d.ts.map +1 -0
- package/dist/templates/skill-creator-skill.js +235 -0
- package/dist/templates/skill-creator-skill.js.map +1 -0
- package/dist/templates/skill-references.d.ts +13 -0
- package/dist/templates/skill-references.d.ts.map +1 -0
- package/dist/templates/skill-references.js +280 -0
- package/dist/templates/skill-references.js.map +1 -0
- package/dist/templates/structure-templates.d.ts.map +1 -1
- package/dist/templates/structure-templates.js +20 -144
- package/dist/templates/structure-templates.js.map +1 -1
- package/dist/templates/task-conductor-skill.d.ts +1 -1
- package/dist/templates/task-conductor-skill.d.ts.map +1 -1
- package/dist/templates/task-conductor-skill.js +50 -22
- package/dist/templates/task-conductor-skill.js.map +1 -1
- package/package.json +8 -2
|
@@ -0,0 +1,1201 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type AuthMethodKind, type ResolvedCredential } from "./auth.ts";
|
|
3
|
+
import { modelTierSchema, agentRoleSchema, type AgentRole, type ModelTier } from "./common.ts";
|
|
4
|
+
import { type Digest } from "./digest.ts";
|
|
5
|
+
import { type ProviderId, type RequestId, type RunId, type TaskId } from "./ids.ts";
|
|
6
|
+
import type { ApprovalDecision, ApprovalRequest } from "./policy.ts";
|
|
7
|
+
/**
|
|
8
|
+
* The model boundary. Two adapter families implement it:
|
|
9
|
+
*
|
|
10
|
+
* - `ModelAdapter`: Synorch owns the agent loop; the adapter turns one `ModelRequest` into one
|
|
11
|
+
* stream (direct HTTP: OpenAI Responses for API key and ChatGPT subscription, Anthropic
|
|
12
|
+
* Messages for API key).
|
|
13
|
+
* - `AgentBackendAdapter`: the user's installed official client owns the loop (Claude Code via
|
|
14
|
+
* the Agent SDK or `claude -p`, later the Codex app-server). Built-in tools are disabled and
|
|
15
|
+
* Synorch's tools are exposed through a bridge (MCP / dynamic tools) that routes every call into
|
|
16
|
+
* the same ToolGateway, so policy, audit and packets are unchanged.
|
|
17
|
+
*
|
|
18
|
+
* Both emit the same `ModelStreamEvent` union and never throw once streaming has begun.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ADAPTER_KINDS: readonly ["model", "agent-backend"];
|
|
21
|
+
export declare const adapterKindSchema: z.ZodEnum<{
|
|
22
|
+
model: "model";
|
|
23
|
+
"agent-backend": "agent-backend";
|
|
24
|
+
}>;
|
|
25
|
+
export type AdapterKind = (typeof ADAPTER_KINDS)[number];
|
|
26
|
+
export declare const adapterIdSchema: z.ZodString;
|
|
27
|
+
export declare const modelRouteSchema: z.ZodObject<{
|
|
28
|
+
provider_id: z.core.$ZodBranded<z.ZodString, "ProviderId", "out">;
|
|
29
|
+
model_id: z.core.$ZodBranded<z.ZodString, "ModelId", "out">;
|
|
30
|
+
adapter_id: z.ZodString;
|
|
31
|
+
adapter_kind: z.ZodEnum<{
|
|
32
|
+
model: "model";
|
|
33
|
+
"agent-backend": "agent-backend";
|
|
34
|
+
}>;
|
|
35
|
+
auth_method: z.ZodEnum<{
|
|
36
|
+
"oauth-subscription": "oauth-subscription";
|
|
37
|
+
"cli-bridge": "cli-bridge";
|
|
38
|
+
"api-key": "api-key";
|
|
39
|
+
}>;
|
|
40
|
+
profile: z.ZodString;
|
|
41
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
orchestrator: "orchestrator";
|
|
43
|
+
complex_worker: "complex_worker";
|
|
44
|
+
fast_worker: "fast_worker";
|
|
45
|
+
session: "session";
|
|
46
|
+
}>>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export type ModelRoute = z.infer<typeof modelRouteSchema>;
|
|
49
|
+
export declare const TRUST_LEVELS: readonly ["harness", "project", "untrusted"];
|
|
50
|
+
export declare const SYSTEM_BLOCK_SOURCES: readonly ["harness", "constitution", "protocol", "role", "skill-catalog", "skill", "packet", "memory", "compaction"];
|
|
51
|
+
/** Sources a context report can name: every system block source plus the two message channels. */
|
|
52
|
+
export declare const CONTEXT_BLOCK_SOURCES: readonly ["harness", "constitution", "protocol", "role", "skill-catalog", "skill", "packet", "memory", "compaction", "history", "tool-result"];
|
|
53
|
+
export type ContextBlockSource = (typeof CONTEXT_BLOCK_SOURCES)[number];
|
|
54
|
+
/**
|
|
55
|
+
* One system-side block. `trust` is the priority channel: repository and tool text is
|
|
56
|
+
* `untrusted` data and is never promoted to instruction priority, whatever it says.
|
|
57
|
+
*/
|
|
58
|
+
export declare const systemBlockSchema: z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
source: z.ZodEnum<{
|
|
61
|
+
skill: "skill";
|
|
62
|
+
role: "role";
|
|
63
|
+
constitution: "constitution";
|
|
64
|
+
protocol: "protocol";
|
|
65
|
+
harness: "harness";
|
|
66
|
+
memory: "memory";
|
|
67
|
+
"skill-catalog": "skill-catalog";
|
|
68
|
+
packet: "packet";
|
|
69
|
+
compaction: "compaction";
|
|
70
|
+
}>;
|
|
71
|
+
trust: z.ZodEnum<{
|
|
72
|
+
project: "project";
|
|
73
|
+
harness: "harness";
|
|
74
|
+
untrusted: "untrusted";
|
|
75
|
+
}>;
|
|
76
|
+
text: z.ZodString;
|
|
77
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
export type SystemBlock = z.infer<typeof systemBlockSchema>;
|
|
80
|
+
/** Image media types every image-capable adapter accepts. */
|
|
81
|
+
export declare const IMAGE_MEDIA_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
82
|
+
export type ImageMediaType = (typeof IMAGE_MEDIA_TYPES)[number];
|
|
83
|
+
/** Per-image size cap (the Anthropic API limit; images are not downscaled). */
|
|
84
|
+
export declare const IMAGE_MAX_BYTES: number;
|
|
85
|
+
export declare const contentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<"text">;
|
|
87
|
+
text: z.ZodString;
|
|
88
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
89
|
+
type: z.ZodLiteral<"thinking">;
|
|
90
|
+
text: z.ZodString;
|
|
91
|
+
opaque: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
type: z.ZodLiteral<"tool_call">;
|
|
94
|
+
provider_call_id: z.ZodString;
|
|
95
|
+
tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
98
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"tool_result">;
|
|
100
|
+
tool_call_id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
101
|
+
provider_call_id: z.ZodString;
|
|
102
|
+
is_error: z.ZodBoolean;
|
|
103
|
+
text: z.ZodString;
|
|
104
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
106
|
+
size_bytes: z.ZodInt;
|
|
107
|
+
media_type: z.ZodString;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
110
|
+
type: z.ZodLiteral<"blob">;
|
|
111
|
+
blob: z.ZodObject<{
|
|
112
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
113
|
+
size_bytes: z.ZodInt;
|
|
114
|
+
media_type: z.ZodString;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
117
|
+
type: z.ZodLiteral<"image">;
|
|
118
|
+
blob: z.ZodObject<{
|
|
119
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
120
|
+
media_type: z.ZodEnum<{
|
|
121
|
+
"image/png": "image/png";
|
|
122
|
+
"image/jpeg": "image/jpeg";
|
|
123
|
+
"image/gif": "image/gif";
|
|
124
|
+
"image/webp": "image/webp";
|
|
125
|
+
}>;
|
|
126
|
+
size_bytes: z.ZodInt;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
data: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strict>], "type">;
|
|
130
|
+
export type ContentPart = z.infer<typeof contentPartSchema>;
|
|
131
|
+
export declare const modelMessageSchema: z.ZodObject<{
|
|
132
|
+
role: z.ZodEnum<{
|
|
133
|
+
user: "user";
|
|
134
|
+
assistant: "assistant";
|
|
135
|
+
tool: "tool";
|
|
136
|
+
}>;
|
|
137
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
|
+
type: z.ZodLiteral<"text">;
|
|
139
|
+
text: z.ZodString;
|
|
140
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
141
|
+
type: z.ZodLiteral<"thinking">;
|
|
142
|
+
text: z.ZodString;
|
|
143
|
+
opaque: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
145
|
+
type: z.ZodLiteral<"tool_call">;
|
|
146
|
+
provider_call_id: z.ZodString;
|
|
147
|
+
tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
|
|
148
|
+
name: z.ZodString;
|
|
149
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
150
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
151
|
+
type: z.ZodLiteral<"tool_result">;
|
|
152
|
+
tool_call_id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
153
|
+
provider_call_id: z.ZodString;
|
|
154
|
+
is_error: z.ZodBoolean;
|
|
155
|
+
text: z.ZodString;
|
|
156
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
158
|
+
size_bytes: z.ZodInt;
|
|
159
|
+
media_type: z.ZodString;
|
|
160
|
+
}, z.core.$strict>>;
|
|
161
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
162
|
+
type: z.ZodLiteral<"blob">;
|
|
163
|
+
blob: z.ZodObject<{
|
|
164
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
165
|
+
size_bytes: z.ZodInt;
|
|
166
|
+
media_type: z.ZodString;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
169
|
+
type: z.ZodLiteral<"image">;
|
|
170
|
+
blob: z.ZodObject<{
|
|
171
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
172
|
+
media_type: z.ZodEnum<{
|
|
173
|
+
"image/png": "image/png";
|
|
174
|
+
"image/jpeg": "image/jpeg";
|
|
175
|
+
"image/gif": "image/gif";
|
|
176
|
+
"image/webp": "image/webp";
|
|
177
|
+
}>;
|
|
178
|
+
size_bytes: z.ZodInt;
|
|
179
|
+
}, z.core.$strict>;
|
|
180
|
+
data: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, z.core.$strict>], "type">>;
|
|
182
|
+
}, z.core.$strict>;
|
|
183
|
+
export type ModelMessage = z.infer<typeof modelMessageSchema>;
|
|
184
|
+
export declare const assistantMessageSchema: z.ZodObject<{
|
|
185
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
186
|
+
type: z.ZodLiteral<"text">;
|
|
187
|
+
text: z.ZodString;
|
|
188
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
189
|
+
type: z.ZodLiteral<"thinking">;
|
|
190
|
+
text: z.ZodString;
|
|
191
|
+
opaque: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
193
|
+
type: z.ZodLiteral<"tool_call">;
|
|
194
|
+
provider_call_id: z.ZodString;
|
|
195
|
+
tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
198
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
199
|
+
type: z.ZodLiteral<"tool_result">;
|
|
200
|
+
tool_call_id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
201
|
+
provider_call_id: z.ZodString;
|
|
202
|
+
is_error: z.ZodBoolean;
|
|
203
|
+
text: z.ZodString;
|
|
204
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
206
|
+
size_bytes: z.ZodInt;
|
|
207
|
+
media_type: z.ZodString;
|
|
208
|
+
}, z.core.$strict>>;
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
type: z.ZodLiteral<"blob">;
|
|
211
|
+
blob: z.ZodObject<{
|
|
212
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
213
|
+
size_bytes: z.ZodInt;
|
|
214
|
+
media_type: z.ZodString;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
217
|
+
type: z.ZodLiteral<"image">;
|
|
218
|
+
blob: z.ZodObject<{
|
|
219
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
220
|
+
media_type: z.ZodEnum<{
|
|
221
|
+
"image/png": "image/png";
|
|
222
|
+
"image/jpeg": "image/jpeg";
|
|
223
|
+
"image/gif": "image/gif";
|
|
224
|
+
"image/webp": "image/webp";
|
|
225
|
+
}>;
|
|
226
|
+
size_bytes: z.ZodInt;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
data: z.ZodOptional<z.ZodString>;
|
|
229
|
+
}, z.core.$strict>], "type">>;
|
|
230
|
+
role: z.ZodLiteral<"assistant">;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
export type AssistantMessage = z.infer<typeof assistantMessageSchema>;
|
|
233
|
+
/** The model-facing view of a tool: name, description and JSON Schema for its arguments. */
|
|
234
|
+
export declare const toolDescriptorSchema: z.ZodObject<{
|
|
235
|
+
name: z.ZodString;
|
|
236
|
+
description: z.ZodString;
|
|
237
|
+
input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
238
|
+
}, z.core.$strict>;
|
|
239
|
+
export type ToolDescriptor = z.infer<typeof toolDescriptorSchema>;
|
|
240
|
+
/**
|
|
241
|
+
* Prompt caching hint (ADR-20). `key` is stable for one session and role (e.g.
|
|
242
|
+
* `<session_id>:<role>`); the OpenAI Responses adapters send it as `prompt_cache_key`. The first
|
|
243
|
+
* `stable_system_blocks` system blocks are byte-identical on every step of that session; the
|
|
244
|
+
* Anthropic Messages adapter puts its `cache_control` breakpoints after the last of them and after
|
|
245
|
+
* the tool list. Adapters that cannot cache ignore it; it never changes what the model sees.
|
|
246
|
+
*/
|
|
247
|
+
export declare const promptCacheSchema: z.ZodObject<{
|
|
248
|
+
key: z.ZodString;
|
|
249
|
+
stable_system_blocks: z.ZodInt;
|
|
250
|
+
}, z.core.$strict>;
|
|
251
|
+
export type PromptCache = z.infer<typeof promptCacheSchema>;
|
|
252
|
+
/**
|
|
253
|
+
* K6 reasoning effort, lowest to highest: the union of what the providers accept (verified
|
|
254
|
+
* 2026-09-25). ChatGPT/OpenAI Responses `reasoning.effort` (the Codex models listing reports
|
|
255
|
+
* `supported_reasoning_levels` low…max, plus `ultra` on frontier models); Anthropic Messages
|
|
256
|
+
* `output_config.effort` low…max; Claude Code `--effort` low…max. Which levels a model takes comes
|
|
257
|
+
* from the model catalog; an unsupported level is clamped to the nearest supported one.
|
|
258
|
+
*/
|
|
259
|
+
export declare const REASONING_EFFORTS: readonly ["low", "medium", "high", "xhigh", "max", "ultra"];
|
|
260
|
+
export declare const reasoningEffortSchema: z.ZodEnum<{
|
|
261
|
+
low: "low";
|
|
262
|
+
medium: "medium";
|
|
263
|
+
high: "high";
|
|
264
|
+
xhigh: "xhigh";
|
|
265
|
+
max: "max";
|
|
266
|
+
ultra: "ultra";
|
|
267
|
+
}>;
|
|
268
|
+
export type ReasoningEffort = (typeof REASONING_EFFORTS)[number];
|
|
269
|
+
/**
|
|
270
|
+
* K6 `effort` block of the user configuration: one level per model tier, and per worker role
|
|
271
|
+
* (a role level wins over its tier's). Unset slots keep the provider default.
|
|
272
|
+
*
|
|
273
|
+
* @example { session: "high", complex_worker: "xhigh", fast_worker: "low", reviewer: "high" }
|
|
274
|
+
*/
|
|
275
|
+
export declare const effortConfigSchema: z.ZodObject<{
|
|
276
|
+
session: z.ZodOptional<z.ZodEnum<{
|
|
277
|
+
low: "low";
|
|
278
|
+
medium: "medium";
|
|
279
|
+
high: "high";
|
|
280
|
+
xhigh: "xhigh";
|
|
281
|
+
max: "max";
|
|
282
|
+
ultra: "ultra";
|
|
283
|
+
}>>;
|
|
284
|
+
orchestrator: z.ZodOptional<z.ZodEnum<{
|
|
285
|
+
low: "low";
|
|
286
|
+
medium: "medium";
|
|
287
|
+
high: "high";
|
|
288
|
+
xhigh: "xhigh";
|
|
289
|
+
max: "max";
|
|
290
|
+
ultra: "ultra";
|
|
291
|
+
}>>;
|
|
292
|
+
complex_worker: z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
low: "low";
|
|
294
|
+
medium: "medium";
|
|
295
|
+
high: "high";
|
|
296
|
+
xhigh: "xhigh";
|
|
297
|
+
max: "max";
|
|
298
|
+
ultra: "ultra";
|
|
299
|
+
}>>;
|
|
300
|
+
fast_worker: z.ZodOptional<z.ZodEnum<{
|
|
301
|
+
low: "low";
|
|
302
|
+
medium: "medium";
|
|
303
|
+
high: "high";
|
|
304
|
+
xhigh: "xhigh";
|
|
305
|
+
max: "max";
|
|
306
|
+
ultra: "ultra";
|
|
307
|
+
}>>;
|
|
308
|
+
explorer: z.ZodOptional<z.ZodEnum<{
|
|
309
|
+
low: "low";
|
|
310
|
+
medium: "medium";
|
|
311
|
+
high: "high";
|
|
312
|
+
xhigh: "xhigh";
|
|
313
|
+
max: "max";
|
|
314
|
+
ultra: "ultra";
|
|
315
|
+
}>>;
|
|
316
|
+
implementer: z.ZodOptional<z.ZodEnum<{
|
|
317
|
+
low: "low";
|
|
318
|
+
medium: "medium";
|
|
319
|
+
high: "high";
|
|
320
|
+
xhigh: "xhigh";
|
|
321
|
+
max: "max";
|
|
322
|
+
ultra: "ultra";
|
|
323
|
+
}>>;
|
|
324
|
+
debugger: z.ZodOptional<z.ZodEnum<{
|
|
325
|
+
low: "low";
|
|
326
|
+
medium: "medium";
|
|
327
|
+
high: "high";
|
|
328
|
+
xhigh: "xhigh";
|
|
329
|
+
max: "max";
|
|
330
|
+
ultra: "ultra";
|
|
331
|
+
}>>;
|
|
332
|
+
reviewer: z.ZodOptional<z.ZodEnum<{
|
|
333
|
+
low: "low";
|
|
334
|
+
medium: "medium";
|
|
335
|
+
high: "high";
|
|
336
|
+
xhigh: "xhigh";
|
|
337
|
+
max: "max";
|
|
338
|
+
ultra: "ultra";
|
|
339
|
+
}>>;
|
|
340
|
+
}, z.core.$strict>;
|
|
341
|
+
export type EffortConfig = z.infer<typeof effortConfigSchema>;
|
|
342
|
+
export type EffortSlot = keyof EffortConfig;
|
|
343
|
+
export declare const EFFORT_SLOTS: EffortSlot[];
|
|
344
|
+
/**
|
|
345
|
+
* Everything the model sees for one step. It is built by the ContextBuilder from the event log
|
|
346
|
+
* and blobs, recorded (as a blob) before it is sent, and bound by `envelopeDigest`.
|
|
347
|
+
*/
|
|
348
|
+
export declare const modelRequestSchema: z.ZodObject<{
|
|
349
|
+
request_id: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
350
|
+
route: z.ZodObject<{
|
|
351
|
+
provider_id: z.core.$ZodBranded<z.ZodString, "ProviderId", "out">;
|
|
352
|
+
model_id: z.core.$ZodBranded<z.ZodString, "ModelId", "out">;
|
|
353
|
+
adapter_id: z.ZodString;
|
|
354
|
+
adapter_kind: z.ZodEnum<{
|
|
355
|
+
model: "model";
|
|
356
|
+
"agent-backend": "agent-backend";
|
|
357
|
+
}>;
|
|
358
|
+
auth_method: z.ZodEnum<{
|
|
359
|
+
"oauth-subscription": "oauth-subscription";
|
|
360
|
+
"cli-bridge": "cli-bridge";
|
|
361
|
+
"api-key": "api-key";
|
|
362
|
+
}>;
|
|
363
|
+
profile: z.ZodString;
|
|
364
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
365
|
+
orchestrator: "orchestrator";
|
|
366
|
+
complex_worker: "complex_worker";
|
|
367
|
+
fast_worker: "fast_worker";
|
|
368
|
+
session: "session";
|
|
369
|
+
}>>;
|
|
370
|
+
}, z.core.$strict>;
|
|
371
|
+
system: z.ZodArray<z.ZodObject<{
|
|
372
|
+
id: z.ZodString;
|
|
373
|
+
source: z.ZodEnum<{
|
|
374
|
+
skill: "skill";
|
|
375
|
+
role: "role";
|
|
376
|
+
constitution: "constitution";
|
|
377
|
+
protocol: "protocol";
|
|
378
|
+
harness: "harness";
|
|
379
|
+
memory: "memory";
|
|
380
|
+
"skill-catalog": "skill-catalog";
|
|
381
|
+
packet: "packet";
|
|
382
|
+
compaction: "compaction";
|
|
383
|
+
}>;
|
|
384
|
+
trust: z.ZodEnum<{
|
|
385
|
+
project: "project";
|
|
386
|
+
harness: "harness";
|
|
387
|
+
untrusted: "untrusted";
|
|
388
|
+
}>;
|
|
389
|
+
text: z.ZodString;
|
|
390
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
391
|
+
}, z.core.$strict>>;
|
|
392
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
393
|
+
role: z.ZodEnum<{
|
|
394
|
+
user: "user";
|
|
395
|
+
assistant: "assistant";
|
|
396
|
+
tool: "tool";
|
|
397
|
+
}>;
|
|
398
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
399
|
+
type: z.ZodLiteral<"text">;
|
|
400
|
+
text: z.ZodString;
|
|
401
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
402
|
+
type: z.ZodLiteral<"thinking">;
|
|
403
|
+
text: z.ZodString;
|
|
404
|
+
opaque: z.ZodOptional<z.ZodString>;
|
|
405
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
406
|
+
type: z.ZodLiteral<"tool_call">;
|
|
407
|
+
provider_call_id: z.ZodString;
|
|
408
|
+
tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
|
|
409
|
+
name: z.ZodString;
|
|
410
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
411
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
412
|
+
type: z.ZodLiteral<"tool_result">;
|
|
413
|
+
tool_call_id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
414
|
+
provider_call_id: z.ZodString;
|
|
415
|
+
is_error: z.ZodBoolean;
|
|
416
|
+
text: z.ZodString;
|
|
417
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
419
|
+
size_bytes: z.ZodInt;
|
|
420
|
+
media_type: z.ZodString;
|
|
421
|
+
}, z.core.$strict>>;
|
|
422
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
423
|
+
type: z.ZodLiteral<"blob">;
|
|
424
|
+
blob: z.ZodObject<{
|
|
425
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
426
|
+
size_bytes: z.ZodInt;
|
|
427
|
+
media_type: z.ZodString;
|
|
428
|
+
}, z.core.$strict>;
|
|
429
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
430
|
+
type: z.ZodLiteral<"image">;
|
|
431
|
+
blob: z.ZodObject<{
|
|
432
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
433
|
+
media_type: z.ZodEnum<{
|
|
434
|
+
"image/png": "image/png";
|
|
435
|
+
"image/jpeg": "image/jpeg";
|
|
436
|
+
"image/gif": "image/gif";
|
|
437
|
+
"image/webp": "image/webp";
|
|
438
|
+
}>;
|
|
439
|
+
size_bytes: z.ZodInt;
|
|
440
|
+
}, z.core.$strict>;
|
|
441
|
+
data: z.ZodOptional<z.ZodString>;
|
|
442
|
+
}, z.core.$strict>], "type">>;
|
|
443
|
+
}, z.core.$strict>>;
|
|
444
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
445
|
+
name: z.ZodString;
|
|
446
|
+
description: z.ZodString;
|
|
447
|
+
input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
448
|
+
}, z.core.$strict>>;
|
|
449
|
+
max_output_tokens: z.ZodOptional<z.ZodInt>;
|
|
450
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<{
|
|
451
|
+
low: "low";
|
|
452
|
+
medium: "medium";
|
|
453
|
+
high: "high";
|
|
454
|
+
xhigh: "xhigh";
|
|
455
|
+
max: "max";
|
|
456
|
+
ultra: "ultra";
|
|
457
|
+
}>>;
|
|
458
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
459
|
+
key: z.ZodString;
|
|
460
|
+
stable_system_blocks: z.ZodInt;
|
|
461
|
+
}, z.core.$strict>>;
|
|
462
|
+
}, z.core.$strict>;
|
|
463
|
+
export type ModelRequest = z.infer<typeof modelRequestSchema>;
|
|
464
|
+
export declare const USAGE_SOURCES: readonly ["provider-reported", "adapter-estimated", "unknown"];
|
|
465
|
+
export declare const usageSchema: z.ZodObject<{
|
|
466
|
+
input_tokens: z.ZodOptional<z.ZodInt>;
|
|
467
|
+
output_tokens: z.ZodOptional<z.ZodInt>;
|
|
468
|
+
cache_read_tokens: z.ZodOptional<z.ZodInt>;
|
|
469
|
+
cache_write_tokens: z.ZodOptional<z.ZodInt>;
|
|
470
|
+
reasoning_tokens: z.ZodOptional<z.ZodInt>;
|
|
471
|
+
cost_usd_estimate: z.ZodOptional<z.ZodNumber>;
|
|
472
|
+
source: z.ZodEnum<{
|
|
473
|
+
unknown: "unknown";
|
|
474
|
+
"provider-reported": "provider-reported";
|
|
475
|
+
"adapter-estimated": "adapter-estimated";
|
|
476
|
+
}>;
|
|
477
|
+
}, z.core.$strict>;
|
|
478
|
+
export type Usage = z.infer<typeof usageSchema>;
|
|
479
|
+
/** Subscription quota as the provider exposes it. Never mixed with tokens or USD. */
|
|
480
|
+
export declare const quotaSnapshotSchema: z.ZodObject<{
|
|
481
|
+
source: z.ZodEnum<{
|
|
482
|
+
none: "none";
|
|
483
|
+
headers: "headers";
|
|
484
|
+
api: "api";
|
|
485
|
+
}>;
|
|
486
|
+
plan_label: z.ZodOptional<z.ZodString>;
|
|
487
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
488
|
+
name: z.ZodString;
|
|
489
|
+
used_percent: z.ZodNumber;
|
|
490
|
+
resets_at: z.ZodOptional<z.ZodISODateTime>;
|
|
491
|
+
}, z.core.$strict>>;
|
|
492
|
+
}, z.core.$strict>;
|
|
493
|
+
export type QuotaSnapshot = z.infer<typeof quotaSnapshotSchema>;
|
|
494
|
+
export declare const PROVIDER_ERROR_CODES: readonly ["unauthenticated", "auth_expired", "forbidden", "entitlement_missing", "model_unavailable", "rate_limited", "quota_exhausted", "context_overflow", "invalid_request", "timeout", "cancelled", "stream_interrupted", "provider_internal", "protocol_mismatch", "bridge_unavailable"];
|
|
495
|
+
export type ProviderErrorCode = (typeof PROVIDER_ERROR_CODES)[number];
|
|
496
|
+
/**
|
|
497
|
+
* Whether re-sending the *same model request* is safe. It says nothing about tools: a side-effecting
|
|
498
|
+
* tool call is never repeated because a model request was retried.
|
|
499
|
+
*/
|
|
500
|
+
export declare const PROVIDER_ERROR_RETRYABLE: {
|
|
501
|
+
readonly [C in ProviderErrorCode]: boolean;
|
|
502
|
+
};
|
|
503
|
+
export declare const providerErrorSchema: z.ZodObject<{
|
|
504
|
+
code: z.ZodEnum<{
|
|
505
|
+
cancelled: "cancelled";
|
|
506
|
+
auth_expired: "auth_expired";
|
|
507
|
+
forbidden: "forbidden";
|
|
508
|
+
unauthenticated: "unauthenticated";
|
|
509
|
+
entitlement_missing: "entitlement_missing";
|
|
510
|
+
model_unavailable: "model_unavailable";
|
|
511
|
+
rate_limited: "rate_limited";
|
|
512
|
+
quota_exhausted: "quota_exhausted";
|
|
513
|
+
context_overflow: "context_overflow";
|
|
514
|
+
invalid_request: "invalid_request";
|
|
515
|
+
timeout: "timeout";
|
|
516
|
+
stream_interrupted: "stream_interrupted";
|
|
517
|
+
provider_internal: "provider_internal";
|
|
518
|
+
protocol_mismatch: "protocol_mismatch";
|
|
519
|
+
bridge_unavailable: "bridge_unavailable";
|
|
520
|
+
}>;
|
|
521
|
+
message: z.ZodString;
|
|
522
|
+
retryable: z.ZodBoolean;
|
|
523
|
+
retry_after_ms: z.ZodOptional<z.ZodInt>;
|
|
524
|
+
http_status: z.ZodOptional<z.ZodInt>;
|
|
525
|
+
provider_code: z.ZodOptional<z.ZodString>;
|
|
526
|
+
}, z.core.$strict>;
|
|
527
|
+
export type ProviderError = z.infer<typeof providerErrorSchema>;
|
|
528
|
+
export declare class ProviderFailure extends Error {
|
|
529
|
+
readonly error: ProviderError;
|
|
530
|
+
constructor(error: ProviderError);
|
|
531
|
+
}
|
|
532
|
+
export declare const STOP_REASONS: readonly ["stop", "length", "tool_use"];
|
|
533
|
+
export declare const modelStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
534
|
+
type: z.ZodLiteral<"start">;
|
|
535
|
+
request_id: z.core.$ZodBranded<z.ZodString, "RequestId", "out">;
|
|
536
|
+
route: z.ZodObject<{
|
|
537
|
+
provider_id: z.core.$ZodBranded<z.ZodString, "ProviderId", "out">;
|
|
538
|
+
model_id: z.core.$ZodBranded<z.ZodString, "ModelId", "out">;
|
|
539
|
+
adapter_id: z.ZodString;
|
|
540
|
+
adapter_kind: z.ZodEnum<{
|
|
541
|
+
model: "model";
|
|
542
|
+
"agent-backend": "agent-backend";
|
|
543
|
+
}>;
|
|
544
|
+
auth_method: z.ZodEnum<{
|
|
545
|
+
"oauth-subscription": "oauth-subscription";
|
|
546
|
+
"cli-bridge": "cli-bridge";
|
|
547
|
+
"api-key": "api-key";
|
|
548
|
+
}>;
|
|
549
|
+
profile: z.ZodString;
|
|
550
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
551
|
+
orchestrator: "orchestrator";
|
|
552
|
+
complex_worker: "complex_worker";
|
|
553
|
+
fast_worker: "fast_worker";
|
|
554
|
+
session: "session";
|
|
555
|
+
}>>;
|
|
556
|
+
}, z.core.$strict>;
|
|
557
|
+
provider_request_id: z.ZodOptional<z.ZodString>;
|
|
558
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
559
|
+
type: z.ZodLiteral<"backend_init">;
|
|
560
|
+
backend_session_id: z.ZodString;
|
|
561
|
+
model_id: z.core.$ZodBranded<z.ZodString, "ModelId", "out">;
|
|
562
|
+
auth_source: z.ZodEnum<{
|
|
563
|
+
unknown: "unknown";
|
|
564
|
+
"api-key": "api-key";
|
|
565
|
+
subscription: "subscription";
|
|
566
|
+
}>;
|
|
567
|
+
tools: z.ZodArray<z.ZodString>;
|
|
568
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
569
|
+
type: z.ZodLiteral<"text_delta">;
|
|
570
|
+
index: z.ZodInt;
|
|
571
|
+
text: z.ZodString;
|
|
572
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
573
|
+
type: z.ZodLiteral<"thinking_delta">;
|
|
574
|
+
index: z.ZodInt;
|
|
575
|
+
text: z.ZodString;
|
|
576
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
577
|
+
type: z.ZodLiteral<"tool_call_start">;
|
|
578
|
+
index: z.ZodInt;
|
|
579
|
+
provider_call_id: z.ZodString;
|
|
580
|
+
name: z.ZodString;
|
|
581
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
582
|
+
type: z.ZodLiteral<"tool_call_delta">;
|
|
583
|
+
index: z.ZodInt;
|
|
584
|
+
provider_call_id: z.ZodString;
|
|
585
|
+
arguments_fragment: z.ZodString;
|
|
586
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
587
|
+
type: z.ZodLiteral<"tool_call_end">;
|
|
588
|
+
index: z.ZodInt;
|
|
589
|
+
provider_call_id: z.ZodString;
|
|
590
|
+
name: z.ZodString;
|
|
591
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
592
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
593
|
+
type: z.ZodLiteral<"usage">;
|
|
594
|
+
usage: z.ZodObject<{
|
|
595
|
+
input_tokens: z.ZodOptional<z.ZodInt>;
|
|
596
|
+
output_tokens: z.ZodOptional<z.ZodInt>;
|
|
597
|
+
cache_read_tokens: z.ZodOptional<z.ZodInt>;
|
|
598
|
+
cache_write_tokens: z.ZodOptional<z.ZodInt>;
|
|
599
|
+
reasoning_tokens: z.ZodOptional<z.ZodInt>;
|
|
600
|
+
cost_usd_estimate: z.ZodOptional<z.ZodNumber>;
|
|
601
|
+
source: z.ZodEnum<{
|
|
602
|
+
unknown: "unknown";
|
|
603
|
+
"provider-reported": "provider-reported";
|
|
604
|
+
"adapter-estimated": "adapter-estimated";
|
|
605
|
+
}>;
|
|
606
|
+
}, z.core.$strict>;
|
|
607
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
608
|
+
type: z.ZodLiteral<"quota">;
|
|
609
|
+
quota: z.ZodObject<{
|
|
610
|
+
source: z.ZodEnum<{
|
|
611
|
+
none: "none";
|
|
612
|
+
headers: "headers";
|
|
613
|
+
api: "api";
|
|
614
|
+
}>;
|
|
615
|
+
plan_label: z.ZodOptional<z.ZodString>;
|
|
616
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
617
|
+
name: z.ZodString;
|
|
618
|
+
used_percent: z.ZodNumber;
|
|
619
|
+
resets_at: z.ZodOptional<z.ZodISODateTime>;
|
|
620
|
+
}, z.core.$strict>>;
|
|
621
|
+
}, z.core.$strict>;
|
|
622
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
623
|
+
type: z.ZodLiteral<"done">;
|
|
624
|
+
stop_reason: z.ZodEnum<{
|
|
625
|
+
length: "length";
|
|
626
|
+
stop: "stop";
|
|
627
|
+
tool_use: "tool_use";
|
|
628
|
+
}>;
|
|
629
|
+
message: z.ZodObject<{
|
|
630
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
631
|
+
type: z.ZodLiteral<"text">;
|
|
632
|
+
text: z.ZodString;
|
|
633
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
634
|
+
type: z.ZodLiteral<"thinking">;
|
|
635
|
+
text: z.ZodString;
|
|
636
|
+
opaque: z.ZodOptional<z.ZodString>;
|
|
637
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
638
|
+
type: z.ZodLiteral<"tool_call">;
|
|
639
|
+
provider_call_id: z.ZodString;
|
|
640
|
+
tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
|
|
641
|
+
name: z.ZodString;
|
|
642
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
643
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
644
|
+
type: z.ZodLiteral<"tool_result">;
|
|
645
|
+
tool_call_id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
646
|
+
provider_call_id: z.ZodString;
|
|
647
|
+
is_error: z.ZodBoolean;
|
|
648
|
+
text: z.ZodString;
|
|
649
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
650
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
651
|
+
size_bytes: z.ZodInt;
|
|
652
|
+
media_type: z.ZodString;
|
|
653
|
+
}, z.core.$strict>>;
|
|
654
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
655
|
+
type: z.ZodLiteral<"blob">;
|
|
656
|
+
blob: z.ZodObject<{
|
|
657
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
658
|
+
size_bytes: z.ZodInt;
|
|
659
|
+
media_type: z.ZodString;
|
|
660
|
+
}, z.core.$strict>;
|
|
661
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
662
|
+
type: z.ZodLiteral<"image">;
|
|
663
|
+
blob: z.ZodObject<{
|
|
664
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
665
|
+
media_type: z.ZodEnum<{
|
|
666
|
+
"image/png": "image/png";
|
|
667
|
+
"image/jpeg": "image/jpeg";
|
|
668
|
+
"image/gif": "image/gif";
|
|
669
|
+
"image/webp": "image/webp";
|
|
670
|
+
}>;
|
|
671
|
+
size_bytes: z.ZodInt;
|
|
672
|
+
}, z.core.$strict>;
|
|
673
|
+
data: z.ZodOptional<z.ZodString>;
|
|
674
|
+
}, z.core.$strict>], "type">>;
|
|
675
|
+
role: z.ZodLiteral<"assistant">;
|
|
676
|
+
}, z.core.$strict>;
|
|
677
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
678
|
+
input_tokens: z.ZodOptional<z.ZodInt>;
|
|
679
|
+
output_tokens: z.ZodOptional<z.ZodInt>;
|
|
680
|
+
cache_read_tokens: z.ZodOptional<z.ZodInt>;
|
|
681
|
+
cache_write_tokens: z.ZodOptional<z.ZodInt>;
|
|
682
|
+
reasoning_tokens: z.ZodOptional<z.ZodInt>;
|
|
683
|
+
cost_usd_estimate: z.ZodOptional<z.ZodNumber>;
|
|
684
|
+
source: z.ZodEnum<{
|
|
685
|
+
unknown: "unknown";
|
|
686
|
+
"provider-reported": "provider-reported";
|
|
687
|
+
"adapter-estimated": "adapter-estimated";
|
|
688
|
+
}>;
|
|
689
|
+
}, z.core.$strict>>;
|
|
690
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
691
|
+
type: z.ZodLiteral<"error">;
|
|
692
|
+
error: z.ZodObject<{
|
|
693
|
+
code: z.ZodEnum<{
|
|
694
|
+
cancelled: "cancelled";
|
|
695
|
+
auth_expired: "auth_expired";
|
|
696
|
+
forbidden: "forbidden";
|
|
697
|
+
unauthenticated: "unauthenticated";
|
|
698
|
+
entitlement_missing: "entitlement_missing";
|
|
699
|
+
model_unavailable: "model_unavailable";
|
|
700
|
+
rate_limited: "rate_limited";
|
|
701
|
+
quota_exhausted: "quota_exhausted";
|
|
702
|
+
context_overflow: "context_overflow";
|
|
703
|
+
invalid_request: "invalid_request";
|
|
704
|
+
timeout: "timeout";
|
|
705
|
+
stream_interrupted: "stream_interrupted";
|
|
706
|
+
provider_internal: "provider_internal";
|
|
707
|
+
protocol_mismatch: "protocol_mismatch";
|
|
708
|
+
bridge_unavailable: "bridge_unavailable";
|
|
709
|
+
}>;
|
|
710
|
+
message: z.ZodString;
|
|
711
|
+
retryable: z.ZodBoolean;
|
|
712
|
+
retry_after_ms: z.ZodOptional<z.ZodInt>;
|
|
713
|
+
http_status: z.ZodOptional<z.ZodInt>;
|
|
714
|
+
provider_code: z.ZodOptional<z.ZodString>;
|
|
715
|
+
}, z.core.$strict>;
|
|
716
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
717
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
718
|
+
type: z.ZodLiteral<"text">;
|
|
719
|
+
text: z.ZodString;
|
|
720
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
721
|
+
type: z.ZodLiteral<"thinking">;
|
|
722
|
+
text: z.ZodString;
|
|
723
|
+
opaque: z.ZodOptional<z.ZodString>;
|
|
724
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
725
|
+
type: z.ZodLiteral<"tool_call">;
|
|
726
|
+
provider_call_id: z.ZodString;
|
|
727
|
+
tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
|
|
728
|
+
name: z.ZodString;
|
|
729
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
730
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
731
|
+
type: z.ZodLiteral<"tool_result">;
|
|
732
|
+
tool_call_id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
733
|
+
provider_call_id: z.ZodString;
|
|
734
|
+
is_error: z.ZodBoolean;
|
|
735
|
+
text: z.ZodString;
|
|
736
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
737
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
738
|
+
size_bytes: z.ZodInt;
|
|
739
|
+
media_type: z.ZodString;
|
|
740
|
+
}, z.core.$strict>>;
|
|
741
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
742
|
+
type: z.ZodLiteral<"blob">;
|
|
743
|
+
blob: z.ZodObject<{
|
|
744
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
745
|
+
size_bytes: z.ZodInt;
|
|
746
|
+
media_type: z.ZodString;
|
|
747
|
+
}, z.core.$strict>;
|
|
748
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
749
|
+
type: z.ZodLiteral<"image">;
|
|
750
|
+
blob: z.ZodObject<{
|
|
751
|
+
digest: z.core.$ZodBranded<z.ZodString, "Digest", "out">;
|
|
752
|
+
media_type: z.ZodEnum<{
|
|
753
|
+
"image/png": "image/png";
|
|
754
|
+
"image/jpeg": "image/jpeg";
|
|
755
|
+
"image/gif": "image/gif";
|
|
756
|
+
"image/webp": "image/webp";
|
|
757
|
+
}>;
|
|
758
|
+
size_bytes: z.ZodInt;
|
|
759
|
+
}, z.core.$strict>;
|
|
760
|
+
data: z.ZodOptional<z.ZodString>;
|
|
761
|
+
}, z.core.$strict>], "type">>;
|
|
762
|
+
role: z.ZodLiteral<"assistant">;
|
|
763
|
+
}, z.core.$strict>>;
|
|
764
|
+
}, z.core.$strict>], "type">;
|
|
765
|
+
export type ModelStreamEvent = z.infer<typeof modelStreamEventSchema>;
|
|
766
|
+
export declare const capabilityLevelSchema: z.ZodEnum<{
|
|
767
|
+
unknown: "unknown";
|
|
768
|
+
supported: "supported";
|
|
769
|
+
degraded: "degraded";
|
|
770
|
+
unsupported: "unsupported";
|
|
771
|
+
}>;
|
|
772
|
+
export type CapabilityLevel = z.infer<typeof capabilityLevelSchema>;
|
|
773
|
+
export declare const modelCapabilitySchema: z.ZodObject<{
|
|
774
|
+
id: z.core.$ZodBranded<z.ZodString, "ModelId", "out">;
|
|
775
|
+
context_window: z.ZodNullable<z.ZodInt>;
|
|
776
|
+
max_output_tokens: z.ZodNullable<z.ZodInt>;
|
|
777
|
+
tool_calls: z.ZodEnum<{
|
|
778
|
+
unknown: "unknown";
|
|
779
|
+
supported: "supported";
|
|
780
|
+
degraded: "degraded";
|
|
781
|
+
unsupported: "unsupported";
|
|
782
|
+
}>;
|
|
783
|
+
streaming: z.ZodEnum<{
|
|
784
|
+
unknown: "unknown";
|
|
785
|
+
supported: "supported";
|
|
786
|
+
degraded: "degraded";
|
|
787
|
+
unsupported: "unsupported";
|
|
788
|
+
}>;
|
|
789
|
+
cancellation: z.ZodEnum<{
|
|
790
|
+
unknown: "unknown";
|
|
791
|
+
supported: "supported";
|
|
792
|
+
degraded: "degraded";
|
|
793
|
+
unsupported: "unsupported";
|
|
794
|
+
}>;
|
|
795
|
+
image_input: z.ZodEnum<{
|
|
796
|
+
unknown: "unknown";
|
|
797
|
+
supported: "supported";
|
|
798
|
+
degraded: "degraded";
|
|
799
|
+
unsupported: "unsupported";
|
|
800
|
+
}>;
|
|
801
|
+
structured_output: z.ZodEnum<{
|
|
802
|
+
unknown: "unknown";
|
|
803
|
+
supported: "supported";
|
|
804
|
+
degraded: "degraded";
|
|
805
|
+
unsupported: "unsupported";
|
|
806
|
+
}>;
|
|
807
|
+
reasoning: z.ZodEnum<{
|
|
808
|
+
unknown: "unknown";
|
|
809
|
+
supported: "supported";
|
|
810
|
+
degraded: "degraded";
|
|
811
|
+
unsupported: "unsupported";
|
|
812
|
+
}>;
|
|
813
|
+
prompt_cache: z.ZodEnum<{
|
|
814
|
+
unknown: "unknown";
|
|
815
|
+
supported: "supported";
|
|
816
|
+
degraded: "degraded";
|
|
817
|
+
unsupported: "unsupported";
|
|
818
|
+
}>;
|
|
819
|
+
system_message_updates: z.ZodEnum<{
|
|
820
|
+
unknown: "unknown";
|
|
821
|
+
supported: "supported";
|
|
822
|
+
degraded: "degraded";
|
|
823
|
+
unsupported: "unsupported";
|
|
824
|
+
}>;
|
|
825
|
+
usage_reporting: z.ZodEnum<{
|
|
826
|
+
unknown: "unknown";
|
|
827
|
+
exact: "exact";
|
|
828
|
+
none: "none";
|
|
829
|
+
estimated: "estimated";
|
|
830
|
+
}>;
|
|
831
|
+
}, z.core.$strict>;
|
|
832
|
+
export type ModelCapability = z.infer<typeof modelCapabilitySchema>;
|
|
833
|
+
export declare const providerCapabilitiesSchema: z.ZodObject<{
|
|
834
|
+
schema_version: z.ZodLiteral<1>;
|
|
835
|
+
provider_id: z.core.$ZodBranded<z.ZodString, "ProviderId", "out">;
|
|
836
|
+
adapter_id: z.ZodString;
|
|
837
|
+
adapter_kind: z.ZodEnum<{
|
|
838
|
+
model: "model";
|
|
839
|
+
"agent-backend": "agent-backend";
|
|
840
|
+
}>;
|
|
841
|
+
auth_method: z.ZodEnum<{
|
|
842
|
+
"oauth-subscription": "oauth-subscription";
|
|
843
|
+
"cli-bridge": "cli-bridge";
|
|
844
|
+
"api-key": "api-key";
|
|
845
|
+
}>;
|
|
846
|
+
auth_status: z.ZodEnum<{
|
|
847
|
+
error: "error";
|
|
848
|
+
unknown: "unknown";
|
|
849
|
+
expired: "expired";
|
|
850
|
+
connected: "connected";
|
|
851
|
+
login_required: "login_required";
|
|
852
|
+
disconnected: "disconnected";
|
|
853
|
+
}>;
|
|
854
|
+
billing: z.ZodEnum<{
|
|
855
|
+
unknown: "unknown";
|
|
856
|
+
subscription: "subscription";
|
|
857
|
+
metered: "metered";
|
|
858
|
+
}>;
|
|
859
|
+
quota_visibility: z.ZodEnum<{
|
|
860
|
+
none: "none";
|
|
861
|
+
headers: "headers";
|
|
862
|
+
api: "api";
|
|
863
|
+
}>;
|
|
864
|
+
loop_owner: z.ZodEnum<{
|
|
865
|
+
synorch: "synorch";
|
|
866
|
+
backend: "backend";
|
|
867
|
+
}>;
|
|
868
|
+
tool_channel: z.ZodEnum<{
|
|
869
|
+
none: "none";
|
|
870
|
+
native: "native";
|
|
871
|
+
mcp: "mcp";
|
|
872
|
+
"dynamic-tools": "dynamic-tools";
|
|
873
|
+
}>;
|
|
874
|
+
policy_status: z.ZodEnum<{
|
|
875
|
+
permitted: "permitted";
|
|
876
|
+
unclear: "unclear";
|
|
877
|
+
}>;
|
|
878
|
+
models: z.ZodArray<z.ZodObject<{
|
|
879
|
+
id: z.core.$ZodBranded<z.ZodString, "ModelId", "out">;
|
|
880
|
+
context_window: z.ZodNullable<z.ZodInt>;
|
|
881
|
+
max_output_tokens: z.ZodNullable<z.ZodInt>;
|
|
882
|
+
tool_calls: z.ZodEnum<{
|
|
883
|
+
unknown: "unknown";
|
|
884
|
+
supported: "supported";
|
|
885
|
+
degraded: "degraded";
|
|
886
|
+
unsupported: "unsupported";
|
|
887
|
+
}>;
|
|
888
|
+
streaming: z.ZodEnum<{
|
|
889
|
+
unknown: "unknown";
|
|
890
|
+
supported: "supported";
|
|
891
|
+
degraded: "degraded";
|
|
892
|
+
unsupported: "unsupported";
|
|
893
|
+
}>;
|
|
894
|
+
cancellation: z.ZodEnum<{
|
|
895
|
+
unknown: "unknown";
|
|
896
|
+
supported: "supported";
|
|
897
|
+
degraded: "degraded";
|
|
898
|
+
unsupported: "unsupported";
|
|
899
|
+
}>;
|
|
900
|
+
image_input: z.ZodEnum<{
|
|
901
|
+
unknown: "unknown";
|
|
902
|
+
supported: "supported";
|
|
903
|
+
degraded: "degraded";
|
|
904
|
+
unsupported: "unsupported";
|
|
905
|
+
}>;
|
|
906
|
+
structured_output: z.ZodEnum<{
|
|
907
|
+
unknown: "unknown";
|
|
908
|
+
supported: "supported";
|
|
909
|
+
degraded: "degraded";
|
|
910
|
+
unsupported: "unsupported";
|
|
911
|
+
}>;
|
|
912
|
+
reasoning: z.ZodEnum<{
|
|
913
|
+
unknown: "unknown";
|
|
914
|
+
supported: "supported";
|
|
915
|
+
degraded: "degraded";
|
|
916
|
+
unsupported: "unsupported";
|
|
917
|
+
}>;
|
|
918
|
+
prompt_cache: z.ZodEnum<{
|
|
919
|
+
unknown: "unknown";
|
|
920
|
+
supported: "supported";
|
|
921
|
+
degraded: "degraded";
|
|
922
|
+
unsupported: "unsupported";
|
|
923
|
+
}>;
|
|
924
|
+
system_message_updates: z.ZodEnum<{
|
|
925
|
+
unknown: "unknown";
|
|
926
|
+
supported: "supported";
|
|
927
|
+
degraded: "degraded";
|
|
928
|
+
unsupported: "unsupported";
|
|
929
|
+
}>;
|
|
930
|
+
usage_reporting: z.ZodEnum<{
|
|
931
|
+
unknown: "unknown";
|
|
932
|
+
exact: "exact";
|
|
933
|
+
none: "none";
|
|
934
|
+
estimated: "estimated";
|
|
935
|
+
}>;
|
|
936
|
+
}, z.core.$strict>>;
|
|
937
|
+
probed_at: z.ZodISODateTime;
|
|
938
|
+
source: z.ZodEnum<{
|
|
939
|
+
"static-config": "static-config";
|
|
940
|
+
"provider-api": "provider-api";
|
|
941
|
+
probe: "probe";
|
|
942
|
+
"backend-init": "backend-init";
|
|
943
|
+
}>;
|
|
944
|
+
}, z.core.$strict>;
|
|
945
|
+
export type ProviderCapabilities = z.infer<typeof providerCapabilitiesSchema>;
|
|
946
|
+
export declare const providerHealthSchema: z.ZodObject<{
|
|
947
|
+
state: z.ZodEnum<{
|
|
948
|
+
unknown: "unknown";
|
|
949
|
+
degraded: "degraded";
|
|
950
|
+
ok: "ok";
|
|
951
|
+
down: "down";
|
|
952
|
+
}>;
|
|
953
|
+
checked_at: z.ZodISODateTime;
|
|
954
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
955
|
+
}, z.core.$strict>;
|
|
956
|
+
export type ProviderHealth = z.infer<typeof providerHealthSchema>;
|
|
957
|
+
export declare const ROUTE_SOURCES: readonly ["session", "project", "workspace", "user", "provider-default"];
|
|
958
|
+
/** Why a tier resolved to a route. A fallback is never silent: it names the approval that allowed it. */
|
|
959
|
+
export declare const routeDecisionSchema: z.ZodObject<{
|
|
960
|
+
tier: z.ZodEnum<{
|
|
961
|
+
orchestrator: "orchestrator";
|
|
962
|
+
complex_worker: "complex_worker";
|
|
963
|
+
fast_worker: "fast_worker";
|
|
964
|
+
session: "session";
|
|
965
|
+
}>;
|
|
966
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
967
|
+
orchestrator: "orchestrator";
|
|
968
|
+
explorer: "explorer";
|
|
969
|
+
implementer: "implementer";
|
|
970
|
+
debugger: "debugger";
|
|
971
|
+
reviewer: "reviewer";
|
|
972
|
+
session: "session";
|
|
973
|
+
}>>;
|
|
974
|
+
route: z.ZodObject<{
|
|
975
|
+
provider_id: z.core.$ZodBranded<z.ZodString, "ProviderId", "out">;
|
|
976
|
+
model_id: z.core.$ZodBranded<z.ZodString, "ModelId", "out">;
|
|
977
|
+
adapter_id: z.ZodString;
|
|
978
|
+
adapter_kind: z.ZodEnum<{
|
|
979
|
+
model: "model";
|
|
980
|
+
"agent-backend": "agent-backend";
|
|
981
|
+
}>;
|
|
982
|
+
auth_method: z.ZodEnum<{
|
|
983
|
+
"oauth-subscription": "oauth-subscription";
|
|
984
|
+
"cli-bridge": "cli-bridge";
|
|
985
|
+
"api-key": "api-key";
|
|
986
|
+
}>;
|
|
987
|
+
profile: z.ZodString;
|
|
988
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
989
|
+
orchestrator: "orchestrator";
|
|
990
|
+
complex_worker: "complex_worker";
|
|
991
|
+
fast_worker: "fast_worker";
|
|
992
|
+
session: "session";
|
|
993
|
+
}>>;
|
|
994
|
+
}, z.core.$strict>;
|
|
995
|
+
source: z.ZodEnum<{
|
|
996
|
+
workspace: "workspace";
|
|
997
|
+
project: "project";
|
|
998
|
+
session: "session";
|
|
999
|
+
user: "user";
|
|
1000
|
+
"provider-default": "provider-default";
|
|
1001
|
+
}>;
|
|
1002
|
+
reason: z.ZodString;
|
|
1003
|
+
capabilities_probed_at: z.ZodOptional<z.ZodISODateTime>;
|
|
1004
|
+
fallback: z.ZodObject<{
|
|
1005
|
+
used: z.ZodBoolean;
|
|
1006
|
+
from: z.ZodOptional<z.ZodObject<{
|
|
1007
|
+
provider_id: z.core.$ZodBranded<z.ZodString, "ProviderId", "out">;
|
|
1008
|
+
model_id: z.core.$ZodBranded<z.ZodString, "ModelId", "out">;
|
|
1009
|
+
adapter_id: z.ZodString;
|
|
1010
|
+
adapter_kind: z.ZodEnum<{
|
|
1011
|
+
model: "model";
|
|
1012
|
+
"agent-backend": "agent-backend";
|
|
1013
|
+
}>;
|
|
1014
|
+
auth_method: z.ZodEnum<{
|
|
1015
|
+
"oauth-subscription": "oauth-subscription";
|
|
1016
|
+
"cli-bridge": "cli-bridge";
|
|
1017
|
+
"api-key": "api-key";
|
|
1018
|
+
}>;
|
|
1019
|
+
profile: z.ZodString;
|
|
1020
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
1021
|
+
orchestrator: "orchestrator";
|
|
1022
|
+
complex_worker: "complex_worker";
|
|
1023
|
+
fast_worker: "fast_worker";
|
|
1024
|
+
session: "session";
|
|
1025
|
+
}>>;
|
|
1026
|
+
}, z.core.$strict>>;
|
|
1027
|
+
approval_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">>;
|
|
1028
|
+
}, z.core.$strict>;
|
|
1029
|
+
}, z.core.$strict>;
|
|
1030
|
+
export type RouteDecision = z.infer<typeof routeDecisionSchema>;
|
|
1031
|
+
export type PrepareResult = {
|
|
1032
|
+
readonly ok: true;
|
|
1033
|
+
readonly wireDigest: Digest;
|
|
1034
|
+
readonly warnings: readonly string[];
|
|
1035
|
+
} | {
|
|
1036
|
+
readonly ok: false;
|
|
1037
|
+
readonly error: ProviderError;
|
|
1038
|
+
};
|
|
1039
|
+
export interface ModelAdapter {
|
|
1040
|
+
readonly kind: "model";
|
|
1041
|
+
readonly adapterId: string;
|
|
1042
|
+
readonly providerId: ProviderId;
|
|
1043
|
+
readonly authMethod: Exclude<AuthMethodKind, "cli-bridge">;
|
|
1044
|
+
discoverCapabilities(signal: AbortSignal): Promise<ProviderCapabilities>;
|
|
1045
|
+
/** Pure: maps the request to the provider wire body and reports unsupported features up front. */
|
|
1046
|
+
prepare(request: ModelRequest, capabilities: ProviderCapabilities): PrepareResult;
|
|
1047
|
+
/** Never throws after it is called: every failure, including abort, ends in an `error` event. */
|
|
1048
|
+
stream(request: ModelRequest, credential: ResolvedCredential, signal: AbortSignal): AsyncIterable<ModelStreamEvent>;
|
|
1049
|
+
health(signal: AbortSignal): Promise<ProviderHealth>;
|
|
1050
|
+
}
|
|
1051
|
+
export interface BackendProbe {
|
|
1052
|
+
readonly installed: boolean;
|
|
1053
|
+
readonly executable: string | undefined;
|
|
1054
|
+
readonly version: string | undefined;
|
|
1055
|
+
readonly minimumVersion: string;
|
|
1056
|
+
readonly authSource: "subscription" | "api-key" | "unknown";
|
|
1057
|
+
readonly loginHint: string | undefined;
|
|
1058
|
+
}
|
|
1059
|
+
export interface BackendSessionOptions {
|
|
1060
|
+
readonly cwd: string;
|
|
1061
|
+
readonly modelId: string;
|
|
1062
|
+
readonly systemPrompt: string;
|
|
1063
|
+
readonly maxTurns: number;
|
|
1064
|
+
readonly resumeBackendSessionId: string | undefined;
|
|
1065
|
+
/** K6: the step's reasoning effort (Claude Code `--effort`); undefined keeps the backend default. */
|
|
1066
|
+
readonly reasoningEffort?: ReasoningEffort;
|
|
1067
|
+
/** Environment passed to the child; `BRIDGE_STRIPPED_ENV` names are always removed. */
|
|
1068
|
+
readonly env: Readonly<Record<string, string>>;
|
|
1069
|
+
}
|
|
1070
|
+
export interface ToolBridgeCall {
|
|
1071
|
+
readonly providerCallId: string;
|
|
1072
|
+
readonly name: string;
|
|
1073
|
+
readonly arguments: Readonly<Record<string, unknown>>;
|
|
1074
|
+
}
|
|
1075
|
+
export interface ToolBridgeResult {
|
|
1076
|
+
readonly isError: boolean;
|
|
1077
|
+
readonly text: string;
|
|
1078
|
+
}
|
|
1079
|
+
/** Synorch's tools as the backend sees them. Every `call` goes through the ToolGateway. */
|
|
1080
|
+
export interface ToolBridge {
|
|
1081
|
+
readonly serverName: "synorch";
|
|
1082
|
+
list(): readonly ToolDescriptor[];
|
|
1083
|
+
call(call: ToolBridgeCall, signal: AbortSignal): Promise<ToolBridgeResult>;
|
|
1084
|
+
}
|
|
1085
|
+
/** A backend permission answer; `updatedInput` (allow only) replaces the tool input the backend runs. */
|
|
1086
|
+
export interface BackendApprovalDecision {
|
|
1087
|
+
readonly allow: boolean;
|
|
1088
|
+
readonly reason: string;
|
|
1089
|
+
readonly updatedInput?: Readonly<Record<string, unknown>>;
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Backend permission callbacks. Synorch bridge tools are decided here; a backend built-in (Claude
|
|
1093
|
+
* Code native mode) is routed to the session's approval broker when the driver has a handler for
|
|
1094
|
+
* it, and denied otherwise.
|
|
1095
|
+
*/
|
|
1096
|
+
export interface ApprovalBridge {
|
|
1097
|
+
decide(toolName: string, input: Readonly<Record<string, unknown>>, signal: AbortSignal): Promise<BackendApprovalDecision>;
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* A backend's own (built-in) tool use, observed for audit and display only (Claude Code native
|
|
1101
|
+
* mode). It is never a Synorch tool call and never enters the model conversation history.
|
|
1102
|
+
*/
|
|
1103
|
+
export interface BackendToolObservation {
|
|
1104
|
+
readonly phase: "started" | "finished";
|
|
1105
|
+
readonly toolUseId: string;
|
|
1106
|
+
/** The backend's tool name, e.g. `Bash`, `Edit`, `WebFetch`. */
|
|
1107
|
+
readonly toolName: string;
|
|
1108
|
+
readonly inputSummary: string;
|
|
1109
|
+
readonly isError?: boolean;
|
|
1110
|
+
readonly resultSummary?: string;
|
|
1111
|
+
readonly linesAdded?: number;
|
|
1112
|
+
readonly linesRemoved?: number;
|
|
1113
|
+
}
|
|
1114
|
+
export interface BackendBridges {
|
|
1115
|
+
readonly tools: ToolBridge;
|
|
1116
|
+
readonly approvals: ApprovalBridge;
|
|
1117
|
+
/** Receives built-in tool observations (native mode); absent means nobody records them. */
|
|
1118
|
+
readonly observe?: (observation: BackendToolObservation) => void;
|
|
1119
|
+
}
|
|
1120
|
+
export interface BackendTurnInput {
|
|
1121
|
+
readonly requestId: RequestId;
|
|
1122
|
+
readonly route: ModelRoute;
|
|
1123
|
+
readonly messages: readonly ModelMessage[];
|
|
1124
|
+
}
|
|
1125
|
+
export interface BackendSession {
|
|
1126
|
+
readonly backendSessionId: string;
|
|
1127
|
+
runTurn(input: BackendTurnInput, bridges: BackendBridges, signal: AbortSignal): AsyncIterable<ModelStreamEvent>;
|
|
1128
|
+
interrupt(): Promise<void>;
|
|
1129
|
+
close(): Promise<void>;
|
|
1130
|
+
}
|
|
1131
|
+
export interface AgentBackendAdapter {
|
|
1132
|
+
readonly kind: "agent-backend";
|
|
1133
|
+
readonly adapterId: string;
|
|
1134
|
+
readonly providerId: ProviderId;
|
|
1135
|
+
readonly authMethod: "cli-bridge";
|
|
1136
|
+
/**
|
|
1137
|
+
* The backend runs its own built-in tools (Claude Code native mode, owner revision 2026-09-24):
|
|
1138
|
+
* built-ins in `backend_init.tools` are expected, not a protocol mismatch.
|
|
1139
|
+
*/
|
|
1140
|
+
readonly nativeTools?: boolean;
|
|
1141
|
+
probe(signal: AbortSignal): Promise<BackendProbe>;
|
|
1142
|
+
discoverCapabilities(signal: AbortSignal): Promise<ProviderCapabilities>;
|
|
1143
|
+
startSession(options: BackendSessionOptions, signal: AbortSignal): Promise<BackendSession>;
|
|
1144
|
+
health(signal: AbortSignal): Promise<ProviderHealth>;
|
|
1145
|
+
}
|
|
1146
|
+
export type AnyModelAdapter = ModelAdapter | AgentBackendAdapter;
|
|
1147
|
+
export interface RouteRequest {
|
|
1148
|
+
readonly tier: z.infer<typeof modelTierSchema>;
|
|
1149
|
+
readonly role: z.infer<typeof agentRoleSchema> | undefined;
|
|
1150
|
+
/** Reviewer requests: the route the implementer actually ran on (K1.5 reviewer independence). */
|
|
1151
|
+
readonly implementer?: ModelRoute;
|
|
1152
|
+
}
|
|
1153
|
+
export type RouteSource = (typeof ROUTE_SOURCES)[number];
|
|
1154
|
+
/** Where a tier is served. Validated against the registered adapters by the router at construction. */
|
|
1155
|
+
export interface RouteBinding {
|
|
1156
|
+
readonly provider_id: string;
|
|
1157
|
+
readonly model_id: string;
|
|
1158
|
+
readonly adapter_id: string;
|
|
1159
|
+
readonly profile?: string;
|
|
1160
|
+
}
|
|
1161
|
+
/** One configured mapping. `role` narrows it to one role (e.g. an independent reviewer model). */
|
|
1162
|
+
export interface RouteRule {
|
|
1163
|
+
readonly source: RouteSource;
|
|
1164
|
+
readonly tier: ModelTier;
|
|
1165
|
+
readonly role?: AgentRole;
|
|
1166
|
+
readonly route: RouteBinding;
|
|
1167
|
+
}
|
|
1168
|
+
/** What the composition root builds from session/project/workspace/user configuration for the router. */
|
|
1169
|
+
export interface ModelRouterConfig {
|
|
1170
|
+
readonly rules: readonly RouteRule[];
|
|
1171
|
+
}
|
|
1172
|
+
/** A tier whose route is blocked (subscription quota exhausted). The router never reroutes on its own. */
|
|
1173
|
+
export declare class RouteBlockedFailure extends ProviderFailure {
|
|
1174
|
+
readonly blocked: ModelRoute;
|
|
1175
|
+
readonly tier: ModelTier;
|
|
1176
|
+
readonly role: AgentRole | undefined;
|
|
1177
|
+
readonly alternatives: readonly ModelRoute[];
|
|
1178
|
+
constructor(error: ProviderError, blocked: ModelRoute, request: RouteRequest, alternatives: readonly ModelRoute[]);
|
|
1179
|
+
}
|
|
1180
|
+
/** The human-only `provider-change` approval a blocked route needs before any fallback. */
|
|
1181
|
+
export interface ProviderChangeProposal {
|
|
1182
|
+
readonly request: ApprovalRequest;
|
|
1183
|
+
readonly from: ModelRoute;
|
|
1184
|
+
readonly to: ModelRoute;
|
|
1185
|
+
}
|
|
1186
|
+
export interface ModelRouter {
|
|
1187
|
+
/** Resolves a tier; a blocked route rejects with `RouteBlockedFailure` (`quota_exhausted`). */
|
|
1188
|
+
resolve(request: RouteRequest, signal: AbortSignal): Promise<RouteDecision>;
|
|
1189
|
+
adapterFor(route: ModelRoute): AnyModelAdapter;
|
|
1190
|
+
/** Records a provider failure for a route; `quota_exhausted` blocks the route until it resets. */
|
|
1191
|
+
reportFailure(route: ModelRoute, error: ProviderError): void;
|
|
1192
|
+
/** Builds the `provider-change` approval request for a blocked route; it never switches by itself. */
|
|
1193
|
+
proposeProviderChange(failure: RouteBlockedFailure, context: {
|
|
1194
|
+
readonly runId: RunId;
|
|
1195
|
+
readonly taskId?: TaskId;
|
|
1196
|
+
readonly to?: ModelRoute;
|
|
1197
|
+
}): ProviderChangeProposal;
|
|
1198
|
+
/** Applies a decision; only an allowing *user* decision for the exact proposal enables the fallback. */
|
|
1199
|
+
applyProviderChange(decision: ApprovalDecision): void;
|
|
1200
|
+
}
|
|
1201
|
+
//# sourceMappingURL=model.d.ts.map
|