@songtonyli/dsh-cli 0.1.94 → 0.1.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/cordis/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
- package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
- package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +126 -126
- package/node_modules/@deepseek-ai/dsh-acp/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-action-cards/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-agent/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +3 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-agent-team/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-agent-team/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-agent-team/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/index.js +25 -11
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/typert.host.js +8 -4
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/projection.js +6 -1
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/task-board.js +12 -8
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/task-view.js +2 -1
- package/node_modules/@deepseek-ai/dsh-agent-team/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +67 -47
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +48 -48
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +6 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +6 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +19 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +52 -18
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +69 -41
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +51 -31
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +20 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +58 -18
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.js +48 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +5 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +79 -77
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-base/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-base/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-base/package.json +103 -102
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +125 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +14 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +19 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.md +16 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.zh.md +16 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/assets/breach-atlas-43c5305a3d4d.webp +0 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/client.js +395 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +13 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +60 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +40 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +164 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +18 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +24 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +24 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +205 -56
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +37 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +4 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +4 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +65 -58
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +6 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +175 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +27 -65
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +6 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +11 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +285 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +32 -31
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +35 -73
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-commands/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-commands/lib/index.js +37 -2
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +28 -5
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.remote-client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-commands/lib/types/index.js +36 -2
- package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-computer-use/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +83 -43
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +14 -6
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-cua/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +30 -1
- package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +16 -16
- package/node_modules/@deepseek-ai/dsh-cua/package.json +53 -53
- package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-deliverable-file-references/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +45 -45
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +9 -7
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +9 -7
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +779 -137
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +142 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +131 -29
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +103 -24
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/package.json +42 -42
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/client.js +150 -136
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/index.js +200 -186
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +72 -72
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +6 -16
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-fs/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-goal/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-headless/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +5 -1
- package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +45 -45
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-mcp-manager/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-message-quotes/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-official-bundles/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-otel/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-personalized-recommendations/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-plugin-detail/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +38 -38
- package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +12 -6
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +12 -6
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +93 -38
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/persistent-process.js +112 -93
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/process.js +112 -93
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +40 -40
- package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +48 -48
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +40 -39
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-session-continuation/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/README.md +92 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/README.zh.md +92 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/index.js +112 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/index.js +54 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/projection.js +48 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/package.json +55 -0
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/lib/index.js +19 -1
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +100 -120
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +19 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-projection/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +41 -41
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-settings/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -35
- package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +15 -12
- package/node_modules/@deepseek-ai/dsh-subagent/README.md +14 -6
- package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +14 -6
- package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +276 -42
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +31 -9
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +31 -8
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-messages.js +10 -8
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +44 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +35 -6
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +78 -12
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.js +96 -0
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -51
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/lib/index.js +26 -17
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +73 -8
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-executor-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.i18n.yaml +19 -16
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.md +22 -9
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.zh.md +22 -9
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/index.js +185 -74
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/config.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/errors.js +25 -0
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/index.js +36 -6
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc-calls.js +57 -7
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc.js +29 -14
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +35 -35
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +11 -6
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +39 -36
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +29 -17
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +29 -17
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +74 -122
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +24 -25
- package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tools/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +16 -16
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +11 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +11 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/cordis.patch.yml +0 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +469 -85
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +87 -85
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +4 -4
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +155 -155
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CZZasi1N.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CnyQSzND.js +199 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-working-directory/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +26 -26
- package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
- package/node_modules/@swc/helpers/cjs/_ts_add_disposable_resource.cjs +41 -1
- package/node_modules/@swc/helpers/cjs/_ts_decorate.cjs +15 -1
- package/node_modules/@swc/helpers/cjs/_ts_dispose_resources.cjs +44 -1
- package/node_modules/@swc/helpers/cjs/_ts_metadata.cjs +7 -1
- package/node_modules/@swc/helpers/cjs/_ts_param.cjs +7 -1
- package/node_modules/@swc/helpers/cjs/_ts_rewrite_relative_import_extension.cjs +10 -1
- package/node_modules/@swc/helpers/cjs/_ts_values.cjs +19 -1
- package/node_modules/@swc/helpers/cjs/_unsupported_iterable_to_array.cjs +1 -1
- package/node_modules/@swc/helpers/cjs/index.cjs +0 -4
- package/node_modules/@swc/helpers/esm/_ts_add_disposable_resource.js +41 -1
- package/node_modules/@swc/helpers/esm/_ts_decorate.js +15 -1
- package/node_modules/@swc/helpers/esm/_ts_dispose_resources.js +44 -1
- package/node_modules/@swc/helpers/esm/_ts_metadata.js +7 -1
- package/node_modules/@swc/helpers/esm/_ts_param.js +7 -1
- package/node_modules/@swc/helpers/esm/_ts_rewrite_relative_import_extension.js +10 -1
- package/node_modules/@swc/helpers/esm/_ts_values.js +19 -1
- package/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js +1 -1
- package/node_modules/@swc/helpers/esm/index.js +0 -1
- package/node_modules/@swc/helpers/package.json +2 -11
- package/node_modules/@swc/helpers/scripts/ast_grep.js +5 -25
- package/node_modules/@swc/helpers/scripts/build.js +2 -1
- package/node_modules/turndown/dist/turndown.js +18 -15
- package/node_modules/turndown/lib/turndown.browser.cjs.js +18 -15
- package/node_modules/turndown/lib/turndown.browser.es.js +18 -15
- package/node_modules/turndown/lib/turndown.browser.umd.js +18 -15
- package/node_modules/turndown/lib/turndown.cjs.js +18 -15
- package/node_modules/turndown/lib/turndown.es.js +18 -15
- package/node_modules/turndown/lib/turndown.umd.js +18 -15
- package/node_modules/turndown/package.json +4 -3
- package/package.json +337 -335
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-B2q7cWGa.js +0 -199
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-uWlUD22X.css +0 -1
- package/node_modules/@swc/helpers/_/_jsx/package.json +0 -4
- package/node_modules/@swc/helpers/cjs/_jsx.cjs +0 -28
- package/node_modules/@swc/helpers/esm/_jsx.js +0 -26
- package/node_modules/@swc/helpers/src/_jsx.mjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-sdk-minimal",
|
|
3
3
|
"description": "The standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessions",
|
|
4
|
-
"version": "0.2.2-
|
|
4
|
+
"version": "0.2.2-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -34,47 +34,48 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@deepseek-ai/cordis-plugin-timer": "1.
|
|
38
|
-
"@deepseek-ai/dsh-agent": "0.2.2-
|
|
39
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.2-
|
|
40
|
-
"@deepseek-ai/dsh-attachment-local": "0.2.2-
|
|
41
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.2-
|
|
42
|
-
"@deepseek-ai/dsh-compaction-image-offload": "0.2.2-
|
|
43
|
-
"@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.2.2-
|
|
44
|
-
"@deepseek-ai/dsh-jobs-local": "0.2.2-
|
|
45
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
46
|
-
"@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.2-
|
|
47
|
-
"@deepseek-ai/dsh-llm-retry": "0.2.2-
|
|
48
|
-
"@deepseek-ai/dsh-mcp-resources": "0.2.2-
|
|
49
|
-
"@deepseek-ai/dsh-plugin-package-inventory-deepseek": "0.2.2-
|
|
50
|
-
"@deepseek-ai/dsh-sandbox-local": "0.2.2-
|
|
51
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-
|
|
52
|
-
"@deepseek-ai/dsh-sdk-app": "0.2.2-
|
|
53
|
-
"@deepseek-ai/dsh-sdk-jsonrpc-server": "0.2.2-
|
|
54
|
-
"@deepseek-ai/dsh-session": "0.2.2-
|
|
55
|
-
"@deepseek-ai/dsh-session-checkpoint-policy": "0.2.2-
|
|
56
|
-
"@deepseek-ai/dsh-session-log-deepseek": "0.2.2-
|
|
57
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-
|
|
58
|
-
"@deepseek-ai/dsh-session-
|
|
59
|
-
"@deepseek-ai/dsh-session-
|
|
60
|
-
"@deepseek-ai/dsh-
|
|
61
|
-
"@deepseek-ai/dsh-
|
|
62
|
-
"@deepseek-ai/dsh-
|
|
63
|
-
"@deepseek-ai/dsh-terminal
|
|
64
|
-
"@deepseek-ai/dsh-
|
|
65
|
-
"@deepseek-ai/dsh-
|
|
66
|
-
"@deepseek-ai/dsh-tool-
|
|
67
|
-
"@deepseek-ai/dsh-tool-
|
|
68
|
-
"@deepseek-ai/dsh-tool-
|
|
69
|
-
"@deepseek-ai/dsh-
|
|
70
|
-
"@deepseek-ai/dsh-
|
|
71
|
-
"@deepseek-ai/dsh-
|
|
72
|
-
"@deepseek-ai/dsh-
|
|
37
|
+
"@deepseek-ai/cordis-plugin-timer": "1.2.0",
|
|
38
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
39
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-rc.1",
|
|
40
|
+
"@deepseek-ai/dsh-attachment-local": "0.2.2-rc.1",
|
|
41
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.1",
|
|
42
|
+
"@deepseek-ai/dsh-compaction-image-offload": "0.2.2-rc.1",
|
|
43
|
+
"@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.2.2-rc.1",
|
|
44
|
+
"@deepseek-ai/dsh-jobs-local": "0.2.2-rc.1",
|
|
45
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
46
|
+
"@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.2-rc.1",
|
|
47
|
+
"@deepseek-ai/dsh-llm-retry": "0.2.2-rc.1",
|
|
48
|
+
"@deepseek-ai/dsh-mcp-resources": "0.2.2-rc.1",
|
|
49
|
+
"@deepseek-ai/dsh-plugin-package-inventory-deepseek": "0.2.2-rc.1",
|
|
50
|
+
"@deepseek-ai/dsh-sandbox-local": "0.2.2-rc.1",
|
|
51
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.1",
|
|
52
|
+
"@deepseek-ai/dsh-sdk-app": "0.2.2-rc.1",
|
|
53
|
+
"@deepseek-ai/dsh-sdk-jsonrpc-server": "0.2.2-rc.1",
|
|
54
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
55
|
+
"@deepseek-ai/dsh-session-checkpoint-policy": "0.2.2-rc.1",
|
|
56
|
+
"@deepseek-ai/dsh-session-log-deepseek": "0.2.2-rc.1",
|
|
57
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-session-continuation": "0.2.2-rc.1",
|
|
59
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
60
|
+
"@deepseek-ai/dsh-session-title": "0.2.2-rc.1",
|
|
61
|
+
"@deepseek-ai/dsh-subprocess-local": "0.2.2-rc.1",
|
|
62
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
|
|
63
|
+
"@deepseek-ai/dsh-terminal": "0.2.2-rc.1",
|
|
64
|
+
"@deepseek-ai/dsh-terminal-bash": "0.2.2-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-token-meter": "0.2.2-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-tool-bash-persistent": "0.2.2-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.2-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-tool-pwsh-persistent": "0.2.2-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-tool-working-directory": "0.2.2-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-rc.1"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
75
|
-
"@deepseek-ai/cordis": "4.0
|
|
76
|
+
"@deepseek-ai/cordis": "4.1.0"
|
|
76
77
|
},
|
|
77
78
|
"devDependencies": {
|
|
78
|
-
"@deepseek-ai/cordis": "4.0
|
|
79
|
+
"@deepseek-ai/cordis": "4.1.0"
|
|
79
80
|
}
|
|
80
81
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-sdk-protocol",
|
|
3
3
|
"description": "Shared wire protocol for the DeepSeek Harness SDK runtime: the newline-delimited JSON-RPC stdio transport and the named request, result, and notification types spoken between the runtime server and SDK clients",
|
|
4
|
-
"version": "0.2.2-
|
|
4
|
+
"version": "0.2.2-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@deepseek-ai/dsh-commands": "0.2.2-
|
|
30
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
31
|
-
"@deepseek-ai/dsh-session": "0.2.2-
|
|
32
|
-
"@deepseek-ai/dsh-subagent": "0.2.2-
|
|
33
|
-
"@deepseek-ai/cordis": "4.0
|
|
34
|
-
"@deepseek-ai/dsh-user-questions": "0.2.2-
|
|
29
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.1",
|
|
30
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
31
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
32
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
33
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
34
|
+
"@deepseek-ai/dsh-user-questions": "0.2.2-rc.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@deepseek-ai/dsh-commands": "0.2.2-
|
|
38
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
39
|
-
"@deepseek-ai/dsh-session": "0.2.2-
|
|
40
|
-
"@deepseek-ai/dsh-subagent": "0.2.2-
|
|
41
|
-
"@deepseek-ai/cordis": "4.0
|
|
42
|
-
"@deepseek-ai/dsh-user-questions": "0.2.2-
|
|
37
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.1",
|
|
38
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
39
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
40
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
41
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
42
|
+
"@deepseek-ai/dsh-user-questions": "0.2.2-rc.1"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
en: c4bf3103b9762b6c
|
|
28
28
|
zh: 369c734bb20de2ea
|
|
29
29
|
/deepseek-ai-dsh-session/use-this-package/write-experimental-plugin-records:
|
|
30
|
-
en:
|
|
31
|
-
zh:
|
|
30
|
+
en: 002b8240caa0c57c
|
|
31
|
+
zh: e0954dd62913a944
|
|
32
32
|
/deepseek-ai-dsh-session/use-this-package/fork-a-session:
|
|
33
33
|
en: 1c40d17a786059d3
|
|
34
34
|
zh: 81320ce118977c65
|
|
@@ -71,7 +71,7 @@ Session log positions use two numeric types. `SessionSeq` identifies an existing
|
|
|
71
71
|
|
|
72
72
|
`appendPluginRecord(session, type, data)` appends one plugin record for a package under `packages/experimental/`; the `verify-plugin-record-callers` check rejects any other production caller in this repository. Plugins outside this repository must not call it either, although no repository check can inspect them.
|
|
73
73
|
|
|
74
|
-
Declare each record in `PluginRecordMap` through `@deepseek-ai/dsh-session/types`, with a description and an explicit payload type annotation in the owning experimental package's `src/`. Names use `plugin:<owner>/<record>`, where `owner` is the
|
|
74
|
+
Declare each record in `PluginRecordMap` through `@deepseek-ai/dsh-session/types`, with a description and an explicit payload type annotation in the owning experimental package's `src/`. Names use `plugin:<owner>/<record>`, where `owner` is the package name after removing the legacy `@deepseek-ai/dsh-experimental-` prefix when present, otherwise `@deepseek-ai/dsh-`; for example, `plugin:pi-extensions/entry`. TypeScript checks each name and payload against its declaration; the writer's runtime JSON snapshot rejects values that cannot be preserved losslessly. Put extension-defined or other dynamic names inside the payload of a declared record.
|
|
75
75
|
|
|
76
76
|
The [experimental persistence catalog](../../../docs/experimental-persistence-catalog.md) lists current plugin-record declarations with their owners, descriptions, payload type annotations, and source files. These declarations remain separate from `SessionEventMap`, expanded persistence schemas, released type history, and `KNOWN_SESSION_EVENT_TYPES`. Records carry `ignorable: true`: a build that does not recognize one retains and skips it on read. Records never enter the model-visible surface. Resume and fork carry them with the rest of the log; Session format migration keeps them on a best-effort basis.
|
|
77
77
|
|
|
@@ -71,7 +71,7 @@ session.deriveMessages() // the derived model history
|
|
|
71
71
|
|
|
72
72
|
`appendPluginRecord(session, type, data)` 为 `packages/experimental/` 下的包追加一条插件记录;`verify-plugin-record-callers` 检查拒绝本仓库中任何其他生产调用方。本仓库之外的插件同样不得调用它,尽管仓库检查无法检查它们。
|
|
73
73
|
|
|
74
|
-
在所属实验性包的 `src/` 中,通过 `@deepseek-ai/dsh-session/types` 的 `PluginRecordMap` 为每条记录声明描述与显式 payload 类型注解。名称使用 `plugin:<owner>/<record>`,其中 `owner`
|
|
74
|
+
在所属实验性包的 `src/` 中,通过 `@deepseek-ai/dsh-session/types` 的 `PluginRecordMap` 为每条记录声明描述与显式 payload 类型注解。名称使用 `plugin:<owner>/<record>`,其中 `owner` 是包名去掉前缀后的部分:带旧前缀时去掉 `@deepseek-ai/dsh-experimental-`,否则去掉 `@deepseek-ai/dsh-`;例如 `plugin:pi-extensions/entry`。TypeScript 按声明检查每个名称与 payload;写入方运行时的 JSON 快照拒绝无法无损保留的值。扩展自定义名称或其他动态名称放在已声明记录的 payload 中。
|
|
75
75
|
|
|
76
76
|
[实验性持久化目录](../../../docs/experimental-persistence-catalog.zh.md)列出当前插件记录声明及其所属包、描述、payload 类型注解与源文件。这些声明与 `SessionEventMap`、展开的持久化 schema、已发布类型历史及 `KNOWN_SESSION_EVENT_TYPES` 分开。记录带有 `ignorable: true`:不认识某条记录的构建在读取时保留并跳过它。记录从不进入模型可见的 surface。resume 与 fork 随日志其余部分一起携带它们;Session 格式迁移以尽力而为的方式保留它们。
|
|
77
77
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-session",
|
|
3
3
|
"description": "Event-sourced session store for the DeepSeek Harness",
|
|
4
|
-
"version": "0.2.2-
|
|
4
|
+
"version": "0.2.2-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
],
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@deepseek-ai/dsh-scope": "0.2.2-
|
|
46
|
-
"@deepseek-ai/cordis": "4.0
|
|
45
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.1",
|
|
46
|
+
"@deepseek-ai/cordis": "4.1.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@deepseek-ai/dsh-scope": "0.2.2-
|
|
50
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.2-
|
|
51
|
-
"@deepseek-ai/dsh-typert-registry": "0.2.2-
|
|
52
|
-
"@deepseek-ai/cordis": "4.0
|
|
49
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.1",
|
|
50
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.1",
|
|
51
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.2-rc.1",
|
|
52
|
+
"@deepseek-ai/cordis": "4.1.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
56
|
-
"@deepseek-ai/dsh-brand": "0.2.2-
|
|
57
|
-
"@deepseek-ai/dsh-util-values": "0.2.2-
|
|
55
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
56
|
+
"@deepseek-ai/dsh-brand": "0.2.2-rc.1",
|
|
57
|
+
"@deepseek-ai/dsh-util-values": "0.2.2-rc.1"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-session-checkpoint-policy",
|
|
3
3
|
"description": "Semantic session durability checkpoints before model requests and tool side effects",
|
|
4
|
-
"version": "0.2.2-
|
|
4
|
+
"version": "0.2.2-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,25 +29,25 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@deepseek-ai/cordis": "4.0
|
|
33
|
-
"@deepseek-ai/dsh-agent": "0.2.2-
|
|
34
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
35
|
-
"@deepseek-ai/dsh-session": "0.2.2-
|
|
36
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.2-
|
|
37
|
-
"@deepseek-ai/dsh-tools": "0.2.2-
|
|
32
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
33
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
34
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
35
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
36
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-rc.1",
|
|
37
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@deepseek-ai/cordis": "4.0
|
|
41
|
-
"@deepseek-ai/cordis-plugin-loader": "1.0
|
|
42
|
-
"@deepseek-ai/dsh-agent": "0.2.2-
|
|
43
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.2-
|
|
44
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
45
|
-
"@deepseek-ai/dsh-session": "0.2.2-
|
|
46
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.2-
|
|
47
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-
|
|
48
|
-
"@deepseek-ai/dsh-session-projection": "0.2.2-
|
|
49
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.2-
|
|
50
|
-
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-
|
|
51
|
-
"@deepseek-ai/dsh-tools": "0.2.2-
|
|
40
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
41
|
+
"@deepseek-ai/cordis-plugin-loader": "1.1.0",
|
|
42
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
43
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-rc.1",
|
|
44
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
45
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
46
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-rc.1",
|
|
47
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-rc.1",
|
|
48
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
49
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
|
|
50
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
|
|
51
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm run verify-translation-pairing --write packages/session/session-continuation/README.md
|
|
5
|
+
/:
|
|
6
|
+
en: f7a25f76785e3b92
|
|
7
|
+
zh: f42ddbbb3547d943
|
|
8
|
+
/deepseek-ai-dsh-session-continuation:
|
|
9
|
+
en: 834b8e64e6f68c70
|
|
10
|
+
zh: 15a5430f49098011
|
|
11
|
+
/deepseek-ai-dsh-session-continuation/summary:
|
|
12
|
+
en: 46c5ffad72f35e54
|
|
13
|
+
zh: fd8cd9ac30905477
|
|
14
|
+
/deepseek-ai-dsh-session-continuation/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: 2fbbd3dd3430b19e
|
|
17
|
+
/deepseek-ai-dsh-session-continuation/use-this-package:
|
|
18
|
+
en: 7fa2a5b8797181ac
|
|
19
|
+
zh: d31c7fede36c7391
|
|
20
|
+
/deepseek-ai-dsh-session-continuation/understand-the-implementation:
|
|
21
|
+
en: afde9c38d0c0599f
|
|
22
|
+
zh: 60921d7f5a5999fe
|
|
23
|
+
/deepseek-ai-dsh-session-continuation/further-exploration:
|
|
24
|
+
en: 0418e52ddba1089f
|
|
25
|
+
zh: 308479157587ac1b
|
|
26
|
+
/deepseek-ai-dsh-session-continuation/model-experience:
|
|
27
|
+
en: 215e7ba838619b7b
|
|
28
|
+
zh: a311da3843709f90
|
|
29
|
+
/deepseek-ai-dsh-session-continuation/model-experience/accepted-retry:
|
|
30
|
+
en: 9767fa834a1d6fa4
|
|
31
|
+
zh: 05510b8ca5812d4b
|
|
32
|
+
/deepseek-ai-dsh-session-continuation/model-experience/accepted-retry/what-the-model-sees:
|
|
33
|
+
en: 2f9258cf95618523
|
|
34
|
+
zh: 9177d10a660492e9
|
|
35
|
+
/deepseek-ai-dsh-session-continuation/model-experience/accepted-retry/token-effect:
|
|
36
|
+
en: f8b1dc7bcbf9c0c1
|
|
37
|
+
zh: 65233da2af81d21b
|
|
38
|
+
/deepseek-ai-dsh-session-continuation/model-experience/accepted-retry/kv-cache-effect:
|
|
39
|
+
en: 4b999358127340f2
|
|
40
|
+
zh: 5e25de8e23b58e61
|
|
41
|
+
/deepseek-ai-dsh-session-continuation/known-limitations-and-deferred-work:
|
|
42
|
+
en: 39368dac7142e7bb
|
|
43
|
+
zh: 847fc8ad68d85fd2
|
|
44
|
+
/deepseek-ai-dsh-session-continuation/known-limitations-and-deferred-work/dev-note:
|
|
45
|
+
en: e67f633dc6fe7773
|
|
46
|
+
zh: 8ec3e73528ddb1a6
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Resume an eligible failed model turn without adding an instruction."
|
|
3
|
+
kind: "package-reference"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @deepseek-ai/dsh-session-continuation
|
|
7
|
+
|
|
8
|
+
English | [中文](README.zh.md)
|
|
9
|
+
|
|
10
|
+
## Summary
|
|
11
|
+
|
|
12
|
+
Resume eligible failed model work without adding instruction text to the conversation. The retry starts a new turn and preserves the failed turn in the Session log. Pending human input and active Agent work prevent admission.
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
- [Use this package](#use-this-package)
|
|
17
|
+
- [Understand the implementation](#understand-the-implementation)
|
|
18
|
+
- [Further Exploration](#further-exploration)
|
|
19
|
+
- [Model Experience](#model-experience)
|
|
20
|
+
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
|
21
|
+
- [Dev Note](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## Use this package
|
|
27
|
+
|
|
28
|
+
Mount `@deepseek-ai/dsh-session-continuation` beside the Session projection registry. The shipped base and sdk-minimal bundles supply it; custom Session Controller compositions must also mount it. The service has no configuration fields.
|
|
29
|
+
|
|
30
|
+
Call `ctx.sessionContinuation.retry(agent, source)` with the exact live Agent and a `RetrySource` carrying `kind: 'retry'` and a branded `rpcId`. Optional `clientTimeZone` and `principal` fields preserve caller attribution. The caller owns authorization, request identity, deduplication, and presentation of errors.
|
|
31
|
+
|
|
32
|
+
The service returns `accepted` after queuing an empty retry, or `unavailable` without queuing one when the last turn is ineligible, any next-turn input is pending, or next-step human input is pending. Eligibility requires admitted human work or an empty retry, a failed attempt in the last request step, and an error ending with `RATE_LIMIT`, `SERVER`, `TIMEOUT`, `TRANSPORT`, `EMPTY_RESPONSE`, or `STREAM_CLOSED`. This manual policy is independent of automatic provider retries. Non-waking injected context remains queued for the next request.
|
|
33
|
+
|
|
34
|
+
The Agent maintenance lock protects the eligibility and inbox checks with admission. An active Agent or concurrent maintenance raises `SessionContinuationBusyError`; other admission failures propagate. A caller should report an unknown failure rather than assume the retry was accepted or retry it without its own deduplication policy.
|
|
35
|
+
|
|
36
|
+
-----
|
|
37
|
+
|
|
38
|
+
<a id="understand-the-implementation"></a>
|
|
39
|
+
## Understand the implementation
|
|
40
|
+
|
|
41
|
+
<details>
|
|
42
|
+
<summary>Implementation internals — click to expand</summary>
|
|
43
|
+
|
|
44
|
+
The service owns and awaits registration of the `conversationContinuation` projection. Its fixed-size fold derives eligibility from the complete Session log; checkpoints and suffix replay use state version 4. The wire view remains the eligible `turn/end` sequence or `null`. Unmounting the service releases its registration; Session preparation and recovery remain owned by the projection registry and Session loader.
|
|
45
|
+
|
|
46
|
+
The [service entry](src/index.ts) provides admission, the [projection](src/projection.ts) folds durable events, and the [types](src/types.ts) declare the retry source and wire projection. The Session Controller consumes the service and retains its RPC deduplication and Remote error handling.
|
|
47
|
+
|
|
48
|
+
</details>
|
|
49
|
+
|
|
50
|
+
-----
|
|
51
|
+
|
|
52
|
+
<a id="further-exploration"></a>
|
|
53
|
+
## Further Exploration
|
|
54
|
+
|
|
55
|
+
- [Session projection registry](../session-projection/README.md) — registration, recovery, and checkpoint lifecycle.
|
|
56
|
+
- [Session Controller](../../api/session-controller/README.md) — Remote prompt admission and request deduplication.
|
|
57
|
+
- [Manual generation continuation](../../../.agents/notes/implemented/feature/2026-10-26-manual-generation-continuation.md) — policy and durable input rationale.
|
|
58
|
+
|
|
59
|
+
-----
|
|
60
|
+
|
|
61
|
+
<a id="model-experience"></a>
|
|
62
|
+
## Model Experience
|
|
63
|
+
|
|
64
|
+
### Accepted retry
|
|
65
|
+
|
|
66
|
+
#### What the model sees
|
|
67
|
+
|
|
68
|
+
An accepted retry appends one user message with empty `content`. The next request includes that empty user turn, the retained history, and any queued non-waking context. The message adds no instruction text.
|
|
69
|
+
|
|
70
|
+
#### Token effect
|
|
71
|
+
|
|
72
|
+
The retry message contributes no instruction tokens. Tokens in the new request come from the retained history, queued context, and the provider framing of the empty user turn.
|
|
73
|
+
|
|
74
|
+
#### KV Cache effect
|
|
75
|
+
|
|
76
|
+
The empty user turn is appended after the retained history and does not replace earlier tokens. Queued context delivered with the new request extends the suffix. A refused retry adds no message.
|
|
77
|
+
|
|
78
|
+
## Known Limitations and Deferred Work
|
|
79
|
+
|
|
80
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
81
|
+
|
|
82
|
+
- **Request deduplication is caller-owned** — submitting the same source again is not an idempotency guarantee. The Session Controller provides its own RPC request deduplication.
|
|
83
|
+
|
|
84
|
+
<a id="dev-note"></a>
|
|
85
|
+
### Dev Note
|
|
86
|
+
|
|
87
|
+
<details>
|
|
88
|
+
<summary>Working context for maintainers — click to expand</summary>
|
|
89
|
+
|
|
90
|
+
None.
|
|
91
|
+
|
|
92
|
+
</details>
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "在不添加指令的情况下继续符合条件的失败模型轮次。"
|
|
3
|
+
kind: "package-reference"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @deepseek-ai/dsh-session-continuation
|
|
7
|
+
|
|
8
|
+
[English](README.md) | 中文
|
|
9
|
+
|
|
10
|
+
## 概述
|
|
11
|
+
|
|
12
|
+
在不向对话添加指令文本的情况下继续符合条件的失败模型工作。重试会开始新轮次,并在 Session 日志中保留失败轮次。待处理的用户输入或正在运行的 Agent 工作会阻止接纳。
|
|
13
|
+
|
|
14
|
+
## 目录
|
|
15
|
+
|
|
16
|
+
- [使用此包](#use-this-package)
|
|
17
|
+
- [了解实现](#understand-the-implementation)
|
|
18
|
+
- [深入探索](#further-exploration)
|
|
19
|
+
- [模型体验](#model-experience)
|
|
20
|
+
- [已知限制与延期工作](#known-limitations-and-deferred-work)
|
|
21
|
+
- [开发备注](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## 使用此包
|
|
27
|
+
|
|
28
|
+
在 Session 投影注册表旁挂载 `@deepseek-ai/dsh-session-continuation`。随附的 base 和 sdk-minimal bundle 已提供该服务;自定义 Session Controller 组合也必须挂载它。该服务没有配置字段。
|
|
29
|
+
|
|
30
|
+
使用精确的活动 Agent 和包含 `kind: 'retry'` 与带品牌的 `rpcId` 的 `RetrySource` 调用 `ctx.sessionContinuation.retry(agent, source)`。可选的 `clientTimeZone` 和 `principal` 字段保留调用方归属信息。调用方负责授权、请求标识、去重和错误展示。
|
|
31
|
+
|
|
32
|
+
接纳空重试并将其入队后,服务返回 `accepted`;当上一轮不符合条件、存在待处理的下一轮输入或存在待处理的下一步骤用户输入时,服务返回 `unavailable`,且不会入队重试。接纳条件要求已接纳用户工作或空重试、最后一个请求步骤中存在失败尝试,且错误结束码为 `RATE_LIMIT`、`SERVER`、`TIMEOUT`、`TRANSPORT`、`EMPTY_RESPONSE` 或 `STREAM_CLOSED`。此手动策略独立于提供方自动重试。不唤醒 Agent 的注入上下文仍留在队列中,供下一次请求使用。
|
|
33
|
+
|
|
34
|
+
Agent 维护锁将条件检查、收件箱检查和接纳操作保护为一个过程。Agent 正在工作或存在并发维护时抛出 `SessionContinuationBusyError`;其他接纳失败会继续向上传播。调用方应报告未知失败,不应假定重试已接纳,也不应在没有自己的去重策略时重试。
|
|
35
|
+
|
|
36
|
+
-----
|
|
37
|
+
|
|
38
|
+
<a id="understand-the-implementation"></a>
|
|
39
|
+
## 了解实现
|
|
40
|
+
|
|
41
|
+
<details>
|
|
42
|
+
<summary>实现内部细节 — 点击展开</summary>
|
|
43
|
+
|
|
44
|
+
服务负责注册并等待 `conversationContinuation` 投影就绪。其固定大小的折叠从完整 Session 日志推导接纳条件;检查点和后缀回放使用状态版本 4。wire 视图仍为符合条件的 `turn/end` 序号或 `null`。卸载服务会释放其注册;Session 准备和恢复仍由投影注册表与 Session 加载器负责。
|
|
45
|
+
|
|
46
|
+
[服务入口](src/index.ts)提供接纳操作,[投影](src/projection.ts)折叠持久事件,[类型](src/types.ts)声明重试来源和 wire 投影。Session Controller 消费该服务,并继续负责 RPC 去重和 Remote 错误处理。
|
|
47
|
+
|
|
48
|
+
</details>
|
|
49
|
+
|
|
50
|
+
-----
|
|
51
|
+
|
|
52
|
+
<a id="further-exploration"></a>
|
|
53
|
+
## 深入探索
|
|
54
|
+
|
|
55
|
+
- [Session 投影注册表](../session-projection/README.zh.md) — 注册、恢复和检查点生命周期。
|
|
56
|
+
- [Session Controller](../../api/session-controller/README.zh.md) — Remote 提示词接纳和请求去重。
|
|
57
|
+
- [手动生成继续](../../../.agents/notes/implemented/feature/2026-10-26-manual-generation-continuation.zh.md) — 策略和持久输入的设计依据。
|
|
58
|
+
|
|
59
|
+
-----
|
|
60
|
+
|
|
61
|
+
<a id="model-experience"></a>
|
|
62
|
+
## 模型体验
|
|
63
|
+
|
|
64
|
+
### 已接纳的重试
|
|
65
|
+
|
|
66
|
+
#### 模型看到什么
|
|
67
|
+
|
|
68
|
+
已接纳的重试追加一条 `content` 为空的用户消息。下一次请求包含该空用户回合、保留的历史,以及队列中不唤醒 Agent 的上下文。该消息不添加指令文本。
|
|
69
|
+
|
|
70
|
+
#### Token 影响
|
|
71
|
+
|
|
72
|
+
重试消息不贡献指令 token。新请求中的 token 来自保留的历史、已排队的上下文,以及提供方对空用户回合的消息封装。
|
|
73
|
+
|
|
74
|
+
#### KV Cache 影响
|
|
75
|
+
|
|
76
|
+
空用户回合追加在保留历史之后,不会替换先前的 token。随新请求交付的已排队上下文会延长后缀。被拒绝的重试不添加消息。
|
|
77
|
+
|
|
78
|
+
## 已知限制与延期工作
|
|
79
|
+
|
|
80
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
81
|
+
|
|
82
|
+
- **请求去重由调用方负责** — 再次提交相同来源不保证幂等。Session Controller 提供自己的 RPC 请求去重。
|
|
83
|
+
|
|
84
|
+
<a id="dev-note"></a>
|
|
85
|
+
### 开发备注
|
|
86
|
+
|
|
87
|
+
<details>
|
|
88
|
+
<summary>维护者工作上下文 — 点击展开</summary>
|
|
89
|
+
|
|
90
|
+
无。
|
|
91
|
+
|
|
92
|
+
</details>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Service } from "@deepseek-ai/cordis";
|
|
2
|
+
import { createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
3
|
+
import { brandNumber } from "@deepseek-ai/dsh-brand";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region lib/types/projection.js
|
|
6
|
+
const CONTINUABLE_FAILURES = new Set([
|
|
7
|
+
"RATE_LIMIT",
|
|
8
|
+
"SERVER",
|
|
9
|
+
"TIMEOUT",
|
|
10
|
+
"TRANSPORT",
|
|
11
|
+
"EMPTY_RESPONSE",
|
|
12
|
+
"STREAM_CLOSED"
|
|
13
|
+
]);
|
|
14
|
+
const endingSchema = z.number().int().nonnegative().transform(brandNumber).nullable();
|
|
15
|
+
const stateSchema = z.object({
|
|
16
|
+
admitted: z.boolean(),
|
|
17
|
+
failedAttempt: z.boolean(),
|
|
18
|
+
ending: endingSchema
|
|
19
|
+
});
|
|
20
|
+
const EMPTY = {
|
|
21
|
+
admitted: false,
|
|
22
|
+
failedAttempt: false,
|
|
23
|
+
ending: null
|
|
24
|
+
};
|
|
25
|
+
/** Eligibility requires admitted human work and a failed settlement in the last request step. */
|
|
26
|
+
const continuationProjectionDefinition = {
|
|
27
|
+
key: "conversationContinuation",
|
|
28
|
+
stateVersion: 4,
|
|
29
|
+
stateSchema,
|
|
30
|
+
init: () => EMPTY,
|
|
31
|
+
apply: (state, event) => {
|
|
32
|
+
switch (event.type) {
|
|
33
|
+
case "turn/start": return EMPTY;
|
|
34
|
+
case "step/start":
|
|
35
|
+
case "assistant/message": return state.failedAttempt ? {
|
|
36
|
+
...state,
|
|
37
|
+
failedAttempt: false
|
|
38
|
+
} : state;
|
|
39
|
+
case "user/message": return !state.admitted && event.surfaceOp === "append" && (event.data.source.kind === "user" && event.data.content.length > 0 || event.data.source.kind === "retry" && event.data.content.length === 0) ? {
|
|
40
|
+
...state,
|
|
41
|
+
admitted: true
|
|
42
|
+
} : state;
|
|
43
|
+
case "assistant/attempt": return state.failedAttempt ? state : {
|
|
44
|
+
...state,
|
|
45
|
+
failedAttempt: true
|
|
46
|
+
};
|
|
47
|
+
case "turn/end": {
|
|
48
|
+
const ending = event.data.reason.kind === "error" && CONTINUABLE_FAILURES.has(event.data.reason.error.code) && state.admitted && state.failedAttempt ? event.seq : null;
|
|
49
|
+
return ending === null ? EMPTY : {
|
|
50
|
+
...EMPTY,
|
|
51
|
+
ending
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
default: return state;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
wire: {
|
|
58
|
+
viewSchema: endingSchema,
|
|
59
|
+
view: (state) => state.ending
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region lib/types/index.js
|
|
64
|
+
/** Failed-turn continuation admission over the complete Session log. */
|
|
65
|
+
/** The Agent already owns a turn or maintenance operation; retry after that work settles. */
|
|
66
|
+
var SessionContinuationBusyError = class extends Error {
|
|
67
|
+
name = "SessionContinuationBusyError";
|
|
68
|
+
/** Machine-readable code for a retry refused because the Agent is not idle. */
|
|
69
|
+
code = "AGENT_BUSY";
|
|
70
|
+
constructor(cause) {
|
|
71
|
+
super("generation continuation requires an idle agent", { cause });
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
/** Owns the continuation projection and admits an empty retry while the Agent is idle. */
|
|
75
|
+
var SessionContinuation = class extends Service {
|
|
76
|
+
static inject = ["sessionProjections"];
|
|
77
|
+
projection;
|
|
78
|
+
/** @param ctx - context carrying the Session projection registry. */
|
|
79
|
+
constructor(ctx) {
|
|
80
|
+
super(ctx, "sessionContinuation");
|
|
81
|
+
}
|
|
82
|
+
async [Service.init]() {
|
|
83
|
+
this.projection = await this.ctx.sessionProjections.register(continuationProjectionDefinition);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Admit an empty retry if the last failed turn is eligible and no human input is pending.
|
|
87
|
+
* @param agent - exact live Agent whose maintenance lock guards admission.
|
|
88
|
+
* @param source - durable retry identity and caller attribution.
|
|
89
|
+
* @returns `accepted` or `unavailable`; an unavailable request adds no input.
|
|
90
|
+
* @throws {SessionContinuationBusyError} if another Agent activity holds maintenance.
|
|
91
|
+
* @throws if reading the projection or queuing the retry fails.
|
|
92
|
+
*/
|
|
93
|
+
async retry(agent, source) {
|
|
94
|
+
let admitted;
|
|
95
|
+
try {
|
|
96
|
+
admitted = agent.runMaintenance(() => {
|
|
97
|
+
const inbox = agent.inbox;
|
|
98
|
+
if (this.projection.stateOf(agent.session).ending === null || inbox.nextTurn.length > 0 || inbox.nextStep.some((message) => message.source.kind === "user")) return Promise.resolve("unavailable");
|
|
99
|
+
agent.followup(createUserMessage({
|
|
100
|
+
content: [],
|
|
101
|
+
source
|
|
102
|
+
}));
|
|
103
|
+
return Promise.resolve("accepted");
|
|
104
|
+
});
|
|
105
|
+
} catch (cause) {
|
|
106
|
+
throw new SessionContinuationBusyError(cause);
|
|
107
|
+
}
|
|
108
|
+
return admitted;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
export { SessionContinuation, SessionContinuation as default, SessionContinuationBusyError };
|