@eddyskywalker/dsh-chatgpt-subscription 0.83.0 → 0.85.0
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/README.md +65 -227
- package/lib/aws-quick-mcp.js +1 -1
- package/lib/client.js +3369 -1064
- package/lib/client.js.map +1 -1
- package/lib/codemode.js +310 -45
- package/lib/index.js +1042 -3683
- package/lib/plan-mode-Rrk8NKuk.js +1760 -0
- package/lib/plan-mode-pipeline-DvVmLaxR.js +433 -0
- package/lib/plan-mode-pipeline.js +1 -1
- package/lib/plan-mode.js +2 -2
- package/lib/preset-sync-B9yKbQPc.js +726 -0
- package/lib/progress-updates-CSBYky9J.js +1121 -0
- package/lib/progress-updates.js +1 -1
- package/lib/tool-result-pruner-CIZ8RtkC.js +1112 -0
- package/lib/tool-result-pruner.js +1 -1
- package/lib/types/client/common/ComposerQuotaBadge.d.ts +1 -1
- package/lib/types/client/common/ComposerQuotaBadge.d.ts.map +1 -1
- package/lib/types/client/common/ModelChecklist.d.ts +21 -1
- package/lib/types/client/common/ModelChecklist.d.ts.map +1 -1
- package/lib/types/client/common/model-checklist-styles.d.ts.map +1 -1
- package/lib/types/client/common/use-store.d.ts +1 -1
- package/lib/types/client/common/use-store.d.ts.map +1 -1
- package/lib/types/client/features/CompactionRouteCard.d.ts +43 -0
- package/lib/types/client/features/CompactionRouteCard.d.ts.map +1 -0
- package/lib/types/client/features/codemode/CodeRunToolView.d.ts +68 -0
- package/lib/types/client/features/codemode/CodeRunToolView.d.ts.map +1 -0
- package/lib/types/client/features/codemode/highlight.d.ts.map +1 -0
- package/lib/types/client/features/codemode/styles.d.ts.map +1 -0
- package/lib/types/client/features/codemode/tool-name.d.ts.map +1 -0
- package/lib/types/client/features/compact-after-turn/CompactAfterTurnToggle.d.ts +24 -0
- package/lib/types/client/features/compact-after-turn/CompactAfterTurnToggle.d.ts.map +1 -0
- package/lib/types/client/features/compact-after-turn/locales.d.ts.map +1 -0
- package/lib/types/client/features/compact-after-turn/styles.d.ts.map +1 -0
- package/lib/types/client/features/dispatch-ledger/MandateToolView.d.ts.map +1 -0
- package/lib/types/client/features/dispatch-ledger/locales.d.ts.map +1 -0
- package/lib/types/client/features/dispatch-ledger/styles.d.ts.map +1 -0
- package/lib/types/client/features/mermaid/renderer.d.ts.map +1 -0
- package/lib/types/client/features/mermaid/sanitize.d.ts.map +1 -0
- package/lib/types/client/features/mermaid/styles.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/contracts.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/guide-artwork.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/host-source.d.ts +118 -0
- package/lib/types/client/features/progress-updates/host-source.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/index.d.ts +61 -0
- package/lib/types/client/features/progress-updates/index.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/locales.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/markdown-lite.d.ts +65 -0
- package/lib/types/client/features/progress-updates/markdown-lite.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/progress-row.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/settings-binding.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/settings-section.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/styles.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/tool-name.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/updates-panel.d.ts.map +1 -0
- package/lib/types/client/features/session-quota/SessionQuotaSection.d.ts +22 -0
- package/lib/types/client/features/session-quota/SessionQuotaSection.d.ts.map +1 -0
- package/lib/types/client/features/session-quota/adapters.d.ts +42 -0
- package/lib/types/client/features/session-quota/adapters.d.ts.map +1 -0
- package/lib/types/client/features/session-quota/index.d.ts +13 -0
- package/lib/types/client/features/session-quota/index.d.ts.map +1 -0
- package/lib/types/client/features/session-quota/locales.d.ts +71 -0
- package/lib/types/client/features/session-quota/locales.d.ts.map +1 -0
- package/lib/types/client/features/session-quota/model.d.ts +41 -0
- package/lib/types/client/features/session-quota/model.d.ts.map +1 -0
- package/lib/types/client/features/session-quota/panel-availability.d.ts +10 -0
- package/lib/types/client/features/session-quota/panel-availability.d.ts.map +1 -0
- package/lib/types/client/features/session-quota/session-quota-store.d.ts +13 -0
- package/lib/types/client/features/session-quota/session-quota-store.d.ts.map +1 -0
- package/lib/types/client/features/session-quota/styles.d.ts +2 -0
- package/lib/types/client/features/session-quota/styles.d.ts.map +1 -0
- package/lib/types/client/features/subagent/SubagentCard.d.ts.map +1 -0
- package/lib/types/client/features/subagent/index.d.ts.map +1 -0
- package/lib/types/client/features/subagent/locales.d.ts +184 -0
- package/lib/types/client/features/subagent/locales.d.ts.map +1 -0
- package/lib/types/client/features/subagent/styles.d.ts.map +1 -0
- package/lib/types/client/features/subagent/subagent-card-controller.d.ts +352 -0
- package/lib/types/client/features/subagent/subagent-card-controller.d.ts.map +1 -0
- package/lib/types/client/hub/HubAddSheet.d.ts +17 -0
- package/lib/types/client/hub/HubAddSheet.d.ts.map +1 -0
- package/lib/types/client/hub/HubOverview.d.ts +16 -11
- package/lib/types/client/hub/HubOverview.d.ts.map +1 -1
- package/lib/types/client/hub/HubProviderRow.d.ts +34 -0
- package/lib/types/client/hub/HubProviderRow.d.ts.map +1 -0
- package/lib/types/client/hub/ProviderHubSection.d.ts +16 -0
- package/lib/types/client/hub/ProviderHubSection.d.ts.map +1 -0
- package/lib/types/client/hub/UpdateCheck.d.ts +1 -1
- package/lib/types/client/hub/UpdateCheck.d.ts.map +1 -1
- package/lib/types/client/hub/brand-icons.d.ts +4 -2
- package/lib/types/client/hub/brand-icons.d.ts.map +1 -1
- package/lib/types/client/hub/hub-overview-helpers.d.ts +29 -0
- package/lib/types/client/hub/hub-overview-helpers.d.ts.map +1 -0
- package/lib/types/client/hub/hub-styles.d.ts.map +1 -1
- package/lib/types/client/hub/providers.d.ts +3 -0
- package/lib/types/client/hub/providers.d.ts.map +1 -1
- package/lib/types/client/index.d.ts +23 -21
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/locales-ru/antigravity-acp.d.ts +1 -1
- package/lib/types/client/locales-ru/antigravity-acp.d.ts.map +1 -1
- package/lib/types/client/locales-ru/aws-quick.d.ts +1 -1
- package/lib/types/client/locales-ru/aws-quick.d.ts.map +1 -1
- package/lib/types/client/locales-ru/claude-api.d.ts +1 -1
- package/lib/types/client/locales-ru/claude-api.d.ts.map +1 -1
- package/lib/types/client/locales-ru/claude.d.ts +1 -1
- package/lib/types/client/locales-ru/claude.d.ts.map +1 -1
- package/lib/types/client/locales-ru/cline-pass.d.ts +1 -1
- package/lib/types/client/locales-ru/cline-pass.d.ts.map +1 -1
- package/lib/types/client/locales-ru/command-code.d.ts +1 -1
- package/lib/types/client/locales-ru/command-code.d.ts.map +1 -1
- package/lib/types/client/locales-ru/compact-after-turn.d.ts +1 -1
- package/lib/types/client/locales-ru/compact-after-turn.d.ts.map +1 -1
- package/lib/types/client/locales-ru/dispatch-ledger.d.ts +1 -1
- package/lib/types/client/locales-ru/dispatch-ledger.d.ts.map +1 -1
- package/lib/types/client/locales-ru/glm-coding-plan.d.ts +1 -1
- package/lib/types/client/locales-ru/glm-coding-plan.d.ts.map +1 -1
- package/lib/types/client/locales-ru/hub.d.ts +1 -1
- package/lib/types/client/locales-ru/hub.d.ts.map +1 -1
- package/lib/types/client/locales-ru/index.d.ts.map +1 -1
- package/lib/types/client/locales-ru/kimi-code.d.ts +1 -1
- package/lib/types/client/locales-ru/kimi-code.d.ts.map +1 -1
- package/lib/types/client/locales-ru/minimax-code.d.ts +1 -1
- package/lib/types/client/locales-ru/minimax-code.d.ts.map +1 -1
- package/lib/types/client/locales-ru/ollama.d.ts +1 -1
- package/lib/types/client/locales-ru/ollama.d.ts.map +1 -1
- package/lib/types/client/locales-ru/opendesign.d.ts +1 -1
- package/lib/types/client/locales-ru/opendesign.d.ts.map +1 -1
- package/lib/types/client/locales-ru/progress-updates.d.ts +1 -1
- package/lib/types/client/locales-ru/progress-updates.d.ts.map +1 -1
- package/lib/types/client/locales-ru/qianwen-token-plan.d.ts +1 -1
- package/lib/types/client/locales-ru/qianwen-token-plan.d.ts.map +1 -1
- package/lib/types/client/locales-ru/qoder.d.ts +1 -1
- package/lib/types/client/locales-ru/qoder.d.ts.map +1 -1
- package/lib/types/client/locales-ru/relayone.d.ts +1 -1
- package/lib/types/client/locales-ru/relayone.d.ts.map +1 -1
- package/lib/types/client/locales-ru/session-quota.d.ts +3 -0
- package/lib/types/client/locales-ru/session-quota.d.ts.map +1 -0
- package/lib/types/client/locales-ru/step-code.d.ts +1 -1
- package/lib/types/client/locales-ru/step-code.d.ts.map +1 -1
- package/lib/types/client/providers/antigravity-acp/AntigravityAcpComposerBadge.d.ts +35 -0
- package/lib/types/client/providers/antigravity-acp/AntigravityAcpComposerBadge.d.ts.map +1 -0
- package/lib/types/client/providers/antigravity-acp/AntigravityAcpSection.d.ts.map +1 -0
- package/lib/types/client/providers/antigravity-acp/api.d.ts +36 -0
- package/lib/types/client/providers/antigravity-acp/api.d.ts.map +1 -0
- package/lib/types/client/providers/antigravity-acp/locales.d.ts +557 -0
- package/lib/types/client/providers/antigravity-acp/locales.d.ts.map +1 -0
- package/lib/types/client/providers/antigravity-acp/route.d.ts.map +1 -0
- package/lib/types/client/providers/antigravity-acp/styles.d.ts.map +1 -0
- package/lib/types/client/providers/aws-quick/AwsQuickSection.d.ts.map +1 -0
- package/lib/types/client/providers/aws-quick/api.d.ts +11 -0
- package/lib/types/client/providers/aws-quick/api.d.ts.map +1 -0
- package/lib/types/client/providers/aws-quick/locales.d.ts +117 -0
- package/lib/types/client/providers/aws-quick/locales.d.ts.map +1 -0
- package/lib/types/client/providers/aws-quick/styles.d.ts.map +1 -0
- package/lib/types/client/providers/claude/ClaudeComposerQuota.d.ts +29 -0
- package/lib/types/client/providers/claude/ClaudeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/claude/ClaudeSection.d.ts.map +1 -0
- package/lib/types/client/providers/claude/locales.d.ts +468 -0
- package/lib/types/client/providers/claude/locales.d.ts.map +1 -0
- package/lib/types/client/providers/claude/styles.d.ts.map +1 -0
- package/lib/types/client/providers/claude/useClaudeSection.d.ts +95 -0
- package/lib/types/client/providers/claude/useClaudeSection.d.ts.map +1 -0
- package/lib/types/client/providers/claude-api/ClaudeApiSection.d.ts.map +1 -0
- package/lib/types/client/providers/claude-api/api.d.ts.map +1 -0
- package/lib/types/client/providers/claude-api/locales.d.ts +161 -0
- package/lib/types/client/providers/claude-api/locales.d.ts.map +1 -0
- package/lib/types/client/providers/claude-api/styles.d.ts.map +1 -0
- package/lib/types/client/providers/claude-api/useClaudeApiSection.d.ts +37 -0
- package/lib/types/client/providers/claude-api/useClaudeApiSection.d.ts.map +1 -0
- package/lib/types/client/providers/cline-pass/ClinePassComposerQuota.d.ts +23 -0
- package/lib/types/client/providers/cline-pass/ClinePassComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/cline-pass/ClinePassSection.d.ts.map +1 -0
- package/lib/types/client/providers/cline-pass/api.d.ts +85 -0
- package/lib/types/client/providers/cline-pass/api.d.ts.map +1 -0
- package/lib/types/client/providers/cline-pass/locales.d.ts.map +1 -0
- package/lib/types/client/providers/cline-pass/styles.d.ts.map +1 -0
- package/lib/types/client/providers/codex-chatgpt/CodexComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/codex-chatgpt/CodexImageToolView.d.ts.map +1 -0
- package/lib/types/client/providers/codex-chatgpt/CodexSubscriptionSection.d.ts +42 -0
- package/lib/types/client/providers/codex-chatgpt/CodexSubscriptionSection.d.ts.map +1 -0
- package/lib/types/client/providers/codex-chatgpt/api.d.ts +60 -0
- package/lib/types/client/providers/codex-chatgpt/api.d.ts.map +1 -0
- package/lib/types/client/providers/codex-chatgpt/locales.d.ts +607 -0
- package/lib/types/client/providers/codex-chatgpt/locales.d.ts.map +1 -0
- package/lib/types/client/providers/codex-chatgpt/quota.d.ts +9 -0
- package/lib/types/client/providers/codex-chatgpt/quota.d.ts.map +1 -0
- package/lib/types/client/providers/codex-chatgpt/store.d.ts.map +1 -0
- package/lib/types/client/providers/codex-chatgpt/styles.d.ts.map +1 -0
- package/lib/types/client/providers/command-code/CommandCodeComposerQuota.d.ts +20 -0
- package/lib/types/client/providers/command-code/CommandCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/command-code/CommandCodeSection.d.ts.map +1 -0
- package/lib/types/client/providers/command-code/locales.d.ts +323 -0
- package/lib/types/client/providers/command-code/locales.d.ts.map +1 -0
- package/lib/types/client/providers/command-code/model-vendors.d.ts +12 -0
- package/lib/types/client/providers/command-code/model-vendors.d.ts.map +1 -0
- package/lib/types/client/providers/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts +27 -0
- package/lib/types/client/providers/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/glm-coding-plan/GlmCodingPlanSection.d.ts.map +1 -0
- package/lib/types/client/providers/glm-coding-plan/api.d.ts.map +1 -0
- package/lib/types/client/providers/glm-coding-plan/locales.d.ts +409 -0
- package/lib/types/client/providers/glm-coding-plan/locales.d.ts.map +1 -0
- package/lib/types/client/providers/glm-coding-plan/styles.d.ts.map +1 -0
- package/lib/types/client/providers/glm-coding-plan/useGlmCodingPlanSection.d.ts +65 -0
- package/lib/types/client/providers/glm-coding-plan/useGlmCodingPlanSection.d.ts.map +1 -0
- package/lib/types/client/providers/kimi-code/KimiCodeComposerQuota.d.ts +21 -0
- package/lib/types/client/providers/kimi-code/KimiCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/kimi-code/KimiCodeSection.d.ts.map +1 -0
- package/lib/types/client/providers/kimi-code/KimiModelCapabilities.d.ts +16 -0
- package/lib/types/client/providers/kimi-code/KimiModelCapabilities.d.ts.map +1 -0
- package/lib/types/client/providers/kimi-code/KimiQuotaCard.d.ts +31 -0
- package/lib/types/client/providers/kimi-code/KimiQuotaCard.d.ts.map +1 -0
- package/lib/types/client/providers/kimi-code/labels.d.ts +66 -0
- package/lib/types/client/providers/kimi-code/labels.d.ts.map +1 -0
- package/lib/types/client/providers/kimi-code/locales.d.ts +694 -0
- package/lib/types/client/providers/kimi-code/locales.d.ts.map +1 -0
- package/lib/types/client/providers/kimi-code/staff-art.d.ts.map +1 -0
- package/lib/types/client/providers/kimi-code/styles.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/MinimaxCodeComposerQuota.d.ts +23 -0
- package/lib/types/client/providers/minimax-code/MinimaxCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/MinimaxCodeSection.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/MinimaxVideoDocumentBody.d.ts +48 -0
- package/lib/types/client/providers/minimax-code/MinimaxVideoDocumentBody.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/MinimaxVideoToolView.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/VideoFormDialog.d.ts +49 -0
- package/lib/types/client/providers/minimax-code/VideoFormDialog.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/VideoSettingsSections.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/api.d.ts +35 -0
- package/lib/types/client/providers/minimax-code/api.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/commands-contract.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/document-preview.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/locales.d.ts +686 -0
- package/lib/types/client/providers/minimax-code/locales.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/styles.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/useMinimaxCodeSection.d.ts +164 -0
- package/lib/types/client/providers/minimax-code/useMinimaxCodeSection.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-command-host.d.ts +41 -0
- package/lib/types/client/providers/minimax-code/video-command-host.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-command-icon.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-command.d.ts +90 -0
- package/lib/types/client/providers/minimax-code/video-command.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-contract.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-defaults-store.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-form-rules.d.ts +245 -0
- package/lib/types/client/providers/minimax-code/video-form-rules.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-media-dropzone.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-media-input.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-media.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-presets.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-slots.d.ts.map +1 -0
- package/lib/types/client/providers/minimax-code/video-workspace.d.ts.map +1 -0
- package/lib/types/client/providers/ollama/OllamaSection.d.ts.map +1 -0
- package/lib/types/client/providers/ollama/api.d.ts +49 -0
- package/lib/types/client/providers/ollama/api.d.ts.map +1 -0
- package/lib/types/client/providers/ollama/locales.d.ts +479 -0
- package/lib/types/client/providers/ollama/locales.d.ts.map +1 -0
- package/lib/types/client/providers/opendesign/OpenDesignComposerQuota.d.ts +26 -0
- package/lib/types/client/providers/opendesign/OpenDesignComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/opendesign/OpenDesignSection.d.ts.map +1 -0
- package/lib/types/client/providers/opendesign/api.d.ts +45 -0
- package/lib/types/client/providers/opendesign/api.d.ts.map +1 -0
- package/lib/types/client/providers/opendesign/locales.d.ts.map +1 -0
- package/lib/types/client/providers/opendesign/styles.d.ts.map +1 -0
- package/lib/types/client/providers/qianwen-token-plan/QianwenComposerQuota.d.ts +14 -0
- package/lib/types/client/providers/qianwen-token-plan/QianwenComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/qianwen-token-plan/QianwenTokenPlanSection.d.ts.map +1 -0
- package/lib/types/client/providers/qianwen-token-plan/api.d.ts.map +1 -0
- package/lib/types/client/providers/qianwen-token-plan/locales.d.ts +158 -0
- package/lib/types/client/providers/qianwen-token-plan/locales.d.ts.map +1 -0
- package/lib/types/client/providers/qianwen-token-plan/styles.d.ts.map +1 -0
- package/lib/types/client/providers/qianwen-token-plan/useQianwenSection.d.ts +32 -0
- package/lib/types/client/providers/qianwen-token-plan/useQianwenSection.d.ts.map +1 -0
- package/lib/types/client/providers/qoder/QoderComposerQuota.d.ts +41 -0
- package/lib/types/client/providers/qoder/QoderComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/qoder/QoderSection.d.ts +37 -0
- package/lib/types/client/providers/qoder/QoderSection.d.ts.map +1 -0
- package/lib/types/client/providers/qoder/api.d.ts.map +1 -0
- package/lib/types/client/providers/qoder/locales.d.ts +322 -0
- package/lib/types/client/providers/qoder/locales.d.ts.map +1 -0
- package/lib/types/client/providers/qoder/styles.d.ts.map +1 -0
- package/lib/types/client/providers/qoder/useQoderSection.d.ts +97 -0
- package/lib/types/client/providers/qoder/useQoderSection.d.ts.map +1 -0
- package/lib/types/client/providers/relayone/RelayOneComposerQuota.d.ts +14 -0
- package/lib/types/client/providers/relayone/RelayOneComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/relayone/RelayOneSection.d.ts.map +1 -0
- package/lib/types/client/providers/relayone/api.d.ts.map +1 -0
- package/lib/types/client/providers/relayone/locales.d.ts +221 -0
- package/lib/types/client/providers/relayone/locales.d.ts.map +1 -0
- package/lib/types/client/providers/relayone/quota-format.d.ts +6 -0
- package/lib/types/client/providers/relayone/quota-format.d.ts.map +1 -0
- package/lib/types/client/providers/relayone/styles.d.ts.map +1 -0
- package/lib/types/client/providers/relayone/useRelayOneSection.d.ts +32 -0
- package/lib/types/client/providers/relayone/useRelayOneSection.d.ts.map +1 -0
- package/lib/types/client/providers/step-code/StepCodeComposerQuota.d.ts +50 -0
- package/lib/types/client/providers/step-code/StepCodeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/step-code/StepCodeSection.d.ts.map +1 -0
- package/lib/types/client/providers/step-code/api.d.ts.map +1 -0
- package/lib/types/client/providers/step-code/locales.d.ts +657 -0
- package/lib/types/client/providers/step-code/locales.d.ts.map +1 -0
- package/lib/types/client/providers/step-code/styles.d.ts.map +1 -0
- package/lib/types/client/providers/step-code/useStepCodeSection.d.ts +122 -0
- package/lib/types/client/providers/step-code/useStepCodeSection.d.ts.map +1 -0
- package/lib/types/client/providers/workbuddy/WorkBuddyComposerQuota.d.ts +34 -0
- package/lib/types/client/providers/workbuddy/WorkBuddyComposerQuota.d.ts.map +1 -0
- package/lib/types/client/providers/workbuddy/WorkBuddySection.d.ts +64 -0
- package/lib/types/client/providers/workbuddy/WorkBuddySection.d.ts.map +1 -0
- package/lib/types/client/providers/workbuddy/locales.d.ts +768 -0
- package/lib/types/client/providers/workbuddy/locales.d.ts.map +1 -0
- package/lib/types/client/providers/workbuddy/styles.d.ts.map +1 -0
- package/lib/types/client/providers/workbuddy/useWorkBuddySection.d.ts +149 -0
- package/lib/types/client/providers/workbuddy/useWorkBuddySection.d.ts.map +1 -0
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/entries/aws-quick-mcp.d.ts +2 -0
- package/lib/types/entries/aws-quick-mcp.d.ts.map +1 -0
- package/lib/types/entries/codemode.d.ts +57 -0
- package/lib/types/entries/codemode.d.ts.map +1 -0
- package/lib/types/entries/plan-mode-pipeline.d.ts +159 -0
- package/lib/types/entries/plan-mode-pipeline.d.ts.map +1 -0
- package/lib/types/entries/plan-mode.d.ts +453 -0
- package/lib/types/entries/plan-mode.d.ts.map +1 -0
- package/lib/types/entries/progress-updates.d.ts +43 -0
- package/lib/types/entries/progress-updates.d.ts.map +1 -0
- package/lib/types/entries/tool-result-pruner.d.ts +260 -0
- package/lib/types/entries/tool-result-pruner.d.ts.map +1 -0
- package/lib/types/host/common/account-pool.d.ts +1 -1
- package/lib/types/host/common/account-pool.d.ts.map +1 -1
- package/lib/types/host/common/i18n/zh.d.ts +3 -3
- package/lib/types/host/common/llm-compat.d.ts +35 -2
- package/lib/types/host/common/llm-compat.d.ts.map +1 -1
- package/lib/types/host/common/pool-storage.d.ts +1 -1
- package/lib/types/host/common/pool-storage.d.ts.map +1 -1
- package/lib/types/host/common/prefix-stability.d.ts +1 -1
- package/lib/types/host/common/prefix-stability.d.ts.map +1 -1
- package/lib/types/host/common/request-images.d.ts +18 -30
- package/lib/types/host/common/request-images.d.ts.map +1 -1
- package/lib/types/host/infra/hub/compaction-prompt.d.ts +94 -0
- package/lib/types/host/infra/hub/compaction-prompt.d.ts.map +1 -0
- package/lib/types/host/infra/hub/hub-overview.d.ts +31 -0
- package/lib/types/host/infra/hub/hub-overview.d.ts.map +1 -0
- package/lib/types/host/infra/hub/update-check.d.ts +118 -0
- package/lib/types/host/infra/hub/update-check.d.ts.map +1 -0
- package/lib/types/host/infra/network/fetch-address-policy.d.ts.map +1 -0
- package/lib/types/host/infra/network/fetch-configuration.d.ts +6 -0
- package/lib/types/host/infra/network/fetch-configuration.d.ts.map +1 -0
- package/lib/types/host/infra/network/proxy-manager.d.ts +246 -0
- package/lib/types/host/infra/network/proxy-manager.d.ts.map +1 -0
- package/lib/types/host/infra/network/relay-probe.d.ts.map +1 -0
- package/lib/types/host/infra/network/search-provider-switcher.d.ts +45 -0
- package/lib/types/host/infra/network/search-provider-switcher.d.ts.map +1 -0
- package/lib/types/host/infra/network/web-provider-reconciler.d.ts.map +1 -0
- package/lib/types/host/infra/network/wire-auth.d.ts +63 -0
- package/lib/types/host/infra/network/wire-auth.d.ts.map +1 -0
- package/lib/types/host/infra/storage/credential-store-secret-service.d.ts.map +1 -0
- package/lib/types/host/infra/storage/platform-token-store.d.ts.map +1 -0
- package/lib/types/host/infra/storage/token-store-linux.d.ts.map +1 -0
- package/lib/types/host/infra/storage/token-store-macos.d.ts.map +1 -0
- package/lib/types/host/infra/storage/token-store-windows.d.ts.map +1 -0
- package/lib/types/host/infra/storage/token-store.d.ts +81 -0
- package/lib/types/host/infra/storage/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/_claude-shared/claude-capability-memory.d.ts.map +1 -0
- package/lib/types/host/providers/_claude-shared/claude-code-cch.d.ts.map +1 -0
- package/lib/types/host/providers/_claude-shared/claude-code-corrections.d.ts.map +1 -0
- package/lib/types/host/providers/_claude-shared/claude-code-first-party.d.ts +68 -0
- package/lib/types/host/providers/_claude-shared/claude-code-first-party.d.ts.map +1 -0
- package/lib/types/host/providers/_claude-shared/claude-code-version.d.ts +90 -0
- package/lib/types/host/providers/_claude-shared/claude-code-version.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/acp-client.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/adapter.d.ts +305 -0
- package/lib/types/host/providers/antigravity-acp/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/auth-cache.d.ts +59 -0
- package/lib/types/host/providers/antigravity-acp/auth-cache.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/binary.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/catalog.d.ts +107 -0
- package/lib/types/host/providers/antigravity-acp/catalog.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/doctor.d.ts +73 -0
- package/lib/types/host/providers/antigravity-acp/doctor.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/errors.d.ts +69 -0
- package/lib/types/host/providers/antigravity-acp/errors.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/history.d.ts +131 -0
- package/lib/types/host/providers/antigravity-acp/history.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/login.d.ts +68 -0
- package/lib/types/host/providers/antigravity-acp/login.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/mcp-bridge.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/process-temp.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/routes.d.ts +100 -0
- package/lib/types/host/providers/antigravity-acp/routes.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/settings.d.ts +81 -0
- package/lib/types/host/providers/antigravity-acp/settings.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/subagent.d.ts +128 -0
- package/lib/types/host/providers/antigravity-acp/subagent.d.ts.map +1 -0
- package/lib/types/host/providers/antigravity-acp/types.d.ts +155 -0
- package/lib/types/host/providers/antigravity-acp/types.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/adapter.d.ts +73 -0
- package/lib/types/host/providers/aws-quick/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/binary.d.ts +3 -0
- package/lib/types/host/providers/aws-quick/binary.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/client.d.ts +85 -0
- package/lib/types/host/providers/aws-quick/client.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/execution-broker.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/images.d.ts +21 -0
- package/lib/types/host/providers/aws-quick/images.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/markup.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/outpost.d.ts +55 -0
- package/lib/types/host/providers/aws-quick/outpost.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/protocol.d.ts +53 -0
- package/lib/types/host/providers/aws-quick/protocol.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/routes.d.ts +15 -0
- package/lib/types/host/providers/aws-quick/routes.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/settings.d.ts +24 -0
- package/lib/types/host/providers/aws-quick/settings.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/tool-bridge.d.ts +67 -0
- package/lib/types/host/providers/aws-quick/tool-bridge.d.ts.map +1 -0
- package/lib/types/host/providers/aws-quick/types.d.ts +12 -0
- package/lib/types/host/providers/aws-quick/types.d.ts.map +1 -0
- package/lib/types/host/providers/claude/account-pool.d.ts +484 -0
- package/lib/types/host/providers/claude/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/claude/adapter.d.ts +243 -0
- package/lib/types/host/providers/claude/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/claude/adopt.d.ts +193 -0
- package/lib/types/host/providers/claude/adopt.d.ts.map +1 -0
- package/lib/types/host/providers/claude/client.d.ts +463 -0
- package/lib/types/host/providers/claude/client.d.ts.map +1 -0
- package/lib/types/host/providers/claude/mapper.d.ts +575 -0
- package/lib/types/host/providers/claude/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/claude/model-catalog.d.ts +258 -0
- package/lib/types/host/providers/claude/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/claude/oauth.d.ts +312 -0
- package/lib/types/host/providers/claude/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/claude/routes.d.ts +86 -0
- package/lib/types/host/providers/claude/routes.d.ts.map +1 -0
- package/lib/types/host/providers/claude/token-store.d.ts +261 -0
- package/lib/types/host/providers/claude/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/claude/types.d.ts +375 -0
- package/lib/types/host/providers/claude/types.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/adapter.d.ts +70 -0
- package/lib/types/host/providers/claude-api/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/capability-memory.d.ts +4 -0
- package/lib/types/host/providers/claude-api/capability-memory.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/catalog-manager.d.ts +57 -0
- package/lib/types/host/providers/claude-api/catalog-manager.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/client-version.d.ts +4 -0
- package/lib/types/host/providers/claude-api/client-version.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/client.d.ts +55 -0
- package/lib/types/host/providers/claude-api/client.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/compaction-store.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/compaction.d.ts +47 -0
- package/lib/types/host/providers/claude-api/compaction.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/mapper.d.ts +61 -0
- package/lib/types/host/providers/claude-api/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/model-catalog.d.ts +76 -0
- package/lib/types/host/providers/claude-api/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/routes.d.ts +22 -0
- package/lib/types/host/providers/claude-api/routes.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/stream.d.ts +88 -0
- package/lib/types/host/providers/claude-api/stream.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/token-store.d.ts +60 -0
- package/lib/types/host/providers/claude-api/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/claude-api/types.d.ts +68 -0
- package/lib/types/host/providers/claude-api/types.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/account-pool.d.ts +63 -0
- package/lib/types/host/providers/cline-pass/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/adapter.d.ts +58 -0
- package/lib/types/host/providers/cline-pass/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/catalog.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/client.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/engine.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/line.d.ts +55 -0
- package/lib/types/host/providers/cline-pass/line.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/mapper.d.ts +138 -0
- package/lib/types/host/providers/cline-pass/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/protocol.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/routes.d.ts +92 -0
- package/lib/types/host/providers/cline-pass/routes.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/store.d.ts +75 -0
- package/lib/types/host/providers/cline-pass/store.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/token-store.d.ts +170 -0
- package/lib/types/host/providers/cline-pass/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/tools.d.ts +21 -0
- package/lib/types/host/providers/cline-pass/tools.d.ts.map +1 -0
- package/lib/types/host/providers/cline-pass/types.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/callback-server.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-account-pool.d.ts +183 -0
- package/lib/types/host/providers/codex-chatgpt/codex-account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-adopt.d.ts +162 -0
- package/lib/types/host/providers/codex-chatgpt/codex-adopt.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-catalog.d.ts +69 -0
- package/lib/types/host/providers/codex-chatgpt/codex-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-fetch.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-identity.d.ts +130 -0
- package/lib/types/host/providers/codex-chatgpt/codex-identity.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-images.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-remote-compaction.d.ts +41 -0
- package/lib/types/host/providers/codex-chatgpt/codex-remote-compaction.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/codex-search.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/model-catalog.d.ts +43 -0
- package/lib/types/host/providers/codex-chatgpt/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/oauth-service.d.ts +242 -0
- package/lib/types/host/providers/codex-chatgpt/oauth-service.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/preferences.d.ts +26 -0
- package/lib/types/host/providers/codex-chatgpt/preferences.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/responses-client.d.ts +125 -0
- package/lib/types/host/providers/codex-chatgpt/responses-client.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/responses-mapper.d.ts +133 -0
- package/lib/types/host/providers/codex-chatgpt/responses-mapper.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/routes.d.ts +32 -0
- package/lib/types/host/providers/codex-chatgpt/routes.d.ts.map +1 -0
- package/lib/types/host/providers/codex-chatgpt/usage-service.d.ts +109 -0
- package/lib/types/host/providers/codex-chatgpt/usage-service.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/account-pool.d.ts +72 -0
- package/lib/types/host/providers/command-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/client.d.ts +126 -0
- package/lib/types/host/providers/command-code/client.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/mapper.d.ts +199 -0
- package/lib/types/host/providers/command-code/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/model-catalog.d.ts +45 -0
- package/lib/types/host/providers/command-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/oauth.d.ts +95 -0
- package/lib/types/host/providers/command-code/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/plans.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/routes.d.ts +44 -0
- package/lib/types/host/providers/command-code/routes.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/token-store.d.ts +100 -0
- package/lib/types/host/providers/command-code/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/command-code/types.d.ts +222 -0
- package/lib/types/host/providers/command-code/types.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/account-pool.d.ts +152 -0
- package/lib/types/host/providers/glm-coding-plan/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/adapter.d.ts +167 -0
- package/lib/types/host/providers/glm-coding-plan/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/adopt.d.ts +296 -0
- package/lib/types/host/providers/glm-coding-plan/adopt.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/biz-token-cache.d.ts +99 -0
- package/lib/types/host/providers/glm-coding-plan/biz-token-cache.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/client.d.ts +218 -0
- package/lib/types/host/providers/glm-coding-plan/client.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/exchange.d.ts +189 -0
- package/lib/types/host/providers/glm-coding-plan/exchange.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/mapper-anthropic.d.ts +312 -0
- package/lib/types/host/providers/glm-coding-plan/mapper-anthropic.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/mapper-openai.d.ts +182 -0
- package/lib/types/host/providers/glm-coding-plan/mapper-openai.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/model-catalog.d.ts +180 -0
- package/lib/types/host/providers/glm-coding-plan/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/oauth.d.ts +180 -0
- package/lib/types/host/providers/glm-coding-plan/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/routes.d.ts +93 -0
- package/lib/types/host/providers/glm-coding-plan/routes.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/token-store.d.ts +202 -0
- package/lib/types/host/providers/glm-coding-plan/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/glm-coding-plan/types.d.ts +462 -0
- package/lib/types/host/providers/glm-coding-plan/types.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/account-pool.d.ts +124 -0
- package/lib/types/host/providers/kimi-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/adapter.d.ts +405 -0
- package/lib/types/host/providers/kimi-code/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/api-key.d.ts +55 -0
- package/lib/types/host/providers/kimi-code/api-key.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/cache-affinity.d.ts +112 -0
- package/lib/types/host/providers/kimi-code/cache-affinity.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/cache-hint.d.ts +65 -0
- package/lib/types/host/providers/kimi-code/cache-hint.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/cache-wait.d.ts +166 -0
- package/lib/types/host/providers/kimi-code/cache-wait.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/client.d.ts +316 -0
- package/lib/types/host/providers/kimi-code/client.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/mapper.d.ts +913 -0
- package/lib/types/host/providers/kimi-code/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/media-files.d.ts +179 -0
- package/lib/types/host/providers/kimi-code/media-files.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/modalities.d.ts +23 -0
- package/lib/types/host/providers/kimi-code/modalities.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/model-catalog.d.ts +125 -0
- package/lib/types/host/providers/kimi-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/oauth.d.ts +213 -0
- package/lib/types/host/providers/kimi-code/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/repeat-breaker.d.ts +185 -0
- package/lib/types/host/providers/kimi-code/repeat-breaker.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/routes.d.ts +52 -0
- package/lib/types/host/providers/kimi-code/routes.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/session-cache-state.d.ts +156 -0
- package/lib/types/host/providers/kimi-code/session-cache-state.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/token-store.d.ts +182 -0
- package/lib/types/host/providers/kimi-code/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/tool-argument-guard.d.ts +43 -0
- package/lib/types/host/providers/kimi-code/tool-argument-guard.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/tool-argument-recovery.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/types.d.ts +407 -0
- package/lib/types/host/providers/kimi-code/types.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/video-store.d.ts.map +1 -0
- package/lib/types/host/providers/kimi-code/video-tool.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/account-pool.d.ts +309 -0
- package/lib/types/host/providers/minimax-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/adapter.d.ts +205 -0
- package/lib/types/host/providers/minimax-code/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/checkin-gateway.d.ts +117 -0
- package/lib/types/host/providers/minimax-code/checkin-gateway.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/checkin.d.ts +178 -0
- package/lib/types/host/providers/minimax-code/checkin.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/client.d.ts +242 -0
- package/lib/types/host/providers/minimax-code/client.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/files-api.d.ts +89 -0
- package/lib/types/host/providers/minimax-code/files-api.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/iso-bmff-duration.d.ts +43 -0
- package/lib/types/host/providers/minimax-code/iso-bmff-duration.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/mapper.d.ts +260 -0
- package/lib/types/host/providers/minimax-code/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/matrix-client.d.ts +128 -0
- package/lib/types/host/providers/minimax-code/matrix-client.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/media-store.d.ts +122 -0
- package/lib/types/host/providers/minimax-code/media-store.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/modalities.d.ts +20 -0
- package/lib/types/host/providers/minimax-code/modalities.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/model-catalog.d.ts +227 -0
- package/lib/types/host/providers/minimax-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/oauth.d.ts +220 -0
- package/lib/types/host/providers/minimax-code/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/reset-card.d.ts +106 -0
- package/lib/types/host/providers/minimax-code/reset-card.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/routes.d.ts +82 -0
- package/lib/types/host/providers/minimax-code/routes.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/runtime-enhancements.d.ts +205 -0
- package/lib/types/host/providers/minimax-code/runtime-enhancements.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/token-store.d.ts +300 -0
- package/lib/types/host/providers/minimax-code/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/types.d.ts +344 -0
- package/lib/types/host/providers/minimax-code/types.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/video-history.d.ts +209 -0
- package/lib/types/host/providers/minimax-code/video-history.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/video-submit-rules.d.ts.map +1 -0
- package/lib/types/host/providers/minimax-code/video-tool.d.ts.map +1 -0
- package/lib/types/host/providers/ollama/account-pool.d.ts +65 -0
- package/lib/types/host/providers/ollama/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/ollama/adapter.d.ts +85 -0
- package/lib/types/host/providers/ollama/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/ollama/client.d.ts +166 -0
- package/lib/types/host/providers/ollama/client.d.ts.map +1 -0
- package/lib/types/host/providers/ollama/mapper.d.ts +49 -0
- package/lib/types/host/providers/ollama/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/ollama/routes.d.ts +22 -0
- package/lib/types/host/providers/ollama/routes.d.ts.map +1 -0
- package/lib/types/host/providers/ollama/token-store.d.ts +78 -0
- package/lib/types/host/providers/ollama/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/ollama/types.d.ts +220 -0
- package/lib/types/host/providers/ollama/types.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/account-pool.d.ts +54 -0
- package/lib/types/host/providers/opendesign/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/adapter.d.ts +82 -0
- package/lib/types/host/providers/opendesign/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/catalog.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/client.d.ts +258 -0
- package/lib/types/host/providers/opendesign/client.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/line.d.ts +60 -0
- package/lib/types/host/providers/opendesign/line.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/mapper.d.ts +218 -0
- package/lib/types/host/providers/opendesign/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/routes.d.ts +75 -0
- package/lib/types/host/providers/opendesign/routes.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/token-store.d.ts +241 -0
- package/lib/types/host/providers/opendesign/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/opendesign/types.d.ts.map +1 -0
- package/lib/types/host/providers/qianwen-token-plan/adapter.d.ts +35 -0
- package/lib/types/host/providers/qianwen-token-plan/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/qianwen-token-plan/cache-stats.d.ts +17 -0
- package/lib/types/host/providers/qianwen-token-plan/cache-stats.d.ts.map +1 -0
- package/lib/types/host/providers/qianwen-token-plan/client.d.ts +5 -0
- package/lib/types/host/providers/qianwen-token-plan/client.d.ts.map +1 -0
- package/lib/types/host/providers/qianwen-token-plan/mapper.d.ts +71 -0
- package/lib/types/host/providers/qianwen-token-plan/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/qianwen-token-plan/model-catalog.d.ts +28 -0
- package/lib/types/host/providers/qianwen-token-plan/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/qianwen-token-plan/routes.d.ts +12 -0
- package/lib/types/host/providers/qianwen-token-plan/routes.d.ts.map +1 -0
- package/lib/types/host/providers/qianwen-token-plan/token-store.d.ts +56 -0
- package/lib/types/host/providers/qianwen-token-plan/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/qianwen-token-plan/types.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/account-pool.d.ts +141 -0
- package/lib/types/host/providers/qoder/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/adapter.d.ts +165 -0
- package/lib/types/host/providers/qoder/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/adopt.d.ts +104 -0
- package/lib/types/host/providers/qoder/adopt.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/client.d.ts +292 -0
- package/lib/types/host/providers/qoder/client.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/cosy.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/mapper.d.ts +332 -0
- package/lib/types/host/providers/qoder/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/model-catalog.d.ts +231 -0
- package/lib/types/host/providers/qoder/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/oauth.d.ts +151 -0
- package/lib/types/host/providers/qoder/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/routes.d.ts +119 -0
- package/lib/types/host/providers/qoder/routes.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/token-store.d.ts +280 -0
- package/lib/types/host/providers/qoder/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/qoder/types.d.ts +262 -0
- package/lib/types/host/providers/qoder/types.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/account-pool.d.ts +129 -0
- package/lib/types/host/providers/relayone/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/adapter.d.ts +79 -0
- package/lib/types/host/providers/relayone/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/catalog-manager.d.ts +45 -0
- package/lib/types/host/providers/relayone/catalog-manager.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/client.d.ts +5 -0
- package/lib/types/host/providers/relayone/client.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/image-tool.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/mapper-anthropic.d.ts +49 -0
- package/lib/types/host/providers/relayone/mapper-anthropic.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/mapper-openai.d.ts +36 -0
- package/lib/types/host/providers/relayone/mapper-openai.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/mapper-shared.d.ts +25 -0
- package/lib/types/host/providers/relayone/mapper-shared.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/media-shared.d.ts +27 -0
- package/lib/types/host/providers/relayone/media-shared.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/model-catalog.d.ts +70 -0
- package/lib/types/host/providers/relayone/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/quota.d.ts +29 -0
- package/lib/types/host/providers/relayone/quota.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/routes.d.ts +25 -0
- package/lib/types/host/providers/relayone/routes.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/token-store.d.ts +49 -0
- package/lib/types/host/providers/relayone/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/types.d.ts.map +1 -0
- package/lib/types/host/providers/relayone/video-tool.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/account-pool.d.ts +187 -0
- package/lib/types/host/providers/step-code/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/adapter.d.ts +154 -0
- package/lib/types/host/providers/step-code/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/adopt.d.ts +156 -0
- package/lib/types/host/providers/step-code/adopt.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/cache-stats.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/client.d.ts +311 -0
- package/lib/types/host/providers/step-code/client.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/mapper.d.ts +248 -0
- package/lib/types/host/providers/step-code/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/model-catalog.d.ts +218 -0
- package/lib/types/host/providers/step-code/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/oauth.d.ts +265 -0
- package/lib/types/host/providers/step-code/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/routes.d.ts +102 -0
- package/lib/types/host/providers/step-code/routes.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/token-store.d.ts +325 -0
- package/lib/types/host/providers/step-code/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/step-code/types.d.ts +492 -0
- package/lib/types/host/providers/step-code/types.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/account-pool.d.ts +389 -0
- package/lib/types/host/providers/workbuddy/account-pool.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/adapter.d.ts +246 -0
- package/lib/types/host/providers/workbuddy/adapter.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/atrest.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/checkin.d.ts +150 -0
- package/lib/types/host/providers/workbuddy/checkin.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/client.d.ts +214 -0
- package/lib/types/host/providers/workbuddy/client.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/dsml.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/guardrails.d.ts +111 -0
- package/lib/types/host/providers/workbuddy/guardrails.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/identity.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/mapper.d.ts +238 -0
- package/lib/types/host/providers/workbuddy/mapper.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/model-catalog.d.ts +153 -0
- package/lib/types/host/providers/workbuddy/model-catalog.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/oauth.d.ts +47 -0
- package/lib/types/host/providers/workbuddy/oauth.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/outbound-identity.d.ts +105 -0
- package/lib/types/host/providers/workbuddy/outbound-identity.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/routes.d.ts +56 -0
- package/lib/types/host/providers/workbuddy/routes.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/token-store.d.ts +370 -0
- package/lib/types/host/providers/workbuddy/token-store.d.ts.map +1 -0
- package/lib/types/host/providers/workbuddy/types.d.ts +185 -0
- package/lib/types/host/providers/workbuddy/types.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/budget.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/contracts.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/index.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/install.d.ts +124 -0
- package/lib/types/host/runtime/cache-warmup/install.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/logging.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/projection.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/result-tool.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/retrieval-intent.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/settings.d.ts +79 -0
- package/lib/types/host/runtime/cache-warmup/settings.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/store.d.ts.map +1 -0
- package/lib/types/host/runtime/cache-warmup/usage.d.ts.map +1 -0
- package/lib/types/host/runtime/codemode/discovery.d.ts.map +1 -0
- package/lib/types/host/runtime/codemode/executor.d.ts.map +1 -0
- package/lib/types/host/runtime/codemode/retention.d.ts.map +1 -0
- package/lib/types/host/runtime/codemode/rules.d.ts.map +1 -0
- package/lib/types/host/runtime/codemode/scope.d.ts.map +1 -0
- package/lib/types/host/runtime/codemode/transport.d.ts +493 -0
- package/lib/types/host/runtime/codemode/transport.d.ts.map +1 -0
- package/lib/types/host/runtime/compact-after-turn/index.d.ts +105 -0
- package/lib/types/host/runtime/compact-after-turn/index.d.ts.map +1 -0
- package/lib/types/host/runtime/compaction-route/index.d.ts +118 -0
- package/lib/types/host/runtime/compaction-route/index.d.ts.map +1 -0
- package/lib/types/host/runtime/deepseek-v41-flash/discipline.d.ts +27 -0
- package/lib/types/host/runtime/deepseek-v41-flash/discipline.d.ts.map +1 -0
- package/lib/types/host/runtime/deepseek-v41-flash/index.d.ts +70 -0
- package/lib/types/host/runtime/deepseek-v41-flash/index.d.ts.map +1 -0
- package/lib/types/host/runtime/deepseek-v41-flash/match.d.ts.map +1 -0
- package/lib/types/host/runtime/deepseek-v41-flash/observation-tagger.d.ts.map +1 -0
- package/lib/types/host/runtime/deepseek-v41-flash/state-anchor.d.ts.map +1 -0
- package/lib/types/host/runtime/dispatch-ledger/binding.d.ts.map +1 -0
- package/lib/types/host/runtime/dispatch-ledger/guard.d.ts +282 -0
- package/lib/types/host/runtime/dispatch-ledger/guard.d.ts.map +1 -0
- package/lib/types/host/runtime/dispatch-ledger/header.d.ts +143 -0
- package/lib/types/host/runtime/dispatch-ledger/header.d.ts.map +1 -0
- package/lib/types/host/runtime/dispatch-ledger/index.d.ts.map +1 -0
- package/lib/types/host/runtime/dispatch-ledger/ledger.d.ts +505 -0
- package/lib/types/host/runtime/dispatch-ledger/ledger.d.ts.map +1 -0
- package/lib/types/host/runtime/dispatch-ledger/policy.d.ts.map +1 -0
- package/lib/types/host/runtime/dispatch-ledger/protocol.d.ts.map +1 -0
- package/lib/types/host/runtime/dispatch-ledger/tool.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/compaction-policy-guard.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/dispatch-execution-guard.d.ts +143 -0
- package/lib/types/host/runtime/guards/dispatch-execution-guard.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/plan-mode-cache-guard.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/ptc-sdk-cache-guard.d.ts +75 -0
- package/lib/types/host/runtime/guards/ptc-sdk-cache-guard.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/settled-job-guard.d.ts +47 -0
- package/lib/types/host/runtime/guards/settled-job-guard.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/subagent-model-authorization.d.ts +676 -0
- package/lib/types/host/runtime/guards/subagent-model-authorization.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/subagent-route-audit.d.ts +154 -0
- package/lib/types/host/runtime/guards/subagent-route-audit.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/team-policy-cache-guard.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/timeline-cache-guard.d.ts.map +1 -0
- package/lib/types/host/runtime/guards/tool-result-pruner-guard.d.ts.map +1 -0
- package/lib/types/host/runtime/no-answer-resume/index.d.ts.map +1 -0
- package/lib/types/host/runtime/open-models/discipline.d.ts +14 -0
- package/lib/types/host/runtime/open-models/discipline.d.ts.map +1 -0
- package/lib/types/host/runtime/open-models/index.d.ts +59 -0
- package/lib/types/host/runtime/open-models/index.d.ts.map +1 -0
- package/lib/types/host/runtime/open-models/observation-guard.d.ts.map +1 -0
- package/lib/types/host/runtime/open-models/profiles.d.ts.map +1 -0
- package/lib/types/host/runtime/open-models/state-anchor.d.ts.map +1 -0
- package/lib/types/host/runtime/presets/agent-preset.d.ts.map +1 -0
- package/lib/types/host/runtime/presets/preset-sync.d.ts +130 -0
- package/lib/types/host/runtime/presets/preset-sync.d.ts.map +1 -0
- package/lib/types/host/runtime/progress-updates/index.d.ts.map +1 -0
- package/lib/types/host/runtime/progress-updates/nudge.d.ts.map +1 -0
- package/lib/types/host/runtime/progress-updates/projection.d.ts +181 -0
- package/lib/types/host/runtime/progress-updates/projection.d.ts.map +1 -0
- package/lib/types/host/runtime/progress-updates/prompt.d.ts.map +1 -0
- package/lib/types/host/runtime/progress-updates/routes.d.ts.map +1 -0
- package/lib/types/host/runtime/progress-updates/store.d.ts.map +1 -0
- package/lib/types/host/runtime/progress-updates/tool.d.ts.map +1 -0
- package/lib/types/host/runtime/reasoning-collapse-guard/index.d.ts +304 -0
- package/lib/types/host/runtime/reasoning-collapse-guard/index.d.ts.map +1 -0
- package/lib/types/host/runtime/session-title-guard/index.d.ts.map +1 -0
- package/lib/types/host/runtime/widget-board/line-contracts.d.ts +192 -0
- package/lib/types/host/runtime/widget-board/line-contracts.d.ts.map +1 -0
- package/lib/types/host/runtime/widget-board/line-quota.d.ts +253 -0
- package/lib/types/host/runtime/widget-board/line-quota.d.ts.map +1 -0
- package/lib/types/host/runtime/widget-board/line-registry.d.ts +346 -0
- package/lib/types/host/runtime/widget-board/line-registry.d.ts.map +1 -0
- package/lib/types/host/runtime/widget-board/provider.d.ts.map +1 -0
- package/lib/types/index.d.ts +120 -120
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/claude-contracts.d.ts +0 -59
- package/lib/types/shared/claude-contracts.d.ts.map +1 -1
- package/lib/types/shared/hub-contracts.d.ts +4 -0
- package/lib/types/shared/hub-contracts.d.ts.map +1 -1
- package/package.json +57 -59
- package/CHANGELOG.md +0 -2718
- package/lib/entry-plan-mode-EShP3ndV.js +0 -1843
- package/lib/entry-plan-mode-pipeline-BCAZPcOz.js +0 -433
- package/lib/entry-progress-updates-DMLVID9V.js +0 -1154
- package/lib/entry-tool-result-pruner-CNGm7XOI.js +0 -1112
- package/lib/llm-compat--WsaC9K6.js +0 -134
- package/lib/types/client/CodexComposerQuota.d.ts.map +0 -1
- package/lib/types/client/CodexImageToolView.d.ts.map +0 -1
- package/lib/types/client/CodexSubscriptionSection.d.ts +0 -42
- package/lib/types/client/CodexSubscriptionSection.d.ts.map +0 -1
- package/lib/types/client/CompactionRouteCard.d.ts +0 -43
- package/lib/types/client/CompactionRouteCard.d.ts.map +0 -1
- package/lib/types/client/ProviderHubSection.d.ts +0 -16
- package/lib/types/client/ProviderHubSection.d.ts.map +0 -1
- package/lib/types/client/antigravity-acp/AntigravityAcpComposerBadge.d.ts +0 -35
- package/lib/types/client/antigravity-acp/AntigravityAcpComposerBadge.d.ts.map +0 -1
- package/lib/types/client/antigravity-acp/AntigravityAcpSection.d.ts.map +0 -1
- package/lib/types/client/antigravity-acp/api.d.ts +0 -36
- package/lib/types/client/antigravity-acp/api.d.ts.map +0 -1
- package/lib/types/client/antigravity-acp/locales.d.ts +0 -557
- package/lib/types/client/antigravity-acp/locales.d.ts.map +0 -1
- package/lib/types/client/antigravity-acp/route.d.ts.map +0 -1
- package/lib/types/client/antigravity-acp/styles.d.ts.map +0 -1
- package/lib/types/client/api.d.ts +0 -60
- package/lib/types/client/api.d.ts.map +0 -1
- package/lib/types/client/aws-quick/AwsQuickSection.d.ts.map +0 -1
- package/lib/types/client/aws-quick/api.d.ts +0 -11
- package/lib/types/client/aws-quick/api.d.ts.map +0 -1
- package/lib/types/client/aws-quick/locales.d.ts +0 -117
- package/lib/types/client/aws-quick/locales.d.ts.map +0 -1
- package/lib/types/client/aws-quick/styles.d.ts.map +0 -1
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts +0 -29
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts.map +0 -1
- package/lib/types/client/claude/ClaudeSection.d.ts.map +0 -1
- package/lib/types/client/claude/locales.d.ts +0 -468
- package/lib/types/client/claude/locales.d.ts.map +0 -1
- package/lib/types/client/claude/styles.d.ts.map +0 -1
- package/lib/types/client/claude/useClaudeSection.d.ts +0 -95
- package/lib/types/client/claude/useClaudeSection.d.ts.map +0 -1
- package/lib/types/client/claude-api/ClaudeApiSection.d.ts.map +0 -1
- package/lib/types/client/claude-api/api.d.ts.map +0 -1
- package/lib/types/client/claude-api/locales.d.ts +0 -161
- package/lib/types/client/claude-api/locales.d.ts.map +0 -1
- package/lib/types/client/claude-api/styles.d.ts.map +0 -1
- package/lib/types/client/claude-api/useClaudeApiSection.d.ts +0 -37
- package/lib/types/client/claude-api/useClaudeApiSection.d.ts.map +0 -1
- package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts +0 -23
- package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts.map +0 -1
- package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +0 -1
- package/lib/types/client/cline-pass/api.d.ts +0 -85
- package/lib/types/client/cline-pass/api.d.ts.map +0 -1
- package/lib/types/client/cline-pass/locales.d.ts.map +0 -1
- package/lib/types/client/cline-pass/styles.d.ts.map +0 -1
- package/lib/types/client/codemode/CodeRunToolView.d.ts +0 -68
- package/lib/types/client/codemode/CodeRunToolView.d.ts.map +0 -1
- package/lib/types/client/codemode/highlight.d.ts.map +0 -1
- package/lib/types/client/codemode/styles.d.ts.map +0 -1
- package/lib/types/client/codemode/tool-name.d.ts.map +0 -1
- package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts +0 -20
- package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts.map +0 -1
- package/lib/types/client/command-code/CommandCodeSection.d.ts.map +0 -1
- package/lib/types/client/command-code/locales.d.ts +0 -305
- package/lib/types/client/command-code/locales.d.ts.map +0 -1
- package/lib/types/client/compact-after-turn/CompactAfterTurnToggle.d.ts +0 -24
- package/lib/types/client/compact-after-turn/CompactAfterTurnToggle.d.ts.map +0 -1
- package/lib/types/client/compact-after-turn/locales.d.ts.map +0 -1
- package/lib/types/client/compact-after-turn/styles.d.ts.map +0 -1
- package/lib/types/client/dispatch-ledger/MandateToolView.d.ts.map +0 -1
- package/lib/types/client/dispatch-ledger/locales.d.ts.map +0 -1
- package/lib/types/client/dispatch-ledger/styles.d.ts.map +0 -1
- package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts +0 -27
- package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts.map +0 -1
- package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts.map +0 -1
- package/lib/types/client/glm-coding-plan/api.d.ts.map +0 -1
- package/lib/types/client/glm-coding-plan/locales.d.ts +0 -409
- package/lib/types/client/glm-coding-plan/locales.d.ts.map +0 -1
- package/lib/types/client/glm-coding-plan/styles.d.ts.map +0 -1
- package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts +0 -65
- package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts.map +0 -1
- package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts +0 -21
- package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts.map +0 -1
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +0 -1
- package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts +0 -16
- package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts.map +0 -1
- package/lib/types/client/kimi-code/KimiQuotaCard.d.ts +0 -31
- package/lib/types/client/kimi-code/KimiQuotaCard.d.ts.map +0 -1
- package/lib/types/client/kimi-code/labels.d.ts +0 -66
- package/lib/types/client/kimi-code/labels.d.ts.map +0 -1
- package/lib/types/client/kimi-code/locales.d.ts +0 -694
- package/lib/types/client/kimi-code/locales.d.ts.map +0 -1
- package/lib/types/client/kimi-code/staff-art.d.ts.map +0 -1
- package/lib/types/client/kimi-code/styles.d.ts.map +0 -1
- package/lib/types/client/locales.d.ts +0 -541
- package/lib/types/client/locales.d.ts.map +0 -1
- package/lib/types/client/mermaid/renderer.d.ts.map +0 -1
- package/lib/types/client/mermaid/sanitize.d.ts.map +0 -1
- package/lib/types/client/mermaid/styles.d.ts.map +0 -1
- package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts +0 -23
- package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts.map +0 -1
- package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts.map +0 -1
- package/lib/types/client/minimax-code/MinimaxVideoDocumentBody.d.ts +0 -86
- package/lib/types/client/minimax-code/MinimaxVideoDocumentBody.d.ts.map +0 -1
- package/lib/types/client/minimax-code/MinimaxVideoToolView.d.ts.map +0 -1
- package/lib/types/client/minimax-code/VideoFormDialog.d.ts +0 -86
- package/lib/types/client/minimax-code/VideoFormDialog.d.ts.map +0 -1
- package/lib/types/client/minimax-code/VideoSettingsSections.d.ts.map +0 -1
- package/lib/types/client/minimax-code/api.d.ts +0 -35
- package/lib/types/client/minimax-code/api.d.ts.map +0 -1
- package/lib/types/client/minimax-code/commands-contract.d.ts.map +0 -1
- package/lib/types/client/minimax-code/document-preview.d.ts.map +0 -1
- package/lib/types/client/minimax-code/locales.d.ts +0 -686
- package/lib/types/client/minimax-code/locales.d.ts.map +0 -1
- package/lib/types/client/minimax-code/styles.d.ts.map +0 -1
- package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts +0 -164
- package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-command-host.d.ts +0 -67
- package/lib/types/client/minimax-code/video-command-host.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-command-icon.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-command.d.ts +0 -120
- package/lib/types/client/minimax-code/video-command.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-contract.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-defaults-store.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-form-rules.d.ts +0 -288
- package/lib/types/client/minimax-code/video-form-rules.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-media-dropzone.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-media-input.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-media.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-presets.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-slots.d.ts.map +0 -1
- package/lib/types/client/minimax-code/video-workspace.d.ts.map +0 -1
- package/lib/types/client/ollama/OllamaSection.d.ts.map +0 -1
- package/lib/types/client/ollama/api.d.ts +0 -49
- package/lib/types/client/ollama/api.d.ts.map +0 -1
- package/lib/types/client/ollama/locales.d.ts +0 -479
- package/lib/types/client/ollama/locales.d.ts.map +0 -1
- package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts +0 -26
- package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts.map +0 -1
- package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +0 -1
- package/lib/types/client/opendesign/api.d.ts +0 -45
- package/lib/types/client/opendesign/api.d.ts.map +0 -1
- package/lib/types/client/opendesign/locales.d.ts.map +0 -1
- package/lib/types/client/opendesign/styles.d.ts.map +0 -1
- package/lib/types/client/progress-updates/contracts.d.ts.map +0 -1
- package/lib/types/client/progress-updates/guide-artwork.d.ts.map +0 -1
- package/lib/types/client/progress-updates/host-source.d.ts +0 -144
- package/lib/types/client/progress-updates/host-source.d.ts.map +0 -1
- package/lib/types/client/progress-updates/index.d.ts +0 -91
- package/lib/types/client/progress-updates/index.d.ts.map +0 -1
- package/lib/types/client/progress-updates/locales.d.ts.map +0 -1
- package/lib/types/client/progress-updates/markdown-lite.d.ts +0 -99
- package/lib/types/client/progress-updates/markdown-lite.d.ts.map +0 -1
- package/lib/types/client/progress-updates/progress-row.d.ts.map +0 -1
- package/lib/types/client/progress-updates/settings-binding.d.ts.map +0 -1
- package/lib/types/client/progress-updates/settings-section.d.ts.map +0 -1
- package/lib/types/client/progress-updates/styles.d.ts.map +0 -1
- package/lib/types/client/progress-updates/tool-name.d.ts.map +0 -1
- package/lib/types/client/progress-updates/updates-panel.d.ts.map +0 -1
- package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts +0 -14
- package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts.map +0 -1
- package/lib/types/client/qianwen-token-plan/QianwenTokenPlanSection.d.ts.map +0 -1
- package/lib/types/client/qianwen-token-plan/api.d.ts.map +0 -1
- package/lib/types/client/qianwen-token-plan/locales.d.ts +0 -158
- package/lib/types/client/qianwen-token-plan/locales.d.ts.map +0 -1
- package/lib/types/client/qianwen-token-plan/styles.d.ts.map +0 -1
- package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts +0 -32
- package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts.map +0 -1
- package/lib/types/client/qoder/QoderComposerQuota.d.ts +0 -41
- package/lib/types/client/qoder/QoderComposerQuota.d.ts.map +0 -1
- package/lib/types/client/qoder/QoderSection.d.ts +0 -37
- package/lib/types/client/qoder/QoderSection.d.ts.map +0 -1
- package/lib/types/client/qoder/api.d.ts.map +0 -1
- package/lib/types/client/qoder/locales.d.ts +0 -322
- package/lib/types/client/qoder/locales.d.ts.map +0 -1
- package/lib/types/client/qoder/styles.d.ts.map +0 -1
- package/lib/types/client/qoder/useQoderSection.d.ts +0 -97
- package/lib/types/client/qoder/useQoderSection.d.ts.map +0 -1
- package/lib/types/client/quota.d.ts +0 -9
- package/lib/types/client/quota.d.ts.map +0 -1
- package/lib/types/client/relayone/RelayOneComposerQuota.d.ts +0 -14
- package/lib/types/client/relayone/RelayOneComposerQuota.d.ts.map +0 -1
- package/lib/types/client/relayone/RelayOneSection.d.ts.map +0 -1
- package/lib/types/client/relayone/api.d.ts.map +0 -1
- package/lib/types/client/relayone/locales.d.ts +0 -221
- package/lib/types/client/relayone/locales.d.ts.map +0 -1
- package/lib/types/client/relayone/quota-format.d.ts +0 -6
- package/lib/types/client/relayone/quota-format.d.ts.map +0 -1
- package/lib/types/client/relayone/styles.d.ts.map +0 -1
- package/lib/types/client/relayone/useRelayOneSection.d.ts +0 -32
- package/lib/types/client/relayone/useRelayOneSection.d.ts.map +0 -1
- package/lib/types/client/step-code/StepCodeComposerQuota.d.ts +0 -50
- package/lib/types/client/step-code/StepCodeComposerQuota.d.ts.map +0 -1
- package/lib/types/client/step-code/StepCodeSection.d.ts.map +0 -1
- package/lib/types/client/step-code/api.d.ts.map +0 -1
- package/lib/types/client/step-code/locales.d.ts +0 -657
- package/lib/types/client/step-code/locales.d.ts.map +0 -1
- package/lib/types/client/step-code/styles.d.ts.map +0 -1
- package/lib/types/client/step-code/useStepCodeSection.d.ts +0 -122
- package/lib/types/client/step-code/useStepCodeSection.d.ts.map +0 -1
- package/lib/types/client/store.d.ts.map +0 -1
- package/lib/types/client/styles.d.ts.map +0 -1
- package/lib/types/client/subagent/SubagentCard.d.ts.map +0 -1
- package/lib/types/client/subagent/index.d.ts.map +0 -1
- package/lib/types/client/subagent/locales.d.ts +0 -184
- package/lib/types/client/subagent/locales.d.ts.map +0 -1
- package/lib/types/client/subagent/styles.d.ts.map +0 -1
- package/lib/types/client/subagent/subagent-card-controller.d.ts +0 -352
- package/lib/types/client/subagent/subagent-card-controller.d.ts.map +0 -1
- package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts +0 -34
- package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts.map +0 -1
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts +0 -91
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +0 -1
- package/lib/types/client/workbuddy/locales.d.ts +0 -768
- package/lib/types/client/workbuddy/locales.d.ts.map +0 -1
- package/lib/types/client/workbuddy/styles.d.ts.map +0 -1
- package/lib/types/client/workbuddy/useWorkBuddySection.d.ts +0 -149
- package/lib/types/client/workbuddy/useWorkBuddySection.d.ts.map +0 -1
- package/lib/types/entry-codemode.d.ts +0 -37
- package/lib/types/entry-codemode.d.ts.map +0 -1
- package/lib/types/entry-plan-mode-pipeline.d.ts +0 -206
- package/lib/types/entry-plan-mode-pipeline.d.ts.map +0 -1
- package/lib/types/entry-plan-mode.d.ts +0 -499
- package/lib/types/entry-plan-mode.d.ts.map +0 -1
- package/lib/types/entry-progress-updates.d.ts +0 -43
- package/lib/types/entry-progress-updates.d.ts.map +0 -1
- package/lib/types/entry-tool-result-pruner.d.ts +0 -260
- package/lib/types/entry-tool-result-pruner.d.ts.map +0 -1
- package/lib/types/host/adapter.d.ts.map +0 -1
- package/lib/types/host/agent-preset.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/acp-client.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/adapter.d.ts +0 -340
- package/lib/types/host/antigravity-acp/adapter.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/auth-cache.d.ts +0 -59
- package/lib/types/host/antigravity-acp/auth-cache.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/binary.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/catalog.d.ts +0 -107
- package/lib/types/host/antigravity-acp/catalog.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/doctor.d.ts +0 -73
- package/lib/types/host/antigravity-acp/doctor.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/errors.d.ts +0 -69
- package/lib/types/host/antigravity-acp/errors.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/history.d.ts +0 -131
- package/lib/types/host/antigravity-acp/history.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/login.d.ts +0 -68
- package/lib/types/host/antigravity-acp/login.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/mcp-bridge.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/process-temp.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/routes.d.ts +0 -100
- package/lib/types/host/antigravity-acp/routes.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/settings.d.ts +0 -81
- package/lib/types/host/antigravity-acp/settings.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/subagent.d.ts +0 -128
- package/lib/types/host/antigravity-acp/subagent.d.ts.map +0 -1
- package/lib/types/host/antigravity-acp/types.d.ts +0 -155
- package/lib/types/host/antigravity-acp/types.d.ts.map +0 -1
- package/lib/types/host/aws-quick/adapter.d.ts +0 -77
- package/lib/types/host/aws-quick/adapter.d.ts.map +0 -1
- package/lib/types/host/aws-quick/binary.d.ts +0 -3
- package/lib/types/host/aws-quick/binary.d.ts.map +0 -1
- package/lib/types/host/aws-quick/client.d.ts +0 -85
- package/lib/types/host/aws-quick/client.d.ts.map +0 -1
- package/lib/types/host/aws-quick/execution-broker.d.ts.map +0 -1
- package/lib/types/host/aws-quick/images.d.ts +0 -21
- package/lib/types/host/aws-quick/images.d.ts.map +0 -1
- package/lib/types/host/aws-quick/markup.d.ts.map +0 -1
- package/lib/types/host/aws-quick/outpost.d.ts +0 -55
- package/lib/types/host/aws-quick/outpost.d.ts.map +0 -1
- package/lib/types/host/aws-quick/protocol.d.ts +0 -53
- package/lib/types/host/aws-quick/protocol.d.ts.map +0 -1
- package/lib/types/host/aws-quick/routes.d.ts +0 -15
- package/lib/types/host/aws-quick/routes.d.ts.map +0 -1
- package/lib/types/host/aws-quick/settings.d.ts +0 -24
- package/lib/types/host/aws-quick/settings.d.ts.map +0 -1
- package/lib/types/host/aws-quick/tool-bridge.d.ts +0 -67
- package/lib/types/host/aws-quick/tool-bridge.d.ts.map +0 -1
- package/lib/types/host/aws-quick/types.d.ts +0 -12
- package/lib/types/host/aws-quick/types.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/budget.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/contracts.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/index.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/install.d.ts +0 -152
- package/lib/types/host/cache-warmup/install.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/logging.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/projection.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/result-tool.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/retrieval-intent.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/settings.d.ts +0 -84
- package/lib/types/host/cache-warmup/settings.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/store.d.ts.map +0 -1
- package/lib/types/host/cache-warmup/usage.d.ts.map +0 -1
- package/lib/types/host/callback-server.d.ts.map +0 -1
- package/lib/types/host/claude/account-pool.d.ts +0 -583
- package/lib/types/host/claude/account-pool.d.ts.map +0 -1
- package/lib/types/host/claude/adapter.d.ts +0 -415
- package/lib/types/host/claude/adapter.d.ts.map +0 -1
- package/lib/types/host/claude/adopt.d.ts +0 -292
- package/lib/types/host/claude/adopt.d.ts.map +0 -1
- package/lib/types/host/claude/client.d.ts +0 -579
- package/lib/types/host/claude/client.d.ts.map +0 -1
- package/lib/types/host/claude/mapper.d.ts +0 -793
- package/lib/types/host/claude/mapper.d.ts.map +0 -1
- package/lib/types/host/claude/model-catalog.d.ts +0 -560
- package/lib/types/host/claude/model-catalog.d.ts.map +0 -1
- package/lib/types/host/claude/oauth.d.ts +0 -419
- package/lib/types/host/claude/oauth.d.ts.map +0 -1
- package/lib/types/host/claude/routes.d.ts +0 -131
- package/lib/types/host/claude/routes.d.ts.map +0 -1
- package/lib/types/host/claude/token-store.d.ts +0 -331
- package/lib/types/host/claude/token-store.d.ts.map +0 -1
- package/lib/types/host/claude/types.d.ts +0 -415
- package/lib/types/host/claude/types.d.ts.map +0 -1
- package/lib/types/host/claude-api/adapter.d.ts +0 -74
- package/lib/types/host/claude-api/adapter.d.ts.map +0 -1
- package/lib/types/host/claude-api/capability-memory.d.ts +0 -4
- package/lib/types/host/claude-api/capability-memory.d.ts.map +0 -1
- package/lib/types/host/claude-api/catalog-manager.d.ts +0 -57
- package/lib/types/host/claude-api/catalog-manager.d.ts.map +0 -1
- package/lib/types/host/claude-api/client-version.d.ts +0 -4
- package/lib/types/host/claude-api/client-version.d.ts.map +0 -1
- package/lib/types/host/claude-api/client.d.ts +0 -55
- package/lib/types/host/claude-api/client.d.ts.map +0 -1
- package/lib/types/host/claude-api/compaction-store.d.ts.map +0 -1
- package/lib/types/host/claude-api/compaction.d.ts +0 -47
- package/lib/types/host/claude-api/compaction.d.ts.map +0 -1
- package/lib/types/host/claude-api/mapper.d.ts +0 -61
- package/lib/types/host/claude-api/mapper.d.ts.map +0 -1
- package/lib/types/host/claude-api/model-catalog.d.ts +0 -76
- package/lib/types/host/claude-api/model-catalog.d.ts.map +0 -1
- package/lib/types/host/claude-api/routes.d.ts +0 -22
- package/lib/types/host/claude-api/routes.d.ts.map +0 -1
- package/lib/types/host/claude-api/stream.d.ts +0 -88
- package/lib/types/host/claude-api/stream.d.ts.map +0 -1
- package/lib/types/host/claude-api/token-store.d.ts +0 -60
- package/lib/types/host/claude-api/token-store.d.ts.map +0 -1
- package/lib/types/host/claude-api/types.d.ts +0 -68
- package/lib/types/host/claude-api/types.d.ts.map +0 -1
- package/lib/types/host/cline-pass/account-pool.d.ts +0 -63
- package/lib/types/host/cline-pass/account-pool.d.ts.map +0 -1
- package/lib/types/host/cline-pass/adapter.d.ts +0 -58
- package/lib/types/host/cline-pass/adapter.d.ts.map +0 -1
- package/lib/types/host/cline-pass/catalog.d.ts.map +0 -1
- package/lib/types/host/cline-pass/client.d.ts.map +0 -1
- package/lib/types/host/cline-pass/engine.d.ts.map +0 -1
- package/lib/types/host/cline-pass/line.d.ts +0 -55
- package/lib/types/host/cline-pass/line.d.ts.map +0 -1
- package/lib/types/host/cline-pass/mapper.d.ts +0 -138
- package/lib/types/host/cline-pass/mapper.d.ts.map +0 -1
- package/lib/types/host/cline-pass/oauth.d.ts.map +0 -1
- package/lib/types/host/cline-pass/protocol.d.ts.map +0 -1
- package/lib/types/host/cline-pass/routes.d.ts +0 -92
- package/lib/types/host/cline-pass/routes.d.ts.map +0 -1
- package/lib/types/host/cline-pass/store.d.ts +0 -75
- package/lib/types/host/cline-pass/store.d.ts.map +0 -1
- package/lib/types/host/cline-pass/token-store.d.ts +0 -170
- package/lib/types/host/cline-pass/token-store.d.ts.map +0 -1
- package/lib/types/host/cline-pass/tools.d.ts +0 -21
- package/lib/types/host/cline-pass/tools.d.ts.map +0 -1
- package/lib/types/host/cline-pass/types.d.ts.map +0 -1
- package/lib/types/host/codemode/discovery.d.ts.map +0 -1
- package/lib/types/host/codemode/executor.d.ts.map +0 -1
- package/lib/types/host/codemode/retention.d.ts.map +0 -1
- package/lib/types/host/codemode/rules.d.ts.map +0 -1
- package/lib/types/host/codemode/scope.d.ts.map +0 -1
- package/lib/types/host/codemode/transport.d.ts +0 -457
- package/lib/types/host/codemode/transport.d.ts.map +0 -1
- package/lib/types/host/codex-account-pool.d.ts +0 -214
- package/lib/types/host/codex-account-pool.d.ts.map +0 -1
- package/lib/types/host/codex-adopt.d.ts +0 -255
- package/lib/types/host/codex-adopt.d.ts.map +0 -1
- package/lib/types/host/codex-catalog.d.ts +0 -69
- package/lib/types/host/codex-catalog.d.ts.map +0 -1
- package/lib/types/host/codex-fetch.d.ts.map +0 -1
- package/lib/types/host/codex-identity.d.ts +0 -130
- package/lib/types/host/codex-identity.d.ts.map +0 -1
- package/lib/types/host/codex-images.d.ts.map +0 -1
- package/lib/types/host/codex-remote-compaction.d.ts +0 -41
- package/lib/types/host/codex-remote-compaction.d.ts.map +0 -1
- package/lib/types/host/codex-search.d.ts.map +0 -1
- package/lib/types/host/command-code/account-pool.d.ts +0 -72
- package/lib/types/host/command-code/account-pool.d.ts.map +0 -1
- package/lib/types/host/command-code/adapter.d.ts.map +0 -1
- package/lib/types/host/command-code/client.d.ts +0 -126
- package/lib/types/host/command-code/client.d.ts.map +0 -1
- package/lib/types/host/command-code/mapper.d.ts +0 -199
- package/lib/types/host/command-code/mapper.d.ts.map +0 -1
- package/lib/types/host/command-code/model-catalog.d.ts +0 -90
- package/lib/types/host/command-code/model-catalog.d.ts.map +0 -1
- package/lib/types/host/command-code/oauth.d.ts +0 -95
- package/lib/types/host/command-code/oauth.d.ts.map +0 -1
- package/lib/types/host/command-code/plans.d.ts.map +0 -1
- package/lib/types/host/command-code/routes.d.ts +0 -44
- package/lib/types/host/command-code/routes.d.ts.map +0 -1
- package/lib/types/host/command-code/token-store.d.ts +0 -100
- package/lib/types/host/command-code/token-store.d.ts.map +0 -1
- package/lib/types/host/command-code/types.d.ts +0 -222
- package/lib/types/host/command-code/types.d.ts.map +0 -1
- package/lib/types/host/common/claude-capability-memory.d.ts.map +0 -1
- package/lib/types/host/common/claude-code-cch.d.ts.map +0 -1
- package/lib/types/host/common/claude-code-corrections.d.ts.map +0 -1
- package/lib/types/host/common/claude-code-first-party.d.ts +0 -68
- package/lib/types/host/common/claude-code-first-party.d.ts.map +0 -1
- package/lib/types/host/common/claude-code-version.d.ts +0 -90
- package/lib/types/host/common/claude-code-version.d.ts.map +0 -1
- package/lib/types/host/compact-after-turn/index.d.ts +0 -134
- package/lib/types/host/compact-after-turn/index.d.ts.map +0 -1
- package/lib/types/host/compaction-policy-guard.d.ts.map +0 -1
- package/lib/types/host/compaction-prompt.d.ts +0 -129
- package/lib/types/host/compaction-prompt.d.ts.map +0 -1
- package/lib/types/host/compaction-route/index.d.ts +0 -147
- package/lib/types/host/compaction-route/index.d.ts.map +0 -1
- package/lib/types/host/credential-store-secret-service.d.ts.map +0 -1
- package/lib/types/host/deepseek-v41-flash/discipline.d.ts +0 -22
- package/lib/types/host/deepseek-v41-flash/discipline.d.ts.map +0 -1
- package/lib/types/host/deepseek-v41-flash/index.d.ts +0 -70
- package/lib/types/host/deepseek-v41-flash/index.d.ts.map +0 -1
- package/lib/types/host/deepseek-v41-flash/match.d.ts.map +0 -1
- package/lib/types/host/deepseek-v41-flash/observation-tagger.d.ts.map +0 -1
- package/lib/types/host/deepseek-v41-flash/state-anchor.d.ts.map +0 -1
- package/lib/types/host/dispatch-execution-guard.d.ts +0 -181
- package/lib/types/host/dispatch-execution-guard.d.ts.map +0 -1
- package/lib/types/host/dispatch-ledger/binding.d.ts.map +0 -1
- package/lib/types/host/dispatch-ledger/guard.d.ts +0 -281
- package/lib/types/host/dispatch-ledger/guard.d.ts.map +0 -1
- package/lib/types/host/dispatch-ledger/header.d.ts +0 -177
- package/lib/types/host/dispatch-ledger/header.d.ts.map +0 -1
- package/lib/types/host/dispatch-ledger/index.d.ts.map +0 -1
- package/lib/types/host/dispatch-ledger/ledger.d.ts +0 -553
- package/lib/types/host/dispatch-ledger/ledger.d.ts.map +0 -1
- package/lib/types/host/dispatch-ledger/policy.d.ts.map +0 -1
- package/lib/types/host/dispatch-ledger/protocol.d.ts.map +0 -1
- package/lib/types/host/dispatch-ledger/tool.d.ts.map +0 -1
- package/lib/types/host/fetch-address-policy.d.ts.map +0 -1
- package/lib/types/host/fetch-configuration.d.ts +0 -6
- package/lib/types/host/fetch-configuration.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/account-pool.d.ts +0 -152
- package/lib/types/host/glm-coding-plan/account-pool.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/adapter.d.ts +0 -167
- package/lib/types/host/glm-coding-plan/adapter.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/adopt.d.ts +0 -354
- package/lib/types/host/glm-coding-plan/adopt.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts +0 -99
- package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/client.d.ts +0 -218
- package/lib/types/host/glm-coding-plan/client.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/exchange.d.ts +0 -223
- package/lib/types/host/glm-coding-plan/exchange.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts +0 -312
- package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/mapper-openai.d.ts +0 -213
- package/lib/types/host/glm-coding-plan/mapper-openai.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/model-catalog.d.ts +0 -241
- package/lib/types/host/glm-coding-plan/model-catalog.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/oauth.d.ts +0 -211
- package/lib/types/host/glm-coding-plan/oauth.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/routes.d.ts +0 -93
- package/lib/types/host/glm-coding-plan/routes.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/token-store.d.ts +0 -202
- package/lib/types/host/glm-coding-plan/token-store.d.ts.map +0 -1
- package/lib/types/host/glm-coding-plan/types.d.ts +0 -492
- package/lib/types/host/glm-coding-plan/types.d.ts.map +0 -1
- package/lib/types/host/hub-overview.d.ts +0 -26
- package/lib/types/host/hub-overview.d.ts.map +0 -1
- package/lib/types/host/kimi-code/account-pool.d.ts +0 -124
- package/lib/types/host/kimi-code/account-pool.d.ts.map +0 -1
- package/lib/types/host/kimi-code/adapter.d.ts +0 -454
- package/lib/types/host/kimi-code/adapter.d.ts.map +0 -1
- package/lib/types/host/kimi-code/api-key.d.ts +0 -55
- package/lib/types/host/kimi-code/api-key.d.ts.map +0 -1
- package/lib/types/host/kimi-code/cache-affinity.d.ts +0 -112
- package/lib/types/host/kimi-code/cache-affinity.d.ts.map +0 -1
- package/lib/types/host/kimi-code/cache-hint.d.ts +0 -65
- package/lib/types/host/kimi-code/cache-hint.d.ts.map +0 -1
- package/lib/types/host/kimi-code/cache-wait.d.ts +0 -166
- package/lib/types/host/kimi-code/cache-wait.d.ts.map +0 -1
- package/lib/types/host/kimi-code/client.d.ts +0 -316
- package/lib/types/host/kimi-code/client.d.ts.map +0 -1
- package/lib/types/host/kimi-code/mapper.d.ts +0 -913
- package/lib/types/host/kimi-code/mapper.d.ts.map +0 -1
- package/lib/types/host/kimi-code/media-files.d.ts +0 -206
- package/lib/types/host/kimi-code/media-files.d.ts.map +0 -1
- package/lib/types/host/kimi-code/modalities.d.ts +0 -23
- package/lib/types/host/kimi-code/modalities.d.ts.map +0 -1
- package/lib/types/host/kimi-code/model-catalog.d.ts +0 -125
- package/lib/types/host/kimi-code/model-catalog.d.ts.map +0 -1
- package/lib/types/host/kimi-code/oauth.d.ts +0 -213
- package/lib/types/host/kimi-code/oauth.d.ts.map +0 -1
- package/lib/types/host/kimi-code/repeat-breaker.d.ts +0 -219
- package/lib/types/host/kimi-code/repeat-breaker.d.ts.map +0 -1
- package/lib/types/host/kimi-code/routes.d.ts +0 -52
- package/lib/types/host/kimi-code/routes.d.ts.map +0 -1
- package/lib/types/host/kimi-code/session-cache-state.d.ts +0 -156
- package/lib/types/host/kimi-code/session-cache-state.d.ts.map +0 -1
- package/lib/types/host/kimi-code/token-store.d.ts +0 -182
- package/lib/types/host/kimi-code/token-store.d.ts.map +0 -1
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts +0 -43
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts.map +0 -1
- package/lib/types/host/kimi-code/tool-argument-recovery.d.ts.map +0 -1
- package/lib/types/host/kimi-code/types.d.ts +0 -458
- package/lib/types/host/kimi-code/types.d.ts.map +0 -1
- package/lib/types/host/kimi-code/video-store.d.ts.map +0 -1
- package/lib/types/host/kimi-code/video-tool.d.ts.map +0 -1
- package/lib/types/host/minimax-code/account-pool.d.ts +0 -309
- package/lib/types/host/minimax-code/account-pool.d.ts.map +0 -1
- package/lib/types/host/minimax-code/adapter.d.ts +0 -209
- package/lib/types/host/minimax-code/adapter.d.ts.map +0 -1
- package/lib/types/host/minimax-code/checkin-gateway.d.ts +0 -145
- package/lib/types/host/minimax-code/checkin-gateway.d.ts.map +0 -1
- package/lib/types/host/minimax-code/checkin.d.ts +0 -207
- package/lib/types/host/minimax-code/checkin.d.ts.map +0 -1
- package/lib/types/host/minimax-code/client.d.ts +0 -242
- package/lib/types/host/minimax-code/client.d.ts.map +0 -1
- package/lib/types/host/minimax-code/files-api.d.ts +0 -117
- package/lib/types/host/minimax-code/files-api.d.ts.map +0 -1
- package/lib/types/host/minimax-code/iso-bmff-duration.d.ts +0 -84
- package/lib/types/host/minimax-code/iso-bmff-duration.d.ts.map +0 -1
- package/lib/types/host/minimax-code/mapper.d.ts +0 -351
- package/lib/types/host/minimax-code/mapper.d.ts.map +0 -1
- package/lib/types/host/minimax-code/matrix-client.d.ts +0 -168
- package/lib/types/host/minimax-code/matrix-client.d.ts.map +0 -1
- package/lib/types/host/minimax-code/media-store.d.ts +0 -153
- package/lib/types/host/minimax-code/media-store.d.ts.map +0 -1
- package/lib/types/host/minimax-code/modalities.d.ts +0 -20
- package/lib/types/host/minimax-code/modalities.d.ts.map +0 -1
- package/lib/types/host/minimax-code/model-catalog.d.ts +0 -227
- package/lib/types/host/minimax-code/model-catalog.d.ts.map +0 -1
- package/lib/types/host/minimax-code/oauth.d.ts +0 -220
- package/lib/types/host/minimax-code/oauth.d.ts.map +0 -1
- package/lib/types/host/minimax-code/reset-card.d.ts +0 -136
- package/lib/types/host/minimax-code/reset-card.d.ts.map +0 -1
- package/lib/types/host/minimax-code/routes.d.ts +0 -82
- package/lib/types/host/minimax-code/routes.d.ts.map +0 -1
- package/lib/types/host/minimax-code/runtime-enhancements.d.ts +0 -235
- package/lib/types/host/minimax-code/runtime-enhancements.d.ts.map +0 -1
- package/lib/types/host/minimax-code/token-store.d.ts +0 -328
- package/lib/types/host/minimax-code/token-store.d.ts.map +0 -1
- package/lib/types/host/minimax-code/types.d.ts +0 -378
- package/lib/types/host/minimax-code/types.d.ts.map +0 -1
- package/lib/types/host/minimax-code/video-history.d.ts +0 -240
- package/lib/types/host/minimax-code/video-history.d.ts.map +0 -1
- package/lib/types/host/minimax-code/video-submit-rules.d.ts.map +0 -1
- package/lib/types/host/minimax-code/video-tool.d.ts.map +0 -1
- package/lib/types/host/model-catalog.d.ts +0 -43
- package/lib/types/host/model-catalog.d.ts.map +0 -1
- package/lib/types/host/no-answer-resume/index.d.ts.map +0 -1
- package/lib/types/host/oauth-service.d.ts +0 -242
- package/lib/types/host/oauth-service.d.ts.map +0 -1
- package/lib/types/host/ollama/account-pool.d.ts +0 -65
- package/lib/types/host/ollama/account-pool.d.ts.map +0 -1
- package/lib/types/host/ollama/adapter.d.ts +0 -85
- package/lib/types/host/ollama/adapter.d.ts.map +0 -1
- package/lib/types/host/ollama/client.d.ts +0 -166
- package/lib/types/host/ollama/client.d.ts.map +0 -1
- package/lib/types/host/ollama/mapper.d.ts +0 -49
- package/lib/types/host/ollama/mapper.d.ts.map +0 -1
- package/lib/types/host/ollama/routes.d.ts +0 -22
- package/lib/types/host/ollama/routes.d.ts.map +0 -1
- package/lib/types/host/ollama/token-store.d.ts +0 -78
- package/lib/types/host/ollama/token-store.d.ts.map +0 -1
- package/lib/types/host/ollama/types.d.ts +0 -247
- package/lib/types/host/ollama/types.d.ts.map +0 -1
- package/lib/types/host/open-models/discipline.d.ts +0 -9
- package/lib/types/host/open-models/discipline.d.ts.map +0 -1
- package/lib/types/host/open-models/index.d.ts +0 -59
- package/lib/types/host/open-models/index.d.ts.map +0 -1
- package/lib/types/host/open-models/observation-guard.d.ts.map +0 -1
- package/lib/types/host/open-models/profiles.d.ts.map +0 -1
- package/lib/types/host/open-models/state-anchor.d.ts.map +0 -1
- package/lib/types/host/opendesign/account-pool.d.ts +0 -54
- package/lib/types/host/opendesign/account-pool.d.ts.map +0 -1
- package/lib/types/host/opendesign/adapter.d.ts +0 -82
- package/lib/types/host/opendesign/adapter.d.ts.map +0 -1
- package/lib/types/host/opendesign/catalog.d.ts.map +0 -1
- package/lib/types/host/opendesign/client.d.ts +0 -304
- package/lib/types/host/opendesign/client.d.ts.map +0 -1
- package/lib/types/host/opendesign/line.d.ts +0 -60
- package/lib/types/host/opendesign/line.d.ts.map +0 -1
- package/lib/types/host/opendesign/mapper.d.ts +0 -218
- package/lib/types/host/opendesign/mapper.d.ts.map +0 -1
- package/lib/types/host/opendesign/oauth.d.ts.map +0 -1
- package/lib/types/host/opendesign/routes.d.ts +0 -75
- package/lib/types/host/opendesign/routes.d.ts.map +0 -1
- package/lib/types/host/opendesign/token-store.d.ts +0 -241
- package/lib/types/host/opendesign/token-store.d.ts.map +0 -1
- package/lib/types/host/opendesign/types.d.ts.map +0 -1
- package/lib/types/host/plan-mode-cache-guard.d.ts.map +0 -1
- package/lib/types/host/platform-token-store.d.ts.map +0 -1
- package/lib/types/host/preferences.d.ts +0 -26
- package/lib/types/host/preferences.d.ts.map +0 -1
- package/lib/types/host/preset-sync.d.ts +0 -161
- package/lib/types/host/preset-sync.d.ts.map +0 -1
- package/lib/types/host/progress-updates/index.d.ts.map +0 -1
- package/lib/types/host/progress-updates/nudge.d.ts.map +0 -1
- package/lib/types/host/progress-updates/projection.d.ts +0 -214
- package/lib/types/host/progress-updates/projection.d.ts.map +0 -1
- package/lib/types/host/progress-updates/prompt.d.ts.map +0 -1
- package/lib/types/host/progress-updates/routes.d.ts.map +0 -1
- package/lib/types/host/progress-updates/store.d.ts.map +0 -1
- package/lib/types/host/progress-updates/tool.d.ts.map +0 -1
- package/lib/types/host/proxy-manager.d.ts +0 -240
- package/lib/types/host/proxy-manager.d.ts.map +0 -1
- package/lib/types/host/ptc-sdk-cache-guard.d.ts +0 -104
- package/lib/types/host/ptc-sdk-cache-guard.d.ts.map +0 -1
- package/lib/types/host/qianwen-token-plan/adapter.d.ts +0 -39
- package/lib/types/host/qianwen-token-plan/adapter.d.ts.map +0 -1
- package/lib/types/host/qianwen-token-plan/cache-stats.d.ts +0 -17
- package/lib/types/host/qianwen-token-plan/cache-stats.d.ts.map +0 -1
- package/lib/types/host/qianwen-token-plan/client.d.ts +0 -5
- package/lib/types/host/qianwen-token-plan/client.d.ts.map +0 -1
- package/lib/types/host/qianwen-token-plan/mapper.d.ts +0 -71
- package/lib/types/host/qianwen-token-plan/mapper.d.ts.map +0 -1
- package/lib/types/host/qianwen-token-plan/model-catalog.d.ts +0 -28
- package/lib/types/host/qianwen-token-plan/model-catalog.d.ts.map +0 -1
- package/lib/types/host/qianwen-token-plan/routes.d.ts +0 -12
- package/lib/types/host/qianwen-token-plan/routes.d.ts.map +0 -1
- package/lib/types/host/qianwen-token-plan/token-store.d.ts +0 -56
- package/lib/types/host/qianwen-token-plan/token-store.d.ts.map +0 -1
- package/lib/types/host/qianwen-token-plan/types.d.ts.map +0 -1
- package/lib/types/host/qoder/account-pool.d.ts +0 -141
- package/lib/types/host/qoder/account-pool.d.ts.map +0 -1
- package/lib/types/host/qoder/adapter.d.ts +0 -169
- package/lib/types/host/qoder/adapter.d.ts.map +0 -1
- package/lib/types/host/qoder/adopt.d.ts +0 -146
- package/lib/types/host/qoder/adopt.d.ts.map +0 -1
- package/lib/types/host/qoder/client.d.ts +0 -323
- package/lib/types/host/qoder/client.d.ts.map +0 -1
- package/lib/types/host/qoder/cosy.d.ts.map +0 -1
- package/lib/types/host/qoder/mapper.d.ts +0 -332
- package/lib/types/host/qoder/mapper.d.ts.map +0 -1
- package/lib/types/host/qoder/model-catalog.d.ts +0 -231
- package/lib/types/host/qoder/model-catalog.d.ts.map +0 -1
- package/lib/types/host/qoder/oauth.d.ts +0 -151
- package/lib/types/host/qoder/oauth.d.ts.map +0 -1
- package/lib/types/host/qoder/routes.d.ts +0 -119
- package/lib/types/host/qoder/routes.d.ts.map +0 -1
- package/lib/types/host/qoder/token-store.d.ts +0 -280
- package/lib/types/host/qoder/token-store.d.ts.map +0 -1
- package/lib/types/host/qoder/types.d.ts +0 -262
- package/lib/types/host/qoder/types.d.ts.map +0 -1
- package/lib/types/host/reasoning-collapse-guard/index.d.ts +0 -364
- package/lib/types/host/reasoning-collapse-guard/index.d.ts.map +0 -1
- package/lib/types/host/relay-probe.d.ts.map +0 -1
- package/lib/types/host/relayone/account-pool.d.ts +0 -129
- package/lib/types/host/relayone/account-pool.d.ts.map +0 -1
- package/lib/types/host/relayone/adapter.d.ts +0 -83
- package/lib/types/host/relayone/adapter.d.ts.map +0 -1
- package/lib/types/host/relayone/catalog-manager.d.ts +0 -45
- package/lib/types/host/relayone/catalog-manager.d.ts.map +0 -1
- package/lib/types/host/relayone/client.d.ts +0 -5
- package/lib/types/host/relayone/client.d.ts.map +0 -1
- package/lib/types/host/relayone/image-tool.d.ts.map +0 -1
- package/lib/types/host/relayone/mapper-anthropic.d.ts +0 -49
- package/lib/types/host/relayone/mapper-anthropic.d.ts.map +0 -1
- package/lib/types/host/relayone/mapper-openai.d.ts +0 -36
- package/lib/types/host/relayone/mapper-openai.d.ts.map +0 -1
- package/lib/types/host/relayone/mapper-shared.d.ts +0 -24
- package/lib/types/host/relayone/mapper-shared.d.ts.map +0 -1
- package/lib/types/host/relayone/media-shared.d.ts +0 -27
- package/lib/types/host/relayone/media-shared.d.ts.map +0 -1
- package/lib/types/host/relayone/model-catalog.d.ts +0 -70
- package/lib/types/host/relayone/model-catalog.d.ts.map +0 -1
- package/lib/types/host/relayone/quota.d.ts +0 -29
- package/lib/types/host/relayone/quota.d.ts.map +0 -1
- package/lib/types/host/relayone/routes.d.ts +0 -25
- package/lib/types/host/relayone/routes.d.ts.map +0 -1
- package/lib/types/host/relayone/token-store.d.ts +0 -49
- package/lib/types/host/relayone/token-store.d.ts.map +0 -1
- package/lib/types/host/relayone/types.d.ts.map +0 -1
- package/lib/types/host/relayone/video-tool.d.ts.map +0 -1
- package/lib/types/host/responses-client.d.ts +0 -125
- package/lib/types/host/responses-client.d.ts.map +0 -1
- package/lib/types/host/responses-mapper.d.ts +0 -133
- package/lib/types/host/responses-mapper.d.ts.map +0 -1
- package/lib/types/host/routes.d.ts +0 -32
- package/lib/types/host/routes.d.ts.map +0 -1
- package/lib/types/host/search-provider-switcher.d.ts +0 -45
- package/lib/types/host/search-provider-switcher.d.ts.map +0 -1
- package/lib/types/host/session-title-guard/index.d.ts.map +0 -1
- package/lib/types/host/settled-job-guard.d.ts +0 -77
- package/lib/types/host/settled-job-guard.d.ts.map +0 -1
- package/lib/types/host/step-code/account-pool.d.ts +0 -187
- package/lib/types/host/step-code/account-pool.d.ts.map +0 -1
- package/lib/types/host/step-code/adapter.d.ts +0 -158
- package/lib/types/host/step-code/adapter.d.ts.map +0 -1
- package/lib/types/host/step-code/adopt.d.ts +0 -201
- package/lib/types/host/step-code/adopt.d.ts.map +0 -1
- package/lib/types/host/step-code/cache-stats.d.ts.map +0 -1
- package/lib/types/host/step-code/client.d.ts +0 -339
- package/lib/types/host/step-code/client.d.ts.map +0 -1
- package/lib/types/host/step-code/mapper.d.ts +0 -305
- package/lib/types/host/step-code/mapper.d.ts.map +0 -1
- package/lib/types/host/step-code/model-catalog.d.ts +0 -247
- package/lib/types/host/step-code/model-catalog.d.ts.map +0 -1
- package/lib/types/host/step-code/oauth.d.ts +0 -265
- package/lib/types/host/step-code/oauth.d.ts.map +0 -1
- package/lib/types/host/step-code/routes.d.ts +0 -129
- package/lib/types/host/step-code/routes.d.ts.map +0 -1
- package/lib/types/host/step-code/token-store.d.ts +0 -325
- package/lib/types/host/step-code/token-store.d.ts.map +0 -1
- package/lib/types/host/step-code/types.d.ts +0 -492
- package/lib/types/host/step-code/types.d.ts.map +0 -1
- package/lib/types/host/subagent-model-authorization.d.ts +0 -653
- package/lib/types/host/subagent-model-authorization.d.ts.map +0 -1
- package/lib/types/host/subagent-route-audit.d.ts +0 -154
- package/lib/types/host/subagent-route-audit.d.ts.map +0 -1
- package/lib/types/host/team-policy-cache-guard.d.ts.map +0 -1
- package/lib/types/host/timeline-cache-guard.d.ts.map +0 -1
- package/lib/types/host/token-store-linux.d.ts.map +0 -1
- package/lib/types/host/token-store-macos.d.ts.map +0 -1
- package/lib/types/host/token-store-windows.d.ts.map +0 -1
- package/lib/types/host/token-store.d.ts +0 -81
- package/lib/types/host/token-store.d.ts.map +0 -1
- package/lib/types/host/tool-result-pruner-guard.d.ts.map +0 -1
- package/lib/types/host/update-check.d.ts +0 -118
- package/lib/types/host/update-check.d.ts.map +0 -1
- package/lib/types/host/usage-service.d.ts +0 -109
- package/lib/types/host/usage-service.d.ts.map +0 -1
- package/lib/types/host/web-provider-reconciler.d.ts.map +0 -1
- package/lib/types/host/widget-board/line-contracts.d.ts +0 -192
- package/lib/types/host/widget-board/line-contracts.d.ts.map +0 -1
- package/lib/types/host/widget-board/line-quota.d.ts +0 -279
- package/lib/types/host/widget-board/line-quota.d.ts.map +0 -1
- package/lib/types/host/widget-board/line-registry.d.ts +0 -402
- package/lib/types/host/widget-board/line-registry.d.ts.map +0 -1
- package/lib/types/host/widget-board/provider.d.ts.map +0 -1
- package/lib/types/host/wire-auth.d.ts +0 -63
- package/lib/types/host/wire-auth.d.ts.map +0 -1
- package/lib/types/host/workbuddy/account-pool.d.ts +0 -389
- package/lib/types/host/workbuddy/account-pool.d.ts.map +0 -1
- package/lib/types/host/workbuddy/adapter.d.ts +0 -250
- package/lib/types/host/workbuddy/adapter.d.ts.map +0 -1
- package/lib/types/host/workbuddy/atrest.d.ts.map +0 -1
- package/lib/types/host/workbuddy/checkin.d.ts +0 -150
- package/lib/types/host/workbuddy/checkin.d.ts.map +0 -1
- package/lib/types/host/workbuddy/client.d.ts +0 -214
- package/lib/types/host/workbuddy/client.d.ts.map +0 -1
- package/lib/types/host/workbuddy/dsml.d.ts.map +0 -1
- package/lib/types/host/workbuddy/guardrails.d.ts +0 -111
- package/lib/types/host/workbuddy/guardrails.d.ts.map +0 -1
- package/lib/types/host/workbuddy/identity.d.ts.map +0 -1
- package/lib/types/host/workbuddy/mapper.d.ts +0 -238
- package/lib/types/host/workbuddy/mapper.d.ts.map +0 -1
- package/lib/types/host/workbuddy/model-catalog.d.ts +0 -239
- package/lib/types/host/workbuddy/model-catalog.d.ts.map +0 -1
- package/lib/types/host/workbuddy/oauth.d.ts +0 -47
- package/lib/types/host/workbuddy/oauth.d.ts.map +0 -1
- package/lib/types/host/workbuddy/outbound-identity.d.ts +0 -139
- package/lib/types/host/workbuddy/outbound-identity.d.ts.map +0 -1
- package/lib/types/host/workbuddy/routes.d.ts +0 -56
- package/lib/types/host/workbuddy/routes.d.ts.map +0 -1
- package/lib/types/host/workbuddy/token-store.d.ts +0 -370
- package/lib/types/host/workbuddy/token-store.d.ts.map +0 -1
- package/lib/types/host/workbuddy/types.d.ts +0 -185
- package/lib/types/host/workbuddy/types.d.ts.map +0 -1
- /package/{icon.svg → assets/icon.svg} +0 -0
- /package/{progress-updates.svg → assets/progress-updates.svg} +0 -0
- /package/lib/types/client/{codemode → features/codemode}/highlight.d.ts +0 -0
- /package/lib/types/client/{codemode → features/codemode}/styles.d.ts +0 -0
- /package/lib/types/client/{codemode → features/codemode}/tool-name.d.ts +0 -0
- /package/lib/types/client/{compact-after-turn → features/compact-after-turn}/locales.d.ts +0 -0
- /package/lib/types/client/{compact-after-turn → features/compact-after-turn}/styles.d.ts +0 -0
- /package/lib/types/client/{dispatch-ledger → features/dispatch-ledger}/MandateToolView.d.ts +0 -0
- /package/lib/types/client/{dispatch-ledger → features/dispatch-ledger}/locales.d.ts +0 -0
- /package/lib/types/client/{dispatch-ledger → features/dispatch-ledger}/styles.d.ts +0 -0
- /package/lib/types/client/{mermaid → features/mermaid}/renderer.d.ts +0 -0
- /package/lib/types/client/{mermaid → features/mermaid}/sanitize.d.ts +0 -0
- /package/lib/types/client/{mermaid → features/mermaid}/styles.d.ts +0 -0
- /package/lib/types/client/{progress-updates → features/progress-updates}/contracts.d.ts +0 -0
- /package/lib/types/client/{progress-updates → features/progress-updates}/guide-artwork.d.ts +0 -0
- /package/lib/types/client/{progress-updates → features/progress-updates}/locales.d.ts +0 -0
- /package/lib/types/client/{progress-updates → features/progress-updates}/progress-row.d.ts +0 -0
- /package/lib/types/client/{progress-updates → features/progress-updates}/settings-binding.d.ts +0 -0
- /package/lib/types/client/{progress-updates → features/progress-updates}/settings-section.d.ts +0 -0
- /package/lib/types/client/{progress-updates → features/progress-updates}/styles.d.ts +0 -0
- /package/lib/types/client/{progress-updates → features/progress-updates}/tool-name.d.ts +0 -0
- /package/lib/types/client/{progress-updates → features/progress-updates}/updates-panel.d.ts +0 -0
- /package/lib/types/client/{subagent → features/subagent}/SubagentCard.d.ts +0 -0
- /package/lib/types/client/{subagent → features/subagent}/index.d.ts +0 -0
- /package/lib/types/client/{subagent → features/subagent}/styles.d.ts +0 -0
- /package/lib/types/client/{antigravity-acp → providers/antigravity-acp}/AntigravityAcpSection.d.ts +0 -0
- /package/lib/types/client/{antigravity-acp → providers/antigravity-acp}/route.d.ts +0 -0
- /package/lib/types/client/{antigravity-acp → providers/antigravity-acp}/styles.d.ts +0 -0
- /package/lib/types/client/{aws-quick → providers/aws-quick}/AwsQuickSection.d.ts +0 -0
- /package/lib/types/client/{aws-quick → providers/aws-quick}/styles.d.ts +0 -0
- /package/lib/types/client/{claude → providers/claude}/ClaudeSection.d.ts +0 -0
- /package/lib/types/client/{claude → providers/claude}/styles.d.ts +0 -0
- /package/lib/types/client/{claude-api → providers/claude-api}/ClaudeApiSection.d.ts +0 -0
- /package/lib/types/client/{claude-api → providers/claude-api}/api.d.ts +0 -0
- /package/lib/types/client/{claude-api → providers/claude-api}/styles.d.ts +0 -0
- /package/lib/types/client/{cline-pass → providers/cline-pass}/ClinePassSection.d.ts +0 -0
- /package/lib/types/client/{cline-pass → providers/cline-pass}/locales.d.ts +0 -0
- /package/lib/types/client/{cline-pass → providers/cline-pass}/styles.d.ts +0 -0
- /package/lib/types/client/{CodexComposerQuota.d.ts → providers/codex-chatgpt/CodexComposerQuota.d.ts} +0 -0
- /package/lib/types/client/{CodexImageToolView.d.ts → providers/codex-chatgpt/CodexImageToolView.d.ts} +0 -0
- /package/lib/types/client/{store.d.ts → providers/codex-chatgpt/store.d.ts} +0 -0
- /package/lib/types/client/{styles.d.ts → providers/codex-chatgpt/styles.d.ts} +0 -0
- /package/lib/types/client/{command-code → providers/command-code}/CommandCodeSection.d.ts +0 -0
- /package/lib/types/client/{glm-coding-plan → providers/glm-coding-plan}/GlmCodingPlanSection.d.ts +0 -0
- /package/lib/types/client/{glm-coding-plan → providers/glm-coding-plan}/api.d.ts +0 -0
- /package/lib/types/client/{glm-coding-plan → providers/glm-coding-plan}/styles.d.ts +0 -0
- /package/lib/types/client/{kimi-code → providers/kimi-code}/KimiCodeSection.d.ts +0 -0
- /package/lib/types/client/{kimi-code → providers/kimi-code}/staff-art.d.ts +0 -0
- /package/lib/types/client/{kimi-code → providers/kimi-code}/styles.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/MinimaxCodeSection.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/MinimaxVideoToolView.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/VideoSettingsSections.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/commands-contract.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/document-preview.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/styles.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/video-command-icon.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/video-contract.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/video-defaults-store.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/video-media-dropzone.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/video-media-input.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/video-media.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/video-presets.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/video-slots.d.ts +0 -0
- /package/lib/types/client/{minimax-code → providers/minimax-code}/video-workspace.d.ts +0 -0
- /package/lib/types/client/{ollama → providers/ollama}/OllamaSection.d.ts +0 -0
- /package/lib/types/client/{opendesign → providers/opendesign}/OpenDesignSection.d.ts +0 -0
- /package/lib/types/client/{opendesign → providers/opendesign}/locales.d.ts +0 -0
- /package/lib/types/client/{opendesign → providers/opendesign}/styles.d.ts +0 -0
- /package/lib/types/client/{qianwen-token-plan → providers/qianwen-token-plan}/QianwenTokenPlanSection.d.ts +0 -0
- /package/lib/types/client/{qianwen-token-plan → providers/qianwen-token-plan}/api.d.ts +0 -0
- /package/lib/types/client/{qianwen-token-plan → providers/qianwen-token-plan}/styles.d.ts +0 -0
- /package/lib/types/client/{qoder → providers/qoder}/api.d.ts +0 -0
- /package/lib/types/client/{qoder → providers/qoder}/styles.d.ts +0 -0
- /package/lib/types/client/{relayone → providers/relayone}/RelayOneSection.d.ts +0 -0
- /package/lib/types/client/{relayone → providers/relayone}/api.d.ts +0 -0
- /package/lib/types/client/{relayone → providers/relayone}/styles.d.ts +0 -0
- /package/lib/types/client/{step-code → providers/step-code}/StepCodeSection.d.ts +0 -0
- /package/lib/types/client/{step-code → providers/step-code}/api.d.ts +0 -0
- /package/lib/types/client/{step-code → providers/step-code}/styles.d.ts +0 -0
- /package/lib/types/client/{workbuddy → providers/workbuddy}/styles.d.ts +0 -0
- /package/lib/types/host/{fetch-address-policy.d.ts → infra/network/fetch-address-policy.d.ts} +0 -0
- /package/lib/types/host/{relay-probe.d.ts → infra/network/relay-probe.d.ts} +0 -0
- /package/lib/types/host/{web-provider-reconciler.d.ts → infra/network/web-provider-reconciler.d.ts} +0 -0
- /package/lib/types/host/{credential-store-secret-service.d.ts → infra/storage/credential-store-secret-service.d.ts} +0 -0
- /package/lib/types/host/{platform-token-store.d.ts → infra/storage/platform-token-store.d.ts} +0 -0
- /package/lib/types/host/{token-store-linux.d.ts → infra/storage/token-store-linux.d.ts} +0 -0
- /package/lib/types/host/{token-store-macos.d.ts → infra/storage/token-store-macos.d.ts} +0 -0
- /package/lib/types/host/{token-store-windows.d.ts → infra/storage/token-store-windows.d.ts} +0 -0
- /package/lib/types/host/{common → providers/_claude-shared}/claude-capability-memory.d.ts +0 -0
- /package/lib/types/host/{common → providers/_claude-shared}/claude-code-cch.d.ts +0 -0
- /package/lib/types/host/{common → providers/_claude-shared}/claude-code-corrections.d.ts +0 -0
- /package/lib/types/host/{antigravity-acp → providers/antigravity-acp}/acp-client.d.ts +0 -0
- /package/lib/types/host/{antigravity-acp → providers/antigravity-acp}/binary.d.ts +0 -0
- /package/lib/types/host/{antigravity-acp → providers/antigravity-acp}/mcp-bridge.d.ts +0 -0
- /package/lib/types/host/{antigravity-acp → providers/antigravity-acp}/process-temp.d.ts +0 -0
- /package/lib/types/host/{aws-quick → providers/aws-quick}/execution-broker.d.ts +0 -0
- /package/lib/types/host/{aws-quick → providers/aws-quick}/markup.d.ts +0 -0
- /package/lib/types/host/{claude-api → providers/claude-api}/compaction-store.d.ts +0 -0
- /package/lib/types/host/{cline-pass → providers/cline-pass}/catalog.d.ts +0 -0
- /package/lib/types/host/{cline-pass → providers/cline-pass}/client.d.ts +0 -0
- /package/lib/types/host/{cline-pass → providers/cline-pass}/engine.d.ts +0 -0
- /package/lib/types/host/{cline-pass → providers/cline-pass}/oauth.d.ts +0 -0
- /package/lib/types/host/{cline-pass → providers/cline-pass}/protocol.d.ts +0 -0
- /package/lib/types/host/{cline-pass → providers/cline-pass}/types.d.ts +0 -0
- /package/lib/types/host/{adapter.d.ts → providers/codex-chatgpt/adapter.d.ts} +0 -0
- /package/lib/types/host/{callback-server.d.ts → providers/codex-chatgpt/callback-server.d.ts} +0 -0
- /package/lib/types/host/{codex-fetch.d.ts → providers/codex-chatgpt/codex-fetch.d.ts} +0 -0
- /package/lib/types/host/{codex-images.d.ts → providers/codex-chatgpt/codex-images.d.ts} +0 -0
- /package/lib/types/host/{codex-search.d.ts → providers/codex-chatgpt/codex-search.d.ts} +0 -0
- /package/lib/types/host/{command-code → providers/command-code}/adapter.d.ts +0 -0
- /package/lib/types/host/{command-code → providers/command-code}/plans.d.ts +0 -0
- /package/lib/types/host/{kimi-code → providers/kimi-code}/tool-argument-recovery.d.ts +0 -0
- /package/lib/types/host/{kimi-code → providers/kimi-code}/video-store.d.ts +0 -0
- /package/lib/types/host/{kimi-code → providers/kimi-code}/video-tool.d.ts +0 -0
- /package/lib/types/host/{minimax-code → providers/minimax-code}/video-submit-rules.d.ts +0 -0
- /package/lib/types/host/{minimax-code → providers/minimax-code}/video-tool.d.ts +0 -0
- /package/lib/types/host/{opendesign → providers/opendesign}/catalog.d.ts +0 -0
- /package/lib/types/host/{opendesign → providers/opendesign}/oauth.d.ts +0 -0
- /package/lib/types/host/{opendesign → providers/opendesign}/types.d.ts +0 -0
- /package/lib/types/host/{qianwen-token-plan → providers/qianwen-token-plan}/types.d.ts +0 -0
- /package/lib/types/host/{qoder → providers/qoder}/cosy.d.ts +0 -0
- /package/lib/types/host/{relayone → providers/relayone}/image-tool.d.ts +0 -0
- /package/lib/types/host/{relayone → providers/relayone}/types.d.ts +0 -0
- /package/lib/types/host/{relayone → providers/relayone}/video-tool.d.ts +0 -0
- /package/lib/types/host/{step-code → providers/step-code}/cache-stats.d.ts +0 -0
- /package/lib/types/host/{workbuddy → providers/workbuddy}/atrest.d.ts +0 -0
- /package/lib/types/host/{workbuddy → providers/workbuddy}/dsml.d.ts +0 -0
- /package/lib/types/host/{workbuddy → providers/workbuddy}/identity.d.ts +0 -0
- /package/lib/types/host/{cache-warmup → runtime/cache-warmup}/budget.d.ts +0 -0
- /package/lib/types/host/{cache-warmup → runtime/cache-warmup}/contracts.d.ts +0 -0
- /package/lib/types/host/{cache-warmup → runtime/cache-warmup}/index.d.ts +0 -0
- /package/lib/types/host/{cache-warmup → runtime/cache-warmup}/logging.d.ts +0 -0
- /package/lib/types/host/{cache-warmup → runtime/cache-warmup}/projection.d.ts +0 -0
- /package/lib/types/host/{cache-warmup → runtime/cache-warmup}/result-tool.d.ts +0 -0
- /package/lib/types/host/{cache-warmup → runtime/cache-warmup}/retrieval-intent.d.ts +0 -0
- /package/lib/types/host/{cache-warmup → runtime/cache-warmup}/store.d.ts +0 -0
- /package/lib/types/host/{cache-warmup → runtime/cache-warmup}/usage.d.ts +0 -0
- /package/lib/types/host/{codemode → runtime/codemode}/discovery.d.ts +0 -0
- /package/lib/types/host/{codemode → runtime/codemode}/executor.d.ts +0 -0
- /package/lib/types/host/{codemode → runtime/codemode}/retention.d.ts +0 -0
- /package/lib/types/host/{codemode → runtime/codemode}/rules.d.ts +0 -0
- /package/lib/types/host/{codemode → runtime/codemode}/scope.d.ts +0 -0
- /package/lib/types/host/{deepseek-v41-flash → runtime/deepseek-v41-flash}/match.d.ts +0 -0
- /package/lib/types/host/{deepseek-v41-flash → runtime/deepseek-v41-flash}/observation-tagger.d.ts +0 -0
- /package/lib/types/host/{deepseek-v41-flash → runtime/deepseek-v41-flash}/state-anchor.d.ts +0 -0
- /package/lib/types/host/{dispatch-ledger → runtime/dispatch-ledger}/binding.d.ts +0 -0
- /package/lib/types/host/{dispatch-ledger → runtime/dispatch-ledger}/index.d.ts +0 -0
- /package/lib/types/host/{dispatch-ledger → runtime/dispatch-ledger}/policy.d.ts +0 -0
- /package/lib/types/host/{dispatch-ledger → runtime/dispatch-ledger}/protocol.d.ts +0 -0
- /package/lib/types/host/{dispatch-ledger → runtime/dispatch-ledger}/tool.d.ts +0 -0
- /package/lib/types/host/{compaction-policy-guard.d.ts → runtime/guards/compaction-policy-guard.d.ts} +0 -0
- /package/lib/types/host/{plan-mode-cache-guard.d.ts → runtime/guards/plan-mode-cache-guard.d.ts} +0 -0
- /package/lib/types/host/{team-policy-cache-guard.d.ts → runtime/guards/team-policy-cache-guard.d.ts} +0 -0
- /package/lib/types/host/{timeline-cache-guard.d.ts → runtime/guards/timeline-cache-guard.d.ts} +0 -0
- /package/lib/types/host/{tool-result-pruner-guard.d.ts → runtime/guards/tool-result-pruner-guard.d.ts} +0 -0
- /package/lib/types/host/{no-answer-resume → runtime/no-answer-resume}/index.d.ts +0 -0
- /package/lib/types/host/{open-models → runtime/open-models}/observation-guard.d.ts +0 -0
- /package/lib/types/host/{open-models → runtime/open-models}/profiles.d.ts +0 -0
- /package/lib/types/host/{open-models → runtime/open-models}/state-anchor.d.ts +0 -0
- /package/lib/types/host/{agent-preset.d.ts → runtime/presets/agent-preset.d.ts} +0 -0
- /package/lib/types/host/{progress-updates → runtime/progress-updates}/index.d.ts +0 -0
- /package/lib/types/host/{progress-updates → runtime/progress-updates}/nudge.d.ts +0 -0
- /package/lib/types/host/{progress-updates → runtime/progress-updates}/prompt.d.ts +0 -0
- /package/lib/types/host/{progress-updates → runtime/progress-updates}/routes.d.ts +0 -0
- /package/lib/types/host/{progress-updates → runtime/progress-updates}/store.d.ts +0 -0
- /package/lib/types/host/{progress-updates → runtime/progress-updates}/tool.d.ts +0 -0
- /package/lib/types/host/{session-title-guard → runtime/session-title-guard}/index.d.ts +0 -0
- /package/lib/types/host/{widget-board → runtime/widget-board}/provider.d.ts +0 -0
|
@@ -0,0 +1,1121 @@
|
|
|
1
|
+
import { createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
2
|
+
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
/**
|
|
5
|
+
* 判断是否该催促。达到阈值即触发,注入之后调用方把计数清零。
|
|
6
|
+
* @param rounds - 自上次进展更新以来的连续轮次数。
|
|
7
|
+
* @returns 是否达到 {@link NUDGE_THRESHOLD}。
|
|
8
|
+
*/
|
|
9
|
+
function shouldNudge(rounds) {
|
|
10
|
+
return rounds >= 8;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 把进展列表截断到环形缓冲上限,保留最新的一批。
|
|
14
|
+
* @param list - 任意长度的进展列表(不会被就地修改)。
|
|
15
|
+
* @returns 截断后的新数组。
|
|
16
|
+
*/
|
|
17
|
+
function capUpdates(list) {
|
|
18
|
+
return list.length <= 50 ? [...list] : list.slice(list.length - 50);
|
|
19
|
+
}
|
|
20
|
+
/** 进程内自增序号,只用于拼出稳定 id;不含任何运行时依赖。 */
|
|
21
|
+
let sequence = 0;
|
|
22
|
+
/**
|
|
23
|
+
* 生成一条进展的稳定 id。
|
|
24
|
+
* @param at - 产生时刻(Unix 毫秒)。
|
|
25
|
+
* @returns 形如 `pu-<时间戳>-<序号>` 的字符串。
|
|
26
|
+
*/
|
|
27
|
+
function nextUpdateId(at) {
|
|
28
|
+
sequence += 1;
|
|
29
|
+
return `pu-${at}-${sequence}`;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 创建一个空的进展更新 store。
|
|
33
|
+
* @returns 新的会话维度 store。
|
|
34
|
+
*/
|
|
35
|
+
function createProgressUpdateStore() {
|
|
36
|
+
let current = {
|
|
37
|
+
updates: [],
|
|
38
|
+
roundsSinceUpdate: 0,
|
|
39
|
+
nudges: 0
|
|
40
|
+
};
|
|
41
|
+
return {
|
|
42
|
+
state: () => current,
|
|
43
|
+
push: (update) => {
|
|
44
|
+
current = {
|
|
45
|
+
...current,
|
|
46
|
+
updates: capUpdates([...current.updates, update])
|
|
47
|
+
};
|
|
48
|
+
return current;
|
|
49
|
+
},
|
|
50
|
+
bumpRound: () => {
|
|
51
|
+
current = {
|
|
52
|
+
...current,
|
|
53
|
+
roundsSinceUpdate: current.roundsSinceUpdate + 1
|
|
54
|
+
};
|
|
55
|
+
return current.roundsSinceUpdate;
|
|
56
|
+
},
|
|
57
|
+
markUpdated: () => {
|
|
58
|
+
current = {
|
|
59
|
+
...current,
|
|
60
|
+
roundsSinceUpdate: 0
|
|
61
|
+
};
|
|
62
|
+
return current;
|
|
63
|
+
},
|
|
64
|
+
markNudged: () => {
|
|
65
|
+
current = {
|
|
66
|
+
...current,
|
|
67
|
+
roundsSinceUpdate: 0,
|
|
68
|
+
nudges: current.nudges + 1
|
|
69
|
+
};
|
|
70
|
+
return current;
|
|
71
|
+
},
|
|
72
|
+
reset: () => {
|
|
73
|
+
current = {
|
|
74
|
+
updates: [],
|
|
75
|
+
roundsSinceUpdate: 0,
|
|
76
|
+
nudges: 0
|
|
77
|
+
};
|
|
78
|
+
return current;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/host/runtime/progress-updates/tool.ts
|
|
84
|
+
/** 注册的工具名。冻结契约的一部分,不要改动。 */
|
|
85
|
+
const NOTIFY_USER_TOOL = "progress_update";
|
|
86
|
+
/** 工具关闭时返回给模型的文本(canonical 输出的 render,而不是抛错)。 */
|
|
87
|
+
const DISABLED_OUTPUT_TEXT = "Progress updates are disabled; the update was not displayed.";
|
|
88
|
+
/** 工具描述的最终全文。 */
|
|
89
|
+
const PROGRESS_UPDATE_DESCRIPTION = [
|
|
90
|
+
"Report progress to the user without ending your turn.",
|
|
91
|
+
"For L2, delegated, or long-running multi-step work, two updates are part of the job, not optional narration: send one BEFORE your first tool call (the plan), and one BEFORE your final answer (what was done and what was verified). L0 single-point work and quick local L1 tasks do not require either update.",
|
|
92
|
+
"Use it during the rest of the work so the user can follow along and correct course early:",
|
|
93
|
+
"state your plan near the beginning of the task (what you will do, and in what order);",
|
|
94
|
+
"report a meaningful conclusion the moment you have it (a key fact, the root cause, a verified assumption) rather than narrating every step;",
|
|
95
|
+
"give a stage judgement when one phase ends and the next begins (where things stand, what happens next);",
|
|
96
|
+
"explain what you are waiting for before a long wait such as a test run, an install, or a build;",
|
|
97
|
+
"and say what blocks you — and what you will try next, or what you need from the user — when you are stuck.",
|
|
98
|
+
"Each update has one short title line (plain text, no Markdown, no trailing period) with the details in the message body.",
|
|
99
|
+
"Do not repeat a status that has not changed. Use at most one opening and one closing update per complex multi-step task; do not manufacture either for L0 single-point or quick L1 work.",
|
|
100
|
+
"Never announce an intended tool call instead of making it. After an opening or intermediate update, perform actual work, ask a necessary question, or finish before considering another update.",
|
|
101
|
+
"If a repeat-tool reminder names progress_update, do not answer with another progress update: inspect the previous result and continue with a task tool, a necessary question, or the final response.",
|
|
102
|
+
"When you run as a subagent, describe only your own subtask: finishing your subtask is not the same as finishing the overall task."
|
|
103
|
+
].join(" ");
|
|
104
|
+
/**
|
|
105
|
+
* 构造 progress_update 工具。
|
|
106
|
+
* @param deps - 依赖:当前开关与进展接收端。
|
|
107
|
+
* @returns 可注册的工具定义。
|
|
108
|
+
*/
|
|
109
|
+
function createProgressUpdateTool(deps) {
|
|
110
|
+
return defineTool({
|
|
111
|
+
name: NOTIFY_USER_TOOL,
|
|
112
|
+
description: PROGRESS_UPDATE_DESCRIPTION,
|
|
113
|
+
parameters: {
|
|
114
|
+
title: {
|
|
115
|
+
type: "string",
|
|
116
|
+
description: "One line, about 60 characters at most, in the user's language: plain text, no Markdown, no trailing period."
|
|
117
|
+
},
|
|
118
|
+
message: {
|
|
119
|
+
type: "string",
|
|
120
|
+
required: true,
|
|
121
|
+
description: "The details, about 1000 characters at most, in light Markdown: one paragraph of prose plus a few bullets. Tables are supported: when several items share fields, use a GFM pipe table (header row plus a | --- | separator row) instead of one item per line."
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
output: {
|
|
125
|
+
schema: {
|
|
126
|
+
type: "object",
|
|
127
|
+
additionalProperties: false,
|
|
128
|
+
properties: { displayed: {
|
|
129
|
+
type: "boolean",
|
|
130
|
+
description: "Whether the update was actually shown to the user."
|
|
131
|
+
} }
|
|
132
|
+
},
|
|
133
|
+
render(_args, value) {
|
|
134
|
+
return [{
|
|
135
|
+
type: "text",
|
|
136
|
+
text: value.displayed ? "Progress update displayed." : DISABLED_OUTPUT_TEXT
|
|
137
|
+
}];
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
async execute(args, exec) {
|
|
141
|
+
if (!deps.isEnabled()) return { displayed: false };
|
|
142
|
+
const sink = deps.sink?.();
|
|
143
|
+
if (sink === void 0) return { displayed: false };
|
|
144
|
+
const at = Date.now();
|
|
145
|
+
const source = deps.sourceOf?.(exec);
|
|
146
|
+
const update = {
|
|
147
|
+
id: nextUpdateId(at),
|
|
148
|
+
message: args.message,
|
|
149
|
+
at,
|
|
150
|
+
...args.title === void 0 || args.title.trim() === "" ? {} : { title: args.title.trim() },
|
|
151
|
+
...source === void 0 ? {} : { source }
|
|
152
|
+
};
|
|
153
|
+
return { displayed: sink.push(update) };
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/host/runtime/progress-updates/nudge.ts
|
|
159
|
+
/**
|
|
160
|
+
* 注入到模型上下文里的催促正文。
|
|
161
|
+
*
|
|
162
|
+
* 措辞要覆盖**两种调用面**:工具清单里直接有这个名字时直接调;Code Mode / PTC 下模型
|
|
163
|
+
* 只看得见那个**程序传输工具**,其余工具要经程序里的 `tools.<name>` 调。只点名直呼形式
|
|
164
|
+
* 时,模型会照着发出一个自己清单里没有的名字——那次调用没有派发,历史里留下一个没有结果的
|
|
165
|
+
* `tool_use`,MiniMax 线路从此每一轮都是 400(见 issue #89)。
|
|
166
|
+
*
|
|
167
|
+
* 传输工具的名字随预设而变:本仓库的 Code Mode 预设叫 `code_run`
|
|
168
|
+
* (`codemode/transport.ts` 的 `TRANSPORT_TOOL_NAME`),内核的 PTC 呈现叫 `run_code`
|
|
169
|
+
* (两代名字并存见 `cache-warmup/projection.ts` 的 `CACHE_WARMUP_PTC_TRANSPORT_TOOLS`)。
|
|
170
|
+
* 两个都要点名:只写一个,另一代会话里就对不上号。
|
|
171
|
+
*/
|
|
172
|
+
const NUDGE_TEXT = [
|
|
173
|
+
"You have made a run of tool calls without reporting progress to the user.",
|
|
174
|
+
"If you are still in the middle of multi-step work, send one progress update now with the progress_update tool:",
|
|
175
|
+
"one short title line and the details in the body — what you have established so far, where things stand, and what you are doing next.",
|
|
176
|
+
"Call it directly when your tool list has it; in Code Mode / PTC, call it from inside the program tool instead (code_run, or run_code on the kernel PTC preset): await tools.progress_update({ title, message }).",
|
|
177
|
+
"Skip it when there is genuinely nothing new to report."
|
|
178
|
+
].join(" ");
|
|
179
|
+
/** 催促上下文在消息来源上的 kind(供客户端与日志区分这类注入)。 */
|
|
180
|
+
const NUDGE_SOURCE_KIND = "progress-updates-nudge";
|
|
181
|
+
/**
|
|
182
|
+
* 造一条催促上下文。
|
|
183
|
+
* @param sequence - 本会话第几次催促,写进 notice 摘要便于日志辨认。
|
|
184
|
+
* @returns 可直接放进 `additionalContexts` 的用户角色消息。
|
|
185
|
+
*/
|
|
186
|
+
function createNudgeContext(sequence) {
|
|
187
|
+
return createUserMessage({
|
|
188
|
+
content: [{
|
|
189
|
+
type: "text",
|
|
190
|
+
text: NUDGE_TEXT
|
|
191
|
+
}],
|
|
192
|
+
source: {
|
|
193
|
+
kind: NUDGE_SOURCE_KIND,
|
|
194
|
+
form: "notice",
|
|
195
|
+
summary: `progress update nudge #${sequence}`
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 找出一次工具调用所属的**计数会话**:子会话归并到最近的顶层祖先,整棵委派
|
|
201
|
+
* 树共用一个计数器。
|
|
202
|
+
* @param agent - 事件里的调用方 agent。
|
|
203
|
+
* @param sessions - 会话查找表,缺省时退化为只认调用方自己的会话。
|
|
204
|
+
* @returns 计数用的会话 id,无法判定时返回 undefined。
|
|
205
|
+
*/
|
|
206
|
+
function counterSessionIdOf(agent, sessions) {
|
|
207
|
+
const own = stringOf$1(agent?.session?.header?.id) ?? stringOf$1(agent?.id);
|
|
208
|
+
if (own === void 0) return void 0;
|
|
209
|
+
if (sessions === void 0) return own;
|
|
210
|
+
let current = own;
|
|
211
|
+
let header = agent?.session?.header;
|
|
212
|
+
for (let depth = 0; depth < 16 && current !== void 0; depth += 1) {
|
|
213
|
+
const resolved = header ?? sessions.get(current)?.header;
|
|
214
|
+
if (resolved === void 0) return current;
|
|
215
|
+
const parentId = stringOf$1(resolved.parentSession);
|
|
216
|
+
if (parentId === void 0) return current;
|
|
217
|
+
const parent = sessions.get(parentId);
|
|
218
|
+
if (parent === void 0) return current;
|
|
219
|
+
header = parent.header;
|
|
220
|
+
current = parentId;
|
|
221
|
+
}
|
|
222
|
+
return current;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* 读一次工具调用所属的「步」标识,用于把同一个模型步里的多条工具结果合并成一轮。
|
|
226
|
+
*
|
|
227
|
+
* 拿不到 turnBoundary(没有 agent-loop,或宿主不是真实会话)时返回 undefined,
|
|
228
|
+
* 调用方退化为按工具结果计数——宁可多计,也不要漏掉催促。
|
|
229
|
+
* @param agent - 事件里的调用方 agent。
|
|
230
|
+
* @param projections - 会话投影服务,可选。
|
|
231
|
+
* @returns 该步的唯一键,或 undefined。
|
|
232
|
+
*/
|
|
233
|
+
function stepKeyOf(agent, projections) {
|
|
234
|
+
if (projections === void 0) return void 0;
|
|
235
|
+
const session = agent?.session;
|
|
236
|
+
if (session === void 0) return void 0;
|
|
237
|
+
try {
|
|
238
|
+
const seq = projections.stateOf(session, "turnBoundary")?.lastStepStartSeq;
|
|
239
|
+
return typeof seq === "number" ? `step:${seq}` : void 0;
|
|
240
|
+
} catch {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* 读一个未知字段为字符串。
|
|
246
|
+
* @param value - 候选值。
|
|
247
|
+
* @returns 字符串,或任何其它类型的 undefined。
|
|
248
|
+
*/
|
|
249
|
+
function stringOf$1(value) {
|
|
250
|
+
return typeof value === "string" && value !== "" ? value : void 0;
|
|
251
|
+
}
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/host/runtime/progress-updates/prompt.ts
|
|
254
|
+
/**
|
|
255
|
+
* 系统提示词引导:让模型知道「多步任务里要主动汇报进展」这件事该怎么用。
|
|
256
|
+
*
|
|
257
|
+
* 文本用函数形式提供(而不是静态字符串):开关关闭时返回空串,装配期就地
|
|
258
|
+
* 抹掉引导,不需要重启会话、也不需要重挂插件行。
|
|
259
|
+
*
|
|
260
|
+
* ## 为什么是英文
|
|
261
|
+
*
|
|
262
|
+
* 提示词是写给模型看的,不是写给用户看的:同一段要求在英文下最短、歧义最少,
|
|
263
|
+
* 也和工具描述(`tool.ts` 的 `PROGRESS_UPDATE_DESCRIPTION`,本来就是英文)保持
|
|
264
|
+
* 同一套措辞。用户看到的语言由 {@link progressLanguageDirective} 单独钉住——
|
|
265
|
+
* 「指令用英文」与「输出用中文」是两件事,不要混在一起。
|
|
266
|
+
*
|
|
267
|
+
* ## 分节恒定,语言覆盖走尾部消息
|
|
268
|
+
*
|
|
269
|
+
* 这一段分节属于**缓存前缀的第一段**:会话中途改一个字,harness 就会就地替换
|
|
270
|
+
* 最早那条 system 消息,整段前缀作废——在按内容前缀计费的线路上(Kimi Code),
|
|
271
|
+
* 一次改写就是一次全价重建。所以:
|
|
272
|
+
*
|
|
273
|
+
* - 分节文本**恒为通用档位**(跟随用户语言),与任何设置无关,逐字节不变;
|
|
274
|
+
* - zh/en 的固定语言要求、以及切回 auto 的撤销,都由 {@link resolveLanguageNotice}
|
|
275
|
+
* 判定成一条**尾部用户消息**投递:末尾追加不改已发前缀。
|
|
276
|
+
*
|
|
277
|
+
* @module dsh-chatgpt-subscription/host/progress-updates/prompt
|
|
278
|
+
*/
|
|
279
|
+
/**
|
|
280
|
+
* 本模块提示词分节的名称,全局唯一(重复注册会抛错)。
|
|
281
|
+
*
|
|
282
|
+
* 保留原插件的 `plugin:progress-updates` 拼写:会话里已有的分节名不能因为搬家
|
|
283
|
+
* 而变成第二个分节。
|
|
284
|
+
*/
|
|
285
|
+
const PROGRESS_SECTION_NAME = "plugin:progress-updates";
|
|
286
|
+
/** 允许的取值,供设置解析做白名单校验(配置里写错就等于没写)。 */
|
|
287
|
+
const PROGRESS_UPDATE_LANGUAGES = [
|
|
288
|
+
"auto",
|
|
289
|
+
"zh",
|
|
290
|
+
"en",
|
|
291
|
+
"ru"
|
|
292
|
+
];
|
|
293
|
+
/**
|
|
294
|
+
* 引导词正文。写法对齐 Kimi 的「进展更新」:先说清多步任务早期的思路,再报
|
|
295
|
+
* 有意义的结论、阶段判断、长等待与阻塞;每条给一行标题,细节放正文;不重复
|
|
296
|
+
* 没有变化的状态。复杂多步骤任务(L2、含派发或长耗时)保留开头与结尾两条硬要求;
|
|
297
|
+
* L0 单点工作与短平快 L1 任务不制造固定开场/收尾播报(L1 按需播报)。
|
|
298
|
+
*/
|
|
299
|
+
const PROGRESS_GUIDANCE = [
|
|
300
|
+
"## Progress updates",
|
|
301
|
+
"",
|
|
302
|
+
"During multi-step work you can call `progress_update` to report progress without ending your turn: report, then keep working.",
|
|
303
|
+
"",
|
|
304
|
+
"**For L2, delegated, or long-running multi-step work, two updates are mandatory — missing either one means the job is not finished. L0 single-point work and quick, local L1 tasks do not require opening or closing updates (for L1, report on demand only when a phase shift, long wait, or blocker occurs):**",
|
|
305
|
+
"",
|
|
306
|
+
"- **Opening**: before the first tool call of the task, state the plan (which steps, what you touch first).",
|
|
307
|
+
"- **Closing**: after the work is done and before your final answer, state the result (what changed, what was verified, what is left).",
|
|
308
|
+
"",
|
|
309
|
+
"Use at most one opening and one closing update per complex multi-step task; do not manufacture either for L0 single-point or quick L1 work. Never announce an intended tool call instead of making it: after an update, perform actual work, ask a necessary question, or finish before considering another update. If a repeat-tool reminder names `progress_update`, do not answer with another progress update; inspect the previous result and continue with a task tool, a necessary question, or the final response.",
|
|
310
|
+
"",
|
|
311
|
+
"Report intermediate updates only on a plan change, meaningful conclusion, stage transition, long wait, or blocker. Format: one short plain-text title line (no Markdown, no trailing period) and a brief Markdown body (use a GFM pipe table when rows share fields). Write in human words without restating tool arguments or unchanged status. As a subagent, describe only your own subtask progress."
|
|
312
|
+
].join("\n");
|
|
313
|
+
/**
|
|
314
|
+
* 每个语言档位对应的一句指令。
|
|
315
|
+
*
|
|
316
|
+
* 只约束输出的标题与正文,不约束引导词本身;三条都必须自洽——`auto` 不许在
|
|
317
|
+
* 用户说中文时滑回英文,`zh`/`en` 则明确压过对话语言。
|
|
318
|
+
*/
|
|
319
|
+
const PROGRESS_LANGUAGE_DIRECTIVES = {
|
|
320
|
+
auto: "Write the title and the message of every progress update in the language the user is writing in, whatever it is. Follow the conversation; do not fall back to English unless the user does.",
|
|
321
|
+
zh: "Write the title and the message of every progress update in Simplified Chinese, even when the conversation is in another language.",
|
|
322
|
+
en: "Write the title and the message of every progress update in English, even when the conversation is in another language.",
|
|
323
|
+
ru: "Write the title and the message of every progress update in Russian, even when the conversation is in another language."
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* 取一个语言档位的指令文本;未知取值按 `auto` 处理。
|
|
327
|
+
* @param language - 配置里读到的语言档位。
|
|
328
|
+
* @returns 追加到引导词末尾的一句指令。
|
|
329
|
+
*/
|
|
330
|
+
function progressLanguageDirective(language) {
|
|
331
|
+
return PROGRESS_LANGUAGE_DIRECTIVES[language] ?? PROGRESS_LANGUAGE_DIRECTIVES.auto;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* 系统提示词分节里**恒定**的那条语言指令。
|
|
335
|
+
*
|
|
336
|
+
* 分节文本属于缓存前缀的第一段:会话中途改一个字,harness 就会就地替换最早那条
|
|
337
|
+
* system 消息,整段前缀作废(Kimi Code 按内容前缀命中,一次改写就是一次全价
|
|
338
|
+
* 重建)。所以分节里只放**跟随用户语言**这一条通用指令——它与设置无关,逐字节
|
|
339
|
+
* 恒定。zh/en 的固定语言要求改由**尾部消息**投递(见
|
|
340
|
+
* {@link languageOverrideNoticeText}):末尾追加不改已发前缀。
|
|
341
|
+
*/
|
|
342
|
+
const FIXED_LANGUAGE_DIRECTIVE = PROGRESS_LANGUAGE_DIRECTIVES.auto;
|
|
343
|
+
/**
|
|
344
|
+
* 生成提示词分节的文本提供者。
|
|
345
|
+
*
|
|
346
|
+
* **不接受任何开关或语言参数**:分节文本必须在整个会话里逐字节恒定。开关的语义
|
|
347
|
+
* 只留给工具自己(关闭时 `execute` 直接返回 `displayed:false`);语言档位
|
|
348
|
+
* (zh/en)走尾部消息,不进分节。
|
|
349
|
+
* @returns 引导词加通用语言指令。
|
|
350
|
+
*/
|
|
351
|
+
function progressSectionText() {
|
|
352
|
+
return () => PROGRESS_GUIDANCE + "\n\n" + FIXED_LANGUAGE_DIRECTIVE;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* 语言覆盖通知的消息来源 kind。
|
|
356
|
+
*
|
|
357
|
+
* 与本插件其它注入的用户消息同形(`plan-mode-notice` / `progress-updates-nudge`),
|
|
358
|
+
* 便于客户端与日志把「这是一条通知」与「这是一条真人输入」分开。
|
|
359
|
+
*/
|
|
360
|
+
const LANGUAGE_NOTICE_SOURCE_KIND = "progress-updates-language";
|
|
361
|
+
/**
|
|
362
|
+
* 「固定语言」覆盖通知的正文。
|
|
363
|
+
*
|
|
364
|
+
* 覆盖的是分节里那条通用指令(跟随用户语言),所以正文里明确写了「压过它」。
|
|
365
|
+
* @param language - 要覆盖成的语言档位(zh/en)。
|
|
366
|
+
* @returns 通知正文。
|
|
367
|
+
*/
|
|
368
|
+
function languageOverrideNoticeText(language) {
|
|
369
|
+
return "Progress update output language override: " + progressLanguageDirective(language) + " This overrides the default instruction to write progress updates in the language the user is writing in; it applies to every progress update from now on.";
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* 撤销覆盖、切回「跟随用户语言」的通知正文。
|
|
373
|
+
*
|
|
374
|
+
* 必须单独通知:模型还记得「一律用中文」,不撤销它就会一直用中文。
|
|
375
|
+
* @returns 通知正文。
|
|
376
|
+
*/
|
|
377
|
+
function languageDefaultNoticeText() {
|
|
378
|
+
return "Progress update output language override ended: write the title and the message of every progress update in the language the user is writing in again (any earlier instruction to always use one fixed language no longer applies).";
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* 造一条语言通知消息。
|
|
382
|
+
*
|
|
383
|
+
* 用 DSH 自己的消息工厂而不是手写字面量:DSH 对每条被接纳的消息都校验 id 与
|
|
384
|
+
* source,手写字面量会在第一次被追加时同步抛错。
|
|
385
|
+
* @param text - 通知正文。
|
|
386
|
+
* @param summary - 通知摘要(写进消息来源,便于日志辨认)。
|
|
387
|
+
* @returns 用户角色的通知消息。
|
|
388
|
+
*/
|
|
389
|
+
function createLanguageNotice(text, summary) {
|
|
390
|
+
return createUserMessage({
|
|
391
|
+
content: [{
|
|
392
|
+
type: "text",
|
|
393
|
+
text
|
|
394
|
+
}],
|
|
395
|
+
source: {
|
|
396
|
+
kind: LANGUAGE_NOTICE_SOURCE_KIND,
|
|
397
|
+
form: "notice",
|
|
398
|
+
summary
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* 判定这一轮要不要追加一条语言通知。
|
|
404
|
+
*
|
|
405
|
+
* 规则只有一条:**模型当前知道的语言档位与设置里的不一致时才通知**。
|
|
406
|
+
*
|
|
407
|
+
* - 模型起始只知道分节里的通用档位(跟随用户语言),所以第一次设成 zh/en 时
|
|
408
|
+
* 通知一次;
|
|
409
|
+
* - 同一个档位重复设置不重复通知(每一步都重读设置,但只在**变化**时投递);
|
|
410
|
+
* - 切回 auto 也要通知:模型还记得「一律用中文」,不撤销它就会一直用中文。
|
|
411
|
+
*
|
|
412
|
+
* @param current - 设置里当前的语言档位。
|
|
413
|
+
* @param remembered - 模型已经知道的语言档位;undefined 表示只知道通用档位。
|
|
414
|
+
* @returns 通知与新的「已知档位」。
|
|
415
|
+
*/
|
|
416
|
+
function resolveLanguageNotice(current, remembered) {
|
|
417
|
+
if (current === (remembered ?? "auto")) return { remembered: current };
|
|
418
|
+
if (current === "auto") return {
|
|
419
|
+
notice: {
|
|
420
|
+
text: languageDefaultNoticeText(),
|
|
421
|
+
summary: "progress update language: auto"
|
|
422
|
+
},
|
|
423
|
+
remembered: "auto"
|
|
424
|
+
};
|
|
425
|
+
return {
|
|
426
|
+
notice: {
|
|
427
|
+
text: languageOverrideNoticeText(current),
|
|
428
|
+
summary: `progress update language: ${current}`
|
|
429
|
+
},
|
|
430
|
+
remembered: current
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region src/host/runtime/progress-updates/projection.ts
|
|
435
|
+
/**
|
|
436
|
+
* 「进展更新」的会话投影:把日志里的 progress_update 调用折叠成一条条进展。
|
|
437
|
+
* @module dsh-chatgpt-subscription/host/progress-updates/projection
|
|
438
|
+
*/
|
|
439
|
+
/** 投影键:宿主读状态、客户端取 wire 值都用这个名字。 */
|
|
440
|
+
const PROGRESS_UPDATES_PROJECTION_KEY = "progressUpdates";
|
|
441
|
+
/** 单条进展的 schema:与 `ProgressUpdate` 逐字同形。 */
|
|
442
|
+
const UPDATE_SCHEMA = z.object({
|
|
443
|
+
id: z.string(),
|
|
444
|
+
title: z.string().optional(),
|
|
445
|
+
message: z.string(),
|
|
446
|
+
at: z.number(),
|
|
447
|
+
source: z.string().optional()
|
|
448
|
+
});
|
|
449
|
+
/** 折叠状态的 schema(宿主状态)。 */
|
|
450
|
+
const progressUpdatesStateSchema = z.object({
|
|
451
|
+
updates: z.array(UPDATE_SCHEMA),
|
|
452
|
+
source: z.string().optional()
|
|
453
|
+
});
|
|
454
|
+
/** wire 值的 schema(客户端看到的数组)。 */
|
|
455
|
+
const progressUpdatesViewSchema = z.array(UPDATE_SCHEMA);
|
|
456
|
+
/**
|
|
457
|
+
* 造一条进展的稳定 id。
|
|
458
|
+
* @param seq - 事件在会话日志里的序号(重放稳定)。
|
|
459
|
+
* @param source - 所属会话 id;拿不到时省略后缀。
|
|
460
|
+
* @returns 形如 `pu-<seq>-<sessionId>` 的字符串。
|
|
461
|
+
*/
|
|
462
|
+
function updateIdOf(seq, source) {
|
|
463
|
+
return source === void 0 ? "pu-" + seq : "pu-" + seq + "-" + source;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* 读一个未知值为非空字符串。
|
|
467
|
+
* @param value - 候选值。
|
|
468
|
+
* @returns 非空字符串,其它类型的 undefined。
|
|
469
|
+
*/
|
|
470
|
+
function stringOf(value) {
|
|
471
|
+
return typeof value === "string" && value !== "" ? value : void 0;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* 把 `tool/call` 里的 `arguments` 原文解析成进展内容。
|
|
475
|
+
*
|
|
476
|
+
* **任何一点不对就返回 undefined**(而不是抛错,也不是造一条半截进展):这是重放
|
|
477
|
+
* 路径,一条形状坏掉的历史事件只该被跳过。
|
|
478
|
+
* @param raw - 工具入参 JSON 原文。
|
|
479
|
+
* @returns 正文与(去空白后的)可选标题。
|
|
480
|
+
*/
|
|
481
|
+
function parseArguments(raw) {
|
|
482
|
+
if (typeof raw !== "string") return void 0;
|
|
483
|
+
let value;
|
|
484
|
+
try {
|
|
485
|
+
value = JSON.parse(raw);
|
|
486
|
+
} catch {
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return void 0;
|
|
490
|
+
const record = value;
|
|
491
|
+
if (typeof record.message !== "string") return void 0;
|
|
492
|
+
const title = typeof record.title === "string" ? record.title.trim() : "";
|
|
493
|
+
return title === "" ? { message: record.message } : {
|
|
494
|
+
message: record.message,
|
|
495
|
+
title
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* 把 PTC 子调用里的 `arguments`(**已解析的对象**)读成进展内容。
|
|
500
|
+
*
|
|
501
|
+
* 与 {@link parseArguments} 只差一层:那条路径拿到的是模型吐出的 JSON 原文,
|
|
502
|
+
* 这条拿到的是宿主已经归一化过的对象(见 `dsh-tools` 的 `PtcDispatchEventData`)。
|
|
503
|
+
* 同样是"任何一点不对就返回 undefined",同样不抛错。
|
|
504
|
+
* @param raw - 已归一化的入参对象。
|
|
505
|
+
* @returns 正文与(去空白后的)可选标题。
|
|
506
|
+
*/
|
|
507
|
+
function parseDispatchedArguments(raw) {
|
|
508
|
+
if (typeof raw !== "object" || raw === null || Array.isArray(raw)) return void 0;
|
|
509
|
+
const record = raw;
|
|
510
|
+
if (typeof record.message !== "string") return void 0;
|
|
511
|
+
const title = typeof record.title === "string" ? record.title.trim() : "";
|
|
512
|
+
return title === "" ? { message: record.message } : {
|
|
513
|
+
message: record.message,
|
|
514
|
+
title
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* 造一个进展折叠单元。
|
|
519
|
+
*
|
|
520
|
+
* 每次登记都要一份**新的**定义对象:它是纯函数集合,没有跨会话的状态,但把
|
|
521
|
+
* `init` 闭包里的会话头漏进来就会把不同会话串成一份。
|
|
522
|
+
* @returns 可交给 `sessionProjections.register` 的定义。
|
|
523
|
+
*/
|
|
524
|
+
function progressUpdatesProjection() {
|
|
525
|
+
return {
|
|
526
|
+
key: PROGRESS_UPDATES_PROJECTION_KEY,
|
|
527
|
+
stateVersion: 2,
|
|
528
|
+
stateSchema: progressUpdatesStateSchema,
|
|
529
|
+
init(header) {
|
|
530
|
+
const source = stringOf(header?.id);
|
|
531
|
+
return source === void 0 ? { updates: [] } : {
|
|
532
|
+
updates: [],
|
|
533
|
+
source
|
|
534
|
+
};
|
|
535
|
+
},
|
|
536
|
+
apply(state, event) {
|
|
537
|
+
const isNative = event?.type === "tool/call";
|
|
538
|
+
const isDispatch = event?.type === "tool/ptc-dispatch";
|
|
539
|
+
if (!isNative && !isDispatch) return state;
|
|
540
|
+
const data = event.data;
|
|
541
|
+
if (typeof data !== "object" || data === null) return state;
|
|
542
|
+
if (data.name !== "progress_update") return state;
|
|
543
|
+
const body = isNative ? parseArguments(data.arguments) : parseDispatchedArguments(data.arguments);
|
|
544
|
+
if (body === void 0) return state;
|
|
545
|
+
const seq = event.seq;
|
|
546
|
+
if (typeof seq !== "number" || !Number.isFinite(seq)) return state;
|
|
547
|
+
const at = event.time;
|
|
548
|
+
if (typeof at !== "number" || !Number.isFinite(at)) return state;
|
|
549
|
+
const update = {
|
|
550
|
+
id: updateIdOf(seq, state.source),
|
|
551
|
+
message: body.message,
|
|
552
|
+
at,
|
|
553
|
+
...body.title === void 0 ? {} : { title: body.title },
|
|
554
|
+
...state.source === void 0 ? {} : { source: state.source }
|
|
555
|
+
};
|
|
556
|
+
return {
|
|
557
|
+
...state,
|
|
558
|
+
updates: capUpdates([...state.updates, update])
|
|
559
|
+
};
|
|
560
|
+
},
|
|
561
|
+
wire: {
|
|
562
|
+
viewSchema: progressUpdatesViewSchema,
|
|
563
|
+
view: (state) => state.updates
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* 读一个会话上折叠出来的进展。
|
|
569
|
+
*
|
|
570
|
+
* 两条读取路径,都按**不可用就当没读到**处理(返回 undefined,调用方回退到内存
|
|
571
|
+
* 实现):先问 `stateOf`(宿主状态,最直接),没有再问 `snapshot`(wire 切面,
|
|
572
|
+
* 老一点的投影服务上只有它)。读出来的值一律过 schema,形状不对就当投影不可用 ——
|
|
573
|
+
* 宁可用进程内那份,也不要把一份坏数据渲染成历史。
|
|
574
|
+
* @param projections - 会话投影服务。
|
|
575
|
+
* @param session - 会话对象。
|
|
576
|
+
* @returns 该会话的进展;投影不可用时 undefined。
|
|
577
|
+
*/
|
|
578
|
+
function readProjectedUpdates(projections, session) {
|
|
579
|
+
const stateOf = projections.stateOf;
|
|
580
|
+
if (typeof stateOf === "function") {
|
|
581
|
+
let state;
|
|
582
|
+
try {
|
|
583
|
+
state = stateOf.call(projections, session, PROGRESS_UPDATES_PROJECTION_KEY);
|
|
584
|
+
} catch {
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
587
|
+
if (state === void 0) return void 0;
|
|
588
|
+
const parsed = progressUpdatesStateSchema.safeParse(state);
|
|
589
|
+
return parsed.success ? parsed.data.updates : void 0;
|
|
590
|
+
}
|
|
591
|
+
const snapshot = projections.snapshot;
|
|
592
|
+
if (typeof snapshot !== "function") return void 0;
|
|
593
|
+
let values;
|
|
594
|
+
try {
|
|
595
|
+
values = snapshot.call(projections, session, [PROGRESS_UPDATES_PROJECTION_KEY])?.values;
|
|
596
|
+
} catch {
|
|
597
|
+
return;
|
|
598
|
+
}
|
|
599
|
+
if (values === void 0) return void 0;
|
|
600
|
+
const parsed = progressUpdatesViewSchema.safeParse(values[PROGRESS_UPDATES_PROJECTION_KEY]);
|
|
601
|
+
return parsed.success ? parsed.data : void 0;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* 把多个会话的进展合并成一份。
|
|
605
|
+
*
|
|
606
|
+
* 按 `at` 升序排(同一毫秒时按输入顺序,JS 的排序是稳定的:传入方把"被查询的
|
|
607
|
+
* 会话自己"放在最前面),再按 {@link MAX_UPDATES} 截断保留最新的。整棵委派树共用
|
|
608
|
+
* 一份进展是今天的语义,所以合并后的上限与单会话一致,不随子会话数量膨胀。
|
|
609
|
+
* @param lists - 各会话各自的进展(每条已各自截断过)。
|
|
610
|
+
* @returns 合并后的进展,最多 {@link MAX_UPDATES} 条。
|
|
611
|
+
*/
|
|
612
|
+
function mergeProjectedUpdates(lists) {
|
|
613
|
+
const merged = [].concat(...lists.map((list) => [...list]));
|
|
614
|
+
merged.sort((left, right) => left.at - right.at);
|
|
615
|
+
return capUpdates(merged);
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region src/host/runtime/progress-updates/routes.ts
|
|
619
|
+
/** 进展读取路由的完整路径。 */
|
|
620
|
+
const PROGRESS_UPDATES_PATH = "/api/dsh-progress-updates/updates";
|
|
621
|
+
/** 路由默认的 JSON 响应头。 */
|
|
622
|
+
const JSON_HEADERS = {
|
|
623
|
+
"content-type": "application/json; charset=utf-8",
|
|
624
|
+
"referrer-policy": "no-referrer"
|
|
625
|
+
};
|
|
626
|
+
/**
|
|
627
|
+
* 断言本次请求来自本机。
|
|
628
|
+
*
|
|
629
|
+
* 进展内容会包含用户在会话里做的事,属于个人数据,所以只有 loopback(桌面端
|
|
630
|
+
* 自己)能读:socket 地址是权威判断,Host 头必须也是 loopback 权威(挡住 DNS
|
|
631
|
+
* 重绑定),`X-Forwarded-For` 永远不信任。
|
|
632
|
+
* @param request - 进来的 HTTP 请求。
|
|
633
|
+
* @returns 是否放行。
|
|
634
|
+
*/
|
|
635
|
+
function isLoopbackRequest(request) {
|
|
636
|
+
if (!isLoopbackAddress(request.socket.remoteAddress)) return false;
|
|
637
|
+
const host = request.headers.host;
|
|
638
|
+
if (typeof host !== "string" || host === "") return false;
|
|
639
|
+
let hostname;
|
|
640
|
+
try {
|
|
641
|
+
hostname = new URL("http://" + host).hostname.toLowerCase();
|
|
642
|
+
} catch {
|
|
643
|
+
return false;
|
|
644
|
+
}
|
|
645
|
+
if (!isLoopbackHostname(hostname)) return false;
|
|
646
|
+
return request.headers["sec-fetch-site"] !== "cross-site";
|
|
647
|
+
}
|
|
648
|
+
/** socket 远端地址是否落在 loopback 范围(127/8、::1、IPv4-mapped)。 */
|
|
649
|
+
function isLoopbackAddress(address) {
|
|
650
|
+
if (address === void 0) return false;
|
|
651
|
+
const normalized = address.toLowerCase();
|
|
652
|
+
if (normalized === "::1") return true;
|
|
653
|
+
if (normalized.startsWith("::ffff:")) return isIPv4Loopback(normalized.slice(7));
|
|
654
|
+
return isIPv4Loopback(normalized);
|
|
655
|
+
}
|
|
656
|
+
/** IPv4 127/8 判定(四段十进制,首段为 127)。 */
|
|
657
|
+
function isIPv4Loopback(v4) {
|
|
658
|
+
const parts = v4.split(".");
|
|
659
|
+
return parts.length === 4 && parts[0] === "127" && parts.every((part) => /^\d{1,3}$/.test(part) && Number(part) <= 255);
|
|
660
|
+
}
|
|
661
|
+
/** 主机名是否指向 loopback 权威(localhost、[::1]、127/8)。 */
|
|
662
|
+
function isLoopbackHostname(hostname) {
|
|
663
|
+
if (hostname === "localhost" || hostname === "[::1]") return true;
|
|
664
|
+
return isIPv4Loopback(hostname);
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* 写一个 JSON 响应。
|
|
668
|
+
* @param res - 响应对象。
|
|
669
|
+
* @param status - HTTP 状态码。
|
|
670
|
+
* @param body - 要序列化的值。
|
|
671
|
+
* @param headers - 追加或覆盖的头。
|
|
672
|
+
*/
|
|
673
|
+
function writeJson(res, status, body, headers = {}) {
|
|
674
|
+
res.writeHead(status, {
|
|
675
|
+
...JSON_HEADERS,
|
|
676
|
+
...headers
|
|
677
|
+
});
|
|
678
|
+
res.end(JSON.stringify(body));
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* 进展读取路由:`GET /api/dsh-progress-updates/updates?session=<id>`。
|
|
682
|
+
*
|
|
683
|
+
* 返回 `{ updates: ProgressUpdate[] }`。响应带 no-store:这个列表随 agent 干活
|
|
684
|
+
* 实时变化,缓存住就等于展示过期进展。
|
|
685
|
+
* @param reader - 进展读取面。
|
|
686
|
+
* @returns 可注册的 route。
|
|
687
|
+
*/
|
|
688
|
+
function makeProgressUpdatesRoute(reader) {
|
|
689
|
+
return {
|
|
690
|
+
kind: "exact",
|
|
691
|
+
path: PROGRESS_UPDATES_PATH,
|
|
692
|
+
handler: (req, res) => {
|
|
693
|
+
if (!isLoopbackRequest(req)) {
|
|
694
|
+
writeJson(res, 403, {
|
|
695
|
+
ok: false,
|
|
696
|
+
error: "forbidden: loopback-only"
|
|
697
|
+
});
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
const session = new URL(req.url ?? "/", "http://127.0.0.1").searchParams.get("session") ?? "";
|
|
701
|
+
writeJson(res, 200, { updates: reader.updatesOf(session) }, { "cache-control": "no-store" });
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
//#endregion
|
|
706
|
+
//#region src/host/runtime/progress-updates/index.ts
|
|
707
|
+
/**
|
|
708
|
+
* 读取一个配置字段,沿着 volatile 活引用取当前值。
|
|
709
|
+
* @param field - 字段本身。
|
|
710
|
+
* @returns 当前值,或字段缺失时的 undefined。
|
|
711
|
+
*/
|
|
712
|
+
function readProgressConfigField(field) {
|
|
713
|
+
if (field === void 0 || field === null) return void 0;
|
|
714
|
+
if (typeof field === "object" && typeof field.get === "function") return field.get();
|
|
715
|
+
return field;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* 解析一次读取的有效设置:每次调用都重读活引用,因此设置保存后立刻生效。
|
|
719
|
+
* @param config - 主入口收到的插件配置(活引用或普通值)。
|
|
720
|
+
* @returns 生效的开关与催促阈值。
|
|
721
|
+
*/
|
|
722
|
+
function resolveProgressUpdatesSettings(config) {
|
|
723
|
+
const enabled = readProgressConfigField(config?.progressUpdates);
|
|
724
|
+
const threshold = readProgressConfigField(config?.progressUpdatesNudgeThreshold);
|
|
725
|
+
const language = readProgressConfigField(config?.progressUpdatesLanguage);
|
|
726
|
+
return {
|
|
727
|
+
enabled: enabled !== false,
|
|
728
|
+
nudgeThreshold: typeof threshold === "number" && Number.isSafeInteger(threshold) && threshold > 0 ? threshold : 8,
|
|
729
|
+
language: language !== void 0 && PROGRESS_UPDATE_LANGUAGES.includes(language) ? language : "auto"
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* 判断一个值是不是普通对象。
|
|
734
|
+
* @param value - 任意值。
|
|
735
|
+
* @returns 是非 null 的对象时为 true。
|
|
736
|
+
*/
|
|
737
|
+
function isRecord(value) {
|
|
738
|
+
return typeof value === "object" && value !== null;
|
|
739
|
+
}
|
|
740
|
+
/** 血缘回溯的深度上限:与 `nudge.ts` 的 `counterSessionIdOf` 同一个数。 */
|
|
741
|
+
const LINEAGE_DEPTH_LIMIT = 16;
|
|
742
|
+
/**
|
|
743
|
+
* 找出一个会话的全部子孙(广度优先,只看 `sessions.list()` 里活跃的那些)。
|
|
744
|
+
*
|
|
745
|
+
* 重开对话之后历史子孙并不在 `list()` 里 —— 那时它们各自的进展本来就取不到,
|
|
746
|
+
* 这里能做的只是把**当前活跃**的那几支合进来,剩下的等它们 attach。
|
|
747
|
+
* @param rootId - 祖先会话 id。
|
|
748
|
+
* @param sessions - 会话服务。
|
|
749
|
+
* @returns 子孙会话(不含根自己),按发现顺序。
|
|
750
|
+
*/
|
|
751
|
+
function descendantSessionsOf(rootId, sessions) {
|
|
752
|
+
const list = sessions.list;
|
|
753
|
+
if (typeof list !== "function") return [];
|
|
754
|
+
let all;
|
|
755
|
+
try {
|
|
756
|
+
all = list.call(sessions);
|
|
757
|
+
} catch {
|
|
758
|
+
return [];
|
|
759
|
+
}
|
|
760
|
+
if (!Array.isArray(all) || all.length === 0) return [];
|
|
761
|
+
/** 父会话 id → 直接子会话。 */
|
|
762
|
+
const childrenOf = /* @__PURE__ */ new Map();
|
|
763
|
+
for (const session of all) {
|
|
764
|
+
const parent = typeof session?.header?.parentSession === "string" ? session.header.parentSession : void 0;
|
|
765
|
+
if (parent === void 0) continue;
|
|
766
|
+
const bucket = childrenOf.get(parent);
|
|
767
|
+
if (bucket === void 0) childrenOf.set(parent, [session]);
|
|
768
|
+
else bucket.push(session);
|
|
769
|
+
}
|
|
770
|
+
const found = [];
|
|
771
|
+
const seen = /* @__PURE__ */ new Set([rootId]);
|
|
772
|
+
let frontier = [rootId];
|
|
773
|
+
for (let depth = 0; depth < LINEAGE_DEPTH_LIMIT && frontier.length > 0; depth += 1) {
|
|
774
|
+
const next = [];
|
|
775
|
+
for (const parentId of frontier) for (const child of childrenOf.get(parentId) ?? []) {
|
|
776
|
+
const childId = typeof child.header?.id === "string" ? child.header.id : void 0;
|
|
777
|
+
if (childId !== void 0) {
|
|
778
|
+
if (seen.has(childId)) continue;
|
|
779
|
+
seen.add(childId);
|
|
780
|
+
next.push(childId);
|
|
781
|
+
}
|
|
782
|
+
found.push(child);
|
|
783
|
+
}
|
|
784
|
+
frontier = next;
|
|
785
|
+
}
|
|
786
|
+
return found;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* 已挂载的模块登记表,走一个 global symbol:同一个包的两份模块实例(npm 拷贝与
|
|
790
|
+
* 仓库 link)仍然共享一次判定,而重复注册同名工具或同名提示词分节会让宿主启动
|
|
791
|
+
* 失败。
|
|
792
|
+
*/
|
|
793
|
+
const MOUNTED = Symbol.for("dsh-chatgpt-subscription.mounted-modules");
|
|
794
|
+
/** 本模块在登记表里的名字。 */
|
|
795
|
+
const MODULE_ID = "progress-updates";
|
|
796
|
+
/**
|
|
797
|
+
* 把一条催促挂到一个 post-execute 决策上,同时保住该决策原有的附加上下文。
|
|
798
|
+
* @param decision - `next()` 交回来的决策。
|
|
799
|
+
* @param context - 要追加的催促上下文。
|
|
800
|
+
* @returns 追加后的决策(形状不变)。
|
|
801
|
+
*/
|
|
802
|
+
function withNudge(decision, context) {
|
|
803
|
+
const additionalContexts = [...decision.additionalContexts ?? [], context];
|
|
804
|
+
if (decision.kind === "block") return {
|
|
805
|
+
kind: "block",
|
|
806
|
+
feedback: decision.feedback,
|
|
807
|
+
additionalContexts
|
|
808
|
+
};
|
|
809
|
+
if (decision.value !== void 0) return {
|
|
810
|
+
kind: "accept",
|
|
811
|
+
value: decision.value,
|
|
812
|
+
additionalContexts
|
|
813
|
+
};
|
|
814
|
+
if (decision.content !== void 0) return {
|
|
815
|
+
kind: "accept",
|
|
816
|
+
content: decision.content,
|
|
817
|
+
additionalContexts
|
|
818
|
+
};
|
|
819
|
+
return {
|
|
820
|
+
kind: "accept",
|
|
821
|
+
additionalContexts
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* 单实例守卫:本模块已挂载时放弃本次安装。
|
|
826
|
+
* @param ctx - 宿主上下文。
|
|
827
|
+
* @returns 释放函数(交出挂载权);已经挂载过时返回 undefined。
|
|
828
|
+
*/
|
|
829
|
+
function claimMount(ctx) {
|
|
830
|
+
const registry = globalThis;
|
|
831
|
+
const existing = registry[MOUNTED];
|
|
832
|
+
const mounted = existing instanceof Set ? existing : /* @__PURE__ */ new Set();
|
|
833
|
+
if (existing !== mounted) registry[MOUNTED] = mounted;
|
|
834
|
+
if (mounted.has(MODULE_ID)) return void 0;
|
|
835
|
+
mounted.add(MODULE_ID);
|
|
836
|
+
const release = () => {
|
|
837
|
+
mounted.delete(MODULE_ID);
|
|
838
|
+
};
|
|
839
|
+
if (typeof ctx.effect === "function") ctx.effect(() => release, "dsh-chatgpt-subscription: progress updates mount");
|
|
840
|
+
return release;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* 挂载「进展更新」的宿主半边。
|
|
844
|
+
* @param ctx - 宿主插件上下文。
|
|
845
|
+
* @param options - 挂载选项(设置读取器)。
|
|
846
|
+
* @returns 卸载函数;重复挂载时返回一个空操作。
|
|
847
|
+
*/
|
|
848
|
+
function installProgressUpdates(ctx, options) {
|
|
849
|
+
const release = claimMount(ctx);
|
|
850
|
+
if (release === void 0) return () => void 0;
|
|
851
|
+
/** 每次调用重新读服务:宿主树可能在本模块挂载之后才 settle,读一次存下来会漏。 */
|
|
852
|
+
const serviceOf = (name) => {
|
|
853
|
+
const read = ctx.get;
|
|
854
|
+
return typeof read === "function" ? read.call(ctx, name) : void 0;
|
|
855
|
+
};
|
|
856
|
+
/** 登记一个副作用;上下文没有 effect 时立即执行(测试用假上下文)。 */
|
|
857
|
+
const track = (execute, label) => {
|
|
858
|
+
if (typeof ctx.effect === "function") ctx.effect(execute, label);
|
|
859
|
+
else execute();
|
|
860
|
+
};
|
|
861
|
+
/** 会话查找表:够把子会话回溯到顶层祖先即可。 */
|
|
862
|
+
const sessionsOf = () => serviceOf("sessions");
|
|
863
|
+
/** 会话投影服务:只用来读 turnBoundary,把同一个模型步里的多条工具结果合并成一轮。 */
|
|
864
|
+
const projectionsOf = () => serviceOf("sessionProjections");
|
|
865
|
+
/**
|
|
866
|
+
* 会话投影服务:登记/读取进展折叠。
|
|
867
|
+
*
|
|
868
|
+
* 与 {@link projectionsOf} 是同一个服务的两份结构化视图(`nudge` 那边只读
|
|
869
|
+
* `turnBoundary`,这里读写进展键),分开写是为了让各自的类型面只声明自己真正
|
|
870
|
+
* 用到的成员。服务缺席(老宿主、没装 agent-loop)时是 undefined。
|
|
871
|
+
*/
|
|
872
|
+
const sessionProjectionsOf = () => serviceOf("sessionProjections");
|
|
873
|
+
/**
|
|
874
|
+
* 登记进展折叠单元。服务缺席时**安静跳过**:这是可选服务,缺了只是回到内存
|
|
875
|
+
* 实现(今天的行为),不是一次安装失败。
|
|
876
|
+
*/
|
|
877
|
+
track(() => {
|
|
878
|
+
const projections = sessionProjectionsOf();
|
|
879
|
+
if (typeof projections?.register !== "function") return () => void 0;
|
|
880
|
+
try {
|
|
881
|
+
return projections.register(progressUpdatesProjection());
|
|
882
|
+
} catch (error) {
|
|
883
|
+
serviceOf("logger")?.warn("[dsh-chatgpt-subscription] progress updates projection not registered: " + String(error));
|
|
884
|
+
return () => void 0;
|
|
885
|
+
}
|
|
886
|
+
}, "dsh-chatgpt-subscription: progress update projection");
|
|
887
|
+
/** 会话维度状态;键是计数会话 id(子会话已归并到顶层祖先)。 */
|
|
888
|
+
const stores = /* @__PURE__ */ new Map();
|
|
889
|
+
/** 已经计过数的「步」:同一个模型步里的后续工具结果不再重复计数。 */
|
|
890
|
+
const countedSteps = /* @__PURE__ */ new Map();
|
|
891
|
+
/**
|
|
892
|
+
* 取一个计数会话的 store,按需创建。
|
|
893
|
+
* @param key - 计数会话 id。
|
|
894
|
+
* @returns 该会话的 store。
|
|
895
|
+
*/
|
|
896
|
+
const storeOf = (key) => {
|
|
897
|
+
let store = stores.get(key);
|
|
898
|
+
if (store === void 0) {
|
|
899
|
+
store = createProgressUpdateStore();
|
|
900
|
+
stores.set(key, store);
|
|
901
|
+
}
|
|
902
|
+
return store;
|
|
903
|
+
};
|
|
904
|
+
/**
|
|
905
|
+
* 一次工具调用归属的计数会话 id。
|
|
906
|
+
* @param exec - 工具执行上下文(或任意带 agent 的对象)。
|
|
907
|
+
* @returns 计数会话 id;判定不出来时归入 `session` 这一桶。
|
|
908
|
+
*/
|
|
909
|
+
const counterKeyOf = (exec) => counterSessionIdOf(exec?.agent, sessionsOf()) ?? "session";
|
|
910
|
+
/**
|
|
911
|
+
* 从会话日志折叠出来的进展 —— 面板的**首选**取数路径。
|
|
912
|
+
*
|
|
913
|
+
* 读三样东西,任缺其一就返回 undefined,让调用方回退到内存实现:
|
|
914
|
+
* 会话服务、投影服务,以及"这个 id 对应的会话对象"。最后一件事在重开对话之后
|
|
915
|
+
* 并不必然成立:`sessions` 里只有**活跃**会话,历史会话要等宿主 attach 上来
|
|
916
|
+
* 才读得到 —— 那之前面板显示的是内存里那一份(通常为空),attach 之后同一个
|
|
917
|
+
* 轮询请求就能读到完整历史。
|
|
918
|
+
*
|
|
919
|
+
* 合并范围是**整棵委派树**:今天的语义是一个子会话的进展归并到顶层祖先的桶里,
|
|
920
|
+
* 折叠之后靠 `header.parentSession` 把子孙找回来(与 `nudge.ts` 的 lineage
|
|
921
|
+
* 走法同一套,深度上限 16 是防一条损坏的日志把这里变成死循环),按 `at` 升序
|
|
922
|
+
* 排 —— 子会话汇报的进展因此落在它真正发生的那个时间点上,而不是全排在最后。
|
|
923
|
+
* @param sessionId - 浏览器问的会话 id。
|
|
924
|
+
* @returns 合并后的进展;这条路径不可用时 undefined。
|
|
925
|
+
*/
|
|
926
|
+
const projectionUpdatesOf = (sessionId) => {
|
|
927
|
+
if (sessionId === "") return void 0;
|
|
928
|
+
const sessions = sessionsOf();
|
|
929
|
+
if (sessions === void 0) return void 0;
|
|
930
|
+
const projections = sessionProjectionsOf();
|
|
931
|
+
if (projections === void 0) return void 0;
|
|
932
|
+
let own;
|
|
933
|
+
try {
|
|
934
|
+
own = sessions.get?.(sessionId);
|
|
935
|
+
} catch {
|
|
936
|
+
return;
|
|
937
|
+
}
|
|
938
|
+
if (own === void 0) return void 0;
|
|
939
|
+
const updates = readProjectedUpdates(projections, own);
|
|
940
|
+
if (updates === void 0) return void 0;
|
|
941
|
+
const lists = [updates];
|
|
942
|
+
for (const child of descendantSessionsOf(sessionId, sessions)) {
|
|
943
|
+
const childUpdates = readProjectedUpdates(projections, child);
|
|
944
|
+
if (childUpdates !== void 0) lists.push(childUpdates);
|
|
945
|
+
}
|
|
946
|
+
return lists.length === 1 ? updates : mergeProjectedUpdates(lists);
|
|
947
|
+
};
|
|
948
|
+
/**
|
|
949
|
+
* 浏览器半边的读取面:给定会话 id 就交出那个会话的进展快照。
|
|
950
|
+
*
|
|
951
|
+
* **先投影、后内存**:投影是从已持久化的会话日志折出来的,重开对话、刷新页面、
|
|
952
|
+
* 宿主重启之后都还在;内存 `stores` 只在投影这条路不可用时兜底(老宿主没有
|
|
953
|
+
* 投影服务、会话还没 attach、或者压根没装会话服务)。
|
|
954
|
+
*
|
|
955
|
+
* 请求不带 session(或带一个本进程没见过的 id)时,回退到那个"合成会话桶":
|
|
956
|
+
* 这是单会话部署里的常态,也是插件第一次被调用、祖先血缘还没建立时的落点。
|
|
957
|
+
*/
|
|
958
|
+
const reader = { updatesOf: (sessionId) => {
|
|
959
|
+
const projected = projectionUpdatesOf(sessionId);
|
|
960
|
+
if (projected !== void 0) return projected;
|
|
961
|
+
const direct = stores.get(sessionId);
|
|
962
|
+
if (direct !== void 0) return direct.state().updates;
|
|
963
|
+
if (sessionId !== "") {
|
|
964
|
+
const merged = counterSessionIdOf({ id: sessionId }, sessionsOf());
|
|
965
|
+
const parent = merged === void 0 ? void 0 : stores.get(merged);
|
|
966
|
+
if (parent !== void 0) return parent.state().updates;
|
|
967
|
+
return [];
|
|
968
|
+
}
|
|
969
|
+
const fallback = stores.get("session");
|
|
970
|
+
return fallback === void 0 ? [] : fallback.state().updates;
|
|
971
|
+
} };
|
|
972
|
+
track(() => {
|
|
973
|
+
const tools = serviceOf("tools");
|
|
974
|
+
if (tools === void 0) {
|
|
975
|
+
serviceOf("logger")?.warn("[dsh-chatgpt-subscription] progress updates tool skipped: no tools service");
|
|
976
|
+
return () => void 0;
|
|
977
|
+
}
|
|
978
|
+
const tool = createProgressUpdateTool({
|
|
979
|
+
isEnabled: () => options.settings().enabled,
|
|
980
|
+
sink: () => ({ push: (update) => {
|
|
981
|
+
if (!options.settings().enabled) return false;
|
|
982
|
+
storeOf(update.source ?? "session").push(update);
|
|
983
|
+
return true;
|
|
984
|
+
} }),
|
|
985
|
+
sourceOf: (exec) => counterKeyOf(exec)
|
|
986
|
+
});
|
|
987
|
+
return tools.register(tool);
|
|
988
|
+
}, "dsh-chatgpt-subscription: progress update tool");
|
|
989
|
+
track(() => {
|
|
990
|
+
const systemPrompt = serviceOf("systemPrompt");
|
|
991
|
+
if (systemPrompt === void 0) return () => void 0;
|
|
992
|
+
return systemPrompt.section({
|
|
993
|
+
name: PROGRESS_SECTION_NAME,
|
|
994
|
+
order: 220,
|
|
995
|
+
text: progressSectionText()
|
|
996
|
+
});
|
|
997
|
+
}, "dsh-chatgpt-subscription: progress update prompt section");
|
|
998
|
+
/** 每个会话记住的「模型已经知道的语言档位」。 */
|
|
999
|
+
const rememberedLanguages = /* @__PURE__ */ new WeakMap();
|
|
1000
|
+
/**
|
|
1001
|
+
* 取一个会话的桶键。
|
|
1002
|
+
* @param agent - pre-step 载荷里的 agent。
|
|
1003
|
+
* @returns 桶键;认不出会话时 undefined。
|
|
1004
|
+
*/
|
|
1005
|
+
const languageBucketOf = (agent) => {
|
|
1006
|
+
if (!isRecord(agent)) return void 0;
|
|
1007
|
+
const session = agent["session"];
|
|
1008
|
+
if (isRecord(session)) return session;
|
|
1009
|
+
return agent;
|
|
1010
|
+
};
|
|
1011
|
+
const disposePreStepListener = ctx.on?.("agent/pre-step", (async (payload, next) => {
|
|
1012
|
+
const decision = await next();
|
|
1013
|
+
try {
|
|
1014
|
+
if (decision === void 0 || decision.kind === "reject") return decision;
|
|
1015
|
+
if (payload?.signal?.aborted === true) return decision;
|
|
1016
|
+
const messages = Array.isArray(decision.messages) ? decision.messages : [];
|
|
1017
|
+
if (messages.length === 0) return decision;
|
|
1018
|
+
const bucket = languageBucketOf(payload?.agent);
|
|
1019
|
+
if (bucket === void 0) return decision;
|
|
1020
|
+
const outcome = resolveLanguageNotice(options.settings().language, rememberedLanguages.get(bucket));
|
|
1021
|
+
if (outcome.notice === void 0) {
|
|
1022
|
+
rememberedLanguages.set(bucket, outcome.remembered);
|
|
1023
|
+
return decision;
|
|
1024
|
+
}
|
|
1025
|
+
const notice = createLanguageNotice(outcome.notice.text, outcome.notice.summary);
|
|
1026
|
+
rememberedLanguages.set(bucket, outcome.remembered);
|
|
1027
|
+
return {
|
|
1028
|
+
...decision,
|
|
1029
|
+
messages: [...messages, notice]
|
|
1030
|
+
};
|
|
1031
|
+
} catch {
|
|
1032
|
+
return decision;
|
|
1033
|
+
}
|
|
1034
|
+
}));
|
|
1035
|
+
track(() => {
|
|
1036
|
+
const webServer = serviceOf("webServer");
|
|
1037
|
+
if (webServer === void 0) return () => void 0;
|
|
1038
|
+
return webServer.register(makeProgressUpdatesRoute(reader));
|
|
1039
|
+
}, "dsh-chatgpt-subscription: progress update route");
|
|
1040
|
+
const disposeListener = ctx.on?.("tools/post-execute", (async (exec, _result, next) => {
|
|
1041
|
+
const decision = await next();
|
|
1042
|
+
const current = options.settings();
|
|
1043
|
+
if (!current.enabled) return decision;
|
|
1044
|
+
const key = counterKeyOf(exec);
|
|
1045
|
+
const store = storeOf(key);
|
|
1046
|
+
if (exec.name === "progress_update") {
|
|
1047
|
+
store.markUpdated();
|
|
1048
|
+
const reportedStep = stepKeyOf(exec.agent, projectionsOf());
|
|
1049
|
+
if (reportedStep !== void 0) countedSteps.set(key, reportedStep);
|
|
1050
|
+
return decision;
|
|
1051
|
+
}
|
|
1052
|
+
const step = stepKeyOf(exec.agent, projectionsOf());
|
|
1053
|
+
if (step !== void 0) {
|
|
1054
|
+
if (countedSteps.get(key) === step) return decision;
|
|
1055
|
+
countedSteps.set(key, step);
|
|
1056
|
+
}
|
|
1057
|
+
const rounds = store.bumpRound();
|
|
1058
|
+
if (!(current.nudgeThreshold === 8 ? shouldNudge(rounds) : rounds >= current.nudgeThreshold)) return decision;
|
|
1059
|
+
const nudges = store.markNudged().nudges;
|
|
1060
|
+
return withNudge(decision, createNudgeContext(nudges));
|
|
1061
|
+
}));
|
|
1062
|
+
return () => {
|
|
1063
|
+
disposeListener?.();
|
|
1064
|
+
if (typeof disposePreStepListener === "function") disposePreStepListener();
|
|
1065
|
+
stores.clear();
|
|
1066
|
+
countedSteps.clear();
|
|
1067
|
+
release();
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
//#endregion
|
|
1071
|
+
//#region src/entries/progress-updates.ts
|
|
1072
|
+
/** Loader 行名;patch 里的行 id 另由 bundle 决定。 */
|
|
1073
|
+
const name = "dsh-chatgpt-subscription-progress-updates";
|
|
1074
|
+
/**
|
|
1075
|
+
* 这一行不为任何服务等待。
|
|
1076
|
+
*
|
|
1077
|
+
* `installProgressUpdates` 逐个用 `ctx.get()` 探可选服务(tools、systemPrompt、
|
|
1078
|
+
* sessions、sessionProjections、webServer),缺哪个就退化成更弱的实现;把它们的
|
|
1079
|
+
* 名字写进 `inject` 反而会让没装 agent-loop 的宿主整行挂不上——那是这一行原本的
|
|
1080
|
+
* 独立性所要避免的事。
|
|
1081
|
+
*/
|
|
1082
|
+
const inject = [];
|
|
1083
|
+
/**
|
|
1084
|
+
* 设置是怎么到这一行的。
|
|
1085
|
+
*
|
|
1086
|
+
* 字段声明在核心入口(见文件头的理由)。行顺序不归这一行管,所以两种顺序都要成立:
|
|
1087
|
+
* 核心先挂上就直接递交;这一行先挂上就把读取器寄存下来,核心一调用就取走。
|
|
1088
|
+
*/
|
|
1089
|
+
let attachedSettings;
|
|
1090
|
+
let waitingForSettings;
|
|
1091
|
+
/**
|
|
1092
|
+
* 由核心入口在挂载时调用,把它的 `volatile` 设置读面交给这一行。
|
|
1093
|
+
*
|
|
1094
|
+
* 幂等:重复递交以最后一次为准(核心重挂时设置引用会换一份新的)。
|
|
1095
|
+
* @param read - 每次调用都重读活引用,返回当前的开关、阈值与语言。
|
|
1096
|
+
*/
|
|
1097
|
+
function attachProgressSettings(read) {
|
|
1098
|
+
attachedSettings = read;
|
|
1099
|
+
const waiting = waitingForSettings;
|
|
1100
|
+
waitingForSettings = void 0;
|
|
1101
|
+
waiting?.(read);
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* 还没有设置就不挂。
|
|
1105
|
+
*
|
|
1106
|
+
* 用一个写死的默认值假装在跑,会让「设置显示打开」与「实际没挂」同时成立——那正是
|
|
1107
|
+
* 这一行第一版的样子。等核心把它交过来,再挂。
|
|
1108
|
+
* @returns 一个读完引用就返回当前设置的函数。
|
|
1109
|
+
*/
|
|
1110
|
+
async function readSettings() {
|
|
1111
|
+
if (attachedSettings !== void 0) return attachedSettings;
|
|
1112
|
+
return await new Promise((resolve) => {
|
|
1113
|
+
waitingForSettings = resolve;
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
async function apply(ctx) {
|
|
1117
|
+
const read = await readSettings();
|
|
1118
|
+
ctx.effect(() => installProgressUpdates(ctx, { settings: read }), "dsh-progress-updates: host half");
|
|
1119
|
+
}
|
|
1120
|
+
//#endregion
|
|
1121
|
+
export { resolveProgressUpdatesSettings as a, name as i, attachProgressSettings as n, inject as r, apply as t };
|