@songtonyli/dsh-cli 0.1.88 → 0.1.89
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 +127 -125
- 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/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 +8 -6
- 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 +7 -3
- 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-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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +10 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +7 -0
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remote-access/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-remote-access/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/typert.host.js +5 -1
- package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1541 -184
- 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 +2 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +1 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +45 -44
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +56 -27
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +1426 -454
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +715 -57
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +560 -40
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +1 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +70 -35
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/transport.js +1 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +5 -102
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.js +80 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.js +294 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js +297 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +52 -341
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +98 -67
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.js +289 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.js +112 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.js +139 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +77 -75
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +143 -7
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-attachment/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-attachment/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-attachment/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-attachment-local/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-attachment-local/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
- 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/package.json +100 -100
- 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-approval/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +7 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +7 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +245 -76
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +290 -290
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +34 -34
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -59
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -27
- 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-drag/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.md +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.zh.md +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +5 -5
- 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/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 +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +3 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +3 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +28 -3
- 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 +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +118 -69
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +15 -21
- 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 +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +164 -106
- 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 +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +20 -20
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +4 -3
- 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 +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +2 -2
- 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/lib/client.js +176 -2
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +42 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +8 -8
- 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 +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +2 -2
- 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/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +10 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +14 -14
- 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/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +5 -4
- 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 +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +158 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/index.js +239 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/typert.host.js +75 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/typert.remote-client.js +64 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +43 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +8 -6
- 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 +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +36 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +25 -25
- 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/lib/typert.host.js +7 -3
- 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 +26 -26
- 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 +98 -40
- 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 +10 -10
- package/node_modules/@deepseek-ai/dsh-cua/README.md +16 -7
- package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +16 -7
- package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +18 -38
- package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +342 -146
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +19 -20
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +13 -14
- package/node_modules/@deepseek-ai/dsh-cua/package.json +53 -50
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +9 -9
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +9 -9
- package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +12 -8
- 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-agent-team/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.md +0 -17
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.zh.md +0 -17
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/docs/DETAIL.md +0 -16
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/docs/DETAIL.zh.md +0 -16
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/zh.json +1 -1
- 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-agent-team/package.json +12 -12
- 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 +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +135 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +135 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +8745 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +3131 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +2222 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +1284 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/package.json +117 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/README.i18n.yaml +43 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/README.md +121 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/README.zh.md +121 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/lib/client.js +6272 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/package.json +71 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +4 -4
- 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/docs/DETAIL.md +0 -17
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/docs/DETAIL.zh.md +0 -17
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +100 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +100 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +495 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge/package.json +45 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.md +77 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.zh.md +77 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/cordis.patch.yml +17 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/icon.svg +11 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/package.json +53 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +105 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +105 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +813 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +47 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/README.md +105 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/README.zh.md +105 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/lib/index.js +844 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/package.json +88 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/README.i18n.yaml +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/cordis.patch.yml +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/docs/DETAIL.md +0 -15
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/docs/DETAIL.zh.md +0 -15
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +7 -6
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.i18n.yaml +52 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.md +177 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.zh.md +177 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/cordis.patch.yml +17 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/icon.svg +12 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +7130 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +7781 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/owner-gateway/cli.js +370 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/retry-backoff-ccJYtzOj.js +121 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.host.js +767 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.remote-client.js +551 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations-krUNq6VU.js +287 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations.js +26 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +160 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/README.md +93 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/README.zh.md +93 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/lib/index.js +738 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/package.json +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/DETAIL.md +1 -18
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/DETAIL.zh.md +1 -18
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/preview.svg +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/preview.zh.svg +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/docs/DETAIL.md +0 -16
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/docs/DETAIL.zh.md +0 -16
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/docs/DETAIL.md +0 -16
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/docs/DETAIL.zh.md +0 -16
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/docs/DETAIL.md +0 -10
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/docs/DETAIL.zh.md +0 -10
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/zh.json +1 -1
- 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/docs/DETAIL.md +0 -16
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/docs/DETAIL.zh.md +0 -16
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/docs/DETAIL.md +0 -15
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/docs/DETAIL.zh.md +0 -15
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/zh.json +1 -1
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/index.js +213 -54
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +24 -25
- 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 +9 -9
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.md +2 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.zh.md +2 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/lib/index.js +5 -1
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/index.js +10 -1
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +1 -0
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +1 -0
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/types/index.js +13 -1
- 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/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 +6 -1
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +40 -3
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +4 -0
- package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -10
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +264 -93
- 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 +4 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +8 -15
- 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 +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +12 -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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +3 -2
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-mcp-resources/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-mcp-resources/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-resources/README.zh.md +1 -1
- 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/lib/index.js +6 -1
- 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/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 +6 -2
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-package-manifest/README.md +1 -0
- package/node_modules/@deepseek-ai/dsh-package-manifest/README.zh.md +1 -0
- 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/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +8 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +8 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +166 -34
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +60 -37
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +37 -35
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.js +72 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +137 -31
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +26 -4
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +1 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +43 -39
- 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/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/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.md +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.zh.md +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/lib/index.js +4 -0
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +29 -29
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +50 -22
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +49 -21
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/configuration.js +24 -0
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +413 -597
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/persistent-process.js +5853 -125
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/process.js +5865 -91
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +31 -24
- 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 +6 -1
- 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/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types-DFdfvhLN.js +1411 -0
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +37 -37
- 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 +33 -33
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +11 -11
- 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-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/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/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +6 -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 +5 -2
- package/node_modules/@deepseek-ai/dsh-session-projection/README.md +15 -0
- package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +15 -0
- package/node_modules/@deepseek-ai/dsh-session-projection/lib/index.js +4 -2
- package/node_modules/@deepseek-ai/dsh-session-projection/lib/types/index.js +3 -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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-skill/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-skill/README.zh.md +1 -1
- 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/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.md +3 -2
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.zh.md +3 -2
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/lib/index.js +14 -3
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-storage/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-storage/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-storage-domain/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/lib/index.js +10 -12
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-storage-json/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-storage-json/README.md +9 -7
- package/node_modules/@deepseek-ai/dsh-storage-json/README.zh.md +9 -7
- package/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +50 -49
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +7 -3
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -51
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +15 -15
- 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/lib/index.js +6 -1
- 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-ask-user/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +2 -2
- 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 +789 -26
- 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 +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/index.js +9 -3
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/errors.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc.js +7 -2
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ts-types.js +1 -1
- 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 +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +8 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +36 -36
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +9 -6
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +19 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +19 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +21 -8
- 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 +5 -10
- 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 +14 -14
- package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +23 -14
- package/node_modules/@deepseek-ai/dsh-tool-skill/README.md +27 -8
- package/node_modules/@deepseek-ai/dsh-tool-skill/README.zh.md +27 -8
- package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +27 -20
- 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 +7 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +7 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +145 -211
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +25 -27
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +22 -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/package.json +24 -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/package.json +85 -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/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/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 +6 -6
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +0 -3
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +150 -151
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.md +6 -3
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.zh.md +6 -3
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/lib/index.js +32 -21
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-UeToUMuD.js → index--TtJvO-i.js} +84 -84
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-91FlLSYh.css → index-Jtzf36XE.css} +1 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{graphql-BIiNFDN_.js → graphql-C-Uijqkk.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{http-DIhnzaXE.js → http-CLu1VCSi.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{php-B4EoFdzs.js → php-CjQPq1Mz.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{rst-BHSXxbFM.js → rst-BuDKiyD7.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{ruby-DYyEMX7k.js → ruby-ZtjE4NPI.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{svelte-CwMGesqy.js → svelte-Tt81icjn.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{vue-DgeFhH50.js → vue-B5SDFeDA.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{vendor-D3p0kQ7Q.js → vendor-7utBqO4o.js} +25 -25
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +3 -3
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +21 -20
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +5 -1
- 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 +23 -23
- package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
- package/node_modules/acorn/CHANGELOG.md +1012 -0
- package/node_modules/acorn/LICENSE +21 -0
- package/node_modules/acorn/README.md +309 -0
- package/node_modules/acorn/bin/acorn +4 -0
- package/node_modules/acorn/dist/acorn.js +6370 -0
- package/node_modules/acorn/dist/acorn.mjs +6341 -0
- package/node_modules/acorn/dist/bin.js +90 -0
- package/node_modules/acorn/package.json +47 -0
- package/node_modules/acorn-walk/CHANGELOG.md +209 -0
- package/node_modules/{@deepseek-ai/dsh-experimental-worktree → acorn-walk}/LICENSE +5 -5
- package/node_modules/acorn-walk/README.md +124 -0
- package/node_modules/acorn-walk/dist/walk.js +485 -0
- package/node_modules/acorn-walk/dist/walk.mjs +467 -0
- package/node_modules/acorn-walk/package.json +47 -0
- package/node_modules/shell-quote/.github/FUNDING.yml +12 -0
- package/node_modules/shell-quote/LICENSE +24 -0
- package/node_modules/shell-quote/README.md +246 -0
- package/node_modules/shell-quote/index.js +4 -0
- package/node_modules/shell-quote/package.json +66 -0
- package/node_modules/shell-quote/parse.js +382 -0
- package/node_modules/shell-quote/quote.js +85 -0
- package/node_modules/shell-quote/tsconfig.json +10 -0
- package/package.json +346 -326
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/README.i18n.yaml +0 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/README.md +0 -91
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/README.zh.md +0 -91
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/lib/client.js +0 -93
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/lib/index.js +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/package.json +0 -59
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/directory.d.ts +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/index.d.ts +0 -54
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/process.d.ts +0 -29
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/types.d.ts +0 -20
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-storage",
|
|
3
3
|
"description": "Storage hub (ctx.storage): named backend registry plus mounted data-form facilities for the DeepSeek Harness",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@deepseek-ai/cordis": "4.0.
|
|
32
|
+
"@deepseek-ai/cordis": "4.0.6-alpha.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@deepseek-ai/cordis": "4.0.
|
|
35
|
+
"@deepseek-ai/cordis": "4.0.6-alpha.1"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
en: 1cc8b33834457c38
|
|
37
37
|
zh: c549afc7c4960e9e
|
|
38
38
|
/deepseek-ai-dsh-storage-domain/understand-the-implementation/design-concept:
|
|
39
|
-
en:
|
|
40
|
-
zh:
|
|
39
|
+
en: c1d0f46c6cd3ffb2
|
|
40
|
+
zh: e111921534389435
|
|
41
41
|
/deepseek-ai-dsh-storage-domain/understand-the-implementation/open-sequence:
|
|
42
42
|
en: 052da5d6c45205ca
|
|
43
43
|
zh: 724c875e3c431fee
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
en: 0e7d1c06d17c542f
|
|
64
64
|
zh: ead94d355f161be1
|
|
65
65
|
/deepseek-ai-dsh-storage-domain/known-limitations-and-deferred-work:
|
|
66
|
-
en:
|
|
67
|
-
zh:
|
|
66
|
+
en: fc50f5990ce953c9
|
|
67
|
+
zh: b30fdc41199a9702
|
|
68
68
|
/deepseek-ai-dsh-storage-domain/known-limitations-and-deferred-work/dev-note:
|
|
69
69
|
en: e67f633dc6fe7773
|
|
70
70
|
zh: 3bb0c20c93f16f98
|
|
@@ -85,7 +85,7 @@ The domain layer is a single implementation, not an abstracted seam: consumers d
|
|
|
85
85
|
### Design concept
|
|
86
86
|
|
|
87
87
|
- **The spec object is the single source of truth.** `defineDomain` pins the spec's literal types and validates its fields at the owning package's module load, before any medium is touched. Record schemas are zod, so `z.infer` avoids duplicating consumer types; plugin `Config` stays schemastery.
|
|
88
|
-
- **Memory is authoritative; the medium is the durable projection.** Reads are synchronous from validated in-memory state. Every write queues on one per-domain write chain: backend durability first, then memory mutation, then `domain/changed
|
|
88
|
+
- **Memory is authoritative; the medium is the durable projection.** Reads are synchronous from validated in-memory state. Every write queues on one per-domain write chain: backend durability first, then memory mutation, then `domain/changed`. A rejected backend write does not publish a domain change; an `unknown-state` rejection quarantines reads and later writes until close. Any unknown durable outcome requires closing and reopening the backend and domain before further use.
|
|
89
89
|
- **One write chain per domain.** `put`, `delete`, `deleteMany`, `update`, and `global.set` all queue on it; `update`'s transform runs at its chain slot, so concurrent updates never interleave. Records are plain immutable data — returned values are the stored objects themselves and must not be mutated in place.
|
|
90
90
|
- **Writes emit after the commit point.** `domain/changed` is a notification, not a transaction participant: a throwing listener is contained with a logged warning rather than rejecting the already-durable write.
|
|
91
91
|
|
|
@@ -144,8 +144,8 @@ Independent: domain reads and writes never touch request prefixes, so nothing he
|
|
|
144
144
|
These limits define when the domain layer is a poor fit or needs special operational care. They are current package constraints, not a task backlog.
|
|
145
145
|
|
|
146
146
|
- **Single-process change visibility** — `domain/changed` is an in-process event; a second host process or a reconnecting GUI observes no changes until the cross-process revision pattern lands ([Agent Note](../../../.agents/notes/proposed/architecture/2026-07-24-domain-kv-storage-and-workspace.md)).
|
|
147
|
-
- **No cross-table transactions, secondary indexes, or multi-segment keys** — each write
|
|
148
|
-
- **No
|
|
147
|
+
- **No cross-table transactions, secondary indexes, or multi-segment keys** — each write targets one table or the global slot; these extensions are deferred in the Agent Note's out-of-scope list.
|
|
148
|
+
- **No incompatible-value migration runner** — `compatibleVersions` admits older data for the current decoder; consumers convert values when rewriting selected records. A current stamp can still contain historical rows. See [domain versioning](../../../docs/subsystems/storage.md#domain-versioning) for backend differences, upgrades, downgrade refusal, and retiring old readers.
|
|
149
149
|
|
|
150
150
|
<a id="dev-note"></a>
|
|
151
151
|
### Dev Note
|
|
@@ -85,7 +85,7 @@ domain.table('workspaces').update(id, (r) => ({ ...r, path: newPath }))
|
|
|
85
85
|
### 设计理念
|
|
86
86
|
|
|
87
87
|
- **spec 对象是唯一真源。** `defineDomain` 固定 spec 的字面类型,并在所属包的模块加载时、任何介质被触碰之前校验其字段。记录 schema 使用 zod,因此 `z.infer` 可避免重复定义消费方类型;插件 `Config` 仍由 schemastery 负责。
|
|
88
|
-
- **内存具有最终决定权;介质是持久投影。** 读取同步取自经过校验的内存状态。每次写入都在每个领域一条的写入链上排队:先到达后端持久状态,再变更内存,然后发出 `domain/changed
|
|
88
|
+
- **内存具有最终决定权;介质是持久投影。** 读取同步取自经过校验的内存状态。每次写入都在每个领域一条的写入链上排队:先到达后端持久状态,再变更内存,然后发出 `domain/changed`。后端写入被拒绝时不发布领域变更;`unknown-state` 拒绝会隔离读取和后续写入,直至关闭。持久化结果未知时,必须先关闭并重新打开后端与领域,才能继续使用。
|
|
89
89
|
- **每个领域一条写入链。** `put`、`delete`、`deleteMany`、`update` 与 `global.set` 都在其上排队;`update` 的变换在链上自己的槽位运行,因此并发更新绝不会交错。记录是普通不可变数据——返回值就是已存对象本身,绝不能原地修改。
|
|
90
90
|
- **写入在提交点之后发出。** `domain/changed` 是通知,不是事务参与者:监听器抛出异常时,系统会隔离该异常并记录警告,而不会让已经持久的写入被拒绝。
|
|
91
91
|
|
|
@@ -144,8 +144,8 @@ domain.table('workspaces').update(id, (r) => ({ ...r, path: newPath }))
|
|
|
144
144
|
这些限制说明领域层何时不合适,或何时需要特别的运维注意。它们是当前包约束,不是任务积压。
|
|
145
145
|
|
|
146
146
|
- **变更只在单进程内可见**——`domain/changed` 是进程内事件;在跨进程修订模式落地前,第二个主机进程或重新连接的 GUI 无法观察变更([Agent Note](../../../.agents/notes/proposed/architecture/2026-07-24-domain-kv-storage-and-workspace.zh.md))。
|
|
147
|
-
-
|
|
148
|
-
-
|
|
147
|
+
- **没有跨表事务、二级索引或多段键**——每次写入针对一张表或全局槽位;这些扩展列在 Agent Note 的范围外清单中。
|
|
148
|
+
- **没有不兼容值迁移执行器**——`compatibleVersions` 允许当前解码器读取旧数据;消费方在重写选定记录时转换其值。当前版本戳下仍可能包含历史行。后端差异、升级、降级拒绝与移除旧读取器参阅[领域版本](../../../docs/subsystems/storage.zh.md#domain-versioning)。
|
|
149
149
|
|
|
150
150
|
<a id="dev-note"></a>
|
|
151
151
|
### 开发备注
|
|
@@ -279,12 +279,7 @@ var KvTableImpl = class {
|
|
|
279
279
|
if (!this.records.has(key)) return false;
|
|
280
280
|
await this.host.unit.deleteRecord(this.tableName, key);
|
|
281
281
|
this.records.delete(key);
|
|
282
|
-
this.
|
|
283
|
-
domain: this.host.domainName,
|
|
284
|
-
table: this.tableName,
|
|
285
|
-
key,
|
|
286
|
-
operation: "deleted"
|
|
287
|
-
});
|
|
282
|
+
this.emitDeleted(key);
|
|
288
283
|
return true;
|
|
289
284
|
});
|
|
290
285
|
}
|
|
@@ -294,12 +289,7 @@ var KvTableImpl = class {
|
|
|
294
289
|
if (present.length === 0) return 0;
|
|
295
290
|
await this.host.unit.deleteRecords(this.tableName, present);
|
|
296
291
|
for (const key of present) this.records.delete(key);
|
|
297
|
-
for (const key of present) this.
|
|
298
|
-
domain: this.host.domainName,
|
|
299
|
-
table: this.tableName,
|
|
300
|
-
key,
|
|
301
|
-
operation: "deleted"
|
|
302
|
-
});
|
|
292
|
+
for (const key of present) this.emitDeleted(key);
|
|
303
293
|
return present.length;
|
|
304
294
|
});
|
|
305
295
|
}
|
|
@@ -322,6 +312,14 @@ var KvTableImpl = class {
|
|
|
322
312
|
value
|
|
323
313
|
});
|
|
324
314
|
}
|
|
315
|
+
emitDeleted(key) {
|
|
316
|
+
this.host.emitChanged({
|
|
317
|
+
domain: this.host.domainName,
|
|
318
|
+
table: this.tableName,
|
|
319
|
+
key,
|
|
320
|
+
operation: "deleted"
|
|
321
|
+
});
|
|
322
|
+
}
|
|
325
323
|
};
|
|
326
324
|
//#endregion
|
|
327
325
|
//#region lib/types/index.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-storage-domain",
|
|
3
3
|
"description": "Domain data form (ctx.storage.domain): schema-validated, event-emitting KV domains over storage backends for the DeepSeek Harness",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@deepseek-ai/dsh-storage": "0.2.
|
|
33
|
-
"@deepseek-ai/cordis": "4.0.
|
|
32
|
+
"@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
|
|
33
|
+
"@deepseek-ai/cordis": "4.0.6-alpha.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@deepseek-ai/schemastery": "3.18.
|
|
36
|
+
"@deepseek-ai/schemastery": "3.18.6-alpha.1",
|
|
37
37
|
"zod": "4.4.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@deepseek-ai/dsh-storage": "0.2.
|
|
41
|
-
"@deepseek-ai/cordis": "4.0.
|
|
40
|
+
"@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
|
|
41
|
+
"@deepseek-ai/cordis": "4.0.6-alpha.1"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
en: b04256279a328d19
|
|
10
10
|
zh: b0913489b49403b1
|
|
11
11
|
/deepseek-ai-dsh-storage-json/summary:
|
|
12
|
-
en:
|
|
13
|
-
zh:
|
|
12
|
+
en: ba875a866989d7d8
|
|
13
|
+
zh: 92e94db1d3d3577e
|
|
14
14
|
/deepseek-ai-dsh-storage-json/table-of-contents:
|
|
15
15
|
en: d152484eb41ac6b4
|
|
16
16
|
zh: 09388d293f9be9cb
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
en: 87ddc847b7024cac
|
|
19
19
|
zh: 6e97d0f216587d5b
|
|
20
20
|
/deepseek-ai-dsh-storage-json/use-this-package/when-to-choose-it:
|
|
21
|
-
en:
|
|
22
|
-
zh:
|
|
21
|
+
en: 40e60fa139e0d6f6
|
|
22
|
+
zh: 0c4ce58c26ee4bf7
|
|
23
23
|
/deepseek-ai-dsh-storage-json/use-this-package/configuration:
|
|
24
24
|
en: 7144aa3b5af76874
|
|
25
25
|
zh: dfc528d027f86037
|
|
26
26
|
/deepseek-ai-dsh-storage-json/use-this-package/observable-behavior:
|
|
27
|
-
en:
|
|
28
|
-
zh:
|
|
27
|
+
en: 79d83481397cb10b
|
|
28
|
+
zh: e160178363a57ba6
|
|
29
29
|
/deepseek-ai-dsh-storage-json/understand-the-implementation:
|
|
30
30
|
en: b7d222309b3e5438
|
|
31
31
|
zh: 807c7314ee341d94
|
|
32
32
|
/deepseek-ai-dsh-storage-json/understand-the-implementation/design-concept:
|
|
33
|
-
en:
|
|
34
|
-
zh:
|
|
33
|
+
en: 975a4b005d9f8d0d
|
|
34
|
+
zh: 71127701477ae358
|
|
35
35
|
/deepseek-ai-dsh-storage-json/understand-the-implementation/file-formats:
|
|
36
36
|
en: b3de0a697db4f916
|
|
37
37
|
zh: 56b26f7823392bd5
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
en: c13c59d13a5f1651
|
|
58
58
|
zh: 5aab838ae3ff5324
|
|
59
59
|
/deepseek-ai-dsh-storage-json/known-limitations-and-deferred-work:
|
|
60
|
-
en:
|
|
61
|
-
zh:
|
|
60
|
+
en: 073ca8d8c9bb8123
|
|
61
|
+
zh: 088ca8438f11ce6c
|
|
62
62
|
/deepseek-ai-dsh-storage-json/known-limitations-and-deferred-work/dev-note:
|
|
63
63
|
en: dd40dd4cb9109aea
|
|
64
64
|
zh: 3fd79d2242eccadb
|
|
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
|
|
|
9
9
|
|
|
10
10
|
## Summary
|
|
11
11
|
|
|
12
|
-
`dsh-storage-json` stores domain data as readable JSON under a configured root and registers as backend `json`. Its default `single` layout keeps one complete `<unit>.json` file per unit; its `per-record` layout keeps one version-stamped document per record. Both layouts publish each changed file atomically, while the domain layer orders calls. Choose it when operators need inspectable files and the selected layout fits the write volume; choose SQLite for larger
|
|
12
|
+
`dsh-storage-json` stores domain data as readable JSON under a configured root and registers as backend `json`. Its default `single` layout keeps one complete `<unit>.json` file per unit; its `per-record` layout keeps one version-stamped document per record. Both layouts publish each changed file atomically, while the domain layer orders calls. Choose it when operators need inspectable files and the selected layout fits the write volume; choose SQLite for larger, frequently updated units. The backend is host-side only and contributes no prompt, tool, or schema.
|
|
13
13
|
|
|
14
14
|
## Table of Contents
|
|
15
15
|
|
|
@@ -29,7 +29,7 @@ Use this package when a composition needs readable, editable JSON storage. Route
|
|
|
29
29
|
|
|
30
30
|
### When to choose it
|
|
31
31
|
|
|
32
|
-
Choose the default `single` layout for small units that benefit from one complete, pretty-printed file. Choose `per-record`
|
|
32
|
+
Choose the default `single` layout for small units that benefit from one complete, pretty-printed file. Choose `per-record` for disposable records whose point writes should replace only one document; unsupported or unreadable documents read as absent. Choose SQLite for frequent point updates in large units. The domain API has no multi-record transaction operation on either backend.
|
|
33
33
|
|
|
34
34
|
### Configuration
|
|
35
35
|
|
|
@@ -53,9 +53,11 @@ The generated [configuration catalog](../../../docs/config-catalog.md#deepseek-a
|
|
|
53
53
|
|
|
54
54
|
### Observable behavior
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
Without a legacy bootstrap, a missing `single` file or `per-record` directory opens as an empty unit and materializes on the first write. In `single`, malformed content rejects with `malformed-medium`, and a stored version outside the current and `compatibleVersions` set rejects with `version-mismatch`. An accepted older file stays unchanged on read; the next atomic write stamps the current version and preserves untouched values in declared tables. Deleting missing keys or an empty batch does not restamp. In `per-record`, each malformed or unreadable document, and each document whose version is outside the accepted set, reads as an absent record, so one bad document does not reject the unit. Version refusal does not delete the document. Per-record keys must match `[a-zA-Z0-9_-]+`; an unsafe key rejects before any file operation. Resolved writes are durable; `per-record` deletions sync their directory changes on POSIX before resolving. A batch interrupted before resolution can be partially applied. A batch that cannot restore its readable or durable state rejects with `unknown-state`, after which every later operation except `close()` rejects; calls after close reject with `closed`.
|
|
57
57
|
|
|
58
|
-
An
|
|
58
|
+
An unmaterialized `per-record` tree can initialize its declared tables from a valid `<root>/<unit>.json` whole-unit document only when the source unit name matches and its version is current or declared compatible. This bootstrap writes during loading: it leaves the source file unchanged and copies stored values into current-stamped documents without converting them. A source version outside the accepted set leaves the new tree empty. Any declared table directory, even when empty, or a declared `global.json` suppresses this initialization for the complete unit. Deleted records therefore remain absent while the retained source file stays unchanged.
|
|
59
|
+
|
|
60
|
+
A synchronous serialization failure restores the open `single` unit's previous memory and permits retry on that handle. An I/O failure can occur after file replacement, so a rejected write does not prove that disk data or its stamp stayed unchanged. Stop using and close the backend and its domains, then reopen to reload saved state before deciding whether to retry. See [domain versioning](../../../docs/subsystems/storage.md#domain-versioning) for mixed records and downgrade behavior.
|
|
59
61
|
|
|
60
62
|
-----
|
|
61
63
|
|
|
@@ -69,8 +71,8 @@ The two layouts share atomic publication but assign state ownership differently.
|
|
|
69
71
|
|
|
70
72
|
### Design concept
|
|
71
73
|
|
|
72
|
-
- **`single` keeps memory authoritative.** Each write changes the in-memory unit, serializes its complete state, and atomically replaces `<unit>.json`. A
|
|
73
|
-
- **`per-record` keeps the directory authoritative.** Each put or delete changes one `<unit>/<table>/<key>.json` document, and `loadAll()` rereads the tree. A batch delete renames the batch's documents out of the readable set,
|
|
74
|
+
- **`single` keeps memory authoritative.** Each write changes the in-memory unit, serializes its complete state, and atomically replaces `<unit>.json`. A batch delete publishes once. Serialization failures restore every affected in-memory value; uncertain I/O outcomes require reopening instead of continuing from that snapshot.
|
|
75
|
+
- **`per-record` keeps the directory authoritative.** Each put or delete changes one `<unit>/<table>/<key>.json` document, and `loadAll()` rereads the tree. A batch delete renames the batch's documents out of the readable set, syncs the directory on POSIX, then unlinks the staged copies. A failed staging or sync restores the documents and syncs the restored directory. If that restoration or sync fails, the unit rejects with `unknown-state` and every later operation on it except `close()` rejects. Each document stamps the unit version and carries one record value.
|
|
74
76
|
- **Publication is durable per call.** A write uses a temporary file, fsync, atomic `rename()` replacement, and a parent-directory fsync on POSIX. The domain layer's write chain supplies ordering across calls.
|
|
75
77
|
|
|
76
78
|
### File formats
|
|
@@ -140,7 +142,7 @@ These limits define when this backend is a poor fit or needs special operational
|
|
|
140
142
|
- **`single` rewrites the whole unit** — each write republishes the complete unit file; use `per-record` or route the domain to SQLite when this cost is too high.
|
|
141
143
|
- **No cross-process write locking** — two processes writing the same unit can interleave replacements; writes to the same file use last-completion wins.
|
|
142
144
|
- **Windows rename without explicit write-through** — durability relies on libuv's `rename()` (`MoveFileExW` with replacement); the stricter Win32 write-through publish helper from the session-log backend is planned to move down here when the `log` facet lands.
|
|
143
|
-
-
|
|
145
|
+
- **No crash-atomic `per-record` batch** — a crash before deletion resolves can leave a partial batch and `.deleting` residue. Completed deletions sync the staged directory changes on POSIX; cleanup residue is unreadable.
|
|
144
146
|
|
|
145
147
|
<a id="dev-note"></a>
|
|
146
148
|
### Dev Note
|
|
@@ -9,7 +9,7 @@ kind: "package-reference"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
`dsh-storage-json` 在配置的根目录下把领域数据存为可读 JSON,并注册为后端 `json`。默认的 `single` 布局为每个单元保存一份完整的 `<unit>.json` 文件;`per-record`
|
|
12
|
+
`dsh-storage-json` 在配置的根目录下把领域数据存为可读 JSON,并注册为后端 `json`。默认的 `single` 布局为每个单元保存一份完整的 `<unit>.json` 文件;`per-record` 布局为每条记录保存一份带版本戳的文档。两种布局都以原子方式发布每个变更文件,领域层负责安排调用顺序。当运维方需要可检查文件且所选布局适合写入量时选择它;对于更大且频繁更新的单元则选择 SQLite。本后端只面向宿主侧,不贡献提示词、工具或 schema。
|
|
13
13
|
|
|
14
14
|
## 目录
|
|
15
15
|
|
|
@@ -29,7 +29,7 @@ kind: "package-reference"
|
|
|
29
29
|
|
|
30
30
|
### 何时选择
|
|
31
31
|
|
|
32
|
-
小型单元需要一份完整、美化打印的文件时,选择默认的 `single`
|
|
32
|
+
小型单元需要一份完整、美化打印的文件时,选择默认的 `single` 布局。可丢弃记录的定点写入只需替换一份文档时,选择 `per-record`;不支持或不可读的文档会读作不存在。大型单元需要频繁定点更新时,选择 SQLite。领域 API 在两种后端上都没有多记录事务操作。
|
|
33
33
|
|
|
34
34
|
### 配置
|
|
35
35
|
|
|
@@ -53,9 +53,11 @@ kind: "package-reference"
|
|
|
53
53
|
|
|
54
54
|
### 可观察行为
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
没有旧文件引导时,缺失的 `single` 文件或 `per-record` 目录会作为空单元打开,并在第一次写入时物化。在 `single` 中,畸形内容以 `malformed-medium` 拒绝,已存版本不在当前版本和 `compatibleVersions` 集合内时以 `version-mismatch` 拒绝。读取接受的旧文件时保持原状;下一次原子写入使用当前版本戳,保留已声明表中未改动记录的原值。删除不存在的键或空批次不会重新盖戳。在 `per-record` 中,每份畸形或不可读的文档,以及版本不在接受集合内的文档,都读作记录不存在,因此单个坏文档不会使单元被拒绝。版本拒绝不会删除文档。逐记录布局的键必须匹配 `[a-zA-Z0-9_-]+`;不安全的键在任何文件操作前被拒绝。写入完成后即已持久化;`per-record` 删除在完成前会在 POSIX 上同步目录变更。在完成前中断的批次可能只应用一部分。无法恢复可读或持久状态的批量删除以 `unknown-state` 拒绝,之后除 `close()` 外的所有操作都会拒绝;关闭后的调用以 `closed` 拒绝。
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
只有当源单元名称匹配,且源版本为当前版本或已声明的兼容版本时,尚未物化的 `per-record` 目录树才可以从有效的 `<root>/<unit>.json` 整单元文档初始化其已声明表。该引导会在加载时写入:它保持源文件不变,并把已存值复制到当前版本戳的文档中,不转换其中的值。接受集合之外的源版本会使新目录树保持为空。只要存在任意已声明表的目录(即使为空),或已声明的 `global.json`,就会对整个单元禁止该初始化。因此删除的记录会保持缺失,同时保留的源文件不变。
|
|
59
|
+
|
|
60
|
+
同步序列化失败会恢复已打开 `single` 单元先前的内存状态,允许在同一句柄上重试。I/O 失败可能发生在文件替换之后,因此写入被拒绝并不能证明磁盘数据或版本戳保持不变。必须停止使用并关闭后端及其领域,然后重新打开以加载已存状态,再决定是否重试。混合记录与降级行为参阅[领域版本](../../../docs/subsystems/storage.zh.md#domain-versioning)。
|
|
59
61
|
|
|
60
62
|
-----
|
|
61
63
|
|
|
@@ -69,8 +71,8 @@ kind: "package-reference"
|
|
|
69
71
|
|
|
70
72
|
### 设计理念
|
|
71
73
|
|
|
72
|
-
- **`single` 以内存为权威状态。** 每次写入都会更改内存单元、序列化其完整状态,并以原子方式替换 `<unit>.json
|
|
73
|
-
- **`per-record` 以目录为权威状态。** 每次 put 或 delete 都会更改一个 `<unit>/<table>/<key>.json` 文档,`loadAll()`
|
|
74
|
+
- **`single` 以内存为权威状态。** 每次写入都会更改内存单元、序列化其完整状态,并以原子方式替换 `<unit>.json`。批量删除只发布一次。序列化失败会恢复所有受影响的内存值;I/O 结果不确定时必须重新打开,不能继续使用该快照。
|
|
75
|
+
- **`per-record` 以目录为权威状态。** 每次 put 或 delete 都会更改一个 `<unit>/<table>/<key>.json` 文档,`loadAll()` 则重新读取目录树。每份文档都带有单元版本戳与一条记录值。批量删除先把整批文档改名移出可读集合,在 POSIX 上同步目录,然后删除暂存副本。暂存或同步失败时会恢复文档,并同步恢复后的目录;恢复或同步失败时该 unit 以 `unknown-state` 拒绝,之后除 `close()` 外对它的所有操作都会拒绝。
|
|
74
76
|
- **每次调用都持久发布。** 写入过程使用临时文件、fsync、原子 `rename()` 替换,并在 POSIX 上 fsync 父目录。领域层写入链负责安排跨调用的顺序。
|
|
75
77
|
|
|
76
78
|
### 文件格式
|
|
@@ -140,7 +142,7 @@ kind: "package-reference"
|
|
|
140
142
|
- **`single` 会重写整个单元**——每次写入都重新发布完整单元文件;当此成本过高时,使用 `per-record` 或把领域路由到 SQLite。
|
|
141
143
|
- **没有跨进程写锁**——两个进程写入同一单元时可能交错执行替换;对同一文件的写入以最后完成者为准。
|
|
142
144
|
- **Windows rename 没有显式 write-through**——持久性依赖 libuv 的 `rename()`(`MoveFileExW` 并启用替换);`log` 分面落地时,计划把会话日志后端更严格的 Win32 write-through 发布辅助函数下移到此处。
|
|
143
|
-
- **`per-record`
|
|
145
|
+
- **`per-record` 批次不保证崩溃原子性**——删除完成前崩溃可能留下部分批次与 `.deleting` 残留。已完成的删除会在 POSIX 上同步暂存后的目录变更;清理残留不可读。
|
|
144
146
|
|
|
145
147
|
<a id="dev-note"></a>
|
|
146
148
|
### 开发备注
|
|
@@ -39,7 +39,11 @@ async function writeAtomic(path, data) {
|
|
|
39
39
|
throw error;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* Persist directory-entry changes on POSIX; skip this unsupported operation on Windows.
|
|
44
|
+
* @param path - Absolute directory path.
|
|
45
|
+
* @returns resolution after the directory is synced, or immediately on Windows.
|
|
46
|
+
*/
|
|
43
47
|
/* v8 ignore start -- Windows rejects O_RDONLY directory opens; POSIX coverage exercises this. */
|
|
44
48
|
async function fsyncDirectory(path) {
|
|
45
49
|
if (process.platform === "win32") return;
|
|
@@ -85,7 +89,7 @@ function serialize(name, state) {
|
|
|
85
89
|
/**
|
|
86
90
|
* Parse file content into unit state, validating shape and version.
|
|
87
91
|
* @param text - Raw file content.
|
|
88
|
-
* @param descriptor - Expected identity
|
|
92
|
+
* @param descriptor - Expected identity and accepted current or compatible versions.
|
|
89
93
|
* @returns the parsed state.
|
|
90
94
|
*/
|
|
91
95
|
function parse(text, descriptor) {
|
|
@@ -99,7 +103,7 @@ function parse(text, descriptor) {
|
|
|
99
103
|
const { unit, global: globalValue, tables } = document;
|
|
100
104
|
if (typeof unit !== "object" || unit === null || unit["name"] !== descriptor.name || typeof unit["version"] !== "number") throw new StorageError("malformed-medium", `unit '${descriptor.name}': missing or foreign unit header`);
|
|
101
105
|
const version = unit["version"];
|
|
102
|
-
if (version !== descriptor.version) throw new StorageError("version-mismatch", `unit '${descriptor.name}': stored version ${version}
|
|
106
|
+
if (version !== descriptor.version && !descriptor.compatibleVersions?.includes(version)) throw new StorageError("version-mismatch", `unit '${descriptor.name}': stored version ${version} is not accepted by version ${descriptor.version}`);
|
|
103
107
|
if (typeof tables !== "object" || tables === null || Array.isArray(tables)) throw new StorageError("malformed-medium", `unit '${descriptor.name}': tables is not an object`);
|
|
104
108
|
const state = {
|
|
105
109
|
version,
|
|
@@ -184,11 +188,13 @@ async function openSingleUnit(descriptor, root, onClose) {
|
|
|
184
188
|
} catch (error) {
|
|
185
189
|
if (error.code !== "ENOENT") throw error;
|
|
186
190
|
}
|
|
187
|
-
|
|
191
|
+
const state = text === void 0 ? {
|
|
188
192
|
version: descriptor.version,
|
|
189
193
|
global: null,
|
|
190
194
|
tables: new Map(descriptor.tables.map((table) => [table, /* @__PURE__ */ new Map()]))
|
|
191
|
-
} : parse(text, descriptor)
|
|
195
|
+
} : parse(text, descriptor);
|
|
196
|
+
state.version = descriptor.version;
|
|
197
|
+
return new SingleJsonUnit(descriptor, path, state, onClose);
|
|
192
198
|
}
|
|
193
199
|
var SingleJsonUnit = class {
|
|
194
200
|
descriptor;
|
|
@@ -225,16 +231,8 @@ var SingleJsonUnit = class {
|
|
|
225
231
|
throw error;
|
|
226
232
|
});
|
|
227
233
|
}
|
|
228
|
-
|
|
229
|
-
this.
|
|
230
|
-
const records = this.records(table);
|
|
231
|
-
if (!records.has(key)) return;
|
|
232
|
-
const previous = records.get(key);
|
|
233
|
-
records.delete(key);
|
|
234
|
-
await this.publish().catch((error) => {
|
|
235
|
-
records.set(key, previous);
|
|
236
|
-
throw error;
|
|
237
|
-
});
|
|
234
|
+
deleteRecord(table, key) {
|
|
235
|
+
return this.deleteRecords(table, [key]);
|
|
238
236
|
}
|
|
239
237
|
async deleteRecords(table, keys) {
|
|
240
238
|
this.assertOpen();
|
|
@@ -278,7 +276,7 @@ var SingleJsonUnit = class {
|
|
|
278
276
|
if (!records) throw new Error(`unit '${this.descriptor.name}' does not declare table '${table}'`);
|
|
279
277
|
return records;
|
|
280
278
|
}
|
|
281
|
-
publish() {
|
|
279
|
+
async publish() {
|
|
282
280
|
const write = writeAtomic(this.path, serialize(this.descriptor.name, this.state));
|
|
283
281
|
this.inFlight.add(write);
|
|
284
282
|
write.catch(() => {}).finally(() => this.inFlight.delete(write));
|
|
@@ -295,9 +293,9 @@ var SingleJsonUnit = class {
|
|
|
295
293
|
* put or delete touches one durable document, and a batch delete renames its
|
|
296
294
|
* documents out of the readable set before unlinking them. The domain layer owns the live
|
|
297
295
|
* in-memory tables (seeded by the open-time `loadAll`) and serializes writes
|
|
298
|
-
* through its write chain
|
|
299
|
-
*
|
|
300
|
-
*
|
|
296
|
+
* through its write chain. A rejected write leaves domain memory unchanged;
|
|
297
|
+
* a failed deletion restores its staged documents or quarantines the unit
|
|
298
|
+
* with `unknown-state` when restoration cannot be established.
|
|
301
299
|
*
|
|
302
300
|
* Per-record contract: a record document that is malformed or stamped with a
|
|
303
301
|
* version outside the accepted set (the descriptor's current version plus
|
|
@@ -306,13 +304,13 @@ var SingleJsonUnit = class {
|
|
|
306
304
|
* the record instead of migrating it. Record keys become path segments, so
|
|
307
305
|
* they must be path-safe (`[a-zA-Z0-9_-]+`); an unsafe key rejects at write.
|
|
308
306
|
*
|
|
309
|
-
* Legacy bootstrap: when the new tree has no
|
|
310
|
-
* whole-unit file `<root>/<name>.json`
|
|
307
|
+
* Legacy bootstrap: when the new tree has no declared table directory or
|
|
308
|
+
* global document, a whole-unit file `<root>/<name>.json` seeds
|
|
311
309
|
* per-record documents, provided its stored unit version is in the accepted
|
|
312
310
|
* set — a legacy file stamped with any other version is left alone and reads
|
|
313
|
-
* as the empty unit.
|
|
314
|
-
*
|
|
315
|
-
* legacy file is never changed or deleted.
|
|
311
|
+
* as the empty unit. An existing declared table directory, even when empty,
|
|
312
|
+
* or a declared global document suppresses the bootstrap for the whole unit.
|
|
313
|
+
* The legacy file is never changed or deleted.
|
|
316
314
|
* @module @deepseek-ai/dsh-storage-json/src/per-record-unit
|
|
317
315
|
*/
|
|
318
316
|
/** Keys become path segments in this layout; this set is path-safe on every OS. */
|
|
@@ -355,7 +353,10 @@ async function loadPerRecordState(descriptor, dir) {
|
|
|
355
353
|
if (!(entries === void 0 ? false : (await Promise.all(entries.map(async (entry) => {
|
|
356
354
|
if (entry.isDirectory()) {
|
|
357
355
|
const records = state.tables.get(entry.name);
|
|
358
|
-
if (records !== void 0)
|
|
356
|
+
if (records !== void 0) {
|
|
357
|
+
await loadTableRecords(records, versions, join(dir, entry.name));
|
|
358
|
+
return true;
|
|
359
|
+
}
|
|
359
360
|
}
|
|
360
361
|
if (entry.name === "global.json" && descriptor.hasGlobal) {
|
|
361
362
|
const global = await readRecord(join(dir, entry.name), versions);
|
|
@@ -371,7 +372,7 @@ function acceptedStamps(descriptor) {
|
|
|
371
372
|
return [descriptor.version, ...descriptor.compatibleVersions ?? []];
|
|
372
373
|
}
|
|
373
374
|
/**
|
|
374
|
-
* Bootstrap an
|
|
375
|
+
* Bootstrap an unmaterialized per-record tree from a legacy whole-unit file
|
|
375
376
|
* (`<root>/<name>.json`, the pre-per-record layout). Every declared-table
|
|
376
377
|
* record is copied into a current-version document, while the legacy file is
|
|
377
378
|
* retained unchanged. A missing, foreign (another unit's name), malformed,
|
|
@@ -421,12 +422,9 @@ async function bootstrapLegacyUnit(descriptor, dir, state) {
|
|
|
421
422
|
}
|
|
422
423
|
/**
|
|
423
424
|
* Read one declared table's record documents into `records`.
|
|
424
|
-
* @returns whether the directory contains any `.json` document path,
|
|
425
|
-
* independently of key safety, readability, or stored version.
|
|
426
425
|
*/
|
|
427
426
|
async function loadTableRecords(records, versions, dir) {
|
|
428
427
|
const files = await readdir(dir, { withFileTypes: true });
|
|
429
|
-
const hasDocuments = files.some((file) => file.name.endsWith(".json"));
|
|
430
428
|
const loaded = await Promise.all(files.map(async (file) => {
|
|
431
429
|
if (!file.name.endsWith(".json")) return;
|
|
432
430
|
const key = file.name.slice(0, -5);
|
|
@@ -435,7 +433,6 @@ async function loadTableRecords(records, versions, dir) {
|
|
|
435
433
|
if (record !== void 0) return [key, record];
|
|
436
434
|
}));
|
|
437
435
|
for (const record of loaded) if (record !== void 0) records.set(...record);
|
|
438
|
-
return hasDocuments;
|
|
439
436
|
}
|
|
440
437
|
/** Read one record document; a foreign (unreadable or stale) one reads as absent. */
|
|
441
438
|
async function readRecord(path, versions) {
|
|
@@ -447,9 +444,9 @@ async function readRecord(path, versions) {
|
|
|
447
444
|
}
|
|
448
445
|
/**
|
|
449
446
|
* One opened `per-record`-layout unit. Stateless by design: the directory is
|
|
450
|
-
* the medium
|
|
451
|
-
*
|
|
452
|
-
* domain layer's write chain)
|
|
447
|
+
* the medium and the domain layer owns the live memory. Replacements publish
|
|
448
|
+
* one document; deletions stage and sync their documents before cleanup.
|
|
449
|
+
* Write ordering belongs to the caller (the domain layer's write chain).
|
|
453
450
|
*/
|
|
454
451
|
var PerRecordJsonUnit = class {
|
|
455
452
|
descriptor;
|
|
@@ -483,20 +480,19 @@ var PerRecordJsonUnit = class {
|
|
|
483
480
|
await this.tracked(this.writeDocument(join(this.tableDir(table), `${key}.json`), value));
|
|
484
481
|
}
|
|
485
482
|
/** Durably delete one record. Idempotent: a missing key is a no-op. */
|
|
486
|
-
|
|
487
|
-
this.
|
|
488
|
-
assertSafeKey(this.descriptor.name, key);
|
|
489
|
-
await this.tracked(rm(join(this.tableDir(table), `${key}.json`), { force: true }));
|
|
483
|
+
deleteRecord(table, key) {
|
|
484
|
+
return this.deleteRecords(table, [key]);
|
|
490
485
|
}
|
|
491
486
|
/**
|
|
492
487
|
* Durably delete many records as one batch. Documents are renamed out of the
|
|
493
488
|
* readable set first; only after the whole batch is staged are the staged
|
|
494
489
|
* copies unlinked. A failure while staging restores the documents it moved,
|
|
495
490
|
* so a rejection normally leaves the batch unapplied. If that restoration
|
|
496
|
-
* itself fails, the readable state is unknown: the unit rejects with
|
|
491
|
+
* itself fails, the readable or durable state is unknown: the unit rejects with
|
|
497
492
|
* `unknown-state` and every later operation on it rejects, while `close`
|
|
498
|
-
* still releases it.
|
|
499
|
-
*
|
|
493
|
+
* still releases it. Staged directory changes are synced before cleanup on
|
|
494
|
+
* POSIX, so a resolved deletion remains absent after a crash. Cleanup residue
|
|
495
|
+
* is not readable (`open` reads `*.json` documents only).
|
|
500
496
|
*/
|
|
501
497
|
async deleteRecords(table, keys) {
|
|
502
498
|
this.assertOpen();
|
|
@@ -527,6 +523,7 @@ var PerRecordJsonUnit = class {
|
|
|
527
523
|
to
|
|
528
524
|
});
|
|
529
525
|
}
|
|
526
|
+
if (staged.length > 0) await fsyncDirectory(dir);
|
|
530
527
|
} catch (error) {
|
|
531
528
|
const restoreFailures = [];
|
|
532
529
|
for (const { from, to } of staged) try {
|
|
@@ -534,8 +531,13 @@ var PerRecordJsonUnit = class {
|
|
|
534
531
|
} catch (restoreError) {
|
|
535
532
|
restoreFailures.push(restoreError);
|
|
536
533
|
}
|
|
534
|
+
if (staged.length > 0) try {
|
|
535
|
+
await fsyncDirectory(dir);
|
|
536
|
+
} catch (restoreError) {
|
|
537
|
+
restoreFailures.push(restoreError);
|
|
538
|
+
}
|
|
537
539
|
if (restoreFailures.length === 0) throw error;
|
|
538
|
-
this.unusable = new StorageError("unknown-state", `unit '${this.descriptor.name}' could not restore
|
|
540
|
+
this.unusable = new StorageError("unknown-state", `unit '${this.descriptor.name}' could not restore a failed batch delete; its state is unknown`, { cause: new AggregateError([error, ...restoreFailures], "batch delete failed and restoration failed") });
|
|
539
541
|
throw this.unusable;
|
|
540
542
|
}
|
|
541
543
|
await Promise.allSettled(staged.map(({ to }) => rm(to, { force: true })));
|
|
@@ -581,14 +583,13 @@ var PerRecordJsonUnit = class {
|
|
|
581
583
|
return join(this.dir, table);
|
|
582
584
|
}
|
|
583
585
|
/** Durably replace one document, creating its parent directory. */
|
|
584
|
-
writeDocument(path, value) {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
})();
|
|
586
|
+
async writeDocument(path, value) {
|
|
587
|
+
const text = serializeRecord(this.descriptor.version, value);
|
|
588
|
+
await mkdir(dirname(path), {
|
|
589
|
+
recursive: true,
|
|
590
|
+
mode: 448
|
|
591
|
+
});
|
|
592
|
+
await writeAtomic(path, text);
|
|
592
593
|
}
|
|
593
594
|
/** Track one durable write so close() drains it. */
|
|
594
595
|
tracked(write) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-storage-json",
|
|
3
3
|
"description": "JSON file KV storage backend for the DeepSeek Harness storage hub",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@deepseek-ai/dsh-storage": "0.2.
|
|
33
|
-
"@deepseek-ai/cordis": "4.0.
|
|
32
|
+
"@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
|
|
33
|
+
"@deepseek-ai/cordis": "4.0.6-alpha.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@deepseek-ai/schemastery": "3.18.
|
|
36
|
+
"@deepseek-ai/schemastery": "3.18.6-alpha.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@deepseek-ai/dsh-storage": "0.2.
|
|
40
|
-
"@deepseek-ai/cordis": "4.0.
|
|
39
|
+
"@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
|
|
40
|
+
"@deepseek-ai/cordis": "4.0.6-alpha.1"
|
|
41
41
|
}
|
|
42
42
|
}
|