@songtonyli/dsh-cli 0.1.93 → 0.1.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/cordis/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
- package/node_modules/@deepseek-ai/cordis-plugin-include/README.md +10 -0
- package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +647 -149
- package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +362 -236
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/journal.ts +242 -0
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/patch.ts +261 -0
- package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +5 -1
- package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +96 -20
- package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +2 -2
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +3 -2
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/tree.ts +77 -8
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +24 -13
- package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
- package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh/lib/bin-DQ1vWxS0.js +254 -0
- package/node_modules/@deepseek-ai/dsh/lib/bin.js +19 -245
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-D97dwXdd.js → dump-config-DCQrFN8g.js} +3 -3
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-ekMiCsuS.js +2 -0
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-schema-r4V15-lg.js → dump-config-schema-C_NhxM7L.js} +2 -2
- package/node_modules/@deepseek-ai/dsh/lib/{plugin-DscIHF4k.js → plugin-cQMw2oZz.js} +4 -4
- package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +127 -127
- package/node_modules/@deepseek-ai/dsh-acp/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-acp/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-action-cards/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-action-cards/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/index.js +7 -4
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +22 -6
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.remote-client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/types/index.js +7 -4
- package/node_modules/@deepseek-ai/dsh-action-cards/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-agent/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent/lib/index.js +5 -30
- package/node_modules/@deepseek-ai/dsh-agent/lib/types/index.js +5 -32
- package/node_modules/@deepseek-ai/dsh-agent/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +5 -7
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +14 -10
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +21 -5
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-agent-team/README.i18n.yaml +97 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/README.md +217 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/README.zh.md +217 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/index.js +838 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/typert.host.js +829 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/typert.remote-client.js +79 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/client.js +3 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/error.js +10 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/index.js +176 -0
- package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/journal.js +17 -16
- package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/projection.js +177 -0
- package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/task-board.js +55 -29
- package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/task-view.js +5 -10
- package/node_modules/@deepseek-ai/dsh-agent-team/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-agent-team/package.json +83 -0
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1095 -585
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +4 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +8 -3
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +1 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +49 -46
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +10 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +10 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +35 -53
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +98 -62
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +315 -299
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +260 -276
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +10 -19
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/archived-session-gate.js +6 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +8 -32
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +20 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +4 -21
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +60 -20
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.js +48 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/control.js +3 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js +7 -7
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +7 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/list.js +14 -7
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +79 -77
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +21 -5
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +841 -145
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-base/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-base/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +32 -15
- package/node_modules/@deepseek-ai/dsh-base/package.json +104 -101
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +21 -5
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +16 -0
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +5 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.zh.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/lib/client.js +1425 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/package.json +72 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +125 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +14 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +19 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.md +16 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.zh.md +16 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/assets/breach-atlas-43c5305a3d4d.webp +0 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/client.js +395 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +13 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +129 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +40 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +164 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +18 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +27 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +27 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +258 -101
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +37 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/lib/client.js +24 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/de.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/en.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/es.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/fr.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/ja.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/pt.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/ru.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.md +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.zh.md +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/lib/client.js +73 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +187 -106
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +99 -118
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +65 -58
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/zh.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +9 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +175 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +12 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +12 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +4010 -446
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +3 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +3 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +469 -41
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +15 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +15 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +773 -335
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/de.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/es.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/fr.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/ja.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/pt.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/ru.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/zh.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +10 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +11 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +11 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +269 -111
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +6 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +11 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +16 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +16 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +310 -150
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +18 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +409 -60
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +32 -31
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +8 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +8 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +78 -109
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-commands/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-commands/lib/index.js +37 -2
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +42 -7
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.remote-client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-commands/lib/types/index.js +36 -2
- package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/README.md +90 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +90 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +35 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +10 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +36 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-computer-use/package.json +44 -0
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +297 -85
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +42 -10
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/index.js +75 -77
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/types/index.js +59 -54
- package/node_modules/@deepseek-ai/dsh-creation-recommendations/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +49 -0
- package/node_modules/@deepseek-ai/dsh-cua/README.md +134 -0
- package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +134 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +597 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +611 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +1832 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +1922 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +285 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +305 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +1 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +458 -0
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +343 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-cua/package.json +151 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +94 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +94 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +10 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +1 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +1 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +33 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +33 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +35 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +7 -0
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +7 -0
- package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-profile → dsh-cua-bundle}/package.json +15 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-deliverable-file-references/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +46 -46
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +10 -8
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +10 -8
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +6469 -5811
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +142 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +145 -31
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +103 -24
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/package.json +42 -42
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/package.json +19 -18
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/cordis.patch.yml +4 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.de.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.es.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.fr.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.ja.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.pt.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.ru.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/DETAIL.zh.md +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/preview.svg +28 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/docs/preview.zh.svg +28 -0
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/de.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/en.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/es.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/fr.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ja.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/pt.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ru.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/zh.json +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/package.json +10 -8
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/lib/index.js +11 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge-session/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/client.js +150 -136
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/index.js +200 -186
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.md +13 -11
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.zh.md +13 -11
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/cordis.patch.yml +0 -4
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +892 -501
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +607 -229
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.host.js +45 -31
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.remote-client.js +33 -27
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +73 -75
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +7 -13
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-fs/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +21 -5
- package/node_modules/@deepseek-ai/dsh-goal/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/lib/index.js +5 -1
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-headless/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-headless/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-headless/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +5 -1
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +2 -2
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-http-proxy/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-http-proxy/README.md +4 -1
- package/node_modules/@deepseek-ai/dsh-http-proxy/README.zh.md +4 -1
- package/node_modules/@deepseek-ai/dsh-http-proxy/lib/index.js +54 -16
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +37 -14
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +18 -2
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +38 -20
- package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +4 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +4 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +52 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +45 -45
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +5 -8
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +4 -10
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +18 -8
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.i18n.yaml +15 -12
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +29 -6
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +29 -6
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +870 -202
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/connection.js +379 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/credentials.js +99 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/deadline.js +27 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/diagnostic.js +56 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/generation.js +111 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/index.js +163 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/probe.js +89 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/server-context.js +25 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/status.js +95 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/templates.js +66 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/tools.js +432 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/transport.js +39 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/types.js +7 -0
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +34 -24
- package/node_modules/@deepseek-ai/dsh-mcp-manager/README.i18n.yaml +64 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/README.md +196 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/README.zh.md +196 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/index.js +572 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/typert.host.js +323 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/typert.remote-client.js +170 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/types/index.js +582 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/lib/types/types.js +8 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/de.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/es.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/fr.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/pt.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/ru.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-mcp-manager/package.json +77 -0
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-message-quotes/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-message-quotes/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +38 -15
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +57 -95
- package/node_modules/@deepseek-ai/dsh-official-bundles/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-otel/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +21 -5
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-persona/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-persona/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-personalized-recommendations/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-plugin-detail/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +12 -12
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +38 -38
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/index.js +37 -7
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/repository-cache.js +40 -7
- package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +21 -5
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/types/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +19 -16
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +33 -7
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +34 -8
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +95 -41
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/persistent-process.js +528 -112
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/process.js +523 -109
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +39 -16
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +40 -40
- package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +21 -18
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +48 -48
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +40 -39
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-session-continuation/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/README.md +84 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/README.zh.md +84 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/index.js +109 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/index.js +51 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/projection.js +48 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-session-continuation/package.json +55 -0
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/lib/index.js +36 -13
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/lib/index.js +19 -1
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +100 -120
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +95 -30
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-session-projection/README.md +11 -7
- package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +11 -7
- package/node_modules/@deepseek-ai/dsh-session-projection/lib/index.js +107 -42
- package/node_modules/@deepseek-ai/dsh-session-projection/lib/types/index.js +128 -47
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +21 -5
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +41 -41
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-settings/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -35
- package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +46 -28
- package/node_modules/@deepseek-ai/dsh-subagent/README.md +52 -23
- package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +52 -23
- package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +838 -903
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +90 -124
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +17 -63
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/archive-admission.js +39 -115
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +31 -8
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/child-agent.js +6 -4
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-messages.js +22 -22
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +1 -5
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/descriptor.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +125 -146
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/lifecycle.js +5 -31
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +35 -6
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +462 -570
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.js +96 -0
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/types.js +2 -4
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -55
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +38 -15
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-token-meter/lib/index.js +4 -2
- package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/breakdown-projection.js +1 -0
- package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/usage-projection.js +1 -0
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.i18n.yaml +85 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.md +178 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.zh.md +178 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/lib/index.js +317 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/locale/ja.json +6 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-tool-agent-team/package.json +63 -0
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +299 -188
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-executor-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.i18n.yaml +19 -16
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.md +22 -9
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.zh.md +22 -9
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/index.js +185 -74
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/config.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/errors.js +25 -0
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/index.js +36 -6
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc-calls.js +57 -7
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc.js +29 -14
- package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +35 -35
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +19 -17
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +18 -16
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +49 -47
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +58 -40
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +54 -22
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +54 -22
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +196 -107
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +24 -22
- package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-web/README.md +5 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +5 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +25 -24
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tools/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +14 -10
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +14 -10
- package/node_modules/@deepseek-ai/dsh-tui-app/cordis.patch.yml +17 -0
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +557 -173
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +89 -87
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-user-questions/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +5 -6
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +22 -6
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/index.js +5 -6
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +18 -12
- package/node_modules/@deepseek-ai/dsh-web/README.md +38 -7
- package/node_modules/@deepseek-ai/dsh-web/README.zh.md +38 -7
- package/node_modules/@deepseek-ai/dsh-web/lib/index.js +220 -112
- package/node_modules/@deepseek-ai/dsh-web/lib/typert.host.js +178 -0
- package/node_modules/@deepseek-ai/dsh-web/lib/typert.remote-client.js +45 -0
- package/node_modules/@deepseek-ai/dsh-web/lib/types/index.js +277 -0
- package/node_modules/@deepseek-ai/dsh-web/lib/types/types.js +18 -0
- package/node_modules/@deepseek-ai/dsh-web/package.json +26 -7
- package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-web-app/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +18 -10
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +157 -154
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +1 -1
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.md +22 -12
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.zh.md +22 -12
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/lib/index.js +394 -163
- package/node_modules/@deepseek-ai/dsh-web-deepseek-api/package.json +30 -19
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/lib/index.js +11 -0
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CZZasi1N.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CnyQSzND.js +199 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{graphql-C-Uijqkk.js → graphql-DFkUqiqq.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{http-CLu1VCSi.js → http-BbPA7N5Y.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-BcJWnZHR.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{rst-BuDKiyD7.js → rst-CtdShwKQ.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{ruby-ZtjE4NPI.js → ruby-DllPV2XI.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{svelte-Tt81icjn.js → svelte-ZPgsG5h9.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{vue-B5SDFeDA.js → vue-CnLRC5W9.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{vendor-7utBqO4o.js → vendor-BUMdD3V7.js} +3 -3
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +3 -3
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +30 -18
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +20 -18
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +11 -13
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-working-directory/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +26 -26
- package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
- package/package.json +348 -343
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-DuXZcU0e.js +0 -2
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +0 -100
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +0 -227
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +0 -227
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +0 -1650
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/activity.js +0 -85
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +0 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/error.js +0 -23
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +0 -232
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/lifecycle.js +0 -103
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/persisted.js +0 -20
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +0 -327
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +0 -452
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/session-message.js +0 -23
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +0 -68
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +0 -52
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +0 -118
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +0 -118
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +0 -29
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.md +0 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.zh.md +0 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/preview.svg +0 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/preview.zh.svg +0 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/icon.svg +0 -12
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/de.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/es.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/fr.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ja.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/pt.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ru.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +0 -7
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +0 -43
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +0 -102
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +0 -102
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +0 -690
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +0 -66
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations-krUNq6VU.js +0 -287
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations.js +0 -26
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +0 -70
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +0 -155
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +0 -155
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +0 -626
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +0 -62
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +0 -197
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-CjQPq1Mz.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +0 -61
- package/node_modules/@deepseek-ai/dsh-web-search-exa/README.md +0 -142
- package/node_modules/@deepseek-ai/dsh-web-search-exa/README.zh.md +0 -142
- package/node_modules/@deepseek-ai/dsh-web-search-exa/lib/index.js +0 -154
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +0 -45
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +0 -82
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.md +0 -165
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.zh.md +0 -165
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/lib/index.js +0 -152
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +0 -45
- package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-e2mS45fC.js → profile-boot-xiaehH2x.js} +3 -3
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/task-graph.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/types.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/lib/types/validation.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/de.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/es.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/fr.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/pt.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team → dsh-agent-team}/locale/ru.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/lib/index.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/de.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/es.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/fr.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/pt.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-client-ui-agent-team → dsh-client-ui-agent-team}/locale/ru.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-profile → dsh-cua-bundle}/lib/index.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/de.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/es.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/fr.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/pt.json +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-tool-agent-team → dsh-tool-agent-team}/locale/ru.json +0 -0
|
@@ -7,7 +7,7 @@ import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep, w
|
|
|
7
7
|
import * as yaml from "js-yaml";
|
|
8
8
|
import { load } from "js-yaml";
|
|
9
9
|
import Loader, { EntryGroup, EntryTree, ModuleLoader, isJsExpr } from "@deepseek-ai/cordis-plugin-loader";
|
|
10
|
-
import { access, constants, mkdir, readFile, realpath, rename, writeFile } from "node:fs/promises";
|
|
10
|
+
import { access, constants, mkdir, readFile, realpath, rename, rm, writeFile } from "node:fs/promises";
|
|
11
11
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
12
12
|
import Group from "@deepseek-ai/cordis-plugin-group";
|
|
13
13
|
import { dshHomePath, resolveDshHome } from "@deepseek-ai/dsh-home-paths";
|
|
@@ -100,51 +100,411 @@ function captureStartupComposition(ctx) {
|
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
|
-
//#region ../../../vendor/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
103
|
+
//#region ../../../vendor/cosmokit/src/misc.ts
|
|
104
|
+
/** Return true when a value is `null` or `undefined`. */
|
|
105
|
+
function isNullable(value) {
|
|
106
|
+
return value === null || value === void 0;
|
|
107
|
+
}
|
|
108
|
+
/** Omit selected keys from a shallow object copy. */
|
|
109
|
+
function omit(source, keys) {
|
|
110
|
+
if (!keys) return { ...source };
|
|
111
|
+
const result = { ...source };
|
|
112
|
+
for (const key of keys) Reflect.deleteProperty(result, key);
|
|
113
|
+
return result;
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region ../../../vendor/cosmokit/src/volatile.ts
|
|
117
|
+
/** Shared config references used by schema validators and plugin runtimes. */
|
|
118
|
+
const write = Symbol.for("cosmokit.volatile.write");
|
|
111
119
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* mounts.
|
|
120
|
+
* Identify references across ESM/CJS copies of the shared library.
|
|
121
|
+
* @param value - a parsed config value.
|
|
122
|
+
* @returns whether the value implements the shared reference protocol.
|
|
116
123
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
function
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
function isVolatile(value) {
|
|
125
|
+
return typeof value === "object" && value !== null && write in value;
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region ../../../vendor/cosmokit/src/types.ts
|
|
129
|
+
/** Test values using `instanceof` with a `toStringTag` fallback. */
|
|
130
|
+
function is(type, value) {
|
|
131
|
+
if (arguments.length === 1) return (value) => is(type, value);
|
|
132
|
+
return type in globalThis && value instanceof globalThis[type] || Object.prototype.toString.call(value).slice(8, -1) === type;
|
|
133
|
+
}
|
|
134
|
+
function isArrayBufferLike(value) {
|
|
135
|
+
return is("ArrayBuffer", value) || is("SharedArrayBuffer", value);
|
|
136
|
+
}
|
|
137
|
+
function isArrayBufferSource(value) {
|
|
138
|
+
return isArrayBufferLike(value) || ArrayBuffer.isView(value);
|
|
139
|
+
}
|
|
140
|
+
let Binary;
|
|
141
|
+
(function(_Binary) {
|
|
142
|
+
_Binary.is = isArrayBufferLike;
|
|
143
|
+
_Binary.isSource = isArrayBufferSource;
|
|
144
|
+
function fromSource(source) {
|
|
145
|
+
if (ArrayBuffer.isView(source)) return source.buffer.slice(source.byteOffset, source.byteOffset + source.byteLength);
|
|
146
|
+
else return source;
|
|
147
|
+
}
|
|
148
|
+
_Binary.fromSource = fromSource;
|
|
149
|
+
function toBase64(source) {
|
|
150
|
+
source = fromSource(source);
|
|
151
|
+
if (typeof Buffer !== "undefined") return Buffer.from(source).toString("base64");
|
|
152
|
+
let binary = "";
|
|
153
|
+
const bytes = new Uint8Array(source);
|
|
154
|
+
for (let i = 0; i < bytes.byteLength; i++) binary += String.fromCharCode(bytes[i]);
|
|
155
|
+
return btoa(binary);
|
|
156
|
+
}
|
|
157
|
+
_Binary.toBase64 = toBase64;
|
|
158
|
+
function fromBase64(source) {
|
|
159
|
+
if (typeof Buffer !== "undefined") return fromSource(Buffer.from(source, "base64"));
|
|
160
|
+
return Uint8Array.from(atob(source), (c) => c.charCodeAt(0));
|
|
161
|
+
}
|
|
162
|
+
_Binary.fromBase64 = fromBase64;
|
|
163
|
+
function toHex(source) {
|
|
164
|
+
source = fromSource(source);
|
|
165
|
+
if (typeof Buffer !== "undefined") return Buffer.from(source).toString("hex");
|
|
166
|
+
return Array.from(new Uint8Array(source), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
167
|
+
}
|
|
168
|
+
_Binary.toHex = toHex;
|
|
169
|
+
function fromHex(source) {
|
|
170
|
+
if (typeof Buffer !== "undefined") return fromSource(Buffer.from(source, "hex"));
|
|
171
|
+
const hex = source.length % 2 === 0 ? source : source.slice(0, source.length - 1);
|
|
172
|
+
const buffer = [];
|
|
173
|
+
for (let i = 0; i < hex.length; i += 2) buffer.push(parseInt(`${hex[i]}${hex[i + 1]}`, 16));
|
|
174
|
+
return Uint8Array.from(buffer).buffer;
|
|
175
|
+
}
|
|
176
|
+
_Binary.fromHex = fromHex;
|
|
177
|
+
})(Binary || (Binary = {}));
|
|
178
|
+
Binary.fromBase64;
|
|
179
|
+
Binary.toBase64;
|
|
180
|
+
Binary.fromHex;
|
|
181
|
+
Binary.toHex;
|
|
182
|
+
/**
|
|
183
|
+
* Compare values recursively, treating two volatile references as equal regardless of value.
|
|
184
|
+
* Strict comparison distinguishes null/undefined, treats opaque objects by identity,
|
|
185
|
+
* compares URLs by normalized href, treats array holes as undefined, and considers distinct cyclic structures unequal.
|
|
186
|
+
* @param a - first value.
|
|
187
|
+
* @param b - second value.
|
|
188
|
+
* @param strict - whether to require strict data equality outside volatile references.
|
|
189
|
+
* @returns whether the values compare equal.
|
|
190
|
+
*/
|
|
191
|
+
function deepEqual(a, b, strict) {
|
|
192
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
193
|
+
function compare(a, b) {
|
|
194
|
+
if (a === b) return true;
|
|
195
|
+
if (isVolatile(a) || isVolatile(b)) return isVolatile(a) && isVolatile(b);
|
|
196
|
+
if (!strict && isNullable(a) && isNullable(b)) return true;
|
|
197
|
+
if (typeof a !== typeof b || typeof a !== "object" || !a || !b) return false;
|
|
198
|
+
if (ancestors.has(a)) return false;
|
|
199
|
+
function check(test, then) {
|
|
200
|
+
return test(a) ? test(b) ? then(a, b) : false : test(b) ? false : void 0;
|
|
201
|
+
}
|
|
202
|
+
ancestors.add(a);
|
|
203
|
+
try {
|
|
204
|
+
return check(Array.isArray, (a, b) => {
|
|
205
|
+
if (a.length !== b.length) return false;
|
|
206
|
+
for (let index = 0; index < a.length; index++) if (!compare(a[index], b[index])) return false;
|
|
207
|
+
return true;
|
|
208
|
+
}) ?? check(is("Date"), (a, b) => a.valueOf() === b.valueOf()) ?? check(is("URL"), (a, b) => a.href === b.href) ?? check(is("RegExp"), (a, b) => a.source === b.source && a.flags === b.flags) ?? check(isArrayBufferLike, (a, b) => {
|
|
209
|
+
if (a.byteLength !== b.byteLength) return false;
|
|
210
|
+
const viewA = new Uint8Array(a);
|
|
211
|
+
const viewB = new Uint8Array(b);
|
|
212
|
+
for (let i = 0; i < viewA.length; i++) if (viewA[i] !== viewB[i]) return false;
|
|
213
|
+
return true;
|
|
214
|
+
}) ?? ((!strict || [a, b].every((value) => Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null)) && Object.keys({
|
|
215
|
+
...a,
|
|
216
|
+
...b
|
|
217
|
+
}).every((key) => compare(a[key], b[key])));
|
|
218
|
+
} finally {
|
|
219
|
+
ancestors.delete(a);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return compare(a, b);
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region ../../../vendor/cosmokit/src/time.ts
|
|
226
|
+
let Time;
|
|
227
|
+
(function(_Time) {
|
|
228
|
+
_Time.millisecond = 1;
|
|
229
|
+
const second = _Time.second = 1e3;
|
|
230
|
+
const minute = _Time.minute = second * 60;
|
|
231
|
+
const hour = _Time.hour = minute * 60;
|
|
232
|
+
const day = _Time.day = hour * 24;
|
|
233
|
+
const week = _Time.week = day * 7;
|
|
234
|
+
let timezoneOffset = (/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
235
|
+
function setTimezoneOffset(offset) {
|
|
236
|
+
timezoneOffset = offset;
|
|
237
|
+
}
|
|
238
|
+
_Time.setTimezoneOffset = setTimezoneOffset;
|
|
239
|
+
function getTimezoneOffset() {
|
|
240
|
+
return timezoneOffset;
|
|
241
|
+
}
|
|
242
|
+
_Time.getTimezoneOffset = getTimezoneOffset;
|
|
243
|
+
function getDateNumber(date = /* @__PURE__ */ new Date(), offset) {
|
|
244
|
+
if (typeof date === "number") date = new Date(date);
|
|
245
|
+
if (offset === void 0) offset = timezoneOffset;
|
|
246
|
+
return Math.floor((date.valueOf() / minute - offset) / 1440);
|
|
247
|
+
}
|
|
248
|
+
_Time.getDateNumber = getDateNumber;
|
|
249
|
+
function fromDateNumber(value, offset) {
|
|
250
|
+
const date = new Date(value * day);
|
|
251
|
+
if (offset === void 0) offset = timezoneOffset;
|
|
252
|
+
return new Date(+date + offset * minute);
|
|
253
|
+
}
|
|
254
|
+
_Time.fromDateNumber = fromDateNumber;
|
|
255
|
+
const numeric = /\d+(?:\.\d+)?/.source;
|
|
256
|
+
const timeRegExp = new RegExp(`^${[
|
|
257
|
+
"w(?:eek(?:s)?)?",
|
|
258
|
+
"d(?:ay(?:s)?)?",
|
|
259
|
+
"h(?:our(?:s)?)?",
|
|
260
|
+
"m(?:in(?:ute)?(?:s)?)?",
|
|
261
|
+
"s(?:ec(?:ond)?(?:s)?)?"
|
|
262
|
+
].map((unit) => `(${numeric}${unit})?`).join("")}$`);
|
|
263
|
+
function parseTime(source) {
|
|
264
|
+
const capture = timeRegExp.exec(source);
|
|
265
|
+
if (!capture) return 0;
|
|
266
|
+
return (parseFloat(capture[1]) * week || 0) + (parseFloat(capture[2]) * day || 0) + (parseFloat(capture[3]) * hour || 0) + (parseFloat(capture[4]) * minute || 0) + (parseFloat(capture[5]) * second || 0);
|
|
267
|
+
}
|
|
268
|
+
_Time.parseTime = parseTime;
|
|
269
|
+
function parseDate(date) {
|
|
270
|
+
const parsed = parseTime(date);
|
|
271
|
+
if (parsed) date = Date.now() + parsed;
|
|
272
|
+
else if (/^\d{1,2}(:\d{1,2}){1,2}$/.test(date)) date = `${(/* @__PURE__ */ new Date()).toLocaleDateString()}-${date}`;
|
|
273
|
+
else if (/^\d{1,2}-\d{1,2}-\d{1,2}(:\d{1,2}){1,2}$/.test(date)) date = `${(/* @__PURE__ */ new Date()).getFullYear()}-${date}`;
|
|
274
|
+
return date ? new Date(date) : /* @__PURE__ */ new Date();
|
|
275
|
+
}
|
|
276
|
+
_Time.parseDate = parseDate;
|
|
277
|
+
function format(ms) {
|
|
278
|
+
const abs = Math.abs(ms);
|
|
279
|
+
if (abs >= day - hour / 2) return Math.round(ms / day) + "d";
|
|
280
|
+
else if (abs >= hour - minute / 2) return Math.round(ms / hour) + "h";
|
|
281
|
+
else if (abs >= minute - second / 2) return Math.round(ms / minute) + "m";
|
|
282
|
+
else if (abs >= second) return Math.round(ms / second) + "s";
|
|
283
|
+
return ms + "ms";
|
|
284
|
+
}
|
|
285
|
+
_Time.format = format;
|
|
286
|
+
function toDigits(source, length = 2) {
|
|
287
|
+
return source.toString().padStart(length, "0");
|
|
288
|
+
}
|
|
289
|
+
_Time.toDigits = toDigits;
|
|
290
|
+
function template(template, time = /* @__PURE__ */ new Date()) {
|
|
291
|
+
return template.replace("yyyy", time.getFullYear().toString()).replace("yy", time.getFullYear().toString().slice(2)).replace("MM", toDigits(time.getMonth() + 1)).replace("dd", toDigits(time.getDate())).replace("hh", toDigits(time.getHours())).replace("mm", toDigits(time.getMinutes())).replace("ss", toDigits(time.getSeconds())).replace("SSS", toDigits(time.getMilliseconds(), 3));
|
|
292
|
+
}
|
|
293
|
+
_Time.template = template;
|
|
294
|
+
})(Time || (Time = {}));
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region ../../../vendor/include/src/journal.ts
|
|
297
|
+
function diffOptions(legacy, options) {
|
|
298
|
+
const changes = {};
|
|
299
|
+
for (const key of new Set([...Object.keys(legacy), ...Object.keys(options)])) {
|
|
300
|
+
if (key === "id") continue;
|
|
301
|
+
if (deepEqual(legacy[key], options[key])) continue;
|
|
302
|
+
changes[key] = options[key];
|
|
303
|
+
}
|
|
304
|
+
return changes;
|
|
305
|
+
}
|
|
306
|
+
/** Fold a later record into an earlier one for the same entry. */
|
|
307
|
+
function mergeRecords(older, newer) {
|
|
308
|
+
if (!older) return newer;
|
|
309
|
+
if (newer.kind === "remove") return older.kind === "upsert" && older.created ? void 0 : newer;
|
|
310
|
+
if (older.kind === "remove") return {
|
|
311
|
+
...newer,
|
|
312
|
+
created: false
|
|
313
|
+
};
|
|
314
|
+
const relocated = newer.parent !== void 0;
|
|
315
|
+
return {
|
|
316
|
+
kind: "upsert",
|
|
317
|
+
created: older.created,
|
|
318
|
+
parent: relocated ? newer.parent : older.parent,
|
|
319
|
+
position: relocated ? newer.position : older.position,
|
|
320
|
+
changes: {
|
|
321
|
+
...older.changes,
|
|
322
|
+
...newer.changes
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
function merge(journal, id, record) {
|
|
327
|
+
const merged = mergeRecords(journal.get(id), record);
|
|
328
|
+
if (merged) journal.set(id, merged);
|
|
329
|
+
else journal.delete(id);
|
|
330
|
+
}
|
|
331
|
+
function record$1(journal, change, parent) {
|
|
332
|
+
const { id, options, legacy } = change;
|
|
333
|
+
if (!options) return merge(journal, id, { kind: "remove" });
|
|
334
|
+
const position = change.group.data.indexOf(options);
|
|
335
|
+
if (!legacy) return merge(journal, id, {
|
|
336
|
+
kind: "upsert",
|
|
337
|
+
created: true,
|
|
338
|
+
parent,
|
|
339
|
+
position,
|
|
340
|
+
changes: omit(options, ["id"])
|
|
341
|
+
});
|
|
342
|
+
merge(journal, id, {
|
|
343
|
+
kind: "upsert",
|
|
344
|
+
created: false,
|
|
345
|
+
parent: change.from ? parent : void 0,
|
|
346
|
+
position,
|
|
347
|
+
changes: diffOptions(legacy, options)
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/** Index every entry (including nested group members) by id. */
|
|
351
|
+
function flatten(data, parent = null, result = /* @__PURE__ */ new Map()) {
|
|
352
|
+
data.forEach((options, position) => {
|
|
353
|
+
if (options.id) result.set(options.id, {
|
|
354
|
+
parent,
|
|
355
|
+
position,
|
|
356
|
+
options,
|
|
357
|
+
list: data
|
|
358
|
+
});
|
|
359
|
+
if (options.group && Array.isArray(options.config)) flatten(options.config, options.id ?? null, result);
|
|
360
|
+
});
|
|
361
|
+
return result;
|
|
362
|
+
}
|
|
363
|
+
function applyChanges(options, changes, filter) {
|
|
364
|
+
for (const [key, value] of Object.entries(changes)) {
|
|
365
|
+
if (filter && !filter(key)) continue;
|
|
366
|
+
if (value === void 0) delete options[key];
|
|
367
|
+
else options[key] = value;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
function detach(data, id) {
|
|
371
|
+
const flat = flatten(data).get(id);
|
|
372
|
+
if (!flat) return;
|
|
373
|
+
flat.list.splice(flat.list.indexOf(flat.options), 1);
|
|
374
|
+
return flat.options;
|
|
130
375
|
}
|
|
131
376
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* is never mutated: patching shared entry objects would bake earlier patch
|
|
136
|
-
* values into the cached parse, so repeated application (config hot-reloads)
|
|
137
|
-
* could never revert a removed or changed patch. Inserted entries are indexed
|
|
138
|
-
* as they are added, so a later patch in the same list can target a row an
|
|
139
|
-
* earlier patch inserted. A patch that matches nothing warns and is skipped.
|
|
140
|
-
* @param data - the parsed entry list (JSON-safe plain data).
|
|
141
|
-
* @param patches - the patch list to apply, in order.
|
|
142
|
-
* @param warn - sink for skipped-patch diagnostics (printf-style, `%C` = code).
|
|
143
|
-
* @returns a detached entry list with every applicable patch applied.
|
|
377
|
+
* Insert `options` under `parent` (a group id, or `null` for the root) at
|
|
378
|
+
* `position`, clamped to the group's length. Returns false when the parent
|
|
379
|
+
* group does not exist.
|
|
144
380
|
*/
|
|
145
|
-
function
|
|
146
|
-
|
|
381
|
+
function place(data, options, parent, position) {
|
|
382
|
+
let list = data;
|
|
383
|
+
if (parent !== null) {
|
|
384
|
+
const group = flatten(data).get(parent);
|
|
385
|
+
if (!group?.options.group) return false;
|
|
386
|
+
list = group.options.config ??= [];
|
|
387
|
+
}
|
|
388
|
+
list.splice(Math.min(position, list.length), 0, options);
|
|
389
|
+
return true;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Overlay a journal onto `data` in place. `filter(id, key)` restricts which
|
|
393
|
+
* changes apply; `key` is `null` when asking about the entry as a whole
|
|
394
|
+
* (creation, removal, relocation).
|
|
395
|
+
*/
|
|
396
|
+
function applyJournal(data, journal, filter = () => true, warn = () => {}) {
|
|
397
|
+
for (const [id, record] of journal) {
|
|
398
|
+
if (!filter(id, null)) continue;
|
|
399
|
+
if (record.kind === "remove") {
|
|
400
|
+
detach(data, id);
|
|
401
|
+
continue;
|
|
402
|
+
}
|
|
403
|
+
const flat = flatten(data).get(id);
|
|
404
|
+
if (!flat) {
|
|
405
|
+
const options = { id };
|
|
406
|
+
applyChanges(options, record.changes, (key) => filter(id, key));
|
|
407
|
+
const parent = record.parent ?? null;
|
|
408
|
+
if (!place(data, options, parent, record.position)) warn("cannot place entry %C: group %C not found", id, parent);
|
|
409
|
+
continue;
|
|
410
|
+
}
|
|
411
|
+
applyChanges(flat.options, record.changes, (key) => filter(id, key));
|
|
412
|
+
if (record.parent !== void 0 && flat.parent !== record.parent) {
|
|
413
|
+
detach(data, id);
|
|
414
|
+
if (!place(data, flat.options, record.parent, record.position)) {
|
|
415
|
+
warn("cannot move entry %C: group %C not found", id, record.parent);
|
|
416
|
+
place(data, flat.options, flat.parent, flat.position);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return data;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Three-way reconciliation of a journal against a new file state. The file
|
|
424
|
+
* wins every conflict: conflicting keys are dropped from the journal so that
|
|
425
|
+
* the tree follows the file, and each drop is reported.
|
|
426
|
+
*
|
|
427
|
+
* `fileOwned(id, key)` scopes the check to what the file can actually express
|
|
428
|
+
* (patch-owned keys and patch-inserted entries live elsewhere).
|
|
429
|
+
*/
|
|
430
|
+
function reconcile(journal, base, theirs, fileOwned) {
|
|
431
|
+
const conflicts = [];
|
|
432
|
+
for (const [id, record] of journal) {
|
|
433
|
+
if (!fileOwned(id, null)) continue;
|
|
434
|
+
const b = base.get(id);
|
|
435
|
+
const t = theirs.get(id);
|
|
436
|
+
if (record.kind === "remove") {
|
|
437
|
+
if (!t) journal.delete(id);
|
|
438
|
+
else if (!b || !deepEqual(t.options, b.options)) {
|
|
439
|
+
conflicts.push({
|
|
440
|
+
id,
|
|
441
|
+
reason: b ? "modified in file, removed at runtime" : "added in file, removed at runtime"
|
|
442
|
+
});
|
|
443
|
+
journal.delete(id);
|
|
444
|
+
}
|
|
445
|
+
continue;
|
|
446
|
+
}
|
|
447
|
+
if (!t) {
|
|
448
|
+
if (b) {
|
|
449
|
+
conflicts.push({
|
|
450
|
+
id,
|
|
451
|
+
reason: "removed in file, modified at runtime"
|
|
452
|
+
});
|
|
453
|
+
journal.delete(id);
|
|
454
|
+
}
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if (record.created) record.created = false;
|
|
458
|
+
for (const key of Object.keys(record.changes)) {
|
|
459
|
+
if (!fileOwned(id, key)) continue;
|
|
460
|
+
const bv = b?.options[key];
|
|
461
|
+
const tv = t.options[key];
|
|
462
|
+
if (deepEqual(bv, tv) || deepEqual(tv, record.changes[key])) continue;
|
|
463
|
+
conflicts.push({
|
|
464
|
+
id,
|
|
465
|
+
reason: `key "${key}" modified both in file and at runtime`
|
|
466
|
+
});
|
|
467
|
+
delete record.changes[key];
|
|
468
|
+
}
|
|
469
|
+
if (record.parent !== void 0 && b && t.parent !== b.parent && t.parent !== record.parent) {
|
|
470
|
+
conflicts.push({
|
|
471
|
+
id,
|
|
472
|
+
reason: "moved both in file and at runtime"
|
|
473
|
+
});
|
|
474
|
+
record.parent = void 0;
|
|
475
|
+
}
|
|
476
|
+
const moved = record.parent !== void 0 && record.parent !== t.parent;
|
|
477
|
+
if (!Object.keys(record.changes).length && !moved) journal.delete(id);
|
|
478
|
+
}
|
|
479
|
+
return conflicts;
|
|
480
|
+
}
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region ../../../vendor/include/src/patch.ts
|
|
483
|
+
function randomId(used) {
|
|
484
|
+
let id;
|
|
485
|
+
do
|
|
486
|
+
id = Math.random().toString(16).slice(2, 10);
|
|
487
|
+
while (used(id));
|
|
488
|
+
return id;
|
|
489
|
+
}
|
|
490
|
+
/** Give every entry (nested groups included) an id, in place. */
|
|
491
|
+
function ensureIds(entries, used) {
|
|
492
|
+
for (const entry of entries) {
|
|
493
|
+
if (!entry.id) entry.id = randomId(used);
|
|
494
|
+
if (entry.group && Array.isArray(entry.config)) ensureIds(entry.config, used);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
/** Runtime changes are routed back to an inserted entry by its id, so every insert needs one. */
|
|
498
|
+
function ensureInsertIds(patches, used) {
|
|
499
|
+
for (const patch of patches ?? []) if (patch.insert) ensureIds(patch.insert, used);
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Overlay `patches` onto a fresh clone of `data`. Inserted entries are cloned
|
|
503
|
+
* too, so the tree owns every object it mounts.
|
|
504
|
+
*/
|
|
505
|
+
function applyPatches(data, patches, warn) {
|
|
147
506
|
data = structuredClone(data);
|
|
507
|
+
if (!patches?.length) return data;
|
|
148
508
|
const entryMap = /* @__PURE__ */ new Map();
|
|
149
509
|
const buildMap = (entries) => {
|
|
150
510
|
for (const entry of entries) {
|
|
@@ -156,6 +516,7 @@ function applyEntryPatches(data, patches, warn) {
|
|
|
156
516
|
for (const patch of patches) {
|
|
157
517
|
const { id, insert, name, ...overrides } = patch;
|
|
158
518
|
if (insert) {
|
|
519
|
+
const clone = structuredClone(insert);
|
|
159
520
|
if (id) {
|
|
160
521
|
const target = entryMap.get(id);
|
|
161
522
|
if (!target) {
|
|
@@ -167,9 +528,9 @@ function applyEntryPatches(data, patches, warn) {
|
|
|
167
528
|
continue;
|
|
168
529
|
}
|
|
169
530
|
if (!Array.isArray(target.config)) target.config = [];
|
|
170
|
-
target.config.push(...
|
|
171
|
-
} else data.push(...
|
|
172
|
-
buildMap(
|
|
531
|
+
target.config.push(...clone);
|
|
532
|
+
} else data.push(...clone);
|
|
533
|
+
buildMap(clone);
|
|
173
534
|
continue;
|
|
174
535
|
}
|
|
175
536
|
if (!id) {
|
|
@@ -192,143 +553,478 @@ function applyEntryPatches(data, patches, warn) {
|
|
|
192
553
|
}
|
|
193
554
|
return data;
|
|
194
555
|
}
|
|
195
|
-
|
|
556
|
+
var PatchIndex = class {
|
|
557
|
+
patches;
|
|
558
|
+
keys = /* @__PURE__ */ new Map();
|
|
559
|
+
inserts = /* @__PURE__ */ new Map();
|
|
560
|
+
constructor(patches) {
|
|
561
|
+
this.patches = patches;
|
|
562
|
+
patches.forEach((patch, index) => {
|
|
563
|
+
const { id, insert } = patch;
|
|
564
|
+
if (insert) {
|
|
565
|
+
const walk = (list, parent) => {
|
|
566
|
+
for (const options of list) {
|
|
567
|
+
this.inserts.set(options.id, {
|
|
568
|
+
type: "insert",
|
|
569
|
+
index,
|
|
570
|
+
list,
|
|
571
|
+
options,
|
|
572
|
+
parent
|
|
573
|
+
});
|
|
574
|
+
if (options.group && Array.isArray(options.config)) walk(options.config, options.id);
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
walk(insert, id ?? null);
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
if (!id) return;
|
|
581
|
+
const keys = this.keys.get(id) ?? /* @__PURE__ */ new Map();
|
|
582
|
+
for (const key of Object.keys(omit(patch, [
|
|
583
|
+
"id",
|
|
584
|
+
"insert",
|
|
585
|
+
"name"
|
|
586
|
+
]))) keys.set(key, index);
|
|
587
|
+
this.keys.set(id, keys);
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/** Owner of the entry as a whole. */
|
|
591
|
+
entry(id) {
|
|
592
|
+
if (id === null) return { type: "file" };
|
|
593
|
+
return this.inserts.get(id) ?? { type: "file" };
|
|
594
|
+
}
|
|
595
|
+
/** Owner of one key of an entry. */
|
|
596
|
+
key(id, key) {
|
|
597
|
+
const insert = this.inserts.get(id);
|
|
598
|
+
if (insert) return insert;
|
|
599
|
+
const index = this.keys.get(id)?.get(key);
|
|
600
|
+
return index === void 0 ? { type: "file" } : {
|
|
601
|
+
type: "patch",
|
|
602
|
+
index
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
fileOwned(id, key) {
|
|
606
|
+
return (key === null ? this.entry(id) : this.key(id, key)).type === "file";
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
/**
|
|
610
|
+
* Route a journal to its owners: file-owned changes are applied to `data`,
|
|
611
|
+
* patch-owned ones to `patches`. Both are mutated in place, so pass clones.
|
|
612
|
+
* Returns whether any patch changed.
|
|
613
|
+
*/
|
|
614
|
+
function routeJournal(journal, data, patches, warn) {
|
|
615
|
+
const index = new PatchIndex(patches);
|
|
616
|
+
let patched = false;
|
|
617
|
+
const insertList = (owner) => owner.options.config ??= [];
|
|
618
|
+
const placeAt = (options, parent, position) => {
|
|
619
|
+
const owner = index.entry(parent);
|
|
620
|
+
if (owner.type === "insert") {
|
|
621
|
+
const list = insertList(owner);
|
|
622
|
+
list.splice(Math.min(position, list.length), 0, options);
|
|
623
|
+
patched = true;
|
|
624
|
+
} else if (!place(data, options, parent, position)) warn("cannot place entry %C: group %C not found", options.id, parent);
|
|
625
|
+
};
|
|
626
|
+
for (const [id, record] of journal) {
|
|
627
|
+
const owner = index.entry(id);
|
|
628
|
+
if (record.kind === "remove") {
|
|
629
|
+
if (owner.type === "insert") {
|
|
630
|
+
owner.list.splice(owner.list.indexOf(owner.options), 1);
|
|
631
|
+
patched = true;
|
|
632
|
+
} else detach(data, id);
|
|
633
|
+
continue;
|
|
634
|
+
}
|
|
635
|
+
const current = owner.type === "insert" ? owner : flatten(data).get(id);
|
|
636
|
+
if (!current) {
|
|
637
|
+
const options = { id };
|
|
638
|
+
applyChanges(options, record.changes);
|
|
639
|
+
placeAt(options, record.parent ?? null, record.position);
|
|
640
|
+
continue;
|
|
641
|
+
}
|
|
642
|
+
if (record.parent !== void 0 && current.parent !== record.parent) {
|
|
643
|
+
if (owner.type === "insert") {
|
|
644
|
+
owner.list.splice(owner.list.indexOf(owner.options), 1);
|
|
645
|
+
patched = true;
|
|
646
|
+
} else detach(data, id);
|
|
647
|
+
applyChanges(current.options, record.changes);
|
|
648
|
+
placeAt(current.options, record.parent, record.position);
|
|
649
|
+
continue;
|
|
650
|
+
}
|
|
651
|
+
if (owner.type === "insert") {
|
|
652
|
+
applyChanges(current.options, record.changes);
|
|
653
|
+
patched = true;
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
656
|
+
const patchChanges = {};
|
|
657
|
+
applyChanges(current.options, record.changes, (key) => {
|
|
658
|
+
const keyOwner = index.key(id, key);
|
|
659
|
+
if (keyOwner.type !== "patch") return true;
|
|
660
|
+
(patchChanges[keyOwner.index] ??= {})[key] = record.changes[key];
|
|
661
|
+
return false;
|
|
662
|
+
});
|
|
663
|
+
for (const [i, changes] of Object.entries(patchChanges)) {
|
|
664
|
+
applyChanges(patches[i], changes);
|
|
665
|
+
patched = true;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
return patched;
|
|
669
|
+
}
|
|
670
|
+
//#endregion
|
|
671
|
+
//#region ../../../vendor/include/src/index.ts
|
|
672
|
+
const JsExpr = new yaml.Type("tag:yaml.org,2002:js", {
|
|
673
|
+
kind: "scalar",
|
|
674
|
+
resolve: (data) => typeof data === "string",
|
|
675
|
+
construct: (data) => ({ __jsExpr: data }),
|
|
676
|
+
predicate: isJsExpr,
|
|
677
|
+
represent: (data) => data["__jsExpr"]
|
|
678
|
+
});
|
|
679
|
+
/** YAML dialect preserving child-owned JavaScript expression nodes. */
|
|
680
|
+
const entryListSchema = yaml.JSON_SCHEMA.extend(JsExpr);
|
|
681
|
+
const schema = entryListSchema;
|
|
682
|
+
const types = {
|
|
683
|
+
".json": "application/json",
|
|
684
|
+
".yaml": "application/yaml",
|
|
685
|
+
".yml": "application/yaml"
|
|
686
|
+
};
|
|
687
|
+
var ConfigFileError = class extends Error {
|
|
688
|
+
stage;
|
|
689
|
+
name = "ConfigFileError";
|
|
690
|
+
constructor(stage, path, cause) {
|
|
691
|
+
super(`failed to ${stage} config file ${path}`, { cause });
|
|
692
|
+
this.stage = stage;
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
/** The file changed under us between the pre-check and the rename. */
|
|
696
|
+
var StaleWriteError = class extends Error {
|
|
697
|
+
name = "StaleWriteError";
|
|
698
|
+
};
|
|
699
|
+
function isENOENT(error) {
|
|
700
|
+
return error?.code === "ENOENT";
|
|
701
|
+
}
|
|
702
|
+
const RENAME_RETRIES = 10;
|
|
703
|
+
const RENAME_BACKOFF = 20;
|
|
704
|
+
/**
|
|
705
|
+
* On Windows a rename over a file that another process holds open (typically
|
|
706
|
+
* an antivirus scanning what we just wrote) fails with one of these; the lock
|
|
707
|
+
* is normally gone within milliseconds. A bounded retry is cheap enough to
|
|
708
|
+
* apply on every platform.
|
|
709
|
+
*/
|
|
710
|
+
function isTransientRenameError(error) {
|
|
711
|
+
const code = error?.code;
|
|
712
|
+
return code === "EACCES" || code === "EPERM" || code === "EBUSY";
|
|
713
|
+
}
|
|
196
714
|
var Include = class extends EntryTree {
|
|
197
715
|
config;
|
|
198
716
|
static inject = ["loader"];
|
|
199
717
|
static [EntryGroup.key] = true;
|
|
200
718
|
filename;
|
|
201
719
|
type;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
720
|
+
/** The last file state we read or wrote. */
|
|
721
|
+
cache;
|
|
722
|
+
/** Tree-side changes that have not reached the file yet. */
|
|
723
|
+
journal = /* @__PURE__ */ new Map();
|
|
724
|
+
/** Ids we assigned to entries the file leaves anonymous. */
|
|
725
|
+
anonymous = /* @__PURE__ */ new Map();
|
|
726
|
+
dirtyRead = false;
|
|
727
|
+
dirtyWrite = false;
|
|
728
|
+
_draining;
|
|
729
|
+
/** Only the latest intended tree is ever applied; older ones are skipped. */
|
|
730
|
+
_pendingTree;
|
|
731
|
+
_applyTask;
|
|
732
|
+
_disposed = false;
|
|
733
|
+
_seq = 0;
|
|
734
|
+
persistenceError;
|
|
208
735
|
constructor(ctx, config) {
|
|
209
736
|
super(ctx);
|
|
210
737
|
this.config = config;
|
|
211
738
|
this.enableLogs = config.enableLogs ?? ctx.fiber.entry?.parent.tree.enableLogs ?? false;
|
|
212
739
|
this.filename = fileURLToPath(new URL(this.config.path, this.ctx.baseUrl));
|
|
213
740
|
const ext = extname(this.filename);
|
|
214
|
-
if (!
|
|
215
|
-
this.type =
|
|
216
|
-
this.readonly = !this.type;
|
|
741
|
+
if (!types[ext]) throw new Error(`extension "${ext}" not supported`);
|
|
742
|
+
this.type = types[ext];
|
|
217
743
|
this.ctx.baseUrl = new URL(".", pathToFileURL(this.filename)).href;
|
|
744
|
+
ensureInsertIds(config.patches, (id) => !!this.store[id]);
|
|
218
745
|
ctx.on("internal/update", (config, next) => {
|
|
219
746
|
if (config.path !== this.config.path) return next();
|
|
220
747
|
this.config = config;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
});
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
async checkAccess() {
|
|
228
|
-
if (!this.type) return;
|
|
229
|
-
try {
|
|
230
|
-
await access(this.filename, constants.W_OK);
|
|
231
|
-
} catch {
|
|
232
|
-
this.readonly = true;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
async read(forced = false) {
|
|
236
|
-
const content = await readFile(this.filename, "utf8");
|
|
237
|
-
if (!forced && this.content === content) return false;
|
|
238
|
-
let data;
|
|
239
|
-
if (this.type === "application/yaml") data = yaml.load(content, { schema: entryListSchema });
|
|
240
|
-
else if (this.type === "application/json") data = JSON.parse(content);
|
|
241
|
-
else {
|
|
242
|
-
const module = await import(
|
|
243
|
-
/* @vite-ignore */
|
|
244
|
-
this.filename
|
|
245
|
-
);
|
|
246
|
-
data = module.default || module;
|
|
247
|
-
}
|
|
248
|
-
if (!Array.isArray(data)) throw new TypeError(`config file must be a top-level array of entries: ${this.filename}`);
|
|
249
|
-
this.content = content;
|
|
250
|
-
this.data = data;
|
|
251
|
-
await this.checkAccess();
|
|
252
|
-
return true;
|
|
253
|
-
}
|
|
254
|
-
applyPatches(data, patches = this.config.patches) {
|
|
255
|
-
return applyEntryPatches(data, patches, (message, ...args) => {
|
|
256
|
-
this.ctx.root.logger?.("loader").warn(message, ...args);
|
|
748
|
+
ensureInsertIds(config.patches, (id) => !!this.store[id]);
|
|
749
|
+
this._scheduleApply();
|
|
750
|
+
return this._applyTask;
|
|
257
751
|
});
|
|
258
752
|
}
|
|
753
|
+
warn = (format, ...args) => {
|
|
754
|
+
this.ctx.root.logger?.("loader").warn(format, ...args);
|
|
755
|
+
};
|
|
259
756
|
async *[Service.init]() {
|
|
260
757
|
try {
|
|
261
|
-
await this.
|
|
758
|
+
await this._read();
|
|
262
759
|
} catch (error) {
|
|
263
|
-
if (error
|
|
264
|
-
if (this.config.initial) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
760
|
+
if (!isENOENT(error instanceof ConfigFileError && error.stage === "read" ? error.cause : void 0)) throw error;
|
|
761
|
+
if (!this.config.initial) throw new Error(`config file not found: ${this.filename}`);
|
|
762
|
+
const initial = structuredClone(this.config.initial);
|
|
763
|
+
ensureIds(initial, (id) => !!this.store[id]);
|
|
764
|
+
await this._writeText(this.dump(initial));
|
|
765
|
+
await this._read();
|
|
268
766
|
}
|
|
269
767
|
yield () => this.stop();
|
|
270
|
-
await this.
|
|
768
|
+
await this._applyTask;
|
|
271
769
|
}
|
|
272
770
|
async stop() {
|
|
771
|
+
this._disposed = true;
|
|
772
|
+
this._pendingTree = void 0;
|
|
773
|
+
if (this.journal.size) {
|
|
774
|
+
this.dirtyWrite = true;
|
|
775
|
+
this._drain();
|
|
776
|
+
}
|
|
273
777
|
try {
|
|
274
|
-
await this.
|
|
778
|
+
await this.flush();
|
|
275
779
|
} finally {
|
|
276
780
|
this.root.stop();
|
|
277
|
-
await this.flushWrite();
|
|
278
781
|
}
|
|
279
782
|
}
|
|
280
783
|
/**
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
* tree: a hot-reload of a live app must never take the process down.
|
|
784
|
+
* Resolves once every pending read and write has been processed and the
|
|
785
|
+
* tree reflects the outcome. Retries pending writes and rejects while changes remain unsaved.
|
|
284
786
|
*/
|
|
285
|
-
async
|
|
787
|
+
async flush() {
|
|
788
|
+
if (this.journal.size && !this._draining) {
|
|
789
|
+
this.dirtyWrite = true;
|
|
790
|
+
this._drain();
|
|
791
|
+
}
|
|
792
|
+
while (this._draining || this._applyTask) {
|
|
793
|
+
await this._draining;
|
|
794
|
+
await this._applyTask;
|
|
795
|
+
}
|
|
796
|
+
if (this.journal.size) throw this.persistenceError ?? /* @__PURE__ */ new Error(`config file ${this.filename} has ${this.journal.size} unsaved change(s)`);
|
|
797
|
+
this.persistenceError = void 0;
|
|
798
|
+
}
|
|
799
|
+
/** Re-read the file and reconcile the tree with it. */
|
|
800
|
+
refresh() {
|
|
801
|
+
this.dirtyRead = true;
|
|
802
|
+
this._drain();
|
|
803
|
+
return this.flush();
|
|
804
|
+
}
|
|
805
|
+
/** Called synchronously by the loader once a tree-side change is in place. */
|
|
806
|
+
commit(change) {
|
|
807
|
+
this.context.emit("loader/config-update");
|
|
808
|
+
const parent = change.group === this.root ? null : change.group.ctx.fiber.entry.options.id;
|
|
809
|
+
record$1(this.journal, change, parent);
|
|
810
|
+
this.dirtyWrite = true;
|
|
811
|
+
this._drain();
|
|
812
|
+
}
|
|
813
|
+
_drain() {
|
|
814
|
+
if (this._draining) return;
|
|
815
|
+
this._draining = this._loop().finally(() => {
|
|
816
|
+
this._draining = void 0;
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
async _loop() {
|
|
820
|
+
while (this.dirtyRead || this.dirtyWrite) {
|
|
821
|
+
if (this.dirtyRead) {
|
|
822
|
+
this.dirtyRead = false;
|
|
823
|
+
try {
|
|
824
|
+
await this._read();
|
|
825
|
+
} catch (error) {
|
|
826
|
+
this.persistenceError = error;
|
|
827
|
+
this.ctx.logger.warn(error);
|
|
828
|
+
if (this.dirtyRead) continue;
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
if (this.dirtyWrite) {
|
|
833
|
+
this.dirtyWrite = false;
|
|
834
|
+
try {
|
|
835
|
+
await this._write();
|
|
836
|
+
} catch (error) {
|
|
837
|
+
this.persistenceError = error;
|
|
838
|
+
this.ctx.logger.error(error);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
async _read() {
|
|
844
|
+
let content;
|
|
845
|
+
try {
|
|
846
|
+
content = await readFile(this.filename, "utf8");
|
|
847
|
+
} catch (error) {
|
|
848
|
+
throw new ConfigFileError("read", this.filename, error);
|
|
849
|
+
}
|
|
850
|
+
if (content === this.cache?.content) return;
|
|
851
|
+
let data;
|
|
286
852
|
try {
|
|
287
|
-
|
|
288
|
-
await this.root.update(this.applyPatches(this.data));
|
|
853
|
+
data = this.type === "application/yaml" ? yaml.load(content, { schema }) : JSON.parse(content);
|
|
289
854
|
} catch (error) {
|
|
290
|
-
|
|
291
|
-
|
|
855
|
+
throw new ConfigFileError("parse", this.filename, error);
|
|
856
|
+
}
|
|
857
|
+
if (!Array.isArray(data)) throw new ConfigFileError("validate", this.filename, /* @__PURE__ */ new TypeError("config file must be a top-level array"));
|
|
858
|
+
this._assignIds(data);
|
|
859
|
+
if (this.cache) {
|
|
860
|
+
const index = new PatchIndex(this.config.patches ?? []);
|
|
861
|
+
const conflicts = reconcile(this.journal, flatten(this.cache.data), flatten(data), (id, key) => index.fileOwned(id, key));
|
|
862
|
+
for (const { id, reason } of conflicts) this.ctx.logger.error("config conflict in %C: entry %C %s; file wins", this.filename, id, reason);
|
|
292
863
|
}
|
|
864
|
+
this.cache = {
|
|
865
|
+
content,
|
|
866
|
+
data
|
|
867
|
+
};
|
|
868
|
+
this._scheduleApply();
|
|
869
|
+
if (this.journal.size) this.dirtyWrite = true;
|
|
293
870
|
}
|
|
294
|
-
async
|
|
295
|
-
if (this.
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
871
|
+
async _write() {
|
|
872
|
+
if (!this.cache || !this.journal.size) return;
|
|
873
|
+
const current = await readFile(this.filename, "utf8").catch((error) => {
|
|
874
|
+
if (isENOENT(error)) return void 0;
|
|
875
|
+
throw error;
|
|
876
|
+
});
|
|
877
|
+
if (current === void 0) {
|
|
878
|
+
this.ctx.logger.warn("config file %C is missing, %d pending change(s) kept in memory", this.filename, this.journal.size);
|
|
879
|
+
return;
|
|
880
|
+
}
|
|
881
|
+
if (current !== this.cache.content) {
|
|
882
|
+
this.dirtyRead = true;
|
|
883
|
+
this.dirtyWrite = true;
|
|
301
884
|
return;
|
|
885
|
+
}
|
|
886
|
+
const batch = this.journal;
|
|
887
|
+
this.journal = /* @__PURE__ */ new Map();
|
|
888
|
+
const restore = () => {
|
|
889
|
+
for (const [id, record] of this.journal) merge(batch, id, record);
|
|
890
|
+
this.journal = batch;
|
|
891
|
+
};
|
|
892
|
+
const data = structuredClone(this.cache.data);
|
|
893
|
+
const patches = structuredClone(this.config.patches ?? []);
|
|
894
|
+
if (routeJournal(batch, data, patches, this.warn)) {
|
|
895
|
+
this.config = {
|
|
896
|
+
...this.config,
|
|
897
|
+
patches
|
|
898
|
+
};
|
|
899
|
+
if (this.ctx.fiber.entry) try {
|
|
900
|
+
Promise.resolve(this.ctx.fiber.update(this.config)).catch((error) => {
|
|
901
|
+
this.ctx.logger.error(error);
|
|
902
|
+
});
|
|
903
|
+
} catch (error) {
|
|
904
|
+
this.ctx.logger.error(error);
|
|
905
|
+
}
|
|
906
|
+
else this.ctx.logger.warn("patches of %C changed at runtime but cannot be persisted", this.filename);
|
|
907
|
+
}
|
|
908
|
+
if (deepEqual(data, this.cache.data)) {
|
|
909
|
+
this._scheduleApply();
|
|
910
|
+
return;
|
|
911
|
+
}
|
|
912
|
+
const text = this.dump(data);
|
|
913
|
+
try {
|
|
914
|
+
await access(this.filename, constants.W_OK);
|
|
915
|
+
} catch {
|
|
916
|
+
restore();
|
|
917
|
+
this.ctx.logger.warn("config file %C is read-only, %d pending change(s) kept in memory", this.filename, this.journal.size);
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
try {
|
|
921
|
+
await this._writeText(text, this.cache.content);
|
|
922
|
+
} catch (error) {
|
|
923
|
+
restore();
|
|
924
|
+
if (error instanceof StaleWriteError) {
|
|
925
|
+
this.dirtyRead = true;
|
|
926
|
+
this.dirtyWrite = true;
|
|
927
|
+
return;
|
|
928
|
+
}
|
|
929
|
+
this.ctx.logger.warn("failed to write config file %C, %d pending change(s) kept in memory", this.filename, this.journal.size);
|
|
930
|
+
throw error;
|
|
931
|
+
}
|
|
932
|
+
this.cache = {
|
|
933
|
+
content: text,
|
|
934
|
+
data
|
|
935
|
+
};
|
|
936
|
+
this._scheduleApply();
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* Write through a temp file and a rename, so that no reader ever sees a
|
|
940
|
+
* truncated file. When `expected` is given, the rename (and every retry of
|
|
941
|
+
* it) only goes ahead while the file still holds that content.
|
|
942
|
+
*/
|
|
943
|
+
async _writeText(text, expected) {
|
|
944
|
+
const tmp = join(dirname(this.filename), `.${basename(this.filename)}.${process.pid}.${this._seq++}.tmp`);
|
|
945
|
+
try {
|
|
946
|
+
await writeFile(tmp, text);
|
|
947
|
+
for (let attempt = 0;; attempt++) {
|
|
948
|
+
if (expected !== void 0) {
|
|
949
|
+
if (await readFile(this.filename, "utf8").catch((error) => {
|
|
950
|
+
if (isENOENT(error)) return void 0;
|
|
951
|
+
throw error;
|
|
952
|
+
}) !== expected) throw new StaleWriteError();
|
|
953
|
+
}
|
|
954
|
+
try {
|
|
955
|
+
await rename(tmp, this.filename);
|
|
956
|
+
return;
|
|
957
|
+
} catch (error) {
|
|
958
|
+
if (attempt >= RENAME_RETRIES || !isTransientRenameError(error)) throw error;
|
|
959
|
+
}
|
|
960
|
+
await setTimeout$1(RENAME_BACKOFF * (attempt + 1));
|
|
961
|
+
}
|
|
302
962
|
} catch (error) {
|
|
303
|
-
|
|
304
|
-
|
|
963
|
+
await rm(tmp, { force: true }).catch(() => {});
|
|
964
|
+
throw error;
|
|
305
965
|
}
|
|
306
966
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
this.pendingWrite = config;
|
|
310
|
-
this.writeTask = setTimeout(() => {
|
|
311
|
-
this.flushWrite();
|
|
312
|
-
}, 0);
|
|
313
|
-
}
|
|
314
|
-
flushWrite() {
|
|
315
|
-
clearTimeout(this.writeTask);
|
|
316
|
-
this.writeTask = void 0;
|
|
317
|
-
const config = this.pendingWrite;
|
|
318
|
-
this.pendingWrite = void 0;
|
|
319
|
-
if (config === void 0) return this.writeQueue;
|
|
320
|
-
const run = this.writeQueue.then(() => this._writeFile(config), () => this._writeFile(config));
|
|
321
|
-
this.writeQueue = run;
|
|
322
|
-
run.catch((error) => {
|
|
323
|
-
this.ctx.root.logger?.("loader").warn("failed to write config file %C", this.filename);
|
|
324
|
-
this.ctx.root.logger?.("loader").warn(error);
|
|
325
|
-
});
|
|
326
|
-
return run;
|
|
967
|
+
dump(data) {
|
|
968
|
+
return this.type === "application/yaml" ? yaml.dump(data, { schema }) : JSON.stringify(data, null, 2);
|
|
327
969
|
}
|
|
328
|
-
/**
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
970
|
+
/**
|
|
971
|
+
* Entries the file leaves anonymous get an id here, before the loader sees
|
|
972
|
+
* them. One that looks exactly like an entry we named on the previous read
|
|
973
|
+
* keeps that id, so editing a neighbor does not restart it; anything else
|
|
974
|
+
* gets a fresh id. Assigned ids stay in memory until the next write.
|
|
975
|
+
*/
|
|
976
|
+
_assignIds(data) {
|
|
977
|
+
const used = /* @__PURE__ */ new Set();
|
|
978
|
+
const pending = [];
|
|
979
|
+
const walk = (entries, parent) => {
|
|
980
|
+
for (const options of entries) {
|
|
981
|
+
if (options.id) used.add(options.id);
|
|
982
|
+
else pending.push({
|
|
983
|
+
options,
|
|
984
|
+
parent
|
|
985
|
+
});
|
|
986
|
+
if (options.group && Array.isArray(options.config)) walk(options.config, options.id ?? null);
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
walk(data, null);
|
|
990
|
+
const previous = this.anonymous;
|
|
991
|
+
this.anonymous = /* @__PURE__ */ new Map();
|
|
992
|
+
for (const { options, parent } of pending) {
|
|
993
|
+
let id;
|
|
994
|
+
for (const [candidate, info] of previous) {
|
|
995
|
+
if (info.parent !== parent || !deepEqual(info.options, options)) continue;
|
|
996
|
+
id = candidate;
|
|
997
|
+
previous.delete(candidate);
|
|
998
|
+
break;
|
|
999
|
+
}
|
|
1000
|
+
if (!id) do
|
|
1001
|
+
id = Math.random().toString(16).slice(2, 10);
|
|
1002
|
+
while (used.has(id) || this.store[id]);
|
|
1003
|
+
used.add(id);
|
|
1004
|
+
this.anonymous.set(id, {
|
|
1005
|
+
parent,
|
|
1006
|
+
options: structuredClone(options)
|
|
1007
|
+
});
|
|
1008
|
+
const rest = { ...options };
|
|
1009
|
+
for (const key of Object.keys(options)) delete options[key];
|
|
1010
|
+
Object.assign(options, { id }, rest);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
_scheduleApply() {
|
|
1014
|
+
if (this._disposed || !this.cache) return;
|
|
1015
|
+
const tree = applyPatches(this.cache.data, this.config.patches, this.warn);
|
|
1016
|
+
this._pendingTree = applyJournal(tree, this.journal, void 0, this.warn);
|
|
1017
|
+
this._applyTask ??= (async () => {
|
|
1018
|
+
try {
|
|
1019
|
+
while (this._pendingTree) {
|
|
1020
|
+
const tree = this._pendingTree;
|
|
1021
|
+
this._pendingTree = void 0;
|
|
1022
|
+
await this.root.update(tree);
|
|
1023
|
+
}
|
|
1024
|
+
} finally {
|
|
1025
|
+
this._applyTask = void 0;
|
|
1026
|
+
}
|
|
1027
|
+
})();
|
|
332
1028
|
}
|
|
333
1029
|
};
|
|
334
1030
|
//#endregion
|
|
@@ -1168,7 +1864,7 @@ function loadProfile(binName, name, installAnchor, home = resolveDshHome(), opti
|
|
|
1168
1864
|
* @returns the composed entry list.
|
|
1169
1865
|
*/
|
|
1170
1866
|
function composeEntries(layers, warn = () => {}) {
|
|
1171
|
-
return
|
|
1867
|
+
return applyPatches([], structuredClone(layers.flat()), (message, ...args) => {
|
|
1172
1868
|
let index = 0;
|
|
1173
1869
|
warn(message.replace(/%C/g, () => JSON.stringify(args[index++])));
|
|
1174
1870
|
});
|
|
@@ -2467,7 +3163,7 @@ function preflight(ctx, entries, parentURL, report) {
|
|
|
2467
3163
|
data = config.initial;
|
|
2468
3164
|
}
|
|
2469
3165
|
if (!Array.isArray(data)) return void 0;
|
|
2470
|
-
return check(
|
|
3166
|
+
return check(applyPatches(data, config.patches, patchWarning(ctx)), pathToFileURL(filename).href) ? `its included file ${filename} reaches an incompatible plugin, and that file is never rewritten` : void 0;
|
|
2471
3167
|
} finally {
|
|
2472
3168
|
includes.delete(filename);
|
|
2473
3169
|
}
|
|
@@ -2488,7 +3184,7 @@ function preflight(ctx, entries, parentURL, report) {
|
|
|
2488
3184
|
*/
|
|
2489
3185
|
function prepareProfilePatches(ctx, patches, parentURL, binName = "dsh") {
|
|
2490
3186
|
if (ctx.get("profileContext") === void 0) return patches;
|
|
2491
|
-
const rows = prepareProfileEntries(ctx,
|
|
3187
|
+
const rows = prepareProfileEntries(ctx, applyPatches([], patches, patchWarning(ctx)), parentURL, binName);
|
|
2492
3188
|
return rows.length === 0 ? [] : [{ insert: rows }];
|
|
2493
3189
|
}
|
|
2494
3190
|
//#endregion
|
|
@@ -3414,7 +4110,7 @@ async function collectConfigSchemas(profile, entries, resolution, diagnostics =
|
|
|
3414
4110
|
const rows = entryList(source);
|
|
3415
4111
|
let children;
|
|
3416
4112
|
try {
|
|
3417
|
-
children =
|
|
4113
|
+
children = applyPatches(rows, patches, warn(path));
|
|
3418
4114
|
} catch (error) {
|
|
3419
4115
|
throw new Error(`include patches could not be composed for ${filename}; child declarations are unavailable`, { cause: error });
|
|
3420
4116
|
}
|
|
@@ -4002,7 +4698,7 @@ function rowIds(patches) {
|
|
|
4002
4698
|
if ((row.group === true || row.name === "cordis:group") && Array.isArray(row.config)) visit(row.config);
|
|
4003
4699
|
}
|
|
4004
4700
|
};
|
|
4005
|
-
visit(
|
|
4701
|
+
visit(applyPatches([], patches, () => {}));
|
|
4006
4702
|
return ids;
|
|
4007
4703
|
}
|
|
4008
4704
|
/** Publish a generation unless it maps exactly what is published, which would only drop the package caches. */
|
|
@@ -4157,7 +4853,7 @@ function renderConfigDump(binName, absoluteConfigPath, layers, warn = (line) =>
|
|
|
4157
4853
|
const baseLabel = basename(absoluteConfigPath);
|
|
4158
4854
|
const base = parsed;
|
|
4159
4855
|
const snapshot = (count, warnings) => {
|
|
4160
|
-
return
|
|
4856
|
+
return applyPatches(base, structuredClone(layers.slice(0, count).flatMap((layer) => layer.patches)), (message, ...args) => {
|
|
4161
4857
|
let index = 0;
|
|
4162
4858
|
warnings.push(message.replace(/%C/g, () => JSON.stringify(args[index++])));
|
|
4163
4859
|
});
|