@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
|
@@ -6,8 +6,11 @@ import Schema from "@deepseek-ai/schemastery";
|
|
|
6
6
|
import { ComputerUseProviderName } from "@deepseek-ai/dsh-computer-use/brand";
|
|
7
7
|
import { admitEncodedImages } from "@deepseek-ai/dsh-attachment";
|
|
8
8
|
import { z } from "zod";
|
|
9
|
-
import { randomUUID } from "node:crypto";
|
|
9
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
10
10
|
import assert from "node:assert/strict";
|
|
11
|
+
import { realpath } from "node:fs/promises";
|
|
12
|
+
import { defineDomain } from "@deepseek-ai/dsh-storage-domain";
|
|
13
|
+
import { resolvePersistentExecution } from "@deepseek-ai/dsh-ptc-runtime-node/configuration";
|
|
11
14
|
import { Remote, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
|
|
12
15
|
import { UserQuestionError } from "@deepseek-ai/dsh-user-questions";
|
|
13
16
|
import { createScope } from "@deepseek-ai/dsh-scope";
|
|
@@ -292,54 +295,211 @@ var NativeClient = class {
|
|
|
292
295
|
}
|
|
293
296
|
};
|
|
294
297
|
//#endregion
|
|
298
|
+
//#region lib/types/permission-store.js
|
|
299
|
+
/** Profile-scoped application consent over the existing domain storage service. */
|
|
300
|
+
const identity = z.object({
|
|
301
|
+
id: z.string().regex(/^[a-f0-9]{64}$/).transform((value) => value),
|
|
302
|
+
name: z.string(),
|
|
303
|
+
executablePath: z.string().min(1).optional()
|
|
304
|
+
});
|
|
305
|
+
const sessionDecision = z.object({
|
|
306
|
+
identity,
|
|
307
|
+
decision: z.enum([
|
|
308
|
+
"allow",
|
|
309
|
+
"deny",
|
|
310
|
+
"ask"
|
|
311
|
+
]),
|
|
312
|
+
revision: z.number().int().nonnegative()
|
|
313
|
+
});
|
|
314
|
+
const application = z.object({
|
|
315
|
+
revoked: z.number().int().nonnegative(),
|
|
316
|
+
always: identity.optional(),
|
|
317
|
+
sessions: z.record(z.string(), sessionDecision)
|
|
318
|
+
});
|
|
319
|
+
const state = z.object({
|
|
320
|
+
migrated: z.boolean(),
|
|
321
|
+
applications: z.record(z.string().regex(/^[a-f0-9]{64}$/), application)
|
|
322
|
+
}).superRefine((value, context) => {
|
|
323
|
+
for (const [id, app] of Object.entries(value.applications)) if (app.always !== void 0 && app.always.id !== id || Object.values(app.sessions).some((session) => session.identity.id !== id)) context.addIssue({
|
|
324
|
+
code: "custom",
|
|
325
|
+
message: "Application identity does not match its stored key"
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
/**
|
|
329
|
+
* Open fresh domain state under a profile lock for every decision and native operation.
|
|
330
|
+
* Without a profile, only process-local session decisions are writable. A profile requires domain storage.
|
|
331
|
+
*/
|
|
332
|
+
var CuaPermissionStore = class {
|
|
333
|
+
ctx;
|
|
334
|
+
legacy;
|
|
335
|
+
waitMs;
|
|
336
|
+
directory;
|
|
337
|
+
memory;
|
|
338
|
+
pending = /* @__PURE__ */ new Set();
|
|
339
|
+
tail = Promise.resolve();
|
|
340
|
+
/**
|
|
341
|
+
* @param ctx Provider context with optional profile and domain storage services.
|
|
342
|
+
* @param legacy Grants imported on the first access to this profile's store.
|
|
343
|
+
* @param waitMs Existing operation budget, also bounding profile-lock contention.
|
|
344
|
+
*/
|
|
345
|
+
constructor(ctx, legacy, waitMs) {
|
|
346
|
+
this.ctx = ctx;
|
|
347
|
+
this.legacy = legacy;
|
|
348
|
+
this.waitMs = waitMs;
|
|
349
|
+
this.directory = ctx.get("profileContext")?.dir;
|
|
350
|
+
this.memory = this.importLegacy();
|
|
351
|
+
}
|
|
352
|
+
/** Whether this composition can retain application and session grants across restarts. */
|
|
353
|
+
get persistent() {
|
|
354
|
+
return this.directory !== void 0 && this.ctx.get("storageDomain") !== void 0;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Serialize a read, write, or authorized dispatch against all other users of this profile.
|
|
358
|
+
* @param signal Cancellation while waiting; admitted operations own their cancellation.
|
|
359
|
+
* @param operation Work using fresh state. Native dispatch uses its separate application lease.
|
|
360
|
+
* @returns The operation's result after its domain handle has closed.
|
|
361
|
+
*/
|
|
362
|
+
withState(signal, operation) {
|
|
363
|
+
const pending = this.operate(signal, operation);
|
|
364
|
+
this.pending.add(pending);
|
|
365
|
+
pending.finally(() => {
|
|
366
|
+
this.pending.delete(pending);
|
|
367
|
+
}).catch(() => {});
|
|
368
|
+
return pending;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Coordinate native dispatch and whole-application revocation without blocking other applications.
|
|
372
|
+
* @param id Validated native application identity.
|
|
373
|
+
* @param signal Cancellation while waiting for admission.
|
|
374
|
+
* @param operation Authorized dispatch or revocation, after checking fresh state separately.
|
|
375
|
+
* @returns Result after releasing the application lease.
|
|
376
|
+
*/
|
|
377
|
+
withApplication(id, signal, operation) {
|
|
378
|
+
const pending = (async () => {
|
|
379
|
+
signal.throwIfAborted();
|
|
380
|
+
if (this.directory === void 0) return operation();
|
|
381
|
+
return withFileLock(join(await realpath(this.directory), `cua-application-${id}`), operation, {
|
|
382
|
+
signal,
|
|
383
|
+
waitMs: this.waitMs
|
|
384
|
+
});
|
|
385
|
+
})();
|
|
386
|
+
this.pending.add(pending);
|
|
387
|
+
pending.finally(() => {
|
|
388
|
+
this.pending.delete(pending);
|
|
389
|
+
}).catch(() => {});
|
|
390
|
+
return pending;
|
|
391
|
+
}
|
|
392
|
+
/** Join accepted operations before withdrawing this provider. */
|
|
393
|
+
async drain() {
|
|
394
|
+
await Promise.allSettled(this.pending);
|
|
395
|
+
}
|
|
396
|
+
async operate(signal, operation) {
|
|
397
|
+
if (this.directory === void 0) {
|
|
398
|
+
const run = async () => {
|
|
399
|
+
signal.throwIfAborted();
|
|
400
|
+
return operation({
|
|
401
|
+
state: this.memory,
|
|
402
|
+
save: (next) => {
|
|
403
|
+
this.memory = next;
|
|
404
|
+
return Promise.resolve();
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
};
|
|
408
|
+
const pending = this.tail.then(run);
|
|
409
|
+
this.tail = pending.then(() => {}, () => {});
|
|
410
|
+
return pending;
|
|
411
|
+
}
|
|
412
|
+
const storage = this.ctx.get("storageDomain");
|
|
413
|
+
if (storage === void 0) throw new Error("Profile application permissions require storageDomain");
|
|
414
|
+
const directory = await realpath(this.directory);
|
|
415
|
+
const spec = defineDomain({
|
|
416
|
+
name: `cua_permissions_${createHash("sha256").update(directory).digest("hex")}`,
|
|
417
|
+
version: 1,
|
|
418
|
+
tables: {},
|
|
419
|
+
global: {
|
|
420
|
+
schema: state,
|
|
421
|
+
initial: {
|
|
422
|
+
migrated: false,
|
|
423
|
+
applications: {}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
return withFileLock(join(directory, "cua-permissions"), async () => {
|
|
428
|
+
const domain = await storage.open(spec);
|
|
429
|
+
try {
|
|
430
|
+
if (!domain.global.get().migrated) await domain.global.set(this.importLegacy());
|
|
431
|
+
return await operation({
|
|
432
|
+
state: domain.global.get(),
|
|
433
|
+
save: (next) => domain.global.set(next)
|
|
434
|
+
});
|
|
435
|
+
} finally {
|
|
436
|
+
await domain.close();
|
|
437
|
+
}
|
|
438
|
+
}, {
|
|
439
|
+
signal,
|
|
440
|
+
waitMs: this.waitMs
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
importLegacy() {
|
|
444
|
+
return {
|
|
445
|
+
migrated: true,
|
|
446
|
+
applications: Object.fromEntries(this.legacy.map((grant) => [grant.id, {
|
|
447
|
+
revoked: 0,
|
|
448
|
+
always: grant,
|
|
449
|
+
sessions: {}
|
|
450
|
+
}]))
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
//#endregion
|
|
295
455
|
//#region lib/types/locales.js
|
|
296
456
|
/** Locale-owned application-access approval messages. */
|
|
297
457
|
/** English application-access messages. */
|
|
298
458
|
const en = {
|
|
299
459
|
question: "Allow computer use to launch, read, capture and control this application?",
|
|
300
|
-
detail: "
|
|
460
|
+
detail: "Allowing or denying applies to every version and copy sharing the same application identity. Session access and denial apply only to this conversation.",
|
|
301
461
|
approve: "Allow for this session"
|
|
302
462
|
};
|
|
303
463
|
/** Chinese application-access messages. */
|
|
304
464
|
const zh = {
|
|
305
465
|
question: "允许 Computer Use 启动、读取、截图和控制此应用吗?",
|
|
306
|
-
detail: "
|
|
466
|
+
detail: "允许或拒绝会应用于同一应用标识的所有版本和副本。会话许可和拒绝仅在当前对话中生效。",
|
|
307
467
|
approve: "本会话允许"
|
|
308
468
|
};
|
|
309
469
|
/** Japanese application-access messages. */
|
|
310
470
|
const ja = {
|
|
311
471
|
question: "Computer Use によるこのアプリの起動、読み取り、画面キャプチャ、操作を許可しますか?",
|
|
312
|
-
detail: "
|
|
472
|
+
detail: "許可または拒否は、同じアプリ識別子を持つすべてのバージョンとコピーに適用されます。セッションの許可と拒否はこの会話にのみ適用されます。",
|
|
313
473
|
approve: "このセッションで許可"
|
|
314
474
|
};
|
|
315
475
|
/** Spanish dictionary, checked against the English keys. */
|
|
316
476
|
const es = {
|
|
317
477
|
question: "¿Permitir que Computer Use inicie, lea, capture y controle esta aplicación?",
|
|
318
|
-
detail: "
|
|
478
|
+
detail: "Permitir o denegar se aplica a todas las versiones y copias que comparten la misma identidad de aplicación. El acceso de sesión y la denegación solo se aplican a esta conversación.",
|
|
319
479
|
approve: "Permitir durante esta sesión"
|
|
320
480
|
};
|
|
321
481
|
/** French dictionary, checked against the English keys. */
|
|
322
482
|
const fr = {
|
|
323
483
|
question: "Autoriser Computer Use à lancer, lire, capturer et contrôler cette application ?",
|
|
324
|
-
detail: "L’autorisation
|
|
484
|
+
detail: "L’autorisation ou le refus s’applique à toutes les versions et copies partageant la même identité d’application. L’autorisation de session et le refus s’appliquent uniquement à cette conversation.",
|
|
325
485
|
approve: "Autoriser pour cette session"
|
|
326
486
|
};
|
|
327
487
|
/** German dictionary, checked against the English keys. */
|
|
328
488
|
const de = {
|
|
329
489
|
question: "Darf Computer Use diese Anwendung starten, lesen, aufnehmen und steuern?",
|
|
330
|
-
detail: "
|
|
490
|
+
detail: "Erlauben oder Ablehnen gilt für alle Versionen und Kopien mit derselben Anwendungsidentität. Sitzungszugriff und Ablehnung gelten nur für diese Unterhaltung.",
|
|
331
491
|
approve: "Für diese Sitzung zulassen"
|
|
332
492
|
};
|
|
333
493
|
/** Russian dictionary, checked against the English keys. */
|
|
334
494
|
const ru = {
|
|
335
495
|
question: "Разрешить Computer Use запуск, чтение, захват и управление этим приложением?",
|
|
336
|
-
detail: "Доступ для
|
|
496
|
+
detail: "Разрешение или отказ распространяется на все версии и копии с тем же идентификатором приложения. Доступ для сеанса и отказ действуют только в этом разговоре.",
|
|
337
497
|
approve: "Разрешить для этого сеанса"
|
|
338
498
|
};
|
|
339
499
|
/** Portuguese dictionary, checked against the English keys. */
|
|
340
500
|
const pt = {
|
|
341
501
|
question: "Permitir que o Computer Use inicie, leia, capture e controle este aplicativo?",
|
|
342
|
-
detail: "
|
|
502
|
+
detail: "Permitir ou negar se aplica a todas as versões e cópias com a mesma identidade de aplicativo. O acesso da sessão e a recusa se aplicam apenas a esta conversa.",
|
|
343
503
|
approve: "Permitir nesta sessão"
|
|
344
504
|
};
|
|
345
505
|
/** Display translations resolved by the Client; wire choices stay unchanged. */
|
|
@@ -381,7 +541,7 @@ const applicationAccessDisplay = {
|
|
|
381
541
|
const ApplicationAuthorizationResult = z.object({
|
|
382
542
|
id: z.string().regex(/^[a-f0-9]{64}$/).transform((value) => value),
|
|
383
543
|
name: z.string(),
|
|
384
|
-
executablePath: z.string().min(1),
|
|
544
|
+
executablePath: z.string().min(1).optional(),
|
|
385
545
|
persistable: z.boolean()
|
|
386
546
|
});
|
|
387
547
|
/** Owns application consent and cancels operations when saved access is removed. */
|
|
@@ -389,19 +549,14 @@ var ApplicationAccess = class {
|
|
|
389
549
|
ctx;
|
|
390
550
|
options;
|
|
391
551
|
clients = /* @__PURE__ */ new Map();
|
|
392
|
-
decisions = /* @__PURE__ */ new Map();
|
|
393
552
|
active = /* @__PURE__ */ new Set();
|
|
394
553
|
selections = /* @__PURE__ */ new Map();
|
|
395
554
|
lifetime = new AbortController();
|
|
396
|
-
mutationTail = Promise.resolve();
|
|
397
555
|
disposal;
|
|
398
556
|
/** @param ctx Host context owning this provider. @param options Live saved grants and profile persistence. */
|
|
399
557
|
constructor(ctx, options) {
|
|
400
558
|
this.ctx = ctx;
|
|
401
559
|
this.options = options;
|
|
402
|
-
ctx.on("loader/volatile-update", () => {
|
|
403
|
-
this.reconcile();
|
|
404
|
-
});
|
|
405
560
|
ctx.effect(() => () => this.dispose(), "cua-application-access.dispose");
|
|
406
561
|
}
|
|
407
562
|
/**
|
|
@@ -411,65 +566,80 @@ var ApplicationAccess = class {
|
|
|
411
566
|
dispose() {
|
|
412
567
|
return this.disposal ??= (async () => {
|
|
413
568
|
this.lifetime.abort();
|
|
414
|
-
await Promise.allSettled([this.
|
|
569
|
+
await Promise.allSettled([this.options.store.drain(), ...[...this.active].map((operation) => operation.done.promise)]);
|
|
415
570
|
this.clients.clear();
|
|
416
|
-
this.decisions.clear();
|
|
417
571
|
})();
|
|
418
572
|
}
|
|
419
573
|
/**
|
|
420
574
|
* Project application decisions without requesting native permissions.
|
|
421
575
|
* @returns Current saved grants and refused applications for the permission page.
|
|
422
576
|
*/
|
|
423
|
-
status() {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
577
|
+
async status() {
|
|
578
|
+
return this.options.store.withState(this.lifetime.signal, ({ state }) => {
|
|
579
|
+
const allowedApps = [], blockedApps = [];
|
|
580
|
+
for (const app of Object.values(state.applications)) if (app.always) allowedApps.push(app.always);
|
|
581
|
+
else {
|
|
582
|
+
const denied = Object.values(app.sessions).find((session) => session.decision === "deny");
|
|
583
|
+
if (denied) blockedApps.push(denied.identity);
|
|
584
|
+
}
|
|
585
|
+
return {
|
|
586
|
+
allowedApps,
|
|
587
|
+
blockedApps,
|
|
588
|
+
persistentAvailable: this.options.store.persistent
|
|
589
|
+
};
|
|
590
|
+
});
|
|
435
591
|
}
|
|
436
592
|
/**
|
|
437
|
-
* Remove saved and session consent and
|
|
593
|
+
* Remove saved and session consent and join affected native operations.
|
|
438
594
|
* @param id Application identity shown in the permission page.
|
|
439
|
-
* @returns Completion after persistence and
|
|
595
|
+
* @returns Completion after persistence and cancellation, including other processes' admitted operations.
|
|
440
596
|
*/
|
|
441
597
|
async revoke(id) {
|
|
442
598
|
this.lifetime.signal.throwIfAborted();
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
599
|
+
id = ApplicationAuthorizationResult.shape.id.parse(id);
|
|
600
|
+
const clients = this.invalidate(id);
|
|
601
|
+
await this.options.store.withApplication(id, this.lifetime.signal, () => this.options.store.withState(this.lifetime.signal, async (transaction) => {
|
|
602
|
+
const app = transaction.state.applications[id] ?? this.empty();
|
|
603
|
+
if (app.always && !this.options.store.persistent) throw new Error("Application permissions cannot be saved in this composition");
|
|
604
|
+
await this.save(transaction, id, {
|
|
605
|
+
revoked: app.revoked + 1,
|
|
606
|
+
sessions: Object.fromEntries(Object.entries(app.sessions).map(([sessionId, session]) => [sessionId, {
|
|
607
|
+
...session,
|
|
608
|
+
decision: "deny",
|
|
609
|
+
revision: session.revision + 1
|
|
610
|
+
}]))
|
|
611
|
+
});
|
|
612
|
+
}));
|
|
453
613
|
const results = await Promise.allSettled([...clients.map((client) => client.dispose()), ...[...this.active].filter((operation) => operation.identity.id === id).map((operation) => operation.done.promise)]);
|
|
454
614
|
const errors = [];
|
|
455
615
|
for (const result of results) if (result.status === "rejected") errors.push(result.reason);
|
|
456
616
|
if (errors.length) throw new AggregateError(errors, "Application access was revoked, but helper cleanup failed");
|
|
457
617
|
}
|
|
458
|
-
/**
|
|
459
|
-
*
|
|
460
|
-
* @
|
|
618
|
+
/** Clear refusals without granting access or restoring old handles.
|
|
619
|
+
* @param id Application selected by the human.
|
|
620
|
+
* @returns Completion after the new asking policy is durable.
|
|
461
621
|
*/
|
|
462
|
-
retryApproval(id) {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
622
|
+
async retryApproval(id) {
|
|
623
|
+
id = ApplicationAuthorizationResult.shape.id.parse(id);
|
|
624
|
+
await this.options.store.withState(this.lifetime.signal, async (transaction) => {
|
|
625
|
+
const app = transaction.state.applications[id];
|
|
626
|
+
if (!app || !Object.values(app.sessions).some((session) => session.decision === "deny")) return;
|
|
627
|
+
await this.save(transaction, id, {
|
|
628
|
+
...app,
|
|
629
|
+
sessions: Object.fromEntries(Object.entries(app.sessions).map(([sessionId, session]) => [sessionId, session.decision === "deny" ? {
|
|
630
|
+
...session,
|
|
631
|
+
decision: "ask",
|
|
632
|
+
revision: session.revision + 1
|
|
633
|
+
} : session]))
|
|
634
|
+
});
|
|
635
|
+
});
|
|
466
636
|
}
|
|
467
637
|
/**
|
|
468
638
|
* Obtain consent for a freshly selected native handle. Free text never grants access.
|
|
469
639
|
* @param agent Live agent whose session owns the decision.
|
|
470
640
|
* @param client Helper that issued the handle.
|
|
471
641
|
* @param handle Helper handle for a running instance or an approved pending launch.
|
|
472
|
-
* @param identity
|
|
642
|
+
* @param identity Platform-provided application or process-instance identity.
|
|
473
643
|
* @param signal Calling tool lifetime.
|
|
474
644
|
* @param icon Native application icon for the permission card; never saved as an identity.
|
|
475
645
|
* @returns Completion after consent; refusals reject before launch, AX, screenshots, or input.
|
|
@@ -477,18 +647,23 @@ var ApplicationAccess = class {
|
|
|
477
647
|
async select(agent, client, handle, identity, signal, icon) {
|
|
478
648
|
await this.withOperation(agent, client, identity, signal, (signal) => this.selectInOrder(agent, identity.id, async () => {
|
|
479
649
|
signal.throwIfAborted();
|
|
650
|
+
const observed = await this.read(identity.id, signal);
|
|
480
651
|
const existing = this.clients.get(client)?.handles.get(handle);
|
|
481
|
-
if (!client.disposed && existing
|
|
482
|
-
|
|
483
|
-
|
|
652
|
+
if (!client.disposed && existing) {
|
|
653
|
+
if (this.permitted(existing, observed)) return;
|
|
654
|
+
this.invalidate(identity.id, agent);
|
|
655
|
+
throw new NativeError("APP_ACCESS_REVOKED", "Application access changed; acquire a fresh application handle after consent");
|
|
656
|
+
}
|
|
657
|
+
const saved = identity.persistable && observed.always !== void 0;
|
|
658
|
+
const decision = observed.sessions[agent.id];
|
|
484
659
|
let scope = saved ? "persistent" : "session";
|
|
485
|
-
if (!saved && decision?.
|
|
660
|
+
if (!saved && decision?.decision === "deny") throw this.denied(identity);
|
|
486
661
|
if (client.disposed) throw new NativeError("NATIVE_CLOSED", "Helper is closed; acquire fresh application handles");
|
|
487
|
-
if (!saved &&
|
|
662
|
+
if (!saved && decision?.decision !== "allow") {
|
|
488
663
|
const questions = this.ctx.get("userQuestions");
|
|
489
664
|
if (!questions) throw new NativeError("APP_APPROVAL_UNAVAILABLE", "No human answerer is available for application access");
|
|
490
665
|
const options = [{ label: "Allow for this session" }, { label: "Deny" }];
|
|
491
|
-
if (identity.persistable && this.options.
|
|
666
|
+
if (identity.persistable && this.options.store.persistent) options.push({ label: "Always allow" });
|
|
492
667
|
let result;
|
|
493
668
|
try {
|
|
494
669
|
result = await questions.ask({
|
|
@@ -497,13 +672,13 @@ var ApplicationAccess = class {
|
|
|
497
672
|
questions: [{
|
|
498
673
|
id: "cua-app-access",
|
|
499
674
|
question: `Allow computer use to launch if needed, read, capture, and control ${identity.name}?`,
|
|
500
|
-
detail:
|
|
675
|
+
detail: applicationAccessDisplay.detail.en,
|
|
501
676
|
options,
|
|
502
677
|
intent: {
|
|
503
678
|
kind: "approval",
|
|
504
679
|
approve: "Allow for this session",
|
|
505
680
|
reject: "Deny",
|
|
506
|
-
...identity.persistable && this.options.
|
|
681
|
+
...identity.persistable && this.options.store.persistent ? { always: "Always allow" } : {},
|
|
507
682
|
subject: {
|
|
508
683
|
name: identity.name,
|
|
509
684
|
...icon === void 0 ? {} : { icon }
|
|
@@ -515,6 +690,7 @@ var ApplicationAccess = class {
|
|
|
515
690
|
} catch (error) {
|
|
516
691
|
if (error instanceof UserQuestionError && error.code === "ASK_CANCELLED") {
|
|
517
692
|
this.invalidate(identity.id, agent);
|
|
693
|
+
if (!this.lifetime.signal.aborted) await this.decide(agent.id, identity, "deny");
|
|
518
694
|
throw this.denied(identity);
|
|
519
695
|
}
|
|
520
696
|
if (error instanceof UserQuestionError && error.code === "DELEGATED_CALLER") throw new NativeError("APP_APPROVAL_UNAVAILABLE", "Application approval is unavailable in delegated tasks; ask the main task to perform this operation");
|
|
@@ -524,18 +700,44 @@ var ApplicationAccess = class {
|
|
|
524
700
|
const answer = result.answers.find((answer) => answer.id === "cua-app-access");
|
|
525
701
|
const chosen = answer && !answer.custom?.trim() && answer.selected.length === 1 ? answer.selected[0] : void 0;
|
|
526
702
|
if (chosen === "Allow for this session") scope = "session";
|
|
527
|
-
else if (chosen === "Always allow" && identity.persistable && this.options.
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
await this.persist((grants) => {
|
|
531
|
-
signal.throwIfAborted();
|
|
532
|
-
return [...grants.filter((item) => item.id !== identity.id), grant];
|
|
533
|
-
});
|
|
534
|
-
} else {
|
|
703
|
+
else if (chosen === "Always allow" && identity.persistable && this.options.store.persistent) scope = "persistent";
|
|
704
|
+
else {
|
|
705
|
+
await this.decide(agent.id, identity, "deny");
|
|
535
706
|
this.invalidate(identity.id, agent);
|
|
536
707
|
throw this.denied(identity);
|
|
537
708
|
}
|
|
538
709
|
}
|
|
710
|
+
if (client.disposed) throw new NativeError("NATIVE_CLOSED", "Helper is closed; acquire fresh application handles");
|
|
711
|
+
const authorized = await this.options.store.withState(signal, async (transaction) => {
|
|
712
|
+
signal.throwIfAborted();
|
|
713
|
+
const app = transaction.state.applications[identity.id] ?? this.empty();
|
|
714
|
+
if (app.revoked !== observed.revoked || app.sessions[agent.id]?.revision !== observed.sessions[agent.id]?.revision) throw new NativeError("APP_ACCESS_REVOKED", "Application consent changed while awaiting approval; select the application again");
|
|
715
|
+
if (scope === "persistent" && !saved && !this.options.store.persistent) throw this.denied(identity);
|
|
716
|
+
const { persistable: _persistable, ...grant } = identity;
|
|
717
|
+
const previous = app.sessions[agent.id];
|
|
718
|
+
if (previous?.decision === "allow" && (scope === "session" || app.always)) return {
|
|
719
|
+
revoked: app.revoked,
|
|
720
|
+
revision: previous.revision
|
|
721
|
+
};
|
|
722
|
+
const revision = (previous?.revision ?? 0) + 1;
|
|
723
|
+
const next = {
|
|
724
|
+
...app,
|
|
725
|
+
...scope === "persistent" ? { always: grant } : {},
|
|
726
|
+
sessions: {
|
|
727
|
+
...app.sessions,
|
|
728
|
+
[agent.id]: {
|
|
729
|
+
identity: grant,
|
|
730
|
+
decision: "allow",
|
|
731
|
+
revision
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
await this.save(transaction, identity.id, next);
|
|
736
|
+
return {
|
|
737
|
+
revoked: next.revoked,
|
|
738
|
+
revision
|
|
739
|
+
};
|
|
740
|
+
});
|
|
539
741
|
signal.throwIfAborted();
|
|
540
742
|
if (client.disposed) throw new NativeError("NATIVE_CLOSED", "Helper is closed; acquire fresh application handles");
|
|
541
743
|
const state = this.clients.get(client) ?? {
|
|
@@ -550,11 +752,12 @@ var ApplicationAccess = class {
|
|
|
550
752
|
state.handles.set(handle, {
|
|
551
753
|
identity: grant,
|
|
552
754
|
scope,
|
|
755
|
+
sessionId: agent.id,
|
|
756
|
+
revoked: authorized.revoked,
|
|
757
|
+
revision: authorized.revision,
|
|
553
758
|
lifetime: new AbortController()
|
|
554
759
|
});
|
|
555
760
|
this.clients.set(client, state);
|
|
556
|
-
if (scope === "session") this.decide(agent.id, grant, true);
|
|
557
|
-
else this.decisions.get(agent.id)?.delete(identity.id);
|
|
558
761
|
}));
|
|
559
762
|
}
|
|
560
763
|
/**
|
|
@@ -569,12 +772,20 @@ var ApplicationAccess = class {
|
|
|
569
772
|
const state = this.clients.get(client);
|
|
570
773
|
const selected = state?.handles.get(handle);
|
|
571
774
|
if (!state || !selected) throw new NativeError("APP_ACCESS_REQUIRED", "Select the application with getApp and obtain user consent before reading or controlling it");
|
|
572
|
-
if (
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
775
|
+
if (selected.lifetime.signal.aborted) throw new NativeError("APP_ACCESS_REVOKED", "Application access was revoked; stop using this application");
|
|
776
|
+
const lifetime = AbortSignal.any([
|
|
777
|
+
signal,
|
|
778
|
+
this.lifetime.signal,
|
|
779
|
+
selected.lifetime.signal
|
|
780
|
+
]);
|
|
781
|
+
return this.options.store.withApplication(selected.identity.id, lifetime, async () => {
|
|
782
|
+
if (!await this.options.store.withState(lifetime, ({ state: permissions }) => this.permitted(selected, permissions.applications[selected.identity.id] ?? this.empty()))) {
|
|
783
|
+
this.invalidate(selected.identity.id, state.agent);
|
|
784
|
+
throw new NativeError("APP_ACCESS_REVOKED", "Application access was revoked; stop using this application");
|
|
785
|
+
}
|
|
786
|
+
if (client.disposed) throw new NativeError("NATIVE_CLOSED", "Helper is closed; acquire fresh application handles");
|
|
787
|
+
return this.withOperation(state.agent, client, selected.identity, lifetime, dispatch);
|
|
788
|
+
});
|
|
578
789
|
}
|
|
579
790
|
async selectInOrder(agent, id, select) {
|
|
580
791
|
const selections = this.selections.get(agent.id) ?? /* @__PURE__ */ new Map();
|
|
@@ -622,61 +833,63 @@ var ApplicationAccess = class {
|
|
|
622
833
|
forget(agent) {
|
|
623
834
|
for (const [client, state] of this.clients) if (state.agent === agent) this.clients.delete(client);
|
|
624
835
|
}
|
|
625
|
-
permitted(selection) {
|
|
626
|
-
|
|
836
|
+
permitted(selection, app) {
|
|
837
|
+
const session = app.sessions[selection.sessionId];
|
|
838
|
+
return !selection.lifetime.signal.aborted && app.revoked === selection.revoked && (selection.scope === "persistent" ? app.always !== void 0 : session?.decision === "allow" && session.revision === selection.revision);
|
|
627
839
|
}
|
|
628
840
|
denied(identity) {
|
|
629
841
|
return new NativeError("APP_ACCESS_DENIED", `The user denied access to ${identity.name}. Do not retry or use another tool to bypass this decision.`);
|
|
630
842
|
}
|
|
631
|
-
decide(sessionId, identity,
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
identity
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
843
|
+
async decide(sessionId, identity, decision) {
|
|
844
|
+
await this.options.store.withState(this.lifetime.signal, async (transaction) => {
|
|
845
|
+
const app = transaction.state.applications[identity.id] ?? this.empty();
|
|
846
|
+
await this.save(transaction, identity.id, {
|
|
847
|
+
...app,
|
|
848
|
+
sessions: {
|
|
849
|
+
...app.sessions,
|
|
850
|
+
[sessionId]: {
|
|
851
|
+
identity: {
|
|
852
|
+
id: identity.id,
|
|
853
|
+
name: identity.name,
|
|
854
|
+
executablePath: identity.executablePath
|
|
855
|
+
},
|
|
856
|
+
decision,
|
|
857
|
+
revision: (app.sessions[sessionId]?.revision ?? 0) + 1
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
});
|
|
640
861
|
});
|
|
641
|
-
this.decisions.set(sessionId, decisions);
|
|
642
862
|
}
|
|
643
863
|
invalidate(id, agent) {
|
|
644
864
|
const clients = /* @__PURE__ */ new Set();
|
|
645
|
-
for (const [sessionId, decisions] of this.decisions) {
|
|
646
|
-
const decision = decisions.get(id);
|
|
647
|
-
if (decision && (agent === void 0 || sessionId === agent.id)) this.decide(sessionId, decision.identity, false);
|
|
648
|
-
}
|
|
649
865
|
for (const [client, state] of this.clients) for (const selection of state.handles.values()) if (selection.identity.id === id && (agent === void 0 || state.agent.id === agent.id)) {
|
|
650
866
|
selection.lifetime.abort(new NativeError("APP_ACCESS_REVOKED", "Application access was revoked; stop using this application"));
|
|
651
|
-
this.decide(state.agent.id, selection.identity, false);
|
|
652
867
|
clients.add(client);
|
|
653
868
|
}
|
|
654
869
|
for (const operation of this.active) if (operation.identity.id === id && (agent === void 0 || operation.agent.id === agent.id)) {
|
|
655
|
-
this.decide(operation.agent.id, operation.identity, false);
|
|
656
870
|
operation.controller.abort(this.denied(operation.identity));
|
|
657
871
|
clients.add(operation.client);
|
|
658
872
|
}
|
|
659
873
|
for (const client of clients) client.invalidate();
|
|
660
874
|
return [...clients];
|
|
661
875
|
}
|
|
662
|
-
|
|
663
|
-
|
|
876
|
+
empty() {
|
|
877
|
+
return {
|
|
878
|
+
revoked: 0,
|
|
879
|
+
sessions: {}
|
|
880
|
+
};
|
|
664
881
|
}
|
|
665
|
-
|
|
666
|
-
return this.
|
|
667
|
-
const save = this.options.save;
|
|
668
|
-
if (!save) throw new Error("Application permissions cannot be saved in this composition");
|
|
669
|
-
await save(update(this.options.grants()));
|
|
670
|
-
});
|
|
882
|
+
read(id, signal = this.lifetime.signal) {
|
|
883
|
+
return this.options.store.withState(signal, ({ state }) => state.applications[id] ?? this.empty());
|
|
671
884
|
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
885
|
+
save(transaction, id, app) {
|
|
886
|
+
return transaction.save({
|
|
887
|
+
...transaction.state,
|
|
888
|
+
applications: {
|
|
889
|
+
...transaction.state.applications,
|
|
890
|
+
[id]: app
|
|
891
|
+
}
|
|
892
|
+
});
|
|
680
893
|
}
|
|
681
894
|
};
|
|
682
895
|
//#endregion
|
|
@@ -1150,18 +1363,15 @@ let CuaAccess = (() => {
|
|
|
1150
1363
|
});
|
|
1151
1364
|
}
|
|
1152
1365
|
policy = __runInitializers(this, _instanceExtraInitializers);
|
|
1153
|
-
settingsNamespace;
|
|
1154
1366
|
control;
|
|
1155
1367
|
/**
|
|
1156
1368
|
* @param ctx Provider context.
|
|
1157
1369
|
* @param policy Application decision owner.
|
|
1158
|
-
* @param settingsNamespace Owning configuration entry.
|
|
1159
1370
|
* @param control Serialized native permission dispatch.
|
|
1160
1371
|
*/
|
|
1161
|
-
constructor(ctx, policy,
|
|
1372
|
+
constructor(ctx, policy, control) {
|
|
1162
1373
|
super(ctx, "cuaAccess");
|
|
1163
1374
|
this.policy = policy;
|
|
1164
|
-
this.settingsNamespace = settingsNamespace;
|
|
1165
1375
|
this.control = control;
|
|
1166
1376
|
}
|
|
1167
1377
|
/** Read PTC execution state separately from native permission checks.
|
|
@@ -1169,7 +1379,7 @@ let CuaAccess = (() => {
|
|
|
1169
1379
|
*/
|
|
1170
1380
|
ptcConfiguration() {
|
|
1171
1381
|
return {
|
|
1172
|
-
persistent: this.ctx.get("ptcRuntime")?.
|
|
1382
|
+
persistent: this.ctx.get("ptcRuntime")?.retainsState === true,
|
|
1173
1383
|
writable: this.ctx.get("configEditor")?.entries().some((entry) => entry.options.id === "ptc-runtime") ?? false
|
|
1174
1384
|
};
|
|
1175
1385
|
}
|
|
@@ -1183,18 +1393,15 @@ let CuaAccess = (() => {
|
|
|
1183
1393
|
if (editor === void 0 || entry === void 0) throw new Error("PTC runtime has no editable profile entry");
|
|
1184
1394
|
await editor.edit(entry, (current) => ({
|
|
1185
1395
|
...current,
|
|
1186
|
-
|
|
1396
|
+
...resolvePersistentExecution(this.ctx.get("ptcRuntime")?.programFormat)
|
|
1187
1397
|
}));
|
|
1188
1398
|
}
|
|
1189
1399
|
/**
|
|
1190
|
-
* Read application decisions without
|
|
1191
|
-
* @returns Saved grants
|
|
1400
|
+
* Read fresh stored application decisions without issuing a native request.
|
|
1401
|
+
* @returns Saved grants, refused applications and durable-storage availability.
|
|
1192
1402
|
*/
|
|
1193
1403
|
applications() {
|
|
1194
|
-
return
|
|
1195
|
-
settingsNamespace: this.settingsNamespace,
|
|
1196
|
-
...this.policy.status()
|
|
1197
|
-
};
|
|
1404
|
+
return this.policy.status();
|
|
1198
1405
|
}
|
|
1199
1406
|
/**
|
|
1200
1407
|
* Inspect system privileges independently of application decisions and icons.
|
|
@@ -1205,11 +1412,11 @@ let CuaAccess = (() => {
|
|
|
1205
1412
|
}
|
|
1206
1413
|
/**
|
|
1207
1414
|
* Load presentation icons separately from application decisions.
|
|
1208
|
-
* @returns Optional native PNG icons keyed by executable path
|
|
1415
|
+
* @returns Optional native PNG icons keyed by executable path; applications without paths are skipped.
|
|
1209
1416
|
*/
|
|
1210
1417
|
async applicationIcons() {
|
|
1211
|
-
const state = this.policy.status();
|
|
1212
|
-
const paths = [...new Set([...state.allowedApps, ...state.blockedApps].
|
|
1418
|
+
const state = await this.policy.status();
|
|
1419
|
+
const paths = [...new Set([...state.allowedApps, ...state.blockedApps].flatMap((app) => app.executablePath === void 0 ? [] : [app.executablePath]))];
|
|
1213
1420
|
return paths.length === 0 ? {} : z.record(z.string(), ApplicationIcon).parse(await this.control("applicationIcons", { paths }));
|
|
1214
1421
|
}
|
|
1215
1422
|
/**
|
|
@@ -1242,7 +1449,7 @@ let CuaAccess = (() => {
|
|
|
1242
1449
|
* @returns Completion after clearing refusals; no permission is granted and no action is replayed.
|
|
1243
1450
|
*/
|
|
1244
1451
|
async retryApproval(id) {
|
|
1245
|
-
this.policy.retryApproval(id);
|
|
1452
|
+
await this.policy.retryApproval(id);
|
|
1246
1453
|
}
|
|
1247
1454
|
};
|
|
1248
1455
|
})();
|
|
@@ -1275,7 +1482,7 @@ function installCuaAccess(ctx, options) {
|
|
|
1275
1482
|
await Promise.allSettled([policy.dispose(), tail]);
|
|
1276
1483
|
await client?.dispose();
|
|
1277
1484
|
}, "cua-access.dispose");
|
|
1278
|
-
new CuaAccess(ctx, policy,
|
|
1485
|
+
new CuaAccess(ctx, policy, control);
|
|
1279
1486
|
return {
|
|
1280
1487
|
select: policy.select.bind(policy),
|
|
1281
1488
|
run: policy.run.bind(policy),
|
|
@@ -1371,8 +1578,8 @@ const CuaConfig = Schema.object({
|
|
|
1371
1578
|
allowedApps: Schema.array(Schema.object({
|
|
1372
1579
|
id: Schema.string().pattern(/^[a-f0-9]{64}$/).required(),
|
|
1373
1580
|
name: Schema.string().required(),
|
|
1374
|
-
executablePath: Schema.string().min(1)
|
|
1375
|
-
})).default([])
|
|
1581
|
+
executablePath: Schema.string().min(1)
|
|
1582
|
+
})).default([]),
|
|
1376
1583
|
helperPath: Schema.string(),
|
|
1377
1584
|
buildTimeoutMs: Schema.number().step(1).min(1).max(2 ** 31 - 1).default(3e5),
|
|
1378
1585
|
timeoutMs: Schema.number().step(1).min(1).max(2 ** 31 - 1).default(3e4),
|
|
@@ -1451,29 +1658,13 @@ function installCua(ctx, config, backend) {
|
|
|
1451
1658
|
textEventIntervalMs: config.textEventIntervalMs,
|
|
1452
1659
|
maxClickHoldMs: config.maxClickHoldMs
|
|
1453
1660
|
};
|
|
1454
|
-
const entryId = ctx.fiber.entry?.options.id;
|
|
1455
|
-
ctx.inject(["settings"], (scope) => scope.effect(() => scope.settings.configure({ auto: false }, ctx.fiber)));
|
|
1456
1661
|
const access = installCuaAccess(ctx, {
|
|
1457
|
-
settingsNamespace: entryId ?? null,
|
|
1458
1662
|
native,
|
|
1459
1663
|
createChannel: backend.createChannel,
|
|
1460
|
-
|
|
1664
|
+
store: new CuaPermissionStore(ctx, config.allowedApps.map((grant) => ({
|
|
1461
1665
|
...grant,
|
|
1462
1666
|
id: grant.id
|
|
1463
|
-
})),
|
|
1464
|
-
get save() {
|
|
1465
|
-
const settings = ctx.get("settings");
|
|
1466
|
-
if (entryId === void 0 || settings === void 0) return void 0;
|
|
1467
|
-
const descriptor = settings.describe().find((entry) => entry.ns === entryId);
|
|
1468
|
-
if (!descriptor) return void 0;
|
|
1469
|
-
return async (grants) => {
|
|
1470
|
-
await settings.mutate(entryId, [{
|
|
1471
|
-
op: "set",
|
|
1472
|
-
path: ["allowedApps"],
|
|
1473
|
-
value: grants
|
|
1474
|
-
}], descriptor.revision);
|
|
1475
|
-
};
|
|
1476
|
-
}
|
|
1667
|
+
})), config.timeoutMs)
|
|
1477
1668
|
});
|
|
1478
1669
|
const clients = /* @__PURE__ */ new Map();
|
|
1479
1670
|
const lifetime = new AbortController();
|
|
@@ -1667,11 +1858,16 @@ function installCua(ctx, config, backend) {
|
|
|
1667
1858
|
const prompt = {
|
|
1668
1859
|
name: "computer-use:dsh-cua",
|
|
1669
1860
|
order: ctx.systemPrompt.getSectionOrder("TOOL_COMPUTER_USE"),
|
|
1670
|
-
text: () =>
|
|
1861
|
+
text: () => {
|
|
1862
|
+
return !ctx.get("ptcRuntime")?.retainsState ? guidance : `${guidance}
|
|
1671
1863
|
|
|
1672
1864
|
Persistent PTC initialization:
|
|
1865
|
+
|
|
1866
|
+
\`\`\`ts
|
|
1673
1867
|
var { connectCua } = await import(${JSON.stringify(new URL("../lib/bridge.js", import.meta.url).href)});
|
|
1674
|
-
var cua = connectCua(() => tools.cua, text => console.log(text))
|
|
1868
|
+
var cua = connectCua(() => tools.cua, text => console.log(text));
|
|
1869
|
+
\`\`\``;
|
|
1870
|
+
}
|
|
1675
1871
|
};
|
|
1676
1872
|
const register = (scope) => {
|
|
1677
1873
|
scope.tools.register(tool);
|