@songtonyli/dsh-cli 0.1.76 → 0.1.77
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/dsh/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +117 -116
- package/node_modules/@deepseek-ai/dsh-acp/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-agent/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +3 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +7 -6
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +7 -6
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +9 -10
- package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +7 -8
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +490 -62
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +4 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +3 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +1 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +42 -41
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +72 -73
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/client.js +166 -21
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/index.js +36 -9
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.js +101 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/model.js +23 -7
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +18 -19
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +12 -13
- package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +40 -26
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-base/package.json +94 -94
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +237 -11
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +5 -4
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +7 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +10 -7
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +9 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +136 -6
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +25 -6
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +3 -4
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.md +22 -4
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.zh.md +22 -4
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/index.js +238 -6
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.host.js +6 -6
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.remote-client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +12 -11
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +3 -5
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +6 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +14 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +11 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +8 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +3 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +34 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +16 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +12 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +356 -124
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +30 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +11 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +25 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +5 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +12 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +18 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +9 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +8 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +7 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +13 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +3 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +34 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +13 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +16 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +12 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +17 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +314 -85
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +13 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +34 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +72 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +72 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +1637 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +62 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +1 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +17 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +4 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +7 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +4 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +117 -66
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +13 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +176 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +15 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +324 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +8 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +9 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +5 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +4 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +7 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +9 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +8 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +15 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +11 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +12 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +12 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +14 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +15 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +9 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +75 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +25 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +14 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +18 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +11 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +23 -26
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-commands/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +95 -8
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +9 -7
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +15 -13
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +10 -4
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +38 -38
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +9 -22
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +18 -26
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +14 -32
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/index.js +70 -17
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/worker.js +16 -12
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +14 -20
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.i18n.yaml +34 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.md +68 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.zh.md +68 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/cordis.patch.yml +10 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/icon.svg +9 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +50 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +10 -13
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +26 -12
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-fs/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-headless/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-otel/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +14 -14
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +13 -13
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +3 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.i18n.yaml +43 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.md +117 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.zh.md +117 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/index.js +661 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/typert.host.js +407 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/typert.remote-client.js +259 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index-url.js +27 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index.js +351 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/parse-thread.js +61 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/parse.js +36 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/search.js +135 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/tools.js +128 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/worker.js +8 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/worker.cjs +1759 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +89 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/README.i18n.yaml +34 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/README.md +74 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/README.zh.md +74 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/lib/index.js +320 -0
- package/node_modules/@deepseek-ai/{dsh-client-ui-slots → dsh-plugin-market-index}/package.json +15 -12
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +5 -0
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +34 -34
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +18 -21
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +35 -35
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-settings/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-shell/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-skill-office/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-export-pdf/SKILL.md +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-render/SKILL.md +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +46 -46
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +252 -47
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +125 -4
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +19 -19
- 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 +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +45 -26
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +20 -10
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ts-types.js +26 -9
- package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +78 -78
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +140 -139
- package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +18 -20
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
- package/node_modules/@deepseek-ai/dsh-working-directory/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +18 -18
- package/node_modules/@earendil-works/pi-ai/README.md +5 -34
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +59 -54
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +16 -18
- package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +29 -27
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +15 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +21 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +28 -15
- package/node_modules/@earendil-works/pi-ai/dist/index.js +0 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.js +8 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js +26 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +5 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +3 -0
- package/node_modules/@earendil-works/pi-ai/package.json +2 -2
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/minisearch/LICENSE.txt +7 -0
- package/node_modules/minisearch/README.md +347 -0
- package/node_modules/minisearch/dist/cjs/SearchableMap.cjs +549 -0
- package/node_modules/minisearch/dist/cjs/index.cjs +2007 -0
- package/node_modules/minisearch/dist/es/SearchableMap.js +547 -0
- package/node_modules/minisearch/dist/es/index.js +2005 -0
- package/node_modules/minisearch/dist/umd/SearchableMap.js +555 -0
- package/node_modules/minisearch/dist/umd/index.js +2013 -0
- package/node_modules/minisearch/package.json +90 -0
- package/node_modules/minisearch/src/MiniSearch.test.js +1997 -0
- package/node_modules/minisearch/src/MiniSearch.ts +2261 -0
- package/node_modules/minisearch/src/SearchableMap/SearchableMap.test.js +314 -0
- package/node_modules/minisearch/src/SearchableMap/SearchableMap.ts +424 -0
- package/node_modules/minisearch/src/SearchableMap/TreeIterator.ts +103 -0
- package/node_modules/minisearch/src/SearchableMap/fuzzySearch.ts +130 -0
- package/node_modules/minisearch/src/SearchableMap/types.ts +18 -0
- package/node_modules/minisearch/src/index.ts +4 -0
- package/node_modules/minisearch/src/testSetup/jest.js +1 -0
- package/package.json +305 -301
- package/node_modules/@deepseek-ai/dsh-client-store/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-client-store/README.i18n.yaml +0 -28
- package/node_modules/@deepseek-ai/dsh-client-store/README.md +0 -46
- package/node_modules/@deepseek-ai/dsh-client-store/README.zh.md +0 -46
- package/node_modules/@deepseek-ai/dsh-client-store/lib/index.js +0 -180
- package/node_modules/@deepseek-ai/dsh-client-store/lib/types/contract.d.ts +0 -121
- package/node_modules/@deepseek-ai/dsh-client-store/lib/types/index.d.ts +0 -92
- package/node_modules/@deepseek-ai/dsh-client-store/package.json +0 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +0 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +0 -221
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +0 -221
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +0 -77
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +0 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CodeCard.module.css +0 -83
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CommandText.module.css +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +0 -118
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +0 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +0 -111
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/FileTypeIcon.module.css +0 -50
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +0 -90
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +0 -54
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImagePreview.module.css +0 -24
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/InlineEditor.module.css +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +0 -38
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +0 -345
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +0 -285
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +0 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuSurface.module.css +0 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +0 -129
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +0 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/PathLabel.module.css +0 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +0 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +0 -43
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +0 -73
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +0 -112
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +0 -76
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +0 -55
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ShortcutKeys.module.css +0 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +0 -100
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +0 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tag.module.css +0 -57
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +0 -205
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TextShimmer.module.css +0 -88
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +0 -101
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +0 -63
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +0 -141
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +0 -12583
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +0 -145
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +0 -32
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +0 -467
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +0 -53
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +0 -145
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/BrandWordmark.d.ts +0 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +0 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Checkbox.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeFileIcon.d.ts +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeToolbar.d.ts +0 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CommandText.d.ts +0 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConfigField.d.ts +0 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConnectionIndicator.d.ts +0 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +0 -52
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +0 -38
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FileTypeIcon.d.ts +0 -43
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FishLogo.d.ts +0 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FoldToggle.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +0 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCardGroup.d.ts +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImageLightbox.d.ts +0 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImagePreview.d.ts +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/InlineEditor.d.ts +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/JsonTree.d.ts +0 -59
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +0 -34
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +0 -143
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuSurface.d.ts +0 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +0 -44
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PathLabel.d.ts +0 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PermissionIcon.d.ts +0 -51
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Pill.d.ts +0 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +0 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +0 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/RiskConfirmation.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SearchBlock.d.ts +0 -72
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedControl.d.ts +0 -35
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedTabs.d.ts +0 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ShortcutKeys.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +0 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Switch.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tag.d.ts +0 -32
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +0 -86
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TextShimmer.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +0 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +0 -63
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/WebBlock.d.ts +0 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ansi.d.ts +0 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/clipboard.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-icon-artwork.d.ts +0 -54
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +0 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/darwin-desktop.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-size.d.ts +0 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/focus.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/guide-artwork.d.ts +0 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/head-tail-cap.d.ts +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +0 -385
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +0 -43
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +0 -102
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/input-modality.d.ts +0 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/keyboard-composition.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +0 -35
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/JsonBlock.d.ts +0 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +0 -46
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownText.d.ts +0 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/cjkFriendlyStrong.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/file-link.d.ts +0 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +0 -148
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/incremental.d.ts +0 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/katex.d.ts +0 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/local-image-syntax.d.ts +0 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/mathCompatibility.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/parse.d.ts +0 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/plain-text.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +0 -141
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/useViewportHighlighting.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/overlay-top-margin.d.ts +0 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +0 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/pointer-grace.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/rank-by-name.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/relative-time.d.ts +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/SettingsForm.d.ts +0 -46
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +0 -70
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/form-model.d.ts +0 -214
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-copy-feedback.d.ts +0 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +0 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +0 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useDismissOnOutsidePointer.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useModalLayer.d.ts +0 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +0 -29
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +0 -46
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +0 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +0 -55
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.md +0 -111
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.zh.md +0 -111
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/index.js +0 -577
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/index.d.ts +0 -955
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/renderer.d.ts +0 -271
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/store.d.ts +0 -3
- package/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js +0 -425
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-tool-workspace-dependencies",
|
|
3
3
|
"description": "The load_workspace_dependencies tool: absolute paths into a bundled Python, Node.js, and pnpm payload",
|
|
4
|
-
"version": "0.2.1-alpha.
|
|
4
|
+
"version": "0.2.1-alpha.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@deepseek-ai/dsh-tools": "0.2.1-alpha.
|
|
29
|
+
"@deepseek-ai/dsh-tools": "0.2.1-alpha.5",
|
|
30
30
|
"@deepseek-ai/cordis": "4.0.5-alpha.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@deepseek-ai/dsh-tools": "0.2.1-alpha.
|
|
33
|
+
"@deepseek-ai/dsh-tools": "0.2.1-alpha.5",
|
|
34
34
|
"@deepseek-ai/cordis": "4.0.5-alpha.2",
|
|
35
35
|
"@deepseek-ai/cordis-plugin-loader": "1.0.6-alpha.2",
|
|
36
36
|
"@deepseek-ai/cordis-plugin-include": "1.0.10-alpha.2",
|
|
37
|
-
"@deepseek-ai/dsh-agent": "0.2.1-alpha.
|
|
38
|
-
"@deepseek-ai/dsh-llm": "0.2.1-alpha.
|
|
39
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.
|
|
37
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.5",
|
|
38
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.5",
|
|
39
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.5"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@deepseek-ai/schemastery": "3.18.5-alpha.2"
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
en: eaefd7303f22977d
|
|
73
73
|
zh: 9c425f9501128224
|
|
74
74
|
/deepseek-ai-dsh-tools/model-experience/ptc-mode-schema-and-system-prompt/what-the-model-sees:
|
|
75
|
-
en:
|
|
76
|
-
zh:
|
|
75
|
+
en: 3e170a222d746e98
|
|
76
|
+
zh: 1ea442fc59874cc5
|
|
77
77
|
/deepseek-ai-dsh-tools/model-experience/ptc-mode-schema-and-system-prompt/what-the-model-sees/typescript-ptc-mode-sdk-instructions-with-bash:
|
|
78
78
|
en: 3a8df15e4ae32f9e
|
|
79
79
|
zh: fc4a800ba363e835
|
|
@@ -179,16 +179,16 @@ Prefix-stable while visible definitions and their order are unchanged. Registrat
|
|
|
179
179
|
|
|
180
180
|
#### What the model sees
|
|
181
181
|
|
|
182
|
-
PTC mode exposes the generated [`run_code` schema](../../../docs/tool-catalog.md#deepseek-aidsh-tools), the SDK instructions below, and the generated exact SDK block for the loaded runtime's language. Both runtime languages list `
|
|
182
|
+
PTC mode exposes the generated [`run_code` schema](../../../docs/tool-catalog.md#deepseek-aidsh-tools), the SDK instructions below, and the generated exact SDK block for the loaded runtime's language. Both runtime languages list `code` before `description`; this is presentation order, not an enforced JSON member order. The TypeScript instructions use a return-value example for function-body runtimes and a printed-output example for REPL runtimes. They identify generated declarations as program-only bindings. When the current `bash` parameter schema accepts the example arguments, they also show a complete `run_code` call around `tools.bash(...)`. The `tools:sdk` section uses first-party order 5000 and disables prompt-variable interpolation, preserving literal `{{…}}` text in tool descriptions and schemas for both runtime languages. Under `ptc`, the prompt also carries the `tools:ptc-only` rule earlier in the first-party order, so the model reads which tools it may call before it reads what each one is for.
|
|
183
183
|
|
|
184
184
|
##### TypeScript PTC mode SDK instructions with bash
|
|
185
185
|
|
|
186
186
|
```markdown
|
|
187
187
|
## Writing code for run_code
|
|
188
188
|
|
|
189
|
-
`run_code` takes two required arguments: `
|
|
189
|
+
`run_code` takes two required arguments: `code`, the body of an async TypeScript function (erasable syntax only — no `enum` or namespaces; type annotations are advisory, the code runs type-stripped), and `description`, a short summary of what the program does. The declarations below are SDK bindings for this program. A declaration does not make its name a directly callable tool; only names supplied as separate tool schemas may be called directly. When no separate `bash` schema is supplied, invoke a declared `bash` binding inside `run_code`:
|
|
190
190
|
|
|
191
|
-
`run_code({
|
|
191
|
+
`run_code({ code: "return await tools.bash({ description: 'Show current directory', command: 'pwd' })", description: "Show current directory" })`
|
|
192
192
|
|
|
193
193
|
Inside the program:
|
|
194
194
|
|
|
@@ -179,16 +179,16 @@ ctx.tools.register(defineTool({
|
|
|
179
179
|
|
|
180
180
|
#### 模型看到什么
|
|
181
181
|
|
|
182
|
-
PTC mode 会公开生成的 [`run_code` schema](../../../docs/tool-catalog.zh.md#deepseek-aidsh-tools)、下方 SDK 说明,以及按所加载运行时语言生成的精确 SDK 块。两种运行时语言都将 `
|
|
182
|
+
PTC mode 会公开生成的 [`run_code` schema](../../../docs/tool-catalog.zh.md#deepseek-aidsh-tools)、下方 SDK 说明,以及按所加载运行时语言生成的精确 SDK 块。两种运行时语言都将 `code` 列在 `description` 前;这是呈现顺序,不强制 JSON 成员顺序。TypeScript 说明对函数体运行时使用返回值示例,对 REPL 运行时使用打印输出示例,并把生成声明明确标为只能在程序内使用的绑定。当当前 `bash` 参数 schema 接受示例参数时,说明还会给出以 `run_code` 包住 `tools.bash(...)` 的完整调用。`tools:sdk` 段使用 first-party 顺序 5000,并关闭提示词变量插值,使两种运行时语言都原样保留工具描述和 schema 中的 `{{…}}` 文本。在 `ptc` 下,提示词还会带上处于更早 first-party 顺序的 `tools:ptc-only` 规则,让模型先读到「可以调用哪些工具」再读「每个工具做什么」。
|
|
183
183
|
|
|
184
184
|
##### 带 bash 的 TypeScript PTC mode SDK 说明
|
|
185
185
|
|
|
186
186
|
```markdown
|
|
187
187
|
## Writing code for run_code
|
|
188
188
|
|
|
189
|
-
`run_code` takes two required arguments: `
|
|
189
|
+
`run_code` takes two required arguments: `code`, the body of an async TypeScript function (erasable syntax only — no `enum` or namespaces; type annotations are advisory, the code runs type-stripped), and `description`, a short summary of what the program does. The declarations below are SDK bindings for this program. A declaration does not make its name a directly callable tool; only names supplied as separate tool schemas may be called directly. When no separate `bash` schema is supplied, invoke a declared `bash` binding inside `run_code`:
|
|
190
190
|
|
|
191
|
-
`run_code({
|
|
191
|
+
`run_code({ code: "return await tools.bash({ description: 'Show current directory', command: 'pwd' })", description: "Show current directory" })`
|
|
192
192
|
|
|
193
193
|
Inside the program:
|
|
194
194
|
|
|
@@ -954,13 +954,22 @@ var PtcCalls = class {
|
|
|
954
954
|
/** The model-facing name of the PTC mode tool. */
|
|
955
955
|
const RUN_CODE_NAME = "run_code";
|
|
956
956
|
/** Keep tool-call rules here; the runtime owns evaluation syntax and state retention. */
|
|
957
|
-
function runCodeFlavor(language
|
|
957
|
+
function runCodeFlavor(language, execution = {
|
|
958
|
+
programDescription: "the program to execute",
|
|
959
|
+
outputInstruction: "Curate the program output.",
|
|
960
|
+
codeDescription: `The ${language} program to execute, following this tool's execution instructions.`
|
|
961
|
+
}) {
|
|
958
962
|
return {
|
|
959
|
-
description: `Execute a ${language} program against the available tools. Takes two required arguments: \`description\`, a short summary of what the program does
|
|
960
|
-
codeDescription:
|
|
963
|
+
description: `Execute a ${language} program against the available tools. Takes two required arguments: \`code\`, ${execution.programDescription}, and \`description\`, a short summary of what the program does. Call tools as \`await tools.name(args)\` per the declarations in the system prompt. ${execution.outputInstruction} Image-bearing subtool results are attached after the run.`,
|
|
964
|
+
codeDescription: execution.codeDescription
|
|
961
965
|
};
|
|
962
966
|
}
|
|
963
967
|
const TYPESCRIPT_FLAVOR = runCodeFlavor("TypeScript");
|
|
968
|
+
const TYPESCRIPT_FUNCTION_FLAVOR = runCodeFlavor("TypeScript", {
|
|
969
|
+
programDescription: "the BODY of an async function (erasable syntax only; top-level `await` and `return` work)",
|
|
970
|
+
outputInstruction: "Only what you print or return is program output — curate it.",
|
|
971
|
+
codeDescription: "The program: the body of an async TypeScript function."
|
|
972
|
+
});
|
|
964
973
|
/** Per-language `run_code` schema flavors (see {@link RunCodeFlavor}); one entry per {@link PtcSdkLanguage}. */
|
|
965
974
|
const RUN_CODE_FLAVORS = {
|
|
966
975
|
typescript: TYPESCRIPT_FLAVOR,
|
|
@@ -972,7 +981,7 @@ const RUN_CODE_FLAVORS = {
|
|
|
972
981
|
* static spec and the language-aware `parameters` getter so the two emissions
|
|
973
982
|
* can never drift.
|
|
974
983
|
*/
|
|
975
|
-
const RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION = "Clear, concise description of what this program does in active voice, 5-10 words (shown in the UI).
|
|
984
|
+
const RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION = "Clear, concise description of what this program does in active voice, 5-10 words (shown in the UI). Examples: \"Count TODO markers across packages\"; \"Read failing test and its fixture\"; \"Rename config key in every cordis.yml\".";
|
|
976
985
|
const RUN_CODE_CONTROLS = {
|
|
977
986
|
timeoutMs: {
|
|
978
987
|
type: "number",
|
|
@@ -1026,7 +1035,7 @@ function resolveFlavor(peekRuntime) {
|
|
|
1026
1035
|
const known = Object.keys(RUN_CODE_FLAVORS).map((name) => JSON.stringify(name)).join(", ");
|
|
1027
1036
|
throw new Error(`dsh-tools: no run_code schema flavor registered for runtime language ${JSON.stringify(runtime.language)} (known: ${known})`);
|
|
1028
1037
|
}
|
|
1029
|
-
return flavor;
|
|
1038
|
+
return runtime.language === "typescript" && runtime.programFormat === "function-body" ? TYPESCRIPT_FUNCTION_FLAVOR : flavor;
|
|
1030
1039
|
}
|
|
1031
1040
|
/**
|
|
1032
1041
|
* Thrown by `run_code` when the program run itself failed — a program
|
|
@@ -1158,8 +1167,8 @@ function renderValue(value) {
|
|
|
1158
1167
|
return typeof value === "string" ? value : renderJsonValue(value);
|
|
1159
1168
|
}
|
|
1160
1169
|
/**
|
|
1161
|
-
* Build the `run_code` {@link ToolDefinition}: required `
|
|
1162
|
-
* `
|
|
1170
|
+
* Build the `run_code` {@link ToolDefinition}: required `code` and
|
|
1171
|
+
* `description` parameters, executed through the dispatch bridge described
|
|
1163
1172
|
* above. The
|
|
1164
1173
|
* registry reserves it as presentation infrastructure under non-native modes,
|
|
1165
1174
|
* outside the filterable global/scoped capability layers.
|
|
@@ -1177,15 +1186,15 @@ function createRunCodeTool(registry, options, ctx) {
|
|
|
1177
1186
|
name: RUN_CODE_NAME,
|
|
1178
1187
|
description: TYPESCRIPT_FLAVOR.description,
|
|
1179
1188
|
parameters: {
|
|
1180
|
-
|
|
1189
|
+
code: {
|
|
1181
1190
|
type: "string",
|
|
1182
1191
|
required: true,
|
|
1183
|
-
description:
|
|
1192
|
+
description: TYPESCRIPT_FLAVOR.codeDescription
|
|
1184
1193
|
},
|
|
1185
|
-
|
|
1194
|
+
description: {
|
|
1186
1195
|
type: "string",
|
|
1187
1196
|
required: true,
|
|
1188
|
-
description:
|
|
1197
|
+
description: RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION
|
|
1189
1198
|
},
|
|
1190
1199
|
...RUN_CODE_CONTROLS
|
|
1191
1200
|
},
|
|
@@ -1539,15 +1548,15 @@ function createRunCodeTool(registry, options, ctx) {
|
|
|
1539
1548
|
Object.defineProperty(definition, "parameters", {
|
|
1540
1549
|
enumerable: true,
|
|
1541
1550
|
get: () => parameterSchemaSpecToJsonSchema({
|
|
1542
|
-
|
|
1551
|
+
code: {
|
|
1543
1552
|
type: "string",
|
|
1544
1553
|
required: true,
|
|
1545
|
-
description:
|
|
1554
|
+
description: resolveFlavor(peekRuntime).codeDescription
|
|
1546
1555
|
},
|
|
1547
|
-
|
|
1556
|
+
description: {
|
|
1548
1557
|
type: "string",
|
|
1549
1558
|
required: true,
|
|
1550
|
-
description:
|
|
1559
|
+
description: RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION
|
|
1551
1560
|
},
|
|
1552
1561
|
...controlParameters(peekRuntime())
|
|
1553
1562
|
})
|
|
@@ -1764,24 +1773,29 @@ function jsonSchemaToTs(schema, indent = 0) {
|
|
|
1764
1773
|
return "unknown";
|
|
1765
1774
|
}
|
|
1766
1775
|
}
|
|
1767
|
-
/**
|
|
1768
|
-
|
|
1776
|
+
/** Render the argument and call instructions for the selected execution syntax. */
|
|
1777
|
+
function renderSdkInstructions(programFormat) {
|
|
1778
|
+
return `## Writing code for run_code
|
|
1769
1779
|
|
|
1770
|
-
\`run_code\` takes two required arguments: \`
|
|
1771
|
-
|
|
1780
|
+
\`run_code\` takes two required arguments: \`code\`, ${programFormat === "function-body" ? "the body of an async TypeScript function (erasable syntax only — no `enum` or namespaces; type annotations are advisory, the code runs type-stripped)" : "the program to execute"}, and \`description\`, a short summary of what the program does. The declarations below are SDK bindings for this program. A declaration does not make its name a directly callable tool; only names supplied as separate tool schemas may be called directly.`;
|
|
1781
|
+
}
|
|
1782
|
+
/** Render tool execution and output instructions for the selected execution syntax. */
|
|
1783
|
+
function renderSdkProgramInstructions(programFormat) {
|
|
1784
|
+
return `Inside the program:
|
|
1772
1785
|
|
|
1773
1786
|
- Call tools as \`await tools.name(args)\` — quoted access for exotic names: \`tools["my-tool"](args)\`. Every call resolves to the tool's typed canonical JSON value. Tool arguments must be lossless JSON.
|
|
1774
1787
|
- A FAILED tool call rejects with \`ToolCallError\`, whose \`toolName\` identifies the failed tool and whose \`message\` is human-readable — \`try/catch\` it to handle and continue.
|
|
1775
1788
|
- Independent read-only calls MAY overlap under \`Promise.all\` (safe calls run concurrently; mutating calls run alone, in submission order). Sequence dependent work with \`await\`.
|
|
1776
|
-
- Only values emitted as program output enter the conversation. A successful tool result containing an image is attached after the run so you can inspect it on the next step; every other intermediate result stays out of the conversation, so extract just what you need.
|
|
1789
|
+
- ${programFormat === "function-body" ? "Emit results with `return` and/or `console.log(...)`. Only what you print or return is program output." : "Only values emitted as program output enter the conversation."} A successful tool result containing an image is attached after the run so you can inspect it on the next step; every other intermediate result stays out of the conversation, so extract just what you need.
|
|
1777
1790
|
|
|
1778
1791
|
Program-only SDK bindings:`;
|
|
1792
|
+
}
|
|
1779
1793
|
/** Whether one string schema accepts the literal used by the bash example. */
|
|
1780
1794
|
function acceptsExampleString(schema, value) {
|
|
1781
1795
|
return schema?.type === "string" && (schema.const === void 0 || schema.const === value) && (schema.enum === void 0 || schema.enum.includes(value));
|
|
1782
1796
|
}
|
|
1783
1797
|
/** Render the bash example only when its literal arguments satisfy the current parameter schema. */
|
|
1784
|
-
function renderBashExample(schemas) {
|
|
1798
|
+
function renderBashExample(schemas, programFormat) {
|
|
1785
1799
|
const bash = schemas.find((schema) => schema.name === "bash");
|
|
1786
1800
|
if (bash === void 0) return "";
|
|
1787
1801
|
const parameters = bash.parameters;
|
|
@@ -1791,7 +1805,8 @@ function renderBashExample(schemas) {
|
|
|
1791
1805
|
if (!acceptsExampleString(parameters.properties?.command, "pwd")) return "";
|
|
1792
1806
|
const needsDescription = required.includes("description");
|
|
1793
1807
|
if (needsDescription && !acceptsExampleString(parameters.properties?.description, "Show current directory")) return "";
|
|
1794
|
-
|
|
1808
|
+
const description = needsDescription ? "description: 'Show current directory', " : "";
|
|
1809
|
+
return ` When no separate \`bash\` schema is supplied, invoke a declared \`bash\` binding inside \`run_code\`:\n\n\`run_code({ code: "${programFormat === "function-body" ? `return await tools.bash({ ${description}command: 'pwd' })` : `console.log(await tools.bash({ ${description}command: 'pwd' }))`}", description: "Show current directory" })\``;
|
|
1795
1810
|
}
|
|
1796
1811
|
/**
|
|
1797
1812
|
* Render the full `tools:sdk` prompt section: the fixed usage instructions
|
|
@@ -1803,9 +1818,10 @@ function renderBashExample(schemas) {
|
|
|
1803
1818
|
* by name, so the input never carries a duplicate.
|
|
1804
1819
|
* @param schemas - the tool schemas to declare (the caller excludes
|
|
1805
1820
|
* `run_code` itself).
|
|
1821
|
+
* @param programFormat - Runtime syntax; function bodies support returning a result, REPLs print it.
|
|
1806
1822
|
* @returns the complete section text.
|
|
1807
1823
|
*/
|
|
1808
|
-
function renderToolsSdk(schemas) {
|
|
1824
|
+
function renderToolsSdk(schemas, programFormat = "function-body") {
|
|
1809
1825
|
const sorted = [...schemas].sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
|
1810
1826
|
const argsMembers = [];
|
|
1811
1827
|
const outputMembers = [];
|
|
@@ -1830,7 +1846,10 @@ function renderToolsSdk(schemas) {
|
|
|
1830
1846
|
"}"
|
|
1831
1847
|
].join("\n")
|
|
1832
1848
|
].join("\n\n");
|
|
1833
|
-
|
|
1849
|
+
const jsonValue = "type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue }";
|
|
1850
|
+
const instructions = renderSdkInstructions(programFormat);
|
|
1851
|
+
const programInstructions = renderSdkProgramInstructions(programFormat);
|
|
1852
|
+
return `${instructions}${renderBashExample(sorted, programFormat)}\n\n${programInstructions}\n\n\`\`\`ts\n${jsonValue}\n\n${declaration}\n\`\`\``;
|
|
1834
1853
|
}
|
|
1835
1854
|
//#endregion
|
|
1836
1855
|
//#region lib/types/py-types.js
|
|
@@ -2481,7 +2500,7 @@ function jsonSchemaToPy(schema) {
|
|
|
2481
2500
|
/** The fixed model-facing usage contract rendered above the declarations. */
|
|
2482
2501
|
const SDK_INSTRUCTIONS = `## Writing code for run_code
|
|
2483
2502
|
|
|
2484
|
-
\`run_code\` takes two required arguments: \`description\`, a short summary of what the program does
|
|
2503
|
+
\`run_code\` takes two required arguments: \`code\`, the program to execute, and \`description\`, a short summary of what the program does. At run time exactly two of the names declared below are bound: \`tools\` and \`ToolCallError\`. Everything else is a STATIC STUB describing argument and return types — in particular the \`TypedDict\` classes do NOT exist at run time, so build arguments as plain \`dict\`/\`list\` JSON values: \`await tools.name({"field": 1})\`, never \`FooArgs(field=1)\`, which raises \`NameError\`. Inside the program:
|
|
2485
2504
|
|
|
2486
2505
|
- Call tools as \`await tools.name(args)\` — subscript access for exotic, reserved, or underscore-leading names: \`await tools["my-tool"](args)\`. Every call resolves to the tool's typed canonical JSON value (each method's return type below). Tool arguments must be lossless JSON.
|
|
2487
2506
|
- A FAILED tool call raises \`ToolCallError\`, whose \`toolName\` identifies the failed tool and whose message is human-readable — wrap in \`try/except\` to handle and continue.
|
|
@@ -2830,7 +2849,7 @@ var ToolRuntime = class extends Service {
|
|
|
2830
2849
|
const render = SDK_RENDERERS[runtime.language];
|
|
2831
2850
|
/* v8 ignore next -- requirePtcRuntime rejects an unknown language before this runs. */
|
|
2832
2851
|
if (render === void 0) throw new Error(`dsh-tools: no SDK renderer for ${runtime.language}`);
|
|
2833
|
-
return render(this.sdkSchemas(context.scope));
|
|
2852
|
+
return render(this.sdkSchemas(context.scope), runtime.programFormat);
|
|
2834
2853
|
}
|
|
2835
2854
|
};
|
|
2836
2855
|
}
|
|
@@ -314,7 +314,7 @@ export class ToolRuntime extends Service {
|
|
|
314
314
|
/* v8 ignore next -- requirePtcRuntime rejects an unknown language before this runs. */
|
|
315
315
|
if (render === undefined)
|
|
316
316
|
throw new Error(`dsh-tools: no SDK renderer for ${runtime.language}`);
|
|
317
|
-
return render(this.sdkSchemas(context.scope));
|
|
317
|
+
return render(this.sdkSchemas(context.scope), runtime.programFormat);
|
|
318
318
|
},
|
|
319
319
|
};
|
|
320
320
|
}
|
|
@@ -16,16 +16,25 @@ import { TOOL_RUNTIME_SCHEDULER } from "./index.js";
|
|
|
16
16
|
/** The model-facing name of the PTC mode tool. */
|
|
17
17
|
export const RUN_CODE_NAME = 'run_code';
|
|
18
18
|
/** Keep tool-call rules here; the runtime owns evaluation syntax and state retention. */
|
|
19
|
-
function runCodeFlavor(language
|
|
19
|
+
function runCodeFlavor(language, execution = {
|
|
20
|
+
programDescription: 'the program to execute',
|
|
21
|
+
outputInstruction: 'Curate the program output.',
|
|
22
|
+
codeDescription: `The ${language} program to execute, following this tool's execution instructions.`,
|
|
23
|
+
}) {
|
|
20
24
|
return {
|
|
21
25
|
description: `Execute a ${language} program against the available tools. Takes two required arguments: `
|
|
22
|
-
+
|
|
26
|
+
+ `\`code\`, ${execution.programDescription}, and \`description\`, a short summary of what the program does. `
|
|
23
27
|
+ 'Call tools as `await tools.name(args)` per the declarations in the system prompt. '
|
|
24
|
-
+
|
|
25
|
-
codeDescription:
|
|
28
|
+
+ `${execution.outputInstruction} Image-bearing subtool results are attached after the run.`,
|
|
29
|
+
codeDescription: execution.codeDescription,
|
|
26
30
|
};
|
|
27
31
|
}
|
|
28
32
|
const TYPESCRIPT_FLAVOR = runCodeFlavor('TypeScript');
|
|
33
|
+
const TYPESCRIPT_FUNCTION_FLAVOR = runCodeFlavor('TypeScript', {
|
|
34
|
+
programDescription: 'the BODY of an async function (erasable syntax only; top-level `await` and `return` work)',
|
|
35
|
+
outputInstruction: 'Only what you print or return is program output — curate it.',
|
|
36
|
+
codeDescription: 'The program: the body of an async TypeScript function.',
|
|
37
|
+
});
|
|
29
38
|
const PYTHON_FLAVOR = runCodeFlavor('Python');
|
|
30
39
|
/** Per-language `run_code` schema flavors (see {@link RunCodeFlavor}); one entry per {@link PtcSdkLanguage}. */
|
|
31
40
|
const RUN_CODE_FLAVORS = {
|
|
@@ -39,7 +48,7 @@ const RUN_CODE_FLAVORS = {
|
|
|
39
48
|
* can never drift.
|
|
40
49
|
*/
|
|
41
50
|
const RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION = 'Clear, concise description of what this program does in active voice, '
|
|
42
|
-
+ '5-10 words (shown in the UI).
|
|
51
|
+
+ '5-10 words (shown in the UI). '
|
|
43
52
|
+ 'Examples: "Count TODO markers across packages"; '
|
|
44
53
|
+ '"Read failing test and its fixture"; "Rename config key in every cordis.yml".';
|
|
45
54
|
const RUN_CODE_CONTROLS = {
|
|
@@ -96,7 +105,8 @@ function resolveFlavor(peekRuntime) {
|
|
|
96
105
|
const known = Object.keys(RUN_CODE_FLAVORS).map(name => JSON.stringify(name)).join(', ');
|
|
97
106
|
throw new Error(`dsh-tools: no run_code schema flavor registered for runtime language ${JSON.stringify(runtime.language)} (known: ${known})`);
|
|
98
107
|
}
|
|
99
|
-
return
|
|
108
|
+
return runtime.language === 'typescript' && runtime.programFormat === 'function-body'
|
|
109
|
+
? TYPESCRIPT_FUNCTION_FLAVOR : flavor;
|
|
100
110
|
}
|
|
101
111
|
/**
|
|
102
112
|
* Thrown by `run_code` when the program run itself failed — a program
|
|
@@ -216,8 +226,8 @@ function renderValue(value) {
|
|
|
216
226
|
return typeof value === 'string' ? value : renderJsonValue(value);
|
|
217
227
|
}
|
|
218
228
|
/**
|
|
219
|
-
* Build the `run_code` {@link ToolDefinition}: required `
|
|
220
|
-
* `
|
|
229
|
+
* Build the `run_code` {@link ToolDefinition}: required `code` and
|
|
230
|
+
* `description` parameters, executed through the dispatch bridge described
|
|
221
231
|
* above. The
|
|
222
232
|
* registry reserves it as presentation infrastructure under non-native modes,
|
|
223
233
|
* outside the filterable global/scoped capability layers.
|
|
@@ -241,12 +251,12 @@ export function createRunCodeTool(registry, options, ctx) {
|
|
|
241
251
|
// independent (one required string `code`).
|
|
242
252
|
description: TYPESCRIPT_FLAVOR.description,
|
|
243
253
|
parameters: {
|
|
254
|
+
code: { type: 'string', required: true, description: TYPESCRIPT_FLAVOR.codeDescription },
|
|
244
255
|
description: {
|
|
245
256
|
type: 'string',
|
|
246
257
|
required: true,
|
|
247
258
|
description: RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION,
|
|
248
259
|
},
|
|
249
|
-
code: { type: 'string', required: true, description: TYPESCRIPT_FLAVOR.codeDescription },
|
|
250
260
|
...RUN_CODE_CONTROLS,
|
|
251
261
|
},
|
|
252
262
|
output: {
|
|
@@ -663,8 +673,8 @@ export function createRunCodeTool(registry, options, ctx) {
|
|
|
663
673
|
// Recompile through the same spec→schema projection defineTool used, so
|
|
664
674
|
// the emitted schema always matches the validated specification.
|
|
665
675
|
get: () => parameterSchemaSpecToJsonSchema({
|
|
666
|
-
description: { type: 'string', required: true, description: RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION },
|
|
667
676
|
code: { type: 'string', required: true, description: resolveFlavor(peekRuntime).codeDescription },
|
|
677
|
+
description: { type: 'string', required: true, description: RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION },
|
|
668
678
|
...controlParameters(peekRuntime()),
|
|
669
679
|
}),
|
|
670
680
|
});
|
|
@@ -700,7 +700,7 @@ export function jsonSchemaToPy(schema) {
|
|
|
700
700
|
/** The fixed model-facing usage contract rendered above the declarations. */
|
|
701
701
|
const SDK_INSTRUCTIONS = `## Writing code for run_code
|
|
702
702
|
|
|
703
|
-
\`run_code\` takes two required arguments: \`description\`, a short summary of what the program does
|
|
703
|
+
\`run_code\` takes two required arguments: \`code\`, the program to execute, and \`description\`, a short summary of what the program does. At run time exactly two of the names declared below are bound: \`tools\` and \`ToolCallError\`. Everything else is a STATIC STUB describing argument and return types — in particular the \`TypedDict\` classes do NOT exist at run time, so build arguments as plain \`dict\`/\`list\` JSON values: \`await tools.name({"field": 1})\`, never \`FooArgs(field=1)\`, which raises \`NameError\`. Inside the program:
|
|
704
704
|
|
|
705
705
|
- Call tools as \`await tools.name(args)\` — subscript access for exotic, reserved, or underscore-leading names: \`await tools["my-tool"](args)\`. Every call resolves to the tool's typed canonical JSON value (each method's return type below). Tool arguments must be lossless JSON.
|
|
706
706
|
- A FAILED tool call raises \`ToolCallError\`, whose \`toolName\` identifies the failed tool and whose message is human-readable — wrap in \`try/except\` to handle and continue.
|
|
@@ -218,18 +218,29 @@ export function jsonSchemaToTs(schema, indent = 0) {
|
|
|
218
218
|
return 'unknown';
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
/**
|
|
222
|
-
|
|
221
|
+
/** Render the argument and call instructions for the selected execution syntax. */
|
|
222
|
+
function renderSdkInstructions(programFormat) {
|
|
223
|
+
const programDescription = programFormat === 'function-body'
|
|
224
|
+
? 'the body of an async TypeScript function (erasable syntax only — no `enum` or namespaces; type annotations are advisory, the code runs type-stripped)'
|
|
225
|
+
: 'the program to execute';
|
|
226
|
+
return `## Writing code for run_code
|
|
223
227
|
|
|
224
|
-
\`run_code\` takes two required arguments: \`description\`, a short summary of what the program does
|
|
225
|
-
|
|
228
|
+
\`run_code\` takes two required arguments: \`code\`, ${programDescription}, and \`description\`, a short summary of what the program does. The declarations below are SDK bindings for this program. A declaration does not make its name a directly callable tool; only names supplied as separate tool schemas may be called directly.`;
|
|
229
|
+
}
|
|
230
|
+
/** Render tool execution and output instructions for the selected execution syntax. */
|
|
231
|
+
function renderSdkProgramInstructions(programFormat) {
|
|
232
|
+
const outputInstruction = programFormat === 'function-body'
|
|
233
|
+
? 'Emit results with `return` and/or `console.log(...)`. Only what you print or return is program output.'
|
|
234
|
+
: 'Only values emitted as program output enter the conversation.';
|
|
235
|
+
return `Inside the program:
|
|
226
236
|
|
|
227
237
|
- Call tools as \`await tools.name(args)\` — quoted access for exotic names: \`tools["my-tool"](args)\`. Every call resolves to the tool's typed canonical JSON value. Tool arguments must be lossless JSON.
|
|
228
238
|
- A FAILED tool call rejects with \`ToolCallError\`, whose \`toolName\` identifies the failed tool and whose \`message\` is human-readable — \`try/catch\` it to handle and continue.
|
|
229
239
|
- Independent read-only calls MAY overlap under \`Promise.all\` (safe calls run concurrently; mutating calls run alone, in submission order). Sequence dependent work with \`await\`.
|
|
230
|
-
-
|
|
240
|
+
- ${outputInstruction} A successful tool result containing an image is attached after the run so you can inspect it on the next step; every other intermediate result stays out of the conversation, so extract just what you need.
|
|
231
241
|
|
|
232
242
|
Program-only SDK bindings:`;
|
|
243
|
+
}
|
|
233
244
|
/** Whether one string schema accepts the literal used by the bash example. */
|
|
234
245
|
function acceptsExampleString(schema, value) {
|
|
235
246
|
return schema?.type === 'string'
|
|
@@ -237,7 +248,7 @@ function acceptsExampleString(schema, value) {
|
|
|
237
248
|
&& (schema.enum === undefined || schema.enum.includes(value));
|
|
238
249
|
}
|
|
239
250
|
/** Render the bash example only when its literal arguments satisfy the current parameter schema. */
|
|
240
|
-
function renderBashExample(schemas) {
|
|
251
|
+
function renderBashExample(schemas, programFormat) {
|
|
241
252
|
const bash = schemas.find(schema => schema.name === 'bash');
|
|
242
253
|
if (bash === undefined)
|
|
243
254
|
return '';
|
|
@@ -253,7 +264,10 @@ function renderBashExample(schemas) {
|
|
|
253
264
|
if (needsDescription && !acceptsExampleString(parameters.properties?.description, 'Show current directory'))
|
|
254
265
|
return '';
|
|
255
266
|
const description = needsDescription ? "description: 'Show current directory', " : '';
|
|
256
|
-
|
|
267
|
+
const program = programFormat === 'function-body'
|
|
268
|
+
? `return await tools.bash({ ${description}command: 'pwd' })`
|
|
269
|
+
: `console.log(await tools.bash({ ${description}command: 'pwd' }))`;
|
|
270
|
+
return ` When no separate \`bash\` schema is supplied, invoke a declared \`bash\` binding inside \`run_code\`:\n\n\`run_code({ code: "${program}", description: "Show current directory" })\``;
|
|
257
271
|
}
|
|
258
272
|
/**
|
|
259
273
|
* Render the full `tools:sdk` prompt section: the fixed usage instructions
|
|
@@ -265,9 +279,10 @@ function renderBashExample(schemas) {
|
|
|
265
279
|
* by name, so the input never carries a duplicate.
|
|
266
280
|
* @param schemas - the tool schemas to declare (the caller excludes
|
|
267
281
|
* `run_code` itself).
|
|
282
|
+
* @param programFormat - Runtime syntax; function bodies support returning a result, REPLs print it.
|
|
268
283
|
* @returns the complete section text.
|
|
269
284
|
*/
|
|
270
|
-
export function renderToolsSdk(schemas) {
|
|
285
|
+
export function renderToolsSdk(schemas, programFormat = 'function-body') {
|
|
271
286
|
const sorted = [...schemas].sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
|
272
287
|
const argsMembers = [];
|
|
273
288
|
const outputMembers = [];
|
|
@@ -286,6 +301,8 @@ export function renderToolsSdk(schemas) {
|
|
|
286
301
|
['declare const tools: {', ' [K in ToolName]: (args: ToolArgsMap[K]) => Promise<ToolOutputMap[K]>;', '}'].join('\n'),
|
|
287
302
|
].join('\n\n');
|
|
288
303
|
const jsonValue = 'type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue }';
|
|
289
|
-
|
|
304
|
+
const instructions = renderSdkInstructions(programFormat);
|
|
305
|
+
const programInstructions = renderSdkProgramInstructions(programFormat);
|
|
306
|
+
return `${instructions}${renderBashExample(sorted, programFormat)}\n\n${programInstructions}\n\n\`\`\`ts\n${jsonValue}\n\n${declaration}\n\`\`\``;
|
|
290
307
|
}
|
|
291
308
|
//# sourceMappingURL=ts-types.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-tools",
|
|
3
3
|
"description": "Tool registry and execution pipeline for the DeepSeek Harness",
|
|
4
|
-
"version": "0.2.1-alpha.
|
|
4
|
+
"version": "0.2.1-alpha.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -39,34 +39,34 @@
|
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@deepseek-ai/cordis": "4.0.5-alpha.2",
|
|
42
|
-
"@deepseek-ai/dsh-agent": "0.2.1-alpha.
|
|
43
|
-
"@deepseek-ai/dsh-ptc-runtime": "0.2.1-alpha.
|
|
44
|
-
"@deepseek-ai/dsh-llm": "0.2.1-alpha.
|
|
45
|
-
"@deepseek-ai/dsh-scope": "0.2.1-alpha.
|
|
46
|
-
"@deepseek-ai/dsh-session": "0.2.1-alpha.
|
|
47
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.
|
|
48
|
-
"@deepseek-ai/dsh-user-approval": "0.2.1-alpha.
|
|
49
|
-
"@deepseek-ai/dsh-sandbox": "0.2.1-alpha.
|
|
50
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.
|
|
51
|
-
"@deepseek-ai/dsh-working-directory": "0.2.1-alpha.
|
|
42
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.5",
|
|
43
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.2.1-alpha.5",
|
|
44
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.5",
|
|
45
|
+
"@deepseek-ai/dsh-scope": "0.2.1-alpha.5",
|
|
46
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.5",
|
|
47
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.5",
|
|
48
|
+
"@deepseek-ai/dsh-user-approval": "0.2.1-alpha.5",
|
|
49
|
+
"@deepseek-ai/dsh-sandbox": "0.2.1-alpha.5",
|
|
50
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.5",
|
|
51
|
+
"@deepseek-ai/dsh-working-directory": "0.2.1-alpha.5"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@deepseek-ai/dsh-brand": "0.2.1-alpha.
|
|
55
|
-
"@deepseek-ai/dsh-util-values": "0.2.1-alpha.
|
|
54
|
+
"@deepseek-ai/dsh-brand": "0.2.1-alpha.5",
|
|
55
|
+
"@deepseek-ai/dsh-util-values": "0.2.1-alpha.5",
|
|
56
56
|
"@deepseek-ai/schemastery": "3.18.5-alpha.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@deepseek-ai/cordis": "4.0.5-alpha.2",
|
|
60
|
-
"@deepseek-ai/dsh-agent": "0.2.1-alpha.
|
|
61
|
-
"@deepseek-ai/dsh-ptc-runtime": "0.2.1-alpha.
|
|
62
|
-
"@deepseek-ai/dsh-llm": "0.2.1-alpha.
|
|
63
|
-
"@deepseek-ai/dsh-scope": "0.2.1-alpha.
|
|
64
|
-
"@deepseek-ai/dsh-session": "0.2.1-alpha.
|
|
65
|
-
"@deepseek-ai/dsh-session-projection": "0.2.1-alpha.
|
|
66
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.
|
|
67
|
-
"@deepseek-ai/dsh-user-approval": "0.2.1-alpha.
|
|
68
|
-
"@deepseek-ai/dsh-sandbox": "0.2.1-alpha.
|
|
69
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.
|
|
70
|
-
"@deepseek-ai/dsh-working-directory": "0.2.1-alpha.
|
|
60
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.5",
|
|
61
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.2.1-alpha.5",
|
|
62
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.5",
|
|
63
|
+
"@deepseek-ai/dsh-scope": "0.2.1-alpha.5",
|
|
64
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.5",
|
|
65
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-alpha.5",
|
|
66
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.5",
|
|
67
|
+
"@deepseek-ai/dsh-user-approval": "0.2.1-alpha.5",
|
|
68
|
+
"@deepseek-ai/dsh-sandbox": "0.2.1-alpha.5",
|
|
69
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.5",
|
|
70
|
+
"@deepseek-ai/dsh-working-directory": "0.2.1-alpha.5"
|
|
71
71
|
}
|
|
72
72
|
}
|