@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,22 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { OllamaAccountPool } from './account-pool.ts';
|
|
3
|
+
import type { FileModelSettingsStore } from './token-store.ts';
|
|
4
|
+
import { type OllamaWebStatus } from '../../shared/ollama-contracts.ts';
|
|
5
|
+
/** Where a user creates the keys this line stores. */
|
|
6
|
+
export declare const OLLAMA_KEYS_URL = "https://ollama.com/settings/keys";
|
|
7
|
+
export interface OllamaRouteOptions {
|
|
8
|
+
accountPool: OllamaAccountPool;
|
|
9
|
+
modelSettings: FileModelSettingsStore;
|
|
10
|
+
fetchFn?: typeof fetch;
|
|
11
|
+
}
|
|
12
|
+
/** Assemble the whole status payload the Ollama tab renders. */
|
|
13
|
+
export declare function getOllamaWebStatus(options: OllamaRouteOptions): Promise<OllamaWebStatus>;
|
|
14
|
+
/**
|
|
15
|
+
* Register the Ollama settings API.
|
|
16
|
+
*
|
|
17
|
+
* The surface is deliberately the same one every other line exposes - status,
|
|
18
|
+
* accounts, models - so the shared settings card and the client API helper
|
|
19
|
+
* work against it without a per-provider special case.
|
|
20
|
+
*/
|
|
21
|
+
export declare function registerOllamaRoutes(ctx: Context, options: OllamaRouteOptions): () => void;
|
|
22
|
+
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../src/host/ollama/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,OAAO,KAAK,EAAE,sBAAsB,EAAqB,MAAM,kBAAkB,CAAA;AAEjF,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAA;AAIzC,sDAAsD;AACtD,eAAO,MAAM,eAAe,qCAAqC,CAAA;AAyCjE,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,iBAAiB,CAAA;IAC9B,aAAa,EAAE,sBAAsB,CAAA;IACrC,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;CACvB;AA+BD,gEAAgE;AAChE,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC,CA0B9F;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,GAAG,MAAM,IAAI,CA6O1F"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { CredentialStore } from '../token-store.ts';
|
|
2
|
+
import type { OllamaCatalogModel } from './types.ts';
|
|
3
|
+
/**
|
|
4
|
+
* One stored Ollama credential.
|
|
5
|
+
*
|
|
6
|
+
* Ollama cloud authenticates with a static API key rather than the rotating
|
|
7
|
+
* OAuth pair the other lines in this plugin store, so there is no refresh token
|
|
8
|
+
* and nothing expires: per docs/api/authentication, keys do not expire and are
|
|
9
|
+
* revoked from the account settings page. That is the whole credential, and it
|
|
10
|
+
* is why a pool account here is "a key a user pasted" rather than "a session this
|
|
11
|
+
* plugin established".
|
|
12
|
+
*
|
|
13
|
+
* The key is host-only and never crosses to a browser; a settings card renders
|
|
14
|
+
* the alias and status, never this value.
|
|
15
|
+
*/
|
|
16
|
+
export interface OllamaCredentials {
|
|
17
|
+
/** Bearer key from https://ollama.com/settings/keys. Host-only. */
|
|
18
|
+
apiKey: string;
|
|
19
|
+
/** User-chosen label so several keys are distinguishable. */
|
|
20
|
+
alias?: string;
|
|
21
|
+
/** Unix milliseconds the key was added to the pool. */
|
|
22
|
+
addedAt?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface OllamaModelSettings {
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The user's model filter: null is "no filter" — every catalogued model,
|
|
28
|
+
* including ones a later sync adds. An array is an explicit selection, and
|
|
29
|
+
* an empty one switches every model off.
|
|
30
|
+
*/
|
|
31
|
+
enabledModelIds: string[] | null;
|
|
32
|
+
catalogModels: OllamaCatalogModel[];
|
|
33
|
+
defaultReasoningEffort: string | null;
|
|
34
|
+
}
|
|
35
|
+
export interface OllamaPreferenceStore {
|
|
36
|
+
status(): OllamaModelSettings;
|
|
37
|
+
update(patch: {
|
|
38
|
+
enabled?: boolean;
|
|
39
|
+
enabledModelIds?: string[] | null;
|
|
40
|
+
defaultReasoningEffort?: string | null;
|
|
41
|
+
}): Promise<OllamaModelSettings>;
|
|
42
|
+
}
|
|
43
|
+
export declare function credentialPath(): string;
|
|
44
|
+
export declare function modelSettingsPath(): string;
|
|
45
|
+
export declare function parseOllamaCredentials(value: unknown): OllamaCredentials;
|
|
46
|
+
/** Encrypted credential store for the single-key (no pool) configuration. */
|
|
47
|
+
export declare class FileCredentialStore {
|
|
48
|
+
private readonly filePath;
|
|
49
|
+
private readonly backend;
|
|
50
|
+
constructor(filePath?: string, backend?: CredentialStore<OllamaCredentials>);
|
|
51
|
+
path(): string;
|
|
52
|
+
read(): Promise<OllamaCredentials | null>;
|
|
53
|
+
write(credentials: OllamaCredentials): Promise<void>;
|
|
54
|
+
clear(): Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Model settings, bound to the DSH settings document when the harness offers one
|
|
58
|
+
* and to a JSON file beside it otherwise.
|
|
59
|
+
*/
|
|
60
|
+
export declare class FileModelSettingsStore implements OllamaPreferenceStore {
|
|
61
|
+
private readonly filePath;
|
|
62
|
+
private cached;
|
|
63
|
+
private loadPromise;
|
|
64
|
+
constructor(filePath?: string);
|
|
65
|
+
path(): string;
|
|
66
|
+
status(): OllamaModelSettings;
|
|
67
|
+
read(): Promise<OllamaModelSettings>;
|
|
68
|
+
private load;
|
|
69
|
+
write(settings: OllamaModelSettings): Promise<void>;
|
|
70
|
+
update(patch: {
|
|
71
|
+
enabled?: boolean;
|
|
72
|
+
enabledModelIds?: string[] | null;
|
|
73
|
+
defaultReasoningEffort?: string | null;
|
|
74
|
+
}): Promise<OllamaModelSettings>;
|
|
75
|
+
/** Record a catalog sync without touching the user's enabled selection. */
|
|
76
|
+
storeCatalog(models: OllamaCatalogModel[]): Promise<OllamaModelSettings>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=token-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-store.d.ts","sourceRoot":"","sources":["../../../../src/host/ollama/token-store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB;IAChC,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,aAAa,EAAE,kBAAkB,EAAE,CAAA;IACnC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAA;CACtC;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,IAAI,mBAAmB,CAAA;IAC7B,MAAM,CAAC,KAAK,EAAE;QACZ,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;QACjC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACvC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;CACjC;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAcD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,CAexE;AAsBD,6EAA6E;AAC7E,qBAAa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,QAAQ,SAAmB,EAC3B,OAAO,GAAE,eAAe,CAAC,iBAAiB,CAAqC;IAGlG,IAAI,IAAI,MAAM;IAIR,IAAI,IAAI,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAIzC,KAAK,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKpD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B;AAkBD;;;GAGG;AACH,qBAAa,sBAAuB,YAAW,qBAAqB;IAItD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAHrC,OAAO,CAAC,MAAM,CAAmC;IACjD,OAAO,CAAC,WAAW,CAA4C;gBAElC,QAAQ,SAAsB;IAE3D,IAAI,IAAI,MAAM;IAId,MAAM,IAAI,mBAAmB;IAIvB,IAAI,IAAI,OAAO,CAAC,mBAAmB,CAAC;YAS5B,IAAI;IA4BZ,KAAK,CAAC,QAAQ,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAUnD,MAAM,CAAC,KAAK,EAAE;QAClB,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;QACjC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACvC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAehC,2EAA2E;IACrE,YAAY,CAAC,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAM/E"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static facts about the Ollama provider API.
|
|
3
|
+
*
|
|
4
|
+
* Ollama publishes three surfaces, and this line speaks two of them:
|
|
5
|
+
*
|
|
6
|
+
* - the **native API** (`https://ollama.com/api`) — Ollama's own wire format,
|
|
7
|
+
* with `/api/chat` and `/api/tags`;
|
|
8
|
+
* - the **OpenAI-compatible API** (`https://ollama.com/v1`) — a documented
|
|
9
|
+
* subset of the OpenAI API, which is what a coding agent wants by default
|
|
10
|
+
* because its tool-calling and streaming shapes are the familiar ones.
|
|
11
|
+
*
|
|
12
|
+
* A third surface, the Anthropic-compatible `/v1/messages`, exists and is not
|
|
13
|
+
* used here: the Claude line already transcribes the Anthropic wire format
|
|
14
|
+
* against a snapshot it can verify, and routing Ollama's subset of it through
|
|
15
|
+
* the same mapper would claim capabilities Ollama does not document.
|
|
16
|
+
*
|
|
17
|
+
* DOCUMENTED CLOUD LIMITS (docs/api/openai-compatibility, docs/cloud):
|
|
18
|
+
*
|
|
19
|
+
* - No stateful Responses. Only the stateless form works.
|
|
20
|
+
* - No built-in web search through `/v1/responses`.
|
|
21
|
+
* - No custom/freeform tool-call replay.
|
|
22
|
+
*
|
|
23
|
+
* Those are server-side capability limits, not choices made here, so this line
|
|
24
|
+
* sends ordinary `tools` arrays and streams ordinary `tool_calls` back, and
|
|
25
|
+
* makes no promise about replaying a custom tool call across turns. Saying so
|
|
26
|
+
* in the settings card is the honest rendering of a documented boundary.
|
|
27
|
+
*
|
|
28
|
+
* Authentication is a static API key in `Authorization: Bearer`, not an OAuth
|
|
29
|
+
* flow: keys do not expire and are revoked from the account settings page.
|
|
30
|
+
*/
|
|
31
|
+
export declare const PROVIDER_ID = "ollama";
|
|
32
|
+
export declare const PROVIDER_NAME = "Ollama";
|
|
33
|
+
/** Direct cloud access, per docs/api/introduction. */
|
|
34
|
+
export declare const CLOUD_BASE_URL = "https://ollama.com";
|
|
35
|
+
/** Native surface. */
|
|
36
|
+
export declare const NATIVE_CHAT_PATH = "/api/chat";
|
|
37
|
+
export declare const NATIVE_TAGS_PATH = "/api/tags";
|
|
38
|
+
/** Per-model metadata: the one surface where a model states its own thinking levels. */
|
|
39
|
+
export declare const NATIVE_SHOW_PATH = "/api/show";
|
|
40
|
+
/** OpenAI-compatible surface. */
|
|
41
|
+
export declare const OPENAI_BASE_URL = "https://ollama.com/v1";
|
|
42
|
+
export declare const OPENAI_CHAT_PATH = "/chat/completions";
|
|
43
|
+
export declare const OPENAI_MODELS_PATH = "/models";
|
|
44
|
+
/**
|
|
45
|
+
* Default context window for a model whose catalog entry states none.
|
|
46
|
+
*
|
|
47
|
+
* Ollama's `/api/tags` returns names and families, not context windows, so a
|
|
48
|
+
* fixed conservative value is the honest number here. It is deliberately small
|
|
49
|
+
* enough to be true of every cloud model rather than flattering to one.
|
|
50
|
+
*/
|
|
51
|
+
export declare const DEFAULT_CONTEXT_WINDOW = 128000;
|
|
52
|
+
/**
|
|
53
|
+
* Output cap used when neither the caller nor the catalog states one.
|
|
54
|
+
*
|
|
55
|
+
* Ollama does not document a per-model maximum output length, and unlike the
|
|
56
|
+
* Claude line there is no snapshot to read one from, so this is a request-level
|
|
57
|
+
* ceiling rather than a claim about what the model can do.
|
|
58
|
+
*/
|
|
59
|
+
export declare const DEFAULT_MAX_OUTPUT_TOKENS = 8192;
|
|
60
|
+
/**
|
|
61
|
+
* Smallest output cap this line will send for a model whose thinking cannot be
|
|
62
|
+
* turned off.
|
|
63
|
+
*
|
|
64
|
+
* Such a model spends its cap on reasoning before it emits any text, so a caller
|
|
65
|
+
* that wants only a few words can be capped below the reasoning floor and get an
|
|
66
|
+
* empty answer with a length finish - which Harness reports as a truncated
|
|
67
|
+
* stream. DSH's own session-title call is the caller that hits it: it asks for
|
|
68
|
+
* one short line with `maxTokens: 64`, and on a forced-thinking model every
|
|
69
|
+
* title comes back empty.
|
|
70
|
+
*
|
|
71
|
+
* The value is carried over from the MiniMax Code line, where 512 is MEASURED:
|
|
72
|
+
* 64 returns a thinking block and no text, 512 returns the title after ~53
|
|
73
|
+
* output tokens. It is NOT measured on this line - see docs/ for the observation
|
|
74
|
+
* that motivated it - so it is deliberately a round, conservative number rather
|
|
75
|
+
* than a tight one: the cost of a too-high floor is a few unused tokens on an
|
|
76
|
+
* auxiliary call, and the cost of a too-low one is the title failing at all.
|
|
77
|
+
*/
|
|
78
|
+
export declare const FORCED_THINKING_FLOOR_TOKENS = 512;
|
|
79
|
+
/**
|
|
80
|
+
* Raise a cap that is too small for this model's forced thinking.
|
|
81
|
+
*
|
|
82
|
+
* Left alone: a model whose thinking CAN be disabled - its caller may have asked
|
|
83
|
+
* for thinking off on purpose, and raising the cap would not enable it while the
|
|
84
|
+
* number read back would be misleading - and an absent cap, which
|
|
85
|
+
* `DEFAULT_MAX_OUTPUT_TOKENS` already owns at a size nothing is short of.
|
|
86
|
+
*
|
|
87
|
+
* @param modelId - the routed model id.
|
|
88
|
+
* @param requested - the caller's cap, undefined when it stated none.
|
|
89
|
+
* @param declared - the model's own thinking metadata, when it was read.
|
|
90
|
+
* @returns the cap to request, raised only when that is the difference between an
|
|
91
|
+
* empty truncated answer and a usable one.
|
|
92
|
+
*/
|
|
93
|
+
export declare function floorForcedThinkingTokens(modelId: string, requested: number | undefined, declared?: OllamaThinkingCapability): number | undefined;
|
|
94
|
+
/** How long a catalog sync may take before the cached list is used instead. */
|
|
95
|
+
export declare const CATALOG_TIMEOUT_MS = 15000;
|
|
96
|
+
/**
|
|
97
|
+
* Idle ceiling for one streaming response before it is declared stalled.
|
|
98
|
+
*
|
|
99
|
+
* Longer than every other route on purpose, and deliberately NOT the shared
|
|
100
|
+
* default in `host/common/idle-watchdog.ts`: ollama runs on the operator's own
|
|
101
|
+
* hardware, where prompt evaluation on a large context can produce no bytes for
|
|
102
|
+
* minutes while the machine is visibly working. The shared two-minute budget
|
|
103
|
+
* would read that work as a dead stream and retry it.
|
|
104
|
+
*/
|
|
105
|
+
export declare const STREAM_IDLE_TIMEOUT_MS = 300000;
|
|
106
|
+
/**
|
|
107
|
+
* Cooldown one account takes when Ollama refuses it without stating a delay.
|
|
108
|
+
*
|
|
109
|
+
* A 429 here is a real quota or rate limit, not a blip, so the account is parked
|
|
110
|
+
* for long enough that the next request goes to a different one.
|
|
111
|
+
*/
|
|
112
|
+
export declare const POOL_COOLDOWN_MS: number;
|
|
113
|
+
/**
|
|
114
|
+
* The two wire shapes this line can speak, per request.
|
|
115
|
+
*
|
|
116
|
+
* A user picks the line once; which surface serves a given turn is decided here,
|
|
117
|
+
* not exposed as a setting, because the two are not interchangeable from the
|
|
118
|
+
* caller's side: both accept the same tool definitions and return the same
|
|
119
|
+
* assistant message.
|
|
120
|
+
*/
|
|
121
|
+
export type OllamaWire = 'openai' | 'native';
|
|
122
|
+
/** One model as Ollama's `/api/tags` reports it. */
|
|
123
|
+
export interface OllamaCatalogModel {
|
|
124
|
+
id: string;
|
|
125
|
+
name?: string;
|
|
126
|
+
contextWindow?: number;
|
|
127
|
+
/** Unix milliseconds this entry was read from the service. */
|
|
128
|
+
fetchedAt?: number;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* NO fallback model names.
|
|
132
|
+
*
|
|
133
|
+
* An earlier revision hard-coded `gpt-oss:120b-cloud` and `gpt-oss:20b-cloud`
|
|
134
|
+
* here, and they reached the model picker. That was wrong twice over: this line
|
|
135
|
+
* has no model table of its own, so every name in it would be a guess about what
|
|
136
|
+
* some account is entitled to, and a guess that lands in the picker is a model a
|
|
137
|
+
* user can select and then fail on. The other lines can fall back to hard-coded
|
|
138
|
+
* names because theirs are transcribed from a real table - Claude's is its own
|
|
139
|
+
* frozen catalog. Ollama's truth is `/api/tags`, and there is nothing honest to
|
|
140
|
+
* stand in for it before the first sync.
|
|
141
|
+
*
|
|
142
|
+
* So the catalog starts empty and the card says the list has not been synced yet,
|
|
143
|
+
* with the sync button right beside it. A user who has a key is one click from a
|
|
144
|
+
* list that is actually theirs.
|
|
145
|
+
*/
|
|
146
|
+
export declare const FALLBACK_MODELS: readonly OllamaCatalogModel[];
|
|
147
|
+
/**
|
|
148
|
+
* Resolve the wire shape for a model.
|
|
149
|
+
*
|
|
150
|
+
* `openai` first, always: the OpenAI-compatible surface is the one whose tool
|
|
151
|
+
* and streaming semantics this plugin's mapper already implements faithfully,
|
|
152
|
+
* and it is what an agent wants. `native` is the fallback for the documented
|
|
153
|
+
* cases where the OpenAI surface refuses a request, so a model the service
|
|
154
|
+
* accepts natively still works instead of failing outright.
|
|
155
|
+
*/
|
|
156
|
+
export declare function wireForModel(_model: string): OllamaWire;
|
|
157
|
+
/** Context window for a model, falling back to the conservative constant. */
|
|
158
|
+
export declare function contextWindowFor(model: OllamaCatalogModel | undefined): number;
|
|
159
|
+
/** Bearer headers for a stored key. */
|
|
160
|
+
export declare function ollamaHeaders(apiKey: string): Record<string, string>;
|
|
161
|
+
/**
|
|
162
|
+
* Tightly-scoped check for known vision-capable models in Ollama.
|
|
163
|
+
* Conservative allowlist of known vision families; unknown models default to false.
|
|
164
|
+
*/
|
|
165
|
+
export declare function ollamaModelSupportsImage(modelId: string): boolean;
|
|
166
|
+
export type OllamaThinkingMode = 'levels' | 'boolean' | 'none';
|
|
167
|
+
/**
|
|
168
|
+
* What one model says about its own thinking, as `POST /api/show` reports it.
|
|
169
|
+
*
|
|
170
|
+
* `values` is the complete set the wire accepts: a boolean, meaning on/off, or
|
|
171
|
+
* a level name that model defines itself (gpt-oss declares low/medium/high and
|
|
172
|
+
* cannot be switched off). `[false]` means the model has no thinking to control,
|
|
173
|
+
* and an absent `thinking` means the service states nothing about it. `default`
|
|
174
|
+
* is the value the service uses when a request sends no `think` at all.
|
|
175
|
+
*
|
|
176
|
+
* Source: https://github.com/ollama/ollama/blob/main/docs/capabilities/thinking.mdx
|
|
177
|
+
*/
|
|
178
|
+
export interface OllamaThinkingCapability {
|
|
179
|
+
values: readonly (boolean | string)[];
|
|
180
|
+
default?: boolean | string;
|
|
181
|
+
}
|
|
182
|
+
/** One selectable effort, as the picker renders it. */
|
|
183
|
+
export interface OllamaReasoningEffort {
|
|
184
|
+
/** Sent as the caller's `reasoningEffort` and mapped onto the wire from it. */
|
|
185
|
+
id: string;
|
|
186
|
+
name: string;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Resolve model-specific thinking support in Ollama.
|
|
190
|
+
*
|
|
191
|
+
* The service's own metadata outranks the prefix list: `/api/show` is where a
|
|
192
|
+
* model states the levels it accepts, and it is the only source there is for a
|
|
193
|
+
* family this file has never heard of. The prefix list stays as the fallback for
|
|
194
|
+
* a model whose metadata could not be read, and that fallback is unchanged.
|
|
195
|
+
*
|
|
196
|
+
* Source: official https://github.com/ollama/ollama/blob/main/docs/capabilities/thinking.mdx
|
|
197
|
+
* - 'levels': named levels (gpt-oss: low, medium, high; cannot disable thinking)
|
|
198
|
+
* - 'boolean': booleans (deepseek-r1, qwq, qwen3: true, false)
|
|
199
|
+
* - 'none': declared [false], declared nothing, or unknown
|
|
200
|
+
*/
|
|
201
|
+
export declare function thinkingModeForModel(modelId: string, declared?: OllamaThinkingCapability): OllamaThinkingMode;
|
|
202
|
+
/**
|
|
203
|
+
* The efforts one model can actually be sent, in display order.
|
|
204
|
+
*
|
|
205
|
+
* This set is the whole contract with the harness: a level outside it is
|
|
206
|
+
* rejected before a request is built (see `resolveCallWithInfo`), so it must be
|
|
207
|
+
* exactly what the wire accepts and no more - which is why, when the model has
|
|
208
|
+
* declared its own values, this returns that table row for row instead of
|
|
209
|
+
* choosing from a fixed menu. A model that declares `[false]` is the one case
|
|
210
|
+
* with a declared value and no ladder at all: `[false]` is the service saying
|
|
211
|
+
* there is no thinking here to turn on or off.
|
|
212
|
+
*
|
|
213
|
+
* Without metadata the families this file knows answer instead, unchanged:
|
|
214
|
+
* gpt-oss takes the three levels, and a boolean family takes the on/off pair.
|
|
215
|
+
*/
|
|
216
|
+
export declare function reasoningEffortsForModel(modelId: string, declared?: OllamaThinkingCapability): OllamaReasoningEffort[];
|
|
217
|
+
/**
|
|
218
|
+
* The effort this model's ladder should start on.
|
|
219
|
+
*
|
|
220
|
+
* A stored default is a per-route preference, not a per-model promise: the
|
|
221
|
+
* settings card offers one ladder for the whole line, so a level chosen for one
|
|
222
|
+
* model can be one this model cannot express - and DSH rejects a level that is
|
|
223
|
+
* not on the ladder before a request is built. So the order is: the configured
|
|
224
|
+
* level when this model has it, then the level the model itself defaults to,
|
|
225
|
+
* then the ladder's own first entry.
|
|
226
|
+
*
|
|
227
|
+
* The last step skips a "thinking off" position. A user who picked a thinking
|
|
228
|
+
* model and was handed that position would silently get a model that never
|
|
229
|
+
* thinks, which is a worse wrong answer than the mildest level that does think.
|
|
230
|
+
*/
|
|
231
|
+
export declare function resolveOllamaDefaultEffort(modelId: string, declared: OllamaThinkingCapability | undefined, configured: string | null | undefined): string | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* Map reasoning effort to wire think parameter for the target model.
|
|
234
|
+
* Per Ollama docs:
|
|
235
|
+
* - a model that has declared its own values: the effort reverses to the one
|
|
236
|
+
* value that model declared for it, and nothing else is sent. A level the
|
|
237
|
+
* model never declared is omitted rather than coerced - a model that declares
|
|
238
|
+
* `[true]` is never asked for `false`, and one that declares ['low','high'] is
|
|
239
|
+
* never handed 'medium'. Omitting is the service's own default, which is a
|
|
240
|
+
* weaker turn and never a failed one.
|
|
241
|
+
* - gpt-oss with no metadata: only 'low' | 'medium' | 'high' are valid. gpt-oss cannot disable
|
|
242
|
+
* thinking, so 'none' as well as 'xhigh'/'max'/garbage MUST be omitted (undefined).
|
|
243
|
+
* - boolean models: 'none' -> false; 'low'|'medium'|'high'|'auto'|'true' -> true; garbage -> undefined.
|
|
244
|
+
* - all other models: omit (undefined).
|
|
245
|
+
*/
|
|
246
|
+
export declare function thinkForModel(modelId: string, reasoningEffort: unknown, declared?: OllamaThinkingCapability): boolean | string | undefined;
|
|
247
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/ollama/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AccountPoolCore, type AccountSelectionHint, type PoolAccountShape, type PoolData } from '../common/account-pool.ts';
|
|
2
|
+
import type { CredentialStore } from '../token-store.ts';
|
|
3
|
+
import type { AccountRotationStrategy } from '../../shared/account-pool-contracts.ts';
|
|
4
|
+
import type { OpenCodeGoAccountSummaryDto, OpenCodeGoMonthlyUsage, OpenCodeGoQuotaSnapshotDto } from '../../shared/opencode-go-contracts.ts';
|
|
5
|
+
import { type OpenCodeGoCredentials } from './types.ts';
|
|
6
|
+
interface OpenCodeGoAllowanceCost {
|
|
7
|
+
averageAmount: number;
|
|
8
|
+
uses: number;
|
|
9
|
+
updatedAt: number;
|
|
10
|
+
}
|
|
11
|
+
export interface OpenCodeGoAllowanceModel {
|
|
12
|
+
id: string;
|
|
13
|
+
monthlyUsage: OpenCodeGoMonthlyUsage;
|
|
14
|
+
}
|
|
15
|
+
export interface OpenCodeGoSelectionHint extends AccountSelectionHint {
|
|
16
|
+
model?: OpenCodeGoAllowanceModel;
|
|
17
|
+
}
|
|
18
|
+
export interface OpenCodeGoPoolAccount extends PoolAccountShape<OpenCodeGoCredentials> {
|
|
19
|
+
planName?: string;
|
|
20
|
+
region?: string;
|
|
21
|
+
lastModelId?: string;
|
|
22
|
+
quota?: OpenCodeGoQuotaSnapshotDto;
|
|
23
|
+
allowanceSinceQuota?: number;
|
|
24
|
+
allowanceCosts?: Record<string, OpenCodeGoAllowanceCost>;
|
|
25
|
+
}
|
|
26
|
+
export declare function openCodeGoPoolPath(): string;
|
|
27
|
+
export declare function openCodeGoAccountKey(credentials: OpenCodeGoCredentials): string;
|
|
28
|
+
/** Projected pressure across the three shared windows; unknown facts never invent a score. */
|
|
29
|
+
export declare function openCodeGoProjectedPressure(account: OpenCodeGoPoolAccount, model: OpenCodeGoAllowanceModel): number | null;
|
|
30
|
+
export declare function parseOpenCodeGoPoolData(value: unknown): PoolData<OpenCodeGoPoolAccount>;
|
|
31
|
+
export interface OpenCodeGoAccountPoolOptions {
|
|
32
|
+
backend?: CredentialStore<PoolData<OpenCodeGoPoolAccount>>;
|
|
33
|
+
maxAccounts?: number;
|
|
34
|
+
preferAccountId?: () => string | null;
|
|
35
|
+
}
|
|
36
|
+
export declare class OpenCodeGoAccountPool extends AccountPoolCore<OpenCodeGoCredentials, OpenCodeGoPoolAccount, OpenCodeGoAccountSummaryDto> {
|
|
37
|
+
constructor(options?: OpenCodeGoAccountPoolOptions);
|
|
38
|
+
getEffectiveCredential(excludeIds?: ReadonlySet<string>, fetchFn?: typeof fetch, selection?: OpenCodeGoSelectionHint): Promise<{
|
|
39
|
+
account: OpenCodeGoPoolAccount;
|
|
40
|
+
credentials: OpenCodeGoCredentials;
|
|
41
|
+
}>;
|
|
42
|
+
replaceApiKey(accountId: string, apiKey: string): Promise<void>;
|
|
43
|
+
strategy(): Promise<AccountRotationStrategy>;
|
|
44
|
+
recordQuota(accountId: string, snapshot: OpenCodeGoQuotaSnapshotDto): Promise<void>;
|
|
45
|
+
recordAllowance(accountId: string, model: OpenCodeGoAllowanceModel, amount: number, planName?: string): Promise<void>;
|
|
46
|
+
recordModel(accountId: string, model: string): Promise<void>;
|
|
47
|
+
recordPlan(accountId: string, planName: string): Promise<void>;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=account-pool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-pool.d.ts","sourceRoot":"","sources":["../../../../src/host/opencode-go/account-pool.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { LlmError } from '../common/llm-compat.ts';
|
|
4
|
+
import { type AttachmentImageReader } from '../common/request-images.ts';
|
|
5
|
+
import type { PromptCacheOverride } from '../common/prompt-cache-policy.ts';
|
|
6
|
+
import type { OpenCodeGoAccountPool } from './account-pool.ts';
|
|
7
|
+
import { OpenCodeGoCatalogManager } from './model-catalog.ts';
|
|
8
|
+
import { OpenCodeGoSettingsStore } from './token-store.ts';
|
|
9
|
+
import { PROVIDER_ID, PROVIDER_NAME } from './types.ts';
|
|
10
|
+
export interface OpenCodeGoAdapterOptions {
|
|
11
|
+
fetchFn?: typeof fetch;
|
|
12
|
+
attachments?: AttachmentImageReader;
|
|
13
|
+
accountPool?: OpenCodeGoAccountPool | null;
|
|
14
|
+
promptCache?: PromptCacheOverride;
|
|
15
|
+
}
|
|
16
|
+
export declare function classifyOpenCodeGoFailure(status: number, detail: string): LlmError;
|
|
17
|
+
export declare class OpenCodeGoAdapter extends LlmAdapter {
|
|
18
|
+
private readonly pool;
|
|
19
|
+
private readonly settingsStore;
|
|
20
|
+
private readonly catalog;
|
|
21
|
+
private readonly options;
|
|
22
|
+
/** An auxiliary request names no effort; this lets it reuse the session's level so the prefix cache still hits. */
|
|
23
|
+
private readonly effortMemory;
|
|
24
|
+
constructor(settingsStore?: OpenCodeGoSettingsStore, catalog?: OpenCodeGoCatalogManager, options?: OpenCodeGoAdapterOptions);
|
|
25
|
+
providerInfo(provider: string): LlmProviderInfo;
|
|
26
|
+
providerRetryPolicy(): ResolvedRetryPolicy;
|
|
27
|
+
imageRequestPricing(): undefined;
|
|
28
|
+
imageRequestTarget(_provider: string, _model: string, image: ImageAttachmentRef): import("../common/request-images.ts").CompatImageRequestTarget;
|
|
29
|
+
private hasCredential;
|
|
30
|
+
listModels(provider?: string): Promise<readonly LlmModelInfo[]>;
|
|
31
|
+
resolveModel(provider: string, model: string, signal?: AbortSignal): Promise<LlmResolvedModelInfo>;
|
|
32
|
+
prepareCall(provider: string, model: string, signal?: AbortSignal): Promise<PreparedAdapterCall>;
|
|
33
|
+
stream(options: GenerateOptions): AsyncIterable<StreamChunk>;
|
|
34
|
+
private requestStream;
|
|
35
|
+
private finishAccount;
|
|
36
|
+
}
|
|
37
|
+
export { PROVIDER_ID, PROVIDER_NAME };
|
|
38
|
+
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/opencode-go/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAyC,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACxP,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAErE,OAAO,EAAE,QAAQ,EAA4B,MAAM,yBAAyB,CAAA;AAK5E,OAAO,EAAsD,KAAK,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAE5H,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAG3E,OAAO,KAAK,EAAE,qBAAqB,EAAyB,MAAM,mBAAmB,CAAA;AACrF,OAAO,EAAE,wBAAwB,EAA6E,MAAM,oBAAoB,CAAA;AACxI,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAA2B,WAAW,EAAE,aAAa,EAAsE,MAAM,YAAY,CAAA;AAQpJ,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;IACtB,WAAW,CAAC,EAAE,qBAAqB,CAAA;IACnC,WAAW,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAC1C,WAAW,CAAC,EAAE,mBAAmB,CAAA;CAClC;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,CASlF;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8B;IACnD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAyB;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;IAClD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;IAClD,mHAAmH;IACnH,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA4B;gBAC7C,aAAa,GAAE,uBAAuD,EAAE,OAAO,GAAE,wBAAyD,EAAE,OAAO,GAAE,wBAA6B;IAQ9L,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe;IAC/C,mBAAmB,IAAI,mBAAmB;IAC1C,mBAAmB,IAAI,SAAS;IAChC,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;YAEjE,aAAa;IAMrB,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC;IAQ/D,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAmBlG,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAK/F,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC;YAKpD,aAAa;YA8Gd,aAAa;CAO5B;AAED,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OpenCodeGoConnectionDto, OpenCodeGoQuotaSnapshotDto } from '../../shared/opencode-go-contracts.ts';
|
|
2
|
+
import { type OpenCodeGoCredentials } from './types.ts';
|
|
3
|
+
export declare class OpenCodeGoHttpError extends Error {
|
|
4
|
+
readonly status: number;
|
|
5
|
+
readonly detail: string;
|
|
6
|
+
constructor(status: number, detail: string);
|
|
7
|
+
}
|
|
8
|
+
export declare function fetchOpenCodeGoModels(credentials: OpenCodeGoCredentials, fetchFn?: typeof fetch): Promise<unknown[]>;
|
|
9
|
+
export declare function parseOpenCodeGoQuotaSnapshot(value: unknown): OpenCodeGoQuotaSnapshotDto | undefined;
|
|
10
|
+
export declare function getCachedOpenCodeGoQuota(accountId: string): OpenCodeGoQuotaSnapshotDto | null;
|
|
11
|
+
export declare function fetchOpenCodeGoUsage(accountId: string, credentials: OpenCodeGoCredentials, fetchFn?: typeof fetch): Promise<OpenCodeGoQuotaSnapshotDto>;
|
|
12
|
+
export declare function testOpenCodeGoConnection(accountId: string, credentials: OpenCodeGoCredentials, fetchFn?: typeof fetch): Promise<OpenCodeGoConnectionDto>;
|
|
13
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/host/opencode-go/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAA;AAChH,OAAO,EAA+G,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEpK,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;gBACX,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAM3C;AAaD,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,qBAAqB,EAAE,OAAO,GAAE,OAAO,KAAa,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAIjI;AAaD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,0BAA0B,GAAG,SAAS,CAanG;AAGD,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,0BAA0B,GAAG,IAAI,CAA6C;AAE3I,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,OAAO,GAAE,OAAO,KAAa,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAQpK;AAED,wBAAsB,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,OAAO,GAAE,OAAO,KAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAqBrK"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { GenerateOptions, StreamChunk } from '../common/llm-compat.ts';
|
|
2
|
+
import type { ResolvedRequestImages } from '../common/request-images.ts';
|
|
3
|
+
import type { StreamActivity } from '../common/idle-watchdog.ts';
|
|
4
|
+
import type { OpenCodeGoModelEntry } from './model-catalog.ts';
|
|
5
|
+
import type { OpenCodeGoSettings } from './token-store.ts';
|
|
6
|
+
import { type OpenCodeGoUsageMetadata } from './native-shared.ts';
|
|
7
|
+
export declare function buildOpenCodeGoGeminiRequest(options: GenerateOptions, images: ResolvedRequestImages, entry: OpenCodeGoModelEntry, _settings: OpenCodeGoSettings): Record<string, unknown>;
|
|
8
|
+
export declare function readOpenCodeGoGeminiResponse(response: Response): Promise<{
|
|
9
|
+
chunks: StreamChunk[];
|
|
10
|
+
metadata: OpenCodeGoUsageMetadata | null;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function streamOpenCodeGoGeminiResponse(response: Response, signal: AbortSignal, activity?: StreamActivity, onMetadata?: (metadata: OpenCodeGoUsageMetadata | null) => void): AsyncIterable<StreamChunk>;
|
|
13
|
+
//# sourceMappingURL=mapper-gemini.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapper-gemini.d.ts","sourceRoot":"","sources":["../../../../src/host/opencode-go/mapper-gemini.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAc,MAAM,yBAAyB,CAAA;AAEvF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAKhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAuI,KAAK,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAEtM,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkDzL;AA2ED,wBAAsB,4BAA4B,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC;IAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAAC,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAA;CAAE,CAAC,CAInJ;AAED,wBAAuB,8BAA8B,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,uBAAuB,GAAG,IAAI,KAAK,IAAI,GAAG,aAAa,CAAC,WAAW,CAAC,CAsCrN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GenerateOptions } from '../common/llm-compat.ts';
|
|
2
|
+
import type { ResolvedRequestImages } from '../common/request-images.ts';
|
|
3
|
+
import type { OpenCodeGoModelEntry } from './model-catalog.ts';
|
|
4
|
+
import type { OpenCodeGoSettings } from './token-store.ts';
|
|
5
|
+
import { type OpenCodeGoLineDriver } from './native-shared.ts';
|
|
6
|
+
export declare function buildOpenCodeGoMessagesRequest(options: GenerateOptions, images: ResolvedRequestImages, entry: OpenCodeGoModelEntry, settings: OpenCodeGoSettings): Record<string, unknown>;
|
|
7
|
+
export declare function createOpenCodeGoMessagesDriver(): OpenCodeGoLineDriver;
|
|
8
|
+
//# sourceMappingURL=mapper-messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapper-messages.d.ts","sourceRoot":"","sources":["../../../../src/host/opencode-go/mapper-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAW,MAAM,yBAAyB,CAAA;AAGvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAIxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAoJ,KAAK,oBAAoB,EAAgC,MAAM,oBAAoB,CAAA;AAuB9O,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwD1L;AAED,wBAAgB,8BAA8B,IAAI,oBAAoB,CA6BrE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GenerateOptions, StreamChunk } from '../common/llm-compat.ts';
|
|
2
|
+
import type { StreamActivity } from '../common/idle-watchdog.ts';
|
|
3
|
+
import type { ResolvedRequestImages } from '../common/request-images.ts';
|
|
4
|
+
import type { OpenCodeGoModelEntry } from './model-catalog.ts';
|
|
5
|
+
import type { OpenCodeGoSettings } from './token-store.ts';
|
|
6
|
+
import { type OpenCodeGoUsageMetadata } from './native-shared.ts';
|
|
7
|
+
export declare function buildOpenCodeGoResponsesRequest(options: GenerateOptions, images: ResolvedRequestImages, entry: OpenCodeGoModelEntry, settings: OpenCodeGoSettings): Record<string, unknown>;
|
|
8
|
+
export declare function streamOpenCodeGoResponses(response: Response, signal: AbortSignal, activity?: StreamActivity, onMetadata?: (metadata: OpenCodeGoUsageMetadata | null) => void): AsyncIterable<StreamChunk>;
|
|
9
|
+
//# sourceMappingURL=mapper-responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapper-responses.d.ts","sourceRoot":"","sources":["../../../../src/host/opencode-go/mapper-responses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAIxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAA8I,KAAK,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAc7M,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqD3L;AAiBD,wBAAuB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,uBAAuB,GAAG,IAAI,KAAK,IAAI,GAAG,aAAa,CAAC,WAAW,CAAC,CAiBhN"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type GenerateOptions, type OutboundContentBlock, type StreamChunk, type TokenUsage } from '../common/llm-compat.ts';
|
|
2
|
+
import { type ResolvedRequestImages } from '../common/request-images.ts';
|
|
3
|
+
import type { OpenCodeGoModelEntry } from './model-catalog.ts';
|
|
4
|
+
import type { OpenCodeGoSettings } from './token-store.ts';
|
|
5
|
+
export declare function offloadOldestOpenCodeGoRequestImages(options: GenerateOptions, images: ResolvedRequestImages): GenerateOptions;
|
|
6
|
+
export declare function buildOpenCodeGoChatRequest(options: GenerateOptions, images: ResolvedRequestImages, entry: OpenCodeGoModelEntry, settings: OpenCodeGoSettings): Record<string, unknown>;
|
|
7
|
+
interface OpenText {
|
|
8
|
+
index: number;
|
|
9
|
+
kind: 'text' | 'reasoning';
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
interface PendingTool {
|
|
13
|
+
index: number;
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
arguments: string;
|
|
17
|
+
started: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface OpenCodeGoChatStreamState {
|
|
20
|
+
blocks: OutboundContentBlock[];
|
|
21
|
+
open: OpenText | null;
|
|
22
|
+
tools: Map<string, PendingTool>;
|
|
23
|
+
finishReason: string | null;
|
|
24
|
+
sawDone: boolean;
|
|
25
|
+
sawUsage: boolean;
|
|
26
|
+
usage: TokenUsage | null;
|
|
27
|
+
billingSource: string | null;
|
|
28
|
+
allowance: number | null;
|
|
29
|
+
finished: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function createOpenCodeGoChatStreamState(): OpenCodeGoChatStreamState;
|
|
32
|
+
export declare function feedOpenCodeGoChatPayload(state: OpenCodeGoChatStreamState, payload: unknown): StreamChunk[];
|
|
33
|
+
export declare function closeOpenCodeGoStream(state: OpenCodeGoChatStreamState): StreamChunk[];
|
|
34
|
+
export declare function processOpenCodeGoStreamLine(line: string, state: OpenCodeGoChatStreamState): StreamChunk[];
|
|
35
|
+
export declare function assertOpenCodeGoStreamComplete(state: OpenCodeGoChatStreamState): void;
|
|
36
|
+
export declare function openCodeGoPlanFromBillingSource(source: string | null): string | undefined;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../src/host/opencode-go/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuF,KAAK,eAAe,EAAgB,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAG/N,OAAO,EAAyF,KAAK,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAG/J,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAsE1D,wBAAgB,oCAAoC,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,qBAAqB,GAAG,eAAe,CAE7H;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA2CtL;AAED,UAAU,QAAQ;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAC9E,UAAU,WAAW;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE;AACtG,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,oBAAoB,EAAE,CAAA;IAC9B,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAA;IACrB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAC/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,EAAE,OAAO,CAAA;CAClB;AACD,wBAAgB,+BAA+B,IAAI,yBAAyB,CAAiL;AAkD7P,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,yBAAyB,EAAE,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAiD3G;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,yBAAyB,GAAG,WAAW,EAAE,CAiBrF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,yBAAyB,GAAG,WAAW,EAAE,CAUzG;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,yBAAyB,GAAG,IAAI,CAErF;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAKzF"}
|