@songtonyli/dsh-cli 0.1.40 → 0.1.41
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 +460 -60
- 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 +508 -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/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,10 +1,11 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { parentPort, workerData } from "node:worker_threads";
|
|
3
|
-
import { closeSync, constants, fstatSync, mkdirSync, openSync, readFileSync, readSync,
|
|
4
|
-
import { basename,
|
|
5
|
-
import { strFromU8, unzipSync } from "fflate";
|
|
3
|
+
import { closeSync, constants, fstatSync, mkdirSync, openSync, readFileSync, readSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { basename, extname, join } from "node:path";
|
|
5
|
+
import { strFromU8, unzipSync, zlibSync } from "fflate";
|
|
6
6
|
import { SaxesParser } from "saxes";
|
|
7
7
|
import { create } from "fontkit";
|
|
8
|
+
import { createHash } from "node:crypto";
|
|
8
9
|
//#region lib/types/errors.js
|
|
9
10
|
/** Stable render failure categories shared across the Node worker and native helper transports. */
|
|
10
11
|
const CODES = /* @__PURE__ */ new Set([
|
|
@@ -44,13 +45,6 @@ function failureCode(error) {
|
|
|
44
45
|
//#endregion
|
|
45
46
|
//#region lib/types/fonts.js
|
|
46
47
|
/** Host font metadata snapshots and conversion-local glyph matching over original files. */
|
|
47
|
-
const FONT_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
48
|
-
".ttf",
|
|
49
|
-
".otf",
|
|
50
|
-
".ttc",
|
|
51
|
-
".otc",
|
|
52
|
-
".dfont"
|
|
53
|
-
]);
|
|
54
48
|
const VCL_WEIGHTS = [
|
|
55
49
|
400,
|
|
56
50
|
100,
|
|
@@ -82,18 +76,6 @@ const STAT_KEYS = [
|
|
|
82
76
|
"ctimeMs"
|
|
83
77
|
];
|
|
84
78
|
/**
|
|
85
|
-
* @param error - Thrown filesystem value.
|
|
86
|
-
* @returns whether it means the path is not a usable font source.
|
|
87
|
-
*/
|
|
88
|
-
function absent(error) {
|
|
89
|
-
return error instanceof Error && "code" in error && [
|
|
90
|
-
"ENOENT",
|
|
91
|
-
"EACCES",
|
|
92
|
-
"EPERM",
|
|
93
|
-
"ENOTDIR"
|
|
94
|
-
].includes(String(error.code));
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
79
|
* Case- and separator-insensitive family key used to compare names across sources.
|
|
98
80
|
* @param value - Family, style, or postscript name as recorded by a document or font.
|
|
99
81
|
* @returns The normalized key.
|
|
@@ -122,38 +104,6 @@ function fontFamilyPriority(requested, groups, pitch = 0, symbols = false) {
|
|
|
122
104
|
}
|
|
123
105
|
return [...priority.values()];
|
|
124
106
|
}
|
|
125
|
-
function fontPaths(directories, maxFiles) {
|
|
126
|
-
const pending = [...directories].reverse();
|
|
127
|
-
const visited = /* @__PURE__ */ new Set();
|
|
128
|
-
const paths = [];
|
|
129
|
-
for (let path = pending.pop(); path !== void 0; path = pending.pop()) {
|
|
130
|
-
let canonical;
|
|
131
|
-
let status;
|
|
132
|
-
try {
|
|
133
|
-
canonical = realpathSync(path);
|
|
134
|
-
status = statSync(canonical);
|
|
135
|
-
} catch (error) {
|
|
136
|
-
if (absent(error)) continue;
|
|
137
|
-
throw error;
|
|
138
|
-
}
|
|
139
|
-
if (visited.has(canonical)) continue;
|
|
140
|
-
visited.add(canonical);
|
|
141
|
-
if (status.isDirectory()) {
|
|
142
|
-
let names;
|
|
143
|
-
try {
|
|
144
|
-
names = readdirSync(canonical);
|
|
145
|
-
} catch (error) {
|
|
146
|
-
if (absent(error)) continue;
|
|
147
|
-
throw error;
|
|
148
|
-
}
|
|
149
|
-
pending.push(...names.sort().reverse().map((name) => join(canonical, name)));
|
|
150
|
-
} else if (status.isFile() && FONT_EXTENSIONS.has(extname(canonical).toLowerCase())) {
|
|
151
|
-
if (paths.length >= maxFiles) throw new Error("The system font catalog exceeds maxFontFiles.");
|
|
152
|
-
paths.push(canonical);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
return paths;
|
|
156
|
-
}
|
|
157
107
|
function ranges(font) {
|
|
158
108
|
const points = font.characterSet.filter((point) => font.hasGlyphForCodePoint(point)).sort((left, right) => left - right);
|
|
159
109
|
const result = [];
|
|
@@ -193,80 +143,6 @@ function covers(face, points) {
|
|
|
193
143
|
const coverage = face.coverage;
|
|
194
144
|
return points.filter((point) => coverage.some(([first, last]) => point >= first && point <= last));
|
|
195
145
|
}
|
|
196
|
-
/**
|
|
197
|
-
* VCL weight, width, and fixed-pitch values for one parsed face.
|
|
198
|
-
* @param font - The parsed physical face, whose `OS/2` and `post` tables may be absent.
|
|
199
|
-
* @returns the recorded classes, or the regular defaults for an absent table.
|
|
200
|
-
*/
|
|
201
|
-
function faceMetrics(font) {
|
|
202
|
-
const os2 = font["OS/2"];
|
|
203
|
-
return {
|
|
204
|
-
weight: os2 === void 0 ? 400 : os2.usWeightClass,
|
|
205
|
-
width: os2 === void 0 ? 5 : os2.usWidthClass,
|
|
206
|
-
fixed: Boolean(font.post?.isFixedPitch)
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
function inspect(path, maxBytes) {
|
|
210
|
-
let status;
|
|
211
|
-
let bytes;
|
|
212
|
-
try {
|
|
213
|
-
const fd = openSync(path, constants.O_RDONLY | constants.O_NONBLOCK | constants.O_NOFOLLOW);
|
|
214
|
-
try {
|
|
215
|
-
status = fstatSync(fd);
|
|
216
|
-
if (!status.isFile() || status.size > maxBytes) return [];
|
|
217
|
-
bytes = Buffer.alloc(status.size);
|
|
218
|
-
let offset = 0;
|
|
219
|
-
while (offset < bytes.length) {
|
|
220
|
-
const count = readSync(fd, bytes, offset, bytes.length - offset, offset);
|
|
221
|
-
if (count === 0) throw new Error("A system font was truncated while indexing; reload the font service.");
|
|
222
|
-
offset += count;
|
|
223
|
-
}
|
|
224
|
-
const after = fstatSync(fd);
|
|
225
|
-
if (after.size !== status.size || after.mtimeMs !== status.mtimeMs || after.ctimeMs !== status.ctimeMs) throw new Error("A system font changed while indexing; reload the font service.");
|
|
226
|
-
} finally {
|
|
227
|
-
closeSync(fd);
|
|
228
|
-
}
|
|
229
|
-
} catch (error) {
|
|
230
|
-
if (absent(error)) return [];
|
|
231
|
-
throw error;
|
|
232
|
-
}
|
|
233
|
-
let faces;
|
|
234
|
-
try {
|
|
235
|
-
const parsed = create(bytes);
|
|
236
|
-
faces = ("fonts" in parsed ? parsed.fonts : [parsed]).map((font, faceIndex) => {
|
|
237
|
-
const names = [
|
|
238
|
-
"fontFamily",
|
|
239
|
-
"preferredFamily",
|
|
240
|
-
"fullName",
|
|
241
|
-
"postscriptName"
|
|
242
|
-
].flatMap((key) => Object.values(font.name?.records[key] ?? {})).filter((name) => typeof name === "string");
|
|
243
|
-
const aliases = [...new Set([
|
|
244
|
-
...names,
|
|
245
|
-
font.familyName,
|
|
246
|
-
font.fullName,
|
|
247
|
-
font.postscriptName
|
|
248
|
-
].filter((name) => Boolean(name)).map(normalize))];
|
|
249
|
-
return {
|
|
250
|
-
path,
|
|
251
|
-
size: status.size,
|
|
252
|
-
mtimeMs: status.mtimeMs,
|
|
253
|
-
ctimeMs: status.ctimeMs,
|
|
254
|
-
dev: status.dev,
|
|
255
|
-
ino: status.ino,
|
|
256
|
-
faceIndex,
|
|
257
|
-
family: font.familyName,
|
|
258
|
-
style: font.subfamilyName,
|
|
259
|
-
aliases,
|
|
260
|
-
...faceMetrics(font),
|
|
261
|
-
italic: font.italicAngle !== 0,
|
|
262
|
-
postscriptName: font.postscriptName
|
|
263
|
-
};
|
|
264
|
-
});
|
|
265
|
-
} catch {
|
|
266
|
-
return [];
|
|
267
|
-
}
|
|
268
|
-
return faces;
|
|
269
|
-
}
|
|
270
146
|
function regionalPriority(face, language) {
|
|
271
147
|
const locale = language.toLowerCase();
|
|
272
148
|
const preferred = locale.startsWith("ja") ? ["jp"] : locale.startsWith("ko") ? ["kr"] : locale.startsWith("zh") ? /hant|tw|hk|mo/.test(locale) ? ["tc", "hk"] : ["sc"] : [];
|
|
@@ -274,15 +150,7 @@ function regionalPriority(face, language) {
|
|
|
274
150
|
const region = `${face.family} ${face.postscriptName} ${basename(face.path)}`.toLowerCase().match(/(?:cjk|[\s_-])(sc|tc|jp|kr|hk)(?=[\s_.-]|$)/)?.[1];
|
|
275
151
|
return region === void 0 ? 1 : preferred.includes(region) ? 0 : 2;
|
|
276
152
|
}
|
|
277
|
-
/**
|
|
278
|
-
* Snapshot eligible local font metadata without retaining font bytes or decoding glyph coverage.
|
|
279
|
-
* @param options - Host font roots and physical file limits.
|
|
280
|
-
* @returns metadata reused for the converter lifetime; recreate it after changing installed fonts.
|
|
281
|
-
*/
|
|
282
|
-
function indexSystemFonts(options) {
|
|
283
|
-
return fontPaths(options.directories, options.maxFiles).flatMap((path) => inspect(path, options.maxFileBytes));
|
|
284
|
-
}
|
|
285
|
-
/** Conversion-local glyph coverage over the converter's first metadata snapshot. */
|
|
153
|
+
/** Conversion-local glyph coverage over one operation's metadata snapshot. */
|
|
286
154
|
var SystemFontCatalog = class {
|
|
287
155
|
options;
|
|
288
156
|
faces;
|
|
@@ -336,7 +204,8 @@ var SystemFontCatalog = class {
|
|
|
336
204
|
}
|
|
337
205
|
return {
|
|
338
206
|
fonts: selected,
|
|
339
|
-
...missingFamily === void 0 ? {} : { missingFamily }
|
|
207
|
+
...missingFamily === void 0 ? {} : { missingFamily },
|
|
208
|
+
...missing.size === 0 ? {} : { unresolvedCodePoints: [...missing] }
|
|
340
209
|
};
|
|
341
210
|
}
|
|
342
211
|
};
|
|
@@ -368,6 +237,9 @@ function readFont(face) {
|
|
|
368
237
|
//#region lib/types/ooxml.js
|
|
369
238
|
/** Bounded OOXML inspection and declared font diagnostics, using maintained ZIP/XML parsers. */
|
|
370
239
|
const MAIN_PARTS = {
|
|
240
|
+
odt: ["content.xml", "application/vnd.oasis.opendocument.text"],
|
|
241
|
+
ods: ["content.xml", "application/vnd.oasis.opendocument.spreadsheet"],
|
|
242
|
+
odp: ["content.xml", "application/vnd.oasis.opendocument.presentation"],
|
|
371
243
|
docx: ["word/document.xml", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"],
|
|
372
244
|
xlsx: ["xl/workbook.xml", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"],
|
|
373
245
|
pptx: ["ppt/presentation.xml", "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"]
|
|
@@ -390,6 +262,11 @@ function codePointOf(character) {
|
|
|
390
262
|
function inspectDocument$1(bytes, extension, limits) {
|
|
391
263
|
const main = MAIN_PARTS[extension];
|
|
392
264
|
if (!main) throw new ConversionError("unsupported-format", "Input extension must be docx, xlsx, or pptx.");
|
|
265
|
+
const odf = [
|
|
266
|
+
"odt",
|
|
267
|
+
"ods",
|
|
268
|
+
"odp"
|
|
269
|
+
].includes(extension);
|
|
393
270
|
const names = /* @__PURE__ */ new Set();
|
|
394
271
|
let total = 0;
|
|
395
272
|
let files;
|
|
@@ -398,17 +275,23 @@ function inspectDocument$1(bytes, extension, limits) {
|
|
|
398
275
|
total += entry.originalSize;
|
|
399
276
|
if (names.has(entry.name) || names.size >= limits.maxArchiveEntries || !Number.isSafeInteger(total) || total > limits.maxUncompressedBytes) throw new Error("OOXML archive exceeds its limits or repeats an entry.");
|
|
400
277
|
names.add(entry.name);
|
|
278
|
+
if (odf) return [
|
|
279
|
+
"mimetype",
|
|
280
|
+
"content.xml",
|
|
281
|
+
"styles.xml",
|
|
282
|
+
"META-INF/manifest.xml"
|
|
283
|
+
].includes(entry.name);
|
|
401
284
|
return entry.name === "[Content_Types].xml" || /^(word|xl|ppt)\/.*\.xml$/.test(entry.name) && !entry.name.endsWith("/fontTable.xml") && !entry.name.includes("/theme/");
|
|
402
285
|
} });
|
|
403
286
|
} catch (cause) {
|
|
404
287
|
throw new ConversionError("invalid-document", "Input is not a supported, bounded OOXML archive.", { cause });
|
|
405
288
|
}
|
|
406
289
|
const contentTypes = files["[Content_Types].xml"];
|
|
407
|
-
if (!names.has("_rels/.rels") || !names.has(main[0]) || contentTypes === void 0 || !strFromU8(contentTypes).includes(main[1])) throw new ConversionError("invalid-document", `Input does not contain a ${extension} document.`);
|
|
290
|
+
if (odf ? !names.has("content.xml") || !names.has("META-INF/manifest.xml") || strFromU8(files.mimetype ?? /* @__PURE__ */ new Uint8Array()) !== main[1] : !names.has("_rels/.rels") || !names.has(main[0]) || contentTypes === void 0 || !strFromU8(contentTypes).includes(main[1])) throw new ConversionError("invalid-document", `Input does not contain a ${extension} document.`);
|
|
408
291
|
const families = /* @__PURE__ */ new Map();
|
|
409
292
|
const codePoints = /* @__PURE__ */ new Set();
|
|
410
293
|
for (const [name, data] of Object.entries(files)) {
|
|
411
|
-
if (name === "[Content_Types].xml") continue;
|
|
294
|
+
if (name === "[Content_Types].xml" || name === "mimetype" || name === "META-INF/manifest.xml") continue;
|
|
412
295
|
const partFamilies = [];
|
|
413
296
|
const partPoints = /* @__PURE__ */ new Set();
|
|
414
297
|
const parser = new SaxesParser({ xmlns: true });
|
|
@@ -416,12 +299,15 @@ function inspectDocument$1(bytes, extension, limits) {
|
|
|
416
299
|
const word = /wordprocessingml\/(?:2006\/)?main$/.test(tag.uri) && tag.local === "rFonts";
|
|
417
300
|
const drawing = /drawingml\/(?:2006\/)?main$/.test(tag.uri);
|
|
418
301
|
const sheet = /spreadsheetml\/(?:2006\/)?main$/.test(tag.uri) && tag.local === "name";
|
|
419
|
-
for (const attribute of Object.values(tag.attributes))
|
|
420
|
-
"
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
302
|
+
for (const attribute of Object.values(tag.attributes)) {
|
|
303
|
+
if (odf && attribute.local === "font-family") partFamilies.push(attribute.value.replace(/^['"]|['"]$/g, ""));
|
|
304
|
+
if (word && [
|
|
305
|
+
"ascii",
|
|
306
|
+
"hAnsi",
|
|
307
|
+
"eastAsia",
|
|
308
|
+
"cs"
|
|
309
|
+
].includes(attribute.local) || drawing && attribute.local === "typeface" || sheet && attribute.local === "val") partFamilies.push(attribute.value);
|
|
310
|
+
}
|
|
425
311
|
});
|
|
426
312
|
parser.on("text", (text) => {
|
|
427
313
|
for (const char of text) if (!/\s/u.test(char)) partPoints.add(codePointOf(char));
|
|
@@ -447,10 +333,13 @@ function inspectDocument$1(bytes, extension, limits) {
|
|
|
447
333
|
const DOCUMENT_EXTENSIONS = [
|
|
448
334
|
"doc",
|
|
449
335
|
"docx",
|
|
336
|
+
"odt",
|
|
450
337
|
"xls",
|
|
451
338
|
"xlsx",
|
|
339
|
+
"ods",
|
|
452
340
|
"ppt",
|
|
453
|
-
"pptx"
|
|
341
|
+
"pptx",
|
|
342
|
+
"odp"
|
|
454
343
|
];
|
|
455
344
|
const COMPOUND_SIGNATURE = [
|
|
456
345
|
208,
|
|
@@ -476,7 +365,10 @@ function inspectDocument(bytes, extension, limits) {
|
|
|
476
365
|
if ([
|
|
477
366
|
"docx",
|
|
478
367
|
"xlsx",
|
|
479
|
-
"pptx"
|
|
368
|
+
"pptx",
|
|
369
|
+
"odt",
|
|
370
|
+
"ods",
|
|
371
|
+
"odp"
|
|
480
372
|
].includes(extension)) return inspectDocument$1(bytes, extension, limits);
|
|
481
373
|
if (bytes.length < 512 || !COMPOUND_SIGNATURE.every((value, index) => bytes[index] === value)) throw new ConversionError("invalid-document", "Legacy Office input must contain an OLE compound document.");
|
|
482
374
|
const header = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -490,19 +382,68 @@ function inspectDocument(bytes, extension, limits) {
|
|
|
490
382
|
}
|
|
491
383
|
//#endregion
|
|
492
384
|
//#region lib/types/font-loader.js
|
|
493
|
-
/** Conversion-local font imports
|
|
494
|
-
|
|
495
|
-
|
|
385
|
+
/** Conversion-local font imports backed by a factory-lifetime match cache. */
|
|
386
|
+
const faceKey = (face) => `${face.path}\0${face.faceIndex}`;
|
|
387
|
+
const requestKey = ({ codePoints: _codePoints, ...request }) => JSON.stringify(request);
|
|
388
|
+
/** Build one operation's loader over a factory-owned immutable font snapshot. */
|
|
389
|
+
function createFontLoader(options, document, install, faces, cache = []) {
|
|
496
390
|
const catalog = new SystemFontCatalog({
|
|
497
391
|
faces,
|
|
498
392
|
fallbackFamilies: options.fontFallbacks
|
|
499
393
|
});
|
|
394
|
+
const byFace = new Map(faces.map((face) => [faceKey(face), face]));
|
|
395
|
+
const matches = /* @__PURE__ */ new Map();
|
|
396
|
+
for (const entry of cache.slice(-options.maxFontResolutionEntries)) matches.set(entry.key, {
|
|
397
|
+
...entry,
|
|
398
|
+
codePoints: [...entry.codePoints],
|
|
399
|
+
faces: entry.faces.map((face) => ({ ...face }))
|
|
400
|
+
});
|
|
500
401
|
const loaded = /* @__PURE__ */ new Map();
|
|
501
402
|
const resolved = /* @__PURE__ */ new Map();
|
|
502
403
|
const missing = /* @__PURE__ */ new Map();
|
|
503
404
|
const substitutions = /* @__PURE__ */ new Map();
|
|
504
405
|
const signal = new AbortController().signal;
|
|
505
406
|
let bytes = 0;
|
|
407
|
+
function retain(entry) {
|
|
408
|
+
matches.delete(entry.key);
|
|
409
|
+
matches.set(entry.key, entry);
|
|
410
|
+
while (matches.size > options.maxFontResolutionEntries) matches.delete(matches.keys().next().value);
|
|
411
|
+
}
|
|
412
|
+
function cachedMatch(request) {
|
|
413
|
+
const key = requestKey(request);
|
|
414
|
+
const points = [...new Set(request.codePoints)].sort((left, right) => left - right);
|
|
415
|
+
const prior = matches.get(key);
|
|
416
|
+
if (prior && (points.length === 0 && prior.emptyRequest || points.every((point) => prior.codePoints.includes(point)))) {
|
|
417
|
+
retain(prior);
|
|
418
|
+
return {
|
|
419
|
+
fonts: prior.faces.map((reference) => byFace.get(faceKey(reference))).filter((face) => face !== void 0),
|
|
420
|
+
...prior.missingFamily === void 0 ? {} : { missingFamily: prior.missingFamily }
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
const unknown = prior === void 0 ? points : points.filter((point) => !prior.codePoints.includes(point));
|
|
424
|
+
const current = catalog.match({
|
|
425
|
+
...request,
|
|
426
|
+
codePoints: points.length === 0 ? [] : unknown
|
|
427
|
+
}, signal);
|
|
428
|
+
const references = new Map((prior?.faces ?? []).map((face) => [faceKey(face), face]));
|
|
429
|
+
for (const face of current.fonts) references.set(faceKey(face), {
|
|
430
|
+
path: face.path,
|
|
431
|
+
faceIndex: face.faceIndex
|
|
432
|
+
});
|
|
433
|
+
const missingFamily = prior?.missingFamily ?? current.missingFamily;
|
|
434
|
+
const entry = {
|
|
435
|
+
key,
|
|
436
|
+
codePoints: [.../* @__PURE__ */ new Set([...prior?.codePoints ?? [], ...points])].sort((left, right) => left - right),
|
|
437
|
+
emptyRequest: prior?.emptyRequest === true || points.length === 0,
|
|
438
|
+
faces: [...references.values()],
|
|
439
|
+
...missingFamily === void 0 ? {} : { missingFamily }
|
|
440
|
+
};
|
|
441
|
+
retain(entry);
|
|
442
|
+
return {
|
|
443
|
+
fonts: entry.faces.map((reference) => byFace.get(faceKey(reference))).filter((face) => face !== void 0),
|
|
444
|
+
...entry.missingFamily === void 0 ? {} : { missingFamily: entry.missingFamily }
|
|
445
|
+
};
|
|
446
|
+
}
|
|
506
447
|
return {
|
|
507
448
|
get missingFonts() {
|
|
508
449
|
return [...missing.values()];
|
|
@@ -513,11 +454,14 @@ function createFontLoader(options, document, install, faces) {
|
|
|
513
454
|
get files() {
|
|
514
455
|
return [...loaded.values()];
|
|
515
456
|
},
|
|
457
|
+
get cacheEntries() {
|
|
458
|
+
return [...matches.values()];
|
|
459
|
+
},
|
|
516
460
|
resolve(request) {
|
|
517
461
|
const key = JSON.stringify(request);
|
|
518
462
|
const cached = resolved.get(key);
|
|
519
463
|
if (cached) return cached;
|
|
520
|
-
const match =
|
|
464
|
+
const match = cachedMatch(request);
|
|
521
465
|
if (match.missingFamily && document.families.has(normalize(match.missingFamily))) {
|
|
522
466
|
const family = normalize(match.missingFamily);
|
|
523
467
|
missing.set(family, match.missingFamily);
|
|
@@ -558,12 +502,7 @@ function preloadFonts(loader, options, document, native = false) {
|
|
|
558
502
|
codePoints: native ? document.codePoints : []
|
|
559
503
|
});
|
|
560
504
|
}
|
|
561
|
-
/**
|
|
562
|
-
* Fontconfig XML restricts WASM discovery to imported originals in MEMFS.
|
|
563
|
-
* @param families - Ordered family groups; the first name of each group is its canonical spelling.
|
|
564
|
-
* @param requested - Additional family names the document declared.
|
|
565
|
-
* @returns the fontconfig document written into the module's memory filesystem.
|
|
566
|
-
*/
|
|
505
|
+
/** Fontconfig XML restricts WASM discovery to imported originals in MEMFS. */
|
|
567
506
|
function memoryFontConfig(families, requested = []) {
|
|
568
507
|
const escape = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
569
508
|
return `<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"><fontconfig><dir>/dsh-fonts</dir><cachedir>/dsh/font-cache</cachedir>${[...new Map([...families.flatMap((group) => group.slice(0, 1)), ...requested].map((name) => [normalize(name), name])).values()].map((name) => {
|
|
@@ -572,6 +511,100 @@ function memoryFontConfig(families, requested = []) {
|
|
|
572
511
|
}).join("")}</fontconfig>`;
|
|
573
512
|
}
|
|
574
513
|
//#endregion
|
|
514
|
+
//#region lib/types/font-full.js
|
|
515
|
+
/** Whole fonts for engines such as PDFium that perform their own glyph mapping. */
|
|
516
|
+
function fontFileFormat(bytes) {
|
|
517
|
+
const magic = new TextDecoder().decode(bytes.subarray(0, 4));
|
|
518
|
+
if (magic === "ttcf") return "ttc";
|
|
519
|
+
if (magic === "OTTO") return "otf";
|
|
520
|
+
if (magic === "true" || bytes[0] === 0 && bytes[1] === 1 && bytes[2] === 0 && bytes[3] === 0) return "ttf";
|
|
521
|
+
throw new Error("The full font asset is not an sfnt font or collection.");
|
|
522
|
+
}
|
|
523
|
+
/** Keep full names, encoding tables and glyphs. Apple dfont containers expose one complete sfnt resource. */
|
|
524
|
+
function fullFontFile(face) {
|
|
525
|
+
const original = readFont(face);
|
|
526
|
+
const sourceHash = createHash("sha256").update(original).digest("hex");
|
|
527
|
+
let bytes = original;
|
|
528
|
+
/* v8 ignore next -- Apple dfont resource extraction is exercised by matching-host font qualification. */
|
|
529
|
+
if (extname(face.path).toLowerCase() === ".dfont") bytes = indexedFace(create(original), face).stream.buffer;
|
|
530
|
+
return {
|
|
531
|
+
bytes,
|
|
532
|
+
sourceHash,
|
|
533
|
+
format: fontFileFormat(bytes)
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
/** Mount a fixed bounded set before PDFium performs its first installed-font enumeration. */
|
|
537
|
+
function preloadPdfFonts(options, faces, install) {
|
|
538
|
+
const catalog = new SystemFontCatalog({
|
|
539
|
+
faces,
|
|
540
|
+
fallbackFamilies: options.fontFallbacks
|
|
541
|
+
});
|
|
542
|
+
const files = /* @__PURE__ */ new Set();
|
|
543
|
+
const assets = /* @__PURE__ */ new Set();
|
|
544
|
+
let total = 0;
|
|
545
|
+
const families = [.../* @__PURE__ */ new Set([
|
|
546
|
+
...options.initialFontFamilies,
|
|
547
|
+
...options.fontFallbacks.flat(),
|
|
548
|
+
"sans-serif",
|
|
549
|
+
"serif",
|
|
550
|
+
"monospace"
|
|
551
|
+
])];
|
|
552
|
+
for (const family of families) {
|
|
553
|
+
const result = catalog.match({
|
|
554
|
+
family,
|
|
555
|
+
style: "",
|
|
556
|
+
weight: 5,
|
|
557
|
+
italic: 0,
|
|
558
|
+
width: 5,
|
|
559
|
+
pitch: 0,
|
|
560
|
+
language: "",
|
|
561
|
+
codePoints: []
|
|
562
|
+
}, new AbortController().signal);
|
|
563
|
+
for (const face of result.fonts) {
|
|
564
|
+
/* v8 ignore next -- Apple dfont face identity is covered by matching-host font qualification. */
|
|
565
|
+
const physical = `${face.path}#${extname(face.path).toLowerCase() === ".dfont" ? face.faceIndex : ""}`;
|
|
566
|
+
if (files.has(physical)) continue;
|
|
567
|
+
files.add(physical);
|
|
568
|
+
const { bytes, format } = fullFontFile(face);
|
|
569
|
+
const id = createHash("sha256").update(bytes).digest("hex");
|
|
570
|
+
if (assets.has(id)) continue;
|
|
571
|
+
if (total + bytes.length > options.maxLoadedFontBytes) throw new Error("PDF full-font preload exceeds maxLoadedFontBytes.");
|
|
572
|
+
install(`${id}.${format}`, bytes);
|
|
573
|
+
total += bytes.length;
|
|
574
|
+
assets.add(id);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
//#endregion
|
|
579
|
+
//#region lib/types/profile.js
|
|
580
|
+
/** Private headless profile used by both native and WASM conversions. */
|
|
581
|
+
/**
|
|
582
|
+
* CSV selection is checked by the engine wrapper before saving; suppress the interactive warning.
|
|
583
|
+
* @param fontNodes - Escaped VCL font-substitution nodes, or an empty string for WASM.
|
|
584
|
+
* @returns The per-operation registry XML; macro execution is independently disabled at load.
|
|
585
|
+
*/
|
|
586
|
+
function profileXml(fontNodes = "") {
|
|
587
|
+
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`;
|
|
588
|
+
}
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region lib/types/operations.js
|
|
591
|
+
/**
|
|
592
|
+
* Reject an engine output with an incorrect container signature.
|
|
593
|
+
* @param bytes - Complete bounded output.
|
|
594
|
+
* @param format - Requested output suffix.
|
|
595
|
+
*/
|
|
596
|
+
function validateOutput(bytes, format) {
|
|
597
|
+
if (format === "pdf" && new TextDecoder().decode(bytes.subarray(0, 5)) !== "%PDF-") throw new ConversionError("invalid-output", "LibreOffice did not produce a PDF.");
|
|
598
|
+
if ([
|
|
599
|
+
"docx",
|
|
600
|
+
"xlsx",
|
|
601
|
+
"pptx",
|
|
602
|
+
"odt",
|
|
603
|
+
"ods",
|
|
604
|
+
"odp"
|
|
605
|
+
].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.`);
|
|
606
|
+
}
|
|
607
|
+
//#endregion
|
|
575
608
|
//#region lib/types/wasm.js
|
|
576
609
|
/** Node-only LibreOffice module execution; the owner terminates this worker on cancellation. */
|
|
577
610
|
const require = createRequire(import.meta.url);
|
|
@@ -593,13 +626,11 @@ function requiredFontLoader(loader) {
|
|
|
593
626
|
if (loader === void 0) throw new Error("LibreOffice initialized without its font loader.");
|
|
594
627
|
return loader;
|
|
595
628
|
}
|
|
596
|
-
/**
|
|
597
|
-
|
|
598
|
-
* @param request - Engine installation, source bytes, limits, and font metadata.
|
|
599
|
-
* @returns the generated PDF bytes and the declared families the catalog could not provide.
|
|
600
|
-
*/
|
|
601
|
-
async function convertWithWasm(request) {
|
|
629
|
+
/** A single module loader and owned session lifecycle for export and direct raster operations. */
|
|
630
|
+
async function withWasmSession(request, use) {
|
|
602
631
|
const { engine, bytes, extension, options, document: metadata, faces } = request;
|
|
632
|
+
const pdf = extension === "pdf";
|
|
633
|
+
let idleReady = false;
|
|
603
634
|
const factory = require(engine.loader);
|
|
604
635
|
const raw = readFileSync(engine.data);
|
|
605
636
|
const data = raw.buffer.slice(raw.byteOffset, raw.byteOffset + raw.byteLength);
|
|
@@ -611,17 +642,25 @@ async function convertWithWasm(request) {
|
|
|
611
642
|
let failure;
|
|
612
643
|
try {
|
|
613
644
|
module = await factory({
|
|
645
|
+
dshOnCallback(type, payload) {
|
|
646
|
+
if (type !== 16) return;
|
|
647
|
+
try {
|
|
648
|
+
const result = JSON.parse(payload);
|
|
649
|
+
if (result.commandName === ".uno:ReportWhenIdle" && result.idleID === "node-raster") idleReady = true;
|
|
650
|
+
} catch {}
|
|
651
|
+
},
|
|
614
652
|
noInitialRun: true,
|
|
615
653
|
mainScriptUrlOrBlob: engine.loader,
|
|
616
654
|
locateFile(name) {
|
|
617
655
|
const file = basename(name);
|
|
618
|
-
if (
|
|
656
|
+
if (file === "soffice.wasm") return engine.wasm;
|
|
657
|
+
for (const asset of [
|
|
619
658
|
engine.loader,
|
|
620
659
|
engine.data,
|
|
621
660
|
engine.wasm,
|
|
622
661
|
engine.metadata
|
|
623
|
-
]
|
|
624
|
-
|
|
662
|
+
]) if (basename(asset) === file) return asset;
|
|
663
|
+
throw new Error(`LibreOffice requested an unlisted asset: ${file}`);
|
|
625
664
|
},
|
|
626
665
|
getPreloadedPackage: () => data,
|
|
627
666
|
dshResolveSystemFonts(request) {
|
|
@@ -630,10 +669,11 @@ async function convertWithWasm(request) {
|
|
|
630
669
|
},
|
|
631
670
|
preRun: [(loadedModule) => {
|
|
632
671
|
for (const path of [
|
|
633
|
-
"/dsh/profile",
|
|
672
|
+
"/dsh/profile/user",
|
|
634
673
|
"/dsh/font-cache",
|
|
635
674
|
"/dsh-fonts"
|
|
636
675
|
]) loadedModule.FS.mkdirTree(path);
|
|
676
|
+
loadedModule.FS.writeFile("/dsh/profile/user/registrymodifications.xcu", new TextEncoder().encode(profileXml()));
|
|
637
677
|
loadedModule.FS.writeFile("/dsh/fonts.conf", new TextEncoder().encode(memoryFontConfig(options.fontFallbacks, metadata.families.values())));
|
|
638
678
|
Object.assign(loadedModule.ENV, {
|
|
639
679
|
HOME: "/dsh/profile",
|
|
@@ -645,8 +685,11 @@ async function convertWithWasm(request) {
|
|
|
645
685
|
const path = `/dsh-fonts/${name}`;
|
|
646
686
|
loadedModule.FS.writeFile(path, bytes);
|
|
647
687
|
return path;
|
|
648
|
-
}, faces);
|
|
649
|
-
|
|
688
|
+
}, faces, request.fontCache);
|
|
689
|
+
if (pdf) {
|
|
690
|
+
loadedModule.FS.mkdirTree("/usr/share/fonts/dsh-pdfium");
|
|
691
|
+
preloadPdfFonts(options, faces, (name, bytes) => loadedModule.FS.writeFile(`/usr/share/fonts/dsh-pdfium/${name}`, bytes));
|
|
692
|
+
} else preloadFonts(fontLoader, options, metadata);
|
|
650
693
|
}],
|
|
651
694
|
onAbort() {
|
|
652
695
|
fatal = true;
|
|
@@ -656,52 +699,73 @@ async function convertWithWasm(request) {
|
|
|
656
699
|
});
|
|
657
700
|
const instance = module;
|
|
658
701
|
const input = `/dsh/document.${extension}`;
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
702
|
+
if (!pdf) instance.FS.writeFile(input, bytes);
|
|
703
|
+
if (pdf) {
|
|
704
|
+
const pointer = instance.ccall("malloc", "number", ["number"], [bytes.length]);
|
|
705
|
+
if (!pointer) throw engineError(instance, 0);
|
|
706
|
+
try {
|
|
707
|
+
new Uint8Array(instance.HEAPU32.buffer).set(bytes, pointer);
|
|
708
|
+
document = instance.ccall("dsh_pdf_open", "number", [
|
|
709
|
+
"number",
|
|
710
|
+
"number",
|
|
711
|
+
"string"
|
|
712
|
+
], [
|
|
713
|
+
pointer,
|
|
714
|
+
bytes.length,
|
|
715
|
+
""
|
|
716
|
+
]);
|
|
717
|
+
} finally {
|
|
718
|
+
instance.ccall("free", null, ["number"], [pointer]);
|
|
719
|
+
}
|
|
720
|
+
if (!document) throw engineError(instance, 0);
|
|
721
|
+
} else {
|
|
722
|
+
office = instance.ccall("dsh_lok_initialize", "number", ["string", "string"], [engine.programDirectory, "file:///dsh/profile"]);
|
|
723
|
+
if (!office) throw engineError(instance, 0);
|
|
724
|
+
document = instance.ccall("dsh_lok_document_load", "number", [
|
|
725
|
+
"number",
|
|
726
|
+
"string",
|
|
727
|
+
"string"
|
|
728
|
+
], [
|
|
729
|
+
office,
|
|
730
|
+
`file://${input}`,
|
|
731
|
+
"Batch=true,EnableMacrosExecution=false"
|
|
732
|
+
]);
|
|
733
|
+
if (!document) throw engineError(instance, office);
|
|
734
|
+
}
|
|
735
|
+
const result = await use({
|
|
736
|
+
module: instance,
|
|
668
737
|
office,
|
|
669
|
-
`file://${input}`,
|
|
670
|
-
"Batch=true,EnableMacrosExecution=false"
|
|
671
|
-
]);
|
|
672
|
-
if (!document) throw engineError(instance, office);
|
|
673
|
-
if (!instance.ccall("dsh_lok_document_save_pdf", "number", [
|
|
674
|
-
"number",
|
|
675
|
-
"string",
|
|
676
|
-
"string"
|
|
677
|
-
], [
|
|
678
738
|
document,
|
|
679
|
-
`file://${output}`,
|
|
680
|
-
JSON.stringify({
|
|
681
|
-
ExportBookmarks: {
|
|
682
|
-
type: "boolean",
|
|
683
|
-
value: "true"
|
|
684
|
-
},
|
|
685
|
-
ReduceImageResolution: {
|
|
686
|
-
type: "boolean",
|
|
687
|
-
value: "true"
|
|
688
|
-
},
|
|
689
|
-
MaxImageResolution: {
|
|
690
|
-
type: "long",
|
|
691
|
-
value: String(options.maxImageResolution)
|
|
692
|
-
}
|
|
693
|
-
})
|
|
694
|
-
])) throw engineError(instance, office);
|
|
695
|
-
if (!instance.FS.analyzePath(output).exists) throw new ConversionError("invalid-output", "LibreOffice did not create its PDF output.");
|
|
696
|
-
const status = instance.FS.stat(output);
|
|
697
|
-
if (!instance.FS.isFile(status.mode)) throw new ConversionError("invalid-output", "Generated PDF is not a regular file.");
|
|
698
|
-
if (status.size > options.maxOutputBytes) throw new ConversionError("output-too-large", "Generated PDF exceeds its output byte limit.");
|
|
699
|
-
const pdf = instance.FS.readFile(output);
|
|
700
|
-
if (new TextDecoder().decode(pdf.subarray(0, 5)) !== "%PDF-") throw new ConversionError("invalid-output", "LibreOffice did not produce a PDF.");
|
|
701
|
-
return {
|
|
702
739
|
pdf,
|
|
703
|
-
missingFonts
|
|
704
|
-
|
|
740
|
+
get missingFonts() {
|
|
741
|
+
return requiredFontLoader(fontLoader).missingFonts;
|
|
742
|
+
},
|
|
743
|
+
async idle() {
|
|
744
|
+
if (pdf) return;
|
|
745
|
+
idleReady = false;
|
|
746
|
+
if (!instance.ccall("dsh_lok_document_command", "number", [
|
|
747
|
+
"number",
|
|
748
|
+
"string",
|
|
749
|
+
"string"
|
|
750
|
+
], [
|
|
751
|
+
document,
|
|
752
|
+
".uno:ReportWhenIdle",
|
|
753
|
+
"{\"idleID\":{\"type\":\"string\",\"value\":\"node-raster\"}}"
|
|
754
|
+
])) throw engineError(instance, office);
|
|
755
|
+
const deadline = performance.now() + options.timeoutMs;
|
|
756
|
+
while (!idleReady) {
|
|
757
|
+
for (let i = 0; i < 8 && !idleReady; i++) {
|
|
758
|
+
const pending = instance.ccall("dsh_lok_pump", "number", [], []);
|
|
759
|
+
if (pending < 0) throw engineError(instance, office);
|
|
760
|
+
if (!pending) break;
|
|
761
|
+
}
|
|
762
|
+
if (performance.now() > deadline) throw new ConversionError("timeout", "LibreOffice did not reach its raster idle barrier.");
|
|
763
|
+
if (!idleReady) await new Promise((resolve) => setTimeout(resolve, 0));
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
request.onFontCache?.(requiredFontLoader(fontLoader).cacheEntries);
|
|
768
|
+
return result;
|
|
705
769
|
} catch (error) {
|
|
706
770
|
fatal ||= error instanceof WebAssembly.RuntimeError;
|
|
707
771
|
failure = error;
|
|
@@ -710,7 +774,7 @@ async function convertWithWasm(request) {
|
|
|
710
774
|
const errors = [];
|
|
711
775
|
if (module && !fatal) {
|
|
712
776
|
if (document) try {
|
|
713
|
-
if (!module.ccall("dsh_lok_document_destroy", "number", ["number"], [document])) throw engineError(module, office);
|
|
777
|
+
if (!module.ccall(pdf ? "dsh_pdf_destroy" : "dsh_lok_document_destroy", "number", ["number"], [document])) throw engineError(module, office);
|
|
714
778
|
} catch (error) {
|
|
715
779
|
errors.push(error);
|
|
716
780
|
fatal ||= error instanceof WebAssembly.RuntimeError;
|
|
@@ -729,6 +793,594 @@ async function convertWithWasm(request) {
|
|
|
729
793
|
if (errors.length) throw new AggregateError(failure ? [failure, ...errors] : errors, "LibreOffice WASM cleanup failed.");
|
|
730
794
|
}
|
|
731
795
|
}
|
|
796
|
+
/** Convert bounded source bytes; return owned bytes only after engine teardown. */
|
|
797
|
+
async function convertWithWasm(request) {
|
|
798
|
+
return withWasmSession(request, (session) => {
|
|
799
|
+
const { module, office, document } = session;
|
|
800
|
+
const { options } = request;
|
|
801
|
+
const operation = request.operation ?? {
|
|
802
|
+
format: "pdf",
|
|
803
|
+
recalculate: false
|
|
804
|
+
};
|
|
805
|
+
const output = `/dsh/output.${operation.format}`;
|
|
806
|
+
const filterOptions = operation.format === "pdf" ? JSON.stringify({
|
|
807
|
+
ExportBookmarks: {
|
|
808
|
+
type: "boolean",
|
|
809
|
+
value: "true"
|
|
810
|
+
},
|
|
811
|
+
ReduceImageResolution: {
|
|
812
|
+
type: "boolean",
|
|
813
|
+
value: "true"
|
|
814
|
+
},
|
|
815
|
+
MaxImageResolution: {
|
|
816
|
+
type: "long",
|
|
817
|
+
value: String(options.maxImageResolution)
|
|
818
|
+
}
|
|
819
|
+
}) : operation.format === "txt" ? "UTF8,LF" : "";
|
|
820
|
+
if (!module.ccall("dsh_lok_document_export", "number", [
|
|
821
|
+
"number",
|
|
822
|
+
"number",
|
|
823
|
+
"string",
|
|
824
|
+
"string",
|
|
825
|
+
"string",
|
|
826
|
+
"number",
|
|
827
|
+
"string"
|
|
828
|
+
], [
|
|
829
|
+
office,
|
|
830
|
+
document,
|
|
831
|
+
`file://${output}`,
|
|
832
|
+
operation.format,
|
|
833
|
+
filterOptions,
|
|
834
|
+
Number(operation.recalculate),
|
|
835
|
+
operation.sheet ?? ""
|
|
836
|
+
])) throw engineError(module, office);
|
|
837
|
+
if (!module.FS.analyzePath(output).exists) throw new ConversionError("invalid-output", "LibreOffice did not create its output.");
|
|
838
|
+
const status = module.FS.stat(output);
|
|
839
|
+
if (!module.FS.isFile(status.mode)) throw new ConversionError("invalid-output", "Generated output is not a regular file.");
|
|
840
|
+
if (status.size > options.maxOutputBytes) throw new ConversionError("output-too-large", "Generated output exceeds its output byte limit.");
|
|
841
|
+
const result = module.FS.readFile(output);
|
|
842
|
+
validateOutput(result, operation.format);
|
|
843
|
+
return {
|
|
844
|
+
output: result,
|
|
845
|
+
missingFonts: session.missingFonts
|
|
846
|
+
};
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
/** Split a region on its output-pixel grid, bounding the plan before allocating it. */
|
|
850
|
+
function splitRasterRectangle(rectangle, scale, limits) {
|
|
851
|
+
const { x, y, width, height } = rectangle;
|
|
852
|
+
const { maxPixels, maxDimension, maxTiles } = limits;
|
|
853
|
+
if (![
|
|
854
|
+
x,
|
|
855
|
+
y,
|
|
856
|
+
width,
|
|
857
|
+
height,
|
|
858
|
+
scale
|
|
859
|
+
].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.");
|
|
860
|
+
const pixelWidth = Math.ceil(width * scale - 1e-9), pixelHeight = Math.ceil(height * scale - 1e-9);
|
|
861
|
+
if (![pixelWidth, pixelHeight].every((value) => Number.isSafeInteger(value) && value > 0)) throw new RangeError("Raster dimensions exceed the coordinate range.");
|
|
862
|
+
let tileWidth = Math.min(pixelWidth, maxDimension), tileHeight = Math.min(pixelHeight, maxDimension);
|
|
863
|
+
if (tileWidth * tileHeight > maxPixels) {
|
|
864
|
+
const side = Math.floor(Math.sqrt(maxPixels));
|
|
865
|
+
if (tileWidth <= side) tileHeight = Math.floor(maxPixels / tileWidth);
|
|
866
|
+
else if (tileHeight <= side) tileWidth = Math.floor(maxPixels / tileHeight);
|
|
867
|
+
else {
|
|
868
|
+
tileWidth = side;
|
|
869
|
+
tileHeight = Math.min(tileHeight, Math.floor(maxPixels / tileWidth));
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
const columns = Math.ceil(pixelWidth / tileWidth), rows = Math.ceil(pixelHeight / tileHeight);
|
|
873
|
+
if (columns * rows > maxTiles) throw new RangeError("Raster batch exceeds maxPages after worksheet splitting.");
|
|
874
|
+
const result = [];
|
|
875
|
+
for (let row = 0; row < rows; row++) for (let column = 0; column < columns; column++) {
|
|
876
|
+
const left = column * tileWidth / scale, top = row * tileHeight / scale;
|
|
877
|
+
result.push({
|
|
878
|
+
x: x + left,
|
|
879
|
+
y: y + top,
|
|
880
|
+
width: Math.min(tileWidth / scale, width - left),
|
|
881
|
+
height: Math.min(tileHeight / scale, height - top)
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
return result;
|
|
885
|
+
}
|
|
886
|
+
/** Writer's zero-area parity placeholders have no visible page. Offsets stay in twips. */
|
|
887
|
+
function writerPages(rectangles) {
|
|
888
|
+
const pages = rectangles.split(";").filter((value) => value.trim()).flatMap((rectangle) => {
|
|
889
|
+
const fields = rectangle.split(",").map((value) => Number(value.trim()));
|
|
890
|
+
const [x, y, width, height] = fields;
|
|
891
|
+
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.");
|
|
892
|
+
return width === 0 ? [] : [{
|
|
893
|
+
x,
|
|
894
|
+
y,
|
|
895
|
+
width: width / 15,
|
|
896
|
+
height: height / 15,
|
|
897
|
+
part: -1
|
|
898
|
+
}];
|
|
899
|
+
});
|
|
900
|
+
if (pages.length === 0) throw new Error("LibreOffice returned no document pages.");
|
|
901
|
+
return pages;
|
|
902
|
+
}
|
|
903
|
+
/** Validate coordinates before allocation or wasm32 integer conversion. */
|
|
904
|
+
function tileDimensions(request, pages) {
|
|
905
|
+
const page = pages[request.pageIndex];
|
|
906
|
+
if (!Number.isSafeInteger(request.pageIndex) || !page || ![
|
|
907
|
+
request.x,
|
|
908
|
+
request.y,
|
|
909
|
+
request.width,
|
|
910
|
+
request.height,
|
|
911
|
+
request.scale
|
|
912
|
+
].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.");
|
|
913
|
+
const width = Math.ceil(request.width * request.scale - 1e-9);
|
|
914
|
+
const height = Math.ceil(request.height * request.scale - 1e-9);
|
|
915
|
+
if (width <= 0 || height <= 0 || !Number.isSafeInteger(width * height) || width * height > 16777216) throw new Error("Tile exceeds the 16 megapixel allocation limit.");
|
|
916
|
+
const twips = [
|
|
917
|
+
page.x + Math.round(request.x * 15),
|
|
918
|
+
page.y + Math.round(request.y * 15),
|
|
919
|
+
Math.round(request.width * 15),
|
|
920
|
+
Math.round(request.height * 15)
|
|
921
|
+
];
|
|
922
|
+
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.");
|
|
923
|
+
return {
|
|
924
|
+
page,
|
|
925
|
+
width,
|
|
926
|
+
height
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
/** Cairo/LO channels are premultiplied; PNG and ImageData require straight RGBA. */
|
|
930
|
+
function rgbaPixels(source, tileMode) {
|
|
931
|
+
if (tileMode !== 0 && tileMode !== 1 || source.length % 4 !== 0) throw new Error("LibreOffice returned an unsupported tile pixel format.");
|
|
932
|
+
const result = new Uint8ClampedArray(source.length);
|
|
933
|
+
for (let index = 0; index < source.length; index += 4) {
|
|
934
|
+
const alpha = source[index + 3];
|
|
935
|
+
const multiplier = alpha === 0 ? 0 : 255 / alpha;
|
|
936
|
+
result[index] = source[index + (tileMode === 1 ? 2 : 0)] * multiplier;
|
|
937
|
+
result[index + 1] = source[index + 1] * multiplier;
|
|
938
|
+
result[index + 2] = source[index + (tileMode === 1 ? 0 : 2)] * multiplier;
|
|
939
|
+
result[index + 3] = alpha;
|
|
940
|
+
}
|
|
941
|
+
return result;
|
|
942
|
+
}
|
|
943
|
+
//#endregion
|
|
944
|
+
//#region lib/types/engine-rendering.js
|
|
945
|
+
/** Shared bounded raster allocations for browser and Node engine owners. */
|
|
946
|
+
function numericCall(module, name, args) {
|
|
947
|
+
return module.ccall(name, "number", args.map(() => "number"), args);
|
|
948
|
+
}
|
|
949
|
+
/** Copy/free one engine-owned UTF-8 return value. */
|
|
950
|
+
function engineString(module, name, types, args, failure) {
|
|
951
|
+
const pointer = module.ccall(name, "number", types, args);
|
|
952
|
+
if (!pointer) throw failure();
|
|
953
|
+
try {
|
|
954
|
+
return module.UTF8ToString(pointer);
|
|
955
|
+
} finally {
|
|
956
|
+
numericCall(module, "free", [pointer]);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
/** Paint into a temporary allocation; copy pixels before free or another engine call. */
|
|
960
|
+
function renderRegion(module, document, request, pages, failure, pdf = false) {
|
|
961
|
+
const call = (name, args) => numericCall(module, name, args);
|
|
962
|
+
const { page, width, height } = tileDimensions(request, pages);
|
|
963
|
+
const size = width * height * 4;
|
|
964
|
+
const pointer = call("malloc", [size]);
|
|
965
|
+
if (!pointer) throw failure();
|
|
966
|
+
try {
|
|
967
|
+
new Uint8Array(module.HEAPU32.buffer, pointer, size).fill(0);
|
|
968
|
+
const position = [
|
|
969
|
+
page.x + Math.round(request.x * 15),
|
|
970
|
+
page.y + Math.round(request.y * 15),
|
|
971
|
+
Math.max(1, Math.round(request.width * 15)),
|
|
972
|
+
Math.max(1, Math.round(request.height * 15))
|
|
973
|
+
];
|
|
974
|
+
if (!call(pdf ? "dsh_pdf_paint" : "dsh_lok_document_paint", [
|
|
975
|
+
document,
|
|
976
|
+
pointer,
|
|
977
|
+
page.part,
|
|
978
|
+
width,
|
|
979
|
+
height,
|
|
980
|
+
...position
|
|
981
|
+
])) throw failure();
|
|
982
|
+
const source = new Uint8Array(module.HEAPU32.buffer, pointer, size);
|
|
983
|
+
return {
|
|
984
|
+
width,
|
|
985
|
+
height,
|
|
986
|
+
rgba: pdf ? new Uint8ClampedArray(source) : rgbaPixels(source, call("dsh_lok_document_tile_mode", [document]))
|
|
987
|
+
};
|
|
988
|
+
} finally {
|
|
989
|
+
call("free", [pointer]);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
/** PDF page dimensions use the same twips ABI, with an immutable PDF page index as part. */
|
|
993
|
+
function pdfPages(module, pdf, failure) {
|
|
994
|
+
const count = numericCall(module, "dsh_pdf_page_count", [pdf]);
|
|
995
|
+
if (!Number.isSafeInteger(count) || count < 1 || count > 1e5) throw failure();
|
|
996
|
+
const pointer = numericCall(module, "malloc", [8]);
|
|
997
|
+
if (!pointer) throw failure();
|
|
998
|
+
try {
|
|
999
|
+
return Array.from({ length: count }, (_, part) => {
|
|
1000
|
+
if (!numericCall(module, "dsh_pdf_page_size", [
|
|
1001
|
+
pdf,
|
|
1002
|
+
part,
|
|
1003
|
+
pointer,
|
|
1004
|
+
pointer + 4
|
|
1005
|
+
])) throw failure();
|
|
1006
|
+
const width = module.HEAPU32[pointer / 4];
|
|
1007
|
+
const height = module.HEAPU32[pointer / 4 + 1];
|
|
1008
|
+
if (width < 1 || height < 1 || width > 2147483647 || height > 2147483647) throw failure();
|
|
1009
|
+
return {
|
|
1010
|
+
part,
|
|
1011
|
+
x: 0,
|
|
1012
|
+
y: 0,
|
|
1013
|
+
width: width / 15,
|
|
1014
|
+
height: height / 15
|
|
1015
|
+
};
|
|
1016
|
+
});
|
|
1017
|
+
} finally {
|
|
1018
|
+
numericCall(module, "free", [pointer]);
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
//#endregion
|
|
1022
|
+
//#region lib/types/sheet-geometry.js
|
|
1023
|
+
const MAX_COLUMN = 16383;
|
|
1024
|
+
const MAX_ROW = 1048575;
|
|
1025
|
+
function column(index) {
|
|
1026
|
+
let name = "";
|
|
1027
|
+
for (let value = index + 1; value > 0; value = Math.floor((value - 1) / 26)) name = String.fromCharCode(65 + (value - 1) % 26) + name;
|
|
1028
|
+
return name;
|
|
1029
|
+
}
|
|
1030
|
+
function rangeName(range) {
|
|
1031
|
+
return `${column(range.firstColumn)}${range.firstRow + 1}:${column(range.lastColumn)}${range.lastRow + 1}`;
|
|
1032
|
+
}
|
|
1033
|
+
function parseCellRange(value) {
|
|
1034
|
+
const match = /^\$?([A-Z]{1,3})\$?([1-9]\d{0,6})(?::\$?([A-Z]{1,3})\$?([1-9]\d{0,6}))?$/i.exec(value);
|
|
1035
|
+
if (!match) throw new TypeError("range must be an A1 cell or rectangle without a sheet prefix.");
|
|
1036
|
+
const col = (name) => [...name.toUpperCase()].reduce((sum, c) => sum * 26 + c.charCodeAt(0) - 64, 0) - 1;
|
|
1037
|
+
const firstColumn = col(match[1]);
|
|
1038
|
+
const firstRow = Number(match[2]) - 1;
|
|
1039
|
+
const lastColumn = col(match[3] ?? match[1]);
|
|
1040
|
+
const lastRow = Number(match[4] ?? match[2]) - 1;
|
|
1041
|
+
if (lastColumn < firstColumn || lastRow < firstRow || lastColumn > MAX_COLUMN || lastRow > MAX_ROW) throw new TypeError("range exceeds Calc worksheet bounds or has reversed endpoints.");
|
|
1042
|
+
return {
|
|
1043
|
+
firstColumn,
|
|
1044
|
+
firstRow,
|
|
1045
|
+
lastColumn,
|
|
1046
|
+
lastRow
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
function sheetPartInfo(value) {
|
|
1050
|
+
const info = JSON.parse(value);
|
|
1051
|
+
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.");
|
|
1052
|
+
return info;
|
|
1053
|
+
}
|
|
1054
|
+
/** Formatting-only cells and standalone drawings do not enlarge LibreOffice's data area. */
|
|
1055
|
+
function dataArea(info) {
|
|
1056
|
+
return {
|
|
1057
|
+
firstColumn: 0,
|
|
1058
|
+
firstRow: 0,
|
|
1059
|
+
lastColumn: info.lastcolumn,
|
|
1060
|
+
lastRow: info.lastrow
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
function spans(encoded, flags, maximum) {
|
|
1064
|
+
if (typeof encoded !== "string" || encoded.length > 33554432) throw new Error("Invalid worksheet geometry span encoding.");
|
|
1065
|
+
const tokens = encoded.trim().split(/\s+/);
|
|
1066
|
+
let previous = -1;
|
|
1067
|
+
let flag = 0;
|
|
1068
|
+
const result = tokens.map((token, i) => {
|
|
1069
|
+
const fields = token.split(":");
|
|
1070
|
+
let value;
|
|
1071
|
+
let end;
|
|
1072
|
+
if (flags && i > 0) {
|
|
1073
|
+
value = flag = 1 - flag;
|
|
1074
|
+
end = Number(fields[0]);
|
|
1075
|
+
if (fields.length !== 1) throw new Error("Invalid worksheet flag span.");
|
|
1076
|
+
} else {
|
|
1077
|
+
value = Number(fields[0]);
|
|
1078
|
+
end = Number(fields[1]);
|
|
1079
|
+
flag = value;
|
|
1080
|
+
if (fields.length !== 2) throw new Error("Invalid worksheet size span.");
|
|
1081
|
+
}
|
|
1082
|
+
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.");
|
|
1083
|
+
previous = end;
|
|
1084
|
+
return {
|
|
1085
|
+
end,
|
|
1086
|
+
value
|
|
1087
|
+
};
|
|
1088
|
+
});
|
|
1089
|
+
if (previous !== maximum) throw new Error("Worksheet geometry does not cover the complete dimension.");
|
|
1090
|
+
return result;
|
|
1091
|
+
}
|
|
1092
|
+
function dimension(data, first, last, maximum, scale) {
|
|
1093
|
+
const sizes = spans(data?.sizes, false, maximum);
|
|
1094
|
+
const hidden = spans(data?.hidden, true, maximum);
|
|
1095
|
+
const filtered = spans(data?.filtered, true, maximum);
|
|
1096
|
+
let position = 0, start = 0, index = 0, si = 0, hi = 0, fi = 0;
|
|
1097
|
+
while (index <= last) {
|
|
1098
|
+
const size = sizes[si], hide = hidden[hi], filter = filtered[fi];
|
|
1099
|
+
const end = Math.min(size.end, hide.end, filter.end, last, index < first ? first - 1 : last);
|
|
1100
|
+
const pixels = hide.value || filter.value || size.value === 0 ? 0 : Math.max(1, Math.floor(size.value * scale / 15));
|
|
1101
|
+
if (index === first) start = position;
|
|
1102
|
+
position += (end - index + 1) * pixels;
|
|
1103
|
+
index = end + 1;
|
|
1104
|
+
if (index > size.end) si++;
|
|
1105
|
+
if (index > hide.end) hi++;
|
|
1106
|
+
if (index > filter.end) fi++;
|
|
1107
|
+
}
|
|
1108
|
+
return [start / scale, (position - start) / scale];
|
|
1109
|
+
}
|
|
1110
|
+
/** Logical columns advance from A; LOK itself mirrors RTL sheet painting. No manual x inversion. */
|
|
1111
|
+
function sheetRangeRectangle(geometry, range, scale) {
|
|
1112
|
+
if (!Number.isFinite(scale) || scale <= 0 || scale > 16) throw new TypeError("Invalid worksheet raster scale.");
|
|
1113
|
+
const [x, width] = dimension(geometry.columns, range.firstColumn, range.lastColumn, MAX_COLUMN, scale);
|
|
1114
|
+
const [y, height] = dimension(geometry.rows, range.firstRow, range.lastRow, MAX_ROW, scale);
|
|
1115
|
+
if (width <= 0 || height <= 0) throw new Error("The selected worksheet range is entirely hidden or filtered.");
|
|
1116
|
+
if ([
|
|
1117
|
+
x,
|
|
1118
|
+
y,
|
|
1119
|
+
width,
|
|
1120
|
+
height,
|
|
1121
|
+
x + width,
|
|
1122
|
+
y + height
|
|
1123
|
+
].some((value) => !Number.isFinite(value) || value * 15 > 2147483647)) throw new Error("The selected worksheet range exceeds the supported coordinate range.");
|
|
1124
|
+
return {
|
|
1125
|
+
x,
|
|
1126
|
+
y,
|
|
1127
|
+
width,
|
|
1128
|
+
height
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
//#endregion
|
|
1132
|
+
//#region lib/types/image-operations.js
|
|
1133
|
+
function selectedPages(pages, count, limit) {
|
|
1134
|
+
if (!Number.isSafeInteger(count) || count < 1) throw new ConversionError("invalid-document", "The document contains no renderable pages.");
|
|
1135
|
+
const result = pages === void 0 || pages === "all" ? Array.from({ length: Math.min(count, limit + 1) }, (_, i) => i + 1) : [...pages];
|
|
1136
|
+
if (result.length > limit) throw new ConversionError("output-too-large", "Selected page count exceeds maxPages; select pages or raise the limit.");
|
|
1137
|
+
if (result.some((page) => page > count)) throw new TypeError(`Selected page lies outside the ${count}-page document.`);
|
|
1138
|
+
return result;
|
|
1139
|
+
}
|
|
1140
|
+
//#endregion
|
|
1141
|
+
//#region lib/types/png.js
|
|
1142
|
+
/** Portable PNG encoding over straight RGBA; browser and Node need no native image dependency. */
|
|
1143
|
+
const crcTable = Uint32Array.from({ length: 256 }, (_, value) => {
|
|
1144
|
+
for (let bit = 0; bit < 8; bit++) value = value & 1 ? 3988292384 ^ value >>> 1 : value >>> 1;
|
|
1145
|
+
return value >>> 0;
|
|
1146
|
+
});
|
|
1147
|
+
function chunk(type, bytes) {
|
|
1148
|
+
const output = new Uint8Array(bytes.length + 12);
|
|
1149
|
+
const view = new DataView(output.buffer);
|
|
1150
|
+
view.setUint32(0, bytes.length);
|
|
1151
|
+
output.set(new TextEncoder().encode(type), 4);
|
|
1152
|
+
output.set(bytes, 8);
|
|
1153
|
+
let crc = 4294967295;
|
|
1154
|
+
for (let i = 4; i < output.length - 4; i++) crc = crcTable[(crc ^ output[i]) & 255] ^ crc >>> 8;
|
|
1155
|
+
view.setUint32(output.length - 4, (crc ^ 4294967295) >>> 0);
|
|
1156
|
+
return output;
|
|
1157
|
+
}
|
|
1158
|
+
function encodePng(width, height, rgba) {
|
|
1159
|
+
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.");
|
|
1160
|
+
const header = /* @__PURE__ */ new Uint8Array(13);
|
|
1161
|
+
const view = new DataView(header.buffer);
|
|
1162
|
+
view.setUint32(0, width);
|
|
1163
|
+
view.setUint32(4, height);
|
|
1164
|
+
header[8] = 8;
|
|
1165
|
+
header[9] = 6;
|
|
1166
|
+
const scanlines = new Uint8Array(height * (width * 4 + 1));
|
|
1167
|
+
for (let y = 0; y < height; y++) {
|
|
1168
|
+
const source = y * width * 4;
|
|
1169
|
+
const target = y * (width * 4 + 1);
|
|
1170
|
+
scanlines[target] = 1;
|
|
1171
|
+
for (let x = 0; x < width * 4; x++) scanlines[target + 1 + x] = rgba[source + x] - (x < 4 ? 0 : rgba[source + x - 4]);
|
|
1172
|
+
}
|
|
1173
|
+
const chunks = [
|
|
1174
|
+
new Uint8Array([
|
|
1175
|
+
137,
|
|
1176
|
+
80,
|
|
1177
|
+
78,
|
|
1178
|
+
71,
|
|
1179
|
+
13,
|
|
1180
|
+
10,
|
|
1181
|
+
26,
|
|
1182
|
+
10
|
|
1183
|
+
]),
|
|
1184
|
+
chunk("IHDR", header),
|
|
1185
|
+
chunk("IDAT", zlibSync(scanlines, { level: 6 })),
|
|
1186
|
+
chunk("IEND", /* @__PURE__ */ new Uint8Array())
|
|
1187
|
+
];
|
|
1188
|
+
const result = new Uint8Array(chunks.reduce((sum, value) => sum + value.length, 0));
|
|
1189
|
+
let offset = 0;
|
|
1190
|
+
for (const value of chunks) {
|
|
1191
|
+
result.set(value, offset);
|
|
1192
|
+
offset += value.length;
|
|
1193
|
+
}
|
|
1194
|
+
return result;
|
|
1195
|
+
}
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region lib/types/image-renderer.js
|
|
1198
|
+
/** One saved-file model and one bounded direct PNG batch; no Office-to-PDF intermediate. */
|
|
1199
|
+
async function regions(session, request) {
|
|
1200
|
+
const { module, document, office, pdf } = session;
|
|
1201
|
+
const call = (name, args) => numericCall(module, name, args);
|
|
1202
|
+
const failure = () => engineError(module, office);
|
|
1203
|
+
const text = (name, args) => engineString(module, name, args.map(() => "number"), args, failure);
|
|
1204
|
+
const values = (command) => engineString(module, "dsh_lok_document_command_values", ["number", "string"], [document, command], failure);
|
|
1205
|
+
const select = (pages) => ({
|
|
1206
|
+
count: pages.length,
|
|
1207
|
+
regions: selectedPages(request.pages, pages.length, request.maxPages).map((number) => {
|
|
1208
|
+
const page = pages[number - 1];
|
|
1209
|
+
return {
|
|
1210
|
+
page,
|
|
1211
|
+
number,
|
|
1212
|
+
rectangle: {
|
|
1213
|
+
x: 0,
|
|
1214
|
+
y: 0,
|
|
1215
|
+
width: page.width,
|
|
1216
|
+
height: page.height
|
|
1217
|
+
}
|
|
1218
|
+
};
|
|
1219
|
+
})
|
|
1220
|
+
});
|
|
1221
|
+
if (pdf) return select(pdfPages(module, document, failure));
|
|
1222
|
+
if (!call("dsh_lok_document_initialize_rendering", [document]) || !call("dsh_lok_document_listen", [document])) throw failure();
|
|
1223
|
+
await session.idle();
|
|
1224
|
+
const type = call("dsh_lok_document_type", [document]);
|
|
1225
|
+
if (type !== ([
|
|
1226
|
+
"xls",
|
|
1227
|
+
"xlsx",
|
|
1228
|
+
"ods"
|
|
1229
|
+
].includes(request.extension) ? 1 : [
|
|
1230
|
+
"ppt",
|
|
1231
|
+
"pptx",
|
|
1232
|
+
"odp"
|
|
1233
|
+
].includes(request.extension) ? 2 : 0)) throw new ConversionError("invalid-document", "LibreOffice imported the input as an unexpected document type.");
|
|
1234
|
+
if (type === 0) return select(writerPages(text("dsh_lok_document_page_rectangles", [document])));
|
|
1235
|
+
const parts = call("dsh_lok_document_parts", [document]);
|
|
1236
|
+
if (!Number.isSafeInteger(parts) || parts < 1 || parts > 1e5) throw new ConversionError("invalid-document", "Invalid document part count.");
|
|
1237
|
+
if (type === 2) {
|
|
1238
|
+
const sizes = JSON.parse(values(".uno:AllPageSize"));
|
|
1239
|
+
if (!Array.isArray(sizes.parts) || sizes.parts.length !== parts) throw new ConversionError("invalid-document", "Impress returned inconsistent slide dimensions.");
|
|
1240
|
+
return select(sizes.parts.map(({ width, height }, part) => {
|
|
1241
|
+
if (!Number.isSafeInteger(width) || !Number.isSafeInteger(height) || width < 1 || height < 1 || width > 2147483647 || height > 2147483647) throw new ConversionError("invalid-document", "Impress returned invalid slide dimensions.");
|
|
1242
|
+
return {
|
|
1243
|
+
part,
|
|
1244
|
+
x: 0,
|
|
1245
|
+
y: 0,
|
|
1246
|
+
width: width / 15,
|
|
1247
|
+
height: height / 15
|
|
1248
|
+
};
|
|
1249
|
+
}));
|
|
1250
|
+
}
|
|
1251
|
+
const sheets = Array.from({ length: parts }, (_, part) => ({
|
|
1252
|
+
part,
|
|
1253
|
+
info: sheetPartInfo(text("dsh_lok_document_part_info", [document, part]))
|
|
1254
|
+
}));
|
|
1255
|
+
const count = sheets.filter(({ info }) => info.visible).length;
|
|
1256
|
+
const selected = request.sheet === void 0 ? sheets.filter(({ info }) => info.visible) : sheets.filter(({ info }) => info.name === request.sheet);
|
|
1257
|
+
if (!selected.length) throw new ConversionError("invalid-document", "The exact worksheet name does not exist or the workbook has no visible sheets.");
|
|
1258
|
+
if (selected.length > request.maxPages) throw new ConversionError("output-too-large", "Selected worksheet count exceeds maxPages; select a sheet or raise the limit.");
|
|
1259
|
+
const result = [];
|
|
1260
|
+
const scale = request.dpi / 96;
|
|
1261
|
+
for (const { part, info } of selected) {
|
|
1262
|
+
if (!call("dsh_lok_document_part", [document, part])) throw failure();
|
|
1263
|
+
await session.idle();
|
|
1264
|
+
const range = request.range === void 0 ? dataArea(info) : parseCellRange(request.range);
|
|
1265
|
+
const rectangle = sheetRangeRectangle(JSON.parse(values(".uno:SheetGeometryData")), range, scale);
|
|
1266
|
+
const page = {
|
|
1267
|
+
x: 0,
|
|
1268
|
+
y: 0,
|
|
1269
|
+
width: rectangle.x + rectangle.width,
|
|
1270
|
+
height: rectangle.y + rectangle.height,
|
|
1271
|
+
part
|
|
1272
|
+
};
|
|
1273
|
+
result.push({
|
|
1274
|
+
page,
|
|
1275
|
+
rectangle,
|
|
1276
|
+
sheet: info.name,
|
|
1277
|
+
range: rangeName(range),
|
|
1278
|
+
rtl: Boolean(info.rtllayout)
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
return {
|
|
1282
|
+
count,
|
|
1283
|
+
regions: result
|
|
1284
|
+
};
|
|
1285
|
+
}
|
|
1286
|
+
async function renderImagesWithWasm(request) {
|
|
1287
|
+
return withWasmSession(request, async (session) => {
|
|
1288
|
+
const { operation, options } = request;
|
|
1289
|
+
const { count, regions: sourceRegions } = await regions(session, operation);
|
|
1290
|
+
const scale = operation.dpi / 96;
|
|
1291
|
+
const selected = [];
|
|
1292
|
+
for (const region of sourceRegions) {
|
|
1293
|
+
if (region.sheet === void 0) {
|
|
1294
|
+
selected.push(region);
|
|
1295
|
+
continue;
|
|
1296
|
+
}
|
|
1297
|
+
let rectangles;
|
|
1298
|
+
try {
|
|
1299
|
+
rectangles = splitRasterRectangle(region.rectangle, scale, {
|
|
1300
|
+
maxPixels: operation.maxPixels,
|
|
1301
|
+
maxDimension: operation.maxDimension,
|
|
1302
|
+
maxTiles: operation.maxPages - selected.length
|
|
1303
|
+
});
|
|
1304
|
+
} catch (cause) {
|
|
1305
|
+
throw new ConversionError("output-too-large", String(cause), { cause });
|
|
1306
|
+
}
|
|
1307
|
+
selected.push(...rectangles.map((rectangle) => ({
|
|
1308
|
+
...region,
|
|
1309
|
+
rectangle
|
|
1310
|
+
})));
|
|
1311
|
+
}
|
|
1312
|
+
for (const { page, rectangle } of selected) {
|
|
1313
|
+
const pixelWidth = Math.ceil(rectangle.width * scale - 1e-9), pixelHeight = Math.ceil(rectangle.height * scale - 1e-9);
|
|
1314
|
+
if (pixelWidth > operation.maxDimension || pixelHeight > operation.maxDimension || pixelWidth * pixelHeight > operation.maxPixels) throw new ConversionError("output-too-large", "Selected page exceeds maxPixels or maxDimension; reduce DPI or raise the image limits.");
|
|
1315
|
+
tileDimensions({
|
|
1316
|
+
pageIndex: 0,
|
|
1317
|
+
...rectangle,
|
|
1318
|
+
scale
|
|
1319
|
+
}, [page]);
|
|
1320
|
+
}
|
|
1321
|
+
const images = [];
|
|
1322
|
+
let total = 0;
|
|
1323
|
+
for (const region of selected) {
|
|
1324
|
+
if (region.sheet !== void 0) {
|
|
1325
|
+
const call = (name, args) => numericCall(session.module, name, args);
|
|
1326
|
+
if (!call("dsh_lok_document_part", [session.document, region.page.part])) throw engineError(session.module, session.office);
|
|
1327
|
+
const { x, y, width, height } = region.rectangle;
|
|
1328
|
+
const command = `.uno:ViewRowColumnHeaders?x=${Math.round(x * 15)}&y=${Math.round(y * 15)}&width=${Math.round(width * 15)}&height=${Math.round(height * 15)}`;
|
|
1329
|
+
if (!call("dsh_lok_document_viewport", [
|
|
1330
|
+
session.document,
|
|
1331
|
+
Math.round(scale * 1440),
|
|
1332
|
+
21600,
|
|
1333
|
+
Math.round(x * 15),
|
|
1334
|
+
Math.round(y * 15),
|
|
1335
|
+
Math.round(width * 15),
|
|
1336
|
+
Math.round(height * 15)
|
|
1337
|
+
])) throw engineError(session.module, session.office);
|
|
1338
|
+
engineString(session.module, "dsh_lok_document_command_values", ["number", "string"], [session.document, command], () => engineError(session.module, session.office));
|
|
1339
|
+
await session.idle();
|
|
1340
|
+
}
|
|
1341
|
+
const tile = renderRegion(session.module, session.document, {
|
|
1342
|
+
pageIndex: 0,
|
|
1343
|
+
...region.rectangle,
|
|
1344
|
+
scale
|
|
1345
|
+
}, [region.page], () => engineError(session.module, session.office), session.pdf);
|
|
1346
|
+
const png = encodePng(tile.width, tile.height, tile.rgba);
|
|
1347
|
+
total += png.length;
|
|
1348
|
+
if (total > options.maxOutputBytes) throw new ConversionError("output-too-large", "PNG batch exceeds maxOutputBytes.");
|
|
1349
|
+
const index = images.length + 1;
|
|
1350
|
+
const path = join(operation.outputDir, `page-${String(index).padStart(4, "0")}.png`);
|
|
1351
|
+
writeFileSync(path, png, {
|
|
1352
|
+
flag: "wx",
|
|
1353
|
+
mode: 384
|
|
1354
|
+
});
|
|
1355
|
+
images.push({
|
|
1356
|
+
index,
|
|
1357
|
+
...region.number === void 0 ? {} : { page: region.number },
|
|
1358
|
+
...region.sheet === void 0 ? {} : {
|
|
1359
|
+
sheet: region.sheet,
|
|
1360
|
+
range: region.range,
|
|
1361
|
+
rtl: region.rtl
|
|
1362
|
+
},
|
|
1363
|
+
path,
|
|
1364
|
+
width: tile.width,
|
|
1365
|
+
height: tile.height,
|
|
1366
|
+
rectangle: region.rectangle,
|
|
1367
|
+
byteLength: png.length
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1370
|
+
return {
|
|
1371
|
+
schemaVersion: 1,
|
|
1372
|
+
backend: "wasm",
|
|
1373
|
+
rasterEngine: session.pdf ? "pdfium" : "libreoffice",
|
|
1374
|
+
source: "saved",
|
|
1375
|
+
inputPath: operation.inputPath,
|
|
1376
|
+
sourceSha256: createHash("sha256").update(request.bytes).digest("hex"),
|
|
1377
|
+
dpi: operation.dpi,
|
|
1378
|
+
pageCount: count,
|
|
1379
|
+
images,
|
|
1380
|
+
missingFonts: session.missingFonts
|
|
1381
|
+
};
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
732
1384
|
//#endregion
|
|
733
1385
|
//#region lib/types/worker.js
|
|
734
1386
|
/** Cancellable CPU work and WASM conversion run outside the Node event loop. */
|
|
@@ -743,32 +1395,59 @@ function requireParentPort(port) {
|
|
|
743
1395
|
}
|
|
744
1396
|
const port = requireParentPort(parentPort);
|
|
745
1397
|
try {
|
|
746
|
-
const { inputPath, extension, options, engine, scratch, fontFaces } = workerData;
|
|
1398
|
+
const { inputPath, extension, operation, options, engine, scratch, fontFaces, fontCache } = workerData;
|
|
747
1399
|
const bytes = readFileSync(inputPath);
|
|
748
|
-
const
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
});
|
|
754
|
-
if (!fontFaces) port.postMessage({
|
|
755
|
-
kind: "fonts",
|
|
756
|
-
faces
|
|
757
|
-
});
|
|
1400
|
+
const images = "kind" in operation && operation.kind === "images";
|
|
1401
|
+
if (images && extension === "pdf" && new TextDecoder().decode(bytes.subarray(0, 5)) !== "%PDF-") throw new ConversionError("invalid-document", "Input does not contain a PDF header.");
|
|
1402
|
+
const document = images && extension === "pdf" ? {
|
|
1403
|
+
families: /* @__PURE__ */ new Map(),
|
|
1404
|
+
codePoints: []
|
|
1405
|
+
} : inspectDocument(bytes, extension, options);
|
|
758
1406
|
if (engine.backend === "wasm") {
|
|
759
|
-
if (
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
1407
|
+
if (fontFaces.length === 0 && extension !== "pdf") throw new ConversionError("unavailable", "No usable fonts were found. Install fonts or configure fontDirectories before converting documents.");
|
|
1408
|
+
if (images) {
|
|
1409
|
+
let cacheEntries = [];
|
|
1410
|
+
const result = await renderImagesWithWasm({
|
|
1411
|
+
engine,
|
|
1412
|
+
bytes,
|
|
1413
|
+
extension,
|
|
1414
|
+
operation,
|
|
1415
|
+
options,
|
|
1416
|
+
document,
|
|
1417
|
+
faces: fontFaces,
|
|
1418
|
+
...fontCache === void 0 ? {} : { fontCache },
|
|
1419
|
+
onFontCache: (entries) => {
|
|
1420
|
+
cacheEntries = entries;
|
|
1421
|
+
}
|
|
1422
|
+
});
|
|
1423
|
+
port.postMessage({
|
|
1424
|
+
kind: "font-cache",
|
|
1425
|
+
entries: cacheEntries
|
|
1426
|
+
});
|
|
1427
|
+
port.postMessage({
|
|
1428
|
+
ok: true,
|
|
1429
|
+
images: result
|
|
1430
|
+
});
|
|
1431
|
+
} else {
|
|
1432
|
+
const result = await convertWithWasm({
|
|
1433
|
+
engine,
|
|
1434
|
+
bytes,
|
|
1435
|
+
extension,
|
|
1436
|
+
operation,
|
|
1437
|
+
options,
|
|
1438
|
+
document,
|
|
1439
|
+
faces: fontFaces,
|
|
1440
|
+
...fontCache === void 0 ? {} : { fontCache },
|
|
1441
|
+
onFontCache: (entries) => port.postMessage({
|
|
1442
|
+
kind: "font-cache",
|
|
1443
|
+
entries
|
|
1444
|
+
})
|
|
1445
|
+
});
|
|
1446
|
+
port.postMessage({
|
|
1447
|
+
ok: true,
|
|
1448
|
+
...result
|
|
1449
|
+
}, [result.output.buffer]);
|
|
1450
|
+
}
|
|
772
1451
|
} else {
|
|
773
1452
|
const directory = join(scratch, "fonts");
|
|
774
1453
|
mkdirSync(directory, { mode: 448 });
|
|
@@ -779,8 +1458,12 @@ try {
|
|
|
779
1458
|
mode: 384
|
|
780
1459
|
});
|
|
781
1460
|
return path;
|
|
782
|
-
},
|
|
1461
|
+
}, fontFaces, fontCache);
|
|
783
1462
|
preloadFonts(fonts, options, document, true);
|
|
1463
|
+
port.postMessage({
|
|
1464
|
+
kind: "font-cache",
|
|
1465
|
+
entries: fonts.cacheEntries
|
|
1466
|
+
});
|
|
784
1467
|
port.postMessage({
|
|
785
1468
|
ok: true,
|
|
786
1469
|
fonts: fonts.files,
|