@songtonyli/dsh-cli 0.1.76 → 0.1.77
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/dsh/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +117 -116
- package/node_modules/@deepseek-ai/dsh-acp/package.json +23 -23
- 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 +24 -24
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +3 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +26 -26
- 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-account-controller/lib/typert.host.js +7 -6
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +7 -6
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +9 -10
- package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +7 -8
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +490 -62
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +4 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +3 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +1 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +42 -41
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +72 -73
- 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 +2 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/client.js +166 -21
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/index.js +36 -9
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.js +101 -0
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/model.js +23 -7
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +18 -19
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +12 -13
- package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +40 -26
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +8 -8
- 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 +5 -5
- package/node_modules/@deepseek-ai/dsh-base/package.json +94 -94
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +8 -8
- 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/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +237 -11
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +5 -4
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +7 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +10 -7
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +9 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +136 -6
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +25 -6
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +3 -4
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.md +22 -4
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.zh.md +22 -4
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/index.js +238 -6
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.host.js +6 -6
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.remote-client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +12 -11
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +3 -5
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +6 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +14 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +11 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +8 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +3 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +34 -37
- 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 +16 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +12 -15
- 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 +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +356 -124
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +30 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +11 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +25 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +5 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +12 -14
- 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 +18 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +9 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +8 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +7 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +13 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +3 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +34 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +13 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +16 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +12 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +17 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +314 -85
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +13 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +34 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +72 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +72 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +1637 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +62 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +1 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +17 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +4 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +7 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +4 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +117 -66
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +13 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +176 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +15 -14
- 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 +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +324 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +8 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +9 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +5 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +4 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +6 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +7 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +9 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +8 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +15 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +11 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +12 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +12 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +14 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +15 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +9 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +75 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +25 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +14 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +18 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +11 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +23 -26
- 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 +16 -16
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +21 -21
- 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 +12 -12
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +95 -8
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +9 -7
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +15 -13
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +10 -4
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/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/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +38 -38
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +9 -22
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +18 -26
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +14 -32
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/index.js +70 -17
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/worker.js +16 -12
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +14 -20
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.i18n.yaml +34 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.md +68 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.zh.md +68 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/cordis.patch.yml +10 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/icon.svg +9 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +50 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +10 -13
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +26 -12
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-fs/package.json +7 -7
- 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 +20 -20
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-headless/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- 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 +15 -15
- 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/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-http-proxy/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/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +19 -19
- 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-no-progress-reminder/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-otel/package.json +3 -3
- 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 +18 -18
- package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +14 -14
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +13 -13
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +3 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.i18n.yaml +43 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.md +117 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/README.zh.md +117 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/index.js +661 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/typert.host.js +407 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/typert.remote-client.js +259 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index-url.js +27 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index.js +351 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/parse-thread.js +61 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/parse.js +36 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/search.js +135 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/tools.js +128 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/worker.js +8 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/lib/worker.cjs +1759 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +89 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/README.i18n.yaml +34 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/README.md +74 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/README.zh.md +74 -0
- package/node_modules/@deepseek-ai/dsh-plugin-market-index/lib/index.js +320 -0
- package/node_modules/@deepseek-ai/{dsh-client-ui-slots → dsh-plugin-market-index}/package.json +15 -12
- 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/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +5 -0
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +34 -34
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session/package.json +8 -8
- 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 +9 -9
- 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-format-v3-to-v4/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +18 -21
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
- 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/package.json +35 -35
- 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 +21 -21
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +15 -15
- 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 +10 -10
- package/node_modules/@deepseek-ai/dsh-shell/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +11 -11
- 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-skill-office/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-skill-office/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-export-pdf/SKILL.md +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-render/SKILL.md +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +4 -4
- 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 +30 -30
- package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +46 -46
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +252 -47
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -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/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +125 -4
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +27 -27
- 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/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +45 -26
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +20 -10
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ts-types.js +26 -9
- package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +78 -78
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +1 -1
- 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/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/package.json +140 -139
- package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +18 -20
- 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-win32-process/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
- package/node_modules/@deepseek-ai/dsh-working-directory/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +18 -18
- package/node_modules/@earendil-works/pi-ai/README.md +5 -34
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +59 -54
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +16 -18
- package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +29 -27
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +15 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +21 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +28 -15
- package/node_modules/@earendil-works/pi-ai/dist/index.js +0 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.js +8 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js +26 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +5 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +3 -0
- package/node_modules/@earendil-works/pi-ai/package.json +2 -2
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/minisearch/LICENSE.txt +7 -0
- package/node_modules/minisearch/README.md +347 -0
- package/node_modules/minisearch/dist/cjs/SearchableMap.cjs +549 -0
- package/node_modules/minisearch/dist/cjs/index.cjs +2007 -0
- package/node_modules/minisearch/dist/es/SearchableMap.js +547 -0
- package/node_modules/minisearch/dist/es/index.js +2005 -0
- package/node_modules/minisearch/dist/umd/SearchableMap.js +555 -0
- package/node_modules/minisearch/dist/umd/index.js +2013 -0
- package/node_modules/minisearch/package.json +90 -0
- package/node_modules/minisearch/src/MiniSearch.test.js +1997 -0
- package/node_modules/minisearch/src/MiniSearch.ts +2261 -0
- package/node_modules/minisearch/src/SearchableMap/SearchableMap.test.js +314 -0
- package/node_modules/minisearch/src/SearchableMap/SearchableMap.ts +424 -0
- package/node_modules/minisearch/src/SearchableMap/TreeIterator.ts +103 -0
- package/node_modules/minisearch/src/SearchableMap/fuzzySearch.ts +130 -0
- package/node_modules/minisearch/src/SearchableMap/types.ts +18 -0
- package/node_modules/minisearch/src/index.ts +4 -0
- package/node_modules/minisearch/src/testSetup/jest.js +1 -0
- package/package.json +305 -301
- package/node_modules/@deepseek-ai/dsh-client-store/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-client-store/README.i18n.yaml +0 -28
- package/node_modules/@deepseek-ai/dsh-client-store/README.md +0 -46
- package/node_modules/@deepseek-ai/dsh-client-store/README.zh.md +0 -46
- package/node_modules/@deepseek-ai/dsh-client-store/lib/index.js +0 -180
- package/node_modules/@deepseek-ai/dsh-client-store/lib/types/contract.d.ts +0 -121
- package/node_modules/@deepseek-ai/dsh-client-store/lib/types/index.d.ts +0 -92
- package/node_modules/@deepseek-ai/dsh-client-store/package.json +0 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +0 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +0 -221
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +0 -221
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +0 -77
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +0 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CodeCard.module.css +0 -83
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CommandText.module.css +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +0 -118
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +0 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +0 -111
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/FileTypeIcon.module.css +0 -50
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +0 -90
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +0 -54
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImagePreview.module.css +0 -24
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/InlineEditor.module.css +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +0 -38
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +0 -345
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +0 -285
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +0 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuSurface.module.css +0 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +0 -129
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +0 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/PathLabel.module.css +0 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +0 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +0 -43
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +0 -73
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +0 -112
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +0 -76
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +0 -55
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ShortcutKeys.module.css +0 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +0 -100
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +0 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tag.module.css +0 -57
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +0 -205
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TextShimmer.module.css +0 -88
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +0 -101
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +0 -63
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +0 -141
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +0 -12583
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +0 -145
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +0 -32
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +0 -467
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +0 -53
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +0 -145
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/BrandWordmark.d.ts +0 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +0 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Checkbox.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeFileIcon.d.ts +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeToolbar.d.ts +0 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CommandText.d.ts +0 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConfigField.d.ts +0 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConnectionIndicator.d.ts +0 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +0 -52
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +0 -38
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FileTypeIcon.d.ts +0 -43
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FishLogo.d.ts +0 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FoldToggle.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +0 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCardGroup.d.ts +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImageLightbox.d.ts +0 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImagePreview.d.ts +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/InlineEditor.d.ts +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/JsonTree.d.ts +0 -59
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +0 -34
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +0 -143
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuSurface.d.ts +0 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +0 -44
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PathLabel.d.ts +0 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PermissionIcon.d.ts +0 -51
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Pill.d.ts +0 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +0 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +0 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/RiskConfirmation.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SearchBlock.d.ts +0 -72
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedControl.d.ts +0 -35
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedTabs.d.ts +0 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ShortcutKeys.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +0 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Switch.d.ts +0 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tag.d.ts +0 -32
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +0 -86
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TextShimmer.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +0 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +0 -63
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/WebBlock.d.ts +0 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ansi.d.ts +0 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/clipboard.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-icon-artwork.d.ts +0 -54
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +0 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +0 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/darwin-desktop.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-size.d.ts +0 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/focus.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/guide-artwork.d.ts +0 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/head-tail-cap.d.ts +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +0 -385
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +0 -43
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +0 -102
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/input-modality.d.ts +0 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/keyboard-composition.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +0 -35
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/JsonBlock.d.ts +0 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +0 -46
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownText.d.ts +0 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/cjkFriendlyStrong.d.ts +0 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/file-link.d.ts +0 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +0 -148
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/incremental.d.ts +0 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/katex.d.ts +0 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/local-image-syntax.d.ts +0 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/mathCompatibility.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/parse.d.ts +0 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/plain-text.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +0 -141
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/useViewportHighlighting.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/overlay-top-margin.d.ts +0 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +0 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/pointer-grace.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/rank-by-name.d.ts +0 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/relative-time.d.ts +0 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/SettingsForm.d.ts +0 -46
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +0 -70
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/form-model.d.ts +0 -214
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-copy-feedback.d.ts +0 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +0 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +0 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useDismissOnOutsidePointer.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useModalLayer.d.ts +0 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +0 -29
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +0 -46
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +0 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +0 -55
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.md +0 -111
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.zh.md +0 -111
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/index.js +0 -577
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/index.d.ts +0 -955
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/renderer.d.ts +0 -271
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/store.d.ts +0 -3
- package/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js +0 -425
|
@@ -0,0 +1,1759 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: true
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
//#endregion
|
|
24
|
+
let node_worker_threads = require("node:worker_threads");
|
|
25
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
|
|
26
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
27
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
28
|
+
const MAX_LENGTH = 256;
|
|
29
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
30
|
+
module.exports = {
|
|
31
|
+
MAX_LENGTH,
|
|
32
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
33
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
34
|
+
MAX_SAFE_INTEGER,
|
|
35
|
+
RELEASE_TYPES: [
|
|
36
|
+
"major",
|
|
37
|
+
"premajor",
|
|
38
|
+
"minor",
|
|
39
|
+
"preminor",
|
|
40
|
+
"patch",
|
|
41
|
+
"prepatch",
|
|
42
|
+
"prerelease"
|
|
43
|
+
],
|
|
44
|
+
SEMVER_SPEC_VERSION,
|
|
45
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
46
|
+
FLAG_LOOSE: 2
|
|
47
|
+
};
|
|
48
|
+
}));
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js
|
|
51
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
52
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
53
|
+
}));
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js
|
|
56
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
58
|
+
const debug = require_debug();
|
|
59
|
+
exports = module.exports = {};
|
|
60
|
+
const re = exports.re = [];
|
|
61
|
+
const safeRe = exports.safeRe = [];
|
|
62
|
+
const src = exports.src = [];
|
|
63
|
+
const safeSrc = exports.safeSrc = [];
|
|
64
|
+
const t = exports.t = {};
|
|
65
|
+
let R = 0;
|
|
66
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
67
|
+
const safeRegexReplacements = [
|
|
68
|
+
["\\s", 1],
|
|
69
|
+
["\\d", MAX_LENGTH],
|
|
70
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
71
|
+
];
|
|
72
|
+
const makeSafeRegex = (value) => {
|
|
73
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
74
|
+
return value;
|
|
75
|
+
};
|
|
76
|
+
const createToken = (name, value, isGlobal) => {
|
|
77
|
+
const safe = makeSafeRegex(value);
|
|
78
|
+
const index = R++;
|
|
79
|
+
debug(name, index, value);
|
|
80
|
+
t[name] = index;
|
|
81
|
+
src[index] = value;
|
|
82
|
+
safeSrc[index] = safe;
|
|
83
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
84
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
85
|
+
};
|
|
86
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
87
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
88
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
89
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
90
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
91
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
92
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
93
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
94
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
95
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
96
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
97
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
98
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
99
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
100
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
101
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
102
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
103
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
104
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
105
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
106
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
107
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
108
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
109
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
110
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
111
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
112
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
113
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
114
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
115
|
+
exports.tildeTrimReplace = "$1~";
|
|
116
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
117
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
118
|
+
createToken("LONECARET", "(?:\\^)");
|
|
119
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
120
|
+
exports.caretTrimReplace = "$1^";
|
|
121
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
122
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
123
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
124
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
125
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
126
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
127
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
128
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
129
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
130
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
131
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
132
|
+
}));
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js
|
|
135
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
136
|
+
const looseOption = Object.freeze({ loose: true });
|
|
137
|
+
const emptyOpts = Object.freeze({});
|
|
138
|
+
const parseOptions = (options) => {
|
|
139
|
+
if (!options) return emptyOpts;
|
|
140
|
+
if (typeof options !== "object") return looseOption;
|
|
141
|
+
return options;
|
|
142
|
+
};
|
|
143
|
+
module.exports = parseOptions;
|
|
144
|
+
}));
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js
|
|
147
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
148
|
+
const numeric = /^[0-9]+$/;
|
|
149
|
+
const compareIdentifiers = (a, b) => {
|
|
150
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
151
|
+
const anum = numeric.test(a);
|
|
152
|
+
const bnum = numeric.test(b);
|
|
153
|
+
if (anum && bnum) {
|
|
154
|
+
a = +a;
|
|
155
|
+
b = +b;
|
|
156
|
+
}
|
|
157
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
158
|
+
};
|
|
159
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
160
|
+
module.exports = {
|
|
161
|
+
compareIdentifiers,
|
|
162
|
+
rcompareIdentifiers
|
|
163
|
+
};
|
|
164
|
+
}));
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js
|
|
167
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
168
|
+
const debug = require_debug();
|
|
169
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
170
|
+
const { safeRe: re, t } = require_re();
|
|
171
|
+
const parseOptions = require_parse_options();
|
|
172
|
+
const { compareIdentifiers } = require_identifiers();
|
|
173
|
+
const isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
174
|
+
const identifiers = identifier.split(".");
|
|
175
|
+
if (identifiers.length > prerelease.length) return false;
|
|
176
|
+
for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
|
|
177
|
+
return true;
|
|
178
|
+
};
|
|
179
|
+
module.exports = class SemVer {
|
|
180
|
+
constructor(version, options) {
|
|
181
|
+
options = parseOptions(options);
|
|
182
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
183
|
+
else version = version.version;
|
|
184
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
185
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
186
|
+
debug("SemVer", version, options);
|
|
187
|
+
this.options = options;
|
|
188
|
+
this.loose = !!options.loose;
|
|
189
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
190
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
191
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
192
|
+
this.raw = version;
|
|
193
|
+
this.major = +m[1];
|
|
194
|
+
this.minor = +m[2];
|
|
195
|
+
this.patch = +m[3];
|
|
196
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
197
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
198
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
199
|
+
if (!m[4]) this.prerelease = [];
|
|
200
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
201
|
+
if (/^[0-9]+$/.test(id)) {
|
|
202
|
+
const num = +id;
|
|
203
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
204
|
+
}
|
|
205
|
+
return id;
|
|
206
|
+
});
|
|
207
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
208
|
+
this.format();
|
|
209
|
+
}
|
|
210
|
+
format() {
|
|
211
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
212
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
213
|
+
return this.version;
|
|
214
|
+
}
|
|
215
|
+
toString() {
|
|
216
|
+
return this.version;
|
|
217
|
+
}
|
|
218
|
+
compare(other) {
|
|
219
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
220
|
+
if (!(other instanceof SemVer)) {
|
|
221
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
222
|
+
other = new SemVer(other, this.options);
|
|
223
|
+
}
|
|
224
|
+
if (other.version === this.version) return 0;
|
|
225
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
226
|
+
}
|
|
227
|
+
compareMain(other) {
|
|
228
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
229
|
+
if (this.major < other.major) return -1;
|
|
230
|
+
if (this.major > other.major) return 1;
|
|
231
|
+
if (this.minor < other.minor) return -1;
|
|
232
|
+
if (this.minor > other.minor) return 1;
|
|
233
|
+
if (this.patch < other.patch) return -1;
|
|
234
|
+
if (this.patch > other.patch) return 1;
|
|
235
|
+
return 0;
|
|
236
|
+
}
|
|
237
|
+
comparePre(other) {
|
|
238
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
239
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
240
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
241
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
242
|
+
let i = 0;
|
|
243
|
+
do {
|
|
244
|
+
const a = this.prerelease[i];
|
|
245
|
+
const b = other.prerelease[i];
|
|
246
|
+
debug("prerelease compare", i, a, b);
|
|
247
|
+
if (a === void 0 && b === void 0) return 0;
|
|
248
|
+
else if (b === void 0) return 1;
|
|
249
|
+
else if (a === void 0) return -1;
|
|
250
|
+
else if (a === b) continue;
|
|
251
|
+
else return compareIdentifiers(a, b);
|
|
252
|
+
} while (++i);
|
|
253
|
+
}
|
|
254
|
+
compareBuild(other) {
|
|
255
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
256
|
+
let i = 0;
|
|
257
|
+
do {
|
|
258
|
+
const a = this.build[i];
|
|
259
|
+
const b = other.build[i];
|
|
260
|
+
debug("build compare", i, a, b);
|
|
261
|
+
if (a === void 0 && b === void 0) return 0;
|
|
262
|
+
else if (b === void 0) return 1;
|
|
263
|
+
else if (a === void 0) return -1;
|
|
264
|
+
else if (a === b) continue;
|
|
265
|
+
else return compareIdentifiers(a, b);
|
|
266
|
+
} while (++i);
|
|
267
|
+
}
|
|
268
|
+
inc(release, identifier, identifierBase) {
|
|
269
|
+
if (release.startsWith("pre")) {
|
|
270
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
271
|
+
if (identifier) {
|
|
272
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
273
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
switch (release) {
|
|
277
|
+
case "premajor":
|
|
278
|
+
this.prerelease.length = 0;
|
|
279
|
+
this.patch = 0;
|
|
280
|
+
this.minor = 0;
|
|
281
|
+
this.major++;
|
|
282
|
+
this.inc("pre", identifier, identifierBase);
|
|
283
|
+
break;
|
|
284
|
+
case "preminor":
|
|
285
|
+
this.prerelease.length = 0;
|
|
286
|
+
this.patch = 0;
|
|
287
|
+
this.minor++;
|
|
288
|
+
this.inc("pre", identifier, identifierBase);
|
|
289
|
+
break;
|
|
290
|
+
case "prepatch":
|
|
291
|
+
this.prerelease.length = 0;
|
|
292
|
+
this.inc("patch", identifier, identifierBase);
|
|
293
|
+
this.inc("pre", identifier, identifierBase);
|
|
294
|
+
break;
|
|
295
|
+
case "prerelease":
|
|
296
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
297
|
+
this.inc("pre", identifier, identifierBase);
|
|
298
|
+
break;
|
|
299
|
+
case "release":
|
|
300
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
301
|
+
this.prerelease.length = 0;
|
|
302
|
+
break;
|
|
303
|
+
case "major":
|
|
304
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
305
|
+
this.minor = 0;
|
|
306
|
+
this.patch = 0;
|
|
307
|
+
this.prerelease = [];
|
|
308
|
+
break;
|
|
309
|
+
case "minor":
|
|
310
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
311
|
+
this.patch = 0;
|
|
312
|
+
this.prerelease = [];
|
|
313
|
+
break;
|
|
314
|
+
case "patch":
|
|
315
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
316
|
+
this.prerelease = [];
|
|
317
|
+
break;
|
|
318
|
+
case "pre": {
|
|
319
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
320
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
321
|
+
else {
|
|
322
|
+
let i = this.prerelease.length;
|
|
323
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
324
|
+
this.prerelease[i]++;
|
|
325
|
+
i = -2;
|
|
326
|
+
}
|
|
327
|
+
if (i === -1) {
|
|
328
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
329
|
+
this.prerelease.push(base);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
if (identifier) {
|
|
333
|
+
let prerelease = [identifier, base];
|
|
334
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
335
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
336
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
337
|
+
if (isNaN(prereleaseBase)) this.prerelease = prerelease;
|
|
338
|
+
} else this.prerelease = prerelease;
|
|
339
|
+
}
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
343
|
+
}
|
|
344
|
+
this.raw = this.format();
|
|
345
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
346
|
+
return this;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
}));
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js
|
|
352
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
353
|
+
const SemVer = require_semver$1();
|
|
354
|
+
const parse = (version, options, throwErrors = false) => {
|
|
355
|
+
if (version instanceof SemVer) return version;
|
|
356
|
+
try {
|
|
357
|
+
return new SemVer(version, options);
|
|
358
|
+
} catch (er) {
|
|
359
|
+
if (!throwErrors) return null;
|
|
360
|
+
throw er;
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
module.exports = parse;
|
|
364
|
+
}));
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js
|
|
367
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
368
|
+
const parse = require_parse();
|
|
369
|
+
const valid = (version, options) => {
|
|
370
|
+
const v = parse(version, options);
|
|
371
|
+
return v ? v.version : null;
|
|
372
|
+
};
|
|
373
|
+
module.exports = valid;
|
|
374
|
+
}));
|
|
375
|
+
//#endregion
|
|
376
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js
|
|
377
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
378
|
+
const parse = require_parse();
|
|
379
|
+
const clean = (version, options) => {
|
|
380
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
381
|
+
return s ? s.version : null;
|
|
382
|
+
};
|
|
383
|
+
module.exports = clean;
|
|
384
|
+
}));
|
|
385
|
+
//#endregion
|
|
386
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js
|
|
387
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
388
|
+
const SemVer = require_semver$1();
|
|
389
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
390
|
+
if (typeof options === "string") {
|
|
391
|
+
identifierBase = identifier;
|
|
392
|
+
identifier = options;
|
|
393
|
+
options = void 0;
|
|
394
|
+
}
|
|
395
|
+
try {
|
|
396
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
397
|
+
} catch (er) {
|
|
398
|
+
return null;
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
module.exports = inc;
|
|
402
|
+
}));
|
|
403
|
+
//#endregion
|
|
404
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js
|
|
405
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
406
|
+
const parse = require_parse();
|
|
407
|
+
const diff = (version1, version2) => {
|
|
408
|
+
const v1 = parse(version1, null, true);
|
|
409
|
+
const v2 = parse(version2, null, true);
|
|
410
|
+
const comparison = v1.compare(v2);
|
|
411
|
+
if (comparison === 0) return null;
|
|
412
|
+
const v1Higher = comparison > 0;
|
|
413
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
414
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
415
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
416
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
417
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
418
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
419
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
420
|
+
return "patch";
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
const prefix = highHasPre ? "pre" : "";
|
|
424
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
425
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
426
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
427
|
+
return "prerelease";
|
|
428
|
+
};
|
|
429
|
+
module.exports = diff;
|
|
430
|
+
}));
|
|
431
|
+
//#endregion
|
|
432
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js
|
|
433
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
434
|
+
const SemVer = require_semver$1();
|
|
435
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
436
|
+
module.exports = major;
|
|
437
|
+
}));
|
|
438
|
+
//#endregion
|
|
439
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js
|
|
440
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
441
|
+
const SemVer = require_semver$1();
|
|
442
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
443
|
+
module.exports = minor;
|
|
444
|
+
}));
|
|
445
|
+
//#endregion
|
|
446
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js
|
|
447
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
448
|
+
const SemVer = require_semver$1();
|
|
449
|
+
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
450
|
+
module.exports = patch;
|
|
451
|
+
}));
|
|
452
|
+
//#endregion
|
|
453
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js
|
|
454
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
455
|
+
const parse = require_parse();
|
|
456
|
+
const prerelease = (version, options) => {
|
|
457
|
+
const parsed = parse(version, options);
|
|
458
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
459
|
+
};
|
|
460
|
+
module.exports = prerelease;
|
|
461
|
+
}));
|
|
462
|
+
//#endregion
|
|
463
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js
|
|
464
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
465
|
+
const SemVer = require_semver$1();
|
|
466
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
467
|
+
module.exports = compare;
|
|
468
|
+
}));
|
|
469
|
+
//#endregion
|
|
470
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js
|
|
471
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
472
|
+
const compare = require_compare();
|
|
473
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
474
|
+
module.exports = rcompare;
|
|
475
|
+
}));
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js
|
|
478
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
479
|
+
const compare = require_compare();
|
|
480
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
481
|
+
module.exports = compareLoose;
|
|
482
|
+
}));
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js
|
|
485
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
486
|
+
const SemVer = require_semver$1();
|
|
487
|
+
const compareBuild = (a, b, loose) => {
|
|
488
|
+
const versionA = new SemVer(a, loose);
|
|
489
|
+
const versionB = new SemVer(b, loose);
|
|
490
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
491
|
+
};
|
|
492
|
+
module.exports = compareBuild;
|
|
493
|
+
}));
|
|
494
|
+
//#endregion
|
|
495
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js
|
|
496
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
497
|
+
const compareBuild = require_compare_build();
|
|
498
|
+
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
499
|
+
module.exports = sort;
|
|
500
|
+
}));
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js
|
|
503
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
504
|
+
const compareBuild = require_compare_build();
|
|
505
|
+
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
506
|
+
module.exports = rsort;
|
|
507
|
+
}));
|
|
508
|
+
//#endregion
|
|
509
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js
|
|
510
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
511
|
+
const compare = require_compare();
|
|
512
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
513
|
+
module.exports = gt;
|
|
514
|
+
}));
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js
|
|
517
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
518
|
+
const compare = require_compare();
|
|
519
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
520
|
+
module.exports = lt;
|
|
521
|
+
}));
|
|
522
|
+
//#endregion
|
|
523
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js
|
|
524
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
525
|
+
const compare = require_compare();
|
|
526
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
527
|
+
module.exports = eq;
|
|
528
|
+
}));
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js
|
|
531
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
532
|
+
const compare = require_compare();
|
|
533
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
534
|
+
module.exports = neq;
|
|
535
|
+
}));
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js
|
|
538
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
539
|
+
const compare = require_compare();
|
|
540
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
541
|
+
module.exports = gte;
|
|
542
|
+
}));
|
|
543
|
+
//#endregion
|
|
544
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js
|
|
545
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
546
|
+
const compare = require_compare();
|
|
547
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
548
|
+
module.exports = lte;
|
|
549
|
+
}));
|
|
550
|
+
//#endregion
|
|
551
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js
|
|
552
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
553
|
+
const eq = require_eq();
|
|
554
|
+
const neq = require_neq();
|
|
555
|
+
const gt = require_gt();
|
|
556
|
+
const gte = require_gte();
|
|
557
|
+
const lt = require_lt();
|
|
558
|
+
const lte = require_lte();
|
|
559
|
+
const cmp = (a, op, b, loose) => {
|
|
560
|
+
switch (op) {
|
|
561
|
+
case "===":
|
|
562
|
+
if (typeof a === "object") a = a.version;
|
|
563
|
+
if (typeof b === "object") b = b.version;
|
|
564
|
+
return a === b;
|
|
565
|
+
case "!==":
|
|
566
|
+
if (typeof a === "object") a = a.version;
|
|
567
|
+
if (typeof b === "object") b = b.version;
|
|
568
|
+
return a !== b;
|
|
569
|
+
case "":
|
|
570
|
+
case "=":
|
|
571
|
+
case "==": return eq(a, b, loose);
|
|
572
|
+
case "!=": return neq(a, b, loose);
|
|
573
|
+
case ">": return gt(a, b, loose);
|
|
574
|
+
case ">=": return gte(a, b, loose);
|
|
575
|
+
case "<": return lt(a, b, loose);
|
|
576
|
+
case "<=": return lte(a, b, loose);
|
|
577
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
module.exports = cmp;
|
|
581
|
+
}));
|
|
582
|
+
//#endregion
|
|
583
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js
|
|
584
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
585
|
+
const SemVer = require_semver$1();
|
|
586
|
+
const parse = require_parse();
|
|
587
|
+
const { safeRe: re, t } = require_re();
|
|
588
|
+
const coerce = (version, options) => {
|
|
589
|
+
if (version instanceof SemVer) return version;
|
|
590
|
+
if (typeof version === "number") version = String(version);
|
|
591
|
+
if (typeof version !== "string") return null;
|
|
592
|
+
options = options || {};
|
|
593
|
+
let match = null;
|
|
594
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
595
|
+
else {
|
|
596
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
597
|
+
let next;
|
|
598
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
599
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
600
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
601
|
+
}
|
|
602
|
+
coerceRtlRegex.lastIndex = -1;
|
|
603
|
+
}
|
|
604
|
+
if (match === null) return null;
|
|
605
|
+
const major = match[2];
|
|
606
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
607
|
+
};
|
|
608
|
+
module.exports = coerce;
|
|
609
|
+
}));
|
|
610
|
+
//#endregion
|
|
611
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js
|
|
612
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
613
|
+
const parse = require_parse();
|
|
614
|
+
const constants = require_constants();
|
|
615
|
+
const SemVer = require_semver$1();
|
|
616
|
+
const truncate = (version, truncation, options) => {
|
|
617
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
618
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
619
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
620
|
+
};
|
|
621
|
+
const cloneInputVersion = (version, options) => {
|
|
622
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
623
|
+
};
|
|
624
|
+
const doTruncation = (version, truncation) => {
|
|
625
|
+
if (isPrerelease(truncation)) return version.version;
|
|
626
|
+
version.prerelease = [];
|
|
627
|
+
switch (truncation) {
|
|
628
|
+
case "major":
|
|
629
|
+
version.minor = 0;
|
|
630
|
+
version.patch = 0;
|
|
631
|
+
break;
|
|
632
|
+
case "minor":
|
|
633
|
+
version.patch = 0;
|
|
634
|
+
break;
|
|
635
|
+
}
|
|
636
|
+
return version.format();
|
|
637
|
+
};
|
|
638
|
+
const isPrerelease = (type) => {
|
|
639
|
+
return type.startsWith("pre");
|
|
640
|
+
};
|
|
641
|
+
module.exports = truncate;
|
|
642
|
+
}));
|
|
643
|
+
//#endregion
|
|
644
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js
|
|
645
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
646
|
+
var LRUCache = class {
|
|
647
|
+
constructor() {
|
|
648
|
+
this.max = 1e3;
|
|
649
|
+
this.map = /* @__PURE__ */ new Map();
|
|
650
|
+
}
|
|
651
|
+
get(key) {
|
|
652
|
+
const value = this.map.get(key);
|
|
653
|
+
if (value === void 0) return;
|
|
654
|
+
else {
|
|
655
|
+
this.map.delete(key);
|
|
656
|
+
this.map.set(key, value);
|
|
657
|
+
return value;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
delete(key) {
|
|
661
|
+
return this.map.delete(key);
|
|
662
|
+
}
|
|
663
|
+
set(key, value) {
|
|
664
|
+
if (!this.delete(key) && value !== void 0) {
|
|
665
|
+
if (this.map.size >= this.max) {
|
|
666
|
+
const firstKey = this.map.keys().next().value;
|
|
667
|
+
this.delete(firstKey);
|
|
668
|
+
}
|
|
669
|
+
this.map.set(key, value);
|
|
670
|
+
}
|
|
671
|
+
return this;
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
module.exports = LRUCache;
|
|
675
|
+
}));
|
|
676
|
+
//#endregion
|
|
677
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js
|
|
678
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
679
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
680
|
+
module.exports = class Range {
|
|
681
|
+
constructor(range, options) {
|
|
682
|
+
options = parseOptions(options);
|
|
683
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
684
|
+
else return new Range(range.raw, options);
|
|
685
|
+
if (range instanceof Comparator) {
|
|
686
|
+
this.raw = range.value;
|
|
687
|
+
this.set = [[range]];
|
|
688
|
+
this.formatted = void 0;
|
|
689
|
+
return this;
|
|
690
|
+
}
|
|
691
|
+
this.options = options;
|
|
692
|
+
this.loose = !!options.loose;
|
|
693
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
694
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
695
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
696
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
697
|
+
if (this.set.length > 1) {
|
|
698
|
+
const first = this.set[0];
|
|
699
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
700
|
+
if (this.set.length === 0) this.set = [first];
|
|
701
|
+
else if (this.set.length > 1) {
|
|
702
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
703
|
+
this.set = [c];
|
|
704
|
+
break;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
this.formatted = void 0;
|
|
709
|
+
}
|
|
710
|
+
get range() {
|
|
711
|
+
if (this.formatted === void 0) {
|
|
712
|
+
this.formatted = "";
|
|
713
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
714
|
+
if (i > 0) this.formatted += "||";
|
|
715
|
+
const comps = this.set[i];
|
|
716
|
+
for (let k = 0; k < comps.length; k++) {
|
|
717
|
+
if (k > 0) this.formatted += " ";
|
|
718
|
+
this.formatted += comps[k].toString().trim();
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return this.formatted;
|
|
723
|
+
}
|
|
724
|
+
format() {
|
|
725
|
+
return this.range;
|
|
726
|
+
}
|
|
727
|
+
toString() {
|
|
728
|
+
return this.range;
|
|
729
|
+
}
|
|
730
|
+
parseRange(range) {
|
|
731
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
732
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
733
|
+
const cached = cache.get(memoKey);
|
|
734
|
+
if (cached) return cached;
|
|
735
|
+
const loose = this.options.loose;
|
|
736
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
737
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
738
|
+
debug("hyphen replace", range);
|
|
739
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
740
|
+
debug("comparator trim", range);
|
|
741
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
742
|
+
debug("tilde trim", range);
|
|
743
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
744
|
+
debug("caret trim", range);
|
|
745
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
746
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
747
|
+
debug("loose invalid filter", comp, this.options);
|
|
748
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
749
|
+
});
|
|
750
|
+
debug("range list", rangeList);
|
|
751
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
752
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
753
|
+
for (const comp of comparators) {
|
|
754
|
+
if (isNullSet(comp)) return [comp];
|
|
755
|
+
rangeMap.set(comp.value, comp);
|
|
756
|
+
}
|
|
757
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
758
|
+
const result = [...rangeMap.values()];
|
|
759
|
+
cache.set(memoKey, result);
|
|
760
|
+
return result;
|
|
761
|
+
}
|
|
762
|
+
intersects(range, options) {
|
|
763
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
764
|
+
return this.set.some((thisComparators) => {
|
|
765
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
766
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
767
|
+
return rangeComparators.every((rangeComparator) => {
|
|
768
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
769
|
+
});
|
|
770
|
+
});
|
|
771
|
+
});
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
test(version) {
|
|
775
|
+
if (!version) return false;
|
|
776
|
+
if (typeof version === "string") try {
|
|
777
|
+
version = new SemVer(version, this.options);
|
|
778
|
+
} catch (er) {
|
|
779
|
+
return false;
|
|
780
|
+
}
|
|
781
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
782
|
+
return false;
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
const cache = new (require_lrucache())();
|
|
786
|
+
const parseOptions = require_parse_options();
|
|
787
|
+
const Comparator = require_comparator();
|
|
788
|
+
const debug = require_debug();
|
|
789
|
+
const SemVer = require_semver$1();
|
|
790
|
+
const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
791
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
792
|
+
const BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
793
|
+
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
794
|
+
const isAny = (c) => c.value === "";
|
|
795
|
+
const isSatisfiable = (comparators, options) => {
|
|
796
|
+
let result = true;
|
|
797
|
+
const remainingComparators = comparators.slice();
|
|
798
|
+
let testComparator = remainingComparators.pop();
|
|
799
|
+
while (result && remainingComparators.length) {
|
|
800
|
+
result = remainingComparators.every((otherComparator) => {
|
|
801
|
+
return testComparator.intersects(otherComparator, options);
|
|
802
|
+
});
|
|
803
|
+
testComparator = remainingComparators.pop();
|
|
804
|
+
}
|
|
805
|
+
return result;
|
|
806
|
+
};
|
|
807
|
+
const parseComparator = (comp, options) => {
|
|
808
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
809
|
+
debug("comp", comp, options);
|
|
810
|
+
comp = replaceCarets(comp, options);
|
|
811
|
+
debug("caret", comp);
|
|
812
|
+
comp = replaceTildes(comp, options);
|
|
813
|
+
debug("tildes", comp);
|
|
814
|
+
comp = replaceXRanges(comp, options);
|
|
815
|
+
debug("xrange", comp);
|
|
816
|
+
comp = replaceStars(comp, options);
|
|
817
|
+
debug("stars", comp);
|
|
818
|
+
return comp;
|
|
819
|
+
};
|
|
820
|
+
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
821
|
+
const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
822
|
+
const replaceTildes = (comp, options) => {
|
|
823
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
824
|
+
};
|
|
825
|
+
const replaceTilde = (comp, options) => {
|
|
826
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
827
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
828
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
829
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
830
|
+
let ret;
|
|
831
|
+
if (isX(M)) ret = "";
|
|
832
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
833
|
+
else if (isX(p)) ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
834
|
+
else if (pr) {
|
|
835
|
+
debug("replaceTilde pr", pr);
|
|
836
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
837
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
838
|
+
debug("tilde return", ret);
|
|
839
|
+
return ret;
|
|
840
|
+
});
|
|
841
|
+
};
|
|
842
|
+
const replaceCarets = (comp, options) => {
|
|
843
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
844
|
+
};
|
|
845
|
+
const replaceCaret = (comp, options) => {
|
|
846
|
+
debug("caret", comp, options);
|
|
847
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
848
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
849
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
850
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
851
|
+
let ret;
|
|
852
|
+
if (isX(M)) ret = "";
|
|
853
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
854
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
855
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
856
|
+
else if (pr) {
|
|
857
|
+
debug("replaceCaret pr", pr);
|
|
858
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
859
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
860
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
861
|
+
} else {
|
|
862
|
+
debug("no pr");
|
|
863
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
864
|
+
else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
865
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
866
|
+
}
|
|
867
|
+
debug("caret return", ret);
|
|
868
|
+
return ret;
|
|
869
|
+
});
|
|
870
|
+
};
|
|
871
|
+
const replaceXRanges = (comp, options) => {
|
|
872
|
+
debug("replaceXRanges", comp, options);
|
|
873
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
874
|
+
};
|
|
875
|
+
const replaceXRange = (comp, options) => {
|
|
876
|
+
comp = comp.trim();
|
|
877
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
878
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
879
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
880
|
+
if (invalidXRangeOrder(M, m, p)) return comp;
|
|
881
|
+
const xM = isX(M);
|
|
882
|
+
const xm = xM || isX(m);
|
|
883
|
+
const xp = xm || isX(p);
|
|
884
|
+
const anyX = xp;
|
|
885
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
886
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
887
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
888
|
+
else ret = "*";
|
|
889
|
+
else if (gtlt && anyX) {
|
|
890
|
+
if (xm) m = 0;
|
|
891
|
+
p = 0;
|
|
892
|
+
if (gtlt === ">") {
|
|
893
|
+
gtlt = ">=";
|
|
894
|
+
if (xm) {
|
|
895
|
+
M = +M + 1;
|
|
896
|
+
m = 0;
|
|
897
|
+
p = 0;
|
|
898
|
+
} else {
|
|
899
|
+
m = +m + 1;
|
|
900
|
+
p = 0;
|
|
901
|
+
}
|
|
902
|
+
} else if (gtlt === "<=") {
|
|
903
|
+
gtlt = "<";
|
|
904
|
+
if (xm) M = +M + 1;
|
|
905
|
+
else m = +m + 1;
|
|
906
|
+
}
|
|
907
|
+
if (gtlt === "<") pr = "-0";
|
|
908
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
909
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
910
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
911
|
+
debug("xRange return", ret);
|
|
912
|
+
return ret;
|
|
913
|
+
});
|
|
914
|
+
};
|
|
915
|
+
const replaceStars = (comp, options) => {
|
|
916
|
+
debug("replaceStars", comp, options);
|
|
917
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
918
|
+
};
|
|
919
|
+
const replaceGTE0 = (comp, options) => {
|
|
920
|
+
debug("replaceGTE0", comp, options);
|
|
921
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
922
|
+
};
|
|
923
|
+
const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
924
|
+
if (isX(fM)) from = "";
|
|
925
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
926
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
927
|
+
else if (fpr) from = `>=${from}`;
|
|
928
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
929
|
+
if (isX(tM)) to = "";
|
|
930
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
931
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
932
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
933
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
934
|
+
else to = `<=${to}`;
|
|
935
|
+
return `${from} ${to}`.trim();
|
|
936
|
+
};
|
|
937
|
+
const testSet = (set, version, options) => {
|
|
938
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
939
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
940
|
+
for (let i = 0; i < set.length; i++) {
|
|
941
|
+
debug(set[i].semver);
|
|
942
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
943
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
944
|
+
const allowed = set[i].semver;
|
|
945
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
return false;
|
|
949
|
+
}
|
|
950
|
+
return true;
|
|
951
|
+
};
|
|
952
|
+
}));
|
|
953
|
+
//#endregion
|
|
954
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js
|
|
955
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
956
|
+
const ANY = Symbol("SemVer ANY");
|
|
957
|
+
module.exports = class Comparator {
|
|
958
|
+
static get ANY() {
|
|
959
|
+
return ANY;
|
|
960
|
+
}
|
|
961
|
+
constructor(comp, options) {
|
|
962
|
+
options = parseOptions(options);
|
|
963
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
964
|
+
else comp = comp.value;
|
|
965
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
966
|
+
debug("comparator", comp, options);
|
|
967
|
+
this.options = options;
|
|
968
|
+
this.loose = !!options.loose;
|
|
969
|
+
this.parse(comp);
|
|
970
|
+
if (this.semver === ANY) this.value = "";
|
|
971
|
+
else this.value = this.operator + this.semver.version;
|
|
972
|
+
debug("comp", this);
|
|
973
|
+
}
|
|
974
|
+
parse(comp) {
|
|
975
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
976
|
+
const m = comp.match(r);
|
|
977
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
978
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
979
|
+
if (this.operator === "=") this.operator = "";
|
|
980
|
+
if (!m[2]) this.semver = ANY;
|
|
981
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
982
|
+
}
|
|
983
|
+
toString() {
|
|
984
|
+
return this.value;
|
|
985
|
+
}
|
|
986
|
+
test(version) {
|
|
987
|
+
debug("Comparator.test", version, this.options.loose);
|
|
988
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
989
|
+
if (typeof version === "string") try {
|
|
990
|
+
version = new SemVer(version, this.options);
|
|
991
|
+
} catch (er) {
|
|
992
|
+
return false;
|
|
993
|
+
}
|
|
994
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
995
|
+
}
|
|
996
|
+
intersects(comp, options) {
|
|
997
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
998
|
+
if (this.operator === "") {
|
|
999
|
+
if (this.value === "") return true;
|
|
1000
|
+
return new Range(comp.value, options).test(this.value);
|
|
1001
|
+
} else if (comp.operator === "") {
|
|
1002
|
+
if (comp.value === "") return true;
|
|
1003
|
+
return new Range(this.value, options).test(comp.semver);
|
|
1004
|
+
}
|
|
1005
|
+
options = parseOptions(options);
|
|
1006
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
1007
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
1008
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
1009
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
1010
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
1011
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
1012
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
1013
|
+
return false;
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
const parseOptions = require_parse_options();
|
|
1017
|
+
const { safeRe: re, t } = require_re();
|
|
1018
|
+
const cmp = require_cmp();
|
|
1019
|
+
const debug = require_debug();
|
|
1020
|
+
const SemVer = require_semver$1();
|
|
1021
|
+
const Range = require_range();
|
|
1022
|
+
}));
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js
|
|
1025
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1026
|
+
const Range = require_range();
|
|
1027
|
+
const satisfies = (version, range, options) => {
|
|
1028
|
+
try {
|
|
1029
|
+
range = new Range(range, options);
|
|
1030
|
+
} catch (er) {
|
|
1031
|
+
return false;
|
|
1032
|
+
}
|
|
1033
|
+
return range.test(version);
|
|
1034
|
+
};
|
|
1035
|
+
module.exports = satisfies;
|
|
1036
|
+
}));
|
|
1037
|
+
//#endregion
|
|
1038
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js
|
|
1039
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1040
|
+
const Range = require_range();
|
|
1041
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1042
|
+
module.exports = toComparators;
|
|
1043
|
+
}));
|
|
1044
|
+
//#endregion
|
|
1045
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js
|
|
1046
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1047
|
+
const SemVer = require_semver$1();
|
|
1048
|
+
const Range = require_range();
|
|
1049
|
+
const maxSatisfying = (versions, range, options) => {
|
|
1050
|
+
let max = null;
|
|
1051
|
+
let maxSV = null;
|
|
1052
|
+
let rangeObj = null;
|
|
1053
|
+
try {
|
|
1054
|
+
rangeObj = new Range(range, options);
|
|
1055
|
+
} catch (er) {
|
|
1056
|
+
return null;
|
|
1057
|
+
}
|
|
1058
|
+
versions.forEach((v) => {
|
|
1059
|
+
if (rangeObj.test(v)) {
|
|
1060
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
1061
|
+
max = v;
|
|
1062
|
+
maxSV = new SemVer(max, options);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
return max;
|
|
1067
|
+
};
|
|
1068
|
+
module.exports = maxSatisfying;
|
|
1069
|
+
}));
|
|
1070
|
+
//#endregion
|
|
1071
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js
|
|
1072
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1073
|
+
const SemVer = require_semver$1();
|
|
1074
|
+
const Range = require_range();
|
|
1075
|
+
const minSatisfying = (versions, range, options) => {
|
|
1076
|
+
let min = null;
|
|
1077
|
+
let minSV = null;
|
|
1078
|
+
let rangeObj = null;
|
|
1079
|
+
try {
|
|
1080
|
+
rangeObj = new Range(range, options);
|
|
1081
|
+
} catch (er) {
|
|
1082
|
+
return null;
|
|
1083
|
+
}
|
|
1084
|
+
versions.forEach((v) => {
|
|
1085
|
+
if (rangeObj.test(v)) {
|
|
1086
|
+
if (!min || minSV.compare(v) === 1) {
|
|
1087
|
+
min = v;
|
|
1088
|
+
minSV = new SemVer(min, options);
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
return min;
|
|
1093
|
+
};
|
|
1094
|
+
module.exports = minSatisfying;
|
|
1095
|
+
}));
|
|
1096
|
+
//#endregion
|
|
1097
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
|
|
1098
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1099
|
+
const SemVer = require_semver$1();
|
|
1100
|
+
const Range = require_range();
|
|
1101
|
+
const gt = require_gt();
|
|
1102
|
+
const minVersion = (range, loose) => {
|
|
1103
|
+
range = new Range(range, loose);
|
|
1104
|
+
let minver = new SemVer("0.0.0");
|
|
1105
|
+
if (range.test(minver)) return minver;
|
|
1106
|
+
minver = new SemVer("0.0.0-0");
|
|
1107
|
+
if (range.test(minver)) return minver;
|
|
1108
|
+
minver = null;
|
|
1109
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
1110
|
+
const comparators = range.set[i];
|
|
1111
|
+
let setMin = null;
|
|
1112
|
+
comparators.forEach((comparator) => {
|
|
1113
|
+
const compver = new SemVer(comparator.semver.version);
|
|
1114
|
+
switch (comparator.operator) {
|
|
1115
|
+
case ">":
|
|
1116
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
1117
|
+
else compver.prerelease.push(0);
|
|
1118
|
+
compver.raw = compver.format();
|
|
1119
|
+
case "":
|
|
1120
|
+
case ">=":
|
|
1121
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
1122
|
+
break;
|
|
1123
|
+
case "<":
|
|
1124
|
+
case "<=": break;
|
|
1125
|
+
/* istanbul ignore next */
|
|
1126
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1127
|
+
}
|
|
1128
|
+
});
|
|
1129
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
1130
|
+
}
|
|
1131
|
+
if (minver && range.test(minver)) return minver;
|
|
1132
|
+
return null;
|
|
1133
|
+
};
|
|
1134
|
+
module.exports = minVersion;
|
|
1135
|
+
}));
|
|
1136
|
+
//#endregion
|
|
1137
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js
|
|
1138
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1139
|
+
const Range = require_range();
|
|
1140
|
+
const validRange = (range, options) => {
|
|
1141
|
+
try {
|
|
1142
|
+
return new Range(range, options).range || "*";
|
|
1143
|
+
} catch (er) {
|
|
1144
|
+
return null;
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
module.exports = validRange;
|
|
1148
|
+
}));
|
|
1149
|
+
//#endregion
|
|
1150
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js
|
|
1151
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1152
|
+
const SemVer = require_semver$1();
|
|
1153
|
+
const Comparator = require_comparator();
|
|
1154
|
+
const { ANY } = Comparator;
|
|
1155
|
+
const Range = require_range();
|
|
1156
|
+
const satisfies = require_satisfies();
|
|
1157
|
+
const gt = require_gt();
|
|
1158
|
+
const lt = require_lt();
|
|
1159
|
+
const lte = require_lte();
|
|
1160
|
+
const gte = require_gte();
|
|
1161
|
+
const outside = (version, range, hilo, options) => {
|
|
1162
|
+
version = new SemVer(version, options);
|
|
1163
|
+
range = new Range(range, options);
|
|
1164
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1165
|
+
switch (hilo) {
|
|
1166
|
+
case ">":
|
|
1167
|
+
gtfn = gt;
|
|
1168
|
+
ltefn = lte;
|
|
1169
|
+
ltfn = lt;
|
|
1170
|
+
comp = ">";
|
|
1171
|
+
ecomp = ">=";
|
|
1172
|
+
break;
|
|
1173
|
+
case "<":
|
|
1174
|
+
gtfn = lt;
|
|
1175
|
+
ltefn = gte;
|
|
1176
|
+
ltfn = gt;
|
|
1177
|
+
comp = "<";
|
|
1178
|
+
ecomp = "<=";
|
|
1179
|
+
break;
|
|
1180
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
1181
|
+
}
|
|
1182
|
+
if (satisfies(version, range, options)) return false;
|
|
1183
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
1184
|
+
const comparators = range.set[i];
|
|
1185
|
+
let high = null;
|
|
1186
|
+
let low = null;
|
|
1187
|
+
comparators.forEach((comparator) => {
|
|
1188
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
1189
|
+
high = high || comparator;
|
|
1190
|
+
low = low || comparator;
|
|
1191
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
1192
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
1193
|
+
});
|
|
1194
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
1195
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
1196
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
1197
|
+
}
|
|
1198
|
+
return true;
|
|
1199
|
+
};
|
|
1200
|
+
module.exports = outside;
|
|
1201
|
+
}));
|
|
1202
|
+
//#endregion
|
|
1203
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js
|
|
1204
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1205
|
+
const outside = require_outside();
|
|
1206
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1207
|
+
module.exports = gtr;
|
|
1208
|
+
}));
|
|
1209
|
+
//#endregion
|
|
1210
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js
|
|
1211
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1212
|
+
const outside = require_outside();
|
|
1213
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1214
|
+
module.exports = ltr;
|
|
1215
|
+
}));
|
|
1216
|
+
//#endregion
|
|
1217
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js
|
|
1218
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1219
|
+
const Range = require_range();
|
|
1220
|
+
const intersects = (r1, r2, options) => {
|
|
1221
|
+
r1 = new Range(r1, options);
|
|
1222
|
+
r2 = new Range(r2, options);
|
|
1223
|
+
return r1.intersects(r2, options);
|
|
1224
|
+
};
|
|
1225
|
+
module.exports = intersects;
|
|
1226
|
+
}));
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js
|
|
1229
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1230
|
+
const satisfies = require_satisfies();
|
|
1231
|
+
const compare = require_compare();
|
|
1232
|
+
module.exports = (versions, range, options) => {
|
|
1233
|
+
const set = [];
|
|
1234
|
+
let first = null;
|
|
1235
|
+
let prev = null;
|
|
1236
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
1237
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
1238
|
+
prev = version;
|
|
1239
|
+
if (!first) first = version;
|
|
1240
|
+
} else {
|
|
1241
|
+
if (prev) set.push([first, prev]);
|
|
1242
|
+
prev = null;
|
|
1243
|
+
first = null;
|
|
1244
|
+
}
|
|
1245
|
+
if (first) set.push([first, null]);
|
|
1246
|
+
const ranges = [];
|
|
1247
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
1248
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
1249
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
1250
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
1251
|
+
else ranges.push(`${min} - ${max}`);
|
|
1252
|
+
const simplified = ranges.join(" || ");
|
|
1253
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
1254
|
+
return simplified.length < original.length ? simplified : range;
|
|
1255
|
+
};
|
|
1256
|
+
}));
|
|
1257
|
+
//#endregion
|
|
1258
|
+
//#region ../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js
|
|
1259
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1260
|
+
const Range = require_range();
|
|
1261
|
+
const Comparator = require_comparator();
|
|
1262
|
+
const { ANY } = Comparator;
|
|
1263
|
+
const satisfies = require_satisfies();
|
|
1264
|
+
const compare = require_compare();
|
|
1265
|
+
const subset = (sub, dom, options = {}) => {
|
|
1266
|
+
if (sub === dom) return true;
|
|
1267
|
+
sub = new Range(sub, options);
|
|
1268
|
+
dom = new Range(dom, options);
|
|
1269
|
+
let sawNonNull = false;
|
|
1270
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
1271
|
+
for (const simpleDom of dom.set) {
|
|
1272
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
1273
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
1274
|
+
if (isSub) continue OUTER;
|
|
1275
|
+
}
|
|
1276
|
+
if (sawNonNull) return false;
|
|
1277
|
+
}
|
|
1278
|
+
return true;
|
|
1279
|
+
};
|
|
1280
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
1281
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
1282
|
+
const simpleSubset = (sub, dom, options) => {
|
|
1283
|
+
if (sub === dom) return true;
|
|
1284
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
1285
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
1286
|
+
else sub = minimumVersion;
|
|
1287
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
1288
|
+
else dom = minimumVersion;
|
|
1289
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
1290
|
+
let gt, lt;
|
|
1291
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
1292
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
1293
|
+
else eqSet.add(c.semver);
|
|
1294
|
+
if (eqSet.size > 1) return null;
|
|
1295
|
+
let gtltComp;
|
|
1296
|
+
if (gt && lt) {
|
|
1297
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
1298
|
+
if (gtltComp > 0) return null;
|
|
1299
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
1300
|
+
}
|
|
1301
|
+
for (const eq of eqSet) {
|
|
1302
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
1303
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
1304
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
1305
|
+
return true;
|
|
1306
|
+
}
|
|
1307
|
+
let higher, lower;
|
|
1308
|
+
let hasDomLT, hasDomGT;
|
|
1309
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
1310
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
1311
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
1312
|
+
for (const c of dom) {
|
|
1313
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
1314
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
1315
|
+
if (gt) {
|
|
1316
|
+
if (needDomGTPre) {
|
|
1317
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
|
|
1318
|
+
}
|
|
1319
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
1320
|
+
higher = higherGT(gt, c, options);
|
|
1321
|
+
if (higher === c && higher !== gt) return false;
|
|
1322
|
+
} else if (gt.operator === ">=" && !c.test(gt.semver)) return false;
|
|
1323
|
+
}
|
|
1324
|
+
if (lt) {
|
|
1325
|
+
if (needDomLTPre) {
|
|
1326
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
|
|
1327
|
+
}
|
|
1328
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
1329
|
+
lower = lowerLT(lt, c, options);
|
|
1330
|
+
if (lower === c && lower !== lt) return false;
|
|
1331
|
+
} else if (lt.operator === "<=" && !c.test(lt.semver)) return false;
|
|
1332
|
+
}
|
|
1333
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
1334
|
+
}
|
|
1335
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
1336
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
1337
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
1338
|
+
return true;
|
|
1339
|
+
};
|
|
1340
|
+
const higherGT = (a, b, options) => {
|
|
1341
|
+
if (!a) return b;
|
|
1342
|
+
const comp = compare(a.semver, b.semver, options);
|
|
1343
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
1344
|
+
};
|
|
1345
|
+
const lowerLT = (a, b, options) => {
|
|
1346
|
+
if (!a) return b;
|
|
1347
|
+
const comp = compare(a.semver, b.semver, options);
|
|
1348
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
1349
|
+
};
|
|
1350
|
+
module.exports = subset;
|
|
1351
|
+
}));
|
|
1352
|
+
//#endregion
|
|
1353
|
+
//#region ../../util/plugin-market-index/src/index.ts
|
|
1354
|
+
var import_semver = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1355
|
+
const internalRe = require_re();
|
|
1356
|
+
const constants = require_constants();
|
|
1357
|
+
const SemVer = require_semver$1();
|
|
1358
|
+
const identifiers = require_identifiers();
|
|
1359
|
+
module.exports = {
|
|
1360
|
+
parse: require_parse(),
|
|
1361
|
+
valid: require_valid$1(),
|
|
1362
|
+
clean: require_clean(),
|
|
1363
|
+
inc: require_inc(),
|
|
1364
|
+
diff: require_diff(),
|
|
1365
|
+
major: require_major(),
|
|
1366
|
+
minor: require_minor(),
|
|
1367
|
+
patch: require_patch(),
|
|
1368
|
+
prerelease: require_prerelease(),
|
|
1369
|
+
compare: require_compare(),
|
|
1370
|
+
rcompare: require_rcompare(),
|
|
1371
|
+
compareLoose: require_compare_loose(),
|
|
1372
|
+
compareBuild: require_compare_build(),
|
|
1373
|
+
sort: require_sort(),
|
|
1374
|
+
rsort: require_rsort(),
|
|
1375
|
+
gt: require_gt(),
|
|
1376
|
+
lt: require_lt(),
|
|
1377
|
+
eq: require_eq(),
|
|
1378
|
+
neq: require_neq(),
|
|
1379
|
+
gte: require_gte(),
|
|
1380
|
+
lte: require_lte(),
|
|
1381
|
+
cmp: require_cmp(),
|
|
1382
|
+
coerce: require_coerce(),
|
|
1383
|
+
truncate: require_truncate(),
|
|
1384
|
+
Comparator: require_comparator(),
|
|
1385
|
+
Range: require_range(),
|
|
1386
|
+
satisfies: require_satisfies(),
|
|
1387
|
+
toComparators: require_to_comparators(),
|
|
1388
|
+
maxSatisfying: require_max_satisfying(),
|
|
1389
|
+
minSatisfying: require_min_satisfying(),
|
|
1390
|
+
minVersion: require_min_version(),
|
|
1391
|
+
validRange: require_valid(),
|
|
1392
|
+
outside: require_outside(),
|
|
1393
|
+
gtr: require_gtr(),
|
|
1394
|
+
ltr: require_ltr(),
|
|
1395
|
+
intersects: require_intersects(),
|
|
1396
|
+
simplifyRange: require_simplify(),
|
|
1397
|
+
subset: require_subset(),
|
|
1398
|
+
SemVer,
|
|
1399
|
+
re: internalRe.re,
|
|
1400
|
+
src: internalRe.src,
|
|
1401
|
+
tokens: internalRe.t,
|
|
1402
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
1403
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
1404
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1405
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1406
|
+
};
|
|
1407
|
+
})))(), 1);
|
|
1408
|
+
/** An index that violates format 1; `path` is the JSON path of the offending value, such as `$.plugins[0].versions[1].version`. */
|
|
1409
|
+
var MarketIndexError = class extends Error {
|
|
1410
|
+
path;
|
|
1411
|
+
reason;
|
|
1412
|
+
/**
|
|
1413
|
+
* @param path - JSON path of the offending value.
|
|
1414
|
+
* @param reason - the violated rule.
|
|
1415
|
+
*/
|
|
1416
|
+
constructor(path, reason) {
|
|
1417
|
+
super(`${path} ${reason}`);
|
|
1418
|
+
this.path = path;
|
|
1419
|
+
this.reason = reason;
|
|
1420
|
+
this.name = "MarketIndexError";
|
|
1421
|
+
}
|
|
1422
|
+
};
|
|
1423
|
+
const LANGUAGE_ID = /^[a-z]{2,8}(?:-[a-z0-9]{1,8})*$/u;
|
|
1424
|
+
const PACKAGE_NAME = /^(?:@[a-z0-9][a-z0-9._~-]*\/)?[a-z0-9][a-z0-9._~-]*$/u;
|
|
1425
|
+
const PACKAGE_NAME_MAX_LENGTH = 214;
|
|
1426
|
+
/** The SemVer 2.0.0 grammar for one exact version. */
|
|
1427
|
+
const NUMERIC = "(?:0|[1-9]\\d*)";
|
|
1428
|
+
const PRERELEASE_PART = `(?:${NUMERIC}|\\d*[a-zA-Z-][0-9a-zA-Z-]*)`;
|
|
1429
|
+
const SEMVER = new RegExp(`^${NUMERIC}\\.${NUMERIC}\\.${NUMERIC}(?:-${PRERELEASE_PART}(?:\\.${PRERELEASE_PART})*)?(?:\\+[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*)?$`, "u");
|
|
1430
|
+
const COMMIT = /^[0-9a-f]{40}$/u;
|
|
1431
|
+
const PATH_SEGMENT = /^[A-Za-z0-9._@+-]+$/u;
|
|
1432
|
+
const DATA_ICON = /^data:(?:image\/svg\+xml|image\/png|image\/jpeg|image\/webp);base64,([A-Za-z0-9+/]*={0,2})$/u;
|
|
1433
|
+
const BASE64 = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u;
|
|
1434
|
+
/** Largest decoded payload of an inline `data:` icon, in bytes. */
|
|
1435
|
+
const MAX_INLINE_ICON_BYTES = 32 * 1024;
|
|
1436
|
+
const MAX_PUBLISH_TIMESTAMP = 1e11;
|
|
1437
|
+
function fail(path, reason) {
|
|
1438
|
+
throw new MarketIndexError(path, reason);
|
|
1439
|
+
}
|
|
1440
|
+
function objectAt(value, path) {
|
|
1441
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) fail(path, "must be an object");
|
|
1442
|
+
return value;
|
|
1443
|
+
}
|
|
1444
|
+
function stringAt(value, path) {
|
|
1445
|
+
if (typeof value !== "string" || value.trim() === "") fail(path, "must be a string with a non-whitespace character");
|
|
1446
|
+
return value;
|
|
1447
|
+
}
|
|
1448
|
+
function optional(object, key, path, read) {
|
|
1449
|
+
return Object.hasOwn(object, key) ? read(object[key], `${path}.${key}`) : void 0;
|
|
1450
|
+
}
|
|
1451
|
+
function localizedText(value, path) {
|
|
1452
|
+
if (typeof value === "string") return stringAt(value, path);
|
|
1453
|
+
const object = objectAt(value, path);
|
|
1454
|
+
const text = {};
|
|
1455
|
+
for (const [language, member] of Object.entries(object)) {
|
|
1456
|
+
if (!LANGUAGE_ID.test(language)) fail(`${path}.${language}`, "must be keyed by a lowercase language id");
|
|
1457
|
+
own(text, language, stringAt(member, `${path}.${language}`));
|
|
1458
|
+
}
|
|
1459
|
+
if (!Object.hasOwn(text, "en")) fail(path, "must contain en");
|
|
1460
|
+
return text;
|
|
1461
|
+
}
|
|
1462
|
+
/** Define an own enumerable member, so an id such as `__proto__` stays an ordinary key. */
|
|
1463
|
+
function own(record, key, value) {
|
|
1464
|
+
Object.defineProperty(record, key, {
|
|
1465
|
+
value,
|
|
1466
|
+
enumerable: true,
|
|
1467
|
+
writable: true,
|
|
1468
|
+
configurable: true
|
|
1469
|
+
});
|
|
1470
|
+
}
|
|
1471
|
+
function declarations(value, path, read) {
|
|
1472
|
+
const result = {};
|
|
1473
|
+
for (const [id, member] of Object.entries(objectAt(value, path))) {
|
|
1474
|
+
if (id === "") fail(path, "must not declare an empty id");
|
|
1475
|
+
own(result, id, read(objectAt(member, `${path}.${id}`), `${path}.${id}`));
|
|
1476
|
+
}
|
|
1477
|
+
return result;
|
|
1478
|
+
}
|
|
1479
|
+
function declaration(object, path) {
|
|
1480
|
+
return { title: localizedText(object.title, `${path}.title`) };
|
|
1481
|
+
}
|
|
1482
|
+
function sortKeyDeclaration(object, path) {
|
|
1483
|
+
if (object.order !== "asc" && object.order !== "desc") fail(`${path}.order`, "must be \"asc\" or \"desc\"");
|
|
1484
|
+
return {
|
|
1485
|
+
title: localizedText(object.title, `${path}.title`),
|
|
1486
|
+
order: object.order
|
|
1487
|
+
};
|
|
1488
|
+
}
|
|
1489
|
+
function indexMetadata(value, path) {
|
|
1490
|
+
const object = value === void 0 ? {} : objectAt(value, path);
|
|
1491
|
+
return {
|
|
1492
|
+
categories: optional(object, "categories", path, (member, at) => declarations(member, at, declaration)) ?? {},
|
|
1493
|
+
labels: optional(object, "labels", path, (member, at) => declarations(member, at, declaration)) ?? {},
|
|
1494
|
+
sortKeys: optional(object, "sortKeys", path, (member, at) => declarations(member, at, sortKeyDeclaration)) ?? {}
|
|
1495
|
+
};
|
|
1496
|
+
}
|
|
1497
|
+
function declaredId(value, path, declared) {
|
|
1498
|
+
const id = stringAt(value, path);
|
|
1499
|
+
if (!Object.hasOwn(declared, id)) fail(path, `references undeclared id ${JSON.stringify(id)}`);
|
|
1500
|
+
return id;
|
|
1501
|
+
}
|
|
1502
|
+
function pluginMetadata(value, path, index) {
|
|
1503
|
+
const object = value === void 0 ? {} : objectAt(value, path);
|
|
1504
|
+
const category = optional(object, "category", path, (member, at) => declaredId(member, at, index.categories));
|
|
1505
|
+
const keywords = optional(object, "keywords", path, (member, at) => {
|
|
1506
|
+
if (!Array.isArray(member)) fail(at, "must be an array");
|
|
1507
|
+
return member.map((keyword, position) => {
|
|
1508
|
+
if (typeof keyword !== "string") fail(`${at}[${String(position)}]`, "must be a string");
|
|
1509
|
+
return keyword;
|
|
1510
|
+
});
|
|
1511
|
+
}) ?? [];
|
|
1512
|
+
const labels = optional(object, "labels", path, (member, at) => {
|
|
1513
|
+
if (!Array.isArray(member)) fail(at, "must be an array");
|
|
1514
|
+
const ids = member.map((label, position) => declaredId(label, `${at}[${String(position)}]`, index.labels));
|
|
1515
|
+
if (new Set(ids).size !== ids.length) fail(at, "must not repeat a label");
|
|
1516
|
+
return ids;
|
|
1517
|
+
}) ?? [];
|
|
1518
|
+
const sortKeys = optional(object, "sortKeys", path, (member, at) => {
|
|
1519
|
+
const values = {};
|
|
1520
|
+
for (const [id, sortValue] of Object.entries(objectAt(member, at))) {
|
|
1521
|
+
declaredId(id, `${at}.${id}`, index.sortKeys);
|
|
1522
|
+
if (typeof sortValue !== "number" || !Number.isFinite(sortValue)) fail(`${at}.${id}`, "must be a finite number");
|
|
1523
|
+
own(values, id, sortValue);
|
|
1524
|
+
}
|
|
1525
|
+
return values;
|
|
1526
|
+
}) ?? {};
|
|
1527
|
+
return {
|
|
1528
|
+
...category === void 0 ? {} : { category },
|
|
1529
|
+
keywords,
|
|
1530
|
+
labels,
|
|
1531
|
+
sortKeys
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
function httpUrl(value, path, protocols) {
|
|
1535
|
+
const text = stringAt(value, path);
|
|
1536
|
+
let url;
|
|
1537
|
+
try {
|
|
1538
|
+
url = new URL(text);
|
|
1539
|
+
} catch {
|
|
1540
|
+
fail(path, "must be an absolute URL");
|
|
1541
|
+
}
|
|
1542
|
+
if (!protocols.includes(url.protocol)) fail(path, `must use ${protocols.join(" or ")}`);
|
|
1543
|
+
if (url.username !== "" || url.password !== "") fail(path, "must not contain credentials");
|
|
1544
|
+
if (url.href.includes("?") || url.href.includes("#")) fail(path, "must not contain a query or fragment");
|
|
1545
|
+
return url;
|
|
1546
|
+
}
|
|
1547
|
+
/** An absolute http(s) URL; npm `homepage` values often carry a `#readme` fragment, so fragments and queries are kept. */
|
|
1548
|
+
function homepageUrl(value, path) {
|
|
1549
|
+
const text = stringAt(value, path);
|
|
1550
|
+
if (!URL.canParse(text)) fail(path, "must be an absolute URL");
|
|
1551
|
+
const url = new URL(text);
|
|
1552
|
+
if (url.protocol !== "https:" && url.protocol !== "http:") fail(path, "must use https: or http:");
|
|
1553
|
+
return url.href;
|
|
1554
|
+
}
|
|
1555
|
+
function gitUrl(value, path) {
|
|
1556
|
+
const url = httpUrl(value, path, ["https:"]);
|
|
1557
|
+
if (url.href !== value) fail(path, "must be a canonical URL");
|
|
1558
|
+
if (!/^(?:\/[^/]+){2,}$/u.test(url.pathname)) fail(path, "must name a repository with at least two path segments");
|
|
1559
|
+
if (/\.(?:tgz|tar\.gz)$/iu.test(url.pathname)) fail(path, "must name a repository, not a tarball");
|
|
1560
|
+
return url.href;
|
|
1561
|
+
}
|
|
1562
|
+
function packagePath(value, path) {
|
|
1563
|
+
const text = stringAt(value, path);
|
|
1564
|
+
if (text.split("/").some((segment) => segment === "." || segment === ".." || !PATH_SEGMENT.test(segment))) fail(path, "must be a relative directory of letters, digits, and ._@+- segments without . or ..");
|
|
1565
|
+
return text;
|
|
1566
|
+
}
|
|
1567
|
+
function repository(value, path) {
|
|
1568
|
+
const object = objectAt(value, path);
|
|
1569
|
+
const url = httpUrl(object.url, `${path}.url`, ["https:", "http:"]).href;
|
|
1570
|
+
const directory = optional(object, "directory", path, packagePath);
|
|
1571
|
+
return {
|
|
1572
|
+
url,
|
|
1573
|
+
...directory === void 0 ? {} : { directory }
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
function source(value, path) {
|
|
1577
|
+
const object = objectAt(value, path);
|
|
1578
|
+
switch (object.type) {
|
|
1579
|
+
case "npm": {
|
|
1580
|
+
const registry = optional(object, "registry", path, (member, at) => httpUrl(member, at, ["https:", "http:"]).href);
|
|
1581
|
+
return {
|
|
1582
|
+
type: "npm",
|
|
1583
|
+
...registry === void 0 ? {} : { registry }
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
case "git": {
|
|
1587
|
+
const commit = stringAt(object.commit, `${path}.commit`);
|
|
1588
|
+
if (!COMMIT.test(commit)) fail(`${path}.commit`, "must be a lowercase 40-hex-digit commit SHA");
|
|
1589
|
+
const packageDir = optional(object, "path", path, packagePath);
|
|
1590
|
+
return {
|
|
1591
|
+
type: "git",
|
|
1592
|
+
url: gitUrl(object.url, `${path}.url`),
|
|
1593
|
+
commit,
|
|
1594
|
+
...packageDir === void 0 ? {} : { path: packageDir }
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
default: return fail(`${path}.type`, "must be \"npm\" or \"git\"");
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
function engines(value, path) {
|
|
1601
|
+
const dsh = optional(objectAt(value, path), "dsh", path, (member, at) => {
|
|
1602
|
+
const range = stringAt(member, at);
|
|
1603
|
+
if (range.startsWith("workspace:")) fail(at, "must not be a workspace: range");
|
|
1604
|
+
if (import_semver.default.validRange(range) === null) fail(at, "must be a SemVer range");
|
|
1605
|
+
return range;
|
|
1606
|
+
});
|
|
1607
|
+
return dsh === void 0 ? {} : { dsh };
|
|
1608
|
+
}
|
|
1609
|
+
function icon(value, path, indexUrl) {
|
|
1610
|
+
const text = stringAt(value, path);
|
|
1611
|
+
if (text.startsWith("data:")) {
|
|
1612
|
+
const payload = DATA_ICON.exec(text)?.[1];
|
|
1613
|
+
if (payload === void 0 || payload === "" || !BASE64.test(payload)) fail(path, "must be a base64 SVG, PNG, JPEG, or WebP data URL");
|
|
1614
|
+
if (payload.length / 4 * 3 - (payload.endsWith("==") ? 2 : payload.endsWith("=") ? 1 : 0) > 32768) fail(path, `must not exceed ${String(MAX_INLINE_ICON_BYTES / 1024)} KiB of decoded bytes`);
|
|
1615
|
+
return text;
|
|
1616
|
+
}
|
|
1617
|
+
let resolved;
|
|
1618
|
+
try {
|
|
1619
|
+
resolved = new URL(text, indexUrl);
|
|
1620
|
+
} catch {
|
|
1621
|
+
fail(path, "must be a URL reference");
|
|
1622
|
+
}
|
|
1623
|
+
if (resolved.protocol !== "https:" && (resolved.origin === "null" || resolved.origin !== indexUrl.origin)) fail(path, "must resolve to https or the index origin");
|
|
1624
|
+
return resolved.href;
|
|
1625
|
+
}
|
|
1626
|
+
function marketVersion(value, path) {
|
|
1627
|
+
const object = objectAt(value, path);
|
|
1628
|
+
const version = stringAt(object.version, `${path}.version`);
|
|
1629
|
+
if (!SEMVER.test(version)) fail(`${path}.version`, "must be an exact SemVer version");
|
|
1630
|
+
const publishTimestamp = object.publishTimestamp;
|
|
1631
|
+
if (typeof publishTimestamp !== "number" || !Number.isInteger(publishTimestamp) || publishTimestamp < 0 || publishTimestamp >= MAX_PUBLISH_TIMESTAMP) fail(`${path}.publishTimestamp`, "must be an integer number of Unix seconds in [0, 10^11)");
|
|
1632
|
+
return {
|
|
1633
|
+
version,
|
|
1634
|
+
publishTimestamp,
|
|
1635
|
+
source: source(object.source, `${path}.source`),
|
|
1636
|
+
engines: optional(object, "engines", path, engines) ?? {}
|
|
1637
|
+
};
|
|
1638
|
+
}
|
|
1639
|
+
function versions(value, path) {
|
|
1640
|
+
if (!Array.isArray(value) || value.length === 0) fail(path, "must be a non-empty array");
|
|
1641
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1642
|
+
return value.map((member, position) => {
|
|
1643
|
+
const at = `${path}[${String(position)}]`;
|
|
1644
|
+
const entry = marketVersion(member, at);
|
|
1645
|
+
if (seen.has(entry.version)) fail(`${at}.version`, `duplicates ${entry.version}`);
|
|
1646
|
+
seen.add(entry.version);
|
|
1647
|
+
return entry;
|
|
1648
|
+
}).sort((left, right) => import_semver.default.rcompare(left.version, right.version));
|
|
1649
|
+
}
|
|
1650
|
+
function plugin(value, path, index, indexUrl) {
|
|
1651
|
+
const object = objectAt(value, path);
|
|
1652
|
+
const name = stringAt(object.name, `${path}.name`);
|
|
1653
|
+
if (name.length > PACKAGE_NAME_MAX_LENGTH || !PACKAGE_NAME.test(name)) fail(`${path}.name`, "must be a valid npm package name");
|
|
1654
|
+
const title = optional(object, "title", path, localizedText);
|
|
1655
|
+
const description = optional(object, "description", path, localizedText);
|
|
1656
|
+
const iconUrl = optional(object, "icon", path, (member, at) => icon(member, at, indexUrl));
|
|
1657
|
+
const author = optional(object, "author", path, stringAt);
|
|
1658
|
+
const homepage = optional(object, "homepage", path, homepageUrl);
|
|
1659
|
+
const repo = optional(object, "repository", path, repository);
|
|
1660
|
+
return {
|
|
1661
|
+
name,
|
|
1662
|
+
...title === void 0 ? {} : { title },
|
|
1663
|
+
...description === void 0 ? {} : { description },
|
|
1664
|
+
...iconUrl === void 0 ? {} : { icon: iconUrl },
|
|
1665
|
+
...author === void 0 ? {} : { author },
|
|
1666
|
+
...homepage === void 0 ? {} : { homepage },
|
|
1667
|
+
...repo === void 0 ? {} : { repository: repo },
|
|
1668
|
+
metadata: pluginMetadata(object.metadata, `${path}.metadata`, index),
|
|
1669
|
+
versions: versions(object.versions, `${path}.versions`)
|
|
1670
|
+
};
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Validate a parsed format-1 index. Members the format does not define are ignored and dropped.
|
|
1674
|
+
* @param value - the parsed JSON document.
|
|
1675
|
+
* @param indexUrl - absolute URL the index was read from; relative icon references resolve against it.
|
|
1676
|
+
* @returns the validated index with absent metadata groups and lists filled with empty values, and each plugin's
|
|
1677
|
+
* versions in descending SemVer precedence.
|
|
1678
|
+
* @throws {MarketIndexError} for the first violated rule.
|
|
1679
|
+
*/
|
|
1680
|
+
function parseMarketIndex(value, indexUrl) {
|
|
1681
|
+
if (!URL.canParse(indexUrl)) fail("$", `index URL ${JSON.stringify(indexUrl)} must be an absolute URL`);
|
|
1682
|
+
const base = new URL(indexUrl);
|
|
1683
|
+
const object = objectAt(value, "$");
|
|
1684
|
+
if (object.format !== 1) fail("$.format", "must be 1");
|
|
1685
|
+
const metadata = indexMetadata(object.metadata, "$.metadata");
|
|
1686
|
+
if (!Array.isArray(object.plugins)) fail("$.plugins", "must be an array");
|
|
1687
|
+
const names = /* @__PURE__ */ new Set();
|
|
1688
|
+
const plugins = object.plugins.map((entry, position) => {
|
|
1689
|
+
const parsed = plugin(entry, `$.plugins[${String(position)}]`, metadata, base);
|
|
1690
|
+
if (names.has(parsed.name)) fail(`$.plugins[${String(position)}].name`, `duplicates ${parsed.name}`);
|
|
1691
|
+
names.add(parsed.name);
|
|
1692
|
+
return parsed;
|
|
1693
|
+
});
|
|
1694
|
+
const title = localizedText(object.title, "$.title");
|
|
1695
|
+
const description = optional(object, "description", "$", localizedText);
|
|
1696
|
+
return {
|
|
1697
|
+
format: 1,
|
|
1698
|
+
title,
|
|
1699
|
+
...description === void 0 ? {} : { description },
|
|
1700
|
+
metadata,
|
|
1701
|
+
plugins
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
//#endregion
|
|
1705
|
+
//#region lib/types/parse.js
|
|
1706
|
+
/** Decoding, JSON parsing, and format validation of a fetched index body; the parse Worker runs it. */
|
|
1707
|
+
/**
|
|
1708
|
+
* Decode a body as strict UTF-8, parse it as JSON, and validate it as format 1.
|
|
1709
|
+
* @param body - the complete response body.
|
|
1710
|
+
* @param url - the index URL relative icon references resolve against.
|
|
1711
|
+
* @returns the validated index, or the first violation.
|
|
1712
|
+
*/
|
|
1713
|
+
function parseIndexBody(body, url) {
|
|
1714
|
+
let text;
|
|
1715
|
+
try {
|
|
1716
|
+
text = new TextDecoder("utf-8", { fatal: true }).decode(body);
|
|
1717
|
+
} catch {
|
|
1718
|
+
return {
|
|
1719
|
+
ok: false,
|
|
1720
|
+
path: "$",
|
|
1721
|
+
reason: "must be UTF-8",
|
|
1722
|
+
message: "must be UTF-8"
|
|
1723
|
+
};
|
|
1724
|
+
}
|
|
1725
|
+
let value;
|
|
1726
|
+
try {
|
|
1727
|
+
value = JSON.parse(text);
|
|
1728
|
+
} catch (error) {
|
|
1729
|
+
const reason = `must be JSON: ${error.message}`;
|
|
1730
|
+
return {
|
|
1731
|
+
ok: false,
|
|
1732
|
+
path: "$",
|
|
1733
|
+
reason,
|
|
1734
|
+
message: reason
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
try {
|
|
1738
|
+
return {
|
|
1739
|
+
ok: true,
|
|
1740
|
+
index: parseMarketIndex(value, url)
|
|
1741
|
+
};
|
|
1742
|
+
} catch (error) {
|
|
1743
|
+
/* v8 ignore next -- parseMarketIndex throws nothing but its own validation failure */
|
|
1744
|
+
if (!(error instanceof MarketIndexError)) throw error;
|
|
1745
|
+
return {
|
|
1746
|
+
ok: false,
|
|
1747
|
+
path: error.path,
|
|
1748
|
+
reason: error.reason,
|
|
1749
|
+
message: error.message
|
|
1750
|
+
};
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
//#endregion
|
|
1754
|
+
//#region lib/types/worker.js
|
|
1755
|
+
/** Worker Thread entry that parses one fetched index body and posts the result to its parent. */
|
|
1756
|
+
const request = node_worker_threads.workerData;
|
|
1757
|
+
if (!(request?.body instanceof Uint8Array) || typeof request.url !== "string") throw new Error("index parser request is malformed");
|
|
1758
|
+
node_worker_threads.parentPort?.postMessage(parseIndexBody(request.body, request.url));
|
|
1759
|
+
//#endregion
|