@songtonyli/dsh-cli 0.1.40 → 0.1.42
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 +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/cordis/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
- package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
- package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +21 -5
- package/node_modules/@deepseek-ai/dsh/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh/lib/bin.js +5 -11
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-C-0P1h0W.js → dump-config-BEDI-dNY.js} +2 -2
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-crgOY3tW.js +2 -0
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-schema-BgEU7VYz.js → dump-config-schema-DhhNOaro.js} +3 -3
- package/node_modules/@deepseek-ai/dsh/lib/plugin-DkYIj96-.js +83 -0
- package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-DIiro1p-.js → profile-boot-BZ2ZjNWi.js} +4 -3
- package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +116 -113
- package/node_modules/@deepseek-ai/dsh-acp/README.i18n.yaml +81 -5
- package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-agent/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +10 -3
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-agent-instructions/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +26 -25
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +35 -9
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -26
- package/node_modules/@deepseek-ai/dsh-agent-preset/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +9 -6
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +10 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/practices.md +38 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +52 -21
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +52 -21
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +114 -45
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +37 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +26 -11
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +5 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -36
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-account-controller/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +7 -1
- package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +7 -1
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +123 -10
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +200 -11
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +200 -11
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +79 -6
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -7
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +6 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +50 -26
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +9 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +61 -29
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -13
- package/node_modules/@deepseek-ai/dsh-api-job-controller/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1268 -217
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +12 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +5 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +3 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +43 -40
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +9 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +9 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +101 -32
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +159 -79
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +179 -99
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +40 -15
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +52 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/assistant-stream.js +16 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +9 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +81 -40
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/transport.js +5 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +11 -14
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +24 -9
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +24 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +75 -68
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +4 -5
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +25 -12
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +13 -32
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +11 -26
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +2 -3
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +3 -3
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-workspace.js +29 -0
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +7 -11
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +25 -21
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +7 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +10 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +11 -3
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +11 -3
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +474 -66
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +16 -6
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +22 -19
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +6 -5
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +6 -5
- package/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +73 -8
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +5 -2
- package/node_modules/@deepseek-ai/dsh-base/package.json +96 -95
- package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +96 -5
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-brand/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-chunked-list/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-file-upload/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +9 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +103 -17
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-resources/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +94 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +94 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +2006 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/index.js +23 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/protocol.js +524 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +63 -0
- package/node_modules/@deepseek-ai/dsh-client-store/README.i18n.yaml +27 -5
- package/node_modules/@deepseek-ai/dsh-client-store/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +192 -135
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +27 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +77 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +16 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -93
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +34 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +34 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +885 -287
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +15 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +12 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +12 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +415 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +35 -34
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +73 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +10 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +10 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +242 -211
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +63 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +14 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +14 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +14 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +97 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +172 -56
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +22 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +8 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +16 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +17 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +336 -98
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/index.js +140 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.host.js +53 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.remote-client.js +28 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +36 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +32 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +32 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +6 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CodeCard.module.css +83 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +24 -53
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +17 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +46 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImagePreview.module.css +24 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +22 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuSurface.module.css +49 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +27 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +13 -81
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ShortcutKeys.module.css +33 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +3 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +9 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +1735 -897
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +16 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +28 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +6 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeToolbar.d.ts +30 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImageLightbox.d.ts +27 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImagePreview.d.ts +12 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +12 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuSurface.d.ts +16 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +12 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ShortcutKeys.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +17 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +1 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/focus.d.ts +9 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/guide-artwork.d.ts +15 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +8 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +8 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +10 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/input-modality.d.ts +19 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/keyboard-composition.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +6 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +11 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +16 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/local-image-syntax.d.ts +10 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +3 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useModalLayer.d.ts +27 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +4 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +6 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +36 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +42 -45
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +6735 -171
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +32 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +27 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +46 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +46 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2300 -255
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +66 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +22 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +10 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +10 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +202 -109
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +20 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +10 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +11 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +48 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +89 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +89 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +1163 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +63 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +59 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +16 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +77 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +13 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +14 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +14 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +41 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +102 -75
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +57 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +76 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +19 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +12 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +12 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +667 -85
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +20 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +151 -106
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +19 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +29 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +67 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +20 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +20 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +13 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +13 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +13 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +315 -90
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +25 -24
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +68 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +8 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +608 -329
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +27 -25
- package/node_modules/@deepseek-ai/dsh-cmdline/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-command-compact/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-command-feedback/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-command-goal/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-compaction/README.i18n.yaml +84 -5
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +105 -5
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +193 -43
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +126 -78
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-credentials/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-credentials-local/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +13 -3
- package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +13 -3
- package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +54 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/account-tasks.js +30 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +26 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +14 -5
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +16 -8
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +16 -8
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +262 -40
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +44 -3
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +190 -32
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +45 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +30 -5
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-deque/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +7 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +7 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +359 -323
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +170 -25
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +180 -237
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +95 -28
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +7 -47
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-view.js +57 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +25 -39
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +3 -2
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +27 -6
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +20 -3
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +64 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +129 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +129 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/icon.svg +10 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +511 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +82 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +14 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +14 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +317 -4345
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +24 -28
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +184 -44
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +5 -4
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +5 -4
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -9
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +164 -26
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +9 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-goal/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-home-paths/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-hook-protocol/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-hooks-codex/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +2 -2
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-http-proxy/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-launch-environment/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-lazy-require/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-llm/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +107 -12
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +16 -20
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +107 -0
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/error.js +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +26 -9
- package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +18 -13
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +18 -13
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +642 -595
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +44 -47
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +79 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +79 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +62 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +54 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +78 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +78 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +69 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +53 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +93 -5
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +26 -25
- package/node_modules/@deepseek-ai/dsh-llm-retry/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-llm-retry/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-retry/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +26 -25
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.i18n.yaml +96 -5
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-mcp-resources/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-message-feedback/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-native-command/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +108 -33
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +55 -10
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +59 -22
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +111 -9
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-output-retention/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-output-retention/README.md +7 -3
- package/node_modules/@deepseek-ai/dsh-output-retention/README.zh.md +7 -3
- package/node_modules/@deepseek-ai/dsh-output-retention/lib/index.js +17 -1
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +9 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +65 -41
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +10 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +108 -5
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +19 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +19 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +760 -155
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +237 -26
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +215 -22
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +19 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +61 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +113 -23
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +403 -22
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +2 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/run-tree.js +57 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +13 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +111 -9
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-sandbox/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +16 -2
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +64 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +67 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-schedule/README.md +65 -129
- package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +72 -137
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +2147 -797
- package/node_modules/@deepseek-ai/dsh-schedule/lib/invariant.js +79 -17
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +727 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +477 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +66 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +1000 -113
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +428 -101
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/invariant.js +8 -1
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +129 -268
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +54 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/tools.js +305 -204
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +164 -0
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +50 -28
- package/node_modules/@deepseek-ai/dsh-scope/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +1 -0
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +102 -5
- package/node_modules/@deepseek-ai/dsh-session/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session/lib/index.js +89 -0
- package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +16 -0
- package/node_modules/@deepseek-ai/dsh-session/lib/types/tool-history.js +76 -0
- package/node_modules/@deepseek-ai/dsh-session/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-format/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +8 -4
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +8 -4
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +53 -9
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +51 -9
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +20 -19
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/CHANGELOG.md +10 -0
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/LICENSE +1 -1
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/README.md +10 -10
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/browser.js +82 -55
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/index.mjs +87 -56
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/browser.cjs +106 -77
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/index.cjs +106 -77
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node-worker.cjs +5 -1
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node.cjs +111 -78
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/package.json +12 -11
- package/node_modules/@deepseek-ai/dsh-session-log-export/node_modules/fflate/umd/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-session-persistence/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +189 -9
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-query/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-session-query/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +7 -1
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-session-stats/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-session-title/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +18 -17
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-settings/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-skill/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-skill-badge/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-skill-office/README.md +8 -2
- package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +8 -2
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +14 -3
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +14 -3
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +22 -4
- package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +21 -3
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +9 -8
- package/node_modules/@deepseek-ai/dsh-spill/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-spill/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-spill/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-spill-local/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-spill-policy/README.i18n.yaml +81 -5
- package/node_modules/@deepseek-ai/dsh-spill-policy/README.md +22 -22
- package/node_modules/@deepseek-ai/dsh-spill-policy/README.zh.md +22 -22
- package/node_modules/@deepseek-ai/dsh-spill-policy/lib/index.js +216 -142
- package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/index.js +110 -167
- package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/notice.js +10 -2
- package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/retention.js +88 -0
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -22
- package/node_modules/@deepseek-ai/dsh-storage/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-storage-json/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +93 -5
- package/node_modules/@deepseek-ai/dsh-subagent/README.md +3 -2
- package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +4 -3
- package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +71 -238
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +65 -41
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +12 -12
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +50 -261
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -56
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +84 -5
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.i18n.yaml +81 -5
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/README.i18n.yaml +105 -5
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +21 -20
- package/node_modules/@deepseek-ai/dsh-subprocess/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +3 -2
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +3 -2
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +10 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/output.js +82 -24
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-B2zsQ1Dz.js +1529 -0
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-system-prompt/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-terminal/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal-bash/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-time-context/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-time-context/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-time-context/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-timeout/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-tmux-context/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +111 -9
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-token-meter/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-token-meter/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-token-meter/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +22 -18
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +126 -5
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +6 -9
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +24 -22
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +373 -79
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +141 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +9 -73
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -30
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +114 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +3 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +3 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +4 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +96 -5
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +21 -15
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -5
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +123 -5
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +8 -8
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +7 -25
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +25 -23
- package/node_modules/@deepseek-ai/dsh-tool-ralph/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +141 -5
- package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -20
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +120 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +105 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +6 -11
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +6 -14
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-todo/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-tool-todo/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/index.js +5 -15
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +150 -5
- package/node_modules/@deepseek-ai/dsh-tool-web/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +22 -21
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +102 -5
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +9 -16
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +10 -16
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +102 -5
- package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +16 -2
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +13 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +5 -0
- package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +84 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +16 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +76 -76
- package/node_modules/@deepseek-ai/dsh-typert-loader/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-typert-registry/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-user-approval/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-user-approval/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-user-approval/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-util-code-language/README.i18n.yaml +25 -0
- package/node_modules/@deepseek-ai/dsh-util-code-language/README.md +50 -0
- package/node_modules/@deepseek-ai/dsh-util-code-language/README.zh.md +50 -0
- package/node_modules/@deepseek-ai/dsh-util-code-language/lib/index.js +269 -0
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +35 -0
- package/node_modules/@deepseek-ai/dsh-util-crypto/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.i18n.yaml +24 -5
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js +11 -1
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/types/index.d.ts +7 -0
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +21 -3
- package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +33 -5
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +143 -139
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/Montserrat-OFL.txt +93 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +127 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bat-BkioyH1T.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/clojure-P80f7IUj.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/csv-fuZLfV_i.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/diff-D97Zzqfu.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fish-BvzEVeQv.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-fwsONPVS.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/http-DcV90OkR.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/latex-B4C7GdlO.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/log-2UxHyX5q.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/make-CHLpvVh8.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/nix-CwoSXNpI.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/perl-DsWkoyyU.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-LEPfNACG.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/r-Dspwwk_N.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/rst-BbocfKWr.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-R292Iif0.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/scala-C151Ov-r.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vb-D17OF-Vu.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vue-Dq2x6432.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +17 -15
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +84 -5
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +81 -5
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-webhook/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-webhook-github/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-workflow/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +37 -36
- package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-workspace/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +7 -5
- package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +7 -5
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
- package/node_modules/@deepseek-ai/libreoffice-kit/README.md +30 -5
- package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +30 -5
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/cli.js +2058 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/font-snapshot-worker.js +454 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +1055 -57
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +922 -239
- package/node_modules/@deepseek-ai/libreoffice-kit/package.json +9 -3
- package/node_modules/@deepseek-ai/node-addon-system/README.i18n.yaml +9 -5
- package/node_modules/@deepseek-ai/node-addon-system/README.md +1 -1
- package/node_modules/@deepseek-ai/node-addon-system/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
- package/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
- package/node_modules/@js-temporal/polyfill/LICENSE +13 -0
- package/node_modules/@js-temporal/polyfill/README.md +90 -0
- package/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
- package/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
- package/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
- package/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
- package/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
- package/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
- package/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
- package/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
- package/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
- package/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
- package/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
- package/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
- package/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
- package/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
- package/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
- package/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
- package/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
- package/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
- package/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
- package/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
- package/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
- package/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
- package/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
- package/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
- package/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
- package/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
- package/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
- package/node_modules/@js-temporal/polyfill/package.json +125 -0
- package/node_modules/fflate/CHANGELOG.md +0 -10
- package/node_modules/fflate/LICENSE +1 -1
- package/node_modules/fflate/README.md +10 -10
- package/node_modules/fflate/esm/browser.js +55 -82
- package/node_modules/fflate/esm/index.mjs +56 -87
- package/node_modules/fflate/lib/browser.cjs +77 -106
- package/node_modules/fflate/lib/index.cjs +77 -106
- package/node_modules/fflate/lib/node-worker.cjs +1 -5
- package/node_modules/fflate/lib/node.cjs +78 -111
- package/node_modules/fflate/package.json +10 -11
- package/node_modules/fflate/umd/index.js +1 -1
- package/node_modules/jsbi/LICENSE +176 -0
- package/node_modules/jsbi/README.md +173 -0
- package/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
- package/node_modules/jsbi/dist/jsbi-umd.js +2 -0
- package/node_modules/jsbi/dist/jsbi.mjs +2 -0
- package/node_modules/jsbi/package.json +25 -0
- package/package.json +305 -289
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +0 -2
- package/node_modules/@deepseek-ai/dsh/lib/plugin-CnNK4cws.js +0 -31
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +0 -741
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +0 -70
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +0 -127
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-CfGypltT.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-DJl5gRdb.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +0 -1
- /package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/worker.cjs +0 -0
|
@@ -1,18 +1,452 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { getOrCreateAnonymousUserId } from "@deepseek-ai/dsh-anonymous-user-id";
|
|
1
|
+
import z from "@deepseek-ai/schemastery";
|
|
2
|
+
import { isVolatile } from "@deepseek-ai/cosmokit";
|
|
3
|
+
import { IMAGE_OFFLOAD_REQUIRED_CODE, LlmAdapter, LlmError, ProviderRequestId, ReasoningEffortId, RetryPolicySchema, ToolCallId, attributionHeaders, contentHasImage, isContextWindowExceededError, isQuotaExceededError, offloadedImageText, projectOffloadedImages, requestImageHandleText, requiredImageOffload, resolveImageAttachmentAccess, resolveRetryPolicy, textOnlyImageText } from "@deepseek-ai/dsh-llm";
|
|
5
4
|
import { MAX_TIMER_DELAY_MS, deadline, idleWatchdog, timeoutOf } from "@deepseek-ai/dsh-timeout";
|
|
5
|
+
import { ImageVariantId, longEdgeDimensions, requestImageDimensions } from "@deepseek-ai/dsh-attachment";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
import { mkdir, readFile } from "node:fs/promises";
|
|
8
8
|
import { dirname, join } from "node:path";
|
|
9
9
|
import { withFileLock, writeFileAtomic } from "@deepseek-ai/dsh-atomic-write";
|
|
10
10
|
import { resolveDshHome } from "@deepseek-ai/dsh-home-paths";
|
|
11
|
-
import { ImageVariantId, longEdgeDimensions, requestImageDimensions } from "@deepseek-ai/dsh-attachment";
|
|
12
11
|
import { EventSourceParserStream } from "eventsource-parser/stream";
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
|
|
12
|
+
import { getOrCreateAnonymousUserId } from "@deepseek-ai/dsh-anonymous-user-id";
|
|
13
|
+
import { deepEqualJson } from "@deepseek-ai/dsh-util-values";
|
|
14
|
+
//#region lib/types/defaults.js
|
|
15
|
+
/** Shared provider limits and Chat Files API defaults. */
|
|
16
|
+
/** Default maximum idle interval while an adapter stream read is outstanding. */
|
|
17
|
+
const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 3e5;
|
|
18
|
+
/** Default combined request/response context capacity. */
|
|
19
|
+
const DEFAULT_CONTEXT_WINDOW = 1e6;
|
|
20
|
+
/** Default per-request output-token cap. */
|
|
21
|
+
const DEFAULT_MAX_TOKENS = 256e3;
|
|
22
|
+
/** Default bound on accumulated base64 image payload after Files API fallback. */
|
|
23
|
+
const DEFAULT_MAX_INLINE_REQUEST_IMAGE_BYTES = 20 * 1024 * 1024;
|
|
24
|
+
/** Deterministic raw-byte removal step. */
|
|
25
|
+
const DEFAULT_IMAGE_OFFLOAD_BYTE_QUANTUM = 64 * 1024 * 1024;
|
|
26
|
+
/** Deterministic base64-byte removal step after Files API fallback. */
|
|
27
|
+
const DEFAULT_INLINE_IMAGE_OFFLOAD_BYTE_QUANTUM = 10 * 1024 * 1024;
|
|
28
|
+
/** Deterministic image-count removal step. */
|
|
29
|
+
const DEFAULT_IMAGE_OFFLOAD_COUNT_QUANTUM = 20;
|
|
30
|
+
/** Default explicit lifetime for uploaded images. */
|
|
31
|
+
const DEFAULT_FILE_EXPIRY_SECONDS = 10080 * 60;
|
|
32
|
+
/** Default proactive refresh window for indexed file ids. */
|
|
33
|
+
const DEFAULT_FILE_REFRESH_MARGIN_SECONDS = 3600;
|
|
34
|
+
/** Default number of oldest harness-owned files removed on quota recovery. */
|
|
35
|
+
const DEFAULT_FILE_QUOTA_CLEANUP_BATCH = 100;
|
|
36
|
+
/** Default deadline for resolving one request image through the Files API. */
|
|
37
|
+
const DEFAULT_FILES_API_TIMEOUT_MS = 6e4;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region lib/types/models.js
|
|
40
|
+
/** Default DeepSeek model catalog. */
|
|
41
|
+
/** Advisory official model entries; deployments may replace the catalog. */
|
|
42
|
+
const DEFAULT_MODELS = [{
|
|
43
|
+
id: "deepseek-flash",
|
|
44
|
+
name: "DeepSeek-V41-Flash",
|
|
45
|
+
contextWindow: DEFAULT_CONTEXT_WINDOW,
|
|
46
|
+
inputModalities: ["text", "image"],
|
|
47
|
+
systemPromptUpdate: "in-history",
|
|
48
|
+
toolUpdate: "addition-only"
|
|
49
|
+
}, {
|
|
50
|
+
id: "deepseek-v4-pro",
|
|
51
|
+
name: "DeepSeek-V4-Pro",
|
|
52
|
+
description: "Stronger agentic coding, knowledge, and difficult reasoning; suited to complex or quality-critical tasks at higher cost.",
|
|
53
|
+
contextWindow: DEFAULT_CONTEXT_WINDOW
|
|
54
|
+
}];
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region lib/types/image-tokens.js
|
|
57
|
+
/**
|
|
58
|
+
* DeepSeek vision-token accounting: the provider's published image-token
|
|
59
|
+
* calculator (api-docs.deepseek.com, Token & Token Usage) ported verbatim in
|
|
60
|
+
* its current `v41` configuration. The provider scales an image below
|
|
61
|
+
* 544×544 total pixels up, aligns it to a 14px-patch grid, downsamples 3:1
|
|
62
|
+
* per axis into token cells, and caps one image at 1024 tokens by solving the
|
|
63
|
+
* largest aspect-preserving grid inside that budget. The count is exact: this
|
|
64
|
+
* configuration has no alignment pad and no aspect-ratio clamp. Actual usage
|
|
65
|
+
* remains authoritative.
|
|
66
|
+
*
|
|
67
|
+
* @module dsh-llm-deepseek/image-tokens
|
|
68
|
+
*/
|
|
69
|
+
/** Vision patch edge in pixels. */
|
|
70
|
+
const PATCH_SIZE = 14;
|
|
71
|
+
/** Per-axis patch-to-token downsampling ratio. */
|
|
72
|
+
const DOWNSAMPLE_RATIO = 3;
|
|
73
|
+
/** Provider cap on tokens for one request image. */
|
|
74
|
+
const MAX_IMAGE_TOKENS = 1024;
|
|
75
|
+
/** Total-pixel floor; smaller images are scaled up before grid projection. */
|
|
76
|
+
const MIN_PIXELS = 544 * 544;
|
|
77
|
+
/** Pixels covered by one token cell along either axis. */
|
|
78
|
+
const CELL_SIZE = PATCH_SIZE * DOWNSAMPLE_RATIO;
|
|
79
|
+
const intDiv = (value, divisor) => Math.floor(value / divisor);
|
|
80
|
+
const ceilDiv = (value, divisor) => Math.floor((value + divisor - 1) / divisor);
|
|
81
|
+
/** Token count of one grid: every row carries a separator, plus two framing tokens. */
|
|
82
|
+
function gridTokens(gridHeight, gridWidth) {
|
|
83
|
+
return gridHeight * (gridWidth + 1) + 2;
|
|
84
|
+
}
|
|
85
|
+
/** Token-cell count along one padded pixel axis. */
|
|
86
|
+
function gridCells(paddedLength) {
|
|
87
|
+
return ceilDiv(intDiv(paddedLength, PATCH_SIZE), DOWNSAMPLE_RATIO);
|
|
88
|
+
}
|
|
89
|
+
/** Solve the largest grid within `budget` tokens preserving the aspect ratio. */
|
|
90
|
+
function solveResizeRatio(height, width, budget) {
|
|
91
|
+
const aspect = height / width;
|
|
92
|
+
const idealGridWidth = Math.sqrt((budget - 2) / aspect + .25) - .5;
|
|
93
|
+
const idealGridHeight = idealGridWidth * aspect;
|
|
94
|
+
let bestHeight;
|
|
95
|
+
let bestWidth;
|
|
96
|
+
if (idealGridWidth < 1) {
|
|
97
|
+
const solvedGridWidth = 1;
|
|
98
|
+
const solvedGridHeight = intDiv(budget - 2, 2);
|
|
99
|
+
bestWidth = solvedGridWidth * CELL_SIZE;
|
|
100
|
+
bestHeight = solvedGridHeight * CELL_SIZE;
|
|
101
|
+
} else if (idealGridHeight < 1) {
|
|
102
|
+
const solvedGridHeight = 1;
|
|
103
|
+
bestWidth = (intDiv(budget - 2, solvedGridHeight) - 1) * CELL_SIZE;
|
|
104
|
+
bestHeight = solvedGridHeight * CELL_SIZE;
|
|
105
|
+
} else {
|
|
106
|
+
const solvedGridWidth = Math.trunc(idealGridWidth);
|
|
107
|
+
const solvedGridHeight = Math.trunc(idealGridHeight);
|
|
108
|
+
const scale = Math.min(solvedGridWidth * CELL_SIZE / width, solvedGridHeight * CELL_SIZE / height);
|
|
109
|
+
bestWidth = Math.trunc(width * scale / PATCH_SIZE) * PATCH_SIZE;
|
|
110
|
+
bestHeight = Math.trunc(height * scale / PATCH_SIZE) * PATCH_SIZE;
|
|
111
|
+
}
|
|
112
|
+
const gridHeight = gridCells(bestHeight);
|
|
113
|
+
const gridWidth = gridCells(bestWidth);
|
|
114
|
+
return {
|
|
115
|
+
gridHeight,
|
|
116
|
+
gridWidth,
|
|
117
|
+
bestHeight,
|
|
118
|
+
bestWidth,
|
|
119
|
+
numTokens: gridTokens(gridHeight, gridWidth)
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/** Project padded pixel dimensions onto the largest in-budget token grid. */
|
|
123
|
+
function safeResize(height, width, paddedHeight, paddedWidth) {
|
|
124
|
+
const gridHeight = gridCells(paddedHeight);
|
|
125
|
+
const gridWidth = gridCells(paddedWidth);
|
|
126
|
+
const direct = {
|
|
127
|
+
gridHeight,
|
|
128
|
+
gridWidth,
|
|
129
|
+
bestHeight: paddedHeight,
|
|
130
|
+
bestWidth: paddedWidth,
|
|
131
|
+
numTokens: gridTokens(gridHeight, gridWidth)
|
|
132
|
+
};
|
|
133
|
+
if (direct.numTokens <= MAX_IMAGE_TOKENS) return direct;
|
|
134
|
+
const solved = solveResizeRatio(height, width, MAX_IMAGE_TOKENS);
|
|
135
|
+
/* v8 ignore next 3 -- the published solver's assertion; the closed-form
|
|
136
|
+
solve stays within the budget for every positive geometry. */
|
|
137
|
+
if (solved.numTokens > MAX_IMAGE_TOKENS) throw new Error(`deepseek image tokens: no grid fits the token budget for ${width}x${height}`);
|
|
138
|
+
return solved;
|
|
139
|
+
}
|
|
140
|
+
/** One scale-pad-project pass; the caller iterates it to a fixpoint. */
|
|
141
|
+
function resizeOnce(width, height) {
|
|
142
|
+
let scaledWidth = width;
|
|
143
|
+
let scaledHeight = height;
|
|
144
|
+
const pixels = scaledWidth * scaledHeight;
|
|
145
|
+
if (pixels < MIN_PIXELS && pixels > 0) {
|
|
146
|
+
const scale = Math.sqrt(MIN_PIXELS / pixels);
|
|
147
|
+
scaledWidth = Math.trunc(scaledWidth * scale);
|
|
148
|
+
scaledHeight = Math.trunc(scaledHeight * scale);
|
|
149
|
+
}
|
|
150
|
+
const paddedWidth = ceilDiv(scaledWidth, PATCH_SIZE) * PATCH_SIZE;
|
|
151
|
+
const paddedHeight = ceilDiv(scaledHeight, PATCH_SIZE) * PATCH_SIZE;
|
|
152
|
+
return safeResize(scaledHeight, scaledWidth, paddedHeight, paddedWidth);
|
|
153
|
+
}
|
|
154
|
+
function sameResize(a, b) {
|
|
155
|
+
return a.gridHeight === b.gridHeight && a.gridWidth === b.gridWidth && a.bestHeight === b.bestHeight && a.bestWidth === b.bestWidth && a.numTokens === b.numTokens;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Dimensions the harness sends so the provider keeps the whole image: the
|
|
159
|
+
* source itself when its patch-padded grid fits the token cap, otherwise the
|
|
160
|
+
* source aspect ratio at the solved grid's long edge. The provider pads the
|
|
161
|
+
* short edge to whole patches on its side. Rounding the aspect-preserving
|
|
162
|
+
* short edge can change the token count from the source's solved grid;
|
|
163
|
+
* request pricing uses the sent dimensions. Small images are never enlarged.
|
|
164
|
+
* @param width - positive integer source width in pixels.
|
|
165
|
+
* @param height - positive integer source height in pixels.
|
|
166
|
+
* @returns the request dimensions to encode.
|
|
167
|
+
*/
|
|
168
|
+
function deepSeekRequestImageDimensions(width, height) {
|
|
169
|
+
const paddedWidth = ceilDiv(width, PATCH_SIZE) * PATCH_SIZE;
|
|
170
|
+
if (gridTokens(gridCells(ceilDiv(height, PATCH_SIZE) * PATCH_SIZE), gridCells(paddedWidth)) <= MAX_IMAGE_TOKENS) return {
|
|
171
|
+
width,
|
|
172
|
+
height
|
|
173
|
+
};
|
|
174
|
+
const solved = solveResizeRatio(height, width, MAX_IMAGE_TOKENS);
|
|
175
|
+
return longEdgeDimensions(width, height, width >= height ? solved.bestWidth : solved.bestHeight);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Vision tokens DeepSeek charges for one request image of the given
|
|
179
|
+
* dimensions.
|
|
180
|
+
* @param width - positive integer request-image width in pixels.
|
|
181
|
+
* @param height - positive integer request-image height in pixels.
|
|
182
|
+
* @returns the provider vision-token price, at most 1024.
|
|
183
|
+
*/
|
|
184
|
+
function deepSeekImageTokens(width, height) {
|
|
185
|
+
let result = resizeOnce(width, height);
|
|
186
|
+
for (let iteration = 1; iteration < 10; iteration += 1) {
|
|
187
|
+
const next = resizeOnce(result.bestWidth, result.bestHeight);
|
|
188
|
+
if (sameResize(next, result)) return result.numTokens;
|
|
189
|
+
result = next;
|
|
190
|
+
}
|
|
191
|
+
/* v8 ignore next 2 -- the published solver's non-convergence guard; every
|
|
192
|
+
pass is a projection, so a second identical pass is a fixpoint. */
|
|
193
|
+
throw new Error(`deepseek image tokens: resize did not converge for ${width}x${height}`);
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region lib/types/request-pricing.js
|
|
197
|
+
/**
|
|
198
|
+
* Provider-side request-image pricing for DeepSeek routes: prices every
|
|
199
|
+
* retained surface occurrence at its per-model request target with
|
|
200
|
+
* the published vision-token accounting, and every occurrence the surface
|
|
201
|
+
* marks offloaded as its placeholder text. Consumed synchronously by the
|
|
202
|
+
* token meter through `LlmAdapter.imageRequestPricing`; provider usage
|
|
203
|
+
* remains the authoritative anchor for completed requests.
|
|
204
|
+
*
|
|
205
|
+
* @module dsh-llm-deepseek/request-pricing
|
|
206
|
+
*/
|
|
207
|
+
/** Default bound on accumulated file-referenced image bytes per request. */
|
|
208
|
+
const DEFAULT_MAX_REQUEST_FILES_BYTES = 128 * 1024 * 1024;
|
|
209
|
+
/** Provider request image-count limit. */
|
|
210
|
+
const DEFAULT_MAX_IMAGES_PER_REQUEST = 600;
|
|
211
|
+
/** Total-pixel budget matching provider low-detail image input. */
|
|
212
|
+
const DEFAULT_LOW_DETAIL_IMAGE_PIXEL_BUDGET = 512 * 512;
|
|
213
|
+
/** Encoded-byte target for one deterministic model-request image; the smallest quality-ladder output is used when no quality fits. */
|
|
214
|
+
const DEFAULT_REQUEST_IMAGE_MAX_BYTES = 2 * 1024 * 1024;
|
|
215
|
+
/**
|
|
216
|
+
* Provider per-side limit for a request carrying 15 or more images, applied
|
|
217
|
+
* to every request image so the image count never changes a projection.
|
|
218
|
+
*/
|
|
219
|
+
const REQUEST_IMAGE_MAX_DIMENSION = 4096;
|
|
220
|
+
/**
|
|
221
|
+
* Resolve the encoded-byte target one DeepSeek model route applies to every request image.
|
|
222
|
+
* @param model - Advertised model route and its optional image overrides.
|
|
223
|
+
* @returns the route's encoded-byte target.
|
|
224
|
+
* @internal
|
|
225
|
+
*/
|
|
226
|
+
function resolveRequestImageMaxBytes(model) {
|
|
227
|
+
return model.imageMaxBytes ?? 2097152;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Resolve the deterministic request target one DeepSeek model route chooses
|
|
231
|
+
* for one source image: the published token grid unless the model overrides
|
|
232
|
+
* it with a pixel budget, then the provider per-side limit, then the route's
|
|
233
|
+
* encoded-byte target. Small images are never enlarged.
|
|
234
|
+
* @param model - Advertised model route and its optional image overrides.
|
|
235
|
+
* @param source - intrinsic dimensions of the normalized attachment.
|
|
236
|
+
* @returns Complete request dimensions and encoded-byte target.
|
|
237
|
+
* @internal
|
|
238
|
+
*/
|
|
239
|
+
function resolveRequestImageTarget(model, source) {
|
|
240
|
+
const budget = model.imagePixelBudget === "low" ? DEFAULT_LOW_DETAIL_IMAGE_PIXEL_BUDGET : model.imagePixelBudget;
|
|
241
|
+
const projected = budget === void 0 ? deepSeekRequestImageDimensions(source.width, source.height) : requestImageDimensions(source.width, source.height, budget);
|
|
242
|
+
return {
|
|
243
|
+
...Math.max(projected.width, projected.height) > 4096 ? longEdgeDimensions(source.width, source.height, REQUEST_IMAGE_MAX_DIMENSION) : projected,
|
|
244
|
+
maxBytes: resolveRequestImageMaxBytes(model)
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Price one occurrence a text-only route substitutes with deterministic text,
|
|
249
|
+
* reproducing the `projectImagesForTextModel` substitution `LlmRuntime`
|
|
250
|
+
* applies before dispatching to a route without the `image` modality.
|
|
251
|
+
*/
|
|
252
|
+
function textOnlyPrice(block) {
|
|
253
|
+
return {
|
|
254
|
+
visualTokens: 0,
|
|
255
|
+
text: textOnlyImageText(block.attachment)
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Build the request-image pricing for one DeepSeek route from a validated
|
|
260
|
+
* connection snapshot. Uncatalogued and text-only models price every
|
|
261
|
+
* occurrence as its deterministic text substitution; image-capable models
|
|
262
|
+
* price an offloaded occurrence as its placeholder text and a retained one by
|
|
263
|
+
* its projected request dimensions, with each occurrence's handle or
|
|
264
|
+
* placeholder text built through the same access resolution the serializer
|
|
265
|
+
* uses. Access paths resolve at pricing time, so a path that changes before
|
|
266
|
+
* the request only shifts the text price by its own length.
|
|
267
|
+
* @param connection - validated connection facts of the pricing resolution.
|
|
268
|
+
* @param model - exact model id named by the request header.
|
|
269
|
+
* @param resolveAccess - current execution-world access resolution shared with request serialization.
|
|
270
|
+
* @returns synchronous per-occurrence pricing for the route.
|
|
271
|
+
*/
|
|
272
|
+
function deepSeekImageRequestPricing(connection, model, resolveAccess) {
|
|
273
|
+
const catalogModel = connection.models.find((entry) => entry.id === model);
|
|
274
|
+
if (catalogModel?.inputModalities?.includes("image") !== true) return { priceImages: (images) => images.map(textOnlyPrice) };
|
|
275
|
+
return { priceImages: (images) => images.map(({ attachment: ref, offloaded }) => {
|
|
276
|
+
if (offloaded === true) return {
|
|
277
|
+
visualTokens: 0,
|
|
278
|
+
text: offloadedImageText(ref, resolveAccess?.(ref))
|
|
279
|
+
};
|
|
280
|
+
const target = resolveRequestImageTarget(catalogModel, ref);
|
|
281
|
+
return {
|
|
282
|
+
visualTokens: deepSeekImageTokens(target.width, target.height),
|
|
283
|
+
text: requestImageHandleText(ref, target, resolveAccess?.(ref))
|
|
284
|
+
};
|
|
285
|
+
}) };
|
|
286
|
+
}
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region lib/types/config.js
|
|
289
|
+
const MODEL_MODALITIES = ["text", "image"];
|
|
290
|
+
/** Read the current value behind every reference of a validated Config.
|
|
291
|
+
* @param config Parsed plugin Config.
|
|
292
|
+
* @returns Plain options for the resolver.
|
|
293
|
+
*/
|
|
294
|
+
function plainOptions(config) {
|
|
295
|
+
return Object.fromEntries(Object.entries(config).map(([key, value]) => [key, isVolatile(value) ? value.get() : value]));
|
|
296
|
+
}
|
|
297
|
+
const catalogModel = z.object({
|
|
298
|
+
id: z.string().required(),
|
|
299
|
+
name: z.string(),
|
|
300
|
+
description: z.string(),
|
|
301
|
+
contextWindow: z.number().step(1).min(1),
|
|
302
|
+
maxTokens: z.number().step(1).min(1),
|
|
303
|
+
inputModalities: z.array(z.union(MODEL_MODALITIES)).min(1).default(["text"]),
|
|
304
|
+
imagePixelBudget: z.union([z.number().step(1).min(1), "low"]),
|
|
305
|
+
imageMaxBytes: z.number().step(1).min(1),
|
|
306
|
+
systemPromptUpdate: z.const("in-history"),
|
|
307
|
+
toolUpdate: z.union(["in-history", "addition-only"])
|
|
308
|
+
});
|
|
309
|
+
/** Shared schema fields for Messages protocol options. */
|
|
310
|
+
const deepSeekConfigFields = {
|
|
311
|
+
baseURL: z.string().volatile(),
|
|
312
|
+
thinking: z.union(["enabled", "disabled"]).volatile(),
|
|
313
|
+
reasoningEffort: z.union([
|
|
314
|
+
"off",
|
|
315
|
+
"low",
|
|
316
|
+
"high",
|
|
317
|
+
"max"
|
|
318
|
+
]).volatile(),
|
|
319
|
+
maxTokens: z.number().step(1).min(1).max(Number.MAX_SAFE_INTEGER).default(DEFAULT_MAX_TOKENS).volatile(),
|
|
320
|
+
defaultContextWindow: z.number().step(1).min(1).default(DEFAULT_CONTEXT_WINDOW).volatile(),
|
|
321
|
+
models: z.array(catalogModel).default(DEFAULT_MODELS).volatile(),
|
|
322
|
+
streamIdleTimeoutMs: z.number().min(Number.MIN_VALUE).max(MAX_TIMER_DELAY_MS).default(DEFAULT_STREAM_IDLE_TIMEOUT_MS).volatile(),
|
|
323
|
+
maxRequestFilesBytes: z.number().step(1).min(1).default(DEFAULT_MAX_REQUEST_FILES_BYTES).volatile(),
|
|
324
|
+
maxInlineRequestImageBytes: z.number().step(1).min(1).default(DEFAULT_MAX_INLINE_REQUEST_IMAGE_BYTES).volatile(),
|
|
325
|
+
maxImagesPerRequest: z.number().step(1).min(1).default(600).volatile(),
|
|
326
|
+
imageOffloadByteQuantum: z.number().step(1).min(1).default(DEFAULT_IMAGE_OFFLOAD_BYTE_QUANTUM).volatile(),
|
|
327
|
+
inlineImageOffloadByteQuantum: z.number().step(1).min(1).default(DEFAULT_INLINE_IMAGE_OFFLOAD_BYTE_QUANTUM).volatile(),
|
|
328
|
+
imageOffloadCountQuantum: z.number().step(1).min(1).default(20).volatile(),
|
|
329
|
+
filesApiTimeoutMs: z.number().min(Number.MIN_VALUE).max(MAX_TIMER_DELAY_MS).default(DEFAULT_FILES_API_TIMEOUT_MS).volatile(),
|
|
330
|
+
fileExpiresAfterSeconds: z.number().step(1).min(3600).max(2592e3).default(DEFAULT_FILE_EXPIRY_SECONDS).volatile(),
|
|
331
|
+
fileRefreshMarginSeconds: z.number().step(1).min(0).default(DEFAULT_FILE_REFRESH_MARGIN_SECONDS).volatile(),
|
|
332
|
+
fileQuotaCleanupBatch: z.number().step(1).min(1).max(1e3).default(100).volatile(),
|
|
333
|
+
retryPolicy: RetryPolicySchema.volatile()
|
|
334
|
+
};
|
|
335
|
+
const Config = z.object(deepSeekConfigFields);
|
|
336
|
+
/** Public API default; the internal endpoint comes from $DEEPSEEK_BASE_URL. */
|
|
337
|
+
const PUBLIC_BASE_URL = "https://api.deepseek.com/anthropic";
|
|
338
|
+
/** Environment variable naming this provider's endpoint, honored only from trusted layers. */
|
|
339
|
+
const BASE_URL_ENV = "DEEPSEEK_BASE_URL";
|
|
340
|
+
/** Resolve, validate, and detach the advisory model catalog. */
|
|
341
|
+
function resolveModels(models) {
|
|
342
|
+
const seen = /* @__PURE__ */ new Set();
|
|
343
|
+
return (models ?? DEFAULT_MODELS).map((model) => {
|
|
344
|
+
if (Object.hasOwn(model, "imageDetail")) throw new Error("llm-deepseek: catalog model imageDetail is no longer supported; use imagePixelBudget");
|
|
345
|
+
if (model.id.length === 0) throw new Error("llm-deepseek: catalog model ids must be non-empty");
|
|
346
|
+
if (model.name !== void 0 && model.name.length === 0) throw new Error(`llm-deepseek: catalog model "${model.id}" has an empty name`);
|
|
347
|
+
if (model.contextWindow !== void 0 && (!Number.isInteger(model.contextWindow) || model.contextWindow <= 0)) throw new Error(`llm-deepseek: catalog model "${model.id}" contextWindow must be a positive integer`);
|
|
348
|
+
if (model.maxTokens !== void 0 && (!Number.isInteger(model.maxTokens) || model.maxTokens <= 0)) throw new Error(`llm-deepseek: catalog model "${model.id}" maxTokens must be a positive integer`);
|
|
349
|
+
const inputModalities = model.inputModalities ?? ["text"];
|
|
350
|
+
if (inputModalities.length === 0) throw new Error(`llm-deepseek: catalog model "${model.id}" inputModalities must not be empty`);
|
|
351
|
+
if (inputModalities.some((modality) => !MODEL_MODALITIES.includes(modality))) throw new Error(`llm-deepseek: catalog model "${model.id}" inputModalities must contain only "text" and "image"`);
|
|
352
|
+
if (new Set(inputModalities).size !== inputModalities.length) throw new Error(`llm-deepseek: catalog model "${model.id}" inputModalities must not contain duplicates`);
|
|
353
|
+
const hasImage = inputModalities.includes("image");
|
|
354
|
+
if (!hasImage && (model.imagePixelBudget !== void 0 || model.imageMaxBytes !== void 0)) throw new Error(`llm-deepseek: text-only catalog model "${model.id}" cannot declare image request limits`);
|
|
355
|
+
if (model.imagePixelBudget !== void 0 && model.imagePixelBudget !== "low" && (!Number.isSafeInteger(model.imagePixelBudget) || model.imagePixelBudget <= 0)) throw new Error(`llm-deepseek: catalog model "${model.id}" imagePixelBudget must be "low" or a positive safe integer`);
|
|
356
|
+
if (model.imageMaxBytes !== void 0 && (!Number.isSafeInteger(model.imageMaxBytes) || model.imageMaxBytes <= 0)) throw new Error(`llm-deepseek: catalog model "${model.id}" imageMaxBytes must be a positive safe integer`);
|
|
357
|
+
const systemPromptUpdate = model.systemPromptUpdate;
|
|
358
|
+
if (systemPromptUpdate !== void 0 && systemPromptUpdate !== "in-history") throw new Error(`llm-deepseek: catalog model "${model.id}" systemPromptUpdate must be "in-history" when present`);
|
|
359
|
+
const toolUpdate = model.toolUpdate;
|
|
360
|
+
if (toolUpdate !== void 0 && toolUpdate !== "in-history" && toolUpdate !== "addition-only") throw new Error(`llm-deepseek: catalog model "${model.id}" toolUpdate must be "in-history" or "addition-only" when present`);
|
|
361
|
+
if (seen.has(model.id)) throw new Error(`llm-deepseek: duplicate catalog model "${model.id}"`);
|
|
362
|
+
seen.add(model.id);
|
|
363
|
+
return {
|
|
364
|
+
id: model.id,
|
|
365
|
+
...model.name === void 0 ? {} : { name: model.name },
|
|
366
|
+
...model.description === void 0 ? {} : { description: model.description },
|
|
367
|
+
...model.contextWindow === void 0 ? {} : { contextWindow: model.contextWindow },
|
|
368
|
+
...model.maxTokens === void 0 ? {} : { maxTokens: model.maxTokens },
|
|
369
|
+
...model.systemPromptUpdate === void 0 ? {} : { systemPromptUpdate: model.systemPromptUpdate },
|
|
370
|
+
...model.toolUpdate === void 0 ? {} : { toolUpdate: model.toolUpdate },
|
|
371
|
+
inputModalities: [...inputModalities],
|
|
372
|
+
...hasImage ? {
|
|
373
|
+
...model.imagePixelBudget === void 0 ? {} : { imagePixelBudget: model.imagePixelBudget },
|
|
374
|
+
imageMaxBytes: model.imageMaxBytes ?? 2097152
|
|
375
|
+
} : {}
|
|
376
|
+
};
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* The one explicit resolve step from raw config to validated protocol
|
|
381
|
+
* settings. Programmatic construction may bypass Schemastery normalization, so
|
|
382
|
+
* every default and bound is re-judged here — for the composition entry at
|
|
383
|
+
* load (fail loud) and for each settings snapshot at its first use.
|
|
384
|
+
* @param config - raw plugin config or resolved settings snapshot.
|
|
385
|
+
* @param environment - this run's environment layers, or `undefined` outside
|
|
386
|
+
* the product CLI. Every layer may supply an endpoint: the product trusts the
|
|
387
|
+
* project it is launched in, so a checkout can point its own agent at the
|
|
388
|
+
* gateway that checkout is meant to use.
|
|
389
|
+
* @returns validated protocol settings.
|
|
390
|
+
*/
|
|
391
|
+
function resolveAdapterOptions(config, environment) {
|
|
392
|
+
if (Object.hasOwn(config, "protocol")) throw new Error("llm-deepseek: protocol is not configurable; remove it and use a Messages-compatible baseURL");
|
|
393
|
+
if (config.thinking === "disabled" && config.reasoningEffort !== void 0 && config.reasoningEffort !== "off") throw new Error("llm-deepseek: only reasoningEffort \"off\" can be configured when thinking is disabled");
|
|
394
|
+
if (config.defaultContextWindow !== void 0 && (!Number.isInteger(config.defaultContextWindow) || config.defaultContextWindow <= 0)) throw new Error("llm-deepseek: defaultContextWindow must be a positive integer");
|
|
395
|
+
if (config.maxTokens !== void 0 && (!Number.isSafeInteger(config.maxTokens) || config.maxTokens <= 0)) throw new Error("llm-deepseek: maxTokens must be a positive safe integer");
|
|
396
|
+
const streamIdleTimeoutMs = config.streamIdleTimeoutMs ?? 3e5;
|
|
397
|
+
if (!Number.isFinite(streamIdleTimeoutMs) || streamIdleTimeoutMs <= 0 || streamIdleTimeoutMs > MAX_TIMER_DELAY_MS) throw new Error(`llm-deepseek: streamIdleTimeoutMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}`);
|
|
398
|
+
const maxRequestFilesBytes = config.maxRequestFilesBytes ?? 134217728;
|
|
399
|
+
if (!Number.isSafeInteger(maxRequestFilesBytes) || maxRequestFilesBytes <= 0) throw new Error("llm-deepseek: maxRequestFilesBytes must be a positive safe integer");
|
|
400
|
+
const maxInlineRequestImageBytes = config.maxInlineRequestImageBytes ?? 20971520;
|
|
401
|
+
if (!Number.isSafeInteger(maxInlineRequestImageBytes) || maxInlineRequestImageBytes <= 0) throw new Error("llm-deepseek: maxInlineRequestImageBytes must be a positive safe integer");
|
|
402
|
+
const maxImagesPerRequest = config.maxImagesPerRequest ?? 600;
|
|
403
|
+
if (!Number.isSafeInteger(maxImagesPerRequest) || maxImagesPerRequest <= 0) throw new Error("llm-deepseek: maxImagesPerRequest must be a positive safe integer");
|
|
404
|
+
const imageOffloadByteQuantum = config.imageOffloadByteQuantum ?? 67108864;
|
|
405
|
+
if (!Number.isSafeInteger(imageOffloadByteQuantum) || imageOffloadByteQuantum <= 0) throw new Error("llm-deepseek: imageOffloadByteQuantum must be a positive safe integer");
|
|
406
|
+
if (imageOffloadByteQuantum > maxRequestFilesBytes) throw new Error("llm-deepseek: imageOffloadByteQuantum must not exceed maxRequestFilesBytes");
|
|
407
|
+
const inlineImageOffloadByteQuantum = config.inlineImageOffloadByteQuantum ?? 10485760;
|
|
408
|
+
if (!Number.isSafeInteger(inlineImageOffloadByteQuantum) || inlineImageOffloadByteQuantum <= 0) throw new Error("llm-deepseek: inlineImageOffloadByteQuantum must be a positive safe integer");
|
|
409
|
+
if (inlineImageOffloadByteQuantum > maxInlineRequestImageBytes) throw new Error("llm-deepseek: inlineImageOffloadByteQuantum must not exceed maxInlineRequestImageBytes");
|
|
410
|
+
const imageOffloadCountQuantum = config.imageOffloadCountQuantum ?? 20;
|
|
411
|
+
if (!Number.isSafeInteger(imageOffloadCountQuantum) || imageOffloadCountQuantum <= 0) throw new Error("llm-deepseek: imageOffloadCountQuantum must be a positive safe integer");
|
|
412
|
+
if (imageOffloadCountQuantum > maxImagesPerRequest) throw new Error("llm-deepseek: imageOffloadCountQuantum must not exceed maxImagesPerRequest");
|
|
413
|
+
const filesApiTimeoutMs = config.filesApiTimeoutMs ?? 6e4;
|
|
414
|
+
if (!Number.isFinite(filesApiTimeoutMs) || filesApiTimeoutMs <= 0 || filesApiTimeoutMs > MAX_TIMER_DELAY_MS) throw new Error(`llm-deepseek: filesApiTimeoutMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}`);
|
|
415
|
+
const fileExpiresAfterSeconds = config.fileExpiresAfterSeconds ?? 604800;
|
|
416
|
+
if (!Number.isSafeInteger(fileExpiresAfterSeconds) || fileExpiresAfterSeconds < 3600 || fileExpiresAfterSeconds > 2592e3) throw new Error("llm-deepseek: fileExpiresAfterSeconds must be an integer from 3600 through 2592000");
|
|
417
|
+
const fileRefreshMarginSeconds = config.fileRefreshMarginSeconds ?? 3600;
|
|
418
|
+
if (!Number.isSafeInteger(fileRefreshMarginSeconds) || fileRefreshMarginSeconds < 0 || fileRefreshMarginSeconds >= fileExpiresAfterSeconds) throw new Error("llm-deepseek: fileRefreshMarginSeconds must be a non-negative integer below fileExpiresAfterSeconds");
|
|
419
|
+
const fileQuotaCleanupBatch = config.fileQuotaCleanupBatch ?? 100;
|
|
420
|
+
if (!Number.isSafeInteger(fileQuotaCleanupBatch) || fileQuotaCleanupBatch < 1 || fileQuotaCleanupBatch > 1e3) throw new Error("llm-deepseek: fileQuotaCleanupBatch must be an integer from 1 through 1000");
|
|
421
|
+
const baseURL = config.baseURL ?? environment?.get(BASE_URL_ENV)?.value ?? "https://api.deepseek.com/anthropic";
|
|
422
|
+
const parsed = new URL(baseURL);
|
|
423
|
+
if (!["http:", "https:"].includes(parsed.protocol) || parsed.username || parsed.password || parsed.search || parsed.hash) throw new Error("llm-deepseek: Messages baseURL must be an HTTP(S) root without credentials, query, or fragment");
|
|
424
|
+
return {
|
|
425
|
+
baseURL,
|
|
426
|
+
defaults: {
|
|
427
|
+
thinking: config.thinking,
|
|
428
|
+
reasoningEffort: config.reasoningEffort
|
|
429
|
+
},
|
|
430
|
+
maxTokens: config.maxTokens ?? 256e3,
|
|
431
|
+
defaultContextWindow: config.defaultContextWindow ?? 1e6,
|
|
432
|
+
models: resolveModels(config.models),
|
|
433
|
+
streamIdleTimeoutMs,
|
|
434
|
+
maxRequestFilesBytes,
|
|
435
|
+
maxInlineRequestImageBytes,
|
|
436
|
+
maxImagesPerRequest,
|
|
437
|
+
imageOffloadByteQuantum,
|
|
438
|
+
inlineImageOffloadByteQuantum,
|
|
439
|
+
imageOffloadCountQuantum,
|
|
440
|
+
filesApiTimeoutMs,
|
|
441
|
+
filePolicy: {
|
|
442
|
+
expiresAfterSeconds: fileExpiresAfterSeconds,
|
|
443
|
+
refreshMarginSeconds: fileRefreshMarginSeconds,
|
|
444
|
+
quotaCleanupBatch: fileQuotaCleanupBatch
|
|
445
|
+
},
|
|
446
|
+
retryPolicy: resolveRetryPolicy(config.retryPolicy, "llm-deepseek: retryPolicy")
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
//#endregion
|
|
16
450
|
//#region lib/types/model-info.js
|
|
17
451
|
/** Protocol-independent model capabilities and reasoning choices. */
|
|
18
452
|
const OFF_REASONING_EFFORT = ReasoningEffortId("off");
|
|
@@ -79,6 +513,7 @@ function modelInfo(connection, provider, model) {
|
|
|
79
513
|
context: { contextWindow },
|
|
80
514
|
defaultMaxTokens: configured?.maxTokens ?? connection.maxTokens,
|
|
81
515
|
...configured?.systemPromptUpdate === void 0 ? {} : { systemPromptUpdate: configured.systemPromptUpdate },
|
|
516
|
+
...configured?.toolUpdate === void 0 ? {} : { toolUpdate: configured.toolUpdate },
|
|
82
517
|
...connection.defaults.thinking === "disabled" ? { reasoning: {
|
|
83
518
|
efforts: OFF_ONLY_REASONING_EFFORTS,
|
|
84
519
|
defaultEffort: OFF_REASONING_EFFORT
|
|
@@ -112,6 +547,8 @@ function DeepSeekFileScope(scope) {
|
|
|
112
547
|
/** Shared DeepSeek Messages API endpoint and header policy. @module dsh-llm-deepseek/messages-api */
|
|
113
548
|
/** Required opt-in for Messages file operations and file-referenced image requests. */
|
|
114
549
|
const MESSAGES_FILES_BETA = "files-api-2025-04-14";
|
|
550
|
+
/** Required opt-in for mid-conversation `tool_addition` and `tool_removal` blocks. */
|
|
551
|
+
const MESSAGES_TOOL_CHANGES_BETA = "mid-conversation-tool-changes-2026-07-01";
|
|
115
552
|
/**
|
|
116
553
|
* Resolve the API root without duplicating an explicit provider version path.
|
|
117
554
|
* @param baseURL - validated configured endpoint root.
|
|
@@ -202,15 +639,13 @@ function providerErrorDetail$1(value) {
|
|
|
202
639
|
/** Direct Files client retaining the configured URL root and refusing redirects before credentials can leave its origin. */
|
|
203
640
|
var DeepSeekFilesClient = class {
|
|
204
641
|
baseURL;
|
|
205
|
-
|
|
206
|
-
apiKey;
|
|
642
|
+
authHeaders;
|
|
207
643
|
fetchImpl;
|
|
208
644
|
/**
|
|
209
|
-
* @param options - endpoint,
|
|
645
|
+
* @param options - endpoint, authentication headers, and optional test transport.
|
|
210
646
|
*/
|
|
211
647
|
constructor(options) {
|
|
212
|
-
this.
|
|
213
|
-
this.accountCredential = options.accountCredential === true;
|
|
648
|
+
this.authHeaders = options.headers;
|
|
214
649
|
this.fetchImpl = options.fetch ?? globalThis.fetch;
|
|
215
650
|
this.baseURL = messagesApiRoot(options.baseURL);
|
|
216
651
|
}
|
|
@@ -218,7 +653,7 @@ var DeepSeekFilesClient = class {
|
|
|
218
653
|
let response;
|
|
219
654
|
try {
|
|
220
655
|
const headers = new Headers(attributionHeaders());
|
|
221
|
-
|
|
656
|
+
for (const [name, value] of Object.entries(this.authHeaders)) headers.set(name, value);
|
|
222
657
|
headers.set("anthropic-version", "2023-06-01");
|
|
223
658
|
headers.set("anthropic-beta", MESSAGES_FILES_BETA);
|
|
224
659
|
response = await this.fetchImpl(`${this.baseURL}${path}`, {
|
|
@@ -309,13 +744,13 @@ var DeepSeekFilesClient = class {
|
|
|
309
744
|
/** Durable DeepSeek attachment-to-file-id index. @module dsh-llm-deepseek/upload-index */
|
|
310
745
|
var InvalidUploadIndexError = class extends Error {};
|
|
311
746
|
/**
|
|
312
|
-
* Derive a non-secret stable index namespace without persisting or logging
|
|
747
|
+
* Derive a non-secret stable index namespace without persisting or logging authentication headers.
|
|
313
748
|
* @param baseURL - normalized provider endpoint namespace.
|
|
314
|
-
* @param
|
|
749
|
+
* @param credentials - serialized authentication headers used only as hash input.
|
|
315
750
|
* @returns branded SHA-256 namespace digest.
|
|
316
751
|
*/
|
|
317
|
-
function deepSeekFileScope(baseURL,
|
|
318
|
-
return DeepSeekFileScope(createHash("sha256").update(baseURL.replace(/\/+$/u, "")).update("\0").update(
|
|
752
|
+
function deepSeekFileScope(baseURL, credentials) {
|
|
753
|
+
return DeepSeekFileScope(createHash("sha256").update(baseURL.replace(/\/+$/u, "")).update("\0").update(credentials).digest("hex"));
|
|
319
754
|
}
|
|
320
755
|
function absent(error) {
|
|
321
756
|
return error?.code === "ENOENT";
|
|
@@ -476,7 +911,7 @@ const MAX_IMAGE_BYTES = 32 * 1024 * 1024;
|
|
|
476
911
|
const OWNED_FILE_PREFIX = "dsh-";
|
|
477
912
|
/** The Files resource's parent URL identifies the upload namespace. */
|
|
478
913
|
function fileScope(connection) {
|
|
479
|
-
return deepSeekFileScope(messagesApiRoot(connection.baseURL), connection.
|
|
914
|
+
return deepSeekFileScope(messagesApiRoot(connection.baseURL), JSON.stringify(Object.entries(connection.headers).sort(([left], [right]) => left.localeCompare(right))));
|
|
480
915
|
}
|
|
481
916
|
function abortReason(signal) {
|
|
482
917
|
const reason = signal.reason;
|
|
@@ -544,8 +979,7 @@ var DeepSeekFileStore = class {
|
|
|
544
979
|
client(connection) {
|
|
545
980
|
return new DeepSeekFilesClient({
|
|
546
981
|
baseURL: connection.baseURL,
|
|
547
|
-
|
|
548
|
-
...connection.accountCredential === void 0 ? {} : { accountCredential: connection.accountCredential },
|
|
982
|
+
headers: connection.headers,
|
|
549
983
|
...this.fetchImpl === void 0 ? {} : { fetch: this.fetchImpl }
|
|
550
984
|
});
|
|
551
985
|
}
|
|
@@ -894,269 +1328,52 @@ var RequestFiles = class {
|
|
|
894
1328
|
//#region lib/types/request-extensions.js
|
|
895
1329
|
/** Prepare plugin-contributed request fields and commit their delivery after HTTP acceptance. */
|
|
896
1330
|
/**
|
|
897
|
-
* Merge contributions without replacing Messages fields. Preparation and
|
|
898
|
-
* acceptance failures report REQUEST_EXTENSION.
|
|
899
|
-
*
|
|
900
|
-
*
|
|
901
|
-
* @param
|
|
902
|
-
* @
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
}
|
|
929
|
-
//#endregion
|
|
930
|
-
//#region lib/types/image-tokens.js
|
|
931
|
-
/**
|
|
932
|
-
* DeepSeek vision-token accounting: the provider's published image-token
|
|
933
|
-
* calculator (api-docs.deepseek.com, Token & Token Usage) ported verbatim in
|
|
934
|
-
* its current `v41` configuration. The provider scales an image below
|
|
935
|
-
* 544×544 total pixels up, aligns it to a 14px-patch grid, downsamples 3:1
|
|
936
|
-
* per axis into token cells, and caps one image at 1024 tokens by solving the
|
|
937
|
-
* largest aspect-preserving grid inside that budget. The count is exact: this
|
|
938
|
-
* configuration has no alignment pad and no aspect-ratio clamp. Actual usage
|
|
939
|
-
* remains authoritative.
|
|
940
|
-
*
|
|
941
|
-
* @module dsh-llm-deepseek/image-tokens
|
|
942
|
-
*/
|
|
943
|
-
/** Vision patch edge in pixels. */
|
|
944
|
-
const PATCH_SIZE = 14;
|
|
945
|
-
/** Per-axis patch-to-token downsampling ratio. */
|
|
946
|
-
const DOWNSAMPLE_RATIO = 3;
|
|
947
|
-
/** Provider cap on tokens for one request image. */
|
|
948
|
-
const MAX_IMAGE_TOKENS = 1024;
|
|
949
|
-
/** Total-pixel floor; smaller images are scaled up before grid projection. */
|
|
950
|
-
const MIN_PIXELS = 544 * 544;
|
|
951
|
-
/** Pixels covered by one token cell along either axis. */
|
|
952
|
-
const CELL_SIZE = PATCH_SIZE * DOWNSAMPLE_RATIO;
|
|
953
|
-
const intDiv = (value, divisor) => Math.floor(value / divisor);
|
|
954
|
-
const ceilDiv = (value, divisor) => Math.floor((value + divisor - 1) / divisor);
|
|
955
|
-
/** Token count of one grid: every row carries a separator, plus two framing tokens. */
|
|
956
|
-
function gridTokens(gridHeight, gridWidth) {
|
|
957
|
-
return gridHeight * (gridWidth + 1) + 2;
|
|
958
|
-
}
|
|
959
|
-
/** Token-cell count along one padded pixel axis. */
|
|
960
|
-
function gridCells(paddedLength) {
|
|
961
|
-
return ceilDiv(intDiv(paddedLength, PATCH_SIZE), DOWNSAMPLE_RATIO);
|
|
962
|
-
}
|
|
963
|
-
/** Solve the largest grid within `budget` tokens preserving the aspect ratio. */
|
|
964
|
-
function solveResizeRatio(height, width, budget) {
|
|
965
|
-
const aspect = height / width;
|
|
966
|
-
const idealGridWidth = Math.sqrt((budget - 2) / aspect + .25) - .5;
|
|
967
|
-
const idealGridHeight = idealGridWidth * aspect;
|
|
968
|
-
let bestHeight;
|
|
969
|
-
let bestWidth;
|
|
970
|
-
if (idealGridWidth < 1) {
|
|
971
|
-
const solvedGridWidth = 1;
|
|
972
|
-
const solvedGridHeight = intDiv(budget - 2, 2);
|
|
973
|
-
bestWidth = solvedGridWidth * CELL_SIZE;
|
|
974
|
-
bestHeight = solvedGridHeight * CELL_SIZE;
|
|
975
|
-
} else if (idealGridHeight < 1) {
|
|
976
|
-
const solvedGridHeight = 1;
|
|
977
|
-
bestWidth = (intDiv(budget - 2, solvedGridHeight) - 1) * CELL_SIZE;
|
|
978
|
-
bestHeight = solvedGridHeight * CELL_SIZE;
|
|
979
|
-
} else {
|
|
980
|
-
const solvedGridWidth = Math.trunc(idealGridWidth);
|
|
981
|
-
const solvedGridHeight = Math.trunc(idealGridHeight);
|
|
982
|
-
const scale = Math.min(solvedGridWidth * CELL_SIZE / width, solvedGridHeight * CELL_SIZE / height);
|
|
983
|
-
bestWidth = Math.trunc(width * scale / PATCH_SIZE) * PATCH_SIZE;
|
|
984
|
-
bestHeight = Math.trunc(height * scale / PATCH_SIZE) * PATCH_SIZE;
|
|
985
|
-
}
|
|
986
|
-
const gridHeight = gridCells(bestHeight);
|
|
987
|
-
const gridWidth = gridCells(bestWidth);
|
|
988
|
-
return {
|
|
989
|
-
gridHeight,
|
|
990
|
-
gridWidth,
|
|
991
|
-
bestHeight,
|
|
992
|
-
bestWidth,
|
|
993
|
-
numTokens: gridTokens(gridHeight, gridWidth)
|
|
994
|
-
};
|
|
995
|
-
}
|
|
996
|
-
/** Project padded pixel dimensions onto the largest in-budget token grid. */
|
|
997
|
-
function safeResize(height, width, paddedHeight, paddedWidth) {
|
|
998
|
-
const gridHeight = gridCells(paddedHeight);
|
|
999
|
-
const gridWidth = gridCells(paddedWidth);
|
|
1000
|
-
const direct = {
|
|
1001
|
-
gridHeight,
|
|
1002
|
-
gridWidth,
|
|
1003
|
-
bestHeight: paddedHeight,
|
|
1004
|
-
bestWidth: paddedWidth,
|
|
1005
|
-
numTokens: gridTokens(gridHeight, gridWidth)
|
|
1006
|
-
};
|
|
1007
|
-
if (direct.numTokens <= MAX_IMAGE_TOKENS) return direct;
|
|
1008
|
-
const solved = solveResizeRatio(height, width, MAX_IMAGE_TOKENS);
|
|
1009
|
-
/* v8 ignore next 3 -- the published solver's assertion; the closed-form
|
|
1010
|
-
solve stays within the budget for every positive geometry. */
|
|
1011
|
-
if (solved.numTokens > MAX_IMAGE_TOKENS) throw new Error(`deepseek image tokens: no grid fits the token budget for ${width}x${height}`);
|
|
1012
|
-
return solved;
|
|
1013
|
-
}
|
|
1014
|
-
/** One scale-pad-project pass; the caller iterates it to a fixpoint. */
|
|
1015
|
-
function resizeOnce(width, height) {
|
|
1016
|
-
let scaledWidth = width;
|
|
1017
|
-
let scaledHeight = height;
|
|
1018
|
-
const pixels = scaledWidth * scaledHeight;
|
|
1019
|
-
if (pixels < MIN_PIXELS && pixels > 0) {
|
|
1020
|
-
const scale = Math.sqrt(MIN_PIXELS / pixels);
|
|
1021
|
-
scaledWidth = Math.trunc(scaledWidth * scale);
|
|
1022
|
-
scaledHeight = Math.trunc(scaledHeight * scale);
|
|
1023
|
-
}
|
|
1024
|
-
const paddedWidth = ceilDiv(scaledWidth, PATCH_SIZE) * PATCH_SIZE;
|
|
1025
|
-
const paddedHeight = ceilDiv(scaledHeight, PATCH_SIZE) * PATCH_SIZE;
|
|
1026
|
-
return safeResize(scaledHeight, scaledWidth, paddedHeight, paddedWidth);
|
|
1027
|
-
}
|
|
1028
|
-
function sameResize(a, b) {
|
|
1029
|
-
return a.gridHeight === b.gridHeight && a.gridWidth === b.gridWidth && a.bestHeight === b.bestHeight && a.bestWidth === b.bestWidth && a.numTokens === b.numTokens;
|
|
1030
|
-
}
|
|
1031
|
-
/**
|
|
1032
|
-
* Dimensions the harness sends so the provider keeps the whole image: the
|
|
1033
|
-
* source itself when its patch-padded grid fits the token cap, otherwise the
|
|
1034
|
-
* source aspect ratio at the solved grid's long edge. The provider pads the
|
|
1035
|
-
* short edge to whole patches on its side. Rounding the aspect-preserving
|
|
1036
|
-
* short edge can change the token count from the source's solved grid;
|
|
1037
|
-
* request pricing uses the sent dimensions. Small images are never enlarged.
|
|
1038
|
-
* @param width - positive integer source width in pixels.
|
|
1039
|
-
* @param height - positive integer source height in pixels.
|
|
1040
|
-
* @returns the request dimensions to encode.
|
|
1041
|
-
*/
|
|
1042
|
-
function deepSeekRequestImageDimensions(width, height) {
|
|
1043
|
-
const paddedWidth = ceilDiv(width, PATCH_SIZE) * PATCH_SIZE;
|
|
1044
|
-
if (gridTokens(gridCells(ceilDiv(height, PATCH_SIZE) * PATCH_SIZE), gridCells(paddedWidth)) <= MAX_IMAGE_TOKENS) return {
|
|
1045
|
-
width,
|
|
1046
|
-
height
|
|
1047
|
-
};
|
|
1048
|
-
const solved = solveResizeRatio(height, width, MAX_IMAGE_TOKENS);
|
|
1049
|
-
return longEdgeDimensions(width, height, width >= height ? solved.bestWidth : solved.bestHeight);
|
|
1050
|
-
}
|
|
1051
|
-
/**
|
|
1052
|
-
* Vision tokens DeepSeek charges for one request image of the given
|
|
1053
|
-
* dimensions.
|
|
1054
|
-
* @param width - positive integer request-image width in pixels.
|
|
1055
|
-
* @param height - positive integer request-image height in pixels.
|
|
1056
|
-
* @returns the provider vision-token price, at most 1024.
|
|
1057
|
-
*/
|
|
1058
|
-
function deepSeekImageTokens(width, height) {
|
|
1059
|
-
let result = resizeOnce(width, height);
|
|
1060
|
-
for (let iteration = 1; iteration < 10; iteration += 1) {
|
|
1061
|
-
const next = resizeOnce(result.bestWidth, result.bestHeight);
|
|
1062
|
-
if (sameResize(next, result)) return result.numTokens;
|
|
1063
|
-
result = next;
|
|
1064
|
-
}
|
|
1065
|
-
/* v8 ignore next 2 -- the published solver's non-convergence guard; every
|
|
1066
|
-
pass is a projection, so a second identical pass is a fixpoint. */
|
|
1067
|
-
throw new Error(`deepseek image tokens: resize did not converge for ${width}x${height}`);
|
|
1068
|
-
}
|
|
1069
|
-
//#endregion
|
|
1070
|
-
//#region lib/types/request-pricing.js
|
|
1071
|
-
/**
|
|
1072
|
-
* Provider-side request-image pricing for DeepSeek routes: prices every
|
|
1073
|
-
* retained surface occurrence at its per-model request target with
|
|
1074
|
-
* the published vision-token accounting, and every occurrence the surface
|
|
1075
|
-
* marks offloaded as its placeholder text. Consumed synchronously by the
|
|
1076
|
-
* token meter through `LlmAdapter.imageRequestPricing`; provider usage
|
|
1077
|
-
* remains the authoritative anchor for completed requests.
|
|
1078
|
-
*
|
|
1079
|
-
* @module dsh-llm-deepseek/request-pricing
|
|
1080
|
-
*/
|
|
1081
|
-
/** Default bound on accumulated file-referenced image bytes per request. */
|
|
1082
|
-
const DEFAULT_MAX_REQUEST_FILES_BYTES = 128 * 1024 * 1024;
|
|
1083
|
-
/** Provider request image-count limit. */
|
|
1084
|
-
const DEFAULT_MAX_IMAGES_PER_REQUEST = 600;
|
|
1085
|
-
/** Total-pixel budget matching provider low-detail image input. */
|
|
1086
|
-
const DEFAULT_LOW_DETAIL_IMAGE_PIXEL_BUDGET = 512 * 512;
|
|
1087
|
-
/** Encoded-byte target for one deterministic model-request image; the smallest quality-ladder output is used when no quality fits. */
|
|
1088
|
-
const DEFAULT_REQUEST_IMAGE_MAX_BYTES = 2 * 1024 * 1024;
|
|
1089
|
-
/**
|
|
1090
|
-
* Provider per-side limit for a request carrying 15 or more images, applied
|
|
1091
|
-
* to every request image so the image count never changes a projection.
|
|
1092
|
-
*/
|
|
1093
|
-
const REQUEST_IMAGE_MAX_DIMENSION = 4096;
|
|
1094
|
-
/**
|
|
1095
|
-
* Resolve the encoded-byte target one DeepSeek model route applies to every request image.
|
|
1096
|
-
* @param model - Advertised model route and its optional image overrides.
|
|
1097
|
-
* @returns the route's encoded-byte target.
|
|
1098
|
-
* @internal
|
|
1099
|
-
*/
|
|
1100
|
-
function resolveRequestImageMaxBytes(model) {
|
|
1101
|
-
return model.imageMaxBytes ?? 2097152;
|
|
1102
|
-
}
|
|
1103
|
-
/**
|
|
1104
|
-
* Resolve the deterministic request target one DeepSeek model route chooses
|
|
1105
|
-
* for one source image: the published token grid unless the model overrides
|
|
1106
|
-
* it with a pixel budget, then the provider per-side limit, then the route's
|
|
1107
|
-
* encoded-byte target. Small images are never enlarged.
|
|
1108
|
-
* @param model - Advertised model route and its optional image overrides.
|
|
1109
|
-
* @param source - intrinsic dimensions of the normalized attachment.
|
|
1110
|
-
* @returns Complete request dimensions and encoded-byte target.
|
|
1111
|
-
* @internal
|
|
1112
|
-
*/
|
|
1113
|
-
function resolveRequestImageTarget(model, source) {
|
|
1114
|
-
const budget = model.imagePixelBudget === "low" ? DEFAULT_LOW_DETAIL_IMAGE_PIXEL_BUDGET : model.imagePixelBudget;
|
|
1115
|
-
const projected = budget === void 0 ? deepSeekRequestImageDimensions(source.width, source.height) : requestImageDimensions(source.width, source.height, budget);
|
|
1116
|
-
return {
|
|
1117
|
-
...Math.max(projected.width, projected.height) > 4096 ? longEdgeDimensions(source.width, source.height, REQUEST_IMAGE_MAX_DIMENSION) : projected,
|
|
1118
|
-
maxBytes: resolveRequestImageMaxBytes(model)
|
|
1119
|
-
};
|
|
1120
|
-
}
|
|
1121
|
-
/**
|
|
1122
|
-
* Price one occurrence a text-only route substitutes with deterministic text,
|
|
1123
|
-
* reproducing the `projectImagesForTextModel` substitution `LlmRuntime`
|
|
1124
|
-
* applies before dispatching to a route without the `image` modality.
|
|
1125
|
-
*/
|
|
1126
|
-
function textOnlyPrice(block) {
|
|
1127
|
-
return {
|
|
1128
|
-
visualTokens: 0,
|
|
1129
|
-
text: textOnlyImageText(block.attachment)
|
|
1130
|
-
};
|
|
1131
|
-
}
|
|
1132
|
-
/**
|
|
1133
|
-
* Build the request-image pricing for one DeepSeek route from a validated
|
|
1134
|
-
* connection snapshot. Uncatalogued and text-only models price every
|
|
1135
|
-
* occurrence as its deterministic text substitution; image-capable models
|
|
1136
|
-
* price an offloaded occurrence as its placeholder text and a retained one by
|
|
1137
|
-
* its projected request dimensions, with each occurrence's handle or
|
|
1138
|
-
* placeholder text built through the same access resolution the serializer
|
|
1139
|
-
* uses. Access paths resolve at pricing time, so a path that changes before
|
|
1140
|
-
* the request only shifts the text price by its own length.
|
|
1141
|
-
* @param connection - validated connection facts of the pricing resolution.
|
|
1142
|
-
* @param model - exact model id named by the request header.
|
|
1143
|
-
* @param resolveAccess - current execution-world access resolution shared with request serialization.
|
|
1144
|
-
* @returns synchronous per-occurrence pricing for the route.
|
|
1145
|
-
*/
|
|
1146
|
-
function deepSeekImageRequestPricing(connection, model, resolveAccess) {
|
|
1147
|
-
const catalogModel = connection.models.find((entry) => entry.id === model);
|
|
1148
|
-
if (catalogModel?.inputModalities?.includes("image") !== true) return { priceImages: (images) => images.map(textOnlyPrice) };
|
|
1149
|
-
return { priceImages: (images) => images.map(({ attachment: ref, offloaded }) => {
|
|
1150
|
-
if (offloaded === true) return {
|
|
1151
|
-
visualTokens: 0,
|
|
1152
|
-
text: offloadedImageText(ref, resolveAccess?.(ref))
|
|
1153
|
-
};
|
|
1154
|
-
const target = resolveRequestImageTarget(catalogModel, ref);
|
|
1331
|
+
* Merge contributions without replacing Messages fields. Preparation and
|
|
1332
|
+
* acceptance failures report REQUEST_EXTENSION. When the merged request fails
|
|
1333
|
+
* to serialize, the payload is the base request alone and acceptance is a no-op,
|
|
1334
|
+
* so contributors resend their unaccepted state on a later request.
|
|
1335
|
+
* @param body - serialized Messages request before extension fields.
|
|
1336
|
+
* @param options - request identity, purpose, and cancellation.
|
|
1337
|
+
* @param prepare - contributor registry captured for this adapter.
|
|
1338
|
+
* @param onOmitted - receives the omitted field names and the serialization failure.
|
|
1339
|
+
* @returns HTTP payload and a commit to invoke only after a successful HTTP response.
|
|
1340
|
+
*/
|
|
1341
|
+
async function prepareRequestExtensions(body, options, prepare, onOmitted) {
|
|
1342
|
+
let extensions;
|
|
1343
|
+
try {
|
|
1344
|
+
extensions = await prepare({
|
|
1345
|
+
body,
|
|
1346
|
+
...options
|
|
1347
|
+
});
|
|
1348
|
+
} catch (error) {
|
|
1349
|
+
throw new LlmError("DeepSeek request extension preparation failed", "REQUEST_EXTENSION", { cause: error });
|
|
1350
|
+
}
|
|
1351
|
+
const fields = Object.keys(extensions.fields);
|
|
1352
|
+
for (const field of fields) if (Object.hasOwn(body, field)) throw new LlmError(`DeepSeek request extension field ${JSON.stringify(field)} collides with the base request`, "REQUEST_EXTENSION");
|
|
1353
|
+
let payload;
|
|
1354
|
+
try {
|
|
1355
|
+
payload = JSON.stringify({
|
|
1356
|
+
...body,
|
|
1357
|
+
...extensions.fields
|
|
1358
|
+
});
|
|
1359
|
+
} catch (error) {
|
|
1360
|
+
const base = JSON.stringify(body);
|
|
1361
|
+
onOmitted(fields, error);
|
|
1155
1362
|
return {
|
|
1156
|
-
|
|
1157
|
-
|
|
1363
|
+
payload: base,
|
|
1364
|
+
accept: () => Promise.resolve()
|
|
1158
1365
|
};
|
|
1159
|
-
}
|
|
1366
|
+
}
|
|
1367
|
+
return {
|
|
1368
|
+
payload,
|
|
1369
|
+
async accept() {
|
|
1370
|
+
try {
|
|
1371
|
+
await extensions.accept();
|
|
1372
|
+
} catch (error) {
|
|
1373
|
+
throw new LlmError("DeepSeek request extension acceptance failed", "REQUEST_EXTENSION", { cause: error });
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
};
|
|
1160
1377
|
}
|
|
1161
1378
|
//#endregion
|
|
1162
1379
|
//#region lib/types/images.js
|
|
@@ -1300,7 +1517,7 @@ function validateReplay(message, model) {
|
|
|
1300
1517
|
}
|
|
1301
1518
|
//#endregion
|
|
1302
1519
|
//#region lib/types/serialize.js
|
|
1303
|
-
/** Map system snapshots and conversation turns to Messages using the configured route capability. */
|
|
1520
|
+
/** Map system snapshots, tool changes, and conversation turns to Messages using the configured route capability. */
|
|
1304
1521
|
function unsupported(type) {
|
|
1305
1522
|
throw new LlmError(`DeepSeek Messages cannot represent ${type}`, "UNSUPPORTED_CONTENT");
|
|
1306
1523
|
}
|
|
@@ -1340,6 +1557,9 @@ function assistant(message, model, onReplayDegrade) {
|
|
|
1340
1557
|
/** Serialize one complete request using already prepared image bytes.
|
|
1341
1558
|
* User and tool-result content omits reasoning and tool-call blocks.
|
|
1342
1559
|
* Empty user messages are skipped; empty tool results retain their call ids.
|
|
1560
|
+
* Developer messages, already projected for this route by `LlmRuntime`, become
|
|
1561
|
+
* system-role updates after the preceding user turn, with tool changes as
|
|
1562
|
+
* `tool_addition` and `tool_removal` references to the declared tool.
|
|
1343
1563
|
* @param options - provider-neutral request.
|
|
1344
1564
|
* @param connection - validated defaults and thinking policy.
|
|
1345
1565
|
* @param history - image-projected history with complete system snapshots; durable messages remain unchanged.
|
|
@@ -1389,9 +1609,37 @@ function serialize(options, connection, history, images, access, onReplayDegrade
|
|
|
1389
1609
|
if (messages.at(-1)?.role !== "user") return unsupported("system update without a preceding user or tool-result turn");
|
|
1390
1610
|
messages.push(...systemUpdates.splice(0));
|
|
1391
1611
|
};
|
|
1392
|
-
if (options.tools?.some((tool) => tool.deferLoading === true)) return unsupported("deferred tool loading");
|
|
1393
1612
|
for (const message of history) {
|
|
1394
|
-
if (message.role === "developer")
|
|
1613
|
+
if (message.role === "developer") {
|
|
1614
|
+
const content = message.content.flatMap((block) => {
|
|
1615
|
+
switch (block.type) {
|
|
1616
|
+
case "text": return block.text.length === 0 ? [] : [{
|
|
1617
|
+
type: "text",
|
|
1618
|
+
text: block.text
|
|
1619
|
+
}];
|
|
1620
|
+
case "tool-addition": return [{
|
|
1621
|
+
type: "tool_addition",
|
|
1622
|
+
tool: {
|
|
1623
|
+
type: "tool_reference",
|
|
1624
|
+
name: block.toolName
|
|
1625
|
+
}
|
|
1626
|
+
}];
|
|
1627
|
+
case "tool-removal": return [{
|
|
1628
|
+
type: "tool_removal",
|
|
1629
|
+
tool: {
|
|
1630
|
+
type: "tool_reference",
|
|
1631
|
+
name: block.toolName
|
|
1632
|
+
}
|
|
1633
|
+
}];
|
|
1634
|
+
default: return unsupported(`developer content ${block.type}`);
|
|
1635
|
+
}
|
|
1636
|
+
});
|
|
1637
|
+
if (content.length > 0) systemUpdates.push({
|
|
1638
|
+
role: "system",
|
|
1639
|
+
content
|
|
1640
|
+
});
|
|
1641
|
+
continue;
|
|
1642
|
+
}
|
|
1395
1643
|
if (message.content.some((block) => block.type === "tool-addition" || block.type === "tool-removal")) return unsupported("tool-change blocks outside developer messages");
|
|
1396
1644
|
if (message.role === "system") {
|
|
1397
1645
|
const texts = message.content.filter((block) => block.type === "text");
|
|
@@ -1459,7 +1707,8 @@ function serialize(options, connection, history, images, access, onReplayDegrade
|
|
|
1459
1707
|
...options.tools === void 0 ? {} : { tools: options.tools.map((tool) => ({
|
|
1460
1708
|
name: tool.name,
|
|
1461
1709
|
description: tool.description,
|
|
1462
|
-
input_schema: tool.parameters
|
|
1710
|
+
input_schema: tool.parameters,
|
|
1711
|
+
...tool.deferLoading === true ? { defer_loading: true } : {}
|
|
1463
1712
|
})) }
|
|
1464
1713
|
};
|
|
1465
1714
|
}
|
|
@@ -1828,15 +2077,14 @@ var DeepSeekAdapter = class extends LlmAdapter {
|
|
|
1828
2077
|
providerInfo(provider) {
|
|
1829
2078
|
return {
|
|
1830
2079
|
id: provider,
|
|
1831
|
-
name: "DeepSeek"
|
|
2080
|
+
name: this.dependencies.providerName ?? "DeepSeek"
|
|
1832
2081
|
};
|
|
1833
2082
|
}
|
|
1834
2083
|
providerRetryPolicy(_provider) {
|
|
1835
2084
|
return this.dependencies.options().retryPolicy;
|
|
1836
2085
|
}
|
|
1837
|
-
listModels(provider) {
|
|
1838
|
-
|
|
1839
|
-
return Promise.resolve(connection.models.map((model) => catalogModelInfo(provider, model)));
|
|
2086
|
+
async listModels(provider) {
|
|
2087
|
+
return this.dependencies.discoverModels?.(provider) ?? [];
|
|
1840
2088
|
}
|
|
1841
2089
|
resolveModel(provider, model, _signal) {
|
|
1842
2090
|
return Promise.resolve(modelInfo(this.dependencies.options(), provider, model));
|
|
@@ -1893,339 +2141,138 @@ var DeepSeekAdapter = class extends LlmAdapter {
|
|
|
1893
2141
|
async *request(options, connection, signal, activity) {
|
|
1894
2142
|
signal.throwIfAborted();
|
|
1895
2143
|
const { messages, versions } = await prepareImages(options.messages, connection, options.model, this.dependencies.resolveAttachments?.(), this.imageAccess, signal);
|
|
1896
|
-
const
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
2144
|
+
const auth = await this.dependencies.resolveAuth(connection);
|
|
2145
|
+
try {
|
|
2146
|
+
const files = new RequestFiles(this.files, {
|
|
2147
|
+
baseURL: connection.baseURL,
|
|
2148
|
+
headers: auth.headers
|
|
2149
|
+
}, connection.filePolicy, connection.filesApiTimeoutMs, signal, activity);
|
|
2150
|
+
let inline = false;
|
|
2151
|
+
while (true) {
|
|
2152
|
+
signal.throwIfAborted();
|
|
2153
|
+
files.beginAttempt();
|
|
2154
|
+
let fileIds;
|
|
2155
|
+
if (!inline) try {
|
|
2156
|
+
fileIds = await prepareFileIds(messages, versions, files);
|
|
2157
|
+
} catch (error) {
|
|
2158
|
+
if (!(error instanceof FileResolutionFailure)) throw error;
|
|
2159
|
+
inline = true;
|
|
2160
|
+
continue;
|
|
2161
|
+
}
|
|
2162
|
+
const body = serialize(options, connection, inline ? inlineImages(messages, versions, connection) : messages, versions, this.imageAccess, (reason) => {
|
|
2163
|
+
this.dependencies.onReplayDegrade?.({
|
|
2164
|
+
provider: options.provider,
|
|
2165
|
+
model: options.model,
|
|
2166
|
+
reason
|
|
2167
|
+
});
|
|
2168
|
+
}, fileIds);
|
|
2169
|
+
const extensions = await prepareRequestExtensions(body, {
|
|
2170
|
+
signal,
|
|
2171
|
+
...options.sessionId === void 0 ? {} : { sessionId: String(options.sessionId) },
|
|
2172
|
+
...options.purpose === void 0 ? {} : { purpose: options.purpose }
|
|
2173
|
+
}, this.dependencies.prepareExtensions, (fields, error) => {
|
|
2174
|
+
this.dependencies.onExtensionsOmitted?.({
|
|
2175
|
+
provider: options.provider,
|
|
2176
|
+
model: options.model,
|
|
2177
|
+
fields,
|
|
2178
|
+
error
|
|
2179
|
+
});
|
|
1920
2180
|
});
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
2181
|
+
signal.throwIfAborted();
|
|
2182
|
+
const betas = [...fileIds !== void 0 && fileIds.size > 0 ? [MESSAGES_FILES_BETA] : [], ...body.messages.some((message) => message.content.some((block) => block.type === "tool_addition" || block.type === "tool_removal")) ? [MESSAGES_TOOL_CHANGES_BETA] : []];
|
|
2183
|
+
const response = await fetch(`${messagesApiRoot(connection.baseURL)}/messages`, {
|
|
2184
|
+
method: "POST",
|
|
2185
|
+
signal,
|
|
2186
|
+
body: extensions.payload,
|
|
2187
|
+
redirect: "error",
|
|
2188
|
+
headers: {
|
|
2189
|
+
...attributionHeaders(),
|
|
2190
|
+
"content-type": "application/json",
|
|
2191
|
+
"accept": "text/event-stream",
|
|
2192
|
+
...auth.headers,
|
|
2193
|
+
"anthropic-version": "2023-06-01",
|
|
2194
|
+
...betas.length === 0 ? {} : { "anthropic-beta": betas.join(",") },
|
|
2195
|
+
"x-deepseek-harness-user-id": this.dependencies.resolveUserId(),
|
|
2196
|
+
...options.sessionId === void 0 ? {} : { "x-deepseek-harness-session-id": String(options.sessionId) },
|
|
2197
|
+
...options.purpose === "compaction" ? { "x-deepseek-harness-compact": "1" } : {}
|
|
2198
|
+
}
|
|
2199
|
+
});
|
|
2200
|
+
if (!response.ok) {
|
|
2201
|
+
const text = await response.text();
|
|
2202
|
+
let raw;
|
|
2203
|
+
try {
|
|
2204
|
+
raw = JSON.parse(text);
|
|
2205
|
+
} catch (_nonJsonGatewayError) {}
|
|
2206
|
+
const detail = providerErrorDetail(raw);
|
|
2207
|
+
if (await files.retry(detail)) continue;
|
|
2208
|
+
const failure = providerError(raw, response.status, response.headers);
|
|
2209
|
+
throw new LlmError(files.errorMessage(response.status, failure.message, detail), failure.code, {
|
|
2210
|
+
...failure.failure,
|
|
2211
|
+
cause: new Error(text)
|
|
2212
|
+
});
|
|
1942
2213
|
}
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
2214
|
+
await extensions.accept();
|
|
2215
|
+
if (response.body === null) throw new LlmError("DeepSeek Messages returned no response body", "EMPTY_RESPONSE");
|
|
2216
|
+
yield* translate(parseSse(response.body, activity), options.model);
|
|
2217
|
+
return;
|
|
2218
|
+
}
|
|
2219
|
+
} catch (error) {
|
|
2220
|
+
if (auth.onRequestError !== void 0) {
|
|
2221
|
+
let mapped;
|
|
1947
2222
|
try {
|
|
1948
|
-
|
|
1949
|
-
} catch (
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
throw new LlmError(files.errorMessage(response.status, failure.message, detail), failure.code, {
|
|
1954
|
-
...failure.failure,
|
|
1955
|
-
cause: new Error(text)
|
|
1956
|
-
});
|
|
2223
|
+
mapped = await auth.onRequestError(error);
|
|
2224
|
+
} catch (_credentialUpdateFailed) {
|
|
2225
|
+
throw error;
|
|
2226
|
+
}
|
|
2227
|
+
throw mapped;
|
|
1957
2228
|
}
|
|
1958
|
-
|
|
1959
|
-
if (response.body === null) throw new LlmError("DeepSeek Messages returned no response body", "EMPTY_RESPONSE");
|
|
1960
|
-
yield* translate(parseSse(response.body, activity), options.model);
|
|
1961
|
-
return;
|
|
2229
|
+
throw error;
|
|
1962
2230
|
}
|
|
1963
2231
|
}
|
|
1964
2232
|
};
|
|
1965
2233
|
//#endregion
|
|
1966
|
-
//#region lib/types/
|
|
1967
|
-
/** Shared provider limits and Chat Files API defaults. */
|
|
1968
|
-
/** Default maximum idle interval while an adapter stream read is outstanding. */
|
|
1969
|
-
const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 3e5;
|
|
1970
|
-
/** Default combined request/response context capacity. */
|
|
1971
|
-
const DEFAULT_CONTEXT_WINDOW = 1e6;
|
|
1972
|
-
/** Default per-request output-token cap. */
|
|
1973
|
-
const DEFAULT_MAX_TOKENS = 256e3;
|
|
1974
|
-
/** Default bound on accumulated base64 image payload after Files API fallback. */
|
|
1975
|
-
const DEFAULT_MAX_INLINE_REQUEST_IMAGE_BYTES = 20 * 1024 * 1024;
|
|
1976
|
-
/** Deterministic raw-byte removal step. */
|
|
1977
|
-
const DEFAULT_IMAGE_OFFLOAD_BYTE_QUANTUM = 64 * 1024 * 1024;
|
|
1978
|
-
/** Deterministic base64-byte removal step after Files API fallback. */
|
|
1979
|
-
const DEFAULT_INLINE_IMAGE_OFFLOAD_BYTE_QUANTUM = 10 * 1024 * 1024;
|
|
1980
|
-
/** Deterministic image-count removal step. */
|
|
1981
|
-
const DEFAULT_IMAGE_OFFLOAD_COUNT_QUANTUM = 20;
|
|
1982
|
-
/** Default explicit lifetime for uploaded images. */
|
|
1983
|
-
const DEFAULT_FILE_EXPIRY_SECONDS = 10080 * 60;
|
|
1984
|
-
/** Default proactive refresh window for indexed file ids. */
|
|
1985
|
-
const DEFAULT_FILE_REFRESH_MARGIN_SECONDS = 3600;
|
|
1986
|
-
/** Default number of oldest harness-owned files removed on quota recovery. */
|
|
1987
|
-
const DEFAULT_FILE_QUOTA_CLEANUP_BATCH = 100;
|
|
1988
|
-
/** Default deadline for resolving one request image through the Files API. */
|
|
1989
|
-
const DEFAULT_FILES_API_TIMEOUT_MS = 6e4;
|
|
1990
|
-
//#endregion
|
|
1991
|
-
//#region lib/types/models.js
|
|
1992
|
-
/** Default DeepSeek model catalog. */
|
|
1993
|
-
/** Advisory official model entries; deployments may replace the catalog. */
|
|
1994
|
-
const DEFAULT_MODELS = [{
|
|
1995
|
-
id: "deepseek-flash",
|
|
1996
|
-
name: "DeepSeek-V41-Flash",
|
|
1997
|
-
contextWindow: DEFAULT_CONTEXT_WINDOW,
|
|
1998
|
-
inputModalities: ["text", "image"],
|
|
1999
|
-
systemPromptUpdate: "in-history"
|
|
2000
|
-
}, {
|
|
2001
|
-
id: "deepseek-v4-pro",
|
|
2002
|
-
name: "DeepSeek-V4-Pro",
|
|
2003
|
-
description: "Stronger agentic coding, knowledge, and difficult reasoning; suited to complex or quality-critical tasks at higher cost.",
|
|
2004
|
-
contextWindow: DEFAULT_CONTEXT_WINDOW
|
|
2005
|
-
}];
|
|
2006
|
-
//#endregion
|
|
2007
|
-
//#region lib/types/config.js
|
|
2008
|
-
const DEFAULT_API_KEY_ENV = "DEEPSEEK_API_KEY";
|
|
2009
|
-
const MODEL_MODALITIES = ["text", "image"];
|
|
2010
|
-
/** Read the current value behind every reference of a validated Config.
|
|
2011
|
-
* @param config Parsed plugin Config.
|
|
2012
|
-
* @returns Plain options for the resolver.
|
|
2013
|
-
*/
|
|
2014
|
-
function plainOptions(config) {
|
|
2015
|
-
return Object.fromEntries(Object.entries(config).map(([key, value]) => [key, isVolatile(value) ? value.get() : value]));
|
|
2016
|
-
}
|
|
2017
|
-
const catalogModel = z.object({
|
|
2018
|
-
id: z.string().required(),
|
|
2019
|
-
name: z.string(),
|
|
2020
|
-
description: z.string(),
|
|
2021
|
-
contextWindow: z.number().step(1).min(1),
|
|
2022
|
-
maxTokens: z.number().step(1).min(1),
|
|
2023
|
-
inputModalities: z.array(z.union(MODEL_MODALITIES)).min(1).default(["text"]),
|
|
2024
|
-
imagePixelBudget: z.union([z.number().step(1).min(1), "low"]),
|
|
2025
|
-
imageMaxBytes: z.number().step(1).min(1),
|
|
2026
|
-
systemPromptUpdate: z.const("in-history")
|
|
2027
|
-
});
|
|
2028
|
-
const Config = z.object({
|
|
2029
|
-
apiKeyEnv: z.string().role("credential-ref").default(DEFAULT_API_KEY_ENV).volatile(),
|
|
2030
|
-
baseURL: z.string().volatile(),
|
|
2031
|
-
thinking: z.union(["enabled", "disabled"]).volatile(),
|
|
2032
|
-
reasoningEffort: z.union([
|
|
2033
|
-
"off",
|
|
2034
|
-
"low",
|
|
2035
|
-
"high",
|
|
2036
|
-
"max"
|
|
2037
|
-
]).volatile(),
|
|
2038
|
-
maxTokens: z.number().step(1).min(1).max(Number.MAX_SAFE_INTEGER).default(DEFAULT_MAX_TOKENS).volatile(),
|
|
2039
|
-
defaultContextWindow: z.number().step(1).min(1).default(DEFAULT_CONTEXT_WINDOW).volatile(),
|
|
2040
|
-
models: z.array(catalogModel).default(DEFAULT_MODELS).volatile(),
|
|
2041
|
-
streamIdleTimeoutMs: z.number().min(Number.MIN_VALUE).max(MAX_TIMER_DELAY_MS).default(DEFAULT_STREAM_IDLE_TIMEOUT_MS).volatile(),
|
|
2042
|
-
maxRequestFilesBytes: z.number().step(1).min(1).default(DEFAULT_MAX_REQUEST_FILES_BYTES).volatile(),
|
|
2043
|
-
maxInlineRequestImageBytes: z.number().step(1).min(1).default(DEFAULT_MAX_INLINE_REQUEST_IMAGE_BYTES).volatile(),
|
|
2044
|
-
maxImagesPerRequest: z.number().step(1).min(1).default(600).volatile(),
|
|
2045
|
-
imageOffloadByteQuantum: z.number().step(1).min(1).default(DEFAULT_IMAGE_OFFLOAD_BYTE_QUANTUM).volatile(),
|
|
2046
|
-
inlineImageOffloadByteQuantum: z.number().step(1).min(1).default(DEFAULT_INLINE_IMAGE_OFFLOAD_BYTE_QUANTUM).volatile(),
|
|
2047
|
-
imageOffloadCountQuantum: z.number().step(1).min(1).default(20).volatile(),
|
|
2048
|
-
filesApiTimeoutMs: z.number().min(Number.MIN_VALUE).max(MAX_TIMER_DELAY_MS).default(DEFAULT_FILES_API_TIMEOUT_MS).volatile(),
|
|
2049
|
-
fileExpiresAfterSeconds: z.number().step(1).min(3600).max(2592e3).default(DEFAULT_FILE_EXPIRY_SECONDS).volatile(),
|
|
2050
|
-
fileRefreshMarginSeconds: z.number().step(1).min(0).default(DEFAULT_FILE_REFRESH_MARGIN_SECONDS).volatile(),
|
|
2051
|
-
fileQuotaCleanupBatch: z.number().step(1).min(1).max(1e3).default(100).volatile(),
|
|
2052
|
-
retryPolicy: RetryPolicySchema.volatile()
|
|
2053
|
-
});
|
|
2054
|
-
/** Public API default; the internal endpoint comes from $DEEPSEEK_BASE_URL. */
|
|
2055
|
-
const PUBLIC_BASE_URL = "https://api.deepseek.com/anthropic";
|
|
2056
|
-
/** Environment variable naming this provider's endpoint, honored only from trusted layers. */
|
|
2057
|
-
const BASE_URL_ENV = "DEEPSEEK_BASE_URL";
|
|
2058
|
-
/** Resolve, validate, and detach the advisory model catalog. */
|
|
2059
|
-
function resolveModels(models) {
|
|
2060
|
-
const seen = /* @__PURE__ */ new Set();
|
|
2061
|
-
return (models ?? DEFAULT_MODELS).map((model) => {
|
|
2062
|
-
if (Object.hasOwn(model, "imageDetail")) throw new Error("llm-deepseek: catalog model imageDetail is no longer supported; use imagePixelBudget");
|
|
2063
|
-
if (model.id.length === 0) throw new Error("llm-deepseek: catalog model ids must be non-empty");
|
|
2064
|
-
if (model.name !== void 0 && model.name.length === 0) throw new Error(`llm-deepseek: catalog model "${model.id}" has an empty name`);
|
|
2065
|
-
if (model.contextWindow !== void 0 && (!Number.isInteger(model.contextWindow) || model.contextWindow <= 0)) throw new Error(`llm-deepseek: catalog model "${model.id}" contextWindow must be a positive integer`);
|
|
2066
|
-
if (model.maxTokens !== void 0 && (!Number.isInteger(model.maxTokens) || model.maxTokens <= 0)) throw new Error(`llm-deepseek: catalog model "${model.id}" maxTokens must be a positive integer`);
|
|
2067
|
-
const inputModalities = model.inputModalities ?? ["text"];
|
|
2068
|
-
if (inputModalities.length === 0) throw new Error(`llm-deepseek: catalog model "${model.id}" inputModalities must not be empty`);
|
|
2069
|
-
if (inputModalities.some((modality) => !MODEL_MODALITIES.includes(modality))) throw new Error(`llm-deepseek: catalog model "${model.id}" inputModalities must contain only "text" and "image"`);
|
|
2070
|
-
if (new Set(inputModalities).size !== inputModalities.length) throw new Error(`llm-deepseek: catalog model "${model.id}" inputModalities must not contain duplicates`);
|
|
2071
|
-
const hasImage = inputModalities.includes("image");
|
|
2072
|
-
if (!hasImage && (model.imagePixelBudget !== void 0 || model.imageMaxBytes !== void 0)) throw new Error(`llm-deepseek: text-only catalog model "${model.id}" cannot declare image request limits`);
|
|
2073
|
-
if (model.imagePixelBudget !== void 0 && model.imagePixelBudget !== "low" && (!Number.isSafeInteger(model.imagePixelBudget) || model.imagePixelBudget <= 0)) throw new Error(`llm-deepseek: catalog model "${model.id}" imagePixelBudget must be "low" or a positive safe integer`);
|
|
2074
|
-
if (model.imageMaxBytes !== void 0 && (!Number.isSafeInteger(model.imageMaxBytes) || model.imageMaxBytes <= 0)) throw new Error(`llm-deepseek: catalog model "${model.id}" imageMaxBytes must be a positive safe integer`);
|
|
2075
|
-
const systemPromptUpdate = model.systemPromptUpdate;
|
|
2076
|
-
if (systemPromptUpdate !== void 0 && systemPromptUpdate !== "in-history") throw new Error(`llm-deepseek: catalog model "${model.id}" systemPromptUpdate must be "in-history" when present`);
|
|
2077
|
-
if (seen.has(model.id)) throw new Error(`llm-deepseek: duplicate catalog model "${model.id}"`);
|
|
2078
|
-
seen.add(model.id);
|
|
2079
|
-
return {
|
|
2080
|
-
id: model.id,
|
|
2081
|
-
...model.name === void 0 ? {} : { name: model.name },
|
|
2082
|
-
...model.description === void 0 ? {} : { description: model.description },
|
|
2083
|
-
...model.contextWindow === void 0 ? {} : { contextWindow: model.contextWindow },
|
|
2084
|
-
...model.maxTokens === void 0 ? {} : { maxTokens: model.maxTokens },
|
|
2085
|
-
...model.systemPromptUpdate === void 0 ? {} : { systemPromptUpdate: model.systemPromptUpdate },
|
|
2086
|
-
inputModalities: [...inputModalities],
|
|
2087
|
-
...hasImage ? {
|
|
2088
|
-
...model.imagePixelBudget === void 0 ? {} : { imagePixelBudget: model.imagePixelBudget },
|
|
2089
|
-
imageMaxBytes: model.imageMaxBytes ?? 2097152
|
|
2090
|
-
} : {}
|
|
2091
|
-
};
|
|
2092
|
-
});
|
|
2093
|
-
}
|
|
2234
|
+
//#region lib/types/host.js
|
|
2094
2235
|
/**
|
|
2095
|
-
*
|
|
2096
|
-
*
|
|
2097
|
-
*
|
|
2098
|
-
*
|
|
2099
|
-
* @param config - raw plugin config or resolved settings snapshot.
|
|
2100
|
-
* @param environment - this run's environment layers, or `undefined` outside
|
|
2101
|
-
* the product CLI. Every layer may supply an endpoint: the product trusts the
|
|
2102
|
-
* project it is launched in, so a checkout can point its own agent at the
|
|
2103
|
-
* gateway that checkout is meant to use.
|
|
2104
|
-
* @returns validated connection facts plus the credential reference.
|
|
2236
|
+
* Register one provider with request-local transport services and live retry policy.
|
|
2237
|
+
* @param ctx - provider plugin lifetime with the LLM registry injected.
|
|
2238
|
+
* @param provider - exact route owned by this plugin.
|
|
2239
|
+
* @param dependencies - provider-owned discovery, credential, and configuration callbacks.
|
|
2105
2240
|
*/
|
|
2106
|
-
function
|
|
2107
|
-
if (Object.hasOwn(config, "protocol")) throw new Error("llm-deepseek: protocol is not configurable; remove it and use a Messages-compatible baseURL");
|
|
2108
|
-
if (config.thinking === "disabled" && config.reasoningEffort !== void 0 && config.reasoningEffort !== "off") throw new Error("llm-deepseek: only reasoningEffort \"off\" can be configured when thinking is disabled");
|
|
2109
|
-
if (config.defaultContextWindow !== void 0 && (!Number.isInteger(config.defaultContextWindow) || config.defaultContextWindow <= 0)) throw new Error("llm-deepseek: defaultContextWindow must be a positive integer");
|
|
2110
|
-
if (config.maxTokens !== void 0 && (!Number.isSafeInteger(config.maxTokens) || config.maxTokens <= 0)) throw new Error("llm-deepseek: maxTokens must be a positive safe integer");
|
|
2111
|
-
const streamIdleTimeoutMs = config.streamIdleTimeoutMs ?? 3e5;
|
|
2112
|
-
if (!Number.isFinite(streamIdleTimeoutMs) || streamIdleTimeoutMs <= 0 || streamIdleTimeoutMs > MAX_TIMER_DELAY_MS) throw new Error(`llm-deepseek: streamIdleTimeoutMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}`);
|
|
2113
|
-
const maxRequestFilesBytes = config.maxRequestFilesBytes ?? 134217728;
|
|
2114
|
-
if (!Number.isSafeInteger(maxRequestFilesBytes) || maxRequestFilesBytes <= 0) throw new Error("llm-deepseek: maxRequestFilesBytes must be a positive safe integer");
|
|
2115
|
-
const maxInlineRequestImageBytes = config.maxInlineRequestImageBytes ?? 20971520;
|
|
2116
|
-
if (!Number.isSafeInteger(maxInlineRequestImageBytes) || maxInlineRequestImageBytes <= 0) throw new Error("llm-deepseek: maxInlineRequestImageBytes must be a positive safe integer");
|
|
2117
|
-
const maxImagesPerRequest = config.maxImagesPerRequest ?? 600;
|
|
2118
|
-
if (!Number.isSafeInteger(maxImagesPerRequest) || maxImagesPerRequest <= 0) throw new Error("llm-deepseek: maxImagesPerRequest must be a positive safe integer");
|
|
2119
|
-
const imageOffloadByteQuantum = config.imageOffloadByteQuantum ?? 67108864;
|
|
2120
|
-
if (!Number.isSafeInteger(imageOffloadByteQuantum) || imageOffloadByteQuantum <= 0) throw new Error("llm-deepseek: imageOffloadByteQuantum must be a positive safe integer");
|
|
2121
|
-
if (imageOffloadByteQuantum > maxRequestFilesBytes) throw new Error("llm-deepseek: imageOffloadByteQuantum must not exceed maxRequestFilesBytes");
|
|
2122
|
-
const inlineImageOffloadByteQuantum = config.inlineImageOffloadByteQuantum ?? 10485760;
|
|
2123
|
-
if (!Number.isSafeInteger(inlineImageOffloadByteQuantum) || inlineImageOffloadByteQuantum <= 0) throw new Error("llm-deepseek: inlineImageOffloadByteQuantum must be a positive safe integer");
|
|
2124
|
-
if (inlineImageOffloadByteQuantum > maxInlineRequestImageBytes) throw new Error("llm-deepseek: inlineImageOffloadByteQuantum must not exceed maxInlineRequestImageBytes");
|
|
2125
|
-
const imageOffloadCountQuantum = config.imageOffloadCountQuantum ?? 20;
|
|
2126
|
-
if (!Number.isSafeInteger(imageOffloadCountQuantum) || imageOffloadCountQuantum <= 0) throw new Error("llm-deepseek: imageOffloadCountQuantum must be a positive safe integer");
|
|
2127
|
-
if (imageOffloadCountQuantum > maxImagesPerRequest) throw new Error("llm-deepseek: imageOffloadCountQuantum must not exceed maxImagesPerRequest");
|
|
2128
|
-
const filesApiTimeoutMs = config.filesApiTimeoutMs ?? 6e4;
|
|
2129
|
-
if (!Number.isFinite(filesApiTimeoutMs) || filesApiTimeoutMs <= 0 || filesApiTimeoutMs > MAX_TIMER_DELAY_MS) throw new Error(`llm-deepseek: filesApiTimeoutMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}`);
|
|
2130
|
-
const fileExpiresAfterSeconds = config.fileExpiresAfterSeconds ?? 604800;
|
|
2131
|
-
if (!Number.isSafeInteger(fileExpiresAfterSeconds) || fileExpiresAfterSeconds < 3600 || fileExpiresAfterSeconds > 2592e3) throw new Error("llm-deepseek: fileExpiresAfterSeconds must be an integer from 3600 through 2592000");
|
|
2132
|
-
const fileRefreshMarginSeconds = config.fileRefreshMarginSeconds ?? 3600;
|
|
2133
|
-
if (!Number.isSafeInteger(fileRefreshMarginSeconds) || fileRefreshMarginSeconds < 0 || fileRefreshMarginSeconds >= fileExpiresAfterSeconds) throw new Error("llm-deepseek: fileRefreshMarginSeconds must be a non-negative integer below fileExpiresAfterSeconds");
|
|
2134
|
-
const fileQuotaCleanupBatch = config.fileQuotaCleanupBatch ?? 100;
|
|
2135
|
-
if (!Number.isSafeInteger(fileQuotaCleanupBatch) || fileQuotaCleanupBatch < 1 || fileQuotaCleanupBatch > 1e3) throw new Error("llm-deepseek: fileQuotaCleanupBatch must be an integer from 1 through 1000");
|
|
2136
|
-
const baseURL = config.baseURL ?? environment?.get(BASE_URL_ENV)?.value ?? "https://api.deepseek.com/anthropic";
|
|
2137
|
-
const parsed = new URL(baseURL);
|
|
2138
|
-
if (!["http:", "https:"].includes(parsed.protocol) || parsed.username || parsed.password || parsed.search || parsed.hash) throw new Error("llm-deepseek: Messages baseURL must be an HTTP(S) root without credentials, query, or fragment");
|
|
2139
|
-
return {
|
|
2140
|
-
apiKeyEnv: credentialRef(config.apiKeyEnv ?? DEFAULT_API_KEY_ENV),
|
|
2141
|
-
baseURL,
|
|
2142
|
-
defaults: {
|
|
2143
|
-
thinking: config.thinking,
|
|
2144
|
-
reasoningEffort: config.reasoningEffort
|
|
2145
|
-
},
|
|
2146
|
-
maxTokens: config.maxTokens ?? 256e3,
|
|
2147
|
-
defaultContextWindow: config.defaultContextWindow ?? 1e6,
|
|
2148
|
-
models: resolveModels(config.models),
|
|
2149
|
-
streamIdleTimeoutMs,
|
|
2150
|
-
maxRequestFilesBytes,
|
|
2151
|
-
maxInlineRequestImageBytes,
|
|
2152
|
-
maxImagesPerRequest,
|
|
2153
|
-
imageOffloadByteQuantum,
|
|
2154
|
-
inlineImageOffloadByteQuantum,
|
|
2155
|
-
imageOffloadCountQuantum,
|
|
2156
|
-
filesApiTimeoutMs,
|
|
2157
|
-
filePolicy: {
|
|
2158
|
-
expiresAfterSeconds: fileExpiresAfterSeconds,
|
|
2159
|
-
refreshMarginSeconds: fileRefreshMarginSeconds,
|
|
2160
|
-
quotaCleanupBatch: fileQuotaCleanupBatch
|
|
2161
|
-
},
|
|
2162
|
-
retryPolicy: resolveRetryPolicy(config.retryPolicy, "llm-deepseek: retryPolicy")
|
|
2163
|
-
};
|
|
2164
|
-
}
|
|
2165
|
-
//#endregion
|
|
2166
|
-
//#region lib/types/index.js
|
|
2167
|
-
const name = "llm-deepseek";
|
|
2168
|
-
const inject = ["llm"];
|
|
2169
|
-
const NS = "llm-deepseek";
|
|
2170
|
-
const PROVIDER = "deepseek-official";
|
|
2171
|
-
function apply(ctx, config) {
|
|
2241
|
+
function registerDeepSeekProvider(ctx, provider, dependencies) {
|
|
2172
2242
|
ctx.inject(["settings"], (child) => {
|
|
2173
2243
|
child.effect(() => child.settings.configure({ auto: false }, ctx.fiber));
|
|
2174
2244
|
});
|
|
2175
|
-
const options = () => resolveAdapterOptions(plainOptions(config), launchEnvironmentOf(ctx));
|
|
2176
|
-
options();
|
|
2177
|
-
const resolveApiKey = async (connection) => {
|
|
2178
|
-
const ref = connection.apiKeyEnv;
|
|
2179
|
-
const credentials = ctx.get("credentials");
|
|
2180
|
-
if (credentials !== void 0) {
|
|
2181
|
-
const hit = await credentials.resolve(ref);
|
|
2182
|
-
if (hit !== void 0) return assertUsableApiKey(hit.value, "llm-deepseek", ref);
|
|
2183
|
-
} else {
|
|
2184
|
-
const ambient = launchEnvironmentOf(ctx).get(ref);
|
|
2185
|
-
if (ambient !== void 0 && ambient.value.length > 0) return assertUsableApiKey(ambient.value, "llm-deepseek", ref);
|
|
2186
|
-
}
|
|
2187
|
-
throw new LlmError(`llm-deepseek: no API key for provider route "${PROVIDER}"; store ${ref} through the credentials service (the web Models page writes it), or export ${ref} in the launching environment`, "MISSING_CREDENTIAL");
|
|
2188
|
-
};
|
|
2189
2245
|
let userId;
|
|
2190
|
-
const resolveUserId = () => userId ??= getOrCreateAnonymousUserId();
|
|
2191
2246
|
const adapter = new DeepSeekAdapter({
|
|
2192
|
-
|
|
2247
|
+
...dependencies,
|
|
2248
|
+
resolveUserId: () => userId ??= getOrCreateAnonymousUserId(),
|
|
2193
2249
|
onReplayDegrade: ({ provider, model, reason }) => {
|
|
2194
2250
|
ctx.logger.warn(`llm-deepseek: unusable Messages replay state on assistant history for route "${provider}/${model}"; sending provider-neutral content (${reason})`);
|
|
2195
2251
|
},
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2252
|
+
onExtensionsOmitted: ({ provider, model, fields, error }) => {
|
|
2253
|
+
ctx.logger.warn(`llm-deepseek: sending route "${provider}/${model}" without request extension fields ${fields.join(", ")} because they failed to serialize: %o`, error);
|
|
2254
|
+
},
|
|
2199
2255
|
resolveAttachments: () => ctx.get("attachments"),
|
|
2200
2256
|
resolveImageAccess: (attachments, ref) => resolveImageAttachmentAccess(attachments, (hostPath) => ctx.get("fs")?.processPathFromHostPath(hostPath), ref),
|
|
2201
|
-
prepareExtensions: (request) => {
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
});
|
|
2206
|
-
}
|
|
2257
|
+
prepareExtensions: (request) => ctx.get("deepseekLlmApiExtensions")?.prepare(request) ?? Promise.resolve({
|
|
2258
|
+
fields: {},
|
|
2259
|
+
accept: () => Promise.resolve()
|
|
2260
|
+
})
|
|
2207
2261
|
});
|
|
2208
|
-
ctx.llm.
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
settingsNs: ctx.fiber.entry?.options.id ?? NS,
|
|
2212
|
-
settingsPath: []
|
|
2213
|
-
}]);
|
|
2214
|
-
const registration = ctx.llm.registerAdapter([PROVIDER], adapter);
|
|
2215
|
-
let registeredPolicy = options().retryPolicy;
|
|
2216
|
-
const ensureRegistrationFacts = () => {
|
|
2262
|
+
const registration = ctx.llm.registerAdapter([provider], adapter);
|
|
2263
|
+
let registeredPolicy = dependencies.options().retryPolicy;
|
|
2264
|
+
ctx.on("loader/volatile-update", () => {
|
|
2217
2265
|
let policy;
|
|
2218
2266
|
try {
|
|
2219
|
-
policy = options().retryPolicy;
|
|
2267
|
+
policy = dependencies.options().retryPolicy;
|
|
2220
2268
|
} catch (error) {
|
|
2221
2269
|
ctx.logger.warn(error);
|
|
2222
2270
|
return;
|
|
2223
2271
|
}
|
|
2224
2272
|
if (deepEqualJson(policy, registeredPolicy)) return;
|
|
2225
|
-
registration.replace([
|
|
2273
|
+
registration.replace([provider]);
|
|
2226
2274
|
registeredPolicy = policy;
|
|
2227
|
-
};
|
|
2228
|
-
ctx.on("loader/volatile-update", ensureRegistrationFacts);
|
|
2275
|
+
});
|
|
2229
2276
|
}
|
|
2230
2277
|
//#endregion
|
|
2231
|
-
export { Config, DEFAULT_CONTEXT_WINDOW, DEFAULT_FILES_API_TIMEOUT_MS, DEFAULT_FILE_EXPIRY_SECONDS, DEFAULT_FILE_QUOTA_CLEANUP_BATCH, DEFAULT_FILE_REFRESH_MARGIN_SECONDS, DEFAULT_IMAGE_OFFLOAD_BYTE_QUANTUM, DEFAULT_IMAGE_OFFLOAD_COUNT_QUANTUM, DEFAULT_INLINE_IMAGE_OFFLOAD_BYTE_QUANTUM, DEFAULT_LOW_DETAIL_IMAGE_PIXEL_BUDGET, DEFAULT_MAX_IMAGES_PER_REQUEST, DEFAULT_MAX_INLINE_REQUEST_IMAGE_BYTES, DEFAULT_MAX_REQUEST_FILES_BYTES, DEFAULT_MAX_TOKENS, DEFAULT_REQUEST_IMAGE_MAX_BYTES, DEFAULT_STREAM_IDLE_TIMEOUT_MS, DeepSeekAdapter, DeepSeekFileId, DeepSeekFileStore, DeepSeekFilesClient, DeepSeekUploadIndex, MAX_FILE_EXPIRY_SECONDS, MAX_FILE_UPLOAD_BYTES, MAX_IMAGE_BYTES, MAX_STORED_FILE_BYTES, MAX_STORED_FILE_COUNT, MIN_FILE_EXPIRY_SECONDS, PUBLIC_BASE_URL, REQUEST_IMAGE_MAX_DIMENSION,
|
|
2278
|
+
export { Config, DEFAULT_CONTEXT_WINDOW, DEFAULT_FILES_API_TIMEOUT_MS, DEFAULT_FILE_EXPIRY_SECONDS, DEFAULT_FILE_QUOTA_CLEANUP_BATCH, DEFAULT_FILE_REFRESH_MARGIN_SECONDS, DEFAULT_IMAGE_OFFLOAD_BYTE_QUANTUM, DEFAULT_IMAGE_OFFLOAD_COUNT_QUANTUM, DEFAULT_INLINE_IMAGE_OFFLOAD_BYTE_QUANTUM, DEFAULT_LOW_DETAIL_IMAGE_PIXEL_BUDGET, DEFAULT_MAX_IMAGES_PER_REQUEST, DEFAULT_MAX_INLINE_REQUEST_IMAGE_BYTES, DEFAULT_MAX_REQUEST_FILES_BYTES, DEFAULT_MAX_TOKENS, DEFAULT_REQUEST_IMAGE_MAX_BYTES, DEFAULT_STREAM_IDLE_TIMEOUT_MS, DeepSeekAdapter, DeepSeekFileId, DeepSeekFileStore, DeepSeekFilesClient, DeepSeekUploadIndex, MAX_FILE_EXPIRY_SECONDS, MAX_FILE_UPLOAD_BYTES, MAX_IMAGE_BYTES, MAX_STORED_FILE_BYTES, MAX_STORED_FILE_COUNT, MIN_FILE_EXPIRY_SECONDS, PUBLIC_BASE_URL, REQUEST_IMAGE_MAX_DIMENSION, catalogModelInfo, deepSeekConfigFields, deepSeekFileScope, deepSeekImageRequestPricing, deepSeekImageTokens, deepSeekRequestImageDimensions, plainOptions, registerDeepSeekProvider, resolveAdapterOptions, resolveRequestImageMaxBytes, resolveRequestImageTarget };
|