@songtonyli/dsh-cli 0.1.11 → 0.1.13
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/lib/index.js +3 -2
- package/node_modules/@deepseek-ai/cordis/src/logger.ts +3 -2
- package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +1 -1
- package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh/lib/bin.js +118 -54
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-CpQgpJa2.js → dump-config-Bb5YvFIX.js} +1 -1
- package/node_modules/@deepseek-ai/dsh/lib/plugin-DJ-rVHUS.js +31 -0
- package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-CuwbWsnH.js → profile-boot-BNu17Y9U.js} +82 -135
- package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +2 -0
- package/node_modules/@deepseek-ai/dsh/package.json +117 -102
- package/node_modules/@deepseek-ai/dsh-acp/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-acp-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-acp-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-acp-app/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-agent/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +2 -3
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/agent.cordis.yml +23 -13
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/preset.yml +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/cordis-plugin-development/SKILL.md +73 -385
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/editing-cordis-compositions/SKILL.md +9 -72
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/agent.cordis.yml +4 -0
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/agent.cordis.yml +4 -0
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +9 -5
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +9 -5
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +41 -51
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/index.js +4 -17
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +33 -38
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +2 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +754 -76
- 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 -4
- 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 +37 -35
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +15 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +15 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +428 -471
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +16 -47
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +11 -32
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +0 -21
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +8 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/index.js +16 -5
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/scope.js +15 -22
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/lineage.js +1 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +75 -174
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +6 -14
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +259 -244
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +29 -33
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +10 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/control.js +1 -41
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +66 -66
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +14 -5
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +14 -5
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/client.js +249 -19
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/index.js +258 -50
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +67 -11
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.remote-client.js +54 -9
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/bindings.js +71 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/index.js +83 -8
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/model.js +20 -7
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/retention.js +77 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/index.js +49 -43
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/retention.js +153 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/terminal.js +35 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +6 -11
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +4 -4
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +6 -7
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +11 -10
- package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +18 -8
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +17 -7
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +360 -202
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +9 -17
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +8 -3
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +12 -5
- package/node_modules/@deepseek-ai/dsh-base/package.json +89 -88
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-connection/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-connection/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-connection/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +11 -11
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +11 -11
- package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +10 -59
- package/node_modules/@deepseek-ai/dsh-client-hmr/lib/index.js +15 -7
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +8 -6
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +14 -4
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +14 -4
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +407 -26
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +62 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +4 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +140 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +15 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +12 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +24 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +9 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +4 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +49 -34
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +33 -29
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +107 -34
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +13 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +13 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +520 -384
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +30 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +9 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +9 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -35
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +25 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +25 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1364 -160
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +164 -41
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.md +8 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.zh.md +7 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/lib/client.js +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +112 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +11 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +8 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +27 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +7 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +15 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +152 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +14 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +10 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +9 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +9 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +564 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +26 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +129 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +129 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +2550 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +65 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/LICENSE +21 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +172 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +172 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +79 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +28 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +123 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +109 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +84 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/FileTypeIcon.module.css +50 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +54 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +38 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +345 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +261 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +103 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +29 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +27 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +111 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +73 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +112 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +73 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +50 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tag.module.css +57 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +205 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +72 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +42 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +141 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +8666 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +130 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +32 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +462 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/BrandWordmark.d.ts +15 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +18 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Checkbox.d.ts +20 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeFileIcon.d.ts +12 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConnectionIndicator.d.ts +26 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +52 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +29 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FileTypeIcon.d.ts +43 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FishLogo.d.ts +16 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FoldToggle.d.ts +20 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +24 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/JsonTree.d.ts +59 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +49 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +90 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +36 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Pill.d.ts +13 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +47 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +16 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/RiskConfirmation.d.ts +20 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SearchBlock.d.ts +72 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +25 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +18 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Switch.d.ts +20 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tag.d.ts +32 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +66 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +32 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +34 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/WebBlock.d.ts +61 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ansi.d.ts +17 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/clipboard.d.ts +9 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-icon-artwork.d.ts +54 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +30 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/darwin-desktop.d.ts +9 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-size.d.ts +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/head-tail-cap.d.ts +23 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +200 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +9 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +70 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +30 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/JsonBlock.d.ts +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +36 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownText.d.ts +49 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/cjkFriendlyStrong.d.ts +9 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/file-link.d.ts +13 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +142 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/incremental.d.ts +80 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/katex.d.ts +27 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/mathCompatibility.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/parse.d.ts +25 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/plain-text.d.ts +22 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +138 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/useViewportHighlighting.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/pointer-grace.d.ts +22 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/rank-by-name.d.ts +22 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/relative-time.d.ts +23 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-copy-feedback.d.ts +14 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +34 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useDismissOnOutsidePointer.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +37 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +43 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +60 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +19 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.md +4 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.zh.md +4 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +463 -57
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +10 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-session/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-session/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-session/lib/client.js +232 -72
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +8 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +5 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +293 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +11 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +244 -227
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +8 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +52 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +12 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.md +24 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.zh.md +23 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +649 -509
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +10 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/package.json +11 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +105 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +11 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +117 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +117 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +821 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +60 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +39 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +39 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +1821 -25130
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +32609 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/index.js +26 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +25 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +11 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +4538 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +13 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +8 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +8 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +42 -13423
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +13494 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +14 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +13 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/LICENSE +21 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.md +111 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.zh.md +111 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/index.js +577 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/index.d.ts +951 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/renderer.d.ts +263 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/store.d.ts +3 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +37 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +2 -2
- 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 +212 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +22 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +10 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +21 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +132 -66
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +15 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +71 -74
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +18 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +12 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +15 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +10 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +10 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +403 -217
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +18 -15
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +7 -7
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +7 -7
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +736 -219
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.md +7 -7
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.zh.md +7 -7
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +5 -5
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -8
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/lifecycle.js +2 -2
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +220 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +220 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +1894 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +361 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +879 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +218 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/activity.js +85 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +3 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/error.js +23 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +313 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +26 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/journal.js +63 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/lifecycle.js +85 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/mailbox.js +293 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/persisted.js +20 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +260 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +448 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/session-message.js +23 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +275 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-graph.js +62 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/types.js +26 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/validation.js +33 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +87 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +107 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +107 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +30 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +48 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.md +98 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.zh.md +98 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/cordis.patch.yml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/package.json +47 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +98 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +98 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +4979 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +81 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +159 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +159 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +550 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +59 -0
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-goal/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-headless/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-headless/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-hmr/README.md +95 -0
- package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +95 -0
- package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +672 -0
- package/node_modules/@deepseek-ai/{cordis-plugin-hmr → dsh-hmr}/package.json +18 -21
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/index.js +40 -24
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +2 -1
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +2 -1
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/types/index.js +36 -24
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +3 -2
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +2 -1
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-llm/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +33 -37
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +3 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +3 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +47 -3
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +105 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +105 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/index.js +659 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.host.js +193 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.remote-client.js +94 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/errors.js +15 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/identity.js +23 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/index.js +287 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/output.js +47 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/queue.js +246 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +64 -0
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +133 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +133 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +1174 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +604 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +393 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/build-approval.js +56 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +8 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +623 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +33 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +73 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +177 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/patch.js +50 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +74 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +102 -0
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-sandbox/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +6 -9
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +19 -17
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +7 -4
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-reference/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-reference/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/index.js +20 -16
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +4 -3
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.remote-client.js +2 -1
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/index.js +30 -23
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +34 -32
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-settings/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-settings-file/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/README.md +12 -0
- package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +12 -0
- package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +116 -50
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +11 -4
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-activation.js +41 -4
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +1 -0
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +29 -3
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +54 -48
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-subprocess/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-subprocess/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-subprocess/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +7 -0
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +7 -0
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +267 -20
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +1525 -0
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +11 -131
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +15 -135
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +688 -743
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -16
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +10 -6
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +30 -18
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +30 -18
- package/node_modules/@deepseek-ai/dsh-tui-app/cordis.patch.yml +9 -0
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +1510 -181
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +68 -62
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-typert-protocol/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-typert-protocol/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/index.js +32 -1
- package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/owned-value.js +32 -0
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-user-questions/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/plan-review.js +5 -1
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-util-values/README.md +6 -3
- package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +6 -3
- package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +62 -1
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
- 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 +35 -12
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +98 -86
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-8VXBH-f-.js +127 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-lP1BfJ4l.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +9 -6
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-webhook/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-win32-process/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-win32-process/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-win32-process/lib/index.js +7 -4
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +108 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +108 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +1106 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/capture.js +107 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/compare.js +56 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/git.js +224 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +139 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/numstat.js +45 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/paths.js +106 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/recorder.js +333 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +56 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/LICENSE +373 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/NOTICE +26 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/README.md +73 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +73 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +924 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +800 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/CHANGELOG.md +115 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/LICENSE +21 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/README.md +558 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/esm/browser.js +2665 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/esm/index.mjs +2679 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/browser.cjs +2688 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/index.cjs +2668 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/node-worker.cjs +32 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/node.cjs +2700 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/worker.cjs +20 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/package.json +127 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +1 -0
- package/node_modules/@deepseek-ai/libreoffice-kit/package.json +39 -0
- package/node_modules/@sec-ant/readable-stream/LICENSE +21 -0
- package/node_modules/@sec-ant/readable-stream/README.md +230 -0
- package/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.js +5 -0
- package/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.js +5 -0
- package/node_modules/@sec-ant/readable-stream/dist/index/index.js +8 -0
- package/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.js +3 -0
- package/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.js +2 -0
- package/node_modules/@sec-ant/readable-stream/dist/polyfill/index.js +4 -0
- package/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js +89 -0
- package/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js +34 -0
- package/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js +6 -0
- package/node_modules/@sec-ant/readable-stream/package.json +73 -0
- package/node_modules/@sindresorhus/merge-streams/index.js +265 -0
- package/node_modules/@sindresorhus/merge-streams/license +9 -0
- package/node_modules/@sindresorhus/merge-streams/package.json +46 -0
- package/node_modules/@sindresorhus/merge-streams/readme.md +53 -0
- package/node_modules/@swc/helpers/LICENSE +201 -0
- package/node_modules/@swc/helpers/_/_apply_decorated_descriptor/package.json +4 -0
- package/node_modules/@swc/helpers/_/_apply_decs_2203_r/package.json +4 -0
- package/node_modules/@swc/helpers/_/_apply_decs_2311/package.json +4 -0
- package/node_modules/@swc/helpers/_/_array_like_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_array_with_holes/package.json +4 -0
- package/node_modules/@swc/helpers/_/_array_without_holes/package.json +4 -0
- package/node_modules/@swc/helpers/_/_assert_this_initialized/package.json +4 -0
- package/node_modules/@swc/helpers/_/_async_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_async_generator_delegate/package.json +4 -0
- package/node_modules/@swc/helpers/_/_async_iterator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_async_to_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_await_async_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_await_value/package.json +4 -0
- package/node_modules/@swc/helpers/_/_call_super/package.json +4 -0
- package/node_modules/@swc/helpers/_/_check_private_redeclaration/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_apply_descriptor_destructure/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_apply_descriptor_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_apply_descriptor_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_apply_descriptor_update/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_call_check/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_check_private_static_access/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_check_private_static_field_descriptor/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_extract_field_descriptor/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_name_tdz_error/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_destructure/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_init/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_update/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_method_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_method_init/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_method_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_field_destructure/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_field_spec_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_field_spec_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_field_update/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_method_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_construct/package.json +4 -0
- package/node_modules/@swc/helpers/_/_create_class/package.json +4 -0
- package/node_modules/@swc/helpers/_/_create_for_of_iterator_helper_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_create_super/package.json +4 -0
- package/node_modules/@swc/helpers/_/_decorate/package.json +4 -0
- package/node_modules/@swc/helpers/_/_defaults/package.json +4 -0
- package/node_modules/@swc/helpers/_/_define_enumerable_properties/package.json +4 -0
- package/node_modules/@swc/helpers/_/_define_property/package.json +4 -0
- package/node_modules/@swc/helpers/_/_dispose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_export_star/package.json +4 -0
- package/node_modules/@swc/helpers/_/_extends/package.json +4 -0
- package/node_modules/@swc/helpers/_/_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_get_prototype_of/package.json +4 -0
- package/node_modules/@swc/helpers/_/_identity/package.json +4 -0
- package/node_modules/@swc/helpers/_/_inherits/package.json +4 -0
- package/node_modules/@swc/helpers/_/_inherits_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_initializer_define_property/package.json +4 -0
- package/node_modules/@swc/helpers/_/_initializer_warning_helper/package.json +4 -0
- package/node_modules/@swc/helpers/_/_instanceof/package.json +4 -0
- package/node_modules/@swc/helpers/_/_interop_require_default/package.json +4 -0
- package/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +4 -0
- package/node_modules/@swc/helpers/_/_is_native_function/package.json +4 -0
- package/node_modules/@swc/helpers/_/_is_native_reflect_construct/package.json +4 -0
- package/node_modules/@swc/helpers/_/_iterable_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_iterable_to_array_limit/package.json +4 -0
- package/node_modules/@swc/helpers/_/_iterable_to_array_limit_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_jsx/package.json +4 -0
- package/node_modules/@swc/helpers/_/_new_arrow_check/package.json +4 -0
- package/node_modules/@swc/helpers/_/_non_iterable_rest/package.json +4 -0
- package/node_modules/@swc/helpers/_/_non_iterable_spread/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_destructuring_empty/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_spread/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_spread_props/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_without_properties/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_without_properties_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_overload_yield/package.json +4 -0
- package/node_modules/@swc/helpers/_/_possible_constructor_return/package.json +4 -0
- package/node_modules/@swc/helpers/_/_read_only_error/package.json +4 -0
- package/node_modules/@swc/helpers/_/_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_set_prototype_of/package.json +4 -0
- package/node_modules/@swc/helpers/_/_skip_first_generator_next/package.json +4 -0
- package/node_modules/@swc/helpers/_/_sliced_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_sliced_to_array_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_super_prop_base/package.json +4 -0
- package/node_modules/@swc/helpers/_/_tagged_template_literal/package.json +4 -0
- package/node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_throw/package.json +4 -0
- package/node_modules/@swc/helpers/_/_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_to_consumable_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_to_primitive/package.json +4 -0
- package/node_modules/@swc/helpers/_/_to_property_key/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_add_disposable_resource/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_decorate/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_dispose_resources/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_metadata/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_param/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_rewrite_relative_import_extension/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_values/package.json +4 -0
- package/node_modules/@swc/helpers/_/_type_of/package.json +4 -0
- package/node_modules/@swc/helpers/_/_unsupported_iterable_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_update/package.json +4 -0
- package/node_modules/@swc/helpers/_/_using/package.json +4 -0
- package/node_modules/@swc/helpers/_/_using_ctx/package.json +4 -0
- package/node_modules/@swc/helpers/_/_wrap_async_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_wrap_native_super/package.json +4 -0
- package/node_modules/@swc/helpers/_/_wrap_reg_exp/package.json +4 -0
- package/node_modules/@swc/helpers/_/_write_only_error/package.json +4 -0
- package/node_modules/@swc/helpers/_/index/package.json +4 -0
- package/node_modules/@swc/helpers/cjs/_apply_decorated_descriptor.cjs +35 -0
- package/node_modules/@swc/helpers/cjs/_apply_decs_2203_r.cjs +574 -0
- package/node_modules/@swc/helpers/cjs/_apply_decs_2311.cjs +346 -0
- package/node_modules/@swc/helpers/cjs/_array_like_to_array.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_array_with_holes.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_array_without_holes.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_assert_this_initialized.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_async_generator.cjs +76 -0
- package/node_modules/@swc/helpers/cjs/_async_generator_delegate.cjs +53 -0
- package/node_modules/@swc/helpers/cjs/_async_iterator.cjs +46 -0
- package/node_modules/@swc/helpers/cjs/_async_to_generator.cjs +33 -0
- package/node_modules/@swc/helpers/cjs/_await_async_generator.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_await_value.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_call_super.cjs +19 -0
- package/node_modules/@swc/helpers/cjs/_check_private_redeclaration.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_destructure.cjs +25 -0
- package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_get.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_set.cjs +15 -0
- package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_update.cjs +30 -0
- package/node_modules/@swc/helpers/cjs/_class_call_check.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_class_check_private_static_access.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_class_check_private_static_field_descriptor.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_extract_field_descriptor.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_name_tdz_error.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_destructure.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_get.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_init.cjs +9 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_set.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_update.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_class_private_method_get.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_private_method_init.cjs +9 -0
- package/node_modules/@swc/helpers/cjs/_class_private_method_set.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_field_destructure.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_get.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_set.cjs +14 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_field_update.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_method_get.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_construct.cjs +22 -0
- package/node_modules/@swc/helpers/cjs/_create_class.cjs +20 -0
- package/node_modules/@swc/helpers/cjs/_create_for_of_iterator_helper_loose.cjs +24 -0
- package/node_modules/@swc/helpers/cjs/_create_super.cjs +23 -0
- package/node_modules/@swc/helpers/cjs/_decorate.cjs +270 -0
- package/node_modules/@swc/helpers/cjs/_defaults.cjs +15 -0
- package/node_modules/@swc/helpers/cjs/_define_enumerable_properties.cjs +26 -0
- package/node_modules/@swc/helpers/cjs/_define_property.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_dispose.cjs +43 -0
- package/node_modules/@swc/helpers/cjs/_export_star.cjs +17 -0
- package/node_modules/@swc/helpers/cjs/_extends.cjs +15 -0
- package/node_modules/@swc/helpers/cjs/_get.cjs +23 -0
- package/node_modules/@swc/helpers/cjs/_get_prototype_of.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_identity.cjs +7 -0
- package/node_modules/@swc/helpers/cjs/_inherits.cjs +14 -0
- package/node_modules/@swc/helpers/cjs/_inherits_loose.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_initializer_define_property.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_initializer_warning_helper.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_instanceof.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
- package/node_modules/@swc/helpers/cjs/_is_native_function.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_is_native_reflect_construct.cjs +18 -0
- package/node_modules/@swc/helpers/cjs/_iterable_to_array.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit.cjs +31 -0
- package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit_loose.cjs +17 -0
- package/node_modules/@swc/helpers/cjs/_jsx.cjs +28 -0
- package/node_modules/@swc/helpers/cjs/_new_arrow_check.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_non_iterable_rest.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_non_iterable_spread.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_object_destructuring_empty.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_object_spread.cjs +25 -0
- package/node_modules/@swc/helpers/cjs/_object_spread_props.cjs +30 -0
- package/node_modules/@swc/helpers/cjs/_object_without_properties.cjs +35 -0
- package/node_modules/@swc/helpers/cjs/_object_without_properties_loose.cjs +16 -0
- package/node_modules/@swc/helpers/cjs/_overload_yield.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_possible_constructor_return.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_read_only_error.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_set.cjs +44 -0
- package/node_modules/@swc/helpers/cjs/_set_prototype_of.cjs +12 -0
- package/node_modules/@swc/helpers/cjs/_skip_first_generator_next.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_sliced_to_array.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_sliced_to_array_loose.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_super_prop_base.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_tagged_template_literal.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_throw.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_to_array.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_to_consumable_array.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_to_primitive.cjs +18 -0
- package/node_modules/@swc/helpers/cjs/_to_property_key.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_ts_add_disposable_resource.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_decorate.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_dispose_resources.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_generator.cjs +31 -0
- package/node_modules/@swc/helpers/cjs/_ts_metadata.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_param.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_rewrite_relative_import_extension.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_values.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_type_of.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_unsupported_iterable_to_array.cjs +15 -0
- package/node_modules/@swc/helpers/cjs/_update.cjs +16 -0
- package/node_modules/@swc/helpers/cjs/_using.cjs +24 -0
- package/node_modules/@swc/helpers/cjs/_using_ctx.cjs +75 -0
- package/node_modules/@swc/helpers/cjs/_wrap_async_generator.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_wrap_native_super.cjs +28 -0
- package/node_modules/@swc/helpers/cjs/_wrap_reg_exp.cjs +84 -0
- package/node_modules/@swc/helpers/cjs/_write_only_error.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/index.cjs +439 -0
- package/node_modules/@swc/helpers/esm/_apply_decorated_descriptor.js +33 -0
- package/node_modules/@swc/helpers/esm/_apply_decs_2203_r.js +572 -0
- package/node_modules/@swc/helpers/esm/_apply_decs_2311.js +344 -0
- package/node_modules/@swc/helpers/esm/_array_like_to_array.js +8 -0
- package/node_modules/@swc/helpers/esm/_array_with_holes.js +4 -0
- package/node_modules/@swc/helpers/esm/_array_without_holes.js +6 -0
- package/node_modules/@swc/helpers/esm/_assert_this_initialized.js +6 -0
- package/node_modules/@swc/helpers/esm/_async_generator.js +74 -0
- package/node_modules/@swc/helpers/esm/_async_generator_delegate.js +51 -0
- package/node_modules/@swc/helpers/esm/_async_iterator.js +44 -0
- package/node_modules/@swc/helpers/esm/_async_to_generator.js +31 -0
- package/node_modules/@swc/helpers/esm/_await_async_generator.js +6 -0
- package/node_modules/@swc/helpers/esm/_await_value.js +4 -0
- package/node_modules/@swc/helpers/esm/_call_super.js +17 -0
- package/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_apply_descriptor_destructure.js +23 -0
- package/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js +13 -0
- package/node_modules/@swc/helpers/esm/_class_apply_descriptor_update.js +28 -0
- package/node_modules/@swc/helpers/esm/_class_call_check.js +4 -0
- package/node_modules/@swc/helpers/esm/_class_check_private_static_access.js +4 -0
- package/node_modules/@swc/helpers/esm/_class_check_private_static_field_descriptor.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_name_tdz_error.js +4 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_destructure.js +8 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_get.js +8 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_loose_base.js +8 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_loose_key.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_set.js +9 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_update.js +8 -0
- package/node_modules/@swc/helpers/esm/_class_private_method_get.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_private_method_init.js +7 -0
- package/node_modules/@swc/helpers/esm/_class_private_method_set.js +4 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_field_destructure.js +11 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_get.js +11 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_set.js +12 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_field_update.js +11 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_method_get.js +8 -0
- package/node_modules/@swc/helpers/esm/_construct.js +20 -0
- package/node_modules/@swc/helpers/esm/_create_class.js +18 -0
- package/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js +22 -0
- package/node_modules/@swc/helpers/esm/_create_super.js +21 -0
- package/node_modules/@swc/helpers/esm/_decorate.js +268 -0
- package/node_modules/@swc/helpers/esm/_defaults.js +13 -0
- package/node_modules/@swc/helpers/esm/_define_enumerable_properties.js +24 -0
- package/node_modules/@swc/helpers/esm/_define_property.js +8 -0
- package/node_modules/@swc/helpers/esm/_dispose.js +41 -0
- package/node_modules/@swc/helpers/esm/_export_star.js +15 -0
- package/node_modules/@swc/helpers/esm/_extends.js +13 -0
- package/node_modules/@swc/helpers/esm/_get.js +21 -0
- package/node_modules/@swc/helpers/esm/_get_prototype_of.js +8 -0
- package/node_modules/@swc/helpers/esm/_identity.js +5 -0
- package/node_modules/@swc/helpers/esm/_inherits.js +12 -0
- package/node_modules/@swc/helpers/esm/_inherits_loose.js +6 -0
- package/node_modules/@swc/helpers/esm/_initializer_define_property.js +11 -0
- package/node_modules/@swc/helpers/esm/_initializer_warning_helper.js +9 -0
- package/node_modules/@swc/helpers/esm/_instanceof.js +8 -0
- package/node_modules/@swc/helpers/esm/_interop_require_default.js +4 -0
- package/node_modules/@swc/helpers/esm/_interop_require_wildcard.js +36 -0
- package/node_modules/@swc/helpers/esm/_is_native_function.js +4 -0
- package/node_modules/@swc/helpers/esm/_is_native_reflect_construct.js +16 -0
- package/node_modules/@swc/helpers/esm/_iterable_to_array.js +6 -0
- package/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js +29 -0
- package/node_modules/@swc/helpers/esm/_iterable_to_array_limit_loose.js +15 -0
- package/node_modules/@swc/helpers/esm/_jsx.js +26 -0
- package/node_modules/@swc/helpers/esm/_new_arrow_check.js +4 -0
- package/node_modules/@swc/helpers/esm/_non_iterable_rest.js +4 -0
- package/node_modules/@swc/helpers/esm/_non_iterable_spread.js +4 -0
- package/node_modules/@swc/helpers/esm/_object_destructuring_empty.js +6 -0
- package/node_modules/@swc/helpers/esm/_object_spread.js +23 -0
- package/node_modules/@swc/helpers/esm/_object_spread_props.js +28 -0
- package/node_modules/@swc/helpers/esm/_object_without_properties.js +33 -0
- package/node_modules/@swc/helpers/esm/_object_without_properties_loose.js +14 -0
- package/node_modules/@swc/helpers/esm/_overload_yield.js +6 -0
- package/node_modules/@swc/helpers/esm/_possible_constructor_return.js +9 -0
- package/node_modules/@swc/helpers/esm/_read_only_error.js +4 -0
- package/node_modules/@swc/helpers/esm/_set.js +42 -0
- package/node_modules/@swc/helpers/esm/_set_prototype_of.js +10 -0
- package/node_modules/@swc/helpers/esm/_skip_first_generator_next.js +9 -0
- package/node_modules/@swc/helpers/esm/_sliced_to_array.js +9 -0
- package/node_modules/@swc/helpers/esm/_sliced_to_array_loose.js +9 -0
- package/node_modules/@swc/helpers/esm/_super_prop_base.js +11 -0
- package/node_modules/@swc/helpers/esm/_tagged_template_literal.js +6 -0
- package/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js +8 -0
- package/node_modules/@swc/helpers/esm/_throw.js +4 -0
- package/node_modules/@swc/helpers/esm/_to_array.js +9 -0
- package/node_modules/@swc/helpers/esm/_to_consumable_array.js +9 -0
- package/node_modules/@swc/helpers/esm/_to_primitive.js +16 -0
- package/node_modules/@swc/helpers/esm/_to_property_key.js +9 -0
- package/node_modules/@swc/helpers/esm/_ts_add_disposable_resource.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_decorate.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_dispose_resources.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_generator.js +29 -0
- package/node_modules/@swc/helpers/esm/_ts_metadata.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_param.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_rewrite_relative_import_extension.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_values.js +1 -0
- package/node_modules/@swc/helpers/esm/_type_of.js +6 -0
- package/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js +13 -0
- package/node_modules/@swc/helpers/esm/_update.js +14 -0
- package/node_modules/@swc/helpers/esm/_using.js +22 -0
- package/node_modules/@swc/helpers/esm/_using_ctx.js +73 -0
- package/node_modules/@swc/helpers/esm/_wrap_async_generator.js +8 -0
- package/node_modules/@swc/helpers/esm/_wrap_native_super.js +26 -0
- package/node_modules/@swc/helpers/esm/_wrap_reg_exp.js +82 -0
- package/node_modules/@swc/helpers/esm/_write_only_error.js +4 -0
- package/node_modules/@swc/helpers/esm/index.js +110 -0
- package/node_modules/@swc/helpers/package.json +702 -0
- package/node_modules/@swc/helpers/scripts/ast_grep.js +218 -0
- package/node_modules/@swc/helpers/scripts/build.js +133 -0
- package/node_modules/@swc/helpers/scripts/errors.js +1 -0
- package/node_modules/@swc/helpers/scripts/utils.js +3 -0
- package/node_modules/@swc/helpers/src/_apply_decorated_descriptor.mjs +1 -0
- package/node_modules/@swc/helpers/src/_apply_decs_2203_r.mjs +1 -0
- package/node_modules/@swc/helpers/src/_apply_decs_2311.mjs +1 -0
- package/node_modules/@swc/helpers/src/_array_like_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_array_with_holes.mjs +1 -0
- package/node_modules/@swc/helpers/src/_array_without_holes.mjs +1 -0
- package/node_modules/@swc/helpers/src/_assert_this_initialized.mjs +1 -0
- package/node_modules/@swc/helpers/src/_async_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_async_generator_delegate.mjs +1 -0
- package/node_modules/@swc/helpers/src/_async_iterator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_async_to_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_await_async_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_await_value.mjs +1 -0
- package/node_modules/@swc/helpers/src/_call_super.mjs +1 -0
- package/node_modules/@swc/helpers/src/_check_private_redeclaration.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_apply_descriptor_destructure.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_apply_descriptor_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_apply_descriptor_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_apply_descriptor_update.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_call_check.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_check_private_static_access.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_check_private_static_field_descriptor.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_extract_field_descriptor.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_name_tdz_error.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_destructure.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_init.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_loose_base.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_loose_key.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_update.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_method_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_method_init.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_method_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_field_destructure.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_field_spec_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_field_spec_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_field_update.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_method_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_construct.mjs +1 -0
- package/node_modules/@swc/helpers/src/_create_class.mjs +1 -0
- package/node_modules/@swc/helpers/src/_create_for_of_iterator_helper_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_create_super.mjs +1 -0
- package/node_modules/@swc/helpers/src/_decorate.mjs +1 -0
- package/node_modules/@swc/helpers/src/_defaults.mjs +1 -0
- package/node_modules/@swc/helpers/src/_define_enumerable_properties.mjs +1 -0
- package/node_modules/@swc/helpers/src/_define_property.mjs +1 -0
- package/node_modules/@swc/helpers/src/_dispose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_export_star.mjs +1 -0
- package/node_modules/@swc/helpers/src/_extends.mjs +1 -0
- package/node_modules/@swc/helpers/src/_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_get_prototype_of.mjs +1 -0
- package/node_modules/@swc/helpers/src/_identity.mjs +1 -0
- package/node_modules/@swc/helpers/src/_inherits.mjs +1 -0
- package/node_modules/@swc/helpers/src/_inherits_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_initializer_define_property.mjs +1 -0
- package/node_modules/@swc/helpers/src/_initializer_warning_helper.mjs +1 -0
- package/node_modules/@swc/helpers/src/_instanceof.mjs +1 -0
- package/node_modules/@swc/helpers/src/_interop_require_default.mjs +1 -0
- package/node_modules/@swc/helpers/src/_interop_require_wildcard.mjs +1 -0
- package/node_modules/@swc/helpers/src/_is_native_function.mjs +1 -0
- package/node_modules/@swc/helpers/src/_is_native_reflect_construct.mjs +1 -0
- package/node_modules/@swc/helpers/src/_iterable_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_iterable_to_array_limit.mjs +1 -0
- package/node_modules/@swc/helpers/src/_iterable_to_array_limit_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_jsx.mjs +1 -0
- package/node_modules/@swc/helpers/src/_new_arrow_check.mjs +1 -0
- package/node_modules/@swc/helpers/src/_non_iterable_rest.mjs +1 -0
- package/node_modules/@swc/helpers/src/_non_iterable_spread.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_destructuring_empty.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_spread.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_spread_props.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_without_properties.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_without_properties_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_overload_yield.mjs +1 -0
- package/node_modules/@swc/helpers/src/_possible_constructor_return.mjs +1 -0
- package/node_modules/@swc/helpers/src/_read_only_error.mjs +1 -0
- package/node_modules/@swc/helpers/src/_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_set_prototype_of.mjs +1 -0
- package/node_modules/@swc/helpers/src/_skip_first_generator_next.mjs +1 -0
- package/node_modules/@swc/helpers/src/_sliced_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_sliced_to_array_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_super_prop_base.mjs +1 -0
- package/node_modules/@swc/helpers/src/_tagged_template_literal.mjs +1 -0
- package/node_modules/@swc/helpers/src/_tagged_template_literal_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_throw.mjs +1 -0
- package/node_modules/@swc/helpers/src/_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_to_consumable_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_to_primitive.mjs +1 -0
- package/node_modules/@swc/helpers/src/_to_property_key.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_add_disposable_resource.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_decorate.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_dispose_resources.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_metadata.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_param.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_rewrite_relative_import_extension.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_values.mjs +1 -0
- package/node_modules/@swc/helpers/src/_type_of.mjs +1 -0
- package/node_modules/@swc/helpers/src/_unsupported_iterable_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_update.mjs +1 -0
- package/node_modules/@swc/helpers/src/_using.mjs +1 -0
- package/node_modules/@swc/helpers/src/_using_ctx.mjs +1 -0
- package/node_modules/@swc/helpers/src/_wrap_async_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_wrap_native_super.mjs +1 -0
- package/node_modules/@swc/helpers/src/_wrap_reg_exp.mjs +1 -0
- package/node_modules/@swc/helpers/src/_write_only_error.mjs +1 -0
- package/node_modules/@swc/helpers/src/index.mjs +1 -0
- package/node_modules/brotli/build/encode.js +57 -0
- package/node_modules/brotli/build/mem.js +1 -0
- package/node_modules/brotli/compress.js +43 -0
- package/node_modules/brotli/dec/bit_reader.js +124 -0
- package/node_modules/brotli/dec/context.js +250 -0
- package/node_modules/brotli/dec/decode.js +938 -0
- package/node_modules/brotli/dec/dictionary-browser.js +14 -0
- package/node_modules/brotli/dec/dictionary-data.js +9469 -0
- package/node_modules/brotli/dec/dictionary.bin.js +1 -0
- package/node_modules/brotli/dec/dictionary.js +36 -0
- package/node_modules/brotli/dec/huffman.js +123 -0
- package/node_modules/brotli/dec/prefix.js +60 -0
- package/node_modules/brotli/dec/streams.js +34 -0
- package/node_modules/brotli/dec/transform.js +247 -0
- package/node_modules/brotli/decompress.js +1 -0
- package/node_modules/brotli/enc/pre.js +7 -0
- package/node_modules/brotli/index.js +2 -0
- package/node_modules/brotli/package.json +31 -0
- package/node_modules/brotli/readme.md +61 -0
- package/node_modules/clone/.npmignore +4 -0
- package/node_modules/clone/LICENSE +18 -0
- package/node_modules/clone/README.md +194 -0
- package/node_modules/clone/clone.iml +10 -0
- package/node_modules/clone/clone.js +257 -0
- package/node_modules/clone/package.json +53 -0
- package/node_modules/dfa/README.md +83 -0
- package/node_modules/dfa/compile.js +1834 -0
- package/node_modules/dfa/index.js +91 -0
- package/node_modules/dfa/package.json +38 -0
- package/node_modules/execa/index.js +25 -0
- package/node_modules/execa/lib/arguments/command-file.js +201 -0
- package/node_modules/execa/lib/arguments/command.js +20 -0
- package/node_modules/execa/lib/arguments/cwd.js +39 -0
- package/node_modules/execa/lib/arguments/encoding-option.js +50 -0
- package/node_modules/execa/lib/arguments/escape.js +88 -0
- package/node_modules/execa/lib/arguments/fd-options.js +109 -0
- package/node_modules/execa/lib/arguments/file-url.js +25 -0
- package/node_modules/execa/lib/arguments/options.js +105 -0
- package/node_modules/execa/lib/arguments/shell.js +11 -0
- package/node_modules/execa/lib/arguments/specific.js +112 -0
- package/node_modules/execa/lib/convert/add.js +19 -0
- package/node_modules/execa/lib/convert/concurrent.js +33 -0
- package/node_modules/execa/lib/convert/duplex.js +69 -0
- package/node_modules/execa/lib/convert/iterable.js +34 -0
- package/node_modules/execa/lib/convert/readable.js +129 -0
- package/node_modules/execa/lib/convert/shared.js +46 -0
- package/node_modules/execa/lib/convert/web.js +7 -0
- package/node_modules/execa/lib/convert/writable.js +111 -0
- package/node_modules/execa/lib/io/contents.js +116 -0
- package/node_modules/execa/lib/io/input-sync.js +44 -0
- package/node_modules/execa/lib/io/iterate.js +110 -0
- package/node_modules/execa/lib/io/max-buffer.js +89 -0
- package/node_modules/execa/lib/io/output-async.js +82 -0
- package/node_modules/execa/lib/io/output-sync.js +136 -0
- package/node_modules/execa/lib/io/pipeline.js +48 -0
- package/node_modules/execa/lib/io/strip-newline.js +12 -0
- package/node_modules/execa/lib/ipc/array.js +4 -0
- package/node_modules/execa/lib/ipc/buffer-messages.js +47 -0
- package/node_modules/execa/lib/ipc/forward.js +56 -0
- package/node_modules/execa/lib/ipc/get-each.js +113 -0
- package/node_modules/execa/lib/ipc/get-one.js +92 -0
- package/node_modules/execa/lib/ipc/graceful.js +72 -0
- package/node_modules/execa/lib/ipc/incoming.js +79 -0
- package/node_modules/execa/lib/ipc/ipc-input.js +50 -0
- package/node_modules/execa/lib/ipc/methods.js +50 -0
- package/node_modules/execa/lib/ipc/outgoing.js +53 -0
- package/node_modules/execa/lib/ipc/reference.js +48 -0
- package/node_modules/execa/lib/ipc/send.js +91 -0
- package/node_modules/execa/lib/ipc/strict.js +113 -0
- package/node_modules/execa/lib/ipc/validation.js +111 -0
- package/node_modules/execa/lib/methods/bind.js +23 -0
- package/node_modules/execa/lib/methods/command.js +27 -0
- package/node_modules/execa/lib/methods/create.js +63 -0
- package/node_modules/execa/lib/methods/main-async.js +235 -0
- package/node_modules/execa/lib/methods/main-sync.js +167 -0
- package/node_modules/execa/lib/methods/node.js +63 -0
- package/node_modules/execa/lib/methods/parameters.js +32 -0
- package/node_modules/execa/lib/methods/promise.js +2 -0
- package/node_modules/execa/lib/methods/script.js +22 -0
- package/node_modules/execa/lib/methods/template.js +153 -0
- package/node_modules/execa/lib/pipe/abort.js +20 -0
- package/node_modules/execa/lib/pipe/pipe-arguments.js +91 -0
- package/node_modules/execa/lib/pipe/sequence.js +24 -0
- package/node_modules/execa/lib/pipe/setup.js +230 -0
- package/node_modules/execa/lib/pipe/streaming.js +51 -0
- package/node_modules/execa/lib/pipe/throw.js +58 -0
- package/node_modules/execa/lib/resolve/all-async.js +46 -0
- package/node_modules/execa/lib/resolve/all-sync.js +33 -0
- package/node_modules/execa/lib/resolve/exit-async.js +54 -0
- package/node_modules/execa/lib/resolve/exit-sync.js +25 -0
- package/node_modules/execa/lib/resolve/stdio.js +47 -0
- package/node_modules/execa/lib/resolve/wait-stream.js +97 -0
- package/node_modules/execa/lib/resolve/wait-subprocess.js +150 -0
- package/node_modules/execa/lib/return/duration.js +8 -0
- package/node_modules/execa/lib/return/early-error.js +77 -0
- package/node_modules/execa/lib/return/final-error.js +44 -0
- package/node_modules/execa/lib/return/message.js +157 -0
- package/node_modules/execa/lib/return/reject.js +13 -0
- package/node_modules/execa/lib/return/result.js +186 -0
- package/node_modules/execa/lib/stdio/direction.js +89 -0
- package/node_modules/execa/lib/stdio/duplicate.js +119 -0
- package/node_modules/execa/lib/stdio/handle-async.js +52 -0
- package/node_modules/execa/lib/stdio/handle-sync.js +68 -0
- package/node_modules/execa/lib/stdio/handle.js +243 -0
- package/node_modules/execa/lib/stdio/input-option.js +54 -0
- package/node_modules/execa/lib/stdio/native.js +106 -0
- package/node_modules/execa/lib/stdio/stdio-option.js +95 -0
- package/node_modules/execa/lib/stdio/type.js +181 -0
- package/node_modules/execa/lib/terminate/cancel.js +20 -0
- package/node_modules/execa/lib/terminate/cleanup.js +16 -0
- package/node_modules/execa/lib/terminate/graceful.js +73 -0
- package/node_modules/execa/lib/terminate/kill-descendants.js +79 -0
- package/node_modules/execa/lib/terminate/kill.js +93 -0
- package/node_modules/execa/lib/terminate/signal.js +70 -0
- package/node_modules/execa/lib/terminate/timeout.js +21 -0
- package/node_modules/execa/lib/transform/encoding-transform.js +51 -0
- package/node_modules/execa/lib/transform/generator.js +107 -0
- package/node_modules/execa/lib/transform/normalize.js +106 -0
- package/node_modules/execa/lib/transform/object-mode.js +41 -0
- package/node_modules/execa/lib/transform/run-async.js +60 -0
- package/node_modules/execa/lib/transform/run-sync.js +50 -0
- package/node_modules/execa/lib/transform/split.js +112 -0
- package/node_modules/execa/lib/transform/validate.js +43 -0
- package/node_modules/execa/lib/utils/abort-signal.js +8 -0
- package/node_modules/execa/lib/utils/deferred.js +7 -0
- package/node_modules/execa/lib/utils/max-listeners.js +14 -0
- package/node_modules/execa/lib/utils/standard-stream.js +6 -0
- package/node_modules/execa/lib/utils/uint-array.js +69 -0
- package/node_modules/execa/lib/verbose/complete.js +24 -0
- package/node_modules/execa/lib/verbose/custom.js +26 -0
- package/node_modules/execa/lib/verbose/default.js +54 -0
- package/node_modules/execa/lib/verbose/error.js +13 -0
- package/node_modules/execa/lib/verbose/info.js +39 -0
- package/node_modules/execa/lib/verbose/ipc.js +15 -0
- package/node_modules/execa/lib/verbose/log.js +54 -0
- package/node_modules/execa/lib/verbose/output.js +60 -0
- package/node_modules/execa/lib/verbose/start.js +15 -0
- package/node_modules/execa/lib/verbose/values.js +33 -0
- package/node_modules/execa/license +9 -0
- package/node_modules/execa/package.json +124 -0
- package/node_modules/execa/readme.md +461 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +51 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/figures/index.js +292 -0
- package/node_modules/figures/license +9 -0
- package/node_modules/figures/package.json +46 -0
- package/node_modules/figures/readme.md +337 -0
- package/node_modules/fontkit/README.md +266 -0
- package/node_modules/fontkit/dist/browser-module.mjs +13316 -0
- package/node_modules/fontkit/dist/browser.cjs +13333 -0
- package/node_modules/fontkit/dist/main.cjs +13355 -0
- package/node_modules/fontkit/dist/module.mjs +13337 -0
- package/node_modules/fontkit/package.json +87 -0
- package/node_modules/fontkit/src/CmapProcessor.js +286 -0
- package/node_modules/fontkit/src/DFont.js +117 -0
- package/node_modules/fontkit/src/TTFFont.js +554 -0
- package/node_modules/fontkit/src/TrueTypeCollection.js +67 -0
- package/node_modules/fontkit/src/WOFF2Font.js +216 -0
- package/node_modules/fontkit/src/WOFFFont.js +36 -0
- package/node_modules/fontkit/src/aat/AATFeatureMap.js +543 -0
- package/node_modules/fontkit/src/aat/AATLayoutEngine.js +49 -0
- package/node_modules/fontkit/src/aat/AATLookupTable.js +125 -0
- package/node_modules/fontkit/src/aat/AATMorxProcessor.js +430 -0
- package/node_modules/fontkit/src/aat/AATStateMachine.js +96 -0
- package/node_modules/fontkit/src/base.js +29 -0
- package/node_modules/fontkit/src/cff/CFFCharsets.js +99 -0
- package/node_modules/fontkit/src/cff/CFFDict.js +167 -0
- package/node_modules/fontkit/src/cff/CFFEncodings.js +48 -0
- package/node_modules/fontkit/src/cff/CFFFont.js +159 -0
- package/node_modules/fontkit/src/cff/CFFIndex.js +150 -0
- package/node_modules/fontkit/src/cff/CFFOperand.js +134 -0
- package/node_modules/fontkit/src/cff/CFFPointer.js +50 -0
- package/node_modules/fontkit/src/cff/CFFPrivateDict.js +39 -0
- package/node_modules/fontkit/src/cff/CFFStandardStrings.js +71 -0
- package/node_modules/fontkit/src/cff/CFFTop.js +237 -0
- package/node_modules/fontkit/src/decorators.js +36 -0
- package/node_modules/fontkit/src/encodings.js +219 -0
- package/node_modules/fontkit/src/fs.js +17 -0
- package/node_modules/fontkit/src/glyph/BBox.js +72 -0
- package/node_modules/fontkit/src/glyph/CFFGlyph.js +604 -0
- package/node_modules/fontkit/src/glyph/COLRGlyph.js +90 -0
- package/node_modules/fontkit/src/glyph/Glyph.js +212 -0
- package/node_modules/fontkit/src/glyph/GlyphVariationProcessor.js +486 -0
- package/node_modules/fontkit/src/glyph/Path.js +244 -0
- package/node_modules/fontkit/src/glyph/SBIXGlyph.js +54 -0
- package/node_modules/fontkit/src/glyph/StandardNames.js +27 -0
- package/node_modules/fontkit/src/glyph/TTFGlyph.js +393 -0
- package/node_modules/fontkit/src/glyph/TTFGlyphEncoder.js +158 -0
- package/node_modules/fontkit/src/glyph/WOFF2Glyph.js +17 -0
- package/node_modules/fontkit/src/index.js +15 -0
- package/node_modules/fontkit/src/layout/GlyphPosition.js +30 -0
- package/node_modules/fontkit/src/layout/GlyphRun.js +108 -0
- package/node_modules/fontkit/src/layout/KernProcessor.js +94 -0
- package/node_modules/fontkit/src/layout/LayoutEngine.js +189 -0
- package/node_modules/fontkit/src/layout/Script.js +231 -0
- package/node_modules/fontkit/src/layout/UnicodeLayoutEngine.js +250 -0
- package/node_modules/fontkit/src/node.js +17 -0
- package/node_modules/fontkit/src/opentype/GPOSProcessor.js +353 -0
- package/node_modules/fontkit/src/opentype/GSUBProcessor.js +192 -0
- package/node_modules/fontkit/src/opentype/GlyphInfo.js +57 -0
- package/node_modules/fontkit/src/opentype/GlyphIterator.js +70 -0
- package/node_modules/fontkit/src/opentype/OTLayoutEngine.js +113 -0
- package/node_modules/fontkit/src/opentype/OTProcessor.js +438 -0
- package/node_modules/fontkit/src/opentype/ShapingPlan.js +118 -0
- package/node_modules/fontkit/src/opentype/shapers/ArabicShaper.js +123 -0
- package/node_modules/fontkit/src/opentype/shapers/DefaultShaper.js +72 -0
- package/node_modules/fontkit/src/opentype/shapers/HangulShaper.js +285 -0
- package/node_modules/fontkit/src/opentype/shapers/IndicShaper.js +911 -0
- package/node_modules/fontkit/src/opentype/shapers/UniversalShaper.js +185 -0
- package/node_modules/fontkit/src/opentype/shapers/data.trie +0 -0
- package/node_modules/fontkit/src/opentype/shapers/gen-indic.js +208 -0
- package/node_modules/fontkit/src/opentype/shapers/gen-use.js +287 -0
- package/node_modules/fontkit/src/opentype/shapers/generate-data.js +33 -0
- package/node_modules/fontkit/src/opentype/shapers/index.js +102 -0
- package/node_modules/fontkit/src/opentype/shapers/indic-data.js +175 -0
- package/node_modules/fontkit/src/opentype/shapers/indic.json +1 -0
- package/node_modules/fontkit/src/opentype/shapers/indic.machine +31 -0
- package/node_modules/fontkit/src/opentype/shapers/indic.trie +0 -0
- package/node_modules/fontkit/src/opentype/shapers/use.json +1 -0
- package/node_modules/fontkit/src/opentype/shapers/use.machine +44 -0
- package/node_modules/fontkit/src/opentype/shapers/use.trie +0 -0
- package/node_modules/fontkit/src/subset/CFFSubset.js +171 -0
- package/node_modules/fontkit/src/subset/Subset.js +27 -0
- package/node_modules/fontkit/src/subset/TTFSubset.js +131 -0
- package/node_modules/fontkit/src/tables/BASE.js +78 -0
- package/node_modules/fontkit/src/tables/COLR.js +25 -0
- package/node_modules/fontkit/src/tables/CPAL.js +24 -0
- package/node_modules/fontkit/src/tables/DSIG.js +21 -0
- package/node_modules/fontkit/src/tables/EBDT.js +91 -0
- package/node_modules/fontkit/src/tables/EBLC.js +80 -0
- package/node_modules/fontkit/src/tables/GDEF.js +57 -0
- package/node_modules/fontkit/src/tables/GPOS.js +209 -0
- package/node_modules/fontkit/src/tables/GSUB.js +84 -0
- package/node_modules/fontkit/src/tables/HVAR.js +44 -0
- package/node_modules/fontkit/src/tables/JSTF.js +43 -0
- package/node_modules/fontkit/src/tables/LTSH.js +10 -0
- package/node_modules/fontkit/src/tables/OS2.js +84 -0
- package/node_modules/fontkit/src/tables/PCLT.js +21 -0
- package/node_modules/fontkit/src/tables/VDMX.js +33 -0
- package/node_modules/fontkit/src/tables/VORG.js +14 -0
- package/node_modules/fontkit/src/tables/WOFF2Directory.js +74 -0
- package/node_modules/fontkit/src/tables/WOFFDirectory.js +38 -0
- package/node_modules/fontkit/src/tables/aat.js +157 -0
- package/node_modules/fontkit/src/tables/avar.js +19 -0
- package/node_modules/fontkit/src/tables/bsln.js +31 -0
- package/node_modules/fontkit/src/tables/cmap.js +127 -0
- package/node_modules/fontkit/src/tables/cvt.js +6 -0
- package/node_modules/fontkit/src/tables/directory.js +58 -0
- package/node_modules/fontkit/src/tables/feat.js +28 -0
- package/node_modules/fontkit/src/tables/fpgm.js +8 -0
- package/node_modules/fontkit/src/tables/fvar.js +31 -0
- package/node_modules/fontkit/src/tables/gasp.js +15 -0
- package/node_modules/fontkit/src/tables/glyf.js +4 -0
- package/node_modules/fontkit/src/tables/gvar.js +27 -0
- package/node_modules/fontkit/src/tables/hdmx.js +15 -0
- package/node_modules/fontkit/src/tables/head.js +25 -0
- package/node_modules/fontkit/src/tables/hhea.js +19 -0
- package/node_modules/fontkit/src/tables/hmtx.js +11 -0
- package/node_modules/fontkit/src/tables/index.js +117 -0
- package/node_modules/fontkit/src/tables/just.js +81 -0
- package/node_modules/fontkit/src/tables/kern.js +91 -0
- package/node_modules/fontkit/src/tables/loca.js +30 -0
- package/node_modules/fontkit/src/tables/maxp.js +20 -0
- package/node_modules/fontkit/src/tables/morx.js +79 -0
- package/node_modules/fontkit/src/tables/name.js +130 -0
- package/node_modules/fontkit/src/tables/opbd.js +15 -0
- package/node_modules/fontkit/src/tables/opentype.js +217 -0
- package/node_modules/fontkit/src/tables/post.js +34 -0
- package/node_modules/fontkit/src/tables/prep.js +6 -0
- package/node_modules/fontkit/src/tables/sbix.js +17 -0
- package/node_modules/fontkit/src/tables/variations.js +81 -0
- package/node_modules/fontkit/src/tables/vhea.js +19 -0
- package/node_modules/fontkit/src/tables/vmtx.js +12 -0
- package/node_modules/fontkit/src/utils.js +62 -0
- package/node_modules/get-stream/license +9 -0
- package/node_modules/get-stream/package.json +56 -0
- package/node_modules/get-stream/readme.md +303 -0
- package/node_modules/get-stream/source/array-buffer.js +84 -0
- package/node_modules/get-stream/source/array.js +32 -0
- package/node_modules/get-stream/source/buffer.js +19 -0
- package/node_modules/get-stream/source/contents.js +121 -0
- package/node_modules/get-stream/source/exports.js +5 -0
- package/node_modules/get-stream/source/index.js +13 -0
- package/node_modules/get-stream/source/stream.js +65 -0
- package/node_modules/get-stream/source/string.js +41 -0
- package/node_modules/get-stream/source/utils.js +11 -0
- package/node_modules/human-signals/LICENSE +201 -0
- package/node_modules/human-signals/README.md +171 -0
- package/node_modules/human-signals/build/src/core.js +273 -0
- package/node_modules/human-signals/build/src/main.js +70 -0
- package/node_modules/human-signals/build/src/realtime.js +16 -0
- package/node_modules/human-signals/build/src/signals.js +34 -0
- package/node_modules/human-signals/package.json +63 -0
- package/node_modules/is-plain-obj/index.js +8 -0
- package/node_modules/is-plain-obj/license +9 -0
- package/node_modules/is-plain-obj/package.json +38 -0
- package/node_modules/is-plain-obj/readme.md +58 -0
- package/node_modules/is-stream/index.js +37 -0
- package/node_modules/is-stream/license +9 -0
- package/node_modules/is-stream/package.json +45 -0
- package/node_modules/is-stream/readme.md +57 -0
- package/node_modules/is-unicode-supported/index.js +21 -0
- package/node_modules/is-unicode-supported/license +9 -0
- package/node_modules/is-unicode-supported/package.json +44 -0
- package/node_modules/is-unicode-supported/readme.md +35 -0
- package/node_modules/npm-run-path/index.js +55 -0
- package/node_modules/npm-run-path/license +9 -0
- package/node_modules/npm-run-path/node_modules/path-key/index.js +12 -0
- package/node_modules/npm-run-path/node_modules/path-key/license +9 -0
- package/node_modules/npm-run-path/node_modules/path-key/package.json +41 -0
- package/node_modules/npm-run-path/node_modules/path-key/readme.md +57 -0
- package/node_modules/npm-run-path/package.json +49 -0
- package/node_modules/npm-run-path/readme.md +104 -0
- package/node_modules/pako/LICENSE +21 -0
- package/node_modules/pako/README.md +176 -0
- package/node_modules/pako/dist/pako.js +6606 -0
- package/node_modules/pako/dist/pako.min.js +3 -0
- package/node_modules/pako/dist/pako_deflate.js +3879 -0
- package/node_modules/pako/dist/pako_deflate.min.js +2 -0
- package/node_modules/pako/dist/pako_inflate.js +3127 -0
- package/node_modules/pako/dist/pako_inflate.min.js +2 -0
- package/node_modules/pako/index.js +14 -0
- package/node_modules/pako/lib/deflate.js +400 -0
- package/node_modules/pako/lib/inflate.js +418 -0
- package/node_modules/pako/lib/utils/common.js +102 -0
- package/node_modules/pako/lib/utils/strings.js +185 -0
- package/node_modules/pako/lib/zlib/adler32.js +32 -0
- package/node_modules/pako/lib/zlib/constants.js +50 -0
- package/node_modules/pako/lib/zlib/crc32.js +41 -0
- package/node_modules/pako/lib/zlib/deflate.js +1855 -0
- package/node_modules/pako/lib/zlib/gzheader.js +40 -0
- package/node_modules/pako/lib/zlib/inffast.js +326 -0
- package/node_modules/pako/lib/zlib/inflate.js +1538 -0
- package/node_modules/pako/lib/zlib/inftrees.js +327 -0
- package/node_modules/pako/lib/zlib/messages.js +13 -0
- package/node_modules/pako/lib/zlib/trees.js +1202 -0
- package/node_modules/pako/lib/zlib/zstream.js +29 -0
- package/node_modules/pako/package.json +40 -0
- package/node_modules/parse-ms/index.js +45 -0
- package/node_modules/parse-ms/license +9 -0
- package/node_modules/parse-ms/package.json +44 -0
- package/node_modules/parse-ms/readme.md +46 -0
- package/node_modules/pretty-ms/index.js +150 -0
- package/node_modules/pretty-ms/license +9 -0
- package/node_modules/pretty-ms/package.json +52 -0
- package/node_modules/pretty-ms/readme.md +198 -0
- package/node_modules/restructure/LICENSE +21 -0
- package/node_modules/restructure/README.md +300 -0
- package/node_modules/restructure/dist/main.cjs +1019 -0
- package/node_modules/restructure/index.js +17 -0
- package/node_modules/restructure/package.json +36 -0
- package/node_modules/restructure/src/Array.js +106 -0
- package/node_modules/restructure/src/Base.js +17 -0
- package/node_modules/restructure/src/Bitfield.js +39 -0
- package/node_modules/restructure/src/Boolean.js +22 -0
- package/node_modules/restructure/src/Buffer.js +38 -0
- package/node_modules/restructure/src/DecodeStream.js +85 -0
- package/node_modules/restructure/src/EncodeStream.js +129 -0
- package/node_modules/restructure/src/Enum.js +27 -0
- package/node_modules/restructure/src/LazyArray.js +74 -0
- package/node_modules/restructure/src/Number.js +77 -0
- package/node_modules/restructure/src/Optional.js +44 -0
- package/node_modules/restructure/src/Pointer.js +167 -0
- package/node_modules/restructure/src/Reserved.js +23 -0
- package/node_modules/restructure/src/String.js +155 -0
- package/node_modules/restructure/src/Struct.js +113 -0
- package/node_modules/restructure/src/VersionedStruct.js +139 -0
- package/node_modules/restructure/src/utils.js +35 -0
- package/node_modules/restructure/test/Array.js +103 -0
- package/node_modules/restructure/test/Bitfield.js +29 -0
- package/node_modules/restructure/test/Boolean.js +39 -0
- package/node_modules/restructure/test/Buffer.js +45 -0
- package/node_modules/restructure/test/DecodeStream.js +101 -0
- package/node_modules/restructure/test/EncodeStream.js +104 -0
- package/node_modules/restructure/test/Enum.js +24 -0
- package/node_modules/restructure/test/LazyArray.js +59 -0
- package/node_modules/restructure/test/Number.js +356 -0
- package/node_modules/restructure/test/Optional.js +100 -0
- package/node_modules/restructure/test/Pointer.js +289 -0
- package/node_modules/restructure/test/Reserved.js +26 -0
- package/node_modules/restructure/test/String.js +151 -0
- package/node_modules/restructure/test/Struct.js +146 -0
- package/node_modules/restructure/test/VersionedStruct.js +495 -0
- package/node_modules/saxes/README.md +323 -0
- package/node_modules/saxes/package.json +55 -0
- package/node_modules/saxes/saxes.js +2053 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +74 -0
- package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/node_modules/signal-exit/package.json +93 -0
- package/node_modules/strip-final-newline/index.js +26 -0
- package/node_modules/strip-final-newline/license +9 -0
- package/node_modules/strip-final-newline/package.json +46 -0
- package/node_modules/strip-final-newline/readme.md +34 -0
- package/node_modules/tiny-inflate/LICENSE +21 -0
- package/node_modules/tiny-inflate/index.js +375 -0
- package/node_modules/tiny-inflate/package.json +25 -0
- package/node_modules/tiny-inflate/readme.md +31 -0
- package/node_modules/tiny-inflate/test/index.js +75 -0
- package/node_modules/tiny-inflate/test/lorem.txt +199 -0
- package/node_modules/unicode-properties/LICENSE +8 -0
- package/node_modules/unicode-properties/dist/main.cjs +150 -0
- package/node_modules/unicode-properties/dist/module.mjs +127 -0
- package/node_modules/unicode-properties/package.json +44 -0
- package/node_modules/unicode-properties/readme.md +78 -0
- package/node_modules/unicode-trie/LICENSE +8 -0
- package/node_modules/unicode-trie/README.md +77 -0
- package/node_modules/unicode-trie/builder.js +966 -0
- package/node_modules/unicode-trie/index.js +136 -0
- package/node_modules/unicode-trie/package.json +23 -0
- package/node_modules/unicode-trie/swap.js +25 -0
- package/node_modules/unicode-trie/test/mocha.opts +1 -0
- package/node_modules/unicode-trie/test/test.js +243 -0
- package/node_modules/unicorn-magic/default.js +14 -0
- package/node_modules/unicorn-magic/license +9 -0
- package/node_modules/unicorn-magic/node.js +49 -0
- package/node_modules/unicorn-magic/package.json +59 -0
- package/node_modules/unicorn-magic/readme.md +25 -0
- package/node_modules/which-command/cli.js +74 -0
- package/node_modules/which-command/index.js +170 -0
- package/node_modules/which-command/license +9 -0
- package/node_modules/which-command/package.json +46 -0
- package/node_modules/which-command/readme.md +121 -0
- package/node_modules/xmlchars/LICENSE +18 -0
- package/node_modules/xmlchars/README.md +33 -0
- package/node_modules/xmlchars/package.json +34 -0
- package/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
- package/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
- package/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
- package/node_modules/xmlchars/xmlchars.js +191 -0
- package/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
- package/node_modules/yoctocolors/base.js +118 -0
- package/node_modules/yoctocolors/index.js +2 -0
- package/node_modules/yoctocolors/license +9 -0
- package/node_modules/yoctocolors/package.json +66 -0
- package/node_modules/yoctocolors/readme.md +163 -0
- package/package.json +337 -246
- package/node_modules/@deepseek-ai/cordis-plugin-hmr/README.md +0 -51
- package/node_modules/@deepseek-ai/cordis-plugin-hmr/lib/index.js +0 -401
- package/node_modules/@deepseek-ai/cordis-plugin-hmr/src/error.ts +0 -36
- package/node_modules/@deepseek-ai/cordis-plugin-hmr/src/index.ts +0 -427
- package/node_modules/@deepseek-ai/dsh/lib/plugin-Bk_PbPwP.js +0 -130
- package/node_modules/@deepseek-ai/dsh/lib/profile-boot-DB8eVKBx.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BRtJ62WN.css +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Ly7KS3xS.js +0 -127
- /package/node_modules/@deepseek-ai/{cordis-plugin-hmr → dsh-hmr}/LICENSE +0 -0
|
@@ -0,0 +1,4979 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: "@deepseek-ai/dsh-experimental-client-ui-agent-team",
|
|
3
|
+
factory: (require) => {
|
|
4
|
+
var module = { exports: {} };
|
|
5
|
+
var exports = module.exports;
|
|
6
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let react = require("react");
|
|
9
|
+
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
10
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
11
|
+
var _a$1;
|
|
12
|
+
function $constructor(name, initializer, params) {
|
|
13
|
+
function init(inst, def) {
|
|
14
|
+
if (!inst._zod) Object.defineProperty(inst, "_zod", {
|
|
15
|
+
value: {
|
|
16
|
+
def,
|
|
17
|
+
constr: _,
|
|
18
|
+
traits: /* @__PURE__ */ new Set()
|
|
19
|
+
},
|
|
20
|
+
enumerable: false
|
|
21
|
+
});
|
|
22
|
+
if (inst._zod.traits.has(name)) return;
|
|
23
|
+
inst._zod.traits.add(name);
|
|
24
|
+
initializer(inst, def);
|
|
25
|
+
const proto = _.prototype;
|
|
26
|
+
const keys = Object.keys(proto);
|
|
27
|
+
for (let i = 0; i < keys.length; i++) {
|
|
28
|
+
const k = keys[i];
|
|
29
|
+
if (!(k in inst)) inst[k] = proto[k].bind(inst);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const Parent = params?.Parent ?? Object;
|
|
33
|
+
class Definition extends Parent {}
|
|
34
|
+
Object.defineProperty(Definition, "name", { value: name });
|
|
35
|
+
function _(def) {
|
|
36
|
+
var _a;
|
|
37
|
+
const inst = params?.Parent ? new Definition() : this;
|
|
38
|
+
init(inst, def);
|
|
39
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
40
|
+
for (const fn of inst._zod.deferred) fn();
|
|
41
|
+
return inst;
|
|
42
|
+
}
|
|
43
|
+
Object.defineProperty(_, "init", { value: init });
|
|
44
|
+
Object.defineProperty(_, Symbol.hasInstance, { value: (inst) => {
|
|
45
|
+
if (params?.Parent && inst instanceof params.Parent) return true;
|
|
46
|
+
return inst?._zod?.traits?.has(name);
|
|
47
|
+
} });
|
|
48
|
+
Object.defineProperty(_, "name", { value: name });
|
|
49
|
+
return _;
|
|
50
|
+
}
|
|
51
|
+
var $ZodAsyncError = class extends Error {
|
|
52
|
+
constructor() {
|
|
53
|
+
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var $ZodEncodeError = class extends Error {
|
|
57
|
+
constructor(name) {
|
|
58
|
+
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
59
|
+
this.name = "ZodEncodeError";
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
(_a$1 = globalThis).__zod_globalConfig ?? (_a$1.__zod_globalConfig = {});
|
|
63
|
+
const globalConfig = globalThis.__zod_globalConfig;
|
|
64
|
+
function config(newConfig) {
|
|
65
|
+
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
66
|
+
return globalConfig;
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
70
|
+
function getEnumValues(entries) {
|
|
71
|
+
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
72
|
+
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
73
|
+
}
|
|
74
|
+
function jsonStringifyReplacer(_, value) {
|
|
75
|
+
if (typeof value === "bigint") return value.toString();
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
function cached(getter) {
|
|
79
|
+
return { get value() {
|
|
80
|
+
{
|
|
81
|
+
const value = getter();
|
|
82
|
+
Object.defineProperty(this, "value", { value });
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
throw new Error("cached value already set");
|
|
86
|
+
} };
|
|
87
|
+
}
|
|
88
|
+
function nullish(input) {
|
|
89
|
+
return input === null || input === void 0;
|
|
90
|
+
}
|
|
91
|
+
function cleanRegex(source) {
|
|
92
|
+
const start = source.startsWith("^") ? 1 : 0;
|
|
93
|
+
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
94
|
+
return source.slice(start, end);
|
|
95
|
+
}
|
|
96
|
+
function floatSafeRemainder(val, step) {
|
|
97
|
+
const ratio = val / step;
|
|
98
|
+
const roundedRatio = Math.round(ratio);
|
|
99
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
100
|
+
if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
|
|
101
|
+
return ratio - roundedRatio;
|
|
102
|
+
}
|
|
103
|
+
const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
|
|
104
|
+
function defineLazy(object, key, getter) {
|
|
105
|
+
let value = void 0;
|
|
106
|
+
Object.defineProperty(object, key, {
|
|
107
|
+
get() {
|
|
108
|
+
if (value === EVALUATING) return;
|
|
109
|
+
if (value === void 0) {
|
|
110
|
+
value = EVALUATING;
|
|
111
|
+
value = getter();
|
|
112
|
+
}
|
|
113
|
+
return value;
|
|
114
|
+
},
|
|
115
|
+
set(v) {
|
|
116
|
+
Object.defineProperty(object, key, { value: v });
|
|
117
|
+
},
|
|
118
|
+
configurable: true
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function assignProp(target, prop, value) {
|
|
122
|
+
Object.defineProperty(target, prop, {
|
|
123
|
+
value,
|
|
124
|
+
writable: true,
|
|
125
|
+
enumerable: true,
|
|
126
|
+
configurable: true
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function mergeDefs(...defs) {
|
|
130
|
+
const mergedDescriptors = {};
|
|
131
|
+
for (const def of defs) Object.assign(mergedDescriptors, Object.getOwnPropertyDescriptors(def));
|
|
132
|
+
return Object.defineProperties({}, mergedDescriptors);
|
|
133
|
+
}
|
|
134
|
+
function esc(str) {
|
|
135
|
+
return JSON.stringify(str);
|
|
136
|
+
}
|
|
137
|
+
function slugify(input) {
|
|
138
|
+
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
139
|
+
}
|
|
140
|
+
const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
|
|
141
|
+
function isObject(data) {
|
|
142
|
+
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
143
|
+
}
|
|
144
|
+
const allowsEval = /* @__PURE__*/ cached(() => {
|
|
145
|
+
if (globalConfig.jitless) return false;
|
|
146
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
|
|
147
|
+
try {
|
|
148
|
+
new Function("");
|
|
149
|
+
return true;
|
|
150
|
+
} catch (_) {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
function isPlainObject(o) {
|
|
155
|
+
if (isObject(o) === false) return false;
|
|
156
|
+
const ctor = o.constructor;
|
|
157
|
+
if (ctor === void 0) return true;
|
|
158
|
+
if (typeof ctor !== "function") return true;
|
|
159
|
+
const prot = ctor.prototype;
|
|
160
|
+
if (isObject(prot) === false) return false;
|
|
161
|
+
if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false;
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
function shallowClone(o) {
|
|
165
|
+
if (isPlainObject(o)) return { ...o };
|
|
166
|
+
if (Array.isArray(o)) return [...o];
|
|
167
|
+
if (o instanceof Map) return new Map(o);
|
|
168
|
+
if (o instanceof Set) return new Set(o);
|
|
169
|
+
return o;
|
|
170
|
+
}
|
|
171
|
+
const propertyKeyTypes = /* @__PURE__*/ new Set([
|
|
172
|
+
"string",
|
|
173
|
+
"number",
|
|
174
|
+
"symbol"
|
|
175
|
+
]);
|
|
176
|
+
function escapeRegex(str) {
|
|
177
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
178
|
+
}
|
|
179
|
+
function clone(inst, def, params) {
|
|
180
|
+
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
181
|
+
if (!def || params?.parent) cl._zod.parent = inst;
|
|
182
|
+
return cl;
|
|
183
|
+
}
|
|
184
|
+
function normalizeParams(_params) {
|
|
185
|
+
const params = _params;
|
|
186
|
+
if (!params) return {};
|
|
187
|
+
if (typeof params === "string") return { error: () => params };
|
|
188
|
+
if (params?.message !== void 0) {
|
|
189
|
+
if (params?.error !== void 0) throw new Error("Cannot specify both `message` and `error` params");
|
|
190
|
+
params.error = params.message;
|
|
191
|
+
}
|
|
192
|
+
delete params.message;
|
|
193
|
+
if (typeof params.error === "string") return {
|
|
194
|
+
...params,
|
|
195
|
+
error: () => params.error
|
|
196
|
+
};
|
|
197
|
+
return params;
|
|
198
|
+
}
|
|
199
|
+
function optionalKeys(shape) {
|
|
200
|
+
return Object.keys(shape).filter((k) => {
|
|
201
|
+
return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
const NUMBER_FORMAT_RANGES = {
|
|
205
|
+
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
206
|
+
int32: [-2147483648, 2147483647],
|
|
207
|
+
uint32: [0, 4294967295],
|
|
208
|
+
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
209
|
+
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
210
|
+
};
|
|
211
|
+
function pick(schema, mask) {
|
|
212
|
+
const currDef = schema._zod.def;
|
|
213
|
+
const checks = currDef.checks;
|
|
214
|
+
if (checks && checks.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
215
|
+
return clone(schema, mergeDefs(schema._zod.def, {
|
|
216
|
+
get shape() {
|
|
217
|
+
const newShape = {};
|
|
218
|
+
for (const key in mask) {
|
|
219
|
+
if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
|
|
220
|
+
if (!mask[key]) continue;
|
|
221
|
+
newShape[key] = currDef.shape[key];
|
|
222
|
+
}
|
|
223
|
+
assignProp(this, "shape", newShape);
|
|
224
|
+
return newShape;
|
|
225
|
+
},
|
|
226
|
+
checks: []
|
|
227
|
+
}));
|
|
228
|
+
}
|
|
229
|
+
function omit(schema, mask) {
|
|
230
|
+
const currDef = schema._zod.def;
|
|
231
|
+
const checks = currDef.checks;
|
|
232
|
+
if (checks && checks.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
233
|
+
return clone(schema, mergeDefs(schema._zod.def, {
|
|
234
|
+
get shape() {
|
|
235
|
+
const newShape = { ...schema._zod.def.shape };
|
|
236
|
+
for (const key in mask) {
|
|
237
|
+
if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
|
|
238
|
+
if (!mask[key]) continue;
|
|
239
|
+
delete newShape[key];
|
|
240
|
+
}
|
|
241
|
+
assignProp(this, "shape", newShape);
|
|
242
|
+
return newShape;
|
|
243
|
+
},
|
|
244
|
+
checks: []
|
|
245
|
+
}));
|
|
246
|
+
}
|
|
247
|
+
function extend(schema, shape) {
|
|
248
|
+
if (!isPlainObject(shape)) throw new Error("Invalid input to extend: expected a plain object");
|
|
249
|
+
const checks = schema._zod.def.checks;
|
|
250
|
+
if (checks && checks.length > 0) {
|
|
251
|
+
const existingShape = schema._zod.def.shape;
|
|
252
|
+
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.");
|
|
253
|
+
}
|
|
254
|
+
return clone(schema, mergeDefs(schema._zod.def, { get shape() {
|
|
255
|
+
const _shape = {
|
|
256
|
+
...schema._zod.def.shape,
|
|
257
|
+
...shape
|
|
258
|
+
};
|
|
259
|
+
assignProp(this, "shape", _shape);
|
|
260
|
+
return _shape;
|
|
261
|
+
} }));
|
|
262
|
+
}
|
|
263
|
+
function safeExtend(schema, shape) {
|
|
264
|
+
if (!isPlainObject(shape)) throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
265
|
+
return clone(schema, mergeDefs(schema._zod.def, { get shape() {
|
|
266
|
+
const _shape = {
|
|
267
|
+
...schema._zod.def.shape,
|
|
268
|
+
...shape
|
|
269
|
+
};
|
|
270
|
+
assignProp(this, "shape", _shape);
|
|
271
|
+
return _shape;
|
|
272
|
+
} }));
|
|
273
|
+
}
|
|
274
|
+
function merge(a, b) {
|
|
275
|
+
if (a._zod.def.checks?.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
276
|
+
return clone(a, mergeDefs(a._zod.def, {
|
|
277
|
+
get shape() {
|
|
278
|
+
const _shape = {
|
|
279
|
+
...a._zod.def.shape,
|
|
280
|
+
...b._zod.def.shape
|
|
281
|
+
};
|
|
282
|
+
assignProp(this, "shape", _shape);
|
|
283
|
+
return _shape;
|
|
284
|
+
},
|
|
285
|
+
get catchall() {
|
|
286
|
+
return b._zod.def.catchall;
|
|
287
|
+
},
|
|
288
|
+
checks: b._zod.def.checks ?? []
|
|
289
|
+
}));
|
|
290
|
+
}
|
|
291
|
+
function partial(Class, schema, mask) {
|
|
292
|
+
const checks = schema._zod.def.checks;
|
|
293
|
+
if (checks && checks.length > 0) throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
294
|
+
return clone(schema, mergeDefs(schema._zod.def, {
|
|
295
|
+
get shape() {
|
|
296
|
+
const oldShape = schema._zod.def.shape;
|
|
297
|
+
const shape = { ...oldShape };
|
|
298
|
+
if (mask) for (const key in mask) {
|
|
299
|
+
if (!(key in oldShape)) throw new Error(`Unrecognized key: "${key}"`);
|
|
300
|
+
if (!mask[key]) continue;
|
|
301
|
+
shape[key] = Class ? new Class({
|
|
302
|
+
type: "optional",
|
|
303
|
+
innerType: oldShape[key]
|
|
304
|
+
}) : oldShape[key];
|
|
305
|
+
}
|
|
306
|
+
else for (const key in oldShape) shape[key] = Class ? new Class({
|
|
307
|
+
type: "optional",
|
|
308
|
+
innerType: oldShape[key]
|
|
309
|
+
}) : oldShape[key];
|
|
310
|
+
assignProp(this, "shape", shape);
|
|
311
|
+
return shape;
|
|
312
|
+
},
|
|
313
|
+
checks: []
|
|
314
|
+
}));
|
|
315
|
+
}
|
|
316
|
+
function required(Class, schema, mask) {
|
|
317
|
+
return clone(schema, mergeDefs(schema._zod.def, { get shape() {
|
|
318
|
+
const oldShape = schema._zod.def.shape;
|
|
319
|
+
const shape = { ...oldShape };
|
|
320
|
+
if (mask) for (const key in mask) {
|
|
321
|
+
if (!(key in shape)) throw new Error(`Unrecognized key: "${key}"`);
|
|
322
|
+
if (!mask[key]) continue;
|
|
323
|
+
shape[key] = new Class({
|
|
324
|
+
type: "nonoptional",
|
|
325
|
+
innerType: oldShape[key]
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
else for (const key in oldShape) shape[key] = new Class({
|
|
329
|
+
type: "nonoptional",
|
|
330
|
+
innerType: oldShape[key]
|
|
331
|
+
});
|
|
332
|
+
assignProp(this, "shape", shape);
|
|
333
|
+
return shape;
|
|
334
|
+
} }));
|
|
335
|
+
}
|
|
336
|
+
function aborted(x, startIndex = 0) {
|
|
337
|
+
if (x.aborted === true) return true;
|
|
338
|
+
for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
|
|
339
|
+
return false;
|
|
340
|
+
}
|
|
341
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
342
|
+
if (x.aborted === true) return true;
|
|
343
|
+
for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue === false) return true;
|
|
344
|
+
return false;
|
|
345
|
+
}
|
|
346
|
+
function prefixIssues(path, issues) {
|
|
347
|
+
return issues.map((iss) => {
|
|
348
|
+
var _a;
|
|
349
|
+
(_a = iss).path ?? (_a.path = []);
|
|
350
|
+
iss.path.unshift(path);
|
|
351
|
+
return iss;
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
function unwrapMessage(message) {
|
|
355
|
+
return typeof message === "string" ? message : message?.message;
|
|
356
|
+
}
|
|
357
|
+
function finalizeIssue(iss, ctx, config) {
|
|
358
|
+
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";
|
|
359
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
360
|
+
rest.path ?? (rest.path = []);
|
|
361
|
+
rest.message = message;
|
|
362
|
+
if (ctx?.reportInput) rest.input = _input;
|
|
363
|
+
return rest;
|
|
364
|
+
}
|
|
365
|
+
function getLengthableOrigin(input) {
|
|
366
|
+
if (Array.isArray(input)) return "array";
|
|
367
|
+
if (typeof input === "string") return "string";
|
|
368
|
+
return "unknown";
|
|
369
|
+
}
|
|
370
|
+
function issue(...args) {
|
|
371
|
+
const [iss, input, inst] = args;
|
|
372
|
+
if (typeof iss === "string") return {
|
|
373
|
+
message: iss,
|
|
374
|
+
code: "custom",
|
|
375
|
+
input,
|
|
376
|
+
inst
|
|
377
|
+
};
|
|
378
|
+
return { ...iss };
|
|
379
|
+
}
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
382
|
+
const initializer$1 = (inst, def) => {
|
|
383
|
+
inst.name = "$ZodError";
|
|
384
|
+
Object.defineProperty(inst, "_zod", {
|
|
385
|
+
value: inst._zod,
|
|
386
|
+
enumerable: false
|
|
387
|
+
});
|
|
388
|
+
Object.defineProperty(inst, "issues", {
|
|
389
|
+
value: def,
|
|
390
|
+
enumerable: false
|
|
391
|
+
});
|
|
392
|
+
inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
|
|
393
|
+
Object.defineProperty(inst, "toString", {
|
|
394
|
+
value: () => inst.message,
|
|
395
|
+
enumerable: false
|
|
396
|
+
});
|
|
397
|
+
};
|
|
398
|
+
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
399
|
+
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
400
|
+
function flattenError(error, mapper = (issue) => issue.message) {
|
|
401
|
+
const fieldErrors = {};
|
|
402
|
+
const formErrors = [];
|
|
403
|
+
for (const sub of error.issues) if (sub.path.length > 0) {
|
|
404
|
+
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
405
|
+
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
406
|
+
} else formErrors.push(mapper(sub));
|
|
407
|
+
return {
|
|
408
|
+
formErrors,
|
|
409
|
+
fieldErrors
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
function formatError(error, mapper = (issue) => issue.message) {
|
|
413
|
+
const fieldErrors = { _errors: [] };
|
|
414
|
+
const processError = (error, path = []) => {
|
|
415
|
+
for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
|
|
416
|
+
else if (issue.code === "invalid_key") processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
417
|
+
else if (issue.code === "invalid_element") processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
418
|
+
else {
|
|
419
|
+
const fullpath = [...path, ...issue.path];
|
|
420
|
+
if (fullpath.length === 0) fieldErrors._errors.push(mapper(issue));
|
|
421
|
+
else {
|
|
422
|
+
let curr = fieldErrors;
|
|
423
|
+
let i = 0;
|
|
424
|
+
while (i < fullpath.length) {
|
|
425
|
+
const el = fullpath[i];
|
|
426
|
+
if (!(i === fullpath.length - 1)) curr[el] = curr[el] || { _errors: [] };
|
|
427
|
+
else {
|
|
428
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
429
|
+
curr[el]._errors.push(mapper(issue));
|
|
430
|
+
}
|
|
431
|
+
curr = curr[el];
|
|
432
|
+
i++;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
processError(error);
|
|
438
|
+
return fieldErrors;
|
|
439
|
+
}
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
442
|
+
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
443
|
+
const ctx = _ctx ? {
|
|
444
|
+
..._ctx,
|
|
445
|
+
async: false
|
|
446
|
+
} : { async: false };
|
|
447
|
+
const result = schema._zod.run({
|
|
448
|
+
value,
|
|
449
|
+
issues: []
|
|
450
|
+
}, ctx);
|
|
451
|
+
if (result instanceof Promise) throw new $ZodAsyncError();
|
|
452
|
+
if (result.issues.length) {
|
|
453
|
+
const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
454
|
+
captureStackTrace(e, _params?.callee);
|
|
455
|
+
throw e;
|
|
456
|
+
}
|
|
457
|
+
return result.value;
|
|
458
|
+
};
|
|
459
|
+
const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
460
|
+
const ctx = _ctx ? {
|
|
461
|
+
..._ctx,
|
|
462
|
+
async: true
|
|
463
|
+
} : { async: true };
|
|
464
|
+
let result = schema._zod.run({
|
|
465
|
+
value,
|
|
466
|
+
issues: []
|
|
467
|
+
}, ctx);
|
|
468
|
+
if (result instanceof Promise) result = await result;
|
|
469
|
+
if (result.issues.length) {
|
|
470
|
+
const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
471
|
+
captureStackTrace(e, params?.callee);
|
|
472
|
+
throw e;
|
|
473
|
+
}
|
|
474
|
+
return result.value;
|
|
475
|
+
};
|
|
476
|
+
const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
477
|
+
const ctx = _ctx ? {
|
|
478
|
+
..._ctx,
|
|
479
|
+
async: false
|
|
480
|
+
} : { async: false };
|
|
481
|
+
const result = schema._zod.run({
|
|
482
|
+
value,
|
|
483
|
+
issues: []
|
|
484
|
+
}, ctx);
|
|
485
|
+
if (result instanceof Promise) throw new $ZodAsyncError();
|
|
486
|
+
return result.issues.length ? {
|
|
487
|
+
success: false,
|
|
488
|
+
error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
489
|
+
} : {
|
|
490
|
+
success: true,
|
|
491
|
+
data: result.value
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError);
|
|
495
|
+
const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
496
|
+
const ctx = _ctx ? {
|
|
497
|
+
..._ctx,
|
|
498
|
+
async: true
|
|
499
|
+
} : { async: true };
|
|
500
|
+
let result = schema._zod.run({
|
|
501
|
+
value,
|
|
502
|
+
issues: []
|
|
503
|
+
}, ctx);
|
|
504
|
+
if (result instanceof Promise) result = await result;
|
|
505
|
+
return result.issues.length ? {
|
|
506
|
+
success: false,
|
|
507
|
+
error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
508
|
+
} : {
|
|
509
|
+
success: true,
|
|
510
|
+
data: result.value
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
|
|
514
|
+
const _encode = (_Err) => (schema, value, _ctx) => {
|
|
515
|
+
const ctx = _ctx ? {
|
|
516
|
+
..._ctx,
|
|
517
|
+
direction: "backward"
|
|
518
|
+
} : { direction: "backward" };
|
|
519
|
+
return _parse(_Err)(schema, value, ctx);
|
|
520
|
+
};
|
|
521
|
+
const _decode = (_Err) => (schema, value, _ctx) => {
|
|
522
|
+
return _parse(_Err)(schema, value, _ctx);
|
|
523
|
+
};
|
|
524
|
+
const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
525
|
+
const ctx = _ctx ? {
|
|
526
|
+
..._ctx,
|
|
527
|
+
direction: "backward"
|
|
528
|
+
} : { direction: "backward" };
|
|
529
|
+
return _parseAsync(_Err)(schema, value, ctx);
|
|
530
|
+
};
|
|
531
|
+
const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
532
|
+
return _parseAsync(_Err)(schema, value, _ctx);
|
|
533
|
+
};
|
|
534
|
+
const _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
535
|
+
const ctx = _ctx ? {
|
|
536
|
+
..._ctx,
|
|
537
|
+
direction: "backward"
|
|
538
|
+
} : { direction: "backward" };
|
|
539
|
+
return _safeParse(_Err)(schema, value, ctx);
|
|
540
|
+
};
|
|
541
|
+
const _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
542
|
+
return _safeParse(_Err)(schema, value, _ctx);
|
|
543
|
+
};
|
|
544
|
+
const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
545
|
+
const ctx = _ctx ? {
|
|
546
|
+
..._ctx,
|
|
547
|
+
direction: "backward"
|
|
548
|
+
} : { direction: "backward" };
|
|
549
|
+
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
550
|
+
};
|
|
551
|
+
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
552
|
+
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
553
|
+
};
|
|
554
|
+
//#endregion
|
|
555
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
556
|
+
/**
|
|
557
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
558
|
+
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
559
|
+
* See https://github.com/paralleldrive/cuid.
|
|
560
|
+
*/
|
|
561
|
+
const cuid = /^[cC][0-9a-z]{6,}$/;
|
|
562
|
+
const cuid2 = /^[0-9a-z]+$/;
|
|
563
|
+
const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
564
|
+
const xid = /^[0-9a-vA-V]{20}$/;
|
|
565
|
+
const ksuid = /^[A-Za-z0-9]{27}$/;
|
|
566
|
+
const nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
567
|
+
/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
|
|
568
|
+
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)?)?)$/;
|
|
569
|
+
/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
|
|
570
|
+
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})$/;
|
|
571
|
+
/** Returns a regex for validating an RFC 9562/4122 UUID.
|
|
572
|
+
*
|
|
573
|
+
* @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
|
|
574
|
+
const uuid = (version) => {
|
|
575
|
+
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)$/;
|
|
576
|
+
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})$`);
|
|
577
|
+
};
|
|
578
|
+
/** Practical email validation */
|
|
579
|
+
const email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
|
|
580
|
+
const _emoji$1 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
581
|
+
function emoji() {
|
|
582
|
+
return new RegExp(_emoji$1, "u");
|
|
583
|
+
}
|
|
584
|
+
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])$/;
|
|
585
|
+
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}|:))$/;
|
|
586
|
+
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])$/;
|
|
587
|
+
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])$/;
|
|
588
|
+
const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
589
|
+
const base64url = /^[A-Za-z0-9_-]*$/;
|
|
590
|
+
const httpProtocol = /^https?$/;
|
|
591
|
+
const e164 = /^\+[1-9]\d{6,14}$/;
|
|
592
|
+
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])))`;
|
|
593
|
+
const date$1 = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
|
|
594
|
+
function timeSource(args) {
|
|
595
|
+
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
596
|
+
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+)?)?`;
|
|
597
|
+
}
|
|
598
|
+
function time$1(args) {
|
|
599
|
+
return new RegExp(`^${timeSource(args)}$`);
|
|
600
|
+
}
|
|
601
|
+
function datetime$1(args) {
|
|
602
|
+
const time = timeSource({ precision: args.precision });
|
|
603
|
+
const opts = ["Z"];
|
|
604
|
+
if (args.local) opts.push("");
|
|
605
|
+
if (args.offset) opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);
|
|
606
|
+
const timeRegex = `${time}(?:${opts.join("|")})`;
|
|
607
|
+
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
608
|
+
}
|
|
609
|
+
const string$1 = (params) => {
|
|
610
|
+
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
611
|
+
return new RegExp(`^${regex}$`);
|
|
612
|
+
};
|
|
613
|
+
const integer = /^-?\d+$/;
|
|
614
|
+
const number$1 = /^-?\d+(?:\.\d+)?$/;
|
|
615
|
+
const boolean$1 = /^(?:true|false)$/i;
|
|
616
|
+
const lowercase = /^[^A-Z]*$/;
|
|
617
|
+
const uppercase = /^[^a-z]*$/;
|
|
618
|
+
//#endregion
|
|
619
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
620
|
+
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
621
|
+
var _a;
|
|
622
|
+
inst._zod ?? (inst._zod = {});
|
|
623
|
+
inst._zod.def = def;
|
|
624
|
+
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
625
|
+
});
|
|
626
|
+
const numericOriginMap = {
|
|
627
|
+
number: "number",
|
|
628
|
+
bigint: "bigint",
|
|
629
|
+
object: "date"
|
|
630
|
+
};
|
|
631
|
+
const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
632
|
+
$ZodCheck.init(inst, def);
|
|
633
|
+
const origin = numericOriginMap[typeof def.value];
|
|
634
|
+
inst._zod.onattach.push((inst) => {
|
|
635
|
+
const bag = inst._zod.bag;
|
|
636
|
+
const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
637
|
+
if (def.value < curr) if (def.inclusive) bag.maximum = def.value;
|
|
638
|
+
else bag.exclusiveMaximum = def.value;
|
|
639
|
+
});
|
|
640
|
+
inst._zod.check = (payload) => {
|
|
641
|
+
if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
|
|
642
|
+
payload.issues.push({
|
|
643
|
+
origin,
|
|
644
|
+
code: "too_big",
|
|
645
|
+
maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
646
|
+
input: payload.value,
|
|
647
|
+
inclusive: def.inclusive,
|
|
648
|
+
inst,
|
|
649
|
+
continue: !def.abort
|
|
650
|
+
});
|
|
651
|
+
};
|
|
652
|
+
});
|
|
653
|
+
const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
654
|
+
$ZodCheck.init(inst, def);
|
|
655
|
+
const origin = numericOriginMap[typeof def.value];
|
|
656
|
+
inst._zod.onattach.push((inst) => {
|
|
657
|
+
const bag = inst._zod.bag;
|
|
658
|
+
const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
659
|
+
if (def.value > curr) if (def.inclusive) bag.minimum = def.value;
|
|
660
|
+
else bag.exclusiveMinimum = def.value;
|
|
661
|
+
});
|
|
662
|
+
inst._zod.check = (payload) => {
|
|
663
|
+
if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
|
|
664
|
+
payload.issues.push({
|
|
665
|
+
origin,
|
|
666
|
+
code: "too_small",
|
|
667
|
+
minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
668
|
+
input: payload.value,
|
|
669
|
+
inclusive: def.inclusive,
|
|
670
|
+
inst,
|
|
671
|
+
continue: !def.abort
|
|
672
|
+
});
|
|
673
|
+
};
|
|
674
|
+
});
|
|
675
|
+
const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
676
|
+
$ZodCheck.init(inst, def);
|
|
677
|
+
inst._zod.onattach.push((inst) => {
|
|
678
|
+
var _a;
|
|
679
|
+
(_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
|
|
680
|
+
});
|
|
681
|
+
inst._zod.check = (payload) => {
|
|
682
|
+
if (typeof payload.value !== typeof def.value) throw new Error("Cannot mix number and bigint in multiple_of check.");
|
|
683
|
+
if (typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0) return;
|
|
684
|
+
payload.issues.push({
|
|
685
|
+
origin: typeof payload.value,
|
|
686
|
+
code: "not_multiple_of",
|
|
687
|
+
divisor: def.value,
|
|
688
|
+
input: payload.value,
|
|
689
|
+
inst,
|
|
690
|
+
continue: !def.abort
|
|
691
|
+
});
|
|
692
|
+
};
|
|
693
|
+
});
|
|
694
|
+
const $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
|
|
695
|
+
$ZodCheck.init(inst, def);
|
|
696
|
+
def.format = def.format || "float64";
|
|
697
|
+
const isInt = def.format?.includes("int");
|
|
698
|
+
const origin = isInt ? "int" : "number";
|
|
699
|
+
const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
|
|
700
|
+
inst._zod.onattach.push((inst) => {
|
|
701
|
+
const bag = inst._zod.bag;
|
|
702
|
+
bag.format = def.format;
|
|
703
|
+
bag.minimum = minimum;
|
|
704
|
+
bag.maximum = maximum;
|
|
705
|
+
if (isInt) bag.pattern = integer;
|
|
706
|
+
});
|
|
707
|
+
inst._zod.check = (payload) => {
|
|
708
|
+
const input = payload.value;
|
|
709
|
+
if (isInt) {
|
|
710
|
+
if (!Number.isInteger(input)) {
|
|
711
|
+
payload.issues.push({
|
|
712
|
+
expected: origin,
|
|
713
|
+
format: def.format,
|
|
714
|
+
code: "invalid_type",
|
|
715
|
+
continue: false,
|
|
716
|
+
input,
|
|
717
|
+
inst
|
|
718
|
+
});
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
if (!Number.isSafeInteger(input)) {
|
|
722
|
+
if (input > 0) payload.issues.push({
|
|
723
|
+
input,
|
|
724
|
+
code: "too_big",
|
|
725
|
+
maximum: Number.MAX_SAFE_INTEGER,
|
|
726
|
+
note: "Integers must be within the safe integer range.",
|
|
727
|
+
inst,
|
|
728
|
+
origin,
|
|
729
|
+
inclusive: true,
|
|
730
|
+
continue: !def.abort
|
|
731
|
+
});
|
|
732
|
+
else payload.issues.push({
|
|
733
|
+
input,
|
|
734
|
+
code: "too_small",
|
|
735
|
+
minimum: Number.MIN_SAFE_INTEGER,
|
|
736
|
+
note: "Integers must be within the safe integer range.",
|
|
737
|
+
inst,
|
|
738
|
+
origin,
|
|
739
|
+
inclusive: true,
|
|
740
|
+
continue: !def.abort
|
|
741
|
+
});
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
if (input < minimum) payload.issues.push({
|
|
746
|
+
origin: "number",
|
|
747
|
+
input,
|
|
748
|
+
code: "too_small",
|
|
749
|
+
minimum,
|
|
750
|
+
inclusive: true,
|
|
751
|
+
inst,
|
|
752
|
+
continue: !def.abort
|
|
753
|
+
});
|
|
754
|
+
if (input > maximum) payload.issues.push({
|
|
755
|
+
origin: "number",
|
|
756
|
+
input,
|
|
757
|
+
code: "too_big",
|
|
758
|
+
maximum,
|
|
759
|
+
inclusive: true,
|
|
760
|
+
inst,
|
|
761
|
+
continue: !def.abort
|
|
762
|
+
});
|
|
763
|
+
};
|
|
764
|
+
});
|
|
765
|
+
const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
766
|
+
var _a;
|
|
767
|
+
$ZodCheck.init(inst, def);
|
|
768
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
769
|
+
const val = payload.value;
|
|
770
|
+
return !nullish(val) && val.length !== void 0;
|
|
771
|
+
});
|
|
772
|
+
inst._zod.onattach.push((inst) => {
|
|
773
|
+
const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
774
|
+
if (def.maximum < curr) inst._zod.bag.maximum = def.maximum;
|
|
775
|
+
});
|
|
776
|
+
inst._zod.check = (payload) => {
|
|
777
|
+
const input = payload.value;
|
|
778
|
+
if (input.length <= def.maximum) return;
|
|
779
|
+
const origin = getLengthableOrigin(input);
|
|
780
|
+
payload.issues.push({
|
|
781
|
+
origin,
|
|
782
|
+
code: "too_big",
|
|
783
|
+
maximum: def.maximum,
|
|
784
|
+
inclusive: true,
|
|
785
|
+
input,
|
|
786
|
+
inst,
|
|
787
|
+
continue: !def.abort
|
|
788
|
+
});
|
|
789
|
+
};
|
|
790
|
+
});
|
|
791
|
+
const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
792
|
+
var _a;
|
|
793
|
+
$ZodCheck.init(inst, def);
|
|
794
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
795
|
+
const val = payload.value;
|
|
796
|
+
return !nullish(val) && val.length !== void 0;
|
|
797
|
+
});
|
|
798
|
+
inst._zod.onattach.push((inst) => {
|
|
799
|
+
const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
800
|
+
if (def.minimum > curr) inst._zod.bag.minimum = def.minimum;
|
|
801
|
+
});
|
|
802
|
+
inst._zod.check = (payload) => {
|
|
803
|
+
const input = payload.value;
|
|
804
|
+
if (input.length >= def.minimum) return;
|
|
805
|
+
const origin = getLengthableOrigin(input);
|
|
806
|
+
payload.issues.push({
|
|
807
|
+
origin,
|
|
808
|
+
code: "too_small",
|
|
809
|
+
minimum: def.minimum,
|
|
810
|
+
inclusive: true,
|
|
811
|
+
input,
|
|
812
|
+
inst,
|
|
813
|
+
continue: !def.abort
|
|
814
|
+
});
|
|
815
|
+
};
|
|
816
|
+
});
|
|
817
|
+
const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
818
|
+
var _a;
|
|
819
|
+
$ZodCheck.init(inst, def);
|
|
820
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
821
|
+
const val = payload.value;
|
|
822
|
+
return !nullish(val) && val.length !== void 0;
|
|
823
|
+
});
|
|
824
|
+
inst._zod.onattach.push((inst) => {
|
|
825
|
+
const bag = inst._zod.bag;
|
|
826
|
+
bag.minimum = def.length;
|
|
827
|
+
bag.maximum = def.length;
|
|
828
|
+
bag.length = def.length;
|
|
829
|
+
});
|
|
830
|
+
inst._zod.check = (payload) => {
|
|
831
|
+
const input = payload.value;
|
|
832
|
+
const length = input.length;
|
|
833
|
+
if (length === def.length) return;
|
|
834
|
+
const origin = getLengthableOrigin(input);
|
|
835
|
+
const tooBig = length > def.length;
|
|
836
|
+
payload.issues.push({
|
|
837
|
+
origin,
|
|
838
|
+
...tooBig ? {
|
|
839
|
+
code: "too_big",
|
|
840
|
+
maximum: def.length
|
|
841
|
+
} : {
|
|
842
|
+
code: "too_small",
|
|
843
|
+
minimum: def.length
|
|
844
|
+
},
|
|
845
|
+
inclusive: true,
|
|
846
|
+
exact: true,
|
|
847
|
+
input: payload.value,
|
|
848
|
+
inst,
|
|
849
|
+
continue: !def.abort
|
|
850
|
+
});
|
|
851
|
+
};
|
|
852
|
+
});
|
|
853
|
+
const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
854
|
+
var _a, _b;
|
|
855
|
+
$ZodCheck.init(inst, def);
|
|
856
|
+
inst._zod.onattach.push((inst) => {
|
|
857
|
+
const bag = inst._zod.bag;
|
|
858
|
+
bag.format = def.format;
|
|
859
|
+
if (def.pattern) {
|
|
860
|
+
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
861
|
+
bag.patterns.add(def.pattern);
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
865
|
+
def.pattern.lastIndex = 0;
|
|
866
|
+
if (def.pattern.test(payload.value)) return;
|
|
867
|
+
payload.issues.push({
|
|
868
|
+
origin: "string",
|
|
869
|
+
code: "invalid_format",
|
|
870
|
+
format: def.format,
|
|
871
|
+
input: payload.value,
|
|
872
|
+
...def.pattern ? { pattern: def.pattern.toString() } : {},
|
|
873
|
+
inst,
|
|
874
|
+
continue: !def.abort
|
|
875
|
+
});
|
|
876
|
+
});
|
|
877
|
+
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
878
|
+
});
|
|
879
|
+
const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
880
|
+
$ZodCheckStringFormat.init(inst, def);
|
|
881
|
+
inst._zod.check = (payload) => {
|
|
882
|
+
def.pattern.lastIndex = 0;
|
|
883
|
+
if (def.pattern.test(payload.value)) return;
|
|
884
|
+
payload.issues.push({
|
|
885
|
+
origin: "string",
|
|
886
|
+
code: "invalid_format",
|
|
887
|
+
format: "regex",
|
|
888
|
+
input: payload.value,
|
|
889
|
+
pattern: def.pattern.toString(),
|
|
890
|
+
inst,
|
|
891
|
+
continue: !def.abort
|
|
892
|
+
});
|
|
893
|
+
};
|
|
894
|
+
});
|
|
895
|
+
const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
896
|
+
def.pattern ?? (def.pattern = lowercase);
|
|
897
|
+
$ZodCheckStringFormat.init(inst, def);
|
|
898
|
+
});
|
|
899
|
+
const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
900
|
+
def.pattern ?? (def.pattern = uppercase);
|
|
901
|
+
$ZodCheckStringFormat.init(inst, def);
|
|
902
|
+
});
|
|
903
|
+
const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
904
|
+
$ZodCheck.init(inst, def);
|
|
905
|
+
const escapedRegex = escapeRegex(def.includes);
|
|
906
|
+
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
907
|
+
def.pattern = pattern;
|
|
908
|
+
inst._zod.onattach.push((inst) => {
|
|
909
|
+
const bag = inst._zod.bag;
|
|
910
|
+
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
911
|
+
bag.patterns.add(pattern);
|
|
912
|
+
});
|
|
913
|
+
inst._zod.check = (payload) => {
|
|
914
|
+
if (payload.value.includes(def.includes, def.position)) return;
|
|
915
|
+
payload.issues.push({
|
|
916
|
+
origin: "string",
|
|
917
|
+
code: "invalid_format",
|
|
918
|
+
format: "includes",
|
|
919
|
+
includes: def.includes,
|
|
920
|
+
input: payload.value,
|
|
921
|
+
inst,
|
|
922
|
+
continue: !def.abort
|
|
923
|
+
});
|
|
924
|
+
};
|
|
925
|
+
});
|
|
926
|
+
const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
927
|
+
$ZodCheck.init(inst, def);
|
|
928
|
+
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
929
|
+
def.pattern ?? (def.pattern = pattern);
|
|
930
|
+
inst._zod.onattach.push((inst) => {
|
|
931
|
+
const bag = inst._zod.bag;
|
|
932
|
+
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
933
|
+
bag.patterns.add(pattern);
|
|
934
|
+
});
|
|
935
|
+
inst._zod.check = (payload) => {
|
|
936
|
+
if (payload.value.startsWith(def.prefix)) return;
|
|
937
|
+
payload.issues.push({
|
|
938
|
+
origin: "string",
|
|
939
|
+
code: "invalid_format",
|
|
940
|
+
format: "starts_with",
|
|
941
|
+
prefix: def.prefix,
|
|
942
|
+
input: payload.value,
|
|
943
|
+
inst,
|
|
944
|
+
continue: !def.abort
|
|
945
|
+
});
|
|
946
|
+
};
|
|
947
|
+
});
|
|
948
|
+
const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
949
|
+
$ZodCheck.init(inst, def);
|
|
950
|
+
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
951
|
+
def.pattern ?? (def.pattern = pattern);
|
|
952
|
+
inst._zod.onattach.push((inst) => {
|
|
953
|
+
const bag = inst._zod.bag;
|
|
954
|
+
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
955
|
+
bag.patterns.add(pattern);
|
|
956
|
+
});
|
|
957
|
+
inst._zod.check = (payload) => {
|
|
958
|
+
if (payload.value.endsWith(def.suffix)) return;
|
|
959
|
+
payload.issues.push({
|
|
960
|
+
origin: "string",
|
|
961
|
+
code: "invalid_format",
|
|
962
|
+
format: "ends_with",
|
|
963
|
+
suffix: def.suffix,
|
|
964
|
+
input: payload.value,
|
|
965
|
+
inst,
|
|
966
|
+
continue: !def.abort
|
|
967
|
+
});
|
|
968
|
+
};
|
|
969
|
+
});
|
|
970
|
+
const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
971
|
+
$ZodCheck.init(inst, def);
|
|
972
|
+
inst._zod.check = (payload) => {
|
|
973
|
+
payload.value = def.tx(payload.value);
|
|
974
|
+
};
|
|
975
|
+
});
|
|
976
|
+
//#endregion
|
|
977
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
978
|
+
var Doc = class {
|
|
979
|
+
constructor(args = []) {
|
|
980
|
+
this.content = [];
|
|
981
|
+
this.indent = 0;
|
|
982
|
+
if (this) this.args = args;
|
|
983
|
+
}
|
|
984
|
+
indented(fn) {
|
|
985
|
+
this.indent += 1;
|
|
986
|
+
fn(this);
|
|
987
|
+
this.indent -= 1;
|
|
988
|
+
}
|
|
989
|
+
write(arg) {
|
|
990
|
+
if (typeof arg === "function") {
|
|
991
|
+
arg(this, { execution: "sync" });
|
|
992
|
+
arg(this, { execution: "async" });
|
|
993
|
+
return;
|
|
994
|
+
}
|
|
995
|
+
const lines = arg.split("\n").filter((x) => x);
|
|
996
|
+
const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
|
|
997
|
+
const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
|
|
998
|
+
for (const line of dedented) this.content.push(line);
|
|
999
|
+
}
|
|
1000
|
+
compile() {
|
|
1001
|
+
const F = Function;
|
|
1002
|
+
const args = this?.args;
|
|
1003
|
+
const lines = [...(this?.content ?? [``]).map((x) => ` ${x}`)];
|
|
1004
|
+
return new F(...args, lines.join("\n"));
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
//#endregion
|
|
1008
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
1009
|
+
const version = {
|
|
1010
|
+
major: 4,
|
|
1011
|
+
minor: 4,
|
|
1012
|
+
patch: 3
|
|
1013
|
+
};
|
|
1014
|
+
//#endregion
|
|
1015
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1016
|
+
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1017
|
+
var _a;
|
|
1018
|
+
inst ?? (inst = {});
|
|
1019
|
+
inst._zod.def = def;
|
|
1020
|
+
inst._zod.bag = inst._zod.bag || {};
|
|
1021
|
+
inst._zod.version = version;
|
|
1022
|
+
const checks = [...inst._zod.def.checks ?? []];
|
|
1023
|
+
if (inst._zod.traits.has("$ZodCheck")) checks.unshift(inst);
|
|
1024
|
+
for (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);
|
|
1025
|
+
if (checks.length === 0) {
|
|
1026
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
1027
|
+
inst._zod.deferred?.push(() => {
|
|
1028
|
+
inst._zod.run = inst._zod.parse;
|
|
1029
|
+
});
|
|
1030
|
+
} else {
|
|
1031
|
+
const runChecks = (payload, checks, ctx) => {
|
|
1032
|
+
let isAborted = aborted(payload);
|
|
1033
|
+
let asyncResult;
|
|
1034
|
+
for (const ch of checks) {
|
|
1035
|
+
if (ch._zod.def.when) {
|
|
1036
|
+
if (explicitlyAborted(payload)) continue;
|
|
1037
|
+
if (!ch._zod.def.when(payload)) continue;
|
|
1038
|
+
} else if (isAborted) continue;
|
|
1039
|
+
const currLen = payload.issues.length;
|
|
1040
|
+
const _ = ch._zod.check(payload);
|
|
1041
|
+
if (_ instanceof Promise && ctx?.async === false) throw new $ZodAsyncError();
|
|
1042
|
+
if (asyncResult || _ instanceof Promise) asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
|
|
1043
|
+
await _;
|
|
1044
|
+
if (payload.issues.length === currLen) return;
|
|
1045
|
+
if (!isAborted) isAborted = aborted(payload, currLen);
|
|
1046
|
+
});
|
|
1047
|
+
else {
|
|
1048
|
+
if (payload.issues.length === currLen) continue;
|
|
1049
|
+
if (!isAborted) isAborted = aborted(payload, currLen);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
if (asyncResult) return asyncResult.then(() => {
|
|
1053
|
+
return payload;
|
|
1054
|
+
});
|
|
1055
|
+
return payload;
|
|
1056
|
+
};
|
|
1057
|
+
const handleCanaryResult = (canary, payload, ctx) => {
|
|
1058
|
+
if (aborted(canary)) {
|
|
1059
|
+
canary.aborted = true;
|
|
1060
|
+
return canary;
|
|
1061
|
+
}
|
|
1062
|
+
const checkResult = runChecks(payload, checks, ctx);
|
|
1063
|
+
if (checkResult instanceof Promise) {
|
|
1064
|
+
if (ctx.async === false) throw new $ZodAsyncError();
|
|
1065
|
+
return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
|
|
1066
|
+
}
|
|
1067
|
+
return inst._zod.parse(checkResult, ctx);
|
|
1068
|
+
};
|
|
1069
|
+
inst._zod.run = (payload, ctx) => {
|
|
1070
|
+
if (ctx.skipChecks) return inst._zod.parse(payload, ctx);
|
|
1071
|
+
if (ctx.direction === "backward") {
|
|
1072
|
+
const canary = inst._zod.parse({
|
|
1073
|
+
value: payload.value,
|
|
1074
|
+
issues: []
|
|
1075
|
+
}, {
|
|
1076
|
+
...ctx,
|
|
1077
|
+
skipChecks: true
|
|
1078
|
+
});
|
|
1079
|
+
if (canary instanceof Promise) return canary.then((canary) => {
|
|
1080
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
1081
|
+
});
|
|
1082
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
1083
|
+
}
|
|
1084
|
+
const result = inst._zod.parse(payload, ctx);
|
|
1085
|
+
if (result instanceof Promise) {
|
|
1086
|
+
if (ctx.async === false) throw new $ZodAsyncError();
|
|
1087
|
+
return result.then((result) => runChecks(result, checks, ctx));
|
|
1088
|
+
}
|
|
1089
|
+
return runChecks(result, checks, ctx);
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
defineLazy(inst, "~standard", () => ({
|
|
1093
|
+
validate: (value) => {
|
|
1094
|
+
try {
|
|
1095
|
+
const r = safeParse$1(inst, value);
|
|
1096
|
+
return r.success ? { value: r.data } : { issues: r.error?.issues };
|
|
1097
|
+
} catch (_) {
|
|
1098
|
+
return safeParseAsync$1(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
vendor: "zod",
|
|
1102
|
+
version: 1
|
|
1103
|
+
}));
|
|
1104
|
+
});
|
|
1105
|
+
const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
|
|
1106
|
+
$ZodType.init(inst, def);
|
|
1107
|
+
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
|
|
1108
|
+
inst._zod.parse = (payload, _) => {
|
|
1109
|
+
if (def.coerce) try {
|
|
1110
|
+
payload.value = String(payload.value);
|
|
1111
|
+
} catch (_) {}
|
|
1112
|
+
if (typeof payload.value === "string") return payload;
|
|
1113
|
+
payload.issues.push({
|
|
1114
|
+
expected: "string",
|
|
1115
|
+
code: "invalid_type",
|
|
1116
|
+
input: payload.value,
|
|
1117
|
+
inst
|
|
1118
|
+
});
|
|
1119
|
+
return payload;
|
|
1120
|
+
};
|
|
1121
|
+
});
|
|
1122
|
+
const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
|
|
1123
|
+
$ZodCheckStringFormat.init(inst, def);
|
|
1124
|
+
$ZodString.init(inst, def);
|
|
1125
|
+
});
|
|
1126
|
+
const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
|
|
1127
|
+
def.pattern ?? (def.pattern = guid);
|
|
1128
|
+
$ZodStringFormat.init(inst, def);
|
|
1129
|
+
});
|
|
1130
|
+
const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
|
|
1131
|
+
if (def.version) {
|
|
1132
|
+
const v = {
|
|
1133
|
+
v1: 1,
|
|
1134
|
+
v2: 2,
|
|
1135
|
+
v3: 3,
|
|
1136
|
+
v4: 4,
|
|
1137
|
+
v5: 5,
|
|
1138
|
+
v6: 6,
|
|
1139
|
+
v7: 7,
|
|
1140
|
+
v8: 8
|
|
1141
|
+
}[def.version];
|
|
1142
|
+
if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`);
|
|
1143
|
+
def.pattern ?? (def.pattern = uuid(v));
|
|
1144
|
+
} else def.pattern ?? (def.pattern = uuid());
|
|
1145
|
+
$ZodStringFormat.init(inst, def);
|
|
1146
|
+
});
|
|
1147
|
+
const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
|
|
1148
|
+
def.pattern ?? (def.pattern = email);
|
|
1149
|
+
$ZodStringFormat.init(inst, def);
|
|
1150
|
+
});
|
|
1151
|
+
const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
|
|
1152
|
+
$ZodStringFormat.init(inst, def);
|
|
1153
|
+
inst._zod.check = (payload) => {
|
|
1154
|
+
try {
|
|
1155
|
+
const trimmed = payload.value.trim();
|
|
1156
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
1157
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
1158
|
+
payload.issues.push({
|
|
1159
|
+
code: "invalid_format",
|
|
1160
|
+
format: "url",
|
|
1161
|
+
note: "Invalid URL format",
|
|
1162
|
+
input: payload.value,
|
|
1163
|
+
inst,
|
|
1164
|
+
continue: !def.abort
|
|
1165
|
+
});
|
|
1166
|
+
return;
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
const url = new URL(trimmed);
|
|
1170
|
+
if (def.hostname) {
|
|
1171
|
+
def.hostname.lastIndex = 0;
|
|
1172
|
+
if (!def.hostname.test(url.hostname)) payload.issues.push({
|
|
1173
|
+
code: "invalid_format",
|
|
1174
|
+
format: "url",
|
|
1175
|
+
note: "Invalid hostname",
|
|
1176
|
+
pattern: def.hostname.source,
|
|
1177
|
+
input: payload.value,
|
|
1178
|
+
inst,
|
|
1179
|
+
continue: !def.abort
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
if (def.protocol) {
|
|
1183
|
+
def.protocol.lastIndex = 0;
|
|
1184
|
+
if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) payload.issues.push({
|
|
1185
|
+
code: "invalid_format",
|
|
1186
|
+
format: "url",
|
|
1187
|
+
note: "Invalid protocol",
|
|
1188
|
+
pattern: def.protocol.source,
|
|
1189
|
+
input: payload.value,
|
|
1190
|
+
inst,
|
|
1191
|
+
continue: !def.abort
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
if (def.normalize) payload.value = url.href;
|
|
1195
|
+
else payload.value = trimmed;
|
|
1196
|
+
return;
|
|
1197
|
+
} catch (_) {
|
|
1198
|
+
payload.issues.push({
|
|
1199
|
+
code: "invalid_format",
|
|
1200
|
+
format: "url",
|
|
1201
|
+
input: payload.value,
|
|
1202
|
+
inst,
|
|
1203
|
+
continue: !def.abort
|
|
1204
|
+
});
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
});
|
|
1208
|
+
const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
|
|
1209
|
+
def.pattern ?? (def.pattern = emoji());
|
|
1210
|
+
$ZodStringFormat.init(inst, def);
|
|
1211
|
+
});
|
|
1212
|
+
const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
|
|
1213
|
+
def.pattern ?? (def.pattern = nanoid);
|
|
1214
|
+
$ZodStringFormat.init(inst, def);
|
|
1215
|
+
});
|
|
1216
|
+
/**
|
|
1217
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
1218
|
+
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
1219
|
+
* See https://github.com/paralleldrive/cuid.
|
|
1220
|
+
*/
|
|
1221
|
+
const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
|
|
1222
|
+
def.pattern ?? (def.pattern = cuid);
|
|
1223
|
+
$ZodStringFormat.init(inst, def);
|
|
1224
|
+
});
|
|
1225
|
+
const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
|
|
1226
|
+
def.pattern ?? (def.pattern = cuid2);
|
|
1227
|
+
$ZodStringFormat.init(inst, def);
|
|
1228
|
+
});
|
|
1229
|
+
const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
|
|
1230
|
+
def.pattern ?? (def.pattern = ulid);
|
|
1231
|
+
$ZodStringFormat.init(inst, def);
|
|
1232
|
+
});
|
|
1233
|
+
const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
|
|
1234
|
+
def.pattern ?? (def.pattern = xid);
|
|
1235
|
+
$ZodStringFormat.init(inst, def);
|
|
1236
|
+
});
|
|
1237
|
+
const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
|
|
1238
|
+
def.pattern ?? (def.pattern = ksuid);
|
|
1239
|
+
$ZodStringFormat.init(inst, def);
|
|
1240
|
+
});
|
|
1241
|
+
const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
|
|
1242
|
+
def.pattern ?? (def.pattern = datetime$1(def));
|
|
1243
|
+
$ZodStringFormat.init(inst, def);
|
|
1244
|
+
});
|
|
1245
|
+
const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
|
|
1246
|
+
def.pattern ?? (def.pattern = date$1);
|
|
1247
|
+
$ZodStringFormat.init(inst, def);
|
|
1248
|
+
});
|
|
1249
|
+
const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
|
|
1250
|
+
def.pattern ?? (def.pattern = time$1(def));
|
|
1251
|
+
$ZodStringFormat.init(inst, def);
|
|
1252
|
+
});
|
|
1253
|
+
const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
|
|
1254
|
+
def.pattern ?? (def.pattern = duration$1);
|
|
1255
|
+
$ZodStringFormat.init(inst, def);
|
|
1256
|
+
});
|
|
1257
|
+
const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
|
|
1258
|
+
def.pattern ?? (def.pattern = ipv4);
|
|
1259
|
+
$ZodStringFormat.init(inst, def);
|
|
1260
|
+
inst._zod.bag.format = `ipv4`;
|
|
1261
|
+
});
|
|
1262
|
+
const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
|
|
1263
|
+
def.pattern ?? (def.pattern = ipv6);
|
|
1264
|
+
$ZodStringFormat.init(inst, def);
|
|
1265
|
+
inst._zod.bag.format = `ipv6`;
|
|
1266
|
+
inst._zod.check = (payload) => {
|
|
1267
|
+
try {
|
|
1268
|
+
new URL(`http://[${payload.value}]`);
|
|
1269
|
+
} catch {
|
|
1270
|
+
payload.issues.push({
|
|
1271
|
+
code: "invalid_format",
|
|
1272
|
+
format: "ipv6",
|
|
1273
|
+
input: payload.value,
|
|
1274
|
+
inst,
|
|
1275
|
+
continue: !def.abort
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
});
|
|
1280
|
+
const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
1281
|
+
def.pattern ?? (def.pattern = cidrv4);
|
|
1282
|
+
$ZodStringFormat.init(inst, def);
|
|
1283
|
+
});
|
|
1284
|
+
const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
1285
|
+
def.pattern ?? (def.pattern = cidrv6);
|
|
1286
|
+
$ZodStringFormat.init(inst, def);
|
|
1287
|
+
inst._zod.check = (payload) => {
|
|
1288
|
+
const parts = payload.value.split("/");
|
|
1289
|
+
try {
|
|
1290
|
+
if (parts.length !== 2) throw new Error();
|
|
1291
|
+
const [address, prefix] = parts;
|
|
1292
|
+
if (!prefix) throw new Error();
|
|
1293
|
+
const prefixNum = Number(prefix);
|
|
1294
|
+
if (`${prefixNum}` !== prefix) throw new Error();
|
|
1295
|
+
if (prefixNum < 0 || prefixNum > 128) throw new Error();
|
|
1296
|
+
new URL(`http://[${address}]`);
|
|
1297
|
+
} catch {
|
|
1298
|
+
payload.issues.push({
|
|
1299
|
+
code: "invalid_format",
|
|
1300
|
+
format: "cidrv6",
|
|
1301
|
+
input: payload.value,
|
|
1302
|
+
inst,
|
|
1303
|
+
continue: !def.abort
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
};
|
|
1307
|
+
});
|
|
1308
|
+
function isValidBase64(data) {
|
|
1309
|
+
if (data === "") return true;
|
|
1310
|
+
if (/\s/.test(data)) return false;
|
|
1311
|
+
if (data.length % 4 !== 0) return false;
|
|
1312
|
+
try {
|
|
1313
|
+
atob(data);
|
|
1314
|
+
return true;
|
|
1315
|
+
} catch {
|
|
1316
|
+
return false;
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
|
|
1320
|
+
def.pattern ?? (def.pattern = base64);
|
|
1321
|
+
$ZodStringFormat.init(inst, def);
|
|
1322
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
1323
|
+
inst._zod.check = (payload) => {
|
|
1324
|
+
if (isValidBase64(payload.value)) return;
|
|
1325
|
+
payload.issues.push({
|
|
1326
|
+
code: "invalid_format",
|
|
1327
|
+
format: "base64",
|
|
1328
|
+
input: payload.value,
|
|
1329
|
+
inst,
|
|
1330
|
+
continue: !def.abort
|
|
1331
|
+
});
|
|
1332
|
+
};
|
|
1333
|
+
});
|
|
1334
|
+
function isValidBase64URL(data) {
|
|
1335
|
+
if (!base64url.test(data)) return false;
|
|
1336
|
+
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
1337
|
+
return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
|
|
1338
|
+
}
|
|
1339
|
+
const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
|
|
1340
|
+
def.pattern ?? (def.pattern = base64url);
|
|
1341
|
+
$ZodStringFormat.init(inst, def);
|
|
1342
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
1343
|
+
inst._zod.check = (payload) => {
|
|
1344
|
+
if (isValidBase64URL(payload.value)) return;
|
|
1345
|
+
payload.issues.push({
|
|
1346
|
+
code: "invalid_format",
|
|
1347
|
+
format: "base64url",
|
|
1348
|
+
input: payload.value,
|
|
1349
|
+
inst,
|
|
1350
|
+
continue: !def.abort
|
|
1351
|
+
});
|
|
1352
|
+
};
|
|
1353
|
+
});
|
|
1354
|
+
const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
|
|
1355
|
+
def.pattern ?? (def.pattern = e164);
|
|
1356
|
+
$ZodStringFormat.init(inst, def);
|
|
1357
|
+
});
|
|
1358
|
+
function isValidJWT(token, algorithm = null) {
|
|
1359
|
+
try {
|
|
1360
|
+
const tokensParts = token.split(".");
|
|
1361
|
+
if (tokensParts.length !== 3) return false;
|
|
1362
|
+
const [header] = tokensParts;
|
|
1363
|
+
if (!header) return false;
|
|
1364
|
+
const parsedHeader = JSON.parse(atob(header));
|
|
1365
|
+
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
1366
|
+
if (!parsedHeader.alg) return false;
|
|
1367
|
+
if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm)) return false;
|
|
1368
|
+
return true;
|
|
1369
|
+
} catch {
|
|
1370
|
+
return false;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
|
|
1374
|
+
$ZodStringFormat.init(inst, def);
|
|
1375
|
+
inst._zod.check = (payload) => {
|
|
1376
|
+
if (isValidJWT(payload.value, def.alg)) return;
|
|
1377
|
+
payload.issues.push({
|
|
1378
|
+
code: "invalid_format",
|
|
1379
|
+
format: "jwt",
|
|
1380
|
+
input: payload.value,
|
|
1381
|
+
inst,
|
|
1382
|
+
continue: !def.abort
|
|
1383
|
+
});
|
|
1384
|
+
};
|
|
1385
|
+
});
|
|
1386
|
+
const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
|
|
1387
|
+
$ZodType.init(inst, def);
|
|
1388
|
+
inst._zod.pattern = inst._zod.bag.pattern ?? number$1;
|
|
1389
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
1390
|
+
if (def.coerce) try {
|
|
1391
|
+
payload.value = Number(payload.value);
|
|
1392
|
+
} catch (_) {}
|
|
1393
|
+
const input = payload.value;
|
|
1394
|
+
if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) return payload;
|
|
1395
|
+
const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : void 0 : void 0;
|
|
1396
|
+
payload.issues.push({
|
|
1397
|
+
expected: "number",
|
|
1398
|
+
code: "invalid_type",
|
|
1399
|
+
input,
|
|
1400
|
+
inst,
|
|
1401
|
+
...received ? { received } : {}
|
|
1402
|
+
});
|
|
1403
|
+
return payload;
|
|
1404
|
+
};
|
|
1405
|
+
});
|
|
1406
|
+
const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
1407
|
+
$ZodCheckNumberFormat.init(inst, def);
|
|
1408
|
+
$ZodNumber.init(inst, def);
|
|
1409
|
+
});
|
|
1410
|
+
const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
|
|
1411
|
+
$ZodType.init(inst, def);
|
|
1412
|
+
inst._zod.pattern = boolean$1;
|
|
1413
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
1414
|
+
if (def.coerce) try {
|
|
1415
|
+
payload.value = Boolean(payload.value);
|
|
1416
|
+
} catch (_) {}
|
|
1417
|
+
const input = payload.value;
|
|
1418
|
+
if (typeof input === "boolean") return payload;
|
|
1419
|
+
payload.issues.push({
|
|
1420
|
+
expected: "boolean",
|
|
1421
|
+
code: "invalid_type",
|
|
1422
|
+
input,
|
|
1423
|
+
inst
|
|
1424
|
+
});
|
|
1425
|
+
return payload;
|
|
1426
|
+
};
|
|
1427
|
+
});
|
|
1428
|
+
const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
|
|
1429
|
+
$ZodType.init(inst, def);
|
|
1430
|
+
inst._zod.parse = (payload) => payload;
|
|
1431
|
+
});
|
|
1432
|
+
const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
1433
|
+
$ZodType.init(inst, def);
|
|
1434
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
1435
|
+
payload.issues.push({
|
|
1436
|
+
expected: "never",
|
|
1437
|
+
code: "invalid_type",
|
|
1438
|
+
input: payload.value,
|
|
1439
|
+
inst
|
|
1440
|
+
});
|
|
1441
|
+
return payload;
|
|
1442
|
+
};
|
|
1443
|
+
});
|
|
1444
|
+
function handleArrayResult(result, final, index) {
|
|
1445
|
+
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
1446
|
+
final.value[index] = result.value;
|
|
1447
|
+
}
|
|
1448
|
+
const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
1449
|
+
$ZodType.init(inst, def);
|
|
1450
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1451
|
+
const input = payload.value;
|
|
1452
|
+
if (!Array.isArray(input)) {
|
|
1453
|
+
payload.issues.push({
|
|
1454
|
+
expected: "array",
|
|
1455
|
+
code: "invalid_type",
|
|
1456
|
+
input,
|
|
1457
|
+
inst
|
|
1458
|
+
});
|
|
1459
|
+
return payload;
|
|
1460
|
+
}
|
|
1461
|
+
payload.value = Array(input.length);
|
|
1462
|
+
const proms = [];
|
|
1463
|
+
for (let i = 0; i < input.length; i++) {
|
|
1464
|
+
const item = input[i];
|
|
1465
|
+
const result = def.element._zod.run({
|
|
1466
|
+
value: item,
|
|
1467
|
+
issues: []
|
|
1468
|
+
}, ctx);
|
|
1469
|
+
if (result instanceof Promise) proms.push(result.then((result) => handleArrayResult(result, payload, i)));
|
|
1470
|
+
else handleArrayResult(result, payload, i);
|
|
1471
|
+
}
|
|
1472
|
+
if (proms.length) return Promise.all(proms).then(() => payload);
|
|
1473
|
+
return payload;
|
|
1474
|
+
};
|
|
1475
|
+
});
|
|
1476
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
1477
|
+
const isPresent = key in input;
|
|
1478
|
+
if (result.issues.length) {
|
|
1479
|
+
if (isOptionalIn && isOptionalOut && !isPresent) return;
|
|
1480
|
+
final.issues.push(...prefixIssues(key, result.issues));
|
|
1481
|
+
}
|
|
1482
|
+
if (!isPresent && !isOptionalIn) {
|
|
1483
|
+
if (!result.issues.length) final.issues.push({
|
|
1484
|
+
code: "invalid_type",
|
|
1485
|
+
expected: "nonoptional",
|
|
1486
|
+
input: void 0,
|
|
1487
|
+
path: [key]
|
|
1488
|
+
});
|
|
1489
|
+
return;
|
|
1490
|
+
}
|
|
1491
|
+
if (result.value === void 0) {
|
|
1492
|
+
if (isPresent) final.value[key] = void 0;
|
|
1493
|
+
} else final.value[key] = result.value;
|
|
1494
|
+
}
|
|
1495
|
+
function normalizeDef(def) {
|
|
1496
|
+
const keys = Object.keys(def.shape);
|
|
1497
|
+
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`);
|
|
1498
|
+
const okeys = optionalKeys(def.shape);
|
|
1499
|
+
return {
|
|
1500
|
+
...def,
|
|
1501
|
+
keys,
|
|
1502
|
+
keySet: new Set(keys),
|
|
1503
|
+
numKeys: keys.length,
|
|
1504
|
+
optionalKeys: new Set(okeys)
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
1508
|
+
const unrecognized = [];
|
|
1509
|
+
const keySet = def.keySet;
|
|
1510
|
+
const _catchall = def.catchall._zod;
|
|
1511
|
+
const t = _catchall.def.type;
|
|
1512
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
1513
|
+
const isOptionalOut = _catchall.optout === "optional";
|
|
1514
|
+
for (const key in input) {
|
|
1515
|
+
if (key === "__proto__") continue;
|
|
1516
|
+
if (keySet.has(key)) continue;
|
|
1517
|
+
if (t === "never") {
|
|
1518
|
+
unrecognized.push(key);
|
|
1519
|
+
continue;
|
|
1520
|
+
}
|
|
1521
|
+
const r = _catchall.run({
|
|
1522
|
+
value: input[key],
|
|
1523
|
+
issues: []
|
|
1524
|
+
}, ctx);
|
|
1525
|
+
if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
1526
|
+
else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
1527
|
+
}
|
|
1528
|
+
if (unrecognized.length) payload.issues.push({
|
|
1529
|
+
code: "unrecognized_keys",
|
|
1530
|
+
keys: unrecognized,
|
|
1531
|
+
input,
|
|
1532
|
+
inst
|
|
1533
|
+
});
|
|
1534
|
+
if (!proms.length) return payload;
|
|
1535
|
+
return Promise.all(proms).then(() => {
|
|
1536
|
+
return payload;
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
1540
|
+
$ZodType.init(inst, def);
|
|
1541
|
+
if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
|
|
1542
|
+
const sh = def.shape;
|
|
1543
|
+
Object.defineProperty(def, "shape", { get: () => {
|
|
1544
|
+
const newSh = { ...sh };
|
|
1545
|
+
Object.defineProperty(def, "shape", { value: newSh });
|
|
1546
|
+
return newSh;
|
|
1547
|
+
} });
|
|
1548
|
+
}
|
|
1549
|
+
const _normalized = cached(() => normalizeDef(def));
|
|
1550
|
+
defineLazy(inst._zod, "propValues", () => {
|
|
1551
|
+
const shape = def.shape;
|
|
1552
|
+
const propValues = {};
|
|
1553
|
+
for (const key in shape) {
|
|
1554
|
+
const field = shape[key]._zod;
|
|
1555
|
+
if (field.values) {
|
|
1556
|
+
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
1557
|
+
for (const v of field.values) propValues[key].add(v);
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
return propValues;
|
|
1561
|
+
});
|
|
1562
|
+
const isObject$1 = isObject;
|
|
1563
|
+
const catchall = def.catchall;
|
|
1564
|
+
let value;
|
|
1565
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1566
|
+
value ?? (value = _normalized.value);
|
|
1567
|
+
const input = payload.value;
|
|
1568
|
+
if (!isObject$1(input)) {
|
|
1569
|
+
payload.issues.push({
|
|
1570
|
+
expected: "object",
|
|
1571
|
+
code: "invalid_type",
|
|
1572
|
+
input,
|
|
1573
|
+
inst
|
|
1574
|
+
});
|
|
1575
|
+
return payload;
|
|
1576
|
+
}
|
|
1577
|
+
payload.value = {};
|
|
1578
|
+
const proms = [];
|
|
1579
|
+
const shape = value.shape;
|
|
1580
|
+
for (const key of value.keys) {
|
|
1581
|
+
const el = shape[key];
|
|
1582
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
1583
|
+
const isOptionalOut = el._zod.optout === "optional";
|
|
1584
|
+
const r = el._zod.run({
|
|
1585
|
+
value: input[key],
|
|
1586
|
+
issues: []
|
|
1587
|
+
}, ctx);
|
|
1588
|
+
if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
1589
|
+
else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
1590
|
+
}
|
|
1591
|
+
if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
1592
|
+
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
1593
|
+
};
|
|
1594
|
+
});
|
|
1595
|
+
const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
1596
|
+
$ZodObject.init(inst, def);
|
|
1597
|
+
const superParse = inst._zod.parse;
|
|
1598
|
+
const _normalized = cached(() => normalizeDef(def));
|
|
1599
|
+
const generateFastpass = (shape) => {
|
|
1600
|
+
const doc = new Doc([
|
|
1601
|
+
"shape",
|
|
1602
|
+
"payload",
|
|
1603
|
+
"ctx"
|
|
1604
|
+
]);
|
|
1605
|
+
const normalized = _normalized.value;
|
|
1606
|
+
const parseStr = (key) => {
|
|
1607
|
+
const k = esc(key);
|
|
1608
|
+
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
1609
|
+
};
|
|
1610
|
+
doc.write(`const input = payload.value;`);
|
|
1611
|
+
const ids = Object.create(null);
|
|
1612
|
+
let counter = 0;
|
|
1613
|
+
for (const key of normalized.keys) ids[key] = `key_${counter++}`;
|
|
1614
|
+
doc.write(`const newResult = {};`);
|
|
1615
|
+
for (const key of normalized.keys) {
|
|
1616
|
+
const id = ids[key];
|
|
1617
|
+
const k = esc(key);
|
|
1618
|
+
const schema = shape[key];
|
|
1619
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
1620
|
+
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
1621
|
+
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
1622
|
+
if (isOptionalIn && isOptionalOut) doc.write(`
|
|
1623
|
+
if (${id}.issues.length) {
|
|
1624
|
+
if (${k} in input) {
|
|
1625
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
1626
|
+
...iss,
|
|
1627
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
1628
|
+
})));
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
if (${id}.value === undefined) {
|
|
1633
|
+
if (${k} in input) {
|
|
1634
|
+
newResult[${k}] = undefined;
|
|
1635
|
+
}
|
|
1636
|
+
} else {
|
|
1637
|
+
newResult[${k}] = ${id}.value;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
`);
|
|
1641
|
+
else if (!isOptionalIn) doc.write(`
|
|
1642
|
+
const ${id}_present = ${k} in input;
|
|
1643
|
+
if (${id}.issues.length) {
|
|
1644
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
1645
|
+
...iss,
|
|
1646
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
1647
|
+
})));
|
|
1648
|
+
}
|
|
1649
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
1650
|
+
payload.issues.push({
|
|
1651
|
+
code: "invalid_type",
|
|
1652
|
+
expected: "nonoptional",
|
|
1653
|
+
input: undefined,
|
|
1654
|
+
path: [${k}]
|
|
1655
|
+
});
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
if (${id}_present) {
|
|
1659
|
+
if (${id}.value === undefined) {
|
|
1660
|
+
newResult[${k}] = undefined;
|
|
1661
|
+
} else {
|
|
1662
|
+
newResult[${k}] = ${id}.value;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
`);
|
|
1667
|
+
else doc.write(`
|
|
1668
|
+
if (${id}.issues.length) {
|
|
1669
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
1670
|
+
...iss,
|
|
1671
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
1672
|
+
})));
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
if (${id}.value === undefined) {
|
|
1676
|
+
if (${k} in input) {
|
|
1677
|
+
newResult[${k}] = undefined;
|
|
1678
|
+
}
|
|
1679
|
+
} else {
|
|
1680
|
+
newResult[${k}] = ${id}.value;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
`);
|
|
1684
|
+
}
|
|
1685
|
+
doc.write(`payload.value = newResult;`);
|
|
1686
|
+
doc.write(`return payload;`);
|
|
1687
|
+
const fn = doc.compile();
|
|
1688
|
+
return (payload, ctx) => fn(shape, payload, ctx);
|
|
1689
|
+
};
|
|
1690
|
+
let fastpass;
|
|
1691
|
+
const isObject$2 = isObject;
|
|
1692
|
+
const jit = !globalConfig.jitless;
|
|
1693
|
+
const fastEnabled = jit && allowsEval.value;
|
|
1694
|
+
const catchall = def.catchall;
|
|
1695
|
+
let value;
|
|
1696
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1697
|
+
value ?? (value = _normalized.value);
|
|
1698
|
+
const input = payload.value;
|
|
1699
|
+
if (!isObject$2(input)) {
|
|
1700
|
+
payload.issues.push({
|
|
1701
|
+
expected: "object",
|
|
1702
|
+
code: "invalid_type",
|
|
1703
|
+
input,
|
|
1704
|
+
inst
|
|
1705
|
+
});
|
|
1706
|
+
return payload;
|
|
1707
|
+
}
|
|
1708
|
+
if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
|
|
1709
|
+
if (!fastpass) fastpass = generateFastpass(def.shape);
|
|
1710
|
+
payload = fastpass(payload, ctx);
|
|
1711
|
+
if (!catchall) return payload;
|
|
1712
|
+
return handleCatchall([], input, payload, ctx, value, inst);
|
|
1713
|
+
}
|
|
1714
|
+
return superParse(payload, ctx);
|
|
1715
|
+
};
|
|
1716
|
+
});
|
|
1717
|
+
function handleUnionResults(results, final, inst, ctx) {
|
|
1718
|
+
for (const result of results) if (result.issues.length === 0) {
|
|
1719
|
+
final.value = result.value;
|
|
1720
|
+
return final;
|
|
1721
|
+
}
|
|
1722
|
+
const nonaborted = results.filter((r) => !aborted(r));
|
|
1723
|
+
if (nonaborted.length === 1) {
|
|
1724
|
+
final.value = nonaborted[0].value;
|
|
1725
|
+
return nonaborted[0];
|
|
1726
|
+
}
|
|
1727
|
+
final.issues.push({
|
|
1728
|
+
code: "invalid_union",
|
|
1729
|
+
input: final.value,
|
|
1730
|
+
inst,
|
|
1731
|
+
errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
1732
|
+
});
|
|
1733
|
+
return final;
|
|
1734
|
+
}
|
|
1735
|
+
const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
|
|
1736
|
+
$ZodType.init(inst, def);
|
|
1737
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
1738
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
1739
|
+
defineLazy(inst._zod, "values", () => {
|
|
1740
|
+
if (def.options.every((o) => o._zod.values)) return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
1741
|
+
});
|
|
1742
|
+
defineLazy(inst._zod, "pattern", () => {
|
|
1743
|
+
if (def.options.every((o) => o._zod.pattern)) {
|
|
1744
|
+
const patterns = def.options.map((o) => o._zod.pattern);
|
|
1745
|
+
return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
|
|
1746
|
+
}
|
|
1747
|
+
});
|
|
1748
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
1749
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1750
|
+
if (first) return first(payload, ctx);
|
|
1751
|
+
let async = false;
|
|
1752
|
+
const results = [];
|
|
1753
|
+
for (const option of def.options) {
|
|
1754
|
+
const result = option._zod.run({
|
|
1755
|
+
value: payload.value,
|
|
1756
|
+
issues: []
|
|
1757
|
+
}, ctx);
|
|
1758
|
+
if (result instanceof Promise) {
|
|
1759
|
+
results.push(result);
|
|
1760
|
+
async = true;
|
|
1761
|
+
} else {
|
|
1762
|
+
if (result.issues.length === 0) return result;
|
|
1763
|
+
results.push(result);
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
if (!async) return handleUnionResults(results, payload, inst, ctx);
|
|
1767
|
+
return Promise.all(results).then((results) => {
|
|
1768
|
+
return handleUnionResults(results, payload, inst, ctx);
|
|
1769
|
+
});
|
|
1770
|
+
};
|
|
1771
|
+
});
|
|
1772
|
+
const $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
|
|
1773
|
+
$ZodType.init(inst, def);
|
|
1774
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1775
|
+
const input = payload.value;
|
|
1776
|
+
const left = def.left._zod.run({
|
|
1777
|
+
value: input,
|
|
1778
|
+
issues: []
|
|
1779
|
+
}, ctx);
|
|
1780
|
+
const right = def.right._zod.run({
|
|
1781
|
+
value: input,
|
|
1782
|
+
issues: []
|
|
1783
|
+
}, ctx);
|
|
1784
|
+
if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left, right]) => {
|
|
1785
|
+
return handleIntersectionResults(payload, left, right);
|
|
1786
|
+
});
|
|
1787
|
+
return handleIntersectionResults(payload, left, right);
|
|
1788
|
+
};
|
|
1789
|
+
});
|
|
1790
|
+
function mergeValues(a, b) {
|
|
1791
|
+
if (a === b) return {
|
|
1792
|
+
valid: true,
|
|
1793
|
+
data: a
|
|
1794
|
+
};
|
|
1795
|
+
if (a instanceof Date && b instanceof Date && +a === +b) return {
|
|
1796
|
+
valid: true,
|
|
1797
|
+
data: a
|
|
1798
|
+
};
|
|
1799
|
+
if (isPlainObject(a) && isPlainObject(b)) {
|
|
1800
|
+
const bKeys = Object.keys(b);
|
|
1801
|
+
const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
1802
|
+
const newObj = {
|
|
1803
|
+
...a,
|
|
1804
|
+
...b
|
|
1805
|
+
};
|
|
1806
|
+
for (const key of sharedKeys) {
|
|
1807
|
+
const sharedValue = mergeValues(a[key], b[key]);
|
|
1808
|
+
if (!sharedValue.valid) return {
|
|
1809
|
+
valid: false,
|
|
1810
|
+
mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
|
|
1811
|
+
};
|
|
1812
|
+
newObj[key] = sharedValue.data;
|
|
1813
|
+
}
|
|
1814
|
+
return {
|
|
1815
|
+
valid: true,
|
|
1816
|
+
data: newObj
|
|
1817
|
+
};
|
|
1818
|
+
}
|
|
1819
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
1820
|
+
if (a.length !== b.length) return {
|
|
1821
|
+
valid: false,
|
|
1822
|
+
mergeErrorPath: []
|
|
1823
|
+
};
|
|
1824
|
+
const newArray = [];
|
|
1825
|
+
for (let index = 0; index < a.length; index++) {
|
|
1826
|
+
const itemA = a[index];
|
|
1827
|
+
const itemB = b[index];
|
|
1828
|
+
const sharedValue = mergeValues(itemA, itemB);
|
|
1829
|
+
if (!sharedValue.valid) return {
|
|
1830
|
+
valid: false,
|
|
1831
|
+
mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
|
|
1832
|
+
};
|
|
1833
|
+
newArray.push(sharedValue.data);
|
|
1834
|
+
}
|
|
1835
|
+
return {
|
|
1836
|
+
valid: true,
|
|
1837
|
+
data: newArray
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
return {
|
|
1841
|
+
valid: false,
|
|
1842
|
+
mergeErrorPath: []
|
|
1843
|
+
};
|
|
1844
|
+
}
|
|
1845
|
+
function handleIntersectionResults(result, left, right) {
|
|
1846
|
+
const unrecKeys = /* @__PURE__ */ new Map();
|
|
1847
|
+
let unrecIssue;
|
|
1848
|
+
for (const iss of left.issues) if (iss.code === "unrecognized_keys") {
|
|
1849
|
+
unrecIssue ?? (unrecIssue = iss);
|
|
1850
|
+
for (const k of iss.keys) {
|
|
1851
|
+
if (!unrecKeys.has(k)) unrecKeys.set(k, {});
|
|
1852
|
+
unrecKeys.get(k).l = true;
|
|
1853
|
+
}
|
|
1854
|
+
} else result.issues.push(iss);
|
|
1855
|
+
for (const iss of right.issues) if (iss.code === "unrecognized_keys") for (const k of iss.keys) {
|
|
1856
|
+
if (!unrecKeys.has(k)) unrecKeys.set(k, {});
|
|
1857
|
+
unrecKeys.get(k).r = true;
|
|
1858
|
+
}
|
|
1859
|
+
else result.issues.push(iss);
|
|
1860
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
1861
|
+
if (bothKeys.length && unrecIssue) result.issues.push({
|
|
1862
|
+
...unrecIssue,
|
|
1863
|
+
keys: bothKeys
|
|
1864
|
+
});
|
|
1865
|
+
if (aborted(result)) return result;
|
|
1866
|
+
const merged = mergeValues(left.value, right.value);
|
|
1867
|
+
if (!merged.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
|
|
1868
|
+
result.value = merged.data;
|
|
1869
|
+
return result;
|
|
1870
|
+
}
|
|
1871
|
+
const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
|
|
1872
|
+
$ZodType.init(inst, def);
|
|
1873
|
+
const values = getEnumValues(def.entries);
|
|
1874
|
+
const valuesSet = new Set(values);
|
|
1875
|
+
inst._zod.values = valuesSet;
|
|
1876
|
+
inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
|
|
1877
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
1878
|
+
const input = payload.value;
|
|
1879
|
+
if (valuesSet.has(input)) return payload;
|
|
1880
|
+
payload.issues.push({
|
|
1881
|
+
code: "invalid_value",
|
|
1882
|
+
values,
|
|
1883
|
+
input,
|
|
1884
|
+
inst
|
|
1885
|
+
});
|
|
1886
|
+
return payload;
|
|
1887
|
+
};
|
|
1888
|
+
});
|
|
1889
|
+
const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
|
|
1890
|
+
$ZodType.init(inst, def);
|
|
1891
|
+
if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values");
|
|
1892
|
+
const values = new Set(def.values);
|
|
1893
|
+
inst._zod.values = values;
|
|
1894
|
+
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
|
|
1895
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
1896
|
+
const input = payload.value;
|
|
1897
|
+
if (values.has(input)) return payload;
|
|
1898
|
+
payload.issues.push({
|
|
1899
|
+
code: "invalid_value",
|
|
1900
|
+
values: def.values,
|
|
1901
|
+
input,
|
|
1902
|
+
inst
|
|
1903
|
+
});
|
|
1904
|
+
return payload;
|
|
1905
|
+
};
|
|
1906
|
+
});
|
|
1907
|
+
const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
|
|
1908
|
+
$ZodType.init(inst, def);
|
|
1909
|
+
inst._zod.optin = "optional";
|
|
1910
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1911
|
+
if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
|
|
1912
|
+
const _out = def.transform(payload.value, payload);
|
|
1913
|
+
if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => {
|
|
1914
|
+
payload.value = output;
|
|
1915
|
+
payload.fallback = true;
|
|
1916
|
+
return payload;
|
|
1917
|
+
});
|
|
1918
|
+
if (_out instanceof Promise) throw new $ZodAsyncError();
|
|
1919
|
+
payload.value = _out;
|
|
1920
|
+
payload.fallback = true;
|
|
1921
|
+
return payload;
|
|
1922
|
+
};
|
|
1923
|
+
});
|
|
1924
|
+
function handleOptionalResult(result, input) {
|
|
1925
|
+
if (input === void 0 && (result.issues.length || result.fallback)) return {
|
|
1926
|
+
issues: [],
|
|
1927
|
+
value: void 0
|
|
1928
|
+
};
|
|
1929
|
+
return result;
|
|
1930
|
+
}
|
|
1931
|
+
const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
|
|
1932
|
+
$ZodType.init(inst, def);
|
|
1933
|
+
inst._zod.optin = "optional";
|
|
1934
|
+
inst._zod.optout = "optional";
|
|
1935
|
+
defineLazy(inst._zod, "values", () => {
|
|
1936
|
+
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;
|
|
1937
|
+
});
|
|
1938
|
+
defineLazy(inst._zod, "pattern", () => {
|
|
1939
|
+
const pattern = def.innerType._zod.pattern;
|
|
1940
|
+
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
|
|
1941
|
+
});
|
|
1942
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1943
|
+
if (def.innerType._zod.optin === "optional") {
|
|
1944
|
+
const input = payload.value;
|
|
1945
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
1946
|
+
if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, input));
|
|
1947
|
+
return handleOptionalResult(result, input);
|
|
1948
|
+
}
|
|
1949
|
+
if (payload.value === void 0) return payload;
|
|
1950
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1951
|
+
};
|
|
1952
|
+
});
|
|
1953
|
+
const $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
|
|
1954
|
+
$ZodOptional.init(inst, def);
|
|
1955
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1956
|
+
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
1957
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1958
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1959
|
+
};
|
|
1960
|
+
});
|
|
1961
|
+
const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
|
|
1962
|
+
$ZodType.init(inst, def);
|
|
1963
|
+
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
1964
|
+
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
1965
|
+
defineLazy(inst._zod, "pattern", () => {
|
|
1966
|
+
const pattern = def.innerType._zod.pattern;
|
|
1967
|
+
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
|
|
1968
|
+
});
|
|
1969
|
+
defineLazy(inst._zod, "values", () => {
|
|
1970
|
+
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
|
|
1971
|
+
});
|
|
1972
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1973
|
+
if (payload.value === null) return payload;
|
|
1974
|
+
return def.innerType._zod.run(payload, ctx);
|
|
1975
|
+
};
|
|
1976
|
+
});
|
|
1977
|
+
const $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
|
|
1978
|
+
$ZodType.init(inst, def);
|
|
1979
|
+
inst._zod.optin = "optional";
|
|
1980
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
1981
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1982
|
+
if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
|
|
1983
|
+
if (payload.value === void 0) {
|
|
1984
|
+
payload.value = def.defaultValue;
|
|
1985
|
+
/**
|
|
1986
|
+
* $ZodDefault returns the default value immediately in forward direction.
|
|
1987
|
+
* 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. */
|
|
1988
|
+
return payload;
|
|
1989
|
+
}
|
|
1990
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
1991
|
+
if (result instanceof Promise) return result.then((result) => handleDefaultResult(result, def));
|
|
1992
|
+
return handleDefaultResult(result, def);
|
|
1993
|
+
};
|
|
1994
|
+
});
|
|
1995
|
+
function handleDefaultResult(payload, def) {
|
|
1996
|
+
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
1997
|
+
return payload;
|
|
1998
|
+
}
|
|
1999
|
+
const $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
|
|
2000
|
+
$ZodType.init(inst, def);
|
|
2001
|
+
inst._zod.optin = "optional";
|
|
2002
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2003
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2004
|
+
if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
|
|
2005
|
+
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
2006
|
+
return def.innerType._zod.run(payload, ctx);
|
|
2007
|
+
};
|
|
2008
|
+
});
|
|
2009
|
+
const $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
|
|
2010
|
+
$ZodType.init(inst, def);
|
|
2011
|
+
defineLazy(inst._zod, "values", () => {
|
|
2012
|
+
const v = def.innerType._zod.values;
|
|
2013
|
+
return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
|
|
2014
|
+
});
|
|
2015
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2016
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
2017
|
+
if (result instanceof Promise) return result.then((result) => handleNonOptionalResult(result, inst));
|
|
2018
|
+
return handleNonOptionalResult(result, inst);
|
|
2019
|
+
};
|
|
2020
|
+
});
|
|
2021
|
+
function handleNonOptionalResult(payload, inst) {
|
|
2022
|
+
if (!payload.issues.length && payload.value === void 0) payload.issues.push({
|
|
2023
|
+
code: "invalid_type",
|
|
2024
|
+
expected: "nonoptional",
|
|
2025
|
+
input: payload.value,
|
|
2026
|
+
inst
|
|
2027
|
+
});
|
|
2028
|
+
return payload;
|
|
2029
|
+
}
|
|
2030
|
+
const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
2031
|
+
$ZodType.init(inst, def);
|
|
2032
|
+
inst._zod.optin = "optional";
|
|
2033
|
+
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2034
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2035
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2036
|
+
if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
|
|
2037
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
2038
|
+
if (result instanceof Promise) return result.then((result) => {
|
|
2039
|
+
payload.value = result.value;
|
|
2040
|
+
if (result.issues.length) {
|
|
2041
|
+
payload.value = def.catchValue({
|
|
2042
|
+
...payload,
|
|
2043
|
+
error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
|
|
2044
|
+
input: payload.value
|
|
2045
|
+
});
|
|
2046
|
+
payload.issues = [];
|
|
2047
|
+
payload.fallback = true;
|
|
2048
|
+
}
|
|
2049
|
+
return payload;
|
|
2050
|
+
});
|
|
2051
|
+
payload.value = result.value;
|
|
2052
|
+
if (result.issues.length) {
|
|
2053
|
+
payload.value = def.catchValue({
|
|
2054
|
+
...payload,
|
|
2055
|
+
error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
|
|
2056
|
+
input: payload.value
|
|
2057
|
+
});
|
|
2058
|
+
payload.issues = [];
|
|
2059
|
+
payload.fallback = true;
|
|
2060
|
+
}
|
|
2061
|
+
return payload;
|
|
2062
|
+
};
|
|
2063
|
+
});
|
|
2064
|
+
const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
|
|
2065
|
+
$ZodType.init(inst, def);
|
|
2066
|
+
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2067
|
+
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
2068
|
+
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
2069
|
+
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
2070
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2071
|
+
if (ctx.direction === "backward") {
|
|
2072
|
+
const right = def.out._zod.run(payload, ctx);
|
|
2073
|
+
if (right instanceof Promise) return right.then((right) => handlePipeResult(right, def.in, ctx));
|
|
2074
|
+
return handlePipeResult(right, def.in, ctx);
|
|
2075
|
+
}
|
|
2076
|
+
const left = def.in._zod.run(payload, ctx);
|
|
2077
|
+
if (left instanceof Promise) return left.then((left) => handlePipeResult(left, def.out, ctx));
|
|
2078
|
+
return handlePipeResult(left, def.out, ctx);
|
|
2079
|
+
};
|
|
2080
|
+
});
|
|
2081
|
+
function handlePipeResult(left, next, ctx) {
|
|
2082
|
+
if (left.issues.length) {
|
|
2083
|
+
left.aborted = true;
|
|
2084
|
+
return left;
|
|
2085
|
+
}
|
|
2086
|
+
return next._zod.run({
|
|
2087
|
+
value: left.value,
|
|
2088
|
+
issues: left.issues,
|
|
2089
|
+
fallback: left.fallback
|
|
2090
|
+
}, ctx);
|
|
2091
|
+
}
|
|
2092
|
+
const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
2093
|
+
$ZodType.init(inst, def);
|
|
2094
|
+
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
2095
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2096
|
+
defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
2097
|
+
defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
2098
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2099
|
+
if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
|
|
2100
|
+
const result = def.innerType._zod.run(payload, ctx);
|
|
2101
|
+
if (result instanceof Promise) return result.then(handleReadonlyResult);
|
|
2102
|
+
return handleReadonlyResult(result);
|
|
2103
|
+
};
|
|
2104
|
+
});
|
|
2105
|
+
function handleReadonlyResult(payload) {
|
|
2106
|
+
payload.value = Object.freeze(payload.value);
|
|
2107
|
+
return payload;
|
|
2108
|
+
}
|
|
2109
|
+
const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
|
|
2110
|
+
$ZodCheck.init(inst, def);
|
|
2111
|
+
$ZodType.init(inst, def);
|
|
2112
|
+
inst._zod.parse = (payload, _) => {
|
|
2113
|
+
return payload;
|
|
2114
|
+
};
|
|
2115
|
+
inst._zod.check = (payload) => {
|
|
2116
|
+
const input = payload.value;
|
|
2117
|
+
const r = def.fn(input);
|
|
2118
|
+
if (r instanceof Promise) return r.then((r) => handleRefineResult(r, payload, input, inst));
|
|
2119
|
+
handleRefineResult(r, payload, input, inst);
|
|
2120
|
+
};
|
|
2121
|
+
});
|
|
2122
|
+
function handleRefineResult(result, payload, input, inst) {
|
|
2123
|
+
if (!result) {
|
|
2124
|
+
const _iss = {
|
|
2125
|
+
code: "custom",
|
|
2126
|
+
input,
|
|
2127
|
+
inst,
|
|
2128
|
+
path: [...inst._zod.def.path ?? []],
|
|
2129
|
+
continue: !inst._zod.def.abort
|
|
2130
|
+
};
|
|
2131
|
+
if (inst._zod.def.params) _iss.params = inst._zod.def.params;
|
|
2132
|
+
payload.issues.push(issue(_iss));
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
//#endregion
|
|
2136
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
2137
|
+
var _a;
|
|
2138
|
+
var $ZodRegistry = class {
|
|
2139
|
+
constructor() {
|
|
2140
|
+
this._map = /* @__PURE__ */ new WeakMap();
|
|
2141
|
+
this._idmap = /* @__PURE__ */ new Map();
|
|
2142
|
+
}
|
|
2143
|
+
add(schema, ..._meta) {
|
|
2144
|
+
const meta = _meta[0];
|
|
2145
|
+
this._map.set(schema, meta);
|
|
2146
|
+
if (meta && typeof meta === "object" && "id" in meta) this._idmap.set(meta.id, schema);
|
|
2147
|
+
return this;
|
|
2148
|
+
}
|
|
2149
|
+
clear() {
|
|
2150
|
+
this._map = /* @__PURE__ */ new WeakMap();
|
|
2151
|
+
this._idmap = /* @__PURE__ */ new Map();
|
|
2152
|
+
return this;
|
|
2153
|
+
}
|
|
2154
|
+
remove(schema) {
|
|
2155
|
+
const meta = this._map.get(schema);
|
|
2156
|
+
if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id);
|
|
2157
|
+
this._map.delete(schema);
|
|
2158
|
+
return this;
|
|
2159
|
+
}
|
|
2160
|
+
get(schema) {
|
|
2161
|
+
const p = schema._zod.parent;
|
|
2162
|
+
if (p) {
|
|
2163
|
+
const pm = { ...this.get(p) ?? {} };
|
|
2164
|
+
delete pm.id;
|
|
2165
|
+
const f = {
|
|
2166
|
+
...pm,
|
|
2167
|
+
...this._map.get(schema)
|
|
2168
|
+
};
|
|
2169
|
+
return Object.keys(f).length ? f : void 0;
|
|
2170
|
+
}
|
|
2171
|
+
return this._map.get(schema);
|
|
2172
|
+
}
|
|
2173
|
+
has(schema) {
|
|
2174
|
+
return this._map.has(schema);
|
|
2175
|
+
}
|
|
2176
|
+
};
|
|
2177
|
+
function registry() {
|
|
2178
|
+
return new $ZodRegistry();
|
|
2179
|
+
}
|
|
2180
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2181
|
+
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2182
|
+
//#endregion
|
|
2183
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2184
|
+
// @__NO_SIDE_EFFECTS__
|
|
2185
|
+
function _string(Class, params) {
|
|
2186
|
+
return new Class({
|
|
2187
|
+
type: "string",
|
|
2188
|
+
...normalizeParams(params)
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
// @__NO_SIDE_EFFECTS__
|
|
2192
|
+
function _email(Class, params) {
|
|
2193
|
+
return new Class({
|
|
2194
|
+
type: "string",
|
|
2195
|
+
format: "email",
|
|
2196
|
+
check: "string_format",
|
|
2197
|
+
abort: false,
|
|
2198
|
+
...normalizeParams(params)
|
|
2199
|
+
});
|
|
2200
|
+
}
|
|
2201
|
+
// @__NO_SIDE_EFFECTS__
|
|
2202
|
+
function _guid(Class, params) {
|
|
2203
|
+
return new Class({
|
|
2204
|
+
type: "string",
|
|
2205
|
+
format: "guid",
|
|
2206
|
+
check: "string_format",
|
|
2207
|
+
abort: false,
|
|
2208
|
+
...normalizeParams(params)
|
|
2209
|
+
});
|
|
2210
|
+
}
|
|
2211
|
+
// @__NO_SIDE_EFFECTS__
|
|
2212
|
+
function _uuid(Class, params) {
|
|
2213
|
+
return new Class({
|
|
2214
|
+
type: "string",
|
|
2215
|
+
format: "uuid",
|
|
2216
|
+
check: "string_format",
|
|
2217
|
+
abort: false,
|
|
2218
|
+
...normalizeParams(params)
|
|
2219
|
+
});
|
|
2220
|
+
}
|
|
2221
|
+
// @__NO_SIDE_EFFECTS__
|
|
2222
|
+
function _uuidv4(Class, params) {
|
|
2223
|
+
return new Class({
|
|
2224
|
+
type: "string",
|
|
2225
|
+
format: "uuid",
|
|
2226
|
+
check: "string_format",
|
|
2227
|
+
abort: false,
|
|
2228
|
+
version: "v4",
|
|
2229
|
+
...normalizeParams(params)
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
// @__NO_SIDE_EFFECTS__
|
|
2233
|
+
function _uuidv6(Class, params) {
|
|
2234
|
+
return new Class({
|
|
2235
|
+
type: "string",
|
|
2236
|
+
format: "uuid",
|
|
2237
|
+
check: "string_format",
|
|
2238
|
+
abort: false,
|
|
2239
|
+
version: "v6",
|
|
2240
|
+
...normalizeParams(params)
|
|
2241
|
+
});
|
|
2242
|
+
}
|
|
2243
|
+
// @__NO_SIDE_EFFECTS__
|
|
2244
|
+
function _uuidv7(Class, params) {
|
|
2245
|
+
return new Class({
|
|
2246
|
+
type: "string",
|
|
2247
|
+
format: "uuid",
|
|
2248
|
+
check: "string_format",
|
|
2249
|
+
abort: false,
|
|
2250
|
+
version: "v7",
|
|
2251
|
+
...normalizeParams(params)
|
|
2252
|
+
});
|
|
2253
|
+
}
|
|
2254
|
+
// @__NO_SIDE_EFFECTS__
|
|
2255
|
+
function _url(Class, params) {
|
|
2256
|
+
return new Class({
|
|
2257
|
+
type: "string",
|
|
2258
|
+
format: "url",
|
|
2259
|
+
check: "string_format",
|
|
2260
|
+
abort: false,
|
|
2261
|
+
...normalizeParams(params)
|
|
2262
|
+
});
|
|
2263
|
+
}
|
|
2264
|
+
// @__NO_SIDE_EFFECTS__
|
|
2265
|
+
function _emoji(Class, params) {
|
|
2266
|
+
return new Class({
|
|
2267
|
+
type: "string",
|
|
2268
|
+
format: "emoji",
|
|
2269
|
+
check: "string_format",
|
|
2270
|
+
abort: false,
|
|
2271
|
+
...normalizeParams(params)
|
|
2272
|
+
});
|
|
2273
|
+
}
|
|
2274
|
+
// @__NO_SIDE_EFFECTS__
|
|
2275
|
+
function _nanoid(Class, params) {
|
|
2276
|
+
return new Class({
|
|
2277
|
+
type: "string",
|
|
2278
|
+
format: "nanoid",
|
|
2279
|
+
check: "string_format",
|
|
2280
|
+
abort: false,
|
|
2281
|
+
...normalizeParams(params)
|
|
2282
|
+
});
|
|
2283
|
+
}
|
|
2284
|
+
/**
|
|
2285
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
2286
|
+
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
2287
|
+
* See https://github.com/paralleldrive/cuid.
|
|
2288
|
+
*/
|
|
2289
|
+
// @__NO_SIDE_EFFECTS__
|
|
2290
|
+
function _cuid(Class, params) {
|
|
2291
|
+
return new Class({
|
|
2292
|
+
type: "string",
|
|
2293
|
+
format: "cuid",
|
|
2294
|
+
check: "string_format",
|
|
2295
|
+
abort: false,
|
|
2296
|
+
...normalizeParams(params)
|
|
2297
|
+
});
|
|
2298
|
+
}
|
|
2299
|
+
// @__NO_SIDE_EFFECTS__
|
|
2300
|
+
function _cuid2(Class, params) {
|
|
2301
|
+
return new Class({
|
|
2302
|
+
type: "string",
|
|
2303
|
+
format: "cuid2",
|
|
2304
|
+
check: "string_format",
|
|
2305
|
+
abort: false,
|
|
2306
|
+
...normalizeParams(params)
|
|
2307
|
+
});
|
|
2308
|
+
}
|
|
2309
|
+
// @__NO_SIDE_EFFECTS__
|
|
2310
|
+
function _ulid(Class, params) {
|
|
2311
|
+
return new Class({
|
|
2312
|
+
type: "string",
|
|
2313
|
+
format: "ulid",
|
|
2314
|
+
check: "string_format",
|
|
2315
|
+
abort: false,
|
|
2316
|
+
...normalizeParams(params)
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
// @__NO_SIDE_EFFECTS__
|
|
2320
|
+
function _xid(Class, params) {
|
|
2321
|
+
return new Class({
|
|
2322
|
+
type: "string",
|
|
2323
|
+
format: "xid",
|
|
2324
|
+
check: "string_format",
|
|
2325
|
+
abort: false,
|
|
2326
|
+
...normalizeParams(params)
|
|
2327
|
+
});
|
|
2328
|
+
}
|
|
2329
|
+
// @__NO_SIDE_EFFECTS__
|
|
2330
|
+
function _ksuid(Class, params) {
|
|
2331
|
+
return new Class({
|
|
2332
|
+
type: "string",
|
|
2333
|
+
format: "ksuid",
|
|
2334
|
+
check: "string_format",
|
|
2335
|
+
abort: false,
|
|
2336
|
+
...normalizeParams(params)
|
|
2337
|
+
});
|
|
2338
|
+
}
|
|
2339
|
+
// @__NO_SIDE_EFFECTS__
|
|
2340
|
+
function _ipv4(Class, params) {
|
|
2341
|
+
return new Class({
|
|
2342
|
+
type: "string",
|
|
2343
|
+
format: "ipv4",
|
|
2344
|
+
check: "string_format",
|
|
2345
|
+
abort: false,
|
|
2346
|
+
...normalizeParams(params)
|
|
2347
|
+
});
|
|
2348
|
+
}
|
|
2349
|
+
// @__NO_SIDE_EFFECTS__
|
|
2350
|
+
function _ipv6(Class, params) {
|
|
2351
|
+
return new Class({
|
|
2352
|
+
type: "string",
|
|
2353
|
+
format: "ipv6",
|
|
2354
|
+
check: "string_format",
|
|
2355
|
+
abort: false,
|
|
2356
|
+
...normalizeParams(params)
|
|
2357
|
+
});
|
|
2358
|
+
}
|
|
2359
|
+
// @__NO_SIDE_EFFECTS__
|
|
2360
|
+
function _cidrv4(Class, params) {
|
|
2361
|
+
return new Class({
|
|
2362
|
+
type: "string",
|
|
2363
|
+
format: "cidrv4",
|
|
2364
|
+
check: "string_format",
|
|
2365
|
+
abort: false,
|
|
2366
|
+
...normalizeParams(params)
|
|
2367
|
+
});
|
|
2368
|
+
}
|
|
2369
|
+
// @__NO_SIDE_EFFECTS__
|
|
2370
|
+
function _cidrv6(Class, params) {
|
|
2371
|
+
return new Class({
|
|
2372
|
+
type: "string",
|
|
2373
|
+
format: "cidrv6",
|
|
2374
|
+
check: "string_format",
|
|
2375
|
+
abort: false,
|
|
2376
|
+
...normalizeParams(params)
|
|
2377
|
+
});
|
|
2378
|
+
}
|
|
2379
|
+
// @__NO_SIDE_EFFECTS__
|
|
2380
|
+
function _base64(Class, params) {
|
|
2381
|
+
return new Class({
|
|
2382
|
+
type: "string",
|
|
2383
|
+
format: "base64",
|
|
2384
|
+
check: "string_format",
|
|
2385
|
+
abort: false,
|
|
2386
|
+
...normalizeParams(params)
|
|
2387
|
+
});
|
|
2388
|
+
}
|
|
2389
|
+
// @__NO_SIDE_EFFECTS__
|
|
2390
|
+
function _base64url(Class, params) {
|
|
2391
|
+
return new Class({
|
|
2392
|
+
type: "string",
|
|
2393
|
+
format: "base64url",
|
|
2394
|
+
check: "string_format",
|
|
2395
|
+
abort: false,
|
|
2396
|
+
...normalizeParams(params)
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
// @__NO_SIDE_EFFECTS__
|
|
2400
|
+
function _e164(Class, params) {
|
|
2401
|
+
return new Class({
|
|
2402
|
+
type: "string",
|
|
2403
|
+
format: "e164",
|
|
2404
|
+
check: "string_format",
|
|
2405
|
+
abort: false,
|
|
2406
|
+
...normalizeParams(params)
|
|
2407
|
+
});
|
|
2408
|
+
}
|
|
2409
|
+
// @__NO_SIDE_EFFECTS__
|
|
2410
|
+
function _jwt(Class, params) {
|
|
2411
|
+
return new Class({
|
|
2412
|
+
type: "string",
|
|
2413
|
+
format: "jwt",
|
|
2414
|
+
check: "string_format",
|
|
2415
|
+
abort: false,
|
|
2416
|
+
...normalizeParams(params)
|
|
2417
|
+
});
|
|
2418
|
+
}
|
|
2419
|
+
// @__NO_SIDE_EFFECTS__
|
|
2420
|
+
function _isoDateTime(Class, params) {
|
|
2421
|
+
return new Class({
|
|
2422
|
+
type: "string",
|
|
2423
|
+
format: "datetime",
|
|
2424
|
+
check: "string_format",
|
|
2425
|
+
offset: false,
|
|
2426
|
+
local: false,
|
|
2427
|
+
precision: null,
|
|
2428
|
+
...normalizeParams(params)
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2431
|
+
// @__NO_SIDE_EFFECTS__
|
|
2432
|
+
function _isoDate(Class, params) {
|
|
2433
|
+
return new Class({
|
|
2434
|
+
type: "string",
|
|
2435
|
+
format: "date",
|
|
2436
|
+
check: "string_format",
|
|
2437
|
+
...normalizeParams(params)
|
|
2438
|
+
});
|
|
2439
|
+
}
|
|
2440
|
+
// @__NO_SIDE_EFFECTS__
|
|
2441
|
+
function _isoTime(Class, params) {
|
|
2442
|
+
return new Class({
|
|
2443
|
+
type: "string",
|
|
2444
|
+
format: "time",
|
|
2445
|
+
check: "string_format",
|
|
2446
|
+
precision: null,
|
|
2447
|
+
...normalizeParams(params)
|
|
2448
|
+
});
|
|
2449
|
+
}
|
|
2450
|
+
// @__NO_SIDE_EFFECTS__
|
|
2451
|
+
function _isoDuration(Class, params) {
|
|
2452
|
+
return new Class({
|
|
2453
|
+
type: "string",
|
|
2454
|
+
format: "duration",
|
|
2455
|
+
check: "string_format",
|
|
2456
|
+
...normalizeParams(params)
|
|
2457
|
+
});
|
|
2458
|
+
}
|
|
2459
|
+
// @__NO_SIDE_EFFECTS__
|
|
2460
|
+
function _number(Class, params) {
|
|
2461
|
+
return new Class({
|
|
2462
|
+
type: "number",
|
|
2463
|
+
checks: [],
|
|
2464
|
+
...normalizeParams(params)
|
|
2465
|
+
});
|
|
2466
|
+
}
|
|
2467
|
+
// @__NO_SIDE_EFFECTS__
|
|
2468
|
+
function _int(Class, params) {
|
|
2469
|
+
return new Class({
|
|
2470
|
+
type: "number",
|
|
2471
|
+
check: "number_format",
|
|
2472
|
+
abort: false,
|
|
2473
|
+
format: "safeint",
|
|
2474
|
+
...normalizeParams(params)
|
|
2475
|
+
});
|
|
2476
|
+
}
|
|
2477
|
+
// @__NO_SIDE_EFFECTS__
|
|
2478
|
+
function _boolean(Class, params) {
|
|
2479
|
+
return new Class({
|
|
2480
|
+
type: "boolean",
|
|
2481
|
+
...normalizeParams(params)
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2484
|
+
// @__NO_SIDE_EFFECTS__
|
|
2485
|
+
function _unknown(Class) {
|
|
2486
|
+
return new Class({ type: "unknown" });
|
|
2487
|
+
}
|
|
2488
|
+
// @__NO_SIDE_EFFECTS__
|
|
2489
|
+
function _never(Class, params) {
|
|
2490
|
+
return new Class({
|
|
2491
|
+
type: "never",
|
|
2492
|
+
...normalizeParams(params)
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
// @__NO_SIDE_EFFECTS__
|
|
2496
|
+
function _lt(value, params) {
|
|
2497
|
+
return new $ZodCheckLessThan({
|
|
2498
|
+
check: "less_than",
|
|
2499
|
+
...normalizeParams(params),
|
|
2500
|
+
value,
|
|
2501
|
+
inclusive: false
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2504
|
+
// @__NO_SIDE_EFFECTS__
|
|
2505
|
+
function _lte(value, params) {
|
|
2506
|
+
return new $ZodCheckLessThan({
|
|
2507
|
+
check: "less_than",
|
|
2508
|
+
...normalizeParams(params),
|
|
2509
|
+
value,
|
|
2510
|
+
inclusive: true
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2513
|
+
// @__NO_SIDE_EFFECTS__
|
|
2514
|
+
function _gt(value, params) {
|
|
2515
|
+
return new $ZodCheckGreaterThan({
|
|
2516
|
+
check: "greater_than",
|
|
2517
|
+
...normalizeParams(params),
|
|
2518
|
+
value,
|
|
2519
|
+
inclusive: false
|
|
2520
|
+
});
|
|
2521
|
+
}
|
|
2522
|
+
// @__NO_SIDE_EFFECTS__
|
|
2523
|
+
function _gte(value, params) {
|
|
2524
|
+
return new $ZodCheckGreaterThan({
|
|
2525
|
+
check: "greater_than",
|
|
2526
|
+
...normalizeParams(params),
|
|
2527
|
+
value,
|
|
2528
|
+
inclusive: true
|
|
2529
|
+
});
|
|
2530
|
+
}
|
|
2531
|
+
// @__NO_SIDE_EFFECTS__
|
|
2532
|
+
function _multipleOf(value, params) {
|
|
2533
|
+
return new $ZodCheckMultipleOf({
|
|
2534
|
+
check: "multiple_of",
|
|
2535
|
+
...normalizeParams(params),
|
|
2536
|
+
value
|
|
2537
|
+
});
|
|
2538
|
+
}
|
|
2539
|
+
// @__NO_SIDE_EFFECTS__
|
|
2540
|
+
function _maxLength(maximum, params) {
|
|
2541
|
+
return new $ZodCheckMaxLength({
|
|
2542
|
+
check: "max_length",
|
|
2543
|
+
...normalizeParams(params),
|
|
2544
|
+
maximum
|
|
2545
|
+
});
|
|
2546
|
+
}
|
|
2547
|
+
// @__NO_SIDE_EFFECTS__
|
|
2548
|
+
function _minLength(minimum, params) {
|
|
2549
|
+
return new $ZodCheckMinLength({
|
|
2550
|
+
check: "min_length",
|
|
2551
|
+
...normalizeParams(params),
|
|
2552
|
+
minimum
|
|
2553
|
+
});
|
|
2554
|
+
}
|
|
2555
|
+
// @__NO_SIDE_EFFECTS__
|
|
2556
|
+
function _length(length, params) {
|
|
2557
|
+
return new $ZodCheckLengthEquals({
|
|
2558
|
+
check: "length_equals",
|
|
2559
|
+
...normalizeParams(params),
|
|
2560
|
+
length
|
|
2561
|
+
});
|
|
2562
|
+
}
|
|
2563
|
+
// @__NO_SIDE_EFFECTS__
|
|
2564
|
+
function _regex(pattern, params) {
|
|
2565
|
+
return new $ZodCheckRegex({
|
|
2566
|
+
check: "string_format",
|
|
2567
|
+
format: "regex",
|
|
2568
|
+
...normalizeParams(params),
|
|
2569
|
+
pattern
|
|
2570
|
+
});
|
|
2571
|
+
}
|
|
2572
|
+
// @__NO_SIDE_EFFECTS__
|
|
2573
|
+
function _lowercase(params) {
|
|
2574
|
+
return new $ZodCheckLowerCase({
|
|
2575
|
+
check: "string_format",
|
|
2576
|
+
format: "lowercase",
|
|
2577
|
+
...normalizeParams(params)
|
|
2578
|
+
});
|
|
2579
|
+
}
|
|
2580
|
+
// @__NO_SIDE_EFFECTS__
|
|
2581
|
+
function _uppercase(params) {
|
|
2582
|
+
return new $ZodCheckUpperCase({
|
|
2583
|
+
check: "string_format",
|
|
2584
|
+
format: "uppercase",
|
|
2585
|
+
...normalizeParams(params)
|
|
2586
|
+
});
|
|
2587
|
+
}
|
|
2588
|
+
// @__NO_SIDE_EFFECTS__
|
|
2589
|
+
function _includes(includes, params) {
|
|
2590
|
+
return new $ZodCheckIncludes({
|
|
2591
|
+
check: "string_format",
|
|
2592
|
+
format: "includes",
|
|
2593
|
+
...normalizeParams(params),
|
|
2594
|
+
includes
|
|
2595
|
+
});
|
|
2596
|
+
}
|
|
2597
|
+
// @__NO_SIDE_EFFECTS__
|
|
2598
|
+
function _startsWith(prefix, params) {
|
|
2599
|
+
return new $ZodCheckStartsWith({
|
|
2600
|
+
check: "string_format",
|
|
2601
|
+
format: "starts_with",
|
|
2602
|
+
...normalizeParams(params),
|
|
2603
|
+
prefix
|
|
2604
|
+
});
|
|
2605
|
+
}
|
|
2606
|
+
// @__NO_SIDE_EFFECTS__
|
|
2607
|
+
function _endsWith(suffix, params) {
|
|
2608
|
+
return new $ZodCheckEndsWith({
|
|
2609
|
+
check: "string_format",
|
|
2610
|
+
format: "ends_with",
|
|
2611
|
+
...normalizeParams(params),
|
|
2612
|
+
suffix
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2615
|
+
// @__NO_SIDE_EFFECTS__
|
|
2616
|
+
function _overwrite(tx) {
|
|
2617
|
+
return new $ZodCheckOverwrite({
|
|
2618
|
+
check: "overwrite",
|
|
2619
|
+
tx
|
|
2620
|
+
});
|
|
2621
|
+
}
|
|
2622
|
+
// @__NO_SIDE_EFFECTS__
|
|
2623
|
+
function _normalize(form) {
|
|
2624
|
+
return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
|
|
2625
|
+
}
|
|
2626
|
+
// @__NO_SIDE_EFFECTS__
|
|
2627
|
+
function _trim() {
|
|
2628
|
+
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
2629
|
+
}
|
|
2630
|
+
// @__NO_SIDE_EFFECTS__
|
|
2631
|
+
function _toLowerCase() {
|
|
2632
|
+
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
2633
|
+
}
|
|
2634
|
+
// @__NO_SIDE_EFFECTS__
|
|
2635
|
+
function _toUpperCase() {
|
|
2636
|
+
return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
|
|
2637
|
+
}
|
|
2638
|
+
// @__NO_SIDE_EFFECTS__
|
|
2639
|
+
function _slugify() {
|
|
2640
|
+
return /* @__PURE__ */ _overwrite((input) => slugify(input));
|
|
2641
|
+
}
|
|
2642
|
+
// @__NO_SIDE_EFFECTS__
|
|
2643
|
+
function _array(Class, element, params) {
|
|
2644
|
+
return new Class({
|
|
2645
|
+
type: "array",
|
|
2646
|
+
element,
|
|
2647
|
+
...normalizeParams(params)
|
|
2648
|
+
});
|
|
2649
|
+
}
|
|
2650
|
+
// @__NO_SIDE_EFFECTS__
|
|
2651
|
+
function _refine(Class, fn, _params) {
|
|
2652
|
+
return new Class({
|
|
2653
|
+
type: "custom",
|
|
2654
|
+
check: "custom",
|
|
2655
|
+
fn,
|
|
2656
|
+
...normalizeParams(_params)
|
|
2657
|
+
});
|
|
2658
|
+
}
|
|
2659
|
+
// @__NO_SIDE_EFFECTS__
|
|
2660
|
+
function _superRefine(fn, params) {
|
|
2661
|
+
const ch = /* @__PURE__ */ _check((payload) => {
|
|
2662
|
+
payload.addIssue = (issue$2) => {
|
|
2663
|
+
if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def));
|
|
2664
|
+
else {
|
|
2665
|
+
const _issue = issue$2;
|
|
2666
|
+
if (_issue.fatal) _issue.continue = false;
|
|
2667
|
+
_issue.code ?? (_issue.code = "custom");
|
|
2668
|
+
_issue.input ?? (_issue.input = payload.value);
|
|
2669
|
+
_issue.inst ?? (_issue.inst = ch);
|
|
2670
|
+
_issue.continue ?? (_issue.continue = !ch._zod.def.abort);
|
|
2671
|
+
payload.issues.push(issue(_issue));
|
|
2672
|
+
}
|
|
2673
|
+
};
|
|
2674
|
+
return fn(payload.value, payload);
|
|
2675
|
+
}, params);
|
|
2676
|
+
return ch;
|
|
2677
|
+
}
|
|
2678
|
+
// @__NO_SIDE_EFFECTS__
|
|
2679
|
+
function _check(fn, params) {
|
|
2680
|
+
const ch = new $ZodCheck({
|
|
2681
|
+
check: "custom",
|
|
2682
|
+
...normalizeParams(params)
|
|
2683
|
+
});
|
|
2684
|
+
ch._zod.check = fn;
|
|
2685
|
+
return ch;
|
|
2686
|
+
}
|
|
2687
|
+
//#endregion
|
|
2688
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
2689
|
+
function initializeContext(params) {
|
|
2690
|
+
let target = params?.target ?? "draft-2020-12";
|
|
2691
|
+
if (target === "draft-4") target = "draft-04";
|
|
2692
|
+
if (target === "draft-7") target = "draft-07";
|
|
2693
|
+
return {
|
|
2694
|
+
processors: params.processors ?? {},
|
|
2695
|
+
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
2696
|
+
target,
|
|
2697
|
+
unrepresentable: params?.unrepresentable ?? "throw",
|
|
2698
|
+
override: params?.override ?? (() => {}),
|
|
2699
|
+
io: params?.io ?? "output",
|
|
2700
|
+
counter: 0,
|
|
2701
|
+
seen: /* @__PURE__ */ new Map(),
|
|
2702
|
+
cycles: params?.cycles ?? "ref",
|
|
2703
|
+
reused: params?.reused ?? "inline",
|
|
2704
|
+
external: params?.external ?? void 0
|
|
2705
|
+
};
|
|
2706
|
+
}
|
|
2707
|
+
function process(schema, ctx, _params = {
|
|
2708
|
+
path: [],
|
|
2709
|
+
schemaPath: []
|
|
2710
|
+
}) {
|
|
2711
|
+
var _a;
|
|
2712
|
+
const def = schema._zod.def;
|
|
2713
|
+
const seen = ctx.seen.get(schema);
|
|
2714
|
+
if (seen) {
|
|
2715
|
+
seen.count++;
|
|
2716
|
+
if (_params.schemaPath.includes(schema)) seen.cycle = _params.path;
|
|
2717
|
+
return seen.schema;
|
|
2718
|
+
}
|
|
2719
|
+
const result = {
|
|
2720
|
+
schema: {},
|
|
2721
|
+
count: 1,
|
|
2722
|
+
cycle: void 0,
|
|
2723
|
+
path: _params.path
|
|
2724
|
+
};
|
|
2725
|
+
ctx.seen.set(schema, result);
|
|
2726
|
+
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
2727
|
+
if (overrideSchema) result.schema = overrideSchema;
|
|
2728
|
+
else {
|
|
2729
|
+
const params = {
|
|
2730
|
+
..._params,
|
|
2731
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
2732
|
+
path: _params.path
|
|
2733
|
+
};
|
|
2734
|
+
if (schema._zod.processJSONSchema) schema._zod.processJSONSchema(ctx, result.schema, params);
|
|
2735
|
+
else {
|
|
2736
|
+
const _json = result.schema;
|
|
2737
|
+
const processor = ctx.processors[def.type];
|
|
2738
|
+
if (!processor) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
|
|
2739
|
+
processor(schema, ctx, _json, params);
|
|
2740
|
+
}
|
|
2741
|
+
const parent = schema._zod.parent;
|
|
2742
|
+
if (parent) {
|
|
2743
|
+
if (!result.ref) result.ref = parent;
|
|
2744
|
+
process(parent, ctx, params);
|
|
2745
|
+
ctx.seen.get(parent).isParent = true;
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
const meta = ctx.metadataRegistry.get(schema);
|
|
2749
|
+
if (meta) Object.assign(result.schema, meta);
|
|
2750
|
+
if (ctx.io === "input" && isTransforming(schema)) {
|
|
2751
|
+
delete result.schema.examples;
|
|
2752
|
+
delete result.schema.default;
|
|
2753
|
+
}
|
|
2754
|
+
if (ctx.io === "input" && "_prefault" in result.schema) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
|
|
2755
|
+
delete result.schema._prefault;
|
|
2756
|
+
return ctx.seen.get(schema).schema;
|
|
2757
|
+
}
|
|
2758
|
+
function extractDefs(ctx, schema) {
|
|
2759
|
+
const root = ctx.seen.get(schema);
|
|
2760
|
+
if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
2761
|
+
const idToSchema = /* @__PURE__ */ new Map();
|
|
2762
|
+
for (const entry of ctx.seen.entries()) {
|
|
2763
|
+
const id = ctx.metadataRegistry.get(entry[0])?.id;
|
|
2764
|
+
if (id) {
|
|
2765
|
+
const existing = idToSchema.get(id);
|
|
2766
|
+
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.`);
|
|
2767
|
+
idToSchema.set(id, entry[0]);
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2770
|
+
const makeURI = (entry) => {
|
|
2771
|
+
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2772
|
+
if (ctx.external) {
|
|
2773
|
+
const externalId = ctx.external.registry.get(entry[0])?.id;
|
|
2774
|
+
const uriGenerator = ctx.external.uri ?? ((id) => id);
|
|
2775
|
+
if (externalId) return { ref: uriGenerator(externalId) };
|
|
2776
|
+
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
|
|
2777
|
+
entry[1].defId = id;
|
|
2778
|
+
return {
|
|
2779
|
+
defId: id,
|
|
2780
|
+
ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
|
|
2781
|
+
};
|
|
2782
|
+
}
|
|
2783
|
+
if (entry[1] === root) return { ref: "#" };
|
|
2784
|
+
const defUriPrefix = `#/${defsSegment}/`;
|
|
2785
|
+
const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;
|
|
2786
|
+
return {
|
|
2787
|
+
defId,
|
|
2788
|
+
ref: defUriPrefix + defId
|
|
2789
|
+
};
|
|
2790
|
+
};
|
|
2791
|
+
const extractToDef = (entry) => {
|
|
2792
|
+
if (entry[1].schema.$ref) return;
|
|
2793
|
+
const seen = entry[1];
|
|
2794
|
+
const { ref, defId } = makeURI(entry);
|
|
2795
|
+
seen.def = { ...seen.schema };
|
|
2796
|
+
if (defId) seen.defId = defId;
|
|
2797
|
+
const schema = seen.schema;
|
|
2798
|
+
for (const key in schema) delete schema[key];
|
|
2799
|
+
schema.$ref = ref;
|
|
2800
|
+
};
|
|
2801
|
+
if (ctx.cycles === "throw") for (const entry of ctx.seen.entries()) {
|
|
2802
|
+
const seen = entry[1];
|
|
2803
|
+
if (seen.cycle) throw new Error(`Cycle detected: #/${seen.cycle?.join("/")}/<root>
|
|
2804
|
+
|
|
2805
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
|
|
2806
|
+
}
|
|
2807
|
+
for (const entry of ctx.seen.entries()) {
|
|
2808
|
+
const seen = entry[1];
|
|
2809
|
+
if (schema === entry[0]) {
|
|
2810
|
+
extractToDef(entry);
|
|
2811
|
+
continue;
|
|
2812
|
+
}
|
|
2813
|
+
if (ctx.external) {
|
|
2814
|
+
const ext = ctx.external.registry.get(entry[0])?.id;
|
|
2815
|
+
if (schema !== entry[0] && ext) {
|
|
2816
|
+
extractToDef(entry);
|
|
2817
|
+
continue;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
if (ctx.metadataRegistry.get(entry[0])?.id) {
|
|
2821
|
+
extractToDef(entry);
|
|
2822
|
+
continue;
|
|
2823
|
+
}
|
|
2824
|
+
if (seen.cycle) {
|
|
2825
|
+
extractToDef(entry);
|
|
2826
|
+
continue;
|
|
2827
|
+
}
|
|
2828
|
+
if (seen.count > 1) {
|
|
2829
|
+
if (ctx.reused === "ref") {
|
|
2830
|
+
extractToDef(entry);
|
|
2831
|
+
continue;
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
function finalize(ctx, schema) {
|
|
2837
|
+
const root = ctx.seen.get(schema);
|
|
2838
|
+
if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
2839
|
+
const flattenRef = (zodSchema) => {
|
|
2840
|
+
const seen = ctx.seen.get(zodSchema);
|
|
2841
|
+
if (seen.ref === null) return;
|
|
2842
|
+
const schema = seen.def ?? seen.schema;
|
|
2843
|
+
const _cached = { ...schema };
|
|
2844
|
+
const ref = seen.ref;
|
|
2845
|
+
seen.ref = null;
|
|
2846
|
+
if (ref) {
|
|
2847
|
+
flattenRef(ref);
|
|
2848
|
+
const refSeen = ctx.seen.get(ref);
|
|
2849
|
+
const refSchema = refSeen.schema;
|
|
2850
|
+
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
2851
|
+
schema.allOf = schema.allOf ?? [];
|
|
2852
|
+
schema.allOf.push(refSchema);
|
|
2853
|
+
} else Object.assign(schema, refSchema);
|
|
2854
|
+
Object.assign(schema, _cached);
|
|
2855
|
+
if (zodSchema._zod.parent === ref) for (const key in schema) {
|
|
2856
|
+
if (key === "$ref" || key === "allOf") continue;
|
|
2857
|
+
if (!(key in _cached)) delete schema[key];
|
|
2858
|
+
}
|
|
2859
|
+
if (refSchema.$ref && refSeen.def) for (const key in schema) {
|
|
2860
|
+
if (key === "$ref" || key === "allOf") continue;
|
|
2861
|
+
if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) delete schema[key];
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
const parent = zodSchema._zod.parent;
|
|
2865
|
+
if (parent && parent !== ref) {
|
|
2866
|
+
flattenRef(parent);
|
|
2867
|
+
const parentSeen = ctx.seen.get(parent);
|
|
2868
|
+
if (parentSeen?.schema.$ref) {
|
|
2869
|
+
schema.$ref = parentSeen.schema.$ref;
|
|
2870
|
+
if (parentSeen.def) for (const key in schema) {
|
|
2871
|
+
if (key === "$ref" || key === "allOf") continue;
|
|
2872
|
+
if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) delete schema[key];
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
ctx.override({
|
|
2877
|
+
zodSchema,
|
|
2878
|
+
jsonSchema: schema,
|
|
2879
|
+
path: seen.path ?? []
|
|
2880
|
+
});
|
|
2881
|
+
};
|
|
2882
|
+
for (const entry of [...ctx.seen.entries()].reverse()) flattenRef(entry[0]);
|
|
2883
|
+
const result = {};
|
|
2884
|
+
if (ctx.target === "draft-2020-12") result.$schema = "https://json-schema.org/draft/2020-12/schema";
|
|
2885
|
+
else if (ctx.target === "draft-07") result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
2886
|
+
else if (ctx.target === "draft-04") result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
2887
|
+
else if (ctx.target === "openapi-3.0") {}
|
|
2888
|
+
if (ctx.external?.uri) {
|
|
2889
|
+
const id = ctx.external.registry.get(schema)?.id;
|
|
2890
|
+
if (!id) throw new Error("Schema is missing an `id` property");
|
|
2891
|
+
result.$id = ctx.external.uri(id);
|
|
2892
|
+
}
|
|
2893
|
+
Object.assign(result, root.def ?? root.schema);
|
|
2894
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
2895
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId) delete result.id;
|
|
2896
|
+
const defs = ctx.external?.defs ?? {};
|
|
2897
|
+
for (const entry of ctx.seen.entries()) {
|
|
2898
|
+
const seen = entry[1];
|
|
2899
|
+
if (seen.def && seen.defId) {
|
|
2900
|
+
if (seen.def.id === seen.defId) delete seen.def.id;
|
|
2901
|
+
defs[seen.defId] = seen.def;
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
|
|
2905
|
+
else result.definitions = defs;
|
|
2906
|
+
try {
|
|
2907
|
+
const finalized = JSON.parse(JSON.stringify(result));
|
|
2908
|
+
Object.defineProperty(finalized, "~standard", {
|
|
2909
|
+
value: {
|
|
2910
|
+
...schema["~standard"],
|
|
2911
|
+
jsonSchema: {
|
|
2912
|
+
input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
|
|
2913
|
+
output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
|
|
2914
|
+
}
|
|
2915
|
+
},
|
|
2916
|
+
enumerable: false,
|
|
2917
|
+
writable: false
|
|
2918
|
+
});
|
|
2919
|
+
return finalized;
|
|
2920
|
+
} catch (_err) {
|
|
2921
|
+
throw new Error("Error converting schema to JSON.");
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
function isTransforming(_schema, _ctx) {
|
|
2925
|
+
const ctx = _ctx ?? { seen: /* @__PURE__ */ new Set() };
|
|
2926
|
+
if (ctx.seen.has(_schema)) return false;
|
|
2927
|
+
ctx.seen.add(_schema);
|
|
2928
|
+
const def = _schema._zod.def;
|
|
2929
|
+
if (def.type === "transform") return true;
|
|
2930
|
+
if (def.type === "array") return isTransforming(def.element, ctx);
|
|
2931
|
+
if (def.type === "set") return isTransforming(def.valueType, ctx);
|
|
2932
|
+
if (def.type === "lazy") return isTransforming(def.getter(), ctx);
|
|
2933
|
+
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);
|
|
2934
|
+
if (def.type === "intersection") return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
2935
|
+
if (def.type === "record" || def.type === "map") return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
2936
|
+
if (def.type === "pipe") {
|
|
2937
|
+
if (_schema._zod.traits.has("$ZodCodec")) return true;
|
|
2938
|
+
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
2939
|
+
}
|
|
2940
|
+
if (def.type === "object") {
|
|
2941
|
+
for (const key in def.shape) if (isTransforming(def.shape[key], ctx)) return true;
|
|
2942
|
+
return false;
|
|
2943
|
+
}
|
|
2944
|
+
if (def.type === "union") {
|
|
2945
|
+
for (const option of def.options) if (isTransforming(option, ctx)) return true;
|
|
2946
|
+
return false;
|
|
2947
|
+
}
|
|
2948
|
+
if (def.type === "tuple") {
|
|
2949
|
+
for (const item of def.items) if (isTransforming(item, ctx)) return true;
|
|
2950
|
+
if (def.rest && isTransforming(def.rest, ctx)) return true;
|
|
2951
|
+
return false;
|
|
2952
|
+
}
|
|
2953
|
+
return false;
|
|
2954
|
+
}
|
|
2955
|
+
/**
|
|
2956
|
+
* Creates a toJSONSchema method for a schema instance.
|
|
2957
|
+
* This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
|
|
2958
|
+
*/
|
|
2959
|
+
const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
2960
|
+
const ctx = initializeContext({
|
|
2961
|
+
...params,
|
|
2962
|
+
processors
|
|
2963
|
+
});
|
|
2964
|
+
process(schema, ctx);
|
|
2965
|
+
extractDefs(ctx, schema);
|
|
2966
|
+
return finalize(ctx, schema);
|
|
2967
|
+
};
|
|
2968
|
+
const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
2969
|
+
const { libraryOptions, target } = params ?? {};
|
|
2970
|
+
const ctx = initializeContext({
|
|
2971
|
+
...libraryOptions ?? {},
|
|
2972
|
+
target,
|
|
2973
|
+
io,
|
|
2974
|
+
processors
|
|
2975
|
+
});
|
|
2976
|
+
process(schema, ctx);
|
|
2977
|
+
extractDefs(ctx, schema);
|
|
2978
|
+
return finalize(ctx, schema);
|
|
2979
|
+
};
|
|
2980
|
+
//#endregion
|
|
2981
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
2982
|
+
const formatMap = {
|
|
2983
|
+
guid: "uuid",
|
|
2984
|
+
url: "uri",
|
|
2985
|
+
datetime: "date-time",
|
|
2986
|
+
json_string: "json-string",
|
|
2987
|
+
regex: ""
|
|
2988
|
+
};
|
|
2989
|
+
const stringProcessor = (schema, ctx, _json, _params) => {
|
|
2990
|
+
const json = _json;
|
|
2991
|
+
json.type = "string";
|
|
2992
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
2993
|
+
if (typeof minimum === "number") json.minLength = minimum;
|
|
2994
|
+
if (typeof maximum === "number") json.maxLength = maximum;
|
|
2995
|
+
if (format) {
|
|
2996
|
+
json.format = formatMap[format] ?? format;
|
|
2997
|
+
if (json.format === "") delete json.format;
|
|
2998
|
+
if (format === "time") delete json.format;
|
|
2999
|
+
}
|
|
3000
|
+
if (contentEncoding) json.contentEncoding = contentEncoding;
|
|
3001
|
+
if (patterns && patterns.size > 0) {
|
|
3002
|
+
const regexes = [...patterns];
|
|
3003
|
+
if (regexes.length === 1) json.pattern = regexes[0].source;
|
|
3004
|
+
else if (regexes.length > 1) json.allOf = [...regexes.map((regex) => ({
|
|
3005
|
+
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
3006
|
+
pattern: regex.source
|
|
3007
|
+
}))];
|
|
3008
|
+
}
|
|
3009
|
+
};
|
|
3010
|
+
const numberProcessor = (schema, ctx, _json, _params) => {
|
|
3011
|
+
const json = _json;
|
|
3012
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
3013
|
+
if (typeof format === "string" && format.includes("int")) json.type = "integer";
|
|
3014
|
+
else json.type = "number";
|
|
3015
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
3016
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
3017
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
3018
|
+
if (exMin) if (legacy) {
|
|
3019
|
+
json.minimum = exclusiveMinimum;
|
|
3020
|
+
json.exclusiveMinimum = true;
|
|
3021
|
+
} else json.exclusiveMinimum = exclusiveMinimum;
|
|
3022
|
+
else if (typeof minimum === "number") json.minimum = minimum;
|
|
3023
|
+
if (exMax) if (legacy) {
|
|
3024
|
+
json.maximum = exclusiveMaximum;
|
|
3025
|
+
json.exclusiveMaximum = true;
|
|
3026
|
+
} else json.exclusiveMaximum = exclusiveMaximum;
|
|
3027
|
+
else if (typeof maximum === "number") json.maximum = maximum;
|
|
3028
|
+
if (typeof multipleOf === "number") json.multipleOf = multipleOf;
|
|
3029
|
+
};
|
|
3030
|
+
const booleanProcessor = (_schema, _ctx, json, _params) => {
|
|
3031
|
+
json.type = "boolean";
|
|
3032
|
+
};
|
|
3033
|
+
const neverProcessor = (_schema, _ctx, json, _params) => {
|
|
3034
|
+
json.not = {};
|
|
3035
|
+
};
|
|
3036
|
+
const enumProcessor = (schema, _ctx, json, _params) => {
|
|
3037
|
+
const def = schema._zod.def;
|
|
3038
|
+
const values = getEnumValues(def.entries);
|
|
3039
|
+
if (values.every((v) => typeof v === "number")) json.type = "number";
|
|
3040
|
+
if (values.every((v) => typeof v === "string")) json.type = "string";
|
|
3041
|
+
json.enum = values;
|
|
3042
|
+
};
|
|
3043
|
+
const literalProcessor = (schema, ctx, json, _params) => {
|
|
3044
|
+
const def = schema._zod.def;
|
|
3045
|
+
const vals = [];
|
|
3046
|
+
for (const val of def.values) if (val === void 0) {
|
|
3047
|
+
if (ctx.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
3048
|
+
} else if (typeof val === "bigint") if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
3049
|
+
else vals.push(Number(val));
|
|
3050
|
+
else vals.push(val);
|
|
3051
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
3052
|
+
const val = vals[0];
|
|
3053
|
+
json.type = val === null ? "null" : typeof val;
|
|
3054
|
+
if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") json.enum = [val];
|
|
3055
|
+
else json.const = val;
|
|
3056
|
+
} else {
|
|
3057
|
+
if (vals.every((v) => typeof v === "number")) json.type = "number";
|
|
3058
|
+
if (vals.every((v) => typeof v === "string")) json.type = "string";
|
|
3059
|
+
if (vals.every((v) => typeof v === "boolean")) json.type = "boolean";
|
|
3060
|
+
if (vals.every((v) => v === null)) json.type = "null";
|
|
3061
|
+
json.enum = vals;
|
|
3062
|
+
}
|
|
3063
|
+
};
|
|
3064
|
+
const customProcessor = (_schema, ctx, _json, _params) => {
|
|
3065
|
+
if (ctx.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema");
|
|
3066
|
+
};
|
|
3067
|
+
const transformProcessor = (_schema, ctx, _json, _params) => {
|
|
3068
|
+
if (ctx.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema");
|
|
3069
|
+
};
|
|
3070
|
+
const arrayProcessor = (schema, ctx, _json, params) => {
|
|
3071
|
+
const json = _json;
|
|
3072
|
+
const def = schema._zod.def;
|
|
3073
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
3074
|
+
if (typeof minimum === "number") json.minItems = minimum;
|
|
3075
|
+
if (typeof maximum === "number") json.maxItems = maximum;
|
|
3076
|
+
json.type = "array";
|
|
3077
|
+
json.items = process(def.element, ctx, {
|
|
3078
|
+
...params,
|
|
3079
|
+
path: [...params.path, "items"]
|
|
3080
|
+
});
|
|
3081
|
+
};
|
|
3082
|
+
const objectProcessor = (schema, ctx, _json, params) => {
|
|
3083
|
+
const json = _json;
|
|
3084
|
+
const def = schema._zod.def;
|
|
3085
|
+
json.type = "object";
|
|
3086
|
+
json.properties = {};
|
|
3087
|
+
const shape = def.shape;
|
|
3088
|
+
for (const key in shape) json.properties[key] = process(shape[key], ctx, {
|
|
3089
|
+
...params,
|
|
3090
|
+
path: [
|
|
3091
|
+
...params.path,
|
|
3092
|
+
"properties",
|
|
3093
|
+
key
|
|
3094
|
+
]
|
|
3095
|
+
});
|
|
3096
|
+
const allKeys = new Set(Object.keys(shape));
|
|
3097
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
3098
|
+
const v = def.shape[key]._zod;
|
|
3099
|
+
if (ctx.io === "input") return v.optin === void 0;
|
|
3100
|
+
else return v.optout === void 0;
|
|
3101
|
+
}));
|
|
3102
|
+
if (requiredKeys.size > 0) json.required = Array.from(requiredKeys);
|
|
3103
|
+
if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
|
|
3104
|
+
else if (!def.catchall) {
|
|
3105
|
+
if (ctx.io === "output") json.additionalProperties = false;
|
|
3106
|
+
} else if (def.catchall) json.additionalProperties = process(def.catchall, ctx, {
|
|
3107
|
+
...params,
|
|
3108
|
+
path: [...params.path, "additionalProperties"]
|
|
3109
|
+
});
|
|
3110
|
+
};
|
|
3111
|
+
const unionProcessor = (schema, ctx, json, params) => {
|
|
3112
|
+
const def = schema._zod.def;
|
|
3113
|
+
const isExclusive = def.inclusive === false;
|
|
3114
|
+
const options = def.options.map((x, i) => process(x, ctx, {
|
|
3115
|
+
...params,
|
|
3116
|
+
path: [
|
|
3117
|
+
...params.path,
|
|
3118
|
+
isExclusive ? "oneOf" : "anyOf",
|
|
3119
|
+
i
|
|
3120
|
+
]
|
|
3121
|
+
}));
|
|
3122
|
+
if (isExclusive) json.oneOf = options;
|
|
3123
|
+
else json.anyOf = options;
|
|
3124
|
+
};
|
|
3125
|
+
const intersectionProcessor = (schema, ctx, json, params) => {
|
|
3126
|
+
const def = schema._zod.def;
|
|
3127
|
+
const a = process(def.left, ctx, {
|
|
3128
|
+
...params,
|
|
3129
|
+
path: [
|
|
3130
|
+
...params.path,
|
|
3131
|
+
"allOf",
|
|
3132
|
+
0
|
|
3133
|
+
]
|
|
3134
|
+
});
|
|
3135
|
+
const b = process(def.right, ctx, {
|
|
3136
|
+
...params,
|
|
3137
|
+
path: [
|
|
3138
|
+
...params.path,
|
|
3139
|
+
"allOf",
|
|
3140
|
+
1
|
|
3141
|
+
]
|
|
3142
|
+
});
|
|
3143
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
3144
|
+
json.allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
3145
|
+
};
|
|
3146
|
+
const nullableProcessor = (schema, ctx, json, params) => {
|
|
3147
|
+
const def = schema._zod.def;
|
|
3148
|
+
const inner = process(def.innerType, ctx, params);
|
|
3149
|
+
const seen = ctx.seen.get(schema);
|
|
3150
|
+
if (ctx.target === "openapi-3.0") {
|
|
3151
|
+
seen.ref = def.innerType;
|
|
3152
|
+
json.nullable = true;
|
|
3153
|
+
} else json.anyOf = [inner, { type: "null" }];
|
|
3154
|
+
};
|
|
3155
|
+
const nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
3156
|
+
const def = schema._zod.def;
|
|
3157
|
+
process(def.innerType, ctx, params);
|
|
3158
|
+
const seen = ctx.seen.get(schema);
|
|
3159
|
+
seen.ref = def.innerType;
|
|
3160
|
+
};
|
|
3161
|
+
const defaultProcessor = (schema, ctx, json, params) => {
|
|
3162
|
+
const def = schema._zod.def;
|
|
3163
|
+
process(def.innerType, ctx, params);
|
|
3164
|
+
const seen = ctx.seen.get(schema);
|
|
3165
|
+
seen.ref = def.innerType;
|
|
3166
|
+
json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
3167
|
+
};
|
|
3168
|
+
const prefaultProcessor = (schema, ctx, json, params) => {
|
|
3169
|
+
const def = schema._zod.def;
|
|
3170
|
+
process(def.innerType, ctx, params);
|
|
3171
|
+
const seen = ctx.seen.get(schema);
|
|
3172
|
+
seen.ref = def.innerType;
|
|
3173
|
+
if (ctx.io === "input") json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
3174
|
+
};
|
|
3175
|
+
const catchProcessor = (schema, ctx, json, params) => {
|
|
3176
|
+
const def = schema._zod.def;
|
|
3177
|
+
process(def.innerType, ctx, params);
|
|
3178
|
+
const seen = ctx.seen.get(schema);
|
|
3179
|
+
seen.ref = def.innerType;
|
|
3180
|
+
let catchValue;
|
|
3181
|
+
try {
|
|
3182
|
+
catchValue = def.catchValue(void 0);
|
|
3183
|
+
} catch {
|
|
3184
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
3185
|
+
}
|
|
3186
|
+
json.default = catchValue;
|
|
3187
|
+
};
|
|
3188
|
+
const pipeProcessor = (schema, ctx, _json, params) => {
|
|
3189
|
+
const def = schema._zod.def;
|
|
3190
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
3191
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
3192
|
+
process(innerType, ctx, params);
|
|
3193
|
+
const seen = ctx.seen.get(schema);
|
|
3194
|
+
seen.ref = innerType;
|
|
3195
|
+
};
|
|
3196
|
+
const readonlyProcessor = (schema, ctx, json, params) => {
|
|
3197
|
+
const def = schema._zod.def;
|
|
3198
|
+
process(def.innerType, ctx, params);
|
|
3199
|
+
const seen = ctx.seen.get(schema);
|
|
3200
|
+
seen.ref = def.innerType;
|
|
3201
|
+
json.readOnly = true;
|
|
3202
|
+
};
|
|
3203
|
+
const optionalProcessor = (schema, ctx, _json, params) => {
|
|
3204
|
+
const def = schema._zod.def;
|
|
3205
|
+
process(def.innerType, ctx, params);
|
|
3206
|
+
const seen = ctx.seen.get(schema);
|
|
3207
|
+
seen.ref = def.innerType;
|
|
3208
|
+
};
|
|
3209
|
+
//#endregion
|
|
3210
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3211
|
+
const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
3212
|
+
$ZodISODateTime.init(inst, def);
|
|
3213
|
+
ZodStringFormat.init(inst, def);
|
|
3214
|
+
});
|
|
3215
|
+
function datetime(params) {
|
|
3216
|
+
return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
|
|
3217
|
+
}
|
|
3218
|
+
const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => {
|
|
3219
|
+
$ZodISODate.init(inst, def);
|
|
3220
|
+
ZodStringFormat.init(inst, def);
|
|
3221
|
+
});
|
|
3222
|
+
function date(params) {
|
|
3223
|
+
return /* @__PURE__ */ _isoDate(ZodISODate, params);
|
|
3224
|
+
}
|
|
3225
|
+
const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => {
|
|
3226
|
+
$ZodISOTime.init(inst, def);
|
|
3227
|
+
ZodStringFormat.init(inst, def);
|
|
3228
|
+
});
|
|
3229
|
+
function time(params) {
|
|
3230
|
+
return /* @__PURE__ */ _isoTime(ZodISOTime, params);
|
|
3231
|
+
}
|
|
3232
|
+
const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => {
|
|
3233
|
+
$ZodISODuration.init(inst, def);
|
|
3234
|
+
ZodStringFormat.init(inst, def);
|
|
3235
|
+
});
|
|
3236
|
+
function duration(params) {
|
|
3237
|
+
return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
|
|
3238
|
+
}
|
|
3239
|
+
//#endregion
|
|
3240
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
3241
|
+
const initializer = (inst, issues) => {
|
|
3242
|
+
$ZodError.init(inst, issues);
|
|
3243
|
+
inst.name = "ZodError";
|
|
3244
|
+
Object.defineProperties(inst, {
|
|
3245
|
+
format: { value: (mapper) => formatError(inst, mapper) },
|
|
3246
|
+
flatten: { value: (mapper) => flattenError(inst, mapper) },
|
|
3247
|
+
addIssue: { value: (issue) => {
|
|
3248
|
+
inst.issues.push(issue);
|
|
3249
|
+
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
3250
|
+
} },
|
|
3251
|
+
addIssues: { value: (issues) => {
|
|
3252
|
+
inst.issues.push(...issues);
|
|
3253
|
+
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
3254
|
+
} },
|
|
3255
|
+
isEmpty: { get() {
|
|
3256
|
+
return inst.issues.length === 0;
|
|
3257
|
+
} }
|
|
3258
|
+
});
|
|
3259
|
+
};
|
|
3260
|
+
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
|
|
3261
|
+
//#endregion
|
|
3262
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3263
|
+
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
3264
|
+
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
3265
|
+
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
3266
|
+
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
3267
|
+
const encode = /* @__PURE__ */ _encode(ZodRealError);
|
|
3268
|
+
const decode = /* @__PURE__ */ _decode(ZodRealError);
|
|
3269
|
+
const encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
|
|
3270
|
+
const decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
|
|
3271
|
+
const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
3272
|
+
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
3273
|
+
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
3274
|
+
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
3275
|
+
//#endregion
|
|
3276
|
+
//#region ../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
3277
|
+
const _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
3278
|
+
function _installLazyMethods(inst, group, methods) {
|
|
3279
|
+
const proto = Object.getPrototypeOf(inst);
|
|
3280
|
+
let installed = _installedGroups.get(proto);
|
|
3281
|
+
if (!installed) {
|
|
3282
|
+
installed = /* @__PURE__ */ new Set();
|
|
3283
|
+
_installedGroups.set(proto, installed);
|
|
3284
|
+
}
|
|
3285
|
+
if (installed.has(group)) return;
|
|
3286
|
+
installed.add(group);
|
|
3287
|
+
for (const key in methods) {
|
|
3288
|
+
const fn = methods[key];
|
|
3289
|
+
Object.defineProperty(proto, key, {
|
|
3290
|
+
configurable: true,
|
|
3291
|
+
enumerable: false,
|
|
3292
|
+
get() {
|
|
3293
|
+
const bound = fn.bind(this);
|
|
3294
|
+
Object.defineProperty(this, key, {
|
|
3295
|
+
configurable: true,
|
|
3296
|
+
writable: true,
|
|
3297
|
+
enumerable: true,
|
|
3298
|
+
value: bound
|
|
3299
|
+
});
|
|
3300
|
+
return bound;
|
|
3301
|
+
},
|
|
3302
|
+
set(v) {
|
|
3303
|
+
Object.defineProperty(this, key, {
|
|
3304
|
+
configurable: true,
|
|
3305
|
+
writable: true,
|
|
3306
|
+
enumerable: true,
|
|
3307
|
+
value: v
|
|
3308
|
+
});
|
|
3309
|
+
}
|
|
3310
|
+
});
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3313
|
+
const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
3314
|
+
$ZodType.init(inst, def);
|
|
3315
|
+
Object.assign(inst["~standard"], { jsonSchema: {
|
|
3316
|
+
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
3317
|
+
output: createStandardJSONSchemaMethod(inst, "output")
|
|
3318
|
+
} });
|
|
3319
|
+
inst.toJSONSchema = createToJSONSchemaMethod(inst, {});
|
|
3320
|
+
inst.def = def;
|
|
3321
|
+
inst.type = def.type;
|
|
3322
|
+
Object.defineProperty(inst, "_def", { value: def });
|
|
3323
|
+
inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
|
|
3324
|
+
inst.safeParse = (data, params) => safeParse(inst, data, params);
|
|
3325
|
+
inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
3326
|
+
inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
|
|
3327
|
+
inst.spa = inst.safeParseAsync;
|
|
3328
|
+
inst.encode = (data, params) => encode(inst, data, params);
|
|
3329
|
+
inst.decode = (data, params) => decode(inst, data, params);
|
|
3330
|
+
inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
|
|
3331
|
+
inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
|
|
3332
|
+
inst.safeEncode = (data, params) => safeEncode(inst, data, params);
|
|
3333
|
+
inst.safeDecode = (data, params) => safeDecode(inst, data, params);
|
|
3334
|
+
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
|
|
3335
|
+
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
|
|
3336
|
+
_installLazyMethods(inst, "ZodType", {
|
|
3337
|
+
check(...chks) {
|
|
3338
|
+
const def = this.def;
|
|
3339
|
+
return this.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...chks.map((ch) => typeof ch === "function" ? { _zod: {
|
|
3340
|
+
check: ch,
|
|
3341
|
+
def: { check: "custom" },
|
|
3342
|
+
onattach: []
|
|
3343
|
+
} } : ch)] }), { parent: true });
|
|
3344
|
+
},
|
|
3345
|
+
with(...chks) {
|
|
3346
|
+
return this.check(...chks);
|
|
3347
|
+
},
|
|
3348
|
+
clone(def, params) {
|
|
3349
|
+
return clone(this, def, params);
|
|
3350
|
+
},
|
|
3351
|
+
brand() {
|
|
3352
|
+
return this;
|
|
3353
|
+
},
|
|
3354
|
+
register(reg, meta) {
|
|
3355
|
+
reg.add(this, meta);
|
|
3356
|
+
return this;
|
|
3357
|
+
},
|
|
3358
|
+
refine(check, params) {
|
|
3359
|
+
return this.check(refine(check, params));
|
|
3360
|
+
},
|
|
3361
|
+
superRefine(refinement, params) {
|
|
3362
|
+
return this.check(superRefine(refinement, params));
|
|
3363
|
+
},
|
|
3364
|
+
overwrite(fn) {
|
|
3365
|
+
return this.check(/* @__PURE__ */ _overwrite(fn));
|
|
3366
|
+
},
|
|
3367
|
+
optional() {
|
|
3368
|
+
return optional(this);
|
|
3369
|
+
},
|
|
3370
|
+
exactOptional() {
|
|
3371
|
+
return exactOptional(this);
|
|
3372
|
+
},
|
|
3373
|
+
nullable() {
|
|
3374
|
+
return nullable(this);
|
|
3375
|
+
},
|
|
3376
|
+
nullish() {
|
|
3377
|
+
return optional(nullable(this));
|
|
3378
|
+
},
|
|
3379
|
+
nonoptional(params) {
|
|
3380
|
+
return nonoptional(this, params);
|
|
3381
|
+
},
|
|
3382
|
+
array() {
|
|
3383
|
+
return array(this);
|
|
3384
|
+
},
|
|
3385
|
+
or(arg) {
|
|
3386
|
+
return union([this, arg]);
|
|
3387
|
+
},
|
|
3388
|
+
and(arg) {
|
|
3389
|
+
return intersection(this, arg);
|
|
3390
|
+
},
|
|
3391
|
+
transform(tx) {
|
|
3392
|
+
return pipe(this, transform(tx));
|
|
3393
|
+
},
|
|
3394
|
+
default(d) {
|
|
3395
|
+
return _default(this, d);
|
|
3396
|
+
},
|
|
3397
|
+
prefault(d) {
|
|
3398
|
+
return prefault(this, d);
|
|
3399
|
+
},
|
|
3400
|
+
catch(params) {
|
|
3401
|
+
return _catch(this, params);
|
|
3402
|
+
},
|
|
3403
|
+
pipe(target) {
|
|
3404
|
+
return pipe(this, target);
|
|
3405
|
+
},
|
|
3406
|
+
readonly() {
|
|
3407
|
+
return readonly(this);
|
|
3408
|
+
},
|
|
3409
|
+
describe(description) {
|
|
3410
|
+
const cl = this.clone();
|
|
3411
|
+
globalRegistry.add(cl, { description });
|
|
3412
|
+
return cl;
|
|
3413
|
+
},
|
|
3414
|
+
meta(...args) {
|
|
3415
|
+
if (args.length === 0) return globalRegistry.get(this);
|
|
3416
|
+
const cl = this.clone();
|
|
3417
|
+
globalRegistry.add(cl, args[0]);
|
|
3418
|
+
return cl;
|
|
3419
|
+
},
|
|
3420
|
+
isOptional() {
|
|
3421
|
+
return this.safeParse(void 0).success;
|
|
3422
|
+
},
|
|
3423
|
+
isNullable() {
|
|
3424
|
+
return this.safeParse(null).success;
|
|
3425
|
+
},
|
|
3426
|
+
apply(fn) {
|
|
3427
|
+
return fn(this);
|
|
3428
|
+
}
|
|
3429
|
+
});
|
|
3430
|
+
Object.defineProperty(inst, "description", {
|
|
3431
|
+
get() {
|
|
3432
|
+
return globalRegistry.get(inst)?.description;
|
|
3433
|
+
},
|
|
3434
|
+
configurable: true
|
|
3435
|
+
});
|
|
3436
|
+
return inst;
|
|
3437
|
+
});
|
|
3438
|
+
/** @internal */
|
|
3439
|
+
const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
|
|
3440
|
+
$ZodString.init(inst, def);
|
|
3441
|
+
ZodType.init(inst, def);
|
|
3442
|
+
inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
|
|
3443
|
+
const bag = inst._zod.bag;
|
|
3444
|
+
inst.format = bag.format ?? null;
|
|
3445
|
+
inst.minLength = bag.minimum ?? null;
|
|
3446
|
+
inst.maxLength = bag.maximum ?? null;
|
|
3447
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
3448
|
+
regex(...args) {
|
|
3449
|
+
return this.check(/* @__PURE__ */ _regex(...args));
|
|
3450
|
+
},
|
|
3451
|
+
includes(...args) {
|
|
3452
|
+
return this.check(/* @__PURE__ */ _includes(...args));
|
|
3453
|
+
},
|
|
3454
|
+
startsWith(...args) {
|
|
3455
|
+
return this.check(/* @__PURE__ */ _startsWith(...args));
|
|
3456
|
+
},
|
|
3457
|
+
endsWith(...args) {
|
|
3458
|
+
return this.check(/* @__PURE__ */ _endsWith(...args));
|
|
3459
|
+
},
|
|
3460
|
+
min(...args) {
|
|
3461
|
+
return this.check(/* @__PURE__ */ _minLength(...args));
|
|
3462
|
+
},
|
|
3463
|
+
max(...args) {
|
|
3464
|
+
return this.check(/* @__PURE__ */ _maxLength(...args));
|
|
3465
|
+
},
|
|
3466
|
+
length(...args) {
|
|
3467
|
+
return this.check(/* @__PURE__ */ _length(...args));
|
|
3468
|
+
},
|
|
3469
|
+
nonempty(...args) {
|
|
3470
|
+
return this.check(/* @__PURE__ */ _minLength(1, ...args));
|
|
3471
|
+
},
|
|
3472
|
+
lowercase(params) {
|
|
3473
|
+
return this.check(/* @__PURE__ */ _lowercase(params));
|
|
3474
|
+
},
|
|
3475
|
+
uppercase(params) {
|
|
3476
|
+
return this.check(/* @__PURE__ */ _uppercase(params));
|
|
3477
|
+
},
|
|
3478
|
+
trim() {
|
|
3479
|
+
return this.check(/* @__PURE__ */ _trim());
|
|
3480
|
+
},
|
|
3481
|
+
normalize(...args) {
|
|
3482
|
+
return this.check(/* @__PURE__ */ _normalize(...args));
|
|
3483
|
+
},
|
|
3484
|
+
toLowerCase() {
|
|
3485
|
+
return this.check(/* @__PURE__ */ _toLowerCase());
|
|
3486
|
+
},
|
|
3487
|
+
toUpperCase() {
|
|
3488
|
+
return this.check(/* @__PURE__ */ _toUpperCase());
|
|
3489
|
+
},
|
|
3490
|
+
slugify() {
|
|
3491
|
+
return this.check(/* @__PURE__ */ _slugify());
|
|
3492
|
+
}
|
|
3493
|
+
});
|
|
3494
|
+
});
|
|
3495
|
+
const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
|
|
3496
|
+
$ZodString.init(inst, def);
|
|
3497
|
+
_ZodString.init(inst, def);
|
|
3498
|
+
inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
|
|
3499
|
+
inst.url = (params) => inst.check(/* @__PURE__ */ _url(ZodURL, params));
|
|
3500
|
+
inst.jwt = (params) => inst.check(/* @__PURE__ */ _jwt(ZodJWT, params));
|
|
3501
|
+
inst.emoji = (params) => inst.check(/* @__PURE__ */ _emoji(ZodEmoji, params));
|
|
3502
|
+
inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
|
|
3503
|
+
inst.uuid = (params) => inst.check(/* @__PURE__ */ _uuid(ZodUUID, params));
|
|
3504
|
+
inst.uuidv4 = (params) => inst.check(/* @__PURE__ */ _uuidv4(ZodUUID, params));
|
|
3505
|
+
inst.uuidv6 = (params) => inst.check(/* @__PURE__ */ _uuidv6(ZodUUID, params));
|
|
3506
|
+
inst.uuidv7 = (params) => inst.check(/* @__PURE__ */ _uuidv7(ZodUUID, params));
|
|
3507
|
+
inst.nanoid = (params) => inst.check(/* @__PURE__ */ _nanoid(ZodNanoID, params));
|
|
3508
|
+
inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
|
|
3509
|
+
inst.cuid = (params) => inst.check(/* @__PURE__ */ _cuid(ZodCUID, params));
|
|
3510
|
+
inst.cuid2 = (params) => inst.check(/* @__PURE__ */ _cuid2(ZodCUID2, params));
|
|
3511
|
+
inst.ulid = (params) => inst.check(/* @__PURE__ */ _ulid(ZodULID, params));
|
|
3512
|
+
inst.base64 = (params) => inst.check(/* @__PURE__ */ _base64(ZodBase64, params));
|
|
3513
|
+
inst.base64url = (params) => inst.check(/* @__PURE__ */ _base64url(ZodBase64URL, params));
|
|
3514
|
+
inst.xid = (params) => inst.check(/* @__PURE__ */ _xid(ZodXID, params));
|
|
3515
|
+
inst.ksuid = (params) => inst.check(/* @__PURE__ */ _ksuid(ZodKSUID, params));
|
|
3516
|
+
inst.ipv4 = (params) => inst.check(/* @__PURE__ */ _ipv4(ZodIPv4, params));
|
|
3517
|
+
inst.ipv6 = (params) => inst.check(/* @__PURE__ */ _ipv6(ZodIPv6, params));
|
|
3518
|
+
inst.cidrv4 = (params) => inst.check(/* @__PURE__ */ _cidrv4(ZodCIDRv4, params));
|
|
3519
|
+
inst.cidrv6 = (params) => inst.check(/* @__PURE__ */ _cidrv6(ZodCIDRv6, params));
|
|
3520
|
+
inst.e164 = (params) => inst.check(/* @__PURE__ */ _e164(ZodE164, params));
|
|
3521
|
+
inst.datetime = (params) => inst.check(datetime(params));
|
|
3522
|
+
inst.date = (params) => inst.check(date(params));
|
|
3523
|
+
inst.time = (params) => inst.check(time(params));
|
|
3524
|
+
inst.duration = (params) => inst.check(duration(params));
|
|
3525
|
+
});
|
|
3526
|
+
function string(params) {
|
|
3527
|
+
return /* @__PURE__ */ _string(ZodString, params);
|
|
3528
|
+
}
|
|
3529
|
+
const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
|
|
3530
|
+
$ZodStringFormat.init(inst, def);
|
|
3531
|
+
_ZodString.init(inst, def);
|
|
3532
|
+
});
|
|
3533
|
+
const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
|
|
3534
|
+
$ZodEmail.init(inst, def);
|
|
3535
|
+
ZodStringFormat.init(inst, def);
|
|
3536
|
+
});
|
|
3537
|
+
const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
|
|
3538
|
+
$ZodGUID.init(inst, def);
|
|
3539
|
+
ZodStringFormat.init(inst, def);
|
|
3540
|
+
});
|
|
3541
|
+
const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
|
|
3542
|
+
$ZodUUID.init(inst, def);
|
|
3543
|
+
ZodStringFormat.init(inst, def);
|
|
3544
|
+
});
|
|
3545
|
+
const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
|
|
3546
|
+
$ZodURL.init(inst, def);
|
|
3547
|
+
ZodStringFormat.init(inst, def);
|
|
3548
|
+
});
|
|
3549
|
+
const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
|
|
3550
|
+
$ZodEmoji.init(inst, def);
|
|
3551
|
+
ZodStringFormat.init(inst, def);
|
|
3552
|
+
});
|
|
3553
|
+
const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
|
|
3554
|
+
$ZodNanoID.init(inst, def);
|
|
3555
|
+
ZodStringFormat.init(inst, def);
|
|
3556
|
+
});
|
|
3557
|
+
/**
|
|
3558
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
3559
|
+
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
3560
|
+
* See https://github.com/paralleldrive/cuid.
|
|
3561
|
+
*/
|
|
3562
|
+
const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
|
|
3563
|
+
$ZodCUID.init(inst, def);
|
|
3564
|
+
ZodStringFormat.init(inst, def);
|
|
3565
|
+
});
|
|
3566
|
+
const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
|
|
3567
|
+
$ZodCUID2.init(inst, def);
|
|
3568
|
+
ZodStringFormat.init(inst, def);
|
|
3569
|
+
});
|
|
3570
|
+
const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
|
|
3571
|
+
$ZodULID.init(inst, def);
|
|
3572
|
+
ZodStringFormat.init(inst, def);
|
|
3573
|
+
});
|
|
3574
|
+
const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
|
|
3575
|
+
$ZodXID.init(inst, def);
|
|
3576
|
+
ZodStringFormat.init(inst, def);
|
|
3577
|
+
});
|
|
3578
|
+
const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
|
|
3579
|
+
$ZodKSUID.init(inst, def);
|
|
3580
|
+
ZodStringFormat.init(inst, def);
|
|
3581
|
+
});
|
|
3582
|
+
const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
|
|
3583
|
+
$ZodIPv4.init(inst, def);
|
|
3584
|
+
ZodStringFormat.init(inst, def);
|
|
3585
|
+
});
|
|
3586
|
+
const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
|
|
3587
|
+
$ZodIPv6.init(inst, def);
|
|
3588
|
+
ZodStringFormat.init(inst, def);
|
|
3589
|
+
});
|
|
3590
|
+
const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
|
|
3591
|
+
$ZodCIDRv4.init(inst, def);
|
|
3592
|
+
ZodStringFormat.init(inst, def);
|
|
3593
|
+
});
|
|
3594
|
+
const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
|
|
3595
|
+
$ZodCIDRv6.init(inst, def);
|
|
3596
|
+
ZodStringFormat.init(inst, def);
|
|
3597
|
+
});
|
|
3598
|
+
const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
|
|
3599
|
+
$ZodBase64.init(inst, def);
|
|
3600
|
+
ZodStringFormat.init(inst, def);
|
|
3601
|
+
});
|
|
3602
|
+
const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
|
|
3603
|
+
$ZodBase64URL.init(inst, def);
|
|
3604
|
+
ZodStringFormat.init(inst, def);
|
|
3605
|
+
});
|
|
3606
|
+
const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
|
|
3607
|
+
$ZodE164.init(inst, def);
|
|
3608
|
+
ZodStringFormat.init(inst, def);
|
|
3609
|
+
});
|
|
3610
|
+
const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
|
|
3611
|
+
$ZodJWT.init(inst, def);
|
|
3612
|
+
ZodStringFormat.init(inst, def);
|
|
3613
|
+
});
|
|
3614
|
+
const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
|
|
3615
|
+
$ZodNumber.init(inst, def);
|
|
3616
|
+
ZodType.init(inst, def);
|
|
3617
|
+
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
3618
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
3619
|
+
gt(value, params) {
|
|
3620
|
+
return this.check(/* @__PURE__ */ _gt(value, params));
|
|
3621
|
+
},
|
|
3622
|
+
gte(value, params) {
|
|
3623
|
+
return this.check(/* @__PURE__ */ _gte(value, params));
|
|
3624
|
+
},
|
|
3625
|
+
min(value, params) {
|
|
3626
|
+
return this.check(/* @__PURE__ */ _gte(value, params));
|
|
3627
|
+
},
|
|
3628
|
+
lt(value, params) {
|
|
3629
|
+
return this.check(/* @__PURE__ */ _lt(value, params));
|
|
3630
|
+
},
|
|
3631
|
+
lte(value, params) {
|
|
3632
|
+
return this.check(/* @__PURE__ */ _lte(value, params));
|
|
3633
|
+
},
|
|
3634
|
+
max(value, params) {
|
|
3635
|
+
return this.check(/* @__PURE__ */ _lte(value, params));
|
|
3636
|
+
},
|
|
3637
|
+
int(params) {
|
|
3638
|
+
return this.check(int(params));
|
|
3639
|
+
},
|
|
3640
|
+
safe(params) {
|
|
3641
|
+
return this.check(int(params));
|
|
3642
|
+
},
|
|
3643
|
+
positive(params) {
|
|
3644
|
+
return this.check(/* @__PURE__ */ _gt(0, params));
|
|
3645
|
+
},
|
|
3646
|
+
nonnegative(params) {
|
|
3647
|
+
return this.check(/* @__PURE__ */ _gte(0, params));
|
|
3648
|
+
},
|
|
3649
|
+
negative(params) {
|
|
3650
|
+
return this.check(/* @__PURE__ */ _lt(0, params));
|
|
3651
|
+
},
|
|
3652
|
+
nonpositive(params) {
|
|
3653
|
+
return this.check(/* @__PURE__ */ _lte(0, params));
|
|
3654
|
+
},
|
|
3655
|
+
multipleOf(value, params) {
|
|
3656
|
+
return this.check(/* @__PURE__ */ _multipleOf(value, params));
|
|
3657
|
+
},
|
|
3658
|
+
step(value, params) {
|
|
3659
|
+
return this.check(/* @__PURE__ */ _multipleOf(value, params));
|
|
3660
|
+
},
|
|
3661
|
+
finite() {
|
|
3662
|
+
return this;
|
|
3663
|
+
}
|
|
3664
|
+
});
|
|
3665
|
+
const bag = inst._zod.bag;
|
|
3666
|
+
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
3667
|
+
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
3668
|
+
inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? .5);
|
|
3669
|
+
inst.isFinite = true;
|
|
3670
|
+
inst.format = bag.format ?? null;
|
|
3671
|
+
});
|
|
3672
|
+
function number(params) {
|
|
3673
|
+
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
3674
|
+
}
|
|
3675
|
+
const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
|
|
3676
|
+
$ZodNumberFormat.init(inst, def);
|
|
3677
|
+
ZodNumber.init(inst, def);
|
|
3678
|
+
});
|
|
3679
|
+
function int(params) {
|
|
3680
|
+
return /* @__PURE__ */ _int(ZodNumberFormat, params);
|
|
3681
|
+
}
|
|
3682
|
+
const ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
|
|
3683
|
+
$ZodBoolean.init(inst, def);
|
|
3684
|
+
ZodType.init(inst, def);
|
|
3685
|
+
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
|
|
3686
|
+
});
|
|
3687
|
+
function boolean(params) {
|
|
3688
|
+
return /* @__PURE__ */ _boolean(ZodBoolean, params);
|
|
3689
|
+
}
|
|
3690
|
+
const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
|
|
3691
|
+
$ZodUnknown.init(inst, def);
|
|
3692
|
+
ZodType.init(inst, def);
|
|
3693
|
+
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
3694
|
+
});
|
|
3695
|
+
function unknown() {
|
|
3696
|
+
return /* @__PURE__ */ _unknown(ZodUnknown);
|
|
3697
|
+
}
|
|
3698
|
+
const ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
|
|
3699
|
+
$ZodNever.init(inst, def);
|
|
3700
|
+
ZodType.init(inst, def);
|
|
3701
|
+
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
3702
|
+
});
|
|
3703
|
+
function never(params) {
|
|
3704
|
+
return /* @__PURE__ */ _never(ZodNever, params);
|
|
3705
|
+
}
|
|
3706
|
+
const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
|
|
3707
|
+
$ZodArray.init(inst, def);
|
|
3708
|
+
ZodType.init(inst, def);
|
|
3709
|
+
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
3710
|
+
inst.element = def.element;
|
|
3711
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
3712
|
+
min(n, params) {
|
|
3713
|
+
return this.check(/* @__PURE__ */ _minLength(n, params));
|
|
3714
|
+
},
|
|
3715
|
+
nonempty(params) {
|
|
3716
|
+
return this.check(/* @__PURE__ */ _minLength(1, params));
|
|
3717
|
+
},
|
|
3718
|
+
max(n, params) {
|
|
3719
|
+
return this.check(/* @__PURE__ */ _maxLength(n, params));
|
|
3720
|
+
},
|
|
3721
|
+
length(n, params) {
|
|
3722
|
+
return this.check(/* @__PURE__ */ _length(n, params));
|
|
3723
|
+
},
|
|
3724
|
+
unwrap() {
|
|
3725
|
+
return this.element;
|
|
3726
|
+
}
|
|
3727
|
+
});
|
|
3728
|
+
});
|
|
3729
|
+
function array(element, params) {
|
|
3730
|
+
return /* @__PURE__ */ _array(ZodArray, element, params);
|
|
3731
|
+
}
|
|
3732
|
+
const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
3733
|
+
$ZodObjectJIT.init(inst, def);
|
|
3734
|
+
ZodType.init(inst, def);
|
|
3735
|
+
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
3736
|
+
defineLazy(inst, "shape", () => {
|
|
3737
|
+
return def.shape;
|
|
3738
|
+
});
|
|
3739
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
3740
|
+
keyof() {
|
|
3741
|
+
return _enum(Object.keys(this._zod.def.shape));
|
|
3742
|
+
},
|
|
3743
|
+
catchall(catchall) {
|
|
3744
|
+
return this.clone({
|
|
3745
|
+
...this._zod.def,
|
|
3746
|
+
catchall
|
|
3747
|
+
});
|
|
3748
|
+
},
|
|
3749
|
+
passthrough() {
|
|
3750
|
+
return this.clone({
|
|
3751
|
+
...this._zod.def,
|
|
3752
|
+
catchall: unknown()
|
|
3753
|
+
});
|
|
3754
|
+
},
|
|
3755
|
+
loose() {
|
|
3756
|
+
return this.clone({
|
|
3757
|
+
...this._zod.def,
|
|
3758
|
+
catchall: unknown()
|
|
3759
|
+
});
|
|
3760
|
+
},
|
|
3761
|
+
strict() {
|
|
3762
|
+
return this.clone({
|
|
3763
|
+
...this._zod.def,
|
|
3764
|
+
catchall: never()
|
|
3765
|
+
});
|
|
3766
|
+
},
|
|
3767
|
+
strip() {
|
|
3768
|
+
return this.clone({
|
|
3769
|
+
...this._zod.def,
|
|
3770
|
+
catchall: void 0
|
|
3771
|
+
});
|
|
3772
|
+
},
|
|
3773
|
+
extend(incoming) {
|
|
3774
|
+
return extend(this, incoming);
|
|
3775
|
+
},
|
|
3776
|
+
safeExtend(incoming) {
|
|
3777
|
+
return safeExtend(this, incoming);
|
|
3778
|
+
},
|
|
3779
|
+
merge(other) {
|
|
3780
|
+
return merge(this, other);
|
|
3781
|
+
},
|
|
3782
|
+
pick(mask) {
|
|
3783
|
+
return pick(this, mask);
|
|
3784
|
+
},
|
|
3785
|
+
omit(mask) {
|
|
3786
|
+
return omit(this, mask);
|
|
3787
|
+
},
|
|
3788
|
+
partial(...args) {
|
|
3789
|
+
return partial(ZodOptional, this, args[0]);
|
|
3790
|
+
},
|
|
3791
|
+
required(...args) {
|
|
3792
|
+
return required(ZodNonOptional, this, args[0]);
|
|
3793
|
+
}
|
|
3794
|
+
});
|
|
3795
|
+
});
|
|
3796
|
+
function object(shape, params) {
|
|
3797
|
+
return new ZodObject({
|
|
3798
|
+
type: "object",
|
|
3799
|
+
shape: shape ?? {},
|
|
3800
|
+
...normalizeParams(params)
|
|
3801
|
+
});
|
|
3802
|
+
}
|
|
3803
|
+
const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
|
|
3804
|
+
$ZodUnion.init(inst, def);
|
|
3805
|
+
ZodType.init(inst, def);
|
|
3806
|
+
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
3807
|
+
inst.options = def.options;
|
|
3808
|
+
});
|
|
3809
|
+
function union(options, params) {
|
|
3810
|
+
return new ZodUnion({
|
|
3811
|
+
type: "union",
|
|
3812
|
+
options,
|
|
3813
|
+
...normalizeParams(params)
|
|
3814
|
+
});
|
|
3815
|
+
}
|
|
3816
|
+
const ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
|
|
3817
|
+
$ZodIntersection.init(inst, def);
|
|
3818
|
+
ZodType.init(inst, def);
|
|
3819
|
+
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
3820
|
+
});
|
|
3821
|
+
function intersection(left, right) {
|
|
3822
|
+
return new ZodIntersection({
|
|
3823
|
+
type: "intersection",
|
|
3824
|
+
left,
|
|
3825
|
+
right
|
|
3826
|
+
});
|
|
3827
|
+
}
|
|
3828
|
+
const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
|
|
3829
|
+
$ZodEnum.init(inst, def);
|
|
3830
|
+
ZodType.init(inst, def);
|
|
3831
|
+
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
|
|
3832
|
+
inst.enum = def.entries;
|
|
3833
|
+
inst.options = Object.values(def.entries);
|
|
3834
|
+
const keys = new Set(Object.keys(def.entries));
|
|
3835
|
+
inst.extract = (values, params) => {
|
|
3836
|
+
const newEntries = {};
|
|
3837
|
+
for (const value of values) if (keys.has(value)) newEntries[value] = def.entries[value];
|
|
3838
|
+
else throw new Error(`Key ${value} not found in enum`);
|
|
3839
|
+
return new ZodEnum({
|
|
3840
|
+
...def,
|
|
3841
|
+
checks: [],
|
|
3842
|
+
...normalizeParams(params),
|
|
3843
|
+
entries: newEntries
|
|
3844
|
+
});
|
|
3845
|
+
};
|
|
3846
|
+
inst.exclude = (values, params) => {
|
|
3847
|
+
const newEntries = { ...def.entries };
|
|
3848
|
+
for (const value of values) if (keys.has(value)) delete newEntries[value];
|
|
3849
|
+
else throw new Error(`Key ${value} not found in enum`);
|
|
3850
|
+
return new ZodEnum({
|
|
3851
|
+
...def,
|
|
3852
|
+
checks: [],
|
|
3853
|
+
...normalizeParams(params),
|
|
3854
|
+
entries: newEntries
|
|
3855
|
+
});
|
|
3856
|
+
};
|
|
3857
|
+
});
|
|
3858
|
+
function _enum(values, params) {
|
|
3859
|
+
return new ZodEnum({
|
|
3860
|
+
type: "enum",
|
|
3861
|
+
entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values,
|
|
3862
|
+
...normalizeParams(params)
|
|
3863
|
+
});
|
|
3864
|
+
}
|
|
3865
|
+
const ZodLiteral = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => {
|
|
3866
|
+
$ZodLiteral.init(inst, def);
|
|
3867
|
+
ZodType.init(inst, def);
|
|
3868
|
+
inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params);
|
|
3869
|
+
inst.values = new Set(def.values);
|
|
3870
|
+
Object.defineProperty(inst, "value", { get() {
|
|
3871
|
+
if (def.values.length > 1) throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
3872
|
+
return def.values[0];
|
|
3873
|
+
} });
|
|
3874
|
+
});
|
|
3875
|
+
function literal(value, params) {
|
|
3876
|
+
return new ZodLiteral({
|
|
3877
|
+
type: "literal",
|
|
3878
|
+
values: Array.isArray(value) ? value : [value],
|
|
3879
|
+
...normalizeParams(params)
|
|
3880
|
+
});
|
|
3881
|
+
}
|
|
3882
|
+
const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
|
|
3883
|
+
$ZodTransform.init(inst, def);
|
|
3884
|
+
ZodType.init(inst, def);
|
|
3885
|
+
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
|
|
3886
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
3887
|
+
if (_ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
|
|
3888
|
+
payload.addIssue = (issue$1) => {
|
|
3889
|
+
if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, def));
|
|
3890
|
+
else {
|
|
3891
|
+
const _issue = issue$1;
|
|
3892
|
+
if (_issue.fatal) _issue.continue = false;
|
|
3893
|
+
_issue.code ?? (_issue.code = "custom");
|
|
3894
|
+
_issue.input ?? (_issue.input = payload.value);
|
|
3895
|
+
_issue.inst ?? (_issue.inst = inst);
|
|
3896
|
+
payload.issues.push(issue(_issue));
|
|
3897
|
+
}
|
|
3898
|
+
};
|
|
3899
|
+
const output = def.transform(payload.value, payload);
|
|
3900
|
+
if (output instanceof Promise) return output.then((output) => {
|
|
3901
|
+
payload.value = output;
|
|
3902
|
+
payload.fallback = true;
|
|
3903
|
+
return payload;
|
|
3904
|
+
});
|
|
3905
|
+
payload.value = output;
|
|
3906
|
+
payload.fallback = true;
|
|
3907
|
+
return payload;
|
|
3908
|
+
};
|
|
3909
|
+
});
|
|
3910
|
+
function transform(fn) {
|
|
3911
|
+
return new ZodTransform({
|
|
3912
|
+
type: "transform",
|
|
3913
|
+
transform: fn
|
|
3914
|
+
});
|
|
3915
|
+
}
|
|
3916
|
+
const ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
|
|
3917
|
+
$ZodOptional.init(inst, def);
|
|
3918
|
+
ZodType.init(inst, def);
|
|
3919
|
+
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
3920
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
3921
|
+
});
|
|
3922
|
+
function optional(innerType) {
|
|
3923
|
+
return new ZodOptional({
|
|
3924
|
+
type: "optional",
|
|
3925
|
+
innerType
|
|
3926
|
+
});
|
|
3927
|
+
}
|
|
3928
|
+
const ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
|
|
3929
|
+
$ZodExactOptional.init(inst, def);
|
|
3930
|
+
ZodType.init(inst, def);
|
|
3931
|
+
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
3932
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
3933
|
+
});
|
|
3934
|
+
function exactOptional(innerType) {
|
|
3935
|
+
return new ZodExactOptional({
|
|
3936
|
+
type: "optional",
|
|
3937
|
+
innerType
|
|
3938
|
+
});
|
|
3939
|
+
}
|
|
3940
|
+
const ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
|
|
3941
|
+
$ZodNullable.init(inst, def);
|
|
3942
|
+
ZodType.init(inst, def);
|
|
3943
|
+
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
3944
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
3945
|
+
});
|
|
3946
|
+
function nullable(innerType) {
|
|
3947
|
+
return new ZodNullable({
|
|
3948
|
+
type: "nullable",
|
|
3949
|
+
innerType
|
|
3950
|
+
});
|
|
3951
|
+
}
|
|
3952
|
+
const ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
|
|
3953
|
+
$ZodDefault.init(inst, def);
|
|
3954
|
+
ZodType.init(inst, def);
|
|
3955
|
+
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
3956
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
3957
|
+
inst.removeDefault = inst.unwrap;
|
|
3958
|
+
});
|
|
3959
|
+
function _default(innerType, defaultValue) {
|
|
3960
|
+
return new ZodDefault({
|
|
3961
|
+
type: "default",
|
|
3962
|
+
innerType,
|
|
3963
|
+
get defaultValue() {
|
|
3964
|
+
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
3965
|
+
}
|
|
3966
|
+
});
|
|
3967
|
+
}
|
|
3968
|
+
const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
|
|
3969
|
+
$ZodPrefault.init(inst, def);
|
|
3970
|
+
ZodType.init(inst, def);
|
|
3971
|
+
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
3972
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
3973
|
+
});
|
|
3974
|
+
function prefault(innerType, defaultValue) {
|
|
3975
|
+
return new ZodPrefault({
|
|
3976
|
+
type: "prefault",
|
|
3977
|
+
innerType,
|
|
3978
|
+
get defaultValue() {
|
|
3979
|
+
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
3980
|
+
}
|
|
3981
|
+
});
|
|
3982
|
+
}
|
|
3983
|
+
const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
|
|
3984
|
+
$ZodNonOptional.init(inst, def);
|
|
3985
|
+
ZodType.init(inst, def);
|
|
3986
|
+
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
3987
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
3988
|
+
});
|
|
3989
|
+
function nonoptional(innerType, params) {
|
|
3990
|
+
return new ZodNonOptional({
|
|
3991
|
+
type: "nonoptional",
|
|
3992
|
+
innerType,
|
|
3993
|
+
...normalizeParams(params)
|
|
3994
|
+
});
|
|
3995
|
+
}
|
|
3996
|
+
const ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
|
|
3997
|
+
$ZodCatch.init(inst, def);
|
|
3998
|
+
ZodType.init(inst, def);
|
|
3999
|
+
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
4000
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
4001
|
+
inst.removeCatch = inst.unwrap;
|
|
4002
|
+
});
|
|
4003
|
+
function _catch(innerType, catchValue) {
|
|
4004
|
+
return new ZodCatch({
|
|
4005
|
+
type: "catch",
|
|
4006
|
+
innerType,
|
|
4007
|
+
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
4008
|
+
});
|
|
4009
|
+
}
|
|
4010
|
+
const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
|
|
4011
|
+
$ZodPipe.init(inst, def);
|
|
4012
|
+
ZodType.init(inst, def);
|
|
4013
|
+
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
4014
|
+
inst.in = def.in;
|
|
4015
|
+
inst.out = def.out;
|
|
4016
|
+
});
|
|
4017
|
+
function pipe(in_, out) {
|
|
4018
|
+
return new ZodPipe({
|
|
4019
|
+
type: "pipe",
|
|
4020
|
+
in: in_,
|
|
4021
|
+
out
|
|
4022
|
+
});
|
|
4023
|
+
}
|
|
4024
|
+
const ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
4025
|
+
$ZodReadonly.init(inst, def);
|
|
4026
|
+
ZodType.init(inst, def);
|
|
4027
|
+
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
4028
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
4029
|
+
});
|
|
4030
|
+
function readonly(innerType) {
|
|
4031
|
+
return new ZodReadonly({
|
|
4032
|
+
type: "readonly",
|
|
4033
|
+
innerType
|
|
4034
|
+
});
|
|
4035
|
+
}
|
|
4036
|
+
const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
|
|
4037
|
+
$ZodCustom.init(inst, def);
|
|
4038
|
+
ZodType.init(inst, def);
|
|
4039
|
+
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
4040
|
+
});
|
|
4041
|
+
function refine(fn, _params = {}) {
|
|
4042
|
+
return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
|
|
4043
|
+
}
|
|
4044
|
+
function superRefine(fn, params) {
|
|
4045
|
+
return /* @__PURE__ */ _superRefine(fn, params);
|
|
4046
|
+
}
|
|
4047
|
+
//#endregion
|
|
4048
|
+
//#region ../agent-team/lib/typert.remote-client.js
|
|
4049
|
+
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value;
|
|
4050
|
+
const _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_parameter_0$schema = () => _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value ??= intersection(string(), unknown());
|
|
4051
|
+
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_parameter_1$schema$value;
|
|
4052
|
+
const _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_parameter_1$schema = () => _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_parameter_1$schema$value ??= object({
|
|
4053
|
+
"subject": string().readonly(),
|
|
4054
|
+
"description": string().readonly(),
|
|
4055
|
+
"blockedBy": array(intersection(string(), unknown())).readonly().optional(),
|
|
4056
|
+
"writeScopes": array(string()).readonly().optional()
|
|
4057
|
+
});
|
|
4058
|
+
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_result$schema$value;
|
|
4059
|
+
const _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_result$schema = () => _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_result$schema$value ??= union([object({
|
|
4060
|
+
"ok": literal(true).readonly(),
|
|
4061
|
+
"value": object({
|
|
4062
|
+
"id": intersection(string(), unknown()).readonly(),
|
|
4063
|
+
"revision": number().readonly(),
|
|
4064
|
+
"subject": string().readonly(),
|
|
4065
|
+
"description": string().readonly(),
|
|
4066
|
+
"status": union([
|
|
4067
|
+
literal("pending"),
|
|
4068
|
+
literal("in_progress"),
|
|
4069
|
+
literal("completed"),
|
|
4070
|
+
literal("deleted")
|
|
4071
|
+
]).readonly(),
|
|
4072
|
+
"blockedBy": array(intersection(string(), unknown())).readonly(),
|
|
4073
|
+
"writeScopes": array(string()).readonly(),
|
|
4074
|
+
"ownerName": string().readonly().optional(),
|
|
4075
|
+
"ready": boolean().readonly(),
|
|
4076
|
+
"writeScopeWarnings": array(string()).readonly()
|
|
4077
|
+
}).readonly()
|
|
4078
|
+
}), object({
|
|
4079
|
+
"ok": literal(false).readonly(),
|
|
4080
|
+
"error": object({
|
|
4081
|
+
"code": union([literal("team-task-conflict"), literal("team-rejected")]).readonly(),
|
|
4082
|
+
"message": string().readonly()
|
|
4083
|
+
}).readonly()
|
|
4084
|
+
})]);
|
|
4085
|
+
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value;
|
|
4086
|
+
const _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_parameter_0$schema = () => _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value ??= intersection(string(), unknown());
|
|
4087
|
+
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_parameter_1$schema$value;
|
|
4088
|
+
const _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_parameter_1$schema = () => _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_parameter_1$schema$value ??= object({
|
|
4089
|
+
"taskId": intersection(string(), unknown()).readonly(),
|
|
4090
|
+
"expectedRevision": number().readonly(),
|
|
4091
|
+
"action": union([
|
|
4092
|
+
literal("complete"),
|
|
4093
|
+
literal("edit"),
|
|
4094
|
+
literal("claim"),
|
|
4095
|
+
literal("release"),
|
|
4096
|
+
literal("set_dependencies"),
|
|
4097
|
+
literal("reopen"),
|
|
4098
|
+
literal("reassign"),
|
|
4099
|
+
literal("delete")
|
|
4100
|
+
]).readonly(),
|
|
4101
|
+
"subject": string().readonly().optional(),
|
|
4102
|
+
"description": string().readonly().optional(),
|
|
4103
|
+
"blockedBy": array(intersection(string(), unknown())).readonly().optional(),
|
|
4104
|
+
"writeScopes": array(string()).readonly().optional(),
|
|
4105
|
+
"owner": string().readonly().optional()
|
|
4106
|
+
});
|
|
4107
|
+
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_result$schema$value;
|
|
4108
|
+
const _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_result$schema = () => _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_result$schema$value ??= union([object({
|
|
4109
|
+
"ok": literal(true).readonly(),
|
|
4110
|
+
"value": object({
|
|
4111
|
+
"id": intersection(string(), unknown()).readonly(),
|
|
4112
|
+
"revision": number().readonly(),
|
|
4113
|
+
"subject": string().readonly(),
|
|
4114
|
+
"description": string().readonly(),
|
|
4115
|
+
"status": union([
|
|
4116
|
+
literal("pending"),
|
|
4117
|
+
literal("in_progress"),
|
|
4118
|
+
literal("completed"),
|
|
4119
|
+
literal("deleted")
|
|
4120
|
+
]).readonly(),
|
|
4121
|
+
"blockedBy": array(intersection(string(), unknown())).readonly(),
|
|
4122
|
+
"writeScopes": array(string()).readonly(),
|
|
4123
|
+
"ownerName": string().readonly().optional(),
|
|
4124
|
+
"ready": boolean().readonly(),
|
|
4125
|
+
"writeScopeWarnings": array(string()).readonly()
|
|
4126
|
+
}).readonly()
|
|
4127
|
+
}), object({
|
|
4128
|
+
"ok": literal(false).readonly(),
|
|
4129
|
+
"error": object({
|
|
4130
|
+
"code": union([literal("team-task-conflict"), literal("team-rejected")]).readonly(),
|
|
4131
|
+
"message": string().readonly()
|
|
4132
|
+
}).readonly()
|
|
4133
|
+
})]);
|
|
4134
|
+
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_parameter_0$schema$value;
|
|
4135
|
+
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());
|
|
4136
|
+
let _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_result$schema$value;
|
|
4137
|
+
const _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_result$schema = () => _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_result$schema$value ??= object({
|
|
4138
|
+
"members": array(object({
|
|
4139
|
+
"id": intersection(string(), unknown()).readonly(),
|
|
4140
|
+
"name": string().readonly(),
|
|
4141
|
+
"role": union([literal("lead"), literal("teammate")]).readonly(),
|
|
4142
|
+
"status": union([
|
|
4143
|
+
literal("running"),
|
|
4144
|
+
literal("failed"),
|
|
4145
|
+
literal("idle"),
|
|
4146
|
+
literal("inactive"),
|
|
4147
|
+
literal("provisioning")
|
|
4148
|
+
]).readonly(),
|
|
4149
|
+
"description": string().readonly().optional(),
|
|
4150
|
+
"provider": string().readonly().optional(),
|
|
4151
|
+
"context": union([literal("fresh"), literal("fork")]).readonly().optional(),
|
|
4152
|
+
"model": string().readonly().optional(),
|
|
4153
|
+
"diagnostics": array(string()).readonly()
|
|
4154
|
+
})).readonly(),
|
|
4155
|
+
"tasks": array(object({
|
|
4156
|
+
"id": intersection(string(), unknown()).readonly(),
|
|
4157
|
+
"revision": number().readonly(),
|
|
4158
|
+
"subject": string().readonly(),
|
|
4159
|
+
"description": string().readonly(),
|
|
4160
|
+
"status": union([
|
|
4161
|
+
literal("pending"),
|
|
4162
|
+
literal("in_progress"),
|
|
4163
|
+
literal("completed"),
|
|
4164
|
+
literal("deleted")
|
|
4165
|
+
]).readonly(),
|
|
4166
|
+
"blockedBy": array(intersection(string(), unknown())).readonly(),
|
|
4167
|
+
"writeScopes": array(string()).readonly(),
|
|
4168
|
+
"ownerName": string().readonly().optional(),
|
|
4169
|
+
"ready": boolean().readonly(),
|
|
4170
|
+
"writeScopeWarnings": array(string()).readonly()
|
|
4171
|
+
})).readonly()
|
|
4172
|
+
});
|
|
4173
|
+
const TYPERT_REMOTE = {
|
|
4174
|
+
package: "@deepseek-ai/dsh-experimental-agent-team",
|
|
4175
|
+
descriptors: [
|
|
4176
|
+
{
|
|
4177
|
+
id: "@deepseek-ai/dsh-experimental-agent-team#agentTeams/createTask",
|
|
4178
|
+
service: "agentTeams",
|
|
4179
|
+
namespace: "agentTeams",
|
|
4180
|
+
method: "createTask",
|
|
4181
|
+
implementation: "remoteCreateTask",
|
|
4182
|
+
invocation: { kind: "direct" },
|
|
4183
|
+
scope: {
|
|
4184
|
+
context: "agent",
|
|
4185
|
+
wire: "agentId"
|
|
4186
|
+
},
|
|
4187
|
+
parameters: [{
|
|
4188
|
+
name: "agent",
|
|
4189
|
+
wire: "agentId",
|
|
4190
|
+
source: "lookup",
|
|
4191
|
+
lookup: "agent",
|
|
4192
|
+
codec: {
|
|
4193
|
+
mode: "strict",
|
|
4194
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
4195
|
+
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_parameter_0$schema
|
|
4196
|
+
}
|
|
4197
|
+
}, {
|
|
4198
|
+
name: "request",
|
|
4199
|
+
wire: "request",
|
|
4200
|
+
source: "json",
|
|
4201
|
+
codec: {
|
|
4202
|
+
mode: "strict",
|
|
4203
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-agent-team/client#CreateTeamTaskRequest",
|
|
4204
|
+
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_parameter_1$schema
|
|
4205
|
+
}
|
|
4206
|
+
}],
|
|
4207
|
+
result: {
|
|
4208
|
+
mode: "strict",
|
|
4209
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-agent-team/client#TeamTaskMutationResult",
|
|
4210
|
+
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_createTask_result$schema
|
|
4211
|
+
},
|
|
4212
|
+
sourceLocation: {
|
|
4213
|
+
"file": "packages/experimental/agent-team/src/index.ts",
|
|
4214
|
+
"line": 257,
|
|
4215
|
+
"column": 3
|
|
4216
|
+
}
|
|
4217
|
+
},
|
|
4218
|
+
{
|
|
4219
|
+
id: "@deepseek-ai/dsh-experimental-agent-team#agentTeams/updateTask",
|
|
4220
|
+
service: "agentTeams",
|
|
4221
|
+
namespace: "agentTeams",
|
|
4222
|
+
method: "updateTask",
|
|
4223
|
+
implementation: "remoteUpdateTask",
|
|
4224
|
+
invocation: { kind: "direct" },
|
|
4225
|
+
scope: {
|
|
4226
|
+
context: "agent",
|
|
4227
|
+
wire: "agentId"
|
|
4228
|
+
},
|
|
4229
|
+
parameters: [{
|
|
4230
|
+
name: "agent",
|
|
4231
|
+
wire: "agentId",
|
|
4232
|
+
source: "lookup",
|
|
4233
|
+
lookup: "agent",
|
|
4234
|
+
codec: {
|
|
4235
|
+
mode: "strict",
|
|
4236
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
4237
|
+
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_parameter_0$schema
|
|
4238
|
+
}
|
|
4239
|
+
}, {
|
|
4240
|
+
name: "request",
|
|
4241
|
+
wire: "request",
|
|
4242
|
+
source: "json",
|
|
4243
|
+
codec: {
|
|
4244
|
+
mode: "strict",
|
|
4245
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-agent-team/client#UpdateTeamTaskRequest",
|
|
4246
|
+
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_parameter_1$schema
|
|
4247
|
+
}
|
|
4248
|
+
}],
|
|
4249
|
+
result: {
|
|
4250
|
+
mode: "strict",
|
|
4251
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-agent-team/client#TeamTaskMutationResult",
|
|
4252
|
+
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_updateTask_result$schema
|
|
4253
|
+
},
|
|
4254
|
+
sourceLocation: {
|
|
4255
|
+
"file": "packages/experimental/agent-team/src/index.ts",
|
|
4256
|
+
"line": 268,
|
|
4257
|
+
"column": 3
|
|
4258
|
+
}
|
|
4259
|
+
},
|
|
4260
|
+
{
|
|
4261
|
+
id: "@deepseek-ai/dsh-experimental-agent-team#agentTeams/view",
|
|
4262
|
+
service: "agentTeams",
|
|
4263
|
+
namespace: "agentTeams",
|
|
4264
|
+
method: "view",
|
|
4265
|
+
implementation: "remoteView",
|
|
4266
|
+
invocation: { kind: "direct" },
|
|
4267
|
+
scope: {
|
|
4268
|
+
context: "agent",
|
|
4269
|
+
wire: "agentId"
|
|
4270
|
+
},
|
|
4271
|
+
parameters: [{
|
|
4272
|
+
name: "agent",
|
|
4273
|
+
wire: "agentId",
|
|
4274
|
+
source: "lookup",
|
|
4275
|
+
lookup: "agent",
|
|
4276
|
+
codec: {
|
|
4277
|
+
mode: "strict",
|
|
4278
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
4279
|
+
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_parameter_0$schema
|
|
4280
|
+
}
|
|
4281
|
+
}],
|
|
4282
|
+
result: {
|
|
4283
|
+
mode: "strict",
|
|
4284
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-agent-team/client#TeamView",
|
|
4285
|
+
create: _deepseek_ai_dsh_experimental_agent_team_agentTeams_view_result$schema
|
|
4286
|
+
},
|
|
4287
|
+
sourceLocation: {
|
|
4288
|
+
"file": "packages/experimental/agent-team/src/index.ts",
|
|
4289
|
+
"line": 243,
|
|
4290
|
+
"column": 3
|
|
4291
|
+
}
|
|
4292
|
+
}
|
|
4293
|
+
]
|
|
4294
|
+
};
|
|
4295
|
+
//#endregion
|
|
4296
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-agent-team/src/client/TeamAction.module.css.mjs
|
|
4297
|
+
const css = "._6oYBGa_root{position:relative}._6oYBGa_trigger,._6oYBGa_iconButton,._6oYBGa_smallButton,._6oYBGa_taskActions button,._6oYBGa_formActions button{color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px}._6oYBGa_trigger{align-items:center;gap:5px;min-height:28px;padding:3px 7px;font-size:12px;display:inline-flex}._6oYBGa_trigger:hover,._6oYBGa_iconButton:hover,._6oYBGa_smallButton:hover,._6oYBGa_taskActions button:hover,._6oYBGa_formActions button:hover{background:var(--dsw-alias-interactive-bg-hover)}._6oYBGa_count{background:var(--dsw-alias-fill-l2);font-variant-numeric:tabular-nums;text-align:center;border-radius:8px;min-width:16px}._6oYBGa_panel{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);z-index:110;box-sizing:border-box;background:var(--dsw-specific-menu);--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);width:min(560px,100vw - 32px);max-height:min(680px,100vh - 120px);box-shadow:var(--dsw-elevation-prominent);border:0;border-radius:12px;padding:10px;position:absolute;top:calc(100% + 5px);left:0;overflow:auto}._6oYBGa_toolbar,._6oYBGa_sectionTitle,._6oYBGa_taskTitle,._6oYBGa_taskActions,._6oYBGa_formActions{align-items:center;gap:8px;display:flex}._6oYBGa_toolbar{min-height:28px}._6oYBGa_spacer{flex:1}._6oYBGa_iconButton{justify-content:center;align-items:center;width:26px;height:26px;display:inline-flex}._6oYBGa_panel h3{color:var(--dsw-alias-label-secondary);margin:12px 0 6px;font-size:12px;font-weight:500}._6oYBGa_roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}._6oYBGa_member{border:.5px solid var(--dsw-alias-border-l1);min-width:0;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;background:0 0;border-radius:8px;align-items:flex-start;gap:8px;padding:8px;display:flex}._6oYBGa_member:disabled{cursor:default}._6oYBGa_memberText{flex-direction:column;min-width:0;display:flex}._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_smallButton{align-items:center;gap:4px;margin-left:auto;padding:4px 7px;font-size:11px;display:inline-flex}._6oYBGa_tasks{flex-direction:column;gap:7px;display:flex}._6oYBGa_task,._6oYBGa_form{border:.5px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-base);border-radius:9px;padding:9px}._6oYBGa_taskTitle span{color:var(--dsw-alias-label-tertiary);margin-left:auto;font-size:11px}._6oYBGa_task p{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;margin:5px 0;font-size:12px}._6oYBGa_meta{flex-wrap:wrap;gap:4px 10px;display:flex}._6oYBGa_taskActions{flex-wrap:wrap;margin-top:8px}._6oYBGa_taskActions label{color:var(--dsw-alias-label-tertiary);align-items:center;gap:4px;font-size:11px;display:inline-flex}._6oYBGa_taskActions select,._6oYBGa_form input,._6oYBGa_form textarea{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);font:inherit;border-radius:6px}._6oYBGa_taskActions button,._6oYBGa_formActions button{align-items:center;gap:3px;padding:4px 6px;font-size:11px;display:inline-flex}._6oYBGa_taskActions button:disabled,._6oYBGa_formActions button:disabled{opacity:.45;cursor:default}._6oYBGa_form{gap:6px;margin-bottom:7px;display:grid}._6oYBGa_form input,._6oYBGa_form textarea{width:100%;padding:6px 8px;font-size:12px}._6oYBGa_form textarea{resize:vertical;min-height:58px}._6oYBGa_notice,._6oYBGa_error{padding:9px;font-size:12px}";
|
|
4298
|
+
const tagId = "@deepseek-ai/dsh-experimental-client-ui-agent-team/TeamAction.module.css";
|
|
4299
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
4300
|
+
const tag = document.createElement("style");
|
|
4301
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-experimental-client-ui-agent-team";
|
|
4302
|
+
tag.dataset.pluginCss = tagId;
|
|
4303
|
+
tag.textContent = css;
|
|
4304
|
+
document.head.appendChild(tag);
|
|
4305
|
+
}
|
|
4306
|
+
var TeamAction_module_css_default = {
|
|
4307
|
+
"count": "_6oYBGa_count",
|
|
4308
|
+
"diagnostic": "_6oYBGa_diagnostic",
|
|
4309
|
+
"error": "_6oYBGa_error",
|
|
4310
|
+
"form": "_6oYBGa_form",
|
|
4311
|
+
"formActions": "_6oYBGa_formActions",
|
|
4312
|
+
"iconButton": "_6oYBGa_iconButton",
|
|
4313
|
+
"member": "_6oYBGa_member",
|
|
4314
|
+
"memberText": "_6oYBGa_memberText",
|
|
4315
|
+
"meta": "_6oYBGa_meta",
|
|
4316
|
+
"notice": "_6oYBGa_notice",
|
|
4317
|
+
"panel": "_6oYBGa_panel",
|
|
4318
|
+
"root": "_6oYBGa_root",
|
|
4319
|
+
"roster": "_6oYBGa_roster",
|
|
4320
|
+
"sectionTitle": "_6oYBGa_sectionTitle",
|
|
4321
|
+
"smallButton": "_6oYBGa_smallButton",
|
|
4322
|
+
"spacer": "_6oYBGa_spacer",
|
|
4323
|
+
"task": "_6oYBGa_task",
|
|
4324
|
+
"taskActions": "_6oYBGa_taskActions",
|
|
4325
|
+
"taskTitle": "_6oYBGa_taskTitle",
|
|
4326
|
+
"tasks": "_6oYBGa_tasks",
|
|
4327
|
+
"toolbar": "_6oYBGa_toolbar",
|
|
4328
|
+
"trigger": "_6oYBGa_trigger",
|
|
4329
|
+
"warning": "_6oYBGa_warning"
|
|
4330
|
+
};
|
|
4331
|
+
//#endregion
|
|
4332
|
+
//#region lib/types/client/TeamAction.js
|
|
4333
|
+
const EMPTY_DRAFT = {
|
|
4334
|
+
subject: "",
|
|
4335
|
+
description: "",
|
|
4336
|
+
blockers: "",
|
|
4337
|
+
scopes: ""
|
|
4338
|
+
};
|
|
4339
|
+
function items(value) {
|
|
4340
|
+
return [...new Set(value.split(",").map((item) => item.trim()).filter(Boolean))];
|
|
4341
|
+
}
|
|
4342
|
+
function taskIds(value) {
|
|
4343
|
+
return items(value);
|
|
4344
|
+
}
|
|
4345
|
+
/**
|
|
4346
|
+
* One failure line for either carrier: a Remote failure, or a Team business
|
|
4347
|
+
* rejection whose codes stay local to this seam and never ride the wire.
|
|
4348
|
+
*/
|
|
4349
|
+
function failureText(error) {
|
|
4350
|
+
return `${error.message} (${error.code})`;
|
|
4351
|
+
}
|
|
4352
|
+
function statusKey(status) {
|
|
4353
|
+
switch (status) {
|
|
4354
|
+
case "pending": return "status.pending";
|
|
4355
|
+
case "in_progress": return "status.in_progress";
|
|
4356
|
+
case "completed": return "status.completed";
|
|
4357
|
+
/* v8 ignore next -- Team views omit deleted task tombstones. */
|
|
4358
|
+
case "deleted": return "status.completed";
|
|
4359
|
+
}
|
|
4360
|
+
}
|
|
4361
|
+
function memberStatusKey(status) {
|
|
4362
|
+
switch (status) {
|
|
4363
|
+
case "running": return "memberStatus.running";
|
|
4364
|
+
case "idle": return "memberStatus.idle";
|
|
4365
|
+
case "inactive": return "memberStatus.inactive";
|
|
4366
|
+
case "provisioning": return "memberStatus.provisioning";
|
|
4367
|
+
case "failed": return "memberStatus.failed";
|
|
4368
|
+
}
|
|
4369
|
+
}
|
|
4370
|
+
/** Render the live Team roster and compare-and-set task board. */
|
|
4371
|
+
function TeamAction({ sessionId, load, createTask, updateTask, openTeammate, t }) {
|
|
4372
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
4373
|
+
const [loading, setLoading] = (0, react.useState)(false);
|
|
4374
|
+
const [view, setView] = (0, react.useState)(null);
|
|
4375
|
+
const [error, setError] = (0, react.useState)(null);
|
|
4376
|
+
const [creating, setCreating] = (0, react.useState)(false);
|
|
4377
|
+
const [createDraft, setCreateDraft] = (0, react.useState)(EMPTY_DRAFT);
|
|
4378
|
+
const [editing, setEditing] = (0, react.useState)(null);
|
|
4379
|
+
const [editDraft, setEditDraft] = (0, react.useState)(EMPTY_DRAFT);
|
|
4380
|
+
const [pendingTasks, setPendingTasks] = (0, react.useState)(() => /* @__PURE__ */ new Set());
|
|
4381
|
+
const sessionRef = (0, react.useRef)(sessionId);
|
|
4382
|
+
const refreshGeneration = (0, react.useRef)(0);
|
|
4383
|
+
sessionRef.current = sessionId;
|
|
4384
|
+
(0, react.useEffect)(() => {
|
|
4385
|
+
refreshGeneration.current += 1;
|
|
4386
|
+
setOpen(false);
|
|
4387
|
+
setLoading(false);
|
|
4388
|
+
setView(null);
|
|
4389
|
+
setError(null);
|
|
4390
|
+
setCreating(false);
|
|
4391
|
+
setCreateDraft(EMPTY_DRAFT);
|
|
4392
|
+
setEditing(null);
|
|
4393
|
+
setEditDraft(EMPTY_DRAFT);
|
|
4394
|
+
setPendingTasks(/* @__PURE__ */ new Set());
|
|
4395
|
+
}, [sessionId]);
|
|
4396
|
+
const refresh = (0, react.useCallback)(async () => {
|
|
4397
|
+
const requestedSession = sessionId;
|
|
4398
|
+
const generation = ++refreshGeneration.current;
|
|
4399
|
+
setLoading(true);
|
|
4400
|
+
const result = await load(requestedSession);
|
|
4401
|
+
if (sessionRef.current !== requestedSession || refreshGeneration.current !== generation) return false;
|
|
4402
|
+
setLoading(false);
|
|
4403
|
+
if (result.ok) {
|
|
4404
|
+
setView(result.value);
|
|
4405
|
+
setError(null);
|
|
4406
|
+
return true;
|
|
4407
|
+
} else {
|
|
4408
|
+
setError(failureText(result.error));
|
|
4409
|
+
return false;
|
|
4410
|
+
}
|
|
4411
|
+
}, [load, sessionId]);
|
|
4412
|
+
const invalidateRefresh = (0, react.useCallback)(() => {
|
|
4413
|
+
refreshGeneration.current += 1;
|
|
4414
|
+
setLoading(false);
|
|
4415
|
+
}, []);
|
|
4416
|
+
const settleTask = (0, react.useCallback)(async (taskId, operation) => {
|
|
4417
|
+
const requestedSession = sessionId;
|
|
4418
|
+
invalidateRefresh();
|
|
4419
|
+
setPendingTasks((current) => new Set(current).add(taskId));
|
|
4420
|
+
try {
|
|
4421
|
+
const result = await operation();
|
|
4422
|
+
if (sessionRef.current !== requestedSession) return void 0;
|
|
4423
|
+
if (!result.ok) {
|
|
4424
|
+
setError(failureText(result.error));
|
|
4425
|
+
return;
|
|
4426
|
+
}
|
|
4427
|
+
if (!result.value.ok) {
|
|
4428
|
+
if (result.value.error.code === "team-task-conflict") {
|
|
4429
|
+
const reloaded = await refresh();
|
|
4430
|
+
if (sessionRef.current !== requestedSession) return void 0;
|
|
4431
|
+
if (reloaded) setError(t("conflict"));
|
|
4432
|
+
} else setError(failureText(result.value.error));
|
|
4433
|
+
return;
|
|
4434
|
+
}
|
|
4435
|
+
const task = result.value.value;
|
|
4436
|
+
setError(null);
|
|
4437
|
+
await refresh();
|
|
4438
|
+
if (sessionRef.current !== requestedSession) return void 0;
|
|
4439
|
+
return task;
|
|
4440
|
+
} finally {
|
|
4441
|
+
if (sessionRef.current === requestedSession) setPendingTasks((current) => {
|
|
4442
|
+
const next = new Set(current);
|
|
4443
|
+
next.delete(taskId);
|
|
4444
|
+
return next;
|
|
4445
|
+
});
|
|
4446
|
+
}
|
|
4447
|
+
}, [
|
|
4448
|
+
invalidateRefresh,
|
|
4449
|
+
refresh,
|
|
4450
|
+
sessionId,
|
|
4451
|
+
t
|
|
4452
|
+
]);
|
|
4453
|
+
const submitCreate = async () => {
|
|
4454
|
+
const subject = createDraft.subject.trim();
|
|
4455
|
+
const description = createDraft.description.trim();
|
|
4456
|
+
/* v8 ignore next -- TaskForm disables Save while either normalized field is empty. */
|
|
4457
|
+
if (subject === "" || description === "") return;
|
|
4458
|
+
if (await settleTask("create", () => createTask(sessionId, {
|
|
4459
|
+
subject,
|
|
4460
|
+
description,
|
|
4461
|
+
blockedBy: taskIds(createDraft.blockers),
|
|
4462
|
+
writeScopes: items(createDraft.scopes)
|
|
4463
|
+
})) === void 0) return;
|
|
4464
|
+
setCreateDraft(EMPTY_DRAFT);
|
|
4465
|
+
setCreating(false);
|
|
4466
|
+
};
|
|
4467
|
+
const startEdit = (task) => {
|
|
4468
|
+
setEditing(task.id);
|
|
4469
|
+
setEditDraft({
|
|
4470
|
+
subject: task.subject,
|
|
4471
|
+
description: task.description,
|
|
4472
|
+
blockers: task.blockedBy.join(", "),
|
|
4473
|
+
scopes: task.writeScopes.join(", ")
|
|
4474
|
+
});
|
|
4475
|
+
};
|
|
4476
|
+
const submitEdit = async (task) => {
|
|
4477
|
+
const requestedSession = sessionId;
|
|
4478
|
+
const edited = await settleTask(task.id, () => updateTask(requestedSession, {
|
|
4479
|
+
taskId: task.id,
|
|
4480
|
+
expectedRevision: task.revision,
|
|
4481
|
+
action: "edit",
|
|
4482
|
+
subject: editDraft.subject.trim(),
|
|
4483
|
+
description: editDraft.description.trim(),
|
|
4484
|
+
writeScopes: items(editDraft.scopes)
|
|
4485
|
+
}));
|
|
4486
|
+
if (edited === void 0) return;
|
|
4487
|
+
const blockedBy = taskIds(editDraft.blockers);
|
|
4488
|
+
if (blockedBy.length === edited.blockedBy.length && blockedBy.every((blocker, index) => blocker === edited.blockedBy[index])) {
|
|
4489
|
+
setEditing(null);
|
|
4490
|
+
return;
|
|
4491
|
+
}
|
|
4492
|
+
if (await settleTask(task.id, () => updateTask(requestedSession, {
|
|
4493
|
+
taskId: task.id,
|
|
4494
|
+
expectedRevision: edited.revision,
|
|
4495
|
+
action: "set_dependencies",
|
|
4496
|
+
blockedBy
|
|
4497
|
+
})) === void 0) return;
|
|
4498
|
+
setEditing(null);
|
|
4499
|
+
};
|
|
4500
|
+
const teammates = view?.members.filter((member) => member.role === "teammate") ?? [];
|
|
4501
|
+
const assignable = view?.members.filter((member) => member.status !== "failed" && member.status !== "provisioning") ?? [];
|
|
4502
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
4503
|
+
className: TeamAction_module_css_default.root,
|
|
4504
|
+
"data-team-action": true,
|
|
4505
|
+
children: [(0, react_jsx_runtime.jsxs)("button", {
|
|
4506
|
+
type: "button",
|
|
4507
|
+
className: TeamAction_module_css_default.trigger,
|
|
4508
|
+
"aria-expanded": open,
|
|
4509
|
+
onClick: () => {
|
|
4510
|
+
const next = !open;
|
|
4511
|
+
setOpen(next);
|
|
4512
|
+
if (next) refresh();
|
|
4513
|
+
},
|
|
4514
|
+
children: [
|
|
4515
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconUserOutline16, { size: 14 }),
|
|
4516
|
+
(0, react_jsx_runtime.jsx)("span", { children: t("trigger") }),
|
|
4517
|
+
teammates.length > 0 && (0, react_jsx_runtime.jsx)("span", {
|
|
4518
|
+
className: TeamAction_module_css_default.count,
|
|
4519
|
+
children: teammates.length
|
|
4520
|
+
})
|
|
4521
|
+
]
|
|
4522
|
+
}), open && (0, react_jsx_runtime.jsxs)("div", {
|
|
4523
|
+
className: TeamAction_module_css_default.panel,
|
|
4524
|
+
role: "dialog",
|
|
4525
|
+
"aria-label": t("trigger"),
|
|
4526
|
+
children: [
|
|
4527
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
4528
|
+
className: TeamAction_module_css_default.toolbar,
|
|
4529
|
+
children: [
|
|
4530
|
+
(0, react_jsx_runtime.jsx)("strong", { children: t("trigger") }),
|
|
4531
|
+
(0, react_jsx_runtime.jsx)("span", { className: TeamAction_module_css_default.spacer }),
|
|
4532
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
4533
|
+
type: "button",
|
|
4534
|
+
className: TeamAction_module_css_default.iconButton,
|
|
4535
|
+
"aria-label": t("refresh"),
|
|
4536
|
+
onClick: () => {
|
|
4537
|
+
refresh();
|
|
4538
|
+
},
|
|
4539
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRefreshOutline14, {})
|
|
4540
|
+
}),
|
|
4541
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
4542
|
+
type: "button",
|
|
4543
|
+
className: TeamAction_module_css_default.iconButton,
|
|
4544
|
+
"aria-label": t("close"),
|
|
4545
|
+
onClick: () => {
|
|
4546
|
+
setOpen(false);
|
|
4547
|
+
},
|
|
4548
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutline16, { size: 14 })
|
|
4549
|
+
})
|
|
4550
|
+
]
|
|
4551
|
+
}),
|
|
4552
|
+
error !== null && (0, react_jsx_runtime.jsx)("div", {
|
|
4553
|
+
className: TeamAction_module_css_default.error,
|
|
4554
|
+
role: "alert",
|
|
4555
|
+
children: error
|
|
4556
|
+
}),
|
|
4557
|
+
loading && view === null && (0, react_jsx_runtime.jsx)("div", {
|
|
4558
|
+
className: TeamAction_module_css_default.notice,
|
|
4559
|
+
children: t("loading")
|
|
4560
|
+
}),
|
|
4561
|
+
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", {
|
|
4562
|
+
className: TeamAction_module_css_default.roster,
|
|
4563
|
+
children: view.members.map((member) => (0, react_jsx_runtime.jsxs)("button", {
|
|
4564
|
+
type: "button",
|
|
4565
|
+
className: TeamAction_module_css_default.member,
|
|
4566
|
+
disabled: member.role === "lead" || member.status === "failed" || member.status === "provisioning",
|
|
4567
|
+
title: member.role === "teammate" ? t("open") : void 0,
|
|
4568
|
+
onClick: () => {
|
|
4569
|
+
openTeammate(sessionId, member).catch((reason) => {
|
|
4570
|
+
setError(String(reason));
|
|
4571
|
+
});
|
|
4572
|
+
},
|
|
4573
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: member.status === "running" ? "ongoing" : member.status === "failed" ? "error" : "done" }), (0, react_jsx_runtime.jsxs)("span", {
|
|
4574
|
+
className: TeamAction_module_css_default.memberText,
|
|
4575
|
+
children: [
|
|
4576
|
+
(0, react_jsx_runtime.jsx)("span", { children: member.name }),
|
|
4577
|
+
(0, react_jsx_runtime.jsxs)("small", { children: [t(memberStatusKey(member.status)), member.model === void 0 ? "" : ` · ${t("model")}: ${member.model}`] }),
|
|
4578
|
+
member.diagnostics.map((diagnostic) => (0, react_jsx_runtime.jsx)("small", {
|
|
4579
|
+
className: TeamAction_module_css_default.diagnostic,
|
|
4580
|
+
children: diagnostic
|
|
4581
|
+
}, diagnostic))
|
|
4582
|
+
]
|
|
4583
|
+
})]
|
|
4584
|
+
}, member.id))
|
|
4585
|
+
})] }), (0, react_jsx_runtime.jsxs)("section", { children: [
|
|
4586
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
4587
|
+
className: TeamAction_module_css_default.sectionTitle,
|
|
4588
|
+
children: [(0, react_jsx_runtime.jsx)("h3", { children: t("tasks") }), (0, react_jsx_runtime.jsxs)("button", {
|
|
4589
|
+
type: "button",
|
|
4590
|
+
className: TeamAction_module_css_default.smallButton,
|
|
4591
|
+
onClick: () => {
|
|
4592
|
+
setCreating(true);
|
|
4593
|
+
},
|
|
4594
|
+
children: [
|
|
4595
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutline16, { size: 13 }),
|
|
4596
|
+
" ",
|
|
4597
|
+
t("create")
|
|
4598
|
+
]
|
|
4599
|
+
})]
|
|
4600
|
+
}),
|
|
4601
|
+
creating && (0, react_jsx_runtime.jsx)(TaskForm, {
|
|
4602
|
+
draft: createDraft,
|
|
4603
|
+
setDraft: setCreateDraft,
|
|
4604
|
+
pending: pendingTasks.has("create"),
|
|
4605
|
+
onSave: () => {
|
|
4606
|
+
submitCreate();
|
|
4607
|
+
},
|
|
4608
|
+
onCancel: () => {
|
|
4609
|
+
setCreating(false);
|
|
4610
|
+
},
|
|
4611
|
+
t
|
|
4612
|
+
}),
|
|
4613
|
+
view.tasks.length === 0 && !creating && (0, react_jsx_runtime.jsx)("div", {
|
|
4614
|
+
className: TeamAction_module_css_default.notice,
|
|
4615
|
+
children: t("empty")
|
|
4616
|
+
}),
|
|
4617
|
+
(0, react_jsx_runtime.jsx)("div", {
|
|
4618
|
+
className: TeamAction_module_css_default.tasks,
|
|
4619
|
+
children: view.tasks.map((task) => editing === task.id ? (0, react_jsx_runtime.jsx)(TaskForm, {
|
|
4620
|
+
draft: editDraft,
|
|
4621
|
+
setDraft: setEditDraft,
|
|
4622
|
+
pending: pendingTasks.has(task.id),
|
|
4623
|
+
onSave: () => {
|
|
4624
|
+
submitEdit(task);
|
|
4625
|
+
},
|
|
4626
|
+
onCancel: () => {
|
|
4627
|
+
setEditing(null);
|
|
4628
|
+
},
|
|
4629
|
+
t
|
|
4630
|
+
}, task.id) : (0, react_jsx_runtime.jsxs)("article", {
|
|
4631
|
+
className: TeamAction_module_css_default.task,
|
|
4632
|
+
children: [
|
|
4633
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
4634
|
+
className: TeamAction_module_css_default.taskTitle,
|
|
4635
|
+
children: [(0, react_jsx_runtime.jsx)("strong", { children: task.subject }), (0, react_jsx_runtime.jsx)("span", { children: t(statusKey(task.status)) })]
|
|
4636
|
+
}),
|
|
4637
|
+
(0, react_jsx_runtime.jsx)("p", { children: task.description }),
|
|
4638
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
4639
|
+
className: TeamAction_module_css_default.meta,
|
|
4640
|
+
children: [
|
|
4641
|
+
(0, react_jsx_runtime.jsx)("span", { children: task.id }),
|
|
4642
|
+
task.status === "pending" && (0, react_jsx_runtime.jsx)("span", { children: task.ready ? t("ready") : t("blocked") }),
|
|
4643
|
+
task.blockedBy.length > 0 && (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
4644
|
+
t("blockedBy"),
|
|
4645
|
+
": ",
|
|
4646
|
+
task.blockedBy.join(", ")
|
|
4647
|
+
] }),
|
|
4648
|
+
task.writeScopes.length > 0 && (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
4649
|
+
t("writeScopes"),
|
|
4650
|
+
": ",
|
|
4651
|
+
task.writeScopes.join(", ")
|
|
4652
|
+
] }),
|
|
4653
|
+
task.writeScopeWarnings.map((warning) => (0, react_jsx_runtime.jsx)("span", {
|
|
4654
|
+
className: TeamAction_module_css_default.warning,
|
|
4655
|
+
children: warning
|
|
4656
|
+
}, warning))
|
|
4657
|
+
]
|
|
4658
|
+
}),
|
|
4659
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
4660
|
+
className: TeamAction_module_css_default.taskActions,
|
|
4661
|
+
children: [
|
|
4662
|
+
(0, react_jsx_runtime.jsxs)("label", { children: [t("owner"), (0, react_jsx_runtime.jsxs)("select", {
|
|
4663
|
+
value: task.ownerName ?? "",
|
|
4664
|
+
disabled: pendingTasks.has(task.id) || task.status === "completed",
|
|
4665
|
+
onChange: (event) => {
|
|
4666
|
+
const owner = event.target.value;
|
|
4667
|
+
settleTask(task.id, () => updateTask(sessionId, {
|
|
4668
|
+
taskId: task.id,
|
|
4669
|
+
expectedRevision: task.revision,
|
|
4670
|
+
action: "reassign",
|
|
4671
|
+
...owner === "" ? {} : { owner }
|
|
4672
|
+
}));
|
|
4673
|
+
},
|
|
4674
|
+
children: [(0, react_jsx_runtime.jsx)("option", {
|
|
4675
|
+
value: "",
|
|
4676
|
+
children: t("unowned")
|
|
4677
|
+
}), assignable.map((member) => (0, react_jsx_runtime.jsx)("option", {
|
|
4678
|
+
value: member.name,
|
|
4679
|
+
children: member.name
|
|
4680
|
+
}, member.id))]
|
|
4681
|
+
})] }),
|
|
4682
|
+
(0, react_jsx_runtime.jsxs)("button", {
|
|
4683
|
+
type: "button",
|
|
4684
|
+
onClick: () => {
|
|
4685
|
+
startEdit(task);
|
|
4686
|
+
},
|
|
4687
|
+
disabled: pendingTasks.has(task.id),
|
|
4688
|
+
children: [
|
|
4689
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEditOutline16, { size: 13 }),
|
|
4690
|
+
" ",
|
|
4691
|
+
t("edit")
|
|
4692
|
+
]
|
|
4693
|
+
}),
|
|
4694
|
+
task.status === "in_progress" && (0, react_jsx_runtime.jsxs)("button", {
|
|
4695
|
+
type: "button",
|
|
4696
|
+
disabled: pendingTasks.has(task.id),
|
|
4697
|
+
onClick: () => {
|
|
4698
|
+
settleTask(task.id, () => updateTask(sessionId, {
|
|
4699
|
+
taskId: task.id,
|
|
4700
|
+
expectedRevision: task.revision,
|
|
4701
|
+
action: "complete"
|
|
4702
|
+
}));
|
|
4703
|
+
},
|
|
4704
|
+
children: [
|
|
4705
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckOutline14, {}),
|
|
4706
|
+
" ",
|
|
4707
|
+
t("complete")
|
|
4708
|
+
]
|
|
4709
|
+
}),
|
|
4710
|
+
task.status === "completed" && (0, react_jsx_runtime.jsx)("button", {
|
|
4711
|
+
type: "button",
|
|
4712
|
+
disabled: pendingTasks.has(task.id),
|
|
4713
|
+
onClick: () => {
|
|
4714
|
+
settleTask(task.id, () => updateTask(sessionId, {
|
|
4715
|
+
taskId: task.id,
|
|
4716
|
+
expectedRevision: task.revision,
|
|
4717
|
+
action: "reopen"
|
|
4718
|
+
}));
|
|
4719
|
+
},
|
|
4720
|
+
children: t("reopen")
|
|
4721
|
+
}),
|
|
4722
|
+
(0, react_jsx_runtime.jsxs)("button", {
|
|
4723
|
+
type: "button",
|
|
4724
|
+
disabled: pendingTasks.has(task.id),
|
|
4725
|
+
onClick: () => {
|
|
4726
|
+
settleTask(task.id, () => updateTask(sessionId, {
|
|
4727
|
+
taskId: task.id,
|
|
4728
|
+
expectedRevision: task.revision,
|
|
4729
|
+
action: "delete"
|
|
4730
|
+
}));
|
|
4731
|
+
},
|
|
4732
|
+
children: [
|
|
4733
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutline16, { size: 13 }),
|
|
4734
|
+
" ",
|
|
4735
|
+
t("delete")
|
|
4736
|
+
]
|
|
4737
|
+
})
|
|
4738
|
+
]
|
|
4739
|
+
})
|
|
4740
|
+
]
|
|
4741
|
+
}, task.id))
|
|
4742
|
+
})
|
|
4743
|
+
] })] })
|
|
4744
|
+
]
|
|
4745
|
+
})]
|
|
4746
|
+
});
|
|
4747
|
+
}
|
|
4748
|
+
function TaskForm({ draft, setDraft, pending, onSave, onCancel, t }) {
|
|
4749
|
+
const field = (key, value) => {
|
|
4750
|
+
setDraft({
|
|
4751
|
+
...draft,
|
|
4752
|
+
[key]: value
|
|
4753
|
+
});
|
|
4754
|
+
};
|
|
4755
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
4756
|
+
className: TeamAction_module_css_default.form,
|
|
4757
|
+
children: [
|
|
4758
|
+
(0, react_jsx_runtime.jsx)("input", {
|
|
4759
|
+
value: draft.subject,
|
|
4760
|
+
placeholder: t("subject"),
|
|
4761
|
+
onChange: (event) => {
|
|
4762
|
+
field("subject", event.target.value);
|
|
4763
|
+
}
|
|
4764
|
+
}),
|
|
4765
|
+
(0, react_jsx_runtime.jsx)("textarea", {
|
|
4766
|
+
value: draft.description,
|
|
4767
|
+
placeholder: t("description"),
|
|
4768
|
+
onChange: (event) => {
|
|
4769
|
+
field("description", event.target.value);
|
|
4770
|
+
}
|
|
4771
|
+
}),
|
|
4772
|
+
(0, react_jsx_runtime.jsx)("input", {
|
|
4773
|
+
value: draft.blockers,
|
|
4774
|
+
placeholder: t("blockers"),
|
|
4775
|
+
onChange: (event) => {
|
|
4776
|
+
field("blockers", event.target.value);
|
|
4777
|
+
}
|
|
4778
|
+
}),
|
|
4779
|
+
(0, react_jsx_runtime.jsx)("input", {
|
|
4780
|
+
value: draft.scopes,
|
|
4781
|
+
placeholder: t("scopes"),
|
|
4782
|
+
onChange: (event) => {
|
|
4783
|
+
field("scopes", event.target.value);
|
|
4784
|
+
}
|
|
4785
|
+
}),
|
|
4786
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
4787
|
+
className: TeamAction_module_css_default.formActions,
|
|
4788
|
+
children: [(0, react_jsx_runtime.jsx)("button", {
|
|
4789
|
+
type: "button",
|
|
4790
|
+
disabled: pending || draft.subject.trim() === "" || draft.description.trim() === "",
|
|
4791
|
+
onClick: onSave,
|
|
4792
|
+
children: t("save")
|
|
4793
|
+
}), (0, react_jsx_runtime.jsx)("button", {
|
|
4794
|
+
type: "button",
|
|
4795
|
+
disabled: pending,
|
|
4796
|
+
onClick: onCancel,
|
|
4797
|
+
children: t("cancel")
|
|
4798
|
+
})]
|
|
4799
|
+
})
|
|
4800
|
+
]
|
|
4801
|
+
});
|
|
4802
|
+
}
|
|
4803
|
+
//#endregion
|
|
4804
|
+
//#region lib/types/client/locales.js
|
|
4805
|
+
/** Agent Teams Web dictionaries. */
|
|
4806
|
+
/** Locale namespace owned by the Agent Teams Web UI. */
|
|
4807
|
+
const NS = "agent-team";
|
|
4808
|
+
/** Simplified Chinese dictionary and key source. */
|
|
4809
|
+
const zh = {
|
|
4810
|
+
trigger: "Agent Team",
|
|
4811
|
+
refresh: "刷新 Team",
|
|
4812
|
+
close: "关闭",
|
|
4813
|
+
loading: "正在加载 Team…",
|
|
4814
|
+
empty: "还没有共享任务",
|
|
4815
|
+
roster: "成员",
|
|
4816
|
+
tasks: "共享任务",
|
|
4817
|
+
model: "模型",
|
|
4818
|
+
open: "打开 teammate 会话",
|
|
4819
|
+
create: "新建任务",
|
|
4820
|
+
subject: "任务标题",
|
|
4821
|
+
description: "任务描述",
|
|
4822
|
+
blockers: "依赖任务 id(逗号分隔)",
|
|
4823
|
+
scopes: "写入范围(逗号分隔)",
|
|
4824
|
+
save: "保存",
|
|
4825
|
+
cancel: "取消",
|
|
4826
|
+
edit: "编辑",
|
|
4827
|
+
complete: "完成",
|
|
4828
|
+
reopen: "重开",
|
|
4829
|
+
delete: "删除",
|
|
4830
|
+
owner: "Owner",
|
|
4831
|
+
unowned: "未分配",
|
|
4832
|
+
blockedBy: "依赖",
|
|
4833
|
+
writeScopes: "写入范围",
|
|
4834
|
+
ready: "可开始",
|
|
4835
|
+
blocked: "被依赖阻塞",
|
|
4836
|
+
conflict: "任务状态已变化,已重新加载;请检查后重试。",
|
|
4837
|
+
"memberStatus.running": "运行中",
|
|
4838
|
+
"memberStatus.idle": "空闲",
|
|
4839
|
+
"memberStatus.inactive": "未运行",
|
|
4840
|
+
"memberStatus.provisioning": "准备中",
|
|
4841
|
+
"memberStatus.failed": "失败",
|
|
4842
|
+
"status.pending": "待处理",
|
|
4843
|
+
"status.in_progress": "进行中",
|
|
4844
|
+
"status.completed": "已完成"
|
|
4845
|
+
};
|
|
4846
|
+
/** English dictionary checked against the Chinese key set. */
|
|
4847
|
+
const en = {
|
|
4848
|
+
trigger: "Agent Team",
|
|
4849
|
+
refresh: "Refresh Team",
|
|
4850
|
+
close: "Close",
|
|
4851
|
+
loading: "Loading Team…",
|
|
4852
|
+
empty: "No shared tasks yet",
|
|
4853
|
+
roster: "Members",
|
|
4854
|
+
tasks: "Shared tasks",
|
|
4855
|
+
model: "Model",
|
|
4856
|
+
open: "Open teammate conversation",
|
|
4857
|
+
create: "New task",
|
|
4858
|
+
subject: "Task subject",
|
|
4859
|
+
description: "Task description",
|
|
4860
|
+
blockers: "Blocking task ids (comma separated)",
|
|
4861
|
+
scopes: "Write scopes (comma separated)",
|
|
4862
|
+
save: "Save",
|
|
4863
|
+
cancel: "Cancel",
|
|
4864
|
+
edit: "Edit",
|
|
4865
|
+
complete: "Complete",
|
|
4866
|
+
reopen: "Reopen",
|
|
4867
|
+
delete: "Delete",
|
|
4868
|
+
owner: "Owner",
|
|
4869
|
+
unowned: "Unowned",
|
|
4870
|
+
blockedBy: "Blocked by",
|
|
4871
|
+
writeScopes: "Write scopes",
|
|
4872
|
+
ready: "Ready",
|
|
4873
|
+
blocked: "Blocked by dependencies",
|
|
4874
|
+
conflict: "Task state changed and was reloaded. Review it before retrying.",
|
|
4875
|
+
"memberStatus.running": "Running",
|
|
4876
|
+
"memberStatus.idle": "Idle",
|
|
4877
|
+
"memberStatus.inactive": "Inactive",
|
|
4878
|
+
"memberStatus.provisioning": "Provisioning",
|
|
4879
|
+
"memberStatus.failed": "Failed",
|
|
4880
|
+
"status.pending": "Pending",
|
|
4881
|
+
"status.in_progress": "In progress",
|
|
4882
|
+
"status.completed": "Completed"
|
|
4883
|
+
};
|
|
4884
|
+
//#endregion
|
|
4885
|
+
//#region lib/types/client/mount.js
|
|
4886
|
+
/** Source-safe Agent Teams browser registration and Remote mount lifecycle. */
|
|
4887
|
+
/** Required browser services for RPC, navigation, slots, and localized copy. */
|
|
4888
|
+
const inject = [
|
|
4889
|
+
"sessions",
|
|
4890
|
+
"uiWorkspace",
|
|
4891
|
+
"remote",
|
|
4892
|
+
"slots",
|
|
4893
|
+
"locale"
|
|
4894
|
+
];
|
|
4895
|
+
function registerUi(ctx) {
|
|
4896
|
+
ctx.effect(() => ctx.locale.register(NS, {
|
|
4897
|
+
zh,
|
|
4898
|
+
en
|
|
4899
|
+
}), "client-ui-agent-team: dictionaries");
|
|
4900
|
+
const sessions = ctx.sessions;
|
|
4901
|
+
const leadSessionId = (sessionId) => {
|
|
4902
|
+
return (sessions.binding(sessionId)?.session.getSnapshot().subagent?.address)?.parentSessionId ?? sessionId;
|
|
4903
|
+
};
|
|
4904
|
+
const actions = {
|
|
4905
|
+
async load(sessionId) {
|
|
4906
|
+
return await ctx.remote.agentTeams.view(leadSessionId(sessionId));
|
|
4907
|
+
},
|
|
4908
|
+
async createTask(sessionId, input) {
|
|
4909
|
+
return await ctx.remote.agentTeams.createTask(leadSessionId(sessionId), input);
|
|
4910
|
+
},
|
|
4911
|
+
async updateTask(sessionId, input) {
|
|
4912
|
+
const { owner, ...rest } = input;
|
|
4913
|
+
return await ctx.remote.agentTeams.updateTask(leadSessionId(sessionId), {
|
|
4914
|
+
...rest,
|
|
4915
|
+
...owner === void 0 ? {} : { owner }
|
|
4916
|
+
});
|
|
4917
|
+
},
|
|
4918
|
+
async openTeammate(sessionId, member) {
|
|
4919
|
+
if (member.role !== "teammate") return;
|
|
4920
|
+
const parentSessionId = leadSessionId(sessionId);
|
|
4921
|
+
await sessions.refreshSubagents(parentSessionId);
|
|
4922
|
+
if ((sessions.retainInfo(sessionId).getSnapshot().retainedBy.mainView ?? 0) === 0) return;
|
|
4923
|
+
ctx.uiWorkspace.openSession({
|
|
4924
|
+
parentSessionId,
|
|
4925
|
+
childSessionId: member.id,
|
|
4926
|
+
mode: "continuable"
|
|
4927
|
+
});
|
|
4928
|
+
}
|
|
4929
|
+
};
|
|
4930
|
+
ctx.slots.inject("conversation.session.header.actions", () => ctx.slots.register({
|
|
4931
|
+
name: "conversation.session.header.actions",
|
|
4932
|
+
id: "agent-team",
|
|
4933
|
+
order: 20,
|
|
4934
|
+
locale: NS,
|
|
4935
|
+
inject: () => actions
|
|
4936
|
+
}, TeamAction));
|
|
4937
|
+
}
|
|
4938
|
+
/**
|
|
4939
|
+
* Mount one generated Team Remote contribution, then register its browser UI.
|
|
4940
|
+
* @param ctx - Client Context carrying navigation, locale, slot, and Remote services.
|
|
4941
|
+
* @param contribution - generated Team descriptors selected by the browser entry.
|
|
4942
|
+
* @returns disposer for both the UI registrations and Remote namespace.
|
|
4943
|
+
*/
|
|
4944
|
+
async function mountAgentTeamUi(ctx, contribution) {
|
|
4945
|
+
const disposeRemote = await ctx.remote.$mount(contribution);
|
|
4946
|
+
const ui = ctx.inject([
|
|
4947
|
+
"sessions",
|
|
4948
|
+
"uiWorkspace",
|
|
4949
|
+
"remote.agentTeams",
|
|
4950
|
+
"slots",
|
|
4951
|
+
"locale"
|
|
4952
|
+
], registerUi);
|
|
4953
|
+
try {
|
|
4954
|
+
await ui;
|
|
4955
|
+
} catch (error) {
|
|
4956
|
+
await ui.dispose();
|
|
4957
|
+
await disposeRemote();
|
|
4958
|
+
throw error;
|
|
4959
|
+
}
|
|
4960
|
+
return async () => {
|
|
4961
|
+
await ui.dispose();
|
|
4962
|
+
await disposeRemote();
|
|
4963
|
+
};
|
|
4964
|
+
}
|
|
4965
|
+
//#endregion
|
|
4966
|
+
//#region lib/types/client/index.js
|
|
4967
|
+
/** Browser entry binding the generated Team Remote artifact to its Client UI. */
|
|
4968
|
+
/** Mount the generated Team Remote contribution and its browser UI. */
|
|
4969
|
+
async function apply(ctx) {
|
|
4970
|
+
return await mountAgentTeamUi(ctx, TYPERT_REMOTE);
|
|
4971
|
+
}
|
|
4972
|
+
//#endregion
|
|
4973
|
+
exports.apply = apply;
|
|
4974
|
+
exports.inject = inject;
|
|
4975
|
+
return module.exports;
|
|
4976
|
+
}
|
|
4977
|
+
});
|
|
4978
|
+
|
|
4979
|
+
//# sourceMappingURL=client.js.map
|