@songtonyli/dsh-cli 0.1.94 → 0.1.95
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/package.json +126 -126
- package/node_modules/@deepseek-ai/dsh-acp/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-action-cards/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-agent/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-agent-team/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-agent-team/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-agent-team/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/index.js +25 -11
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/typert.host.js +8 -4
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/projection.js +6 -1
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/task-board.js +12 -8
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/task-view.js +2 -1
- package/node_modules/@deepseek-ai/dsh-agent-team/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +67 -47
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +48 -48
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +6 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +6 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +19 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +52 -18
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +69 -41
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +51 -31
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +20 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +58 -18
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.js +48 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +5 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +79 -77
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-base/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-base/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-base/package.json +103 -102
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +125 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +14 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +19 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.md +16 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.zh.md +16 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/assets/breach-atlas-43c5305a3d4d.webp +0 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/client.js +395 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +13 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +60 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +40 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +164 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +18 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +24 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +24 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +205 -56
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +37 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +2 -2
- 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 +4 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +4 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +65 -58
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +6 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +175 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +27 -65
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +9 -9
- 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 +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +6 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +11 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +285 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +32 -31
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +35 -73
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-commands/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-commands/lib/index.js +37 -2
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +28 -5
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.remote-client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-commands/lib/types/index.js +36 -2
- package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-computer-use/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +83 -39
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +14 -6
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-cua/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +30 -1
- package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +16 -16
- package/node_modules/@deepseek-ai/dsh-cua/package.json +53 -53
- package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-deliverable-file-references/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +45 -45
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +9 -7
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +9 -7
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +779 -137
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +142 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +131 -29
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +103 -24
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/package.json +42 -42
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/package.json +33 -33
- 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/client.js +150 -136
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/index.js +200 -186
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +72 -72
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +6 -16
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-fs/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-goal/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-headless/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +5 -1
- package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +45 -45
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-mcp-manager/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-message-quotes/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-official-bundles/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-otel/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-personalized-recommendations/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-plugin-detail/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +38 -38
- package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +12 -6
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +12 -6
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +93 -38
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/persistent-process.js +112 -93
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/process.js +112 -93
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +40 -40
- package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +48 -48
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +40 -39
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +2 -2
- 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/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-session-continuation/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/README.md +84 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/README.zh.md +84 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/index.js +109 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/index.js +51 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/projection.js +48 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/package.json +55 -0
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +7 -7
- 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/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +2 -2
- 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/lib/index.js +19 -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/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +100 -120
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +19 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-projection/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +41 -41
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-settings/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -35
- package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +15 -12
- package/node_modules/@deepseek-ai/dsh-subagent/README.md +14 -6
- package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +14 -6
- package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +276 -42
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +31 -9
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +31 -8
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-messages.js +10 -8
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +44 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +35 -6
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +78 -12
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.js +96 -0
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -51
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.zh.md +1 -1
- 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 +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/lib/index.js +26 -17
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +73 -8
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-executor-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.i18n.yaml +19 -16
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.md +22 -9
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.zh.md +22 -9
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/index.js +185 -74
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/config.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/errors.js +25 -0
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/index.js +36 -6
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc-calls.js +57 -7
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc.js +29 -14
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +35 -35
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +11 -6
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +39 -36
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +29 -17
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +29 -17
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +74 -122
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +24 -25
- package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tools/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +454 -84
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +87 -85
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +4 -4
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +155 -155
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CZZasi1N.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CnyQSzND.js +199 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-working-directory/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +26 -26
- package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
- package/package.json +335 -333
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-B2q7cWGa.js +0 -199
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-uWlUD22X.css +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Service } from "@deepseek-ai/cordis";
|
|
2
2
|
import z from "@deepseek-ai/schemastery";
|
|
3
|
+
import { brandString } from "@deepseek-ai/dsh-brand";
|
|
3
4
|
import { scopeTarget } from "@deepseek-ai/dsh-scope";
|
|
4
5
|
import { ToolArgsError, assertObjectJsonSchema, validateJsonSchemaValue } from "@deepseek-ai/dsh-tools";
|
|
5
6
|
import { canonicalClientTimeZone } from "@deepseek-ai/dsh-util-time";
|
|
@@ -10,7 +11,6 @@ import { HarnessError, ReasoningEffortId, boundContextSummary, contentHasImage,
|
|
|
10
11
|
import { foldConsumedWork } from "@deepseek-ai/dsh-agent";
|
|
11
12
|
import { randomUUID } from "node:crypto";
|
|
12
13
|
import { isAbsolute, resolve } from "node:path";
|
|
13
|
-
import { brandString } from "@deepseek-ai/dsh-brand";
|
|
14
14
|
import { SessionLogOffset, SessionSeq } from "@deepseek-ai/dsh-session";
|
|
15
15
|
import { assertNever, snapshotJsonValue } from "@deepseek-ai/dsh-util-values";
|
|
16
16
|
import { appendChunkedList, chunkedListSchema, iterateChunkedList } from "@deepseek-ai/dsh-chunked-list";
|
|
@@ -401,14 +401,15 @@ function agentMessageSource(sender) {
|
|
|
401
401
|
/**
|
|
402
402
|
* Build the model-visible and durable representation of one Agent message.
|
|
403
403
|
* @param sender - exact live Agent that authored the message.
|
|
404
|
+
* @param senderName - the sender's model-facing name in its subagent tree.
|
|
404
405
|
* @param content - model-visible message blocks supplied by the sender.
|
|
405
406
|
* @returns the durable user-message representation delivered to the recipient.
|
|
406
407
|
*/
|
|
407
|
-
function createAgentMessage(sender, content) {
|
|
408
|
+
function createAgentMessage(sender, senderName, content) {
|
|
408
409
|
return createUserMessage({
|
|
409
410
|
content: [{
|
|
410
411
|
type: "text",
|
|
411
|
-
text: `Agent ${
|
|
412
|
+
text: `Agent ${senderName} sent a message: `
|
|
412
413
|
}, ...content],
|
|
413
414
|
source: agentMessageSource(sender)
|
|
414
415
|
});
|
|
@@ -427,13 +428,13 @@ function withResultDeliveryGuidance(prompt) {
|
|
|
427
428
|
/**
|
|
428
429
|
* One line telling a parent that a background child is finished and why, in
|
|
429
430
|
* the parent's own task vocabulary.
|
|
430
|
-
* @param
|
|
431
|
+
* @param childName - the model-facing name the parent knows the child by.
|
|
431
432
|
* @param stopReason - how the child's last ordinary turn ended.
|
|
432
433
|
* @param continuable - whether the child accepts a later message.
|
|
433
434
|
* @returns the model-facing opening line of the settlement notice.
|
|
434
435
|
*/
|
|
435
|
-
function settlementSummary(
|
|
436
|
-
const subject = `Background subagent ${
|
|
436
|
+
function settlementSummary(childName, stopReason, continuable) {
|
|
437
|
+
const subject = `Background subagent ${childName}`;
|
|
437
438
|
switch (stopReason) {
|
|
438
439
|
case "completed": return continuable ? `${subject} finished and will do no further work unless you send it more.` : `${subject} finished. It cannot receive follow-up messages.`;
|
|
439
440
|
case "aborted": return `${subject} was stopped before it finished.`;
|
|
@@ -448,15 +449,16 @@ function settlementSummary(childId, stopReason, continuable) {
|
|
|
448
449
|
}
|
|
449
450
|
/**
|
|
450
451
|
* Build the runtime-owned settlement notice from the child's nonempty closing text.
|
|
451
|
-
* @param childId - durable child session id
|
|
452
|
+
* @param childId - durable child session id recorded as the sender.
|
|
453
|
+
* @param childName - model-facing child name used in the notice text.
|
|
452
454
|
* @param terminal - recorded terminal state for the settled Activation.
|
|
453
455
|
* @param continuable - whether the child can accept another task.
|
|
454
456
|
* @param omitClosingText - replace the closing text when the child's last action
|
|
455
457
|
* was a message to its direct parent.
|
|
456
458
|
* @returns the durable user-message representation delivered to the parent.
|
|
457
459
|
*/
|
|
458
|
-
function createSettlementMessage(childId, terminal, continuable = true, omitClosingText = false) {
|
|
459
|
-
const summary = settlementSummary(
|
|
460
|
+
function createSettlementMessage(childId, childName, terminal, continuable = true, omitClosingText = false) {
|
|
461
|
+
const summary = settlementSummary(childName, terminal.stopReason, continuable);
|
|
460
462
|
const closingText = terminal.output.flatMap((block) => block.type === "text" && block.text.length > 0 ? [block] : []);
|
|
461
463
|
return createUserMessage({
|
|
462
464
|
content: [
|
|
@@ -725,6 +727,91 @@ function foldSubagentDescriptor(events) {
|
|
|
725
727
|
if (event === void 0) return void 0;
|
|
726
728
|
return parseSubagentDescriptor(event.data);
|
|
727
729
|
}
|
|
730
|
+
//#endregion
|
|
731
|
+
//#region lib/types/names.js
|
|
732
|
+
/**
|
|
733
|
+
* Model-facing agent names. Each child's name is unique among its creator's
|
|
734
|
+
* children and is recorded in the creator's catalog; a member's full name is
|
|
735
|
+
* the slash-separated path of names from the root, whose own name is `lead`.
|
|
736
|
+
*
|
|
737
|
+
* @module @deepseek-ai/dsh-subagent/names
|
|
738
|
+
*/
|
|
739
|
+
/** The root agent's fixed name; no child may take it. */
|
|
740
|
+
const ROOT_AGENT_NAME = "lead";
|
|
741
|
+
/** One lower-case segment of at most 32 characters, so a 36-character UUID never matches. */
|
|
742
|
+
const NAME_PATTERN = /^[a-z][a-z0-9-]{0,31}$/u;
|
|
743
|
+
/**
|
|
744
|
+
* Whether a string is a valid child name.
|
|
745
|
+
* @param value - candidate name segment.
|
|
746
|
+
* @returns true for 1–32 lower-case letters, digits, or hyphens starting with a letter, other than `lead`.
|
|
747
|
+
*/
|
|
748
|
+
function isAgentName(value) {
|
|
749
|
+
return NAME_PATTERN.test(value) && value !== "lead";
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Append a child's name to its creator's path. The root's path is the empty string.
|
|
753
|
+
* @param parentPath - the creator's path, or undefined when an ancestor below the root has no name.
|
|
754
|
+
* @param name - the child's catalog name, absent on historical entries.
|
|
755
|
+
* @returns the child's path, or undefined when any link is unnamed.
|
|
756
|
+
*/
|
|
757
|
+
function joinAgentPath(parentPath, name) {
|
|
758
|
+
if (parentPath === void 0 || name === void 0) return void 0;
|
|
759
|
+
return parentPath === "" ? name : `${parentPath}/${name}`;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Select the model-facing name of one tree member.
|
|
763
|
+
* @param path - the member's path; `''` for the root and undefined for unnamed history.
|
|
764
|
+
* @param id - the member's Session id, used when no complete path exists.
|
|
765
|
+
* @returns `lead`, the full path, or the Session id.
|
|
766
|
+
*/
|
|
767
|
+
function agentAddress(path, id) {
|
|
768
|
+
if (path === "") return ROOT_AGENT_NAME;
|
|
769
|
+
return path ?? id;
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Remove the last name from a descendant path.
|
|
773
|
+
* @param path - a non-empty descendant path.
|
|
774
|
+
* @returns the creator's path; `''` when the creator is the root.
|
|
775
|
+
*/
|
|
776
|
+
function parentAgentPath(path) {
|
|
777
|
+
const separator = path.lastIndexOf("/");
|
|
778
|
+
return separator < 0 ? "" : path.slice(0, separator);
|
|
779
|
+
}
|
|
780
|
+
/** Names claimed by in-flight creations, keyed by the exact live creator. */
|
|
781
|
+
var SiblingNameReservations = class {
|
|
782
|
+
pending = /* @__PURE__ */ new Map();
|
|
783
|
+
/**
|
|
784
|
+
* Claim a name synchronously before startup awaits, so concurrent siblings cannot share it.
|
|
785
|
+
* @param parent - exact live creator whose catalog receives the name.
|
|
786
|
+
* @param committed - names already recorded in the creator's catalog.
|
|
787
|
+
* @param requested - requested name; omission selects the first free `agent-N`.
|
|
788
|
+
* @returns the claimed name and its release.
|
|
789
|
+
* @throws {@link SubagentError} `INVALID_AGENT_NAME` or `DUPLICATE_AGENT_NAME`.
|
|
790
|
+
*/
|
|
791
|
+
reserve(parent, committed, requested) {
|
|
792
|
+
const pending = this.pending.get(parent) ?? /* @__PURE__ */ new Set();
|
|
793
|
+
const taken = (name) => committed.has(name) || pending.has(name);
|
|
794
|
+
let name;
|
|
795
|
+
if (requested === void 0) {
|
|
796
|
+
let ordinal = 1;
|
|
797
|
+
while (taken(`agent-${ordinal}`)) ordinal++;
|
|
798
|
+
name = `agent-${ordinal}`;
|
|
799
|
+
} else {
|
|
800
|
+
if (!isAgentName(requested)) throw new SubagentError(`agent name ${JSON.stringify(requested)} is invalid; use 1-32 lower-case letters, digits, or hyphens starting with a letter, other than "${ROOT_AGENT_NAME}"`, "INVALID_AGENT_NAME");
|
|
801
|
+
if (taken(requested)) throw new SubagentError(`agent name ${JSON.stringify(requested)} is already used by another subagent you created; choose another name`, "DUPLICATE_AGENT_NAME");
|
|
802
|
+
name = requested;
|
|
803
|
+
}
|
|
804
|
+
pending.add(name);
|
|
805
|
+
this.pending.set(parent, pending);
|
|
806
|
+
return {
|
|
807
|
+
name,
|
|
808
|
+
release: () => {
|
|
809
|
+
pending.delete(name);
|
|
810
|
+
if (pending.size === 0 && this.pending.get(parent) === pending) this.pending.delete(parent);
|
|
811
|
+
}
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
};
|
|
728
815
|
const sessionIdSchema = z$1.string();
|
|
729
816
|
const oneShotCatalogSchema = z$1.object({
|
|
730
817
|
version: z$1.union([z$1.literal(0), z$1.literal(1)]),
|
|
@@ -748,11 +835,22 @@ const unknownCatalogSchema = oneShotCatalogSchema.extend({
|
|
|
748
835
|
version: z$1.literal(1),
|
|
749
836
|
mode: z$1.literal("unknown")
|
|
750
837
|
});
|
|
838
|
+
const nameSchema = z$1.string().refine(isAgentName, "invalid agent name");
|
|
839
|
+
const namedContinuableCatalogSchema = continuableCatalogSchema.extend({
|
|
840
|
+
version: z$1.literal(3),
|
|
841
|
+
name: nameSchema
|
|
842
|
+
});
|
|
843
|
+
const namedExternalCatalogSchema = externalCatalogSchema.extend({
|
|
844
|
+
version: z$1.literal(3),
|
|
845
|
+
name: nameSchema
|
|
846
|
+
});
|
|
751
847
|
const eventDataSchema = z$1.union([
|
|
752
848
|
oneShotCatalogSchema,
|
|
753
849
|
externalCatalogSchema,
|
|
754
850
|
continuableCatalogSchema,
|
|
755
|
-
unknownCatalogSchema
|
|
851
|
+
unknownCatalogSchema,
|
|
852
|
+
namedContinuableCatalogSchema,
|
|
853
|
+
namedExternalCatalogSchema
|
|
756
854
|
]);
|
|
757
855
|
const viewSchema = z$1.array(z$1.union([
|
|
758
856
|
oneShotCatalogSchema.omit({
|
|
@@ -769,7 +867,8 @@ const viewSchema = z$1.array(z$1.union([
|
|
|
769
867
|
childCreatedAt: true
|
|
770
868
|
}).extend({
|
|
771
869
|
id: sessionIdSchema,
|
|
772
|
-
createdAt: externalCatalogSchema.shape.childCreatedAt
|
|
870
|
+
createdAt: externalCatalogSchema.shape.childCreatedAt,
|
|
871
|
+
name: nameSchema.optional()
|
|
773
872
|
}),
|
|
774
873
|
continuableCatalogSchema.omit({
|
|
775
874
|
version: true,
|
|
@@ -777,7 +876,8 @@ const viewSchema = z$1.array(z$1.union([
|
|
|
777
876
|
childCreatedAt: true
|
|
778
877
|
}).extend({
|
|
779
878
|
id: sessionIdSchema,
|
|
780
|
-
createdAt: continuableCatalogSchema.shape.childCreatedAt
|
|
879
|
+
createdAt: continuableCatalogSchema.shape.childCreatedAt,
|
|
880
|
+
name: nameSchema.optional()
|
|
781
881
|
}),
|
|
782
882
|
unknownCatalogSchema.omit({
|
|
783
883
|
version: true,
|
|
@@ -809,7 +909,7 @@ function subagentCatalogEntries(state) {
|
|
|
809
909
|
}
|
|
810
910
|
return entries;
|
|
811
911
|
}
|
|
812
|
-
/** Parent-owned
|
|
912
|
+
/** Parent-owned catalog; version-6 checkpoints retain unnamed facts, and invalid own facts reject restoration. */
|
|
813
913
|
const subagentCatalogProjectionDefinition = {
|
|
814
914
|
key: "subagentCatalog",
|
|
815
915
|
stateSchema,
|
|
@@ -832,33 +932,45 @@ const subagentCatalogProjectionDefinition = {
|
|
|
832
932
|
* @param parent - durable direct parent receiving the discovery fact.
|
|
833
933
|
* @param child - established child's immutable Session metadata.
|
|
834
934
|
* @param descriptor - mode-discriminated creation label frozen with the child.
|
|
935
|
+
* @param name - the child's name, reserved unique among the parent's children.
|
|
835
936
|
*/
|
|
836
|
-
function establishCatalogChild(parent, child, descriptor) {
|
|
937
|
+
function establishCatalogChild(parent, child, descriptor, name) {
|
|
837
938
|
parent.append("subagent/catalog", {
|
|
838
|
-
version:
|
|
939
|
+
version: 3,
|
|
839
940
|
childId: child.id,
|
|
840
941
|
childCreatedAt: child.createdAt,
|
|
841
942
|
mode: descriptor.mode,
|
|
842
|
-
label: descriptor.label
|
|
943
|
+
label: descriptor.label,
|
|
944
|
+
name
|
|
843
945
|
});
|
|
844
946
|
}
|
|
845
|
-
/** Catalog payload version emitted by external execution creation. */
|
|
846
|
-
const EXTERNAL_SUBAGENT_CATALOG_VERSION = 2;
|
|
847
947
|
/**
|
|
848
948
|
* Record an external execution without a local child Session.
|
|
849
949
|
* @param parent - durable direct parent receiving the discovery fact.
|
|
850
950
|
* @param childId - identity returned by the external provider.
|
|
851
951
|
* @param label - display label assigned by the caller.
|
|
952
|
+
* @param name - the child's name, reserved unique among the parent's children.
|
|
852
953
|
*/
|
|
853
|
-
function establishExternalCatalogChild(parent, childId, label) {
|
|
954
|
+
function establishExternalCatalogChild(parent, childId, label, name) {
|
|
854
955
|
parent.append("subagent/catalog", {
|
|
855
|
-
version:
|
|
956
|
+
version: 3,
|
|
856
957
|
childId,
|
|
857
958
|
childCreatedAt: Date.now(),
|
|
858
959
|
mode: "external",
|
|
859
|
-
label
|
|
960
|
+
label,
|
|
961
|
+
name
|
|
860
962
|
});
|
|
861
963
|
}
|
|
964
|
+
/**
|
|
965
|
+
* Collect the names recorded in one parent's catalog.
|
|
966
|
+
* @param entries - the parent's current catalog rows.
|
|
967
|
+
* @returns names of every named child; historical entries contribute none.
|
|
968
|
+
*/
|
|
969
|
+
function catalogNames(entries) {
|
|
970
|
+
const names = /* @__PURE__ */ new Set();
|
|
971
|
+
for (const entry of entries) if ("name" in entry) names.add(entry.name);
|
|
972
|
+
return names;
|
|
973
|
+
}
|
|
862
974
|
//#endregion
|
|
863
975
|
//#region lib/types/types.js
|
|
864
976
|
/**
|
|
@@ -1245,6 +1357,8 @@ var SubagentManager = class {
|
|
|
1245
1357
|
ownerCtx;
|
|
1246
1358
|
/** Exact subagent tree roots whose host teardown has closed admission. */
|
|
1247
1359
|
closingRoots = /* @__PURE__ */ new Set();
|
|
1360
|
+
/** Sibling names held by creations that have not committed their catalog entry. */
|
|
1361
|
+
names = new SiblingNameReservations();
|
|
1248
1362
|
draining = false;
|
|
1249
1363
|
/**
|
|
1250
1364
|
* Build one manager inside the service's Agent-injected context.
|
|
@@ -1364,6 +1478,17 @@ var SubagentManager = class {
|
|
|
1364
1478
|
const parent = spec.parent;
|
|
1365
1479
|
this.assertAdmitting(parent);
|
|
1366
1480
|
const ancestry = this.ancestryForChild(parent);
|
|
1481
|
+
const reservation = this.reserveName(parent, spec.name);
|
|
1482
|
+
const path = joinAgentPath(this.pathOf(parent, ancestry.root), reservation.name);
|
|
1483
|
+
try {
|
|
1484
|
+
return await this.startLocalNamed(spec, prepare, ancestry, reservation, path);
|
|
1485
|
+
} finally {
|
|
1486
|
+
reservation.release();
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
/** Create one local child under a name reserved before any await. */
|
|
1490
|
+
startLocalNamed(spec, prepare, ancestry, reservation, path) {
|
|
1491
|
+
const parent = spec.parent;
|
|
1367
1492
|
return this.trackStartup(ancestry.root, spec.signal, async (signal) => {
|
|
1368
1493
|
const persistence = spec.delivery === "caller" ? this.ctx.get("sessionPersistence") : this.requirePersistence();
|
|
1369
1494
|
const childId = spec.childId ?? brandString(randomUUID());
|
|
@@ -1410,6 +1535,7 @@ var SubagentManager = class {
|
|
|
1410
1535
|
childId,
|
|
1411
1536
|
provider: spec.provider,
|
|
1412
1537
|
...ancestry,
|
|
1538
|
+
path,
|
|
1413
1539
|
create: {
|
|
1414
1540
|
parent,
|
|
1415
1541
|
cwd,
|
|
@@ -1436,7 +1562,7 @@ var SubagentManager = class {
|
|
|
1436
1562
|
}
|
|
1437
1563
|
}, ancestry.root, () => {
|
|
1438
1564
|
this.assertAdmitting(parent);
|
|
1439
|
-
establishCatalogChild(parent.session, childHeader, descriptor);
|
|
1565
|
+
establishCatalogChild(parent.session, childHeader, descriptor, reservation.name);
|
|
1440
1566
|
});
|
|
1441
1567
|
});
|
|
1442
1568
|
return {
|
|
@@ -1453,10 +1579,22 @@ var SubagentManager = class {
|
|
|
1453
1579
|
* @returns the accepted activation and its result/disposal capabilities.
|
|
1454
1580
|
*/
|
|
1455
1581
|
async startExternal(spec, start) {
|
|
1456
|
-
const {
|
|
1457
|
-
const parent = request.parent;
|
|
1582
|
+
const { delivery, name: requestedName, parent } = spec;
|
|
1458
1583
|
this.assertAdmitting(parent);
|
|
1459
1584
|
const ancestry = this.ancestryForChild(parent);
|
|
1585
|
+
if (delivery === "caller" && requestedName !== void 0) throw new SubagentError("agent names require a cataloged child; caller-delivered external runs are not cataloged", "UNSUPPORTED_CAPABILITY");
|
|
1586
|
+
const reservation = delivery === "parent" ? this.reserveName(parent, requestedName) : void 0;
|
|
1587
|
+
const path = joinAgentPath(this.pathOf(parent, ancestry.root), reservation?.name);
|
|
1588
|
+
try {
|
|
1589
|
+
return await this.startExternalNamed(spec, start, ancestry, reservation, path);
|
|
1590
|
+
} finally {
|
|
1591
|
+
reservation?.release();
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
/** Start one external execution, cataloging parent-delivered runs under their reserved name. */
|
|
1595
|
+
startExternalNamed(spec, start, ancestry, reservation, path) {
|
|
1596
|
+
const { provider, delivery, childId: _childId, name: _name, ...request } = spec;
|
|
1597
|
+
const parent = request.parent;
|
|
1460
1598
|
return this.trackStartup(ancestry.root, spec.signal, async (signal) => {
|
|
1461
1599
|
let activation;
|
|
1462
1600
|
try {
|
|
@@ -1465,6 +1603,7 @@ var SubagentManager = class {
|
|
|
1465
1603
|
kind: "external",
|
|
1466
1604
|
provider,
|
|
1467
1605
|
...ancestry,
|
|
1606
|
+
path,
|
|
1468
1607
|
signal,
|
|
1469
1608
|
delivery,
|
|
1470
1609
|
start: (signal) => start({
|
|
@@ -1475,7 +1614,7 @@ var SubagentManager = class {
|
|
|
1475
1614
|
});
|
|
1476
1615
|
this.assertAdmitting(parent);
|
|
1477
1616
|
signal.throwIfAborted();
|
|
1478
|
-
if (
|
|
1617
|
+
if (reservation !== void 0) establishExternalCatalogChild(parent.session, activation.childId, spec.label, reservation.name);
|
|
1479
1618
|
this.accept(activation);
|
|
1480
1619
|
return this.receipt(activation);
|
|
1481
1620
|
} catch (error) {
|
|
@@ -1516,6 +1655,31 @@ var SubagentManager = class {
|
|
|
1516
1655
|
ancestors: [...this.resident.get(creator.id)?.ancestors ?? [], creator.id]
|
|
1517
1656
|
};
|
|
1518
1657
|
}
|
|
1658
|
+
/** Claim a sibling name against the creator's committed catalog and in-flight siblings. */
|
|
1659
|
+
reserveName(parent, requested) {
|
|
1660
|
+
return this.names.reserve(parent, catalogNames(this.host.catalogOf(parent.session)), requested);
|
|
1661
|
+
}
|
|
1662
|
+
/** Path of an exact live tree member: `''` for the root, undefined for unnamed history. */
|
|
1663
|
+
pathOf(member, root) {
|
|
1664
|
+
return member === root ? "" : this.resident.get(member.id)?.path;
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* Report the model-facing names of a live member and its direct creator.
|
|
1668
|
+
* @param agent - exact live root or resident tree member.
|
|
1669
|
+
* @returns `lead` for the root, otherwise the member's and creator's names or Session ids.
|
|
1670
|
+
* @throws when the caller has no active runtime owner.
|
|
1671
|
+
*/
|
|
1672
|
+
namesOf(agent) {
|
|
1673
|
+
const root = this.rootOf(agent);
|
|
1674
|
+
if (root === agent) return { self: ROOT_AGENT_NAME };
|
|
1675
|
+
const activation = this.resident.get(agent.id);
|
|
1676
|
+
const parentId = activation.ancestors.at(-1);
|
|
1677
|
+
const parentPath = activation.path === void 0 ? parentId === root.id ? "" : this.resident.get(parentId)?.path : parentAgentPath(activation.path);
|
|
1678
|
+
return {
|
|
1679
|
+
self: agentAddress(activation.path, agent.id),
|
|
1680
|
+
parent: agentAddress(parentPath, parentId)
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1519
1683
|
/**
|
|
1520
1684
|
* Deliver to another agent in the subagent tree, restoring only the target when absent.
|
|
1521
1685
|
* @param sender - exact live root or resident continuable Agent.
|
|
@@ -1529,7 +1693,7 @@ var SubagentManager = class {
|
|
|
1529
1693
|
const root = this.rootOf(sender);
|
|
1530
1694
|
if (sender.id === targetId) throw new SubagentError("send_message requires another agent in the subagent tree", "UNAUTHORIZED");
|
|
1531
1695
|
this.assertAdmitting(sender);
|
|
1532
|
-
const message = createAgentMessage(sender, content);
|
|
1696
|
+
const message = createAgentMessage(sender, agentAddress(this.pathOf(sender, root), sender.id), content);
|
|
1533
1697
|
const activation = this.resident.get(sender.id);
|
|
1534
1698
|
return this.deliverToMember(root, targetId, [...message.content], {
|
|
1535
1699
|
signal: options.signal,
|
|
@@ -1546,8 +1710,10 @@ var SubagentManager = class {
|
|
|
1546
1710
|
/** Resolve the live owner through verified creation edges without activating ancestors. */
|
|
1547
1711
|
async resolveCreationAncestry(source, signal, root) {
|
|
1548
1712
|
const ancestors = [];
|
|
1713
|
+
const names = [];
|
|
1549
1714
|
const seen = new Set([source.header.id]);
|
|
1550
1715
|
let { header, projections, inheritedEventCount } = source;
|
|
1716
|
+
const pathFromRoot = () => names.reduce(joinAgentPath, "");
|
|
1551
1717
|
while (true) {
|
|
1552
1718
|
const env_1 = {
|
|
1553
1719
|
stack: [],
|
|
@@ -1562,11 +1728,14 @@ var SubagentManager = class {
|
|
|
1562
1728
|
if (seen.has(parentId)) throw new SubagentError("cyclic subagent creation ancestry", "UNAUTHORIZED");
|
|
1563
1729
|
seen.add(parentId);
|
|
1564
1730
|
const parent = __addDisposableResource$1(env_1, await this.observeContinuation(parentId, signal), false);
|
|
1565
|
-
|
|
1731
|
+
const entry = parent.projections?.values.subagentCatalog?.find((entry) => entry.id === header.id);
|
|
1732
|
+
if (entry === void 0) throw new SubagentError("subagent is absent from its creator catalog", "UNAUTHORIZED");
|
|
1566
1733
|
ancestors.unshift(parentId);
|
|
1734
|
+
names.unshift("name" in entry ? entry.name : void 0);
|
|
1567
1735
|
if (parentId === root?.id) return {
|
|
1568
1736
|
root,
|
|
1569
|
-
ancestors
|
|
1737
|
+
ancestors,
|
|
1738
|
+
path: pathFromRoot()
|
|
1570
1739
|
};
|
|
1571
1740
|
({header, projections, inheritedEventCount} = parent);
|
|
1572
1741
|
} catch (e_1) {
|
|
@@ -1581,7 +1750,8 @@ var SubagentManager = class {
|
|
|
1581
1750
|
if (owner === void 0 || this.rootOf(owner) !== owner) throw new SubagentError("subagent tree root is not live", "CONTINUATION_UNAVAILABLE");
|
|
1582
1751
|
return {
|
|
1583
1752
|
root: owner,
|
|
1584
|
-
ancestors
|
|
1753
|
+
ancestors,
|
|
1754
|
+
path: pathFromRoot()
|
|
1585
1755
|
};
|
|
1586
1756
|
}
|
|
1587
1757
|
throw new SubagentError(`agent "${source.header.id}" is not a member of this subagent tree`, "UNAUTHORIZED");
|
|
@@ -1822,6 +1992,7 @@ var SubagentManager = class {
|
|
|
1822
1992
|
...resource,
|
|
1823
1993
|
root,
|
|
1824
1994
|
ancestors: inputs.ancestors,
|
|
1995
|
+
path: inputs.path,
|
|
1825
1996
|
delivery: inputs.delivery ?? "parent",
|
|
1826
1997
|
result: Promise.withResolvers(),
|
|
1827
1998
|
closing: void 0,
|
|
@@ -2016,7 +2187,7 @@ var SubagentManager = class {
|
|
|
2016
2187
|
const parentId = activation.ancestors.at(-1);
|
|
2017
2188
|
const parent = this.ctx.agents.get(parentId);
|
|
2018
2189
|
if (parent === void 0 || this.rootOf(parent) !== activation.root) return;
|
|
2019
|
-
const message = createSettlementMessage(activation.childId, terminal, activation.kind === "local", activation.kind === "local" && activation.omitClosingText);
|
|
2190
|
+
const message = createSettlementMessage(activation.childId, agentAddress(activation.path, activation.childId), terminal, activation.kind === "local", activation.kind === "local" && activation.omitClosingText);
|
|
2020
2191
|
if (this.closingTeardownFor(parent) !== void 0) {
|
|
2021
2192
|
parent.inject(message);
|
|
2022
2193
|
return;
|
|
@@ -2038,6 +2209,7 @@ var SubagentManager = class {
|
|
|
2038
2209
|
receipt(activation) {
|
|
2039
2210
|
return {
|
|
2040
2211
|
childId: activation.childId,
|
|
2212
|
+
name: agentAddress(activation.path, activation.childId),
|
|
2041
2213
|
result: activation.result.promise,
|
|
2042
2214
|
dispose: () => this.dispose(activation)
|
|
2043
2215
|
};
|
|
@@ -2099,7 +2271,7 @@ var SubagentManager = class {
|
|
|
2099
2271
|
this.assertAdmitting(root);
|
|
2100
2272
|
const descriptor = foldSubagentDescriptor(source.events.slice(source.inheritedEventCount));
|
|
2101
2273
|
if (descriptor === void 0 || descriptor.mode !== "continuable") throw new SubagentError(`subagent "${childId}" has no supported continuation state and cannot be resumed; choose a different target`, "NOT_RESUMABLE");
|
|
2102
|
-
const { ancestors } = await this.resolveCreationAncestry(source, signal, root);
|
|
2274
|
+
const { ancestors, path } = await this.resolveCreationAncestry(source, signal, root);
|
|
2103
2275
|
let activation;
|
|
2104
2276
|
try {
|
|
2105
2277
|
const projectedPreset = source.projections?.values.agentPreset;
|
|
@@ -2111,6 +2283,7 @@ var SubagentManager = class {
|
|
|
2111
2283
|
provider: descriptor.provider,
|
|
2112
2284
|
root,
|
|
2113
2285
|
ancestors,
|
|
2286
|
+
path,
|
|
2114
2287
|
agentOptions: {
|
|
2115
2288
|
...descriptor.agentProvider !== void 0 ? { provider: descriptor.agentProvider } : {},
|
|
2116
2289
|
...descriptor.agentModel !== void 0 ? { model: descriptor.agentModel } : {},
|
|
@@ -2315,14 +2488,21 @@ async function listDescendants(ctx, rootSessionId, signal) {
|
|
|
2315
2488
|
const stack = (await readChildren(rootSessionId)).map((entry) => ({
|
|
2316
2489
|
entry,
|
|
2317
2490
|
parentId: rootSessionId,
|
|
2318
|
-
depth: 1
|
|
2491
|
+
depth: 1,
|
|
2492
|
+
parentPath: ""
|
|
2319
2493
|
})).reverse();
|
|
2320
2494
|
const visited = new Set([rootSessionId]);
|
|
2321
2495
|
const result = [];
|
|
2322
2496
|
for (let position = stack.pop(); position !== void 0; position = stack.pop()) {
|
|
2323
|
-
const { entry, parentId, depth } = position;
|
|
2497
|
+
const { entry, parentId, depth, parentPath } = position;
|
|
2324
2498
|
if (visited.has(entry.id)) continue;
|
|
2325
2499
|
visited.add(entry.id);
|
|
2500
|
+
const path = joinAgentPath(parentPath, "name" in entry ? entry.name : void 0);
|
|
2501
|
+
const at = {
|
|
2502
|
+
parentId,
|
|
2503
|
+
depth,
|
|
2504
|
+
...path === void 0 ? {} : { path }
|
|
2505
|
+
};
|
|
2326
2506
|
let children;
|
|
2327
2507
|
try {
|
|
2328
2508
|
children = entry.mode === "external" ? [] : await readChildren(entry.id);
|
|
@@ -2332,8 +2512,7 @@ async function listDescendants(ctx, rootSessionId, signal) {
|
|
|
2332
2512
|
result.push({
|
|
2333
2513
|
kind: "diagnostic",
|
|
2334
2514
|
id: entry.id,
|
|
2335
|
-
|
|
2336
|
-
depth,
|
|
2515
|
+
...at,
|
|
2337
2516
|
reason: code === "SESSION_QUERY_CORRUPT_SESSION" || code === "SESSION_QUERY_SOURCE_CONFLICT" ? "corrupt" : "unavailable"
|
|
2338
2517
|
});
|
|
2339
2518
|
continue;
|
|
@@ -2341,8 +2520,7 @@ async function listDescendants(ctx, rootSessionId, signal) {
|
|
|
2341
2520
|
if (entry.mode === "unknown") result.push({
|
|
2342
2521
|
kind: "diagnostic",
|
|
2343
2522
|
id: entry.id,
|
|
2344
|
-
|
|
2345
|
-
depth,
|
|
2523
|
+
...at,
|
|
2346
2524
|
reason: "unsupported"
|
|
2347
2525
|
});
|
|
2348
2526
|
else {
|
|
@@ -2350,8 +2528,7 @@ async function listDescendants(ctx, rootSessionId, signal) {
|
|
|
2350
2528
|
result.push({
|
|
2351
2529
|
...identity,
|
|
2352
2530
|
kind: "child",
|
|
2353
|
-
|
|
2354
|
-
depth,
|
|
2531
|
+
...at,
|
|
2355
2532
|
activity: sessions.get(entry.id) === void 0 ? "inactive" : "running",
|
|
2356
2533
|
hasChildren: children.length > 0
|
|
2357
2534
|
});
|
|
@@ -2359,11 +2536,33 @@ async function listDescendants(ctx, rootSessionId, signal) {
|
|
|
2359
2536
|
for (const child of [...children].reverse()) stack.push({
|
|
2360
2537
|
entry: child,
|
|
2361
2538
|
parentId: entry.id,
|
|
2362
|
-
depth: depth + 1
|
|
2539
|
+
depth: depth + 1,
|
|
2540
|
+
parentPath: path
|
|
2363
2541
|
});
|
|
2364
2542
|
}
|
|
2365
2543
|
return result;
|
|
2366
2544
|
}
|
|
2545
|
+
/**
|
|
2546
|
+
* Resolve a slash-separated name by reading only the catalogs along its path.
|
|
2547
|
+
* @param ctx - context carrying the Session query service.
|
|
2548
|
+
* @param rootSessionId - tree root whose catalog holds the first name.
|
|
2549
|
+
* @param name - candidate full name relative to the root.
|
|
2550
|
+
* @param signal - cancellation forwarded to each catalog read.
|
|
2551
|
+
* @returns the named member's Session id, or undefined when the text is not a name in this tree.
|
|
2552
|
+
* @throws {@link SubagentError} when a catalog dependency is unavailable; Session read failures propagate.
|
|
2553
|
+
*/
|
|
2554
|
+
async function resolveAgentPath(ctx, rootSessionId, name, signal) {
|
|
2555
|
+
const segments = name.split("/");
|
|
2556
|
+
if (!segments.every(isAgentName)) return void 0;
|
|
2557
|
+
let current = rootSessionId;
|
|
2558
|
+
for (const [index, segment] of segments.entries()) {
|
|
2559
|
+
const child = (await listChildren(ctx, current, signal)).find((entry) => "name" in entry && entry.name === segment);
|
|
2560
|
+
if (child === void 0) return void 0;
|
|
2561
|
+
if (index < segments.length - 1 && child.mode !== "continuable" && child.mode !== "one-shot") return void 0;
|
|
2562
|
+
current = child.id;
|
|
2563
|
+
}
|
|
2564
|
+
return current;
|
|
2565
|
+
}
|
|
2367
2566
|
/** Stop the complete traversal when its caller cancels. */
|
|
2368
2567
|
function assertListingNotCancelled(signal) {
|
|
2369
2568
|
if (signal?.aborted) throw new SubagentError("subagent listing was cancelled", "CANCELLED");
|
|
@@ -2782,13 +2981,14 @@ let SubagentRuntime = (() => {
|
|
|
2782
2981
|
}
|
|
2783
2982
|
async [Service.init]() {
|
|
2784
2983
|
const ctx = this.ctx;
|
|
2785
|
-
await ctx.sessionProjections.register(subagentCatalogProjectionDefinition);
|
|
2984
|
+
const catalogProjection = await ctx.sessionProjections.register(subagentCatalogProjectionDefinition);
|
|
2786
2985
|
await ctx.sessionProjections.register(subagentTimingProjectionDefinition);
|
|
2787
2986
|
const identityProjection = await ctx.sessionProjections.register(subagentIdentityProjectionDefinition);
|
|
2788
2987
|
if (ctx.fiber.uid === null) return;
|
|
2789
2988
|
ctx.inject(["agents"], (childCtx) => {
|
|
2790
2989
|
const manager = new SubagentManager(childCtx, {
|
|
2791
2990
|
identityOf: (session) => identityProjection.stateOf(session).identity,
|
|
2991
|
+
catalogOf: (session) => subagentCatalogProjectionDefinition.wire.view(catalogProjection.stateOf(session)),
|
|
2792
2992
|
emitLifecycle: this.emitLifecycle
|
|
2793
2993
|
}, () => this.config.maxActiveSubagents.get());
|
|
2794
2994
|
this.manager = manager;
|
|
@@ -2846,6 +3046,40 @@ let SubagentRuntime = (() => {
|
|
|
2846
3046
|
return this.requireManager().rootOf(caller);
|
|
2847
3047
|
}
|
|
2848
3048
|
/**
|
|
3049
|
+
* Report the model-facing names of a live tree member and its direct creator.
|
|
3050
|
+
* The root is `lead`; a descendant is the slash-separated path of names from
|
|
3051
|
+
* the root, or its Session id when it or a creator below the root has no name.
|
|
3052
|
+
* @param agent - exact live root or resident tree member.
|
|
3053
|
+
* @returns the member's name and, for a descendant, its creator's name.
|
|
3054
|
+
* @throws when the caller or its runtime owner is unavailable.
|
|
3055
|
+
*/
|
|
3056
|
+
namesOf(agent) {
|
|
3057
|
+
return this.requireManager().namesOf(agent);
|
|
3058
|
+
}
|
|
3059
|
+
/**
|
|
3060
|
+
* Resolve a model-supplied agent reference within the caller's tree. `lead`
|
|
3061
|
+
* selects the root and a slash-separated path is looked up through the
|
|
3062
|
+
* catalogs along it. Any other text that is not a name in the tree is
|
|
3063
|
+
* returned as a Session id, because a single token can be one; a
|
|
3064
|
+
* slash-separated address never is, so an unmatched path fails instead of
|
|
3065
|
+
* reaching a member lookup as an unknown id. Resolution grants no authority:
|
|
3066
|
+
* messaging, interruption, and assignment authorize the result.
|
|
3067
|
+
* @param caller - exact live Agent whose tree root anchors the lookup.
|
|
3068
|
+
* @param name - `lead`, a full name from the root, or a Session id.
|
|
3069
|
+
* @param signal - cancellation forwarded to each catalog read.
|
|
3070
|
+
* @returns the referenced Session id.
|
|
3071
|
+
* @throws {@link SubagentError} `AGENT_NAME_NOT_FOUND` when a path names no member;
|
|
3072
|
+
* when the caller's root is unavailable; or when a catalog along the path cannot be read.
|
|
3073
|
+
*/
|
|
3074
|
+
async resolveName(caller, name, signal) {
|
|
3075
|
+
const root = this.rootOf(caller);
|
|
3076
|
+
if (name === "lead") return root.id;
|
|
3077
|
+
const resolved = await resolveAgentPath(this.ctx, root.id, name, signal);
|
|
3078
|
+
if (resolved !== void 0) return resolved;
|
|
3079
|
+
if (name.includes("/")) throw new SubagentError(`agent name ${JSON.stringify(name)} was not found in this subagent tree; use list_agents to see the names`, "AGENT_NAME_NOT_FOUND");
|
|
3080
|
+
return brandString(name);
|
|
3081
|
+
}
|
|
3082
|
+
/**
|
|
2849
3083
|
* Join progressing subagent tree work for its root. Idle members with parked input
|
|
2850
3084
|
* stay resident without delaying host completion. Ordinary members return false.
|
|
2851
3085
|
* @param root - exact live subagent tree root whose member work is awaited.
|
|
@@ -3055,4 +3289,4 @@ let SubagentRuntime = (() => {
|
|
|
3055
3289
|
};
|
|
3056
3290
|
})();
|
|
3057
3291
|
//#endregion
|
|
3058
|
-
export { AssistantOutputFold, NO_START_CAPABILITIES, STRUCTURED_OUTPUT_TOOL, SUBAGENT_DESCRIPTOR_VERSION, SubagentDepthError, SubagentError, SubagentRunId, SubagentRuntime, SubagentRuntime as default, appendDelegatedPolicyOverrides, applyChildComposition, assertPositiveFinite, assertSubagentMaxDepth, assertUsableCwd, captureDelegatedPolicyOverrides, childSessionMeta, delegationDepthOf, finalAssistantOutput, foldSubagentDescriptor, parentAgentOptionsForDelegation, resolveChildAgentOptions, resolveChildDepth, settleRunResult, snapshotSubagentDescriptor, subprocessRunHandle };
|
|
3292
|
+
export { AssistantOutputFold, NO_START_CAPABILITIES, ROOT_AGENT_NAME, STRUCTURED_OUTPUT_TOOL, SUBAGENT_DESCRIPTOR_VERSION, SubagentDepthError, SubagentError, SubagentRunId, SubagentRuntime, SubagentRuntime as default, appendDelegatedPolicyOverrides, applyChildComposition, assertPositiveFinite, assertSubagentMaxDepth, assertUsableCwd, captureDelegatedPolicyOverrides, childSessionMeta, delegationDepthOf, finalAssistantOutput, foldSubagentDescriptor, parentAgentOptionsForDelegation, resolveChildAgentOptions, resolveChildDepth, settleRunResult, snapshotSubagentDescriptor, subprocessRunHandle };
|