@alm-allen/dsh-multi-provider 0.0.0-stage → 0.90.2
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 +70 -0
- package/LICENSE +21 -0
- package/README.md +229 -2
- package/cordis.patch.yml +6 -0
- package/icon.svg +28 -0
- package/lib/client.js +25708 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +93587 -0
- package/lib/types/client/CodexComposerQuota.d.ts +13 -0
- package/lib/types/client/CodexComposerQuota.d.ts.map +1 -0
- package/lib/types/client/CodexSubscriptionSection.d.ts +42 -0
- package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -0
- package/lib/types/client/ProviderHubSection.d.ts +21 -0
- package/lib/types/client/ProviderHubSection.d.ts.map +1 -0
- package/lib/types/client/api.d.ts +66 -0
- package/lib/types/client/api.d.ts.map +1 -0
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts +29 -0
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/claude/ClaudeSection.d.ts +12 -0
- package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -0
- package/lib/types/client/claude/locales.d.ts +489 -0
- package/lib/types/client/claude/locales.d.ts.map +1 -0
- package/lib/types/client/claude/styles.d.ts +15 -0
- package/lib/types/client/claude/styles.d.ts.map +1 -0
- package/lib/types/client/claude/useClaudeSection.d.ts +106 -0
- package/lib/types/client/claude/useClaudeSection.d.ts.map +1 -0
- package/lib/types/client/claude-api/ClaudeApiSection.d.ts +5 -0
- package/lib/types/client/claude-api/ClaudeApiSection.d.ts.map +1 -0
- package/lib/types/client/claude-api/api.d.ts +23 -0
- package/lib/types/client/claude-api/api.d.ts.map +1 -0
- package/lib/types/client/claude-api/locales.d.ts +161 -0
- package/lib/types/client/claude-api/locales.d.ts.map +1 -0
- package/lib/types/client/claude-api/styles.d.ts +4 -0
- package/lib/types/client/claude-api/styles.d.ts.map +1 -0
- package/lib/types/client/claude-api/useClaudeApiSection.d.ts +37 -0
- package/lib/types/client/claude-api/useClaudeApiSection.d.ts.map +1 -0
- package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts +23 -0
- package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts.map +1 -0
- package/lib/types/client/cline-pass/ClinePassSection.d.ts +17 -0
- package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +1 -0
- package/lib/types/client/cline-pass/api.d.ts +85 -0
- package/lib/types/client/cline-pass/api.d.ts.map +1 -0
- package/lib/types/client/cline-pass/locales.d.ts +911 -0
- package/lib/types/client/cline-pass/locales.d.ts.map +1 -0
- package/lib/types/client/cline-pass/styles.d.ts +7 -0
- package/lib/types/client/cline-pass/styles.d.ts.map +1 -0
- package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts +20 -0
- package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/command-code/CommandCodeSection.d.ts +8 -0
- package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -0
- package/lib/types/client/command-code/locales.d.ts +305 -0
- package/lib/types/client/command-code/locales.d.ts.map +1 -0
- package/lib/types/client/common/AccountPoolSection.d.ts +104 -0
- package/lib/types/client/common/AccountPoolSection.d.ts.map +1 -0
- package/lib/types/client/common/ComposerQuotaBadge.d.ts +63 -0
- package/lib/types/client/common/ComposerQuotaBadge.d.ts.map +1 -0
- package/lib/types/client/common/ContextWindowEditor.d.ts +71 -0
- package/lib/types/client/common/ContextWindowEditor.d.ts.map +1 -0
- package/lib/types/client/common/LineProxySection.d.ts +78 -0
- package/lib/types/client/common/LineProxySection.d.ts.map +1 -0
- package/lib/types/client/common/ModelChecklist.d.ts +29 -0
- package/lib/types/client/common/ModelChecklist.d.ts.map +1 -0
- package/lib/types/client/common/account-pool-labels.d.ts +74 -0
- package/lib/types/client/common/account-pool-labels.d.ts.map +1 -0
- package/lib/types/client/common/account-quota.d.ts +60 -0
- package/lib/types/client/common/account-quota.d.ts.map +1 -0
- package/lib/types/client/common/format.d.ts +70 -0
- package/lib/types/client/common/format.d.ts.map +1 -0
- package/lib/types/client/common/host-locale-mirror.d.ts +24 -0
- package/lib/types/client/common/host-locale-mirror.d.ts.map +1 -0
- package/lib/types/client/common/line-api.d.ts +8 -0
- package/lib/types/client/common/line-api.d.ts.map +1 -0
- package/lib/types/client/common/line-locale.d.ts +21 -0
- package/lib/types/client/common/line-locale.d.ts.map +1 -0
- package/lib/types/client/common/model-checklist-styles.d.ts +2 -0
- package/lib/types/client/common/model-checklist-styles.d.ts.map +1 -0
- package/lib/types/client/common/plugin-style.d.ts +23 -0
- package/lib/types/client/common/plugin-style.d.ts.map +1 -0
- package/lib/types/client/common/quota-follow-up.d.ts +30 -0
- package/lib/types/client/common/quota-follow-up.d.ts.map +1 -0
- package/lib/types/client/common/styles.d.ts +11 -0
- package/lib/types/client/common/styles.d.ts.map +1 -0
- package/lib/types/client/common/use-store.d.ts +3 -0
- package/lib/types/client/common/use-store.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts +27 -0
- package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts +22 -0
- package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/api.d.ts +4 -0
- package/lib/types/client/glm-coding-plan/api.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/locales.d.ts +409 -0
- package/lib/types/client/glm-coding-plan/locales.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/styles.d.ts +16 -0
- package/lib/types/client/glm-coding-plan/styles.d.ts.map +1 -0
- package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts +65 -0
- package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts.map +1 -0
- package/lib/types/client/hub/HubOverview.d.ts +16 -0
- package/lib/types/client/hub/HubOverview.d.ts.map +1 -0
- package/lib/types/client/hub/brand-icons.d.ts +64 -0
- package/lib/types/client/hub/brand-icons.d.ts.map +1 -0
- package/lib/types/client/hub/brand-svg.d.ts +51 -0
- package/lib/types/client/hub/brand-svg.d.ts.map +1 -0
- package/lib/types/client/hub/hub-styles.d.ts +2 -0
- package/lib/types/client/hub/hub-styles.d.ts.map +1 -0
- package/lib/types/client/hub/providers.d.ts +55 -0
- package/lib/types/client/hub/providers.d.ts.map +1 -0
- package/lib/types/client/index.d.ts +67 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts +21 -0
- package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts +8 -0
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -0
- package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts +16 -0
- package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts.map +1 -0
- package/lib/types/client/kimi-code/KimiQuotaCard.d.ts +31 -0
- package/lib/types/client/kimi-code/KimiQuotaCard.d.ts.map +1 -0
- package/lib/types/client/kimi-code/labels.d.ts +66 -0
- package/lib/types/client/kimi-code/labels.d.ts.map +1 -0
- package/lib/types/client/kimi-code/locales.d.ts +640 -0
- package/lib/types/client/kimi-code/locales.d.ts.map +1 -0
- package/lib/types/client/kimi-code/staff-art.d.ts +19 -0
- package/lib/types/client/kimi-code/staff-art.d.ts.map +1 -0
- package/lib/types/client/kimi-code/styles.d.ts +4 -0
- package/lib/types/client/kimi-code/styles.d.ts.map +1 -0
- package/lib/types/client/locales-ru/account-pool.d.ts +11 -0
- package/lib/types/client/locales-ru/account-pool.d.ts.map +1 -0
- package/lib/types/client/locales-ru/claude-api.d.ts +3 -0
- package/lib/types/client/locales-ru/claude-api.d.ts.map +1 -0
- package/lib/types/client/locales-ru/claude.d.ts +3 -0
- package/lib/types/client/locales-ru/claude.d.ts.map +1 -0
- package/lib/types/client/locales-ru/cline-pass.d.ts +11 -0
- package/lib/types/client/locales-ru/cline-pass.d.ts.map +1 -0
- package/lib/types/client/locales-ru/command-code.d.ts +9 -0
- package/lib/types/client/locales-ru/command-code.d.ts.map +1 -0
- package/lib/types/client/locales-ru/glm-coding-plan.d.ts +10 -0
- package/lib/types/client/locales-ru/glm-coding-plan.d.ts.map +1 -0
- package/lib/types/client/locales-ru/hub.d.ts +3 -0
- package/lib/types/client/locales-ru/hub.d.ts.map +1 -0
- package/lib/types/client/locales-ru/index.d.ts +26 -0
- package/lib/types/client/locales-ru/index.d.ts.map +1 -0
- package/lib/types/client/locales-ru/kimi-code.d.ts +10 -0
- package/lib/types/client/locales-ru/kimi-code.d.ts.map +1 -0
- package/lib/types/client/locales-ru/minimax-code.d.ts +9 -0
- package/lib/types/client/locales-ru/minimax-code.d.ts.map +1 -0
- package/lib/types/client/locales-ru/ollama.d.ts +10 -0
- package/lib/types/client/locales-ru/ollama.d.ts.map +1 -0
- package/lib/types/client/locales-ru/opencode-go.d.ts +3 -0
- package/lib/types/client/locales-ru/opencode-go.d.ts.map +1 -0
- package/lib/types/client/locales-ru/opendesign.d.ts +10 -0
- package/lib/types/client/locales-ru/opendesign.d.ts.map +1 -0
- package/lib/types/client/locales-ru/qianwen-token-plan.d.ts +3 -0
- package/lib/types/client/locales-ru/qianwen-token-plan.d.ts.map +1 -0
- package/lib/types/client/locales-ru/qoder.d.ts +11 -0
- package/lib/types/client/locales-ru/qoder.d.ts.map +1 -0
- package/lib/types/client/locales-ru/relayone.d.ts +3 -0
- package/lib/types/client/locales-ru/relayone.d.ts.map +1 -0
- package/lib/types/client/locales-ru/step-code.d.ts +9 -0
- package/lib/types/client/locales-ru/step-code.d.ts.map +1 -0
- package/lib/types/client/locales-ru/workbuddy.d.ts +10 -0
- package/lib/types/client/locales-ru/workbuddy.d.ts.map +1 -0
- package/lib/types/client/locales.d.ts +497 -0
- package/lib/types/client/locales.d.ts.map +1 -0
- package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts +23 -0
- package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts +23 -0
- package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts.map +1 -0
- package/lib/types/client/minimax-code/api.d.ts +35 -0
- package/lib/types/client/minimax-code/api.d.ts.map +1 -0
- package/lib/types/client/minimax-code/commands-contract.d.ts +46 -0
- package/lib/types/client/minimax-code/commands-contract.d.ts.map +1 -0
- package/lib/types/client/minimax-code/locales.d.ts +422 -0
- package/lib/types/client/minimax-code/locales.d.ts.map +1 -0
- package/lib/types/client/minimax-code/styles.d.ts +12 -0
- package/lib/types/client/minimax-code/styles.d.ts.map +1 -0
- package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts +164 -0
- package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts.map +1 -0
- package/lib/types/client/ollama/OllamaSection.d.ts +25 -0
- package/lib/types/client/ollama/OllamaSection.d.ts.map +1 -0
- package/lib/types/client/ollama/api.d.ts +49 -0
- package/lib/types/client/ollama/api.d.ts.map +1 -0
- package/lib/types/client/ollama/locales.d.ts +479 -0
- package/lib/types/client/ollama/locales.d.ts.map +1 -0
- package/lib/types/client/opencode-go/OpenCodeGoQuotaCard.d.ts +20 -0
- package/lib/types/client/opencode-go/OpenCodeGoQuotaCard.d.ts.map +1 -0
- package/lib/types/client/opencode-go/OpenCodeGoSection.d.ts +8 -0
- package/lib/types/client/opencode-go/OpenCodeGoSection.d.ts.map +1 -0
- package/lib/types/client/opencode-go/locales.d.ts +210 -0
- package/lib/types/client/opencode-go/locales.d.ts.map +1 -0
- package/lib/types/client/opencode-go/styles.d.ts +10 -0
- package/lib/types/client/opencode-go/styles.d.ts.map +1 -0
- package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts +26 -0
- package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts.map +1 -0
- package/lib/types/client/opendesign/OpenDesignSection.d.ts +19 -0
- package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +1 -0
- package/lib/types/client/opendesign/api.d.ts +45 -0
- package/lib/types/client/opendesign/api.d.ts.map +1 -0
- package/lib/types/client/opendesign/locales.d.ts +815 -0
- package/lib/types/client/opendesign/locales.d.ts.map +1 -0
- package/lib/types/client/opendesign/styles.d.ts +16 -0
- package/lib/types/client/opendesign/styles.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts +14 -0
- package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/QianwenTokenPlanSection.d.ts +4 -0
- package/lib/types/client/qianwen-token-plan/QianwenTokenPlanSection.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/api.d.ts +5 -0
- package/lib/types/client/qianwen-token-plan/api.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/locales.d.ts +158 -0
- package/lib/types/client/qianwen-token-plan/locales.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/styles.d.ts +3 -0
- package/lib/types/client/qianwen-token-plan/styles.d.ts.map +1 -0
- package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts +32 -0
- package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts.map +1 -0
- package/lib/types/client/qoder/QoderComposerQuota.d.ts +41 -0
- package/lib/types/client/qoder/QoderComposerQuota.d.ts.map +1 -0
- package/lib/types/client/qoder/QoderSection.d.ts +37 -0
- package/lib/types/client/qoder/QoderSection.d.ts.map +1 -0
- package/lib/types/client/qoder/api.d.ts +4 -0
- package/lib/types/client/qoder/api.d.ts.map +1 -0
- package/lib/types/client/qoder/locales.d.ts +322 -0
- package/lib/types/client/qoder/locales.d.ts.map +1 -0
- package/lib/types/client/qoder/styles.d.ts +16 -0
- package/lib/types/client/qoder/styles.d.ts.map +1 -0
- package/lib/types/client/qoder/useQoderSection.d.ts +97 -0
- package/lib/types/client/qoder/useQoderSection.d.ts.map +1 -0
- package/lib/types/client/quota.d.ts +9 -0
- package/lib/types/client/quota.d.ts.map +1 -0
- package/lib/types/client/relayone/RelayOneComposerQuota.d.ts +14 -0
- package/lib/types/client/relayone/RelayOneComposerQuota.d.ts.map +1 -0
- package/lib/types/client/relayone/RelayOneSection.d.ts +4 -0
- package/lib/types/client/relayone/RelayOneSection.d.ts.map +1 -0
- package/lib/types/client/relayone/api.d.ts +5 -0
- package/lib/types/client/relayone/api.d.ts.map +1 -0
- package/lib/types/client/relayone/locales.d.ts +221 -0
- package/lib/types/client/relayone/locales.d.ts.map +1 -0
- package/lib/types/client/relayone/quota-format.d.ts +6 -0
- package/lib/types/client/relayone/quota-format.d.ts.map +1 -0
- package/lib/types/client/relayone/styles.d.ts +3 -0
- package/lib/types/client/relayone/styles.d.ts.map +1 -0
- package/lib/types/client/relayone/useRelayOneSection.d.ts +32 -0
- package/lib/types/client/relayone/useRelayOneSection.d.ts.map +1 -0
- package/lib/types/client/step-code/StepCodeComposerQuota.d.ts +50 -0
- package/lib/types/client/step-code/StepCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/step-code/StepCodeSection.d.ts +28 -0
- package/lib/types/client/step-code/StepCodeSection.d.ts.map +1 -0
- package/lib/types/client/step-code/api.d.ts +4 -0
- package/lib/types/client/step-code/api.d.ts.map +1 -0
- package/lib/types/client/step-code/locales.d.ts +657 -0
- package/lib/types/client/step-code/locales.d.ts.map +1 -0
- package/lib/types/client/step-code/styles.d.ts +28 -0
- package/lib/types/client/step-code/styles.d.ts.map +1 -0
- package/lib/types/client/step-code/useStepCodeSection.d.ts +122 -0
- package/lib/types/client/step-code/useStepCodeSection.d.ts.map +1 -0
- package/lib/types/client/store.d.ts +19 -0
- package/lib/types/client/store.d.ts.map +1 -0
- package/lib/types/client/styles.d.ts +26 -0
- package/lib/types/client/styles.d.ts.map +1 -0
- package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts +34 -0
- package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts.map +1 -0
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts +91 -0
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -0
- package/lib/types/client/workbuddy/locales.d.ts +768 -0
- package/lib/types/client/workbuddy/locales.d.ts.map +1 -0
- package/lib/types/client/workbuddy/styles.d.ts +21 -0
- package/lib/types/client/workbuddy/styles.d.ts.map +1 -0
- package/lib/types/client/workbuddy/useWorkBuddySection.d.ts +149 -0
- package/lib/types/client/workbuddy/useWorkBuddySection.d.ts.map +1 -0
- package/lib/types/compat.d.ts +139 -0
- package/lib/types/compat.d.ts.map +1 -0
- package/lib/types/host/adapter.d.ts +43 -0
- package/lib/types/host/adapter.d.ts.map +1 -0
- package/lib/types/host/callback-server.d.ts +22 -0
- package/lib/types/host/callback-server.d.ts.map +1 -0
- package/lib/types/host/claude/account-pool.d.ts +583 -0
- package/lib/types/host/claude/account-pool.d.ts.map +1 -0
- package/lib/types/host/claude/adapter.d.ts +424 -0
- package/lib/types/host/claude/adapter.d.ts.map +1 -0
- package/lib/types/host/claude/adopt.d.ts +292 -0
- package/lib/types/host/claude/adopt.d.ts.map +1 -0
- package/lib/types/host/claude/client.d.ts +579 -0
- package/lib/types/host/claude/client.d.ts.map +1 -0
- package/lib/types/host/claude/mapper.d.ts +802 -0
- package/lib/types/host/claude/mapper.d.ts.map +1 -0
- package/lib/types/host/claude/model-catalog.d.ts +560 -0
- package/lib/types/host/claude/model-catalog.d.ts.map +1 -0
- package/lib/types/host/claude/oauth.d.ts +419 -0
- package/lib/types/host/claude/oauth.d.ts.map +1 -0
- package/lib/types/host/claude/routes.d.ts +131 -0
- package/lib/types/host/claude/routes.d.ts.map +1 -0
- package/lib/types/host/claude/token-store.d.ts +347 -0
- package/lib/types/host/claude/token-store.d.ts.map +1 -0
- package/lib/types/host/claude/types.d.ts +417 -0
- package/lib/types/host/claude/types.d.ts.map +1 -0
- package/lib/types/host/claude-api/adapter.d.ts +70 -0
- package/lib/types/host/claude-api/adapter.d.ts.map +1 -0
- package/lib/types/host/claude-api/capability-memory.d.ts +4 -0
- package/lib/types/host/claude-api/capability-memory.d.ts.map +1 -0
- package/lib/types/host/claude-api/catalog-manager.d.ts +57 -0
- package/lib/types/host/claude-api/catalog-manager.d.ts.map +1 -0
- package/lib/types/host/claude-api/client-version.d.ts +4 -0
- package/lib/types/host/claude-api/client-version.d.ts.map +1 -0
- package/lib/types/host/claude-api/client.d.ts +55 -0
- package/lib/types/host/claude-api/client.d.ts.map +1 -0
- package/lib/types/host/claude-api/compaction-instruction.d.ts +23 -0
- package/lib/types/host/claude-api/compaction-instruction.d.ts.map +1 -0
- package/lib/types/host/claude-api/compaction-store.d.ts +62 -0
- package/lib/types/host/claude-api/compaction-store.d.ts.map +1 -0
- package/lib/types/host/claude-api/compaction.d.ts +47 -0
- package/lib/types/host/claude-api/compaction.d.ts.map +1 -0
- package/lib/types/host/claude-api/mapper.d.ts +61 -0
- package/lib/types/host/claude-api/mapper.d.ts.map +1 -0
- package/lib/types/host/claude-api/model-catalog.d.ts +76 -0
- package/lib/types/host/claude-api/model-catalog.d.ts.map +1 -0
- package/lib/types/host/claude-api/routes.d.ts +22 -0
- package/lib/types/host/claude-api/routes.d.ts.map +1 -0
- package/lib/types/host/claude-api/stream.d.ts +88 -0
- package/lib/types/host/claude-api/stream.d.ts.map +1 -0
- package/lib/types/host/claude-api/token-store.d.ts +60 -0
- package/lib/types/host/claude-api/token-store.d.ts.map +1 -0
- package/lib/types/host/claude-api/types.d.ts +68 -0
- package/lib/types/host/claude-api/types.d.ts.map +1 -0
- package/lib/types/host/cline-pass/account-pool.d.ts +63 -0
- package/lib/types/host/cline-pass/account-pool.d.ts.map +1 -0
- package/lib/types/host/cline-pass/adapter.d.ts +60 -0
- package/lib/types/host/cline-pass/adapter.d.ts.map +1 -0
- package/lib/types/host/cline-pass/catalog.d.ts +49 -0
- package/lib/types/host/cline-pass/catalog.d.ts.map +1 -0
- package/lib/types/host/cline-pass/client.d.ts +109 -0
- package/lib/types/host/cline-pass/client.d.ts.map +1 -0
- package/lib/types/host/cline-pass/engine.d.ts +93 -0
- package/lib/types/host/cline-pass/engine.d.ts.map +1 -0
- package/lib/types/host/cline-pass/line.d.ts +55 -0
- package/lib/types/host/cline-pass/line.d.ts.map +1 -0
- package/lib/types/host/cline-pass/mapper.d.ts +138 -0
- package/lib/types/host/cline-pass/mapper.d.ts.map +1 -0
- package/lib/types/host/cline-pass/oauth.d.ts +134 -0
- package/lib/types/host/cline-pass/oauth.d.ts.map +1 -0
- package/lib/types/host/cline-pass/protocol.d.ts +44 -0
- package/lib/types/host/cline-pass/protocol.d.ts.map +1 -0
- package/lib/types/host/cline-pass/routes.d.ts +92 -0
- package/lib/types/host/cline-pass/routes.d.ts.map +1 -0
- package/lib/types/host/cline-pass/store.d.ts +75 -0
- package/lib/types/host/cline-pass/store.d.ts.map +1 -0
- package/lib/types/host/cline-pass/token-store.d.ts +170 -0
- package/lib/types/host/cline-pass/token-store.d.ts.map +1 -0
- package/lib/types/host/cline-pass/tools.d.ts +21 -0
- package/lib/types/host/cline-pass/tools.d.ts.map +1 -0
- package/lib/types/host/cline-pass/types.d.ts +127 -0
- package/lib/types/host/cline-pass/types.d.ts.map +1 -0
- package/lib/types/host/codex-account-pool.d.ts +223 -0
- package/lib/types/host/codex-account-pool.d.ts.map +1 -0
- package/lib/types/host/codex-adopt.d.ts +255 -0
- package/lib/types/host/codex-adopt.d.ts.map +1 -0
- package/lib/types/host/codex-catalog.d.ts +69 -0
- package/lib/types/host/codex-catalog.d.ts.map +1 -0
- package/lib/types/host/codex-fetch.d.ts +17 -0
- package/lib/types/host/codex-fetch.d.ts.map +1 -0
- package/lib/types/host/codex-file-import.d.ts +35 -0
- package/lib/types/host/codex-file-import.d.ts.map +1 -0
- package/lib/types/host/codex-identity.d.ts +132 -0
- package/lib/types/host/codex-identity.d.ts.map +1 -0
- package/lib/types/host/codex-remote-compaction.d.ts +41 -0
- package/lib/types/host/codex-remote-compaction.d.ts.map +1 -0
- package/lib/types/host/codex-search.d.ts +11 -0
- package/lib/types/host/codex-search.d.ts.map +1 -0
- package/lib/types/host/command-code/account-pool.d.ts +72 -0
- package/lib/types/host/command-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/command-code/adapter.d.ts +89 -0
- package/lib/types/host/command-code/adapter.d.ts.map +1 -0
- package/lib/types/host/command-code/client.d.ts +126 -0
- package/lib/types/host/command-code/client.d.ts.map +1 -0
- package/lib/types/host/command-code/mapper.d.ts +199 -0
- package/lib/types/host/command-code/mapper.d.ts.map +1 -0
- package/lib/types/host/command-code/model-catalog.d.ts +90 -0
- package/lib/types/host/command-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/command-code/oauth.d.ts +95 -0
- package/lib/types/host/command-code/oauth.d.ts.map +1 -0
- package/lib/types/host/command-code/plans.d.ts +40 -0
- package/lib/types/host/command-code/plans.d.ts.map +1 -0
- package/lib/types/host/command-code/routes.d.ts +44 -0
- package/lib/types/host/command-code/routes.d.ts.map +1 -0
- package/lib/types/host/command-code/token-store.d.ts +100 -0
- package/lib/types/host/command-code/token-store.d.ts.map +1 -0
- package/lib/types/host/command-code/types.d.ts +222 -0
- package/lib/types/host/command-code/types.d.ts.map +1 -0
- package/lib/types/host/common/account-pool.d.ts +584 -0
- package/lib/types/host/common/account-pool.d.ts.map +1 -0
- package/lib/types/host/common/account-quota.d.ts +44 -0
- package/lib/types/host/common/account-quota.d.ts.map +1 -0
- package/lib/types/host/common/brand-compat.d.ts +4 -0
- package/lib/types/host/common/brand-compat.d.ts.map +1 -0
- package/lib/types/host/common/cache-activity.d.ts +16 -0
- package/lib/types/host/common/cache-activity.d.ts.map +1 -0
- package/lib/types/host/common/cache-affinity.d.ts +23 -0
- package/lib/types/host/common/cache-affinity.d.ts.map +1 -0
- package/lib/types/host/common/cache-hint.d.ts +18 -0
- package/lib/types/host/common/cache-hint.d.ts.map +1 -0
- package/lib/types/host/common/capabilities.d.ts +100 -0
- package/lib/types/host/common/capabilities.d.ts.map +1 -0
- package/lib/types/host/common/catalog-snapshot.d.ts +80 -0
- package/lib/types/host/common/catalog-snapshot.d.ts.map +1 -0
- package/lib/types/host/common/claude-capability-memory.d.ts +51 -0
- package/lib/types/host/common/claude-capability-memory.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-cch.d.ts +28 -0
- package/lib/types/host/common/claude-code-cch.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-corrections.d.ts +6 -0
- package/lib/types/host/common/claude-code-corrections.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-first-party.d.ts +68 -0
- package/lib/types/host/common/claude-code-first-party.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-version.d.ts +90 -0
- package/lib/types/host/common/claude-code-version.d.ts.map +1 -0
- package/lib/types/host/common/concurrency-gate.d.ts +46 -0
- package/lib/types/host/common/concurrency-gate.d.ts.map +1 -0
- package/lib/types/host/common/context-budget-fetch.d.ts +7 -0
- package/lib/types/host/common/context-budget-fetch.d.ts.map +1 -0
- package/lib/types/host/common/context-overflow.d.ts +7 -0
- package/lib/types/host/common/context-overflow.d.ts.map +1 -0
- package/lib/types/host/common/context-window-overrides.d.ts +12 -0
- package/lib/types/host/common/context-window-overrides.d.ts.map +1 -0
- package/lib/types/host/common/credential-read-cache.d.ts +82 -0
- package/lib/types/host/common/credential-read-cache.d.ts.map +1 -0
- package/lib/types/host/common/credentials-compat.d.ts +73 -0
- package/lib/types/host/common/credentials-compat.d.ts.map +1 -0
- package/lib/types/host/common/failure-classification.d.ts +21 -0
- package/lib/types/host/common/failure-classification.d.ts.map +1 -0
- package/lib/types/host/common/file-preferences.d.ts +49 -0
- package/lib/types/host/common/file-preferences.d.ts.map +1 -0
- package/lib/types/host/common/gpt-engineering-guidance.d.ts +16 -0
- package/lib/types/host/common/gpt-engineering-guidance.d.ts.map +1 -0
- package/lib/types/host/common/home.d.ts +8 -0
- package/lib/types/host/common/home.d.ts.map +1 -0
- package/lib/types/host/common/hosted-media.d.ts +36 -0
- package/lib/types/host/common/hosted-media.d.ts.map +1 -0
- package/lib/types/host/common/i18n/en.d.ts +9 -0
- package/lib/types/host/common/i18n/en.d.ts.map +1 -0
- package/lib/types/host/common/i18n/index.d.ts +13 -0
- package/lib/types/host/common/i18n/index.d.ts.map +1 -0
- package/lib/types/host/common/i18n/provider-name.d.ts +10 -0
- package/lib/types/host/common/i18n/provider-name.d.ts.map +1 -0
- package/lib/types/host/common/i18n/ru.d.ts +10 -0
- package/lib/types/host/common/i18n/ru.d.ts.map +1 -0
- package/lib/types/host/common/i18n/runtime.d.ts +54 -0
- package/lib/types/host/common/i18n/runtime.d.ts.map +1 -0
- package/lib/types/host/common/i18n/t.d.ts +38 -0
- package/lib/types/host/common/i18n/t.d.ts.map +1 -0
- package/lib/types/host/common/i18n/zh.d.ts +172 -0
- package/lib/types/host/common/i18n/zh.d.ts.map +1 -0
- package/lib/types/host/common/idle-watchdog.d.ts +58 -0
- package/lib/types/host/common/idle-watchdog.d.ts.map +1 -0
- package/lib/types/host/common/legacy-preferences.d.ts +29 -0
- package/lib/types/host/common/legacy-preferences.d.ts.map +1 -0
- package/lib/types/host/common/llm-compat.d.ts +157 -0
- package/lib/types/host/common/llm-compat.d.ts.map +1 -0
- package/lib/types/host/common/model-request-control.d.ts +21 -0
- package/lib/types/host/common/model-request-control.d.ts.map +1 -0
- package/lib/types/host/common/orphan-tool-calls.d.ts +47 -0
- package/lib/types/host/common/orphan-tool-calls.d.ts.map +1 -0
- package/lib/types/host/common/output-reservation.d.ts +11 -0
- package/lib/types/host/common/output-reservation.d.ts.map +1 -0
- package/lib/types/host/common/pool-storage-settings.d.ts +41 -0
- package/lib/types/host/common/pool-storage-settings.d.ts.map +1 -0
- package/lib/types/host/common/pool-storage.d.ts +143 -0
- package/lib/types/host/common/pool-storage.d.ts.map +1 -0
- package/lib/types/host/common/prefix-request-coordinator.d.ts +46 -0
- package/lib/types/host/common/prefix-request-coordinator.d.ts.map +1 -0
- package/lib/types/host/common/prefix-stability.d.ts +24 -0
- package/lib/types/host/common/prefix-stability.d.ts.map +1 -0
- package/lib/types/host/common/prompt-cache-policy.d.ts +47 -0
- package/lib/types/host/common/prompt-cache-policy.d.ts.map +1 -0
- package/lib/types/host/common/prompt-estimate.d.ts +22 -0
- package/lib/types/host/common/prompt-estimate.d.ts.map +1 -0
- package/lib/types/host/common/provider-route.d.ts +56 -0
- package/lib/types/host/common/provider-route.d.ts.map +1 -0
- package/lib/types/host/common/quota-refresh.d.ts +35 -0
- package/lib/types/host/common/quota-refresh.d.ts.map +1 -0
- package/lib/types/host/common/reasoning-dialect.d.ts +24 -0
- package/lib/types/host/common/reasoning-dialect.d.ts.map +1 -0
- package/lib/types/host/common/reasoning-efforts.d.ts +2 -0
- package/lib/types/host/common/reasoning-efforts.d.ts.map +1 -0
- package/lib/types/host/common/request-diagnostics.d.ts +79 -0
- package/lib/types/host/common/request-diagnostics.d.ts.map +1 -0
- package/lib/types/host/common/request-images.d.ts +275 -0
- package/lib/types/host/common/request-images.d.ts.map +1 -0
- package/lib/types/host/common/same-origin.d.ts +30 -0
- package/lib/types/host/common/same-origin.d.ts.map +1 -0
- package/lib/types/host/common/session-cache-state.d.ts +29 -0
- package/lib/types/host/common/session-cache-state.d.ts.map +1 -0
- package/lib/types/host/common/session-effort-memory.d.ts +35 -0
- package/lib/types/host/common/session-effort-memory.d.ts.map +1 -0
- package/lib/types/host/common/settings-compat.d.ts +55 -0
- package/lib/types/host/common/settings-compat.d.ts.map +1 -0
- package/lib/types/host/common/sticky-image-budget.d.ts +10 -0
- package/lib/types/host/common/sticky-image-budget.d.ts.map +1 -0
- package/lib/types/host/common/stream-error.d.ts +93 -0
- package/lib/types/host/common/stream-error.d.ts.map +1 -0
- package/lib/types/host/common/tool-schema.d.ts +27 -0
- package/lib/types/host/common/tool-schema.d.ts.map +1 -0
- package/lib/types/host/common/video-request.d.ts +81 -0
- package/lib/types/host/common/video-request.d.ts.map +1 -0
- package/lib/types/host/common/video.d.ts +90 -0
- package/lib/types/host/common/video.d.ts.map +1 -0
- package/lib/types/host/common/webserver-compat.d.ts +7 -0
- package/lib/types/host/common/webserver-compat.d.ts.map +1 -0
- package/lib/types/host/credential-store-secret-service.d.ts +66 -0
- package/lib/types/host/credential-store-secret-service.d.ts.map +1 -0
- package/lib/types/host/fetch-address-policy.d.ts +79 -0
- package/lib/types/host/fetch-address-policy.d.ts.map +1 -0
- package/lib/types/host/fetch-configuration.d.ts +6 -0
- package/lib/types/host/fetch-configuration.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/account-pool.d.ts +152 -0
- package/lib/types/host/glm-coding-plan/account-pool.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/adapter.d.ts +169 -0
- package/lib/types/host/glm-coding-plan/adapter.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/adopt.d.ts +354 -0
- package/lib/types/host/glm-coding-plan/adopt.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts +99 -0
- package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/client.d.ts +218 -0
- package/lib/types/host/glm-coding-plan/client.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/exchange.d.ts +223 -0
- package/lib/types/host/glm-coding-plan/exchange.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts +312 -0
- package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/mapper-openai.d.ts +213 -0
- package/lib/types/host/glm-coding-plan/mapper-openai.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/model-catalog.d.ts +241 -0
- package/lib/types/host/glm-coding-plan/model-catalog.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/oauth.d.ts +211 -0
- package/lib/types/host/glm-coding-plan/oauth.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/routes.d.ts +93 -0
- package/lib/types/host/glm-coding-plan/routes.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/token-store.d.ts +202 -0
- package/lib/types/host/glm-coding-plan/token-store.d.ts.map +1 -0
- package/lib/types/host/glm-coding-plan/types.d.ts +492 -0
- package/lib/types/host/glm-coding-plan/types.d.ts.map +1 -0
- package/lib/types/host/hub-overview.d.ts +32 -0
- package/lib/types/host/hub-overview.d.ts.map +1 -0
- package/lib/types/host/kimi-code/account-pool.d.ts +124 -0
- package/lib/types/host/kimi-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/kimi-code/adapter.d.ts +451 -0
- package/lib/types/host/kimi-code/adapter.d.ts.map +1 -0
- package/lib/types/host/kimi-code/api-key.d.ts +55 -0
- package/lib/types/host/kimi-code/api-key.d.ts.map +1 -0
- package/lib/types/host/kimi-code/cache-affinity.d.ts +112 -0
- package/lib/types/host/kimi-code/cache-affinity.d.ts.map +1 -0
- package/lib/types/host/kimi-code/cache-hint.d.ts +65 -0
- package/lib/types/host/kimi-code/cache-hint.d.ts.map +1 -0
- package/lib/types/host/kimi-code/client.d.ts +306 -0
- package/lib/types/host/kimi-code/client.d.ts.map +1 -0
- package/lib/types/host/kimi-code/mapper.d.ts +913 -0
- package/lib/types/host/kimi-code/mapper.d.ts.map +1 -0
- package/lib/types/host/kimi-code/media-files.d.ts +206 -0
- package/lib/types/host/kimi-code/media-files.d.ts.map +1 -0
- package/lib/types/host/kimi-code/modalities.d.ts +23 -0
- package/lib/types/host/kimi-code/modalities.d.ts.map +1 -0
- package/lib/types/host/kimi-code/model-catalog.d.ts +125 -0
- package/lib/types/host/kimi-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/kimi-code/oauth.d.ts +213 -0
- package/lib/types/host/kimi-code/oauth.d.ts.map +1 -0
- package/lib/types/host/kimi-code/routes.d.ts +52 -0
- package/lib/types/host/kimi-code/routes.d.ts.map +1 -0
- package/lib/types/host/kimi-code/session-cache-state.d.ts +156 -0
- package/lib/types/host/kimi-code/session-cache-state.d.ts.map +1 -0
- package/lib/types/host/kimi-code/token-store.d.ts +182 -0
- package/lib/types/host/kimi-code/token-store.d.ts.map +1 -0
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts +43 -0
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts.map +1 -0
- package/lib/types/host/kimi-code/types.d.ts +458 -0
- package/lib/types/host/kimi-code/types.d.ts.map +1 -0
- package/lib/types/host/kimi-code/warmup-streak.d.ts +66 -0
- package/lib/types/host/kimi-code/warmup-streak.d.ts.map +1 -0
- package/lib/types/host/minimax-code/account-pool.d.ts +309 -0
- package/lib/types/host/minimax-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/minimax-code/adapter.d.ts +207 -0
- package/lib/types/host/minimax-code/adapter.d.ts.map +1 -0
- package/lib/types/host/minimax-code/checkin-gateway.d.ts +145 -0
- package/lib/types/host/minimax-code/checkin-gateway.d.ts.map +1 -0
- package/lib/types/host/minimax-code/checkin.d.ts +207 -0
- package/lib/types/host/minimax-code/checkin.d.ts.map +1 -0
- package/lib/types/host/minimax-code/client.d.ts +242 -0
- package/lib/types/host/minimax-code/client.d.ts.map +1 -0
- package/lib/types/host/minimax-code/files-api.d.ts +117 -0
- package/lib/types/host/minimax-code/files-api.d.ts.map +1 -0
- package/lib/types/host/minimax-code/iso-bmff-duration.d.ts +84 -0
- package/lib/types/host/minimax-code/iso-bmff-duration.d.ts.map +1 -0
- package/lib/types/host/minimax-code/mapper.d.ts +351 -0
- package/lib/types/host/minimax-code/mapper.d.ts.map +1 -0
- package/lib/types/host/minimax-code/matrix-client.d.ts +168 -0
- package/lib/types/host/minimax-code/matrix-client.d.ts.map +1 -0
- package/lib/types/host/minimax-code/modalities.d.ts +20 -0
- package/lib/types/host/minimax-code/modalities.d.ts.map +1 -0
- package/lib/types/host/minimax-code/model-catalog.d.ts +227 -0
- package/lib/types/host/minimax-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/minimax-code/oauth.d.ts +220 -0
- package/lib/types/host/minimax-code/oauth.d.ts.map +1 -0
- package/lib/types/host/minimax-code/reset-card.d.ts +136 -0
- package/lib/types/host/minimax-code/reset-card.d.ts.map +1 -0
- package/lib/types/host/minimax-code/routes.d.ts +82 -0
- package/lib/types/host/minimax-code/routes.d.ts.map +1 -0
- package/lib/types/host/minimax-code/token-store.d.ts +328 -0
- package/lib/types/host/minimax-code/token-store.d.ts.map +1 -0
- package/lib/types/host/minimax-code/tool-argument-repair.d.ts +72 -0
- package/lib/types/host/minimax-code/tool-argument-repair.d.ts.map +1 -0
- package/lib/types/host/minimax-code/types.d.ts +378 -0
- package/lib/types/host/minimax-code/types.d.ts.map +1 -0
- package/lib/types/host/model-catalog.d.ts +43 -0
- package/lib/types/host/model-catalog.d.ts.map +1 -0
- package/lib/types/host/oauth-service.d.ts +242 -0
- package/lib/types/host/oauth-service.d.ts.map +1 -0
- package/lib/types/host/ollama/account-pool.d.ts +65 -0
- package/lib/types/host/ollama/account-pool.d.ts.map +1 -0
- package/lib/types/host/ollama/adapter.d.ts +90 -0
- package/lib/types/host/ollama/adapter.d.ts.map +1 -0
- package/lib/types/host/ollama/client.d.ts +166 -0
- package/lib/types/host/ollama/client.d.ts.map +1 -0
- package/lib/types/host/ollama/mapper.d.ts +49 -0
- package/lib/types/host/ollama/mapper.d.ts.map +1 -0
- package/lib/types/host/ollama/routes.d.ts +22 -0
- package/lib/types/host/ollama/routes.d.ts.map +1 -0
- package/lib/types/host/ollama/token-store.d.ts +78 -0
- package/lib/types/host/ollama/token-store.d.ts.map +1 -0
- package/lib/types/host/ollama/types.d.ts +247 -0
- package/lib/types/host/ollama/types.d.ts.map +1 -0
- package/lib/types/host/opencode-go/account-pool.d.ts +50 -0
- package/lib/types/host/opencode-go/account-pool.d.ts.map +1 -0
- package/lib/types/host/opencode-go/adapter.d.ts +38 -0
- package/lib/types/host/opencode-go/adapter.d.ts.map +1 -0
- package/lib/types/host/opencode-go/client.d.ts +13 -0
- package/lib/types/host/opencode-go/client.d.ts.map +1 -0
- package/lib/types/host/opencode-go/mapper-gemini.d.ts +13 -0
- package/lib/types/host/opencode-go/mapper-gemini.d.ts.map +1 -0
- package/lib/types/host/opencode-go/mapper-messages.d.ts +8 -0
- package/lib/types/host/opencode-go/mapper-messages.d.ts.map +1 -0
- package/lib/types/host/opencode-go/mapper-responses.d.ts +9 -0
- package/lib/types/host/opencode-go/mapper-responses.d.ts.map +1 -0
- package/lib/types/host/opencode-go/mapper.d.ts +38 -0
- package/lib/types/host/opencode-go/mapper.d.ts.map +1 -0
- package/lib/types/host/opencode-go/model-catalog.d.ts +57 -0
- package/lib/types/host/opencode-go/model-catalog.d.ts.map +1 -0
- package/lib/types/host/opencode-go/native-shared.d.ts +31 -0
- package/lib/types/host/opencode-go/native-shared.d.ts.map +1 -0
- package/lib/types/host/opencode-go/protocol.d.ts +13 -0
- package/lib/types/host/opencode-go/protocol.d.ts.map +1 -0
- package/lib/types/host/opencode-go/routes.d.ts +13 -0
- package/lib/types/host/opencode-go/routes.d.ts.map +1 -0
- package/lib/types/host/opencode-go/token-store.d.ts +29 -0
- package/lib/types/host/opencode-go/token-store.d.ts.map +1 -0
- package/lib/types/host/opencode-go/types.d.ts +20 -0
- package/lib/types/host/opencode-go/types.d.ts.map +1 -0
- package/lib/types/host/opendesign/account-pool.d.ts +54 -0
- package/lib/types/host/opendesign/account-pool.d.ts.map +1 -0
- package/lib/types/host/opendesign/adapter.d.ts +88 -0
- package/lib/types/host/opendesign/adapter.d.ts.map +1 -0
- package/lib/types/host/opendesign/catalog.d.ts +58 -0
- package/lib/types/host/opendesign/catalog.d.ts.map +1 -0
- package/lib/types/host/opendesign/client.d.ts +304 -0
- package/lib/types/host/opendesign/client.d.ts.map +1 -0
- package/lib/types/host/opendesign/line.d.ts +60 -0
- package/lib/types/host/opendesign/line.d.ts.map +1 -0
- package/lib/types/host/opendesign/mapper.d.ts +218 -0
- package/lib/types/host/opendesign/mapper.d.ts.map +1 -0
- package/lib/types/host/opendesign/oauth.d.ts +105 -0
- package/lib/types/host/opendesign/oauth.d.ts.map +1 -0
- package/lib/types/host/opendesign/routes.d.ts +75 -0
- package/lib/types/host/opendesign/routes.d.ts.map +1 -0
- package/lib/types/host/opendesign/token-store.d.ts +241 -0
- package/lib/types/host/opendesign/token-store.d.ts.map +1 -0
- package/lib/types/host/opendesign/types.d.ts +235 -0
- package/lib/types/host/opendesign/types.d.ts.map +1 -0
- package/lib/types/host/platform-token-store.d.ts +3 -0
- package/lib/types/host/platform-token-store.d.ts.map +1 -0
- package/lib/types/host/preferences.d.ts +26 -0
- package/lib/types/host/preferences.d.ts.map +1 -0
- package/lib/types/host/proxy-manager.d.ts +261 -0
- package/lib/types/host/proxy-manager.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/adapter.d.ts +37 -0
- package/lib/types/host/qianwen-token-plan/adapter.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/cache-stats.d.ts +17 -0
- package/lib/types/host/qianwen-token-plan/cache-stats.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/client.d.ts +5 -0
- package/lib/types/host/qianwen-token-plan/client.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/mapper.d.ts +71 -0
- package/lib/types/host/qianwen-token-plan/mapper.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/model-catalog.d.ts +28 -0
- package/lib/types/host/qianwen-token-plan/model-catalog.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/routes.d.ts +12 -0
- package/lib/types/host/qianwen-token-plan/routes.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/token-store.d.ts +56 -0
- package/lib/types/host/qianwen-token-plan/token-store.d.ts.map +1 -0
- package/lib/types/host/qianwen-token-plan/types.d.ts +13 -0
- package/lib/types/host/qianwen-token-plan/types.d.ts.map +1 -0
- package/lib/types/host/qoder/account-pool.d.ts +141 -0
- package/lib/types/host/qoder/account-pool.d.ts.map +1 -0
- package/lib/types/host/qoder/adapter.d.ts +167 -0
- package/lib/types/host/qoder/adapter.d.ts.map +1 -0
- package/lib/types/host/qoder/adopt.d.ts +146 -0
- package/lib/types/host/qoder/adopt.d.ts.map +1 -0
- package/lib/types/host/qoder/client.d.ts +323 -0
- package/lib/types/host/qoder/client.d.ts.map +1 -0
- package/lib/types/host/qoder/cosy.d.ts +173 -0
- package/lib/types/host/qoder/cosy.d.ts.map +1 -0
- package/lib/types/host/qoder/mapper.d.ts +332 -0
- package/lib/types/host/qoder/mapper.d.ts.map +1 -0
- package/lib/types/host/qoder/model-catalog.d.ts +231 -0
- package/lib/types/host/qoder/model-catalog.d.ts.map +1 -0
- package/lib/types/host/qoder/oauth.d.ts +151 -0
- package/lib/types/host/qoder/oauth.d.ts.map +1 -0
- package/lib/types/host/qoder/routes.d.ts +119 -0
- package/lib/types/host/qoder/routes.d.ts.map +1 -0
- package/lib/types/host/qoder/token-store.d.ts +280 -0
- package/lib/types/host/qoder/token-store.d.ts.map +1 -0
- package/lib/types/host/qoder/types.d.ts +262 -0
- package/lib/types/host/qoder/types.d.ts.map +1 -0
- package/lib/types/host/relayone/account-pool.d.ts +129 -0
- package/lib/types/host/relayone/account-pool.d.ts.map +1 -0
- package/lib/types/host/relayone/adapter.d.ts +87 -0
- package/lib/types/host/relayone/adapter.d.ts.map +1 -0
- package/lib/types/host/relayone/catalog-manager.d.ts +45 -0
- package/lib/types/host/relayone/catalog-manager.d.ts.map +1 -0
- package/lib/types/host/relayone/client.d.ts +5 -0
- package/lib/types/host/relayone/client.d.ts.map +1 -0
- package/lib/types/host/relayone/mapper-anthropic.d.ts +49 -0
- package/lib/types/host/relayone/mapper-anthropic.d.ts.map +1 -0
- package/lib/types/host/relayone/mapper-openai.d.ts +36 -0
- package/lib/types/host/relayone/mapper-openai.d.ts.map +1 -0
- package/lib/types/host/relayone/mapper-shared.d.ts +25 -0
- package/lib/types/host/relayone/mapper-shared.d.ts.map +1 -0
- package/lib/types/host/relayone/model-catalog.d.ts +70 -0
- package/lib/types/host/relayone/model-catalog.d.ts.map +1 -0
- package/lib/types/host/relayone/quota.d.ts +29 -0
- package/lib/types/host/relayone/quota.d.ts.map +1 -0
- package/lib/types/host/relayone/routes.d.ts +33 -0
- package/lib/types/host/relayone/routes.d.ts.map +1 -0
- package/lib/types/host/relayone/token-store.d.ts +49 -0
- package/lib/types/host/relayone/token-store.d.ts.map +1 -0
- package/lib/types/host/relayone/types.d.ts +22 -0
- package/lib/types/host/relayone/types.d.ts.map +1 -0
- package/lib/types/host/responses-client.d.ts +125 -0
- package/lib/types/host/responses-client.d.ts.map +1 -0
- package/lib/types/host/responses-mapper.d.ts +133 -0
- package/lib/types/host/responses-mapper.d.ts.map +1 -0
- package/lib/types/host/routes.d.ts +30 -0
- package/lib/types/host/routes.d.ts.map +1 -0
- package/lib/types/host/search-provider-switcher.d.ts +45 -0
- package/lib/types/host/search-provider-switcher.d.ts.map +1 -0
- package/lib/types/host/session-title-guard/index.d.ts +80 -0
- package/lib/types/host/session-title-guard/index.d.ts.map +1 -0
- package/lib/types/host/step-code/account-pool.d.ts +187 -0
- package/lib/types/host/step-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/step-code/adapter.d.ts +156 -0
- package/lib/types/host/step-code/adapter.d.ts.map +1 -0
- package/lib/types/host/step-code/adopt.d.ts +201 -0
- package/lib/types/host/step-code/adopt.d.ts.map +1 -0
- package/lib/types/host/step-code/cache-stats.d.ts +181 -0
- package/lib/types/host/step-code/cache-stats.d.ts.map +1 -0
- package/lib/types/host/step-code/client.d.ts +339 -0
- package/lib/types/host/step-code/client.d.ts.map +1 -0
- package/lib/types/host/step-code/mapper.d.ts +305 -0
- package/lib/types/host/step-code/mapper.d.ts.map +1 -0
- package/lib/types/host/step-code/model-catalog.d.ts +247 -0
- package/lib/types/host/step-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/step-code/oauth.d.ts +265 -0
- package/lib/types/host/step-code/oauth.d.ts.map +1 -0
- package/lib/types/host/step-code/routes.d.ts +129 -0
- package/lib/types/host/step-code/routes.d.ts.map +1 -0
- package/lib/types/host/step-code/token-store.d.ts +325 -0
- package/lib/types/host/step-code/token-store.d.ts.map +1 -0
- package/lib/types/host/step-code/types.d.ts +492 -0
- package/lib/types/host/step-code/types.d.ts.map +1 -0
- package/lib/types/host/token-store-linux.d.ts +20 -0
- package/lib/types/host/token-store-linux.d.ts.map +1 -0
- package/lib/types/host/token-store-macos.d.ts +39 -0
- package/lib/types/host/token-store-macos.d.ts.map +1 -0
- package/lib/types/host/token-store-windows.d.ts +26 -0
- package/lib/types/host/token-store-windows.d.ts.map +1 -0
- package/lib/types/host/token-store.d.ts +81 -0
- package/lib/types/host/token-store.d.ts.map +1 -0
- package/lib/types/host/usage-service.d.ts +109 -0
- package/lib/types/host/usage-service.d.ts.map +1 -0
- package/lib/types/host/web-provider-reconciler.d.ts +34 -0
- package/lib/types/host/web-provider-reconciler.d.ts.map +1 -0
- package/lib/types/host/wire-auth.d.ts +63 -0
- package/lib/types/host/wire-auth.d.ts.map +1 -0
- package/lib/types/host/workbuddy/account-pool.d.ts +389 -0
- package/lib/types/host/workbuddy/account-pool.d.ts.map +1 -0
- package/lib/types/host/workbuddy/adapter.d.ts +248 -0
- package/lib/types/host/workbuddy/adapter.d.ts.map +1 -0
- package/lib/types/host/workbuddy/atrest.d.ts +98 -0
- package/lib/types/host/workbuddy/atrest.d.ts.map +1 -0
- package/lib/types/host/workbuddy/checkin.d.ts +150 -0
- package/lib/types/host/workbuddy/checkin.d.ts.map +1 -0
- package/lib/types/host/workbuddy/client.d.ts +214 -0
- package/lib/types/host/workbuddy/client.d.ts.map +1 -0
- package/lib/types/host/workbuddy/dsml.d.ts +55 -0
- package/lib/types/host/workbuddy/dsml.d.ts.map +1 -0
- package/lib/types/host/workbuddy/guardrails.d.ts +111 -0
- package/lib/types/host/workbuddy/guardrails.d.ts.map +1 -0
- package/lib/types/host/workbuddy/identity.d.ts +71 -0
- package/lib/types/host/workbuddy/identity.d.ts.map +1 -0
- package/lib/types/host/workbuddy/mapper.d.ts +238 -0
- package/lib/types/host/workbuddy/mapper.d.ts.map +1 -0
- package/lib/types/host/workbuddy/model-catalog.d.ts +239 -0
- package/lib/types/host/workbuddy/model-catalog.d.ts.map +1 -0
- package/lib/types/host/workbuddy/oauth.d.ts +47 -0
- package/lib/types/host/workbuddy/oauth.d.ts.map +1 -0
- package/lib/types/host/workbuddy/outbound-identity.d.ts +139 -0
- package/lib/types/host/workbuddy/outbound-identity.d.ts.map +1 -0
- package/lib/types/host/workbuddy/routes.d.ts +56 -0
- package/lib/types/host/workbuddy/routes.d.ts.map +1 -0
- package/lib/types/host/workbuddy/token-store.d.ts +370 -0
- package/lib/types/host/workbuddy/token-store.d.ts.map +1 -0
- package/lib/types/host/workbuddy/types.d.ts +185 -0
- package/lib/types/host/workbuddy/types.d.ts.map +1 -0
- package/lib/types/index.d.ts +248 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/shared/account-pool-contracts.d.ts +99 -0
- package/lib/types/shared/account-pool-contracts.d.ts.map +1 -0
- package/lib/types/shared/claude-api-contracts.d.ts +98 -0
- package/lib/types/shared/claude-api-contracts.d.ts.map +1 -0
- package/lib/types/shared/claude-contracts.d.ts +370 -0
- package/lib/types/shared/claude-contracts.d.ts.map +1 -0
- package/lib/types/shared/cline-pass-contracts.d.ts +234 -0
- package/lib/types/shared/cline-pass-contracts.d.ts.map +1 -0
- package/lib/types/shared/command-code-contracts.d.ts +163 -0
- package/lib/types/shared/command-code-contracts.d.ts.map +1 -0
- package/lib/types/shared/contracts.d.ts +343 -0
- package/lib/types/shared/contracts.d.ts.map +1 -0
- package/lib/types/shared/glm-coding-plan-contracts.d.ts +315 -0
- package/lib/types/shared/glm-coding-plan-contracts.d.ts.map +1 -0
- package/lib/types/shared/hub-contracts.d.ts +37 -0
- package/lib/types/shared/hub-contracts.d.ts.map +1 -0
- package/lib/types/shared/i18n-contracts.d.ts +35 -0
- package/lib/types/shared/i18n-contracts.d.ts.map +1 -0
- package/lib/types/shared/kimi-code-contracts.d.ts +435 -0
- package/lib/types/shared/kimi-code-contracts.d.ts.map +1 -0
- package/lib/types/shared/minimax-code-contracts.d.ts +263 -0
- package/lib/types/shared/minimax-code-contracts.d.ts.map +1 -0
- package/lib/types/shared/model-catalog.d.ts +302 -0
- package/lib/types/shared/model-catalog.d.ts.map +1 -0
- package/lib/types/shared/ollama-contracts.d.ts +73 -0
- package/lib/types/shared/ollama-contracts.d.ts.map +1 -0
- package/lib/types/shared/opencode-go-contracts.d.ts +80 -0
- package/lib/types/shared/opencode-go-contracts.d.ts.map +1 -0
- package/lib/types/shared/opendesign-contracts.d.ts +262 -0
- package/lib/types/shared/opendesign-contracts.d.ts.map +1 -0
- package/lib/types/shared/preferences.d.ts +60 -0
- package/lib/types/shared/preferences.d.ts.map +1 -0
- package/lib/types/shared/qianwen-token-plan-contracts.d.ts +94 -0
- package/lib/types/shared/qianwen-token-plan-contracts.d.ts.map +1 -0
- package/lib/types/shared/qoder-contracts.d.ts +342 -0
- package/lib/types/shared/qoder-contracts.d.ts.map +1 -0
- package/lib/types/shared/relayone-contracts.d.ts +95 -0
- package/lib/types/shared/relayone-contracts.d.ts.map +1 -0
- package/lib/types/shared/step-code-contracts.d.ts +443 -0
- package/lib/types/shared/step-code-contracts.d.ts.map +1 -0
- package/lib/types/shared/workbuddy-contracts.d.ts +531 -0
- package/lib/types/shared/workbuddy-contracts.d.ts.map +1 -0
- package/package.json +147 -4
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface PromptCacheActivity {
|
|
2
|
+
readonly lastActiveAt: number;
|
|
3
|
+
readonly totalTokens: number;
|
|
4
|
+
/** The cache lifetime this session's most recent request wrote with; absent = unknown. */
|
|
5
|
+
readonly ttlMs?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class PromptCacheActivityStore {
|
|
8
|
+
private readonly store;
|
|
9
|
+
constructor(provider: string, filePath?: string);
|
|
10
|
+
read(sessionId?: string): PromptCacheActivity | undefined;
|
|
11
|
+
record(sessionId: string | undefined, totalTokens: number, at?: number, ttlMs?: number): void;
|
|
12
|
+
flush(): void;
|
|
13
|
+
}
|
|
14
|
+
/** One live store per provider; tests can still construct isolated instances by path. */
|
|
15
|
+
export declare function promptCacheActivityStore(provider: string): PromptCacheActivityStore;
|
|
16
|
+
//# sourceMappingURL=cache-activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-activity.d.ts","sourceRoot":"","sources":["../../../../src/host/common/cache-activity.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,0FAA0F;IAC1F,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB;AA0BD,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8C;gBAExD,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAS/C,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS;IAOzD,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,GAAE,MAAmB,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAUzG,KAAK,IAAI,IAAI;CACd;AAID,yFAAyF;AACzF,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,wBAAwB,CAOnF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Provider-neutral warm-account preference with a quota safety floor. */
|
|
2
|
+
export interface AffinityQuotaWindow {
|
|
3
|
+
readonly usedFraction?: number;
|
|
4
|
+
readonly usedPercent?: number | null;
|
|
5
|
+
}
|
|
6
|
+
export interface AffinityQuota {
|
|
7
|
+
readonly windows: readonly AffinityQuotaWindow[];
|
|
8
|
+
}
|
|
9
|
+
export declare const DEFAULT_AFFINITY_QUOTA_FLOOR_SHARE = 0.2;
|
|
10
|
+
/** Tightest measured window; unknown remains null rather than pretending full/empty. */
|
|
11
|
+
export declare function remainingQuotaShare(quota: AffinityQuota | null | undefined): number | null;
|
|
12
|
+
export interface AffinityCandidate {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly warm: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface AffinityOrderInput {
|
|
17
|
+
readonly candidates: readonly AffinityCandidate[];
|
|
18
|
+
readonly remainingShareById?: Readonly<Record<string, number | null | undefined>>;
|
|
19
|
+
readonly floorShare?: number;
|
|
20
|
+
}
|
|
21
|
+
/** Warm and sufficiently-funded accounts first; no preference is an empty list. */
|
|
22
|
+
export declare function orderAffinityCandidates(input: AffinityOrderInput): string[];
|
|
23
|
+
//# sourceMappingURL=cache-affinity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-affinity.d.ts","sourceRoot":"","sources":["../../../../src/host/common/cache-affinity.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAE1E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAA;CACjD;AAED,eAAO,MAAM,kCAAkC,MAAM,CAAA;AAOrD,wFAAwF;AACxF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAc1F;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,EAAE,SAAS,iBAAiB,EAAE,CAAA;IACjD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC,CAAA;IACjF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,mFAAmF;AACnF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,EAAE,CAgB3E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Pure cache-expiry notice policy; no provider state or I/O. */
|
|
2
|
+
export interface CacheHintInput {
|
|
3
|
+
readonly now: number;
|
|
4
|
+
readonly lastActiveAt?: number;
|
|
5
|
+
readonly totalTokens?: number;
|
|
6
|
+
readonly ttlMs?: number;
|
|
7
|
+
readonly minTokensToHint?: number;
|
|
8
|
+
}
|
|
9
|
+
export type CacheHintDecision = {
|
|
10
|
+
readonly kind: 'skip';
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: 'hint';
|
|
13
|
+
readonly idleMs: number;
|
|
14
|
+
readonly totalTokens: number;
|
|
15
|
+
};
|
|
16
|
+
/** Missing data always skips; a provider must supply its own measured TTL. */
|
|
17
|
+
export declare function evaluateCacheHint(input: CacheHintInput): CacheHintDecision;
|
|
18
|
+
//# sourceMappingURL=cache-hint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-hint.d.ts","sourceRoot":"","sources":["../../../../src/host/common/cache-hint.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAClC;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAA;AAEpF,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,iBAAiB,CAW1E"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Explicit evidence registry and runtime capability gate.
|
|
3
|
+
*
|
|
4
|
+
* Preserves legacy exports and inventory TABLE while introducing a strict,
|
|
5
|
+
* verified capability gate. evaluateCapability / requireCapability allow ONLY
|
|
6
|
+
* verified offline-contract or live-validated matching evidence.
|
|
7
|
+
* Requires non-empty provider, wire, model, authMode, and capability.
|
|
8
|
+
* All unverified/unimplemented queries fail closed.
|
|
9
|
+
*
|
|
10
|
+
* @module dsh-multi-provider/capabilities
|
|
11
|
+
*/
|
|
12
|
+
/** Whether a documented provider feature is known to work on this route. */
|
|
13
|
+
export type CapabilityState = 'supported' | 'unsupported' | 'unknown';
|
|
14
|
+
/** Evidence validation tiers. */
|
|
15
|
+
export type EvidenceLevel = 'live-validated' | 'offline-contract' | 'unverified';
|
|
16
|
+
/** Supported capability features across all routes. */
|
|
17
|
+
export type Capability = 'prompt-cache-read' | 'prompt-cache-write' | 'thinking-replay' | 'thinking-control' | 'server-side-compaction' | 'tool-search' | 'append-only-tools' | 'native-image' | 'native-video' | 'multi-agent-server' | 'websocket-transport' | 'zdr';
|
|
18
|
+
/** Concrete evidence record for a capability. */
|
|
19
|
+
export interface CapabilityEvidenceRecord {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly provider: string;
|
|
22
|
+
readonly wire: string | readonly string[];
|
|
23
|
+
readonly modelSelector: string | readonly string[] | ((modelId: string) => boolean);
|
|
24
|
+
readonly authMode: string | readonly string[];
|
|
25
|
+
readonly capability: Capability;
|
|
26
|
+
readonly status: CapabilityState;
|
|
27
|
+
readonly evidenceLevel: EvidenceLevel;
|
|
28
|
+
readonly implemented: boolean;
|
|
29
|
+
readonly date: string;
|
|
30
|
+
readonly link?: string;
|
|
31
|
+
readonly testPath?: string;
|
|
32
|
+
readonly versionTag?: string;
|
|
33
|
+
readonly notes?: string;
|
|
34
|
+
}
|
|
35
|
+
/** Target query for capability evaluation. All fields are required. */
|
|
36
|
+
export interface CapabilityQuery {
|
|
37
|
+
readonly provider: string;
|
|
38
|
+
readonly wire: string;
|
|
39
|
+
readonly model: string;
|
|
40
|
+
readonly authMode: string;
|
|
41
|
+
readonly capability: Capability;
|
|
42
|
+
}
|
|
43
|
+
/** Evaluation outcome returned by evaluateCapability. */
|
|
44
|
+
export interface CapabilityEvaluation {
|
|
45
|
+
readonly allowed: boolean;
|
|
46
|
+
readonly state: CapabilityState;
|
|
47
|
+
readonly implemented: boolean;
|
|
48
|
+
readonly evidenceLevel?: EvidenceLevel;
|
|
49
|
+
readonly evidence?: CapabilityEvidenceRecord;
|
|
50
|
+
readonly reason?: string;
|
|
51
|
+
}
|
|
52
|
+
/** Error thrown by requireCapability when a capability contract fails. */
|
|
53
|
+
export declare class CapabilityError extends Error {
|
|
54
|
+
readonly query: CapabilityQuery;
|
|
55
|
+
readonly evaluation: CapabilityEvaluation;
|
|
56
|
+
constructor(message: string, query: CapabilityQuery, evaluation: CapabilityEvaluation);
|
|
57
|
+
}
|
|
58
|
+
/** Known Ollama vision model prefixes per official model documentation. */
|
|
59
|
+
export declare const KNOWN_OLLAMA_VISION_PREFIXES: readonly ["llava", "bakllava", "llama3.2-vision", "moondream", "minicpm-v", "qwen2.5-vl", "qwen2-vl"];
|
|
60
|
+
/**
|
|
61
|
+
* Matcher for Ollama vision models, aligned with src/host/ollama/types.ts.
|
|
62
|
+
* Checks exact base name before ':' or '/' to prevent partial hijacking (e.g. 'llava-evil').
|
|
63
|
+
*/
|
|
64
|
+
export declare function isKnownOllamaVisionModel(modelId: string): boolean;
|
|
65
|
+
/** Ollama thinking models with level control ('low'|'medium'|'high'). */
|
|
66
|
+
export declare const KNOWN_OLLAMA_THINKING_LEVELS_PREFIXES: readonly ["gpt-oss"];
|
|
67
|
+
/** Ollama thinking models with boolean control (true|false). */
|
|
68
|
+
export declare const KNOWN_OLLAMA_THINKING_BOOLEAN_PREFIXES: readonly ["deepseek-r1", "qwq", "qwen3"];
|
|
69
|
+
/** Matcher for Ollama thinking models, aligned with src/host/ollama/types.ts. */
|
|
70
|
+
export declare function isKnownOllamaThinkingModel(modelId: string): boolean;
|
|
71
|
+
/** Immutable validated capability evidence registry. */
|
|
72
|
+
export declare const CAPABILITY_EVIDENCE_REGISTRY: readonly CapabilityEvidenceRecord[];
|
|
73
|
+
/** Query evidence records matching the given criteria. Supports optional pure registry argument for tests. */
|
|
74
|
+
export declare function queryCapabilityEvidence(query: Partial<CapabilityQuery>, registry?: readonly CapabilityEvidenceRecord[]): readonly CapabilityEvidenceRecord[];
|
|
75
|
+
/**
|
|
76
|
+
* Evaluate whether a capability is permitted for a concrete request target.
|
|
77
|
+
* Fails closed if query is missing explicit fields, or lacks matching verified evidence.
|
|
78
|
+
*/
|
|
79
|
+
export declare function evaluateCapability(query: CapabilityQuery, registry?: readonly CapabilityEvidenceRecord[]): CapabilityEvaluation;
|
|
80
|
+
/**
|
|
81
|
+
* Require that a capability is supported and allowed. Throws CapabilityError otherwise.
|
|
82
|
+
*/
|
|
83
|
+
export declare function requireCapability(query: CapabilityQuery, registry?: readonly CapabilityEvidenceRecord[]): CapabilityEvaluation;
|
|
84
|
+
/** Whether Zero Data Retention (ZDR) is supported for this provider, wire, model, and auth mode. */
|
|
85
|
+
export declare function supportsZdr(provider: string, wire: string, model?: string, authMode?: string): boolean;
|
|
86
|
+
/** Whether Ollama image input is supported for the target model. */
|
|
87
|
+
export declare function supportsOllamaImage(model: string, wire?: string, authMode?: string): boolean;
|
|
88
|
+
/** Whether Ollama thinking control is supported for the target model. */
|
|
89
|
+
export declare function supportsOllamaThinkingControl(model: string, wire?: string, authMode?: string): boolean;
|
|
90
|
+
/** State of one capability on one route in legacy inventory. */
|
|
91
|
+
export declare function capabilityOf(provider: string, capability: Capability): CapabilityState;
|
|
92
|
+
/**
|
|
93
|
+
* Legacy inventory helper, not permission to send a model-specific parameter.
|
|
94
|
+
* Production builders must use evaluateCapability / requireCapability.
|
|
95
|
+
* @deprecated Use evaluateCapability or requireCapability for runtime capability gating.
|
|
96
|
+
*/
|
|
97
|
+
export declare function maySend(provider: string, capability: Capability): boolean;
|
|
98
|
+
/** The whole matrix, for diagnostics and tests. */
|
|
99
|
+
export declare function capabilityTable(): Readonly<Record<string, Readonly<Partial<Record<Capability, CapabilityState>>>>>;
|
|
100
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/host/common/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,4EAA4E;AAC5E,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,CAAA;AAErE,iCAAiC;AACjC,MAAM,MAAM,aAAa,GACrB,gBAAgB,GAChB,kBAAkB,GAClB,YAAY,CAAA;AAEhB,uDAAuD;AACvD,MAAM,MAAM,UAAU,GAClB,mBAAmB,GACnB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,wBAAwB,GACxB,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,cAAc,GACd,oBAAoB,GACpB,qBAAqB,GACrB,KAAK,CAAA;AAET,iDAAiD;AACjD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAA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AAW,EAAE,QAAQ,SAAY,GAAG,OAAO,CAEjG;AAED,yEAAyE;AACzE,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,SAAW,EAAE,QAAQ,SAAY,GAAG,OAAO,CAE3G;AAeD,gEAAgE;AAChE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,eAAe,CAEtF;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAEzE;AAED,mDAAmD;AACnD,wBAAgB,eAAe,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAElH"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Persistent snapshot for one provider's live model catalog.
|
|
3
|
+
*
|
|
4
|
+
* The in-memory catalog caches keep a process alive between requests, but they
|
|
5
|
+
* start cold: on the first call after a restart (or a plugin reinstall) the
|
|
6
|
+
* picker and the settings page both wait on the upstream listing before they
|
|
7
|
+
* can render anything, and an unreachable endpoint turns that wait into the
|
|
8
|
+
* full discovery timeout — "the model server is unavailable" on a fresh
|
|
9
|
+
* install. The catalog is not fast-moving data, so the last successful listing
|
|
10
|
+
* is persisted to `<DSH_HOME>/storages/` and rehydrated into the in-memory
|
|
11
|
+
* cache on first use. A snapshot the caller can read is therefore available
|
|
12
|
+
* from the very first call, with no network in the path.
|
|
13
|
+
*
|
|
14
|
+
* Writes are best-effort: persistence is an optimization, never a capability.
|
|
15
|
+
* A read-only home or a locked file must not fail the fetch that produced the
|
|
16
|
+
* snapshot.
|
|
17
|
+
*/
|
|
18
|
+
/** File name of the persisted snapshot for one catalog. */
|
|
19
|
+
export declare function catalogSnapshotPath(name: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* How many models one line's catalog holds, for the hub overview's "N/M models".
|
|
22
|
+
*
|
|
23
|
+
* An empty catalog is reported as `null` rather than `0`: "this line has synced
|
|
24
|
+
* nothing yet" and "this line offers no models" are different statements, and
|
|
25
|
+
* only the second one is a fact. The overview hides the model count for a null,
|
|
26
|
+
* which is what a line that has never synced should show.
|
|
27
|
+
*/
|
|
28
|
+
export declare function catalogTotal(count: number): number | null;
|
|
29
|
+
/**
|
|
30
|
+
* Snapshot name for one catalog *and* one credential scope.
|
|
31
|
+
*
|
|
32
|
+
* A persisted snapshot answers before any credential is read — that is the whole
|
|
33
|
+
* point of it — so the file itself has to carry the scope it was fetched under.
|
|
34
|
+
* Otherwise the first call after a restart, for any account, is answered by
|
|
35
|
+
* whatever listing some other scope happened to persist last: a Kimi listing
|
|
36
|
+
* fetched for the mainland-cn endpoint would answer a global caller with models
|
|
37
|
+
* and context windows that region does not serve, and a Command Code listing
|
|
38
|
+
* fetched against one API environment would answer the other.
|
|
39
|
+
*
|
|
40
|
+
* The scope is part of the file name rather than of the payload because a caller
|
|
41
|
+
* that cannot name the account — the harness resolves this catalog with no token
|
|
42
|
+
* at all — still has to find the snapshot its own scope owns.
|
|
43
|
+
*
|
|
44
|
+
* Everything outside `[a-z0-9]` is folded to `_`, so no scope can escape the
|
|
45
|
+
* `storages` directory.
|
|
46
|
+
*/
|
|
47
|
+
export declare function catalogSnapshotName(base: string, scope: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* Read the persisted snapshot for one catalog.
|
|
50
|
+
*
|
|
51
|
+
* Shape errors and unreadable files both return `undefined` — the caller keeps
|
|
52
|
+
* its in-memory state, and the next successful fetch overwrites the file.
|
|
53
|
+
*/
|
|
54
|
+
export declare function readCatalogSnapshot<T>(name: string, parseModels: (value: unknown) => T[] | undefined): Promise<{
|
|
55
|
+
fetchedAt: number;
|
|
56
|
+
models: T[];
|
|
57
|
+
} | undefined>;
|
|
58
|
+
/** Persist one snapshot; a failure is logged nowhere and never thrown. */
|
|
59
|
+
export declare function writeCatalogSnapshot<T>(name: string, models: T[], fetchedAt: number): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Wait until every snapshot write this process queued has settled.
|
|
62
|
+
*
|
|
63
|
+
* The write is only queued once the caller reaches it, so a caller that is
|
|
64
|
+
* still fetching has not registered one yet: yielding first lets those land
|
|
65
|
+
* before the set is read, and the loop drains anything they queue in turn.
|
|
66
|
+
* Production never calls this — it exists so a test cannot race a write it
|
|
67
|
+
* cannot see.
|
|
68
|
+
*/
|
|
69
|
+
export declare function flushCatalogSnapshots(): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Warm an in-memory cache from the persisted snapshot when it is fresher than
|
|
72
|
+
* what the cache currently holds. Called lazily on the first cache miss of a
|
|
73
|
+
* process, so a restart serves the previous listing without waiting on the
|
|
74
|
+
* network.
|
|
75
|
+
*
|
|
76
|
+
* @returns the snapshot's `fetchedAt`, or `0` when no usable snapshot exists —
|
|
77
|
+
* the caller then fetches as before.
|
|
78
|
+
*/
|
|
79
|
+
export declare function rehydrateCatalogCache<T>(name: string, parseModels: (value: unknown) => T[] | undefined, accept: (fetchedAt: number, models: T[]) => void, currentFetchedAt: number): Promise<number>;
|
|
80
|
+
//# sourceMappingURL=catalog-snapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-snapshot.d.ts","sourceRoot":"","sources":["../../../../src/host/common/catalog-snapshot.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AAEH,2DAA2D;AAC3D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEzD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAGvE;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,EACzC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,EAAE,GAAG,SAAS,GAC/C,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,CAAC,EAAE,CAAA;CAAE,GAAG,SAAS,CAAC,CAczD;AAcD,0EAA0E;AAC1E,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAenG;AAED;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAS3D;AAED;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAC3C,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,EAAE,GAAG,SAAS,EAChD,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,IAAI,EAChD,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CAKjB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const CLAUDE_CAPABILITY_MEMORY_TTL_MS: number;
|
|
2
|
+
export declare const CLAUDE_CAPABILITY_MEMORY_MAX_KEYS = 500;
|
|
3
|
+
export declare const CLAUDE_API_CAPABILITY_MEMORY_TTL_MS: number;
|
|
4
|
+
export declare const CLAUDE_API_CAPABILITY_MEMORY_MAX_KEYS = 500;
|
|
5
|
+
export type ClaudeFastModeConclusion = 'unsupported' | 'beta';
|
|
6
|
+
export type ClaudeApiFastModeConclusion = ClaudeFastModeConclusion;
|
|
7
|
+
interface StoredField<T> {
|
|
8
|
+
value: T;
|
|
9
|
+
expiresAt: number;
|
|
10
|
+
}
|
|
11
|
+
export interface ClaudeCapabilityRecord {
|
|
12
|
+
compaction?: StoredField<'unsupported'>;
|
|
13
|
+
fastMode?: StoredField<ClaudeFastModeConclusion>;
|
|
14
|
+
systemRole?: StoredField<'unsupported'>;
|
|
15
|
+
thinkingTokenCount?: StoredField<'unsupported'>;
|
|
16
|
+
}
|
|
17
|
+
export type ClaudeApiCapabilityRecord = ClaudeCapabilityRecord;
|
|
18
|
+
export interface ClaudeCapabilityFacts {
|
|
19
|
+
compactionUnsupported: boolean;
|
|
20
|
+
fastMode: ClaudeFastModeConclusion | undefined;
|
|
21
|
+
systemRoleUnsupported: boolean;
|
|
22
|
+
thinkingTokenCountUnsupported: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type ClaudeApiCapabilityFacts = ClaudeCapabilityFacts;
|
|
25
|
+
export declare function claudeCapabilityMemoryPath(line?: 'claude' | 'claude-api'): string;
|
|
26
|
+
export declare function claudeApiCapabilityMemoryPath(): string;
|
|
27
|
+
export declare function serializeClaudeCapabilityMemory(records: Readonly<Record<string, ClaudeCapabilityRecord>>): string;
|
|
28
|
+
export declare const serializeClaudeApiCapabilityMemory: typeof serializeClaudeCapabilityMemory;
|
|
29
|
+
export declare function parseClaudeCapabilityMemory(value: unknown): Record<string, ClaudeCapabilityRecord>;
|
|
30
|
+
export declare const parseClaudeApiCapabilityMemory: typeof parseClaudeCapabilityMemory;
|
|
31
|
+
export declare class ClaudeCapabilityMemory {
|
|
32
|
+
private readonly filePath;
|
|
33
|
+
private readonly now;
|
|
34
|
+
private records;
|
|
35
|
+
private warmed;
|
|
36
|
+
private writeSequence;
|
|
37
|
+
constructor(filePath?: string, now?: () => number);
|
|
38
|
+
path(): string;
|
|
39
|
+
warm(): Promise<void>;
|
|
40
|
+
get(scope: string, model: string): ClaudeCapabilityFacts;
|
|
41
|
+
setCompactionUnsupported(scope: string, model: string): Promise<void>;
|
|
42
|
+
setFastMode(scope: string, model: string, value: ClaudeFastModeConclusion): Promise<void>;
|
|
43
|
+
setSystemRoleUnsupported(scope: string, model: string): Promise<void>;
|
|
44
|
+
setThinkingTokenCountUnsupported(scope: string, model: string): Promise<void>;
|
|
45
|
+
private set;
|
|
46
|
+
private pruneRecord;
|
|
47
|
+
private prune;
|
|
48
|
+
private persist;
|
|
49
|
+
}
|
|
50
|
+
export { ClaudeCapabilityMemory as ClaudeApiCapabilityMemory };
|
|
51
|
+
//# sourceMappingURL=claude-capability-memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-capability-memory.d.ts","sourceRoot":"","sources":["../../../../src/host/common/claude-capability-memory.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,+BAA+B,QAAuB,CAAA;AACnE,eAAO,MAAM,iCAAiC,MAAM,CAAA;AACpD,eAAO,MAAM,mCAAmC,QAAkC,CAAA;AAClF,eAAO,MAAM,qCAAqC,MAAoC,CAAA;AAEtF,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG,MAAM,CAAA;AAC7D,MAAM,MAAM,2BAA2B,GAAG,wBAAwB,CAAA;AAClE,UAAU,WAAW,CAAC,CAAC;IAAI,KAAK,EAAE,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE;AAExD,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;IACvC,QAAQ,CAAC,EAAE,WAAW,CAAC,wBAAwB,CAAC,CAAA;IAChD,UAAU,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;IACvC,kBAAkB,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;CAChD;AACD,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,CAAA;AAE9D,MAAM,WAAW,qBAAqB;IACpC,qBAAqB,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,wBAAwB,GAAG,SAAS,CAAA;IAC9C,qBAAqB,EAAE,OAAO,CAAA;IAC9B,6BAA6B,EA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E,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAIrE,GAAG;IAYjB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,KAAK;YAWC,OAAO;CActB;AAED,OAAO,EAAE,sBAAsB,IAAI,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude Code first-party request attestation.
|
|
3
|
+
*
|
|
4
|
+
* The signature covers a plain-text hash view of the final serialized body while
|
|
5
|
+
* its billing block still carries the five-character cch=00000 placeholder.
|
|
6
|
+
* This implementation follows the capture-backed 2.1.330 reference in
|
|
7
|
+
* docs/2026-11-21_cch-attestation-report.md.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CLAUDE_CODE_CCH_SEED = 5577024349156291176n;
|
|
10
|
+
export declare const CLAUDE_CODE_CCH_MASK = 1048575n;
|
|
11
|
+
export declare const CLAUDE_CODE_CCH_PATTERN: RegExp;
|
|
12
|
+
/** Standard xxHash64 over UTF-8 text or raw bytes. */
|
|
13
|
+
export declare function claudeCodeXxHash64(value: string | Uint8Array, seed?: bigint): bigint;
|
|
14
|
+
/** The client's two ordered, deliberately textual rewrites. */
|
|
15
|
+
export declare function claudeCodeCchHashView(body: string): string;
|
|
16
|
+
/** Compute the five-hex token for a body that still contains cch=00000. */
|
|
17
|
+
export declare function claudeCodeCchToken(body: string, seed?: bigint): string;
|
|
18
|
+
/**
|
|
19
|
+
* Serialize and sign a request payload. The token is computed over the whole
|
|
20
|
+
* serialized body, as before, and written into the billing block only.
|
|
21
|
+
*/
|
|
22
|
+
export declare function signClaudeCodeRequest(payload: unknown, seed?: bigint): string;
|
|
23
|
+
/**
|
|
24
|
+
* Sign an already serialized body by the same rule. A body without a billing
|
|
25
|
+
* placeholder, or whose billing text occurs more than once, is returned verbatim.
|
|
26
|
+
*/
|
|
27
|
+
export declare function signClaudeCodeCch(body: string, seed?: bigint): string;
|
|
28
|
+
//# sourceMappingURL=claude-code-cch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code-cch.d.ts","sourceRoot":"","sources":["../../../../src/host/common/claude-code-cch.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,oBAAoB,uBAAsB,CAAA;AACvD,eAAO,MAAM,oBAAoB,WAAW,CAAA;AAC5C,eAAO,MAAM,uBAAuB,QAAyB,CAAA;AAyB7D,sDAAsD;AACtD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,EAAE,IAAI,SAAK,GAAG,MAAM,CAqDhF;AAED,+DAA+D;AAC/D,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAI1D;AAED,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAuB,GAAG,MAAM,CAIpF;AAqBD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,SAAuB,GAAG,MAAM,CAQ3F;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAuB,GAAG,MAAM,CAcnF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Shared, deliberately narrow recognizers for pre-output protocol corrections. */
|
|
2
|
+
export declare function isClaudeSpeedUnsupported(bodyText: string): boolean;
|
|
3
|
+
export declare function isClaudeSpeedNeedsBeta(bodyText: string): boolean;
|
|
4
|
+
export declare function isClaudeSystemRoleUnsupported(bodyText: string): boolean;
|
|
5
|
+
export declare function isClaudeThinkingTokenCountUnsupported(bodyText: string): boolean;
|
|
6
|
+
//# sourceMappingURL=claude-code-corrections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code-corrections.d.ts","sourceRoot":"","sources":["../../../../src/host/common/claude-code-corrections.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGlE;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGhE;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGvE;AAED,wBAAgB,qCAAqC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI/E"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { Message } from './llm-compat.ts';
|
|
2
|
+
/** First real user text used by cc_version's fingerprint; reminders and tool results do not count. */
|
|
3
|
+
export declare function claudeCodeFirstUserText(messages: readonly Message[]): string;
|
|
4
|
+
export declare const CLAUDE_CODE_BILLING_HEADER_PREFIX = "x-anthropic-billing-header";
|
|
5
|
+
export declare const CLAUDE_CODE_FINGERPRINT_SALT = "59cf53e54c78";
|
|
6
|
+
export declare const CLAUDE_CODE_BETA_THINKING_TOKEN_COUNT = "thinking-token-count-2026-05-13";
|
|
7
|
+
export declare const CLAUDE_CODE_BETA_CACHE_KEEPALIVE = "cache-keepalive-2026-09-03";
|
|
8
|
+
export declare const CLAUDE_CODE_BETA_EXTENDED_CACHE_TTL = "extended-cache-ttl-2025-04-11";
|
|
9
|
+
export declare const CLAUDE_CODE_BETA_CLEAR_AT = "mid-conversation-system-clear-at-2026-08-21";
|
|
10
|
+
export declare const CLAUDE_CODE_BETA_FAST_MODE = "fast-mode-2026-02-01";
|
|
11
|
+
/** Stainless headers captured from Claude Code 2.1.330; independent of the reported client version. */
|
|
12
|
+
export declare const CLAUDE_CODE_STAINLESS_HEADERS: Readonly<Record<string, string>>;
|
|
13
|
+
export interface ClaudeCodeBetaOptions {
|
|
14
|
+
auth: 'api-key' | 'oauth';
|
|
15
|
+
model?: string;
|
|
16
|
+
cacheTtl?: '5m' | '1h';
|
|
17
|
+
thinkingTokenCount?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Capture-backed first-party order. The Haiku order comes from the OAuth Haiku
|
|
21
|
+
* capture; API-key Haiku uses the same order with the three OAuth-only values removed.
|
|
22
|
+
*/
|
|
23
|
+
export declare function claudeCodeFirstPartyBetas(options: ClaudeCodeBetaOptions): string[];
|
|
24
|
+
/** Stable first-seen order, with no duplicate beta emitted by body-derived additions. */
|
|
25
|
+
export declare function mergeClaudeCodeBetas(...groups: readonly (readonly string[])[]): string[];
|
|
26
|
+
/** Deterministic UUID-shaped session id, namespaced per line. */
|
|
27
|
+
export declare function claudeCodeSessionUuid(sessionId: string, namespace?: string): string;
|
|
28
|
+
export interface ClaudeCodeFirstPartyContext {
|
|
29
|
+
readonly sessionUuid: string;
|
|
30
|
+
readonly promptUuid: string;
|
|
31
|
+
readonly requestUuid: string;
|
|
32
|
+
readonly promptIndex: number;
|
|
33
|
+
readonly turnIndex: number;
|
|
34
|
+
}
|
|
35
|
+
/** Bounded per-session prompt sequence. One adapter call is one prompt; retries reuse its context. */
|
|
36
|
+
export declare class ClaudeCodeFirstPartyTracker {
|
|
37
|
+
private readonly cap;
|
|
38
|
+
private readonly sessions;
|
|
39
|
+
constructor(cap?: number);
|
|
40
|
+
begin(sessionUuid: string, sessionKey?: string): ClaudeCodeFirstPartyContext;
|
|
41
|
+
}
|
|
42
|
+
export declare function claudeCodeFirstPartyHeaders(context: ClaudeCodeFirstPartyContext): Record<string, string>;
|
|
43
|
+
/** Three-hex suffix of cc_version, including the user's own first text. */
|
|
44
|
+
export declare function claudeCodeFingerprint(firstUserText: string, version: string): string;
|
|
45
|
+
export declare function claudeCodeBillingBlock(version: string, entrypoint: string, firstUserText: string, context: ClaudeCodeFirstPartyContext): string;
|
|
46
|
+
export declare function claudeCodeMetadataUserId(deviceId: string, accountUuid: string, sessionUuid: string): string;
|
|
47
|
+
export interface ClaudeCodeSystemBlock {
|
|
48
|
+
type: 'text';
|
|
49
|
+
text: string;
|
|
50
|
+
cache_control?: {
|
|
51
|
+
type: 'ephemeral';
|
|
52
|
+
ttl?: '1h';
|
|
53
|
+
scope?: 'global';
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export interface ClaudeCodeSystemOptions {
|
|
57
|
+
version: string;
|
|
58
|
+
entrypoint: string;
|
|
59
|
+
firstUserText: string;
|
|
60
|
+
context: ClaudeCodeFirstPartyContext;
|
|
61
|
+
identityText: string;
|
|
62
|
+
staticText?: string;
|
|
63
|
+
dynamicText?: string;
|
|
64
|
+
cacheTtl: '5m' | '1h';
|
|
65
|
+
}
|
|
66
|
+
/** First-party ordering without inventing prompt content the host does not have. */
|
|
67
|
+
export declare function buildClaudeCodeSystemBlocks(options: ClaudeCodeSystemOptions): ClaudeCodeSystemBlock[];
|
|
68
|
+
//# sourceMappingURL=claude-code-first-party.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code-first-party.d.ts","sourceRoot":"","sources":["../../../../src/host/common/claude-code-first-party.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,sGAAsG;AACtG,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,CAY5E;AAED,eAAO,MAAM,iCAAiC,+BAA+B,CAAA;AAC7E,eAAO,MAAM,4BAA4B,iBAAiB,CAAA;AAC1D,eAAO,MAAM,qCAAqC,oCAAoC,CAAA;AACtF,eAAO,MAAM,gCAAgC,+BAA+B,CAAA;AAC5E,eAAO,MAAM,mCAAmC,kCAAkC,CAAA;AAClF,eAAO,MAAM,yBAAyB,gDAAgD,CAAA;AACtF,eAAO,MAAM,0BAA0B,yBAAyB,CAAA;AAEhE,uGAAuG;AACvG,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASzE,CAAA;AAqCF,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAA;IACzB,KAA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,GACnC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAE3G;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,CAAC,EAAE;QAAE,IAAI,EAAE,WAAW,CAAC;QAAC,GAAG,CAAC,EAAE,IAAI,CAAC;QAAC,KAAK,CAAC,EAAE,QAAQ,CAAA;KAAE,CAAA;CACpE;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,2BAA2B,CAAA;IACpC,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAA;CACtB;AAED,oFAAoF;AACpF,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,uBAAuB,GAAG,qBAAqB,EAAE,CAWrG"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { ClaudeApiCacheTtl, ClaudeApiClientVersionDto } from '../../shared/claude-api-contracts.ts';
|
|
2
|
+
/** A version may be used for first-party traffic only together with its capture-verified seed. */
|
|
3
|
+
export interface ClaudeCodeVersionProfile {
|
|
4
|
+
readonly version: string;
|
|
5
|
+
readonly seed: bigint;
|
|
6
|
+
}
|
|
7
|
+
export type ClaudeCodeLine = 'claude' | 'claude-api';
|
|
8
|
+
export declare const CLAUDE_CODE_LINES: readonly ClaudeCodeLine[];
|
|
9
|
+
export declare const CLAUDE_CODE_DEFAULT_CLI_VERSION = "2.1.330";
|
|
10
|
+
export declare const CLAUDE_CODE_VERSION_PROFILES: readonly ClaudeCodeVersionProfile[];
|
|
11
|
+
export declare const CLAUDE_CODE_NPM_LATEST_URL = "https://registry.npmjs.org/@anthropic-ai/claude-code/latest";
|
|
12
|
+
export declare const CLAUDE_CODE_CLIENT_VERSION_REFRESH_MS: number;
|
|
13
|
+
export declare const CLAUDE_CODE_CLIENT_VERSION_TIMEOUT_MS = 10000;
|
|
14
|
+
export declare const CLAUDE_CODE_SUBSCRIPTION_CLI_VERSION_ENV = "DSH_CLAUDE_CLI_VERSION";
|
|
15
|
+
export declare const CLAUDE_CODE_API_CLI_VERSION_ENV = "DSH_CLAUDE_API_CLI_VERSION";
|
|
16
|
+
export declare const CLAUDE_CODE_CCH_SEED_ENV = "DSH_CLAUDE_CCH_SEED";
|
|
17
|
+
export interface PersistedClaudeCodeClientVersion {
|
|
18
|
+
version: string;
|
|
19
|
+
fetchedAt: number;
|
|
20
|
+
}
|
|
21
|
+
export type PersistedClaudeApiClientVersion = PersistedClaudeCodeClientVersion;
|
|
22
|
+
export interface ClaudeCodeVersionSelection extends ClaudeApiClientVersionDto {
|
|
23
|
+
readonly seed: bigint;
|
|
24
|
+
}
|
|
25
|
+
export interface ClaudeCodeVersionOptions {
|
|
26
|
+
fetchFn?: typeof fetch;
|
|
27
|
+
filePath?: string;
|
|
28
|
+
now?: () => number;
|
|
29
|
+
env?: Readonly<Record<string, string | undefined>>;
|
|
30
|
+
refreshMs?: number;
|
|
31
|
+
timeoutMs?: number;
|
|
32
|
+
/** Test or vendor update seam. Production uses the shipped verified profiles. */
|
|
33
|
+
profiles?: readonly ClaudeCodeVersionProfile[];
|
|
34
|
+
}
|
|
35
|
+
export declare function isClaudeCodeCliVersion(value: unknown): value is string;
|
|
36
|
+
export declare const isClaudeApiCliVersion: typeof isClaudeCodeCliVersion;
|
|
37
|
+
export declare function claudeCodeClientVersionPath(): string;
|
|
38
|
+
export declare const claudeApiClientVersionPath: typeof claudeCodeClientVersionPath;
|
|
39
|
+
export declare function serializeClaudeCodeClientVersion(record: PersistedClaudeCodeClientVersion): string;
|
|
40
|
+
export declare const serializeClaudeApiClientVersion: typeof serializeClaudeCodeClientVersion;
|
|
41
|
+
export declare function parseClaudeCodeClientVersion(value: unknown): PersistedClaudeCodeClientVersion | null;
|
|
42
|
+
export declare const parseClaudeApiClientVersion: typeof parseClaudeCodeClientVersion;
|
|
43
|
+
/** Compatibility seam for the subscription line's existing in-process pin. */
|
|
44
|
+
export declare function setClaudeCodeVersionPin(value: string | null): void;
|
|
45
|
+
export declare class ClaudeCodeVersionConfigurationError extends Error {
|
|
46
|
+
constructor(message: string);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* One process-wide reported version for both Claude lines.
|
|
50
|
+
*
|
|
51
|
+
* Registry reads never block a request. Unknown versions are deliberately not
|
|
52
|
+
* candidates: without their version-bound cch seed they cannot be signed.
|
|
53
|
+
*/
|
|
54
|
+
export declare class ClaudeCodeVersionResolver {
|
|
55
|
+
private readonly fetchFn;
|
|
56
|
+
private readonly filePath;
|
|
57
|
+
private readonly now;
|
|
58
|
+
private readonly env;
|
|
59
|
+
private readonly refreshMs;
|
|
60
|
+
private readonly timeoutMs;
|
|
61
|
+
private readonly profiles;
|
|
62
|
+
private fetched;
|
|
63
|
+
private cached;
|
|
64
|
+
private warmed;
|
|
65
|
+
private inflight;
|
|
66
|
+
private lastAttemptAt;
|
|
67
|
+
private active;
|
|
68
|
+
private readonly activity;
|
|
69
|
+
constructor(options?: ClaudeCodeVersionOptions);
|
|
70
|
+
/** Public DTO: no bigint crosses the host/client JSON boundary. */
|
|
71
|
+
current(): ClaudeApiClientVersionDto;
|
|
72
|
+
/** Internal request selection, including the seed needed at the serialization seam. */
|
|
73
|
+
currentProfile(): ClaudeCodeVersionSelection;
|
|
74
|
+
/** Record one request. The optional line keeps the original API-only call shape compatible. */
|
|
75
|
+
noteActivity(ttl: ClaudeApiCacheTtl, line?: ClaudeCodeLine): void;
|
|
76
|
+
warm(): Promise<void>;
|
|
77
|
+
refresh(options?: {
|
|
78
|
+
force?: boolean;
|
|
79
|
+
}): Promise<ClaudeApiClientVersionDto>;
|
|
80
|
+
start(): () => void;
|
|
81
|
+
private knownSeed;
|
|
82
|
+
private pinnedCandidate;
|
|
83
|
+
private candidate;
|
|
84
|
+
private allLinesIdle;
|
|
85
|
+
private fetchLatest;
|
|
86
|
+
private persist;
|
|
87
|
+
}
|
|
88
|
+
export { ClaudeCodeVersionResolver as ClaudeApiClientVersionResolver };
|
|
89
|
+
export type ClaudeApiClientVersionOptions = ClaudeCodeVersionOptions;
|
|
90
|
+
//# sourceMappingURL=claude-code-version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code-version.d.ts","sourceRoot":"","sources":["../../../../src/host/common/claude-code-version.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAgC,MAAM,sCAAsC,CAAA;AAGtI,kGAAkG;AAClG,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,YAAY,CAAA;AACpD,eAAO,MAAM,iBAAiB,EAAE,SAAS,cAAc,EAA6B,CAAA;AACpF,eAAO,MAAM,+BAA+B,YAAY,CAAA;AACxD,eAAO,MAAM,4BAA4B,EAAE,SAAS,wBAAwB,EAE1E,CAAA;AACF,eAAO,MAAM,0BAA0B,gEAAgE,CAAA;AACvG,eAAO,MAAM,qCAAqC,QAAmB,CAAA;AACrE,eAAO,MAAM,qCAAqC,QAAS,CAAA;AAC3D,eAAO,MAAM,wCAAwC,2BAA2B,CAAA;AAChF,eAAO,MAAM,+BAA+B,+BAA+B,CAAA;AAC3E,eAAO,MAAM,wBAAwB,wBAAwB,CAAA;AAE7D,MAAM,WAAW,gCAAgC;IAC/C,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB;AACD,MAAM,M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ail the moment that is exceeded. A multi-agent run
|
|
6
|
+
* reaches that bound by itself — one root agent plus a fan-out of subagents — so
|
|
7
|
+
* the bound has to be held deliberately instead of discovered by having every
|
|
8
|
+
* account 429 at once.
|
|
9
|
+
*
|
|
10
|
+
* The gate is deliberately generic and per-account: it knows nothing about any
|
|
11
|
+
* provider's plan, because a hard-coded number would be a guess about terms this
|
|
12
|
+
* code cannot see. A route that has learned its real limit passes it in; a route
|
|
13
|
+
* that has not passes nothing and behaves exactly as before.
|
|
14
|
+
*
|
|
15
|
+
* @module dsh-multi-provider/concurrency-gate
|
|
16
|
+
*/
|
|
17
|
+
export declare class ConcurrencyGate {
|
|
18
|
+
private readonly held;
|
|
19
|
+
private readonly queues;
|
|
20
|
+
private readonly limits;
|
|
21
|
+
/**
|
|
22
|
+
* Record the concurrency limit for one account.
|
|
23
|
+
*
|
|
24
|
+
* A non-positive or non-finite limit clears the cap, which is the same as
|
|
25
|
+
* never having set one: requests then pass through unbounded rather than
|
|
26
|
+
* being blocked by a value nobody verified.
|
|
27
|
+
*/
|
|
28
|
+
setLimit(accountId: string, limit: number): void;
|
|
29
|
+
/** Limit currently in force for one account, or undefined when uncapped. */
|
|
30
|
+
limitFor(accountId: string): number | undefined;
|
|
31
|
+
/** Requests currently in flight for one account. */
|
|
32
|
+
inFlight(accountId: string): number;
|
|
33
|
+
/**
|
|
34
|
+
* Take one slot, waiting for it when the account is at its limit.
|
|
35
|
+
*
|
|
36
|
+
* The returned function releases the slot and is safe to call more than once:
|
|
37
|
+
* a double release on an aborted request must not hand a stranger a slot that
|
|
38
|
+
* this holder never had.
|
|
39
|
+
*/
|
|
40
|
+
acquire(accountId: string, signal?: AbortSignal): Promise<() => void>;
|
|
41
|
+
private take;
|
|
42
|
+
private releaseFn;
|
|
43
|
+
/** Hand slots to as many waiters as the current limit allows. */
|
|
44
|
+
private drain;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=concurrency-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concurrency-gate.d.ts","sourceRoot":"","sources":["../../../../src/host/common/concurrency-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA4B;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAahD,4EAA4E;IAC5E,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI/C,oDAAoD;IACpD,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAInC;;;;;;OAMG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC;IAqC3E,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,SAAS;IAajB,iEAAiE;IACjE,OAAO,CAAC,KAAK;CAed"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recover a rejected input+output budget without dropping model-visible history.
|
|
3
|
+
* Only explicit wire output controls and provider-confirmed counts qualify.
|
|
4
|
+
* HTTP success/SSE, auth, quota, and byte-limit failures retain their old paths.
|
|
5
|
+
*/
|
|
6
|
+
export declare function fetchWithContextBudgetRecovery(fetchFn: typeof fetch): typeof fetch;
|
|
7
|
+
//# sourceMappingURL=context-budget-fetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-budget-fetch.d.ts","sourceRoot":"","sources":["../../../../src/host/common/context-budget-fetch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,OAAO,KAAK,GAAG,OAAO,KAAK,CA8BlF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Stable code understood by Harness overflow recovery, including older hosts. */
|
|
2
|
+
export declare const CONTEXT_OVERFLOW_CODE = "CONTEXT_WINDOW_EXCEEDED";
|
|
3
|
+
/** Inspect provider error fields only; never classify request bodies or successful output. */
|
|
4
|
+
export declare function isContextOverflow(error: unknown): boolean;
|
|
5
|
+
/** Only request-rejection statuses can be reclassified as context overflow. */
|
|
6
|
+
export declare function isHttpContextOverflow(status: number, error: unknown): boolean;
|
|
7
|
+
//# sourceMappingURL=context-overflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-overflow.d.ts","sourceRoot":"","sources":["../../../../src/host/common/context-overflow.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,4BAA4B,CAAA;AAE9D,8FAA8F;AAC9F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CA6CzD;AAED,+EAA+E;AAC/E,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAE7E"}
|