@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,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static facts about the OpenDesign subscription API.
|
|
3
|
+
*
|
|
4
|
+
* The upstream is the OpenDesign link gateway, an OpenAI-compatible endpoint
|
|
5
|
+
* fronting the models a plan's credits can spend. Authentication is a static
|
|
6
|
+
* API key in `Authorization: Bearer`, created in the OpenDesign Cloud console
|
|
7
|
+
* (workspace → API keys): there is no OAuth flow here and nothing expires.
|
|
8
|
+
*
|
|
9
|
+
* Evidence for every constant is in docs/opendesign-line-plan.md; the short
|
|
10
|
+
* version: the gateway host and its `/v1` OpenAI spelling come from the Cloud
|
|
11
|
+
* console's quick-setup bundle (it composes `{link}/v1` for OpenAI clients and
|
|
12
|
+
* recommends Chat Completions for DeepSeek Harness), and each protocol endpoint
|
|
13
|
+
* was probed unauthenticated and answered the expected 401 envelope.
|
|
14
|
+
*
|
|
15
|
+
* The model table below is transcribed from the public, unauthenticated price
|
|
16
|
+
* list — id spellings, display names where the pricing page publishes them, and
|
|
17
|
+
* USD-per-1M-token prices. It carries NO context windows: the gateway does not
|
|
18
|
+
* publish them to an API key, so a model's window is the line default until the
|
|
19
|
+
* user overrides it or a live catalog entry states one. The table is a fallback,
|
|
20
|
+
* not a ceiling: a model the live catalog discovers is adopted with what that
|
|
21
|
+
* listing published rather than hidden.
|
|
22
|
+
*/
|
|
23
|
+
export declare const PROVIDER_ID = "opendesign";
|
|
24
|
+
export declare const PROVIDER_NAME = "OpenDesign";
|
|
25
|
+
/**
|
|
26
|
+
* Default gateway base URL, OpenAI protocol spelling (the `/v1` suffix is part
|
|
27
|
+
* of it; the Anthropic spelling is the bare host and is not what this line
|
|
28
|
+
* speaks). Overridable per deployment and per account.
|
|
29
|
+
*/
|
|
30
|
+
export declare const DEFAULT_BASE_URL = "https://amr-link.open-design.ai/v1";
|
|
31
|
+
/** Public, unauthenticated price list; the shipped table's source. */
|
|
32
|
+
export declare const MODEL_PRICES_URL = "https://amr-api.open-design.ai/api/v1/public/model-prices";
|
|
33
|
+
/**
|
|
34
|
+
* The AMR control-plane base: device authorization and the wallet balance live
|
|
35
|
+
* under it. The device flow's contract is probed live (2026-10-21) and pinned
|
|
36
|
+
* by test/opendesign-oauth.test.ts; the wallet read's shape comes from the
|
|
37
|
+
* open-source daemon's reader (apps/daemon/src/integrations/vela-wallet.ts,
|
|
38
|
+
* nexu-io/open-design) plus issue #8870's field report.
|
|
39
|
+
*/
|
|
40
|
+
export declare const AMR_API_BASE = "https://amr-api.open-design.ai/api/v1";
|
|
41
|
+
/** Device-authorization endpoints under {@link AMR_API_BASE}. */
|
|
42
|
+
export declare const DEVICE_AUTHORIZATIONS_PATH = "/cli/device-authorizations";
|
|
43
|
+
export declare const WALLET_BALANCE_PATH = "/wallet/balance";
|
|
44
|
+
/**
|
|
45
|
+
* The account's plan + credits summary.
|
|
46
|
+
*
|
|
47
|
+
* The only endpoint that states the paid tier: `/me` carries a `plan` field, but
|
|
48
|
+
* it answers `free` for a subscribed account (probed 2026-10-21 against a Go
|
|
49
|
+
* account whose billing period was active), so it is a rough profile flag and
|
|
50
|
+
* never the tier. This one reports `membershipTier` plus the credit buckets the
|
|
51
|
+
* plan grants, the amounts consumed, and the current billing period.
|
|
52
|
+
*/
|
|
53
|
+
export declare const BILLING_SUMMARY_PATH = "/billing/summary";
|
|
54
|
+
/**
|
|
55
|
+
* The workspace the signed-in account is CURRENTLY on.
|
|
56
|
+
*
|
|
57
|
+
* This is what the console itself reads to pick "the active workspace": its
|
|
58
|
+
* response object carries `activeWorkspaceId` beside `workspaceType` and `role`.
|
|
59
|
+
* It is the first place the coding-plan read looks for an id, because it answers
|
|
60
|
+
* "where is this account right now" rather than "where could it go".
|
|
61
|
+
*/
|
|
62
|
+
export declare const CURRENT_WORKSPACE_PATH = "/workspaces/current";
|
|
63
|
+
/**
|
|
64
|
+
* The workspace list: the FALLBACK source of that id.
|
|
65
|
+
*
|
|
66
|
+
* `GET {amr}/workspaces` with the same control key answers every workspace the
|
|
67
|
+
* account can see. It is only consulted when {@link CURRENT_WORKSPACE_PATH} does
|
|
68
|
+
* not state an id — a listing describes what the account could switch to, while
|
|
69
|
+
* the coding-plan read needs the one workspace it is on. The device flow returns
|
|
70
|
+
* neither, so these two reads are the only way to learn an id at all.
|
|
71
|
+
*/
|
|
72
|
+
export declare const WORKSPACES_PATH = "/workspaces";
|
|
73
|
+
/**
|
|
74
|
+
* The Design Plan's real allowance, per workspace: the 5-hour and 7-day windows
|
|
75
|
+
* the console draws.
|
|
76
|
+
*
|
|
77
|
+
* Appended to `{WORKSPACES_PATH}/{workspaceId}`. It is the only surface of this
|
|
78
|
+
* line that states a bounded window — `/billing/summary` states credits and the
|
|
79
|
+
* tier but never a rolling allowance — and it authenticates with the control key
|
|
80
|
+
* as a Bearer token plus `x-vela-workspace-id`, exactly like the wallet read.
|
|
81
|
+
* The console itself calls it with a browser session, so a control-key Bearer is
|
|
82
|
+
* unverified: a refusal is reported as data, never as a reason to guess.
|
|
83
|
+
*/
|
|
84
|
+
export declare const CODING_PLAN_USAGE_SUFFIX = "/billing/coding-plan-usage";
|
|
85
|
+
/**
|
|
86
|
+
* What the create call says about this client. The service stores host /
|
|
87
|
+
* profile / cliVersion per authorization (its console lists devices by them);
|
|
88
|
+
* the profile vocabulary is 'prod' | 'test' | 'feature-test' | 'local' per the
|
|
89
|
+
* open-source daemon, and this line only ever speaks to prod.
|
|
90
|
+
*/
|
|
91
|
+
export declare const DEVICE_CLIENT_PROFILE = "prod";
|
|
92
|
+
export declare const DEVICE_CLIENT_NAME = "dsh-multi-provider";
|
|
93
|
+
/** Conservative context capacity for a model no catalog describes. */
|
|
94
|
+
export declare const DEFAULT_CONTEXT_WINDOW = 128000;
|
|
95
|
+
/**
|
|
96
|
+
* Per-request output budget when the caller states none.
|
|
97
|
+
*
|
|
98
|
+
* A budget, not a ceiling: the harness reserves it as completion room before it
|
|
99
|
+
* compacts, so this decides how much of the window stays available. 64k keeps
|
|
100
|
+
* the reserve far below the compaction ratio while leaving room for a
|
|
101
|
+
* tool-calling agent's longest turn.
|
|
102
|
+
*/
|
|
103
|
+
export declare const DEFAULT_MAX_TOKENS = 64000;
|
|
104
|
+
/**
|
|
105
|
+
* Streams one account may keep open at once; `0` lifts the cap.
|
|
106
|
+
*
|
|
107
|
+
* The cheapest published plan states "10 concurrent tasks"
|
|
108
|
+
* (https://open-design.ai/pricing/, 2026-10-21), so 10 is the one entitlement
|
|
109
|
+
* every paid key definitely has; a deployment that knows its plan may raise it.
|
|
110
|
+
*/
|
|
111
|
+
export declare const DEFAULT_MAX_CONCURRENT_REQUESTS = 10;
|
|
112
|
+
/**
|
|
113
|
+
* Idle budget for one OpenDesign stream — the default a fresh install starts
|
|
114
|
+
* from, overridable per account.
|
|
115
|
+
*
|
|
116
|
+
* Strictly inside the transport's own 300 s stream timeout; see
|
|
117
|
+
* `host/common/idle-watchdog.ts` for the measured basis.
|
|
118
|
+
*/
|
|
119
|
+
export declare const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 120000;
|
|
120
|
+
/** How long a quota refusal keeps one account out of rotation. */
|
|
121
|
+
export declare const POOL_COOLDOWN_MS: number;
|
|
122
|
+
/**
|
|
123
|
+
* One published model entry.
|
|
124
|
+
*
|
|
125
|
+
* `contextWindow` and `maxTokens` are the VENDOR's published figures, not a
|
|
126
|
+
* promise about this gateway's clamp: no OpenDesign endpoint publishes a window
|
|
127
|
+
* to an API key (the control-plane catalog does, and the live sync prefers it).
|
|
128
|
+
* They are transcribed from this repository's already-sourced tables of the same
|
|
129
|
+
* vendor models — the command-code registry transcription
|
|
130
|
+
* (src/host/command-code/model-catalog.ts), the cline-pass table
|
|
131
|
+
* (src/host/cline-pass/types.ts), the Claude catalog
|
|
132
|
+
* (src/host/claude/model-catalog.ts) — because this line's fallback must not be a
|
|
133
|
+
* flat 128k for every model while those facts sit in the same repository.
|
|
134
|
+
* Per-model conflict resolution prefers the cline-pass table where the two
|
|
135
|
+
* disagree, since it is the OpenAI-chat gateway closest to this one. A live
|
|
136
|
+
* catalog entry and a user override both beat this table, so a clamp this
|
|
137
|
+
* transcription gets wrong costs one correction in the editor, not a permanent
|
|
138
|
+
* ceiling.
|
|
139
|
+
*
|
|
140
|
+
* `efforts` is the selectable reasoning ladder in DSH spelling (`none` is DSH's
|
|
141
|
+
* "do not think"; the command-code registry spells the same level `off` and it
|
|
142
|
+
* is translated here). An empty ladder with `reasoning: false` means no source
|
|
143
|
+
* publishes one for that model; a model with no row data at all keeps the
|
|
144
|
+
* line's default trio rather than being declared a non-reasoner.
|
|
145
|
+
*/
|
|
146
|
+
export interface OpenDesignModelMeta {
|
|
147
|
+
name: string;
|
|
148
|
+
/**
|
|
149
|
+
* USD per 1M tokens from the public price list. Shown, never fabricated: a
|
|
150
|
+
* model the price list does not carry simply has no figure.
|
|
151
|
+
*/
|
|
152
|
+
pricing?: {
|
|
153
|
+
input: number;
|
|
154
|
+
output: number;
|
|
155
|
+
};
|
|
156
|
+
/** The vendor's published context window; absent when no source documents one. */
|
|
157
|
+
contextWindow?: number;
|
|
158
|
+
/** The vendor's published output ceiling; absent when no source documents one. */
|
|
159
|
+
maxTokens?: number;
|
|
160
|
+
/**
|
|
161
|
+
* Selectable reasoning levels, least to greatest, in DSH spelling. Absent
|
|
162
|
+
* means "use the line default"; an empty array means the model exposes none.
|
|
163
|
+
*/
|
|
164
|
+
efforts?: readonly string[];
|
|
165
|
+
/** Default reasoning level; omitted leaves the host's own default in place. */
|
|
166
|
+
defaultEffort?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Whether the model takes an effort knob at all. Absent means yes; `false`
|
|
169
|
+
* marks the rows whose source publishes no ladder.
|
|
170
|
+
*/
|
|
171
|
+
reasoning?: boolean;
|
|
172
|
+
/** Accepted input modalities, as the source table declares them. */
|
|
173
|
+
input: readonly string[];
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The subscription's models at release time, keyed by wire id.
|
|
177
|
+
*
|
|
178
|
+
* Id spellings and prices are transcribed from MODEL_PRICES_URL (fetched
|
|
179
|
+
* 2026-11-07, 41 entries, all chat models — the plan's image models are priced
|
|
180
|
+
* per call and are not in it). A variant the list prices but no other source
|
|
181
|
+
* describes separately (`deepseek-v4.1-flash-eco`, `gpt-6.1-terra`, `hy4`,
|
|
182
|
+
* `kimi-k3.1-pro`, added 2026-11-07) transcribes only its price from that list;
|
|
183
|
+
* its window, output cap, modalities and ladder are inherited from the sibling
|
|
184
|
+
* row of the same family, which is the rule `deepseek-v4-flash-vision-exp`
|
|
185
|
+
* already follows. Display names use the pricing page's spelling
|
|
186
|
+
* where that page lists the model (https://open-design.ai/pricing/) and are
|
|
187
|
+
* derived from the id otherwise; the live catalog's own name wins once one is
|
|
188
|
+
* read. Windows, output caps, modalities and ladders come from the sibling
|
|
189
|
+
* tables named on {@link OpenDesignModelMeta}; the live control-plane catalog
|
|
190
|
+
* (which does publish `metadata.contextWindowTokens`) overrides them when read.
|
|
191
|
+
*/
|
|
192
|
+
export declare const MODEL_CATALOG: Readonly<Record<string, OpenDesignModelMeta>>;
|
|
193
|
+
/** Subscription models current at release time; the live catalog extends this. */
|
|
194
|
+
export declare const DEFAULT_MODELS: readonly string[];
|
|
195
|
+
/**
|
|
196
|
+
* The effort ladder a model with no published ladder is advertised with.
|
|
197
|
+
*
|
|
198
|
+
* The OpenAI trio every compatible gateway accepts; an input outside it is a
|
|
199
|
+
* 400 on some gateways, so the default stays deliberately small. A model whose
|
|
200
|
+
* own row publishes a ladder uses that instead.
|
|
201
|
+
*/
|
|
202
|
+
export declare const DEFAULT_EFFORTS: readonly string[];
|
|
203
|
+
/** Published entry for one model id, if the shipped table knows it. */
|
|
204
|
+
export declare function catalogEntry(model: string): OpenDesignModelMeta | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* One model as the live catalog describes it, after merging the shipped table,
|
|
207
|
+
* the last gateway listing and any per-model override.
|
|
208
|
+
*/
|
|
209
|
+
export interface OpenDesignModelInfo {
|
|
210
|
+
id: string;
|
|
211
|
+
displayName: string;
|
|
212
|
+
contextWindow: number;
|
|
213
|
+
maxTokens: number;
|
|
214
|
+
reasoning: boolean;
|
|
215
|
+
/** Selectable effort ladder; empty when the model exposes none. */
|
|
216
|
+
efforts: readonly string[];
|
|
217
|
+
/** Default level, present only when it belongs to the effective ladder. */
|
|
218
|
+
defaultEffort?: string;
|
|
219
|
+
input: readonly string[];
|
|
220
|
+
pricing?: {
|
|
221
|
+
input: number;
|
|
222
|
+
output: number;
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
/** One model's metadata as the last gateway listing published it. */
|
|
226
|
+
export interface OpenDesignDiscoveredModel {
|
|
227
|
+
name?: string;
|
|
228
|
+
contextWindow?: number;
|
|
229
|
+
maxTokens?: number;
|
|
230
|
+
input?: string[];
|
|
231
|
+
reasoning?: boolean;
|
|
232
|
+
/** Selectable effort levels, when the listing publishes them. */
|
|
233
|
+
efforts?: string[];
|
|
234
|
+
}
|
|
235
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/opendesign/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-token-store.d.ts","sourceRoot":"","sources":["../../../src/host/platform-token-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAKlD,wBAAgB,wBAAwB,CAAC,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAAG,UAAU,CAKjG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SubscriptionPreferencesDto, SubscriptionPreferencesUpdateDto } from '../shared/contracts.ts';
|
|
2
|
+
export interface SubscriptionPreferenceStore {
|
|
3
|
+
status(): SubscriptionPreferencesDto;
|
|
4
|
+
update(patch: SubscriptionPreferencesUpdateDto): Promise<SubscriptionPreferencesDto>;
|
|
5
|
+
watch(callback: (next: SubscriptionPreferencesDto, prev: SubscriptionPreferencesDto) => void | Promise<void>): () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* {@link SubscriptionPreferenceStore} plus the one-shot load of the
|
|
9
|
+
* plugin-owned fallback file. A store bound to a settings namespace has nothing
|
|
10
|
+
* to load, so its `hydrate` resolves immediately.
|
|
11
|
+
*/
|
|
12
|
+
export interface PreferenceStoreHandle extends SubscriptionPreferenceStore {
|
|
13
|
+
/** Read the fallback document once; later reads are no-ops. */
|
|
14
|
+
hydrate(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Bind the preferences to the settings namespace when the harness still offers
|
|
18
|
+
* the register seam, and to the plugin-owned JSON document when it does not
|
|
19
|
+
* (harness 0.1.7 replaced the seam with Config-field forms).
|
|
20
|
+
* @param settings - Live `ctx.settings` service of either harness generation.
|
|
21
|
+
*/
|
|
22
|
+
export declare function registerPreferenceStore(settings?: unknown): PreferenceStoreHandle;
|
|
23
|
+
export declare class PreferenceError extends Error {
|
|
24
|
+
constructor(message: string);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=preferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../../src/host/preferences.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,2BAA2B;IAC1C,MAAM,IAAI,0BAA0B,CAAA;IACpC,MAAM,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;IACpF,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,EAAE,IAAI,EAAE,0BAA0B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,CAAA;CAC1H;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAsB,SAAQ,2BAA2B;IACxE,+DAA+D;IAC/D,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACzB;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,qBAAqB,CA+CjF;AAqID,qBAAa,eAAgB,SAAQ,KAAK;gBAC5B,OAAO,EAAE,MAAM;CAG5B"}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import net from 'node:net';
|
|
2
|
+
import tls from 'node:tls';
|
|
3
|
+
import { buildConnector } from 'undici';
|
|
4
|
+
import type { SubscriptionPreferencesDto } from '../shared/contracts.ts';
|
|
5
|
+
export type FetchLike = typeof fetch;
|
|
6
|
+
/**
|
|
7
|
+
* The ProxyAgent constructor options for one proxy URL.
|
|
8
|
+
*
|
|
9
|
+
* `allowH2` is stated only when a caller asks to pin HTTP/1.1: ProxyAgent
|
|
10
|
+
* forwards whatever it is given into the per-origin Agent, and `allowH2: false`
|
|
11
|
+
* is what keeps h2 out of the tunnel's ALPN offer. Every other caller gets the
|
|
12
|
+
* option object it had before, byte for byte.
|
|
13
|
+
*/
|
|
14
|
+
export declare function proxyAgentOptions(uri: string, allowH2?: boolean, headersTimeoutMs?: number): {
|
|
15
|
+
uri: string;
|
|
16
|
+
connectTimeout: number;
|
|
17
|
+
allowH2?: false;
|
|
18
|
+
headersTimeout?: number;
|
|
19
|
+
};
|
|
20
|
+
/** The connector contract undici's Client accepts for its `connect` option. */
|
|
21
|
+
type Connector = ReturnType<typeof buildConnector>;
|
|
22
|
+
/**
|
|
23
|
+
* A connector that offers no ALPN at all.
|
|
24
|
+
*
|
|
25
|
+
* This is available to callers that deliberately need a TLS hello without ALPN;
|
|
26
|
+
* undici's built-in connector otherwise advertises `http/1.1`. Offering nothing
|
|
27
|
+
* does not change the protocol spoken when the server falls back to HTTP/1.1.
|
|
28
|
+
*
|
|
29
|
+
* SNI is set explicitly because undici may hand the connector an empty
|
|
30
|
+
* `servername`; callers can supply the target hostname as a fallback.
|
|
31
|
+
*
|
|
32
|
+
* HTTP targets keep a plain TCP connect -- the ALPN question only exists for TLS.
|
|
33
|
+
* `connectTls` / `connectTcp` are the seams that keep the shape testable.
|
|
34
|
+
*/
|
|
35
|
+
export declare function buildNativeConnector(options?: {
|
|
36
|
+
connectTls?: typeof tls.connect;
|
|
37
|
+
connectTcp?: typeof net.connect;
|
|
38
|
+
timeoutMs?: number;
|
|
39
|
+
}): Connector;
|
|
40
|
+
/**
|
|
41
|
+
* Drop headers before the request is written.
|
|
42
|
+
*
|
|
43
|
+
* `fetch` adds `sec-fetch-mode: cors` and `accept-language: *` to every request
|
|
44
|
+
* and offers no way to suppress a header it adds itself. The dispatcher is the
|
|
45
|
+
* seam it hands the header list to, so a consumer that imitates a non-browser
|
|
46
|
+
* client can remove them there. The wrapped dispatcher keeps the inner agent's
|
|
47
|
+
* pool: this is a filter, not a new connection pool.
|
|
48
|
+
*/
|
|
49
|
+
export declare function stripDispatchHeaders<T extends object>(dispatcher: T, headers: readonly string[]): T;
|
|
50
|
+
export declare function normalizeProxyUrl(rawUrl: string): string;
|
|
51
|
+
export declare function parseWindowsProxyRegistry(stdout: string): string | null;
|
|
52
|
+
export declare function parseMacOsScutilProxy(stdout: string): string | null;
|
|
53
|
+
export interface ParseEnvProxyOptions {
|
|
54
|
+
/**
|
|
55
|
+
* `$DSH_HOME/.env` consulted after the process environment; `null` disables
|
|
56
|
+
* the file fallback so a caller (or a test) never reads configuration behind
|
|
57
|
+
* the injected environment's back.
|
|
58
|
+
*/
|
|
59
|
+
envFile?: string | null;
|
|
60
|
+
}
|
|
61
|
+
export declare function parseEnvProxy(env?: Record<string, string | undefined>, options?: ParseEnvProxyOptions): string | null;
|
|
62
|
+
export interface ParseNoProxyOptions {
|
|
63
|
+
/**
|
|
64
|
+
* `$DSH_HOME/.env`, consulted after the process environment; `null` disables
|
|
65
|
+
* the file fallback, exactly like {@link ParseEnvProxyOptions}.
|
|
66
|
+
*/
|
|
67
|
+
envFile?: string | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The raw `NO_PROXY` list, or an empty string when none is configured.
|
|
71
|
+
*
|
|
72
|
+
* Read next to the proxy itself on purpose: a proxy that a line is *told* to use
|
|
73
|
+
* and a bypass list that lives somewhere else are how "the local gateway
|
|
74
|
+
* suddenly goes through Clash" happens.
|
|
75
|
+
*/
|
|
76
|
+
export declare function parseNoProxy(env?: Record<string, string | undefined>, options?: ParseNoProxyOptions): string;
|
|
77
|
+
/**
|
|
78
|
+
* Whether a host is loopback, and therefore never worth a proxy hop.
|
|
79
|
+
*
|
|
80
|
+
* The whole `127.0.0.0/8` block, not just `127.0.0.1`: a second loopback alias
|
|
81
|
+
* is a normal way to run a local gateway, and a proxy cannot reach it any
|
|
82
|
+
* better than the process itself can.
|
|
83
|
+
*/
|
|
84
|
+
export declare function isLoopbackHostname(hostname: string): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Standard `NO_PROXY` matching: `*`, exact hosts, domain suffixes, `host:port`.
|
|
87
|
+
*
|
|
88
|
+
* Deliberately not CIDR: a proxy configured for this plugin is a local GUI
|
|
89
|
+
* proxy, and the entries that matter are the ones a user types.
|
|
90
|
+
*/
|
|
91
|
+
export declare function noProxyBypasses(hostname: string, port: string, list: string): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Whether a request target must skip the proxy.
|
|
94
|
+
*
|
|
95
|
+
* Loopback first: a local gateway behind a proxy hop is a request the proxy has
|
|
96
|
+
* to refuse (or worse, forwards to itself), and the plugin's own loopback reads
|
|
97
|
+
* already use a bare fetch for the same reason.
|
|
98
|
+
*/
|
|
99
|
+
export declare function shouldBypassProxy(target: URL | string, noProxyList?: string): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* GNOME's manual proxy, the Linux equivalent of the Windows registry read.
|
|
102
|
+
*
|
|
103
|
+
* `auto` is a PAC URL, which cannot be applied by posting through an agent, and
|
|
104
|
+
* `none` means no system proxy; both fall through to the environment.
|
|
105
|
+
*/
|
|
106
|
+
export declare function parseLinuxSystemProxy(read: (key: string) => string | null): string | null;
|
|
107
|
+
export declare function detectSystemProxy(platform?: NodeJS.Platform, env?: Record<string, string | undefined>, readSettings?: (key: string) => string | null): string | null;
|
|
108
|
+
/**
|
|
109
|
+
* The same detection, probed off the event loop.
|
|
110
|
+
*
|
|
111
|
+
* Route handlers await this instead of the synchronous form: a Windows registry
|
|
112
|
+
* read or a `scutil` call is a child process, and running it synchronously on
|
|
113
|
+
* the serving thread stalls every other request in flight.
|
|
114
|
+
*/
|
|
115
|
+
export declare function detectSystemProxyAsync(platform?: NodeJS.Platform, env?: Record<string, string | undefined>): Promise<string | null>;
|
|
116
|
+
/** Called with the proxy URL the first time detection reports one after a `null`. */
|
|
117
|
+
export type SystemProxyListener = (proxyUrl: string) => void;
|
|
118
|
+
export interface ProxyFetchOptions {
|
|
119
|
+
getPreferences: () => Pick<SubscriptionPreferencesDto, 'proxyMode' | 'customProxyUrl' | 'noProxy' | 'lineProxies'>;
|
|
120
|
+
baseFetch?: FetchLike;
|
|
121
|
+
systemProxyDetector?: () => string | null;
|
|
122
|
+
/**
|
|
123
|
+
* The `NO_PROXY` list, read per request (subject to the same TTL as the system
|
|
124
|
+
* proxy) so an edit takes effect without a restart. A test injects this rather
|
|
125
|
+
* than inheriting the machine's own bypass list.
|
|
126
|
+
*
|
|
127
|
+
* This is the DEPLOYMENT list (process environment, then `$DSH_HOME/.env`).
|
|
128
|
+
* The settings card's own list is read from `getPreferences().noProxy` and
|
|
129
|
+
* merged with it, so a user who types hosts in the card does not have to
|
|
130
|
+
* abandon the file, and the file does not silently replace the card.
|
|
131
|
+
*/
|
|
132
|
+
noProxyReader?: () => string;
|
|
133
|
+
logger?: Pick<Console, 'info' | 'warn' | 'error'>;
|
|
134
|
+
/**
|
|
135
|
+
* The proxied transport. Defaults to undici's own `fetch`; a test injects one
|
|
136
|
+
* so the "destroyed client" recovery below can be exercised without a proxy.
|
|
137
|
+
*/
|
|
138
|
+
proxyFetchFn?: FetchLike;
|
|
139
|
+
}
|
|
140
|
+
export declare class ProxyManager {
|
|
141
|
+
private readonly getPreferences;
|
|
142
|
+
private readonly baseFetch;
|
|
143
|
+
private readonly proxyFetchFn;
|
|
144
|
+
private readonly systemProxyDetector;
|
|
145
|
+
private readonly noProxyReader;
|
|
146
|
+
private readonly logger?;
|
|
147
|
+
private cachedSystemProxy;
|
|
148
|
+
private lastSystemProxyCheck;
|
|
149
|
+
private cachedNoProxy;
|
|
150
|
+
private lastNoProxyCheck;
|
|
151
|
+
private detected;
|
|
152
|
+
private readonly customDetectorProvided;
|
|
153
|
+
private inflightSystemProxyProbe;
|
|
154
|
+
private readonly proxyListeners;
|
|
155
|
+
private readonly agents;
|
|
156
|
+
/** One shaping wrapper per pooled dispatcher, so a pool keeps a stable identity. */
|
|
157
|
+
private readonly shaped;
|
|
158
|
+
constructor(options: ProxyFetchOptions);
|
|
159
|
+
private applyDetectedSystemProxy;
|
|
160
|
+
/**
|
|
161
|
+
* Non-blocking system proxy probe for the HTTP routes.
|
|
162
|
+
*
|
|
163
|
+
* A route that awaits this never stalls the serving thread on `reg.exe` or
|
|
164
|
+
* `scutil`. Concurrent callers share one in-flight probe, so a burst of
|
|
165
|
+
* requests costs one child process rather than one each. A caller that
|
|
166
|
+
* installed its own synchronous detector keeps the old path: this method
|
|
167
|
+
* cannot invent an async form for it.
|
|
168
|
+
*/
|
|
169
|
+
getSystemProxyAsync(force?: boolean): Promise<string | null>;
|
|
170
|
+
getSystemProxy(force?: boolean): string | null;
|
|
171
|
+
/**
|
|
172
|
+
* The active `NO_PROXY` list, re-read at most once per TTL.
|
|
173
|
+
*
|
|
174
|
+
* Two sources, one answer: the deployment list from {@link ProxyFetchOptions.noProxyReader}
|
|
175
|
+
* and the list the settings card stores in `getPreferences().noProxy`. Neither
|
|
176
|
+
* replaces the other, because the card is the discoverable place and the
|
|
177
|
+
* environment file is the deployment-level place.
|
|
178
|
+
*
|
|
179
|
+
* A reader that throws (an unreadable `$DSH_HOME/.env`) reads as "no bypass
|
|
180
|
+
* list", never as "bypass everything": the wrong guess in that direction would
|
|
181
|
+
* take an active proxy away from every line at once. The same applies to one
|
|
182
|
+
* source failing: the other source still answers.
|
|
183
|
+
*/
|
|
184
|
+
getNoProxyList(force?: boolean): string;
|
|
185
|
+
/** Both bypass sources, canonicalized and concatenated; each failure reads as empty. */
|
|
186
|
+
private readNoProxyList;
|
|
187
|
+
/**
|
|
188
|
+
* Observe the system proxy becoming known.
|
|
189
|
+
*
|
|
190
|
+
* A proxy that appears after startup — or a first detection that failed — otherwise leaves every
|
|
191
|
+
* consumer on the decision it made at load, because `null` reads the same for "no proxy" and for
|
|
192
|
+
* "detection failed".
|
|
193
|
+
*
|
|
194
|
+
* @param listener - called with the detected proxy URL; a throw from it is ignored.
|
|
195
|
+
* @returns the disposer that stops observing.
|
|
196
|
+
*/
|
|
197
|
+
onSystemProxyDetected(listener: SystemProxyListener): () => void;
|
|
198
|
+
/**
|
|
199
|
+
* The proxy one provider line actually uses.
|
|
200
|
+
*
|
|
201
|
+
* With a `line`, that line's own entry decides: an absent entry is the
|
|
202
|
+
* shipped `auto` default, so a fresh install keeps following the machine and
|
|
203
|
+
* a line a user never opened is not silently forced direct. Without a
|
|
204
|
+
* `line`, the retired shared pair answers — kept only so an older caller (or
|
|
205
|
+
* a deployment pinning the old field) still resolves to what it always did.
|
|
206
|
+
*
|
|
207
|
+
* @param line - Provider id whose entry should decide, or undefined for the
|
|
208
|
+
* legacy shared setting.
|
|
209
|
+
* @returns the proxy URL in force, or null for a direct connection.
|
|
210
|
+
*/
|
|
211
|
+
resolveActiveProxyUrl(line?: string): string | null;
|
|
212
|
+
private getOrCreateAgent;
|
|
213
|
+
/**
|
|
214
|
+
* The dispatcher for one credential's direct (unproxied) traffic.
|
|
215
|
+
*
|
|
216
|
+
* Node's global fetch pools every origin in one process-wide agent, so a
|
|
217
|
+
* credentialed request cannot be given a private connection through it. The
|
|
218
|
+
* pooled path therefore dispatches through undici's own fetch with an agent of
|
|
219
|
+
* its own; HTTP/1.1 stays the default, because that is what the global fetch
|
|
220
|
+
* this replaces would have spoken.
|
|
221
|
+
*/
|
|
222
|
+
private getOrCreateDirectAgent;
|
|
223
|
+
/** Store a dispatcher, retiring the oldest pool once the bound is reached. */
|
|
224
|
+
private remember;
|
|
225
|
+
/** Hand one request to a specific dispatcher through undici's fetch. */
|
|
226
|
+
private dispatchWith;
|
|
227
|
+
/**
|
|
228
|
+
* A fetch that follows this manager's proxy policy, with optional protocol and
|
|
229
|
+
* credential pins for one consumer.
|
|
230
|
+
*
|
|
231
|
+
* `allowH2: false` keeps TLS at HTTP/1.1 for callers that require it; the native
|
|
232
|
+
* `language_server` speaks HTTP/1.1, and the direct path this manager falls
|
|
233
|
+
* back to is Node's global fetch, which offers http/1.1 only - without the pin
|
|
234
|
+
* the same route would speak h2 behind a proxy and HTTP/1.1 without one.
|
|
235
|
+
*
|
|
236
|
+
* `credentialPools: true` gives every distinct credential its own connection
|
|
237
|
+
* pool on both paths, which is what keeps a multi-account rotation from being
|
|
238
|
+
* visible as one connection carrying several identities.
|
|
239
|
+
*/
|
|
240
|
+
createFetch(overrides?: {
|
|
241
|
+
/**
|
|
242
|
+
* The provider line this fetch speaks for.
|
|
243
|
+
*
|
|
244
|
+
* It decides BOTH the proxy in force and the dispatcher cache key: two
|
|
245
|
+
* lines configured with different proxies must never share one `ProxyAgent`,
|
|
246
|
+
* or the second line silently borrows the first one's tunnel.
|
|
247
|
+
*/
|
|
248
|
+
line?: string;
|
|
249
|
+
allowH2?: boolean;
|
|
250
|
+
credentialPools?: boolean;
|
|
251
|
+
/** Header names to drop before the request is written; see {@link stripDispatchHeaders}. */
|
|
252
|
+
stripHeaders?: readonly string[];
|
|
253
|
+
/** Offer no ALPN on unproxied connections. Proxied ones cannot: ProxyAgent owns their connector. */
|
|
254
|
+
omitAlpn?: boolean;
|
|
255
|
+
/** Response-header deadline for this consumer; other callers keep undici's default. */
|
|
256
|
+
headersTimeoutMs?: number;
|
|
257
|
+
}): FetchLike;
|
|
258
|
+
dispose(): void;
|
|
259
|
+
}
|
|
260
|
+
export {};
|
|
261
|
+
//# sourceMappingURL=proxy-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-manager.d.ts","sourceRoot":"","sources":["../../../src/host/proxy-manager.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LlmAdapter, type GenerateOptions, type LlmModelInfo, type LlmProviderInfo, type LlmResolvedModelInfo, type PreparedAdapterCall, type ResolvedRetryPolicy, type StreamChunk } from '@deepseek-ai/dsh-llm';
|
|
2
|
+
import type { ImageAttachmentRef } from '@deepseek-ai/dsh-attachment';
|
|
3
|
+
import { type PromptCacheOverride } from '../common/prompt-cache-policy.ts';
|
|
4
|
+
import { type AttachmentImageReader } from '../common/request-images.ts';
|
|
5
|
+
import { QianwenCredentialStore, QianwenSettingsStore } from './token-store.ts';
|
|
6
|
+
import { PROVIDER_ID, PROVIDER_NAME } from './types.ts';
|
|
7
|
+
export interface QianwenAdapterOptions {
|
|
8
|
+
fetchFn?: typeof fetch;
|
|
9
|
+
attachments?: AttachmentImageReader;
|
|
10
|
+
promptCache?: PromptCacheOverride;
|
|
11
|
+
}
|
|
12
|
+
export declare class QianwenTokenPlanAdapter extends LlmAdapter {
|
|
13
|
+
private readonly store;
|
|
14
|
+
private readonly settingsStore;
|
|
15
|
+
private readonly options;
|
|
16
|
+
/** 把主回合的 effort 带给压缩/时间线/评审等辅助请求(否则前缀缓存整段失效)。 */
|
|
17
|
+
private readonly effortMemory;
|
|
18
|
+
constructor(store?: QianwenCredentialStore, settingsStore?: QianwenSettingsStore, options?: QianwenAdapterOptions);
|
|
19
|
+
providerInfo(provider: string): LlmProviderInfo;
|
|
20
|
+
providerRetryPolicy(): ResolvedRetryPolicy;
|
|
21
|
+
imageRequestPricing(): undefined;
|
|
22
|
+
imageRequestTarget(_provider: string, _model: string, image: ImageAttachmentRef): import("../common/request-images.ts").CompatImageRequestTarget;
|
|
23
|
+
listModels(provider?: string): Promise<readonly LlmModelInfo[]>;
|
|
24
|
+
resolveModel(provider: string, model: string, signal?: AbortSignal): Promise<LlmResolvedModelInfo>;
|
|
25
|
+
prepareCall(provider: string, model: string, signal?: AbortSignal): Promise<PreparedAdapterCall>;
|
|
26
|
+
stream(options: GenerateOptions): AsyncIterable<StreamChunk>;
|
|
27
|
+
private requestStream;
|
|
28
|
+
}
|
|
29
|
+
export declare function readQianwenCacheHint(sessionId: string | undefined, settings: {
|
|
30
|
+
cacheEnabled: boolean;
|
|
31
|
+
cacheTtl: '5m' | '1h';
|
|
32
|
+
}): {
|
|
33
|
+
idleMs: number;
|
|
34
|
+
totalTokens: number;
|
|
35
|
+
} | null;
|
|
36
|
+
export { PROVIDER_ID, PROVIDER_NAME };
|
|
37
|
+
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/qianwen-token-plan/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAGV,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAQrE,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAIhG,OAAO,EAAgC,KAAK,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAEtG,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC/E,OAAO,EAAE,WAAW,EAAE,aAAa,EAAgD,MAAM,YAAY,CAAA;AAsBrG,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;IACtB,WAAW,CAAC,EAAE,qBAAqB,CAAA;IACnC,WAAW,CAAC,EAAE,mBAAmB,CAAA;CAClC;AAED,qBAAa,uBAAwB,SAAQ,UAAU;IACrD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAC9C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IACpD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuB;IAC/C,iDAAiD;IACjD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA4B;gBAEvD,KAAK,GAAE,sBAAqD,EAC5D,aAAa,GAAE,oBAAiD,EAChE,OAAO,GAAE,qBAA0B;IAOrC,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe;IAG/C,mBAAmB,IAAI,mBAAmB;IAC1C,mBAAmB,IAAI,SAAS;IAChC,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;IAGzE,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC;IAW/D,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAqBlG,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAG/F,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC;YAQpD,aAAa;CA+D7B;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE;IAAE,YAAY,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAS9K;AACD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { QianwenCacheStatsDto } from '../../shared/qianwen-token-plan-contracts.ts';
|
|
2
|
+
export interface QianwenCacheUsage {
|
|
3
|
+
inputTokens: number;
|
|
4
|
+
outputTokens: number;
|
|
5
|
+
cacheReadTokens: number;
|
|
6
|
+
cacheWriteTokens: number;
|
|
7
|
+
cacheWrite5mTokens: number;
|
|
8
|
+
cacheWrite1hTokens: number;
|
|
9
|
+
reasoningTokens: number;
|
|
10
|
+
encryptedReplays: number;
|
|
11
|
+
missingEncryptedContent: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function recordQianwenCacheUsage(usage: QianwenCacheUsage): void;
|
|
14
|
+
export declare function readQianwenCacheStats(): QianwenCacheStatsDto | undefined;
|
|
15
|
+
export declare function resetQianwenCacheStats(): void;
|
|
16
|
+
export declare function qianwenPromptTokens(usage: Pick<QianwenCacheUsage, 'inputTokens' | 'cacheReadTokens' | 'cacheWriteTokens'>): number;
|
|
17
|
+
//# sourceMappingURL=cache-stats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-stats.d.ts","sourceRoot":"","sources":["../../../../src/host/qianwen-token-plan/cache-stats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAA;AAExF,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,uBAAuB,EAAE,MAAM,CAAA;CAChC;AAiBD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAatE;AACD,wBAAgB,qBAAqB,IAAI,oBAAoB,GAAG,SAAS,CAExE;AACD,wBAAgB,sBAAsB,IAAI,IAAI,CAAoB;AAClE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,iBAAiB,GAAG,kBAAkB,CAAC,GAAG,MAAM,CAElI"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { QianwenConnectionDto } from '../../shared/qianwen-token-plan-contracts.ts';
|
|
2
|
+
import type { QianwenCredentialStore } from './token-store.ts';
|
|
3
|
+
/** Explicit user-triggered connectivity check; status polling never calls this. */
|
|
4
|
+
export declare function testQianwenConnection(store: QianwenCredentialStore, fetchFn?: typeof fetch): Promise<QianwenConnectionDto>;
|
|
5
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/host/qianwen-token-plan/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAA;AACxF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAM9D,mFAAmF;AACnF,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,sBAAsB,EAAE,OAAO,GAAE,OAAO,KAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAiBvI"}
|