@ashx-j/lunr-dev 0.2.13-dev.8.1 → 0.2.19-dev.10.1
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/CHANGELOG.md +60 -1
- package/README.md +7 -1
- package/dist/builtin-extensions/ashxj-thinking.d.ts +1 -0
- package/dist/builtin-extensions/ashxj-thinking.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-thinking.js +44 -19
- package/dist/builtin-extensions/ashxj-thinking.js.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.d.ts +14 -0
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +37 -3
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/builtin-extensions/index.d.ts +1 -15
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +8 -21
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/lunr-computer-use.d.ts +3 -0
- package/dist/builtin-extensions/lunr-computer-use.d.ts.map +1 -0
- package/dist/builtin-extensions/lunr-computer-use.js +157 -0
- package/dist/builtin-extensions/lunr-computer-use.js.map +1 -0
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js +6 -2
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts +4 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js +172 -171
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts +50 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js +131 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js.map +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts +7 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js +211 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js.map +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts +0 -5
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js +0 -202
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.js +276 -109
- package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts +4 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.js +10 -3
- package/dist/builtin-extensions/pi-mcp-adapter/init.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.js +6 -1
- package/dist/builtin-extensions/pi-mcp-adapter/metadata-cache.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts +6 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js +33 -8
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js +2 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +68 -15
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +6 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +5 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.d.ts +10 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js +38 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +3 -16
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/fork-context.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +72 -31
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js +2 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/extract.js +105 -54
- package/dist/builtin-extensions/pi-web-access/extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/gemini-search.d.ts +1 -1
- package/dist/builtin-extensions/pi-web-access/gemini-search.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/gemini-search.js +82 -65
- package/dist/builtin-extensions/pi-web-access/gemini-search.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.js +2 -0
- package/dist/builtin-extensions/pi-web-access/github-extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.js +259 -168
- package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/lazy.d.ts +18 -0
- package/dist/builtin-extensions/pi-web-access/lazy.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/lazy.js +19 -0
- package/dist/builtin-extensions/pi-web-access/lazy.js.map +1 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts +6 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js +17 -0
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js.map +1 -0
- package/dist/catalog/publication.json +12 -12
- package/dist/cli-runtime.d.ts +3 -0
- package/dist/cli-runtime.d.ts.map +1 -0
- package/dist/cli-runtime.js +73 -0
- package/dist/cli-runtime.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +14 -53
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +1 -1
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +56 -12
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +10 -5
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/computer-use/adapter.d.ts +23 -0
- package/dist/core/computer-use/adapter.d.ts.map +1 -0
- package/dist/core/computer-use/adapter.js +116 -0
- package/dist/core/computer-use/adapter.js.map +1 -0
- package/dist/core/computer-use/lease.d.ts +18 -0
- package/dist/core/computer-use/lease.d.ts.map +1 -0
- package/dist/core/computer-use/lease.js +129 -0
- package/dist/core/computer-use/lease.js.map +1 -0
- package/dist/core/computer-use/macos-runtime.d.ts +14 -0
- package/dist/core/computer-use/macos-runtime.d.ts.map +1 -0
- package/dist/core/computer-use/macos-runtime.js +148 -0
- package/dist/core/computer-use/macos-runtime.js.map +1 -0
- package/dist/core/computer-use/policy.d.ts +19 -0
- package/dist/core/computer-use/policy.d.ts.map +1 -0
- package/dist/core/computer-use/policy.js +66 -0
- package/dist/core/computer-use/policy.js.map +1 -0
- package/dist/core/computer-use/release.generated.d.ts +31 -0
- package/dist/core/computer-use/release.generated.d.ts.map +1 -0
- package/dist/core/computer-use/release.generated.js +36 -0
- package/dist/core/computer-use/release.generated.js.map +1 -0
- package/dist/core/computer-use/runtime.d.ts +13 -0
- package/dist/core/computer-use/runtime.d.ts.map +1 -0
- package/dist/core/computer-use/runtime.js +158 -0
- package/dist/core/computer-use/runtime.js.map +1 -0
- package/dist/core/computer-use/schemas.d.ts +88 -0
- package/dist/core/computer-use/schemas.d.ts.map +1 -0
- package/dist/core/computer-use/schemas.js +80 -0
- package/dist/core/computer-use/schemas.js.map +1 -0
- package/dist/core/computer-use/windows-desktop.d.ts +3 -0
- package/dist/core/computer-use/windows-desktop.d.ts.map +1 -0
- package/dist/core/computer-use/windows-desktop.js +48 -0
- package/dist/core/computer-use/windows-desktop.js.map +1 -0
- package/dist/core/computer-use/workflow.d.ts +24 -0
- package/dist/core/computer-use/workflow.d.ts.map +1 -0
- package/dist/core/computer-use/workflow.js +330 -0
- package/dist/core/computer-use/workflow.js.map +1 -0
- package/dist/core/extensions/host-static.d.ts.map +1 -1
- package/dist/core/extensions/host-static.js +34 -12
- package/dist/core/extensions/host-static.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +1 -2
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +10 -64
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/types.d.ts +2 -2
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +2 -0
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/keybindings.d.ts +2 -2
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +2 -2
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-runtime.d.ts +0 -3
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +1 -10
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +1 -1
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/permissions.d.ts +1 -3
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +33 -25
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +9 -0
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/rollback.d.ts.map +1 -1
- package/dist/core/rollback.js +13 -90
- package/dist/core/rollback.js.map +1 -1
- package/dist/core/sdk.d.ts +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +1 -1
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts +0 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +21 -79
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-manager.d.ts +6 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +19 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +0 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/timings.d.ts +2 -1
- package/dist/core/timings.d.ts.map +1 -1
- package/dist/core/timings.js +17 -2
- package/dist/core/timings.js.map +1 -1
- package/dist/dev-cli.js +0 -0
- package/dist/gateway/agent-bridge.d.ts +6 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +23 -6
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/commands.d.ts +1 -1
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +1 -18
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/cron.d.ts +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +23 -7
- package/dist/gateway/cron.js.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +57 -48
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +4 -2
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +23 -32
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/processes-selector.d.ts +2 -3
- package/dist/modes/interactive/components/processes-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/processes-selector.js +5 -10
- package/dist/modes/interactive/components/processes-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +4 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +20 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +12 -21
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +138 -152
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +95 -84
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/interactive/thinking-level-slash.d.ts +4 -0
- package/dist/modes/interactive/thinking-level-slash.d.ts.map +1 -0
- package/dist/modes/interactive/thinking-level-slash.js +23 -0
- package/dist/modes/interactive/thinking-level-slash.js.map +1 -0
- package/dist/node-runtime/adapter-AZMY335J.js +279 -0
- package/dist/node-runtime/agent-session-services-RSGP5GDN.js +39 -0
- package/dist/node-runtime/benchmark-request-UC7PD3V3.js +57 -0
- package/dist/node-runtime/brave-UWDA3I22.js +143 -0
- package/dist/node-runtime/builtin-extensions-7STLFW3A.js +29 -0
- package/dist/node-runtime/chunk-2IDTZAG5.js +1415 -0
- package/dist/node-runtime/chunk-3GHXVUAK.js +21 -0
- package/dist/node-runtime/chunk-3RCWXWAY.js +466 -0
- package/dist/node-runtime/chunk-3WFAEVKS.js +115 -0
- package/dist/node-runtime/chunk-3X3KZKMI.js +49 -0
- package/dist/node-runtime/chunk-4HXHDDCF.js +16 -0
- package/dist/node-runtime/chunk-4SJWFTUP.js +24 -0
- package/dist/node-runtime/chunk-4ZWGEEAS.js +69 -0
- package/dist/node-runtime/chunk-53YJI7JU.js +137 -0
- package/dist/node-runtime/chunk-5NWQCSKR.js +19218 -0
- package/dist/node-runtime/chunk-5OLJGVCB.js +68 -0
- package/dist/node-runtime/chunk-5Q45AVQG.js +108 -0
- package/dist/node-runtime/chunk-5SQDLSZJ.js +949 -0
- package/dist/node-runtime/chunk-6SPPH4FY.js +1269 -0
- package/dist/node-runtime/chunk-6UB6NKA3.js +860 -0
- package/dist/node-runtime/chunk-7AFOFSDY.js +105 -0
- package/dist/node-runtime/chunk-7N3YHTYF.js +26 -0
- package/dist/node-runtime/chunk-ARC4KOTI.js +11178 -0
- package/dist/node-runtime/chunk-AUXVGBO4.js +19 -0
- package/dist/node-runtime/chunk-AY6CAJSL.js +30 -0
- package/dist/node-runtime/chunk-BHO7O6E5.js +296 -0
- package/dist/node-runtime/chunk-BI3DHYCN.js +8845 -0
- package/dist/node-runtime/chunk-BKAZ6BKX.js +2185 -0
- package/dist/node-runtime/chunk-BR7YDUKA.js +109 -0
- package/dist/node-runtime/chunk-BRJX2PRC.js +53 -0
- package/dist/node-runtime/chunk-C4O2RSQQ.js +37 -0
- package/dist/node-runtime/chunk-CCZJ3PYY.js +17 -0
- package/dist/node-runtime/chunk-CGBXPL3E.js +1171 -0
- package/dist/node-runtime/chunk-CH6OL6P2.js +295 -0
- package/dist/node-runtime/chunk-CJECDQKP.js +19 -0
- package/dist/node-runtime/chunk-DAPBPCBP.js +53 -0
- package/dist/node-runtime/chunk-DDGMHUOW.js +305 -0
- package/dist/node-runtime/chunk-DMMTJQMQ.js +43 -0
- package/dist/node-runtime/chunk-DVGWF6A2.js +1180 -0
- package/dist/node-runtime/chunk-EH2LJQPM.js +64 -0
- package/dist/node-runtime/chunk-EHMBW7FA.js +772 -0
- package/dist/node-runtime/chunk-FLYMHKCS.js +966 -0
- package/dist/node-runtime/chunk-FVDOXRUD.js +96 -0
- package/dist/node-runtime/chunk-GZQHMEWL.js +126 -0
- package/dist/node-runtime/chunk-H2EOZYMP.js +57 -0
- package/dist/node-runtime/chunk-HQCKFM2O.js +56 -0
- package/dist/node-runtime/chunk-HRS4HMDX.js +610 -0
- package/dist/node-runtime/chunk-HYHJIRDW.js +19 -0
- package/dist/node-runtime/chunk-I6R76AG7.js +22 -0
- package/dist/node-runtime/chunk-ISQDQIZN.js +296 -0
- package/dist/node-runtime/chunk-J7QGQD45.js +24921 -0
- package/dist/node-runtime/chunk-JHYKXIMM.js +378 -0
- package/dist/node-runtime/chunk-JT6YCS5B.js +5648 -0
- package/dist/node-runtime/chunk-JZHEUQRL.js +180 -0
- package/dist/node-runtime/chunk-K72NVGUB.js +2834 -0
- package/dist/node-runtime/chunk-KKSIVROT.js +88 -0
- package/dist/node-runtime/chunk-LCACDWHJ.js +1743 -0
- package/dist/node-runtime/chunk-LTXUQJI4.js +173 -0
- package/dist/node-runtime/chunk-LWJXTA6Z.js +6814 -0
- package/dist/node-runtime/chunk-M3LZLQW2.js +98 -0
- package/dist/node-runtime/chunk-MGSB2C3M.js +46 -0
- package/dist/node-runtime/chunk-MGWCVY6Y.js +47 -0
- package/dist/node-runtime/chunk-MJQDX3BA.js +72 -0
- package/dist/node-runtime/chunk-MUMMMTW4.js +8392 -0
- package/dist/node-runtime/chunk-MX3GJNXJ.js +986 -0
- package/dist/node-runtime/chunk-NUIFPZWX.js +209 -0
- package/dist/node-runtime/chunk-OBMWP3I5.js +68 -0
- package/dist/node-runtime/chunk-OR4L3IB2.js +42 -0
- package/dist/node-runtime/chunk-OTT6JMPU.js +807 -0
- package/dist/node-runtime/chunk-PCIGF2XK.js +250 -0
- package/dist/node-runtime/chunk-PL6JKXWI.js +3622 -0
- package/dist/node-runtime/chunk-PVCDKGR6.js +55 -0
- package/dist/node-runtime/chunk-Q4Q6D4IY.js +364 -0
- package/dist/node-runtime/chunk-Q5ZU2VRT.js +83 -0
- package/dist/node-runtime/chunk-QFWG2RVL.js +5477 -0
- package/dist/node-runtime/chunk-RQ2Q5IYR.js +72 -0
- package/dist/node-runtime/chunk-RQ5DNUNG.js +429 -0
- package/dist/node-runtime/chunk-RRIZE6QQ.js +17 -0
- package/dist/node-runtime/chunk-SN6G4OU6.js +4753 -0
- package/dist/node-runtime/chunk-SWSN6HAB.js +53 -0
- package/dist/node-runtime/chunk-T5GM5BFH.js +7558 -0
- package/dist/node-runtime/chunk-TAP7QTUT.js +1346 -0
- package/dist/node-runtime/chunk-U6C7VTR5.js +2033 -0
- package/dist/node-runtime/chunk-URD2SLIT.js +1019 -0
- package/dist/node-runtime/chunk-VRB2IYGG.js +53 -0
- package/dist/node-runtime/chunk-W3CVH5RX.js +62 -0
- package/dist/node-runtime/chunk-W7S2REEG.js +9478 -0
- package/dist/node-runtime/chunk-XBWPBZBN.js +125 -0
- package/dist/node-runtime/chunk-XTHQ7XR7.js +509 -0
- package/dist/node-runtime/chunk-ZCHMJ34K.js +130 -0
- package/dist/node-runtime/chunk-ZRDIMBEQ.js +651 -0
- package/dist/node-runtime/chunk-ZSEZY3II.js +247 -0
- package/dist/node-runtime/cli-runtime.js +81 -0
- package/dist/node-runtime/clipboard-OZ63BBC6.js +12 -0
- package/dist/node-runtime/clipboard-image-7QR6GXVA.js +13 -0
- package/dist/node-runtime/command-6UXQ6XZN.js +13 -0
- package/dist/node-runtime/commands-LGR5VT5X.js +293 -0
- package/dist/node-runtime/config-FMEOZSWE.js +77 -0
- package/dist/node-runtime/curator-server-XCM43VEF.js +3816 -0
- package/dist/node-runtime/customize-XEXL2DGQ.js +12 -0
- package/dist/node-runtime/direct-tool-executor-TDJS7TBD.js +191 -0
- package/dist/node-runtime/exa-LL64QZR2.js +329 -0
- package/dist/node-runtime/export-html-E4DT6ZJQ.js +150 -0
- package/dist/node-runtime/extension-input-RV5N6APL.js +14 -0
- package/dist/node-runtime/extension-selector-CPD5LWDD.js +14 -0
- package/dist/node-runtime/extract-IUCVZCWC.js +17 -0
- package/dist/node-runtime/file-sync-HCOP2QVF.js +117 -0
- package/dist/node-runtime/gateway-3OLC4GQN.js +2139 -0
- package/dist/node-runtime/gemini-api-QE7ANVDZ.js +29 -0
- package/dist/node-runtime/gemini-search-NCIDF7NE.js +330 -0
- package/dist/node-runtime/gemini-url-context-OKIN7AIP.js +103 -0
- package/dist/node-runtime/gemini-web-MM446SEH.js +14 -0
- package/dist/node-runtime/github-extract-F64RZOEA.js +619 -0
- package/dist/node-runtime/goal-CZQ7FFQJ.js +1831 -0
- package/dist/node-runtime/image-resize-6ZPBFMWW.js +11 -0
- package/dist/node-runtime/index.js +863 -0
- package/dist/node-runtime/init-EKE277AG.js +30 -0
- package/dist/node-runtime/install-cli-TH7IJJQQ.js +308 -0
- package/dist/node-runtime/interactive-mode-S5M26CQ7.js +59 -0
- package/dist/node-runtime/interactive-view-N6F4KUIT.js +247 -0
- package/dist/node-runtime/lsp-manager-3ASUSO4T.js +1104 -0
- package/dist/node-runtime/lunr-computer-use-4X3KUNF4.js +206 -0
- package/dist/node-runtime/lunr-cron-KKBOGAEF.js +274 -0
- package/dist/node-runtime/main.js +57 -0
- package/dist/node-runtime/mcp-auth-flow-YL6RWPYG.js +33 -0
- package/dist/node-runtime/mcp-panel-IIGMXQGP.js +501 -0
- package/dist/node-runtime/mcp-setup-panel-FEK7663I.js +355 -0
- package/dist/node-runtime/memory-cap-3S4XRLNP.js +20 -0
- package/dist/node-runtime/model-tiers-NJLHUEGK.js +20 -0
- package/dist/node-runtime/openai-search-B3MSNCQA.js +288 -0
- package/dist/node-runtime/package-manager-cli-C4EJOO5Q.js +751 -0
- package/dist/node-runtime/parallel-AI2MNSCU.js +265 -0
- package/dist/node-runtime/parser-manager-TQHWYDH7.js +152 -0
- package/dist/node-runtime/pdf-extract-IPE6H4HP.js +57 -0
- package/dist/node-runtime/perplexity-QVJW3I35.js +12 -0
- package/dist/node-runtime/pi-intercom-EEMBGQID.js +2215 -0
- package/dist/node-runtime/pi-mcp-adapter-DPTJGAAL.js +428 -0
- package/dist/node-runtime/pi-ollama-cloud-4VZRMULP.js +1440 -0
- package/dist/node-runtime/pi-prompt-template-model-4QT4LLXF.js +3946 -0
- package/dist/node-runtime/pi-subagents-VKCLYIBY.js +6050 -0
- package/dist/node-runtime/pi-web-access-BV6DSZOP.js +1867 -0
- package/dist/node-runtime/print-mode-VWIRFDAC.js +12 -0
- package/dist/node-runtime/proxy-modes-R64LU6WZ.js +688 -0
- package/dist/node-runtime/rpc-entry.js +65 -0
- package/dist/node-runtime/rpc-mode-SJNSOA4G.js +13 -0
- package/dist/node-runtime/runtime-3SB5ATHQ.js +21 -0
- package/dist/node-runtime/runtime-bridges-UJ5WJJLN.js +14 -0
- package/dist/node-runtime/session-manager-QEMZBMTM.js +33 -0
- package/dist/node-runtime/session-selector-URVJLOTK.js +14 -0
- package/dist/node-runtime/settings-manager-K6IPIQTI.js +23 -0
- package/dist/node-runtime/src-GPFAU3N6.js +2427 -0
- package/dist/node-runtime/subagent-executor-EFLTO32A.js +8501 -0
- package/dist/node-runtime/summary-review-YSMXKITO.js +228 -0
- package/dist/node-runtime/tavily-WEZFVFP7.js +154 -0
- package/dist/node-runtime/timings-UAD5BEAS.js +16 -0
- package/dist/node-runtime/tool-renderer-MV5O452K.js +204 -0
- package/dist/node-runtime/update-cli-I6OVDRPL.js +75 -0
- package/dist/node-runtime/v4-5MNC3H7G.js +424 -0
- package/dist/node-runtime/video-extract-ETA5RA7U.js +304 -0
- package/dist/node-runtime/workflow-SA34S4VX.js +325 -0
- package/dist/node-runtime/workspace-index-6DBXSTJ6.js +163 -0
- package/dist/node-runtime/youtube-extract-SRVGNN26.js +264 -0
- package/dist/rpc.d.ts +3 -0
- package/dist/rpc.d.ts.map +1 -0
- package/dist/rpc.js +18 -0
- package/dist/rpc.js.map +1 -0
- package/dist/startup/benchmark-request.d.ts +3 -0
- package/dist/startup/benchmark-request.d.ts.map +1 -0
- package/dist/startup/benchmark-request.js +65 -0
- package/dist/startup/benchmark-request.js.map +1 -0
- package/dist/startup/{interactive-shell.d.ts → interactive-view.d.ts} +18 -18
- package/dist/startup/interactive-view.d.ts.map +1 -0
- package/dist/startup/{interactive-shell.js → interactive-view.js} +119 -52
- package/dist/startup/interactive-view.js.map +1 -0
- package/dist/startup/launch-routing.d.ts.map +1 -1
- package/dist/startup/launch-routing.js +9 -10
- package/dist/startup/launch-routing.js.map +1 -1
- package/dist/startup/startup-milestones.d.ts +1 -1
- package/dist/startup/startup-milestones.d.ts.map +1 -1
- package/dist/startup/startup-milestones.js +3 -2
- package/dist/startup/startup-milestones.js.map +1 -1
- package/dist/utils/await-with-abort.d.ts +2 -0
- package/dist/utils/await-with-abort.d.ts.map +1 -0
- package/dist/utils/await-with-abort.js +19 -0
- package/dist/utils/await-with-abort.js.map +1 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +10 -4
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/docs/compaction.md +5 -3
- package/docs/computer-use.md +277 -0
- package/docs/development.md +5 -33
- package/docs/features.md +2 -3
- package/docs/interactive-startup.md +105 -0
- package/docs/keybindings.md +2 -2
- package/docs/terminal-setup.md +1 -1
- package/docs/usage.md +1 -2
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/hidden-thinking-label.ts +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/install-lock/package-lock.json +3827 -0
- package/install-lock/package.json +18 -0
- package/native/computer-use/LICENSE.md +21 -0
- package/npm-shrinkwrap.json +3808 -0
- package/package.json +30 -24
- package/dist/core/swarm.d.ts +0 -23
- package/dist/core/swarm.d.ts.map +0 -1
- package/dist/core/swarm.js +0 -45
- package/dist/core/swarm.js.map +0 -1
- package/dist/startup/interactive-shell.d.ts.map +0 -1
- package/dist/startup/interactive-shell.js.map +0 -1
|
@@ -0,0 +1,1180 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
__commonJS
|
|
4
|
+
} from "./chunk-BRJX2PRC.js";
|
|
5
|
+
|
|
6
|
+
// node_modules/semver/internal/constants.js
|
|
7
|
+
var require_constants = __commonJS({
|
|
8
|
+
"node_modules/semver/internal/constants.js"(exports, module) {
|
|
9
|
+
"use strict";
|
|
10
|
+
var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
11
|
+
9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [
|
|
12
|
+
"major",
|
|
13
|
+
"premajor",
|
|
14
|
+
"minor",
|
|
15
|
+
"preminor",
|
|
16
|
+
"patch",
|
|
17
|
+
"prepatch",
|
|
18
|
+
"prerelease"
|
|
19
|
+
];
|
|
20
|
+
module.exports = {
|
|
21
|
+
MAX_LENGTH: 256,
|
|
22
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
23
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
24
|
+
MAX_SAFE_INTEGER,
|
|
25
|
+
RELEASE_TYPES,
|
|
26
|
+
SEMVER_SPEC_VERSION,
|
|
27
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
28
|
+
FLAG_LOOSE: 2
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// node_modules/semver/internal/debug.js
|
|
34
|
+
var require_debug = __commonJS({
|
|
35
|
+
"node_modules/semver/internal/debug.js"(exports, module) {
|
|
36
|
+
"use strict";
|
|
37
|
+
var debug = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
38
|
+
};
|
|
39
|
+
module.exports = debug;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// node_modules/semver/internal/re.js
|
|
44
|
+
var require_re = __commonJS({
|
|
45
|
+
"node_modules/semver/internal/re.js"(exports, module) {
|
|
46
|
+
"use strict";
|
|
47
|
+
var {
|
|
48
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
49
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
50
|
+
MAX_LENGTH
|
|
51
|
+
} = require_constants(), debug = require_debug();
|
|
52
|
+
exports = module.exports = {};
|
|
53
|
+
var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], safeSrc = exports.safeSrc = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [
|
|
54
|
+
["\\s", 1],
|
|
55
|
+
["\\d", MAX_LENGTH],
|
|
56
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
57
|
+
], makeSafeRegex = (value) => {
|
|
58
|
+
for (let [token, max] of safeRegexReplacements)
|
|
59
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
60
|
+
return value;
|
|
61
|
+
}, createToken = (name, value, isGlobal) => {
|
|
62
|
+
let safe = makeSafeRegex(value), index = R++;
|
|
63
|
+
debug(name, index, value), t[name] = index, src[index] = value, safeSrc[index] = safe, re[index] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
64
|
+
};
|
|
65
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
66
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
67
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
68
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
69
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
70
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
71
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
72
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
73
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
74
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
75
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
76
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
77
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
78
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
79
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
80
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
81
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
82
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
83
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
84
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
85
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
86
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
87
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
88
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
89
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
90
|
+
createToken("COERCERTL", src[t.COERCE], !0);
|
|
91
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], !0);
|
|
92
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
93
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0);
|
|
94
|
+
exports.tildeTrimReplace = "$1~";
|
|
95
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
96
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
97
|
+
createToken("LONECARET", "(?:\\^)");
|
|
98
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0);
|
|
99
|
+
exports.caretTrimReplace = "$1^";
|
|
100
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
101
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
102
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
103
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
104
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0);
|
|
105
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
106
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
107
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
108
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
109
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
110
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// node_modules/semver/internal/parse-options.js
|
|
115
|
+
var require_parse_options = __commonJS({
|
|
116
|
+
"node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
117
|
+
"use strict";
|
|
118
|
+
var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
|
|
119
|
+
module.exports = parseOptions;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
// node_modules/semver/internal/identifiers.js
|
|
124
|
+
var require_identifiers = __commonJS({
|
|
125
|
+
"node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
126
|
+
"use strict";
|
|
127
|
+
var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
|
|
128
|
+
if (typeof a == "number" && typeof b == "number")
|
|
129
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
130
|
+
let anum = numeric.test(a), bnum = numeric.test(b);
|
|
131
|
+
return anum && bnum && (a = +a, b = +b), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
132
|
+
}, rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
133
|
+
module.exports = {
|
|
134
|
+
compareIdentifiers,
|
|
135
|
+
rcompareIdentifiers
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
// node_modules/semver/classes/semver.js
|
|
141
|
+
var require_semver = __commonJS({
|
|
142
|
+
"node_modules/semver/classes/semver.js"(exports, module) {
|
|
143
|
+
"use strict";
|
|
144
|
+
var debug = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
|
|
145
|
+
constructor(version, options) {
|
|
146
|
+
if (options = parseOptions(options), version instanceof _SemVer) {
|
|
147
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease)
|
|
148
|
+
return version;
|
|
149
|
+
version = version.version;
|
|
150
|
+
} else if (typeof version != "string")
|
|
151
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
152
|
+
if (version.length > MAX_LENGTH)
|
|
153
|
+
throw new TypeError(
|
|
154
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
155
|
+
);
|
|
156
|
+
debug("SemVer", version, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
|
|
157
|
+
let m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
158
|
+
if (!m)
|
|
159
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
160
|
+
if (this.raw = version, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0)
|
|
161
|
+
throw new TypeError("Invalid major version");
|
|
162
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
|
|
163
|
+
throw new TypeError("Invalid minor version");
|
|
164
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
|
|
165
|
+
throw new TypeError("Invalid patch version");
|
|
166
|
+
m[4] ? this.prerelease = m[4].split(".").map((id) => {
|
|
167
|
+
if (/^[0-9]+$/.test(id)) {
|
|
168
|
+
let num = +id;
|
|
169
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER)
|
|
170
|
+
return num;
|
|
171
|
+
}
|
|
172
|
+
return id;
|
|
173
|
+
}) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
|
|
174
|
+
}
|
|
175
|
+
format() {
|
|
176
|
+
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
177
|
+
}
|
|
178
|
+
toString() {
|
|
179
|
+
return this.version;
|
|
180
|
+
}
|
|
181
|
+
compare(other) {
|
|
182
|
+
if (debug("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
|
|
183
|
+
if (typeof other == "string" && other === this.version)
|
|
184
|
+
return 0;
|
|
185
|
+
other = new _SemVer(other, this.options);
|
|
186
|
+
}
|
|
187
|
+
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
|
188
|
+
}
|
|
189
|
+
compareMain(other) {
|
|
190
|
+
return other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.major < other.major ? -1 : this.major > other.major ? 1 : this.minor < other.minor ? -1 : this.minor > other.minor ? 1 : this.patch < other.patch ? -1 : this.patch > other.patch ? 1 : 0;
|
|
191
|
+
}
|
|
192
|
+
comparePre(other) {
|
|
193
|
+
if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length)
|
|
194
|
+
return -1;
|
|
195
|
+
if (!this.prerelease.length && other.prerelease.length)
|
|
196
|
+
return 1;
|
|
197
|
+
if (!this.prerelease.length && !other.prerelease.length)
|
|
198
|
+
return 0;
|
|
199
|
+
let i = 0;
|
|
200
|
+
do {
|
|
201
|
+
let a = this.prerelease[i], b = other.prerelease[i];
|
|
202
|
+
if (debug("prerelease compare", i, a, b), a === void 0 && b === void 0)
|
|
203
|
+
return 0;
|
|
204
|
+
if (b === void 0)
|
|
205
|
+
return 1;
|
|
206
|
+
if (a === void 0)
|
|
207
|
+
return -1;
|
|
208
|
+
if (a === b)
|
|
209
|
+
continue;
|
|
210
|
+
return compareIdentifiers(a, b);
|
|
211
|
+
} while (++i);
|
|
212
|
+
}
|
|
213
|
+
compareBuild(other) {
|
|
214
|
+
other instanceof _SemVer || (other = new _SemVer(other, this.options));
|
|
215
|
+
let i = 0;
|
|
216
|
+
do {
|
|
217
|
+
let a = this.build[i], b = other.build[i];
|
|
218
|
+
if (debug("build compare", i, a, b), a === void 0 && b === void 0)
|
|
219
|
+
return 0;
|
|
220
|
+
if (b === void 0)
|
|
221
|
+
return 1;
|
|
222
|
+
if (a === void 0)
|
|
223
|
+
return -1;
|
|
224
|
+
if (a === b)
|
|
225
|
+
continue;
|
|
226
|
+
return compareIdentifiers(a, b);
|
|
227
|
+
} while (++i);
|
|
228
|
+
}
|
|
229
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
230
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
231
|
+
inc(release, identifier, identifierBase) {
|
|
232
|
+
if (release.startsWith("pre")) {
|
|
233
|
+
if (!identifier && identifierBase === !1)
|
|
234
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
235
|
+
if (identifier) {
|
|
236
|
+
let match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
237
|
+
if (!match || match[1] !== identifier)
|
|
238
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
switch (release) {
|
|
242
|
+
case "premajor":
|
|
243
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
|
|
244
|
+
break;
|
|
245
|
+
case "preminor":
|
|
246
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
|
|
247
|
+
break;
|
|
248
|
+
case "prepatch":
|
|
249
|
+
this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
250
|
+
break;
|
|
251
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
252
|
+
// prepatch.
|
|
253
|
+
case "prerelease":
|
|
254
|
+
this.prerelease.length === 0 && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
|
255
|
+
break;
|
|
256
|
+
case "release":
|
|
257
|
+
if (this.prerelease.length === 0)
|
|
258
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
259
|
+
this.prerelease.length = 0;
|
|
260
|
+
break;
|
|
261
|
+
case "major":
|
|
262
|
+
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
263
|
+
break;
|
|
264
|
+
case "minor":
|
|
265
|
+
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
266
|
+
break;
|
|
267
|
+
case "patch":
|
|
268
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
269
|
+
break;
|
|
270
|
+
// This probably shouldn't be used publicly.
|
|
271
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
272
|
+
case "pre": {
|
|
273
|
+
let base = Number(identifierBase) ? 1 : 0;
|
|
274
|
+
if (this.prerelease.length === 0)
|
|
275
|
+
this.prerelease = [base];
|
|
276
|
+
else {
|
|
277
|
+
let i = this.prerelease.length;
|
|
278
|
+
for (; --i >= 0; )
|
|
279
|
+
typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
|
|
280
|
+
if (i === -1) {
|
|
281
|
+
if (identifier === this.prerelease.join(".") && identifierBase === !1)
|
|
282
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
283
|
+
this.prerelease.push(base);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
if (identifier) {
|
|
287
|
+
let prerelease = [identifier, base];
|
|
288
|
+
identifierBase === !1 && (prerelease = [identifier]), compareIdentifiers(this.prerelease[0], identifier) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
|
289
|
+
}
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
default:
|
|
293
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
294
|
+
}
|
|
295
|
+
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
module.exports = SemVer;
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
// node_modules/semver/functions/parse.js
|
|
303
|
+
var require_parse = __commonJS({
|
|
304
|
+
"node_modules/semver/functions/parse.js"(exports, module) {
|
|
305
|
+
"use strict";
|
|
306
|
+
var SemVer = require_semver(), parse = (version, options, throwErrors = !1) => {
|
|
307
|
+
if (version instanceof SemVer)
|
|
308
|
+
return version;
|
|
309
|
+
try {
|
|
310
|
+
return new SemVer(version, options);
|
|
311
|
+
} catch (er) {
|
|
312
|
+
if (!throwErrors)
|
|
313
|
+
return null;
|
|
314
|
+
throw er;
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
module.exports = parse;
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
// node_modules/semver/functions/valid.js
|
|
322
|
+
var require_valid = __commonJS({
|
|
323
|
+
"node_modules/semver/functions/valid.js"(exports, module) {
|
|
324
|
+
"use strict";
|
|
325
|
+
var parse = require_parse(), valid = (version, options) => {
|
|
326
|
+
let v = parse(version, options);
|
|
327
|
+
return v ? v.version : null;
|
|
328
|
+
};
|
|
329
|
+
module.exports = valid;
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
|
|
333
|
+
// node_modules/semver/functions/clean.js
|
|
334
|
+
var require_clean = __commonJS({
|
|
335
|
+
"node_modules/semver/functions/clean.js"(exports, module) {
|
|
336
|
+
"use strict";
|
|
337
|
+
var parse = require_parse(), clean = (version, options) => {
|
|
338
|
+
let s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
339
|
+
return s ? s.version : null;
|
|
340
|
+
};
|
|
341
|
+
module.exports = clean;
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
// node_modules/semver/functions/inc.js
|
|
346
|
+
var require_inc = __commonJS({
|
|
347
|
+
"node_modules/semver/functions/inc.js"(exports, module) {
|
|
348
|
+
"use strict";
|
|
349
|
+
var SemVer = require_semver(), inc = (version, release, options, identifier, identifierBase) => {
|
|
350
|
+
typeof options == "string" && (identifierBase = identifier, identifier = options, options = void 0);
|
|
351
|
+
try {
|
|
352
|
+
return new SemVer(
|
|
353
|
+
version instanceof SemVer ? version.version : version,
|
|
354
|
+
options
|
|
355
|
+
).inc(release, identifier, identifierBase).version;
|
|
356
|
+
} catch {
|
|
357
|
+
return null;
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
module.exports = inc;
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
// node_modules/semver/functions/diff.js
|
|
365
|
+
var require_diff = __commonJS({
|
|
366
|
+
"node_modules/semver/functions/diff.js"(exports, module) {
|
|
367
|
+
"use strict";
|
|
368
|
+
var parse = require_parse(), diff = (version1, version2) => {
|
|
369
|
+
let v1 = parse(version1, null, !0), v2 = parse(version2, null, !0), comparison = v1.compare(v2);
|
|
370
|
+
if (comparison === 0)
|
|
371
|
+
return null;
|
|
372
|
+
let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
|
|
373
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
374
|
+
if (!lowVersion.patch && !lowVersion.minor)
|
|
375
|
+
return "major";
|
|
376
|
+
if (lowVersion.compareMain(highVersion) === 0)
|
|
377
|
+
return lowVersion.minor && !lowVersion.patch ? "minor" : "patch";
|
|
378
|
+
}
|
|
379
|
+
let prefix = highHasPre ? "pre" : "";
|
|
380
|
+
return v1.major !== v2.major ? prefix + "major" : v1.minor !== v2.minor ? prefix + "minor" : v1.patch !== v2.patch ? prefix + "patch" : "prerelease";
|
|
381
|
+
};
|
|
382
|
+
module.exports = diff;
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
// node_modules/semver/functions/major.js
|
|
387
|
+
var require_major = __commonJS({
|
|
388
|
+
"node_modules/semver/functions/major.js"(exports, module) {
|
|
389
|
+
"use strict";
|
|
390
|
+
var SemVer = require_semver(), major = (a, loose) => new SemVer(a, loose).major;
|
|
391
|
+
module.exports = major;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
// node_modules/semver/functions/minor.js
|
|
396
|
+
var require_minor = __commonJS({
|
|
397
|
+
"node_modules/semver/functions/minor.js"(exports, module) {
|
|
398
|
+
"use strict";
|
|
399
|
+
var SemVer = require_semver(), minor = (a, loose) => new SemVer(a, loose).minor;
|
|
400
|
+
module.exports = minor;
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
|
|
404
|
+
// node_modules/semver/functions/patch.js
|
|
405
|
+
var require_patch = __commonJS({
|
|
406
|
+
"node_modules/semver/functions/patch.js"(exports, module) {
|
|
407
|
+
"use strict";
|
|
408
|
+
var SemVer = require_semver(), patch = (a, loose) => new SemVer(a, loose).patch;
|
|
409
|
+
module.exports = patch;
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
|
|
413
|
+
// node_modules/semver/functions/prerelease.js
|
|
414
|
+
var require_prerelease = __commonJS({
|
|
415
|
+
"node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
416
|
+
"use strict";
|
|
417
|
+
var parse = require_parse(), prerelease = (version, options) => {
|
|
418
|
+
let parsed = parse(version, options);
|
|
419
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
420
|
+
};
|
|
421
|
+
module.exports = prerelease;
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
|
|
425
|
+
// node_modules/semver/functions/compare.js
|
|
426
|
+
var require_compare = __commonJS({
|
|
427
|
+
"node_modules/semver/functions/compare.js"(exports, module) {
|
|
428
|
+
"use strict";
|
|
429
|
+
var SemVer = require_semver(), compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
430
|
+
module.exports = compare;
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
// node_modules/semver/functions/rcompare.js
|
|
435
|
+
var require_rcompare = __commonJS({
|
|
436
|
+
"node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
437
|
+
"use strict";
|
|
438
|
+
var compare = require_compare(), rcompare = (a, b, loose) => compare(b, a, loose);
|
|
439
|
+
module.exports = rcompare;
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
// node_modules/semver/functions/compare-loose.js
|
|
444
|
+
var require_compare_loose = __commonJS({
|
|
445
|
+
"node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
446
|
+
"use strict";
|
|
447
|
+
var compare = require_compare(), compareLoose = (a, b) => compare(a, b, !0);
|
|
448
|
+
module.exports = compareLoose;
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
// node_modules/semver/functions/compare-build.js
|
|
453
|
+
var require_compare_build = __commonJS({
|
|
454
|
+
"node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
455
|
+
"use strict";
|
|
456
|
+
var SemVer = require_semver(), compareBuild = (a, b, loose) => {
|
|
457
|
+
let versionA = new SemVer(a, loose), versionB = new SemVer(b, loose);
|
|
458
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
459
|
+
};
|
|
460
|
+
module.exports = compareBuild;
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
// node_modules/semver/functions/sort.js
|
|
465
|
+
var require_sort = __commonJS({
|
|
466
|
+
"node_modules/semver/functions/sort.js"(exports, module) {
|
|
467
|
+
"use strict";
|
|
468
|
+
var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
469
|
+
module.exports = sort;
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
// node_modules/semver/functions/rsort.js
|
|
474
|
+
var require_rsort = __commonJS({
|
|
475
|
+
"node_modules/semver/functions/rsort.js"(exports, module) {
|
|
476
|
+
"use strict";
|
|
477
|
+
var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
478
|
+
module.exports = rsort;
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
|
|
482
|
+
// node_modules/semver/functions/gt.js
|
|
483
|
+
var require_gt = __commonJS({
|
|
484
|
+
"node_modules/semver/functions/gt.js"(exports, module) {
|
|
485
|
+
"use strict";
|
|
486
|
+
var compare = require_compare(), gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
487
|
+
module.exports = gt;
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
// node_modules/semver/functions/lt.js
|
|
492
|
+
var require_lt = __commonJS({
|
|
493
|
+
"node_modules/semver/functions/lt.js"(exports, module) {
|
|
494
|
+
"use strict";
|
|
495
|
+
var compare = require_compare(), lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
496
|
+
module.exports = lt;
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
|
|
500
|
+
// node_modules/semver/functions/eq.js
|
|
501
|
+
var require_eq = __commonJS({
|
|
502
|
+
"node_modules/semver/functions/eq.js"(exports, module) {
|
|
503
|
+
"use strict";
|
|
504
|
+
var compare = require_compare(), eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
505
|
+
module.exports = eq;
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
|
|
509
|
+
// node_modules/semver/functions/neq.js
|
|
510
|
+
var require_neq = __commonJS({
|
|
511
|
+
"node_modules/semver/functions/neq.js"(exports, module) {
|
|
512
|
+
"use strict";
|
|
513
|
+
var compare = require_compare(), neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
514
|
+
module.exports = neq;
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
|
|
518
|
+
// node_modules/semver/functions/gte.js
|
|
519
|
+
var require_gte = __commonJS({
|
|
520
|
+
"node_modules/semver/functions/gte.js"(exports, module) {
|
|
521
|
+
"use strict";
|
|
522
|
+
var compare = require_compare(), gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
523
|
+
module.exports = gte;
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
|
|
527
|
+
// node_modules/semver/functions/lte.js
|
|
528
|
+
var require_lte = __commonJS({
|
|
529
|
+
"node_modules/semver/functions/lte.js"(exports, module) {
|
|
530
|
+
"use strict";
|
|
531
|
+
var compare = require_compare(), lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
532
|
+
module.exports = lte;
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
|
|
536
|
+
// node_modules/semver/functions/cmp.js
|
|
537
|
+
var require_cmp = __commonJS({
|
|
538
|
+
"node_modules/semver/functions/cmp.js"(exports, module) {
|
|
539
|
+
"use strict";
|
|
540
|
+
var eq = require_eq(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a, op, b, loose) => {
|
|
541
|
+
switch (op) {
|
|
542
|
+
case "===":
|
|
543
|
+
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a === b;
|
|
544
|
+
case "!==":
|
|
545
|
+
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a !== b;
|
|
546
|
+
case "":
|
|
547
|
+
case "=":
|
|
548
|
+
case "==":
|
|
549
|
+
return eq(a, b, loose);
|
|
550
|
+
case "!=":
|
|
551
|
+
return neq(a, b, loose);
|
|
552
|
+
case ">":
|
|
553
|
+
return gt(a, b, loose);
|
|
554
|
+
case ">=":
|
|
555
|
+
return gte(a, b, loose);
|
|
556
|
+
case "<":
|
|
557
|
+
return lt(a, b, loose);
|
|
558
|
+
case "<=":
|
|
559
|
+
return lte(a, b, loose);
|
|
560
|
+
default:
|
|
561
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
module.exports = cmp;
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
|
|
568
|
+
// node_modules/semver/functions/coerce.js
|
|
569
|
+
var require_coerce = __commonJS({
|
|
570
|
+
"node_modules/semver/functions/coerce.js"(exports, module) {
|
|
571
|
+
"use strict";
|
|
572
|
+
var SemVer = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(), coerce = (version, options) => {
|
|
573
|
+
if (version instanceof SemVer)
|
|
574
|
+
return version;
|
|
575
|
+
if (typeof version == "number" && (version = String(version)), typeof version != "string")
|
|
576
|
+
return null;
|
|
577
|
+
options = options || {};
|
|
578
|
+
let match = null;
|
|
579
|
+
if (!options.rtl)
|
|
580
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
581
|
+
else {
|
|
582
|
+
let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next;
|
|
583
|
+
for (; (next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length); )
|
|
584
|
+
(!match || next.index + next[0].length !== match.index + match[0].length) && (match = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
585
|
+
coerceRtlRegex.lastIndex = -1;
|
|
586
|
+
}
|
|
587
|
+
if (match === null)
|
|
588
|
+
return null;
|
|
589
|
+
let major = match[2], minor = match[3] || "0", patch = match[4] || "0", prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "", build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
590
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
591
|
+
};
|
|
592
|
+
module.exports = coerce;
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
|
|
596
|
+
// node_modules/semver/functions/truncate.js
|
|
597
|
+
var require_truncate = __commonJS({
|
|
598
|
+
"node_modules/semver/functions/truncate.js"(exports, module) {
|
|
599
|
+
"use strict";
|
|
600
|
+
var parse = require_parse(), constants = require_constants(), SemVer = require_semver(), truncate = (version, truncation, options) => {
|
|
601
|
+
if (!constants.RELEASE_TYPES.includes(truncation))
|
|
602
|
+
return null;
|
|
603
|
+
let clonedVersion = cloneInputVersion(version, options);
|
|
604
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
605
|
+
}, cloneInputVersion = (version, options) => {
|
|
606
|
+
let versionStringToParse = version instanceof SemVer ? version.version : version;
|
|
607
|
+
return parse(versionStringToParse, options);
|
|
608
|
+
}, doTruncation = (version, truncation) => {
|
|
609
|
+
if (isPrerelease(truncation))
|
|
610
|
+
return version.version;
|
|
611
|
+
switch (version.prerelease = [], truncation) {
|
|
612
|
+
case "major":
|
|
613
|
+
version.minor = 0, version.patch = 0;
|
|
614
|
+
break;
|
|
615
|
+
case "minor":
|
|
616
|
+
version.patch = 0;
|
|
617
|
+
break;
|
|
618
|
+
}
|
|
619
|
+
return version.format();
|
|
620
|
+
}, isPrerelease = (type) => type.startsWith("pre");
|
|
621
|
+
module.exports = truncate;
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
|
|
625
|
+
// node_modules/semver/internal/lrucache.js
|
|
626
|
+
var require_lrucache = __commonJS({
|
|
627
|
+
"node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
628
|
+
"use strict";
|
|
629
|
+
var LRUCache = class {
|
|
630
|
+
constructor() {
|
|
631
|
+
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
632
|
+
}
|
|
633
|
+
get(key) {
|
|
634
|
+
let value = this.map.get(key);
|
|
635
|
+
if (value !== void 0)
|
|
636
|
+
return this.map.delete(key), this.map.set(key, value), value;
|
|
637
|
+
}
|
|
638
|
+
delete(key) {
|
|
639
|
+
return this.map.delete(key);
|
|
640
|
+
}
|
|
641
|
+
set(key, value) {
|
|
642
|
+
if (!this.delete(key) && value !== void 0) {
|
|
643
|
+
if (this.map.size >= this.max) {
|
|
644
|
+
let firstKey = this.map.keys().next().value;
|
|
645
|
+
this.delete(firstKey);
|
|
646
|
+
}
|
|
647
|
+
this.map.set(key, value);
|
|
648
|
+
}
|
|
649
|
+
return this;
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
module.exports = LRUCache;
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
|
|
656
|
+
// node_modules/semver/classes/range.js
|
|
657
|
+
var require_range = __commonJS({
|
|
658
|
+
"node_modules/semver/classes/range.js"(exports, module) {
|
|
659
|
+
"use strict";
|
|
660
|
+
var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
|
|
661
|
+
constructor(range, options) {
|
|
662
|
+
if (options = parseOptions(options), range instanceof _Range)
|
|
663
|
+
return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
|
|
664
|
+
if (range instanceof Comparator)
|
|
665
|
+
return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
|
|
666
|
+
if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().replace(SPACE_CHARACTERS, " "), this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length), !this.set.length)
|
|
667
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
668
|
+
if (this.set.length > 1) {
|
|
669
|
+
let first = this.set[0];
|
|
670
|
+
if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0)
|
|
671
|
+
this.set = [first];
|
|
672
|
+
else if (this.set.length > 1) {
|
|
673
|
+
for (let c of this.set)
|
|
674
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
675
|
+
this.set = [c];
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
this.formatted = void 0;
|
|
681
|
+
}
|
|
682
|
+
get range() {
|
|
683
|
+
if (this.formatted === void 0) {
|
|
684
|
+
this.formatted = "";
|
|
685
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
686
|
+
i > 0 && (this.formatted += "||");
|
|
687
|
+
let comps = this.set[i];
|
|
688
|
+
for (let k = 0; k < comps.length; k++)
|
|
689
|
+
k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
return this.formatted;
|
|
693
|
+
}
|
|
694
|
+
format() {
|
|
695
|
+
return this.range;
|
|
696
|
+
}
|
|
697
|
+
toString() {
|
|
698
|
+
return this.range;
|
|
699
|
+
}
|
|
700
|
+
parseRange(range) {
|
|
701
|
+
let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache.get(memoKey);
|
|
702
|
+
if (cached)
|
|
703
|
+
return cached;
|
|
704
|
+
let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
705
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug("hyphen replace", range), range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace), debug("comparator trim", range), range = range.replace(re[t.TILDETRIM], tildeTrimReplace), debug("tilde trim", range), range = range.replace(re[t.CARETTRIM], caretTrimReplace), debug("caret trim", range);
|
|
706
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
707
|
+
loose && (rangeList = rangeList.filter((comp) => (debug("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug("range list", rangeList);
|
|
708
|
+
let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
709
|
+
for (let comp of comparators) {
|
|
710
|
+
if (isNullSet(comp))
|
|
711
|
+
return [comp];
|
|
712
|
+
rangeMap.set(comp.value, comp);
|
|
713
|
+
}
|
|
714
|
+
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
|
715
|
+
let result = [...rangeMap.values()];
|
|
716
|
+
return cache.set(memoKey, result), result;
|
|
717
|
+
}
|
|
718
|
+
intersects(range, options) {
|
|
719
|
+
if (!(range instanceof _Range))
|
|
720
|
+
throw new TypeError("a Range is required");
|
|
721
|
+
return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
|
|
722
|
+
}
|
|
723
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
724
|
+
test(version) {
|
|
725
|
+
if (!version)
|
|
726
|
+
return !1;
|
|
727
|
+
if (typeof version == "string")
|
|
728
|
+
try {
|
|
729
|
+
version = new SemVer(version, this.options);
|
|
730
|
+
} catch {
|
|
731
|
+
return !1;
|
|
732
|
+
}
|
|
733
|
+
for (let i = 0; i < this.set.length; i++)
|
|
734
|
+
if (testSet(this.set[i], version, this.options))
|
|
735
|
+
return !0;
|
|
736
|
+
return !1;
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
module.exports = Range;
|
|
740
|
+
var LRU = require_lrucache(), cache = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug = require_debug(), SemVer = require_semver(), {
|
|
741
|
+
safeRe: re,
|
|
742
|
+
t,
|
|
743
|
+
comparatorTrimReplace,
|
|
744
|
+
tildeTrimReplace,
|
|
745
|
+
caretTrimReplace
|
|
746
|
+
} = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
|
|
747
|
+
let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
|
|
748
|
+
for (; result && remainingComparators.length; )
|
|
749
|
+
result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
|
|
750
|
+
return result;
|
|
751
|
+
}, parseComparator = (comp, options) => (comp = comp.replace(re[t.BUILD], ""), debug("comp", comp, options), comp = replaceCarets(comp, options), debug("caret", comp), comp = replaceTildes(comp, options), debug("tildes", comp), comp = replaceXRanges(comp, options), debug("xrange", comp), comp = replaceStars(comp, options), debug("stars", comp), comp), isX = (id) => !id || id.toLowerCase() === "x" || id === "*", replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
|
|
752
|
+
let r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
753
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
754
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
755
|
+
let ret;
|
|
756
|
+
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0 <${+M + 1}.0.0-0` : isX(p) ? ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` : pr ? (debug("replaceTilde pr", pr), ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`) : ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`, debug("tilde return", ret), ret;
|
|
757
|
+
});
|
|
758
|
+
}, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
|
|
759
|
+
debug("caret", comp, options);
|
|
760
|
+
let r = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : "";
|
|
761
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
762
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
763
|
+
let ret;
|
|
764
|
+
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` : isX(p) ? M === "0" ? ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` : pr ? (debug("replaceCaret pr", pr), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`) : (debug("no pr"), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`), debug("caret return", ret), ret;
|
|
765
|
+
});
|
|
766
|
+
}, replaceXRanges = (comp, options) => (debug("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
|
|
767
|
+
comp = comp.trim();
|
|
768
|
+
let r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
769
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
770
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
771
|
+
let xM = isX(M), xm = xM || isX(m), xp = xm || isX(p), anyX = xp;
|
|
772
|
+
return gtlt === "=" && anyX && (gtlt = ""), pr = options.includePrerelease ? "-0" : "", xM ? gtlt === ">" || gtlt === "<" ? ret = "<0.0.0-0" : ret = "*" : gtlt && anyX ? (xm && (m = 0), p = 0, gtlt === ">" ? (gtlt = ">=", xm ? (M = +M + 1, m = 0, p = 0) : (m = +m + 1, p = 0)) : gtlt === "<=" && (gtlt = "<", xm ? M = +M + 1 : m = +m + 1), gtlt === "<" && (pr = "-0"), ret = `${gtlt + M}.${m}.${p}${pr}`) : xm ? ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` : xp && (ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`), debug("xRange return", ret), ret;
|
|
773
|
+
});
|
|
774
|
+
}, replaceStars = (comp, options) => (debug("replaceStars", comp, options), comp.trim().replace(re[t.STAR], "")), replaceGTE0 = (comp, options) => (debug("replaceGTE0", comp, options), comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "")), hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => (isX(fM) ? from = "" : isX(fm) ? from = `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? from = `>=${from}` : from = `>=${from}${incPr ? "-0" : ""}`, isX(tM) ? to = "" : isX(tm) ? to = `<${+tM + 1}.0.0-0` : isX(tp) ? to = `<${tM}.${+tm + 1}.0-0` : tpr ? to = `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? to = `<${tM}.${tm}.${+tp + 1}-0` : to = `<=${to}`, `${from} ${to}`.trim()), testSet = (set, version, options) => {
|
|
775
|
+
for (let i = 0; i < set.length; i++)
|
|
776
|
+
if (!set[i].test(version))
|
|
777
|
+
return !1;
|
|
778
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
779
|
+
for (let i = 0; i < set.length; i++)
|
|
780
|
+
if (debug(set[i].semver), set[i].semver !== Comparator.ANY && set[i].semver.prerelease.length > 0) {
|
|
781
|
+
let allowed = set[i].semver;
|
|
782
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch)
|
|
783
|
+
return !0;
|
|
784
|
+
}
|
|
785
|
+
return !1;
|
|
786
|
+
}
|
|
787
|
+
return !0;
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
|
|
792
|
+
// node_modules/semver/classes/comparator.js
|
|
793
|
+
var require_comparator = __commonJS({
|
|
794
|
+
"node_modules/semver/classes/comparator.js"(exports, module) {
|
|
795
|
+
"use strict";
|
|
796
|
+
var ANY = /* @__PURE__ */ Symbol("SemVer ANY"), Comparator = class _Comparator {
|
|
797
|
+
static get ANY() {
|
|
798
|
+
return ANY;
|
|
799
|
+
}
|
|
800
|
+
constructor(comp, options) {
|
|
801
|
+
if (options = parseOptions(options), comp instanceof _Comparator) {
|
|
802
|
+
if (comp.loose === !!options.loose)
|
|
803
|
+
return comp;
|
|
804
|
+
comp = comp.value;
|
|
805
|
+
}
|
|
806
|
+
comp = comp.trim().split(/\s+/).join(" "), debug("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug("comp", this);
|
|
807
|
+
}
|
|
808
|
+
parse(comp) {
|
|
809
|
+
let r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m = comp.match(r);
|
|
810
|
+
if (!m)
|
|
811
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
812
|
+
this.operator = m[1] !== void 0 ? m[1] : "", this.operator === "=" && (this.operator = ""), m[2] ? this.semver = new SemVer(m[2], this.options.loose) : this.semver = ANY;
|
|
813
|
+
}
|
|
814
|
+
toString() {
|
|
815
|
+
return this.value;
|
|
816
|
+
}
|
|
817
|
+
test(version) {
|
|
818
|
+
if (debug("Comparator.test", version, this.options.loose), this.semver === ANY || version === ANY)
|
|
819
|
+
return !0;
|
|
820
|
+
if (typeof version == "string")
|
|
821
|
+
try {
|
|
822
|
+
version = new SemVer(version, this.options);
|
|
823
|
+
} catch {
|
|
824
|
+
return !1;
|
|
825
|
+
}
|
|
826
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
827
|
+
}
|
|
828
|
+
intersects(comp, options) {
|
|
829
|
+
if (!(comp instanceof _Comparator))
|
|
830
|
+
throw new TypeError("a Comparator is required");
|
|
831
|
+
return this.operator === "" ? this.value === "" ? !0 : new Range(comp.value, options).test(this.value) : comp.operator === "" ? comp.value === "" ? !0 : new Range(this.value, options).test(comp.semver) : (options = parseOptions(options), options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0") || !options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && comp.operator.startsWith(">") || this.operator.startsWith("<") && comp.operator.startsWith("<") || this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=") || cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<") || cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")));
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
module.exports = Comparator;
|
|
835
|
+
var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug = require_debug(), SemVer = require_semver(), Range = require_range();
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
|
|
839
|
+
// node_modules/semver/functions/satisfies.js
|
|
840
|
+
var require_satisfies = __commonJS({
|
|
841
|
+
"node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
842
|
+
"use strict";
|
|
843
|
+
var Range = require_range(), satisfies = (version, range, options) => {
|
|
844
|
+
try {
|
|
845
|
+
range = new Range(range, options);
|
|
846
|
+
} catch {
|
|
847
|
+
return !1;
|
|
848
|
+
}
|
|
849
|
+
return range.test(version);
|
|
850
|
+
};
|
|
851
|
+
module.exports = satisfies;
|
|
852
|
+
}
|
|
853
|
+
});
|
|
854
|
+
|
|
855
|
+
// node_modules/semver/ranges/to-comparators.js
|
|
856
|
+
var require_to_comparators = __commonJS({
|
|
857
|
+
"node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
858
|
+
"use strict";
|
|
859
|
+
var Range = require_range(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
860
|
+
module.exports = toComparators;
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
|
|
864
|
+
// node_modules/semver/ranges/max-satisfying.js
|
|
865
|
+
var require_max_satisfying = __commonJS({
|
|
866
|
+
"node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
867
|
+
"use strict";
|
|
868
|
+
var SemVer = require_semver(), Range = require_range(), maxSatisfying = (versions, range, options) => {
|
|
869
|
+
let max = null, maxSV = null, rangeObj = null;
|
|
870
|
+
try {
|
|
871
|
+
rangeObj = new Range(range, options);
|
|
872
|
+
} catch {
|
|
873
|
+
return null;
|
|
874
|
+
}
|
|
875
|
+
return versions.forEach((v) => {
|
|
876
|
+
rangeObj.test(v) && (!max || maxSV.compare(v) === -1) && (max = v, maxSV = new SemVer(max, options));
|
|
877
|
+
}), max;
|
|
878
|
+
};
|
|
879
|
+
module.exports = maxSatisfying;
|
|
880
|
+
}
|
|
881
|
+
});
|
|
882
|
+
|
|
883
|
+
// node_modules/semver/ranges/min-satisfying.js
|
|
884
|
+
var require_min_satisfying = __commonJS({
|
|
885
|
+
"node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
886
|
+
"use strict";
|
|
887
|
+
var SemVer = require_semver(), Range = require_range(), minSatisfying = (versions, range, options) => {
|
|
888
|
+
let min = null, minSV = null, rangeObj = null;
|
|
889
|
+
try {
|
|
890
|
+
rangeObj = new Range(range, options);
|
|
891
|
+
} catch {
|
|
892
|
+
return null;
|
|
893
|
+
}
|
|
894
|
+
return versions.forEach((v) => {
|
|
895
|
+
rangeObj.test(v) && (!min || minSV.compare(v) === 1) && (min = v, minSV = new SemVer(min, options));
|
|
896
|
+
}), min;
|
|
897
|
+
};
|
|
898
|
+
module.exports = minSatisfying;
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
|
|
902
|
+
// node_modules/semver/ranges/min-version.js
|
|
903
|
+
var require_min_version = __commonJS({
|
|
904
|
+
"node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
905
|
+
"use strict";
|
|
906
|
+
var SemVer = require_semver(), Range = require_range(), gt = require_gt(), minVersion = (range, loose) => {
|
|
907
|
+
range = new Range(range, loose);
|
|
908
|
+
let minver = new SemVer("0.0.0");
|
|
909
|
+
if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver)))
|
|
910
|
+
return minver;
|
|
911
|
+
minver = null;
|
|
912
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
913
|
+
let comparators = range.set[i], setMin = null;
|
|
914
|
+
comparators.forEach((comparator) => {
|
|
915
|
+
let compver = new SemVer(comparator.semver.version);
|
|
916
|
+
switch (comparator.operator) {
|
|
917
|
+
case ">":
|
|
918
|
+
compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
|
919
|
+
/* fallthrough */
|
|
920
|
+
case "":
|
|
921
|
+
case ">=":
|
|
922
|
+
(!setMin || gt(compver, setMin)) && (setMin = compver);
|
|
923
|
+
break;
|
|
924
|
+
case "<":
|
|
925
|
+
case "<=":
|
|
926
|
+
break;
|
|
927
|
+
/* istanbul ignore next */
|
|
928
|
+
default:
|
|
929
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
930
|
+
}
|
|
931
|
+
}), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
|
|
932
|
+
}
|
|
933
|
+
return minver && range.test(minver) ? minver : null;
|
|
934
|
+
};
|
|
935
|
+
module.exports = minVersion;
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
|
|
939
|
+
// node_modules/semver/ranges/valid.js
|
|
940
|
+
var require_valid2 = __commonJS({
|
|
941
|
+
"node_modules/semver/ranges/valid.js"(exports, module) {
|
|
942
|
+
"use strict";
|
|
943
|
+
var Range = require_range(), validRange = (range, options) => {
|
|
944
|
+
try {
|
|
945
|
+
return new Range(range, options).range || "*";
|
|
946
|
+
} catch {
|
|
947
|
+
return null;
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
module.exports = validRange;
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
|
|
954
|
+
// node_modules/semver/ranges/outside.js
|
|
955
|
+
var require_outside = __commonJS({
|
|
956
|
+
"node_modules/semver/ranges/outside.js"(exports, module) {
|
|
957
|
+
"use strict";
|
|
958
|
+
var SemVer = require_semver(), Comparator = require_comparator(), { ANY } = Comparator, Range = require_range(), satisfies = require_satisfies(), gt = require_gt(), lt = require_lt(), lte = require_lte(), gte = require_gte(), outside = (version, range, hilo, options) => {
|
|
959
|
+
version = new SemVer(version, options), range = new Range(range, options);
|
|
960
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
961
|
+
switch (hilo) {
|
|
962
|
+
case ">":
|
|
963
|
+
gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
|
|
964
|
+
break;
|
|
965
|
+
case "<":
|
|
966
|
+
gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
|
|
967
|
+
break;
|
|
968
|
+
default:
|
|
969
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
970
|
+
}
|
|
971
|
+
if (satisfies(version, range, options))
|
|
972
|
+
return !1;
|
|
973
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
974
|
+
let comparators = range.set[i], high = null, low = null;
|
|
975
|
+
if (comparators.forEach((comparator) => {
|
|
976
|
+
comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
|
|
977
|
+
}), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version, low.semver))
|
|
978
|
+
return !1;
|
|
979
|
+
if (low.operator === ecomp && ltfn(version, low.semver))
|
|
980
|
+
return !1;
|
|
981
|
+
}
|
|
982
|
+
return !0;
|
|
983
|
+
};
|
|
984
|
+
module.exports = outside;
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
|
|
988
|
+
// node_modules/semver/ranges/gtr.js
|
|
989
|
+
var require_gtr = __commonJS({
|
|
990
|
+
"node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
991
|
+
"use strict";
|
|
992
|
+
var outside = require_outside(), gtr = (version, range, options) => outside(version, range, ">", options);
|
|
993
|
+
module.exports = gtr;
|
|
994
|
+
}
|
|
995
|
+
});
|
|
996
|
+
|
|
997
|
+
// node_modules/semver/ranges/ltr.js
|
|
998
|
+
var require_ltr = __commonJS({
|
|
999
|
+
"node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
1000
|
+
"use strict";
|
|
1001
|
+
var outside = require_outside(), ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1002
|
+
module.exports = ltr;
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
|
|
1006
|
+
// node_modules/semver/ranges/intersects.js
|
|
1007
|
+
var require_intersects = __commonJS({
|
|
1008
|
+
"node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
1009
|
+
"use strict";
|
|
1010
|
+
var Range = require_range(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
|
|
1011
|
+
module.exports = intersects;
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
|
|
1015
|
+
// node_modules/semver/ranges/simplify.js
|
|
1016
|
+
var require_simplify = __commonJS({
|
|
1017
|
+
"node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
1018
|
+
"use strict";
|
|
1019
|
+
var satisfies = require_satisfies(), compare = require_compare();
|
|
1020
|
+
module.exports = (versions, range, options) => {
|
|
1021
|
+
let set = [], first = null, prev = null, v = versions.sort((a, b) => compare(a, b, options));
|
|
1022
|
+
for (let version of v)
|
|
1023
|
+
satisfies(version, range, options) ? (prev = version, first || (first = version)) : (prev && set.push([first, prev]), prev = null, first = null);
|
|
1024
|
+
first && set.push([first, null]);
|
|
1025
|
+
let ranges = [];
|
|
1026
|
+
for (let [min, max] of set)
|
|
1027
|
+
min === max ? ranges.push(min) : !max && min === v[0] ? ranges.push("*") : max ? min === v[0] ? ranges.push(`<=${max}`) : ranges.push(`${min} - ${max}`) : ranges.push(`>=${min}`);
|
|
1028
|
+
let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
|
|
1029
|
+
return simplified.length < original.length ? simplified : range;
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
});
|
|
1033
|
+
|
|
1034
|
+
// node_modules/semver/ranges/subset.js
|
|
1035
|
+
var require_subset = __commonJS({
|
|
1036
|
+
"node_modules/semver/ranges/subset.js"(exports, module) {
|
|
1037
|
+
"use strict";
|
|
1038
|
+
var Range = require_range(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
|
|
1039
|
+
if (sub === dom)
|
|
1040
|
+
return !0;
|
|
1041
|
+
sub = new Range(sub, options), dom = new Range(dom, options);
|
|
1042
|
+
let sawNonNull = !1;
|
|
1043
|
+
OUTER: for (let simpleSub of sub.set) {
|
|
1044
|
+
for (let simpleDom of dom.set) {
|
|
1045
|
+
let isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
1046
|
+
if (sawNonNull = sawNonNull || isSub !== null, isSub)
|
|
1047
|
+
continue OUTER;
|
|
1048
|
+
}
|
|
1049
|
+
if (sawNonNull)
|
|
1050
|
+
return !1;
|
|
1051
|
+
}
|
|
1052
|
+
return !0;
|
|
1053
|
+
}, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
|
|
1054
|
+
if (sub === dom)
|
|
1055
|
+
return !0;
|
|
1056
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
1057
|
+
if (dom.length === 1 && dom[0].semver === ANY)
|
|
1058
|
+
return !0;
|
|
1059
|
+
options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
|
|
1060
|
+
}
|
|
1061
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
1062
|
+
if (options.includePrerelease)
|
|
1063
|
+
return !0;
|
|
1064
|
+
dom = minimumVersion;
|
|
1065
|
+
}
|
|
1066
|
+
let eqSet = /* @__PURE__ */ new Set(), gt, lt;
|
|
1067
|
+
for (let c of sub)
|
|
1068
|
+
c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
|
|
1069
|
+
if (eqSet.size > 1)
|
|
1070
|
+
return null;
|
|
1071
|
+
let gtltComp;
|
|
1072
|
+
if (gt && lt) {
|
|
1073
|
+
if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0)
|
|
1074
|
+
return null;
|
|
1075
|
+
if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
|
|
1076
|
+
return null;
|
|
1077
|
+
}
|
|
1078
|
+
for (let eq of eqSet) {
|
|
1079
|
+
if (gt && !satisfies(eq, String(gt), options) || lt && !satisfies(eq, String(lt), options))
|
|
1080
|
+
return null;
|
|
1081
|
+
for (let c of dom)
|
|
1082
|
+
if (!satisfies(eq, String(c), options))
|
|
1083
|
+
return !1;
|
|
1084
|
+
return !0;
|
|
1085
|
+
}
|
|
1086
|
+
let higher, lower, hasDomLT, hasDomGT, needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : !1, needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : !1;
|
|
1087
|
+
needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1);
|
|
1088
|
+
for (let c of dom) {
|
|
1089
|
+
if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
|
|
1090
|
+
if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = !1), c.operator === ">" || c.operator === ">=") {
|
|
1091
|
+
if (higher = higherGT(gt, c, options), higher === c && higher !== gt)
|
|
1092
|
+
return !1;
|
|
1093
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options))
|
|
1094
|
+
return !1;
|
|
1095
|
+
}
|
|
1096
|
+
if (lt) {
|
|
1097
|
+
if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = !1), c.operator === "<" || c.operator === "<=") {
|
|
1098
|
+
if (lower = lowerLT(lt, c, options), lower === c && lower !== lt)
|
|
1099
|
+
return !1;
|
|
1100
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options))
|
|
1101
|
+
return !1;
|
|
1102
|
+
}
|
|
1103
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0)
|
|
1104
|
+
return !1;
|
|
1105
|
+
}
|
|
1106
|
+
return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
|
|
1107
|
+
}, higherGT = (a, b, options) => {
|
|
1108
|
+
if (!a)
|
|
1109
|
+
return b;
|
|
1110
|
+
let comp = compare(a.semver, b.semver, options);
|
|
1111
|
+
return comp > 0 ? a : comp < 0 || b.operator === ">" && a.operator === ">=" ? b : a;
|
|
1112
|
+
}, lowerLT = (a, b, options) => {
|
|
1113
|
+
if (!a)
|
|
1114
|
+
return b;
|
|
1115
|
+
let comp = compare(a.semver, b.semver, options);
|
|
1116
|
+
return comp < 0 ? a : comp > 0 || b.operator === "<" && a.operator === "<=" ? b : a;
|
|
1117
|
+
};
|
|
1118
|
+
module.exports = subset;
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
1121
|
+
|
|
1122
|
+
// node_modules/semver/index.js
|
|
1123
|
+
var require_semver2 = __commonJS({
|
|
1124
|
+
"node_modules/semver/index.js"(exports, module) {
|
|
1125
|
+
"use strict";
|
|
1126
|
+
var internalRe = require_re(), constants = require_constants(), SemVer = require_semver(), identifiers = require_identifiers(), parse = require_parse(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq = require_eq(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce = require_coerce(), truncate = require_truncate(), Comparator = require_comparator(), Range = require_range(), satisfies = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
|
|
1127
|
+
module.exports = {
|
|
1128
|
+
parse,
|
|
1129
|
+
valid,
|
|
1130
|
+
clean,
|
|
1131
|
+
inc,
|
|
1132
|
+
diff,
|
|
1133
|
+
major,
|
|
1134
|
+
minor,
|
|
1135
|
+
patch,
|
|
1136
|
+
prerelease,
|
|
1137
|
+
compare,
|
|
1138
|
+
rcompare,
|
|
1139
|
+
compareLoose,
|
|
1140
|
+
compareBuild,
|
|
1141
|
+
sort,
|
|
1142
|
+
rsort,
|
|
1143
|
+
gt,
|
|
1144
|
+
lt,
|
|
1145
|
+
eq,
|
|
1146
|
+
neq,
|
|
1147
|
+
gte,
|
|
1148
|
+
lte,
|
|
1149
|
+
cmp,
|
|
1150
|
+
coerce,
|
|
1151
|
+
truncate,
|
|
1152
|
+
Comparator,
|
|
1153
|
+
Range,
|
|
1154
|
+
satisfies,
|
|
1155
|
+
toComparators,
|
|
1156
|
+
maxSatisfying,
|
|
1157
|
+
minSatisfying,
|
|
1158
|
+
minVersion,
|
|
1159
|
+
validRange,
|
|
1160
|
+
outside,
|
|
1161
|
+
gtr,
|
|
1162
|
+
ltr,
|
|
1163
|
+
intersects,
|
|
1164
|
+
simplifyRange,
|
|
1165
|
+
subset,
|
|
1166
|
+
SemVer,
|
|
1167
|
+
re: internalRe.re,
|
|
1168
|
+
src: internalRe.src,
|
|
1169
|
+
tokens: internalRe.t,
|
|
1170
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
1171
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
1172
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1173
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1174
|
+
};
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
|
|
1178
|
+
export {
|
|
1179
|
+
require_semver2 as require_semver
|
|
1180
|
+
};
|