@songtonyli/dsh-cli 0.1.93 → 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/README.md +10 -0
- package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +647 -149
- package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +362 -236
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/journal.ts +242 -0
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/patch.ts +261 -0
- package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +5 -1
- package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +96 -20
- package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +2 -2
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +3 -2
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/tree.ts +77 -8
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +24 -13
- 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/lib/bin-DQ1vWxS0.js +254 -0
- package/node_modules/@deepseek-ai/dsh/lib/bin.js +19 -245
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-D97dwXdd.js → dump-config-DCQrFN8g.js} +3 -3
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-ekMiCsuS.js +2 -0
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-schema-r4V15-lg.js → dump-config-schema-C_NhxM7L.js} +2 -2
- package/node_modules/@deepseek-ai/dsh/lib/{plugin-DscIHF4k.js → plugin-cQMw2oZz.js} +4 -4
- package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +127 -127
- package/node_modules/@deepseek-ai/dsh-acp/lib/index.js +1 -1
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-action-cards/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/index.js +7 -4
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +22 -6
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.remote-client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/types/index.js +7 -4
- package/node_modules/@deepseek-ai/dsh-action-cards/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-agent/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent/lib/index.js +5 -30
- package/node_modules/@deepseek-ai/dsh-agent/lib/types/index.js +5 -32
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +5 -7
- 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 +14 -10
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +21 -5
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-agent-team/README.i18n.yaml +97 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/README.md +217 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/README.zh.md +217 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/index.js +838 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/typert.host.js +829 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/typert.remote-client.js +79 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/client.js +3 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/error.js +10 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/index.js +176 -0
- package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/journal.js +17 -16
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/projection.js +177 -0
- package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/task-board.js +55 -29
- package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/task-view.js +5 -10
- package/node_modules/@deepseek-ai/dsh-agent-team/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/package.json +83 -0
- 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 +14 -14
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1095 -585
- 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 +8 -3
- 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 +49 -46
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +10 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +10 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +35 -53
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +98 -62
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +315 -299
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +260 -276
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +10 -19
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/archived-session-gate.js +6 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +8 -32
- 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/client/sessions/session.js +4 -21
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +60 -20
- 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/control.js +3 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js +7 -7
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +7 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/list.js +14 -7
- 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 +21 -5
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +841 -145
- 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 +3 -1
- package/node_modules/@deepseek-ai/dsh-base/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +32 -15
- package/node_modules/@deepseek-ai/dsh-base/package.json +104 -101
- 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 +21 -5
- 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/lib/client.js +16 -0
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +5 -1
- 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/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
- 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 +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.zh.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/lib/client.js +1425 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/package.json +72 -0
- 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 +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +129 -39
- 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 +27 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +27 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +258 -101
- 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/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/lib/client.js +24 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/package.json +11 -11
- 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/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.md +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.zh.md +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/lib/client.js +73 -21
- 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 +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +187 -106
- 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 +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +99 -118
- 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 +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +9 -22
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.zh.md +2 -2
- 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 +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +12 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +12 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +4010 -446
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +3 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +3 -0
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +469 -41
- 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 +7 -7
- 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/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +15 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +15 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +773 -335
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/de.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/es.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/fr.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/ja.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/pt.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/ru.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/zh.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +10 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +11 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +11 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +269 -111
- 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 +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +16 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +16 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +310 -150
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +18 -17
- 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 +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +409 -60
- 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 +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +8 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +8 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +78 -109
- 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 +42 -7
- 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/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/README.md +90 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +90 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +35 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +10 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +36 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/package.json +44 -0
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +297 -85
- 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 +42 -10
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/index.js +75 -77
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/types/index.js +59 -54
- 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 +49 -0
- package/node_modules/@deepseek-ai/dsh-cua/README.md +134 -0
- package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +134 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +597 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +611 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +1832 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +1922 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +285 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +305 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +1 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +458 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +343 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/package.json +151 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +94 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +94 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +10 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +1 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +1 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +33 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +33 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +35 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +7 -0
- package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-profile → dsh-cua-bundle}/package.json +15 -12
- 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 +46 -46
- 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 +10 -8
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +10 -8
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +6469 -5811
- 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 +145 -31
- 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 -18
- 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/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/cordis.patch.yml +4 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.de.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.es.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.fr.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.ja.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.pt.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.ru.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.zh.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/preview.svg +28 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/preview.zh.svg +28 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/de.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/en.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/es.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/fr.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ja.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/pt.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ru.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/zh.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/package.json +10 -8
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/lib/index.js +11 -1
- 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 +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.md +13 -11
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.zh.md +13 -11
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/cordis.patch.yml +0 -4
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +892 -501
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +607 -229
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.host.js +45 -31
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.remote-client.js +33 -27
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +73 -75
- 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 +7 -13
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.zh.md +2 -2
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +1 -1
- 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 +21 -5
- package/node_modules/@deepseek-ai/dsh-goal/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/lib/index.js +5 -1
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-headless/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-headless/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-headless/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +5 -1
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.zh.md +1 -1
- 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/lib/typert.host.js +2 -2
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +2 -2
- 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/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-http-proxy/README.md +4 -1
- package/node_modules/@deepseek-ai/dsh-http-proxy/README.zh.md +4 -1
- package/node_modules/@deepseek-ai/dsh-http-proxy/lib/index.js +54 -16
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +37 -14
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +18 -2
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +38 -20
- package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +4 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +4 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +52 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +45 -45
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +5 -8
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +4 -10
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +18 -8
- 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/README.i18n.yaml +15 -12
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +29 -6
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +29 -6
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +870 -202
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/connection.js +379 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/credentials.js +99 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/deadline.js +27 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/diagnostic.js +56 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/generation.js +111 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/index.js +163 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/probe.js +89 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/server-context.js +25 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/status.js +95 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/templates.js +66 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/tools.js +432 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/transport.js +39 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/types.js +7 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +34 -24
- package/node_modules/@deepseek-ai/dsh-mcp-manager/README.i18n.yaml +64 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/README.md +196 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/README.zh.md +196 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/index.js +572 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/typert.host.js +323 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/typert.remote-client.js +170 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/types/index.js +582 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/types/types.js +8 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/package.json +77 -0
- 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/lib/client.js +2 -2
- 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/lib/index.js +38 -15
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +57 -95
- 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 +21 -5
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-persona/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-persona/README.zh.md +1 -1
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.zh.md +1 -1
- 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/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +12 -12
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +38 -38
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/index.js +37 -7
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/repository-cache.js +40 -7
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +21 -5
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/types/index.js +2 -2
- 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 +19 -16
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +33 -7
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +34 -8
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +95 -41
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/persistent-process.js +528 -112
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/process.js +523 -109
- 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/lib/index.js +39 -16
- 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 +26 -26
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +21 -18
- 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/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
- 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/lib/index.js +36 -13
- 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 +95 -30
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-session-projection/README.md +11 -7
- package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +11 -7
- package/node_modules/@deepseek-ai/dsh-session-projection/lib/index.js +107 -42
- package/node_modules/@deepseek-ai/dsh-session-projection/lib/types/index.js +128 -47
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.zh.md +1 -1
- 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 +21 -5
- 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 +46 -28
- package/node_modules/@deepseek-ai/dsh-subagent/README.md +52 -23
- package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +52 -23
- package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +838 -903
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +90 -124
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +17 -63
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/archive-admission.js +39 -115
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +31 -8
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/child-agent.js +6 -4
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-messages.js +22 -22
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +1 -5
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/descriptor.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +125 -146
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/lifecycle.js +5 -31
- 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 +462 -570
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.js +96 -0
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/types.js +2 -4
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -55
- 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 +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.zh.md +3 -3
- 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/lib/index.js +0 -1
- 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/lib/index.js +38 -15
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-token-meter/lib/index.js +4 -2
- package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/breakdown-projection.js +1 -0
- package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/usage-projection.js +1 -0
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.i18n.yaml +85 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.md +178 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.zh.md +178 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/lib/index.js +317 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/package.json +63 -0
- 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 +299 -188
- 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 +8 -8
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +6 -6
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +1 -1
- 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/lib/index.js +1 -0
- 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 +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +19 -17
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +18 -16
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +49 -47
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +58 -40
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +54 -22
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +54 -22
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +196 -107
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +24 -22
- 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/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-web/README.md +5 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +5 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +25 -24
- 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 +14 -10
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +14 -10
- package/node_modules/@deepseek-ai/dsh-tui-app/cordis.patch.yml +17 -0
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +557 -173
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +89 -87
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-user-questions/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +5 -6
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +22 -6
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/index.js +5 -6
- 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/README.i18n.yaml +18 -12
- package/node_modules/@deepseek-ai/dsh-web/README.md +38 -7
- package/node_modules/@deepseek-ai/dsh-web/README.zh.md +38 -7
- package/node_modules/@deepseek-ai/dsh-web/lib/index.js +220 -112
- package/node_modules/@deepseek-ai/dsh-web/lib/typert.host.js +178 -0
- package/node_modules/@deepseek-ai/dsh-web/lib/typert.remote-client.js +45 -0
- package/node_modules/@deepseek-ai/dsh-web/lib/types/index.js +277 -0
- package/node_modules/@deepseek-ai/dsh-web/lib/types/types.js +18 -0
- package/node_modules/@deepseek-ai/dsh-web/package.json +26 -7
- package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-web-app/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +18 -10
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +157 -154
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +1 -1
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.md +22 -12
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.zh.md +22 -12
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/lib/index.js +394 -163
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/package.json +30 -19
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/lib/index.js +11 -0
- 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/assets/langs/{graphql-C-Uijqkk.js → graphql-DFkUqiqq.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{http-CLu1VCSi.js → http-BbPA7N5Y.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-BcJWnZHR.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{rst-BuDKiyD7.js → rst-CtdShwKQ.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{ruby-ZtjE4NPI.js → ruby-DllPV2XI.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{svelte-Tt81icjn.js → svelte-ZPgsG5h9.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{vue-B5SDFeDA.js → vue-CnLRC5W9.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{vendor-7utBqO4o.js → vendor-BUMdD3V7.js} +3 -3
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +3 -3
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +30 -18
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +20 -18
- 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/lib/index.js +11 -13
- 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 +348 -343
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-DuXZcU0e.js +0 -2
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +0 -100
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +0 -227
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +0 -227
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +0 -1650
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/activity.js +0 -85
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +0 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/error.js +0 -23
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +0 -232
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/lifecycle.js +0 -103
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/persisted.js +0 -20
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +0 -327
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +0 -452
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/session-message.js +0 -23
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +0 -68
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +0 -52
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +0 -118
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +0 -118
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +0 -29
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.md +0 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.zh.md +0 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/preview.svg +0 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/preview.zh.svg +0 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/icon.svg +0 -12
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/de.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/es.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/fr.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ja.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/pt.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ru.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +0 -43
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +0 -102
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +0 -102
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +0 -690
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +0 -66
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations-krUNq6VU.js +0 -287
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations.js +0 -26
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +0 -70
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +0 -155
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +0 -155
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +0 -626
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +0 -62
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +0 -197
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-CjQPq1Mz.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +0 -61
- package/node_modules/@deepseek-ai/dsh-web-search-exa/README.md +0 -142
- package/node_modules/@deepseek-ai/dsh-web-search-exa/README.zh.md +0 -142
- package/node_modules/@deepseek-ai/dsh-web-search-exa/lib/index.js +0 -154
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +0 -45
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +0 -82
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.md +0 -165
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.zh.md +0 -165
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/lib/index.js +0 -152
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +0 -45
- package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-e2mS45fC.js → profile-boot-xiaehH2x.js} +3 -3
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/task-graph.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/types.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/validation.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/de.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/es.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/fr.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/pt.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/ru.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/lib/index.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/de.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/es.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/fr.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/pt.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/ru.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-profile → dsh-cua-bundle}/lib/index.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/de.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/es.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/fr.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/pt.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/ru.json +0 -0
|
@@ -5,21 +5,22 @@ import { brandString } from "@deepseek-ai/dsh-brand";
|
|
|
5
5
|
import { installModelSelection } from "@deepseek-ai/dsh-agent";
|
|
6
6
|
import { HarnessError, ReasoningEffortId, boundContextSummary, createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
7
7
|
import { SessionId, SessionLogOffset, buildForkSeed } from "@deepseek-ai/dsh-session";
|
|
8
|
-
import { appendDelegatedPolicyOverrides } from "@deepseek-ai/dsh-subagent";
|
|
8
|
+
import { SubagentError, appendDelegatedPolicyOverrides } from "@deepseek-ai/dsh-subagent";
|
|
9
9
|
import { launchEnvironmentOf, launchedThroughSsh } from "@deepseek-ai/dsh-launch-environment";
|
|
10
10
|
import { canOpenNativePath, openNativeUrl } from "@deepseek-ai/dsh-native-command";
|
|
11
|
+
import { SessionContinuationBusyError } from "@deepseek-ai/dsh-session-continuation";
|
|
11
12
|
import { homedir } from "node:os";
|
|
12
13
|
import "@deepseek-ai/cordis";
|
|
13
14
|
import { activeAtToken, formatFileMention } from "@deepseek-ai/dsh-file-reference";
|
|
14
15
|
import { formatSessionReferenceMention } from "@deepseek-ai/dsh-session-reference";
|
|
15
16
|
import { AppleContainerSandboxProvider } from "@deepseek-ai/dsh-sandbox-apple-container";
|
|
16
17
|
import { JobId } from "@deepseek-ai/dsh-jobs";
|
|
18
|
+
import { UserQuestionError, planReviewOptions } from "@deepseek-ai/dsh-user-questions";
|
|
17
19
|
import { assertNever } from "@deepseek-ai/dsh-util-values";
|
|
18
20
|
import { readFile } from "node:fs/promises";
|
|
19
21
|
import { basename, extname, join, resolve } from "node:path";
|
|
20
22
|
import { pluginFiberPhase } from "@deepseek-ai/dsh-host-plugin-inventory";
|
|
21
23
|
import { maskCredentialText } from "@deepseek-ai/dsh-client-ui-secret-mask";
|
|
22
|
-
import { planReviewOptions } from "@deepseek-ai/dsh-user-questions";
|
|
23
24
|
import { createWriteStream } from "node:fs";
|
|
24
25
|
import { Readable } from "node:stream";
|
|
25
26
|
import { pipeline } from "node:stream/promises";
|
|
@@ -537,22 +538,14 @@ const TEAM_ON_LINE = "Agent Teams is on";
|
|
|
537
538
|
/** What the lead and its teammates do, in one sentence. */
|
|
538
539
|
const TEAM_EXPLAIN_LINE = "The lead plans the work and delegates independent subtasks to teammates, each with one role.";
|
|
539
540
|
/** Disable command printed on the start card. */
|
|
540
|
-
const TEAM_OFF_COMMAND = "/
|
|
541
|
+
const TEAM_OFF_COMMAND = "/team off";
|
|
541
542
|
/** What the start card says about turning the feature off. */
|
|
542
|
-
const TEAM_OFF_LINE = "Turn it off
|
|
543
|
+
const TEAM_OFF_LINE = "Turn it off for this session:";
|
|
543
544
|
/** The commands the start card names, with what each shows. */
|
|
544
545
|
const TEAM_COMMAND_LINES = [["/team-play", "live team room: roles, current work, tasks, and messages"], ["/team", "roster and shared task board"]];
|
|
545
546
|
/** Columns the command column takes, so the summaries line up. */
|
|
546
547
|
const COMMAND_COLUMNS = 13;
|
|
547
548
|
/**
|
|
548
|
-
* Whether `service` is the Agent Teams service this terminal can read.
|
|
549
|
-
* @param service - the value of `ctx.get('agentTeams')`, absent when the bundle is off.
|
|
550
|
-
* @returns true when the value exposes `listMembers`.
|
|
551
|
-
*/
|
|
552
|
-
function agentTeamsMounted(service) {
|
|
553
|
-
return typeof service === "object" && service !== null && "listMembers" in service && typeof service.listMembers === "function";
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
549
|
* The start card's lines.
|
|
557
550
|
* @param draw - the palette and the width.
|
|
558
551
|
* @returns one line per row, each fitting `draw.width`.
|
|
@@ -806,9 +799,7 @@ function bodyLine(content, width, palette, tone, level = 0) {
|
|
|
806
799
|
//#region lib/types/team.js
|
|
807
800
|
/**
|
|
808
801
|
* Agent Teams as terminal rows: tool visibility, the roster picker, and the
|
|
809
|
-
*
|
|
810
|
-
* typed Context, so `ctx.get('agentTeams')` is `any` until a type guard
|
|
811
|
-
* narrows it. The panel text lives in `./team-panel.ts`.
|
|
802
|
+
* task-board mode and subagent catalog. The panel text lives in `./team-panel.ts`.
|
|
812
803
|
* @module @deepseek-ai/dsh-tui-app/team
|
|
813
804
|
*/
|
|
814
805
|
/** Shown when this composition has no Agent Teams service. */
|
|
@@ -844,79 +835,58 @@ const TASK_FIELDS = new Set([
|
|
|
844
835
|
]);
|
|
845
836
|
/**
|
|
846
837
|
* Whether a logged event should redraw the team summary.
|
|
847
|
-
* @param type - the session event type
|
|
848
|
-
* @returns true for a
|
|
838
|
+
* @param type - the session event type.
|
|
839
|
+
* @returns true for a Team mode, task, or historical Team event.
|
|
849
840
|
*/
|
|
850
841
|
function isTeamPanelEvent(type) {
|
|
851
842
|
return type.startsWith("team/");
|
|
852
843
|
}
|
|
853
844
|
/**
|
|
854
|
-
*
|
|
855
|
-
*
|
|
856
|
-
* @
|
|
845
|
+
* Read Team mode, current task owners, and continuable catalog descendants.
|
|
846
|
+
* The catalog carries names and descriptions; a separate Team roster is not maintained.
|
|
847
|
+
* @param ctx - context carrying the task board and subagent runtime.
|
|
848
|
+
* @param agent - exact live caller.
|
|
849
|
+
* @param entries - the terminal's latest descendant listing.
|
|
850
|
+
* @returns current presentation rows, or the reason Team rows are unavailable.
|
|
857
851
|
*/
|
|
858
|
-
function
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
* Whether a list read returned an array. Element fields are the reader's own
|
|
863
|
-
* rows; this only rejects a missing list.
|
|
864
|
-
* @param value - the value a list method returned.
|
|
865
|
-
* @returns true when `value` is an array.
|
|
866
|
-
*/
|
|
867
|
-
function isRowList(value) {
|
|
868
|
-
return Array.isArray(value);
|
|
869
|
-
}
|
|
870
|
-
/**
|
|
871
|
-
* Call one service method with the service as `this`.
|
|
872
|
-
* @param service - the Agent Teams service.
|
|
873
|
-
* @param name - `tryMembership`, `listMembers`, or `listTasks`.
|
|
874
|
-
* @param agent - the bound agent.
|
|
875
|
-
* @returns the method's return value. The caller only passes a name whose value is a function.
|
|
876
|
-
*/
|
|
877
|
-
function callTeam(service, name, agent) {
|
|
878
|
-
return service[name].call(service, agent);
|
|
879
|
-
}
|
|
880
|
-
/**
|
|
881
|
-
* Read the roster for one agent.
|
|
882
|
-
* A missing service, or a service whose `tryMembership` or `listMembers` is
|
|
883
|
-
* not a function, is `absent`. A membership of `undefined`, or a
|
|
884
|
-
* `listMembers` call that throws, is `not-member`. `listTasks` is optional:
|
|
885
|
-
* a missing method yields an empty task list, and a throw or a non-array is
|
|
886
|
-
* `not-member`.
|
|
887
|
-
* @param service - `ctx.get('agentTeams')`, absent when the bundle is off.
|
|
888
|
-
* @param agent - the bound agent.
|
|
889
|
-
* @returns the snapshot the commands and the summary share.
|
|
890
|
-
*/
|
|
891
|
-
function readTeam(service, agent) {
|
|
892
|
-
if (!isRecord(service) || typeof service.listMembers !== "function" || typeof service.tryMembership !== "function") return { kind: "absent" };
|
|
893
|
-
let membership;
|
|
894
|
-
try {
|
|
895
|
-
membership = callTeam(service, "tryMembership", agent);
|
|
896
|
-
} catch (error) {
|
|
897
|
-
return { kind: "not-member" };
|
|
898
|
-
}
|
|
899
|
-
if (membership === void 0) return { kind: "not-member" };
|
|
900
|
-
let members;
|
|
852
|
+
function readTeamSnapshot(ctx, agent, entries = []) {
|
|
853
|
+
const teams = ctx.get("agentTeams");
|
|
854
|
+
const subagents = ctx.get("subagents");
|
|
855
|
+
if (teams === void 0 || subagents === void 0) return { kind: "absent" };
|
|
901
856
|
try {
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
857
|
+
if (!teams.isEnabled(agent)) return { kind: "not-member" };
|
|
858
|
+
const root = subagents.rootOf(agent);
|
|
859
|
+
const row = (live, id, name, role) => {
|
|
860
|
+
const model = live?.model.current()?.model;
|
|
861
|
+
return {
|
|
862
|
+
id,
|
|
863
|
+
name,
|
|
864
|
+
role,
|
|
865
|
+
status: live?.status === "running" ? "running" : "inactive",
|
|
866
|
+
...model === void 0 ? {} : { model },
|
|
867
|
+
diagnostics: []
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
const members = [row(root, root.id, "lead", "lead")];
|
|
871
|
+
for (const entry of entries) {
|
|
872
|
+
if (entry.kind !== "child" || entry.mode !== "continuable") continue;
|
|
873
|
+
members.push({
|
|
874
|
+
...row(ctx.get("agents")?.get(entry.id), entry.id, entry.path ?? entry.label, "teammate"),
|
|
875
|
+
...entry.path === void 0 ? {} : { description: entry.label }
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
const names = new Map(members.map((member) => [member.id, member.name]));
|
|
879
|
+
return {
|
|
880
|
+
kind: "team",
|
|
881
|
+
members,
|
|
882
|
+
tasks: teams.listTasks(agent).map((task) => ({
|
|
883
|
+
...task,
|
|
884
|
+
...task.ownerId === void 0 ? {} : { ownerName: names.get(task.ownerId) ?? task.ownerName ?? task.ownerId }
|
|
885
|
+
}))
|
|
886
|
+
};
|
|
911
887
|
} catch (error) {
|
|
912
888
|
return { kind: "not-member" };
|
|
913
889
|
}
|
|
914
|
-
if (!isRowList(tasks)) return { kind: "not-member" };
|
|
915
|
-
return {
|
|
916
|
-
kind: "team",
|
|
917
|
-
members,
|
|
918
|
-
tasks
|
|
919
|
-
};
|
|
920
890
|
}
|
|
921
891
|
/**
|
|
922
892
|
* Lines for the tools this agent can call that the global registry does not
|
|
@@ -1182,8 +1152,10 @@ const TASK_GLYPH = {
|
|
|
1182
1152
|
*
|
|
1183
1153
|
* A tool call is listed when its name is in `toolNames`, the names the Agent
|
|
1184
1154
|
* Teams plugin currently scopes onto this agent, or when `toolNames` is
|
|
1185
|
-
* omitted and the arguments name a person or a task.
|
|
1186
|
-
*
|
|
1155
|
+
* omitted and the arguments name a person or a task. Successful subagent
|
|
1156
|
+
* activation results name their spawn recipients by matching tool call id;
|
|
1157
|
+
* pending and historical calls retain their argument-derived summaries.
|
|
1158
|
+
* Malformed tool arguments still name the tool when it is in `toolNames`. A user message is listed
|
|
1187
1159
|
* when its source is `agent-message` or its text begins `Team message from`.
|
|
1188
1160
|
*
|
|
1189
1161
|
* The Team Lead's `team/` records are authoritative, so they replace the rows
|
|
@@ -1211,7 +1183,17 @@ const TASK_GLYPH = {
|
|
|
1211
1183
|
* @returns the exchanges in log order.
|
|
1212
1184
|
*/
|
|
1213
1185
|
function beatsFromEvents(events, speaker, toolNames, names = /* @__PURE__ */ new Map()) {
|
|
1214
|
-
const
|
|
1186
|
+
const activations = /* @__PURE__ */ new Map();
|
|
1187
|
+
for (const event of events) {
|
|
1188
|
+
if (event.type !== "tool/result") continue;
|
|
1189
|
+
const result = fields(event.data);
|
|
1190
|
+
const message = fields(result?.message);
|
|
1191
|
+
const meta = fields(result?.meta);
|
|
1192
|
+
const callId = text(message?.toolCallId);
|
|
1193
|
+
const name = meta?.kind === "activation" && message?.isError === false ? text(meta.name) : void 0;
|
|
1194
|
+
if (callId !== void 0 && name !== void 0) activations.set(callId, name);
|
|
1195
|
+
}
|
|
1196
|
+
const calls = events.map((event) => event.type === "tool/call" ? beatFromCall(event.data, speaker, toolNames, names, activations) : void 0);
|
|
1215
1197
|
const spawnCalls = /* @__PURE__ */ new Set();
|
|
1216
1198
|
for (const call of calls) if (call?.kind === "spawn") spawnCalls.add(call.to);
|
|
1217
1199
|
const reading = {
|
|
@@ -1619,7 +1601,7 @@ function beatsFromEvent(event, call, reading) {
|
|
|
1619
1601
|
if (event.type === "tool/call") return call === void 0 || supersededCall(call, reading) ? [] : [call];
|
|
1620
1602
|
if (event.type.startsWith("team/")) return beatsFromTeam(event.type, event.data, reading);
|
|
1621
1603
|
if (event.type !== "user/message" || reading.peersRecorded) return [];
|
|
1622
|
-
const received = beatFromUser(event.data, reading.speaker);
|
|
1604
|
+
const received = beatFromUser(event.data, reading.speaker, reading.names);
|
|
1623
1605
|
return received === void 0 ? [] : [received];
|
|
1624
1606
|
}
|
|
1625
1607
|
/**
|
|
@@ -1662,10 +1644,12 @@ function memberName(id, names) {
|
|
|
1662
1644
|
* One tool call as an exchange.
|
|
1663
1645
|
* @param data - the tool-call data.
|
|
1664
1646
|
* @param speaker - the caller.
|
|
1665
|
-
* @param toolNames - names the plugin currently scopes onto the agent.
|
|
1647
|
+
* @param toolNames - names the plugin currently scopes onto the agent.
|
|
1648
|
+
* @param names - catalog labels indexed by Session id.
|
|
1649
|
+
* @param activations - successful activation names indexed by tool call id.
|
|
1666
1650
|
* @returns the exchange, or undefined when the call is not one this page plays.
|
|
1667
1651
|
*/
|
|
1668
|
-
function beatFromCall(data, speaker, toolNames) {
|
|
1652
|
+
function beatFromCall(data, speaker, toolNames, names, activations) {
|
|
1669
1653
|
const call = fields(data);
|
|
1670
1654
|
const name = typeof call?.name === "string" ? call.name : void 0;
|
|
1671
1655
|
if (name === void 0) return void 0;
|
|
@@ -1673,9 +1657,10 @@ function beatFromCall(data, speaker, toolNames) {
|
|
|
1673
1657
|
const scoped = toolNames !== void 0 && toolNames.has(name);
|
|
1674
1658
|
const summary = summarizeCall(name, args);
|
|
1675
1659
|
if (!scoped && !summary.addressed) return void 0;
|
|
1660
|
+
const callId = text(call?.callId);
|
|
1676
1661
|
return {
|
|
1677
1662
|
from: speaker,
|
|
1678
|
-
to: summary.to,
|
|
1663
|
+
to: ((name === "subagent" || name === "subagent_fork") && summary.kind === "spawn" && callId !== void 0 ? activations.get(callId) : void 0) ?? knownName(summary.to, names) ?? summary.to,
|
|
1679
1664
|
kind: summary.kind,
|
|
1680
1665
|
text: summary.text
|
|
1681
1666
|
};
|
|
@@ -1690,8 +1675,8 @@ function beatFromCall(data, speaker, toolNames) {
|
|
|
1690
1675
|
* @returns the lane fields, and whether the arguments themselves name an exchange.
|
|
1691
1676
|
*/
|
|
1692
1677
|
function summarizeCall(name, args) {
|
|
1693
|
-
const target = text(args?.target);
|
|
1694
|
-
const teammate = text(args?.name);
|
|
1678
|
+
const target = text(args?.agent) ?? text(args?.agent_id) ?? text(args?.target);
|
|
1679
|
+
const teammate = text(args?.name) ?? (name === "subagent" || name === "subagent_fork" ? text(args?.description) : void 0);
|
|
1695
1680
|
const prompt = text(args?.prompt);
|
|
1696
1681
|
const message = text(args?.message);
|
|
1697
1682
|
const subject = text(args?.subject);
|
|
@@ -1858,11 +1843,17 @@ function textBlocks(content) {
|
|
|
1858
1843
|
* A received team message as an exchange aimed at `speaker`.
|
|
1859
1844
|
* @param data - the user-message data.
|
|
1860
1845
|
* @param speaker - the session that received the message.
|
|
1846
|
+
* @param names - catalog labels indexed by Session id.
|
|
1861
1847
|
* @returns the exchange, or undefined when the text is not a team message.
|
|
1862
1848
|
*/
|
|
1863
|
-
function beatFromUser(data, speaker) {
|
|
1864
|
-
const
|
|
1865
|
-
const
|
|
1849
|
+
function beatFromUser(data, speaker, names) {
|
|
1850
|
+
const root = fields(data);
|
|
1851
|
+
const message = fields(root?.message) ?? root;
|
|
1852
|
+
const source = fields(message?.source);
|
|
1853
|
+
const content = message?.content;
|
|
1854
|
+
const first = Array.isArray(content) ? fields(content[0]) : void 0;
|
|
1855
|
+
const relayHeader = source?.kind === "agent-message" && first?.type === "text" && typeof first.text === "string" && /^Agent [^\s]+ sent a message: $/u.test(first.text);
|
|
1856
|
+
const body = textBlocks(relayHeader && Array.isArray(content) ? content.slice(1) : content).join("");
|
|
1866
1857
|
const matched = /^Team message from ([^:]+):\s*([\s\S]*)$/u.exec(body);
|
|
1867
1858
|
const named = matched?.[1]?.trim();
|
|
1868
1859
|
const said = matched?.[2]?.trim();
|
|
@@ -1872,12 +1863,11 @@ function beatFromUser(data, speaker) {
|
|
|
1872
1863
|
kind: "message",
|
|
1873
1864
|
text: said
|
|
1874
1865
|
};
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
from: text(source.senderName) ?? "teammate",
|
|
1866
|
+
if (source?.kind === "agent-message" && (body !== "" || relayHeader && Array.isArray(content) && content.length > 1)) return {
|
|
1867
|
+
from: knownName(text(source.senderSessionId), names) ?? text(source.senderName) ?? "teammate",
|
|
1878
1868
|
to: speaker,
|
|
1879
1869
|
kind: "message",
|
|
1880
|
-
text: body
|
|
1870
|
+
text: body || NON_TEXT_MESSAGE
|
|
1881
1871
|
};
|
|
1882
1872
|
}
|
|
1883
1873
|
/**
|
|
@@ -2740,9 +2730,10 @@ function contentResultBody(content) {
|
|
|
2740
2730
|
* marker for terminal cards.
|
|
2741
2731
|
* @param view - the tool's `presentResult` view, when it has one.
|
|
2742
2732
|
* @param content - the model-facing result content.
|
|
2733
|
+
* @param includeDiffContent - retain result text alongside a diff view.
|
|
2743
2734
|
* @returns the rows and their aligned presentation metadata.
|
|
2744
2735
|
*/
|
|
2745
|
-
function toolResultBody(view, content) {
|
|
2736
|
+
function toolResultBody(view, content, includeDiffContent = false) {
|
|
2746
2737
|
if (view === void 0) return contentResultBody(content);
|
|
2747
2738
|
switch (view.card) {
|
|
2748
2739
|
case "generic": return contentResultBody(view.content ?? content);
|
|
@@ -2765,7 +2756,18 @@ function toolResultBody(view, content) {
|
|
|
2765
2756
|
...json === void 0 ? {} : { json }
|
|
2766
2757
|
};
|
|
2767
2758
|
}
|
|
2768
|
-
case "diff":
|
|
2759
|
+
case "diff": {
|
|
2760
|
+
const body = diffsBody(view.diffs);
|
|
2761
|
+
if (!includeDiffContent) return body;
|
|
2762
|
+
const text = contentText(content);
|
|
2763
|
+
if (text === "") return body;
|
|
2764
|
+
const lines = text.split("\n");
|
|
2765
|
+
return {
|
|
2766
|
+
lines: [...lines, ...body.lines],
|
|
2767
|
+
code: [...lines.map(() => void 0), ...body.code ?? []],
|
|
2768
|
+
diff: [...lines.map(() => void 0), ...body.diff ?? []]
|
|
2769
|
+
};
|
|
2770
|
+
}
|
|
2769
2771
|
case "search": {
|
|
2770
2772
|
const lines = view.shape === "matches" ? view.files.flatMap((file) => file.matches.map((match) => `${file.path}:${String(match.lineNumber)}: ${match.line}`)) : [...view.paths];
|
|
2771
2773
|
if (view.truncated) lines.push(`… ${String(view.total)} total`);
|
|
@@ -3292,6 +3294,17 @@ const IMAGE_MEDIA_TYPES = {
|
|
|
3292
3294
|
".gif": "image/gif"
|
|
3293
3295
|
};
|
|
3294
3296
|
/**
|
|
3297
|
+
* Prepare stored attachments for aggregate admission in their pending order.
|
|
3298
|
+
* @param pending - attachments retained by the current draft.
|
|
3299
|
+
* @returns stored image and file parts for trusted same-process admission.
|
|
3300
|
+
*/
|
|
3301
|
+
function storedAttachmentParts(pending) {
|
|
3302
|
+
return pending.map((attachment) => "encodedBytes" in attachment ? {
|
|
3303
|
+
...attachment.block,
|
|
3304
|
+
encodedBytes: attachment.encodedBytes
|
|
3305
|
+
} : attachment.block);
|
|
3306
|
+
}
|
|
3307
|
+
/**
|
|
3295
3308
|
* Read `path` (relative to `cwd`) and store it.
|
|
3296
3309
|
* @param store - the composed attachment store.
|
|
3297
3310
|
* @param cwd - the directory relative paths resolve against.
|
|
@@ -3317,7 +3330,8 @@ async function attachLocalFile(store, cwd, path) {
|
|
|
3317
3330
|
block: {
|
|
3318
3331
|
type: "image",
|
|
3319
3332
|
attachment: ref
|
|
3320
|
-
}
|
|
3333
|
+
},
|
|
3334
|
+
encodedBytes: data.byteLength
|
|
3321
3335
|
};
|
|
3322
3336
|
}
|
|
3323
3337
|
return {
|
|
@@ -3526,23 +3540,26 @@ function listPlugins(ctx) {
|
|
|
3526
3540
|
}
|
|
3527
3541
|
/**
|
|
3528
3542
|
* One descendant listing entry as a picker row: a local child has its session
|
|
3529
|
-
* id, activity, mode, and label
|
|
3530
|
-
*
|
|
3531
|
-
* reason. The live panel enters the same
|
|
3543
|
+
* id, activity, mode, and label. An optional exact root-relative address is
|
|
3544
|
+
* shown beside the label. An external execution has no Session to open; a
|
|
3545
|
+
* diagnostic candidate shows its reason. The live panel enters the same row.
|
|
3532
3546
|
* @param entry - the listing entry.
|
|
3547
|
+
* @param options - exact root-relative address, omitted when unavailable.
|
|
3533
3548
|
* @returns the row; `enterable` is false for a diagnostic or external entry.
|
|
3534
3549
|
*/
|
|
3535
|
-
function subagentChoice(entry) {
|
|
3550
|
+
function subagentChoice(entry, options) {
|
|
3536
3551
|
const prefix = indent(entry.depth - 1);
|
|
3552
|
+
const address = options?.address;
|
|
3537
3553
|
switch (entry.kind) {
|
|
3538
3554
|
case "child": {
|
|
3539
3555
|
const external = entry.mode === "external";
|
|
3540
3556
|
const parts = external ? ["external task", "no local session"] : [entry.activity, entry.mode];
|
|
3541
|
-
if (entry.label !== void 0) parts.push(entry.id);
|
|
3557
|
+
if (entry.label !== void 0 || address !== void 0) parts.push(entry.id);
|
|
3558
|
+
const label = address === void 0 ? entry.label ?? entry.id : `${address}${entry.label === void 0 ? "" : ` · ${entry.label}`}`;
|
|
3542
3559
|
return {
|
|
3543
3560
|
id: entry.id,
|
|
3544
3561
|
depth: entry.depth,
|
|
3545
|
-
label: `${prefix}${
|
|
3562
|
+
label: `${prefix}${label}`,
|
|
3546
3563
|
description: parts.join(" · "),
|
|
3547
3564
|
target: external ? "external-task" : "session",
|
|
3548
3565
|
mode: entry.mode,
|
|
@@ -3552,8 +3569,8 @@ function subagentChoice(entry) {
|
|
|
3552
3569
|
case "diagnostic": return {
|
|
3553
3570
|
id: entry.id,
|
|
3554
3571
|
depth: entry.depth,
|
|
3555
|
-
label: `${prefix}${entry.id}`,
|
|
3556
|
-
description: entry.reason
|
|
3572
|
+
label: `${prefix}${address ?? entry.id}`,
|
|
3573
|
+
description: address === void 0 ? entry.reason : `${entry.reason} · ${entry.id}`,
|
|
3557
3574
|
target: "diagnostic",
|
|
3558
3575
|
enterable: false
|
|
3559
3576
|
};
|
|
@@ -3561,19 +3578,6 @@ function subagentChoice(entry) {
|
|
|
3561
3578
|
}
|
|
3562
3579
|
}
|
|
3563
3580
|
/**
|
|
3564
|
-
* Every discovered subagent below one session in pre-order as picker rows.
|
|
3565
|
-
* @param ctx - plugin context carrying the optional subagent runtime.
|
|
3566
|
-
* @param sessionId - the root session whose descendants are listed.
|
|
3567
|
-
* @param signal - cancels the listing.
|
|
3568
|
-
* @returns one choice per descendant in listing order, empty when the session has no subagents.
|
|
3569
|
-
* @throws {Error} when no subagent runtime is mounted.
|
|
3570
|
-
*/
|
|
3571
|
-
async function listSubagentChoices(ctx, sessionId, signal) {
|
|
3572
|
-
const subagents = ctx.get("subagents");
|
|
3573
|
-
if (subagents === void 0) throw new Error("subagents are not mounted in this profile");
|
|
3574
|
-
return (await subagents.listDescendants(sessionId, signal)).map(subagentChoice);
|
|
3575
|
-
}
|
|
3576
|
-
/**
|
|
3577
3581
|
* The rows shown when the user enters one subagent picker row: the row's own
|
|
3578
3582
|
* label and description, the session's creation time and workspace, its
|
|
3579
3583
|
* title, its turn outline, and the files it presented. Turns and presented
|
|
@@ -8456,6 +8460,37 @@ function systemPromptView(text, update) {
|
|
|
8456
8460
|
};
|
|
8457
8461
|
}
|
|
8458
8462
|
/**
|
|
8463
|
+
* Project developer text and tool changes without rendering tool schemas.
|
|
8464
|
+
* @param content - the developer message's blocks.
|
|
8465
|
+
* @returns a navigable section, or undefined for an empty message.
|
|
8466
|
+
*/
|
|
8467
|
+
function developerContextView(content) {
|
|
8468
|
+
const rows = content.flatMap((block) => {
|
|
8469
|
+
switch (block.type) {
|
|
8470
|
+
case "text": return block.text === "" ? [] : block.text.split("\n");
|
|
8471
|
+
case "tool-addition": return [`Tool added: ${block.toolName}`];
|
|
8472
|
+
case "tool-removal": return [`Tool removed: ${block.toolName}`];
|
|
8473
|
+
default: return [`[${block.type}]`];
|
|
8474
|
+
}
|
|
8475
|
+
});
|
|
8476
|
+
return rows.length === 0 ? void 0 : {
|
|
8477
|
+
title: "developer message",
|
|
8478
|
+
parts: [{
|
|
8479
|
+
kind: "context",
|
|
8480
|
+
rows
|
|
8481
|
+
}]
|
|
8482
|
+
};
|
|
8483
|
+
}
|
|
8484
|
+
/**
|
|
8485
|
+
* Identify an empty manual continuation input, without changing other retry content.
|
|
8486
|
+
* @param source - the message's durable source.
|
|
8487
|
+
* @param content - the message's blocks.
|
|
8488
|
+
* @returns whether the message is an empty retry receipt.
|
|
8489
|
+
*/
|
|
8490
|
+
function isEmptyRetry(source, content) {
|
|
8491
|
+
return recordOf(source)?.kind === "retry" && content.length === 0;
|
|
8492
|
+
}
|
|
8493
|
+
/**
|
|
8459
8494
|
* Project one injected `user/message` into a transcript section.
|
|
8460
8495
|
* @param source - the message's durable source.
|
|
8461
8496
|
* @param content - the model-facing blocks.
|
|
@@ -15008,6 +15043,11 @@ var CompactionLedger = class {
|
|
|
15008
15043
|
turn,
|
|
15009
15044
|
text: firstLine(contentText(content))
|
|
15010
15045
|
};
|
|
15046
|
+
if (isEmptyRetry(source, content)) return {
|
|
15047
|
+
kind: "context",
|
|
15048
|
+
turn,
|
|
15049
|
+
title: "continuing failed turn"
|
|
15050
|
+
};
|
|
15011
15051
|
return {
|
|
15012
15052
|
kind: "context",
|
|
15013
15053
|
turn,
|
|
@@ -15232,17 +15272,21 @@ function elapsedOf(facts, now) {
|
|
|
15232
15272
|
* One listing entry as a row.
|
|
15233
15273
|
* @param entry - the listing entry.
|
|
15234
15274
|
* @param facts - the live facts sampled for it, when it has any.
|
|
15275
|
+
* @param address - exact root-relative address, when known.
|
|
15235
15276
|
* @param now - the wall clock the running time is measured against.
|
|
15236
15277
|
* @returns the row.
|
|
15237
15278
|
*/
|
|
15238
|
-
function rowOf(entry, facts, now) {
|
|
15279
|
+
function rowOf(entry, facts, address, now) {
|
|
15239
15280
|
const indent = DEPTH_INDENT.repeat(entry.depth - 1);
|
|
15240
|
-
if (entry.kind === "diagnostic")
|
|
15241
|
-
id: entry.id
|
|
15242
|
-
|
|
15243
|
-
|
|
15244
|
-
|
|
15245
|
-
|
|
15281
|
+
if (entry.kind === "diagnostic") {
|
|
15282
|
+
const identity = address === void 0 ? entry.id : `${address}${SEPARATOR}${entry.id}`;
|
|
15283
|
+
return {
|
|
15284
|
+
id: entry.id,
|
|
15285
|
+
enterable: false,
|
|
15286
|
+
ticking: false,
|
|
15287
|
+
text: `${indent}${identity}${SEPARATOR}unreadable: ${entry.reason}`
|
|
15288
|
+
};
|
|
15289
|
+
}
|
|
15246
15290
|
const status = facts?.running === true ? "running" : facts?.lastTurnCompleted === true ? "completed" : "idle";
|
|
15247
15291
|
const parts = [
|
|
15248
15292
|
entry.mode,
|
|
@@ -15252,11 +15296,12 @@ function rowOf(entry, facts, now) {
|
|
|
15252
15296
|
const elapsed = elapsedOf(facts, now);
|
|
15253
15297
|
if (elapsed !== void 0) parts.push(elapsed);
|
|
15254
15298
|
if (facts?.usage !== void 0) parts.push(`↑${formatTokens(facts.usage.inputTokens)} ↓${formatTokens(facts.usage.outputTokens)}`);
|
|
15299
|
+
const label = address === void 0 ? entry.label ?? entry.id : `${address}${entry.label === void 0 ? "" : `${SEPARATOR}${entry.label}`}`;
|
|
15255
15300
|
return {
|
|
15256
15301
|
id: entry.id,
|
|
15257
15302
|
enterable: true,
|
|
15258
15303
|
ticking: facts?.activeSince !== void 0,
|
|
15259
|
-
text: `${indent}${
|
|
15304
|
+
text: `${indent}${label}${SEPARATOR}${parts.join(SEPARATOR)}`
|
|
15260
15305
|
};
|
|
15261
15306
|
}
|
|
15262
15307
|
/**
|
|
@@ -15267,7 +15312,7 @@ function rowOf(entry, facts, now) {
|
|
|
15267
15312
|
*/
|
|
15268
15313
|
function subagentPanelView(inputs) {
|
|
15269
15314
|
const listed = inputs.entries.filter((entry) => entry.kind === "diagnostic" || entry.mode !== "external" && entry.activity === "running");
|
|
15270
|
-
const rows = listed.slice(0, 6).map((entry) => rowOf(entry, inputs.facts.get(entry.id), inputs.now));
|
|
15315
|
+
const rows = listed.slice(0, 6).map((entry) => rowOf(entry, inputs.facts.get(entry.id), inputs.addresses?.get(entry.id), inputs.now));
|
|
15271
15316
|
return {
|
|
15272
15317
|
rows,
|
|
15273
15318
|
hidden: listed.length - rows.length,
|
|
@@ -15698,6 +15743,8 @@ const COMPACTION_SWITCH_WAIT = "wait for the compaction to finish (Esc cancels i
|
|
|
15698
15743
|
const COMPACTION_LOADER_DETAIL = "context · Esc cancels";
|
|
15699
15744
|
/** What a prompt submitted while a dispatched `/compact` runs reports. */
|
|
15700
15745
|
const COMPACTION_QUEUE_NOTICE = "queued: the prompt starts once compaction finishes";
|
|
15746
|
+
/** What input reports while staged attachments are still being admitted. */
|
|
15747
|
+
const ATTACHMENT_FLIGHT_WAIT = "wait for the attachment submission to finish (Esc cancels it)";
|
|
15701
15748
|
/** The one extra key the model picker answers, stated above its rows. */
|
|
15702
15749
|
const MODEL_PICKER_HINT = "Ctrl+S saves the highlighted model as the default for the next launch";
|
|
15703
15750
|
/**
|
|
@@ -15882,12 +15929,16 @@ const LOCAL_COMMANDS = [
|
|
|
15882
15929
|
},
|
|
15883
15930
|
{
|
|
15884
15931
|
name: "attach",
|
|
15885
|
-
description: "Attach a file or image to the next prompt (/attach <path>, /attach clear)"
|
|
15932
|
+
description: "Attach a file or image to the next prompt or a command that accepts attachments (/attach <path>, /attach clear)"
|
|
15886
15933
|
},
|
|
15887
15934
|
{
|
|
15888
15935
|
name: "queue",
|
|
15889
15936
|
description: "Show or clear the messages queued for the Agent (/queue clear)"
|
|
15890
15937
|
},
|
|
15938
|
+
{
|
|
15939
|
+
name: "retry",
|
|
15940
|
+
description: "Continue an eligible failed turn without a new prompt"
|
|
15941
|
+
},
|
|
15891
15942
|
{
|
|
15892
15943
|
name: "skills",
|
|
15893
15944
|
description: "List the skills the Agent can load"
|
|
@@ -15938,7 +15989,7 @@ const LOCAL_COMMANDS = [
|
|
|
15938
15989
|
},
|
|
15939
15990
|
{
|
|
15940
15991
|
name: "team",
|
|
15941
|
-
description: "Browse
|
|
15992
|
+
description: "Browse teammates and shared tasks; /team on or /team off changes Team mode"
|
|
15942
15993
|
},
|
|
15943
15994
|
{
|
|
15944
15995
|
name: "team-tools",
|
|
@@ -16144,6 +16195,8 @@ var TuiApp = class {
|
|
|
16144
16195
|
/** When the running turn started, from its `turn/start` envelope; absent between turns. */
|
|
16145
16196
|
turnStartedAt;
|
|
16146
16197
|
pending = [];
|
|
16198
|
+
/** Admission of the staged attachments borrowed by one prompt or shared command. */
|
|
16199
|
+
attachmentFlight;
|
|
16147
16200
|
/** The home directory the footer shortens the workspace path against. */
|
|
16148
16201
|
home = homedir();
|
|
16149
16202
|
/** The segments of the last footer draw, in bar order. */
|
|
@@ -16162,6 +16215,10 @@ var TuiApp = class {
|
|
|
16162
16215
|
barSelection = FIRST_FOOTER_SEGMENT;
|
|
16163
16216
|
/** The descendant listing the last reconcile produced, in pre-order. */
|
|
16164
16217
|
subagentEntries = [];
|
|
16218
|
+
/** Exact root-relative addresses for the last listing, keyed by Session id. */
|
|
16219
|
+
subagentAddresses = /* @__PURE__ */ new Map();
|
|
16220
|
+
/** Latest root catalog used by Team views opened inside a descendant. */
|
|
16221
|
+
teamEntries = [];
|
|
16165
16222
|
/** Lifecycle activity held until a fresh catalog confirms the named descendant. */
|
|
16166
16223
|
pendingSubagentActivity = /* @__PURE__ */ new Map();
|
|
16167
16224
|
/** The rows of the last panel draw. */
|
|
@@ -16291,6 +16348,7 @@ var TuiApp = class {
|
|
|
16291
16348
|
* shows history and live progress only.
|
|
16292
16349
|
*/
|
|
16293
16350
|
readOnlyViews = /* @__PURE__ */ new Set();
|
|
16351
|
+
retryingViews = /* @__PURE__ */ new Set();
|
|
16294
16352
|
streaming;
|
|
16295
16353
|
/** Whether the fold keys left every foldable block open; one appended later follows it. */
|
|
16296
16354
|
toolsExpanded = false;
|
|
@@ -16563,9 +16621,17 @@ var TuiApp = class {
|
|
|
16563
16621
|
const { ctx } = this.deps;
|
|
16564
16622
|
const family = [(this.quitRoot ?? this.parents[0] ?? this.bound).agent];
|
|
16565
16623
|
const agents = ctx.get("agents");
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
|
|
16624
|
+
const runtime = ctx.get("subagents");
|
|
16625
|
+
if (agents !== void 0 && runtime !== void 0) {
|
|
16626
|
+
const root = (this.quitRoot ?? this.parents[0] ?? this.bound).agent;
|
|
16627
|
+
for (const candidate of agents.list()) {
|
|
16628
|
+
if (candidate === root) continue;
|
|
16629
|
+
try {
|
|
16630
|
+
if (runtime.rootOf(candidate) === root) family.push(candidate);
|
|
16631
|
+
} catch (error) {
|
|
16632
|
+
if (!(error instanceof SubagentError) || error.code !== "UNAUTHORIZED") throw error;
|
|
16633
|
+
}
|
|
16634
|
+
}
|
|
16569
16635
|
}
|
|
16570
16636
|
let commands = this.shellAbort === void 0 ? 0 : 1;
|
|
16571
16637
|
let background = 0;
|
|
@@ -16598,6 +16664,7 @@ var TuiApp = class {
|
|
|
16598
16664
|
this.dropCompaction();
|
|
16599
16665
|
this.restoreQueueDraft();
|
|
16600
16666
|
this.stopped = true;
|
|
16667
|
+
this.attachmentFlight?.abort();
|
|
16601
16668
|
this.updateTicker();
|
|
16602
16669
|
this.updateFadeTicker();
|
|
16603
16670
|
this.updateSpinTicker();
|
|
@@ -16696,6 +16763,8 @@ var TuiApp = class {
|
|
|
16696
16763
|
this.queueSelection = void 0;
|
|
16697
16764
|
this.clearActivityBoard();
|
|
16698
16765
|
this.subagentEntries = [];
|
|
16766
|
+
this.subagentAddresses = /* @__PURE__ */ new Map();
|
|
16767
|
+
this.teamEntries = [];
|
|
16699
16768
|
this.pendingSubagentActivity.clear();
|
|
16700
16769
|
this.panelSelection = void 0;
|
|
16701
16770
|
this.listingFailure = void 0;
|
|
@@ -16739,6 +16808,7 @@ var TuiApp = class {
|
|
|
16739
16808
|
this.notice(COMPACTION_SWITCH_WAIT, "error");
|
|
16740
16809
|
return;
|
|
16741
16810
|
}
|
|
16811
|
+
if (this.attachmentSubmissionPending()) return;
|
|
16742
16812
|
this.cancelPickers();
|
|
16743
16813
|
this.switching = true;
|
|
16744
16814
|
let next;
|
|
@@ -16783,6 +16853,7 @@ var TuiApp = class {
|
|
|
16783
16853
|
this.notice("wait for the session switch to finish", "error");
|
|
16784
16854
|
return;
|
|
16785
16855
|
}
|
|
16856
|
+
if (this.attachmentSubmissionPending()) return;
|
|
16786
16857
|
this.switching = true;
|
|
16787
16858
|
let next;
|
|
16788
16859
|
try {
|
|
@@ -16830,6 +16901,7 @@ var TuiApp = class {
|
|
|
16830
16901
|
* @param question - the text after `/btw`; empty opens the page without asking.
|
|
16831
16902
|
*/
|
|
16832
16903
|
async openAside(question) {
|
|
16904
|
+
if (this.attachmentSubmissionPending()) return;
|
|
16833
16905
|
if (this.asides.has(this.bound)) {
|
|
16834
16906
|
if (question === "") this.notice("this is already a btw side agent; type a question, or Ctrl+P to end it");
|
|
16835
16907
|
else this.submit(question);
|
|
@@ -16874,6 +16946,7 @@ var TuiApp = class {
|
|
|
16874
16946
|
this.notice("wait for the session switch to finish", "error");
|
|
16875
16947
|
return;
|
|
16876
16948
|
}
|
|
16949
|
+
if (this.attachmentSubmissionPending()) return;
|
|
16877
16950
|
this.switching = true;
|
|
16878
16951
|
let history;
|
|
16879
16952
|
try {
|
|
@@ -16977,7 +17050,7 @@ var TuiApp = class {
|
|
|
16977
17050
|
const session = this.agent.session;
|
|
16978
17051
|
const title = this.deps.ctx.get("sessionTitle")?.get(session)?.title;
|
|
16979
17052
|
const name = title === void 0 ? `session ${session.id}` : `${title} ${palette.dim(`(${session.id})`)}`;
|
|
16980
|
-
const teamsOn = this.parents.length === 0 &&
|
|
17053
|
+
const teamsOn = this.parents.length === 0 && readTeamSnapshot(this.deps.ctx, this.agent, this.teamEntries).kind === "team";
|
|
16981
17054
|
const teammate = this.openTeammateTitle();
|
|
16982
17055
|
const trail = this.parents.length === 0 ? palette.dim(teamsOn ? "· Agent Teams on · /team-play · /help" : "· /help for commands") : this.asides.has(this.bound) ? `${palette.accent(`◆ ${BTW_VIEW_TITLE}`)} ${paintKeys(palette, "· Ctrl+P ends it and returns")}` : teammate === void 0 ? `${palette.accent(`◆ subagent view ${"›".repeat(this.parents.length)}`)} ${paintKeys(palette, "· Ctrl+P returns")}` : `${palette.accent(`◆ ${teammate}`)} ${paintKeys(palette, "· Ctrl+P returns")}`;
|
|
16983
17056
|
this.header.setText(`${palette.bold(palette.accent("dsh"))} ${palette.dim("·")} ${name} ${trail}`);
|
|
@@ -17000,7 +17073,7 @@ var TuiApp = class {
|
|
|
17000
17073
|
* @returns the reads for one key or frame.
|
|
17001
17074
|
*/
|
|
17002
17075
|
teamRoomSource() {
|
|
17003
|
-
const snapshot =
|
|
17076
|
+
const snapshot = readTeamSnapshot(this.deps.ctx, this.agent, this.teamEntries);
|
|
17004
17077
|
const members = snapshot.kind === "team" ? snapshot.members : [];
|
|
17005
17078
|
const names = this.scopedTeamToolNames();
|
|
17006
17079
|
const speaker = members.find((row) => row.id === this.agent.session.id)?.name ?? "lead";
|
|
@@ -17020,7 +17093,7 @@ var TuiApp = class {
|
|
|
17020
17093
|
* A session that already has a user message, and a subagent view, draw none.
|
|
17021
17094
|
*/
|
|
17022
17095
|
mountTeamIntro() {
|
|
17023
|
-
if (this.parents.length > 0 ||
|
|
17096
|
+
if (this.parents.length > 0 || readTeamSnapshot(this.deps.ctx, this.agent, this.teamEntries).kind !== "team") return;
|
|
17024
17097
|
if (this.teamLog.some((event) => event.type === "user/message" || event.type === "tool/call" || event.type === "assistant/message")) return;
|
|
17025
17098
|
this.teamIntro = new TeamIntro(this.deps.palette);
|
|
17026
17099
|
this.chat.addChild(this.teamIntro);
|
|
@@ -17304,7 +17377,8 @@ var TuiApp = class {
|
|
|
17304
17377
|
if (member !== void 0) return memberLabel(member);
|
|
17305
17378
|
const entry = this.subagentEntries.find((candidate) => candidate.id === id);
|
|
17306
17379
|
if (entry?.kind !== "child") return id;
|
|
17307
|
-
const
|
|
17380
|
+
const address = this.subagentAddresses.get(id);
|
|
17381
|
+
const label = address === void 0 ? entry.label ?? id : `${address}${entry.label === void 0 ? "" : ` · ${entry.label}`}`;
|
|
17308
17382
|
return entry.mode === "external" ? `${label} (external task)` : label;
|
|
17309
17383
|
}
|
|
17310
17384
|
/**
|
|
@@ -17377,6 +17451,7 @@ var TuiApp = class {
|
|
|
17377
17451
|
const entries = this.subagentEntries.filter((entry) => !members.has(entry.id));
|
|
17378
17452
|
const view = subagentPanelView({
|
|
17379
17453
|
entries,
|
|
17454
|
+
addresses: this.subagentAddresses,
|
|
17380
17455
|
facts: this.subagentFacts(entries),
|
|
17381
17456
|
now: this.deps.now()
|
|
17382
17457
|
});
|
|
@@ -17412,7 +17487,7 @@ var TuiApp = class {
|
|
|
17412
17487
|
* are mounted.
|
|
17413
17488
|
*/
|
|
17414
17489
|
refreshTeamPanel() {
|
|
17415
|
-
const snapshot =
|
|
17490
|
+
const snapshot = readTeamSnapshot(this.deps.ctx, this.agent, this.teamEntries);
|
|
17416
17491
|
const roster = snapshot.kind === "team" ? snapshot : void 0;
|
|
17417
17492
|
this.mountTeamLine(teamPanelLine({
|
|
17418
17493
|
members: roster === void 0 ? [] : roster.members,
|
|
@@ -17429,6 +17504,8 @@ var TuiApp = class {
|
|
|
17429
17504
|
* labels of members that joined after their rows were drawn.
|
|
17430
17505
|
*/
|
|
17431
17506
|
refreshTeamSurfaces() {
|
|
17507
|
+
this.refreshHeader();
|
|
17508
|
+
this.banner.setViews(this.viewLabels, this.asides.has(this.bound) ? BTW_VIEW_TITLE : this.readOnlyViews.has(this.bound) ? ONE_SHOT_VIEW_TITLE : this.openTeammateTitle());
|
|
17432
17509
|
this.refreshTeamPanel();
|
|
17433
17510
|
this.refreshSubagentPanel();
|
|
17434
17511
|
this.relabelActivityBoard();
|
|
@@ -17438,7 +17515,7 @@ var TuiApp = class {
|
|
|
17438
17515
|
* @returns the members, the lead included; empty when Agent Teams is absent or the bound session is not on a team.
|
|
17439
17516
|
*/
|
|
17440
17517
|
teamMembers() {
|
|
17441
|
-
const snapshot =
|
|
17518
|
+
const snapshot = readTeamSnapshot(this.deps.ctx, this.agent, this.teamEntries);
|
|
17442
17519
|
return snapshot.kind === "team" ? snapshot.members : [];
|
|
17443
17520
|
}
|
|
17444
17521
|
/**
|
|
@@ -17463,7 +17540,7 @@ var TuiApp = class {
|
|
|
17463
17540
|
* @returns the roster, or undefined when the service is absent or this session is not a member.
|
|
17464
17541
|
*/
|
|
17465
17542
|
loadedTeam() {
|
|
17466
|
-
const snapshot =
|
|
17543
|
+
const snapshot = readTeamSnapshot(this.deps.ctx, this.agent, this.teamEntries);
|
|
17467
17544
|
if (snapshot.kind === "absent") {
|
|
17468
17545
|
this.notice(TEAM_ABSENT_NOTICE);
|
|
17469
17546
|
return;
|
|
@@ -17516,7 +17593,7 @@ var TuiApp = class {
|
|
|
17516
17593
|
showTeamTools() {
|
|
17517
17594
|
if (this.loadedTeam() === void 0) return;
|
|
17518
17595
|
const tools = this.deps.ctx.get("tools");
|
|
17519
|
-
const globalNames = new Set(tools?.schemas().map((schema) => schema.name) ?? []);
|
|
17596
|
+
const globalNames = new Set(tools?.schemas().map((schema) => schema.name).filter((name) => !name.startsWith("team_task_")) ?? []);
|
|
17520
17597
|
this.showRows(teamToolRows(tools?.schemas(this.agent), globalNames), "no Agent Teams tools are visible to this agent");
|
|
17521
17598
|
}
|
|
17522
17599
|
/**
|
|
@@ -17597,6 +17674,31 @@ var TuiApp = class {
|
|
|
17597
17674
|
this.updateTicker();
|
|
17598
17675
|
}
|
|
17599
17676
|
/**
|
|
17677
|
+
* Read the live tree root's listing for exact addresses, reusing a root listing.
|
|
17678
|
+
* @param agent - the exact Agent that owns the local listing.
|
|
17679
|
+
* @param entries - its descendant listing.
|
|
17680
|
+
* @param signal - cancellation for a root listing.
|
|
17681
|
+
* @returns the root listing, or undefined when the live root is unavailable.
|
|
17682
|
+
*/
|
|
17683
|
+
async rootSubagentEntries(agent, entries, signal) {
|
|
17684
|
+
const subagents = this.deps.ctx.get("subagents");
|
|
17685
|
+
if (subagents === void 0) return void 0;
|
|
17686
|
+
let root;
|
|
17687
|
+
try {
|
|
17688
|
+
root = subagents.rootOf(agent);
|
|
17689
|
+
} catch (error) {
|
|
17690
|
+
if (error instanceof SubagentError && error.code === "UNAUTHORIZED") return void 0;
|
|
17691
|
+
throw error;
|
|
17692
|
+
}
|
|
17693
|
+
return root === agent ? entries : await subagents.listDescendants(root.id, signal);
|
|
17694
|
+
}
|
|
17695
|
+
/** Build exact addresses from the live root's listing. */
|
|
17696
|
+
subagentAddressMap(entries) {
|
|
17697
|
+
const addresses = /* @__PURE__ */ new Map();
|
|
17698
|
+
for (const entry of entries ?? []) if (entry.path !== void 0) addresses.set(entry.id, entry.path);
|
|
17699
|
+
return addresses;
|
|
17700
|
+
}
|
|
17701
|
+
/**
|
|
17600
17702
|
* Re-read the descendant listing once. Two listings never overlap and a
|
|
17601
17703
|
* result the terminal moved away from is discarded — both leave the listing
|
|
17602
17704
|
* stale, so the next tick reads again. A rejection keeps the rows the last
|
|
@@ -17613,20 +17715,33 @@ var TuiApp = class {
|
|
|
17613
17715
|
}
|
|
17614
17716
|
this.listing = true;
|
|
17615
17717
|
this.subagentsStale = false;
|
|
17616
|
-
const
|
|
17718
|
+
const agent = this.agent;
|
|
17719
|
+
const session = agent.session;
|
|
17617
17720
|
try {
|
|
17618
|
-
const
|
|
17619
|
-
|
|
17721
|
+
const signal = new AbortController().signal;
|
|
17722
|
+
const entries = await subagents.listDescendants(session.id, signal);
|
|
17723
|
+
let rootEntries;
|
|
17724
|
+
let addressFailure;
|
|
17725
|
+
try {
|
|
17726
|
+
rootEntries = await this.rootSubagentEntries(agent, entries, signal);
|
|
17727
|
+
} catch (error) {
|
|
17728
|
+
addressFailure = `address lookup: ${describeFailure(error)}`;
|
|
17729
|
+
}
|
|
17730
|
+
if (this.agent === agent) {
|
|
17620
17731
|
this.subagentEntries = entries;
|
|
17621
|
-
this.
|
|
17732
|
+
this.subagentAddresses = this.subagentAddressMap(rootEntries);
|
|
17733
|
+
this.teamEntries = rootEntries ?? [];
|
|
17734
|
+
if (addressFailure === void 0) this.listingFailure = void 0;
|
|
17735
|
+
else this.reportListingFailure(addressFailure);
|
|
17622
17736
|
this.flushPendingSubagentActivity();
|
|
17623
17737
|
} else this.markSubagentsStale();
|
|
17624
17738
|
} catch (error) {
|
|
17625
|
-
this.reportListingFailure(describeFailure(error));
|
|
17739
|
+
if (this.agent === agent) this.reportListingFailure(describeFailure(error));
|
|
17740
|
+
else this.markSubagentsStale();
|
|
17626
17741
|
} finally {
|
|
17627
17742
|
this.listing = false;
|
|
17628
17743
|
if (!this.stopped) {
|
|
17629
|
-
this.
|
|
17744
|
+
this.refreshTeamSurfaces();
|
|
17630
17745
|
this.refreshWorkflowChildLinks();
|
|
17631
17746
|
}
|
|
17632
17747
|
}
|
|
@@ -18176,7 +18291,8 @@ var TuiApp = class {
|
|
|
18176
18291
|
const entry = this.subagentEntries.find((candidate) => candidate.id === row.id);
|
|
18177
18292
|
/* v8 ignore next -- every drawn row comes from the entries of the last listing */
|
|
18178
18293
|
if (entry === void 0) return;
|
|
18179
|
-
const
|
|
18294
|
+
const address = this.subagentAddresses.get(entry.id);
|
|
18295
|
+
const choice = subagentChoice(entry, address === void 0 ? void 0 : { address });
|
|
18180
18296
|
await this.enterSubagent(choice, this.subagentBrowseRow(choice));
|
|
18181
18297
|
}
|
|
18182
18298
|
async settings(argument) {
|
|
@@ -18477,6 +18593,10 @@ var TuiApp = class {
|
|
|
18477
18593
|
this.shellAbort.abort();
|
|
18478
18594
|
return { consume: true };
|
|
18479
18595
|
}
|
|
18596
|
+
if (this.attachmentFlight !== void 0) {
|
|
18597
|
+
this.attachmentFlight.abort();
|
|
18598
|
+
return { consume: true };
|
|
18599
|
+
}
|
|
18480
18600
|
if (this.compacting !== void 0) {
|
|
18481
18601
|
this.compacting.abort();
|
|
18482
18602
|
return { consume: true };
|
|
@@ -19132,6 +19252,10 @@ var TuiApp = class {
|
|
|
19132
19252
|
onSubmit(raw, mode = "queue") {
|
|
19133
19253
|
const text = raw.trim();
|
|
19134
19254
|
if (text === "") return;
|
|
19255
|
+
if (this.attachmentFlight !== void 0 && !this.attachmentFlightAllows(text)) {
|
|
19256
|
+
this.notice(ATTACHMENT_FLIGHT_WAIT, "error");
|
|
19257
|
+
return;
|
|
19258
|
+
}
|
|
19135
19259
|
if (this.switching) {
|
|
19136
19260
|
this.notice(SESSION_SWITCH_WAIT, "error");
|
|
19137
19261
|
return;
|
|
@@ -19142,12 +19266,18 @@ var TuiApp = class {
|
|
|
19142
19266
|
this.syncEditorBorder();
|
|
19143
19267
|
return;
|
|
19144
19268
|
}
|
|
19269
|
+
if (this.queueDraft !== void 0 && /^\/retry(?:\s|$)/iu.test(text)) {
|
|
19270
|
+
this.notice("/retry: finish or cancel the queued draft first", "error");
|
|
19271
|
+
this.editor.setText(raw);
|
|
19272
|
+
this.syncEditorBorder();
|
|
19273
|
+
return;
|
|
19274
|
+
}
|
|
19145
19275
|
this.editor.setText("");
|
|
19146
19276
|
this.editor.addToHistory(text);
|
|
19147
19277
|
const draft = this.queueDraft;
|
|
19148
19278
|
this.queueDraft = void 0;
|
|
19149
19279
|
if (draft === void 0 && text.startsWith("/")) {
|
|
19150
|
-
this.dispatchCommand(text);
|
|
19280
|
+
this.dispatchCommand(text, raw);
|
|
19151
19281
|
return;
|
|
19152
19282
|
}
|
|
19153
19283
|
const shell = draft === void 0 ? parseUserShellLine(text) : void 0;
|
|
@@ -19160,11 +19290,12 @@ var TuiApp = class {
|
|
|
19160
19290
|
/**
|
|
19161
19291
|
* Run one slash command and turn a rejection into a terminal notice.
|
|
19162
19292
|
* @param line - the complete slash-command line.
|
|
19293
|
+
* @param original - the submitted editor text to restore after a refused retry.
|
|
19163
19294
|
* @returns when the command or its failure notice settles.
|
|
19164
19295
|
*/
|
|
19165
|
-
dispatchCommand(line) {
|
|
19296
|
+
dispatchCommand(line, original = line) {
|
|
19166
19297
|
const name = line.slice(0, line.indexOf(" ") === -1 ? void 0 : line.indexOf(" "));
|
|
19167
|
-
return this.runCommand(line).catch((error) => {
|
|
19298
|
+
return this.runCommand(line, original).catch((error) => {
|
|
19168
19299
|
this.notice(`${name} failed: ${describeFailure(error)}`, "error");
|
|
19169
19300
|
});
|
|
19170
19301
|
}
|
|
@@ -19272,12 +19403,58 @@ var TuiApp = class {
|
|
|
19272
19403
|
this.refreshFooter();
|
|
19273
19404
|
}
|
|
19274
19405
|
submit(text, mode = "queue", draft) {
|
|
19406
|
+
if (this.attachmentSubmissionPending()) return;
|
|
19407
|
+
const submitted = this.pending.slice();
|
|
19408
|
+
if (submitted.length === 0) {
|
|
19409
|
+
this.deliverPrompt(text, mode, draft, []);
|
|
19410
|
+
return;
|
|
19411
|
+
}
|
|
19412
|
+
const bound = this.bound;
|
|
19413
|
+
const controller = new AbortController();
|
|
19414
|
+
this.attachmentFlight = controller;
|
|
19415
|
+
this.admitAndDeliverPrompt(bound, controller, text, mode, draft, submitted);
|
|
19416
|
+
}
|
|
19417
|
+
/**
|
|
19418
|
+
* Admit one ordinary prompt's staged attachments before any message is created.
|
|
19419
|
+
* A refused batch, cancellation, or unexpected failure leaves the staged
|
|
19420
|
+
* attachments pending. Later additions stay pending too.
|
|
19421
|
+
*/
|
|
19422
|
+
async admitAndDeliverPrompt(bound, controller, text, mode, draft, submitted) {
|
|
19423
|
+
const store = this.deps.ctx.get("attachments");
|
|
19424
|
+
try {
|
|
19425
|
+
if (store === void 0) {
|
|
19426
|
+
if (this.attachmentCurrent(bound, controller)) this.notice("no attachment store is composed", "error");
|
|
19427
|
+
return;
|
|
19428
|
+
}
|
|
19429
|
+
const admitted = await store.admitPromptContent(storedAttachmentParts(submitted));
|
|
19430
|
+
if (!this.attachmentCurrent(bound, controller)) return;
|
|
19431
|
+
if (controller.signal.aborted) {
|
|
19432
|
+
this.notice("prompt cancelled; attachments stayed pending", "error");
|
|
19433
|
+
return;
|
|
19434
|
+
}
|
|
19435
|
+
this.deliverPrompt(text, mode, draft, admitted.flatMap((part) => part.type === "text" ? [] : [part]), submitted);
|
|
19436
|
+
} catch (error) {
|
|
19437
|
+
if (!this.attachmentCurrent(bound, controller)) return;
|
|
19438
|
+
if (controller.signal.aborted) {
|
|
19439
|
+
this.notice("prompt cancelled; attachments stayed pending", "error");
|
|
19440
|
+
return;
|
|
19441
|
+
}
|
|
19442
|
+
if (store !== void 0 && store.isAttachmentError(error)) {
|
|
19443
|
+
this.notice(`${error.message}; attachments stayed pending`, "error");
|
|
19444
|
+
return;
|
|
19445
|
+
}
|
|
19446
|
+
this.notice(`prompt failed: ${describeFailure(error)}; the prompt was not sent; attachments stayed pending`, "error");
|
|
19447
|
+
} finally {
|
|
19448
|
+
this.finishAttachmentFlight(controller);
|
|
19449
|
+
}
|
|
19450
|
+
}
|
|
19451
|
+
/** Publish one prompt after its attachments, if any, were admitted. */
|
|
19452
|
+
deliverPrompt(text, mode, draft, attachments, submitted = []) {
|
|
19275
19453
|
const agent = this.agent;
|
|
19276
|
-
const attachments = this.pending.splice(0);
|
|
19277
19454
|
const message = createUserMessage({
|
|
19278
19455
|
content: [
|
|
19279
19456
|
...draft?.content.filter((block) => block.type !== "text") ?? [],
|
|
19280
|
-
...attachments
|
|
19457
|
+
...attachments,
|
|
19281
19458
|
{
|
|
19282
19459
|
type: "text",
|
|
19283
19460
|
text
|
|
@@ -19285,12 +19462,10 @@ var TuiApp = class {
|
|
|
19285
19462
|
],
|
|
19286
19463
|
source: terminalPromptSource(draft)
|
|
19287
19464
|
});
|
|
19288
|
-
if (this.compacting !== void 0)
|
|
19289
|
-
|
|
19290
|
-
this.notice(COMPACTION_QUEUE_NOTICE);
|
|
19291
|
-
} else if (agent.status !== "running") {
|
|
19465
|
+
if (this.compacting !== void 0) agent.followup(message);
|
|
19466
|
+
else if (agent.status !== "running") {
|
|
19292
19467
|
this.submittedIds.add(message.id);
|
|
19293
|
-
const shown =
|
|
19468
|
+
const shown = submitted.length === 0 ? text : `${text}\n${submitted.map((attachment) => `[${attachment.block.type}: ${attachment.name}]`).join(" ")}`;
|
|
19294
19469
|
this.chat.addChild(new UserBlock(this.theme, shown, this.turn));
|
|
19295
19470
|
agent.followup(message);
|
|
19296
19471
|
} else if (mode === "steer") {
|
|
@@ -19300,10 +19475,52 @@ var TuiApp = class {
|
|
|
19300
19475
|
agent.followup(message);
|
|
19301
19476
|
this.notice("queued for the next turn (Ctrl+S steers the running turn instead)");
|
|
19302
19477
|
}
|
|
19478
|
+
this.consumeSubmitted(submitted);
|
|
19479
|
+
if (this.compacting !== void 0) this.notice(COMPACTION_QUEUE_NOTICE);
|
|
19303
19480
|
this.refreshQueue();
|
|
19304
19481
|
this.refreshFooter();
|
|
19305
19482
|
}
|
|
19306
|
-
|
|
19483
|
+
/** Report that an attachment submission still owns the staged rows. */
|
|
19484
|
+
attachmentSubmissionPending() {
|
|
19485
|
+
if (this.attachmentFlight === void 0) return false;
|
|
19486
|
+
this.notice(ATTACHMENT_FLIGHT_WAIT, "error");
|
|
19487
|
+
return true;
|
|
19488
|
+
}
|
|
19489
|
+
/**
|
|
19490
|
+
* Whether `line` may run during admission.
|
|
19491
|
+
* Listing and adding stay available. Clearing, and any line that is not an
|
|
19492
|
+
* attach command, would race the batch already being admitted.
|
|
19493
|
+
* @param line - the trimmed editor line.
|
|
19494
|
+
* @returns true when the line lists or adds an attachment and no queued draft owns the editor.
|
|
19495
|
+
*/
|
|
19496
|
+
attachmentFlightAllows(line) {
|
|
19497
|
+
if (this.queueDraft !== void 0) return false;
|
|
19498
|
+
const match = /^\/attach(?:\s+(\S(?:.*\S)?))?$/iu.exec(line);
|
|
19499
|
+
if (match === null) return false;
|
|
19500
|
+
return (match[1] ?? "").toLowerCase() !== "clear";
|
|
19501
|
+
}
|
|
19502
|
+
/**
|
|
19503
|
+
* Whether `controller` still owns admission for `bound`.
|
|
19504
|
+
* Quit and a session change make a late result silent.
|
|
19505
|
+
*/
|
|
19506
|
+
attachmentCurrent(bound, controller) {
|
|
19507
|
+
return !this.stopped && this.bound === bound && this.attachmentFlight === controller;
|
|
19508
|
+
}
|
|
19509
|
+
/** Drop the flight marker once its admission settles. */
|
|
19510
|
+
finishAttachmentFlight(controller) {
|
|
19511
|
+
if (this.attachmentFlight === controller) this.attachmentFlight = void 0;
|
|
19512
|
+
}
|
|
19513
|
+
/** Remove exactly the attachments one successful submission admitted. */
|
|
19514
|
+
consumeSubmitted(submitted) {
|
|
19515
|
+
if (submitted.length === 0) return;
|
|
19516
|
+
const consumed = new Set(submitted);
|
|
19517
|
+
this.pending = this.pending.filter((attachment) => !consumed.has(attachment));
|
|
19518
|
+
}
|
|
19519
|
+
async runCommand(line, original = line) {
|
|
19520
|
+
if (/^\/retry(?:\s|$)/iu.test(line)) {
|
|
19521
|
+
await this.retryTurn(line.slice(6).trim(), original);
|
|
19522
|
+
return;
|
|
19523
|
+
}
|
|
19307
19524
|
const space = line.indexOf(" ");
|
|
19308
19525
|
const name = (space === -1 ? line : line.slice(0, space)).slice(1).toLowerCase();
|
|
19309
19526
|
const argument = space === -1 ? "" : line.slice(space + 1).trim();
|
|
@@ -19408,6 +19625,26 @@ var TuiApp = class {
|
|
|
19408
19625
|
this.openTeamPlay();
|
|
19409
19626
|
return;
|
|
19410
19627
|
case "team": {
|
|
19628
|
+
if (argument !== "") {
|
|
19629
|
+
if (argument !== "on" && argument !== "off") {
|
|
19630
|
+
this.notice("usage: /team · /team on · /team off", "error");
|
|
19631
|
+
return;
|
|
19632
|
+
}
|
|
19633
|
+
const teams = this.deps.ctx.get("agentTeams");
|
|
19634
|
+
if (teams === void 0) {
|
|
19635
|
+
this.notice(TEAM_ABSENT_NOTICE);
|
|
19636
|
+
return;
|
|
19637
|
+
}
|
|
19638
|
+
try {
|
|
19639
|
+
await teams.setEnabled(this.agent, argument === "on");
|
|
19640
|
+
this.notice(`Agent Teams ${argument}`);
|
|
19641
|
+
} catch (error) {
|
|
19642
|
+
this.notice(describeFailure(error), "error");
|
|
19643
|
+
}
|
|
19644
|
+
this.refreshHeader();
|
|
19645
|
+
this.refreshTeamSurfaces();
|
|
19646
|
+
return;
|
|
19647
|
+
}
|
|
19411
19648
|
const snapshot = this.loadedTeam();
|
|
19412
19649
|
if (snapshot === void 0) return;
|
|
19413
19650
|
const rows = teamBrowseRows(snapshot.members, snapshot.tasks);
|
|
@@ -19425,7 +19662,23 @@ var TuiApp = class {
|
|
|
19425
19662
|
this.setTeamPanel(argument);
|
|
19426
19663
|
return;
|
|
19427
19664
|
case "subagents": {
|
|
19428
|
-
const
|
|
19665
|
+
const subagents = this.deps.ctx.get("subagents");
|
|
19666
|
+
if (subagents === void 0) throw new Error("subagents are not mounted in this profile");
|
|
19667
|
+
const agent = this.agent;
|
|
19668
|
+
const signal = new AbortController().signal;
|
|
19669
|
+
const entries = await subagents.listDescendants(agent.session.id, signal);
|
|
19670
|
+
let rootEntries;
|
|
19671
|
+
try {
|
|
19672
|
+
rootEntries = await this.rootSubagentEntries(agent, entries, signal);
|
|
19673
|
+
} catch (error) {
|
|
19674
|
+
if (this.agent === agent) this.notice(`subagent address lookup failed: ${describeFailure(error)}`, "error");
|
|
19675
|
+
}
|
|
19676
|
+
if (this.agent !== agent) return;
|
|
19677
|
+
const addresses = this.subagentAddressMap(rootEntries);
|
|
19678
|
+
const choices = entries.map((entry) => {
|
|
19679
|
+
const address = addresses.get(entry.id);
|
|
19680
|
+
return subagentChoice(entry, address === void 0 ? void 0 : { address });
|
|
19681
|
+
});
|
|
19429
19682
|
if (choices.length === 0) {
|
|
19430
19683
|
this.notice("no subagent sessions");
|
|
19431
19684
|
return;
|
|
@@ -19449,9 +19702,63 @@ var TuiApp = class {
|
|
|
19449
19702
|
await this.plugins(argument);
|
|
19450
19703
|
return;
|
|
19451
19704
|
case "compact":
|
|
19705
|
+
if (this.pending.length > 0) {
|
|
19706
|
+
await this.runUserSharedCommand(line, "compact");
|
|
19707
|
+
return;
|
|
19708
|
+
}
|
|
19452
19709
|
await this.compact(line);
|
|
19453
19710
|
return;
|
|
19454
|
-
default: await this.
|
|
19711
|
+
default: await this.runUserSharedCommand(line, name);
|
|
19712
|
+
}
|
|
19713
|
+
}
|
|
19714
|
+
/** Admit a retry without consuming staged attachments or replacing a newer editor draft. */
|
|
19715
|
+
async retryTurn(argument, original) {
|
|
19716
|
+
const bound = this.bound;
|
|
19717
|
+
const restore = () => {
|
|
19718
|
+
if (this.stopped || this.bound !== bound) return;
|
|
19719
|
+
if (this.editor.getText() === "") {
|
|
19720
|
+
this.editor.setText(original);
|
|
19721
|
+
this.syncEditorBorder();
|
|
19722
|
+
} else this.notice(`/retry was not submitted; the current draft is unchanged: ${original}`, "error");
|
|
19723
|
+
};
|
|
19724
|
+
if (argument !== "") {
|
|
19725
|
+
this.notice("usage: /retry", "error");
|
|
19726
|
+
restore();
|
|
19727
|
+
return;
|
|
19728
|
+
}
|
|
19729
|
+
if (this.readOnlyViews.has(bound)) {
|
|
19730
|
+
this.notice("/retry is unavailable in a read-only session view", "error");
|
|
19731
|
+
restore();
|
|
19732
|
+
return;
|
|
19733
|
+
}
|
|
19734
|
+
if (this.retryingViews.has(bound)) {
|
|
19735
|
+
this.notice("/retry is already submitting", "error");
|
|
19736
|
+
restore();
|
|
19737
|
+
return;
|
|
19738
|
+
}
|
|
19739
|
+
const continuation = this.deps.ctx.get("sessionContinuation");
|
|
19740
|
+
if (continuation === void 0) {
|
|
19741
|
+
this.notice("/retry is unavailable: continuation service is not mounted", "error");
|
|
19742
|
+
restore();
|
|
19743
|
+
return;
|
|
19744
|
+
}
|
|
19745
|
+
this.retryingViews.add(bound);
|
|
19746
|
+
try {
|
|
19747
|
+
const result = await continuation.retry(bound.agent, {
|
|
19748
|
+
kind: "retry",
|
|
19749
|
+
rpcId: brandString(randomUUID())
|
|
19750
|
+
});
|
|
19751
|
+
if (this.stopped || this.bound !== bound) return;
|
|
19752
|
+
if (result === "unavailable") {
|
|
19753
|
+
this.notice("/retry: no eligible failed turn, or human input is still waiting", "error");
|
|
19754
|
+
restore();
|
|
19755
|
+
}
|
|
19756
|
+
} catch (error) {
|
|
19757
|
+
if (this.stopped || this.bound !== bound) return;
|
|
19758
|
+
this.notice(error instanceof SessionContinuationBusyError ? "/retry: wait for current work to finish, then retry" : `/retry failed: ${describeFailure(error)}`, "error");
|
|
19759
|
+
restore();
|
|
19760
|
+
} finally {
|
|
19761
|
+
this.retryingViews.delete(bound);
|
|
19455
19762
|
}
|
|
19456
19763
|
}
|
|
19457
19764
|
/**
|
|
@@ -19471,11 +19778,55 @@ var TuiApp = class {
|
|
|
19471
19778
|
this.tui.requestRender();
|
|
19472
19779
|
}
|
|
19473
19780
|
/**
|
|
19474
|
-
* Run one
|
|
19475
|
-
*
|
|
19476
|
-
*
|
|
19477
|
-
*
|
|
19478
|
-
*
|
|
19781
|
+
* Run one user-typed shared command. Staged attachments are admitted with it
|
|
19782
|
+
* and removed only after success. A command that does not accept them fails
|
|
19783
|
+
* before its handler runs, and the staged rows stay. Permission and sandbox
|
|
19784
|
+
* submissions do not use this path.
|
|
19785
|
+
* @param line - the complete slash-command line.
|
|
19786
|
+
* @param name - the lowercase command name, for the notices.
|
|
19787
|
+
*/
|
|
19788
|
+
async runUserSharedCommand(line, name) {
|
|
19789
|
+
const submitted = this.pending.slice();
|
|
19790
|
+
if (submitted.length === 0) {
|
|
19791
|
+
await this.runSharedCommand(line, name);
|
|
19792
|
+
return;
|
|
19793
|
+
}
|
|
19794
|
+
if (this.attachmentSubmissionPending()) return;
|
|
19795
|
+
const bound = this.bound;
|
|
19796
|
+
const controller = new AbortController();
|
|
19797
|
+
this.attachmentFlight = controller;
|
|
19798
|
+
const registry = this.deps.ctx.get("commands");
|
|
19799
|
+
try {
|
|
19800
|
+
if (registry === void 0) {
|
|
19801
|
+
this.notice(`unknown command /${name}; attachments stayed pending`, "error");
|
|
19802
|
+
return;
|
|
19803
|
+
}
|
|
19804
|
+
const execution = await registry.executeStored(bound.agent, line, storedAttachmentParts(submitted), controller.signal);
|
|
19805
|
+
if (!this.attachmentCurrent(bound, controller)) return;
|
|
19806
|
+
if (execution === void 0) {
|
|
19807
|
+
this.notice(`unknown command /${name}; attachments stayed pending`, "error");
|
|
19808
|
+
return;
|
|
19809
|
+
}
|
|
19810
|
+
const result = execution.result;
|
|
19811
|
+
if (result.kind === "error") {
|
|
19812
|
+
this.notice(`/${name}: ${result.text}; attachments stayed pending`, "error");
|
|
19813
|
+
return;
|
|
19814
|
+
}
|
|
19815
|
+
this.consumeSubmitted(submitted);
|
|
19816
|
+
if (result.sourceEventSeq === void 0 || result.sourceEventSeq !== this.drawnCompaction) this.notice(result.text === void 0 ? `/${name} done` : `/${name}: ${result.text}`, "success");
|
|
19817
|
+
} catch (error) {
|
|
19818
|
+
if (!this.attachmentCurrent(bound, controller)) return;
|
|
19819
|
+
this.notice(controller.signal.aborted ? `/${name} cancelled; attachments stayed pending and the command's use of them is unknown` : `/${name} failed: ${describeFailure(error)}; attachments stayed pending and the command's use of them is unknown`, "error");
|
|
19820
|
+
} finally {
|
|
19821
|
+
this.finishAttachmentFlight(controller);
|
|
19822
|
+
if (!this.stopped && this.bound === bound) this.refreshFooter();
|
|
19823
|
+
}
|
|
19824
|
+
}
|
|
19825
|
+
/**
|
|
19826
|
+
* Run one shared command without staged attachments and print its result into
|
|
19827
|
+
* the session it ran on. A success that names the compaction summary this
|
|
19828
|
+
* terminal just drew prints nothing more. A cancelled run reports that cancel.
|
|
19829
|
+
* A result that settles after a session switch or quit prints nothing.
|
|
19479
19830
|
* @param line - the complete slash-command line.
|
|
19480
19831
|
* @param name - the lowercase command name, for the notices.
|
|
19481
19832
|
* @param signal - cancels the run; a run nothing cancels passes none.
|
|
@@ -19972,10 +20323,11 @@ var TuiApp = class {
|
|
|
19972
20323
|
}
|
|
19973
20324
|
async attachNow(argument) {
|
|
19974
20325
|
if (argument === "") {
|
|
19975
|
-
this.notice(this.pending.length === 0 ? "nothing attached; /attach <path> attaches a file or image to the next prompt" : `attached: ${this.pending.map((attachment) => attachment.name).join(", ")}`);
|
|
20326
|
+
this.notice(this.pending.length === 0 ? "nothing attached; /attach <path> attaches a file or image to the next prompt or a command that accepts attachments" : `attached: ${this.pending.map((attachment) => attachment.name).join(", ")}`);
|
|
19976
20327
|
return;
|
|
19977
20328
|
}
|
|
19978
20329
|
if (argument === "clear") {
|
|
20330
|
+
if (this.attachmentSubmissionPending()) return;
|
|
19979
20331
|
this.pending = [];
|
|
19980
20332
|
this.notice("attachments cleared");
|
|
19981
20333
|
this.refreshFooter();
|
|
@@ -19989,7 +20341,7 @@ var TuiApp = class {
|
|
|
19989
20341
|
try {
|
|
19990
20342
|
const pending = await attachLocalFile(store, this.deps.cwd, argument);
|
|
19991
20343
|
this.pending.push(pending);
|
|
19992
|
-
this.notice(`attached ${pending.block.type} ${pending.name}; it goes with the next prompt`, "success");
|
|
20344
|
+
this.notice(`attached ${pending.block.type} ${pending.name}; it goes with the next prompt or a command that accepts attachments`, "success");
|
|
19993
20345
|
} catch (error) {
|
|
19994
20346
|
this.notice(`attach failed: ${describeFailure(error)}`, "error");
|
|
19995
20347
|
}
|
|
@@ -20127,8 +20479,16 @@ var TuiApp = class {
|
|
|
20127
20479
|
async askQuestions(questions, signal) {
|
|
20128
20480
|
const answers = [];
|
|
20129
20481
|
for (const question of questions) {
|
|
20130
|
-
const
|
|
20131
|
-
|
|
20482
|
+
const prompt = new QuestionPrompt(this.deps.palette, question);
|
|
20483
|
+
const withdraw = prompt.withdraw.bind(prompt);
|
|
20484
|
+
let withdrawn = false;
|
|
20485
|
+
prompt.withdraw = () => {
|
|
20486
|
+
withdrawn = true;
|
|
20487
|
+
withdraw();
|
|
20488
|
+
};
|
|
20489
|
+
const answer = await this.showModal(prompt, signal);
|
|
20490
|
+
if (withdrawn || signal?.aborted === true) throw new UserQuestionError("ask_user_question was aborted before the user answered", "ASK_ABORTED");
|
|
20491
|
+
if (answer === null) throw new UserQuestionError("the question was dismissed", "ASK_CANCELLED");
|
|
20132
20492
|
answers.push(answer);
|
|
20133
20493
|
}
|
|
20134
20494
|
return { answers };
|
|
@@ -20626,7 +20986,17 @@ var TuiApp = class {
|
|
|
20626
20986
|
}
|
|
20627
20987
|
this.pacer?.flush();
|
|
20628
20988
|
const loggedType = event.type;
|
|
20629
|
-
if (isTeamPanelEvent(loggedType))
|
|
20989
|
+
if (isTeamPanelEvent(loggedType)) {
|
|
20990
|
+
this.refreshTeamSurfaces();
|
|
20991
|
+
if (loggedType === "team/mode") {
|
|
20992
|
+
if (this.teamIntro !== void 0) {
|
|
20993
|
+
this.chat.removeChild(this.teamIntro);
|
|
20994
|
+
this.teamIntro = void 0;
|
|
20995
|
+
}
|
|
20996
|
+
this.mountTeamIntro();
|
|
20997
|
+
this.markSubagentsStale();
|
|
20998
|
+
}
|
|
20999
|
+
}
|
|
20630
21000
|
const compaction = this.compactions.observe(event, this.turn);
|
|
20631
21001
|
if (compaction !== void 0) this.showCompaction(compaction);
|
|
20632
21002
|
switch (event.type) {
|
|
@@ -20648,6 +21018,11 @@ var TuiApp = class {
|
|
|
20648
21018
|
case "system/message":
|
|
20649
21019
|
this.onSystemMessage(event.data);
|
|
20650
21020
|
break;
|
|
21021
|
+
case "developer/message": {
|
|
21022
|
+
const view = developerContextView(event.data.message.content);
|
|
21023
|
+
if (view !== void 0) this.addContext(view.title, view.parts, event.data.turn);
|
|
21024
|
+
break;
|
|
21025
|
+
}
|
|
20651
21026
|
case "assistant/message": {
|
|
20652
21027
|
const { message, usage, interrupted } = event.data;
|
|
20653
21028
|
const text = message.content.filter((block) => block.type === "text").map((block) => block.text).join("");
|
|
@@ -20678,8 +21053,12 @@ var TuiApp = class {
|
|
|
20678
21053
|
const isError = result.isError === true;
|
|
20679
21054
|
const moved = isError ? movedJobId(result.content) : void 0;
|
|
20680
21055
|
if (moved === void 0) {
|
|
20681
|
-
const
|
|
20682
|
-
|
|
21056
|
+
const view = this.presentResult(block.name, this.toolArguments.get(result.toolCallId), result.content, isError, event.data.meta);
|
|
21057
|
+
const patch = block.name === "apply_patch";
|
|
21058
|
+
const meta = event.data.meta;
|
|
21059
|
+
const stopped = patch && typeof meta === "object" && meta !== null && !Array.isArray(meta) && meta.stopped === true;
|
|
21060
|
+
const body = toolResultBody(view, result.content, patch);
|
|
21061
|
+
block.setResult(body.lines, isError || stopped, body.code, body.diff, body);
|
|
20683
21062
|
} else block.setBackground([`◇ moved to the background as ${moved} · /jobs lists it`]);
|
|
20684
21063
|
this.spinners.delete(block);
|
|
20685
21064
|
this.updateSpinTicker();
|
|
@@ -20920,7 +21299,8 @@ var TuiApp = class {
|
|
|
20920
21299
|
this.refreshWorkflowChildLinks();
|
|
20921
21300
|
return;
|
|
20922
21301
|
}
|
|
20923
|
-
const
|
|
21302
|
+
const address = this.subagentAddresses.get(entry.id);
|
|
21303
|
+
const choice = subagentChoice(entry, address === void 0 ? void 0 : { address });
|
|
20924
21304
|
await this.enterSubagent(choice, this.subagentBrowseRow(choice), { liveOnly: true });
|
|
20925
21305
|
}
|
|
20926
21306
|
/**
|
|
@@ -20951,6 +21331,10 @@ var TuiApp = class {
|
|
|
20951
21331
|
onUserMessage(message) {
|
|
20952
21332
|
if (this.submittedIds.has(message.id)) return;
|
|
20953
21333
|
const source = message.source;
|
|
21334
|
+
if (isEmptyRetry(source, message.content)) {
|
|
21335
|
+
this.notice("continuing failed turn");
|
|
21336
|
+
return;
|
|
21337
|
+
}
|
|
20954
21338
|
if (source.kind === "user") {
|
|
20955
21339
|
const attachments = message.content.filter((block) => block.type !== "text").map((block) => `[${block.type}]`);
|
|
20956
21340
|
const text = [contentText(message.content), ...attachments].filter((part) => part !== "").join("\n");
|