@songtonyli/dsh-cli 0.1.39 → 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/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +40 -0
- 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 +37 -86
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -30
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +114 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +3 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +3 -9
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +4 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +96 -5
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +21 -15
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +45 -5
- package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -5
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +123 -5
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +8 -8
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +7 -25
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +25 -23
- package/node_modules/@deepseek-ai/dsh-tool-ralph/README.i18n.yaml +99 -5
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +141 -5
- package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.i18n.yaml +78 -5
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -20
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +120 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +105 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +6 -11
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +6 -14
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-todo/README.i18n.yaml +90 -5
- package/node_modules/@deepseek-ai/dsh-tool-todo/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/index.js +5 -15
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +150 -5
- package/node_modules/@deepseek-ai/dsh-tool-web/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +22 -21
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +102 -5
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +9 -16
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +10 -16
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +66 -5
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +102 -5
- package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +16 -2
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +13 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +5 -0
- package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +84 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +8 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +8 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +413 -21
- 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
|
@@ -8,4122 +8,8 @@ window.__ModuleLoader__.load({
|
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_dom = require("react-dom");
|
|
10
10
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
11
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
12
|
-
var _a$1;
|
|
13
|
-
function $constructor(name, initializer, params) {
|
|
14
|
-
function init(inst, def) {
|
|
15
|
-
if (!inst._zod) Object.defineProperty(inst, "_zod", {
|
|
16
|
-
value: {
|
|
17
|
-
def,
|
|
18
|
-
constr: _,
|
|
19
|
-
traits: /* @__PURE__ */ new Set()
|
|
20
|
-
},
|
|
21
|
-
enumerable: false
|
|
22
|
-
});
|
|
23
|
-
if (inst._zod.traits.has(name)) return;
|
|
24
|
-
inst._zod.traits.add(name);
|
|
25
|
-
initializer(inst, def);
|
|
26
|
-
const proto = _.prototype;
|
|
27
|
-
const keys = Object.keys(proto);
|
|
28
|
-
for (let i = 0; i < keys.length; i++) {
|
|
29
|
-
const k = keys[i];
|
|
30
|
-
if (!(k in inst)) inst[k] = proto[k].bind(inst);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const Parent = params?.Parent ?? Object;
|
|
34
|
-
class Definition extends Parent {}
|
|
35
|
-
Object.defineProperty(Definition, "name", { value: name });
|
|
36
|
-
function _(def) {
|
|
37
|
-
var _a;
|
|
38
|
-
const inst = params?.Parent ? new Definition() : this;
|
|
39
|
-
init(inst, def);
|
|
40
|
-
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
41
|
-
for (const fn of inst._zod.deferred) fn();
|
|
42
|
-
return inst;
|
|
43
|
-
}
|
|
44
|
-
Object.defineProperty(_, "init", { value: init });
|
|
45
|
-
Object.defineProperty(_, Symbol.hasInstance, { value: (inst) => {
|
|
46
|
-
if (params?.Parent && inst instanceof params.Parent) return true;
|
|
47
|
-
return inst?._zod?.traits?.has(name);
|
|
48
|
-
} });
|
|
49
|
-
Object.defineProperty(_, "name", { value: name });
|
|
50
|
-
return _;
|
|
51
|
-
}
|
|
52
|
-
var $ZodAsyncError = class extends Error {
|
|
53
|
-
constructor() {
|
|
54
|
-
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
var $ZodEncodeError = class extends Error {
|
|
58
|
-
constructor(name) {
|
|
59
|
-
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
60
|
-
this.name = "ZodEncodeError";
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
(_a$1 = globalThis).__zod_globalConfig ?? (_a$1.__zod_globalConfig = {});
|
|
64
|
-
const globalConfig = globalThis.__zod_globalConfig;
|
|
65
|
-
function config(newConfig) {
|
|
66
|
-
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
67
|
-
return globalConfig;
|
|
68
|
-
}
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
71
|
-
function getEnumValues(entries) {
|
|
72
|
-
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
73
|
-
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
74
|
-
}
|
|
75
|
-
function jsonStringifyReplacer(_, value) {
|
|
76
|
-
if (typeof value === "bigint") return value.toString();
|
|
77
|
-
return value;
|
|
78
|
-
}
|
|
79
|
-
function cached(getter) {
|
|
80
|
-
return { get value() {
|
|
81
|
-
{
|
|
82
|
-
const value = getter();
|
|
83
|
-
Object.defineProperty(this, "value", { value });
|
|
84
|
-
return value;
|
|
85
|
-
}
|
|
86
|
-
throw new Error("cached value already set");
|
|
87
|
-
} };
|
|
88
|
-
}
|
|
89
|
-
function nullish(input) {
|
|
90
|
-
return input === null || input === void 0;
|
|
91
|
-
}
|
|
92
|
-
function cleanRegex(source) {
|
|
93
|
-
const start = source.startsWith("^") ? 1 : 0;
|
|
94
|
-
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
95
|
-
return source.slice(start, end);
|
|
96
|
-
}
|
|
97
|
-
function floatSafeRemainder(val, step) {
|
|
98
|
-
const ratio = val / step;
|
|
99
|
-
const roundedRatio = Math.round(ratio);
|
|
100
|
-
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
101
|
-
if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
|
|
102
|
-
return ratio - roundedRatio;
|
|
103
|
-
}
|
|
104
|
-
const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
|
|
105
|
-
function defineLazy(object, key, getter) {
|
|
106
|
-
let value = void 0;
|
|
107
|
-
Object.defineProperty(object, key, {
|
|
108
|
-
get() {
|
|
109
|
-
if (value === EVALUATING) return;
|
|
110
|
-
if (value === void 0) {
|
|
111
|
-
value = EVALUATING;
|
|
112
|
-
value = getter();
|
|
113
|
-
}
|
|
114
|
-
return value;
|
|
115
|
-
},
|
|
116
|
-
set(v) {
|
|
117
|
-
Object.defineProperty(object, key, { value: v });
|
|
118
|
-
},
|
|
119
|
-
configurable: true
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
function assignProp(target, prop, value) {
|
|
123
|
-
Object.defineProperty(target, prop, {
|
|
124
|
-
value,
|
|
125
|
-
writable: true,
|
|
126
|
-
enumerable: true,
|
|
127
|
-
configurable: true
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function mergeDefs(...defs) {
|
|
131
|
-
const mergedDescriptors = {};
|
|
132
|
-
for (const def of defs) Object.assign(mergedDescriptors, Object.getOwnPropertyDescriptors(def));
|
|
133
|
-
return Object.defineProperties({}, mergedDescriptors);
|
|
134
|
-
}
|
|
135
|
-
function esc(str) {
|
|
136
|
-
return JSON.stringify(str);
|
|
137
|
-
}
|
|
138
|
-
function slugify(input) {
|
|
139
|
-
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
140
|
-
}
|
|
141
|
-
const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
|
|
142
|
-
function isObject(data) {
|
|
143
|
-
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
144
|
-
}
|
|
145
|
-
const allowsEval = /* @__PURE__*/ cached(() => {
|
|
146
|
-
if (globalConfig.jitless) return false;
|
|
147
|
-
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
|
|
148
|
-
try {
|
|
149
|
-
new Function("");
|
|
150
|
-
return true;
|
|
151
|
-
} catch (_) {
|
|
152
|
-
return false;
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
function isPlainObject(o) {
|
|
156
|
-
if (isObject(o) === false) return false;
|
|
157
|
-
const ctor = o.constructor;
|
|
158
|
-
if (ctor === void 0) return true;
|
|
159
|
-
if (typeof ctor !== "function") return true;
|
|
160
|
-
const prot = ctor.prototype;
|
|
161
|
-
if (isObject(prot) === false) return false;
|
|
162
|
-
if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false;
|
|
163
|
-
return true;
|
|
164
|
-
}
|
|
165
|
-
function shallowClone(o) {
|
|
166
|
-
if (isPlainObject(o)) return { ...o };
|
|
167
|
-
if (Array.isArray(o)) return [...o];
|
|
168
|
-
if (o instanceof Map) return new Map(o);
|
|
169
|
-
if (o instanceof Set) return new Set(o);
|
|
170
|
-
return o;
|
|
171
|
-
}
|
|
172
|
-
const propertyKeyTypes = /* @__PURE__*/ new Set([
|
|
173
|
-
"string",
|
|
174
|
-
"number",
|
|
175
|
-
"symbol"
|
|
176
|
-
]);
|
|
177
|
-
function escapeRegex(str) {
|
|
178
|
-
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
179
|
-
}
|
|
180
|
-
function clone(inst, def, params) {
|
|
181
|
-
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
182
|
-
if (!def || params?.parent) cl._zod.parent = inst;
|
|
183
|
-
return cl;
|
|
184
|
-
}
|
|
185
|
-
function normalizeParams(_params) {
|
|
186
|
-
const params = _params;
|
|
187
|
-
if (!params) return {};
|
|
188
|
-
if (typeof params === "string") return { error: () => params };
|
|
189
|
-
if (params?.message !== void 0) {
|
|
190
|
-
if (params?.error !== void 0) throw new Error("Cannot specify both `message` and `error` params");
|
|
191
|
-
params.error = params.message;
|
|
192
|
-
}
|
|
193
|
-
delete params.message;
|
|
194
|
-
if (typeof params.error === "string") return {
|
|
195
|
-
...params,
|
|
196
|
-
error: () => params.error
|
|
197
|
-
};
|
|
198
|
-
return params;
|
|
199
|
-
}
|
|
200
|
-
function optionalKeys(shape) {
|
|
201
|
-
return Object.keys(shape).filter((k) => {
|
|
202
|
-
return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
const NUMBER_FORMAT_RANGES = {
|
|
206
|
-
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
207
|
-
int32: [-2147483648, 2147483647],
|
|
208
|
-
uint32: [0, 4294967295],
|
|
209
|
-
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
210
|
-
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
211
|
-
};
|
|
212
|
-
function pick(schema, mask) {
|
|
213
|
-
const currDef = schema._zod.def;
|
|
214
|
-
const checks = currDef.checks;
|
|
215
|
-
if (checks && checks.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
216
|
-
return clone(schema, mergeDefs(schema._zod.def, {
|
|
217
|
-
get shape() {
|
|
218
|
-
const newShape = {};
|
|
219
|
-
for (const key in mask) {
|
|
220
|
-
if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
|
|
221
|
-
if (!mask[key]) continue;
|
|
222
|
-
newShape[key] = currDef.shape[key];
|
|
223
|
-
}
|
|
224
|
-
assignProp(this, "shape", newShape);
|
|
225
|
-
return newShape;
|
|
226
|
-
},
|
|
227
|
-
checks: []
|
|
228
|
-
}));
|
|
229
|
-
}
|
|
230
|
-
function omit(schema, mask) {
|
|
231
|
-
const currDef = schema._zod.def;
|
|
232
|
-
const checks = currDef.checks;
|
|
233
|
-
if (checks && checks.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
234
|
-
return clone(schema, mergeDefs(schema._zod.def, {
|
|
235
|
-
get shape() {
|
|
236
|
-
const newShape = { ...schema._zod.def.shape };
|
|
237
|
-
for (const key in mask) {
|
|
238
|
-
if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
|
|
239
|
-
if (!mask[key]) continue;
|
|
240
|
-
delete newShape[key];
|
|
241
|
-
}
|
|
242
|
-
assignProp(this, "shape", newShape);
|
|
243
|
-
return newShape;
|
|
244
|
-
},
|
|
245
|
-
checks: []
|
|
246
|
-
}));
|
|
247
|
-
}
|
|
248
|
-
function extend(schema, shape) {
|
|
249
|
-
if (!isPlainObject(shape)) throw new Error("Invalid input to extend: expected a plain object");
|
|
250
|
-
const checks = schema._zod.def.checks;
|
|
251
|
-
if (checks && checks.length > 0) {
|
|
252
|
-
const existingShape = schema._zod.def.shape;
|
|
253
|
-
for (const key in shape) if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
254
|
-
}
|
|
255
|
-
return clone(schema, mergeDefs(schema._zod.def, { get shape() {
|
|
256
|
-
const _shape = {
|
|
257
|
-
...schema._zod.def.shape,
|
|
258
|
-
...shape
|
|
259
|
-
};
|
|
260
|
-
assignProp(this, "shape", _shape);
|
|
261
|
-
return _shape;
|
|
262
|
-
} }));
|
|
263
|
-
}
|
|
264
|
-
function safeExtend(schema, shape) {
|
|
265
|
-
if (!isPlainObject(shape)) throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
266
|
-
return clone(schema, mergeDefs(schema._zod.def, { get shape() {
|
|
267
|
-
const _shape = {
|
|
268
|
-
...schema._zod.def.shape,
|
|
269
|
-
...shape
|
|
270
|
-
};
|
|
271
|
-
assignProp(this, "shape", _shape);
|
|
272
|
-
return _shape;
|
|
273
|
-
} }));
|
|
274
|
-
}
|
|
275
|
-
function merge(a, b) {
|
|
276
|
-
if (a._zod.def.checks?.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
277
|
-
return clone(a, mergeDefs(a._zod.def, {
|
|
278
|
-
get shape() {
|
|
279
|
-
const _shape = {
|
|
280
|
-
...a._zod.def.shape,
|
|
281
|
-
...b._zod.def.shape
|
|
282
|
-
};
|
|
283
|
-
assignProp(this, "shape", _shape);
|
|
284
|
-
return _shape;
|
|
285
|
-
},
|
|
286
|
-
get catchall() {
|
|
287
|
-
return b._zod.def.catchall;
|
|
288
|
-
},
|
|
289
|
-
checks: b._zod.def.checks ?? []
|
|
290
|
-
}));
|
|
291
|
-
}
|
|
292
|
-
function partial(Class, schema, mask) {
|
|
293
|
-
const checks = schema._zod.def.checks;
|
|
294
|
-
if (checks && checks.length > 0) throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
295
|
-
return clone(schema, mergeDefs(schema._zod.def, {
|
|
296
|
-
get shape() {
|
|
297
|
-
const oldShape = schema._zod.def.shape;
|
|
298
|
-
const shape = { ...oldShape };
|
|
299
|
-
if (mask) for (const key in mask) {
|
|
300
|
-
if (!(key in oldShape)) throw new Error(`Unrecognized key: "${key}"`);
|
|
301
|
-
if (!mask[key]) continue;
|
|
302
|
-
shape[key] = Class ? new Class({
|
|
303
|
-
type: "optional",
|
|
304
|
-
innerType: oldShape[key]
|
|
305
|
-
}) : oldShape[key];
|
|
306
|
-
}
|
|
307
|
-
else for (const key in oldShape) shape[key] = Class ? new Class({
|
|
308
|
-
type: "optional",
|
|
309
|
-
innerType: oldShape[key]
|
|
310
|
-
}) : oldShape[key];
|
|
311
|
-
assignProp(this, "shape", shape);
|
|
312
|
-
return shape;
|
|
313
|
-
},
|
|
314
|
-
checks: []
|
|
315
|
-
}));
|
|
316
|
-
}
|
|
317
|
-
function required(Class, schema, mask) {
|
|
318
|
-
return clone(schema, mergeDefs(schema._zod.def, { get shape() {
|
|
319
|
-
const oldShape = schema._zod.def.shape;
|
|
320
|
-
const shape = { ...oldShape };
|
|
321
|
-
if (mask) for (const key in mask) {
|
|
322
|
-
if (!(key in shape)) throw new Error(`Unrecognized key: "${key}"`);
|
|
323
|
-
if (!mask[key]) continue;
|
|
324
|
-
shape[key] = new Class({
|
|
325
|
-
type: "nonoptional",
|
|
326
|
-
innerType: oldShape[key]
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
else for (const key in oldShape) shape[key] = new Class({
|
|
330
|
-
type: "nonoptional",
|
|
331
|
-
innerType: oldShape[key]
|
|
332
|
-
});
|
|
333
|
-
assignProp(this, "shape", shape);
|
|
334
|
-
return shape;
|
|
335
|
-
} }));
|
|
336
|
-
}
|
|
337
|
-
function aborted(x, startIndex = 0) {
|
|
338
|
-
if (x.aborted === true) return true;
|
|
339
|
-
for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
|
|
340
|
-
return false;
|
|
341
|
-
}
|
|
342
|
-
function explicitlyAborted(x, startIndex = 0) {
|
|
343
|
-
if (x.aborted === true) return true;
|
|
344
|
-
for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue === false) return true;
|
|
345
|
-
return false;
|
|
346
|
-
}
|
|
347
|
-
function prefixIssues(path, issues) {
|
|
348
|
-
return issues.map((iss) => {
|
|
349
|
-
var _a;
|
|
350
|
-
(_a = iss).path ?? (_a.path = []);
|
|
351
|
-
iss.path.unshift(path);
|
|
352
|
-
return iss;
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
function unwrapMessage(message) {
|
|
356
|
-
return typeof message === "string" ? message : message?.message;
|
|
357
|
-
}
|
|
358
|
-
function finalizeIssue(iss, ctx, config) {
|
|
359
|
-
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
|
|
360
|
-
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
361
|
-
rest.path ?? (rest.path = []);
|
|
362
|
-
rest.message = message;
|
|
363
|
-
if (ctx?.reportInput) rest.input = _input;
|
|
364
|
-
return rest;
|
|
365
|
-
}
|
|
366
|
-
function getLengthableOrigin(input) {
|
|
367
|
-
if (Array.isArray(input)) return "array";
|
|
368
|
-
if (typeof input === "string") return "string";
|
|
369
|
-
return "unknown";
|
|
370
|
-
}
|
|
371
|
-
function issue(...args) {
|
|
372
|
-
const [iss, input, inst] = args;
|
|
373
|
-
if (typeof iss === "string") return {
|
|
374
|
-
message: iss,
|
|
375
|
-
code: "custom",
|
|
376
|
-
input,
|
|
377
|
-
inst
|
|
378
|
-
};
|
|
379
|
-
return { ...iss };
|
|
380
|
-
}
|
|
381
|
-
//#endregion
|
|
382
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
383
|
-
const initializer$1 = (inst, def) => {
|
|
384
|
-
inst.name = "$ZodError";
|
|
385
|
-
Object.defineProperty(inst, "_zod", {
|
|
386
|
-
value: inst._zod,
|
|
387
|
-
enumerable: false
|
|
388
|
-
});
|
|
389
|
-
Object.defineProperty(inst, "issues", {
|
|
390
|
-
value: def,
|
|
391
|
-
enumerable: false
|
|
392
|
-
});
|
|
393
|
-
inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
|
|
394
|
-
Object.defineProperty(inst, "toString", {
|
|
395
|
-
value: () => inst.message,
|
|
396
|
-
enumerable: false
|
|
397
|
-
});
|
|
398
|
-
};
|
|
399
|
-
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
400
|
-
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
401
|
-
function flattenError(error, mapper = (issue) => issue.message) {
|
|
402
|
-
const fieldErrors = {};
|
|
403
|
-
const formErrors = [];
|
|
404
|
-
for (const sub of error.issues) if (sub.path.length > 0) {
|
|
405
|
-
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
406
|
-
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
407
|
-
} else formErrors.push(mapper(sub));
|
|
408
|
-
return {
|
|
409
|
-
formErrors,
|
|
410
|
-
fieldErrors
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
function formatError(error, mapper = (issue) => issue.message) {
|
|
414
|
-
const fieldErrors = { _errors: [] };
|
|
415
|
-
const processError = (error, path = []) => {
|
|
416
|
-
for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
|
|
417
|
-
else if (issue.code === "invalid_key") processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
418
|
-
else if (issue.code === "invalid_element") processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
419
|
-
else {
|
|
420
|
-
const fullpath = [...path, ...issue.path];
|
|
421
|
-
if (fullpath.length === 0) fieldErrors._errors.push(mapper(issue));
|
|
422
|
-
else {
|
|
423
|
-
let curr = fieldErrors;
|
|
424
|
-
let i = 0;
|
|
425
|
-
while (i < fullpath.length) {
|
|
426
|
-
const el = fullpath[i];
|
|
427
|
-
if (!(i === fullpath.length - 1)) curr[el] = curr[el] || { _errors: [] };
|
|
428
|
-
else {
|
|
429
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
430
|
-
curr[el]._errors.push(mapper(issue));
|
|
431
|
-
}
|
|
432
|
-
curr = curr[el];
|
|
433
|
-
i++;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
|
-
processError(error);
|
|
439
|
-
return fieldErrors;
|
|
440
|
-
}
|
|
441
|
-
//#endregion
|
|
442
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
443
|
-
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
444
|
-
const ctx = _ctx ? {
|
|
445
|
-
..._ctx,
|
|
446
|
-
async: false
|
|
447
|
-
} : { async: false };
|
|
448
|
-
const result = schema._zod.run({
|
|
449
|
-
value,
|
|
450
|
-
issues: []
|
|
451
|
-
}, ctx);
|
|
452
|
-
if (result instanceof Promise) throw new $ZodAsyncError();
|
|
453
|
-
if (result.issues.length) {
|
|
454
|
-
const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
455
|
-
captureStackTrace(e, _params?.callee);
|
|
456
|
-
throw e;
|
|
457
|
-
}
|
|
458
|
-
return result.value;
|
|
459
|
-
};
|
|
460
|
-
const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
461
|
-
const ctx = _ctx ? {
|
|
462
|
-
..._ctx,
|
|
463
|
-
async: true
|
|
464
|
-
} : { async: true };
|
|
465
|
-
let result = schema._zod.run({
|
|
466
|
-
value,
|
|
467
|
-
issues: []
|
|
468
|
-
}, ctx);
|
|
469
|
-
if (result instanceof Promise) result = await result;
|
|
470
|
-
if (result.issues.length) {
|
|
471
|
-
const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
472
|
-
captureStackTrace(e, params?.callee);
|
|
473
|
-
throw e;
|
|
474
|
-
}
|
|
475
|
-
return result.value;
|
|
476
|
-
};
|
|
477
|
-
const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
478
|
-
const ctx = _ctx ? {
|
|
479
|
-
..._ctx,
|
|
480
|
-
async: false
|
|
481
|
-
} : { async: false };
|
|
482
|
-
const result = schema._zod.run({
|
|
483
|
-
value,
|
|
484
|
-
issues: []
|
|
485
|
-
}, ctx);
|
|
486
|
-
if (result instanceof Promise) throw new $ZodAsyncError();
|
|
487
|
-
return result.issues.length ? {
|
|
488
|
-
success: false,
|
|
489
|
-
error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
490
|
-
} : {
|
|
491
|
-
success: true,
|
|
492
|
-
data: result.value
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError);
|
|
496
|
-
const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
497
|
-
const ctx = _ctx ? {
|
|
498
|
-
..._ctx,
|
|
499
|
-
async: true
|
|
500
|
-
} : { async: true };
|
|
501
|
-
let result = schema._zod.run({
|
|
502
|
-
value,
|
|
503
|
-
issues: []
|
|
504
|
-
}, ctx);
|
|
505
|
-
if (result instanceof Promise) result = await result;
|
|
506
|
-
return result.issues.length ? {
|
|
507
|
-
success: false,
|
|
508
|
-
error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
509
|
-
} : {
|
|
510
|
-
success: true,
|
|
511
|
-
data: result.value
|
|
512
|
-
};
|
|
513
|
-
};
|
|
514
|
-
const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
|
|
515
|
-
const _encode = (_Err) => (schema, value, _ctx) => {
|
|
516
|
-
const ctx = _ctx ? {
|
|
517
|
-
..._ctx,
|
|
518
|
-
direction: "backward"
|
|
519
|
-
} : { direction: "backward" };
|
|
520
|
-
return _parse(_Err)(schema, value, ctx);
|
|
521
|
-
};
|
|
522
|
-
const _decode = (_Err) => (schema, value, _ctx) => {
|
|
523
|
-
return _parse(_Err)(schema, value, _ctx);
|
|
524
|
-
};
|
|
525
|
-
const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
526
|
-
const ctx = _ctx ? {
|
|
527
|
-
..._ctx,
|
|
528
|
-
direction: "backward"
|
|
529
|
-
} : { direction: "backward" };
|
|
530
|
-
return _parseAsync(_Err)(schema, value, ctx);
|
|
531
|
-
};
|
|
532
|
-
const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
533
|
-
return _parseAsync(_Err)(schema, value, _ctx);
|
|
534
|
-
};
|
|
535
|
-
const _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
536
|
-
const ctx = _ctx ? {
|
|
537
|
-
..._ctx,
|
|
538
|
-
direction: "backward"
|
|
539
|
-
} : { direction: "backward" };
|
|
540
|
-
return _safeParse(_Err)(schema, value, ctx);
|
|
541
|
-
};
|
|
542
|
-
const _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
543
|
-
return _safeParse(_Err)(schema, value, _ctx);
|
|
544
|
-
};
|
|
545
|
-
const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
546
|
-
const ctx = _ctx ? {
|
|
547
|
-
..._ctx,
|
|
548
|
-
direction: "backward"
|
|
549
|
-
} : { direction: "backward" };
|
|
550
|
-
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
551
|
-
};
|
|
552
|
-
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
553
|
-
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
554
|
-
};
|
|
555
|
-
//#endregion
|
|
556
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
557
|
-
/**
|
|
558
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
559
|
-
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
560
|
-
* See https://github.com/paralleldrive/cuid.
|
|
561
|
-
*/
|
|
562
|
-
const cuid = /^[cC][0-9a-z]{6,}$/;
|
|
563
|
-
const cuid2 = /^[0-9a-z]+$/;
|
|
564
|
-
const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
565
|
-
const xid = /^[0-9a-vA-V]{20}$/;
|
|
566
|
-
const ksuid = /^[A-Za-z0-9]{27}$/;
|
|
567
|
-
const nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
568
|
-
/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
|
|
569
|
-
const duration$1 = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
570
|
-
/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
|
|
571
|
-
const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
|
|
572
|
-
/** Returns a regex for validating an RFC 9562/4122 UUID.
|
|
573
|
-
*
|
|
574
|
-
* @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
|
|
575
|
-
const uuid = (version) => {
|
|
576
|
-
if (!version) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
|
|
577
|
-
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
|
578
|
-
};
|
|
579
|
-
/** Practical email validation */
|
|
580
|
-
const email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
|
|
581
|
-
const _emoji$1 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
582
|
-
function emoji() {
|
|
583
|
-
return new RegExp(_emoji$1, "u");
|
|
584
|
-
}
|
|
585
|
-
const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
586
|
-
const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
|
|
587
|
-
const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
|
|
588
|
-
const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
589
|
-
const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
590
|
-
const base64url = /^[A-Za-z0-9_-]*$/;
|
|
591
|
-
const httpProtocol = /^https?$/;
|
|
592
|
-
const e164 = /^\+[1-9]\d{6,14}$/;
|
|
593
|
-
const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
594
|
-
const date$1 = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
|
|
595
|
-
function timeSource(args) {
|
|
596
|
-
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
597
|
-
return typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
598
|
-
}
|
|
599
|
-
function time$1(args) {
|
|
600
|
-
return new RegExp(`^${timeSource(args)}$`);
|
|
601
|
-
}
|
|
602
|
-
function datetime$1(args) {
|
|
603
|
-
const time = timeSource({ precision: args.precision });
|
|
604
|
-
const opts = ["Z"];
|
|
605
|
-
if (args.local) opts.push("");
|
|
606
|
-
if (args.offset) opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);
|
|
607
|
-
const timeRegex = `${time}(?:${opts.join("|")})`;
|
|
608
|
-
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
609
|
-
}
|
|
610
|
-
const string$1 = (params) => {
|
|
611
|
-
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
612
|
-
return new RegExp(`^${regex}$`);
|
|
613
|
-
};
|
|
614
|
-
const integer = /^-?\d+$/;
|
|
615
|
-
const number$1 = /^-?\d+(?:\.\d+)?$/;
|
|
616
|
-
const boolean$1 = /^(?:true|false)$/i;
|
|
617
|
-
const lowercase = /^[^A-Z]*$/;
|
|
618
|
-
const uppercase = /^[^a-z]*$/;
|
|
619
|
-
//#endregion
|
|
620
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
621
|
-
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
622
|
-
var _a;
|
|
623
|
-
inst._zod ?? (inst._zod = {});
|
|
624
|
-
inst._zod.def = def;
|
|
625
|
-
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
626
|
-
});
|
|
627
|
-
const numericOriginMap = {
|
|
628
|
-
number: "number",
|
|
629
|
-
bigint: "bigint",
|
|
630
|
-
object: "date"
|
|
631
|
-
};
|
|
632
|
-
const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
633
|
-
$ZodCheck.init(inst, def);
|
|
634
|
-
const origin = numericOriginMap[typeof def.value];
|
|
635
|
-
inst._zod.onattach.push((inst) => {
|
|
636
|
-
const bag = inst._zod.bag;
|
|
637
|
-
const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
638
|
-
if (def.value < curr) if (def.inclusive) bag.maximum = def.value;
|
|
639
|
-
else bag.exclusiveMaximum = def.value;
|
|
640
|
-
});
|
|
641
|
-
inst._zod.check = (payload) => {
|
|
642
|
-
if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
|
|
643
|
-
payload.issues.push({
|
|
644
|
-
origin,
|
|
645
|
-
code: "too_big",
|
|
646
|
-
maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
647
|
-
input: payload.value,
|
|
648
|
-
inclusive: def.inclusive,
|
|
649
|
-
inst,
|
|
650
|
-
continue: !def.abort
|
|
651
|
-
});
|
|
652
|
-
};
|
|
653
|
-
});
|
|
654
|
-
const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
655
|
-
$ZodCheck.init(inst, def);
|
|
656
|
-
const origin = numericOriginMap[typeof def.value];
|
|
657
|
-
inst._zod.onattach.push((inst) => {
|
|
658
|
-
const bag = inst._zod.bag;
|
|
659
|
-
const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
660
|
-
if (def.value > curr) if (def.inclusive) bag.minimum = def.value;
|
|
661
|
-
else bag.exclusiveMinimum = def.value;
|
|
662
|
-
});
|
|
663
|
-
inst._zod.check = (payload) => {
|
|
664
|
-
if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
|
|
665
|
-
payload.issues.push({
|
|
666
|
-
origin,
|
|
667
|
-
code: "too_small",
|
|
668
|
-
minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
669
|
-
input: payload.value,
|
|
670
|
-
inclusive: def.inclusive,
|
|
671
|
-
inst,
|
|
672
|
-
continue: !def.abort
|
|
673
|
-
});
|
|
674
|
-
};
|
|
675
|
-
});
|
|
676
|
-
const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
677
|
-
$ZodCheck.init(inst, def);
|
|
678
|
-
inst._zod.onattach.push((inst) => {
|
|
679
|
-
var _a;
|
|
680
|
-
(_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
|
|
681
|
-
});
|
|
682
|
-
inst._zod.check = (payload) => {
|
|
683
|
-
if (typeof payload.value !== typeof def.value) throw new Error("Cannot mix number and bigint in multiple_of check.");
|
|
684
|
-
if (typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0) return;
|
|
685
|
-
payload.issues.push({
|
|
686
|
-
origin: typeof payload.value,
|
|
687
|
-
code: "not_multiple_of",
|
|
688
|
-
divisor: def.value,
|
|
689
|
-
input: payload.value,
|
|
690
|
-
inst,
|
|
691
|
-
continue: !def.abort
|
|
692
|
-
});
|
|
693
|
-
};
|
|
694
|
-
});
|
|
695
|
-
const $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
|
|
696
|
-
$ZodCheck.init(inst, def);
|
|
697
|
-
def.format = def.format || "float64";
|
|
698
|
-
const isInt = def.format?.includes("int");
|
|
699
|
-
const origin = isInt ? "int" : "number";
|
|
700
|
-
const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
|
|
701
|
-
inst._zod.onattach.push((inst) => {
|
|
702
|
-
const bag = inst._zod.bag;
|
|
703
|
-
bag.format = def.format;
|
|
704
|
-
bag.minimum = minimum;
|
|
705
|
-
bag.maximum = maximum;
|
|
706
|
-
if (isInt) bag.pattern = integer;
|
|
707
|
-
});
|
|
708
|
-
inst._zod.check = (payload) => {
|
|
709
|
-
const input = payload.value;
|
|
710
|
-
if (isInt) {
|
|
711
|
-
if (!Number.isInteger(input)) {
|
|
712
|
-
payload.issues.push({
|
|
713
|
-
expected: origin,
|
|
714
|
-
format: def.format,
|
|
715
|
-
code: "invalid_type",
|
|
716
|
-
continue: false,
|
|
717
|
-
input,
|
|
718
|
-
inst
|
|
719
|
-
});
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
if (!Number.isSafeInteger(input)) {
|
|
723
|
-
if (input > 0) payload.issues.push({
|
|
724
|
-
input,
|
|
725
|
-
code: "too_big",
|
|
726
|
-
maximum: Number.MAX_SAFE_INTEGER,
|
|
727
|
-
note: "Integers must be within the safe integer range.",
|
|
728
|
-
inst,
|
|
729
|
-
origin,
|
|
730
|
-
inclusive: true,
|
|
731
|
-
continue: !def.abort
|
|
732
|
-
});
|
|
733
|
-
else payload.issues.push({
|
|
734
|
-
input,
|
|
735
|
-
code: "too_small",
|
|
736
|
-
minimum: Number.MIN_SAFE_INTEGER,
|
|
737
|
-
note: "Integers must be within the safe integer range.",
|
|
738
|
-
inst,
|
|
739
|
-
origin,
|
|
740
|
-
inclusive: true,
|
|
741
|
-
continue: !def.abort
|
|
742
|
-
});
|
|
743
|
-
return;
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
if (input < minimum) payload.issues.push({
|
|
747
|
-
origin: "number",
|
|
748
|
-
input,
|
|
749
|
-
code: "too_small",
|
|
750
|
-
minimum,
|
|
751
|
-
inclusive: true,
|
|
752
|
-
inst,
|
|
753
|
-
continue: !def.abort
|
|
754
|
-
});
|
|
755
|
-
if (input > maximum) payload.issues.push({
|
|
756
|
-
origin: "number",
|
|
757
|
-
input,
|
|
758
|
-
code: "too_big",
|
|
759
|
-
maximum,
|
|
760
|
-
inclusive: true,
|
|
761
|
-
inst,
|
|
762
|
-
continue: !def.abort
|
|
763
|
-
});
|
|
764
|
-
};
|
|
765
|
-
});
|
|
766
|
-
const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
767
|
-
var _a;
|
|
768
|
-
$ZodCheck.init(inst, def);
|
|
769
|
-
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
770
|
-
const val = payload.value;
|
|
771
|
-
return !nullish(val) && val.length !== void 0;
|
|
772
|
-
});
|
|
773
|
-
inst._zod.onattach.push((inst) => {
|
|
774
|
-
const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
775
|
-
if (def.maximum < curr) inst._zod.bag.maximum = def.maximum;
|
|
776
|
-
});
|
|
777
|
-
inst._zod.check = (payload) => {
|
|
778
|
-
const input = payload.value;
|
|
779
|
-
if (input.length <= def.maximum) return;
|
|
780
|
-
const origin = getLengthableOrigin(input);
|
|
781
|
-
payload.issues.push({
|
|
782
|
-
origin,
|
|
783
|
-
code: "too_big",
|
|
784
|
-
maximum: def.maximum,
|
|
785
|
-
inclusive: true,
|
|
786
|
-
input,
|
|
787
|
-
inst,
|
|
788
|
-
continue: !def.abort
|
|
789
|
-
});
|
|
790
|
-
};
|
|
791
|
-
});
|
|
792
|
-
const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
793
|
-
var _a;
|
|
794
|
-
$ZodCheck.init(inst, def);
|
|
795
|
-
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
796
|
-
const val = payload.value;
|
|
797
|
-
return !nullish(val) && val.length !== void 0;
|
|
798
|
-
});
|
|
799
|
-
inst._zod.onattach.push((inst) => {
|
|
800
|
-
const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
801
|
-
if (def.minimum > curr) inst._zod.bag.minimum = def.minimum;
|
|
802
|
-
});
|
|
803
|
-
inst._zod.check = (payload) => {
|
|
804
|
-
const input = payload.value;
|
|
805
|
-
if (input.length >= def.minimum) return;
|
|
806
|
-
const origin = getLengthableOrigin(input);
|
|
807
|
-
payload.issues.push({
|
|
808
|
-
origin,
|
|
809
|
-
code: "too_small",
|
|
810
|
-
minimum: def.minimum,
|
|
811
|
-
inclusive: true,
|
|
812
|
-
input,
|
|
813
|
-
inst,
|
|
814
|
-
continue: !def.abort
|
|
815
|
-
});
|
|
816
|
-
};
|
|
817
|
-
});
|
|
818
|
-
const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
819
|
-
var _a;
|
|
820
|
-
$ZodCheck.init(inst, def);
|
|
821
|
-
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
822
|
-
const val = payload.value;
|
|
823
|
-
return !nullish(val) && val.length !== void 0;
|
|
824
|
-
});
|
|
825
|
-
inst._zod.onattach.push((inst) => {
|
|
826
|
-
const bag = inst._zod.bag;
|
|
827
|
-
bag.minimum = def.length;
|
|
828
|
-
bag.maximum = def.length;
|
|
829
|
-
bag.length = def.length;
|
|
830
|
-
});
|
|
831
|
-
inst._zod.check = (payload) => {
|
|
832
|
-
const input = payload.value;
|
|
833
|
-
const length = input.length;
|
|
834
|
-
if (length === def.length) return;
|
|
835
|
-
const origin = getLengthableOrigin(input);
|
|
836
|
-
const tooBig = length > def.length;
|
|
837
|
-
payload.issues.push({
|
|
838
|
-
origin,
|
|
839
|
-
...tooBig ? {
|
|
840
|
-
code: "too_big",
|
|
841
|
-
maximum: def.length
|
|
842
|
-
} : {
|
|
843
|
-
code: "too_small",
|
|
844
|
-
minimum: def.length
|
|
845
|
-
},
|
|
846
|
-
inclusive: true,
|
|
847
|
-
exact: true,
|
|
848
|
-
input: payload.value,
|
|
849
|
-
inst,
|
|
850
|
-
continue: !def.abort
|
|
851
|
-
});
|
|
852
|
-
};
|
|
853
|
-
});
|
|
854
|
-
const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
855
|
-
var _a, _b;
|
|
856
|
-
$ZodCheck.init(inst, def);
|
|
857
|
-
inst._zod.onattach.push((inst) => {
|
|
858
|
-
const bag = inst._zod.bag;
|
|
859
|
-
bag.format = def.format;
|
|
860
|
-
if (def.pattern) {
|
|
861
|
-
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
862
|
-
bag.patterns.add(def.pattern);
|
|
863
|
-
}
|
|
864
|
-
});
|
|
865
|
-
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
866
|
-
def.pattern.lastIndex = 0;
|
|
867
|
-
if (def.pattern.test(payload.value)) return;
|
|
868
|
-
payload.issues.push({
|
|
869
|
-
origin: "string",
|
|
870
|
-
code: "invalid_format",
|
|
871
|
-
format: def.format,
|
|
872
|
-
input: payload.value,
|
|
873
|
-
...def.pattern ? { pattern: def.pattern.toString() } : {},
|
|
874
|
-
inst,
|
|
875
|
-
continue: !def.abort
|
|
876
|
-
});
|
|
877
|
-
});
|
|
878
|
-
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
879
|
-
});
|
|
880
|
-
const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
881
|
-
$ZodCheckStringFormat.init(inst, def);
|
|
882
|
-
inst._zod.check = (payload) => {
|
|
883
|
-
def.pattern.lastIndex = 0;
|
|
884
|
-
if (def.pattern.test(payload.value)) return;
|
|
885
|
-
payload.issues.push({
|
|
886
|
-
origin: "string",
|
|
887
|
-
code: "invalid_format",
|
|
888
|
-
format: "regex",
|
|
889
|
-
input: payload.value,
|
|
890
|
-
pattern: def.pattern.toString(),
|
|
891
|
-
inst,
|
|
892
|
-
continue: !def.abort
|
|
893
|
-
});
|
|
894
|
-
};
|
|
895
|
-
});
|
|
896
|
-
const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
897
|
-
def.pattern ?? (def.pattern = lowercase);
|
|
898
|
-
$ZodCheckStringFormat.init(inst, def);
|
|
899
|
-
});
|
|
900
|
-
const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
901
|
-
def.pattern ?? (def.pattern = uppercase);
|
|
902
|
-
$ZodCheckStringFormat.init(inst, def);
|
|
903
|
-
});
|
|
904
|
-
const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
905
|
-
$ZodCheck.init(inst, def);
|
|
906
|
-
const escapedRegex = escapeRegex(def.includes);
|
|
907
|
-
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
908
|
-
def.pattern = pattern;
|
|
909
|
-
inst._zod.onattach.push((inst) => {
|
|
910
|
-
const bag = inst._zod.bag;
|
|
911
|
-
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
912
|
-
bag.patterns.add(pattern);
|
|
913
|
-
});
|
|
914
|
-
inst._zod.check = (payload) => {
|
|
915
|
-
if (payload.value.includes(def.includes, def.position)) return;
|
|
916
|
-
payload.issues.push({
|
|
917
|
-
origin: "string",
|
|
918
|
-
code: "invalid_format",
|
|
919
|
-
format: "includes",
|
|
920
|
-
includes: def.includes,
|
|
921
|
-
input: payload.value,
|
|
922
|
-
inst,
|
|
923
|
-
continue: !def.abort
|
|
924
|
-
});
|
|
925
|
-
};
|
|
926
|
-
});
|
|
927
|
-
const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
928
|
-
$ZodCheck.init(inst, def);
|
|
929
|
-
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
930
|
-
def.pattern ?? (def.pattern = pattern);
|
|
931
|
-
inst._zod.onattach.push((inst) => {
|
|
932
|
-
const bag = inst._zod.bag;
|
|
933
|
-
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
934
|
-
bag.patterns.add(pattern);
|
|
935
|
-
});
|
|
936
|
-
inst._zod.check = (payload) => {
|
|
937
|
-
if (payload.value.startsWith(def.prefix)) return;
|
|
938
|
-
payload.issues.push({
|
|
939
|
-
origin: "string",
|
|
940
|
-
code: "invalid_format",
|
|
941
|
-
format: "starts_with",
|
|
942
|
-
prefix: def.prefix,
|
|
943
|
-
input: payload.value,
|
|
944
|
-
inst,
|
|
945
|
-
continue: !def.abort
|
|
946
|
-
});
|
|
947
|
-
};
|
|
948
|
-
});
|
|
949
|
-
const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
950
|
-
$ZodCheck.init(inst, def);
|
|
951
|
-
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
952
|
-
def.pattern ?? (def.pattern = pattern);
|
|
953
|
-
inst._zod.onattach.push((inst) => {
|
|
954
|
-
const bag = inst._zod.bag;
|
|
955
|
-
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
956
|
-
bag.patterns.add(pattern);
|
|
957
|
-
});
|
|
958
|
-
inst._zod.check = (payload) => {
|
|
959
|
-
if (payload.value.endsWith(def.suffix)) return;
|
|
960
|
-
payload.issues.push({
|
|
961
|
-
origin: "string",
|
|
962
|
-
code: "invalid_format",
|
|
963
|
-
format: "ends_with",
|
|
964
|
-
suffix: def.suffix,
|
|
965
|
-
input: payload.value,
|
|
966
|
-
inst,
|
|
967
|
-
continue: !def.abort
|
|
968
|
-
});
|
|
969
|
-
};
|
|
970
|
-
});
|
|
971
|
-
const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
972
|
-
$ZodCheck.init(inst, def);
|
|
973
|
-
inst._zod.check = (payload) => {
|
|
974
|
-
payload.value = def.tx(payload.value);
|
|
975
|
-
};
|
|
976
|
-
});
|
|
977
|
-
//#endregion
|
|
978
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
979
|
-
var Doc = class {
|
|
980
|
-
constructor(args = []) {
|
|
981
|
-
this.content = [];
|
|
982
|
-
this.indent = 0;
|
|
983
|
-
if (this) this.args = args;
|
|
984
|
-
}
|
|
985
|
-
indented(fn) {
|
|
986
|
-
this.indent += 1;
|
|
987
|
-
fn(this);
|
|
988
|
-
this.indent -= 1;
|
|
989
|
-
}
|
|
990
|
-
write(arg) {
|
|
991
|
-
if (typeof arg === "function") {
|
|
992
|
-
arg(this, { execution: "sync" });
|
|
993
|
-
arg(this, { execution: "async" });
|
|
994
|
-
return;
|
|
995
|
-
}
|
|
996
|
-
const lines = arg.split("\n").filter((x) => x);
|
|
997
|
-
const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
|
|
998
|
-
const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
|
|
999
|
-
for (const line of dedented) this.content.push(line);
|
|
1000
|
-
}
|
|
1001
|
-
compile() {
|
|
1002
|
-
const F = Function;
|
|
1003
|
-
const args = this?.args;
|
|
1004
|
-
const lines = [...(this?.content ?? [``]).map((x) => ` ${x}`)];
|
|
1005
|
-
return new F(...args, lines.join("\n"));
|
|
1006
|
-
}
|
|
1007
|
-
};
|
|
1008
|
-
//#endregion
|
|
1009
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
1010
|
-
const version = {
|
|
1011
|
-
major: 4,
|
|
1012
|
-
minor: 4,
|
|
1013
|
-
patch: 3
|
|
1014
|
-
};
|
|
1015
|
-
//#endregion
|
|
1016
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1017
|
-
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1018
|
-
var _a;
|
|
1019
|
-
inst ?? (inst = {});
|
|
1020
|
-
inst._zod.def = def;
|
|
1021
|
-
inst._zod.bag = inst._zod.bag || {};
|
|
1022
|
-
inst._zod.version = version;
|
|
1023
|
-
const checks = [...inst._zod.def.checks ?? []];
|
|
1024
|
-
if (inst._zod.traits.has("$ZodCheck")) checks.unshift(inst);
|
|
1025
|
-
for (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);
|
|
1026
|
-
if (checks.length === 0) {
|
|
1027
|
-
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
1028
|
-
inst._zod.deferred?.push(() => {
|
|
1029
|
-
inst._zod.run = inst._zod.parse;
|
|
1030
|
-
});
|
|
1031
|
-
} else {
|
|
1032
|
-
const runChecks = (payload, checks, ctx) => {
|
|
1033
|
-
let isAborted = aborted(payload);
|
|
1034
|
-
let asyncResult;
|
|
1035
|
-
for (const ch of checks) {
|
|
1036
|
-
if (ch._zod.def.when) {
|
|
1037
|
-
if (explicitlyAborted(payload)) continue;
|
|
1038
|
-
if (!ch._zod.def.when(payload)) continue;
|
|
1039
|
-
} else if (isAborted) continue;
|
|
1040
|
-
const currLen = payload.issues.length;
|
|
1041
|
-
const _ = ch._zod.check(payload);
|
|
1042
|
-
if (_ instanceof Promise && ctx?.async === false) throw new $ZodAsyncError();
|
|
1043
|
-
if (asyncResult || _ instanceof Promise) asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
|
|
1044
|
-
await _;
|
|
1045
|
-
if (payload.issues.length === currLen) return;
|
|
1046
|
-
if (!isAborted) isAborted = aborted(payload, currLen);
|
|
1047
|
-
});
|
|
1048
|
-
else {
|
|
1049
|
-
if (payload.issues.length === currLen) continue;
|
|
1050
|
-
if (!isAborted) isAborted = aborted(payload, currLen);
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
if (asyncResult) return asyncResult.then(() => {
|
|
1054
|
-
return payload;
|
|
1055
|
-
});
|
|
1056
|
-
return payload;
|
|
1057
|
-
};
|
|
1058
|
-
const handleCanaryResult = (canary, payload, ctx) => {
|
|
1059
|
-
if (aborted(canary)) {
|
|
1060
|
-
canary.aborted = true;
|
|
1061
|
-
return canary;
|
|
1062
|
-
}
|
|
1063
|
-
const checkResult = runChecks(payload, checks, ctx);
|
|
1064
|
-
if (checkResult instanceof Promise) {
|
|
1065
|
-
if (ctx.async === false) throw new $ZodAsyncError();
|
|
1066
|
-
return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
|
|
1067
|
-
}
|
|
1068
|
-
return inst._zod.parse(checkResult, ctx);
|
|
1069
|
-
};
|
|
1070
|
-
inst._zod.run = (payload, ctx) => {
|
|
1071
|
-
if (ctx.skipChecks) return inst._zod.parse(payload, ctx);
|
|
1072
|
-
if (ctx.direction === "backward") {
|
|
1073
|
-
const canary = inst._zod.parse({
|
|
1074
|
-
value: payload.value,
|
|
1075
|
-
issues: []
|
|
1076
|
-
}, {
|
|
1077
|
-
...ctx,
|
|
1078
|
-
skipChecks: true
|
|
1079
|
-
});
|
|
1080
|
-
if (canary instanceof Promise) return canary.then((canary) => {
|
|
1081
|
-
return handleCanaryResult(canary, payload, ctx);
|
|
1082
|
-
});
|
|
1083
|
-
return handleCanaryResult(canary, payload, ctx);
|
|
1084
|
-
}
|
|
1085
|
-
const result = inst._zod.parse(payload, ctx);
|
|
1086
|
-
if (result instanceof Promise) {
|
|
1087
|
-
if (ctx.async === false) throw new $ZodAsyncError();
|
|
1088
|
-
return result.then((result) => runChecks(result, checks, ctx));
|
|
1089
|
-
}
|
|
1090
|
-
return runChecks(result, checks, ctx);
|
|
1091
|
-
};
|
|
1092
|
-
}
|
|
1093
|
-
defineLazy(inst, "~standard", () => ({
|
|
1094
|
-
validate: (value) => {
|
|
1095
|
-
try {
|
|
1096
|
-
const r = safeParse$1(inst, value);
|
|
1097
|
-
return r.success ? { value: r.data } : { issues: r.error?.issues };
|
|
1098
|
-
} catch (_) {
|
|
1099
|
-
return safeParseAsync$1(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
|
|
1100
|
-
}
|
|
1101
|
-
},
|
|
1102
|
-
vendor: "zod",
|
|
1103
|
-
version: 1
|
|
1104
|
-
}));
|
|
1105
|
-
});
|
|
1106
|
-
const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
|
|
1107
|
-
$ZodType.init(inst, def);
|
|
1108
|
-
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
|
|
1109
|
-
inst._zod.parse = (payload, _) => {
|
|
1110
|
-
if (def.coerce) try {
|
|
1111
|
-
payload.value = String(payload.value);
|
|
1112
|
-
} catch (_) {}
|
|
1113
|
-
if (typeof payload.value === "string") return payload;
|
|
1114
|
-
payload.issues.push({
|
|
1115
|
-
expected: "string",
|
|
1116
|
-
code: "invalid_type",
|
|
1117
|
-
input: payload.value,
|
|
1118
|
-
inst
|
|
1119
|
-
});
|
|
1120
|
-
return payload;
|
|
1121
|
-
};
|
|
1122
|
-
});
|
|
1123
|
-
const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
|
|
1124
|
-
$ZodCheckStringFormat.init(inst, def);
|
|
1125
|
-
$ZodString.init(inst, def);
|
|
1126
|
-
});
|
|
1127
|
-
const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
|
|
1128
|
-
def.pattern ?? (def.pattern = guid);
|
|
1129
|
-
$ZodStringFormat.init(inst, def);
|
|
1130
|
-
});
|
|
1131
|
-
const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
|
|
1132
|
-
if (def.version) {
|
|
1133
|
-
const v = {
|
|
1134
|
-
v1: 1,
|
|
1135
|
-
v2: 2,
|
|
1136
|
-
v3: 3,
|
|
1137
|
-
v4: 4,
|
|
1138
|
-
v5: 5,
|
|
1139
|
-
v6: 6,
|
|
1140
|
-
v7: 7,
|
|
1141
|
-
v8: 8
|
|
1142
|
-
}[def.version];
|
|
1143
|
-
if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`);
|
|
1144
|
-
def.pattern ?? (def.pattern = uuid(v));
|
|
1145
|
-
} else def.pattern ?? (def.pattern = uuid());
|
|
1146
|
-
$ZodStringFormat.init(inst, def);
|
|
1147
|
-
});
|
|
1148
|
-
const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
|
|
1149
|
-
def.pattern ?? (def.pattern = email);
|
|
1150
|
-
$ZodStringFormat.init(inst, def);
|
|
1151
|
-
});
|
|
1152
|
-
const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
|
|
1153
|
-
$ZodStringFormat.init(inst, def);
|
|
1154
|
-
inst._zod.check = (payload) => {
|
|
1155
|
-
try {
|
|
1156
|
-
const trimmed = payload.value.trim();
|
|
1157
|
-
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
1158
|
-
if (!/^https?:\/\//i.test(trimmed)) {
|
|
1159
|
-
payload.issues.push({
|
|
1160
|
-
code: "invalid_format",
|
|
1161
|
-
format: "url",
|
|
1162
|
-
note: "Invalid URL format",
|
|
1163
|
-
input: payload.value,
|
|
1164
|
-
inst,
|
|
1165
|
-
continue: !def.abort
|
|
1166
|
-
});
|
|
1167
|
-
return;
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
const url = new URL(trimmed);
|
|
1171
|
-
if (def.hostname) {
|
|
1172
|
-
def.hostname.lastIndex = 0;
|
|
1173
|
-
if (!def.hostname.test(url.hostname)) payload.issues.push({
|
|
1174
|
-
code: "invalid_format",
|
|
1175
|
-
format: "url",
|
|
1176
|
-
note: "Invalid hostname",
|
|
1177
|
-
pattern: def.hostname.source,
|
|
1178
|
-
input: payload.value,
|
|
1179
|
-
inst,
|
|
1180
|
-
continue: !def.abort
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
if (def.protocol) {
|
|
1184
|
-
def.protocol.lastIndex = 0;
|
|
1185
|
-
if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) payload.issues.push({
|
|
1186
|
-
code: "invalid_format",
|
|
1187
|
-
format: "url",
|
|
1188
|
-
note: "Invalid protocol",
|
|
1189
|
-
pattern: def.protocol.source,
|
|
1190
|
-
input: payload.value,
|
|
1191
|
-
inst,
|
|
1192
|
-
continue: !def.abort
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
if (def.normalize) payload.value = url.href;
|
|
1196
|
-
else payload.value = trimmed;
|
|
1197
|
-
return;
|
|
1198
|
-
} catch (_) {
|
|
1199
|
-
payload.issues.push({
|
|
1200
|
-
code: "invalid_format",
|
|
1201
|
-
format: "url",
|
|
1202
|
-
input: payload.value,
|
|
1203
|
-
inst,
|
|
1204
|
-
continue: !def.abort
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
};
|
|
1208
|
-
});
|
|
1209
|
-
const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
|
|
1210
|
-
def.pattern ?? (def.pattern = emoji());
|
|
1211
|
-
$ZodStringFormat.init(inst, def);
|
|
1212
|
-
});
|
|
1213
|
-
const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
|
|
1214
|
-
def.pattern ?? (def.pattern = nanoid);
|
|
1215
|
-
$ZodStringFormat.init(inst, def);
|
|
1216
|
-
});
|
|
1217
|
-
/**
|
|
1218
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
1219
|
-
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
1220
|
-
* See https://github.com/paralleldrive/cuid.
|
|
1221
|
-
*/
|
|
1222
|
-
const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
|
|
1223
|
-
def.pattern ?? (def.pattern = cuid);
|
|
1224
|
-
$ZodStringFormat.init(inst, def);
|
|
1225
|
-
});
|
|
1226
|
-
const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
|
|
1227
|
-
def.pattern ?? (def.pattern = cuid2);
|
|
1228
|
-
$ZodStringFormat.init(inst, def);
|
|
1229
|
-
});
|
|
1230
|
-
const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
|
|
1231
|
-
def.pattern ?? (def.pattern = ulid);
|
|
1232
|
-
$ZodStringFormat.init(inst, def);
|
|
1233
|
-
});
|
|
1234
|
-
const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
|
|
1235
|
-
def.pattern ?? (def.pattern = xid);
|
|
1236
|
-
$ZodStringFormat.init(inst, def);
|
|
1237
|
-
});
|
|
1238
|
-
const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
|
|
1239
|
-
def.pattern ?? (def.pattern = ksuid);
|
|
1240
|
-
$ZodStringFormat.init(inst, def);
|
|
1241
|
-
});
|
|
1242
|
-
const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
|
|
1243
|
-
def.pattern ?? (def.pattern = datetime$1(def));
|
|
1244
|
-
$ZodStringFormat.init(inst, def);
|
|
1245
|
-
});
|
|
1246
|
-
const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
|
|
1247
|
-
def.pattern ?? (def.pattern = date$1);
|
|
1248
|
-
$ZodStringFormat.init(inst, def);
|
|
1249
|
-
});
|
|
1250
|
-
const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
|
|
1251
|
-
def.pattern ?? (def.pattern = time$1(def));
|
|
1252
|
-
$ZodStringFormat.init(inst, def);
|
|
1253
|
-
});
|
|
1254
|
-
const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
|
|
1255
|
-
def.pattern ?? (def.pattern = duration$1);
|
|
1256
|
-
$ZodStringFormat.init(inst, def);
|
|
1257
|
-
});
|
|
1258
|
-
const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
|
|
1259
|
-
def.pattern ?? (def.pattern = ipv4);
|
|
1260
|
-
$ZodStringFormat.init(inst, def);
|
|
1261
|
-
inst._zod.bag.format = `ipv4`;
|
|
1262
|
-
});
|
|
1263
|
-
const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
|
|
1264
|
-
def.pattern ?? (def.pattern = ipv6);
|
|
1265
|
-
$ZodStringFormat.init(inst, def);
|
|
1266
|
-
inst._zod.bag.format = `ipv6`;
|
|
1267
|
-
inst._zod.check = (payload) => {
|
|
1268
|
-
try {
|
|
1269
|
-
new URL(`http://[${payload.value}]`);
|
|
1270
|
-
} catch {
|
|
1271
|
-
payload.issues.push({
|
|
1272
|
-
code: "invalid_format",
|
|
1273
|
-
format: "ipv6",
|
|
1274
|
-
input: payload.value,
|
|
1275
|
-
inst,
|
|
1276
|
-
continue: !def.abort
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
|
-
});
|
|
1281
|
-
const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
1282
|
-
def.pattern ?? (def.pattern = cidrv4);
|
|
1283
|
-
$ZodStringFormat.init(inst, def);
|
|
1284
|
-
});
|
|
1285
|
-
const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
1286
|
-
def.pattern ?? (def.pattern = cidrv6);
|
|
1287
|
-
$ZodStringFormat.init(inst, def);
|
|
1288
|
-
inst._zod.check = (payload) => {
|
|
1289
|
-
const parts = payload.value.split("/");
|
|
1290
|
-
try {
|
|
1291
|
-
if (parts.length !== 2) throw new Error();
|
|
1292
|
-
const [address, prefix] = parts;
|
|
1293
|
-
if (!prefix) throw new Error();
|
|
1294
|
-
const prefixNum = Number(prefix);
|
|
1295
|
-
if (`${prefixNum}` !== prefix) throw new Error();
|
|
1296
|
-
if (prefixNum < 0 || prefixNum > 128) throw new Error();
|
|
1297
|
-
new URL(`http://[${address}]`);
|
|
1298
|
-
} catch {
|
|
1299
|
-
payload.issues.push({
|
|
1300
|
-
code: "invalid_format",
|
|
1301
|
-
format: "cidrv6",
|
|
1302
|
-
input: payload.value,
|
|
1303
|
-
inst,
|
|
1304
|
-
continue: !def.abort
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
};
|
|
1308
|
-
});
|
|
1309
|
-
function isValidBase64(data) {
|
|
1310
|
-
if (data === "") return true;
|
|
1311
|
-
if (/\s/.test(data)) return false;
|
|
1312
|
-
if (data.length % 4 !== 0) return false;
|
|
1313
|
-
try {
|
|
1314
|
-
atob(data);
|
|
1315
|
-
return true;
|
|
1316
|
-
} catch {
|
|
1317
|
-
return false;
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
|
|
1321
|
-
def.pattern ?? (def.pattern = base64);
|
|
1322
|
-
$ZodStringFormat.init(inst, def);
|
|
1323
|
-
inst._zod.bag.contentEncoding = "base64";
|
|
1324
|
-
inst._zod.check = (payload) => {
|
|
1325
|
-
if (isValidBase64(payload.value)) return;
|
|
1326
|
-
payload.issues.push({
|
|
1327
|
-
code: "invalid_format",
|
|
1328
|
-
format: "base64",
|
|
1329
|
-
input: payload.value,
|
|
1330
|
-
inst,
|
|
1331
|
-
continue: !def.abort
|
|
1332
|
-
});
|
|
1333
|
-
};
|
|
1334
|
-
});
|
|
1335
|
-
function isValidBase64URL(data) {
|
|
1336
|
-
if (!base64url.test(data)) return false;
|
|
1337
|
-
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
1338
|
-
return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
|
|
1339
|
-
}
|
|
1340
|
-
const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
|
|
1341
|
-
def.pattern ?? (def.pattern = base64url);
|
|
1342
|
-
$ZodStringFormat.init(inst, def);
|
|
1343
|
-
inst._zod.bag.contentEncoding = "base64url";
|
|
1344
|
-
inst._zod.check = (payload) => {
|
|
1345
|
-
if (isValidBase64URL(payload.value)) return;
|
|
1346
|
-
payload.issues.push({
|
|
1347
|
-
code: "invalid_format",
|
|
1348
|
-
format: "base64url",
|
|
1349
|
-
input: payload.value,
|
|
1350
|
-
inst,
|
|
1351
|
-
continue: !def.abort
|
|
1352
|
-
});
|
|
1353
|
-
};
|
|
1354
|
-
});
|
|
1355
|
-
const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
|
|
1356
|
-
def.pattern ?? (def.pattern = e164);
|
|
1357
|
-
$ZodStringFormat.init(inst, def);
|
|
1358
|
-
});
|
|
1359
|
-
function isValidJWT(token, algorithm = null) {
|
|
1360
|
-
try {
|
|
1361
|
-
const tokensParts = token.split(".");
|
|
1362
|
-
if (tokensParts.length !== 3) return false;
|
|
1363
|
-
const [header] = tokensParts;
|
|
1364
|
-
if (!header) return false;
|
|
1365
|
-
const parsedHeader = JSON.parse(atob(header));
|
|
1366
|
-
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
1367
|
-
if (!parsedHeader.alg) return false;
|
|
1368
|
-
if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm)) return false;
|
|
1369
|
-
return true;
|
|
1370
|
-
} catch {
|
|
1371
|
-
return false;
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
|
|
1375
|
-
$ZodStringFormat.init(inst, def);
|
|
1376
|
-
inst._zod.check = (payload) => {
|
|
1377
|
-
if (isValidJWT(payload.value, def.alg)) return;
|
|
1378
|
-
payload.issues.push({
|
|
1379
|
-
code: "invalid_format",
|
|
1380
|
-
format: "jwt",
|
|
1381
|
-
input: payload.value,
|
|
1382
|
-
inst,
|
|
1383
|
-
continue: !def.abort
|
|
1384
|
-
});
|
|
1385
|
-
};
|
|
1386
|
-
});
|
|
1387
|
-
const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
|
|
1388
|
-
$ZodType.init(inst, def);
|
|
1389
|
-
inst._zod.pattern = inst._zod.bag.pattern ?? number$1;
|
|
1390
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
1391
|
-
if (def.coerce) try {
|
|
1392
|
-
payload.value = Number(payload.value);
|
|
1393
|
-
} catch (_) {}
|
|
1394
|
-
const input = payload.value;
|
|
1395
|
-
if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) return payload;
|
|
1396
|
-
const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : void 0 : void 0;
|
|
1397
|
-
payload.issues.push({
|
|
1398
|
-
expected: "number",
|
|
1399
|
-
code: "invalid_type",
|
|
1400
|
-
input,
|
|
1401
|
-
inst,
|
|
1402
|
-
...received ? { received } : {}
|
|
1403
|
-
});
|
|
1404
|
-
return payload;
|
|
1405
|
-
};
|
|
1406
|
-
});
|
|
1407
|
-
const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
1408
|
-
$ZodCheckNumberFormat.init(inst, def);
|
|
1409
|
-
$ZodNumber.init(inst, def);
|
|
1410
|
-
});
|
|
1411
|
-
const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
|
|
1412
|
-
$ZodType.init(inst, def);
|
|
1413
|
-
inst._zod.pattern = boolean$1;
|
|
1414
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
1415
|
-
if (def.coerce) try {
|
|
1416
|
-
payload.value = Boolean(payload.value);
|
|
1417
|
-
} catch (_) {}
|
|
1418
|
-
const input = payload.value;
|
|
1419
|
-
if (typeof input === "boolean") return payload;
|
|
1420
|
-
payload.issues.push({
|
|
1421
|
-
expected: "boolean",
|
|
1422
|
-
code: "invalid_type",
|
|
1423
|
-
input,
|
|
1424
|
-
inst
|
|
1425
|
-
});
|
|
1426
|
-
return payload;
|
|
1427
|
-
};
|
|
1428
|
-
});
|
|
1429
|
-
const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
|
|
1430
|
-
$ZodType.init(inst, def);
|
|
1431
|
-
inst._zod.parse = (payload) => payload;
|
|
1432
|
-
});
|
|
1433
|
-
const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
1434
|
-
$ZodType.init(inst, def);
|
|
1435
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
1436
|
-
payload.issues.push({
|
|
1437
|
-
expected: "never",
|
|
1438
|
-
code: "invalid_type",
|
|
1439
|
-
input: payload.value,
|
|
1440
|
-
inst
|
|
1441
|
-
});
|
|
1442
|
-
return payload;
|
|
1443
|
-
};
|
|
1444
|
-
});
|
|
1445
|
-
function handleArrayResult(result, final, index) {
|
|
1446
|
-
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
1447
|
-
final.value[index] = result.value;
|
|
1448
|
-
}
|
|
1449
|
-
const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
1450
|
-
$ZodType.init(inst, def);
|
|
1451
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1452
|
-
const input = payload.value;
|
|
1453
|
-
if (!Array.isArray(input)) {
|
|
1454
|
-
payload.issues.push({
|
|
1455
|
-
expected: "array",
|
|
1456
|
-
code: "invalid_type",
|
|
1457
|
-
input,
|
|
1458
|
-
inst
|
|
1459
|
-
});
|
|
1460
|
-
return payload;
|
|
1461
|
-
}
|
|
1462
|
-
payload.value = Array(input.length);
|
|
1463
|
-
const proms = [];
|
|
1464
|
-
for (let i = 0; i < input.length; i++) {
|
|
1465
|
-
const item = input[i];
|
|
1466
|
-
const result = def.element._zod.run({
|
|
1467
|
-
value: item,
|
|
1468
|
-
issues: []
|
|
1469
|
-
}, ctx);
|
|
1470
|
-
if (result instanceof Promise) proms.push(result.then((result) => handleArrayResult(result, payload, i)));
|
|
1471
|
-
else handleArrayResult(result, payload, i);
|
|
1472
|
-
}
|
|
1473
|
-
if (proms.length) return Promise.all(proms).then(() => payload);
|
|
1474
|
-
return payload;
|
|
1475
|
-
};
|
|
1476
|
-
});
|
|
1477
|
-
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
1478
|
-
const isPresent = key in input;
|
|
1479
|
-
if (result.issues.length) {
|
|
1480
|
-
if (isOptionalIn && isOptionalOut && !isPresent) return;
|
|
1481
|
-
final.issues.push(...prefixIssues(key, result.issues));
|
|
1482
|
-
}
|
|
1483
|
-
if (!isPresent && !isOptionalIn) {
|
|
1484
|
-
if (!result.issues.length) final.issues.push({
|
|
1485
|
-
code: "invalid_type",
|
|
1486
|
-
expected: "nonoptional",
|
|
1487
|
-
input: void 0,
|
|
1488
|
-
path: [key]
|
|
1489
|
-
});
|
|
1490
|
-
return;
|
|
1491
|
-
}
|
|
1492
|
-
if (result.value === void 0) {
|
|
1493
|
-
if (isPresent) final.value[key] = void 0;
|
|
1494
|
-
} else final.value[key] = result.value;
|
|
1495
|
-
}
|
|
1496
|
-
function normalizeDef(def) {
|
|
1497
|
-
const keys = Object.keys(def.shape);
|
|
1498
|
-
for (const k of keys) if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
|
1499
|
-
const okeys = optionalKeys(def.shape);
|
|
1500
|
-
return {
|
|
1501
|
-
...def,
|
|
1502
|
-
keys,
|
|
1503
|
-
keySet: new Set(keys),
|
|
1504
|
-
numKeys: keys.length,
|
|
1505
|
-
optionalKeys: new Set(okeys)
|
|
1506
|
-
};
|
|
1507
|
-
}
|
|
1508
|
-
function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
1509
|
-
const unrecognized = [];
|
|
1510
|
-
const keySet = def.keySet;
|
|
1511
|
-
const _catchall = def.catchall._zod;
|
|
1512
|
-
const t = _catchall.def.type;
|
|
1513
|
-
const isOptionalIn = _catchall.optin === "optional";
|
|
1514
|
-
const isOptionalOut = _catchall.optout === "optional";
|
|
1515
|
-
for (const key in input) {
|
|
1516
|
-
if (key === "__proto__") continue;
|
|
1517
|
-
if (keySet.has(key)) continue;
|
|
1518
|
-
if (t === "never") {
|
|
1519
|
-
unrecognized.push(key);
|
|
1520
|
-
continue;
|
|
1521
|
-
}
|
|
1522
|
-
const r = _catchall.run({
|
|
1523
|
-
value: input[key],
|
|
1524
|
-
issues: []
|
|
1525
|
-
}, ctx);
|
|
1526
|
-
if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
1527
|
-
else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
1528
|
-
}
|
|
1529
|
-
if (unrecognized.length) payload.issues.push({
|
|
1530
|
-
code: "unrecognized_keys",
|
|
1531
|
-
keys: unrecognized,
|
|
1532
|
-
input,
|
|
1533
|
-
inst
|
|
1534
|
-
});
|
|
1535
|
-
if (!proms.length) return payload;
|
|
1536
|
-
return Promise.all(proms).then(() => {
|
|
1537
|
-
return payload;
|
|
1538
|
-
});
|
|
1539
|
-
}
|
|
1540
|
-
const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
1541
|
-
$ZodType.init(inst, def);
|
|
1542
|
-
if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
|
|
1543
|
-
const sh = def.shape;
|
|
1544
|
-
Object.defineProperty(def, "shape", { get: () => {
|
|
1545
|
-
const newSh = { ...sh };
|
|
1546
|
-
Object.defineProperty(def, "shape", { value: newSh });
|
|
1547
|
-
return newSh;
|
|
1548
|
-
} });
|
|
1549
|
-
}
|
|
1550
|
-
const _normalized = cached(() => normalizeDef(def));
|
|
1551
|
-
defineLazy(inst._zod, "propValues", () => {
|
|
1552
|
-
const shape = def.shape;
|
|
1553
|
-
const propValues = {};
|
|
1554
|
-
for (const key in shape) {
|
|
1555
|
-
const field = shape[key]._zod;
|
|
1556
|
-
if (field.values) {
|
|
1557
|
-
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
1558
|
-
for (const v of field.values) propValues[key].add(v);
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
return propValues;
|
|
1562
|
-
});
|
|
1563
|
-
const isObject$1 = isObject;
|
|
1564
|
-
const catchall = def.catchall;
|
|
1565
|
-
let value;
|
|
1566
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1567
|
-
value ?? (value = _normalized.value);
|
|
1568
|
-
const input = payload.value;
|
|
1569
|
-
if (!isObject$1(input)) {
|
|
1570
|
-
payload.issues.push({
|
|
1571
|
-
expected: "object",
|
|
1572
|
-
code: "invalid_type",
|
|
1573
|
-
input,
|
|
1574
|
-
inst
|
|
1575
|
-
});
|
|
1576
|
-
return payload;
|
|
1577
|
-
}
|
|
1578
|
-
payload.value = {};
|
|
1579
|
-
const proms = [];
|
|
1580
|
-
const shape = value.shape;
|
|
1581
|
-
for (const key of value.keys) {
|
|
1582
|
-
const el = shape[key];
|
|
1583
|
-
const isOptionalIn = el._zod.optin === "optional";
|
|
1584
|
-
const isOptionalOut = el._zod.optout === "optional";
|
|
1585
|
-
const r = el._zod.run({
|
|
1586
|
-
value: input[key],
|
|
1587
|
-
issues: []
|
|
1588
|
-
}, ctx);
|
|
1589
|
-
if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
1590
|
-
else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
1591
|
-
}
|
|
1592
|
-
if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
1593
|
-
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
1594
|
-
};
|
|
1595
|
-
});
|
|
1596
|
-
const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
1597
|
-
$ZodObject.init(inst, def);
|
|
1598
|
-
const superParse = inst._zod.parse;
|
|
1599
|
-
const _normalized = cached(() => normalizeDef(def));
|
|
1600
|
-
const generateFastpass = (shape) => {
|
|
1601
|
-
const doc = new Doc([
|
|
1602
|
-
"shape",
|
|
1603
|
-
"payload",
|
|
1604
|
-
"ctx"
|
|
1605
|
-
]);
|
|
1606
|
-
const normalized = _normalized.value;
|
|
1607
|
-
const parseStr = (key) => {
|
|
1608
|
-
const k = esc(key);
|
|
1609
|
-
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
1610
|
-
};
|
|
1611
|
-
doc.write(`const input = payload.value;`);
|
|
1612
|
-
const ids = Object.create(null);
|
|
1613
|
-
let counter = 0;
|
|
1614
|
-
for (const key of normalized.keys) ids[key] = `key_${counter++}`;
|
|
1615
|
-
doc.write(`const newResult = {};`);
|
|
1616
|
-
for (const key of normalized.keys) {
|
|
1617
|
-
const id = ids[key];
|
|
1618
|
-
const k = esc(key);
|
|
1619
|
-
const schema = shape[key];
|
|
1620
|
-
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
1621
|
-
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
1622
|
-
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
1623
|
-
if (isOptionalIn && isOptionalOut) doc.write(`
|
|
1624
|
-
if (${id}.issues.length) {
|
|
1625
|
-
if (${k} in input) {
|
|
1626
|
-
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
1627
|
-
...iss,
|
|
1628
|
-
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
1629
|
-
})));
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
if (${id}.value === undefined) {
|
|
1634
|
-
if (${k} in input) {
|
|
1635
|
-
newResult[${k}] = undefined;
|
|
1636
|
-
}
|
|
1637
|
-
} else {
|
|
1638
|
-
newResult[${k}] = ${id}.value;
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
`);
|
|
1642
|
-
else if (!isOptionalIn) doc.write(`
|
|
1643
|
-
const ${id}_present = ${k} in input;
|
|
1644
|
-
if (${id}.issues.length) {
|
|
1645
|
-
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
1646
|
-
...iss,
|
|
1647
|
-
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
1648
|
-
})));
|
|
1649
|
-
}
|
|
1650
|
-
if (!${id}_present && !${id}.issues.length) {
|
|
1651
|
-
payload.issues.push({
|
|
1652
|
-
code: "invalid_type",
|
|
1653
|
-
expected: "nonoptional",
|
|
1654
|
-
input: undefined,
|
|
1655
|
-
path: [${k}]
|
|
1656
|
-
});
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
if (${id}_present) {
|
|
1660
|
-
if (${id}.value === undefined) {
|
|
1661
|
-
newResult[${k}] = undefined;
|
|
1662
|
-
} else {
|
|
1663
|
-
newResult[${k}] = ${id}.value;
|
|
1664
|
-
}
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
`);
|
|
1668
|
-
else doc.write(`
|
|
1669
|
-
if (${id}.issues.length) {
|
|
1670
|
-
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
1671
|
-
...iss,
|
|
1672
|
-
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
1673
|
-
})));
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
if (${id}.value === undefined) {
|
|
1677
|
-
if (${k} in input) {
|
|
1678
|
-
newResult[${k}] = undefined;
|
|
1679
|
-
}
|
|
1680
|
-
} else {
|
|
1681
|
-
newResult[${k}] = ${id}.value;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
`);
|
|
1685
|
-
}
|
|
1686
|
-
doc.write(`payload.value = newResult;`);
|
|
1687
|
-
doc.write(`return payload;`);
|
|
1688
|
-
const fn = doc.compile();
|
|
1689
|
-
return (payload, ctx) => fn(shape, payload, ctx);
|
|
1690
|
-
};
|
|
1691
|
-
let fastpass;
|
|
1692
|
-
const isObject$2 = isObject;
|
|
1693
|
-
const jit = !globalConfig.jitless;
|
|
1694
|
-
const fastEnabled = jit && allowsEval.value;
|
|
1695
|
-
const catchall = def.catchall;
|
|
1696
|
-
let value;
|
|
1697
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1698
|
-
value ?? (value = _normalized.value);
|
|
1699
|
-
const input = payload.value;
|
|
1700
|
-
if (!isObject$2(input)) {
|
|
1701
|
-
payload.issues.push({
|
|
1702
|
-
expected: "object",
|
|
1703
|
-
code: "invalid_type",
|
|
1704
|
-
input,
|
|
1705
|
-
inst
|
|
1706
|
-
});
|
|
1707
|
-
return payload;
|
|
1708
|
-
}
|
|
1709
|
-
if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
|
|
1710
|
-
if (!fastpass) fastpass = generateFastpass(def.shape);
|
|
1711
|
-
payload = fastpass(payload, ctx);
|
|
1712
|
-
if (!catchall) return payload;
|
|
1713
|
-
return handleCatchall([], input, payload, ctx, value, inst);
|
|
1714
|
-
}
|
|
1715
|
-
return superParse(payload, ctx);
|
|
1716
|
-
};
|
|
1717
|
-
});
|
|
1718
|
-
function handleUnionResults(results, final, inst, ctx) {
|
|
1719
|
-
for (const result of results) if (result.issues.length === 0) {
|
|
1720
|
-
final.value = result.value;
|
|
1721
|
-
return final;
|
|
1722
|
-
}
|
|
1723
|
-
const nonaborted = results.filter((r) => !aborted(r));
|
|
1724
|
-
if (nonaborted.length === 1) {
|
|
1725
|
-
final.value = nonaborted[0].value;
|
|
1726
|
-
return nonaborted[0];
|
|
1727
|
-
}
|
|
1728
|
-
final.issues.push({
|
|
1729
|
-
code: "invalid_union",
|
|
1730
|
-
input: final.value,
|
|
1731
|
-
inst,
|
|
1732
|
-
errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
1733
|
-
});
|
|
1734
|
-
return final;
|
|
1735
|
-
}
|
|
1736
|
-
const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
|
|
1737
|
-
$ZodType.init(inst, def);
|
|
1738
|
-
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
1739
|
-
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
1740
|
-
defineLazy(inst._zod, "values", () => {
|
|
1741
|
-
if (def.options.every((o) => o._zod.values)) return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
1742
|
-
});
|
|
1743
|
-
defineLazy(inst._zod, "pattern", () => {
|
|
1744
|
-
if (def.options.every((o) => o._zod.pattern)) {
|
|
1745
|
-
const patterns = def.options.map((o) => o._zod.pattern);
|
|
1746
|
-
return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
|
|
1747
|
-
}
|
|
1748
|
-
});
|
|
1749
|
-
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
1750
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1751
|
-
if (first) return first(payload, ctx);
|
|
1752
|
-
let async = false;
|
|
1753
|
-
const results = [];
|
|
1754
|
-
for (const option of def.options) {
|
|
1755
|
-
const result = option._zod.run({
|
|
1756
|
-
value: payload.value,
|
|
1757
|
-
issues: []
|
|
1758
|
-
}, ctx);
|
|
1759
|
-
if (result instanceof Promise) {
|
|
1760
|
-
results.push(result);
|
|
1761
|
-
async = true;
|
|
1762
|
-
} else {
|
|
1763
|
-
if (result.issues.length === 0) return result;
|
|
1764
|
-
results.push(result);
|
|
1765
|
-
}
|
|
1766
|
-
}
|
|
1767
|
-
if (!async) return handleUnionResults(results, payload, inst, ctx);
|
|
1768
|
-
return Promise.all(results).then((results) => {
|
|
1769
|
-
return handleUnionResults(results, payload, inst, ctx);
|
|
1770
|
-
});
|
|
1771
|
-
};
|
|
1772
|
-
});
|
|
1773
|
-
const $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
|
|
1774
|
-
$ZodType.init(inst, def);
|
|
1775
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1776
|
-
const input = payload.value;
|
|
1777
|
-
const left = def.left._zod.run({
|
|
1778
|
-
value: input,
|
|
1779
|
-
issues: []
|
|
1780
|
-
}, ctx);
|
|
1781
|
-
const right = def.right._zod.run({
|
|
1782
|
-
value: input,
|
|
1783
|
-
issues: []
|
|
1784
|
-
}, ctx);
|
|
1785
|
-
if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left, right]) => {
|
|
1786
|
-
return handleIntersectionResults(payload, left, right);
|
|
1787
|
-
});
|
|
1788
|
-
return handleIntersectionResults(payload, left, right);
|
|
1789
|
-
};
|
|
1790
|
-
});
|
|
1791
|
-
function mergeValues(a, b) {
|
|
1792
|
-
if (a === b) return {
|
|
1793
|
-
valid: true,
|
|
1794
|
-
data: a
|
|
1795
|
-
};
|
|
1796
|
-
if (a instanceof Date && b instanceof Date && +a === +b) return {
|
|
1797
|
-
valid: true,
|
|
1798
|
-
data: a
|
|
1799
|
-
};
|
|
1800
|
-
if (isPlainObject(a) && isPlainObject(b)) {
|
|
1801
|
-
const bKeys = Object.keys(b);
|
|
1802
|
-
const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
1803
|
-
const newObj = {
|
|
1804
|
-
...a,
|
|
1805
|
-
...b
|
|
1806
|
-
};
|
|
1807
|
-
for (const key of sharedKeys) {
|
|
1808
|
-
const sharedValue = mergeValues(a[key], b[key]);
|
|
1809
|
-
if (!sharedValue.valid) return {
|
|
1810
|
-
valid: false,
|
|
1811
|
-
mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
|
|
1812
|
-
};
|
|
1813
|
-
newObj[key] = sharedValue.data;
|
|
1814
|
-
}
|
|
1815
|
-
return {
|
|
1816
|
-
valid: true,
|
|
1817
|
-
data: newObj
|
|
1818
|
-
};
|
|
1819
|
-
}
|
|
1820
|
-
if (Array.isArray(a) && Array.isArray(b)) {
|
|
1821
|
-
if (a.length !== b.length) return {
|
|
1822
|
-
valid: false,
|
|
1823
|
-
mergeErrorPath: []
|
|
1824
|
-
};
|
|
1825
|
-
const newArray = [];
|
|
1826
|
-
for (let index = 0; index < a.length; index++) {
|
|
1827
|
-
const itemA = a[index];
|
|
1828
|
-
const itemB = b[index];
|
|
1829
|
-
const sharedValue = mergeValues(itemA, itemB);
|
|
1830
|
-
if (!sharedValue.valid) return {
|
|
1831
|
-
valid: false,
|
|
1832
|
-
mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
|
|
1833
|
-
};
|
|
1834
|
-
newArray.push(sharedValue.data);
|
|
1835
|
-
}
|
|
1836
|
-
return {
|
|
1837
|
-
valid: true,
|
|
1838
|
-
data: newArray
|
|
1839
|
-
};
|
|
1840
|
-
}
|
|
1841
|
-
return {
|
|
1842
|
-
valid: false,
|
|
1843
|
-
mergeErrorPath: []
|
|
1844
|
-
};
|
|
1845
|
-
}
|
|
1846
|
-
function handleIntersectionResults(result, left, right) {
|
|
1847
|
-
const unrecKeys = /* @__PURE__ */ new Map();
|
|
1848
|
-
let unrecIssue;
|
|
1849
|
-
for (const iss of left.issues) if (iss.code === "unrecognized_keys") {
|
|
1850
|
-
unrecIssue ?? (unrecIssue = iss);
|
|
1851
|
-
for (const k of iss.keys) {
|
|
1852
|
-
if (!unrecKeys.has(k)) unrecKeys.set(k, {});
|
|
1853
|
-
unrecKeys.get(k).l = true;
|
|
1854
|
-
}
|
|
1855
|
-
} else result.issues.push(iss);
|
|
1856
|
-
for (const iss of right.issues) if (iss.code === "unrecognized_keys") for (const k of iss.keys) {
|
|
1857
|
-
if (!unrecKeys.has(k)) unrecKeys.set(k, {});
|
|
1858
|
-
unrecKeys.get(k).r = true;
|
|
1859
|
-
}
|
|
1860
|
-
else result.issues.push(iss);
|
|
1861
|
-
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
1862
|
-
if (bothKeys.length && unrecIssue) result.issues.push({
|
|
1863
|
-
...unrecIssue,
|
|
1864
|
-
keys: bothKeys
|
|
1865
|
-
});
|
|
1866
|
-
if (aborted(result)) return result;
|
|
1867
|
-
const merged = mergeValues(left.value, right.value);
|
|
1868
|
-
if (!merged.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
|
|
1869
|
-
result.value = merged.data;
|
|
1870
|
-
return result;
|
|
1871
|
-
}
|
|
1872
|
-
const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
|
|
1873
|
-
$ZodType.init(inst, def);
|
|
1874
|
-
const values = getEnumValues(def.entries);
|
|
1875
|
-
const valuesSet = new Set(values);
|
|
1876
|
-
inst._zod.values = valuesSet;
|
|
1877
|
-
inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
|
|
1878
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
1879
|
-
const input = payload.value;
|
|
1880
|
-
if (valuesSet.has(input)) return payload;
|
|
1881
|
-
payload.issues.push({
|
|
1882
|
-
code: "invalid_value",
|
|
1883
|
-
values,
|
|
1884
|
-
input,
|
|
1885
|
-
inst
|
|
1886
|
-
});
|
|
1887
|
-
return payload;
|
|
1888
|
-
};
|
|
1889
|
-
});
|
|
1890
|
-
const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
|
|
1891
|
-
$ZodType.init(inst, def);
|
|
1892
|
-
if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values");
|
|
1893
|
-
const values = new Set(def.values);
|
|
1894
|
-
inst._zod.values = values;
|
|
1895
|
-
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
|
|
1896
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
1897
|
-
const input = payload.value;
|
|
1898
|
-
if (values.has(input)) return payload;
|
|
1899
|
-
payload.issues.push({
|
|
1900
|
-
code: "invalid_value",
|
|
1901
|
-
values: def.values,
|
|
1902
|
-
input,
|
|
1903
|
-
inst
|
|
1904
|
-
});
|
|
1905
|
-
return payload;
|
|
1906
|
-
};
|
|
1907
|
-
});
|
|
1908
|
-
const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
|
|
1909
|
-
$ZodType.init(inst, def);
|
|
1910
|
-
inst._zod.optin = "optional";
|
|
1911
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1912
|
-
if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
|
|
1913
|
-
const _out = def.transform(payload.value, payload);
|
|
1914
|
-
if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => {
|
|
1915
|
-
payload.value = output;
|
|
1916
|
-
payload.fallback = true;
|
|
1917
|
-
return payload;
|
|
1918
|
-
});
|
|
1919
|
-
if (_out instanceof Promise) throw new $ZodAsyncError();
|
|
1920
|
-
payload.value = _out;
|
|
1921
|
-
payload.fallback = true;
|
|
1922
|
-
return payload;
|
|
1923
|
-
};
|
|
1924
|
-
});
|
|
1925
|
-
function handleOptionalResult(result, input) {
|
|
1926
|
-
if (input === void 0 && (result.issues.length || result.fallback)) return {
|
|
1927
|
-
issues: [],
|
|
1928
|
-
value: void 0
|
|
1929
|
-
};
|
|
1930
|
-
return result;
|
|
1931
|
-
}
|
|
1932
|
-
const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
|
|
1933
|
-
$ZodType.init(inst, def);
|
|
1934
|
-
inst._zod.optin = "optional";
|
|
1935
|
-
inst._zod.optout = "optional";
|
|
1936
|
-
defineLazy(inst._zod, "values", () => {
|
|
1937
|
-
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;
|
|
1938
|
-
});
|
|
1939
|
-
defineLazy(inst._zod, "pattern", () => {
|
|
1940
|
-
const pattern = def.innerType._zod.pattern;
|
|
1941
|
-
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
|
|
1942
|
-
});
|
|
1943
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1944
|
-
if (def.innerType._zod.optin === "optional") {
|
|
1945
|
-
const input = payload.value;
|
|
1946
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
1947
|
-
if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, input));
|
|
1948
|
-
return handleOptionalResult(result, input);
|
|
1949
|
-
}
|
|
1950
|
-
if (payload.value === void 0) return payload;
|
|
1951
|
-
return def.innerType._zod.run(payload, ctx);
|
|
1952
|
-
};
|
|
1953
|
-
});
|
|
1954
|
-
const $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
|
|
1955
|
-
$ZodOptional.init(inst, def);
|
|
1956
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1957
|
-
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
1958
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1959
|
-
return def.innerType._zod.run(payload, ctx);
|
|
1960
|
-
};
|
|
1961
|
-
});
|
|
1962
|
-
const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
|
|
1963
|
-
$ZodType.init(inst, def);
|
|
1964
|
-
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
1965
|
-
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1966
|
-
defineLazy(inst._zod, "pattern", () => {
|
|
1967
|
-
const pattern = def.innerType._zod.pattern;
|
|
1968
|
-
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
|
|
1969
|
-
});
|
|
1970
|
-
defineLazy(inst._zod, "values", () => {
|
|
1971
|
-
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
|
|
1972
|
-
});
|
|
1973
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1974
|
-
if (payload.value === null) return payload;
|
|
1975
|
-
return def.innerType._zod.run(payload, ctx);
|
|
1976
|
-
};
|
|
1977
|
-
});
|
|
1978
|
-
const $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
|
|
1979
|
-
$ZodType.init(inst, def);
|
|
1980
|
-
inst._zod.optin = "optional";
|
|
1981
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1982
|
-
inst._zod.parse = (payload, ctx) => {
|
|
1983
|
-
if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
|
|
1984
|
-
if (payload.value === void 0) {
|
|
1985
|
-
payload.value = def.defaultValue;
|
|
1986
|
-
/**
|
|
1987
|
-
* $ZodDefault returns the default value immediately in forward direction.
|
|
1988
|
-
* It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */
|
|
1989
|
-
return payload;
|
|
1990
|
-
}
|
|
1991
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
1992
|
-
if (result instanceof Promise) return result.then((result) => handleDefaultResult(result, def));
|
|
1993
|
-
return handleDefaultResult(result, def);
|
|
1994
|
-
};
|
|
1995
|
-
});
|
|
1996
|
-
function handleDefaultResult(payload, def) {
|
|
1997
|
-
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
1998
|
-
return payload;
|
|
1999
|
-
}
|
|
2000
|
-
const $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
|
|
2001
|
-
$ZodType.init(inst, def);
|
|
2002
|
-
inst._zod.optin = "optional";
|
|
2003
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2004
|
-
inst._zod.parse = (payload, ctx) => {
|
|
2005
|
-
if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
|
|
2006
|
-
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
2007
|
-
return def.innerType._zod.run(payload, ctx);
|
|
2008
|
-
};
|
|
2009
|
-
});
|
|
2010
|
-
const $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
|
|
2011
|
-
$ZodType.init(inst, def);
|
|
2012
|
-
defineLazy(inst._zod, "values", () => {
|
|
2013
|
-
const v = def.innerType._zod.values;
|
|
2014
|
-
return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
|
|
2015
|
-
});
|
|
2016
|
-
inst._zod.parse = (payload, ctx) => {
|
|
2017
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
2018
|
-
if (result instanceof Promise) return result.then((result) => handleNonOptionalResult(result, inst));
|
|
2019
|
-
return handleNonOptionalResult(result, inst);
|
|
2020
|
-
};
|
|
2021
|
-
});
|
|
2022
|
-
function handleNonOptionalResult(payload, inst) {
|
|
2023
|
-
if (!payload.issues.length && payload.value === void 0) payload.issues.push({
|
|
2024
|
-
code: "invalid_type",
|
|
2025
|
-
expected: "nonoptional",
|
|
2026
|
-
input: payload.value,
|
|
2027
|
-
inst
|
|
2028
|
-
});
|
|
2029
|
-
return payload;
|
|
2030
|
-
}
|
|
2031
|
-
const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
2032
|
-
$ZodType.init(inst, def);
|
|
2033
|
-
inst._zod.optin = "optional";
|
|
2034
|
-
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2035
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2036
|
-
inst._zod.parse = (payload, ctx) => {
|
|
2037
|
-
if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
|
|
2038
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
2039
|
-
if (result instanceof Promise) return result.then((result) => {
|
|
2040
|
-
payload.value = result.value;
|
|
2041
|
-
if (result.issues.length) {
|
|
2042
|
-
payload.value = def.catchValue({
|
|
2043
|
-
...payload,
|
|
2044
|
-
error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
|
|
2045
|
-
input: payload.value
|
|
2046
|
-
});
|
|
2047
|
-
payload.issues = [];
|
|
2048
|
-
payload.fallback = true;
|
|
2049
|
-
}
|
|
2050
|
-
return payload;
|
|
2051
|
-
});
|
|
2052
|
-
payload.value = result.value;
|
|
2053
|
-
if (result.issues.length) {
|
|
2054
|
-
payload.value = def.catchValue({
|
|
2055
|
-
...payload,
|
|
2056
|
-
error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
|
|
2057
|
-
input: payload.value
|
|
2058
|
-
});
|
|
2059
|
-
payload.issues = [];
|
|
2060
|
-
payload.fallback = true;
|
|
2061
|
-
}
|
|
2062
|
-
return payload;
|
|
2063
|
-
};
|
|
2064
|
-
});
|
|
2065
|
-
const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
|
|
2066
|
-
$ZodType.init(inst, def);
|
|
2067
|
-
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2068
|
-
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
2069
|
-
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
2070
|
-
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
2071
|
-
inst._zod.parse = (payload, ctx) => {
|
|
2072
|
-
if (ctx.direction === "backward") {
|
|
2073
|
-
const right = def.out._zod.run(payload, ctx);
|
|
2074
|
-
if (right instanceof Promise) return right.then((right) => handlePipeResult(right, def.in, ctx));
|
|
2075
|
-
return handlePipeResult(right, def.in, ctx);
|
|
2076
|
-
}
|
|
2077
|
-
const left = def.in._zod.run(payload, ctx);
|
|
2078
|
-
if (left instanceof Promise) return left.then((left) => handlePipeResult(left, def.out, ctx));
|
|
2079
|
-
return handlePipeResult(left, def.out, ctx);
|
|
2080
|
-
};
|
|
2081
|
-
});
|
|
2082
|
-
function handlePipeResult(left, next, ctx) {
|
|
2083
|
-
if (left.issues.length) {
|
|
2084
|
-
left.aborted = true;
|
|
2085
|
-
return left;
|
|
2086
|
-
}
|
|
2087
|
-
return next._zod.run({
|
|
2088
|
-
value: left.value,
|
|
2089
|
-
issues: left.issues,
|
|
2090
|
-
fallback: left.fallback
|
|
2091
|
-
}, ctx);
|
|
2092
|
-
}
|
|
2093
|
-
const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
2094
|
-
$ZodType.init(inst, def);
|
|
2095
|
-
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
2096
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2097
|
-
defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
2098
|
-
defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
2099
|
-
inst._zod.parse = (payload, ctx) => {
|
|
2100
|
-
if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
|
|
2101
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
2102
|
-
if (result instanceof Promise) return result.then(handleReadonlyResult);
|
|
2103
|
-
return handleReadonlyResult(result);
|
|
2104
|
-
};
|
|
2105
|
-
});
|
|
2106
|
-
function handleReadonlyResult(payload) {
|
|
2107
|
-
payload.value = Object.freeze(payload.value);
|
|
2108
|
-
return payload;
|
|
2109
|
-
}
|
|
2110
|
-
const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
|
|
2111
|
-
$ZodCheck.init(inst, def);
|
|
2112
|
-
$ZodType.init(inst, def);
|
|
2113
|
-
inst._zod.parse = (payload, _) => {
|
|
2114
|
-
return payload;
|
|
2115
|
-
};
|
|
2116
|
-
inst._zod.check = (payload) => {
|
|
2117
|
-
const input = payload.value;
|
|
2118
|
-
const r = def.fn(input);
|
|
2119
|
-
if (r instanceof Promise) return r.then((r) => handleRefineResult(r, payload, input, inst));
|
|
2120
|
-
handleRefineResult(r, payload, input, inst);
|
|
2121
|
-
};
|
|
2122
|
-
});
|
|
2123
|
-
function handleRefineResult(result, payload, input, inst) {
|
|
2124
|
-
if (!result) {
|
|
2125
|
-
const _iss = {
|
|
2126
|
-
code: "custom",
|
|
2127
|
-
input,
|
|
2128
|
-
inst,
|
|
2129
|
-
path: [...inst._zod.def.path ?? []],
|
|
2130
|
-
continue: !inst._zod.def.abort
|
|
2131
|
-
};
|
|
2132
|
-
if (inst._zod.def.params) _iss.params = inst._zod.def.params;
|
|
2133
|
-
payload.issues.push(issue(_iss));
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
//#endregion
|
|
2137
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
2138
|
-
var _a;
|
|
2139
|
-
var $ZodRegistry = class {
|
|
2140
|
-
constructor() {
|
|
2141
|
-
this._map = /* @__PURE__ */ new WeakMap();
|
|
2142
|
-
this._idmap = /* @__PURE__ */ new Map();
|
|
2143
|
-
}
|
|
2144
|
-
add(schema, ..._meta) {
|
|
2145
|
-
const meta = _meta[0];
|
|
2146
|
-
this._map.set(schema, meta);
|
|
2147
|
-
if (meta && typeof meta === "object" && "id" in meta) this._idmap.set(meta.id, schema);
|
|
2148
|
-
return this;
|
|
2149
|
-
}
|
|
2150
|
-
clear() {
|
|
2151
|
-
this._map = /* @__PURE__ */ new WeakMap();
|
|
2152
|
-
this._idmap = /* @__PURE__ */ new Map();
|
|
2153
|
-
return this;
|
|
2154
|
-
}
|
|
2155
|
-
remove(schema) {
|
|
2156
|
-
const meta = this._map.get(schema);
|
|
2157
|
-
if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id);
|
|
2158
|
-
this._map.delete(schema);
|
|
2159
|
-
return this;
|
|
2160
|
-
}
|
|
2161
|
-
get(schema) {
|
|
2162
|
-
const p = schema._zod.parent;
|
|
2163
|
-
if (p) {
|
|
2164
|
-
const pm = { ...this.get(p) ?? {} };
|
|
2165
|
-
delete pm.id;
|
|
2166
|
-
const f = {
|
|
2167
|
-
...pm,
|
|
2168
|
-
...this._map.get(schema)
|
|
2169
|
-
};
|
|
2170
|
-
return Object.keys(f).length ? f : void 0;
|
|
2171
|
-
}
|
|
2172
|
-
return this._map.get(schema);
|
|
2173
|
-
}
|
|
2174
|
-
has(schema) {
|
|
2175
|
-
return this._map.has(schema);
|
|
2176
|
-
}
|
|
2177
|
-
};
|
|
2178
|
-
function registry() {
|
|
2179
|
-
return new $ZodRegistry();
|
|
2180
|
-
}
|
|
2181
|
-
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2182
|
-
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2183
|
-
//#endregion
|
|
2184
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2185
|
-
// @__NO_SIDE_EFFECTS__
|
|
2186
|
-
function _string(Class, params) {
|
|
2187
|
-
return new Class({
|
|
2188
|
-
type: "string",
|
|
2189
|
-
...normalizeParams(params)
|
|
2190
|
-
});
|
|
2191
|
-
}
|
|
2192
|
-
// @__NO_SIDE_EFFECTS__
|
|
2193
|
-
function _email(Class, params) {
|
|
2194
|
-
return new Class({
|
|
2195
|
-
type: "string",
|
|
2196
|
-
format: "email",
|
|
2197
|
-
check: "string_format",
|
|
2198
|
-
abort: false,
|
|
2199
|
-
...normalizeParams(params)
|
|
2200
|
-
});
|
|
2201
|
-
}
|
|
2202
|
-
// @__NO_SIDE_EFFECTS__
|
|
2203
|
-
function _guid(Class, params) {
|
|
2204
|
-
return new Class({
|
|
2205
|
-
type: "string",
|
|
2206
|
-
format: "guid",
|
|
2207
|
-
check: "string_format",
|
|
2208
|
-
abort: false,
|
|
2209
|
-
...normalizeParams(params)
|
|
2210
|
-
});
|
|
2211
|
-
}
|
|
2212
|
-
// @__NO_SIDE_EFFECTS__
|
|
2213
|
-
function _uuid(Class, params) {
|
|
2214
|
-
return new Class({
|
|
2215
|
-
type: "string",
|
|
2216
|
-
format: "uuid",
|
|
2217
|
-
check: "string_format",
|
|
2218
|
-
abort: false,
|
|
2219
|
-
...normalizeParams(params)
|
|
2220
|
-
});
|
|
2221
|
-
}
|
|
2222
|
-
// @__NO_SIDE_EFFECTS__
|
|
2223
|
-
function _uuidv4(Class, params) {
|
|
2224
|
-
return new Class({
|
|
2225
|
-
type: "string",
|
|
2226
|
-
format: "uuid",
|
|
2227
|
-
check: "string_format",
|
|
2228
|
-
abort: false,
|
|
2229
|
-
version: "v4",
|
|
2230
|
-
...normalizeParams(params)
|
|
2231
|
-
});
|
|
2232
|
-
}
|
|
2233
|
-
// @__NO_SIDE_EFFECTS__
|
|
2234
|
-
function _uuidv6(Class, params) {
|
|
2235
|
-
return new Class({
|
|
2236
|
-
type: "string",
|
|
2237
|
-
format: "uuid",
|
|
2238
|
-
check: "string_format",
|
|
2239
|
-
abort: false,
|
|
2240
|
-
version: "v6",
|
|
2241
|
-
...normalizeParams(params)
|
|
2242
|
-
});
|
|
2243
|
-
}
|
|
2244
|
-
// @__NO_SIDE_EFFECTS__
|
|
2245
|
-
function _uuidv7(Class, params) {
|
|
2246
|
-
return new Class({
|
|
2247
|
-
type: "string",
|
|
2248
|
-
format: "uuid",
|
|
2249
|
-
check: "string_format",
|
|
2250
|
-
abort: false,
|
|
2251
|
-
version: "v7",
|
|
2252
|
-
...normalizeParams(params)
|
|
2253
|
-
});
|
|
2254
|
-
}
|
|
2255
|
-
// @__NO_SIDE_EFFECTS__
|
|
2256
|
-
function _url(Class, params) {
|
|
2257
|
-
return new Class({
|
|
2258
|
-
type: "string",
|
|
2259
|
-
format: "url",
|
|
2260
|
-
check: "string_format",
|
|
2261
|
-
abort: false,
|
|
2262
|
-
...normalizeParams(params)
|
|
2263
|
-
});
|
|
2264
|
-
}
|
|
2265
|
-
// @__NO_SIDE_EFFECTS__
|
|
2266
|
-
function _emoji(Class, params) {
|
|
2267
|
-
return new Class({
|
|
2268
|
-
type: "string",
|
|
2269
|
-
format: "emoji",
|
|
2270
|
-
check: "string_format",
|
|
2271
|
-
abort: false,
|
|
2272
|
-
...normalizeParams(params)
|
|
2273
|
-
});
|
|
2274
|
-
}
|
|
2275
|
-
// @__NO_SIDE_EFFECTS__
|
|
2276
|
-
function _nanoid(Class, params) {
|
|
2277
|
-
return new Class({
|
|
2278
|
-
type: "string",
|
|
2279
|
-
format: "nanoid",
|
|
2280
|
-
check: "string_format",
|
|
2281
|
-
abort: false,
|
|
2282
|
-
...normalizeParams(params)
|
|
2283
|
-
});
|
|
2284
|
-
}
|
|
2285
|
-
/**
|
|
2286
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
2287
|
-
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
2288
|
-
* See https://github.com/paralleldrive/cuid.
|
|
2289
|
-
*/
|
|
2290
|
-
// @__NO_SIDE_EFFECTS__
|
|
2291
|
-
function _cuid(Class, params) {
|
|
2292
|
-
return new Class({
|
|
2293
|
-
type: "string",
|
|
2294
|
-
format: "cuid",
|
|
2295
|
-
check: "string_format",
|
|
2296
|
-
abort: false,
|
|
2297
|
-
...normalizeParams(params)
|
|
2298
|
-
});
|
|
2299
|
-
}
|
|
2300
|
-
// @__NO_SIDE_EFFECTS__
|
|
2301
|
-
function _cuid2(Class, params) {
|
|
2302
|
-
return new Class({
|
|
2303
|
-
type: "string",
|
|
2304
|
-
format: "cuid2",
|
|
2305
|
-
check: "string_format",
|
|
2306
|
-
abort: false,
|
|
2307
|
-
...normalizeParams(params)
|
|
2308
|
-
});
|
|
2309
|
-
}
|
|
2310
|
-
// @__NO_SIDE_EFFECTS__
|
|
2311
|
-
function _ulid(Class, params) {
|
|
2312
|
-
return new Class({
|
|
2313
|
-
type: "string",
|
|
2314
|
-
format: "ulid",
|
|
2315
|
-
check: "string_format",
|
|
2316
|
-
abort: false,
|
|
2317
|
-
...normalizeParams(params)
|
|
2318
|
-
});
|
|
2319
|
-
}
|
|
2320
|
-
// @__NO_SIDE_EFFECTS__
|
|
2321
|
-
function _xid(Class, params) {
|
|
2322
|
-
return new Class({
|
|
2323
|
-
type: "string",
|
|
2324
|
-
format: "xid",
|
|
2325
|
-
check: "string_format",
|
|
2326
|
-
abort: false,
|
|
2327
|
-
...normalizeParams(params)
|
|
2328
|
-
});
|
|
2329
|
-
}
|
|
2330
|
-
// @__NO_SIDE_EFFECTS__
|
|
2331
|
-
function _ksuid(Class, params) {
|
|
2332
|
-
return new Class({
|
|
2333
|
-
type: "string",
|
|
2334
|
-
format: "ksuid",
|
|
2335
|
-
check: "string_format",
|
|
2336
|
-
abort: false,
|
|
2337
|
-
...normalizeParams(params)
|
|
2338
|
-
});
|
|
2339
|
-
}
|
|
2340
|
-
// @__NO_SIDE_EFFECTS__
|
|
2341
|
-
function _ipv4(Class, params) {
|
|
2342
|
-
return new Class({
|
|
2343
|
-
type: "string",
|
|
2344
|
-
format: "ipv4",
|
|
2345
|
-
check: "string_format",
|
|
2346
|
-
abort: false,
|
|
2347
|
-
...normalizeParams(params)
|
|
2348
|
-
});
|
|
2349
|
-
}
|
|
2350
|
-
// @__NO_SIDE_EFFECTS__
|
|
2351
|
-
function _ipv6(Class, params) {
|
|
2352
|
-
return new Class({
|
|
2353
|
-
type: "string",
|
|
2354
|
-
format: "ipv6",
|
|
2355
|
-
check: "string_format",
|
|
2356
|
-
abort: false,
|
|
2357
|
-
...normalizeParams(params)
|
|
2358
|
-
});
|
|
2359
|
-
}
|
|
2360
|
-
// @__NO_SIDE_EFFECTS__
|
|
2361
|
-
function _cidrv4(Class, params) {
|
|
2362
|
-
return new Class({
|
|
2363
|
-
type: "string",
|
|
2364
|
-
format: "cidrv4",
|
|
2365
|
-
check: "string_format",
|
|
2366
|
-
abort: false,
|
|
2367
|
-
...normalizeParams(params)
|
|
2368
|
-
});
|
|
2369
|
-
}
|
|
2370
|
-
// @__NO_SIDE_EFFECTS__
|
|
2371
|
-
function _cidrv6(Class, params) {
|
|
2372
|
-
return new Class({
|
|
2373
|
-
type: "string",
|
|
2374
|
-
format: "cidrv6",
|
|
2375
|
-
check: "string_format",
|
|
2376
|
-
abort: false,
|
|
2377
|
-
...normalizeParams(params)
|
|
2378
|
-
});
|
|
2379
|
-
}
|
|
2380
|
-
// @__NO_SIDE_EFFECTS__
|
|
2381
|
-
function _base64(Class, params) {
|
|
2382
|
-
return new Class({
|
|
2383
|
-
type: "string",
|
|
2384
|
-
format: "base64",
|
|
2385
|
-
check: "string_format",
|
|
2386
|
-
abort: false,
|
|
2387
|
-
...normalizeParams(params)
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
|
-
// @__NO_SIDE_EFFECTS__
|
|
2391
|
-
function _base64url(Class, params) {
|
|
2392
|
-
return new Class({
|
|
2393
|
-
type: "string",
|
|
2394
|
-
format: "base64url",
|
|
2395
|
-
check: "string_format",
|
|
2396
|
-
abort: false,
|
|
2397
|
-
...normalizeParams(params)
|
|
2398
|
-
});
|
|
2399
|
-
}
|
|
2400
|
-
// @__NO_SIDE_EFFECTS__
|
|
2401
|
-
function _e164(Class, params) {
|
|
2402
|
-
return new Class({
|
|
2403
|
-
type: "string",
|
|
2404
|
-
format: "e164",
|
|
2405
|
-
check: "string_format",
|
|
2406
|
-
abort: false,
|
|
2407
|
-
...normalizeParams(params)
|
|
2408
|
-
});
|
|
2409
|
-
}
|
|
2410
|
-
// @__NO_SIDE_EFFECTS__
|
|
2411
|
-
function _jwt(Class, params) {
|
|
2412
|
-
return new Class({
|
|
2413
|
-
type: "string",
|
|
2414
|
-
format: "jwt",
|
|
2415
|
-
check: "string_format",
|
|
2416
|
-
abort: false,
|
|
2417
|
-
...normalizeParams(params)
|
|
2418
|
-
});
|
|
2419
|
-
}
|
|
2420
|
-
// @__NO_SIDE_EFFECTS__
|
|
2421
|
-
function _isoDateTime(Class, params) {
|
|
2422
|
-
return new Class({
|
|
2423
|
-
type: "string",
|
|
2424
|
-
format: "datetime",
|
|
2425
|
-
check: "string_format",
|
|
2426
|
-
offset: false,
|
|
2427
|
-
local: false,
|
|
2428
|
-
precision: null,
|
|
2429
|
-
...normalizeParams(params)
|
|
2430
|
-
});
|
|
2431
|
-
}
|
|
2432
|
-
// @__NO_SIDE_EFFECTS__
|
|
2433
|
-
function _isoDate(Class, params) {
|
|
2434
|
-
return new Class({
|
|
2435
|
-
type: "string",
|
|
2436
|
-
format: "date",
|
|
2437
|
-
check: "string_format",
|
|
2438
|
-
...normalizeParams(params)
|
|
2439
|
-
});
|
|
2440
|
-
}
|
|
2441
|
-
// @__NO_SIDE_EFFECTS__
|
|
2442
|
-
function _isoTime(Class, params) {
|
|
2443
|
-
return new Class({
|
|
2444
|
-
type: "string",
|
|
2445
|
-
format: "time",
|
|
2446
|
-
check: "string_format",
|
|
2447
|
-
precision: null,
|
|
2448
|
-
...normalizeParams(params)
|
|
2449
|
-
});
|
|
2450
|
-
}
|
|
2451
|
-
// @__NO_SIDE_EFFECTS__
|
|
2452
|
-
function _isoDuration(Class, params) {
|
|
2453
|
-
return new Class({
|
|
2454
|
-
type: "string",
|
|
2455
|
-
format: "duration",
|
|
2456
|
-
check: "string_format",
|
|
2457
|
-
...normalizeParams(params)
|
|
2458
|
-
});
|
|
2459
|
-
}
|
|
2460
|
-
// @__NO_SIDE_EFFECTS__
|
|
2461
|
-
function _number(Class, params) {
|
|
2462
|
-
return new Class({
|
|
2463
|
-
type: "number",
|
|
2464
|
-
checks: [],
|
|
2465
|
-
...normalizeParams(params)
|
|
2466
|
-
});
|
|
2467
|
-
}
|
|
2468
|
-
// @__NO_SIDE_EFFECTS__
|
|
2469
|
-
function _int(Class, params) {
|
|
2470
|
-
return new Class({
|
|
2471
|
-
type: "number",
|
|
2472
|
-
check: "number_format",
|
|
2473
|
-
abort: false,
|
|
2474
|
-
format: "safeint",
|
|
2475
|
-
...normalizeParams(params)
|
|
2476
|
-
});
|
|
2477
|
-
}
|
|
2478
|
-
// @__NO_SIDE_EFFECTS__
|
|
2479
|
-
function _boolean(Class, params) {
|
|
2480
|
-
return new Class({
|
|
2481
|
-
type: "boolean",
|
|
2482
|
-
...normalizeParams(params)
|
|
2483
|
-
});
|
|
2484
|
-
}
|
|
2485
|
-
// @__NO_SIDE_EFFECTS__
|
|
2486
|
-
function _unknown(Class) {
|
|
2487
|
-
return new Class({ type: "unknown" });
|
|
2488
|
-
}
|
|
2489
|
-
// @__NO_SIDE_EFFECTS__
|
|
2490
|
-
function _never(Class, params) {
|
|
2491
|
-
return new Class({
|
|
2492
|
-
type: "never",
|
|
2493
|
-
...normalizeParams(params)
|
|
2494
|
-
});
|
|
2495
|
-
}
|
|
2496
|
-
// @__NO_SIDE_EFFECTS__
|
|
2497
|
-
function _lt(value, params) {
|
|
2498
|
-
return new $ZodCheckLessThan({
|
|
2499
|
-
check: "less_than",
|
|
2500
|
-
...normalizeParams(params),
|
|
2501
|
-
value,
|
|
2502
|
-
inclusive: false
|
|
2503
|
-
});
|
|
2504
|
-
}
|
|
2505
|
-
// @__NO_SIDE_EFFECTS__
|
|
2506
|
-
function _lte(value, params) {
|
|
2507
|
-
return new $ZodCheckLessThan({
|
|
2508
|
-
check: "less_than",
|
|
2509
|
-
...normalizeParams(params),
|
|
2510
|
-
value,
|
|
2511
|
-
inclusive: true
|
|
2512
|
-
});
|
|
2513
|
-
}
|
|
2514
|
-
// @__NO_SIDE_EFFECTS__
|
|
2515
|
-
function _gt(value, params) {
|
|
2516
|
-
return new $ZodCheckGreaterThan({
|
|
2517
|
-
check: "greater_than",
|
|
2518
|
-
...normalizeParams(params),
|
|
2519
|
-
value,
|
|
2520
|
-
inclusive: false
|
|
2521
|
-
});
|
|
2522
|
-
}
|
|
2523
|
-
// @__NO_SIDE_EFFECTS__
|
|
2524
|
-
function _gte(value, params) {
|
|
2525
|
-
return new $ZodCheckGreaterThan({
|
|
2526
|
-
check: "greater_than",
|
|
2527
|
-
...normalizeParams(params),
|
|
2528
|
-
value,
|
|
2529
|
-
inclusive: true
|
|
2530
|
-
});
|
|
2531
|
-
}
|
|
2532
|
-
// @__NO_SIDE_EFFECTS__
|
|
2533
|
-
function _multipleOf(value, params) {
|
|
2534
|
-
return new $ZodCheckMultipleOf({
|
|
2535
|
-
check: "multiple_of",
|
|
2536
|
-
...normalizeParams(params),
|
|
2537
|
-
value
|
|
2538
|
-
});
|
|
2539
|
-
}
|
|
2540
|
-
// @__NO_SIDE_EFFECTS__
|
|
2541
|
-
function _maxLength(maximum, params) {
|
|
2542
|
-
return new $ZodCheckMaxLength({
|
|
2543
|
-
check: "max_length",
|
|
2544
|
-
...normalizeParams(params),
|
|
2545
|
-
maximum
|
|
2546
|
-
});
|
|
2547
|
-
}
|
|
2548
|
-
// @__NO_SIDE_EFFECTS__
|
|
2549
|
-
function _minLength(minimum, params) {
|
|
2550
|
-
return new $ZodCheckMinLength({
|
|
2551
|
-
check: "min_length",
|
|
2552
|
-
...normalizeParams(params),
|
|
2553
|
-
minimum
|
|
2554
|
-
});
|
|
2555
|
-
}
|
|
2556
|
-
// @__NO_SIDE_EFFECTS__
|
|
2557
|
-
function _length(length, params) {
|
|
2558
|
-
return new $ZodCheckLengthEquals({
|
|
2559
|
-
check: "length_equals",
|
|
2560
|
-
...normalizeParams(params),
|
|
2561
|
-
length
|
|
2562
|
-
});
|
|
2563
|
-
}
|
|
2564
|
-
// @__NO_SIDE_EFFECTS__
|
|
2565
|
-
function _regex(pattern, params) {
|
|
2566
|
-
return new $ZodCheckRegex({
|
|
2567
|
-
check: "string_format",
|
|
2568
|
-
format: "regex",
|
|
2569
|
-
...normalizeParams(params),
|
|
2570
|
-
pattern
|
|
2571
|
-
});
|
|
2572
|
-
}
|
|
2573
|
-
// @__NO_SIDE_EFFECTS__
|
|
2574
|
-
function _lowercase(params) {
|
|
2575
|
-
return new $ZodCheckLowerCase({
|
|
2576
|
-
check: "string_format",
|
|
2577
|
-
format: "lowercase",
|
|
2578
|
-
...normalizeParams(params)
|
|
2579
|
-
});
|
|
2580
|
-
}
|
|
2581
|
-
// @__NO_SIDE_EFFECTS__
|
|
2582
|
-
function _uppercase(params) {
|
|
2583
|
-
return new $ZodCheckUpperCase({
|
|
2584
|
-
check: "string_format",
|
|
2585
|
-
format: "uppercase",
|
|
2586
|
-
...normalizeParams(params)
|
|
2587
|
-
});
|
|
2588
|
-
}
|
|
2589
|
-
// @__NO_SIDE_EFFECTS__
|
|
2590
|
-
function _includes(includes, params) {
|
|
2591
|
-
return new $ZodCheckIncludes({
|
|
2592
|
-
check: "string_format",
|
|
2593
|
-
format: "includes",
|
|
2594
|
-
...normalizeParams(params),
|
|
2595
|
-
includes
|
|
2596
|
-
});
|
|
2597
|
-
}
|
|
2598
|
-
// @__NO_SIDE_EFFECTS__
|
|
2599
|
-
function _startsWith(prefix, params) {
|
|
2600
|
-
return new $ZodCheckStartsWith({
|
|
2601
|
-
check: "string_format",
|
|
2602
|
-
format: "starts_with",
|
|
2603
|
-
...normalizeParams(params),
|
|
2604
|
-
prefix
|
|
2605
|
-
});
|
|
2606
|
-
}
|
|
2607
|
-
// @__NO_SIDE_EFFECTS__
|
|
2608
|
-
function _endsWith(suffix, params) {
|
|
2609
|
-
return new $ZodCheckEndsWith({
|
|
2610
|
-
check: "string_format",
|
|
2611
|
-
format: "ends_with",
|
|
2612
|
-
...normalizeParams(params),
|
|
2613
|
-
suffix
|
|
2614
|
-
});
|
|
2615
|
-
}
|
|
2616
|
-
// @__NO_SIDE_EFFECTS__
|
|
2617
|
-
function _overwrite(tx) {
|
|
2618
|
-
return new $ZodCheckOverwrite({
|
|
2619
|
-
check: "overwrite",
|
|
2620
|
-
tx
|
|
2621
|
-
});
|
|
2622
|
-
}
|
|
2623
|
-
// @__NO_SIDE_EFFECTS__
|
|
2624
|
-
function _normalize(form) {
|
|
2625
|
-
return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
|
|
2626
|
-
}
|
|
2627
|
-
// @__NO_SIDE_EFFECTS__
|
|
2628
|
-
function _trim() {
|
|
2629
|
-
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
2630
|
-
}
|
|
2631
|
-
// @__NO_SIDE_EFFECTS__
|
|
2632
|
-
function _toLowerCase() {
|
|
2633
|
-
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
2634
|
-
}
|
|
2635
|
-
// @__NO_SIDE_EFFECTS__
|
|
2636
|
-
function _toUpperCase() {
|
|
2637
|
-
return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
|
|
2638
|
-
}
|
|
2639
|
-
// @__NO_SIDE_EFFECTS__
|
|
2640
|
-
function _slugify() {
|
|
2641
|
-
return /* @__PURE__ */ _overwrite((input) => slugify(input));
|
|
2642
|
-
}
|
|
2643
|
-
// @__NO_SIDE_EFFECTS__
|
|
2644
|
-
function _array(Class, element, params) {
|
|
2645
|
-
return new Class({
|
|
2646
|
-
type: "array",
|
|
2647
|
-
element,
|
|
2648
|
-
...normalizeParams(params)
|
|
2649
|
-
});
|
|
2650
|
-
}
|
|
2651
|
-
// @__NO_SIDE_EFFECTS__
|
|
2652
|
-
function _refine(Class, fn, _params) {
|
|
2653
|
-
return new Class({
|
|
2654
|
-
type: "custom",
|
|
2655
|
-
check: "custom",
|
|
2656
|
-
fn,
|
|
2657
|
-
...normalizeParams(_params)
|
|
2658
|
-
});
|
|
2659
|
-
}
|
|
2660
|
-
// @__NO_SIDE_EFFECTS__
|
|
2661
|
-
function _superRefine(fn, params) {
|
|
2662
|
-
const ch = /* @__PURE__ */ _check((payload) => {
|
|
2663
|
-
payload.addIssue = (issue$2) => {
|
|
2664
|
-
if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def));
|
|
2665
|
-
else {
|
|
2666
|
-
const _issue = issue$2;
|
|
2667
|
-
if (_issue.fatal) _issue.continue = false;
|
|
2668
|
-
_issue.code ?? (_issue.code = "custom");
|
|
2669
|
-
_issue.input ?? (_issue.input = payload.value);
|
|
2670
|
-
_issue.inst ?? (_issue.inst = ch);
|
|
2671
|
-
_issue.continue ?? (_issue.continue = !ch._zod.def.abort);
|
|
2672
|
-
payload.issues.push(issue(_issue));
|
|
2673
|
-
}
|
|
2674
|
-
};
|
|
2675
|
-
return fn(payload.value, payload);
|
|
2676
|
-
}, params);
|
|
2677
|
-
return ch;
|
|
2678
|
-
}
|
|
2679
|
-
// @__NO_SIDE_EFFECTS__
|
|
2680
|
-
function _check(fn, params) {
|
|
2681
|
-
const ch = new $ZodCheck({
|
|
2682
|
-
check: "custom",
|
|
2683
|
-
...normalizeParams(params)
|
|
2684
|
-
});
|
|
2685
|
-
ch._zod.check = fn;
|
|
2686
|
-
return ch;
|
|
2687
|
-
}
|
|
2688
|
-
//#endregion
|
|
2689
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
2690
|
-
function initializeContext(params) {
|
|
2691
|
-
let target = params?.target ?? "draft-2020-12";
|
|
2692
|
-
if (target === "draft-4") target = "draft-04";
|
|
2693
|
-
if (target === "draft-7") target = "draft-07";
|
|
2694
|
-
return {
|
|
2695
|
-
processors: params.processors ?? {},
|
|
2696
|
-
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
2697
|
-
target,
|
|
2698
|
-
unrepresentable: params?.unrepresentable ?? "throw",
|
|
2699
|
-
override: params?.override ?? (() => {}),
|
|
2700
|
-
io: params?.io ?? "output",
|
|
2701
|
-
counter: 0,
|
|
2702
|
-
seen: /* @__PURE__ */ new Map(),
|
|
2703
|
-
cycles: params?.cycles ?? "ref",
|
|
2704
|
-
reused: params?.reused ?? "inline",
|
|
2705
|
-
external: params?.external ?? void 0
|
|
2706
|
-
};
|
|
2707
|
-
}
|
|
2708
|
-
function process(schema, ctx, _params = {
|
|
2709
|
-
path: [],
|
|
2710
|
-
schemaPath: []
|
|
2711
|
-
}) {
|
|
2712
|
-
var _a;
|
|
2713
|
-
const def = schema._zod.def;
|
|
2714
|
-
const seen = ctx.seen.get(schema);
|
|
2715
|
-
if (seen) {
|
|
2716
|
-
seen.count++;
|
|
2717
|
-
if (_params.schemaPath.includes(schema)) seen.cycle = _params.path;
|
|
2718
|
-
return seen.schema;
|
|
2719
|
-
}
|
|
2720
|
-
const result = {
|
|
2721
|
-
schema: {},
|
|
2722
|
-
count: 1,
|
|
2723
|
-
cycle: void 0,
|
|
2724
|
-
path: _params.path
|
|
2725
|
-
};
|
|
2726
|
-
ctx.seen.set(schema, result);
|
|
2727
|
-
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
2728
|
-
if (overrideSchema) result.schema = overrideSchema;
|
|
2729
|
-
else {
|
|
2730
|
-
const params = {
|
|
2731
|
-
..._params,
|
|
2732
|
-
schemaPath: [..._params.schemaPath, schema],
|
|
2733
|
-
path: _params.path
|
|
2734
|
-
};
|
|
2735
|
-
if (schema._zod.processJSONSchema) schema._zod.processJSONSchema(ctx, result.schema, params);
|
|
2736
|
-
else {
|
|
2737
|
-
const _json = result.schema;
|
|
2738
|
-
const processor = ctx.processors[def.type];
|
|
2739
|
-
if (!processor) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
|
|
2740
|
-
processor(schema, ctx, _json, params);
|
|
2741
|
-
}
|
|
2742
|
-
const parent = schema._zod.parent;
|
|
2743
|
-
if (parent) {
|
|
2744
|
-
if (!result.ref) result.ref = parent;
|
|
2745
|
-
process(parent, ctx, params);
|
|
2746
|
-
ctx.seen.get(parent).isParent = true;
|
|
2747
|
-
}
|
|
2748
|
-
}
|
|
2749
|
-
const meta = ctx.metadataRegistry.get(schema);
|
|
2750
|
-
if (meta) Object.assign(result.schema, meta);
|
|
2751
|
-
if (ctx.io === "input" && isTransforming(schema)) {
|
|
2752
|
-
delete result.schema.examples;
|
|
2753
|
-
delete result.schema.default;
|
|
2754
|
-
}
|
|
2755
|
-
if (ctx.io === "input" && "_prefault" in result.schema) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
|
|
2756
|
-
delete result.schema._prefault;
|
|
2757
|
-
return ctx.seen.get(schema).schema;
|
|
2758
|
-
}
|
|
2759
|
-
function extractDefs(ctx, schema) {
|
|
2760
|
-
const root = ctx.seen.get(schema);
|
|
2761
|
-
if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
2762
|
-
const idToSchema = /* @__PURE__ */ new Map();
|
|
2763
|
-
for (const entry of ctx.seen.entries()) {
|
|
2764
|
-
const id = ctx.metadataRegistry.get(entry[0])?.id;
|
|
2765
|
-
if (id) {
|
|
2766
|
-
const existing = idToSchema.get(id);
|
|
2767
|
-
if (existing && existing !== entry[0]) throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
|
|
2768
|
-
idToSchema.set(id, entry[0]);
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
|
-
const makeURI = (entry) => {
|
|
2772
|
-
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2773
|
-
if (ctx.external) {
|
|
2774
|
-
const externalId = ctx.external.registry.get(entry[0])?.id;
|
|
2775
|
-
const uriGenerator = ctx.external.uri ?? ((id) => id);
|
|
2776
|
-
if (externalId) return { ref: uriGenerator(externalId) };
|
|
2777
|
-
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
|
|
2778
|
-
entry[1].defId = id;
|
|
2779
|
-
return {
|
|
2780
|
-
defId: id,
|
|
2781
|
-
ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
|
|
2782
|
-
};
|
|
2783
|
-
}
|
|
2784
|
-
if (entry[1] === root) return { ref: "#" };
|
|
2785
|
-
const defUriPrefix = `#/${defsSegment}/`;
|
|
2786
|
-
const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;
|
|
2787
|
-
return {
|
|
2788
|
-
defId,
|
|
2789
|
-
ref: defUriPrefix + defId
|
|
2790
|
-
};
|
|
2791
|
-
};
|
|
2792
|
-
const extractToDef = (entry) => {
|
|
2793
|
-
if (entry[1].schema.$ref) return;
|
|
2794
|
-
const seen = entry[1];
|
|
2795
|
-
const { ref, defId } = makeURI(entry);
|
|
2796
|
-
seen.def = { ...seen.schema };
|
|
2797
|
-
if (defId) seen.defId = defId;
|
|
2798
|
-
const schema = seen.schema;
|
|
2799
|
-
for (const key in schema) delete schema[key];
|
|
2800
|
-
schema.$ref = ref;
|
|
2801
|
-
};
|
|
2802
|
-
if (ctx.cycles === "throw") for (const entry of ctx.seen.entries()) {
|
|
2803
|
-
const seen = entry[1];
|
|
2804
|
-
if (seen.cycle) throw new Error(`Cycle detected: #/${seen.cycle?.join("/")}/<root>
|
|
2805
|
-
|
|
2806
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
|
|
2807
|
-
}
|
|
2808
|
-
for (const entry of ctx.seen.entries()) {
|
|
2809
|
-
const seen = entry[1];
|
|
2810
|
-
if (schema === entry[0]) {
|
|
2811
|
-
extractToDef(entry);
|
|
2812
|
-
continue;
|
|
2813
|
-
}
|
|
2814
|
-
if (ctx.external) {
|
|
2815
|
-
const ext = ctx.external.registry.get(entry[0])?.id;
|
|
2816
|
-
if (schema !== entry[0] && ext) {
|
|
2817
|
-
extractToDef(entry);
|
|
2818
|
-
continue;
|
|
2819
|
-
}
|
|
2820
|
-
}
|
|
2821
|
-
if (ctx.metadataRegistry.get(entry[0])?.id) {
|
|
2822
|
-
extractToDef(entry);
|
|
2823
|
-
continue;
|
|
2824
|
-
}
|
|
2825
|
-
if (seen.cycle) {
|
|
2826
|
-
extractToDef(entry);
|
|
2827
|
-
continue;
|
|
2828
|
-
}
|
|
2829
|
-
if (seen.count > 1) {
|
|
2830
|
-
if (ctx.reused === "ref") {
|
|
2831
|
-
extractToDef(entry);
|
|
2832
|
-
continue;
|
|
2833
|
-
}
|
|
2834
|
-
}
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
function finalize(ctx, schema) {
|
|
2838
|
-
const root = ctx.seen.get(schema);
|
|
2839
|
-
if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
2840
|
-
const flattenRef = (zodSchema) => {
|
|
2841
|
-
const seen = ctx.seen.get(zodSchema);
|
|
2842
|
-
if (seen.ref === null) return;
|
|
2843
|
-
const schema = seen.def ?? seen.schema;
|
|
2844
|
-
const _cached = { ...schema };
|
|
2845
|
-
const ref = seen.ref;
|
|
2846
|
-
seen.ref = null;
|
|
2847
|
-
if (ref) {
|
|
2848
|
-
flattenRef(ref);
|
|
2849
|
-
const refSeen = ctx.seen.get(ref);
|
|
2850
|
-
const refSchema = refSeen.schema;
|
|
2851
|
-
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
2852
|
-
schema.allOf = schema.allOf ?? [];
|
|
2853
|
-
schema.allOf.push(refSchema);
|
|
2854
|
-
} else Object.assign(schema, refSchema);
|
|
2855
|
-
Object.assign(schema, _cached);
|
|
2856
|
-
if (zodSchema._zod.parent === ref) for (const key in schema) {
|
|
2857
|
-
if (key === "$ref" || key === "allOf") continue;
|
|
2858
|
-
if (!(key in _cached)) delete schema[key];
|
|
2859
|
-
}
|
|
2860
|
-
if (refSchema.$ref && refSeen.def) for (const key in schema) {
|
|
2861
|
-
if (key === "$ref" || key === "allOf") continue;
|
|
2862
|
-
if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) delete schema[key];
|
|
2863
|
-
}
|
|
2864
|
-
}
|
|
2865
|
-
const parent = zodSchema._zod.parent;
|
|
2866
|
-
if (parent && parent !== ref) {
|
|
2867
|
-
flattenRef(parent);
|
|
2868
|
-
const parentSeen = ctx.seen.get(parent);
|
|
2869
|
-
if (parentSeen?.schema.$ref) {
|
|
2870
|
-
schema.$ref = parentSeen.schema.$ref;
|
|
2871
|
-
if (parentSeen.def) for (const key in schema) {
|
|
2872
|
-
if (key === "$ref" || key === "allOf") continue;
|
|
2873
|
-
if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) delete schema[key];
|
|
2874
|
-
}
|
|
2875
|
-
}
|
|
2876
|
-
}
|
|
2877
|
-
ctx.override({
|
|
2878
|
-
zodSchema,
|
|
2879
|
-
jsonSchema: schema,
|
|
2880
|
-
path: seen.path ?? []
|
|
2881
|
-
});
|
|
2882
|
-
};
|
|
2883
|
-
for (const entry of [...ctx.seen.entries()].reverse()) flattenRef(entry[0]);
|
|
2884
|
-
const result = {};
|
|
2885
|
-
if (ctx.target === "draft-2020-12") result.$schema = "https://json-schema.org/draft/2020-12/schema";
|
|
2886
|
-
else if (ctx.target === "draft-07") result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
2887
|
-
else if (ctx.target === "draft-04") result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
2888
|
-
else if (ctx.target === "openapi-3.0") {}
|
|
2889
|
-
if (ctx.external?.uri) {
|
|
2890
|
-
const id = ctx.external.registry.get(schema)?.id;
|
|
2891
|
-
if (!id) throw new Error("Schema is missing an `id` property");
|
|
2892
|
-
result.$id = ctx.external.uri(id);
|
|
2893
|
-
}
|
|
2894
|
-
Object.assign(result, root.def ?? root.schema);
|
|
2895
|
-
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
2896
|
-
if (rootMetaId !== void 0 && result.id === rootMetaId) delete result.id;
|
|
2897
|
-
const defs = ctx.external?.defs ?? {};
|
|
2898
|
-
for (const entry of ctx.seen.entries()) {
|
|
2899
|
-
const seen = entry[1];
|
|
2900
|
-
if (seen.def && seen.defId) {
|
|
2901
|
-
if (seen.def.id === seen.defId) delete seen.def.id;
|
|
2902
|
-
defs[seen.defId] = seen.def;
|
|
2903
|
-
}
|
|
2904
|
-
}
|
|
2905
|
-
if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
|
|
2906
|
-
else result.definitions = defs;
|
|
2907
|
-
try {
|
|
2908
|
-
const finalized = JSON.parse(JSON.stringify(result));
|
|
2909
|
-
Object.defineProperty(finalized, "~standard", {
|
|
2910
|
-
value: {
|
|
2911
|
-
...schema["~standard"],
|
|
2912
|
-
jsonSchema: {
|
|
2913
|
-
input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
|
|
2914
|
-
output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
|
|
2915
|
-
}
|
|
2916
|
-
},
|
|
2917
|
-
enumerable: false,
|
|
2918
|
-
writable: false
|
|
2919
|
-
});
|
|
2920
|
-
return finalized;
|
|
2921
|
-
} catch (_err) {
|
|
2922
|
-
throw new Error("Error converting schema to JSON.");
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
function isTransforming(_schema, _ctx) {
|
|
2926
|
-
const ctx = _ctx ?? { seen: /* @__PURE__ */ new Set() };
|
|
2927
|
-
if (ctx.seen.has(_schema)) return false;
|
|
2928
|
-
ctx.seen.add(_schema);
|
|
2929
|
-
const def = _schema._zod.def;
|
|
2930
|
-
if (def.type === "transform") return true;
|
|
2931
|
-
if (def.type === "array") return isTransforming(def.element, ctx);
|
|
2932
|
-
if (def.type === "set") return isTransforming(def.valueType, ctx);
|
|
2933
|
-
if (def.type === "lazy") return isTransforming(def.getter(), ctx);
|
|
2934
|
-
if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") return isTransforming(def.innerType, ctx);
|
|
2935
|
-
if (def.type === "intersection") return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
2936
|
-
if (def.type === "record" || def.type === "map") return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
2937
|
-
if (def.type === "pipe") {
|
|
2938
|
-
if (_schema._zod.traits.has("$ZodCodec")) return true;
|
|
2939
|
-
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
2940
|
-
}
|
|
2941
|
-
if (def.type === "object") {
|
|
2942
|
-
for (const key in def.shape) if (isTransforming(def.shape[key], ctx)) return true;
|
|
2943
|
-
return false;
|
|
2944
|
-
}
|
|
2945
|
-
if (def.type === "union") {
|
|
2946
|
-
for (const option of def.options) if (isTransforming(option, ctx)) return true;
|
|
2947
|
-
return false;
|
|
2948
|
-
}
|
|
2949
|
-
if (def.type === "tuple") {
|
|
2950
|
-
for (const item of def.items) if (isTransforming(item, ctx)) return true;
|
|
2951
|
-
if (def.rest && isTransforming(def.rest, ctx)) return true;
|
|
2952
|
-
return false;
|
|
2953
|
-
}
|
|
2954
|
-
return false;
|
|
2955
|
-
}
|
|
2956
|
-
/**
|
|
2957
|
-
* Creates a toJSONSchema method for a schema instance.
|
|
2958
|
-
* This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
|
|
2959
|
-
*/
|
|
2960
|
-
const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
2961
|
-
const ctx = initializeContext({
|
|
2962
|
-
...params,
|
|
2963
|
-
processors
|
|
2964
|
-
});
|
|
2965
|
-
process(schema, ctx);
|
|
2966
|
-
extractDefs(ctx, schema);
|
|
2967
|
-
return finalize(ctx, schema);
|
|
2968
|
-
};
|
|
2969
|
-
const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
2970
|
-
const { libraryOptions, target } = params ?? {};
|
|
2971
|
-
const ctx = initializeContext({
|
|
2972
|
-
...libraryOptions ?? {},
|
|
2973
|
-
target,
|
|
2974
|
-
io,
|
|
2975
|
-
processors
|
|
2976
|
-
});
|
|
2977
|
-
process(schema, ctx);
|
|
2978
|
-
extractDefs(ctx, schema);
|
|
2979
|
-
return finalize(ctx, schema);
|
|
2980
|
-
};
|
|
2981
|
-
//#endregion
|
|
2982
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
2983
|
-
const formatMap = {
|
|
2984
|
-
guid: "uuid",
|
|
2985
|
-
url: "uri",
|
|
2986
|
-
datetime: "date-time",
|
|
2987
|
-
json_string: "json-string",
|
|
2988
|
-
regex: ""
|
|
2989
|
-
};
|
|
2990
|
-
const stringProcessor = (schema, ctx, _json, _params) => {
|
|
2991
|
-
const json = _json;
|
|
2992
|
-
json.type = "string";
|
|
2993
|
-
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
2994
|
-
if (typeof minimum === "number") json.minLength = minimum;
|
|
2995
|
-
if (typeof maximum === "number") json.maxLength = maximum;
|
|
2996
|
-
if (format) {
|
|
2997
|
-
json.format = formatMap[format] ?? format;
|
|
2998
|
-
if (json.format === "") delete json.format;
|
|
2999
|
-
if (format === "time") delete json.format;
|
|
3000
|
-
}
|
|
3001
|
-
if (contentEncoding) json.contentEncoding = contentEncoding;
|
|
3002
|
-
if (patterns && patterns.size > 0) {
|
|
3003
|
-
const regexes = [...patterns];
|
|
3004
|
-
if (regexes.length === 1) json.pattern = regexes[0].source;
|
|
3005
|
-
else if (regexes.length > 1) json.allOf = [...regexes.map((regex) => ({
|
|
3006
|
-
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
3007
|
-
pattern: regex.source
|
|
3008
|
-
}))];
|
|
3009
|
-
}
|
|
3010
|
-
};
|
|
3011
|
-
const numberProcessor = (schema, ctx, _json, _params) => {
|
|
3012
|
-
const json = _json;
|
|
3013
|
-
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
3014
|
-
if (typeof format === "string" && format.includes("int")) json.type = "integer";
|
|
3015
|
-
else json.type = "number";
|
|
3016
|
-
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
3017
|
-
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
3018
|
-
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
3019
|
-
if (exMin) if (legacy) {
|
|
3020
|
-
json.minimum = exclusiveMinimum;
|
|
3021
|
-
json.exclusiveMinimum = true;
|
|
3022
|
-
} else json.exclusiveMinimum = exclusiveMinimum;
|
|
3023
|
-
else if (typeof minimum === "number") json.minimum = minimum;
|
|
3024
|
-
if (exMax) if (legacy) {
|
|
3025
|
-
json.maximum = exclusiveMaximum;
|
|
3026
|
-
json.exclusiveMaximum = true;
|
|
3027
|
-
} else json.exclusiveMaximum = exclusiveMaximum;
|
|
3028
|
-
else if (typeof maximum === "number") json.maximum = maximum;
|
|
3029
|
-
if (typeof multipleOf === "number") json.multipleOf = multipleOf;
|
|
3030
|
-
};
|
|
3031
|
-
const booleanProcessor = (_schema, _ctx, json, _params) => {
|
|
3032
|
-
json.type = "boolean";
|
|
3033
|
-
};
|
|
3034
|
-
const neverProcessor = (_schema, _ctx, json, _params) => {
|
|
3035
|
-
json.not = {};
|
|
3036
|
-
};
|
|
3037
|
-
const enumProcessor = (schema, _ctx, json, _params) => {
|
|
3038
|
-
const def = schema._zod.def;
|
|
3039
|
-
const values = getEnumValues(def.entries);
|
|
3040
|
-
if (values.every((v) => typeof v === "number")) json.type = "number";
|
|
3041
|
-
if (values.every((v) => typeof v === "string")) json.type = "string";
|
|
3042
|
-
json.enum = values;
|
|
3043
|
-
};
|
|
3044
|
-
const literalProcessor = (schema, ctx, json, _params) => {
|
|
3045
|
-
const def = schema._zod.def;
|
|
3046
|
-
const vals = [];
|
|
3047
|
-
for (const val of def.values) if (val === void 0) {
|
|
3048
|
-
if (ctx.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
3049
|
-
} else if (typeof val === "bigint") if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
3050
|
-
else vals.push(Number(val));
|
|
3051
|
-
else vals.push(val);
|
|
3052
|
-
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
3053
|
-
const val = vals[0];
|
|
3054
|
-
json.type = val === null ? "null" : typeof val;
|
|
3055
|
-
if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") json.enum = [val];
|
|
3056
|
-
else json.const = val;
|
|
3057
|
-
} else {
|
|
3058
|
-
if (vals.every((v) => typeof v === "number")) json.type = "number";
|
|
3059
|
-
if (vals.every((v) => typeof v === "string")) json.type = "string";
|
|
3060
|
-
if (vals.every((v) => typeof v === "boolean")) json.type = "boolean";
|
|
3061
|
-
if (vals.every((v) => v === null)) json.type = "null";
|
|
3062
|
-
json.enum = vals;
|
|
3063
|
-
}
|
|
3064
|
-
};
|
|
3065
|
-
const customProcessor = (_schema, ctx, _json, _params) => {
|
|
3066
|
-
if (ctx.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema");
|
|
3067
|
-
};
|
|
3068
|
-
const transformProcessor = (_schema, ctx, _json, _params) => {
|
|
3069
|
-
if (ctx.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema");
|
|
3070
|
-
};
|
|
3071
|
-
const arrayProcessor = (schema, ctx, _json, params) => {
|
|
3072
|
-
const json = _json;
|
|
3073
|
-
const def = schema._zod.def;
|
|
3074
|
-
const { minimum, maximum } = schema._zod.bag;
|
|
3075
|
-
if (typeof minimum === "number") json.minItems = minimum;
|
|
3076
|
-
if (typeof maximum === "number") json.maxItems = maximum;
|
|
3077
|
-
json.type = "array";
|
|
3078
|
-
json.items = process(def.element, ctx, {
|
|
3079
|
-
...params,
|
|
3080
|
-
path: [...params.path, "items"]
|
|
3081
|
-
});
|
|
3082
|
-
};
|
|
3083
|
-
const objectProcessor = (schema, ctx, _json, params) => {
|
|
3084
|
-
const json = _json;
|
|
3085
|
-
const def = schema._zod.def;
|
|
3086
|
-
json.type = "object";
|
|
3087
|
-
json.properties = {};
|
|
3088
|
-
const shape = def.shape;
|
|
3089
|
-
for (const key in shape) json.properties[key] = process(shape[key], ctx, {
|
|
3090
|
-
...params,
|
|
3091
|
-
path: [
|
|
3092
|
-
...params.path,
|
|
3093
|
-
"properties",
|
|
3094
|
-
key
|
|
3095
|
-
]
|
|
3096
|
-
});
|
|
3097
|
-
const allKeys = new Set(Object.keys(shape));
|
|
3098
|
-
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
3099
|
-
const v = def.shape[key]._zod;
|
|
3100
|
-
if (ctx.io === "input") return v.optin === void 0;
|
|
3101
|
-
else return v.optout === void 0;
|
|
3102
|
-
}));
|
|
3103
|
-
if (requiredKeys.size > 0) json.required = Array.from(requiredKeys);
|
|
3104
|
-
if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
|
|
3105
|
-
else if (!def.catchall) {
|
|
3106
|
-
if (ctx.io === "output") json.additionalProperties = false;
|
|
3107
|
-
} else if (def.catchall) json.additionalProperties = process(def.catchall, ctx, {
|
|
3108
|
-
...params,
|
|
3109
|
-
path: [...params.path, "additionalProperties"]
|
|
3110
|
-
});
|
|
3111
|
-
};
|
|
3112
|
-
const unionProcessor = (schema, ctx, json, params) => {
|
|
3113
|
-
const def = schema._zod.def;
|
|
3114
|
-
const isExclusive = def.inclusive === false;
|
|
3115
|
-
const options = def.options.map((x, i) => process(x, ctx, {
|
|
3116
|
-
...params,
|
|
3117
|
-
path: [
|
|
3118
|
-
...params.path,
|
|
3119
|
-
isExclusive ? "oneOf" : "anyOf",
|
|
3120
|
-
i
|
|
3121
|
-
]
|
|
3122
|
-
}));
|
|
3123
|
-
if (isExclusive) json.oneOf = options;
|
|
3124
|
-
else json.anyOf = options;
|
|
3125
|
-
};
|
|
3126
|
-
const intersectionProcessor = (schema, ctx, json, params) => {
|
|
3127
|
-
const def = schema._zod.def;
|
|
3128
|
-
const a = process(def.left, ctx, {
|
|
3129
|
-
...params,
|
|
3130
|
-
path: [
|
|
3131
|
-
...params.path,
|
|
3132
|
-
"allOf",
|
|
3133
|
-
0
|
|
3134
|
-
]
|
|
3135
|
-
});
|
|
3136
|
-
const b = process(def.right, ctx, {
|
|
3137
|
-
...params,
|
|
3138
|
-
path: [
|
|
3139
|
-
...params.path,
|
|
3140
|
-
"allOf",
|
|
3141
|
-
1
|
|
3142
|
-
]
|
|
3143
|
-
});
|
|
3144
|
-
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
3145
|
-
json.allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
3146
|
-
};
|
|
3147
|
-
const nullableProcessor = (schema, ctx, json, params) => {
|
|
3148
|
-
const def = schema._zod.def;
|
|
3149
|
-
const inner = process(def.innerType, ctx, params);
|
|
3150
|
-
const seen = ctx.seen.get(schema);
|
|
3151
|
-
if (ctx.target === "openapi-3.0") {
|
|
3152
|
-
seen.ref = def.innerType;
|
|
3153
|
-
json.nullable = true;
|
|
3154
|
-
} else json.anyOf = [inner, { type: "null" }];
|
|
3155
|
-
};
|
|
3156
|
-
const nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
3157
|
-
const def = schema._zod.def;
|
|
3158
|
-
process(def.innerType, ctx, params);
|
|
3159
|
-
const seen = ctx.seen.get(schema);
|
|
3160
|
-
seen.ref = def.innerType;
|
|
3161
|
-
};
|
|
3162
|
-
const defaultProcessor = (schema, ctx, json, params) => {
|
|
3163
|
-
const def = schema._zod.def;
|
|
3164
|
-
process(def.innerType, ctx, params);
|
|
3165
|
-
const seen = ctx.seen.get(schema);
|
|
3166
|
-
seen.ref = def.innerType;
|
|
3167
|
-
json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
3168
|
-
};
|
|
3169
|
-
const prefaultProcessor = (schema, ctx, json, params) => {
|
|
3170
|
-
const def = schema._zod.def;
|
|
3171
|
-
process(def.innerType, ctx, params);
|
|
3172
|
-
const seen = ctx.seen.get(schema);
|
|
3173
|
-
seen.ref = def.innerType;
|
|
3174
|
-
if (ctx.io === "input") json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
3175
|
-
};
|
|
3176
|
-
const catchProcessor = (schema, ctx, json, params) => {
|
|
3177
|
-
const def = schema._zod.def;
|
|
3178
|
-
process(def.innerType, ctx, params);
|
|
3179
|
-
const seen = ctx.seen.get(schema);
|
|
3180
|
-
seen.ref = def.innerType;
|
|
3181
|
-
let catchValue;
|
|
3182
|
-
try {
|
|
3183
|
-
catchValue = def.catchValue(void 0);
|
|
3184
|
-
} catch {
|
|
3185
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
3186
|
-
}
|
|
3187
|
-
json.default = catchValue;
|
|
3188
|
-
};
|
|
3189
|
-
const pipeProcessor = (schema, ctx, _json, params) => {
|
|
3190
|
-
const def = schema._zod.def;
|
|
3191
|
-
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
3192
|
-
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
3193
|
-
process(innerType, ctx, params);
|
|
3194
|
-
const seen = ctx.seen.get(schema);
|
|
3195
|
-
seen.ref = innerType;
|
|
3196
|
-
};
|
|
3197
|
-
const readonlyProcessor = (schema, ctx, json, params) => {
|
|
3198
|
-
const def = schema._zod.def;
|
|
3199
|
-
process(def.innerType, ctx, params);
|
|
3200
|
-
const seen = ctx.seen.get(schema);
|
|
3201
|
-
seen.ref = def.innerType;
|
|
3202
|
-
json.readOnly = true;
|
|
3203
|
-
};
|
|
3204
|
-
const optionalProcessor = (schema, ctx, _json, params) => {
|
|
3205
|
-
const def = schema._zod.def;
|
|
3206
|
-
process(def.innerType, ctx, params);
|
|
3207
|
-
const seen = ctx.seen.get(schema);
|
|
3208
|
-
seen.ref = def.innerType;
|
|
3209
|
-
};
|
|
3210
|
-
//#endregion
|
|
3211
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3212
|
-
const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
3213
|
-
$ZodISODateTime.init(inst, def);
|
|
3214
|
-
ZodStringFormat.init(inst, def);
|
|
3215
|
-
});
|
|
3216
|
-
function datetime(params) {
|
|
3217
|
-
return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
|
|
3218
|
-
}
|
|
3219
|
-
const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => {
|
|
3220
|
-
$ZodISODate.init(inst, def);
|
|
3221
|
-
ZodStringFormat.init(inst, def);
|
|
3222
|
-
});
|
|
3223
|
-
function date(params) {
|
|
3224
|
-
return /* @__PURE__ */ _isoDate(ZodISODate, params);
|
|
3225
|
-
}
|
|
3226
|
-
const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => {
|
|
3227
|
-
$ZodISOTime.init(inst, def);
|
|
3228
|
-
ZodStringFormat.init(inst, def);
|
|
3229
|
-
});
|
|
3230
|
-
function time(params) {
|
|
3231
|
-
return /* @__PURE__ */ _isoTime(ZodISOTime, params);
|
|
3232
|
-
}
|
|
3233
|
-
const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => {
|
|
3234
|
-
$ZodISODuration.init(inst, def);
|
|
3235
|
-
ZodStringFormat.init(inst, def);
|
|
3236
|
-
});
|
|
3237
|
-
function duration(params) {
|
|
3238
|
-
return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
|
|
3239
|
-
}
|
|
3240
|
-
//#endregion
|
|
3241
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
3242
|
-
const initializer = (inst, issues) => {
|
|
3243
|
-
$ZodError.init(inst, issues);
|
|
3244
|
-
inst.name = "ZodError";
|
|
3245
|
-
Object.defineProperties(inst, {
|
|
3246
|
-
format: { value: (mapper) => formatError(inst, mapper) },
|
|
3247
|
-
flatten: { value: (mapper) => flattenError(inst, mapper) },
|
|
3248
|
-
addIssue: { value: (issue) => {
|
|
3249
|
-
inst.issues.push(issue);
|
|
3250
|
-
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
3251
|
-
} },
|
|
3252
|
-
addIssues: { value: (issues) => {
|
|
3253
|
-
inst.issues.push(...issues);
|
|
3254
|
-
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
3255
|
-
} },
|
|
3256
|
-
isEmpty: { get() {
|
|
3257
|
-
return inst.issues.length === 0;
|
|
3258
|
-
} }
|
|
3259
|
-
});
|
|
3260
|
-
};
|
|
3261
|
-
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
|
|
3262
|
-
//#endregion
|
|
3263
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3264
|
-
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
3265
|
-
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
3266
|
-
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
3267
|
-
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
3268
|
-
const encode = /* @__PURE__ */ _encode(ZodRealError);
|
|
3269
|
-
const decode = /* @__PURE__ */ _decode(ZodRealError);
|
|
3270
|
-
const encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
|
|
3271
|
-
const decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
|
|
3272
|
-
const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
3273
|
-
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
3274
|
-
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
3275
|
-
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
3276
|
-
//#endregion
|
|
3277
|
-
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
3278
|
-
const _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
3279
|
-
function _installLazyMethods(inst, group, methods) {
|
|
3280
|
-
const proto = Object.getPrototypeOf(inst);
|
|
3281
|
-
let installed = _installedGroups.get(proto);
|
|
3282
|
-
if (!installed) {
|
|
3283
|
-
installed = /* @__PURE__ */ new Set();
|
|
3284
|
-
_installedGroups.set(proto, installed);
|
|
3285
|
-
}
|
|
3286
|
-
if (installed.has(group)) return;
|
|
3287
|
-
installed.add(group);
|
|
3288
|
-
for (const key in methods) {
|
|
3289
|
-
const fn = methods[key];
|
|
3290
|
-
Object.defineProperty(proto, key, {
|
|
3291
|
-
configurable: true,
|
|
3292
|
-
enumerable: false,
|
|
3293
|
-
get() {
|
|
3294
|
-
const bound = fn.bind(this);
|
|
3295
|
-
Object.defineProperty(this, key, {
|
|
3296
|
-
configurable: true,
|
|
3297
|
-
writable: true,
|
|
3298
|
-
enumerable: true,
|
|
3299
|
-
value: bound
|
|
3300
|
-
});
|
|
3301
|
-
return bound;
|
|
3302
|
-
},
|
|
3303
|
-
set(v) {
|
|
3304
|
-
Object.defineProperty(this, key, {
|
|
3305
|
-
configurable: true,
|
|
3306
|
-
writable: true,
|
|
3307
|
-
enumerable: true,
|
|
3308
|
-
value: v
|
|
3309
|
-
});
|
|
3310
|
-
}
|
|
3311
|
-
});
|
|
3312
|
-
}
|
|
3313
|
-
}
|
|
3314
|
-
const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
3315
|
-
$ZodType.init(inst, def);
|
|
3316
|
-
Object.assign(inst["~standard"], { jsonSchema: {
|
|
3317
|
-
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
3318
|
-
output: createStandardJSONSchemaMethod(inst, "output")
|
|
3319
|
-
} });
|
|
3320
|
-
inst.toJSONSchema = createToJSONSchemaMethod(inst, {});
|
|
3321
|
-
inst.def = def;
|
|
3322
|
-
inst.type = def.type;
|
|
3323
|
-
Object.defineProperty(inst, "_def", { value: def });
|
|
3324
|
-
inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
|
|
3325
|
-
inst.safeParse = (data, params) => safeParse(inst, data, params);
|
|
3326
|
-
inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
3327
|
-
inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
|
|
3328
|
-
inst.spa = inst.safeParseAsync;
|
|
3329
|
-
inst.encode = (data, params) => encode(inst, data, params);
|
|
3330
|
-
inst.decode = (data, params) => decode(inst, data, params);
|
|
3331
|
-
inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
|
|
3332
|
-
inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
|
|
3333
|
-
inst.safeEncode = (data, params) => safeEncode(inst, data, params);
|
|
3334
|
-
inst.safeDecode = (data, params) => safeDecode(inst, data, params);
|
|
3335
|
-
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
|
|
3336
|
-
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
|
|
3337
|
-
_installLazyMethods(inst, "ZodType", {
|
|
3338
|
-
check(...chks) {
|
|
3339
|
-
const def = this.def;
|
|
3340
|
-
return this.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...chks.map((ch) => typeof ch === "function" ? { _zod: {
|
|
3341
|
-
check: ch,
|
|
3342
|
-
def: { check: "custom" },
|
|
3343
|
-
onattach: []
|
|
3344
|
-
} } : ch)] }), { parent: true });
|
|
3345
|
-
},
|
|
3346
|
-
with(...chks) {
|
|
3347
|
-
return this.check(...chks);
|
|
3348
|
-
},
|
|
3349
|
-
clone(def, params) {
|
|
3350
|
-
return clone(this, def, params);
|
|
3351
|
-
},
|
|
3352
|
-
brand() {
|
|
3353
|
-
return this;
|
|
3354
|
-
},
|
|
3355
|
-
register(reg, meta) {
|
|
3356
|
-
reg.add(this, meta);
|
|
3357
|
-
return this;
|
|
3358
|
-
},
|
|
3359
|
-
refine(check, params) {
|
|
3360
|
-
return this.check(refine(check, params));
|
|
3361
|
-
},
|
|
3362
|
-
superRefine(refinement, params) {
|
|
3363
|
-
return this.check(superRefine(refinement, params));
|
|
3364
|
-
},
|
|
3365
|
-
overwrite(fn) {
|
|
3366
|
-
return this.check(/* @__PURE__ */ _overwrite(fn));
|
|
3367
|
-
},
|
|
3368
|
-
optional() {
|
|
3369
|
-
return optional(this);
|
|
3370
|
-
},
|
|
3371
|
-
exactOptional() {
|
|
3372
|
-
return exactOptional(this);
|
|
3373
|
-
},
|
|
3374
|
-
nullable() {
|
|
3375
|
-
return nullable(this);
|
|
3376
|
-
},
|
|
3377
|
-
nullish() {
|
|
3378
|
-
return optional(nullable(this));
|
|
3379
|
-
},
|
|
3380
|
-
nonoptional(params) {
|
|
3381
|
-
return nonoptional(this, params);
|
|
3382
|
-
},
|
|
3383
|
-
array() {
|
|
3384
|
-
return array(this);
|
|
3385
|
-
},
|
|
3386
|
-
or(arg) {
|
|
3387
|
-
return union([this, arg]);
|
|
3388
|
-
},
|
|
3389
|
-
and(arg) {
|
|
3390
|
-
return intersection(this, arg);
|
|
3391
|
-
},
|
|
3392
|
-
transform(tx) {
|
|
3393
|
-
return pipe(this, transform(tx));
|
|
3394
|
-
},
|
|
3395
|
-
default(d) {
|
|
3396
|
-
return _default(this, d);
|
|
3397
|
-
},
|
|
3398
|
-
prefault(d) {
|
|
3399
|
-
return prefault(this, d);
|
|
3400
|
-
},
|
|
3401
|
-
catch(params) {
|
|
3402
|
-
return _catch(this, params);
|
|
3403
|
-
},
|
|
3404
|
-
pipe(target) {
|
|
3405
|
-
return pipe(this, target);
|
|
3406
|
-
},
|
|
3407
|
-
readonly() {
|
|
3408
|
-
return readonly(this);
|
|
3409
|
-
},
|
|
3410
|
-
describe(description) {
|
|
3411
|
-
const cl = this.clone();
|
|
3412
|
-
globalRegistry.add(cl, { description });
|
|
3413
|
-
return cl;
|
|
3414
|
-
},
|
|
3415
|
-
meta(...args) {
|
|
3416
|
-
if (args.length === 0) return globalRegistry.get(this);
|
|
3417
|
-
const cl = this.clone();
|
|
3418
|
-
globalRegistry.add(cl, args[0]);
|
|
3419
|
-
return cl;
|
|
3420
|
-
},
|
|
3421
|
-
isOptional() {
|
|
3422
|
-
return this.safeParse(void 0).success;
|
|
3423
|
-
},
|
|
3424
|
-
isNullable() {
|
|
3425
|
-
return this.safeParse(null).success;
|
|
3426
|
-
},
|
|
3427
|
-
apply(fn) {
|
|
3428
|
-
return fn(this);
|
|
3429
|
-
}
|
|
3430
|
-
});
|
|
3431
|
-
Object.defineProperty(inst, "description", {
|
|
3432
|
-
get() {
|
|
3433
|
-
return globalRegistry.get(inst)?.description;
|
|
3434
|
-
},
|
|
3435
|
-
configurable: true
|
|
3436
|
-
});
|
|
3437
|
-
return inst;
|
|
3438
|
-
});
|
|
3439
|
-
/** @internal */
|
|
3440
|
-
const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
|
|
3441
|
-
$ZodString.init(inst, def);
|
|
3442
|
-
ZodType.init(inst, def);
|
|
3443
|
-
inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
|
|
3444
|
-
const bag = inst._zod.bag;
|
|
3445
|
-
inst.format = bag.format ?? null;
|
|
3446
|
-
inst.minLength = bag.minimum ?? null;
|
|
3447
|
-
inst.maxLength = bag.maximum ?? null;
|
|
3448
|
-
_installLazyMethods(inst, "_ZodString", {
|
|
3449
|
-
regex(...args) {
|
|
3450
|
-
return this.check(/* @__PURE__ */ _regex(...args));
|
|
3451
|
-
},
|
|
3452
|
-
includes(...args) {
|
|
3453
|
-
return this.check(/* @__PURE__ */ _includes(...args));
|
|
3454
|
-
},
|
|
3455
|
-
startsWith(...args) {
|
|
3456
|
-
return this.check(/* @__PURE__ */ _startsWith(...args));
|
|
3457
|
-
},
|
|
3458
|
-
endsWith(...args) {
|
|
3459
|
-
return this.check(/* @__PURE__ */ _endsWith(...args));
|
|
3460
|
-
},
|
|
3461
|
-
min(...args) {
|
|
3462
|
-
return this.check(/* @__PURE__ */ _minLength(...args));
|
|
3463
|
-
},
|
|
3464
|
-
max(...args) {
|
|
3465
|
-
return this.check(/* @__PURE__ */ _maxLength(...args));
|
|
3466
|
-
},
|
|
3467
|
-
length(...args) {
|
|
3468
|
-
return this.check(/* @__PURE__ */ _length(...args));
|
|
3469
|
-
},
|
|
3470
|
-
nonempty(...args) {
|
|
3471
|
-
return this.check(/* @__PURE__ */ _minLength(1, ...args));
|
|
3472
|
-
},
|
|
3473
|
-
lowercase(params) {
|
|
3474
|
-
return this.check(/* @__PURE__ */ _lowercase(params));
|
|
3475
|
-
},
|
|
3476
|
-
uppercase(params) {
|
|
3477
|
-
return this.check(/* @__PURE__ */ _uppercase(params));
|
|
3478
|
-
},
|
|
3479
|
-
trim() {
|
|
3480
|
-
return this.check(/* @__PURE__ */ _trim());
|
|
3481
|
-
},
|
|
3482
|
-
normalize(...args) {
|
|
3483
|
-
return this.check(/* @__PURE__ */ _normalize(...args));
|
|
3484
|
-
},
|
|
3485
|
-
toLowerCase() {
|
|
3486
|
-
return this.check(/* @__PURE__ */ _toLowerCase());
|
|
3487
|
-
},
|
|
3488
|
-
toUpperCase() {
|
|
3489
|
-
return this.check(/* @__PURE__ */ _toUpperCase());
|
|
3490
|
-
},
|
|
3491
|
-
slugify() {
|
|
3492
|
-
return this.check(/* @__PURE__ */ _slugify());
|
|
3493
|
-
}
|
|
3494
|
-
});
|
|
3495
|
-
});
|
|
3496
|
-
const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
|
|
3497
|
-
$ZodString.init(inst, def);
|
|
3498
|
-
_ZodString.init(inst, def);
|
|
3499
|
-
inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
|
|
3500
|
-
inst.url = (params) => inst.check(/* @__PURE__ */ _url(ZodURL, params));
|
|
3501
|
-
inst.jwt = (params) => inst.check(/* @__PURE__ */ _jwt(ZodJWT, params));
|
|
3502
|
-
inst.emoji = (params) => inst.check(/* @__PURE__ */ _emoji(ZodEmoji, params));
|
|
3503
|
-
inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
|
|
3504
|
-
inst.uuid = (params) => inst.check(/* @__PURE__ */ _uuid(ZodUUID, params));
|
|
3505
|
-
inst.uuidv4 = (params) => inst.check(/* @__PURE__ */ _uuidv4(ZodUUID, params));
|
|
3506
|
-
inst.uuidv6 = (params) => inst.check(/* @__PURE__ */ _uuidv6(ZodUUID, params));
|
|
3507
|
-
inst.uuidv7 = (params) => inst.check(/* @__PURE__ */ _uuidv7(ZodUUID, params));
|
|
3508
|
-
inst.nanoid = (params) => inst.check(/* @__PURE__ */ _nanoid(ZodNanoID, params));
|
|
3509
|
-
inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
|
|
3510
|
-
inst.cuid = (params) => inst.check(/* @__PURE__ */ _cuid(ZodCUID, params));
|
|
3511
|
-
inst.cuid2 = (params) => inst.check(/* @__PURE__ */ _cuid2(ZodCUID2, params));
|
|
3512
|
-
inst.ulid = (params) => inst.check(/* @__PURE__ */ _ulid(ZodULID, params));
|
|
3513
|
-
inst.base64 = (params) => inst.check(/* @__PURE__ */ _base64(ZodBase64, params));
|
|
3514
|
-
inst.base64url = (params) => inst.check(/* @__PURE__ */ _base64url(ZodBase64URL, params));
|
|
3515
|
-
inst.xid = (params) => inst.check(/* @__PURE__ */ _xid(ZodXID, params));
|
|
3516
|
-
inst.ksuid = (params) => inst.check(/* @__PURE__ */ _ksuid(ZodKSUID, params));
|
|
3517
|
-
inst.ipv4 = (params) => inst.check(/* @__PURE__ */ _ipv4(ZodIPv4, params));
|
|
3518
|
-
inst.ipv6 = (params) => inst.check(/* @__PURE__ */ _ipv6(ZodIPv6, params));
|
|
3519
|
-
inst.cidrv4 = (params) => inst.check(/* @__PURE__ */ _cidrv4(ZodCIDRv4, params));
|
|
3520
|
-
inst.cidrv6 = (params) => inst.check(/* @__PURE__ */ _cidrv6(ZodCIDRv6, params));
|
|
3521
|
-
inst.e164 = (params) => inst.check(/* @__PURE__ */ _e164(ZodE164, params));
|
|
3522
|
-
inst.datetime = (params) => inst.check(datetime(params));
|
|
3523
|
-
inst.date = (params) => inst.check(date(params));
|
|
3524
|
-
inst.time = (params) => inst.check(time(params));
|
|
3525
|
-
inst.duration = (params) => inst.check(duration(params));
|
|
3526
|
-
});
|
|
3527
|
-
function string(params) {
|
|
3528
|
-
return /* @__PURE__ */ _string(ZodString, params);
|
|
3529
|
-
}
|
|
3530
|
-
const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
|
|
3531
|
-
$ZodStringFormat.init(inst, def);
|
|
3532
|
-
_ZodString.init(inst, def);
|
|
3533
|
-
});
|
|
3534
|
-
const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
|
|
3535
|
-
$ZodEmail.init(inst, def);
|
|
3536
|
-
ZodStringFormat.init(inst, def);
|
|
3537
|
-
});
|
|
3538
|
-
const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
|
|
3539
|
-
$ZodGUID.init(inst, def);
|
|
3540
|
-
ZodStringFormat.init(inst, def);
|
|
3541
|
-
});
|
|
3542
|
-
const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
|
|
3543
|
-
$ZodUUID.init(inst, def);
|
|
3544
|
-
ZodStringFormat.init(inst, def);
|
|
3545
|
-
});
|
|
3546
|
-
const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
|
|
3547
|
-
$ZodURL.init(inst, def);
|
|
3548
|
-
ZodStringFormat.init(inst, def);
|
|
3549
|
-
});
|
|
3550
|
-
const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
|
|
3551
|
-
$ZodEmoji.init(inst, def);
|
|
3552
|
-
ZodStringFormat.init(inst, def);
|
|
3553
|
-
});
|
|
3554
|
-
const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
|
|
3555
|
-
$ZodNanoID.init(inst, def);
|
|
3556
|
-
ZodStringFormat.init(inst, def);
|
|
3557
|
-
});
|
|
3558
|
-
/**
|
|
3559
|
-
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
3560
|
-
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
3561
|
-
* See https://github.com/paralleldrive/cuid.
|
|
3562
|
-
*/
|
|
3563
|
-
const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
|
|
3564
|
-
$ZodCUID.init(inst, def);
|
|
3565
|
-
ZodStringFormat.init(inst, def);
|
|
3566
|
-
});
|
|
3567
|
-
const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
|
|
3568
|
-
$ZodCUID2.init(inst, def);
|
|
3569
|
-
ZodStringFormat.init(inst, def);
|
|
3570
|
-
});
|
|
3571
|
-
const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
|
|
3572
|
-
$ZodULID.init(inst, def);
|
|
3573
|
-
ZodStringFormat.init(inst, def);
|
|
3574
|
-
});
|
|
3575
|
-
const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
|
|
3576
|
-
$ZodXID.init(inst, def);
|
|
3577
|
-
ZodStringFormat.init(inst, def);
|
|
3578
|
-
});
|
|
3579
|
-
const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
|
|
3580
|
-
$ZodKSUID.init(inst, def);
|
|
3581
|
-
ZodStringFormat.init(inst, def);
|
|
3582
|
-
});
|
|
3583
|
-
const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
|
|
3584
|
-
$ZodIPv4.init(inst, def);
|
|
3585
|
-
ZodStringFormat.init(inst, def);
|
|
3586
|
-
});
|
|
3587
|
-
const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
|
|
3588
|
-
$ZodIPv6.init(inst, def);
|
|
3589
|
-
ZodStringFormat.init(inst, def);
|
|
3590
|
-
});
|
|
3591
|
-
const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
|
|
3592
|
-
$ZodCIDRv4.init(inst, def);
|
|
3593
|
-
ZodStringFormat.init(inst, def);
|
|
3594
|
-
});
|
|
3595
|
-
const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
|
|
3596
|
-
$ZodCIDRv6.init(inst, def);
|
|
3597
|
-
ZodStringFormat.init(inst, def);
|
|
3598
|
-
});
|
|
3599
|
-
const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
|
|
3600
|
-
$ZodBase64.init(inst, def);
|
|
3601
|
-
ZodStringFormat.init(inst, def);
|
|
3602
|
-
});
|
|
3603
|
-
const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
|
|
3604
|
-
$ZodBase64URL.init(inst, def);
|
|
3605
|
-
ZodStringFormat.init(inst, def);
|
|
3606
|
-
});
|
|
3607
|
-
const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
|
|
3608
|
-
$ZodE164.init(inst, def);
|
|
3609
|
-
ZodStringFormat.init(inst, def);
|
|
3610
|
-
});
|
|
3611
|
-
const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
|
|
3612
|
-
$ZodJWT.init(inst, def);
|
|
3613
|
-
ZodStringFormat.init(inst, def);
|
|
3614
|
-
});
|
|
3615
|
-
const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
|
|
3616
|
-
$ZodNumber.init(inst, def);
|
|
3617
|
-
ZodType.init(inst, def);
|
|
3618
|
-
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
3619
|
-
_installLazyMethods(inst, "ZodNumber", {
|
|
3620
|
-
gt(value, params) {
|
|
3621
|
-
return this.check(/* @__PURE__ */ _gt(value, params));
|
|
3622
|
-
},
|
|
3623
|
-
gte(value, params) {
|
|
3624
|
-
return this.check(/* @__PURE__ */ _gte(value, params));
|
|
3625
|
-
},
|
|
3626
|
-
min(value, params) {
|
|
3627
|
-
return this.check(/* @__PURE__ */ _gte(value, params));
|
|
3628
|
-
},
|
|
3629
|
-
lt(value, params) {
|
|
3630
|
-
return this.check(/* @__PURE__ */ _lt(value, params));
|
|
3631
|
-
},
|
|
3632
|
-
lte(value, params) {
|
|
3633
|
-
return this.check(/* @__PURE__ */ _lte(value, params));
|
|
3634
|
-
},
|
|
3635
|
-
max(value, params) {
|
|
3636
|
-
return this.check(/* @__PURE__ */ _lte(value, params));
|
|
3637
|
-
},
|
|
3638
|
-
int(params) {
|
|
3639
|
-
return this.check(int(params));
|
|
3640
|
-
},
|
|
3641
|
-
safe(params) {
|
|
3642
|
-
return this.check(int(params));
|
|
3643
|
-
},
|
|
3644
|
-
positive(params) {
|
|
3645
|
-
return this.check(/* @__PURE__ */ _gt(0, params));
|
|
3646
|
-
},
|
|
3647
|
-
nonnegative(params) {
|
|
3648
|
-
return this.check(/* @__PURE__ */ _gte(0, params));
|
|
3649
|
-
},
|
|
3650
|
-
negative(params) {
|
|
3651
|
-
return this.check(/* @__PURE__ */ _lt(0, params));
|
|
3652
|
-
},
|
|
3653
|
-
nonpositive(params) {
|
|
3654
|
-
return this.check(/* @__PURE__ */ _lte(0, params));
|
|
3655
|
-
},
|
|
3656
|
-
multipleOf(value, params) {
|
|
3657
|
-
return this.check(/* @__PURE__ */ _multipleOf(value, params));
|
|
3658
|
-
},
|
|
3659
|
-
step(value, params) {
|
|
3660
|
-
return this.check(/* @__PURE__ */ _multipleOf(value, params));
|
|
3661
|
-
},
|
|
3662
|
-
finite() {
|
|
3663
|
-
return this;
|
|
3664
|
-
}
|
|
3665
|
-
});
|
|
3666
|
-
const bag = inst._zod.bag;
|
|
3667
|
-
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
3668
|
-
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
3669
|
-
inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? .5);
|
|
3670
|
-
inst.isFinite = true;
|
|
3671
|
-
inst.format = bag.format ?? null;
|
|
3672
|
-
});
|
|
3673
|
-
function number(params) {
|
|
3674
|
-
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
3675
|
-
}
|
|
3676
|
-
const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
|
|
3677
|
-
$ZodNumberFormat.init(inst, def);
|
|
3678
|
-
ZodNumber.init(inst, def);
|
|
3679
|
-
});
|
|
3680
|
-
function int(params) {
|
|
3681
|
-
return /* @__PURE__ */ _int(ZodNumberFormat, params);
|
|
3682
|
-
}
|
|
3683
|
-
const ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
|
|
3684
|
-
$ZodBoolean.init(inst, def);
|
|
3685
|
-
ZodType.init(inst, def);
|
|
3686
|
-
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
|
|
3687
|
-
});
|
|
3688
|
-
function boolean(params) {
|
|
3689
|
-
return /* @__PURE__ */ _boolean(ZodBoolean, params);
|
|
3690
|
-
}
|
|
3691
|
-
const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
|
|
3692
|
-
$ZodUnknown.init(inst, def);
|
|
3693
|
-
ZodType.init(inst, def);
|
|
3694
|
-
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
3695
|
-
});
|
|
3696
|
-
function unknown() {
|
|
3697
|
-
return /* @__PURE__ */ _unknown(ZodUnknown);
|
|
3698
|
-
}
|
|
3699
|
-
const ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
|
|
3700
|
-
$ZodNever.init(inst, def);
|
|
3701
|
-
ZodType.init(inst, def);
|
|
3702
|
-
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
3703
|
-
});
|
|
3704
|
-
function never(params) {
|
|
3705
|
-
return /* @__PURE__ */ _never(ZodNever, params);
|
|
3706
|
-
}
|
|
3707
|
-
const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
|
|
3708
|
-
$ZodArray.init(inst, def);
|
|
3709
|
-
ZodType.init(inst, def);
|
|
3710
|
-
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
3711
|
-
inst.element = def.element;
|
|
3712
|
-
_installLazyMethods(inst, "ZodArray", {
|
|
3713
|
-
min(n, params) {
|
|
3714
|
-
return this.check(/* @__PURE__ */ _minLength(n, params));
|
|
3715
|
-
},
|
|
3716
|
-
nonempty(params) {
|
|
3717
|
-
return this.check(/* @__PURE__ */ _minLength(1, params));
|
|
3718
|
-
},
|
|
3719
|
-
max(n, params) {
|
|
3720
|
-
return this.check(/* @__PURE__ */ _maxLength(n, params));
|
|
3721
|
-
},
|
|
3722
|
-
length(n, params) {
|
|
3723
|
-
return this.check(/* @__PURE__ */ _length(n, params));
|
|
3724
|
-
},
|
|
3725
|
-
unwrap() {
|
|
3726
|
-
return this.element;
|
|
3727
|
-
}
|
|
3728
|
-
});
|
|
3729
|
-
});
|
|
3730
|
-
function array(element, params) {
|
|
3731
|
-
return /* @__PURE__ */ _array(ZodArray, element, params);
|
|
3732
|
-
}
|
|
3733
|
-
const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
3734
|
-
$ZodObjectJIT.init(inst, def);
|
|
3735
|
-
ZodType.init(inst, def);
|
|
3736
|
-
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
3737
|
-
defineLazy(inst, "shape", () => {
|
|
3738
|
-
return def.shape;
|
|
3739
|
-
});
|
|
3740
|
-
_installLazyMethods(inst, "ZodObject", {
|
|
3741
|
-
keyof() {
|
|
3742
|
-
return _enum(Object.keys(this._zod.def.shape));
|
|
3743
|
-
},
|
|
3744
|
-
catchall(catchall) {
|
|
3745
|
-
return this.clone({
|
|
3746
|
-
...this._zod.def,
|
|
3747
|
-
catchall
|
|
3748
|
-
});
|
|
3749
|
-
},
|
|
3750
|
-
passthrough() {
|
|
3751
|
-
return this.clone({
|
|
3752
|
-
...this._zod.def,
|
|
3753
|
-
catchall: unknown()
|
|
3754
|
-
});
|
|
3755
|
-
},
|
|
3756
|
-
loose() {
|
|
3757
|
-
return this.clone({
|
|
3758
|
-
...this._zod.def,
|
|
3759
|
-
catchall: unknown()
|
|
3760
|
-
});
|
|
3761
|
-
},
|
|
3762
|
-
strict() {
|
|
3763
|
-
return this.clone({
|
|
3764
|
-
...this._zod.def,
|
|
3765
|
-
catchall: never()
|
|
3766
|
-
});
|
|
3767
|
-
},
|
|
3768
|
-
strip() {
|
|
3769
|
-
return this.clone({
|
|
3770
|
-
...this._zod.def,
|
|
3771
|
-
catchall: void 0
|
|
3772
|
-
});
|
|
3773
|
-
},
|
|
3774
|
-
extend(incoming) {
|
|
3775
|
-
return extend(this, incoming);
|
|
3776
|
-
},
|
|
3777
|
-
safeExtend(incoming) {
|
|
3778
|
-
return safeExtend(this, incoming);
|
|
3779
|
-
},
|
|
3780
|
-
merge(other) {
|
|
3781
|
-
return merge(this, other);
|
|
3782
|
-
},
|
|
3783
|
-
pick(mask) {
|
|
3784
|
-
return pick(this, mask);
|
|
3785
|
-
},
|
|
3786
|
-
omit(mask) {
|
|
3787
|
-
return omit(this, mask);
|
|
3788
|
-
},
|
|
3789
|
-
partial(...args) {
|
|
3790
|
-
return partial(ZodOptional, this, args[0]);
|
|
3791
|
-
},
|
|
3792
|
-
required(...args) {
|
|
3793
|
-
return required(ZodNonOptional, this, args[0]);
|
|
3794
|
-
}
|
|
3795
|
-
});
|
|
3796
|
-
});
|
|
3797
|
-
function object(shape, params) {
|
|
3798
|
-
return new ZodObject({
|
|
3799
|
-
type: "object",
|
|
3800
|
-
shape: shape ?? {},
|
|
3801
|
-
...normalizeParams(params)
|
|
3802
|
-
});
|
|
3803
|
-
}
|
|
3804
|
-
const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
|
|
3805
|
-
$ZodUnion.init(inst, def);
|
|
3806
|
-
ZodType.init(inst, def);
|
|
3807
|
-
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
3808
|
-
inst.options = def.options;
|
|
3809
|
-
});
|
|
3810
|
-
function union(options, params) {
|
|
3811
|
-
return new ZodUnion({
|
|
3812
|
-
type: "union",
|
|
3813
|
-
options,
|
|
3814
|
-
...normalizeParams(params)
|
|
3815
|
-
});
|
|
3816
|
-
}
|
|
3817
|
-
const ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
|
|
3818
|
-
$ZodIntersection.init(inst, def);
|
|
3819
|
-
ZodType.init(inst, def);
|
|
3820
|
-
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
3821
|
-
});
|
|
3822
|
-
function intersection(left, right) {
|
|
3823
|
-
return new ZodIntersection({
|
|
3824
|
-
type: "intersection",
|
|
3825
|
-
left,
|
|
3826
|
-
right
|
|
3827
|
-
});
|
|
3828
|
-
}
|
|
3829
|
-
const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
|
|
3830
|
-
$ZodEnum.init(inst, def);
|
|
3831
|
-
ZodType.init(inst, def);
|
|
3832
|
-
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
|
|
3833
|
-
inst.enum = def.entries;
|
|
3834
|
-
inst.options = Object.values(def.entries);
|
|
3835
|
-
const keys = new Set(Object.keys(def.entries));
|
|
3836
|
-
inst.extract = (values, params) => {
|
|
3837
|
-
const newEntries = {};
|
|
3838
|
-
for (const value of values) if (keys.has(value)) newEntries[value] = def.entries[value];
|
|
3839
|
-
else throw new Error(`Key ${value} not found in enum`);
|
|
3840
|
-
return new ZodEnum({
|
|
3841
|
-
...def,
|
|
3842
|
-
checks: [],
|
|
3843
|
-
...normalizeParams(params),
|
|
3844
|
-
entries: newEntries
|
|
3845
|
-
});
|
|
3846
|
-
};
|
|
3847
|
-
inst.exclude = (values, params) => {
|
|
3848
|
-
const newEntries = { ...def.entries };
|
|
3849
|
-
for (const value of values) if (keys.has(value)) delete newEntries[value];
|
|
3850
|
-
else throw new Error(`Key ${value} not found in enum`);
|
|
3851
|
-
return new ZodEnum({
|
|
3852
|
-
...def,
|
|
3853
|
-
checks: [],
|
|
3854
|
-
...normalizeParams(params),
|
|
3855
|
-
entries: newEntries
|
|
3856
|
-
});
|
|
3857
|
-
};
|
|
3858
|
-
});
|
|
3859
|
-
function _enum(values, params) {
|
|
3860
|
-
return new ZodEnum({
|
|
3861
|
-
type: "enum",
|
|
3862
|
-
entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values,
|
|
3863
|
-
...normalizeParams(params)
|
|
3864
|
-
});
|
|
3865
|
-
}
|
|
3866
|
-
const ZodLiteral = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => {
|
|
3867
|
-
$ZodLiteral.init(inst, def);
|
|
3868
|
-
ZodType.init(inst, def);
|
|
3869
|
-
inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params);
|
|
3870
|
-
inst.values = new Set(def.values);
|
|
3871
|
-
Object.defineProperty(inst, "value", { get() {
|
|
3872
|
-
if (def.values.length > 1) throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
3873
|
-
return def.values[0];
|
|
3874
|
-
} });
|
|
3875
|
-
});
|
|
3876
|
-
function literal(value, params) {
|
|
3877
|
-
return new ZodLiteral({
|
|
3878
|
-
type: "literal",
|
|
3879
|
-
values: Array.isArray(value) ? value : [value],
|
|
3880
|
-
...normalizeParams(params)
|
|
3881
|
-
});
|
|
3882
|
-
}
|
|
3883
|
-
const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
|
|
3884
|
-
$ZodTransform.init(inst, def);
|
|
3885
|
-
ZodType.init(inst, def);
|
|
3886
|
-
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
|
|
3887
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
3888
|
-
if (_ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
|
|
3889
|
-
payload.addIssue = (issue$1) => {
|
|
3890
|
-
if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, def));
|
|
3891
|
-
else {
|
|
3892
|
-
const _issue = issue$1;
|
|
3893
|
-
if (_issue.fatal) _issue.continue = false;
|
|
3894
|
-
_issue.code ?? (_issue.code = "custom");
|
|
3895
|
-
_issue.input ?? (_issue.input = payload.value);
|
|
3896
|
-
_issue.inst ?? (_issue.inst = inst);
|
|
3897
|
-
payload.issues.push(issue(_issue));
|
|
3898
|
-
}
|
|
3899
|
-
};
|
|
3900
|
-
const output = def.transform(payload.value, payload);
|
|
3901
|
-
if (output instanceof Promise) return output.then((output) => {
|
|
3902
|
-
payload.value = output;
|
|
3903
|
-
payload.fallback = true;
|
|
3904
|
-
return payload;
|
|
3905
|
-
});
|
|
3906
|
-
payload.value = output;
|
|
3907
|
-
payload.fallback = true;
|
|
3908
|
-
return payload;
|
|
3909
|
-
};
|
|
3910
|
-
});
|
|
3911
|
-
function transform(fn) {
|
|
3912
|
-
return new ZodTransform({
|
|
3913
|
-
type: "transform",
|
|
3914
|
-
transform: fn
|
|
3915
|
-
});
|
|
3916
|
-
}
|
|
3917
|
-
const ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
|
|
3918
|
-
$ZodOptional.init(inst, def);
|
|
3919
|
-
ZodType.init(inst, def);
|
|
3920
|
-
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
3921
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
3922
|
-
});
|
|
3923
|
-
function optional(innerType) {
|
|
3924
|
-
return new ZodOptional({
|
|
3925
|
-
type: "optional",
|
|
3926
|
-
innerType
|
|
3927
|
-
});
|
|
3928
|
-
}
|
|
3929
|
-
const ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
|
|
3930
|
-
$ZodExactOptional.init(inst, def);
|
|
3931
|
-
ZodType.init(inst, def);
|
|
3932
|
-
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
3933
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
3934
|
-
});
|
|
3935
|
-
function exactOptional(innerType) {
|
|
3936
|
-
return new ZodExactOptional({
|
|
3937
|
-
type: "optional",
|
|
3938
|
-
innerType
|
|
3939
|
-
});
|
|
3940
|
-
}
|
|
3941
|
-
const ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
|
|
3942
|
-
$ZodNullable.init(inst, def);
|
|
3943
|
-
ZodType.init(inst, def);
|
|
3944
|
-
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
3945
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
3946
|
-
});
|
|
3947
|
-
function nullable(innerType) {
|
|
3948
|
-
return new ZodNullable({
|
|
3949
|
-
type: "nullable",
|
|
3950
|
-
innerType
|
|
3951
|
-
});
|
|
3952
|
-
}
|
|
3953
|
-
const ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
|
|
3954
|
-
$ZodDefault.init(inst, def);
|
|
3955
|
-
ZodType.init(inst, def);
|
|
3956
|
-
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
3957
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
3958
|
-
inst.removeDefault = inst.unwrap;
|
|
3959
|
-
});
|
|
3960
|
-
function _default(innerType, defaultValue) {
|
|
3961
|
-
return new ZodDefault({
|
|
3962
|
-
type: "default",
|
|
3963
|
-
innerType,
|
|
3964
|
-
get defaultValue() {
|
|
3965
|
-
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
3966
|
-
}
|
|
3967
|
-
});
|
|
3968
|
-
}
|
|
3969
|
-
const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
|
|
3970
|
-
$ZodPrefault.init(inst, def);
|
|
3971
|
-
ZodType.init(inst, def);
|
|
3972
|
-
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
3973
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
3974
|
-
});
|
|
3975
|
-
function prefault(innerType, defaultValue) {
|
|
3976
|
-
return new ZodPrefault({
|
|
3977
|
-
type: "prefault",
|
|
3978
|
-
innerType,
|
|
3979
|
-
get defaultValue() {
|
|
3980
|
-
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
3981
|
-
}
|
|
3982
|
-
});
|
|
3983
|
-
}
|
|
3984
|
-
const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
|
|
3985
|
-
$ZodNonOptional.init(inst, def);
|
|
3986
|
-
ZodType.init(inst, def);
|
|
3987
|
-
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
3988
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
3989
|
-
});
|
|
3990
|
-
function nonoptional(innerType, params) {
|
|
3991
|
-
return new ZodNonOptional({
|
|
3992
|
-
type: "nonoptional",
|
|
3993
|
-
innerType,
|
|
3994
|
-
...normalizeParams(params)
|
|
3995
|
-
});
|
|
3996
|
-
}
|
|
3997
|
-
const ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
|
|
3998
|
-
$ZodCatch.init(inst, def);
|
|
3999
|
-
ZodType.init(inst, def);
|
|
4000
|
-
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
4001
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
4002
|
-
inst.removeCatch = inst.unwrap;
|
|
4003
|
-
});
|
|
4004
|
-
function _catch(innerType, catchValue) {
|
|
4005
|
-
return new ZodCatch({
|
|
4006
|
-
type: "catch",
|
|
4007
|
-
innerType,
|
|
4008
|
-
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
4009
|
-
});
|
|
4010
|
-
}
|
|
4011
|
-
const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
|
|
4012
|
-
$ZodPipe.init(inst, def);
|
|
4013
|
-
ZodType.init(inst, def);
|
|
4014
|
-
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
4015
|
-
inst.in = def.in;
|
|
4016
|
-
inst.out = def.out;
|
|
4017
|
-
});
|
|
4018
|
-
function pipe(in_, out) {
|
|
4019
|
-
return new ZodPipe({
|
|
4020
|
-
type: "pipe",
|
|
4021
|
-
in: in_,
|
|
4022
|
-
out
|
|
4023
|
-
});
|
|
4024
|
-
}
|
|
4025
|
-
const ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
4026
|
-
$ZodReadonly.init(inst, def);
|
|
4027
|
-
ZodType.init(inst, def);
|
|
4028
|
-
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
4029
|
-
inst.unwrap = () => inst._zod.def.innerType;
|
|
4030
|
-
});
|
|
4031
|
-
function readonly(innerType) {
|
|
4032
|
-
return new ZodReadonly({
|
|
4033
|
-
type: "readonly",
|
|
4034
|
-
innerType
|
|
4035
|
-
});
|
|
4036
|
-
}
|
|
4037
|
-
const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
|
|
4038
|
-
$ZodCustom.init(inst, def);
|
|
4039
|
-
ZodType.init(inst, def);
|
|
4040
|
-
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
4041
|
-
});
|
|
4042
|
-
function refine(fn, _params = {}) {
|
|
4043
|
-
return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
|
|
4044
|
-
}
|
|
4045
|
-
function superRefine(fn, params) {
|
|
4046
|
-
return /* @__PURE__ */ _superRefine(fn, params);
|
|
4047
|
-
}
|
|
4048
|
-
//#endregion
|
|
4049
|
-
//#region ../agent-team/lib/typert.remote-client.js
|
|
4050
|
-
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_parameter_0$schema$value;
|
|
4051
|
-
const _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_parameter_0$schema = () => _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_parameter_0$schema$value ??= intersection(string(), unknown());
|
|
4052
|
-
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_result$schema$value;
|
|
4053
|
-
const _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_result$schema = () => _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_result$schema$value ??= object({
|
|
4054
|
-
"members": array(object({
|
|
4055
|
-
"id": intersection(string(), unknown()).readonly(),
|
|
4056
|
-
"name": string().readonly(),
|
|
4057
|
-
"role": union([literal("lead"), literal("teammate")]).readonly(),
|
|
4058
|
-
"status": union([
|
|
4059
|
-
literal("failed"),
|
|
4060
|
-
literal("running"),
|
|
4061
|
-
literal("inactive"),
|
|
4062
|
-
literal("provisioning")
|
|
4063
|
-
]).readonly(),
|
|
4064
|
-
"description": string().readonly().optional(),
|
|
4065
|
-
"provider": string().readonly().optional(),
|
|
4066
|
-
"context": union([literal("fresh"), literal("fork")]).readonly().optional(),
|
|
4067
|
-
"model": string().readonly().optional(),
|
|
4068
|
-
"diagnostics": array(string()).readonly()
|
|
4069
|
-
})).readonly(),
|
|
4070
|
-
"tasks": array(object({
|
|
4071
|
-
"id": intersection(string(), unknown()).readonly(),
|
|
4072
|
-
"revision": number().readonly(),
|
|
4073
|
-
"subject": string().readonly(),
|
|
4074
|
-
"description": string().readonly(),
|
|
4075
|
-
"status": union([
|
|
4076
|
-
literal("completed"),
|
|
4077
|
-
literal("pending"),
|
|
4078
|
-
literal("in_progress"),
|
|
4079
|
-
literal("deleted")
|
|
4080
|
-
]).readonly(),
|
|
4081
|
-
"blockedBy": array(intersection(string(), unknown())).readonly(),
|
|
4082
|
-
"writeScopes": array(string()).readonly(),
|
|
4083
|
-
"ownerName": string().readonly().optional(),
|
|
4084
|
-
"ready": boolean().readonly(),
|
|
4085
|
-
"writeScopeWarnings": array(string()).readonly()
|
|
4086
|
-
})).readonly()
|
|
4087
|
-
});
|
|
4088
|
-
const TYPERT_REMOTE = {
|
|
4089
|
-
package: "@deepseek-ai/dsh-experimental-agent-team",
|
|
4090
|
-
descriptors: [{
|
|
4091
|
-
id: "@deepseek-ai/dsh-experimental-agent-team#agentTeams/view",
|
|
4092
|
-
service: "agentTeams",
|
|
4093
|
-
namespace: "agentTeams",
|
|
4094
|
-
method: "view",
|
|
4095
|
-
implementation: "remoteView",
|
|
4096
|
-
invocation: { kind: "direct" },
|
|
4097
|
-
scope: {
|
|
4098
|
-
context: "agent",
|
|
4099
|
-
wire: "agentId"
|
|
4100
|
-
},
|
|
4101
|
-
parameters: [{
|
|
4102
|
-
name: "agent",
|
|
4103
|
-
wire: "agentId",
|
|
4104
|
-
source: "lookup",
|
|
4105
|
-
lookup: "agent",
|
|
4106
|
-
codec: {
|
|
4107
|
-
mode: "strict",
|
|
4108
|
-
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
4109
|
-
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_parameter_0$schema
|
|
4110
|
-
}
|
|
4111
|
-
}],
|
|
4112
|
-
result: {
|
|
4113
|
-
mode: "strict",
|
|
4114
|
-
typeSymbol: "@deepseek-ai/dsh-experimental-agent-team/client#TeamView",
|
|
4115
|
-
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_result$schema
|
|
4116
|
-
},
|
|
4117
|
-
sourceLocation: {
|
|
4118
|
-
"file": "packages/experimental/agent-team/src/index.ts",
|
|
4119
|
-
"line": 242,
|
|
4120
|
-
"column": 3
|
|
4121
|
-
}
|
|
4122
|
-
}]
|
|
4123
|
-
};
|
|
4124
|
-
//#endregion
|
|
4125
11
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-agent-team/src/client/TeamAction.module.css.mjs
|
|
4126
|
-
const css = "._6oYBGa_root{position:relative}._6oYBGa_trigger
|
|
12
|
+
const css = "._6oYBGa_root{position:relative}._6oYBGa_trigger{min-height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:5px;padding:3px 7px;font-size:12px;display:inline-flex}._6oYBGa_trigger:hover,._6oYBGa_trigger:focus-visible{color:var(--dsw-alias-label-primary)}@container (width<=480px){._6oYBGa_triggerLabel{display:none}}._6oYBGa_count{color:var(--dsw-alias-label-caption);font-variant-numeric:tabular-nums;font-size:12px;font-weight:400;line-height:16px}._6oYBGa_panel{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);z-index:100;box-sizing:border-box;--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);width:min(500px,100vw - 32px);max-height:min(680px,100vh - 32px);box-shadow:var(--dsw-elevation-prominent);border:0;border-radius:12px;flex-direction:column;padding:8px 2px 0;display:flex;position:fixed;overflow:hidden}._6oYBGa_panel:before{content:\"\";z-index:-1;background:var(--dsw-specific-menu);backdrop-filter:var(--dsw-menu-backdrop-filter);border-radius:12px;position:absolute;inset:0}._6oYBGa_panelCompact{width:min(320px,100vw - 32px)}._6oYBGa_panelCompact ._6oYBGa_roster{grid-template-columns:minmax(0,1fr)}._6oYBGa_body{--dsh-scrollbar-track-margin:8px;scrollbar-gutter:stable;flex:auto;min-height:0;padding:0 9px 16px 14px;overflow-y:auto}._6oYBGa_taskTitle{align-items:center;gap:8px;display:flex}._6oYBGa_taskTitle strong{font-size:13px;font-weight:500}._6oYBGa_panel h3{color:var(--dsw-alias-label-primary);align-items:center;gap:8px;margin:16px 0 8px 4px;font-size:13px;font-weight:500;display:flex}._6oYBGa_body section:first-of-type h3{margin-top:8px}._6oYBGa_roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}._6oYBGa_member{--dsw-elevation-stroke-color:var(--dsw-alias-border-l2);min-width:0;box-shadow:var(--dsw-elevation-stroke);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;border:0;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}._6oYBGa_member:disabled{cursor:default}._6oYBGa_memberCurrent{--dsw-elevation-stroke-color:color-mix(in srgb, var(--dsw-alias-state-business-primary) 40%, transparent);box-shadow:var(--dsw-elevation-stroke), inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-business-primary) 40%, transparent)}._6oYBGa_member:not(:disabled):hover,._6oYBGa_member:not(:disabled):focus-visible{--dsw-elevation-stroke-color:var(--dsw-alias-border-l3);box-shadow:var(--dsw-elevation-panel)}._6oYBGa_memberDot{flex:none;align-items:center;height:1lh;display:inline-flex}._6oYBGa_inactiveIcon{color:var(--dsw-alias-label-tertiary)}._6oYBGa_memberText{flex-direction:column;min-width:0;display:flex}._6oYBGa_memberName{align-items:center;gap:5px;min-width:0;display:inline-flex}._6oYBGa_memberNameText,._6oYBGa_memberText small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._6oYBGa_memberModel{display:none}._6oYBGa_member:hover ._6oYBGa_memberModel,._6oYBGa_member:focus-visible ._6oYBGa_memberModel{display:inline}._6oYBGa_currentTag{text-overflow:ellipsis;flex:0 999 auto;min-width:0;padding:0 4px;font-size:10px;line-height:15px;display:inline-block;overflow:hidden}._6oYBGa_memberText small,._6oYBGa_meta{color:var(--dsw-alias-label-tertiary);font-size:11px}._6oYBGa_diagnostic,._6oYBGa_error,._6oYBGa_warning{color:var(--dsw-alias-state-error-primary)}._6oYBGa_tasks{flex-direction:column;gap:7px;display:flex}._6oYBGa_emptyNotice{color:var(--dsw-alias-label-tertiary);margin:16px 0 0 4px;font-size:12px}._6oYBGa_task{border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);border-radius:9px;padding:11px 13px}._6oYBGa_taskState{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;margin-left:auto;font-size:11px;display:inline-flex}._6oYBGa_task p{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;margin:5px 0;font-size:12px;line-height:18px}._6oYBGa_clampedDescription{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}._6oYBGa_expandToggle{float:right;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;margin-left:10px;padding:0;font-size:11px;line-height:20px;display:inline-flex}._6oYBGa_expandToggle:hover,._6oYBGa_expandToggle:focus-visible{color:var(--dsw-alias-label-primary)}._6oYBGa_expandToggle svg{transition:transform .12s}._6oYBGa_expandToggleOpen{transform:rotate(180deg)}._6oYBGa_meta{line-height:20px}._6oYBGa_meta>span{margin-right:10px}._6oYBGa_notice,._6oYBGa_error{align-items:center;gap:6px;padding:9px;font-size:12px;display:flex}";
|
|
4127
13
|
const tagId = "@deepseek-ai/dsh-experimental-client-ui-agent-team/TeamAction.module.css";
|
|
4128
14
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
4129
15
|
const tag = document.createElement("style");
|
|
@@ -4133,31 +19,39 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4133
19
|
document.head.appendChild(tag);
|
|
4134
20
|
}
|
|
4135
21
|
var TeamAction_module_css_default = {
|
|
22
|
+
"body": "_6oYBGa_body",
|
|
23
|
+
"clampedDescription": "_6oYBGa_clampedDescription",
|
|
4136
24
|
"count": "_6oYBGa_count",
|
|
25
|
+
"currentTag": "_6oYBGa_currentTag",
|
|
4137
26
|
"diagnostic": "_6oYBGa_diagnostic",
|
|
27
|
+
"emptyNotice": "_6oYBGa_emptyNotice",
|
|
4138
28
|
"error": "_6oYBGa_error",
|
|
4139
|
-
"
|
|
29
|
+
"expandToggle": "_6oYBGa_expandToggle",
|
|
30
|
+
"expandToggleOpen": "_6oYBGa_expandToggleOpen",
|
|
31
|
+
"inactiveIcon": "_6oYBGa_inactiveIcon",
|
|
4140
32
|
"member": "_6oYBGa_member",
|
|
33
|
+
"memberCurrent": "_6oYBGa_memberCurrent",
|
|
34
|
+
"memberDot": "_6oYBGa_memberDot",
|
|
35
|
+
"memberModel": "_6oYBGa_memberModel",
|
|
36
|
+
"memberName": "_6oYBGa_memberName",
|
|
37
|
+
"memberNameText": "_6oYBGa_memberNameText",
|
|
4141
38
|
"memberText": "_6oYBGa_memberText",
|
|
4142
39
|
"meta": "_6oYBGa_meta",
|
|
4143
40
|
"notice": "_6oYBGa_notice",
|
|
4144
41
|
"panel": "_6oYBGa_panel",
|
|
42
|
+
"panelCompact": "_6oYBGa_panelCompact",
|
|
4145
43
|
"root": "_6oYBGa_root",
|
|
4146
44
|
"roster": "_6oYBGa_roster",
|
|
4147
|
-
"spacer": "_6oYBGa_spacer",
|
|
4148
45
|
"task": "_6oYBGa_task",
|
|
4149
46
|
"taskState": "_6oYBGa_taskState",
|
|
4150
47
|
"taskTitle": "_6oYBGa_taskTitle",
|
|
4151
48
|
"tasks": "_6oYBGa_tasks",
|
|
4152
|
-
"toolbar": "_6oYBGa_toolbar",
|
|
4153
49
|
"trigger": "_6oYBGa_trigger",
|
|
50
|
+
"triggerLabel": "_6oYBGa_triggerLabel",
|
|
4154
51
|
"warning": "_6oYBGa_warning"
|
|
4155
52
|
};
|
|
4156
53
|
//#endregion
|
|
4157
54
|
//#region lib/types/client/TeamAction.js
|
|
4158
|
-
function failureText(error) {
|
|
4159
|
-
return `${error.message} (${error.code})`;
|
|
4160
|
-
}
|
|
4161
55
|
function statusKey(status) {
|
|
4162
56
|
switch (status) {
|
|
4163
57
|
case "pending": return "status.pending";
|
|
@@ -4179,7 +73,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4179
73
|
switch (status) {
|
|
4180
74
|
case "running":
|
|
4181
75
|
case "provisioning": return "ongoing";
|
|
4182
|
-
case "inactive": return "idle";
|
|
4183
76
|
case "failed": return "error";
|
|
4184
77
|
}
|
|
4185
78
|
}
|
|
@@ -4192,14 +85,147 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4192
85
|
case "deleted": return "idle";
|
|
4193
86
|
}
|
|
4194
87
|
}
|
|
88
|
+
function TeamMemberRow({ member, memberCount, sessionId, useSessions, useSessionStatus, openTeammate, onError, t }) {
|
|
89
|
+
const model = useSessions((state) => state.projectionsBySession[member.id]?.values.modelSelection?.next?.model);
|
|
90
|
+
const running = useSessionStatus((state) => state.get(member.id)?.running);
|
|
91
|
+
const summaryRunning = useSessions((state) => state.byId[member.id]?.running);
|
|
92
|
+
const status = member.phase === "active" ? (running ?? summaryRunning) === true ? "running" : "inactive" : member.phase;
|
|
93
|
+
const isCurrent = member.id === sessionId;
|
|
94
|
+
const highlightCurrent = isCurrent && memberCount > 1;
|
|
95
|
+
const inert = isCurrent || status === "failed" || status === "provisioning";
|
|
96
|
+
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
97
|
+
label: t("open"),
|
|
98
|
+
side: "bottom",
|
|
99
|
+
gap: 4,
|
|
100
|
+
disabled: inert,
|
|
101
|
+
children: (0, react_jsx_runtime.jsxs)("button", {
|
|
102
|
+
type: "button",
|
|
103
|
+
className: highlightCurrent ? `${TeamAction_module_css_default.member} ${TeamAction_module_css_default.memberCurrent}` : TeamAction_module_css_default.member,
|
|
104
|
+
disabled: inert,
|
|
105
|
+
onClick: () => {
|
|
106
|
+
try {
|
|
107
|
+
openTeammate(sessionId, member.id);
|
|
108
|
+
} catch (reason) {
|
|
109
|
+
onError(String(reason));
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
113
|
+
className: TeamAction_module_css_default.memberDot,
|
|
114
|
+
children: status === "inactive" ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconUserOutlineRegular, {
|
|
115
|
+
size: 14,
|
|
116
|
+
className: TeamAction_module_css_default.inactiveIcon
|
|
117
|
+
}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: memberDotState(status) })
|
|
118
|
+
}), (0, react_jsx_runtime.jsxs)("span", {
|
|
119
|
+
className: TeamAction_module_css_default.memberText,
|
|
120
|
+
children: [
|
|
121
|
+
(0, react_jsx_runtime.jsxs)("span", {
|
|
122
|
+
className: TeamAction_module_css_default.memberName,
|
|
123
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
124
|
+
className: TeamAction_module_css_default.memberNameText,
|
|
125
|
+
children: member.name
|
|
126
|
+
}), isCurrent && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
127
|
+
tone: "info",
|
|
128
|
+
className: TeamAction_module_css_default.currentTag,
|
|
129
|
+
children: t("current")
|
|
130
|
+
})]
|
|
131
|
+
}),
|
|
132
|
+
(0, react_jsx_runtime.jsxs)("small", { children: [t(memberStatusKey(status)), model !== void 0 && (0, react_jsx_runtime.jsx)("span", {
|
|
133
|
+
className: TeamAction_module_css_default.memberModel,
|
|
134
|
+
children: ` · ${t("model")}: ${model}`
|
|
135
|
+
})] }),
|
|
136
|
+
member.error !== void 0 && (0, react_jsx_runtime.jsx)("small", {
|
|
137
|
+
className: TeamAction_module_css_default.diagnostic,
|
|
138
|
+
children: member.error
|
|
139
|
+
})
|
|
140
|
+
]
|
|
141
|
+
})]
|
|
142
|
+
})
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/** Task card with a two-line description clamp expanded from a toggle in the meta row. */
|
|
146
|
+
function TaskCard({ task, t }) {
|
|
147
|
+
const [expanded, setExpanded] = (0, react.useState)(false);
|
|
148
|
+
const [clamped, setClamped] = (0, react.useState)(false);
|
|
149
|
+
const textRef = (0, react.useRef)(null);
|
|
150
|
+
(0, react.useLayoutEffect)(() => {
|
|
151
|
+
if (expanded) return;
|
|
152
|
+
const paragraph = textRef.current;
|
|
153
|
+
/* v8 ignore next -- the paragraph mounts in the same commit as the effect. */
|
|
154
|
+
if (paragraph === null) return;
|
|
155
|
+
const measure = () => {
|
|
156
|
+
setClamped(paragraph.scrollHeight > paragraph.clientHeight + 1);
|
|
157
|
+
};
|
|
158
|
+
measure();
|
|
159
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
160
|
+
const observer = new ResizeObserver(measure);
|
|
161
|
+
observer.observe(paragraph);
|
|
162
|
+
return () => {
|
|
163
|
+
observer.disconnect();
|
|
164
|
+
};
|
|
165
|
+
}, [task.description, expanded]);
|
|
166
|
+
return (0, react_jsx_runtime.jsxs)("article", {
|
|
167
|
+
className: TeamAction_module_css_default.task,
|
|
168
|
+
children: [
|
|
169
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
170
|
+
className: TeamAction_module_css_default.taskTitle,
|
|
171
|
+
children: [(0, react_jsx_runtime.jsx)("strong", { children: task.subject }), (0, react_jsx_runtime.jsxs)("span", {
|
|
172
|
+
className: TeamAction_module_css_default.taskState,
|
|
173
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: taskDotState(task) }), (0, react_jsx_runtime.jsx)("span", { children: t(statusKey(task.status)) })]
|
|
174
|
+
})]
|
|
175
|
+
}),
|
|
176
|
+
(0, react_jsx_runtime.jsx)("p", {
|
|
177
|
+
ref: textRef,
|
|
178
|
+
className: expanded ? void 0 : TeamAction_module_css_default.clampedDescription,
|
|
179
|
+
children: task.description
|
|
180
|
+
}),
|
|
181
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
182
|
+
className: TeamAction_module_css_default.meta,
|
|
183
|
+
children: [
|
|
184
|
+
(clamped || expanded) && (0, react_jsx_runtime.jsxs)("button", {
|
|
185
|
+
type: "button",
|
|
186
|
+
className: TeamAction_module_css_default.expandToggle,
|
|
187
|
+
"aria-expanded": expanded,
|
|
188
|
+
onClick: () => {
|
|
189
|
+
setExpanded((current) => !current);
|
|
190
|
+
},
|
|
191
|
+
children: [t(expanded ? "task.collapse" : "task.expand"), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {
|
|
192
|
+
size: 12,
|
|
193
|
+
className: expanded ? TeamAction_module_css_default.expandToggleOpen : void 0
|
|
194
|
+
})]
|
|
195
|
+
}),
|
|
196
|
+
(0, react_jsx_runtime.jsx)("span", { children: task.id }),
|
|
197
|
+
(0, react_jsx_runtime.jsxs)("span", { children: [
|
|
198
|
+
t("owner"),
|
|
199
|
+
": ",
|
|
200
|
+
task.ownerName ?? t("unowned")
|
|
201
|
+
] }),
|
|
202
|
+
task.status === "pending" && (0, react_jsx_runtime.jsx)("span", { children: task.ready ? t("ready") : t("blocked") }),
|
|
203
|
+
task.blockedBy.length > 0 && (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
204
|
+
t("blockedBy"),
|
|
205
|
+
": ",
|
|
206
|
+
task.blockedBy.join(", ")
|
|
207
|
+
] }),
|
|
208
|
+
task.writeScopes.length > 0 && (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
209
|
+
t("writeScopes"),
|
|
210
|
+
": ",
|
|
211
|
+
task.writeScopes.join(", ")
|
|
212
|
+
] }),
|
|
213
|
+
task.writeScopeWarnings.map((warning) => (0, react_jsx_runtime.jsx)("span", {
|
|
214
|
+
className: TeamAction_module_css_default.warning,
|
|
215
|
+
children: warning
|
|
216
|
+
}, warning))
|
|
217
|
+
]
|
|
218
|
+
})
|
|
219
|
+
]
|
|
220
|
+
});
|
|
221
|
+
}
|
|
4195
222
|
/** Render the Team roster and read-only task board. */
|
|
4196
|
-
function TeamAction({ sessionId,
|
|
223
|
+
function TeamAction({ sessionId, useSession, useSessions, useSessionStatus, openTeammate, t }) {
|
|
4197
224
|
const [open, setOpen] = (0, react.useState)(false);
|
|
4198
|
-
const [loading, setLoading] = (0, react.useState)(false);
|
|
4199
|
-
const [view, setView] = (0, react.useState)(null);
|
|
4200
225
|
const [error, setError] = (0, react.useState)(null);
|
|
4201
226
|
const rootRef = (0, react.useRef)(null);
|
|
4202
227
|
const triggerRef = (0, react.useRef)(null);
|
|
228
|
+
const triggerLabelRef = (0, react.useRef)(null);
|
|
4203
229
|
const panelRef = (0, react.useRef)(null);
|
|
4204
230
|
const position = (0, _deepseek_ai_dsh_client_ui_primitives.useAnchoredPosition)({
|
|
4205
231
|
open,
|
|
@@ -4209,72 +235,95 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4209
235
|
margin: 16
|
|
4210
236
|
});
|
|
4211
237
|
const positioned = position !== null;
|
|
4212
|
-
(
|
|
4213
|
-
const
|
|
4214
|
-
const
|
|
4215
|
-
|
|
238
|
+
const leadSessionId = useSession((snapshot) => snapshot.subagent?.address.parentSessionId) ?? sessionId;
|
|
239
|
+
const team = useSessions((state) => state.projectionsBySession[leadSessionId]?.values.agentTeam);
|
|
240
|
+
const opening = useSession((snapshot) => snapshot.openState === "loading");
|
|
241
|
+
const listing = useSessions((state) => state.phase === "pending");
|
|
242
|
+
const hoverTimer = (0, react.useRef)(void 0);
|
|
243
|
+
const pinnedRef = (0, react.useRef)(false);
|
|
244
|
+
const cancelHoverChange = () => {
|
|
245
|
+
clearTimeout(hoverTimer.current);
|
|
246
|
+
hoverTimer.current = void 0;
|
|
247
|
+
};
|
|
4216
248
|
(0, react.useEffect)(() => {
|
|
4217
|
-
|
|
249
|
+
cancelHoverChange();
|
|
250
|
+
pinnedRef.current = false;
|
|
4218
251
|
setOpen(false);
|
|
4219
|
-
setLoading(false);
|
|
4220
|
-
setView(null);
|
|
4221
252
|
setError(null);
|
|
4222
253
|
}, [sessionId]);
|
|
254
|
+
(0, react.useEffect)(() => cancelHoverChange, []);
|
|
4223
255
|
(0, react.useLayoutEffect)(() => {
|
|
4224
|
-
if (open && positioned) panelRef.current?.focus();
|
|
256
|
+
if (open && positioned && pinnedRef.current) panelRef.current?.focus();
|
|
4225
257
|
}, [open, positioned]);
|
|
4226
|
-
const
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
const
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
if (
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
258
|
+
const changeOpen = (next) => {
|
|
259
|
+
cancelHoverChange();
|
|
260
|
+
if (!next) pinnedRef.current = false;
|
|
261
|
+
setOpen(next);
|
|
262
|
+
};
|
|
263
|
+
const scheduleHoverOpen = () => {
|
|
264
|
+
cancelHoverChange();
|
|
265
|
+
if (open) return;
|
|
266
|
+
const label = triggerLabelRef.current;
|
|
267
|
+
/* v8 ignore next -- the label mounts with the trigger that received the hover. */
|
|
268
|
+
if (label === null) return;
|
|
269
|
+
if (getComputedStyle(label).display === "none") return;
|
|
270
|
+
hoverTimer.current = setTimeout(() => {
|
|
271
|
+
hoverTimer.current = void 0;
|
|
272
|
+
changeOpen(true);
|
|
273
|
+
}, 150);
|
|
274
|
+
};
|
|
275
|
+
const scheduleHoverClose = () => {
|
|
276
|
+
cancelHoverChange();
|
|
277
|
+
if (pinnedRef.current) return;
|
|
278
|
+
hoverTimer.current = setTimeout(() => {
|
|
279
|
+
hoverTimer.current = void 0;
|
|
280
|
+
changeOpen(false);
|
|
281
|
+
}, 120);
|
|
282
|
+
};
|
|
283
|
+
(0, _deepseek_ai_dsh_client_ui_primitives.useDismissOnOutsidePointer)(rootRef, open, changeOpen, panelRef);
|
|
284
|
+
(0, react.useEffect)(() => {
|
|
285
|
+
if (!open) return;
|
|
286
|
+
const dismiss = (event) => {
|
|
287
|
+
if (event.key !== "Escape") return;
|
|
288
|
+
event.preventDefault();
|
|
289
|
+
cancelHoverChange();
|
|
290
|
+
pinnedRef.current = false;
|
|
291
|
+
setOpen(false);
|
|
292
|
+
if (panelRef.current?.contains(document.activeElement)) triggerRef.current?.focus();
|
|
293
|
+
};
|
|
294
|
+
document.addEventListener("keydown", dismiss);
|
|
295
|
+
return () => {
|
|
296
|
+
document.removeEventListener("keydown", dismiss);
|
|
297
|
+
};
|
|
298
|
+
}, [open]);
|
|
299
|
+
const compact = team !== void 0 && team.members.length === 1 && team.tasks.length === 0;
|
|
4243
300
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
4244
301
|
ref: rootRef,
|
|
4245
302
|
className: TeamAction_module_css_default.root,
|
|
4246
303
|
"data-team-action": true,
|
|
4247
|
-
|
|
4248
|
-
if (event.key !== "Escape" || !open) return;
|
|
4249
|
-
event.preventDefault();
|
|
4250
|
-
close();
|
|
4251
|
-
},
|
|
4252
|
-
onBlur: (event) => {
|
|
4253
|
-
const target = event.relatedTarget;
|
|
4254
|
-
if (target instanceof Node && !event.currentTarget.contains(target) && !panelRef.current?.contains(target)) setOpen(false);
|
|
4255
|
-
},
|
|
304
|
+
onMouseLeave: scheduleHoverClose,
|
|
4256
305
|
children: [(0, react_jsx_runtime.jsxs)("button", {
|
|
4257
306
|
type: "button",
|
|
4258
307
|
ref: triggerRef,
|
|
308
|
+
onMouseEnter: scheduleHoverOpen,
|
|
4259
309
|
className: TeamAction_module_css_default.trigger,
|
|
310
|
+
"aria-label": t("trigger"),
|
|
4260
311
|
"aria-haspopup": "dialog",
|
|
4261
312
|
"aria-expanded": open,
|
|
4262
313
|
onClick: () => {
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
if (
|
|
314
|
+
cancelHoverChange();
|
|
315
|
+
pinnedRef.current = true;
|
|
316
|
+
if (!open) changeOpen(true);
|
|
317
|
+
else panelRef.current?.focus();
|
|
4266
318
|
},
|
|
4267
|
-
children: [
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
})
|
|
4274
|
-
]
|
|
4275
|
-
}), open && (0, react_dom.createPortal)((0, react_jsx_runtime.jsxs)("div", {
|
|
319
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconUsersOutlineRegular, { size: 14 }), (0, react_jsx_runtime.jsx)("span", {
|
|
320
|
+
ref: triggerLabelRef,
|
|
321
|
+
className: TeamAction_module_css_default.triggerLabel,
|
|
322
|
+
children: t("trigger")
|
|
323
|
+
})]
|
|
324
|
+
}), open && (0, react_dom.createPortal)((0, react_jsx_runtime.jsx)("div", {
|
|
4276
325
|
ref: panelRef,
|
|
4277
|
-
className: TeamAction_module_css_default.panel,
|
|
326
|
+
className: compact ? `${TeamAction_module_css_default.panel} ${TeamAction_module_css_default.panelCompact}` : TeamAction_module_css_default.panel,
|
|
4278
327
|
style: position ?? {
|
|
4279
328
|
visibility: "hidden",
|
|
4280
329
|
left: 0,
|
|
@@ -4284,121 +333,59 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4284
333
|
tabIndex: -1,
|
|
4285
334
|
"aria-label": t("trigger"),
|
|
4286
335
|
"data-team-panel": true,
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
(0, react_jsx_runtime.jsx)("button", {
|
|
4299
|
-
type: "button",
|
|
4300
|
-
className: TeamAction_module_css_default.iconButton,
|
|
4301
|
-
"aria-label": t("refresh"),
|
|
4302
|
-
onClick: () => {
|
|
4303
|
-
refresh();
|
|
4304
|
-
},
|
|
4305
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRefreshOutlineRegular, { size: 14 })
|
|
4306
|
-
}),
|
|
4307
|
-
(0, react_jsx_runtime.jsx)("button", {
|
|
4308
|
-
type: "button",
|
|
4309
|
-
className: TeamAction_module_css_default.iconButton,
|
|
4310
|
-
"aria-label": t("close"),
|
|
4311
|
-
onClick: close,
|
|
4312
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { size: 14 })
|
|
4313
|
-
})
|
|
4314
|
-
]
|
|
4315
|
-
}),
|
|
4316
|
-
error !== null && (0, react_jsx_runtime.jsxs)("div", {
|
|
4317
|
-
className: TeamAction_module_css_default.error,
|
|
4318
|
-
role: "alert",
|
|
4319
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: "error" }), error]
|
|
4320
|
-
}),
|
|
4321
|
-
loading && view === null && (0, react_jsx_runtime.jsxs)("div", {
|
|
4322
|
-
className: TeamAction_module_css_default.notice,
|
|
4323
|
-
role: "status",
|
|
4324
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: "ongoing" }), t("loading")]
|
|
4325
|
-
}),
|
|
4326
|
-
view !== null && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("section", { children: [(0, react_jsx_runtime.jsx)("h3", { children: t("roster") }), (0, react_jsx_runtime.jsx)("div", {
|
|
4327
|
-
className: TeamAction_module_css_default.roster,
|
|
4328
|
-
children: view.members.map((member) => (0, react_jsx_runtime.jsxs)("button", {
|
|
4329
|
-
type: "button",
|
|
4330
|
-
className: TeamAction_module_css_default.member,
|
|
4331
|
-
disabled: member.role === "lead" || member.status === "failed" || member.status === "provisioning",
|
|
4332
|
-
title: member.role === "teammate" ? t("open") : void 0,
|
|
4333
|
-
onClick: () => {
|
|
4334
|
-
try {
|
|
4335
|
-
openTeammate(sessionId, member);
|
|
4336
|
-
} catch (reason) {
|
|
4337
|
-
setError(String(reason));
|
|
4338
|
-
}
|
|
4339
|
-
},
|
|
4340
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: memberDotState(member.status) }), (0, react_jsx_runtime.jsxs)("span", {
|
|
4341
|
-
className: TeamAction_module_css_default.memberText,
|
|
4342
|
-
children: [
|
|
4343
|
-
(0, react_jsx_runtime.jsx)("span", { children: member.name }),
|
|
4344
|
-
(0, react_jsx_runtime.jsxs)("small", { children: [t(memberStatusKey(member.status)), member.model === void 0 ? "" : ` · ${t("model")}: ${member.model}`] }),
|
|
4345
|
-
member.diagnostics.map((diagnostic) => (0, react_jsx_runtime.jsx)("small", {
|
|
4346
|
-
className: TeamAction_module_css_default.diagnostic,
|
|
4347
|
-
children: diagnostic
|
|
4348
|
-
}, diagnostic))
|
|
4349
|
-
]
|
|
4350
|
-
})]
|
|
4351
|
-
}, member.id))
|
|
4352
|
-
})] }), (0, react_jsx_runtime.jsxs)("section", { children: [
|
|
4353
|
-
(0, react_jsx_runtime.jsx)("h3", { children: t("tasks") }),
|
|
4354
|
-
view.tasks.length === 0 && (0, react_jsx_runtime.jsx)("div", {
|
|
336
|
+
onMouseEnter: cancelHoverChange,
|
|
337
|
+
onMouseLeave: scheduleHoverClose,
|
|
338
|
+
children: (0, react_jsx_runtime.jsxs)("div", {
|
|
339
|
+
className: TeamAction_module_css_default.body,
|
|
340
|
+
children: [
|
|
341
|
+
error !== null && (0, react_jsx_runtime.jsxs)("div", {
|
|
342
|
+
className: TeamAction_module_css_default.error,
|
|
343
|
+
role: "alert",
|
|
344
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: "error" }), error]
|
|
345
|
+
}),
|
|
346
|
+
team === void 0 && (0, react_jsx_runtime.jsxs)("div", {
|
|
4355
347
|
className: TeamAction_module_css_default.notice,
|
|
4356
|
-
|
|
348
|
+
role: "status",
|
|
349
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: opening || listing ? "ongoing" : "warning" }), t(opening || listing ? "loading" : "unavailable")]
|
|
4357
350
|
}),
|
|
4358
|
-
(0, react_jsx_runtime.
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
children: [
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
})
|
|
4397
|
-
]
|
|
4398
|
-
}, task.id))
|
|
4399
|
-
})
|
|
4400
|
-
] })] })
|
|
4401
|
-
]
|
|
351
|
+
team !== void 0 && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
352
|
+
team.failure !== void 0 && (0, react_jsx_runtime.jsxs)("div", {
|
|
353
|
+
className: TeamAction_module_css_default.error,
|
|
354
|
+
role: "alert",
|
|
355
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: "error" }), t("failure", { message: team.failure })]
|
|
356
|
+
}),
|
|
357
|
+
(0, react_jsx_runtime.jsxs)("section", { children: [(0, react_jsx_runtime.jsxs)("h3", { children: [t("roster"), team.members.length > 1 && (0, react_jsx_runtime.jsx)("span", {
|
|
358
|
+
className: TeamAction_module_css_default.count,
|
|
359
|
+
children: team.members.length
|
|
360
|
+
})] }), (0, react_jsx_runtime.jsx)("div", {
|
|
361
|
+
className: TeamAction_module_css_default.roster,
|
|
362
|
+
children: team.members.map((member) => (0, react_jsx_runtime.jsx)(TeamMemberRow, {
|
|
363
|
+
member,
|
|
364
|
+
memberCount: team.members.length,
|
|
365
|
+
sessionId,
|
|
366
|
+
useSessions,
|
|
367
|
+
useSessionStatus,
|
|
368
|
+
openTeammate,
|
|
369
|
+
onError: setError,
|
|
370
|
+
t
|
|
371
|
+
}, member.id))
|
|
372
|
+
})] }),
|
|
373
|
+
(0, react_jsx_runtime.jsx)("section", { children: team.tasks.length === 0 ? (0, react_jsx_runtime.jsx)("p", {
|
|
374
|
+
className: TeamAction_module_css_default.emptyNotice,
|
|
375
|
+
children: t("empty")
|
|
376
|
+
}) : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("h3", { children: [t("tasks"), (0, react_jsx_runtime.jsx)("span", {
|
|
377
|
+
className: TeamAction_module_css_default.count,
|
|
378
|
+
children: team.tasks.length
|
|
379
|
+
})] }), (0, react_jsx_runtime.jsx)("div", {
|
|
380
|
+
className: TeamAction_module_css_default.tasks,
|
|
381
|
+
children: team.tasks.map((task) => (0, react_jsx_runtime.jsx)(TaskCard, {
|
|
382
|
+
task,
|
|
383
|
+
t
|
|
384
|
+
}, task.id))
|
|
385
|
+
})] }) })
|
|
386
|
+
] })
|
|
387
|
+
]
|
|
388
|
+
})
|
|
4402
389
|
}), document.body)]
|
|
4403
390
|
});
|
|
4404
391
|
}
|
|
@@ -4409,21 +396,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4409
396
|
const NS = "agent-team";
|
|
4410
397
|
/** Simplified Chinese dictionary and key source. */
|
|
4411
398
|
const zh = {
|
|
4412
|
-
trigger: "
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
empty: "
|
|
399
|
+
trigger: "智能体团队",
|
|
400
|
+
loading: "正在加载团队…",
|
|
401
|
+
unavailable: "Team 暂不可用",
|
|
402
|
+
failure: "团队持久记录无效:{message}",
|
|
403
|
+
empty: "暂无共享任务,可以通过对话创建",
|
|
4417
404
|
roster: "成员",
|
|
4418
405
|
tasks: "共享任务",
|
|
4419
406
|
model: "模型",
|
|
4420
|
-
open: "
|
|
407
|
+
open: "打开成员会话",
|
|
408
|
+
current: "当前会话",
|
|
4421
409
|
owner: "Owner",
|
|
4422
410
|
unowned: "未分配",
|
|
4423
411
|
blockedBy: "依赖",
|
|
4424
412
|
writeScopes: "写入范围",
|
|
4425
413
|
ready: "可开始",
|
|
4426
414
|
blocked: "被依赖阻塞",
|
|
415
|
+
"task.expand": "展开",
|
|
416
|
+
"task.collapse": "收起",
|
|
4427
417
|
"memberStatus.running": "运行中",
|
|
4428
418
|
"memberStatus.inactive": "未运行",
|
|
4429
419
|
"memberStatus.provisioning": "准备中",
|
|
@@ -4435,20 +425,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4435
425
|
/** English dictionary checked against the Chinese key set. */
|
|
4436
426
|
const en = {
|
|
4437
427
|
trigger: "Agent Team",
|
|
4438
|
-
refresh: "Refresh Team",
|
|
4439
|
-
close: "Close",
|
|
4440
428
|
loading: "Loading Team…",
|
|
4441
|
-
|
|
429
|
+
unavailable: "Team is unavailable",
|
|
430
|
+
failure: "Invalid persisted Team record: {message}",
|
|
431
|
+
empty: "No shared tasks yet. Create them through the conversation.",
|
|
4442
432
|
roster: "Members",
|
|
4443
433
|
tasks: "Shared tasks",
|
|
4444
434
|
model: "Model",
|
|
4445
|
-
open: "Open
|
|
435
|
+
open: "Open member conversation",
|
|
436
|
+
current: "Current chat",
|
|
4446
437
|
owner: "Owner",
|
|
4447
438
|
unowned: "Unowned",
|
|
4448
439
|
blockedBy: "Blocked by",
|
|
4449
440
|
writeScopes: "Write scopes",
|
|
4450
441
|
ready: "Ready",
|
|
4451
442
|
blocked: "Blocked by dependencies",
|
|
443
|
+
"task.expand": "Show more",
|
|
444
|
+
"task.collapse": "Show less",
|
|
4452
445
|
"memberStatus.running": "Running",
|
|
4453
446
|
"memberStatus.inactive": "Inactive",
|
|
4454
447
|
"memberStatus.provisioning": "Provisioning",
|
|
@@ -4459,16 +452,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4459
452
|
};
|
|
4460
453
|
//#endregion
|
|
4461
454
|
//#region lib/types/client/mount.js
|
|
4462
|
-
/** Source-safe Agent Teams browser registration
|
|
4463
|
-
/** Required browser services for
|
|
455
|
+
/** Source-safe Agent Teams browser registration. */
|
|
456
|
+
/** Required browser services for navigation, slots, and localized copy. */
|
|
4464
457
|
const inject = [
|
|
4465
458
|
"sessions",
|
|
4466
459
|
"uiWorkspace",
|
|
4467
|
-
"remote",
|
|
4468
460
|
"slots",
|
|
4469
461
|
"locale"
|
|
4470
462
|
];
|
|
4471
|
-
|
|
463
|
+
/**
|
|
464
|
+
* Register the Team locale dictionaries and the conversation-header action.
|
|
465
|
+
* The panel reads the Lead Session's `agentTeam` projection from the shared
|
|
466
|
+
* Session store; this registration performs no Team RPC.
|
|
467
|
+
* @param ctx - Client Context carrying the injected navigation, locale, slot, and Session services.
|
|
468
|
+
*/
|
|
469
|
+
function registerAgentTeamUi(ctx) {
|
|
4472
470
|
ctx.effect(() => ctx.locale.register(NS, {
|
|
4473
471
|
zh,
|
|
4474
472
|
en
|
|
@@ -4477,62 +475,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4477
475
|
const leadSessionId = (sessionId) => {
|
|
4478
476
|
return (sessions.binding(sessionId)?.session.getSnapshot().subagent?.address)?.parentSessionId ?? sessionId;
|
|
4479
477
|
};
|
|
4480
|
-
const actions = {
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
const parentSessionId = leadSessionId(sessionId);
|
|
4487
|
-
if ((sessions.retainInfo(sessionId).getSnapshot().retainedBy.mainView ?? 0) === 0) return;
|
|
4488
|
-
ctx.uiWorkspace.openSession({
|
|
4489
|
-
parentSessionId,
|
|
4490
|
-
childSessionId: member.id,
|
|
4491
|
-
mode: "continuable"
|
|
4492
|
-
});
|
|
478
|
+
const actions = { openTeammate(sessionId, childSessionId) {
|
|
479
|
+
const parentSessionId = leadSessionId(sessionId);
|
|
480
|
+
if ((sessions.retainInfo(sessionId).getSnapshot().retainedBy.mainView ?? 0) === 0) return;
|
|
481
|
+
if (childSessionId === parentSessionId) {
|
|
482
|
+
ctx.uiWorkspace.openSession(parentSessionId);
|
|
483
|
+
return;
|
|
4493
484
|
}
|
|
4494
|
-
|
|
485
|
+
ctx.uiWorkspace.openSession({
|
|
486
|
+
parentSessionId,
|
|
487
|
+
childSessionId,
|
|
488
|
+
mode: "continuable"
|
|
489
|
+
});
|
|
490
|
+
} };
|
|
4495
491
|
ctx.slots.inject("conversation.session.header.actions", () => ctx.slots.register({
|
|
4496
492
|
name: "conversation.session.header.actions",
|
|
4497
493
|
id: "agent-team",
|
|
4498
|
-
order: 20,
|
|
494
|
+
order: -20,
|
|
4499
495
|
locale: NS,
|
|
4500
496
|
inject: () => actions
|
|
4501
497
|
}, TeamAction));
|
|
4502
498
|
}
|
|
4503
|
-
/**
|
|
4504
|
-
* Mount one generated Team Remote contribution, then register its browser UI.
|
|
4505
|
-
* @param ctx - Client Context carrying navigation, locale, slot, and Remote services.
|
|
4506
|
-
* @param contribution - generated Team descriptors selected by the browser entry.
|
|
4507
|
-
* @returns disposer for both the UI registrations and Remote namespace.
|
|
4508
|
-
*/
|
|
4509
|
-
async function mountAgentTeamUi(ctx, contribution) {
|
|
4510
|
-
const disposeRemote = await ctx.remote.$mount(contribution);
|
|
4511
|
-
const ui = ctx.inject([
|
|
4512
|
-
"sessions",
|
|
4513
|
-
"uiWorkspace",
|
|
4514
|
-
"remote.agentTeams",
|
|
4515
|
-
"slots",
|
|
4516
|
-
"locale"
|
|
4517
|
-
], registerUi);
|
|
4518
|
-
try {
|
|
4519
|
-
await ui;
|
|
4520
|
-
} catch (error) {
|
|
4521
|
-
await ui.dispose();
|
|
4522
|
-
await disposeRemote();
|
|
4523
|
-
throw error;
|
|
4524
|
-
}
|
|
4525
|
-
return async () => {
|
|
4526
|
-
await ui.dispose();
|
|
4527
|
-
await disposeRemote();
|
|
4528
|
-
};
|
|
4529
|
-
}
|
|
4530
499
|
//#endregion
|
|
4531
500
|
//#region lib/types/client/index.js
|
|
4532
|
-
/** Browser entry
|
|
4533
|
-
/**
|
|
4534
|
-
|
|
4535
|
-
|
|
501
|
+
/** Browser entry registering the Agent Teams conversation-header action. */
|
|
502
|
+
/**
|
|
503
|
+
* Register the Team locale dictionaries and header action on the Client Context.
|
|
504
|
+
* @param ctx - Client Context with the declared `inject` services available.
|
|
505
|
+
*/
|
|
506
|
+
function apply(ctx) {
|
|
507
|
+
registerAgentTeamUi(ctx);
|
|
4536
508
|
}
|
|
4537
509
|
//#endregion
|
|
4538
510
|
exports.apply = apply;
|