@songtonyli/dsh-cli 0.1.40 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/cordis/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
- package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
- package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +21 -5
- package/node_modules/@deepseek-ai/dsh/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh/lib/bin.js +5 -11
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-C-0P1h0W.js → dump-config-BEDI-dNY.js} +2 -2
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-crgOY3tW.js +2 -0
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-schema-BgEU7VYz.js → dump-config-schema-DhhNOaro.js} +3 -3
- package/node_modules/@deepseek-ai/dsh/lib/plugin-DkYIj96-.js +83 -0
- package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-DIiro1p-.js → profile-boot-BZ2ZjNWi.js} +4 -3
- package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +116 -113
- package/node_modules/@deepseek-ai/dsh-acp/README.i18n.yaml +81 -5
- package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-agent/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +10 -3
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-agent-instructions/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +26 -25
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +35 -9
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -26
- package/node_modules/@deepseek-ai/dsh-agent-preset/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +9 -6
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +10 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/practices.md +38 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +52 -21
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +52 -21
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +114 -45
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +37 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +26 -11
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +5 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -36
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-account-controller/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +7 -1
- package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +7 -1
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +123 -10
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +200 -11
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +200 -11
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +79 -6
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -7
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +6 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +50 -26
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +9 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +61 -29
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -13
- package/node_modules/@deepseek-ai/dsh-api-job-controller/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +36 -5
- 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 +1268 -217
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +12 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +5 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +3 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +43 -40
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +9 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +9 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +101 -32
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +159 -79
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +179 -99
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +40 -15
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +52 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/assistant-stream.js +16 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +9 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +81 -40
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/transport.js +5 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +11 -14
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +24 -9
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +24 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +75 -68
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +4 -5
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +25 -12
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +13 -32
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +11 -26
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +2 -3
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +3 -3
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-workspace.js +29 -0
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +7 -11
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +25 -21
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +7 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +10 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +11 -3
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +11 -3
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +474 -66
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +16 -6
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +22 -19
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +6 -5
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +6 -5
- package/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +73 -8
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +5 -2
- package/node_modules/@deepseek-ai/dsh-base/package.json +96 -95
- package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +96 -5
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-brand/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-chunked-list/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-file-upload/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +9 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +69 -5
- 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 +103 -17
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-resources/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +94 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +94 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +2006 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/index.js +23 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/protocol.js +524 -0
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +63 -0
- package/node_modules/@deepseek-ai/dsh-client-store/README.i18n.yaml +27 -5
- package/node_modules/@deepseek-ai/dsh-client-store/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +192 -135
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +27 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +77 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +16 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -93
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +34 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +34 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +885 -287
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +15 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +12 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +12 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +415 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +35 -34
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +73 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +10 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +10 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +242 -211
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +63 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +14 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +14 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +14 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +97 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +172 -56
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +22 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +8 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +16 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +17 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +336 -98
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/index.js +140 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.host.js +53 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.remote-client.js +28 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +36 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +32 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +32 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +6 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CodeCard.module.css +83 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +24 -53
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +17 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +46 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImagePreview.module.css +24 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +22 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuSurface.module.css +49 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +27 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +13 -81
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ShortcutKeys.module.css +33 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +3 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +9 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +1735 -897
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +16 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +28 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +6 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeToolbar.d.ts +30 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImageLightbox.d.ts +27 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImagePreview.d.ts +12 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +12 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuSurface.d.ts +16 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +12 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ShortcutKeys.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +17 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +1 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/focus.d.ts +9 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/guide-artwork.d.ts +15 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +8 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +8 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +10 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/input-modality.d.ts +19 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/keyboard-composition.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +6 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +11 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +16 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/local-image-syntax.d.ts +10 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +3 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useModalLayer.d.ts +27 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +4 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +6 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +36 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +42 -45
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +6735 -171
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +32 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +27 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +46 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +46 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2300 -255
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +66 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +22 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +10 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +10 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +202 -109
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +20 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +10 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +11 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +48 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +89 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +89 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +1163 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +63 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +59 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +16 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +77 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +13 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +14 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +14 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +41 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +102 -75
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +57 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +76 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +19 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +12 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +12 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +667 -85
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +20 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +151 -106
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +19 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +29 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +67 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +20 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +20 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +13 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +13 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +13 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +315 -90
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +25 -24
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +68 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +8 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +608 -329
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +27 -25
- package/node_modules/@deepseek-ai/dsh-cmdline/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-command-compact/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-command-feedback/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-command-goal/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-compaction/README.i18n.yaml +84 -5
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +105 -5
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +193 -43
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +126 -78
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-credentials/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-credentials-local/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +13 -3
- package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +13 -3
- package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +54 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/account-tasks.js +30 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +26 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +14 -5
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +16 -8
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +16 -8
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +262 -40
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +44 -3
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +190 -32
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +45 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +30 -5
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-deque/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +7 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +7 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +359 -323
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +170 -25
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +180 -237
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +95 -28
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +7 -47
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-view.js +57 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +25 -39
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +3 -2
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +27 -6
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +20 -3
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +64 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +129 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +129 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/icon.svg +10 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +511 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +82 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +14 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +14 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +317 -4345
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +24 -28
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +184 -44
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +5 -4
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +5 -4
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -9
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +164 -26
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +9 -1
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-goal/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-home-paths/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-hook-protocol/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-hooks-codex/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/README.i18n.yaml +57 -5
- 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 +57 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +2 -2
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-http-proxy/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-launch-environment/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-lazy-require/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-llm/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +107 -12
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +16 -20
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +107 -0
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/error.js +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +26 -9
- package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +18 -13
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +18 -13
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +642 -595
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +44 -47
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +79 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +79 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +62 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +54 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +78 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +78 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +69 -0
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +53 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +93 -5
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +26 -25
- package/node_modules/@deepseek-ai/dsh-llm-retry/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-llm-retry/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-retry/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +26 -25
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.i18n.yaml +96 -5
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-mcp-resources/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-message-feedback/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-native-command/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +108 -33
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +55 -10
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +59 -22
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +111 -9
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-output-retention/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-output-retention/README.md +7 -3
- package/node_modules/@deepseek-ai/dsh-output-retention/README.zh.md +7 -3
- package/node_modules/@deepseek-ai/dsh-output-retention/lib/index.js +17 -1
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +9 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +65 -41
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +10 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +108 -5
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +19 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +19 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +760 -155
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +237 -26
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +215 -22
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +19 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +61 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +113 -23
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +403 -22
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +2 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/run-tree.js +57 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +13 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +111 -9
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-sandbox/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +16 -2
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +64 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +67 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-schedule/README.md +65 -129
- package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +72 -137
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +2147 -797
- package/node_modules/@deepseek-ai/dsh-schedule/lib/invariant.js +79 -17
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +727 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +477 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +66 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +1000 -113
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +428 -101
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/invariant.js +8 -1
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +129 -268
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +54 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/tools.js +305 -204
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +164 -0
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +50 -28
- package/node_modules/@deepseek-ai/dsh-scope/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +39 -5
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +1 -0
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.i18n.yaml +48 -5
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +102 -5
- 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 +89 -0
- package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +16 -0
- package/node_modules/@deepseek-ai/dsh-session/lib/types/tool-history.js +76 -0
- package/node_modules/@deepseek-ai/dsh-session/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-format/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/README.i18n.yaml +51 -5
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/README.i18n.yaml +51 -5
- 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/README.i18n.yaml +78 -5
- 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 +90 -5
- 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/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +8 -4
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +8 -4
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +53 -9
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +51 -9
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +20 -19
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/CHANGELOG.md +10 -0
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/LICENSE +1 -1
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/README.md +10 -10
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/browser.js +82 -55
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/index.mjs +87 -56
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/browser.cjs +106 -77
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/index.cjs +106 -77
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node-worker.cjs +5 -1
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node.cjs +111 -78
- package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/package.json +12 -11
- package/node_modules/@deepseek-ai/dsh-session-log-export/node_modules/fflate/umd/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-session-persistence/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +189 -9
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-query/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-session-query/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +7 -1
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +63 -39
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-session-stats/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-session-title/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +18 -17
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-settings/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-skill/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-skill-badge/README.i18n.yaml +54 -5
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-skill-office/README.md +8 -2
- package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +8 -2
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +14 -3
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +14 -3
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +22 -4
- package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +21 -3
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +9 -8
- package/node_modules/@deepseek-ai/dsh-spill/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-spill/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-spill/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-spill-local/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-spill-policy/README.i18n.yaml +81 -5
- package/node_modules/@deepseek-ai/dsh-spill-policy/README.md +22 -22
- package/node_modules/@deepseek-ai/dsh-spill-policy/README.zh.md +22 -22
- package/node_modules/@deepseek-ai/dsh-spill-policy/lib/index.js +216 -142
- package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/index.js +110 -167
- package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/notice.js +10 -2
- package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/retention.js +88 -0
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -22
- package/node_modules/@deepseek-ai/dsh-storage/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-storage-json/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +93 -5
- package/node_modules/@deepseek-ai/dsh-subagent/README.md +3 -2
- package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +4 -3
- package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +71 -238
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +65 -41
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +12 -12
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +50 -261
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -56
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +84 -5
- 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 +81 -5
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/README.i18n.yaml +105 -5
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +21 -20
- package/node_modules/@deepseek-ai/dsh-subprocess/README.i18n.yaml +72 -5
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +3 -2
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +3 -2
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +10 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/output.js +82 -24
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-B2zsQ1Dz.js +1529 -0
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-system-prompt/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-terminal/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal-bash/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-time-context/README.i18n.yaml +69 -5
- package/node_modules/@deepseek-ai/dsh-time-context/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-time-context/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-timeout/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-tmux-context/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +111 -9
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-token-meter/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-token-meter/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-token-meter/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +22 -18
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +126 -5
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +6 -9
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +24 -22
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +373 -79
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +141 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +9 -73
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -30
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +114 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +3 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +3 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +4 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +96 -5
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +21 -15
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -5
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +123 -5
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +8 -8
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +7 -25
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +25 -23
- package/node_modules/@deepseek-ai/dsh-tool-ralph/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +141 -5
- package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -20
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +120 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +105 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +6 -11
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +6 -14
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-todo/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-tool-todo/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/index.js +5 -15
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +150 -5
- package/node_modules/@deepseek-ai/dsh-tool-web/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +22 -21
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +102 -5
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +9 -16
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +10 -16
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +102 -5
- package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +16 -2
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +13 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +5 -0
- package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +84 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +16 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +76 -76
- package/node_modules/@deepseek-ai/dsh-typert-loader/README.i18n.yaml +57 -5
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +63 -5
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-typert-registry/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-user-approval/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-user-approval/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-user-approval/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-util-code-language/README.i18n.yaml +25 -0
- package/node_modules/@deepseek-ai/dsh-util-code-language/README.md +50 -0
- package/node_modules/@deepseek-ai/dsh-util-code-language/README.zh.md +50 -0
- package/node_modules/@deepseek-ai/dsh-util-code-language/lib/index.js +269 -0
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +35 -0
- package/node_modules/@deepseek-ai/dsh-util-crypto/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +33 -5
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.i18n.yaml +24 -5
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js +11 -1
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/types/index.d.ts +7 -0
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +75 -5
- package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +21 -3
- package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +33 -5
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +143 -139
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/Montserrat-OFL.txt +93 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +127 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bat-BkioyH1T.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/clojure-P80f7IUj.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/csv-fuZLfV_i.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/diff-D97Zzqfu.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fish-BvzEVeQv.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-fwsONPVS.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/http-DcV90OkR.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/latex-B4C7GdlO.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/log-2UxHyX5q.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/make-CHLpvVh8.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/nix-CwoSXNpI.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/perl-DsWkoyyU.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-LEPfNACG.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/r-Dspwwk_N.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/rst-BbocfKWr.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-R292Iif0.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/scala-C151Ov-r.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vb-D17OF-Vu.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vue-Dq2x6432.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +17 -15
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +84 -5
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +81 -5
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-webhook/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-webhook-github/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +42 -5
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-workflow/README.i18n.yaml +60 -5
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +37 -36
- package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +87 -5
- package/node_modules/@deepseek-ai/dsh-workspace/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +7 -5
- package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +7 -5
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +36 -5
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
- package/node_modules/@deepseek-ai/libreoffice-kit/README.md +30 -5
- package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +30 -5
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/cli.js +2058 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/font-snapshot-worker.js +454 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +1055 -57
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +922 -239
- package/node_modules/@deepseek-ai/libreoffice-kit/package.json +9 -3
- package/node_modules/@deepseek-ai/node-addon-system/README.i18n.yaml +9 -5
- package/node_modules/@deepseek-ai/node-addon-system/README.md +1 -1
- package/node_modules/@deepseek-ai/node-addon-system/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
- package/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
- package/node_modules/@js-temporal/polyfill/LICENSE +13 -0
- package/node_modules/@js-temporal/polyfill/README.md +90 -0
- package/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
- package/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
- package/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
- package/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
- package/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
- package/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
- package/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
- package/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
- package/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
- package/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
- package/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
- package/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
- package/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
- package/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
- package/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
- package/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
- package/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
- package/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
- package/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
- package/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
- package/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
- package/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
- package/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
- package/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
- package/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
- package/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
- package/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
- package/node_modules/@js-temporal/polyfill/package.json +125 -0
- package/node_modules/fflate/CHANGELOG.md +0 -10
- package/node_modules/fflate/LICENSE +1 -1
- package/node_modules/fflate/README.md +10 -10
- package/node_modules/fflate/esm/browser.js +55 -82
- package/node_modules/fflate/esm/index.mjs +56 -87
- package/node_modules/fflate/lib/browser.cjs +77 -106
- package/node_modules/fflate/lib/index.cjs +77 -106
- package/node_modules/fflate/lib/node-worker.cjs +1 -5
- package/node_modules/fflate/lib/node.cjs +78 -111
- package/node_modules/fflate/package.json +10 -11
- package/node_modules/fflate/umd/index.js +1 -1
- package/node_modules/jsbi/LICENSE +176 -0
- package/node_modules/jsbi/README.md +173 -0
- package/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
- package/node_modules/jsbi/dist/jsbi-umd.js +2 -0
- package/node_modules/jsbi/dist/jsbi.mjs +2 -0
- package/node_modules/jsbi/package.json +25 -0
- package/package.json +305 -289
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +0 -2
- package/node_modules/@deepseek-ai/dsh/lib/plugin-CnNK4cws.js +0 -31
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +0 -741
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +0 -70
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +0 -127
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-CfGypltT.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-DJl5gRdb.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +0 -1
- /package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/worker.cjs +0 -0
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { constants, lstatSync, readdirSync } from "node:fs";
|
|
3
|
-
import { mkdir, mkdtemp, open, readFile, rm, stat, unlink, writeFile } from "node:fs/promises";
|
|
3
|
+
import { lstat, mkdir, mkdtemp, open, readFile, rm, stat, unlink, writeFile } from "node:fs/promises";
|
|
4
4
|
import { homedir, tmpdir } from "node:os";
|
|
5
5
|
import { dirname, extname, isAbsolute, join, posix, relative, resolve, sep, win32 } from "node:path";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import { spawn } from "node:child_process";
|
|
8
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
9
|
+
import { createInterface } from "node:readline";
|
|
10
|
+
import { zlibSync } from "fflate";
|
|
8
11
|
import "fontkit";
|
|
9
|
-
import "
|
|
10
|
-
import "saxes";
|
|
12
|
+
import { fileURLToPath } from "node:url";
|
|
11
13
|
//#region lib/types/errors.js
|
|
12
14
|
/** Stable render failure categories shared across the Node worker and native helper transports. */
|
|
13
15
|
const CODES = /* @__PURE__ */ new Set([
|
|
@@ -45,6 +47,285 @@ function failureCode(error) {
|
|
|
45
47
|
return typeof code === "string" && CODES.has(code) ? code : "failed";
|
|
46
48
|
}
|
|
47
49
|
//#endregion
|
|
50
|
+
//#region lib/types/sheet-geometry.js
|
|
51
|
+
const MAX_COLUMN = 16383;
|
|
52
|
+
const MAX_ROW = 1048575;
|
|
53
|
+
function column(index) {
|
|
54
|
+
let name = "";
|
|
55
|
+
for (let value = index + 1; value > 0; value = Math.floor((value - 1) / 26)) name = String.fromCharCode(65 + (value - 1) % 26) + name;
|
|
56
|
+
return name;
|
|
57
|
+
}
|
|
58
|
+
function rangeName(range) {
|
|
59
|
+
return `${column(range.firstColumn)}${range.firstRow + 1}:${column(range.lastColumn)}${range.lastRow + 1}`;
|
|
60
|
+
}
|
|
61
|
+
function parseCellRange(value) {
|
|
62
|
+
const match = /^\$?([A-Z]{1,3})\$?([1-9]\d{0,6})(?::\$?([A-Z]{1,3})\$?([1-9]\d{0,6}))?$/i.exec(value);
|
|
63
|
+
if (!match) throw new TypeError("range must be an A1 cell or rectangle without a sheet prefix.");
|
|
64
|
+
const col = (name) => [...name.toUpperCase()].reduce((sum, c) => sum * 26 + c.charCodeAt(0) - 64, 0) - 1;
|
|
65
|
+
const firstColumn = col(match[1]);
|
|
66
|
+
const firstRow = Number(match[2]) - 1;
|
|
67
|
+
const lastColumn = col(match[3] ?? match[1]);
|
|
68
|
+
const lastRow = Number(match[4] ?? match[2]) - 1;
|
|
69
|
+
if (lastColumn < firstColumn || lastRow < firstRow || lastColumn > MAX_COLUMN || lastRow > MAX_ROW) throw new TypeError("range exceeds Calc worksheet bounds or has reversed endpoints.");
|
|
70
|
+
return {
|
|
71
|
+
firstColumn,
|
|
72
|
+
firstRow,
|
|
73
|
+
lastColumn,
|
|
74
|
+
lastRow
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function sheetPartInfo(value) {
|
|
78
|
+
const info = JSON.parse(value);
|
|
79
|
+
if (!info || typeof info.name !== "string" || ![0, 1].includes(info.visible) || ![0, 1].includes(info.rtllayout) || !Number.isInteger(info.lastcolumn) || !Number.isInteger(info.lastrow) || info.lastcolumn < 0 || info.lastrow < 0 || info.lastcolumn > MAX_COLUMN || info.lastrow > MAX_ROW) throw new Error("LibreOffice returned invalid worksheet data-area metadata.");
|
|
80
|
+
return info;
|
|
81
|
+
}
|
|
82
|
+
/** Formatting-only cells and standalone drawings do not enlarge LibreOffice's data area. */
|
|
83
|
+
function dataArea(info) {
|
|
84
|
+
return {
|
|
85
|
+
firstColumn: 0,
|
|
86
|
+
firstRow: 0,
|
|
87
|
+
lastColumn: info.lastcolumn,
|
|
88
|
+
lastRow: info.lastrow
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function spans(encoded, flags, maximum) {
|
|
92
|
+
if (typeof encoded !== "string" || encoded.length > 33554432) throw new Error("Invalid worksheet geometry span encoding.");
|
|
93
|
+
const tokens = encoded.trim().split(/\s+/);
|
|
94
|
+
let previous = -1;
|
|
95
|
+
let flag = 0;
|
|
96
|
+
const result = tokens.map((token, i) => {
|
|
97
|
+
const fields = token.split(":");
|
|
98
|
+
let value;
|
|
99
|
+
let end;
|
|
100
|
+
if (flags && i > 0) {
|
|
101
|
+
value = flag = 1 - flag;
|
|
102
|
+
end = Number(fields[0]);
|
|
103
|
+
if (fields.length !== 1) throw new Error("Invalid worksheet flag span.");
|
|
104
|
+
} else {
|
|
105
|
+
value = Number(fields[0]);
|
|
106
|
+
end = Number(fields[1]);
|
|
107
|
+
flag = value;
|
|
108
|
+
if (fields.length !== 2) throw new Error("Invalid worksheet size span.");
|
|
109
|
+
}
|
|
110
|
+
if (!Number.isSafeInteger(value) || value < 0 || (flags ? value > 1 : value > 65535) || !Number.isSafeInteger(end) || end <= previous || end > maximum) throw new Error("Invalid worksheet geometry span.");
|
|
111
|
+
previous = end;
|
|
112
|
+
return {
|
|
113
|
+
end,
|
|
114
|
+
value
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
if (previous !== maximum) throw new Error("Worksheet geometry does not cover the complete dimension.");
|
|
118
|
+
return result;
|
|
119
|
+
}
|
|
120
|
+
function dimension(data, first, last, maximum, scale) {
|
|
121
|
+
const sizes = spans(data?.sizes, false, maximum);
|
|
122
|
+
const hidden = spans(data?.hidden, true, maximum);
|
|
123
|
+
const filtered = spans(data?.filtered, true, maximum);
|
|
124
|
+
let position = 0, start = 0, index = 0, si = 0, hi = 0, fi = 0;
|
|
125
|
+
while (index <= last) {
|
|
126
|
+
const size = sizes[si], hide = hidden[hi], filter = filtered[fi];
|
|
127
|
+
const end = Math.min(size.end, hide.end, filter.end, last, index < first ? first - 1 : last);
|
|
128
|
+
const pixels = hide.value || filter.value || size.value === 0 ? 0 : Math.max(1, Math.floor(size.value * scale / 15));
|
|
129
|
+
if (index === first) start = position;
|
|
130
|
+
position += (end - index + 1) * pixels;
|
|
131
|
+
index = end + 1;
|
|
132
|
+
if (index > size.end) si++;
|
|
133
|
+
if (index > hide.end) hi++;
|
|
134
|
+
if (index > filter.end) fi++;
|
|
135
|
+
}
|
|
136
|
+
return [start / scale, (position - start) / scale];
|
|
137
|
+
}
|
|
138
|
+
/** Logical columns advance from A; LOK itself mirrors RTL sheet painting. No manual x inversion. */
|
|
139
|
+
function sheetRangeRectangle(geometry, range, scale) {
|
|
140
|
+
if (!Number.isFinite(scale) || scale <= 0 || scale > 16) throw new TypeError("Invalid worksheet raster scale.");
|
|
141
|
+
const [x, width] = dimension(geometry.columns, range.firstColumn, range.lastColumn, MAX_COLUMN, scale);
|
|
142
|
+
const [y, height] = dimension(geometry.rows, range.firstRow, range.lastRow, MAX_ROW, scale);
|
|
143
|
+
if (width <= 0 || height <= 0) throw new Error("The selected worksheet range is entirely hidden or filtered.");
|
|
144
|
+
if ([
|
|
145
|
+
x,
|
|
146
|
+
y,
|
|
147
|
+
width,
|
|
148
|
+
height,
|
|
149
|
+
x + width,
|
|
150
|
+
y + height
|
|
151
|
+
].some((value) => !Number.isFinite(value) || value * 15 > 2147483647)) throw new Error("The selected worksheet range exceeds the supported coordinate range.");
|
|
152
|
+
return {
|
|
153
|
+
x,
|
|
154
|
+
y,
|
|
155
|
+
width,
|
|
156
|
+
height
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
/** Split a region on its output-pixel grid, bounding the plan before allocating it. */
|
|
160
|
+
function splitRasterRectangle(rectangle, scale, limits) {
|
|
161
|
+
const { x, y, width, height } = rectangle;
|
|
162
|
+
const { maxPixels, maxDimension, maxTiles } = limits;
|
|
163
|
+
if (![
|
|
164
|
+
x,
|
|
165
|
+
y,
|
|
166
|
+
width,
|
|
167
|
+
height,
|
|
168
|
+
scale
|
|
169
|
+
].every(Number.isFinite) || x < 0 || y < 0 || width <= 0 || height <= 0 || scale <= 0 || !Number.isSafeInteger(maxPixels) || maxPixels < 1 || maxPixels > 16777216 || !Number.isSafeInteger(maxDimension) || maxDimension < 1 || maxDimension > 16777216 || !Number.isSafeInteger(maxTiles) || maxTiles < 0) throw new TypeError("Invalid raster splitting limits or rectangle.");
|
|
170
|
+
const pixelWidth = Math.ceil(width * scale - 1e-9), pixelHeight = Math.ceil(height * scale - 1e-9);
|
|
171
|
+
if (![pixelWidth, pixelHeight].every((value) => Number.isSafeInteger(value) && value > 0)) throw new RangeError("Raster dimensions exceed the coordinate range.");
|
|
172
|
+
let tileWidth = Math.min(pixelWidth, maxDimension), tileHeight = Math.min(pixelHeight, maxDimension);
|
|
173
|
+
if (tileWidth * tileHeight > maxPixels) {
|
|
174
|
+
const side = Math.floor(Math.sqrt(maxPixels));
|
|
175
|
+
if (tileWidth <= side) tileHeight = Math.floor(maxPixels / tileWidth);
|
|
176
|
+
else if (tileHeight <= side) tileWidth = Math.floor(maxPixels / tileHeight);
|
|
177
|
+
else {
|
|
178
|
+
tileWidth = side;
|
|
179
|
+
tileHeight = Math.min(tileHeight, Math.floor(maxPixels / tileWidth));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
const columns = Math.ceil(pixelWidth / tileWidth), rows = Math.ceil(pixelHeight / tileHeight);
|
|
183
|
+
if (columns * rows > maxTiles) throw new RangeError("Raster batch exceeds maxPages after worksheet splitting.");
|
|
184
|
+
const result = [];
|
|
185
|
+
for (let row = 0; row < rows; row++) for (let column = 0; column < columns; column++) {
|
|
186
|
+
const left = column * tileWidth / scale, top = row * tileHeight / scale;
|
|
187
|
+
result.push({
|
|
188
|
+
x: x + left,
|
|
189
|
+
y: y + top,
|
|
190
|
+
width: Math.min(tileWidth / scale, width - left),
|
|
191
|
+
height: Math.min(tileHeight / scale, height - top)
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
return result;
|
|
195
|
+
}
|
|
196
|
+
/** Writer's zero-area parity placeholders have no visible page. Offsets stay in twips. */
|
|
197
|
+
function writerPages(rectangles) {
|
|
198
|
+
const pages = rectangles.split(";").filter((value) => value.trim()).flatMap((rectangle) => {
|
|
199
|
+
const fields = rectangle.split(",").map((value) => Number(value.trim()));
|
|
200
|
+
const [x, y, width, height] = fields;
|
|
201
|
+
if (fields.length !== 4 || x === void 0 || y === void 0 || width === void 0 || height === void 0 || fields.some((value) => !Number.isSafeInteger(value) || value < 0 || value > 2147483647) || width === 0 !== (height === 0) || x + width > 2147483647 || y + height > 2147483647) throw new Error("LibreOffice returned invalid page rectangles.");
|
|
202
|
+
return width === 0 ? [] : [{
|
|
203
|
+
x,
|
|
204
|
+
y,
|
|
205
|
+
width: width / 15,
|
|
206
|
+
height: height / 15,
|
|
207
|
+
part: -1
|
|
208
|
+
}];
|
|
209
|
+
});
|
|
210
|
+
if (pages.length === 0) throw new Error("LibreOffice returned no document pages.");
|
|
211
|
+
return pages;
|
|
212
|
+
}
|
|
213
|
+
/** Validate coordinates before allocation or wasm32 integer conversion. */
|
|
214
|
+
function tileDimensions(request, pages) {
|
|
215
|
+
const page = pages[request.pageIndex];
|
|
216
|
+
if (!Number.isSafeInteger(request.pageIndex) || !page || ![
|
|
217
|
+
request.x,
|
|
218
|
+
request.y,
|
|
219
|
+
request.width,
|
|
220
|
+
request.height,
|
|
221
|
+
request.scale
|
|
222
|
+
].every(Number.isFinite) || request.x < 0 || request.y < 0 || request.width <= 0 || request.height <= 0 || request.scale <= 0 || request.x + request.width > page.width + .001 || request.y + request.height > page.height + .001) throw new Error("Tile rectangle lies outside its page.");
|
|
223
|
+
const width = Math.ceil(request.width * request.scale - 1e-9);
|
|
224
|
+
const height = Math.ceil(request.height * request.scale - 1e-9);
|
|
225
|
+
if (width <= 0 || height <= 0 || !Number.isSafeInteger(width * height) || width * height > 16777216) throw new Error("Tile exceeds the 16 megapixel allocation limit.");
|
|
226
|
+
const twips = [
|
|
227
|
+
page.x + Math.round(request.x * 15),
|
|
228
|
+
page.y + Math.round(request.y * 15),
|
|
229
|
+
Math.round(request.width * 15),
|
|
230
|
+
Math.round(request.height * 15)
|
|
231
|
+
];
|
|
232
|
+
if (twips.some((value) => !Number.isSafeInteger(value) || value < 0 || value > 2147483647) || twips[0] + twips[2] > 2147483647 || twips[1] + twips[3] > 2147483647) throw new Error("Tile coordinates exceed the wasm32 range.");
|
|
233
|
+
return {
|
|
234
|
+
page,
|
|
235
|
+
width,
|
|
236
|
+
height
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
/** Cairo/LO channels are premultiplied; PNG and ImageData require straight RGBA. */
|
|
240
|
+
function rgbaPixels(source, tileMode) {
|
|
241
|
+
if (tileMode !== 0 && tileMode !== 1 || source.length % 4 !== 0) throw new Error("LibreOffice returned an unsupported tile pixel format.");
|
|
242
|
+
const result = new Uint8ClampedArray(source.length);
|
|
243
|
+
for (let index = 0; index < source.length; index += 4) {
|
|
244
|
+
const alpha = source[index + 3];
|
|
245
|
+
const multiplier = alpha === 0 ? 0 : 255 / alpha;
|
|
246
|
+
result[index] = source[index + (tileMode === 1 ? 2 : 0)] * multiplier;
|
|
247
|
+
result[index + 1] = source[index + 1] * multiplier;
|
|
248
|
+
result[index + 2] = source[index + (tileMode === 1 ? 0 : 2)] * multiplier;
|
|
249
|
+
result[index + 3] = alpha;
|
|
250
|
+
}
|
|
251
|
+
return result;
|
|
252
|
+
}
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region lib/types/image-operations.js
|
|
255
|
+
/** Public direct-raster request and immutable saved-file manifest. */
|
|
256
|
+
const IMAGE_FORMATS = [
|
|
257
|
+
"doc",
|
|
258
|
+
"docx",
|
|
259
|
+
"odt",
|
|
260
|
+
"xls",
|
|
261
|
+
"xlsx",
|
|
262
|
+
"ods",
|
|
263
|
+
"ppt",
|
|
264
|
+
"pptx",
|
|
265
|
+
"odp",
|
|
266
|
+
"pdf"
|
|
267
|
+
];
|
|
268
|
+
function resolveImageRender(request) {
|
|
269
|
+
if (!request || typeof request.inputPath !== "string" || typeof request.outputDir !== "string" || !isAbsolute(request.inputPath) || !isAbsolute(request.outputDir) || request.inputPath.includes("\0") || request.outputDir.includes("\0")) throw new TypeError("inputPath and outputDir must be absolute filesystem paths.");
|
|
270
|
+
const inputPath = resolve(request.inputPath), outputDir = resolve(request.outputDir);
|
|
271
|
+
const within = relative(outputDir, inputPath);
|
|
272
|
+
if (!within || !within.startsWith("..") && !isAbsolute(within)) throw new TypeError("Input cannot be inside the newly owned output directory.");
|
|
273
|
+
const extension = extname(inputPath).slice(1).toLowerCase();
|
|
274
|
+
if (!IMAGE_FORMATS.includes(extension)) throw new ConversionError("unsupported-format", `Unsupported image input: ${extension}.`);
|
|
275
|
+
const calc = [
|
|
276
|
+
"xls",
|
|
277
|
+
"xlsx",
|
|
278
|
+
"ods"
|
|
279
|
+
].includes(extension);
|
|
280
|
+
if (calc && request.pages !== void 0) throw new TypeError("Worksheets use sheet and A1 range, not printed page numbers.");
|
|
281
|
+
if (!calc && (request.sheet !== void 0 || request.range !== void 0)) throw new TypeError("sheet and range apply only to worksheets.");
|
|
282
|
+
if (request.sheet !== void 0 && (typeof request.sheet !== "string" || !request.sheet.trim() || request.sheet.includes("\0"))) throw new TypeError("sheet must be a nonempty exact worksheet name.");
|
|
283
|
+
if (request.range !== void 0 && request.sheet === void 0) throw new TypeError("range requires an exact sheet name.");
|
|
284
|
+
const range = request.range === void 0 ? void 0 : rangeName(parseCellRange(request.range));
|
|
285
|
+
const pages = request.pages ?? "all";
|
|
286
|
+
if (pages !== "all" && (!Array.isArray(pages) || pages.length === 0 || pages.some((page) => !Number.isSafeInteger(page) || page < 1) || new Set(pages).size !== pages.length)) throw new TypeError("pages must be all or distinct positive one-based page numbers.");
|
|
287
|
+
const dpi = request.dpi ?? 144;
|
|
288
|
+
const maxPages = request.maxPages ?? 100;
|
|
289
|
+
const maxPixels = request.maxPixels ?? 16777216;
|
|
290
|
+
const maxDimension = request.maxDimension ?? 8192;
|
|
291
|
+
if (!Number.isFinite(dpi) || dpi < 24 || dpi > 600) throw new TypeError("dpi must be between 24 and 600.");
|
|
292
|
+
if (!Number.isSafeInteger(maxPages) || maxPages < 1 || maxPages > 1e4) throw new TypeError("maxPages must be an integer between 1 and 10000.");
|
|
293
|
+
if (!Number.isSafeInteger(maxPixels) || maxPixels < 1 || maxPixels > 16777216) throw new TypeError("maxPixels must be between 1 and 16777216.");
|
|
294
|
+
if (!Number.isSafeInteger(maxDimension) || maxDimension < 1 || maxDimension > 16777216) throw new TypeError("maxDimension must be between 1 and 16777216.");
|
|
295
|
+
if (pages !== "all" && pages.length > maxPages) throw new ConversionError("output-too-large", "Selected page count exceeds maxPages.");
|
|
296
|
+
return {
|
|
297
|
+
kind: "images",
|
|
298
|
+
inputPath,
|
|
299
|
+
outputDir,
|
|
300
|
+
extension,
|
|
301
|
+
dpi,
|
|
302
|
+
maxPages,
|
|
303
|
+
maxPixels,
|
|
304
|
+
maxDimension,
|
|
305
|
+
...calc ? {} : { pages: pages === "all" ? "all" : [...pages] },
|
|
306
|
+
...request.sheet === void 0 ? {} : { sheet: request.sheet },
|
|
307
|
+
...range === void 0 ? {} : { range }
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
function selectedPages(pages, count, limit) {
|
|
311
|
+
if (!Number.isSafeInteger(count) || count < 1) throw new ConversionError("invalid-document", "The document contains no renderable pages.");
|
|
312
|
+
const result = pages === void 0 || pages === "all" ? Array.from({ length: Math.min(count, limit + 1) }, (_, i) => i + 1) : [...pages];
|
|
313
|
+
if (result.length > limit) throw new ConversionError("output-too-large", "Selected page count exceeds maxPages; select pages or raise the limit.");
|
|
314
|
+
if (result.some((page) => page > count)) throw new TypeError(`Selected page lies outside the ${count}-page document.`);
|
|
315
|
+
return result;
|
|
316
|
+
}
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region lib/types/profile.js
|
|
319
|
+
/** Private headless profile used by both native and WASM conversions. */
|
|
320
|
+
/**
|
|
321
|
+
* CSV selection is checked by the engine wrapper before saving; suppress the interactive warning.
|
|
322
|
+
* @param fontNodes - Escaped VCL font-substitution nodes, or an empty string for WASM.
|
|
323
|
+
* @returns The per-operation registry XML; macro execution is independently disabled at load.
|
|
324
|
+
*/
|
|
325
|
+
function profileXml(fontNodes = "") {
|
|
326
|
+
return `<?xml version="1.0" encoding="UTF-8"?><oor:items xmlns:oor="http://openoffice.org/2001/registry"><item oor:path="/org.openoffice.Office.Calc/Input"><prop oor:name="WarnActiveSheet" oor:op="fuse"><value>false</value></prop></item><item oor:path="/org.openoffice.VCL/FontSubstitutions/en">${fontNodes}</item></oor:items>\n`;
|
|
327
|
+
}
|
|
328
|
+
//#endregion
|
|
48
329
|
//#region lib/types/native-font-names.js
|
|
49
330
|
/** Localized search names from LibreOffice Core's fixed font-name dictionary. */
|
|
50
331
|
const LOCALIZED_FONT_SEARCH_NAMES = /* @__PURE__ */ new Map([
|
|
@@ -240,14 +521,13 @@ function fontSearchName(value) {
|
|
|
240
521
|
* Installed originals and metric-compatible fonts are resolved before this table by LibreOffice.
|
|
241
522
|
* @param profile - Existing, conversion-owned profile directory.
|
|
242
523
|
* @param substitutions - Missing document families and the selected installed family.
|
|
243
|
-
* @returns Resolves after the exclusive profile file is written; empty choices
|
|
524
|
+
* @returns Resolves after the exclusive profile file is written; empty choices still disable the interactive CSV warning.
|
|
244
525
|
*/
|
|
245
526
|
async function prepareNativeFontProfile(profile, substitutions) {
|
|
246
|
-
if (substitutions.length === 0) return;
|
|
247
527
|
const families = new Map(substitutions.map(({ family, substitute }) => [fontSearchName(family), substitute]));
|
|
248
528
|
for (const [family, substitute] of [...families]) for (let alias = METRIC_SEARCH_NAMES.get(family); alias; alias = METRIC_SEARCH_NAMES.get(alias)) if (!families.has(alias)) families.set(alias, substitute);
|
|
249
529
|
const escape = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
250
|
-
const xml =
|
|
530
|
+
const xml = profileXml([...families].map(([family, substitute]) => `<node oor:name="${escape(family)}" oor:op="replace"><prop oor:name="SubstFonts" oor:op="fuse"><value>${escape(substitute)}</value></prop></node>`).join(""));
|
|
251
531
|
const user = join(profile, "user");
|
|
252
532
|
await mkdir(user, { mode: 448 });
|
|
253
533
|
await writeFile(join(user, "registrymodifications.xcu"), xml, {
|
|
@@ -288,9 +568,13 @@ function nativeEnvironment(profile, programDirectory, source = process.env, plat
|
|
|
288
568
|
* @param fonts - Installed font files the helper may load.
|
|
289
569
|
* @param substitutions - Missing families and their selected installed substitutes.
|
|
290
570
|
* @param signal - Cancellation; it kills the helper and awaits its exit.
|
|
571
|
+
* @param operation - Validated output format, recalculation, and worksheet selection.
|
|
291
572
|
* @throws ConversionError for a reported conversion failure, and the abort reason for cancellation.
|
|
292
573
|
*/
|
|
293
|
-
async function runNative(engine, options, input, output, profile, fonts, substitutions, signal
|
|
574
|
+
async function runNative(engine, options, input, output, profile, fonts, substitutions, signal, operation = {
|
|
575
|
+
format: "pdf",
|
|
576
|
+
recalculate: false
|
|
577
|
+
}) {
|
|
294
578
|
signal.throwIfAborted();
|
|
295
579
|
await prepareNativeFontProfile(profile, substitutions);
|
|
296
580
|
signal.throwIfAborted();
|
|
@@ -308,6 +592,11 @@ async function runNative(engine, options, input, output, profile, fonts, substit
|
|
|
308
592
|
String(options.maxOutputBytes),
|
|
309
593
|
"--max-image-resolution",
|
|
310
594
|
String(options.maxImageResolution),
|
|
595
|
+
"--format",
|
|
596
|
+
operation.format,
|
|
597
|
+
"--recalculate",
|
|
598
|
+
String(operation.recalculate),
|
|
599
|
+
...operation.sheet === void 0 ? [] : ["--sheet", operation.sheet],
|
|
311
600
|
...fonts.flatMap((path) => ["--font-file", path])
|
|
312
601
|
], {
|
|
313
602
|
stdio: [
|
|
@@ -362,6 +651,315 @@ async function runNative(engine, options, input, output, profile, fonts, substit
|
|
|
362
651
|
}
|
|
363
652
|
}
|
|
364
653
|
//#endregion
|
|
654
|
+
//#region lib/types/png.js
|
|
655
|
+
/** Portable PNG encoding over straight RGBA; browser and Node need no native image dependency. */
|
|
656
|
+
const crcTable = Uint32Array.from({ length: 256 }, (_, value) => {
|
|
657
|
+
for (let bit = 0; bit < 8; bit++) value = value & 1 ? 3988292384 ^ value >>> 1 : value >>> 1;
|
|
658
|
+
return value >>> 0;
|
|
659
|
+
});
|
|
660
|
+
function chunk(type, bytes) {
|
|
661
|
+
const output = new Uint8Array(bytes.length + 12);
|
|
662
|
+
const view = new DataView(output.buffer);
|
|
663
|
+
view.setUint32(0, bytes.length);
|
|
664
|
+
output.set(new TextEncoder().encode(type), 4);
|
|
665
|
+
output.set(bytes, 8);
|
|
666
|
+
let crc = 4294967295;
|
|
667
|
+
for (let i = 4; i < output.length - 4; i++) crc = crcTable[(crc ^ output[i]) & 255] ^ crc >>> 8;
|
|
668
|
+
view.setUint32(output.length - 4, (crc ^ 4294967295) >>> 0);
|
|
669
|
+
return output;
|
|
670
|
+
}
|
|
671
|
+
function encodePng(width, height, rgba) {
|
|
672
|
+
if (!Number.isSafeInteger(width) || !Number.isSafeInteger(height) || width < 1 || height < 1 || width * height > 16777216 || rgba.byteLength !== width * height * 4) throw new TypeError("Invalid PNG raster dimensions.");
|
|
673
|
+
const header = /* @__PURE__ */ new Uint8Array(13);
|
|
674
|
+
const view = new DataView(header.buffer);
|
|
675
|
+
view.setUint32(0, width);
|
|
676
|
+
view.setUint32(4, height);
|
|
677
|
+
header[8] = 8;
|
|
678
|
+
header[9] = 6;
|
|
679
|
+
const scanlines = new Uint8Array(height * (width * 4 + 1));
|
|
680
|
+
for (let y = 0; y < height; y++) {
|
|
681
|
+
const source = y * width * 4;
|
|
682
|
+
const target = y * (width * 4 + 1);
|
|
683
|
+
scanlines[target] = 1;
|
|
684
|
+
for (let x = 0; x < width * 4; x++) scanlines[target + 1 + x] = rgba[source + x] - (x < 4 ? 0 : rgba[source + x - 4]);
|
|
685
|
+
}
|
|
686
|
+
const chunks = [
|
|
687
|
+
new Uint8Array([
|
|
688
|
+
137,
|
|
689
|
+
80,
|
|
690
|
+
78,
|
|
691
|
+
71,
|
|
692
|
+
13,
|
|
693
|
+
10,
|
|
694
|
+
26,
|
|
695
|
+
10
|
|
696
|
+
]),
|
|
697
|
+
chunk("IHDR", header),
|
|
698
|
+
chunk("IDAT", zlibSync(scanlines, { level: 6 })),
|
|
699
|
+
chunk("IEND", /* @__PURE__ */ new Uint8Array())
|
|
700
|
+
];
|
|
701
|
+
const result = new Uint8Array(chunks.reduce((sum, value) => sum + value.length, 0));
|
|
702
|
+
let offset = 0;
|
|
703
|
+
for (const value of chunks) {
|
|
704
|
+
result.set(value, offset);
|
|
705
|
+
offset += value.length;
|
|
706
|
+
}
|
|
707
|
+
return result;
|
|
708
|
+
}
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region lib/types/native-image-renderer.js
|
|
711
|
+
/** Direct native LibreOfficeKit/PDFium rasterization through one operation-owned helper. */
|
|
712
|
+
function failure(value, stderr) {
|
|
713
|
+
const result = value;
|
|
714
|
+
return new ConversionError(failureCode(result), `LibreOffice native rendering failed: ${result.error ?? stderr}`);
|
|
715
|
+
}
|
|
716
|
+
function plan(ready, request) {
|
|
717
|
+
const select = (pages) => ({
|
|
718
|
+
count: pages.length,
|
|
719
|
+
regions: selectedPages(request.pages, pages.length, request.maxPages).map((number) => {
|
|
720
|
+
const page = pages[number - 1];
|
|
721
|
+
return {
|
|
722
|
+
page,
|
|
723
|
+
number,
|
|
724
|
+
rectangle: {
|
|
725
|
+
x: 0,
|
|
726
|
+
y: 0,
|
|
727
|
+
width: page.width,
|
|
728
|
+
height: page.height
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
})
|
|
732
|
+
});
|
|
733
|
+
if (ready.documentType === "pdf" || ready.documentType === "presentation") {
|
|
734
|
+
const pages = ready.pages;
|
|
735
|
+
if (!Array.isArray(pages)) throw new ConversionError("invalid-document", "LibreOffice returned no page dimensions.");
|
|
736
|
+
return select(pages.map(({ width, height }, part) => {
|
|
737
|
+
if (!Number.isSafeInteger(width) || !Number.isSafeInteger(height) || width < 1 || height < 1) throw new ConversionError("invalid-document", "LibreOffice returned invalid page dimensions.");
|
|
738
|
+
return {
|
|
739
|
+
part,
|
|
740
|
+
x: 0,
|
|
741
|
+
y: 0,
|
|
742
|
+
width: width / 15,
|
|
743
|
+
height: height / 15
|
|
744
|
+
};
|
|
745
|
+
}));
|
|
746
|
+
}
|
|
747
|
+
if (ready.documentType === "text") {
|
|
748
|
+
if (typeof ready.writerRectangles !== "string") throw new ConversionError("invalid-document", "LibreOffice returned no Writer page rectangles.");
|
|
749
|
+
return select(writerPages(ready.writerRectangles));
|
|
750
|
+
}
|
|
751
|
+
const sheets = (ready.sheets ?? []).map(({ part, info, geometry }) => ({
|
|
752
|
+
part,
|
|
753
|
+
info: sheetPartInfo(info),
|
|
754
|
+
geometry: JSON.parse(geometry)
|
|
755
|
+
}));
|
|
756
|
+
const count = sheets.filter((sheet) => sheet.info.visible).length;
|
|
757
|
+
const chosen = request.sheet === void 0 ? sheets.filter((sheet) => sheet.info.visible) : sheets.filter((sheet) => sheet.info.name === request.sheet);
|
|
758
|
+
if (chosen.length === 0) throw new ConversionError("invalid-document", "The exact worksheet name does not exist or the workbook has no visible sheets.");
|
|
759
|
+
if (chosen.length > request.maxPages) throw new ConversionError("output-too-large", "Selected worksheet count exceeds maxPages; select a sheet or raise the limit.");
|
|
760
|
+
const scale = request.dpi / 96;
|
|
761
|
+
return {
|
|
762
|
+
count,
|
|
763
|
+
regions: chosen.map(({ part, info, geometry }) => {
|
|
764
|
+
const range = request.range === void 0 ? dataArea(info) : parseCellRange(request.range);
|
|
765
|
+
const rectangle = sheetRangeRectangle(geometry, range, scale);
|
|
766
|
+
return {
|
|
767
|
+
page: {
|
|
768
|
+
x: 0,
|
|
769
|
+
y: 0,
|
|
770
|
+
width: rectangle.x + rectangle.width,
|
|
771
|
+
height: rectangle.y + rectangle.height,
|
|
772
|
+
part
|
|
773
|
+
},
|
|
774
|
+
rectangle,
|
|
775
|
+
sheet: info.name,
|
|
776
|
+
range: rangeName(range),
|
|
777
|
+
rtl: Boolean(info.rtllayout)
|
|
778
|
+
};
|
|
779
|
+
})
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
/** Run one native image batch and write final PNGs only after each bounded paint succeeds. */
|
|
783
|
+
async function renderImagesWithNative(request) {
|
|
784
|
+
const { engine, options, inputPath, source, scratch, profile, fonts, substitutions, missingFonts, operation, signal } = request;
|
|
785
|
+
signal.throwIfAborted();
|
|
786
|
+
await mkdir(profile, { mode: 448 });
|
|
787
|
+
await prepareNativeFontProfile(profile, substitutions);
|
|
788
|
+
const child = spawn(engine.executable, [
|
|
789
|
+
"--operation",
|
|
790
|
+
"render-images",
|
|
791
|
+
"--program-directory",
|
|
792
|
+
engine.programDirectory,
|
|
793
|
+
"--input-path",
|
|
794
|
+
inputPath,
|
|
795
|
+
"--scratch-directory",
|
|
796
|
+
scratch,
|
|
797
|
+
"--profile-directory",
|
|
798
|
+
profile,
|
|
799
|
+
"--max-output-bytes",
|
|
800
|
+
String(options.maxOutputBytes),
|
|
801
|
+
"--max-image-resolution",
|
|
802
|
+
String(options.maxImageResolution),
|
|
803
|
+
...fonts.flatMap((path) => ["--font-file", path])
|
|
804
|
+
], {
|
|
805
|
+
stdio: [
|
|
806
|
+
"pipe",
|
|
807
|
+
"pipe",
|
|
808
|
+
"pipe"
|
|
809
|
+
],
|
|
810
|
+
windowsHide: true,
|
|
811
|
+
env: nativeEnvironment(profile, engine.programDirectory)
|
|
812
|
+
});
|
|
813
|
+
const lines = [];
|
|
814
|
+
const waiters = [];
|
|
815
|
+
const output = createInterface({ input: child.stdout });
|
|
816
|
+
output.on("line", (line) => {
|
|
817
|
+
const waiter = waiters.shift();
|
|
818
|
+
if (waiter) waiter(line);
|
|
819
|
+
else lines.push(line);
|
|
820
|
+
});
|
|
821
|
+
let stderr = "";
|
|
822
|
+
let stopped;
|
|
823
|
+
child.stderr.setEncoding("utf8");
|
|
824
|
+
child.stderr.on("data", (chunk) => {
|
|
825
|
+
stderr = (stderr + chunk).slice(-65536);
|
|
826
|
+
});
|
|
827
|
+
const closed = new Promise((resolve, reject) => {
|
|
828
|
+
child.once("error", reject);
|
|
829
|
+
child.once("close", resolve);
|
|
830
|
+
});
|
|
831
|
+
const abort = () => {
|
|
832
|
+
stopped ??= signal.reason;
|
|
833
|
+
child.kill("SIGKILL");
|
|
834
|
+
};
|
|
835
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
836
|
+
const next = async () => {
|
|
837
|
+
signal.throwIfAborted();
|
|
838
|
+
if (lines.length > 0) return lines.shift();
|
|
839
|
+
return new Promise((resolve, reject) => {
|
|
840
|
+
const done = (line) => {
|
|
841
|
+
signal.removeEventListener("abort", cancel);
|
|
842
|
+
resolve(line);
|
|
843
|
+
};
|
|
844
|
+
const cancel = () => {
|
|
845
|
+
const index = waiters.indexOf(done);
|
|
846
|
+
if (index >= 0) waiters.splice(index, 1);
|
|
847
|
+
reject(signal.reason);
|
|
848
|
+
};
|
|
849
|
+
signal.addEventListener("abort", cancel, { once: true });
|
|
850
|
+
waiters.push(done);
|
|
851
|
+
});
|
|
852
|
+
};
|
|
853
|
+
const response = async () => {
|
|
854
|
+
const line = await next();
|
|
855
|
+
let value;
|
|
856
|
+
try {
|
|
857
|
+
value = JSON.parse(line);
|
|
858
|
+
} catch (cause) {
|
|
859
|
+
throw new Error(`LibreOffice native renderer returned invalid JSON. ${stderr}`, { cause });
|
|
860
|
+
}
|
|
861
|
+
if (!value.ok) throw failure(value, stderr);
|
|
862
|
+
return value;
|
|
863
|
+
};
|
|
864
|
+
try {
|
|
865
|
+
const ready = await response();
|
|
866
|
+
if (ready.kind !== "ready") throw new Error("LibreOffice native renderer did not initialize.");
|
|
867
|
+
const planned = plan(ready, operation);
|
|
868
|
+
const scale = operation.dpi / 96;
|
|
869
|
+
const selected = [];
|
|
870
|
+
for (const region of planned.regions) if (region.sheet === void 0) selected.push(region);
|
|
871
|
+
else {
|
|
872
|
+
let rectangles;
|
|
873
|
+
try {
|
|
874
|
+
rectangles = splitRasterRectangle(region.rectangle, scale, {
|
|
875
|
+
maxPixels: operation.maxPixels,
|
|
876
|
+
maxDimension: operation.maxDimension,
|
|
877
|
+
maxTiles: operation.maxPages - selected.length
|
|
878
|
+
});
|
|
879
|
+
} catch (cause) {
|
|
880
|
+
throw new ConversionError("output-too-large", String(cause), { cause });
|
|
881
|
+
}
|
|
882
|
+
selected.push(...rectangles.map((rectangle) => ({
|
|
883
|
+
...region,
|
|
884
|
+
rectangle
|
|
885
|
+
})));
|
|
886
|
+
}
|
|
887
|
+
for (const { page, rectangle } of selected) {
|
|
888
|
+
const { width, height } = tileDimensions({
|
|
889
|
+
pageIndex: 0,
|
|
890
|
+
...rectangle,
|
|
891
|
+
scale
|
|
892
|
+
}, [page]);
|
|
893
|
+
if (width > operation.maxDimension || height > operation.maxDimension || width * height > operation.maxPixels) throw new ConversionError("output-too-large", "Selected page exceeds maxPixels or maxDimension; reduce DPI or raise the image limits.");
|
|
894
|
+
}
|
|
895
|
+
const images = [];
|
|
896
|
+
let total = 0;
|
|
897
|
+
for (const region of selected) {
|
|
898
|
+
signal.throwIfAborted();
|
|
899
|
+
const { width, height } = tileDimensions({
|
|
900
|
+
pageIndex: 0,
|
|
901
|
+
...region.rectangle,
|
|
902
|
+
scale
|
|
903
|
+
}, [region.page]);
|
|
904
|
+
const x = region.page.x + Math.round(region.rectangle.x * 15);
|
|
905
|
+
const y = region.page.y + Math.round(region.rectangle.y * 15);
|
|
906
|
+
const twipsWidth = Math.max(1, Math.round(region.rectangle.width * 15));
|
|
907
|
+
const twipsHeight = Math.max(1, Math.round(region.rectangle.height * 15));
|
|
908
|
+
const index = images.length + 1;
|
|
909
|
+
child.stdin.write(`P ${index} ${region.page.part} ${width} ${height} ${x} ${y} ${twipsWidth} ${twipsHeight}\n`);
|
|
910
|
+
const painted = await response();
|
|
911
|
+
if (painted.kind !== "paint" || painted.index !== index || painted.width !== width || painted.height !== height) throw new Error("LibreOffice native renderer returned inconsistent tile metadata.");
|
|
912
|
+
if (resolve(painted.path) !== resolve(scratch, `tile-${index}.rgba`)) throw new Error("LibreOffice native renderer returned a tile outside its scratch directory.");
|
|
913
|
+
const raw = await readFile(painted.path);
|
|
914
|
+
if (raw.byteLength !== width * height * 4) throw new Error("LibreOffice native renderer returned incomplete pixels.");
|
|
915
|
+
const png = encodePng(width, height, ready.documentType === "pdf" ? new Uint8ClampedArray(raw) : rgbaPixels(raw, ready.tileMode));
|
|
916
|
+
total += png.byteLength;
|
|
917
|
+
if (total > options.maxOutputBytes) throw new ConversionError("output-too-large", "PNG batch exceeds maxOutputBytes.");
|
|
918
|
+
const path = join(operation.outputDir, `page-${String(index).padStart(4, "0")}.png`);
|
|
919
|
+
await writeFile(path, png, {
|
|
920
|
+
flag: "wx",
|
|
921
|
+
mode: 384
|
|
922
|
+
});
|
|
923
|
+
images.push({
|
|
924
|
+
index,
|
|
925
|
+
...region.number === void 0 ? {} : { page: region.number },
|
|
926
|
+
...region.sheet === void 0 ? {} : {
|
|
927
|
+
sheet: region.sheet,
|
|
928
|
+
range: region.range,
|
|
929
|
+
rtl: region.rtl
|
|
930
|
+
},
|
|
931
|
+
path,
|
|
932
|
+
width,
|
|
933
|
+
height,
|
|
934
|
+
rectangle: region.rectangle,
|
|
935
|
+
byteLength: png.byteLength
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
child.stdin.end("DONE\n");
|
|
939
|
+
if ((await response()).kind !== "done") throw new Error("LibreOffice native renderer did not finish.");
|
|
940
|
+
const code = await closed;
|
|
941
|
+
if (code !== 0) throw new Error(`LibreOffice native renderer exited ${code}. ${stderr}`);
|
|
942
|
+
return {
|
|
943
|
+
schemaVersion: 1,
|
|
944
|
+
backend: "native",
|
|
945
|
+
rasterEngine: ready.documentType === "pdf" ? "pdfium" : "libreoffice",
|
|
946
|
+
source: "saved",
|
|
947
|
+
inputPath: operation.inputPath,
|
|
948
|
+
sourceSha256: createHash("sha256").update(source).digest("hex"),
|
|
949
|
+
dpi: operation.dpi,
|
|
950
|
+
pageCount: planned.count,
|
|
951
|
+
images,
|
|
952
|
+
missingFonts: [...missingFonts]
|
|
953
|
+
};
|
|
954
|
+
} finally {
|
|
955
|
+
signal.removeEventListener("abort", abort);
|
|
956
|
+
output.close();
|
|
957
|
+
if (child.exitCode === null) child.kill("SIGKILL");
|
|
958
|
+
await closed.catch(() => {});
|
|
959
|
+
if (stopped !== void 0) throw stopped;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
//#endregion
|
|
365
963
|
//#region lib/types/fonts.js
|
|
366
964
|
/** Host font metadata snapshots and conversion-local glyph matching over original files. */
|
|
367
965
|
/**
|
|
@@ -414,6 +1012,14 @@ function mobileAssetFontDirectories(assets) {
|
|
|
414
1012
|
return entries.filter((name) => /^com_apple_MobileAsset_Font\d*$/.test(name)).sort().map((name) => join(assets, name));
|
|
415
1013
|
}
|
|
416
1014
|
//#endregion
|
|
1015
|
+
//#region lib/types/font-metadata-cache.js
|
|
1016
|
+
/** Resolve the platform's user-local cache, independently of font discovery. */
|
|
1017
|
+
function defaultFontMetadataCacheDirectory(platform = process.platform, home = homedir(), env = process.env) {
|
|
1018
|
+
if (platform === "darwin") return posix.join(home, "Library/Caches/libreoffice-kit");
|
|
1019
|
+
if (platform === "win32") return win32.join(env.LOCALAPPDATA ?? win32.join(home, "AppData/Local"), "libreoffice-kit/Cache");
|
|
1020
|
+
return posix.join(env.XDG_CACHE_HOME && posix.isAbsolute(env.XDG_CACHE_HOME) ? env.XDG_CACHE_HOME : posix.join(home, ".cache"), "libreoffice-kit");
|
|
1021
|
+
}
|
|
1022
|
+
//#endregion
|
|
417
1023
|
//#region lib/types/options.js
|
|
418
1024
|
const SANS_CJK_FAMILIES = [
|
|
419
1025
|
"Microsoft YaHei",
|
|
@@ -537,7 +1143,9 @@ const DEFAULT_LIMITS = {
|
|
|
537
1143
|
maxUncompressedBytes: 536870912,
|
|
538
1144
|
maxFontFiles: 2e4,
|
|
539
1145
|
maxFontFileBytes: 268435456,
|
|
540
|
-
maxLoadedFontBytes: 536870912
|
|
1146
|
+
maxLoadedFontBytes: 536870912,
|
|
1147
|
+
maxFontResolutionEntries: 4096,
|
|
1148
|
+
maxFontMetadataCacheBytes: 33554432
|
|
541
1149
|
};
|
|
542
1150
|
const FONT_COLLECTION_NAMES = ["fontDirectories", "initialFontFamilies"];
|
|
543
1151
|
function positiveSafeInteger(value, name) {
|
|
@@ -575,8 +1183,12 @@ function resolveOptions(input = {}) {
|
|
|
575
1183
|
initialFontFamilies: [],
|
|
576
1184
|
...input
|
|
577
1185
|
};
|
|
578
|
-
for (const key of Object.keys(input)) if (!(key in DEFAULT_LIMITS) && !FONT_COLLECTION_NAMES.includes(key) && key !== "fontFallbacks") throw new TypeError(`Unknown converter option: ${key}`);
|
|
1186
|
+
for (const key of Object.keys(input)) if (!(key in DEFAULT_LIMITS) && !FONT_COLLECTION_NAMES.includes(key) && key !== "fontFallbacks" && key !== "fontMetadataCacheDirectory") throw new TypeError(`Unknown converter option: ${key}`);
|
|
1187
|
+
const cacheDirectory = input.fontMetadataCacheDirectory === void 0 ? defaultFontMetadataCacheDirectory() : input.fontMetadataCacheDirectory;
|
|
1188
|
+
if (cacheDirectory !== false && (typeof cacheDirectory !== "string" || !isAbsolute(cacheDirectory) || cacheDirectory.includes("\0"))) throw new TypeError("fontMetadataCacheDirectory must be an absolute path or false.");
|
|
579
1189
|
return {
|
|
1190
|
+
fontMetadataCacheDirectory: cacheDirectory,
|
|
1191
|
+
maxFontMetadataCacheBytes: positiveSafeInteger(merged.maxFontMetadataCacheBytes, "maxFontMetadataCacheBytes"),
|
|
580
1192
|
timeoutMs: positiveSafeInteger(merged.timeoutMs, "timeoutMs"),
|
|
581
1193
|
maxInputBytes: positiveSafeInteger(merged.maxInputBytes, "maxInputBytes"),
|
|
582
1194
|
maxOutputBytes: positiveSafeInteger(merged.maxOutputBytes, "maxOutputBytes"),
|
|
@@ -586,7 +1198,9 @@ function resolveOptions(input = {}) {
|
|
|
586
1198
|
maxFontFiles: positiveSafeInteger(merged.maxFontFiles, "maxFontFiles"),
|
|
587
1199
|
maxFontFileBytes: positiveSafeInteger(merged.maxFontFileBytes, "maxFontFileBytes"),
|
|
588
1200
|
maxLoadedFontBytes: positiveSafeInteger(merged.maxLoadedFontBytes, "maxLoadedFontBytes"),
|
|
1201
|
+
maxFontResolutionEntries: positiveSafeInteger(merged.maxFontResolutionEntries, "maxFontResolutionEntries"),
|
|
589
1202
|
fontDirectories: fontNames(merged.fontDirectories, "fontDirectories"),
|
|
1203
|
+
includeOfficeFonts: input.fontDirectories === void 0,
|
|
590
1204
|
initialFontFamilies: fontNames(merged.initialFontFamilies, "initialFontFamilies"),
|
|
591
1205
|
fontFallbacks: fontGroups(merged.fontFallbacks)
|
|
592
1206
|
};
|
|
@@ -599,7 +1213,7 @@ const require = createRequire(import.meta.url);
|
|
|
599
1213
|
* Engine-family version every installed engine package must carry. The engine
|
|
600
1214
|
* family shares its release version with this Node API.
|
|
601
1215
|
*/
|
|
602
|
-
const ENGINE_VERSION = "0.
|
|
1216
|
+
const ENGINE_VERSION = "0.1.1";
|
|
603
1217
|
/** npm scope and name prefix shared by the engine packages this adapter installs. */
|
|
604
1218
|
const ENGINE_PREFIX = "@deepseek-ai/libreoffice-kit";
|
|
605
1219
|
/**
|
|
@@ -678,7 +1292,7 @@ async function readEngine(packageFile, backend, target) {
|
|
|
678
1292
|
const root = dirname(packageFile);
|
|
679
1293
|
const [pkg, manifest] = await Promise.all([readFile(packageFile, "utf8").then((text) => JSON.parse(text)), readFile(resolve(root, "prebuilds.json"), "utf8").then((text) => JSON.parse(text))]);
|
|
680
1294
|
const engine = manifest.engine;
|
|
681
|
-
if (pkg.name !== `${ENGINE_PREFIX}-${target}` || pkg.version !== "0.
|
|
1295
|
+
if (pkg.name !== `${ENGINE_PREFIX}-${target}` || pkg.version !== "0.1.1" || manifest.version !== pkg.version || manifest.schemaVersion !== 1 || manifest.status !== "built" || engine === void 0 || engine.kind !== backend || manifest.platform !== target) throw new Error(`Installed LibreOfficeKit ${backend} package has an incompatible or incomplete manifest.`);
|
|
682
1296
|
const minimum = engine.glibcMinimum;
|
|
683
1297
|
if (minimum !== void 0 && (!target.endsWith("-glibc") || !glibcVersion(minimum))) throw new Error("Installed LibreOfficeKit engine has an invalid glibcMinimum.");
|
|
684
1298
|
const glibcFloor = minimum === void 0 ? {} : { glibcMinimum: minimum };
|
|
@@ -704,16 +1318,219 @@ async function readEngine(packageFile, backend, target) {
|
|
|
704
1318
|
};
|
|
705
1319
|
}
|
|
706
1320
|
//#endregion
|
|
707
|
-
//#region lib/types/
|
|
708
|
-
/**
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
1321
|
+
//#region lib/types/operations.js
|
|
1322
|
+
/** Validated document operations shared by the public API, workers, and CLI. */
|
|
1323
|
+
/** Conversions supported by the bundled Writer, Calc, and Impress components. */
|
|
1324
|
+
const CONVERSION_FORMATS = [
|
|
1325
|
+
{
|
|
1326
|
+
inputs: [
|
|
1327
|
+
"doc",
|
|
1328
|
+
"docx",
|
|
1329
|
+
"odt"
|
|
1330
|
+
],
|
|
1331
|
+
outputs: [
|
|
1332
|
+
"pdf",
|
|
1333
|
+
"docx",
|
|
1334
|
+
"odt",
|
|
1335
|
+
"txt"
|
|
1336
|
+
]
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
inputs: [
|
|
1340
|
+
"xls",
|
|
1341
|
+
"xlsx",
|
|
1342
|
+
"ods"
|
|
1343
|
+
],
|
|
1344
|
+
outputs: [
|
|
1345
|
+
"pdf",
|
|
1346
|
+
"xlsx",
|
|
1347
|
+
"ods",
|
|
1348
|
+
"csv"
|
|
1349
|
+
]
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
inputs: [
|
|
1353
|
+
"ppt",
|
|
1354
|
+
"pptx",
|
|
1355
|
+
"odp"
|
|
1356
|
+
],
|
|
1357
|
+
outputs: [
|
|
1358
|
+
"pdf",
|
|
1359
|
+
"pptx",
|
|
1360
|
+
"odp"
|
|
1361
|
+
]
|
|
1362
|
+
}
|
|
716
1363
|
];
|
|
1364
|
+
/**
|
|
1365
|
+
* Validate paths and the format matrix before file access or queue admission.
|
|
1366
|
+
* @param request - Public conversion parameters.
|
|
1367
|
+
* @param operation - PDF compatibility entry, general conversion, or workbook recalculation.
|
|
1368
|
+
* @returns The explicit engine operation.
|
|
1369
|
+
*/
|
|
1370
|
+
function resolveConversion(request, operation) {
|
|
1371
|
+
if (!request || typeof request.inputPath !== "string" || typeof request.outputPath !== "string" || !isAbsolute(request.inputPath) || !isAbsolute(request.outputPath) || request.inputPath.includes("\0") || request.outputPath.includes("\0")) throw new TypeError("inputPath and outputPath must be absolute filesystem paths.");
|
|
1372
|
+
if (resolve(request.inputPath) === resolve(request.outputPath)) throw new TypeError("Input and output paths must differ.");
|
|
1373
|
+
const extension = extname(request.inputPath).slice(1).toLowerCase();
|
|
1374
|
+
const format = operation === "render" ? "pdf" : extname(request.outputPath).slice(1).toLowerCase();
|
|
1375
|
+
const family = CONVERSION_FORMATS.find((group) => group.inputs.includes(extension));
|
|
1376
|
+
if (!family || !family.outputs.includes(format)) throw new ConversionError("unsupported-format", `Unsupported conversion: ${extension || "(no input extension)"} → ${format || "(no output extension)"}.`);
|
|
1377
|
+
if (operation === "recalculate" && (![
|
|
1378
|
+
"xls",
|
|
1379
|
+
"xlsx",
|
|
1380
|
+
"ods"
|
|
1381
|
+
].includes(extension) || !["xlsx", "ods"].includes(format))) throw new ConversionError("unsupported-format", "Recalculation requires XLS, XLSX, or ODS input and XLSX or ODS output.");
|
|
1382
|
+
if (request.sheet !== void 0 && (format !== "csv" || typeof request.sheet !== "string" || !request.sheet.trim() || request.sheet.includes("\0"))) throw new TypeError("sheet must be a nonempty exact worksheet name and is supported only for CSV output.");
|
|
1383
|
+
return {
|
|
1384
|
+
inputPath: request.inputPath,
|
|
1385
|
+
outputPath: request.outputPath,
|
|
1386
|
+
extension,
|
|
1387
|
+
format,
|
|
1388
|
+
recalculate: operation === "recalculate",
|
|
1389
|
+
...request.sheet === void 0 ? {} : { sheet: request.sheet }
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Reject an engine output with an incorrect container signature.
|
|
1394
|
+
* @param bytes - Complete bounded output.
|
|
1395
|
+
* @param format - Requested output suffix.
|
|
1396
|
+
*/
|
|
1397
|
+
function validateOutput(bytes, format) {
|
|
1398
|
+
if (format === "pdf" && new TextDecoder().decode(bytes.subarray(0, 5)) !== "%PDF-") throw new ConversionError("invalid-output", "LibreOffice did not produce a PDF.");
|
|
1399
|
+
if ([
|
|
1400
|
+
"docx",
|
|
1401
|
+
"xlsx",
|
|
1402
|
+
"pptx",
|
|
1403
|
+
"odt",
|
|
1404
|
+
"ods",
|
|
1405
|
+
"odp"
|
|
1406
|
+
].includes(format) && (bytes[0] !== 80 || bytes[1] !== 75 || bytes[2] !== 3 || bytes[3] !== 4)) throw new ConversionError("invalid-output", `LibreOffice did not produce a ${format} archive.`);
|
|
1407
|
+
}
|
|
1408
|
+
//#endregion
|
|
1409
|
+
//#region lib/types/runtime.js
|
|
1410
|
+
/** Offline discovery of the installed engine and public entry points. */
|
|
1411
|
+
/**
|
|
1412
|
+
* Inspect installed engine metadata without starting, downloading, or building an engine.
|
|
1413
|
+
* @returns Public entry paths, engine version, and selected backend.
|
|
1414
|
+
* @throws ConversionError when the installed engine is unavailable or invalid.
|
|
1415
|
+
*/
|
|
1416
|
+
async function discoverRuntime() {
|
|
1417
|
+
try {
|
|
1418
|
+
const engine = await resolveEngine();
|
|
1419
|
+
return {
|
|
1420
|
+
version: ENGINE_VERSION,
|
|
1421
|
+
backend: engine.backend,
|
|
1422
|
+
cliPath: fileURLToPath(new URL("./cli.js", import.meta.url)),
|
|
1423
|
+
nodeApiPath: fileURLToPath(new URL("./index.js", import.meta.url))
|
|
1424
|
+
};
|
|
1425
|
+
} catch (cause) {
|
|
1426
|
+
throw new ConversionError("unavailable", cause.message, { cause });
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
//#endregion
|
|
1430
|
+
//#region lib/types/font-snapshot-state.js
|
|
1431
|
+
/** Shared in-flight metadata work with independent cancellation and joined Worker cleanup. */
|
|
1432
|
+
/** Run one scan outside the event loop and join it before returning or cleaning its temporary file. */
|
|
1433
|
+
async function runFontSnapshot(options, previous, signal) {
|
|
1434
|
+
signal.throwIfAborted();
|
|
1435
|
+
const temporaryPath = options.fontMetadataCacheDirectory === false ? void 0 : join(options.fontMetadataCacheDirectory, `.font-metadata-${randomUUID()}.tmp`);
|
|
1436
|
+
const data = {
|
|
1437
|
+
options,
|
|
1438
|
+
previous,
|
|
1439
|
+
...temporaryPath === void 0 ? {} : { temporaryPath }
|
|
1440
|
+
};
|
|
1441
|
+
const worker = new Worker(new URL("./font-snapshot-worker.js", import.meta.url), {
|
|
1442
|
+
workerData: data,
|
|
1443
|
+
execArgv: [],
|
|
1444
|
+
name: "libreoffice-font-metadata",
|
|
1445
|
+
stdout: true,
|
|
1446
|
+
stderr: true
|
|
1447
|
+
});
|
|
1448
|
+
worker.stdout.resume();
|
|
1449
|
+
worker.stderr.resume();
|
|
1450
|
+
const result = Promise.withResolvers();
|
|
1451
|
+
const abort = () => result.reject(signal.reason);
|
|
1452
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
1453
|
+
worker.once("error", result.reject);
|
|
1454
|
+
worker.once("exit", (code) => result.reject(new ConversionError("failed", `Font metadata worker exited before returning a snapshot (${code}).`)));
|
|
1455
|
+
worker.once("message", (message) => {
|
|
1456
|
+
if (message.ok) result.resolve(message.snapshot);
|
|
1457
|
+
else result.reject(new ConversionError(failureCode(message), message.error));
|
|
1458
|
+
});
|
|
1459
|
+
try {
|
|
1460
|
+
return await result.promise;
|
|
1461
|
+
} finally {
|
|
1462
|
+
signal.removeEventListener("abort", abort);
|
|
1463
|
+
await worker.terminate();
|
|
1464
|
+
if (temporaryPath !== void 0) try {
|
|
1465
|
+
await rm(temporaryPath, { force: true });
|
|
1466
|
+
} catch {}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
/** Each acquisition refreshes inventory; overlapping acquisitions share only the active scan. */
|
|
1470
|
+
var FontSnapshotState = class {
|
|
1471
|
+
previous = [];
|
|
1472
|
+
scan;
|
|
1473
|
+
/** Revalidate files for an operation without coupling its cancellation to other waiters. */
|
|
1474
|
+
async acquire(options, signal) {
|
|
1475
|
+
signal.throwIfAborted();
|
|
1476
|
+
while (this.scan?.controller.signal.aborted) {
|
|
1477
|
+
await this.scan.promise.catch(() => {});
|
|
1478
|
+
signal.throwIfAborted();
|
|
1479
|
+
}
|
|
1480
|
+
if (this.scan === void 0) {
|
|
1481
|
+
const controller = new AbortController();
|
|
1482
|
+
const promise = runFontSnapshot(options, this.previous, controller.signal).then((snapshot) => {
|
|
1483
|
+
this.previous = Buffer.byteLength(JSON.stringify(snapshot.records)) <= options.maxFontMetadataCacheBytes ? snapshot.records : [];
|
|
1484
|
+
return snapshot;
|
|
1485
|
+
}).finally(() => {
|
|
1486
|
+
this.scan = void 0;
|
|
1487
|
+
});
|
|
1488
|
+
this.scan = {
|
|
1489
|
+
controller,
|
|
1490
|
+
promise,
|
|
1491
|
+
waiters: 0
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
const scan = this.scan;
|
|
1495
|
+
scan.waiters++;
|
|
1496
|
+
const cancelled = Promise.withResolvers();
|
|
1497
|
+
const abort = () => cancelled.reject(signal.reason);
|
|
1498
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
1499
|
+
try {
|
|
1500
|
+
return await Promise.race([scan.promise, cancelled.promise]);
|
|
1501
|
+
} finally {
|
|
1502
|
+
signal.removeEventListener("abort", abort);
|
|
1503
|
+
scan.waiters--;
|
|
1504
|
+
if (scan.waiters === 0 && this.scan === scan) {
|
|
1505
|
+
scan.controller.abort(/* @__PURE__ */ new Error("All font scan waiters stopped."));
|
|
1506
|
+
await scan.promise.catch(() => {});
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
/** Release completed metadata after the owning factory has joined its operations. */
|
|
1511
|
+
clear() {
|
|
1512
|
+
this.previous = [];
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
//#endregion
|
|
1516
|
+
//#region lib/types/font-snapshot-validation.js
|
|
1517
|
+
/** Verify the operation's source versions before publishing its output. */
|
|
1518
|
+
/** Reject changed, removed, or replaced sources without exposing local font paths. */
|
|
1519
|
+
async function validateFontSnapshot(snapshot) {
|
|
1520
|
+
await Promise.all(snapshot.records.map(async (record) => {
|
|
1521
|
+
try {
|
|
1522
|
+
const current = await lstat(record.path);
|
|
1523
|
+
if (current.isFile() && [
|
|
1524
|
+
"dev",
|
|
1525
|
+
"ino",
|
|
1526
|
+
"size",
|
|
1527
|
+
"mtimeMs",
|
|
1528
|
+
"ctimeMs"
|
|
1529
|
+
].every((key) => current[key] === record[key])) return;
|
|
1530
|
+
} catch {}
|
|
1531
|
+
throw new ConversionError("failed", "A system font changed during conversion; retry the operation.");
|
|
1532
|
+
}));
|
|
1533
|
+
}
|
|
717
1534
|
//#endregion
|
|
718
1535
|
//#region lib/types/index.js
|
|
719
1536
|
/** Convert caller-authorized disk documents with installed native or Node WASM engines. */
|
|
@@ -728,7 +1545,7 @@ async function readBounded(path, limit, signal, role) {
|
|
|
728
1545
|
try {
|
|
729
1546
|
const before = await file.stat();
|
|
730
1547
|
const invalid = role === "input" ? "invalid-document" : "invalid-output";
|
|
731
|
-
if (!before.isFile() || before.size < 1) throw new ConversionError(invalid, "Document must be a nonempty regular file.");
|
|
1548
|
+
if (!before.isFile() || role === "input" && before.size < 1) throw new ConversionError(invalid, "Document must be a nonempty regular file.");
|
|
732
1549
|
if (before.size > limit) throw new ConversionError(`${role}-too-large`, `Document exceeds its ${role} byte limit.`);
|
|
733
1550
|
const bytes = Buffer.alloc(before.size);
|
|
734
1551
|
for (let offset = 0; offset < bytes.length;) {
|
|
@@ -745,7 +1562,7 @@ async function readBounded(path, limit, signal, role) {
|
|
|
745
1562
|
await file.close();
|
|
746
1563
|
}
|
|
747
1564
|
}
|
|
748
|
-
async function runWorker(data, signal,
|
|
1565
|
+
async function runWorker(data, signal, onFontCache) {
|
|
749
1566
|
signal.throwIfAborted();
|
|
750
1567
|
const worker = new Worker(new URL("./worker.js", import.meta.url), {
|
|
751
1568
|
workerData: data,
|
|
@@ -766,7 +1583,7 @@ async function runWorker(data, signal, onFonts) {
|
|
|
766
1583
|
settled.reject(new ConversionError("failed", `LibreOffice worker exited before returning a result (${code}).`));
|
|
767
1584
|
});
|
|
768
1585
|
worker.on("message", (message) => {
|
|
769
|
-
if (message.kind === "
|
|
1586
|
+
if (message.kind === "font-cache") onFontCache(message.entries);
|
|
770
1587
|
else if (message.ok) settled.resolve(message);
|
|
771
1588
|
else settled.reject(new ConversionError(failureCode(message), message.error));
|
|
772
1589
|
});
|
|
@@ -777,14 +1594,41 @@ async function runWorker(data, signal, onFonts) {
|
|
|
777
1594
|
await worker.terminate();
|
|
778
1595
|
}
|
|
779
1596
|
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
1597
|
+
const DEFAULT_SHARED_STATE_LIMIT = 16;
|
|
1598
|
+
const defaultSharedStates = /* @__PURE__ */ new Map();
|
|
1599
|
+
function sharedStateKey(options, engine) {
|
|
1600
|
+
return JSON.stringify({
|
|
1601
|
+
engine,
|
|
1602
|
+
fontDirectories: options.fontDirectories,
|
|
1603
|
+
includeOfficeFonts: options.includeOfficeFonts,
|
|
1604
|
+
fontFallbacks: options.fontFallbacks,
|
|
1605
|
+
initialFontFamilies: options.initialFontFamilies,
|
|
1606
|
+
maxFontFiles: options.maxFontFiles,
|
|
1607
|
+
maxFontFileBytes: options.maxFontFileBytes,
|
|
1608
|
+
maxLoadedFontBytes: options.maxLoadedFontBytes,
|
|
1609
|
+
maxFontResolutionEntries: options.maxFontResolutionEntries,
|
|
1610
|
+
fontMetadataCacheDirectory: options.fontMetadataCacheDirectory,
|
|
1611
|
+
maxFontMetadataCacheBytes: options.maxFontMetadataCacheBytes
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
function defaultSharedState(options, engine) {
|
|
1615
|
+
const key = sharedStateKey(options, engine);
|
|
1616
|
+
const existing = defaultSharedStates.get(key);
|
|
1617
|
+
if (existing !== void 0) {
|
|
1618
|
+
defaultSharedStates.delete(key);
|
|
1619
|
+
defaultSharedStates.set(key, existing);
|
|
1620
|
+
return existing;
|
|
1621
|
+
}
|
|
1622
|
+
const state = {
|
|
1623
|
+
snapshots: new FontSnapshotState(),
|
|
1624
|
+
generation: void 0,
|
|
1625
|
+
fontCache: /* @__PURE__ */ new Map()
|
|
1626
|
+
};
|
|
1627
|
+
defaultSharedStates.set(key, state);
|
|
1628
|
+
while (defaultSharedStates.size > DEFAULT_SHARED_STATE_LIMIT) defaultSharedStates.delete(defaultSharedStates.keys().next().value);
|
|
1629
|
+
return state;
|
|
1630
|
+
}
|
|
1631
|
+
async function resolveConverter(options) {
|
|
788
1632
|
const resolvedOptions = resolveOptions(options);
|
|
789
1633
|
let engine;
|
|
790
1634
|
try {
|
|
@@ -792,12 +1636,43 @@ async function createConverter(options) {
|
|
|
792
1636
|
} catch (cause) {
|
|
793
1637
|
throw new ConversionError("unavailable", cause.message, { cause });
|
|
794
1638
|
}
|
|
1639
|
+
return {
|
|
1640
|
+
options: resolvedOptions,
|
|
1641
|
+
engine
|
|
1642
|
+
};
|
|
1643
|
+
}
|
|
1644
|
+
function createConverterWith(resolvedOptions, engine, shared, onDispose) {
|
|
795
1645
|
const lifetime = new AbortController();
|
|
796
1646
|
const active = /* @__PURE__ */ new Set();
|
|
797
1647
|
const waiting = /* @__PURE__ */ new Set();
|
|
798
1648
|
let running = false;
|
|
799
1649
|
let disposal;
|
|
800
|
-
|
|
1650
|
+
const mergeCache = (generation, entries) => {
|
|
1651
|
+
if (shared.generation !== generation) return;
|
|
1652
|
+
for (const entry of entries) {
|
|
1653
|
+
const prior = shared.fontCache.get(entry.key);
|
|
1654
|
+
const faces = new Map((prior?.faces ?? []).map((face) => [`${face.path}\0${face.faceIndex}`, face]));
|
|
1655
|
+
for (const face of entry.faces) faces.set(`${face.path}\0${face.faceIndex}`, face);
|
|
1656
|
+
const merged = {
|
|
1657
|
+
...entry,
|
|
1658
|
+
codePoints: [.../* @__PURE__ */ new Set([...prior?.codePoints ?? [], ...entry.codePoints])].sort((left, right) => left - right),
|
|
1659
|
+
emptyRequest: prior?.emptyRequest === true || entry.emptyRequest,
|
|
1660
|
+
faces: [...faces.values()],
|
|
1661
|
+
...(prior?.missingFamily ?? entry.missingFamily) === void 0 ? {} : { missingFamily: prior?.missingFamily ?? entry.missingFamily }
|
|
1662
|
+
};
|
|
1663
|
+
shared.fontCache.delete(entry.key);
|
|
1664
|
+
shared.fontCache.set(entry.key, merged);
|
|
1665
|
+
}
|
|
1666
|
+
while (shared.fontCache.size > resolvedOptions.maxFontResolutionEntries) shared.fontCache.delete(shared.fontCache.keys().next().value);
|
|
1667
|
+
};
|
|
1668
|
+
async function snapshot(signal) {
|
|
1669
|
+
const current = await shared.snapshots.acquire(resolvedOptions, signal);
|
|
1670
|
+
if (shared.generation !== current.generation) {
|
|
1671
|
+
shared.generation = current.generation;
|
|
1672
|
+
shared.fontCache.clear();
|
|
1673
|
+
}
|
|
1674
|
+
return current;
|
|
1675
|
+
}
|
|
801
1676
|
async function acquire(signal) {
|
|
802
1677
|
while (running) {
|
|
803
1678
|
signal.throwIfAborted();
|
|
@@ -821,11 +1696,8 @@ async function createConverter(options) {
|
|
|
821
1696
|
signal.throwIfAborted();
|
|
822
1697
|
running = true;
|
|
823
1698
|
}
|
|
824
|
-
async function
|
|
825
|
-
|
|
826
|
-
if (resolve(request.inputPath) === resolve(request.outputPath)) throw new Error("Input and output paths must differ.");
|
|
827
|
-
const extension = extname(request.inputPath).slice(1).toLowerCase();
|
|
828
|
-
if (!DOCUMENT_EXTENSIONS.includes(extension)) throw new ConversionError("unsupported-format", `Input extension must be ${DOCUMENT_EXTENSIONS.join(", ")}.`);
|
|
1699
|
+
async function execute(request, signal) {
|
|
1700
|
+
const { extension, format } = request;
|
|
829
1701
|
await acquire(signal);
|
|
830
1702
|
const deadline = new AbortController();
|
|
831
1703
|
const stopped = AbortSignal.any([signal, deadline.signal]);
|
|
@@ -839,38 +1711,41 @@ async function createConverter(options) {
|
|
|
839
1711
|
try {
|
|
840
1712
|
stopped.throwIfAborted();
|
|
841
1713
|
output = await open(request.outputPath, "wx", 384);
|
|
842
|
-
const
|
|
1714
|
+
const sourceBytes = await readBounded(request.inputPath, resolvedOptions.maxInputBytes, stopped, "input");
|
|
843
1715
|
scratch = await mkdtemp(join(tmpdir(), "libreoffice-kit-"));
|
|
844
1716
|
const inputPath = join(scratch, `document.${extension}`);
|
|
845
1717
|
const input = await open(inputPath, "wx", 384);
|
|
846
1718
|
try {
|
|
847
|
-
await input.writeFile(
|
|
1719
|
+
await input.writeFile(sourceBytes);
|
|
848
1720
|
} finally {
|
|
849
1721
|
await input.close();
|
|
850
1722
|
}
|
|
1723
|
+
const fonts = await snapshot(stopped);
|
|
851
1724
|
const result = await runWorker({
|
|
852
1725
|
inputPath,
|
|
853
1726
|
extension,
|
|
1727
|
+
operation: request,
|
|
854
1728
|
options: resolvedOptions,
|
|
855
1729
|
engine,
|
|
856
1730
|
scratch,
|
|
857
|
-
fontFaces
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
let
|
|
862
|
-
if ("
|
|
1731
|
+
fontFaces: fonts.faces,
|
|
1732
|
+
fontCache: [...shared.fontCache.values()]
|
|
1733
|
+
}, stopped, (entries) => mergeCache(fonts.generation, entries));
|
|
1734
|
+
if ("images" in result) throw new ConversionError("failed", "Conversion worker returned an image batch for an export request.");
|
|
1735
|
+
let bytes;
|
|
1736
|
+
if ("output" in result) bytes = result.output;
|
|
863
1737
|
else {
|
|
864
1738
|
const native = engine;
|
|
865
1739
|
const profile = join(scratch, "profile");
|
|
866
1740
|
await mkdir(profile, { mode: 448 });
|
|
867
|
-
const path = join(scratch,
|
|
868
|
-
await runNative(native, resolvedOptions, inputPath, path, profile, result.fonts, result.substitutions, stopped);
|
|
869
|
-
|
|
1741
|
+
const path = join(scratch, `output.${format}`);
|
|
1742
|
+
await runNative(native, resolvedOptions, inputPath, path, profile, result.fonts, result.substitutions, stopped, request);
|
|
1743
|
+
bytes = await readBounded(path, resolvedOptions.maxOutputBytes, stopped, "output");
|
|
870
1744
|
}
|
|
871
|
-
|
|
1745
|
+
validateOutput(bytes, format);
|
|
1746
|
+
await validateFontSnapshot(fonts);
|
|
872
1747
|
stopped.throwIfAborted();
|
|
873
|
-
await output.writeFile(
|
|
1748
|
+
await output.writeFile(bytes);
|
|
874
1749
|
stopped.throwIfAborted();
|
|
875
1750
|
succeeded = true;
|
|
876
1751
|
return {
|
|
@@ -901,24 +1776,147 @@ async function createConverter(options) {
|
|
|
901
1776
|
}
|
|
902
1777
|
}
|
|
903
1778
|
}
|
|
904
|
-
|
|
1779
|
+
async function executeImages(request, signal) {
|
|
1780
|
+
await acquire(signal);
|
|
1781
|
+
const deadline = new AbortController();
|
|
1782
|
+
const stopped = AbortSignal.any([signal, deadline.signal]);
|
|
1783
|
+
const timer = setTimeout(() => deadline.abort(new ConversionError("timeout", "LibreOffice image rendering timed out.")), resolvedOptions.timeoutMs);
|
|
1784
|
+
let scratch;
|
|
1785
|
+
let owned = false;
|
|
1786
|
+
let succeeded = false;
|
|
1787
|
+
try {
|
|
1788
|
+
stopped.throwIfAborted();
|
|
1789
|
+
await mkdir(request.outputDir, { mode: 448 });
|
|
1790
|
+
owned = true;
|
|
1791
|
+
const source = await readBounded(request.inputPath, resolvedOptions.maxInputBytes, stopped, "input");
|
|
1792
|
+
scratch = await mkdtemp(join(tmpdir(), "libreoffice-kit-images-"));
|
|
1793
|
+
const inputPath = join(scratch, `document.${request.extension}`);
|
|
1794
|
+
await writeFile(inputPath, source, {
|
|
1795
|
+
flag: "wx",
|
|
1796
|
+
mode: 384
|
|
1797
|
+
});
|
|
1798
|
+
const fonts = await snapshot(stopped);
|
|
1799
|
+
const result = await runWorker({
|
|
1800
|
+
inputPath,
|
|
1801
|
+
extension: request.extension,
|
|
1802
|
+
operation: request,
|
|
1803
|
+
options: resolvedOptions,
|
|
1804
|
+
engine,
|
|
1805
|
+
scratch,
|
|
1806
|
+
fontFaces: fonts.faces,
|
|
1807
|
+
fontCache: [...shared.fontCache.values()]
|
|
1808
|
+
}, stopped, (entries) => mergeCache(fonts.generation, entries));
|
|
1809
|
+
let images;
|
|
1810
|
+
if ("images" in result) images = result.images;
|
|
1811
|
+
else if ("fonts" in result) {
|
|
1812
|
+
const profile = join(scratch, "profile");
|
|
1813
|
+
images = await renderImagesWithNative({
|
|
1814
|
+
engine,
|
|
1815
|
+
options: resolvedOptions,
|
|
1816
|
+
inputPath,
|
|
1817
|
+
source,
|
|
1818
|
+
scratch,
|
|
1819
|
+
profile,
|
|
1820
|
+
fonts: result.fonts,
|
|
1821
|
+
substitutions: result.substitutions,
|
|
1822
|
+
missingFonts: result.missingFonts,
|
|
1823
|
+
operation: request,
|
|
1824
|
+
signal: stopped
|
|
1825
|
+
});
|
|
1826
|
+
} else throw new ConversionError("failed", "Image worker did not return its manifest.");
|
|
1827
|
+
await validateFontSnapshot(fonts);
|
|
1828
|
+
stopped.throwIfAborted();
|
|
1829
|
+
await writeFile(join(request.outputDir, "manifest.json"), `${JSON.stringify(images, null, 2)}\n`, {
|
|
1830
|
+
flag: "wx",
|
|
1831
|
+
mode: 384
|
|
1832
|
+
});
|
|
1833
|
+
stopped.throwIfAborted();
|
|
1834
|
+
succeeded = true;
|
|
1835
|
+
return images;
|
|
1836
|
+
} finally {
|
|
1837
|
+
clearTimeout(timer);
|
|
1838
|
+
try {
|
|
1839
|
+
const failures = (await Promise.allSettled([...scratch ? [rm(scratch, {
|
|
1840
|
+
recursive: true,
|
|
1841
|
+
force: true
|
|
1842
|
+
})] : [], ...owned && !succeeded ? [rm(request.outputDir, {
|
|
1843
|
+
recursive: true,
|
|
1844
|
+
force: true
|
|
1845
|
+
})] : []])).filter((result) => result.status === "rejected");
|
|
1846
|
+
if (failures.length) throw new AggregateError(failures.map((result) => result.reason), "Image batch cleanup failed.");
|
|
1847
|
+
} finally {
|
|
1848
|
+
running = false;
|
|
1849
|
+
for (const wake of [...waiting]) wake();
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
async function submit(request, operation, signal) {
|
|
1854
|
+
const task = execute(resolveConversion(request, operation), signal ? AbortSignal.any([signal, lifetime.signal]) : lifetime.signal);
|
|
1855
|
+
active.add(task);
|
|
1856
|
+
task.finally(() => {
|
|
1857
|
+
active.delete(task);
|
|
1858
|
+
}).catch((_error) => {});
|
|
1859
|
+
return task;
|
|
1860
|
+
}
|
|
1861
|
+
const converter = {
|
|
905
1862
|
backend: engine.backend,
|
|
906
|
-
render(request, signal)
|
|
907
|
-
|
|
1863
|
+
render: (request, signal) => submit(request, "render", signal),
|
|
1864
|
+
async renderImages(request, signal) {
|
|
1865
|
+
const task = executeImages(resolveImageRender(request), signal ? AbortSignal.any([signal, lifetime.signal]) : lifetime.signal);
|
|
908
1866
|
active.add(task);
|
|
909
|
-
task.finally(() => {
|
|
910
|
-
active.delete(task);
|
|
911
|
-
}).catch((_error) => {});
|
|
1867
|
+
task.finally(() => active.delete(task)).catch(() => {});
|
|
912
1868
|
return task;
|
|
913
1869
|
},
|
|
1870
|
+
convert: (request, signal) => submit(request, "convert", signal),
|
|
1871
|
+
recalculate: (request, signal) => submit(request, "recalculate", signal),
|
|
914
1872
|
dispose() {
|
|
915
1873
|
disposal ??= (async () => {
|
|
916
1874
|
lifetime.abort(/* @__PURE__ */ new Error("LibreOffice converter is disposed."));
|
|
917
1875
|
await Promise.allSettled(active);
|
|
1876
|
+
onDispose?.(converter);
|
|
918
1877
|
})();
|
|
919
1878
|
return disposal;
|
|
920
1879
|
}
|
|
921
1880
|
};
|
|
1881
|
+
return converter;
|
|
1882
|
+
}
|
|
1883
|
+
/** Resolve one engine and share its bounded font state across many converters. */
|
|
1884
|
+
async function createConverterFactory(options) {
|
|
1885
|
+
const { options: resolvedOptions, engine } = await resolveConverter(options);
|
|
1886
|
+
const shared = {
|
|
1887
|
+
snapshots: new FontSnapshotState(),
|
|
1888
|
+
generation: void 0,
|
|
1889
|
+
fontCache: /* @__PURE__ */ new Map()
|
|
1890
|
+
};
|
|
1891
|
+
const converters = /* @__PURE__ */ new Set();
|
|
1892
|
+
let disposal;
|
|
1893
|
+
return {
|
|
1894
|
+
backend: engine.backend,
|
|
1895
|
+
async create() {
|
|
1896
|
+
if (disposal) throw new ConversionError("unavailable", "LibreOffice converter factory is disposed.");
|
|
1897
|
+
const converter = createConverterWith(resolvedOptions, engine, shared, (value) => converters.delete(value));
|
|
1898
|
+
converters.add(converter);
|
|
1899
|
+
return converter;
|
|
1900
|
+
},
|
|
1901
|
+
dispose() {
|
|
1902
|
+
disposal ??= (async () => {
|
|
1903
|
+
const active = [...converters];
|
|
1904
|
+
converters.clear();
|
|
1905
|
+
const results = await Promise.allSettled(active.map((converter) => converter.dispose()));
|
|
1906
|
+
shared.fontCache.clear();
|
|
1907
|
+
shared.snapshots.clear();
|
|
1908
|
+
shared.generation = void 0;
|
|
1909
|
+
const failures = results.filter((result) => result.status === "rejected");
|
|
1910
|
+
if (failures.length) throw new AggregateError(failures.map((result) => result.reason), "LibreOffice converter factory disposal failed.");
|
|
1911
|
+
})();
|
|
1912
|
+
return disposal;
|
|
1913
|
+
}
|
|
1914
|
+
};
|
|
1915
|
+
}
|
|
1916
|
+
/** Create one converter with process-shared, configuration-isolated bounded font metadata. */
|
|
1917
|
+
async function createConverter(options) {
|
|
1918
|
+
const { options: resolvedOptions, engine } = await resolveConverter(options);
|
|
1919
|
+
return createConverterWith(resolvedOptions, engine, defaultSharedState(resolvedOptions, engine));
|
|
922
1920
|
}
|
|
923
1921
|
//#endregion
|
|
924
|
-
export { ConversionError, ENGINE_VERSION, createConverter };
|
|
1922
|
+
export { CONVERSION_FORMATS, ConversionError, ENGINE_VERSION, IMAGE_FORMATS, createConverter, createConverterFactory, discoverRuntime };
|