@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,378 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static facts about the MiniMax Code (编程订阅) provider.
|
|
3
|
+
*
|
|
4
|
+
* Every constant in this file is a measured value, transcribed from the
|
|
5
|
+
* reconnaissance brief at
|
|
6
|
+
* `_archive/minimax-probe_20260928/IMPLEMENTATION-BRIEF.md` (section 2). They are
|
|
7
|
+
* deliberately NOT re-derived from other clients or from convention:
|
|
8
|
+
*
|
|
9
|
+
* - the credential directory is `~/.minimax/auth/<buildEnv>/<region>/mcode-public/`
|
|
10
|
+
* and holds the same `auth.json` the MiniMax Code desktop app writes;
|
|
11
|
+
* - the OAuth device flow is a public-client RFC 8628 flow with PKCE(S256)
|
|
12
|
+
* against `account.minimax.cn/oauth2/*`;
|
|
13
|
+
* - the model surface is Anthropic Messages at
|
|
14
|
+
* `https://agent.minimax.cn/mavis/api/v1/llm/v1/messages`;
|
|
15
|
+
* - that endpoint authenticates with `authorization: Bearer <accessToken>`, NOT
|
|
16
|
+
* with `x-api-key` (measured: x-api-key answers 401
|
|
17
|
+
* `{"code":401,"message":"token is required"}`).
|
|
18
|
+
*
|
|
19
|
+
* Two consequences are load-bearing and are asserted where they are used rather
|
|
20
|
+
* than here: credentials are always sent as a bearer token, and the model
|
|
21
|
+
* directory is hardcoded because `GET /v1/models` answers 503
|
|
22
|
+
* `{"errorCode":50115,"errorReason":"direct_route_not_configured"}`.
|
|
23
|
+
*/
|
|
24
|
+
import type { MinimaxCodeReasoningEffort, MinimaxCodeRegion } from '../../shared/minimax-code-contracts.ts';
|
|
25
|
+
export declare const PROVIDER_ID = "minimax-code";
|
|
26
|
+
export declare const PROVIDER_NAME = "MiniMax Code\uFF08\u7F16\u7A0B\u8BA2\u9605\uFF09";
|
|
27
|
+
/**
|
|
28
|
+
* OAuth client id MiniMax Code registers.
|
|
29
|
+
*
|
|
30
|
+
* A public client with no secret: the id alone identifies the app, which is what
|
|
31
|
+
* RFC 8628 device flows assume.
|
|
32
|
+
*/
|
|
33
|
+
export declare const MINIMAX_CODE_CLIENT_ID = "mcode-public";
|
|
34
|
+
/** Scope the subscription token is issued for. */
|
|
35
|
+
export declare const MINIMAX_CODE_SCOPE = "agent.default";
|
|
36
|
+
/** Audience the subscription token is issued for. */
|
|
37
|
+
export declare const MINIMAX_CODE_AUDIENCE = "agent-backend";
|
|
38
|
+
/**
|
|
39
|
+
* Build environment segment of the credential path.
|
|
40
|
+
*
|
|
41
|
+
* `~/.minimax/auth/prod/cn/mcode-public/auth.json` on this machine. It is part of
|
|
42
|
+
* the on-disk layout, so it is a path constant rather than a remote host.
|
|
43
|
+
*/
|
|
44
|
+
export declare const MINIMAX_CODE_BUILD_ENV = "prod";
|
|
45
|
+
/** Host set per region. cn is the measured pair; global mirrors it on the .io domain. */
|
|
46
|
+
export declare const REGION_HOSTS: Record<MinimaxCodeRegion, {
|
|
47
|
+
account: string;
|
|
48
|
+
agent: string;
|
|
49
|
+
}>;
|
|
50
|
+
/**
|
|
51
|
+
* Path of the Token Plan usage endpoint for THIS kind of credential.
|
|
52
|
+
*
|
|
53
|
+
* TWO DIFFERENT ENDPOINTS EXIST, and the first one tried here was the wrong one:
|
|
54
|
+
*
|
|
55
|
+
* - `/v1/token_plan/remains` on the API hosts is the PLATFORM route. It takes a
|
|
56
|
+
* platform API key (or the platform OAuth the `mmx` CLI holds), and it answers
|
|
57
|
+
* an `mcode-public` sign-in with HTTP 200 + `base_resp.status_code: 1004`
|
|
58
|
+
* ("Please carry the API secret key") under every auth shape.
|
|
59
|
+
* - `/v1/api/openplatform/coding_plan/remains` is what the OFFICIAL MiniMax Code
|
|
60
|
+
* client uses for exactly this credential
|
|
61
|
+
* (`packages/tui/src/account/matrix-account-client.ts`, which reads it as the
|
|
62
|
+
* Token Plan quota). It is served by the API hosts — see
|
|
63
|
+
* {@link QUOTA_HOST_CANDIDATES} for the measured origin — not by the agent hosts
|
|
64
|
+
* this line posts Messages to.
|
|
65
|
+
*
|
|
66
|
+
* So the path below is the second one. See the note on
|
|
67
|
+
* {@link QUOTA_CLIENT_ATTRIBUTION} for the one caveat that comes with it.
|
|
68
|
+
*/
|
|
69
|
+
export declare const TOKEN_PLAN_REMAINS_PATH = "/v1/api/openplatform/coding_plan/remains";
|
|
70
|
+
/**
|
|
71
|
+
* Candidate hosts for the usage endpoint, most likely first.
|
|
72
|
+
*
|
|
73
|
+
* MEASURED, not inferred. The path below (`/v1/api/openplatform/coding_plan/remains`)
|
|
74
|
+
* lives on the API hosts, and this list previously carried the AGENT hosts because
|
|
75
|
+
* the Messages endpoint they serve is the one this line already talks to. That was
|
|
76
|
+
* the wrong surface for usage: an earlier revision measured only what a 404 "looked
|
|
77
|
+
* like" and not where the path actually serves, so both `agent.*` origins answered
|
|
78
|
+
* `404 page not found` for it — and, on the two of them that answer the request at
|
|
79
|
+
* all, an HTML chat-shell page rather than JSON. Either way no usable document was
|
|
80
|
+
* produced, every candidate was exhausted, and the card degraded to "the usage
|
|
81
|
+
* endpoint did not answer".
|
|
82
|
+
*
|
|
83
|
+
* The correct hosts, probed directly with a live `mcode-public` cn credential:
|
|
84
|
+
* `api.minimax.cn` answers HTTP 200 with `base_resp.status_code: 0` and the full
|
|
85
|
+
* `model_remains` document. The global pairing mirrors the region split already
|
|
86
|
+
* used above (cn vs io); `api.minimax.io` is NOT one of them — measured, it
|
|
87
|
+
* answers this path with HTTP 401 even for a credential its cn sibling accepts, so
|
|
88
|
+
* listing it would spend a probe to learn nothing. `api.minimaxi.com` is kept as
|
|
89
|
+
* the measured fallback because it serves the same document.
|
|
90
|
+
*
|
|
91
|
+
* The winner is still remembered, which keeps any remaining uncertainty in one
|
|
92
|
+
* place instead of spreading a guess through every request.
|
|
93
|
+
*/
|
|
94
|
+
export declare const QUOTA_HOST_CANDIDATES: Record<MinimaxCodeRegion, readonly string[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Whether this line may send the official client's attribution headers.
|
|
97
|
+
*
|
|
98
|
+
* The official client sends `yy` / `x-timestamp` / `x-signature` on this request.
|
|
99
|
+
* Its own comment calls them what they are: literals that "tag a request as coming
|
|
100
|
+
* from a first-party MiniMax client". MiniMax's code also says they are "not
|
|
101
|
+
* credentials or a security boundary" (authorization is the bearer token), but
|
|
102
|
+
* tagging a request as first-party is precisely what this package's
|
|
103
|
+
* `types.ts` product-token note refuses to do — and the same note records that
|
|
104
|
+
* claiming to be the official app is grounds for suspension.
|
|
105
|
+
*
|
|
106
|
+
* So the default is NO: the read goes out honestly, and if the service insists on
|
|
107
|
+
* the tag the result is a refusal the card reports rather than a forged identity.
|
|
108
|
+
* `DSH_MINIMAX_CODE_QUOTA_ATTRIBUTION=1` opts in for a user who has read that
|
|
109
|
+
* trade and wants the numbers anyway.
|
|
110
|
+
*/
|
|
111
|
+
export declare const QUOTA_CLIENT_ATTRIBUTION = false;
|
|
112
|
+
/** Whether the caller opted in to sending the first-party attribution headers. */
|
|
113
|
+
export declare function quotaAttributionEnabled(): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Hosts to try for one region, in order.
|
|
116
|
+
*
|
|
117
|
+
* `DSH_MINIMAX_CODE_QUOTA_HOST` pins a single host for a deployment that has
|
|
118
|
+
* measured the right one (a proxy, or a region whose host is not listed here).
|
|
119
|
+
*/
|
|
120
|
+
export declare function quotaHostCandidates(region: MinimaxCodeRegion): string[];
|
|
121
|
+
/** Fully qualified usage URL for one host. */
|
|
122
|
+
export declare function tokenPlanRemainsUrl(host: string): string;
|
|
123
|
+
/** Device authorization endpoint (RFC 8628 section 3.1). */
|
|
124
|
+
export declare const DEVICE_CODE_PATH = "/oauth2/device/code";
|
|
125
|
+
/** Token endpoint, shared by the device-code grant and the refresh grant. */
|
|
126
|
+
export declare const OAUTH_TOKEN_PATH = "/oauth2/token";
|
|
127
|
+
/** Revocation endpoint. */
|
|
128
|
+
export declare const OAUTH_REVOKE_PATH = "/oauth2/revoke";
|
|
129
|
+
/** Grant type the device-code polling request declares. */
|
|
130
|
+
export declare const DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
131
|
+
/** PKCE method the device authorization declares. */
|
|
132
|
+
export declare const PKCE_CHALLENGE_METHOD = "S256";
|
|
133
|
+
/**
|
|
134
|
+
* Managed agent API prefix.
|
|
135
|
+
*
|
|
136
|
+
* The Messages endpoint is `<agentBase><prefix>/messages`; the prefix already
|
|
137
|
+
* carries its own `/v1`, which is why the documented base URL is quoted as
|
|
138
|
+
* ".../llm/v1" and never has a further `/v1` appended.
|
|
139
|
+
*/
|
|
140
|
+
export declare const AGENT_LLM_PREFIX = "/mavis/api/v1/llm/v1";
|
|
141
|
+
/** Path suffix of the Anthropic Messages endpoint. */
|
|
142
|
+
export declare const MESSAGES_PATH = "/messages";
|
|
143
|
+
/** Anthropic protocol revision the endpoint documents. */
|
|
144
|
+
export declare const ANTHROPIC_VERSION = "2023-06-01";
|
|
145
|
+
/**
|
|
146
|
+
* Beta marker the interleaved-thinking protocol needs.
|
|
147
|
+
*
|
|
148
|
+
* The Messages endpoint on this route accepts signed `thinking` blocks and
|
|
149
|
+
* streams reasoning back in its own channel, and the Anthropic dialect gates
|
|
150
|
+
* that on the interleaved-thinking beta. The official MiniMax agent sends the
|
|
151
|
+
* marker on every Messages request (its `model-resolver-helpers.ts`), so a
|
|
152
|
+
* request without it is shaped differently from the one the service is
|
|
153
|
+
* documented against - and the replay path on this line has signed thinking
|
|
154
|
+
* blocks to send.
|
|
155
|
+
*/
|
|
156
|
+
export declare const ANTHROPIC_INTERLEAVED_THINKING_BETA = "interleaved-thinking-2025-05-14";
|
|
157
|
+
/**
|
|
158
|
+
* Byte ceiling the guard enforces on one request body.
|
|
159
|
+
*
|
|
160
|
+
* WHY THIS IS NOT KIMI'S 2 MB FIGURE
|
|
161
|
+
*
|
|
162
|
+
* This line used to import `MAX_MESSAGE_BODY_BYTES` (2,097,152) from the Kimi
|
|
163
|
+
* Code mapper and enforce it here on the stated grounds that "both lines face
|
|
164
|
+
* the same family of endpoint". That reasoning does not hold, and the cost was
|
|
165
|
+
* a hard local refusal on conversations the service would have accepted:
|
|
166
|
+
*
|
|
167
|
+
* - 2,097,152 with the message `total message size N exceeds limit 2097152` is
|
|
168
|
+
* KIMI CODE's own documented limit, quoted verbatim in its error reference.
|
|
169
|
+
* It is Kimi's gateway. No MiniMax document states it, and MiniMax's
|
|
170
|
+
* Anthropic-compatible page documents its request ceiling in tens of MB, not
|
|
171
|
+
* in 2 MB.
|
|
172
|
+
* - MiniMax's catalog — the source this line transcribes its own numbers from —
|
|
173
|
+
* gives the flagship M3 a 512K context window (1M optional) and M3.1 Flash
|
|
174
|
+
* 1M, and the model table bounds a single image at 10 MB. A 2 MB
|
|
175
|
+
* total-body ceiling cannot coexist with a 10 MB single-image bound: one
|
|
176
|
+
* legitimate image would trip the guard on its own.
|
|
177
|
+
*
|
|
178
|
+
* So the old number was not this route's limit. What is enforced here now is
|
|
179
|
+
* a transport ceiling for a route that declares no documented byte limit, set
|
|
180
|
+
* at MiniMax's own documented request-body figure for media-carrying requests
|
|
181
|
+
* (64 MB). Two properties make that safe:
|
|
182
|
+
*
|
|
183
|
+
* - it is high enough that no legitimate conversation is refused locally, so
|
|
184
|
+
* the guard can no longer be the reason a turn fails; and
|
|
185
|
+
* - it is still a real bound, so a runaway request (a loop appending a
|
|
186
|
+
* multi-megabyte tool result every iteration) is stopped before the
|
|
187
|
+
* connection is spent, and is reported with the same actionable remedy.
|
|
188
|
+
*
|
|
189
|
+
* `DSH_MINIMAX_CODE_MAX_BODY_BYTES` pins a different ceiling for a deployment
|
|
190
|
+
* that has measured one (a proxy or gateway in front of the route). It is
|
|
191
|
+
* parsed as bytes and ignored when it is not a positive finite integer, so a
|
|
192
|
+
* typo cannot silently disable the guard.
|
|
193
|
+
*/
|
|
194
|
+
export declare const DEFAULT_MAX_MESSAGE_BODY_BYTES: number;
|
|
195
|
+
/** Ceiling this process enforces, honouring the deployment override. */
|
|
196
|
+
export declare function maxMessageBodyBytes(env?: NodeJS.ProcessEnv): number;
|
|
197
|
+
/**
|
|
198
|
+
* Base64 image payload one request on this route may carry.
|
|
199
|
+
*
|
|
200
|
+
* The SECOND borrowed number, and the same mistake as the body ceiling above.
|
|
201
|
+
* This line called Kimi's `offloadOldestRequestImages`, whose budget is Kimi's
|
|
202
|
+
* 1,500,000 — a figure sized to sit inside Kimi's own 2 MB text/image request
|
|
203
|
+
* limit. Over here it silently deleted images MiniMax accepts:
|
|
204
|
+
*
|
|
205
|
+
* - MiniMax's model table bounds a single image at 10 MB of RAW bytes, about
|
|
206
|
+
* 13.3 MB once base64-encoded. Against 1.5 MB that is roughly 9x over, so ONE
|
|
207
|
+
* ordinary screenshot was replaced by a text placeholder.
|
|
208
|
+
* - Nothing said so. The offload is a silent substitution, so the model answered
|
|
209
|
+
* from a conversation where the picture simply was not, with no counter and no
|
|
210
|
+
* warning pointing at the cause. That is worse than a refusal: a refusal tells
|
|
211
|
+
* the user what went wrong.
|
|
212
|
+
*
|
|
213
|
+
* Derived from this route's own numbers instead of inherited: it holds the 10 MB
|
|
214
|
+
* raw per-image ceiling with headroom for a second image, and stays well inside
|
|
215
|
+
* the 64 MB request ceiling above, so legitimate images survive and only a
|
|
216
|
+
* runaway multi-image request is trimmed.
|
|
217
|
+
*/
|
|
218
|
+
export declare const DEFAULT_MAX_REQUEST_IMAGE_BYTES: number;
|
|
219
|
+
/**
|
|
220
|
+
* Base64 video budget for one request on this line.
|
|
221
|
+
*
|
|
222
|
+
* Deliberately far below the model's documented 50 MB inline ceiling: base64
|
|
223
|
+
* grows bytes by 4/3, so a 50 MB clip would encode to roughly 67 MB and overrun
|
|
224
|
+
* the 64 MB request body this route enforces. The real answer is the Files API
|
|
225
|
+
* (a clip over ~48 MB is only sendable through an upload), so this budget is a
|
|
226
|
+
* working inline allowance rather than the model's limit.
|
|
227
|
+
*/
|
|
228
|
+
export declare const MAX_REQUEST_VIDEO_BYTES: number;
|
|
229
|
+
/** Image budget this process enforces, honouring the deployment override. */
|
|
230
|
+
export declare function maxRequestImageBytes(env?: NodeJS.ProcessEnv): number;
|
|
231
|
+
/**
|
|
232
|
+
* Product token this plugin reports.
|
|
233
|
+
*
|
|
234
|
+
* This is the plugin's own identity, and it stays honest. MiniMax Code's own
|
|
235
|
+
* telemetry headers are deliberately NOT forged: this is a third-party client of
|
|
236
|
+
* the subscription, and claiming to be the official app is both dishonest and,
|
|
237
|
+
* per the app's own terms, grounds for suspending the subscription.
|
|
238
|
+
*
|
|
239
|
+
* The surfaces that carry this token are exactly the first-party ones (the
|
|
240
|
+
* check-in call, the reset-card call, the usage read), and those are the ones
|
|
241
|
+
* that must be able to say who is asking. The MODEL request carries
|
|
242
|
+
* {@link MINIMAX_AGENT_USER_AGENT} instead - a different surface, a different
|
|
243
|
+
* identifier.
|
|
244
|
+
*/
|
|
245
|
+
export declare const USER_AGENT = "dsh-multi-provider (+https://github.com/alm-allen/dsh-multi-provider)";
|
|
246
|
+
/**
|
|
247
|
+
* Client identifier the managed agent's MODEL requests carry.
|
|
248
|
+
*
|
|
249
|
+
* The managed agent classifies a model request by this header, and the official
|
|
250
|
+
* MiniMax agent sends exactly this value (`model-resolver-helpers.ts:11`, and
|
|
251
|
+
* the same identifier the Matrix media face uses). A model request that names
|
|
252
|
+
* something else is shaped differently from the one the service is documented
|
|
253
|
+
* against - and the model request is the surface that has to speak the
|
|
254
|
+
* protocol's own identifier.
|
|
255
|
+
*
|
|
256
|
+
* It is a separate constant from {@link USER_AGENT} on purpose: the first-party
|
|
257
|
+
* surfaces keep identifying this plugin honestly, and only the model request
|
|
258
|
+
* speaks as the agent the endpoint expects.
|
|
259
|
+
*/
|
|
260
|
+
export declare const MINIMAX_AGENT_USER_AGENT = "MiniMaxAgent";
|
|
261
|
+
/**
|
|
262
|
+
* How long before expiry a token is replaced.
|
|
263
|
+
*
|
|
264
|
+
* The measured MiniMax Code access token lives ONE HOUR, not the day an earlier
|
|
265
|
+
* note assumed, and the desktop app refreshes the same file this plugin reads, so
|
|
266
|
+
* the policy is "read-only first": a token that is still comfortably valid is used
|
|
267
|
+
* exactly as stored. The margin exists only so a request cannot start with a token
|
|
268
|
+
* that expires while it is in flight — it is deliberately far below the token's
|
|
269
|
+
* own lifetime so the plugin does not race the desktop app for a rotation it does
|
|
270
|
+
* not need.
|
|
271
|
+
*/
|
|
272
|
+
export declare const REFRESH_MARGIN_MS = 60000;
|
|
273
|
+
/**
|
|
274
|
+
* How long before expiry this plugin renews the credential ON ITS OWN schedule.
|
|
275
|
+
*
|
|
276
|
+
* This is the constant that removes the every-hour sign-out. The access token
|
|
277
|
+
* lives one hour, so a reader that only acts once the token is already inside
|
|
278
|
+
* {@link REFRESH_MARGIN_MS} of expiry presents a bearer the service has already
|
|
279
|
+
* stopped accepting: every hour the line dips through 401 → refresh → retry, and
|
|
280
|
+
* a burst of tool calls at that boundary has two callers spend the same rotating
|
|
281
|
+
* refresh token. Renewing a few minutes early moves the rotation off the boundary
|
|
282
|
+
* and onto a schedule this plugin controls.
|
|
283
|
+
*
|
|
284
|
+
* It must stay far away from the token's lifetime for the opposite reason: a
|
|
285
|
+
* margin near the lifetime would rotate on every single read and race the desktop
|
|
286
|
+
* app for a rotation neither side needs. Five minutes of a sixty-minute token is
|
|
287
|
+
* the balance — the rotation happens once, well before the token can be refused.
|
|
288
|
+
*/
|
|
289
|
+
export declare const PRE_EXPIRY_REFRESH_MS: number;
|
|
290
|
+
/** Failures cheap enough to retry under {@link PRE_EXPIRY_REFRESH_MS}. */
|
|
291
|
+
export declare const PRE_EXPIRY_REFRESH_MAX_ATTEMPTS = 2;
|
|
292
|
+
/**
|
|
293
|
+
* How long a rotation stays "recent" for other readers of the same credential.
|
|
294
|
+
*
|
|
295
|
+
* A refresh token rotates: the moment one holder spends it, every other holder is
|
|
296
|
+
* left with a token the service has already invalidated. This window is the answer
|
|
297
|
+
* — a caller that observes the credential rotating right now waits for the winner
|
|
298
|
+
* to write its result back and adopts that result instead of spending a token that
|
|
299
|
+
* is already gone. It is a local patience bound, not a lock: no file is created,
|
|
300
|
+
* and the desktop app's own `auth.lock` is never touched.
|
|
301
|
+
*/
|
|
302
|
+
export declare const CREDENTIAL_ROTATION_WAIT_MS = 15000;
|
|
303
|
+
/** Attempts one refresh gets before the stored credential is called dead. */
|
|
304
|
+
export declare const REFRESH_MAX_RETRIES = 3;
|
|
305
|
+
/** Exponential backoff base for a retryable refresh failure. */
|
|
306
|
+
export declare const REFRESH_BACKOFF_BASE_MS = 1000;
|
|
307
|
+
/**
|
|
308
|
+
* HTTP statuses a refresh treats as transient.
|
|
309
|
+
*
|
|
310
|
+
* A 429 or any 5xx says nothing about the refresh token itself, so the same token
|
|
311
|
+
* is worth retrying. A 400/401/403 is a verdict that the grant is dead.
|
|
312
|
+
*/
|
|
313
|
+
export declare const RETRYABLE_REFRESH_STATUSES: ReadonlySet<number>;
|
|
314
|
+
/** Device-flow polling defaults when the service omits them. */
|
|
315
|
+
export declare const DEFAULT_DEVICE_INTERVAL_SECONDS = 5;
|
|
316
|
+
export declare const DEFAULT_DEVICE_EXPIRES_SECONDS = 600;
|
|
317
|
+
/** Local timeout for every OAuth call. */
|
|
318
|
+
export declare const OAUTH_TIMEOUT_MS = 30000;
|
|
319
|
+
/** Lifetime of one in-process login session before the card must start over. */
|
|
320
|
+
export declare const LOGIN_TIMEOUT_MS: number;
|
|
321
|
+
/**
|
|
322
|
+
* Idle ceiling for one streaming response before it is declared stalled.
|
|
323
|
+
*
|
|
324
|
+
* Strictly inside the transport's own 300 s stream timeout; see
|
|
325
|
+
* `host/common/idle-watchdog.ts` for the measured basis.
|
|
326
|
+
*/
|
|
327
|
+
export declare const STREAM_IDLE_TIMEOUT_MS = 120000;
|
|
328
|
+
export declare const STREAM_IDLE_TIMEOUT_CODE = "LLM_STREAM_IDLE_TIMEOUT";
|
|
329
|
+
/** Headroom kept below a model's context window when sizing a request. */
|
|
330
|
+
export declare const CONTEXT_HEADROOM_TOKENS = 4096;
|
|
331
|
+
/** Output cap used when a model declares none. */
|
|
332
|
+
export declare const DEFAULT_MAX_TOKENS = 32768;
|
|
333
|
+
/** Context window used when a model declares none. */
|
|
334
|
+
export declare const DEFAULT_CONTEXT_WINDOW = 512000;
|
|
335
|
+
/** The account (OAuth) host for one region. */
|
|
336
|
+
export declare function accountHost(region: MinimaxCodeRegion): string;
|
|
337
|
+
/**
|
|
338
|
+
* The agent API base URL for one region, without a trailing slash.
|
|
339
|
+
*
|
|
340
|
+
* An override that already carries the prefix is accepted as written, so a
|
|
341
|
+
* deployment that proxies the endpoint can point at the proxy root instead.
|
|
342
|
+
*/
|
|
343
|
+
export declare function agentBaseUrl(region: MinimaxCodeRegion): string;
|
|
344
|
+
/** Fully qualified Anthropic Messages URL for one region. */
|
|
345
|
+
export declare function messagesUrl(region: MinimaxCodeRegion): string;
|
|
346
|
+
/** Fully qualified OAuth endpoint URL for one region. */
|
|
347
|
+
export declare function oauthUrl(region: MinimaxCodeRegion, path: string): string;
|
|
348
|
+
/** Whether one value is a region this route understands. */
|
|
349
|
+
export declare function isRegion(value: unknown): value is MinimaxCodeRegion;
|
|
350
|
+
/** Reasoning levels the whole route understands, for route-level validation. */
|
|
351
|
+
export declare function isMinimaxCodeReasoningEffort(value: unknown): value is MinimaxCodeReasoningEffort;
|
|
352
|
+
/**
|
|
353
|
+
* Render a token for a log line or an error message without disclosing it.
|
|
354
|
+
*
|
|
355
|
+
* A real credential must never reach a log, a settings response, or a rendered
|
|
356
|
+
* error, so nothing derived from the token's *content* is emitted here. An earlier
|
|
357
|
+
* revision printed the first six characters plus the length "to tell two tokens
|
|
358
|
+
* apart"; that is still a disclosure of the credential — six characters of a
|
|
359
|
+
* bearer token is material an attacker can use, and these strings are rendered in
|
|
360
|
+
* the settings card and written to the host log. The fingerprint below is instead
|
|
361
|
+
* a truncated SHA-256 over the token, which distinguishes two credentials and
|
|
362
|
+
* pins which one was rejected (the diagnostic purpose) while being unusable as a
|
|
363
|
+
* credential prefix.
|
|
364
|
+
*/
|
|
365
|
+
export declare function redactToken(token: string | undefined | null): string;
|
|
366
|
+
/**
|
|
367
|
+
* Adapter-selected auth owner (nonsecret hash).
|
|
368
|
+
*
|
|
369
|
+
* Scoped to the specific account and credential token/key selected by the adapter.
|
|
370
|
+
* Any account change or token/key replacement produces a different hash,
|
|
371
|
+
* preventing thinking/signature replay across different authentication boundaries.
|
|
372
|
+
*/
|
|
373
|
+
export declare function computeMinimaxAuthOwner(credentials?: {
|
|
374
|
+
accessToken?: string;
|
|
375
|
+
apiKey?: string;
|
|
376
|
+
region?: string;
|
|
377
|
+
} | null, accountId?: string | null): string;
|
|
378
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/minimax-code/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,KAAK,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAG3G,eAAO,MAAM,WAAW,iBAA2B,CAAA;AACnD,eAAO,MAAM,aAAa,qDAA6B,CAAA;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,iBAAiB,CAAA;AAEpD,kDAAkD;AAClD,eAAO,MAAM,kBAAkB,kBAAkB,CAAA;AACjD,qDAAqD;AACrD,eAAO,MAAM,qBAAqB,kBAAkB,CAAA;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,SAAS,CAAA;AAE5C,yFAAyF;AACzF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,iBAAiB,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAStF,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,6CAA6C,CAAA;AAEjF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAG9E,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,wBAAwB,QAAQ,CAAA;AAE7C,kFAAkF;AAClF,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,EAAE,CAIvE;AAED,8CAA8C;AAC9C,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,4DAA4D;AAC5D,eAAO,MAAM,gBAAgB,wBAAwB,CAAA;AACrD,6EAA6E;AAC7E,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAC/C,2BAA2B;AAC3B,eAAO,MAAM,iBAAiB,mBAAmB,CAAA;AAEjD,2DAA2D;AAC3D,eAAO,MAAM,sBAAsB,iDAAiD,CAAA;AACpF,qDAAqD;AACrD,eAAO,MAAM,qBAAqB,SAAS,CAAA;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,yBAAyB,CAAA;AACtD,sDAAsD;AACtD,eAAO,MAAM,aAAa,cAAc,CAAA;AACxC,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,eAAe,CAAA;AAE7C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mCAAmC,oCAAoC,CAAA;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,8BAA8B,QAAmB,CAAA;AAE9D,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAMhF;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,+BAA+B,QAAmB,CAAA;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,QAAmB,CAAA;AAEvD,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAMjF;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,0EACkD,CAAA;AAEzE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,iBAAiB,CAAA;AAEtD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,QAAS,CAAA;AAEvC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,QAAa,CAAA;AAE/C,0EAA0E;AAC1E,eAAO,MAAM,+BAA+B,IAAI,CAAA;AAEhD;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,QAAS,CAAA;AAEjD,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,IAAI,CAAA;AACpC,gEAAgE;AAChE,eAAO,MAAM,uBAAuB,OAAQ,CAAA;AAC5C;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAAsC,CAAA;AAEjG,gEAAgE;AAChE,eAAO,MAAM,+BAA+B,IAAI,CAAA;AAChD,eAAO,MAAM,8BAA8B,MAAM,CAAA;AACjD,0CAA0C;AAC1C,eAAO,MAAM,gBAAgB,QAAS,CAAA;AACtC,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,QAAiB,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,SAAU,CAAA;AAC7C,eAAO,MAAM,wBAAwB,4BAA4B,CAAA;AAEjE,0EAA0E;AAC1E,eAAO,MAAM,uBAAuB,OAAQ,CAAA;AAC5C,kDAAkD;AAClD,eAAO,MAAM,kBAAkB,QAAS,CAAA;AACxC,sDAAsD;AACtD,eAAO,MAAM,sBAAsB,SAAU,CAAA;AAE7C,+CAA+C;AAC/C,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAI7D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAI9D;AAED,6DAA6D;AAC7D,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAE7D;AAED,yDAAyD;AACzD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,4DAA4D;AAC5D,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAEnE;AAED,gFAAgF;AAChF,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,0BAA0B,CAMhG;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAIpE;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,EAC/E,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GACxB,MAAM,CAQR"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { LlmModelInfo, LlmResolvedModelInfo } from '@deepseek-ai/dsh-llm';
|
|
2
|
+
import { type CodexWireCapabilities } from '../shared/model-catalog.ts';
|
|
3
|
+
import type { CodexCatalogEntry } from './codex-catalog.ts';
|
|
4
|
+
import type { SubscriptionPreferenceStore } from './preferences.ts';
|
|
5
|
+
export declare const PROVIDER_ID: "codex-chatgpt";
|
|
6
|
+
export declare const PROVIDER_NAME: "Codex\uFF08ChatGPT \u8BA2\u9605\uFF09";
|
|
7
|
+
export declare function listCodexModels(preferences?: SubscriptionPreferenceStore, live?: readonly CodexCatalogEntry[]): LlmModelInfo[];
|
|
8
|
+
export declare function resolveCodexModel(model: string, preferences?: SubscriptionPreferenceStore, live?: readonly CodexCatalogEntry[]): LlmResolvedModelInfo;
|
|
9
|
+
/**
|
|
10
|
+
* Whether this line may state a tool change in the history instead of rewriting
|
|
11
|
+
* the head.
|
|
12
|
+
*
|
|
13
|
+
* `in-history` rather than `addition-only`: this wire has an `additional_tools`
|
|
14
|
+
* item to add a tool but nothing to withdraw one, so a removal has to keep its
|
|
15
|
+
* declaration and travel as a note. Deleting the declaration would shorten the
|
|
16
|
+
* head and throw the cached prefix away, which is the cost this mode exists to
|
|
17
|
+
* avoid.
|
|
18
|
+
*
|
|
19
|
+
* `DSH_CODEX_TOOL_UPDATE=0` turns it off for one account without a code change,
|
|
20
|
+
* the same escape hatch kimi-code carries for its own gate.
|
|
21
|
+
*
|
|
22
|
+
* @returns the mode to declare, or undefined when every request must restate the
|
|
23
|
+
* complete tool list.
|
|
24
|
+
*/
|
|
25
|
+
export declare function codexToolUpdateMode(): 'in-history' | undefined;
|
|
26
|
+
/** Record a refusal, so every later request restates the complete tool list. */
|
|
27
|
+
export declare function disableCodexToolUpdate(): void;
|
|
28
|
+
/** Clear the latch. Only tests and a process restart call this. */
|
|
29
|
+
export declare function resetCodexToolUpdateLatch(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Resolve the wire capabilities of one model.
|
|
32
|
+
*
|
|
33
|
+
* The live listing outranks the shipped table, because the backend is the
|
|
34
|
+
* authority on what this plan currently serves. A live entry that states no
|
|
35
|
+
* Lite flag has said nothing about it, so the shipped table answers then - and
|
|
36
|
+
* a model neither table knows is not Lite.
|
|
37
|
+
*
|
|
38
|
+
* @param model - the model id.
|
|
39
|
+
* @param live - the live listing this call resolved against, when there is one.
|
|
40
|
+
* @returns the capabilities for that model.
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveCodexWireCapabilities(model: string, live?: readonly CodexCatalogEntry[]): CodexWireCapabilities;
|
|
43
|
+
//# sourceMappingURL=model-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../src/host/model-catalog.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAE9E,OAAO,EAA+K,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACpP,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAEnE,eAAO,MAAM,WAAW,iBAA4B,CAAA;AACpD,eAAO,MAAM,aAAa,EAAG,uCAA4B,CAAA;AAEzD,wBAAgB,eAAe,CAC7B,WAAW,CAAC,EAAE,2BAA2B,EACzC,IAAI,CAAC,EAAE,SAAS,iBAAiB,EAAE,GAClC,YAAY,EAAE,CA0BhB;AAOD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,2BAA2B,EACzC,IAAI,CAAC,EAAE,SAAS,iBAAiB,EAAE,GAClC,oBAAoB,CAsDtB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,GAAG,SAAS,CAQ9D;AAWD,gFAAgF;AAChF,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C;AAED,mEAAmE;AACnE,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,SAAS,iBAAiB,EAAE,GAClC,qBAAqB,CASvB"}
|