@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,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cline account sign-in: WorkOS device authorization followed by Cline's token
|
|
3
|
+
* registration, plus the refresh chain.
|
|
4
|
+
*
|
|
5
|
+
* The official clients implement exactly this sequence (Cline repo
|
|
6
|
+
* `sdk/packages/core/src/auth/cline.ts` + `auth/provider-auth-registry.ts`):
|
|
7
|
+
*
|
|
8
|
+
* 1. `POST https://api.workos.com/user_management/authorize/device` with the
|
|
9
|
+
* public client id → `device_code`, `user_code`, `verification_uri_complete`;
|
|
10
|
+
* 2. the user confirms the code in a browser;
|
|
11
|
+
* 3. `POST https://api.workos.com/user_management/authenticate` polls the device
|
|
12
|
+
* grant → WorkOS `access_token` / `refresh_token`;
|
|
13
|
+
* 4. `POST {cline}/api/v1/auth/register` exchanges those for Cline's own session
|
|
14
|
+
* (access, rotating refresh, expiry, user info);
|
|
15
|
+
* 5. later, `POST {cline}/api/v1/auth/refresh` renews it.
|
|
16
|
+
*
|
|
17
|
+
* The chat bearer is `workos:<access>` — the prefix is part of the token the
|
|
18
|
+
* official clients send, not a display detail. See `formatClineApiKey` in the
|
|
19
|
+
* same repo.
|
|
20
|
+
*
|
|
21
|
+
* The constants below are transcribed from
|
|
22
|
+
* `sdk/packages/shared/src/runtime/cline-environment.ts` (production entry).
|
|
23
|
+
*
|
|
24
|
+
* @module dsh-multi-provider/cline-pass-oauth
|
|
25
|
+
*/
|
|
26
|
+
import { type ClinePassOAuthCredentials } from './token-store.ts';
|
|
27
|
+
export declare const CLINE_WORKOS_CLIENT_ID = "client_01K3A541FN8TA3EPPHTD2325AR";
|
|
28
|
+
export declare const CLINE_WORKOS_API_BASE = "https://api.workos.com";
|
|
29
|
+
export declare const CLINE_WORKOS_DEVICE_PATH = "/user_management/authorize/device";
|
|
30
|
+
export declare const CLINE_WORKOS_AUTHENTICATE_PATH = "/user_management/authenticate";
|
|
31
|
+
/** One WorkOS device authorization, as the card renders it. */
|
|
32
|
+
export interface ClinePassDeviceAuthorization {
|
|
33
|
+
deviceCode: string;
|
|
34
|
+
userCode: string;
|
|
35
|
+
verificationUri: string;
|
|
36
|
+
verificationUriComplete?: string;
|
|
37
|
+
expiresInSeconds: number;
|
|
38
|
+
pollIntervalSeconds: number;
|
|
39
|
+
}
|
|
40
|
+
/** A token/refresh failure with the HTTP facts a caller can judge. */
|
|
41
|
+
export declare class ClinePassOAuthError extends Error {
|
|
42
|
+
readonly status?: number;
|
|
43
|
+
readonly code?: string;
|
|
44
|
+
constructor(message: string, options?: {
|
|
45
|
+
status?: number;
|
|
46
|
+
code?: string;
|
|
47
|
+
cause?: unknown;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/** Whether a refresh failure means the session is gone and a sign-in is needed. */
|
|
51
|
+
export declare function isClinePassInvalidGrant(error: unknown): boolean;
|
|
52
|
+
/** The auth root for one chat base URL. */
|
|
53
|
+
export declare function clineAuthBaseURL(chatBaseURL: string): string;
|
|
54
|
+
/** One auth sub-path under the chat base. */
|
|
55
|
+
export declare function clineAuthURL(chatBaseURL: string, path: string): string;
|
|
56
|
+
/** Step 1: ask WorkOS for a device code. */
|
|
57
|
+
export declare function startClinePassDeviceAuth(fetchFn: typeof fetch, { signal, timeoutMs }?: {
|
|
58
|
+
signal?: AbortSignal;
|
|
59
|
+
timeoutMs?: number;
|
|
60
|
+
}): Promise<ClinePassDeviceAuthorization>;
|
|
61
|
+
/** Step 4: exchange WorkOS tokens for a Cline session. */
|
|
62
|
+
export declare function registerClinePassTokens(fetchFn: typeof fetch, { baseURL, accessToken, refreshToken, signal, timeoutMs, base, }: {
|
|
63
|
+
baseURL: string;
|
|
64
|
+
accessToken: string;
|
|
65
|
+
refreshToken: string;
|
|
66
|
+
signal?: AbortSignal;
|
|
67
|
+
timeoutMs?: number;
|
|
68
|
+
base?: Partial<ClinePassOAuthCredentials>;
|
|
69
|
+
}): Promise<ClinePassOAuthCredentials>;
|
|
70
|
+
/** Renew one Cline session. The refresh token rotates, so persist the result. */
|
|
71
|
+
export declare function refreshClinePassCredentials(fetchFn: typeof fetch, credentials: ClinePassOAuthCredentials, { baseURL, signal, timeoutMs, }: {
|
|
72
|
+
baseURL: string;
|
|
73
|
+
signal?: AbortSignal;
|
|
74
|
+
timeoutMs?: number;
|
|
75
|
+
}): Promise<ClinePassOAuthCredentials>;
|
|
76
|
+
/** Whether one session should be refreshed before its next use. */
|
|
77
|
+
export declare function clinePassNeedsRefresh(credentials: ClinePassOAuthCredentials, now: number): boolean;
|
|
78
|
+
/** One login flow, as the settings card renders it. */
|
|
79
|
+
export type ClinePassLoginStatus = 'idle' | 'pending' | 'complete' | 'failed' | 'cancelled';
|
|
80
|
+
export interface ClinePassLoginFlow {
|
|
81
|
+
id: string;
|
|
82
|
+
status: ClinePassLoginStatus;
|
|
83
|
+
userCode: string;
|
|
84
|
+
verificationUri: string;
|
|
85
|
+
expiresAt: number;
|
|
86
|
+
intervalSeconds: number;
|
|
87
|
+
error: string;
|
|
88
|
+
accountAlias: string;
|
|
89
|
+
}
|
|
90
|
+
export interface ClinePassLoginOptions {
|
|
91
|
+
fetchFn: typeof fetch;
|
|
92
|
+
/** The line's current chat base URL. */
|
|
93
|
+
baseURL(): string;
|
|
94
|
+
/** Persist a newly signed-in account; throws make the flow fail. */
|
|
95
|
+
onLogin(credentials: ClinePassOAuthCredentials): Promise<void>;
|
|
96
|
+
logger?: {
|
|
97
|
+
warn(message: string, ...args: unknown[]): void;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* One device-code sign-in at a time.
|
|
102
|
+
*
|
|
103
|
+
* Polling is driven by the card (`GET /login/status`): each request makes at
|
|
104
|
+
* most one WorkOS call, and only after the advertised interval has elapsed. A
|
|
105
|
+
* host restart therefore loses the pending flow rather than keeping a poll loop
|
|
106
|
+
* alive with no reader — the same contract the Step Code line uses.
|
|
107
|
+
*/
|
|
108
|
+
export declare class ClinePassLoginManager {
|
|
109
|
+
private readonly options;
|
|
110
|
+
private flow;
|
|
111
|
+
private sequence;
|
|
112
|
+
constructor(options: ClinePassLoginOptions);
|
|
113
|
+
/** Start a new flow, cancelling any previous one. */
|
|
114
|
+
begin({ signal }?: {
|
|
115
|
+
signal?: AbortSignal;
|
|
116
|
+
}): Promise<ClinePassLoginFlow>;
|
|
117
|
+
/** The latest flow, or null when this process never started one. */
|
|
118
|
+
current(): ClinePassLoginFlow | null;
|
|
119
|
+
/**
|
|
120
|
+
* Advance one flow and return its state.
|
|
121
|
+
*
|
|
122
|
+
* A flow the caller does not name is not advanced: two cards (or a stale one)
|
|
123
|
+
* cannot spend each other's polls.
|
|
124
|
+
*/
|
|
125
|
+
status(id: string, { signal, timeoutMs }?: {
|
|
126
|
+
signal?: AbortSignal;
|
|
127
|
+
timeoutMs?: number;
|
|
128
|
+
}): Promise<ClinePassLoginFlow>;
|
|
129
|
+
/** Abandon one flow; a late browser confirmation is then ignored. */
|
|
130
|
+
cancel(id: string): boolean;
|
|
131
|
+
/** Mark every flow cancelled for teardown. */
|
|
132
|
+
dispose(): void;
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/oauth.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** Which pipeline the gateway routed one response through. */
|
|
2
|
+
export type ClinePipeline = 'direct' | 'planner';
|
|
3
|
+
/** What one response says about how the gateway routed it. */
|
|
4
|
+
export interface RoutingFacts {
|
|
5
|
+
content: string | null;
|
|
6
|
+
toolCalls: unknown[];
|
|
7
|
+
usage: unknown;
|
|
8
|
+
pipeline: ClinePipeline | null;
|
|
9
|
+
canonicalSlug: string | null;
|
|
10
|
+
finalProvider: string | null;
|
|
11
|
+
finalProviderName: string | null;
|
|
12
|
+
fallbacks: string[];
|
|
13
|
+
plan: string;
|
|
14
|
+
/**
|
|
15
|
+
* First-party DeepSeek fingerprint, when the answer carries one.
|
|
16
|
+
*
|
|
17
|
+
* `provider_metadata.deepseek.systemFingerprint` is the only field that
|
|
18
|
+
* proves the answer came from first-party DeepSeek; the top-level
|
|
19
|
+
* `system_fingerprint` is minted by the gateway per request and says
|
|
20
|
+
* nothing about the upstream.
|
|
21
|
+
*/
|
|
22
|
+
fingerprint: string | null;
|
|
23
|
+
/** Whether the serving channel is the gateway's anonymous contributor route. */
|
|
24
|
+
anonymous: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The gateway wraps some answers in a `{ data: … }` envelope; unwrap it.
|
|
28
|
+
* @param json - raw decoded response body.
|
|
29
|
+
* @returns the OpenAI-shaped payload.
|
|
30
|
+
*/
|
|
31
|
+
export declare function unwrapEnvelope(json: unknown): Record<string, unknown>;
|
|
32
|
+
/** Turn any error-shaped value into display text. */
|
|
33
|
+
export declare function errorText(value: unknown): string;
|
|
34
|
+
/** Account authentication refusals, including responses with no useful body. */
|
|
35
|
+
export declare function isAuthenticationError(message: unknown, status?: number): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Read the routing facts out of one completed gateway response.
|
|
38
|
+
* @param json - raw decoded response body (enveloped or not).
|
|
39
|
+
* @returns pipeline, canonical slug, chosen upstream and fallback list.
|
|
40
|
+
*/
|
|
41
|
+
export declare function parseRouting(json: unknown): RoutingFacts;
|
|
42
|
+
/** Whether a value is a non-null object. */
|
|
43
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
44
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/protocol.ts"],"names":[],"mappings":"AASA,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEhD,8DAA8D;AAC9D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,SAAS,EAAE,OAAO,EAAE,CAAA;IACpB,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAA;IAC9B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;;OAOG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,gFAAgF;IAChF,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKrE;AAED,qDAAqD;AACrD,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAShD;AAED,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAGhF;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,YAAY,CAuCxD;AAiED,4CAA4C;AAC5C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Cline Pass settings API.
|
|
3
|
+
*
|
|
4
|
+
* The surface is the same one every sibling line exposes — status, accounts,
|
|
5
|
+
* models — plus an ordinary model test, the official quota reading and the
|
|
6
|
+
* in-process request history. Upstream routing is owned by Cline.
|
|
7
|
+
*
|
|
8
|
+
* A status read never waits on Cline: it answers the cached quota snapshot and,
|
|
9
|
+
* when that snapshot is missing or older than the line's TTL, schedules one
|
|
10
|
+
* refresh behind the answer. The explicit refresh action still runs now, but
|
|
11
|
+
* through the same single flight, so the two cannot fan out twice at once.
|
|
12
|
+
*
|
|
13
|
+
* @module dsh-multi-provider/cline-pass-routes
|
|
14
|
+
*/
|
|
15
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
16
|
+
import { QuotaRefresh } from '../common/quota-refresh.ts';
|
|
17
|
+
import type { ClinePassAccountPool } from './account-pool.ts';
|
|
18
|
+
import type { ClinePassEngine } from './engine.ts';
|
|
19
|
+
import type { ClinePassStore } from './store.ts';
|
|
20
|
+
import type { ClinePassLoginManager } from './oauth.ts';
|
|
21
|
+
import { type ClinePassModelSettingsStore } from './token-store.ts';
|
|
22
|
+
import { openPlatformBrowser } from '../step-code/routes.ts';
|
|
23
|
+
import { type ClinePassWebStatus } from '../../shared/cline-pass-contracts.ts';
|
|
24
|
+
/**
|
|
25
|
+
* How long a quota snapshot may answer a status read before it is re-read.
|
|
26
|
+
*
|
|
27
|
+
* The card polls status, so this is what keeps the meters moving without a
|
|
28
|
+
* per-poll upstream call: a stale snapshot answers now and is replaced behind
|
|
29
|
+
* the answer.
|
|
30
|
+
*/
|
|
31
|
+
export declare const CLINE_PASS_QUOTA_TTL_MS: number;
|
|
32
|
+
export interface ClinePassRouteOptions {
|
|
33
|
+
settings: ClinePassModelSettingsStore;
|
|
34
|
+
accountPool: ClinePassAccountPool;
|
|
35
|
+
store: ClinePassStore;
|
|
36
|
+
engine: ClinePassEngine;
|
|
37
|
+
/** Proxy-aware fetch for account verification and quota reads. */
|
|
38
|
+
fetchFn: typeof fetch;
|
|
39
|
+
/** Device-code sign-in state, when the composition installed one. */
|
|
40
|
+
login?: ClinePassLoginManager;
|
|
41
|
+
/**
|
|
42
|
+
* Browser opener for `/login/start`; defaults to a no-op because the settings
|
|
43
|
+
* card opens the verification URL itself via `window.open`.
|
|
44
|
+
*/
|
|
45
|
+
openBrowser?: (url: string) => void;
|
|
46
|
+
serving(): boolean;
|
|
47
|
+
conflict(): string | null;
|
|
48
|
+
/**
|
|
49
|
+
* How old a cached quota snapshot may get before a status read refreshes it
|
|
50
|
+
* behind the answer; defaults to {@link CLINE_PASS_QUOTA_TTL_MS}.
|
|
51
|
+
*/
|
|
52
|
+
quotaTtlMs?: number;
|
|
53
|
+
}
|
|
54
|
+
/** Named browser opener for deployments that want the host to launch the verification URL. */
|
|
55
|
+
export declare const openClinePassBrowser: typeof openPlatformBrowser;
|
|
56
|
+
/**
|
|
57
|
+
* Assemble the whole status payload the Cline Pass tab renders.
|
|
58
|
+
*
|
|
59
|
+
* `quotaRefresh` is the single flight the caller refreshes through, when it has
|
|
60
|
+
* one: passing it is what lets the answer say a refresh is still running behind
|
|
61
|
+
* it. A caller that only reads (the management tools are one) omits it and gets
|
|
62
|
+
* the cache alone, which keeps a tool call from spending the line's quota reads.
|
|
63
|
+
*/
|
|
64
|
+
export declare function getClinePassWebStatus(options: ClinePassRouteOptions, quotaRefresh?: QuotaRefresh): Promise<ClinePassWebStatus>;
|
|
65
|
+
/** The route table, exported so the client and this file can be checked against each other. */
|
|
66
|
+
export declare const CLINE_PASS_ROUTES: {
|
|
67
|
+
readonly status: "GET";
|
|
68
|
+
readonly settings: "POST";
|
|
69
|
+
readonly accounts: "GET|POST";
|
|
70
|
+
readonly 'login/start': "POST";
|
|
71
|
+
readonly 'login/status': "GET";
|
|
72
|
+
readonly 'login/cancel': "POST";
|
|
73
|
+
readonly models: "GET|POST";
|
|
74
|
+
readonly 'models/test': "POST";
|
|
75
|
+
readonly 'models/visibility': "POST";
|
|
76
|
+
readonly 'models/visibility-all': "POST";
|
|
77
|
+
readonly 'models/context-window': "POST";
|
|
78
|
+
readonly 'catalog/refresh': "POST";
|
|
79
|
+
readonly 'catalog/search': "GET";
|
|
80
|
+
readonly 'catalog/add': "POST";
|
|
81
|
+
readonly usage: "GET|POST";
|
|
82
|
+
readonly history: "GET";
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Register the Cline Pass settings API under `/cline-pass/api`.
|
|
86
|
+
*
|
|
87
|
+
* Registered unconditionally: the card is how a user adds their first key, so
|
|
88
|
+
* gating it on winning the route would leave a contested id with no way to
|
|
89
|
+
* configure it at all.
|
|
90
|
+
*/
|
|
91
|
+
export declare function registerClinePassRoutes(ctx: Context, options: ClinePassRouteOptions): () => void;
|
|
92
|
+
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAwE,KAAK,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAEzI,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAcL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAA;AAgC7C;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,QAAgB,CAAA;AA8FpD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,2BAA2B,CAAA;IACrC,WAAW,EAAE,oBAAoB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,EAAE,eAAe,CAAA;IACvB,kEAAkE;IAClE,OAAO,EAAE,OAAO,KAAK,CAAA;IACrB,qEAAqE;IACrE,KAAK,CAAC,EAAE,qBAAqB,CAAA;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,OAAO,IAAI,OAAO,CAAA;IAClB,QAAQ,IAAI,MAAM,GAAG,IAAI,CAAA;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,8FAA8F;AAC9F,eAAO,MAAM,oBAAoB,4BAAsB,CAAA;AAEvD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,qBAAqB,EAC9B,YAAY,CAAC,EAAE,YAAY,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAiD7B;AAsBD,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAAS,CAAA;AAEvC;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,qBAAqB,GAAG,MAAM,IAAI,CAsfhG"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime observation state: the last catalog scan, quota reading, response
|
|
3
|
+
* routing facts and request history. Everything here is derived and in-memory.
|
|
4
|
+
* Configuration lives in the settings file instead (see `token-store.ts`).
|
|
5
|
+
*
|
|
6
|
+
* @module dsh-multi-provider/cline-pass-store
|
|
7
|
+
*/
|
|
8
|
+
import type { ClinePipeline } from './protocol.ts';
|
|
9
|
+
import type { ClinePassHistoryRowDto, ClinePassUsageDto } from '../../shared/cline-pass-contracts.ts';
|
|
10
|
+
/** Observed metadata for one model, unrelated to client-side routing control. */
|
|
11
|
+
export interface ClinePassModelObservation {
|
|
12
|
+
ok?: boolean;
|
|
13
|
+
pipeline?: ClinePipeline | null;
|
|
14
|
+
canonicalSlug?: string | null;
|
|
15
|
+
lastProvider?: string | null;
|
|
16
|
+
/** The last answer's first-party DeepSeek fingerprint, when it carried one. */
|
|
17
|
+
lastFingerprint?: string | null;
|
|
18
|
+
lastMs?: number;
|
|
19
|
+
lastError?: string;
|
|
20
|
+
}
|
|
21
|
+
/** One recorded model call. */
|
|
22
|
+
export interface ClinePassHistoryEntry extends Omit<ClinePassHistoryRowDto, 'usageReported' | 'usage'> {
|
|
23
|
+
/** Null means the gateway sent no usage frame, which is not a zero-cost call. */
|
|
24
|
+
usage?: {
|
|
25
|
+
inputTokens?: number;
|
|
26
|
+
outputTokens?: number;
|
|
27
|
+
cacheReadTokens?: number;
|
|
28
|
+
reasoningTokens?: number;
|
|
29
|
+
} | null;
|
|
30
|
+
code?: string;
|
|
31
|
+
}
|
|
32
|
+
/** What a caller supplies when recording a call; the store stamps the time. */
|
|
33
|
+
export type ClinePassHistoryInput = Pick<ClinePassHistoryEntry, 'model'> & Partial<Omit<ClinePassHistoryEntry, 'model' | 'ts'>>;
|
|
34
|
+
/** The last cached catalog scan. */
|
|
35
|
+
export interface ClinePassCatalogState {
|
|
36
|
+
ids: string[];
|
|
37
|
+
sources: string[];
|
|
38
|
+
models: Record<string, unknown>;
|
|
39
|
+
fetchedAt: number;
|
|
40
|
+
}
|
|
41
|
+
/** Create the observation store. */
|
|
42
|
+
export declare function createClinePassStore({ historyLimit }?: {
|
|
43
|
+
historyLimit?: number;
|
|
44
|
+
}): {
|
|
45
|
+
/** Observed metadata for one model (never undefined). */
|
|
46
|
+
metaOf(model: string): ClinePassModelObservation;
|
|
47
|
+
/** Every model with observed metadata. */
|
|
48
|
+
allMeta(): Array<ClinePassModelObservation & {
|
|
49
|
+
id: string;
|
|
50
|
+
}>;
|
|
51
|
+
/** Merge one response observation into a model's metadata. */
|
|
52
|
+
learn(model: string, patch: Partial<ClinePassModelObservation>): ClinePassModelObservation;
|
|
53
|
+
/** Append one request-history row (newest first, bounded). */
|
|
54
|
+
record(entry: ClinePassHistoryInput): void;
|
|
55
|
+
/** Adopt a changed retention budget from the settings file. */
|
|
56
|
+
setHistoryLimit(next: number): void;
|
|
57
|
+
/** Read request history, newest first. */
|
|
58
|
+
readHistory(limitParam?: number, model?: string): ClinePassHistoryEntry[];
|
|
59
|
+
/** Total rows retained, before any filter. */
|
|
60
|
+
historySize(): number;
|
|
61
|
+
/** Monotonic change counter, including replacements at the retention cap. */
|
|
62
|
+
historyRevision(): number;
|
|
63
|
+
/** The last cached official-catalog scan. */
|
|
64
|
+
catalog(): ClinePassCatalogState;
|
|
65
|
+
/** Replace the cached official-catalog scan. */
|
|
66
|
+
setCatalog(next: Omit<ClinePassCatalogState, "fetchedAt"> & {
|
|
67
|
+
fetchedAt?: number;
|
|
68
|
+
}): ClinePassCatalogState;
|
|
69
|
+
/** The last quota reading (never undefined). */
|
|
70
|
+
usage(): ClinePassUsageDto;
|
|
71
|
+
/** Replace the cached quota reading. */
|
|
72
|
+
setUsage(next: Pick<ClinePassUsageDto, "accounts">): ClinePassUsageDto;
|
|
73
|
+
};
|
|
74
|
+
export type ClinePassStore = ReturnType<typeof createClinePassStore>;
|
|
75
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/store.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,sCAAsC,CAAA;AAG7C,iFAAiF;AACjF,MAAM,WAAW,yBAAyB;IACxC,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,+EAA+E;IAC/E,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,+BAA+B;AAC/B,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,eAAe,GAAG,OAAO,CAAC;IACpG,iFAAiF;IACjF,KAAK,CAAC,EAAE;QACN,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,eAAe,CAAC,EAAE,MAAM,CAAA;QACxB,eAAe,CAAC,EAAE,MAAM,CAAA;KACzB,GAAG,IAAI,CAAA;IACR,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,+EAA+E;AAC/E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,GACpE,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,OAAO,GAAG,IAAI,CAAC,CAAC,CAAA;AAExD,oCAAoC;AACpC,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,EAAE,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,oCAAoC;AACpC,wBAAgB,oBAAoB,CAAC,EAAE,YAAoC,EAAE,GAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAO;IAWzG,yDAAyD;kBAC3C,MAAM,GAAG,yBAAyB;IAGhD,0CAA0C;eAC/B,KAAK,CAAC,yBAAyB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAG5D,8DAA8D;iBACjD,MAAM,SAAS,OAAO,CAAC,yBAAyB,CAAC,GAAG,yBAAyB;IAK1F,8DAA8D;kBAChD,qBAAqB,GAAG,IAAI;IA0B1C,+DAA+D;0BACzC,MAAM,GAAG,IAAI;IAKnC,0CAA0C;sDACG,qBAAqB,EAAE;IAMpE,8CAA8C;mBAC/B,MAAM;IAGrB,6EAA6E;uBAC1D,MAAM;IAGzB,6CAA6C;eAClC,qBAAqB;IAGhC,gDAAgD;qBAC/B,IAAI,CAAC,qBAAqB,EAAE,WAAW,CAAC,GAAG;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,qBAAqB;IAI1G,gDAAgD;aACvC,iBAAiB;IAG1B,wCAAwC;mBACzB,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG,iBAAiB;EAKzE;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import type { CredentialStore } from '../token-store.ts';
|
|
2
|
+
/**
|
|
3
|
+
* One stored Cline Pass API key.
|
|
4
|
+
*
|
|
5
|
+
* The gateway authenticates with a static key rather than the rotating OAuth
|
|
6
|
+
* pair most lines in this plugin store, so there is no refresh token and nothing
|
|
7
|
+
* expires. The key is host-only and never crosses to a browser; the settings
|
|
8
|
+
* card renders the alias and the account row, never this value.
|
|
9
|
+
*/
|
|
10
|
+
interface ClinePassCredentialBase {
|
|
11
|
+
/** User-chosen label so several accounts are distinguishable. */
|
|
12
|
+
alias?: string;
|
|
13
|
+
/** Unix milliseconds the credential was added to the pool. */
|
|
14
|
+
addedAt?: number;
|
|
15
|
+
/** Per-account gateway override; empty means the line's own base URL. */
|
|
16
|
+
baseURL?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A static API key, the shape the standalone `dsh-cline-pass` plugin used.
|
|
20
|
+
*
|
|
21
|
+
* Kept as a fallback: the official clients now sign in with WorkOS OAuth, but
|
|
22
|
+
* existing users may still hold a key, and a key has no refresh lifecycle.
|
|
23
|
+
*/
|
|
24
|
+
export interface ClinePassApiKeyCredentials extends ClinePassCredentialBase {
|
|
25
|
+
/** Absent on records written before the OAuth path existed. */
|
|
26
|
+
kind?: 'api-key';
|
|
27
|
+
/** Host-only bearer key. */
|
|
28
|
+
apiKey: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* One Cline account signed in through WorkOS device authorization.
|
|
32
|
+
*
|
|
33
|
+
* `access` is the raw WorkOS access token; the wire bearer is
|
|
34
|
+
* `workos:<access>` (Cline's own clients add that prefix). `refresh` rotates on
|
|
35
|
+
* every refresh, so it is persisted before the new access token is used.
|
|
36
|
+
*/
|
|
37
|
+
export interface ClinePassOAuthCredentials extends ClinePassCredentialBase {
|
|
38
|
+
kind: 'oauth';
|
|
39
|
+
access: string;
|
|
40
|
+
refresh: string;
|
|
41
|
+
/** Unix milliseconds the access token expires. */
|
|
42
|
+
expires: number;
|
|
43
|
+
/** Cline's stable user id, when the token registration returned one. */
|
|
44
|
+
accountId?: string;
|
|
45
|
+
email?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
metadata?: Record<string, unknown>;
|
|
48
|
+
}
|
|
49
|
+
export type ClinePassCredentials = ClinePassOAuthCredentials | ClinePassApiKeyCredentials;
|
|
50
|
+
/** Cline's own clients send OAuth access tokens with this prefix. */
|
|
51
|
+
export declare const CLINE_WORKOS_TOKEN_PREFIX = "workos:";
|
|
52
|
+
/** Whether one credential is an OAuth session rather than a static key. */
|
|
53
|
+
export declare function isOAuthCredentials(credentials: ClinePassCredentials): credentials is ClinePassOAuthCredentials;
|
|
54
|
+
/** The `Authorization: Bearer` value for one credential. */
|
|
55
|
+
export declare function bearerFor(credentials: ClinePassCredentials): string;
|
|
56
|
+
/** Stable identity two credentials share when they are the same Cline account. */
|
|
57
|
+
export declare function credentialsIdentity(credentials: ClinePassCredentials): string;
|
|
58
|
+
/** Unix milliseconds the credential expires, when it has an expiry. */
|
|
59
|
+
export declare function credentialsExpiresAt(credentials: ClinePassCredentials): number | undefined;
|
|
60
|
+
/** The user-facing label for one credential, when it states one. */
|
|
61
|
+
export declare function credentialsLabel(credentials: ClinePassCredentials): string | undefined;
|
|
62
|
+
/** Decode a JWT's `exp` claim, without trusting anything else in it. */
|
|
63
|
+
export declare function jwtExpiryMs(token: string): number | undefined;
|
|
64
|
+
/** One catalog entry, as the last successful scan published it. */
|
|
65
|
+
export interface ClinePassCatalogModel {
|
|
66
|
+
id: string;
|
|
67
|
+
name?: string;
|
|
68
|
+
contextWindow?: number;
|
|
69
|
+
maxTokens?: number;
|
|
70
|
+
reasoning?: boolean;
|
|
71
|
+
input?: string[];
|
|
72
|
+
efforts?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* Where this row came from. Missing means a legacy row: `cline-pass/*`
|
|
75
|
+
* counts as the official subscription list, anything else as gateway-only.
|
|
76
|
+
*/
|
|
77
|
+
origin?: 'official' | 'custom' | 'gateway';
|
|
78
|
+
}
|
|
79
|
+
/** Whether a catalog row belongs in the compact, built-in + official + added list. */
|
|
80
|
+
export declare function isListedClinePassCatalogModel(model: ClinePassCatalogModel): boolean;
|
|
81
|
+
/** The catalog rows to display/advertise, never the whole gateway search index. */
|
|
82
|
+
export declare function listedClinePassCatalogModels(settings: {
|
|
83
|
+
catalogModels: ClinePassCatalogModel[];
|
|
84
|
+
}): ClinePassCatalogModel[];
|
|
85
|
+
/**
|
|
86
|
+
* Everything this line stores besides credentials.
|
|
87
|
+
*
|
|
88
|
+
* `enabledModelIds === null` is "no filter": every catalogued model, including
|
|
89
|
+
* ones a later scan adds. An array is an explicit selection, and an empty one
|
|
90
|
+
* switches every model off. Modelling "all" as null rather than as an explicit
|
|
91
|
+
* all-ids list means a model the service adds later is not silently hidden by a
|
|
92
|
+
* selection made before it existed.
|
|
93
|
+
*/
|
|
94
|
+
export interface ClinePassModelSettings {
|
|
95
|
+
enabled: boolean;
|
|
96
|
+
baseURL: string;
|
|
97
|
+
enabledModelIds: string[] | null;
|
|
98
|
+
catalogModels: ClinePassCatalogModel[];
|
|
99
|
+
/** Models the route must not advertise even though it still knows them. */
|
|
100
|
+
hiddenModels: string[];
|
|
101
|
+
/** Per-model context-window override; absent uses the published window. */
|
|
102
|
+
contextWindowOverrides: Record<string, number>;
|
|
103
|
+
defaultContextWindow: number;
|
|
104
|
+
defaultMaxTokens: number;
|
|
105
|
+
maxConcurrentRequests: number;
|
|
106
|
+
streamIdleTimeoutMs: number;
|
|
107
|
+
historyLimit: number;
|
|
108
|
+
exposeCatalog: boolean;
|
|
109
|
+
/** Whether the `cline_pass_*` tools are registered on the next start. */
|
|
110
|
+
exposeTools: boolean;
|
|
111
|
+
}
|
|
112
|
+
export interface ClinePassPreferenceStore {
|
|
113
|
+
status(): ClinePassModelSettings;
|
|
114
|
+
read(): Promise<ClinePassModelSettings>;
|
|
115
|
+
update(patch: Partial<ClinePassModelSettings>): Promise<ClinePassModelSettings>;
|
|
116
|
+
}
|
|
117
|
+
export declare function credentialPath(): string;
|
|
118
|
+
export declare function modelSettingsPath(): string;
|
|
119
|
+
/** Validate one stored credential: an OAuth session or a static API key. */
|
|
120
|
+
export declare function parseClinePassCredentials(value: unknown): ClinePassCredentials;
|
|
121
|
+
/** Encrypted credential store for the single-key (pre-pool) configuration. */
|
|
122
|
+
export declare class FileCredentialStore {
|
|
123
|
+
private readonly filePath;
|
|
124
|
+
private readonly backend;
|
|
125
|
+
constructor(filePath?: string, backend?: CredentialStore<ClinePassCredentials>);
|
|
126
|
+
path(): string;
|
|
127
|
+
read(): Promise<ClinePassCredentials | null>;
|
|
128
|
+
write(credentials: ClinePassCredentials): Promise<void>;
|
|
129
|
+
clear(): Promise<void>;
|
|
130
|
+
}
|
|
131
|
+
/** Parse one whole settings document. */
|
|
132
|
+
export declare function parseClinePassModelSettings(value: unknown): ClinePassModelSettings;
|
|
133
|
+
/** The document a fresh install starts from. */
|
|
134
|
+
export declare function defaultClinePassModelSettings(): ClinePassModelSettings;
|
|
135
|
+
/**
|
|
136
|
+
* Model and routing settings, bound to a JSON file beside the encrypted
|
|
137
|
+
* credential store.
|
|
138
|
+
*
|
|
139
|
+
* The file is written atomically (temp + rename) so a crash mid-write leaves the
|
|
140
|
+
* previous document intact rather than a truncated one that reads as "reset all
|
|
141
|
+
* settings".
|
|
142
|
+
*/
|
|
143
|
+
export declare class ClinePassModelSettingsStore implements ClinePassPreferenceStore {
|
|
144
|
+
private readonly filePath;
|
|
145
|
+
private cached;
|
|
146
|
+
private loadPromise;
|
|
147
|
+
constructor(filePath?: string);
|
|
148
|
+
path(): string;
|
|
149
|
+
status(): ClinePassModelSettings;
|
|
150
|
+
/**
|
|
151
|
+
* Read the document at activation time, synchronously.
|
|
152
|
+
*
|
|
153
|
+
* The line has to decide whether to register its management tools before
|
|
154
|
+
* `apply()` returns: a tool list snapshotted by a running Session would not
|
|
155
|
+
* see a registration that landed a tick later. The file is small and plain
|
|
156
|
+
* JSON (only credentials are encrypted), so one sync read is the honest
|
|
157
|
+
* trade.
|
|
158
|
+
*/
|
|
159
|
+
readSync(): ClinePassModelSettings;
|
|
160
|
+
read(): Promise<ClinePassModelSettings>;
|
|
161
|
+
private load;
|
|
162
|
+
write(settings: ClinePassModelSettings): Promise<ClinePassModelSettings>;
|
|
163
|
+
update(patch: Partial<ClinePassModelSettings>): Promise<ClinePassModelSettings>;
|
|
164
|
+
/** Record a catalog sync without touching the user's selection. */
|
|
165
|
+
storeCatalog(models: ClinePassCatalogModel[]): Promise<ClinePassModelSettings>;
|
|
166
|
+
/** Store or clear (null) one model's context-window override. */
|
|
167
|
+
setContextWindowOverride(model: string, contextWindow: number | null): Promise<ClinePassModelSettings>;
|
|
168
|
+
}
|
|
169
|
+
export {};
|
|
170
|
+
//# sourceMappingURL=token-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-store.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/token-store.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { ClinePassAccountPool } from './account-pool.ts';
|
|
3
|
+
import type { ClinePassEngine } from './engine.ts';
|
|
4
|
+
import type { ClinePassStore } from './store.ts';
|
|
5
|
+
import type { ClinePassModelSettingsStore } from './token-store.ts';
|
|
6
|
+
import type { ClinePassWebStatus } from '../../shared/cline-pass-contracts.ts';
|
|
7
|
+
export interface ClinePassToolsOptions {
|
|
8
|
+
settings: ClinePassModelSettingsStore;
|
|
9
|
+
accountPool: ClinePassAccountPool;
|
|
10
|
+
store: ClinePassStore;
|
|
11
|
+
engine: ClinePassEngine;
|
|
12
|
+
status(): Promise<ClinePassWebStatus>;
|
|
13
|
+
/** Whether the route is currently served by this plugin. */
|
|
14
|
+
serving(): boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Register every `cline_pass_*` tool.
|
|
18
|
+
* @returns one disposer bundle, or an empty list when no tools service exists.
|
|
19
|
+
*/
|
|
20
|
+
export declare function registerClinePassTools(ctx: Context, options: ClinePassToolsOptions): Array<() => void>;
|
|
21
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/tools.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAGnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAA;AAkD9E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,2BAA2B,CAAA;IACrC,WAAW,EAAE,oBAAoB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,EAAE,eAAe,CAAA;IACvB,MAAM,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAA;IACrC,4DAA4D;IAC5D,OAAO,IAAI,OAAO,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,qBAAqB,GAAG,KAAK,CAAC,MAAM,IAAI,CAAC,CAiXtG"}
|