checkly 0.0.0-canary.0e426f8
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/LICENSE +201 -0
- package/README.md +127 -0
- package/assets/runtimes/snapshots/20260130/runtimes.json +349 -0
- package/bin/check-node-version.cjs +21 -0
- package/bin/launch.cjs +28 -0
- package/bin/run.cjs +32 -0
- package/constructs.d.ts +1 -0
- package/constructs.js +2 -0
- package/dist/ai-context/context.d.ts +168 -0
- package/dist/ai-context/context.js +363 -0
- package/dist/ai-context/context.js.map +1 -0
- package/dist/ai-context/onboarding-boilerplate/__checks__/api.check.ts +22 -0
- package/dist/ai-context/onboarding-boilerplate/__checks__/heartbeat.check.ts +16 -0
- package/dist/ai-context/onboarding-boilerplate/__checks__/homepage.spec.ts +12 -0
- package/dist/ai-context/onboarding-boilerplate/__checks__/url.check.ts +18 -0
- package/dist/ai-context/onboarding-boilerplate/checkly-config-template.ts +50 -0
- package/dist/ai-context/onboarding-prompts/base.md +1 -0
- package/dist/ai-context/onboarding-prompts/playwright.md +1 -0
- package/dist/ai-context/public-skills/checkly/README.md +43 -0
- package/dist/ai-context/public-skills/checkly/SKILL.md +163 -0
- package/dist/ai-context/skills-command/references/communicate-incidents.md +79 -0
- package/dist/ai-context/skills-command/references/communicate.md +42 -0
- package/dist/ai-context/skills-command/references/configure-alert-channels.md +102 -0
- package/dist/ai-context/skills-command/references/configure-api-checks.md +65 -0
- package/dist/ai-context/skills-command/references/configure-browser-checks.md +29 -0
- package/dist/ai-context/skills-command/references/configure-check-groups.md +17 -0
- package/dist/ai-context/skills-command/references/configure-dns-monitors.md +31 -0
- package/dist/ai-context/skills-command/references/configure-environment.md +92 -0
- package/dist/ai-context/skills-command/references/configure-grpc-monitors.md +61 -0
- package/dist/ai-context/skills-command/references/configure-heartbeat-monitors.md +20 -0
- package/dist/ai-context/skills-command/references/configure-icmp-monitors.md +34 -0
- package/dist/ai-context/skills-command/references/configure-multistep-checks.md +26 -0
- package/dist/ai-context/skills-command/references/configure-playwright-checks.md +81 -0
- package/dist/ai-context/skills-command/references/configure-ssl-monitors.md +39 -0
- package/dist/ai-context/skills-command/references/configure-supporting-constructs.md +176 -0
- package/dist/ai-context/skills-command/references/configure-tcp-monitors.md +32 -0
- package/dist/ai-context/skills-command/references/configure-traceroute-monitors.md +36 -0
- package/dist/ai-context/skills-command/references/configure-url-monitors.md +31 -0
- package/dist/ai-context/skills-command/references/configure.md +193 -0
- package/dist/ai-context/skills-command/references/initialize.md +133 -0
- package/dist/ai-context/skills-command/references/investigate-alerting.md +212 -0
- package/dist/ai-context/skills-command/references/investigate-checks.md +172 -0
- package/dist/ai-context/skills-command/references/investigate-test-sessions.md +165 -0
- package/dist/ai-context/skills-command/references/investigate.md +18 -0
- package/dist/ai-context/skills-command/references/manage-account-members.md +82 -0
- package/dist/ai-context/skills-command/references/manage-plan.md +49 -0
- package/dist/ai-context/skills-command/references/manage.md +53 -0
- package/dist/auth/api-key.d.ts +24 -0
- package/dist/auth/api-key.js +104 -0
- package/dist/auth/api-key.js.map +1 -0
- package/dist/auth/device-flow.d.ts +58 -0
- package/dist/auth/device-flow.js +228 -0
- package/dist/auth/device-flow.js.map +1 -0
- package/dist/auth/index.d.ts +15 -0
- package/dist/auth/index.js +226 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/commands/account/plan.d.ts +31 -0
- package/dist/commands/account/plan.js +114 -0
- package/dist/commands/account/plan.js.map +1 -0
- package/dist/commands/account/usage/projections.d.ts +16 -0
- package/dist/commands/account/usage/projections.js +40 -0
- package/dist/commands/account/usage/projections.js.map +1 -0
- package/dist/commands/account/usage/series.d.ts +23 -0
- package/dist/commands/account/usage/series.js +55 -0
- package/dist/commands/account/usage/series.js.map +1 -0
- package/dist/commands/account/usage/summary.d.ts +18 -0
- package/dist/commands/account/usage/summary.js +43 -0
- package/dist/commands/account/usage/summary.js.map +1 -0
- package/dist/commands/account/usage/term.d.ts +15 -0
- package/dist/commands/account/usage/term.js +32 -0
- package/dist/commands/account/usage/term.js.map +1 -0
- package/dist/commands/account/usage/terms.d.ts +16 -0
- package/dist/commands/account/usage/terms.js +43 -0
- package/dist/commands/account/usage/terms.js.map +1 -0
- package/dist/commands/alert-channels/get.d.ts +14 -0
- package/dist/commands/alert-channels/get.js +51 -0
- package/dist/commands/alert-channels/get.js.map +1 -0
- package/dist/commands/alert-channels/list.d.ts +13 -0
- package/dist/commands/alert-channels/list.js +65 -0
- package/dist/commands/alert-channels/list.js.map +1 -0
- package/dist/commands/alert-channels/logs.d.ts +19 -0
- package/dist/commands/alert-channels/logs.js +92 -0
- package/dist/commands/alert-channels/logs.js.map +1 -0
- package/dist/commands/api.d.ts +23 -0
- package/dist/commands/api.js +248 -0
- package/dist/commands/api.js.map +1 -0
- package/dist/commands/assets/download.d.ts +19 -0
- package/dist/commands/assets/download.js +174 -0
- package/dist/commands/assets/download.js.map +1 -0
- package/dist/commands/assets/list.d.ts +17 -0
- package/dist/commands/assets/list.js +106 -0
- package/dist/commands/assets/list.js.map +1 -0
- package/dist/commands/authCommand.d.ts +39 -0
- package/dist/commands/authCommand.js +176 -0
- package/dist/commands/authCommand.js.map +1 -0
- package/dist/commands/baseCommand.d.ts +46 -0
- package/dist/commands/baseCommand.js +162 -0
- package/dist/commands/baseCommand.js.map +1 -0
- package/dist/commands/checks/delete.d.ts +15 -0
- package/dist/commands/checks/delete.js +65 -0
- package/dist/commands/checks/delete.js.map +1 -0
- package/dist/commands/checks/get.d.ts +30 -0
- package/dist/commands/checks/get.js +380 -0
- package/dist/commands/checks/get.js.map +1 -0
- package/dist/commands/checks/list.d.ts +18 -0
- package/dist/commands/checks/list.js +124 -0
- package/dist/commands/checks/list.js.map +1 -0
- package/dist/commands/checks/run.d.ts +18 -0
- package/dist/commands/checks/run.js +141 -0
- package/dist/commands/checks/run.js.map +1 -0
- package/dist/commands/checks/stats.d.ts +22 -0
- package/dist/commands/checks/stats.js +182 -0
- package/dist/commands/checks/stats.js.map +1 -0
- package/dist/commands/debug/parse-file.d.ts +13 -0
- package/dist/commands/debug/parse-file.js +74 -0
- package/dist/commands/debug/parse-file.js.map +1 -0
- package/dist/commands/debug/parse-playwright-config.d.ts +9 -0
- package/dist/commands/debug/parse-playwright-config.js +27 -0
- package/dist/commands/debug/parse-playwright-config.js.map +1 -0
- package/dist/commands/debug/parse-project.d.ts +44 -0
- package/dist/commands/debug/parse-project.js +223 -0
- package/dist/commands/debug/parse-project.js.map +1 -0
- package/dist/commands/deploy.d.ts +29 -0
- package/dist/commands/deploy.js +915 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/destroy.d.ts +13 -0
- package/dist/commands/destroy.js +105 -0
- package/dist/commands/destroy.js.map +1 -0
- package/dist/commands/env/add.d.ts +14 -0
- package/dist/commands/env/add.js +54 -0
- package/dist/commands/env/add.js.map +1 -0
- package/dist/commands/env/ls.d.ts +8 -0
- package/dist/commands/env/ls.js +21 -0
- package/dist/commands/env/ls.js.map +1 -0
- package/dist/commands/env/pull.d.ts +14 -0
- package/dist/commands/env/pull.js +72 -0
- package/dist/commands/env/pull.js.map +1 -0
- package/dist/commands/env/rm.d.ts +13 -0
- package/dist/commands/env/rm.js +46 -0
- package/dist/commands/env/rm.js.map +1 -0
- package/dist/commands/env/update.d.ts +15 -0
- package/dist/commands/env/update.js +55 -0
- package/dist/commands/env/update.js.map +1 -0
- package/dist/commands/help.d.ts +6 -0
- package/dist/commands/help.js +11 -0
- package/dist/commands/help.js.map +1 -0
- package/dist/commands/import/apply.d.ts +16 -0
- package/dist/commands/import/apply.js +152 -0
- package/dist/commands/import/apply.js.map +1 -0
- package/dist/commands/import/cancel.d.ts +16 -0
- package/dist/commands/import/cancel.js +123 -0
- package/dist/commands/import/cancel.js.map +1 -0
- package/dist/commands/import/commit.d.ts +18 -0
- package/dist/commands/import/commit.js +147 -0
- package/dist/commands/import/commit.js.map +1 -0
- package/dist/commands/import/plan.d.ts +23 -0
- package/dist/commands/import/plan.js +1288 -0
- package/dist/commands/import/plan.js.map +1 -0
- package/dist/commands/incidents/create.d.ts +17 -0
- package/dist/commands/incidents/create.js +103 -0
- package/dist/commands/incidents/create.js.map +1 -0
- package/dist/commands/incidents/list.d.ts +14 -0
- package/dist/commands/incidents/list.js +80 -0
- package/dist/commands/incidents/list.js.map +1 -0
- package/dist/commands/incidents/resolve.d.ts +16 -0
- package/dist/commands/incidents/resolve.js +79 -0
- package/dist/commands/incidents/resolve.js.map +1 -0
- package/dist/commands/incidents/update.d.ts +18 -0
- package/dist/commands/incidents/update.js +106 -0
- package/dist/commands/incidents/update.js.map +1 -0
- package/dist/commands/init.d.ts +25 -0
- package/dist/commands/init.js +296 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/login.d.ts +50 -0
- package/dist/commands/login.js +892 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +10 -0
- package/dist/commands/logout.js +47 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/members/delete.d.ts +18 -0
- package/dist/commands/members/delete.js +73 -0
- package/dist/commands/members/delete.js.map +1 -0
- package/dist/commands/members/update.d.ts +21 -0
- package/dist/commands/members/update.js +104 -0
- package/dist/commands/members/update.js.map +1 -0
- package/dist/commands/members.d.ts +23 -0
- package/dist/commands/members.js +136 -0
- package/dist/commands/members.js.map +1 -0
- package/dist/commands/pw-test.d.ts +34 -0
- package/dist/commands/pw-test.js +365 -0
- package/dist/commands/pw-test.js.map +1 -0
- package/dist/commands/rca/get.d.ts +15 -0
- package/dist/commands/rca/get.js +69 -0
- package/dist/commands/rca/get.js.map +1 -0
- package/dist/commands/rca/run.d.ts +16 -0
- package/dist/commands/rca/run.js +113 -0
- package/dist/commands/rca/run.js.map +1 -0
- package/dist/commands/runtimes.d.ts +8 -0
- package/dist/commands/runtimes.js +25 -0
- package/dist/commands/runtimes.js.map +1 -0
- package/dist/commands/skills/index.d.ts +16 -0
- package/dist/commands/skills/index.js +143 -0
- package/dist/commands/skills/index.js.map +1 -0
- package/dist/commands/skills/install.d.ts +17 -0
- package/dist/commands/skills/install.js +124 -0
- package/dist/commands/skills/install.js.map +1 -0
- package/dist/commands/status-pages/get.d.ts +14 -0
- package/dist/commands/status-pages/get.js +48 -0
- package/dist/commands/status-pages/get.js.map +1 -0
- package/dist/commands/status-pages/list.d.ts +14 -0
- package/dist/commands/status-pages/list.js +82 -0
- package/dist/commands/status-pages/list.js.map +1 -0
- package/dist/commands/switch.d.ts +19 -0
- package/dist/commands/switch.js +110 -0
- package/dist/commands/switch.js.map +1 -0
- package/dist/commands/sync-playwright.d.ts +8 -0
- package/dist/commands/sync-playwright.js +48 -0
- package/dist/commands/sync-playwright.js.map +1 -0
- package/dist/commands/test-sessions/get.d.ts +21 -0
- package/dist/commands/test-sessions/get.js +121 -0
- package/dist/commands/test-sessions/get.js.map +1 -0
- package/dist/commands/test-sessions/list.d.ts +22 -0
- package/dist/commands/test-sessions/list.js +190 -0
- package/dist/commands/test-sessions/list.js.map +1 -0
- package/dist/commands/test.d.ts +39 -0
- package/dist/commands/test.js +403 -0
- package/dist/commands/test.js.map +1 -0
- package/dist/commands/trigger.d.ts +39 -0
- package/dist/commands/trigger.js +251 -0
- package/dist/commands/trigger.js.map +1 -0
- package/dist/commands/validate.d.ts +13 -0
- package/dist/commands/validate.js +66 -0
- package/dist/commands/validate.js.map +1 -0
- package/dist/commands/whoami.d.ts +16 -0
- package/dist/commands/whoami.js +79 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/config.d.ts +31 -0
- package/dist/config.js +4 -0
- package/dist/config.js.map +1 -0
- package/dist/constants.d.ts +20 -0
- package/dist/constants.js +35 -0
- package/dist/constants.js.map +1 -0
- package/dist/constructs/alert-channel-codegen.d.ts +42 -0
- package/dist/constructs/alert-channel-codegen.js +102 -0
- package/dist/constructs/alert-channel-codegen.js.map +1 -0
- package/dist/constructs/alert-channel-subscription-codegen.d.ts +11 -0
- package/dist/constructs/alert-channel-subscription-codegen.js +20 -0
- package/dist/constructs/alert-channel-subscription-codegen.js.map +1 -0
- package/dist/constructs/alert-channel-subscription.d.ts +47 -0
- package/dist/constructs/alert-channel-subscription.js +49 -0
- package/dist/constructs/alert-channel-subscription.js.map +1 -0
- package/dist/constructs/alert-channel.d.ts +130 -0
- package/dist/constructs/alert-channel.js +106 -0
- package/dist/constructs/alert-channel.js.map +1 -0
- package/dist/constructs/alert-escalation-policy-codegen.d.ts +11 -0
- package/dist/constructs/alert-escalation-policy-codegen.js +72 -0
- package/dist/constructs/alert-escalation-policy-codegen.js.map +1 -0
- package/dist/constructs/alert-escalation-policy.d.ts +114 -0
- package/dist/constructs/alert-escalation-policy.js +62 -0
- package/dist/constructs/alert-escalation-policy.js.map +1 -0
- package/dist/constructs/api-assertion-codegen.d.ts +3 -0
- package/dist/constructs/api-assertion-codegen.js +19 -0
- package/dist/constructs/api-assertion-codegen.js.map +1 -0
- package/dist/constructs/api-assertion.d.ts +72 -0
- package/dist/constructs/api-assertion.js +77 -0
- package/dist/constructs/api-assertion.js.map +1 -0
- package/dist/constructs/api-check-bundle.d.ts +66 -0
- package/dist/constructs/api-check-bundle.js +30 -0
- package/dist/constructs/api-check-bundle.js.map +1 -0
- package/dist/constructs/api-check-codegen.d.ts +19 -0
- package/dist/constructs/api-check-codegen.js +83 -0
- package/dist/constructs/api-check-codegen.js.map +1 -0
- package/dist/constructs/api-check.d.ts +189 -0
- package/dist/constructs/api-check.js +215 -0
- package/dist/constructs/api-check.js.map +1 -0
- package/dist/constructs/api-request-codegen.d.ts +4 -0
- package/dist/constructs/api-request-codegen.js +66 -0
- package/dist/constructs/api-request-codegen.js.map +1 -0
- package/dist/constructs/api-request.d.ts +67 -0
- package/dist/constructs/api-request.js +2 -0
- package/dist/constructs/api-request.js.map +1 -0
- package/dist/constructs/browser-check-bundle.d.ts +64 -0
- package/dist/constructs/browser-check-bundle.js +31 -0
- package/dist/constructs/browser-check-bundle.js.map +1 -0
- package/dist/constructs/browser-check-codegen.d.ts +14 -0
- package/dist/constructs/browser-check-codegen.js +46 -0
- package/dist/constructs/browser-check-codegen.js.map +1 -0
- package/dist/constructs/browser-check.d.ts +134 -0
- package/dist/constructs/browser-check.js +169 -0
- package/dist/constructs/browser-check.js.map +1 -0
- package/dist/constructs/check-codegen.d.ts +140 -0
- package/dist/constructs/check-codegen.js +387 -0
- package/dist/constructs/check-codegen.js.map +1 -0
- package/dist/constructs/check-config.d.ts +2 -0
- package/dist/constructs/check-config.js +17 -0
- package/dist/constructs/check-config.js.map +1 -0
- package/dist/constructs/check-group-codegen.d.ts +46 -0
- package/dist/constructs/check-group-codegen.js +282 -0
- package/dist/constructs/check-group-codegen.js.map +1 -0
- package/dist/constructs/check-group-ref.d.ts +20 -0
- package/dist/constructs/check-group-ref.js +46 -0
- package/dist/constructs/check-group-ref.js.map +1 -0
- package/dist/constructs/check-group-v1.d.ts +316 -0
- package/dist/constructs/check-group-v1.js +285 -0
- package/dist/constructs/check-group-v1.js.map +1 -0
- package/dist/constructs/check-group-v2.d.ts +101 -0
- package/dist/constructs/check-group-v2.js +68 -0
- package/dist/constructs/check-group-v2.js.map +1 -0
- package/dist/constructs/check-group.d.ts +4 -0
- package/dist/constructs/check-group.js +5 -0
- package/dist/constructs/check-group.js.map +1 -0
- package/dist/constructs/check.d.ts +483 -0
- package/dist/constructs/check.js +444 -0
- package/dist/constructs/check.js.map +1 -0
- package/dist/constructs/construct-codegen.d.ts +42 -0
- package/dist/constructs/construct-codegen.js +106 -0
- package/dist/constructs/construct-codegen.js.map +1 -0
- package/dist/constructs/construct-diagnostics.d.ts +56 -0
- package/dist/constructs/construct-diagnostics.js +167 -0
- package/dist/constructs/construct-diagnostics.js.map +1 -0
- package/dist/constructs/construct.d.ts +175 -0
- package/dist/constructs/construct.js +179 -0
- package/dist/constructs/construct.js.map +1 -0
- package/dist/constructs/dashboard-bundle.d.ts +11 -0
- package/dist/constructs/dashboard-bundle.js +15 -0
- package/dist/constructs/dashboard-bundle.js.map +1 -0
- package/dist/constructs/dashboard-codegen.d.ts +29 -0
- package/dist/constructs/dashboard-codegen.js +104 -0
- package/dist/constructs/dashboard-codegen.js.map +1 -0
- package/dist/constructs/dashboard.d.ts +226 -0
- package/dist/constructs/dashboard.js +144 -0
- package/dist/constructs/dashboard.js.map +1 -0
- package/dist/constructs/diagnostics.d.ts +59 -0
- package/dist/constructs/diagnostics.js +71 -0
- package/dist/constructs/diagnostics.js.map +1 -0
- package/dist/constructs/dns-assertion-codegen.d.ts +3 -0
- package/dist/constructs/dns-assertion-codegen.js +26 -0
- package/dist/constructs/dns-assertion-codegen.js.map +1 -0
- package/dist/constructs/dns-assertion.d.ts +49 -0
- package/dist/constructs/dns-assertion.js +55 -0
- package/dist/constructs/dns-assertion.js.map +1 -0
- package/dist/constructs/dns-monitor-codegen.d.ts +13 -0
- package/dist/constructs/dns-monitor-codegen.js +34 -0
- package/dist/constructs/dns-monitor-codegen.js.map +1 -0
- package/dist/constructs/dns-monitor.d.ts +98 -0
- package/dist/constructs/dns-monitor.js +62 -0
- package/dist/constructs/dns-monitor.js.map +1 -0
- package/dist/constructs/dns-request-codegen.d.ts +4 -0
- package/dist/constructs/dns-request-codegen.js +28 -0
- package/dist/constructs/dns-request-codegen.js.map +1 -0
- package/dist/constructs/dns-request.d.ts +54 -0
- package/dist/constructs/dns-request.js +2 -0
- package/dist/constructs/dns-request.js.map +1 -0
- package/dist/constructs/email-alert-channel-codegen.d.ts +13 -0
- package/dist/constructs/email-alert-channel-codegen.js +34 -0
- package/dist/constructs/email-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/email-alert-channel.d.ts +27 -0
- package/dist/constructs/email-alert-channel.js +37 -0
- package/dist/constructs/email-alert-channel.js.map +1 -0
- package/dist/constructs/engine.d.ts +42 -0
- package/dist/constructs/engine.js +25 -0
- package/dist/constructs/engine.js.map +1 -0
- package/dist/constructs/environment-variable.d.ts +21 -0
- package/dist/constructs/environment-variable.js +2 -0
- package/dist/constructs/environment-variable.js.map +1 -0
- package/dist/constructs/frequency-codegen.d.ts +8 -0
- package/dist/constructs/frequency-codegen.js +59 -0
- package/dist/constructs/frequency-codegen.js.map +1 -0
- package/dist/constructs/frequency.d.ts +67 -0
- package/dist/constructs/frequency.js +71 -0
- package/dist/constructs/frequency.js.map +1 -0
- package/dist/constructs/grpc-assertion-codegen.d.ts +3 -0
- package/dist/constructs/grpc-assertion-codegen.js +89 -0
- package/dist/constructs/grpc-assertion-codegen.js.map +1 -0
- package/dist/constructs/grpc-assertion-validation.d.ts +13 -0
- package/dist/constructs/grpc-assertion-validation.js +69 -0
- package/dist/constructs/grpc-assertion-validation.js.map +1 -0
- package/dist/constructs/grpc-assertion.d.ts +96 -0
- package/dist/constructs/grpc-assertion.js +110 -0
- package/dist/constructs/grpc-assertion.js.map +1 -0
- package/dist/constructs/grpc-monitor-codegen.d.ts +13 -0
- package/dist/constructs/grpc-monitor-codegen.js +34 -0
- package/dist/constructs/grpc-monitor-codegen.js.map +1 -0
- package/dist/constructs/grpc-monitor.d.ts +94 -0
- package/dist/constructs/grpc-monitor.js +82 -0
- package/dist/constructs/grpc-monitor.js.map +1 -0
- package/dist/constructs/grpc-request-codegen.d.ts +4 -0
- package/dist/constructs/grpc-request-codegen.js +74 -0
- package/dist/constructs/grpc-request-codegen.js.map +1 -0
- package/dist/constructs/grpc-request.d.ts +154 -0
- package/dist/constructs/grpc-request.js +2 -0
- package/dist/constructs/grpc-request.js.map +1 -0
- package/dist/constructs/heartbeat-monitor-codegen.d.ts +11 -0
- package/dist/constructs/heartbeat-monitor-codegen.js +31 -0
- package/dist/constructs/heartbeat-monitor-codegen.js.map +1 -0
- package/dist/constructs/heartbeat-monitor.d.ts +41 -0
- package/dist/constructs/heartbeat-monitor.js +56 -0
- package/dist/constructs/heartbeat-monitor.js.map +1 -0
- package/dist/constructs/http-header.d.ts +18 -0
- package/dist/constructs/http-header.js +2 -0
- package/dist/constructs/http-header.js.map +1 -0
- package/dist/constructs/http-request.d.ts +2 -0
- package/dist/constructs/http-request.js +2 -0
- package/dist/constructs/http-request.js.map +1 -0
- package/dist/constructs/icmp-assertion-codegen.d.ts +3 -0
- package/dist/constructs/icmp-assertion-codegen.js +18 -0
- package/dist/constructs/icmp-assertion-codegen.js.map +1 -0
- package/dist/constructs/icmp-assertion.d.ts +56 -0
- package/dist/constructs/icmp-assertion.js +57 -0
- package/dist/constructs/icmp-assertion.js.map +1 -0
- package/dist/constructs/icmp-monitor-codegen.d.ts +13 -0
- package/dist/constructs/icmp-monitor-codegen.js +34 -0
- package/dist/constructs/icmp-monitor-codegen.js.map +1 -0
- package/dist/constructs/icmp-monitor.d.ts +94 -0
- package/dist/constructs/icmp-monitor.js +50 -0
- package/dist/constructs/icmp-monitor.js.map +1 -0
- package/dist/constructs/icmp-request-codegen.d.ts +4 -0
- package/dist/constructs/icmp-request-codegen.js +24 -0
- package/dist/constructs/icmp-request-codegen.js.map +1 -0
- package/dist/constructs/icmp-request.d.ts +37 -0
- package/dist/constructs/icmp-request.js +2 -0
- package/dist/constructs/icmp-request.js.map +1 -0
- package/dist/constructs/incident.d.ts +15 -0
- package/dist/constructs/incident.js +2 -0
- package/dist/constructs/incident.js.map +1 -0
- package/dist/constructs/incidentio-alert-channel-codegen.d.ts +13 -0
- package/dist/constructs/incidentio-alert-channel-codegen.js +91 -0
- package/dist/constructs/incidentio-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/incidentio-alert-channel.d.ts +44 -0
- package/dist/constructs/incidentio-alert-channel.js +67 -0
- package/dist/constructs/incidentio-alert-channel.js.map +1 -0
- package/dist/constructs/index.d.ts +66 -0
- package/dist/constructs/index.js +67 -0
- package/dist/constructs/index.js.map +1 -0
- package/dist/constructs/internal/account-features.d.ts +13 -0
- package/dist/constructs/internal/account-features.js +24 -0
- package/dist/constructs/internal/account-features.js.map +1 -0
- package/dist/constructs/internal/assertion-codegen.d.ts +31 -0
- package/dist/constructs/internal/assertion-codegen.js +180 -0
- package/dist/constructs/internal/assertion-codegen.js.map +1 -0
- package/dist/constructs/internal/assertion-grammar.d.ts +35 -0
- package/dist/constructs/internal/assertion-grammar.js +75 -0
- package/dist/constructs/internal/assertion-grammar.js.map +1 -0
- package/dist/constructs/internal/assertion-validation.d.ts +3 -0
- package/dist/constructs/internal/assertion-validation.js +16 -0
- package/dist/constructs/internal/assertion-validation.js.map +1 -0
- package/dist/constructs/internal/assertion.d.ts +46 -0
- package/dist/constructs/internal/assertion.js +94 -0
- package/dist/constructs/internal/assertion.js.map +1 -0
- package/dist/constructs/internal/codegen/codegen.d.ts +9 -0
- package/dist/constructs/internal/codegen/codegen.js +16 -0
- package/dist/constructs/internal/codegen/codegen.js.map +1 -0
- package/dist/constructs/internal/codegen/context.d.ts +137 -0
- package/dist/constructs/internal/codegen/context.js +543 -0
- package/dist/constructs/internal/codegen/context.js.map +1 -0
- package/dist/constructs/internal/codegen/index.d.ts +6 -0
- package/dist/constructs/internal/codegen/index.js +6 -0
- package/dist/constructs/internal/codegen/index.js.map +1 -0
- package/dist/constructs/internal/codegen/render.d.ts +68 -0
- package/dist/constructs/internal/codegen/render.js +75 -0
- package/dist/constructs/internal/codegen/render.js.map +1 -0
- package/dist/constructs/internal/codegen/safety.d.ts +2 -0
- package/dist/constructs/internal/codegen/safety.js +3 -0
- package/dist/constructs/internal/codegen/safety.js.map +1 -0
- package/dist/constructs/internal/codegen/snippet.d.ts +12 -0
- package/dist/constructs/internal/codegen/snippet.js +39 -0
- package/dist/constructs/internal/codegen/snippet.js.map +1 -0
- package/dist/constructs/internal/common-diagnostics.d.ts +21 -0
- package/dist/constructs/internal/common-diagnostics.js +88 -0
- package/dist/constructs/internal/common-diagnostics.js.map +1 -0
- package/dist/constructs/internal/declaring-file.d.ts +39 -0
- package/dist/constructs/internal/declaring-file.js +139 -0
- package/dist/constructs/internal/declaring-file.js.map +1 -0
- package/dist/constructs/internal/default-retry-strategy.d.ts +9 -0
- package/dist/constructs/internal/default-retry-strategy.js +13 -0
- package/dist/constructs/internal/default-retry-strategy.js.map +1 -0
- package/dist/constructs/internal/retry-strategy-defaults.d.ts +13 -0
- package/dist/constructs/internal/retry-strategy-defaults.js +14 -0
- package/dist/constructs/internal/retry-strategy-defaults.js.map +1 -0
- package/dist/constructs/internal/sanitize.d.ts +15 -0
- package/dist/constructs/internal/sanitize.js +36 -0
- package/dist/constructs/internal/sanitize.js.map +1 -0
- package/dist/constructs/internal/status-page-v3-component-configuration.d.ts +10 -0
- package/dist/constructs/internal/status-page-v3-component-configuration.js +13 -0
- package/dist/constructs/internal/status-page-v3-component-configuration.js.map +1 -0
- package/dist/constructs/internal/status-page-v3-theme-colors.d.ts +4 -0
- package/dist/constructs/internal/status-page-v3-theme-colors.js +21 -0
- package/dist/constructs/internal/status-page-v3-theme-colors.js.map +1 -0
- package/dist/constructs/ip.d.ts +2 -0
- package/dist/constructs/ip.js +2 -0
- package/dist/constructs/ip.js.map +1 -0
- package/dist/constructs/key-value-pair-codegen.d.ts +9 -0
- package/dist/constructs/key-value-pair-codegen.js +56 -0
- package/dist/constructs/key-value-pair-codegen.js.map +1 -0
- package/dist/constructs/key-value-pair.d.ts +41 -0
- package/dist/constructs/key-value-pair.js +2 -0
- package/dist/constructs/key-value-pair.js.map +1 -0
- package/dist/constructs/maintenance-window-codegen.d.ts +21 -0
- package/dist/constructs/maintenance-window-codegen.js +70 -0
- package/dist/constructs/maintenance-window-codegen.js.map +1 -0
- package/dist/constructs/maintenance-window.d.ts +96 -0
- package/dist/constructs/maintenance-window.js +86 -0
- package/dist/constructs/maintenance-window.js.map +1 -0
- package/dist/constructs/monitor-codegen.d.ts +1 -0
- package/dist/constructs/monitor-codegen.js +2 -0
- package/dist/constructs/monitor-codegen.js.map +1 -0
- package/dist/constructs/monitor.d.ts +106 -0
- package/dist/constructs/monitor.js +15 -0
- package/dist/constructs/monitor.js.map +1 -0
- package/dist/constructs/msteams-alert-channel-codegen.d.ts +13 -0
- package/dist/constructs/msteams-alert-channel-codegen.js +61 -0
- package/dist/constructs/msteams-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/msteams-alert-channel.d.ts +39 -0
- package/dist/constructs/msteams-alert-channel.js +162 -0
- package/dist/constructs/msteams-alert-channel.js.map +1 -0
- package/dist/constructs/multi-step-check-bundle.d.ts +55 -0
- package/dist/constructs/multi-step-check-bundle.js +21 -0
- package/dist/constructs/multi-step-check-bundle.js.map +1 -0
- package/dist/constructs/multi-step-check-codegen.d.ts +13 -0
- package/dist/constructs/multi-step-check-codegen.js +37 -0
- package/dist/constructs/multi-step-check-codegen.js.map +1 -0
- package/dist/constructs/multi-step-check.d.ts +83 -0
- package/dist/constructs/multi-step-check.js +121 -0
- package/dist/constructs/multi-step-check.js.map +1 -0
- package/dist/constructs/opsgenie-alert-channel-codegen.d.ts +16 -0
- package/dist/constructs/opsgenie-alert-channel-codegen.js +37 -0
- package/dist/constructs/opsgenie-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/opsgenie-alert-channel.d.ts +46 -0
- package/dist/constructs/opsgenie-alert-channel.js +47 -0
- package/dist/constructs/opsgenie-alert-channel.js.map +1 -0
- package/dist/constructs/pagerduty-alert-channel-codegen.d.ts +15 -0
- package/dist/constructs/pagerduty-alert-channel-codegen.js +49 -0
- package/dist/constructs/pagerduty-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/pagerduty-alert-channel.d.ts +40 -0
- package/dist/constructs/pagerduty-alert-channel.js +44 -0
- package/dist/constructs/pagerduty-alert-channel.js.map +1 -0
- package/dist/constructs/phone-call-alert-channel-codegen.d.ts +14 -0
- package/dist/constructs/phone-call-alert-channel-codegen.js +42 -0
- package/dist/constructs/phone-call-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/phone-call-alert-channel.d.ts +34 -0
- package/dist/constructs/phone-call-alert-channel.js +42 -0
- package/dist/constructs/phone-call-alert-channel.js.map +1 -0
- package/dist/constructs/playwright-check-bundle.d.ts +71 -0
- package/dist/constructs/playwright-check-bundle.js +36 -0
- package/dist/constructs/playwright-check-bundle.js.map +1 -0
- package/dist/constructs/playwright-check-codegen.d.ts +85 -0
- package/dist/constructs/playwright-check-codegen.js +212 -0
- package/dist/constructs/playwright-check-codegen.js.map +1 -0
- package/dist/constructs/playwright-check.d.ts +176 -0
- package/dist/constructs/playwright-check.js +293 -0
- package/dist/constructs/playwright-check.js.map +1 -0
- package/dist/constructs/playwright-config-codegen.d.ts +4 -0
- package/dist/constructs/playwright-config-codegen.js +5 -0
- package/dist/constructs/playwright-config-codegen.js.map +1 -0
- package/dist/constructs/playwright-config.d.ts +52 -0
- package/dist/constructs/playwright-config.js +2 -0
- package/dist/constructs/playwright-config.js.map +1 -0
- package/dist/constructs/private-location-check-assignment-codegen.d.ts +10 -0
- package/dist/constructs/private-location-check-assignment-codegen.js +15 -0
- package/dist/constructs/private-location-check-assignment-codegen.js.map +1 -0
- package/dist/constructs/private-location-check-assignment.d.ts +31 -0
- package/dist/constructs/private-location-check-assignment.js +40 -0
- package/dist/constructs/private-location-check-assignment.js.map +1 -0
- package/dist/constructs/private-location-codegen.d.ts +15 -0
- package/dist/constructs/private-location-codegen.js +46 -0
- package/dist/constructs/private-location-codegen.js.map +1 -0
- package/dist/constructs/private-location-group-assignment-codegen.d.ts +10 -0
- package/dist/constructs/private-location-group-assignment-codegen.js +15 -0
- package/dist/constructs/private-location-group-assignment-codegen.js.map +1 -0
- package/dist/constructs/private-location-group-assignment.d.ts +32 -0
- package/dist/constructs/private-location-group-assignment.js +43 -0
- package/dist/constructs/private-location-group-assignment.js.map +1 -0
- package/dist/constructs/private-location.d.ts +66 -0
- package/dist/constructs/private-location.js +90 -0
- package/dist/constructs/private-location.js.map +1 -0
- package/dist/constructs/project-bundle.d.ts +49 -0
- package/dist/constructs/project-bundle.js +74 -0
- package/dist/constructs/project-bundle.js.map +1 -0
- package/dist/constructs/project.d.ts +64 -0
- package/dist/constructs/project.js +237 -0
- package/dist/constructs/project.js.map +1 -0
- package/dist/constructs/query-param.d.ts +18 -0
- package/dist/constructs/query-param.js +2 -0
- package/dist/constructs/query-param.js.map +1 -0
- package/dist/constructs/ref-codegen.d.ts +3 -0
- package/dist/constructs/ref-codegen.js +11 -0
- package/dist/constructs/ref-codegen.js.map +1 -0
- package/dist/constructs/ref.d.ts +49 -0
- package/dist/constructs/ref.js +54 -0
- package/dist/constructs/ref.js.map +1 -0
- package/dist/constructs/retry-strategy-codegen.d.ts +10 -0
- package/dist/constructs/retry-strategy-codegen.js +113 -0
- package/dist/constructs/retry-strategy-codegen.js.map +1 -0
- package/dist/constructs/retry-strategy.d.ts +192 -0
- package/dist/constructs/retry-strategy.js +107 -0
- package/dist/constructs/retry-strategy.js.map +1 -0
- package/dist/constructs/session.d.ts +115 -0
- package/dist/constructs/session.js +291 -0
- package/dist/constructs/session.js.map +1 -0
- package/dist/constructs/slack-alert-channel-codegen.d.ts +14 -0
- package/dist/constructs/slack-alert-channel-codegen.js +42 -0
- package/dist/constructs/slack-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/slack-alert-channel.d.ts +27 -0
- package/dist/constructs/slack-alert-channel.js +41 -0
- package/dist/constructs/slack-alert-channel.js.map +1 -0
- package/dist/constructs/slack-app-alert-channel-codegen.d.ts +13 -0
- package/dist/constructs/slack-app-alert-channel-codegen.js +39 -0
- package/dist/constructs/slack-app-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/slack-app-alert-channel.d.ts +31 -0
- package/dist/constructs/slack-app-alert-channel.js +38 -0
- package/dist/constructs/slack-app-alert-channel.js.map +1 -0
- package/dist/constructs/sms-alert-channel-codegen.d.ts +14 -0
- package/dist/constructs/sms-alert-channel-codegen.js +42 -0
- package/dist/constructs/sms-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/sms-alert-channel.d.ts +33 -0
- package/dist/constructs/sms-alert-channel.js +41 -0
- package/dist/constructs/sms-alert-channel.js.map +1 -0
- package/dist/constructs/ssl-assertion-codegen.d.ts +5 -0
- package/dist/constructs/ssl-assertion-codegen.js +74 -0
- package/dist/constructs/ssl-assertion-codegen.js.map +1 -0
- package/dist/constructs/ssl-assertion-grammar.d.ts +123 -0
- package/dist/constructs/ssl-assertion-grammar.js +90 -0
- package/dist/constructs/ssl-assertion-grammar.js.map +1 -0
- package/dist/constructs/ssl-assertion-validation.d.ts +13 -0
- package/dist/constructs/ssl-assertion-validation.js +118 -0
- package/dist/constructs/ssl-assertion-validation.js.map +1 -0
- package/dist/constructs/ssl-assertion.d.ts +142 -0
- package/dist/constructs/ssl-assertion.js +150 -0
- package/dist/constructs/ssl-assertion.js.map +1 -0
- package/dist/constructs/ssl-monitor-codegen.d.ts +36 -0
- package/dist/constructs/ssl-monitor-codegen.js +53 -0
- package/dist/constructs/ssl-monitor-codegen.js.map +1 -0
- package/dist/constructs/ssl-monitor.d.ts +97 -0
- package/dist/constructs/ssl-monitor.js +73 -0
- package/dist/constructs/ssl-monitor.js.map +1 -0
- package/dist/constructs/ssl-request-codegen.d.ts +4 -0
- package/dist/constructs/ssl-request-codegen.js +49 -0
- package/dist/constructs/ssl-request-codegen.js.map +1 -0
- package/dist/constructs/ssl-request.d.ts +143 -0
- package/dist/constructs/ssl-request.js +2 -0
- package/dist/constructs/ssl-request.js.map +1 -0
- package/dist/constructs/status-page-codegen.d.ts +30 -0
- package/dist/constructs/status-page-codegen.js +88 -0
- package/dist/constructs/status-page-codegen.js.map +1 -0
- package/dist/constructs/status-page-service-codegen.d.ts +12 -0
- package/dist/constructs/status-page-service-codegen.js +39 -0
- package/dist/constructs/status-page-service-codegen.js.map +1 -0
- package/dist/constructs/status-page-service.d.ts +51 -0
- package/dist/constructs/status-page-service.js +69 -0
- package/dist/constructs/status-page-service.js.map +1 -0
- package/dist/constructs/status-page-v3-automation-rule-codegen.d.ts +22 -0
- package/dist/constructs/status-page-v3-automation-rule-codegen.js +52 -0
- package/dist/constructs/status-page-v3-automation-rule-codegen.js.map +1 -0
- package/dist/constructs/status-page-v3-automation-rule.d.ts +90 -0
- package/dist/constructs/status-page-v3-automation-rule.js +87 -0
- package/dist/constructs/status-page-v3-automation-rule.js.map +1 -0
- package/dist/constructs/status-page-v3-codegen.d.ts +39 -0
- package/dist/constructs/status-page-v3-codegen.js +139 -0
- package/dist/constructs/status-page-v3-codegen.js.map +1 -0
- package/dist/constructs/status-page-v3-component-codegen.d.ts +25 -0
- package/dist/constructs/status-page-v3-component-codegen.js +87 -0
- package/dist/constructs/status-page-v3-component-codegen.js.map +1 -0
- package/dist/constructs/status-page-v3-component.d.ts +115 -0
- package/dist/constructs/status-page-v3-component.js +143 -0
- package/dist/constructs/status-page-v3-component.js.map +1 -0
- package/dist/constructs/status-page-v3.d.ts +201 -0
- package/dist/constructs/status-page-v3.js +158 -0
- package/dist/constructs/status-page-v3.js.map +1 -0
- package/dist/constructs/status-page.d.ts +83 -0
- package/dist/constructs/status-page.js +75 -0
- package/dist/constructs/status-page.js.map +1 -0
- package/dist/constructs/tcp-monitor-codegen.d.ts +15 -0
- package/dist/constructs/tcp-monitor-codegen.js +65 -0
- package/dist/constructs/tcp-monitor-codegen.js.map +1 -0
- package/dist/constructs/tcp-monitor.d.ts +167 -0
- package/dist/constructs/tcp-monitor.js +89 -0
- package/dist/constructs/tcp-monitor.js.map +1 -0
- package/dist/constructs/telegram-alert-channel-codegen.d.ts +13 -0
- package/dist/constructs/telegram-alert-channel-codegen.js +108 -0
- package/dist/constructs/telegram-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/telegram-alert-channel.d.ts +49 -0
- package/dist/constructs/telegram-alert-channel.js +63 -0
- package/dist/constructs/telegram-alert-channel.js.map +1 -0
- package/dist/constructs/time-zone.d.ts +24 -0
- package/dist/constructs/time-zone.js +455 -0
- package/dist/constructs/time-zone.js.map +1 -0
- package/dist/constructs/traceroute-assertion-codegen.d.ts +3 -0
- package/dist/constructs/traceroute-assertion-codegen.js +17 -0
- package/dist/constructs/traceroute-assertion-codegen.js.map +1 -0
- package/dist/constructs/traceroute-assertion-grammar.d.ts +33 -0
- package/dist/constructs/traceroute-assertion-grammar.js +33 -0
- package/dist/constructs/traceroute-assertion-grammar.js.map +1 -0
- package/dist/constructs/traceroute-assertion-validation.d.ts +11 -0
- package/dist/constructs/traceroute-assertion-validation.js +71 -0
- package/dist/constructs/traceroute-assertion-validation.js.map +1 -0
- package/dist/constructs/traceroute-assertion.d.ts +48 -0
- package/dist/constructs/traceroute-assertion.js +50 -0
- package/dist/constructs/traceroute-assertion.js.map +1 -0
- package/dist/constructs/traceroute-monitor-codegen.d.ts +13 -0
- package/dist/constructs/traceroute-monitor-codegen.js +36 -0
- package/dist/constructs/traceroute-monitor-codegen.js.map +1 -0
- package/dist/constructs/traceroute-monitor.d.ts +91 -0
- package/dist/constructs/traceroute-monitor.js +54 -0
- package/dist/constructs/traceroute-monitor.js.map +1 -0
- package/dist/constructs/traceroute-request-codegen.d.ts +4 -0
- package/dist/constructs/traceroute-request-codegen.js +41 -0
- package/dist/constructs/traceroute-request-codegen.js.map +1 -0
- package/dist/constructs/traceroute-request.d.ts +84 -0
- package/dist/constructs/traceroute-request.js +2 -0
- package/dist/constructs/traceroute-request.js.map +1 -0
- package/dist/constructs/url-assertion-codegen.d.ts +3 -0
- package/dist/constructs/url-assertion-codegen.js +11 -0
- package/dist/constructs/url-assertion-codegen.js.map +1 -0
- package/dist/constructs/url-assertion.d.ts +60 -0
- package/dist/constructs/url-assertion.js +52 -0
- package/dist/constructs/url-assertion.js.map +1 -0
- package/dist/constructs/url-monitor-codegen.d.ts +13 -0
- package/dist/constructs/url-monitor-codegen.js +34 -0
- package/dist/constructs/url-monitor-codegen.js.map +1 -0
- package/dist/constructs/url-monitor.d.ts +162 -0
- package/dist/constructs/url-monitor.js +114 -0
- package/dist/constructs/url-monitor.js.map +1 -0
- package/dist/constructs/url-request-codegen.d.ts +4 -0
- package/dist/constructs/url-request-codegen.js +28 -0
- package/dist/constructs/url-request-codegen.js.map +1 -0
- package/dist/constructs/url-request.d.ts +65 -0
- package/dist/constructs/url-request.js +2 -0
- package/dist/constructs/url-request.js.map +1 -0
- package/dist/constructs/webhook-alert-channel-codegen.d.ts +34 -0
- package/dist/constructs/webhook-alert-channel-codegen.js +147 -0
- package/dist/constructs/webhook-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/webhook-alert-channel.d.ts +68 -0
- package/dist/constructs/webhook-alert-channel.js +59 -0
- package/dist/constructs/webhook-alert-channel.js.map +1 -0
- package/dist/formatters/account-members.d.ts +8 -0
- package/dist/formatters/account-members.js +115 -0
- package/dist/formatters/account-members.js.map +1 -0
- package/dist/formatters/account-plan.d.ts +16 -0
- package/dist/formatters/account-plan.js +320 -0
- package/dist/formatters/account-plan.js.map +1 -0
- package/dist/formatters/alert-channels.d.ts +15 -0
- package/dist/formatters/alert-channels.js +257 -0
- package/dist/formatters/alert-channels.js.map +1 -0
- package/dist/formatters/analytics.d.ts +8 -0
- package/dist/formatters/analytics.js +223 -0
- package/dist/formatters/analytics.js.map +1 -0
- package/dist/formatters/assertion-line.d.ts +27 -0
- package/dist/formatters/assertion-line.js +126 -0
- package/dist/formatters/assertion-line.js.map +1 -0
- package/dist/formatters/assets.d.ts +22 -0
- package/dist/formatters/assets.js +280 -0
- package/dist/formatters/assets.js.map +1 -0
- package/dist/formatters/batch-stats.d.ts +8 -0
- package/dist/formatters/batch-stats.js +203 -0
- package/dist/formatters/batch-stats.js.map +1 -0
- package/dist/formatters/check-result-detail.d.ts +12 -0
- package/dist/formatters/check-result-detail.js +1099 -0
- package/dist/formatters/check-result-detail.js.map +1 -0
- package/dist/formatters/check-sessions.d.ts +5 -0
- package/dist/formatters/check-sessions.js +113 -0
- package/dist/formatters/check-sessions.js.map +1 -0
- package/dist/formatters/checks.d.ts +29 -0
- package/dist/formatters/checks.js +336 -0
- package/dist/formatters/checks.js.map +1 -0
- package/dist/formatters/incidents.d.ts +7 -0
- package/dist/formatters/incidents.js +172 -0
- package/dist/formatters/incidents.js.map +1 -0
- package/dist/formatters/rca.d.ts +42 -0
- package/dist/formatters/rca.js +156 -0
- package/dist/formatters/rca.js.map +1 -0
- package/dist/formatters/render.d.ts +48 -0
- package/dist/formatters/render.js +263 -0
- package/dist/formatters/render.js.map +1 -0
- package/dist/formatters/status-pages.d.ts +7 -0
- package/dist/formatters/status-pages.js +236 -0
- package/dist/formatters/status-pages.js.map +1 -0
- package/dist/formatters/test-sessions.d.ts +18 -0
- package/dist/formatters/test-sessions.js +341 -0
- package/dist/formatters/test-sessions.js.map +1 -0
- package/dist/formatters/usage.d.ts +21 -0
- package/dist/formatters/usage.js +313 -0
- package/dist/formatters/usage.js.map +1 -0
- package/dist/help/examples.d.ts +6 -0
- package/dist/help/examples.js +20 -0
- package/dist/help/examples.js.map +1 -0
- package/dist/help/help-extension.d.ts +6 -0
- package/dist/help/help-extension.js +93 -0
- package/dist/help/help-extension.js.map +1 -0
- package/dist/help/skills.d.ts +7 -0
- package/dist/help/skills.js +20 -0
- package/dist/help/skills.js.map +1 -0
- package/dist/helpers/account-member-target.d.ts +14 -0
- package/dist/helpers/account-member-target.js +37 -0
- package/dist/helpers/account-member-target.js.map +1 -0
- package/dist/helpers/accounts.d.ts +28 -0
- package/dist/helpers/accounts.js +50 -0
- package/dist/helpers/accounts.js.map +1 -0
- package/dist/helpers/activate-account.d.ts +13 -0
- package/dist/helpers/activate-account.js +24 -0
- package/dist/helpers/activate-account.js.map +1 -0
- package/dist/helpers/api-fields.d.ts +4 -0
- package/dist/helpers/api-fields.js +25 -0
- package/dist/helpers/api-fields.js.map +1 -0
- package/dist/helpers/cli-mode.d.ts +28 -0
- package/dist/helpers/cli-mode.js +210 -0
- package/dist/helpers/cli-mode.js.map +1 -0
- package/dist/helpers/command-preview.d.ts +76 -0
- package/dist/helpers/command-preview.js +74 -0
- package/dist/helpers/command-preview.js.map +1 -0
- package/dist/helpers/command-style.d.ts +24 -0
- package/dist/helpers/command-style.js +135 -0
- package/dist/helpers/command-style.js.map +1 -0
- package/dist/helpers/constants.d.ts +1 -0
- package/dist/helpers/constants.js +2 -0
- package/dist/helpers/constants.js.map +1 -0
- package/dist/helpers/content-range.d.ts +1 -0
- package/dist/helpers/content-range.js +7 -0
- package/dist/helpers/content-range.js.map +1 -0
- package/dist/helpers/flags.d.ts +22 -0
- package/dist/helpers/flags.js +68 -0
- package/dist/helpers/flags.js.map +1 -0
- package/dist/helpers/import-plan-selection.d.ts +70 -0
- package/dist/helpers/import-plan-selection.js +134 -0
- package/dist/helpers/import-plan-selection.js.map +1 -0
- package/dist/helpers/incidents.d.ts +15 -0
- package/dist/helpers/incidents.js +50 -0
- package/dist/helpers/incidents.js.map +1 -0
- package/dist/helpers/invalid-input-error.d.ts +15 -0
- package/dist/helpers/invalid-input-error.js +17 -0
- package/dist/helpers/invalid-input-error.js.map +1 -0
- package/dist/helpers/number.d.ts +3 -0
- package/dist/helpers/number.js +21 -0
- package/dist/helpers/number.js.map +1 -0
- package/dist/helpers/onboarding/boilerplate.d.ts +15 -0
- package/dist/helpers/onboarding/boilerplate.js +178 -0
- package/dist/helpers/onboarding/boilerplate.js.map +1 -0
- package/dist/helpers/onboarding/clipboard.d.ts +1 -0
- package/dist/helpers/onboarding/clipboard.js +28 -0
- package/dist/helpers/onboarding/clipboard.js.map +1 -0
- package/dist/helpers/onboarding/detect-project.d.ts +10 -0
- package/dist/helpers/onboarding/detect-project.js +22 -0
- package/dist/helpers/onboarding/detect-project.js.map +1 -0
- package/dist/helpers/onboarding/index.d.ts +7 -0
- package/dist/helpers/onboarding/index.js +8 -0
- package/dist/helpers/onboarding/index.js.map +1 -0
- package/dist/helpers/onboarding/messages.d.ts +12 -0
- package/dist/helpers/onboarding/messages.js +155 -0
- package/dist/helpers/onboarding/messages.js.map +1 -0
- package/dist/helpers/onboarding/prompt-display.d.ts +1 -0
- package/dist/helpers/onboarding/prompt-display.js +76 -0
- package/dist/helpers/onboarding/prompt-display.js.map +1 -0
- package/dist/helpers/onboarding/prompts-helpers.d.ts +2 -0
- package/dist/helpers/onboarding/prompts-helpers.js +13 -0
- package/dist/helpers/onboarding/prompts-helpers.js.map +1 -0
- package/dist/helpers/onboarding/skill-install.d.ts +10 -0
- package/dist/helpers/onboarding/skill-install.js +85 -0
- package/dist/helpers/onboarding/skill-install.js.map +1 -0
- package/dist/helpers/onboarding/template-prompt.d.ts +2 -0
- package/dist/helpers/onboarding/template-prompt.js +14 -0
- package/dist/helpers/onboarding/template-prompt.js.map +1 -0
- package/dist/helpers/prompts.d.ts +7 -0
- package/dist/helpers/prompts.js +10 -0
- package/dist/helpers/prompts.js.map +1 -0
- package/dist/helpers/recast-acorn-parser.d.ts +2 -0
- package/dist/helpers/recast-acorn-parser.js +22 -0
- package/dist/helpers/recast-acorn-parser.js.map +1 -0
- package/dist/helpers/result-assets.d.ts +54 -0
- package/dist/helpers/result-assets.js +319 -0
- package/dist/helpers/result-assets.js.map +1 -0
- package/dist/helpers/test-helper.d.ts +31 -0
- package/dist/helpers/test-helper.js +105 -0
- package/dist/helpers/test-helper.js.map +1 -0
- package/dist/helpers/usage.d.ts +64 -0
- package/dist/helpers/usage.js +242 -0
- package/dist/helpers/usage.js.map +1 -0
- package/dist/helpers/wrap.d.ts +6 -0
- package/dist/helpers/wrap.js +49 -0
- package/dist/helpers/wrap.js.map +1 -0
- package/dist/helpers/write-config-helpers.d.ts +5 -0
- package/dist/helpers/write-config-helpers.js +55 -0
- package/dist/helpers/write-config-helpers.js.map +1 -0
- package/dist/hooks/command-not-found.d.ts +3 -0
- package/dist/hooks/command-not-found.js +22 -0
- package/dist/hooks/command-not-found.js.map +1 -0
- package/dist/hooks/parse-error.d.ts +3 -0
- package/dist/hooks/parse-error.js +15 -0
- package/dist/hooks/parse-error.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/loader/config.d.ts +3 -0
- package/dist/loader/config.js +8 -0
- package/dist/loader/config.js.map +1 -0
- package/dist/loader/index.d.ts +5 -0
- package/dist/loader/index.js +6 -0
- package/dist/loader/index.js.map +1 -0
- package/dist/loader/jiti.d.ts +28 -0
- package/dist/loader/jiti.js +76 -0
- package/dist/loader/jiti.js.map +1 -0
- package/dist/loader/loader.d.ts +43 -0
- package/dist/loader/loader.js +37 -0
- package/dist/loader/loader.js.map +1 -0
- package/dist/loader/match.d.ts +15 -0
- package/dist/loader/match.js +43 -0
- package/dist/loader/match.js.map +1 -0
- package/dist/loader/mixed.d.ts +7 -0
- package/dist/loader/mixed.js +36 -0
- package/dist/loader/mixed.js.map +1 -0
- package/dist/loader/native.d.ts +10 -0
- package/dist/loader/native.js +30 -0
- package/dist/loader/native.js.map +1 -0
- package/dist/messages/common-messages.d.ts +7 -0
- package/dist/messages/common-messages.js +11 -0
- package/dist/messages/common-messages.js.map +1 -0
- package/dist/playwright/playwright-config-loader.d.ts +1 -0
- package/dist/playwright/playwright-config-loader.js +26 -0
- package/dist/playwright/playwright-config-loader.js.map +1 -0
- package/dist/playwright/playwright-config-template.d.ts +8 -0
- package/dist/playwright/playwright-config-template.js +53 -0
- package/dist/playwright/playwright-config-template.js.map +1 -0
- package/dist/reporters/abstract-list.d.ts +67 -0
- package/dist/reporters/abstract-list.js +387 -0
- package/dist/reporters/abstract-list.js.map +1 -0
- package/dist/reporters/ci.d.ts +12 -0
- package/dist/reporters/ci.js +31 -0
- package/dist/reporters/ci.js.map +1 -0
- package/dist/reporters/dot.d.ts +11 -0
- package/dist/reporters/dot.js +39 -0
- package/dist/reporters/dot.js.map +1 -0
- package/dist/reporters/github.d.ts +35 -0
- package/dist/reporters/github.js +130 -0
- package/dist/reporters/github.js.map +1 -0
- package/dist/reporters/json.d.ts +29 -0
- package/dist/reporters/json.js +155 -0
- package/dist/reporters/json.js.map +1 -0
- package/dist/reporters/list.d.ts +15 -0
- package/dist/reporters/list.js +83 -0
- package/dist/reporters/list.js.map +1 -0
- package/dist/reporters/reporter.d.ts +26 -0
- package/dist/reporters/reporter.js +22 -0
- package/dist/reporters/reporter.js.map +1 -0
- package/dist/reporters/util.d.ts +24 -0
- package/dist/reporters/util.js +663 -0
- package/dist/reporters/util.js.map +1 -0
- package/dist/rest/account-members.d.ts +56 -0
- package/dist/rest/account-members.js +18 -0
- package/dist/rest/account-members.js.map +1 -0
- package/dist/rest/accounts.d.ts +25 -0
- package/dist/rest/accounts.js +14 -0
- package/dist/rest/accounts.js.map +1 -0
- package/dist/rest/alert-channels.d.ts +52 -0
- package/dist/rest/alert-channels.js +23 -0
- package/dist/rest/alert-channels.js.map +1 -0
- package/dist/rest/alert-notifications.d.ts +39 -0
- package/dist/rest/alert-notifications.js +19 -0
- package/dist/rest/alert-notifications.js.map +1 -0
- package/dist/rest/analytics.d.ts +41 -0
- package/dist/rest/analytics.js +62 -0
- package/dist/rest/analytics.js.map +1 -0
- package/dist/rest/api.d.ts +80 -0
- package/dist/rest/api.js +165 -0
- package/dist/rest/api.js.map +1 -0
- package/dist/rest/asset-manifests.d.ts +30 -0
- package/dist/rest/asset-manifests.js +29 -0
- package/dist/rest/asset-manifests.js.map +1 -0
- package/dist/rest/assets.d.ts +64 -0
- package/dist/rest/assets.js +91 -0
- package/dist/rest/assets.js.map +1 -0
- package/dist/rest/batch-analytics.d.ts +26 -0
- package/dist/rest/batch-analytics.js +14 -0
- package/dist/rest/batch-analytics.js.map +1 -0
- package/dist/rest/cancel.d.ts +18 -0
- package/dist/rest/cancel.js +28 -0
- package/dist/rest/cancel.js.map +1 -0
- package/dist/rest/check-groups.d.ts +16 -0
- package/dist/rest/check-groups.js +11 -0
- package/dist/rest/check-groups.js.map +1 -0
- package/dist/rest/check-results.d.ts +210 -0
- package/dist/rest/check-results.js +19 -0
- package/dist/rest/check-results.js.map +1 -0
- package/dist/rest/check-sessions.d.ts +63 -0
- package/dist/rest/check-sessions.js +66 -0
- package/dist/rest/check-sessions.js.map +1 -0
- package/dist/rest/check-statuses.d.ts +23 -0
- package/dist/rest/check-statuses.js +20 -0
- package/dist/rest/check-statuses.js.map +1 -0
- package/dist/rest/checkly-storage.d.ts +21 -0
- package/dist/rest/checkly-storage.js +28 -0
- package/dist/rest/checkly-storage.js.map +1 -0
- package/dist/rest/checks.d.ts +48 -0
- package/dist/rest/checks.js +43 -0
- package/dist/rest/checks.js.map +1 -0
- package/dist/rest/entitlements.d.ts +47 -0
- package/dist/rest/entitlements.js +11 -0
- package/dist/rest/entitlements.js.map +1 -0
- package/dist/rest/environment-variables.d.ts +52 -0
- package/dist/rest/environment-variables.js +91 -0
- package/dist/rest/environment-variables.js.map +1 -0
- package/dist/rest/error-groups.d.ts +49 -0
- package/dist/rest/error-groups.js +14 -0
- package/dist/rest/error-groups.js.map +1 -0
- package/dist/rest/errors.d.ts +121 -0
- package/dist/rest/errors.js +328 -0
- package/dist/rest/errors.js.map +1 -0
- package/dist/rest/heartbeat-checks.d.ts +11 -0
- package/dist/rest/heartbeat-checks.js +16 -0
- package/dist/rest/heartbeat-checks.js.map +1 -0
- package/dist/rest/incidents.d.ts +60 -0
- package/dist/rest/incidents.js +28 -0
- package/dist/rest/incidents.js.map +1 -0
- package/dist/rest/locations.d.ts +11 -0
- package/dist/rest/locations.js +11 -0
- package/dist/rest/locations.js.map +1 -0
- package/dist/rest/private-locations.d.ts +10 -0
- package/dist/rest/private-locations.js +10 -0
- package/dist/rest/private-locations.js.map +1 -0
- package/dist/rest/projects.d.ts +545 -0
- package/dist/rest/projects.js +696 -0
- package/dist/rest/projects.js.map +1 -0
- package/dist/rest/rca.d.ts +14 -0
- package/dist/rest/rca.js +28 -0
- package/dist/rest/rca.js.map +1 -0
- package/dist/rest/retry.d.ts +55 -0
- package/dist/rest/retry.js +169 -0
- package/dist/rest/retry.js.map +1 -0
- package/dist/rest/runtimes.d.ts +9 -0
- package/dist/rest/runtimes.js +16 -0
- package/dist/rest/runtimes.js.map +1 -0
- package/dist/rest/status-pages.d.ts +40 -0
- package/dist/rest/status-pages.js +16 -0
- package/dist/rest/status-pages.js.map +1 -0
- package/dist/rest/test-session-error-groups.d.ts +18 -0
- package/dist/rest/test-session-error-groups.js +11 -0
- package/dist/rest/test-session-error-groups.js.map +1 -0
- package/dist/rest/test-sessions.d.ts +217 -0
- package/dist/rest/test-sessions.js +118 -0
- package/dist/rest/test-sessions.js.map +1 -0
- package/dist/rest/usage.d.ts +221 -0
- package/dist/rest/usage.js +49 -0
- package/dist/rest/usage.js.map +1 -0
- package/dist/rest/users.d.ts +12 -0
- package/dist/rest/users.js +11 -0
- package/dist/rest/users.js.map +1 -0
- package/dist/rest/util.d.ts +3 -0
- package/dist/rest/util.js +10 -0
- package/dist/rest/util.js.map +1 -0
- package/dist/runtimes/index.d.ts +2 -0
- package/dist/runtimes/index.js +2 -0
- package/dist/runtimes/index.js.map +1 -0
- package/dist/runtimes/runtime.d.ts +8 -0
- package/dist/runtimes/runtime.js +2 -0
- package/dist/runtimes/runtime.js.map +1 -0
- package/dist/runtimes/snapshot.d.ts +2 -0
- package/dist/runtimes/snapshot.js +11 -0
- package/dist/runtimes/snapshot.js.map +1 -0
- package/dist/services/abstract-check-runner.d.ts +111 -0
- package/dist/services/abstract-check-runner.js +483 -0
- package/dist/services/abstract-check-runner.js.map +1 -0
- package/dist/services/check-parser/bundler.d.ts +191 -0
- package/dist/services/check-parser/bundler.js +1087 -0
- package/dist/services/check-parser/bundler.js.map +1 -0
- package/dist/services/check-parser/cache-hash.d.ts +286 -0
- package/dist/services/check-parser/cache-hash.js +329 -0
- package/dist/services/check-parser/cache-hash.js.map +1 -0
- package/dist/services/check-parser/collector.d.ts +33 -0
- package/dist/services/check-parser/collector.js +46 -0
- package/dist/services/check-parser/collector.js.map +1 -0
- package/dist/services/check-parser/errors.d.ts +8 -0
- package/dist/services/check-parser/errors.js +46 -0
- package/dist/services/check-parser/errors.js.map +1 -0
- package/dist/services/check-parser/faux-package.d.ts +9 -0
- package/dist/services/check-parser/faux-package.js +24 -0
- package/dist/services/check-parser/faux-package.js.map +1 -0
- package/dist/services/check-parser/lockfile-pruner.d.ts +115 -0
- package/dist/services/check-parser/lockfile-pruner.js +1330 -0
- package/dist/services/check-parser/lockfile-pruner.js.map +1 -0
- package/dist/services/check-parser/package-files/extension.d.ts +38 -0
- package/dist/services/check-parser/package-files/extension.js +66 -0
- package/dist/services/check-parser/package-files/extension.js.map +1 -0
- package/dist/services/check-parser/package-files/jsconfig-json-file.d.ts +17 -0
- package/dist/services/check-parser/package-files/jsconfig-json-file.js +23 -0
- package/dist/services/check-parser/package-files/jsconfig-json-file.js.map +1 -0
- package/dist/services/check-parser/package-files/json-source-file.d.ts +11 -0
- package/dist/services/check-parser/package-files/json-source-file.js +32 -0
- package/dist/services/check-parser/package-files/json-source-file.js.map +1 -0
- package/dist/services/check-parser/package-files/json-text-source-file.d.ts +5 -0
- package/dist/services/check-parser/package-files/json-text-source-file.js +18 -0
- package/dist/services/check-parser/package-files/json-text-source-file.js.map +1 -0
- package/dist/services/check-parser/package-files/loader.d.ts +7 -0
- package/dist/services/check-parser/package-files/loader.js +24 -0
- package/dist/services/check-parser/package-files/loader.js.map +1 -0
- package/dist/services/check-parser/package-files/lockfile-package-version.d.ts +88 -0
- package/dist/services/check-parser/package-files/lockfile-package-version.js +321 -0
- package/dist/services/check-parser/package-files/lockfile-package-version.js.map +1 -0
- package/dist/services/check-parser/package-files/lookup.d.ts +12 -0
- package/dist/services/check-parser/package-files/lookup.js +52 -0
- package/dist/services/check-parser/package-files/lookup.js.map +1 -0
- package/dist/services/check-parser/package-files/package-json-file.d.ts +72 -0
- package/dist/services/check-parser/package-files/package-json-file.js +271 -0
- package/dist/services/check-parser/package-files/package-json-file.js.map +1 -0
- package/dist/services/check-parser/package-files/package-manager.d.ts +288 -0
- package/dist/services/check-parser/package-files/package-manager.js +998 -0
- package/dist/services/check-parser/package-files/package-manager.js.map +1 -0
- package/dist/services/check-parser/package-files/paths.d.ts +98 -0
- package/dist/services/check-parser/package-files/paths.js +247 -0
- package/dist/services/check-parser/package-files/paths.js.map +1 -0
- package/dist/services/check-parser/package-files/pnpmfile.d.ts +40 -0
- package/dist/services/check-parser/package-files/pnpmfile.js +322 -0
- package/dist/services/check-parser/package-files/pnpmfile.js.map +1 -0
- package/dist/services/check-parser/package-files/resolver.d.ts +146 -0
- package/dist/services/check-parser/package-files/resolver.js +664 -0
- package/dist/services/check-parser/package-files/resolver.js.map +1 -0
- package/dist/services/check-parser/package-files/result.d.ts +38 -0
- package/dist/services/check-parser/package-files/result.js +53 -0
- package/dist/services/check-parser/package-files/result.js.map +1 -0
- package/dist/services/check-parser/package-files/source-file.d.ts +15 -0
- package/dist/services/check-parser/package-files/source-file.js +38 -0
- package/dist/services/check-parser/package-files/source-file.js.map +1 -0
- package/dist/services/check-parser/package-files/tsconfig-json-file.d.ts +116 -0
- package/dist/services/check-parser/package-files/tsconfig-json-file.js +156 -0
- package/dist/services/check-parser/package-files/tsconfig-json-file.js.map +1 -0
- package/dist/services/check-parser/package-files/walk.d.ts +8 -0
- package/dist/services/check-parser/package-files/walk.js +35 -0
- package/dist/services/check-parser/package-files/walk.js.map +1 -0
- package/dist/services/check-parser/package-files/workspace.d.ts +75 -0
- package/dist/services/check-parser/package-files/workspace.js +118 -0
- package/dist/services/check-parser/package-files/workspace.js.map +1 -0
- package/dist/services/check-parser/package-prune.d.ts +235 -0
- package/dist/services/check-parser/package-prune.js +760 -0
- package/dist/services/check-parser/package-prune.js.map +1 -0
- package/dist/services/check-parser/parser.d.ts +86 -0
- package/dist/services/check-parser/parser.js +498 -0
- package/dist/services/check-parser/parser.js.map +1 -0
- package/dist/services/check-parser/patched-dependencies.d.ts +147 -0
- package/dist/services/check-parser/patched-dependencies.js +453 -0
- package/dist/services/check-parser/patched-dependencies.js.map +1 -0
- package/dist/services/check-parser/playwright-config-expander.d.ts +16 -0
- package/dist/services/check-parser/playwright-config-expander.js +175 -0
- package/dist/services/check-parser/playwright-config-expander.js.map +1 -0
- package/dist/services/checkly-config-codegen.d.ts +4 -0
- package/dist/services/checkly-config-codegen.js +189 -0
- package/dist/services/checkly-config-codegen.js.map +1 -0
- package/dist/services/checkly-config-loader.d.ts +378 -0
- package/dist/services/checkly-config-loader.js +302 -0
- package/dist/services/checkly-config-loader.js.map +1 -0
- package/dist/services/config-diagnostics.d.ts +31 -0
- package/dist/services/config-diagnostics.js +57 -0
- package/dist/services/config-diagnostics.js.map +1 -0
- package/dist/services/config.d.ts +69 -0
- package/dist/services/config.js +179 -0
- package/dist/services/config.js.map +1 -0
- package/dist/services/content-hash.d.ts +14 -0
- package/dist/services/content-hash.js +22 -0
- package/dist/services/content-hash.js.map +1 -0
- package/dist/services/deploy-diff/diff-lines.d.ts +52 -0
- package/dist/services/deploy-diff/diff-lines.js +327 -0
- package/dist/services/deploy-diff/diff-lines.js.map +1 -0
- package/dist/services/deploy-diff/double-check.d.ts +9 -0
- package/dist/services/deploy-diff/double-check.js +21 -0
- package/dist/services/deploy-diff/double-check.js.map +1 -0
- package/dist/services/deploy-diff/import-shape.d.ts +171 -0
- package/dist/services/deploy-diff/import-shape.js +633 -0
- package/dist/services/deploy-diff/import-shape.js.map +1 -0
- package/dist/services/deploy-diff/legacy-payload.d.ts +22 -0
- package/dist/services/deploy-diff/legacy-payload.js +51 -0
- package/dist/services/deploy-diff/legacy-payload.js.map +1 -0
- package/dist/services/deploy-diff/plan-summary.d.ts +81 -0
- package/dist/services/deploy-diff/plan-summary.js +262 -0
- package/dist/services/deploy-diff/plan-summary.js.map +1 -0
- package/dist/services/deploy-diff/preview-output.d.ts +63 -0
- package/dist/services/deploy-diff/preview-output.js +403 -0
- package/dist/services/deploy-diff/preview-output.js.map +1 -0
- package/dist/services/deploy-diff/render.d.ts +59 -0
- package/dist/services/deploy-diff/render.js +326 -0
- package/dist/services/deploy-diff/render.js.map +1 -0
- package/dist/services/deploy-diff/shape-changes.d.ts +2 -0
- package/dist/services/deploy-diff/shape-changes.js +48 -0
- package/dist/services/deploy-diff/shape-changes.js.map +1 -0
- package/dist/services/deploy-diff/source-index.d.ts +18 -0
- package/dist/services/deploy-diff/source-index.js +48 -0
- package/dist/services/deploy-diff/source-index.js.map +1 -0
- package/dist/services/deploy-diff/variable-names.d.ts +30 -0
- package/dist/services/deploy-diff/variable-names.js +64 -0
- package/dist/services/deploy-diff/variable-names.js.map +1 -0
- package/dist/services/embedded-packages/cache.d.ts +52 -0
- package/dist/services/embedded-packages/cache.js +192 -0
- package/dist/services/embedded-packages/cache.js.map +1 -0
- package/dist/services/embedded-packages/diagnostics.d.ts +129 -0
- package/dist/services/embedded-packages/diagnostics.js +212 -0
- package/dist/services/embedded-packages/diagnostics.js.map +1 -0
- package/dist/services/embedded-packages/integrity.d.ts +28 -0
- package/dist/services/embedded-packages/integrity.js +58 -0
- package/dist/services/embedded-packages/integrity.js.map +1 -0
- package/dist/services/embedded-packages/lockfile-filter.d.ts +20 -0
- package/dist/services/embedded-packages/lockfile-filter.js +40 -0
- package/dist/services/embedded-packages/lockfile-filter.js.map +1 -0
- package/dist/services/embedded-packages/lockfile-packages.d.ts +77 -0
- package/dist/services/embedded-packages/lockfile-packages.js +439 -0
- package/dist/services/embedded-packages/lockfile-packages.js.map +1 -0
- package/dist/services/embedded-packages/materializer.d.ts +102 -0
- package/dist/services/embedded-packages/materializer.js +668 -0
- package/dist/services/embedded-packages/materializer.js.map +1 -0
- package/dist/services/embedded-packages/npmrc.d.ts +198 -0
- package/dist/services/embedded-packages/npmrc.js +539 -0
- package/dist/services/embedded-packages/npmrc.js.map +1 -0
- package/dist/services/embedded-packages/spec.d.ts +119 -0
- package/dist/services/embedded-packages/spec.js +248 -0
- package/dist/services/embedded-packages/spec.js.map +1 -0
- package/dist/services/embedded-packages/url.d.ts +39 -0
- package/dist/services/embedded-packages/url.js +60 -0
- package/dist/services/embedded-packages/url.js.map +1 -0
- package/dist/services/engine-detector.d.ts +16 -0
- package/dist/services/engine-detector.js +213 -0
- package/dist/services/engine-detector.js.map +1 -0
- package/dist/services/engine-resolver.d.ts +6 -0
- package/dist/services/engine-resolver.js +50 -0
- package/dist/services/engine-resolver.js.map +1 -0
- package/dist/services/engine-rules-loader.d.ts +27 -0
- package/dist/services/engine-rules-loader.js +53 -0
- package/dist/services/engine-rules-loader.js.map +1 -0
- package/dist/services/load-dotenv.d.ts +1 -0
- package/dist/services/load-dotenv.js +44 -0
- package/dist/services/load-dotenv.js.map +1 -0
- package/dist/services/oxc-parser.d.ts +26 -0
- package/dist/services/oxc-parser.js +70 -0
- package/dist/services/oxc-parser.js.map +1 -0
- package/dist/services/playwright-config.d.ts +41 -0
- package/dist/services/playwright-config.js +192 -0
- package/dist/services/playwright-config.js.map +1 -0
- package/dist/services/playwright-project-bundler.d.ts +28 -0
- package/dist/services/playwright-project-bundler.js +301 -0
- package/dist/services/playwright-project-bundler.js.map +1 -0
- package/dist/services/pnpm-lockfile-documents.d.ts +50 -0
- package/dist/services/pnpm-lockfile-documents.js +42 -0
- package/dist/services/pnpm-lockfile-documents.js.map +1 -0
- package/dist/services/project-cli.d.ts +75 -0
- package/dist/services/project-cli.js +302 -0
- package/dist/services/project-cli.js.map +1 -0
- package/dist/services/project-parser.d.ts +36 -0
- package/dist/services/project-parser.js +307 -0
- package/dist/services/project-parser.js.map +1 -0
- package/dist/services/proxy.d.ts +32 -0
- package/dist/services/proxy.js +69 -0
- package/dist/services/proxy.js.map +1 -0
- package/dist/services/runner/registries.d.ts +156 -0
- package/dist/services/runner/registries.js +300 -0
- package/dist/services/runner/registries.js.map +1 -0
- package/dist/services/shell.d.ts +2 -0
- package/dist/services/shell.js +15 -0
- package/dist/services/shell.js.map +1 -0
- package/dist/services/skills.d.ts +12 -0
- package/dist/services/skills.js +127 -0
- package/dist/services/skills.js.map +1 -0
- package/dist/services/snapshot-service.d.ts +30 -0
- package/dist/services/snapshot-service.js +98 -0
- package/dist/services/snapshot-service.js.map +1 -0
- package/dist/services/socket-client.d.ts +4 -0
- package/dist/services/socket-client.js +37 -0
- package/dist/services/socket-client.js.map +1 -0
- package/dist/services/symlink-resolver.d.ts +56 -0
- package/dist/services/symlink-resolver.js +860 -0
- package/dist/services/symlink-resolver.js.map +1 -0
- package/dist/services/test-filters.d.ts +21 -0
- package/dist/services/test-filters.js +31 -0
- package/dist/services/test-filters.js.map +1 -0
- package/dist/services/test-runner.d.ts +29 -0
- package/dist/services/test-runner.js +81 -0
- package/dist/services/test-runner.js.map +1 -0
- package/dist/services/test-session-cancel.d.ts +17 -0
- package/dist/services/test-session-cancel.js +40 -0
- package/dist/services/test-session-cancel.js.map +1 -0
- package/dist/services/trigger-runner.d.ts +29 -0
- package/dist/services/trigger-runner.js +49 -0
- package/dist/services/trigger-runner.js.map +1 -0
- package/dist/services/two-installs.d.ts +39 -0
- package/dist/services/two-installs.js +155 -0
- package/dist/services/two-installs.js.map +1 -0
- package/dist/services/util.d.ts +83 -0
- package/dist/services/util.js +343 -0
- package/dist/services/util.js.map +1 -0
- package/dist/services/write-back/apply-edits.d.ts +29 -0
- package/dist/services/write-back/apply-edits.js +255 -0
- package/dist/services/write-back/apply-edits.js.map +1 -0
- package/dist/services/write-back/helper-edit.d.ts +135 -0
- package/dist/services/write-back/helper-edit.js +343 -0
- package/dist/services/write-back/helper-edit.js.map +1 -0
- package/dist/services/write-back/imports.d.ts +30 -0
- package/dist/services/write-back/imports.js +88 -0
- package/dist/services/write-back/imports.js.map +1 -0
- package/dist/services/write-back/literal-edit.d.ts +183 -0
- package/dist/services/write-back/literal-edit.js +359 -0
- package/dist/services/write-back/literal-edit.js.map +1 -0
- package/dist/services/write-back/output.d.ts +26 -0
- package/dist/services/write-back/output.js +110 -0
- package/dist/services/write-back/output.js.map +1 -0
- package/dist/services/write-back/plan.d.ts +180 -0
- package/dist/services/write-back/plan.js +1046 -0
- package/dist/services/write-back/plan.js.map +1 -0
- package/dist/services/write-back/source-file.d.ts +133 -0
- package/dist/services/write-back/source-file.js +460 -0
- package/dist/services/write-back/source-file.js.map +1 -0
- package/dist/sourcegen/args.d.ts +7 -0
- package/dist/sourcegen/args.js +22 -0
- package/dist/sourcegen/args.js.map +1 -0
- package/dist/sourcegen/argsbuilder.d.ts +22 -0
- package/dist/sourcegen/argsbuilder.js +106 -0
- package/dist/sourcegen/argsbuilder.js.map +1 -0
- package/dist/sourcegen/array.d.ts +8 -0
- package/dist/sourcegen/array.js +28 -0
- package/dist/sourcegen/array.js.map +1 -0
- package/dist/sourcegen/arraybuilder.d.ts +21 -0
- package/dist/sourcegen/arraybuilder.js +104 -0
- package/dist/sourcegen/arraybuilder.js.map +1 -0
- package/dist/sourcegen/boolean.d.ts +7 -0
- package/dist/sourcegen/boolean.js +18 -0
- package/dist/sourcegen/boolean.js.map +1 -0
- package/dist/sourcegen/case.d.ts +9 -0
- package/dist/sourcegen/case.js +96 -0
- package/dist/sourcegen/case.js.map +1 -0
- package/dist/sourcegen/comment.d.ts +32 -0
- package/dist/sourcegen/comment.js +113 -0
- package/dist/sourcegen/comment.js.map +1 -0
- package/dist/sourcegen/decl.d.ts +43 -0
- package/dist/sourcegen/decl.js +86 -0
- package/dist/sourcegen/decl.js.map +1 -0
- package/dist/sourcegen/declbuilder.d.ts +14 -0
- package/dist/sourcegen/declbuilder.js +34 -0
- package/dist/sourcegen/declbuilder.js.map +1 -0
- package/dist/sourcegen/expr.d.ts +39 -0
- package/dist/sourcegen/expr.js +77 -0
- package/dist/sourcegen/expr.js.map +1 -0
- package/dist/sourcegen/exprbuilder.d.ts +13 -0
- package/dist/sourcegen/exprbuilder.js +49 -0
- package/dist/sourcegen/exprbuilder.js.map +1 -0
- package/dist/sourcegen/identifier.d.ts +12 -0
- package/dist/sourcegen/identifier.js +22 -0
- package/dist/sourcegen/identifier.js.map +1 -0
- package/dist/sourcegen/index.d.ts +22 -0
- package/dist/sourcegen/index.js +23 -0
- package/dist/sourcegen/index.js.map +1 -0
- package/dist/sourcegen/null.d.ts +5 -0
- package/dist/sourcegen/null.js +7 -0
- package/dist/sourcegen/null.js.map +1 -0
- package/dist/sourcegen/number.d.ts +7 -0
- package/dist/sourcegen/number.js +18 -0
- package/dist/sourcegen/number.js.map +1 -0
- package/dist/sourcegen/object.d.ts +28 -0
- package/dist/sourcegen/object.js +80 -0
- package/dist/sourcegen/object.js.map +1 -0
- package/dist/sourcegen/objectbuilder.d.ts +25 -0
- package/dist/sourcegen/objectbuilder.js +122 -0
- package/dist/sourcegen/objectbuilder.js.map +1 -0
- package/dist/sourcegen/output.d.ts +14 -0
- package/dist/sourcegen/output.js +81 -0
- package/dist/sourcegen/output.js.map +1 -0
- package/dist/sourcegen/program.d.ts +71 -0
- package/dist/sourcegen/program.js +279 -0
- package/dist/sourcegen/program.js.map +1 -0
- package/dist/sourcegen/string.d.ts +8 -0
- package/dist/sourcegen/string.js +23 -0
- package/dist/sourcegen/string.js.map +1 -0
- package/dist/sourcegen/undefined.d.ts +5 -0
- package/dist/sourcegen/undefined.js +7 -0
- package/dist/sourcegen/undefined.js.map +1 -0
- package/dist/sourcegen/unknown.d.ts +2 -0
- package/dist/sourcegen/unknown.js +36 -0
- package/dist/sourcegen/unknown.js.map +1 -0
- package/dist/sourcegen/value.d.ts +4 -0
- package/dist/sourcegen/value.js +3 -0
- package/dist/sourcegen/value.js.map +1 -0
- package/dist/testing/capture-stderr.d.ts +6 -0
- package/dist/testing/capture-stderr.js +21 -0
- package/dist/testing/capture-stderr.js.map +1 -0
- package/dist/testing/clear-git-env.d.ts +1 -0
- package/dist/testing/clear-git-env.js +25 -0
- package/dist/testing/clear-git-env.js.map +1 -0
- package/dist/testing/fixture-sandbox.d.ts +41 -0
- package/dist/testing/fixture-sandbox.js +122 -0
- package/dist/testing/fixture-sandbox.js.map +1 -0
- package/dist/testing/global-setup.d.ts +3 -0
- package/dist/testing/global-setup.js +17 -0
- package/dist/testing/global-setup.js.map +1 -0
- package/dist/util/index.d.ts +9 -0
- package/dist/util/index.js +23 -0
- package/dist/util/index.js.map +1 -0
- package/oclif.manifest.json +4365 -0
- package/package.json +173 -0
|
@@ -0,0 +1,998 @@
|
|
|
1
|
+
import fs from 'node:fs/promises';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { execa } from 'execa';
|
|
4
|
+
import { lineage } from './walk.js';
|
|
5
|
+
import { shellQuote } from '../../../services/shell.js';
|
|
6
|
+
import { PackageJsonFile } from './package-json-file.js';
|
|
7
|
+
import { JsonSourceFile } from './json-source-file.js';
|
|
8
|
+
import { Package, Workspace } from './workspace.js';
|
|
9
|
+
import { loadWorkspacePnpmfiles } from './pnpmfile.js';
|
|
10
|
+
import { Err, Ok } from './result.js';
|
|
11
|
+
import { parseBunLockfileVersion, parseNpmLockfileVersion, parsePnpmLockfileVersion, parseYarnLockfileVersion, } from './lockfile-package-version.js';
|
|
12
|
+
export class Runnable {
|
|
13
|
+
executable;
|
|
14
|
+
args;
|
|
15
|
+
constructor(executable, args) {
|
|
16
|
+
this.executable = executable;
|
|
17
|
+
this.args = args;
|
|
18
|
+
}
|
|
19
|
+
get unsafeDisplayCommand() {
|
|
20
|
+
return [this.executable, ...this.args.map(shellQuote)].join(' ');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
class NotDetectedError extends Error {
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Reads a lockfile and runs a format-specific parser over it, swallowing IO
|
|
27
|
+
* and parse errors so detection degrades to the caller's fallback rather than
|
|
28
|
+
* throwing on an unreadable or unexpected lockfile.
|
|
29
|
+
*/
|
|
30
|
+
async function parseLockfileWith(lockfilePath, query, parse) {
|
|
31
|
+
let content;
|
|
32
|
+
try {
|
|
33
|
+
content = await fs.readFile(lockfilePath, 'utf8');
|
|
34
|
+
}
|
|
35
|
+
catch {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
return parse(content, query);
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export class PackageManagerDetector {
|
|
46
|
+
async detectLockfile(dir) {
|
|
47
|
+
for (const lockfile of this.representativeLockfiles) {
|
|
48
|
+
try {
|
|
49
|
+
return await accessR(path.join(dir, lockfile));
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
throw new NotDetectedError();
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Default: no supported lockfile-only resolution mode, so callers skip
|
|
59
|
+
* lockfile pruning. Package managers with such a mode override this.
|
|
60
|
+
*
|
|
61
|
+
* Of the remaining detectors on this default, Yarn Classic simply has no
|
|
62
|
+
* lockfile-only mode (the yarn override covers Berry only — a Classic
|
|
63
|
+
* lockfile is rejected when it is parsed), and cnpm/deno have no verified
|
|
64
|
+
* mode either.
|
|
65
|
+
*/
|
|
66
|
+
lockfileOnlyInstallCommand() {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Default: the cache location does not depend on the project's location,
|
|
71
|
+
* so the lockfile pruner has nothing to pin. See PNpmDetector for the one
|
|
72
|
+
* package manager where it does.
|
|
73
|
+
*/
|
|
74
|
+
storeDirCommand() {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Default: lockfile parsing is unsupported, so callers fall back. Package
|
|
79
|
+
* managers that can parse their lockfile override this.
|
|
80
|
+
*/
|
|
81
|
+
// eslint-disable-next-line require-await
|
|
82
|
+
async resolvePackageVersionFromLockfile(lockfilePath, query) {
|
|
83
|
+
void lockfilePath;
|
|
84
|
+
void query;
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
detector() {
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export class NpmDetector extends PackageManagerDetector {
|
|
92
|
+
get name() {
|
|
93
|
+
return 'npm';
|
|
94
|
+
}
|
|
95
|
+
priority(method) {
|
|
96
|
+
// npm is nearly always installed, so finding the npm binary on PATH is not
|
|
97
|
+
// a meaningful signal — rank it below every other built-in detector for the
|
|
98
|
+
// executable method. Its normal priority applies elsewhere, so it still
|
|
99
|
+
// wins the package-lock.json lockfile tie over cnpm.
|
|
100
|
+
return method === 'executable' ? 0 : 20;
|
|
101
|
+
}
|
|
102
|
+
detectUserAgent(userAgent) {
|
|
103
|
+
return userAgent.startsWith('npm/');
|
|
104
|
+
}
|
|
105
|
+
detectRuntime() {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
get representativeLockfiles() {
|
|
109
|
+
return ['package-lock.json'];
|
|
110
|
+
}
|
|
111
|
+
get representativeConfigFile() {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
// eslint-disable-next-line require-await, @typescript-eslint/no-unused-vars
|
|
115
|
+
async detectConfigFile(dir) {
|
|
116
|
+
throw new NotDetectedError();
|
|
117
|
+
}
|
|
118
|
+
async detectExecutable(lookup) {
|
|
119
|
+
await lookup.detectPresence('npm');
|
|
120
|
+
}
|
|
121
|
+
installCommand() {
|
|
122
|
+
return new Runnable('npm', ['install']);
|
|
123
|
+
}
|
|
124
|
+
lockfileOnlyInstallCommand() {
|
|
125
|
+
// npm has no lockfile-location setting; package-lock.json always lives
|
|
126
|
+
// next to the package.json npm operates on, so there is nothing to pin.
|
|
127
|
+
//
|
|
128
|
+
// --prefer-offline: the pruner's manifests deliberately differ from the
|
|
129
|
+
// lockfile, so npm re-resolves rather than taking its up-to-date fast
|
|
130
|
+
// path, and by default re-fetches every packument it considers stale.
|
|
131
|
+
// With the flag npm accepts cached packuments regardless of age and only
|
|
132
|
+
// contacts the registry for misses. A stale packument can at most change
|
|
133
|
+
// a fresh resolution, and the pruner's subset verification rejects any
|
|
134
|
+
// regenerated entry absent from the original lockfile, so the worst case
|
|
135
|
+
// is a fallback to the original lockfile, never a wrong one.
|
|
136
|
+
return new Runnable('npm', [
|
|
137
|
+
'install', '--package-lock-only', '--ignore-scripts', '--no-audit', '--no-fund', '--prefer-offline',
|
|
138
|
+
]);
|
|
139
|
+
}
|
|
140
|
+
addCommand(options) {
|
|
141
|
+
return new Runnable('npm', [
|
|
142
|
+
'install',
|
|
143
|
+
...options.saveDev ? ['--save-dev'] : [],
|
|
144
|
+
...options.packages,
|
|
145
|
+
]);
|
|
146
|
+
}
|
|
147
|
+
execCommand(args) {
|
|
148
|
+
return new Runnable('npx', args);
|
|
149
|
+
}
|
|
150
|
+
async lookupWorkspace(dir) {
|
|
151
|
+
return await lookupNearestPackageJsonWorkspace(this, dir);
|
|
152
|
+
}
|
|
153
|
+
async resolvePackageVersionFromLockfile(lockfilePath, query) {
|
|
154
|
+
return await parseLockfileWith(lockfilePath, query, parseNpmLockfileVersion);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
export class CNpmDetector extends PackageManagerDetector {
|
|
158
|
+
get name() {
|
|
159
|
+
return 'cnpm';
|
|
160
|
+
}
|
|
161
|
+
priority() {
|
|
162
|
+
return 10;
|
|
163
|
+
}
|
|
164
|
+
detectUserAgent(userAgent) {
|
|
165
|
+
return userAgent.startsWith('npminstall/');
|
|
166
|
+
}
|
|
167
|
+
detectRuntime() {
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
get representativeLockfiles() {
|
|
171
|
+
// cnpm has no lockfile of its own — it uses npm's package-lock.json. We
|
|
172
|
+
// claim it here so a cnpm user agent can be matched against a real
|
|
173
|
+
// lockfile. npm has a higher lockfile priority than cnpm, so a bare
|
|
174
|
+
// package-lock.json with no cnpm user agent still resolves to npm.
|
|
175
|
+
return ['package-lock.json'];
|
|
176
|
+
}
|
|
177
|
+
get representativeConfigFile() {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
// eslint-disable-next-line require-await, @typescript-eslint/no-unused-vars
|
|
181
|
+
async detectConfigFile(dir) {
|
|
182
|
+
throw new NotDetectedError();
|
|
183
|
+
}
|
|
184
|
+
async detectExecutable(lookup) {
|
|
185
|
+
await lookup.detectPresence('cnpm');
|
|
186
|
+
}
|
|
187
|
+
installCommand() {
|
|
188
|
+
return new Runnable('cnpm', ['install']);
|
|
189
|
+
}
|
|
190
|
+
addCommand(options) {
|
|
191
|
+
return new Runnable('cnpm', [
|
|
192
|
+
'install',
|
|
193
|
+
...options.saveDev ? ['--save-dev'] : [],
|
|
194
|
+
...options.packages,
|
|
195
|
+
]);
|
|
196
|
+
}
|
|
197
|
+
execCommand(args) {
|
|
198
|
+
return new Runnable('npx', args);
|
|
199
|
+
}
|
|
200
|
+
async lookupWorkspace(dir) {
|
|
201
|
+
return await lookupNearestPackageJsonWorkspace(this, dir);
|
|
202
|
+
}
|
|
203
|
+
async resolvePackageVersionFromLockfile(lockfilePath, query) {
|
|
204
|
+
// cnpm shares npm's package-lock.json format.
|
|
205
|
+
return await parseLockfileWith(lockfilePath, query, parseNpmLockfileVersion);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
export class PNpmDetector extends PackageManagerDetector {
|
|
209
|
+
get name() {
|
|
210
|
+
return 'pnpm';
|
|
211
|
+
}
|
|
212
|
+
priority() {
|
|
213
|
+
return 60;
|
|
214
|
+
}
|
|
215
|
+
detectUserAgent(userAgent) {
|
|
216
|
+
return userAgent.startsWith('pnpm/');
|
|
217
|
+
}
|
|
218
|
+
detectRuntime() {
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
get representativeLockfiles() {
|
|
222
|
+
return ['pnpm-lock.yaml'];
|
|
223
|
+
}
|
|
224
|
+
get representativeConfigFile() {
|
|
225
|
+
return 'pnpm-workspace.yaml';
|
|
226
|
+
}
|
|
227
|
+
async detectConfigFile(dir) {
|
|
228
|
+
return await accessR(path.join(dir, this.representativeConfigFile));
|
|
229
|
+
}
|
|
230
|
+
async detectExecutable(lookup) {
|
|
231
|
+
await lookup.detectPresence('pnpm');
|
|
232
|
+
}
|
|
233
|
+
installCommand() {
|
|
234
|
+
return new Runnable('pnpm', ['install']);
|
|
235
|
+
}
|
|
236
|
+
storeDirCommand() {
|
|
237
|
+
// Prints the VERSIONED store (`<storeDir>/v10`) the project in the
|
|
238
|
+
// working directory would install from — the setting from
|
|
239
|
+
// pnpm-workspace.yaml, the npmrc layers or npm_config_store_dir, or
|
|
240
|
+
// pnpm's own per-mount default. See lockfileOnlyInstallCommand for why
|
|
241
|
+
// that matters and why the pruner pins the parent of the printed path.
|
|
242
|
+
return new Runnable('pnpm', ['store', 'path']);
|
|
243
|
+
}
|
|
244
|
+
lockfileOnlyInstallCommand(options = {}) {
|
|
245
|
+
// --no-frozen-lockfile is load-bearing: pnpm auto-enables frozen mode
|
|
246
|
+
// when CI=true, and a lockfile-only regeneration is by definition not a
|
|
247
|
+
// frozen install. --lockfile-dir is equally load-bearing: as a CLI flag
|
|
248
|
+
// it outranks a lockfile-dir setting from every config layer (project,
|
|
249
|
+
// user and global npmrc, pnpm-workspace.yaml, env), so no inherited
|
|
250
|
+
// setting can move the lockfile write elsewhere; '.' resolves against
|
|
251
|
+
// the subprocess working directory. Accepted by pnpm 8-11 (pnpm 11
|
|
252
|
+
// dropped the npmrc setting but kept the flag).
|
|
253
|
+
//
|
|
254
|
+
// --config.allowUnusedPatches is what lets a partial-workspace bundle be
|
|
255
|
+
// pruned at all when the project patches a dependency: a bundle carries
|
|
256
|
+
// the full patchedDependencies map but only a subset of the workspace, so
|
|
257
|
+
// a patch whose package belongs to an unbundled member applies to nothing
|
|
258
|
+
// and pnpm 10+ fails the install with ERR_PNPM_UNUSED_PATCH. The flag
|
|
259
|
+
// downgrades that to a warning, so the prune produces a lockfile instead
|
|
260
|
+
// of falling back; the unused declaration itself is filtered out of the
|
|
261
|
+
// bundle afterwards.
|
|
262
|
+
//
|
|
263
|
+
// --config.trustLockfile skips pnpm 11's pre-install supply-chain
|
|
264
|
+
// verification, which re-resolves every lockfile entry against the
|
|
265
|
+
// registry to re-apply minimumReleaseAge/trustPolicy. Left enabled, it
|
|
266
|
+
// fails the lockfile-only install for any entry the registry cannot
|
|
267
|
+
// resolve from this environment (private packages without auth,
|
|
268
|
+
// air-gapped runs) with e.g. ERR_PNPM_FETCH_404. The input lockfile was
|
|
269
|
+
// produced by the user's own install, where those policies were already
|
|
270
|
+
// enforced, and pruning only ever removes entries — the
|
|
271
|
+
// "already-verified lockfile" case the setting is documented for. The
|
|
272
|
+
// --config. form is deliberate: pnpm 10 accepts and ignores unknown
|
|
273
|
+
// --config. settings but rejects a bare --trust-lockfile flag, and the
|
|
274
|
+
// npm_config_trust_lockfile env var does not disable the verification
|
|
275
|
+
// on pnpm 11.
|
|
276
|
+
//
|
|
277
|
+
// --prefer-offline: the pruner's manifests deliberately differ from the
|
|
278
|
+
// lockfile (pruned members, faux manifests, a partial importer set), so
|
|
279
|
+
// pnpm never takes its "lockfile up to date, resolution skipped" fast
|
|
280
|
+
// path. It re-resolves, and for every package it cannot serve from the
|
|
281
|
+
// store it needs registry metadata; without the flag pnpm 10 only serves
|
|
282
|
+
// that from its metadata cache for exact-version specs, while range and
|
|
283
|
+
// catalog specs and optional dependencies are re-fetched on every prune.
|
|
284
|
+
// Behind a slow or intercepting proxy one stalled request plus pnpm's
|
|
285
|
+
// fetch retries exceeds the prune budget on its own. With the flag pnpm
|
|
286
|
+
// uses cached metadata for any spec type and only contacts the registry
|
|
287
|
+
// for misses, so a machine that has installed the project needs little
|
|
288
|
+
// or no network. The soft flag is deliberate: unlike yarn, which
|
|
289
|
+
// regenerates from locked entries and is run with the network blocked,
|
|
290
|
+
// pnpm resolves from metadata, and a cold cache (a machine that never
|
|
291
|
+
// installed the project) is a legitimate first-prune state that --offline
|
|
292
|
+
// would turn into a guaranteed fallback. A stale cached packument can at
|
|
293
|
+
// most change a fresh resolution, and the pruner's subset verification
|
|
294
|
+
// rejects any regenerated entry absent from the original lockfile, so
|
|
295
|
+
// the worst case is a fallback, never a wrong lockfile.
|
|
296
|
+
//
|
|
297
|
+
// --config.storeDir pins the store the temp-dir install resolves from.
|
|
298
|
+
// Left to pnpm, the choice depends on the temp dir's location: on a
|
|
299
|
+
// mount other than the home directory's (tmpfs /tmp, a TMPDIR on
|
|
300
|
+
// another volume, containers) pnpm picks an EMPTY store at the mount
|
|
301
|
+
// root, and then every package in the re-resolved trees needs registry
|
|
302
|
+
// metadata — thousands of requests behind a slow proxy, or, served by
|
|
303
|
+
// --prefer-offline from a metadata cache that predates the locked
|
|
304
|
+
// version, a different version that the subset verification rejects.
|
|
305
|
+
// With the workspace's own store pinned the re-resolution is answered
|
|
306
|
+
// from the store, as it is when the same command runs in the checkout.
|
|
307
|
+
// The value is the PARENT of what `pnpm store path` prints: pnpm
|
|
308
|
+
// appends its own version segment (`v10`, `v11`) to the setting unless
|
|
309
|
+
// the path already ends in exactly that segment, and the probe and the
|
|
310
|
+
// install can resolve to different pnpm majors (corepack, mise and
|
|
311
|
+
// volta pick the version per directory, and the temp dir's root
|
|
312
|
+
// manifest can be a faux one without a packageManager field). Handed
|
|
313
|
+
// `<storeDir>/v10`, a pnpm 11 install would use `<storeDir>/v10/v11` —
|
|
314
|
+
// an empty store again — whereas handed `<storeDir>` each pnpm lands in
|
|
315
|
+
// the workspace's store for its own major. Verified on pnpm 10 and 11:
|
|
316
|
+
// the flag is what `install --lockfile-only` resolves from (it reports
|
|
317
|
+
// the store in its ndjson context event), it outranks a storeDir in a
|
|
318
|
+
// materialized pnpm-workspace.yaml or .npmrc and npm_config_store_dir,
|
|
319
|
+
// and npm/bun keep a single home-directory cache regardless of the
|
|
320
|
+
// project's location, so they need no equivalent.
|
|
321
|
+
//
|
|
322
|
+
// The pruner does not compare the lockfile's `settings` section, so any
|
|
323
|
+
// setting pnpm records there ships to the runner unchecked and could
|
|
324
|
+
// mismatch the runner's own install configuration. Verified on pnpm 10
|
|
325
|
+
// and 11: neither --config. setting, --prefer-offline nor the storeDir
|
|
326
|
+
// is recorded in `settings` (only autoInstallPeers and
|
|
327
|
+
// excludeLinksFromLockfile are).
|
|
328
|
+
return new Runnable('pnpm', [
|
|
329
|
+
'install', '--lockfile-only', '--ignore-scripts', '--no-frozen-lockfile', '--lockfile-dir', '.',
|
|
330
|
+
'--config.allowUnusedPatches=true',
|
|
331
|
+
'--config.trustLockfile=true',
|
|
332
|
+
'--prefer-offline',
|
|
333
|
+
...options.storeDir !== undefined ? [`--config.storeDir=${options.storeDir}`] : [],
|
|
334
|
+
]);
|
|
335
|
+
}
|
|
336
|
+
addCommand(options) {
|
|
337
|
+
return new Runnable('pnpm', [
|
|
338
|
+
'add',
|
|
339
|
+
...options.saveDev ? ['--save-dev'] : [],
|
|
340
|
+
...options.packages,
|
|
341
|
+
]);
|
|
342
|
+
}
|
|
343
|
+
execCommand(args) {
|
|
344
|
+
return new Runnable('pnpm', args);
|
|
345
|
+
}
|
|
346
|
+
async lookupWorkspace(dir) {
|
|
347
|
+
// To avoid having to bring in a yaml parser, just call pnpm directly.
|
|
348
|
+
// However, to avoid calling pnpm if it's likely not installed, detect
|
|
349
|
+
// the presence of the workspace file first.
|
|
350
|
+
for (const searchPath of lineage(dir)) {
|
|
351
|
+
try {
|
|
352
|
+
await this.detectConfigFile(searchPath);
|
|
353
|
+
}
|
|
354
|
+
catch {
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
const pnpmArgs = [
|
|
358
|
+
'list',
|
|
359
|
+
'--json',
|
|
360
|
+
'--recursive',
|
|
361
|
+
'--depth',
|
|
362
|
+
'1',
|
|
363
|
+
];
|
|
364
|
+
const result = await execa('pnpm', pnpmArgs, {
|
|
365
|
+
cwd: searchPath,
|
|
366
|
+
});
|
|
367
|
+
const output = JSON.parse(result.stdout);
|
|
368
|
+
if (!Array.isArray(output)) {
|
|
369
|
+
throw new Error(`The output of 'pnpm list' was not an array (stdout=${result.stdout}, stderr=${result.stderr})`);
|
|
370
|
+
}
|
|
371
|
+
const [root, dependencies] = output.reduce(([root, dependencies], project) => {
|
|
372
|
+
if (root === undefined) {
|
|
373
|
+
return [project, dependencies];
|
|
374
|
+
}
|
|
375
|
+
// The project with the shortest path should be the workspace root.
|
|
376
|
+
if (root.path.length > project.path.length) {
|
|
377
|
+
return [project, [...dependencies, root]];
|
|
378
|
+
}
|
|
379
|
+
return [root, [...dependencies, project]];
|
|
380
|
+
}, [undefined, []]);
|
|
381
|
+
if (root === undefined) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
const rootPackage = new Package({
|
|
385
|
+
name: root.name,
|
|
386
|
+
path: root.path,
|
|
387
|
+
version: root.version,
|
|
388
|
+
workspaces: dependencies.map(dep => dep.path),
|
|
389
|
+
});
|
|
390
|
+
const packages = dependencies.map(({ name, path, version }) => {
|
|
391
|
+
return new Package({
|
|
392
|
+
name,
|
|
393
|
+
path,
|
|
394
|
+
version,
|
|
395
|
+
});
|
|
396
|
+
});
|
|
397
|
+
return await initWorkspace(this, {
|
|
398
|
+
root: rootPackage,
|
|
399
|
+
packages,
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
async resolvePackageVersionFromLockfile(lockfilePath, query) {
|
|
404
|
+
return await parseLockfileWith(lockfilePath, query, parsePnpmLockfileVersion);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
export class YarnDetector extends PackageManagerDetector {
|
|
408
|
+
get name() {
|
|
409
|
+
return 'yarn';
|
|
410
|
+
}
|
|
411
|
+
priority() {
|
|
412
|
+
return 30;
|
|
413
|
+
}
|
|
414
|
+
detectUserAgent(userAgent) {
|
|
415
|
+
return userAgent.startsWith('yarn/');
|
|
416
|
+
}
|
|
417
|
+
detectRuntime() {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
420
|
+
get representativeLockfiles() {
|
|
421
|
+
return ['yarn.lock'];
|
|
422
|
+
}
|
|
423
|
+
get representativeConfigFile() {
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
// eslint-disable-next-line require-await, @typescript-eslint/no-unused-vars
|
|
427
|
+
async detectConfigFile(dir) {
|
|
428
|
+
throw new NotDetectedError();
|
|
429
|
+
}
|
|
430
|
+
async detectExecutable(lookup) {
|
|
431
|
+
await lookup.detectPresence('yarn');
|
|
432
|
+
}
|
|
433
|
+
installCommand() {
|
|
434
|
+
return new Runnable('yarn', ['install']);
|
|
435
|
+
}
|
|
436
|
+
lockfileOnlyInstallCommand() {
|
|
437
|
+
// Yarn Berry only — a Yarn Classic lockfile is rejected when it is
|
|
438
|
+
// parsed, and a Classic BINARY must never run this command: verified
|
|
439
|
+
// on 1.22.22 that Classic silently ignores --mode=update-lockfile and
|
|
440
|
+
// performs a full install, scripts included, so the pruner refuses
|
|
441
|
+
// with a version probe before spawning it. Verified on yarn 4.18.0 and
|
|
442
|
+
// 3.8.7: this regenerates yarn.lock fully offline, even with a cold
|
|
443
|
+
// cache — the resolution step reuses locked entries and prunes the
|
|
444
|
+
// unreachable ones, the fetch step only touches entries that are new
|
|
445
|
+
// (a prune introduces none), and the link step is skipped entirely, so
|
|
446
|
+
// no install scripts can run. CI detection and enableImmutableInstalls
|
|
447
|
+
// do not apply to this mode. With a lockfile present in the working
|
|
448
|
+
// directory Berry roots there — it does not re-root at ancestor
|
|
449
|
+
// workspace globs the way bun does. Yarn 3's lockfileFilename setting
|
|
450
|
+
// could redirect the write, but it would have to live in the unbundled
|
|
451
|
+
// .yarnrc.yml; the pruner's regenerated-lockfile-missing skip and its
|
|
452
|
+
// child-env network guard bound that case. The remaining config
|
|
453
|
+
// hazard, hardened mode revalidating locked entries against the
|
|
454
|
+
// registry, is disabled via the child environment as well.
|
|
455
|
+
return new Runnable('yarn', ['install', '--mode=update-lockfile']);
|
|
456
|
+
}
|
|
457
|
+
addCommand(options) {
|
|
458
|
+
return new Runnable('yarn', [
|
|
459
|
+
'add',
|
|
460
|
+
...options.saveDev ? ['--dev'] : [],
|
|
461
|
+
...options.packages,
|
|
462
|
+
]);
|
|
463
|
+
}
|
|
464
|
+
execCommand(args) {
|
|
465
|
+
return new Runnable('yarn', args);
|
|
466
|
+
}
|
|
467
|
+
async lookupWorkspace(dir) {
|
|
468
|
+
return await lookupNearestPackageJsonWorkspace(this, dir);
|
|
469
|
+
}
|
|
470
|
+
async resolvePackageVersionFromLockfile(lockfilePath, query) {
|
|
471
|
+
return await parseLockfileWith(lockfilePath, query, parseYarnLockfileVersion);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
export class DenoDetector extends PackageManagerDetector {
|
|
475
|
+
get name() {
|
|
476
|
+
return 'deno';
|
|
477
|
+
}
|
|
478
|
+
priority() {
|
|
479
|
+
return 40;
|
|
480
|
+
}
|
|
481
|
+
detectUserAgent(userAgent) {
|
|
482
|
+
return userAgent.startsWith('deno/');
|
|
483
|
+
}
|
|
484
|
+
detectRuntime() {
|
|
485
|
+
return process.versions.deno !== undefined;
|
|
486
|
+
}
|
|
487
|
+
get representativeLockfiles() {
|
|
488
|
+
return ['deno.lock'];
|
|
489
|
+
}
|
|
490
|
+
get representativeConfigFile() {
|
|
491
|
+
return 'deno.json';
|
|
492
|
+
}
|
|
493
|
+
async detectConfigFile(dir) {
|
|
494
|
+
return await accessR(path.join(dir, this.representativeConfigFile));
|
|
495
|
+
}
|
|
496
|
+
async detectExecutable(lookup) {
|
|
497
|
+
await lookup.detectPresence('deno');
|
|
498
|
+
}
|
|
499
|
+
installCommand() {
|
|
500
|
+
return new Runnable('deno', ['install']);
|
|
501
|
+
}
|
|
502
|
+
addCommand(options) {
|
|
503
|
+
return new Runnable('deno', [
|
|
504
|
+
'add',
|
|
505
|
+
...options.saveDev ? ['--dev'] : [],
|
|
506
|
+
...options.packages,
|
|
507
|
+
]);
|
|
508
|
+
}
|
|
509
|
+
execCommand(args) {
|
|
510
|
+
return new Runnable('deno', ['run', '-A', `npm:${args[0]}`, ...args.slice(1)]);
|
|
511
|
+
}
|
|
512
|
+
async lookupWorkspace(dir) {
|
|
513
|
+
for (const searchPath of lineage(dir)) {
|
|
514
|
+
try {
|
|
515
|
+
const configFile = await this.detectConfigFile(searchPath);
|
|
516
|
+
const jsonFile = await JsonSourceFile.loadFromFilePath(configFile);
|
|
517
|
+
if (!jsonFile) {
|
|
518
|
+
continue;
|
|
519
|
+
}
|
|
520
|
+
const rootPackage = await Package.loadFromDirPath(searchPath);
|
|
521
|
+
if (rootPackage === undefined) {
|
|
522
|
+
continue;
|
|
523
|
+
}
|
|
524
|
+
const workspaces = jsonFile.data.workspace?.map(packagePath => {
|
|
525
|
+
return path.resolve(searchPath, packagePath);
|
|
526
|
+
});
|
|
527
|
+
if (!workspaces) {
|
|
528
|
+
continue;
|
|
529
|
+
}
|
|
530
|
+
const packages = [];
|
|
531
|
+
for (const workspace of workspaces) {
|
|
532
|
+
const workspacePackage = await Package.loadFromDirPath(workspace);
|
|
533
|
+
if (workspacePackage === undefined) {
|
|
534
|
+
continue;
|
|
535
|
+
}
|
|
536
|
+
packages.push(workspacePackage);
|
|
537
|
+
}
|
|
538
|
+
return await initWorkspace(this, {
|
|
539
|
+
root: rootPackage,
|
|
540
|
+
packages,
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
catch {
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
export class BunDetector extends PackageManagerDetector {
|
|
550
|
+
get name() {
|
|
551
|
+
return 'bun';
|
|
552
|
+
}
|
|
553
|
+
priority() {
|
|
554
|
+
return 50;
|
|
555
|
+
}
|
|
556
|
+
detectUserAgent(userAgent) {
|
|
557
|
+
return userAgent.startsWith('bun/');
|
|
558
|
+
}
|
|
559
|
+
detectRuntime() {
|
|
560
|
+
return process.versions.bun !== undefined;
|
|
561
|
+
}
|
|
562
|
+
get representativeLockfiles() {
|
|
563
|
+
return ['bun.lock', 'bun.lockb'];
|
|
564
|
+
}
|
|
565
|
+
get representativeConfigFile() {
|
|
566
|
+
return;
|
|
567
|
+
}
|
|
568
|
+
// eslint-disable-next-line require-await, @typescript-eslint/no-unused-vars
|
|
569
|
+
async detectConfigFile(dir) {
|
|
570
|
+
throw new NotDetectedError();
|
|
571
|
+
}
|
|
572
|
+
async detectExecutable(lookup) {
|
|
573
|
+
await lookup.detectPresence('bun');
|
|
574
|
+
}
|
|
575
|
+
installCommand() {
|
|
576
|
+
return new Runnable('bun', ['install']);
|
|
577
|
+
}
|
|
578
|
+
addCommand(options) {
|
|
579
|
+
return new Runnable('bun', [
|
|
580
|
+
'add',
|
|
581
|
+
...options.saveDev ? ['--dev'] : [],
|
|
582
|
+
...options.packages,
|
|
583
|
+
]);
|
|
584
|
+
}
|
|
585
|
+
execCommand(args) {
|
|
586
|
+
return new Runnable('bunx', args);
|
|
587
|
+
}
|
|
588
|
+
async lookupWorkspace(dir) {
|
|
589
|
+
return await lookupNearestPackageJsonWorkspace(this, dir);
|
|
590
|
+
}
|
|
591
|
+
lockfileOnlyInstallCommand() {
|
|
592
|
+
// Verified on bun 1.3.11: this regenerates bun.lock offline from the
|
|
593
|
+
// recorded resolutions, pruning entries no longer reachable from the
|
|
594
|
+
// manifests on disk, without touching node_modules. One exception: when
|
|
595
|
+
// a workspace member's name collides with a registry dependency
|
|
596
|
+
// consumed elsewhere, bun rejects its own lockfile (InvalidPackageKey)
|
|
597
|
+
// and silently re-resolves from the network with exit 0 — the pruner's
|
|
598
|
+
// tuple-subset and importer-preservation checks bound that fail-closed.
|
|
599
|
+
// Bun has no lockfile-location setting to pin (unlike pnpm's
|
|
600
|
+
// --lockfile-dir) — but it re-roots at any ancestor package.json whose
|
|
601
|
+
// workspaces glob matches the working directory and then reads AND
|
|
602
|
+
// writes the lockfile at that root, with no flag to prevent it. Callers
|
|
603
|
+
// must guard against that themselves; the lockfile pruner refuses to
|
|
604
|
+
// run when its temp dir sits inside a workspace. CI=true does not imply
|
|
605
|
+
// a frozen lockfile (unlike pnpm), so no unfreeze flag is needed. The
|
|
606
|
+
// one freeze vector — bunfig `[install] frozenLockfile = true` — has no
|
|
607
|
+
// CLI override at all and simply fails the command, which the pruner
|
|
608
|
+
// reports and falls back on. Only the text lockfile (bun.lock) can be
|
|
609
|
+
// verified after regeneration; the binary bun.lockb is rejected later,
|
|
610
|
+
// when the lockfile is parsed.
|
|
611
|
+
return new Runnable('bun', ['install', '--lockfile-only', '--ignore-scripts']);
|
|
612
|
+
}
|
|
613
|
+
async resolvePackageVersionFromLockfile(lockfilePath, query) {
|
|
614
|
+
// The legacy binary lockfile (bun.lockb) isn't parseable here; only the
|
|
615
|
+
// text format (bun.lock) is. Skip the binary form so the caller falls back.
|
|
616
|
+
if (lockfilePath.endsWith('.lockb')) {
|
|
617
|
+
return undefined;
|
|
618
|
+
}
|
|
619
|
+
return await parseLockfileWith(lockfilePath, query, parseBunLockfileVersion);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
async function accessR(filePath) {
|
|
623
|
+
try {
|
|
624
|
+
await fs.access(filePath, fs.constants.R_OK);
|
|
625
|
+
return filePath;
|
|
626
|
+
}
|
|
627
|
+
catch {
|
|
628
|
+
throw new NotDetectedError();
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
async function accessX(filePath) {
|
|
632
|
+
try {
|
|
633
|
+
await fs.access(filePath, fs.constants.X_OK);
|
|
634
|
+
return filePath;
|
|
635
|
+
}
|
|
636
|
+
catch {
|
|
637
|
+
throw new NotDetectedError();
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
function* chunks(array, size) {
|
|
641
|
+
for (let i = 0, l = array.length; i < l; i += size) {
|
|
642
|
+
yield array.slice(i, i + size);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Inspiration taken from https://github.com/otiai10/lookpath.
|
|
647
|
+
*/
|
|
648
|
+
export class PathLookup {
|
|
649
|
+
static win = process.platform.startsWith('win');
|
|
650
|
+
// The default extension list execa's Windows resolution falls back to when
|
|
651
|
+
// PATHEXT is unset — without it, a lookup on such a system would only probe
|
|
652
|
+
// the extensionless name and miss every .CMD/.EXE shim. This lookup feeds
|
|
653
|
+
// both package-manager detection and the pruner's missing-executable
|
|
654
|
+
// classification, so it deliberately mirrors what execa actually spawns:
|
|
655
|
+
// quoted-Path-entry stripping, empty-Path-entry skipping, this default
|
|
656
|
+
// list, and the unset/empty PATHEXT handling below. Knowingly not
|
|
657
|
+
// mirrored: which-command's cwd-before-PATH search order and its
|
|
658
|
+
// no-bare-name rule under an empty PATHEXT.
|
|
659
|
+
static defaultWinPathext = ['.COM', '.EXE', '.BAT', '.CMD', '.VBS', '.VBE', '.JS', '.JSE', '.WSF', '.WSH', '.MSC'];
|
|
660
|
+
paths;
|
|
661
|
+
pathext;
|
|
662
|
+
pathextSet = new Set();
|
|
663
|
+
constructor() {
|
|
664
|
+
if (PathLookup.win) {
|
|
665
|
+
// Windows allows individually quoted Path entries
|
|
666
|
+
// (`C:\Windows;"C:\Program Files\nodejs"`); the spawn's own resolver
|
|
667
|
+
// strips the quotes, so this lookup must too or the two disagree.
|
|
668
|
+
// Empty entries are skipped like execa/which-command skip them
|
|
669
|
+
// (searching the current directory implicitly is a security risk).
|
|
670
|
+
this.paths = (process.env['Path']?.split(path.delimiter) ?? [])
|
|
671
|
+
.map(entry => entry.replace(/^"(.*)"$/, '$1'))
|
|
672
|
+
.filter(entry => entry !== '');
|
|
673
|
+
// execa reads PATHEXT itself and passes the raw value through to
|
|
674
|
+
// which-command, so an empty (but set) PATHEXT disables extension
|
|
675
|
+
// probing while only an unset one falls back to the default list.
|
|
676
|
+
// (Standalone which-command would default on empty too — the composite
|
|
677
|
+
// execa behavior is what spawns actually see.)
|
|
678
|
+
this.pathext = process.env['PATHEXT'] !== undefined
|
|
679
|
+
? process.env['PATHEXT'].split(path.delimiter).filter(ext => ext !== '')
|
|
680
|
+
: [...PathLookup.defaultWinPathext];
|
|
681
|
+
this.pathext.forEach(ext => this.pathextSet.add(ext.toUpperCase()));
|
|
682
|
+
}
|
|
683
|
+
else {
|
|
684
|
+
this.paths = process.env['PATH']?.split(path.delimiter) ?? [];
|
|
685
|
+
this.pathext = [];
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
async detectPresence(executable) {
|
|
689
|
+
const foundPath = await this.lookupPath(executable);
|
|
690
|
+
if (foundPath === undefined) {
|
|
691
|
+
throw new NotDetectedError();
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
async lookupPath(executable) {
|
|
695
|
+
const ext = path.extname(executable).toUpperCase();
|
|
696
|
+
const paths = this.paths.flatMap(prefix => {
|
|
697
|
+
if (this.pathextSet.has(ext)) {
|
|
698
|
+
return [path.join(prefix, executable)];
|
|
699
|
+
}
|
|
700
|
+
return [
|
|
701
|
+
path.join(prefix, executable),
|
|
702
|
+
...this.pathext.map(ext => path.join(prefix, executable + ext)),
|
|
703
|
+
];
|
|
704
|
+
});
|
|
705
|
+
// There may be a large number of paths. With Promise.all(), we'd have to
|
|
706
|
+
// wait until every single possible path has been checked even if we found
|
|
707
|
+
// a match immediately. Use reasonably sized chunks instead.
|
|
708
|
+
//
|
|
709
|
+
// On Windows (where PATHEXT exists), make sure that the chunk size is
|
|
710
|
+
// at least large enough to cover all the possible extensions of a path.
|
|
711
|
+
for (const chunk of chunks(paths, Math.max(this.pathext.length + 1, 8))) {
|
|
712
|
+
const results = await Promise.all(chunk.map(async (path) => {
|
|
713
|
+
try {
|
|
714
|
+
await accessX(path);
|
|
715
|
+
return path;
|
|
716
|
+
}
|
|
717
|
+
catch {
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
}));
|
|
721
|
+
for (const result of results) {
|
|
722
|
+
if (result !== undefined) {
|
|
723
|
+
return result;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
export const npmPackageManager = new NpmDetector();
|
|
730
|
+
// Detection precedence is governed by each detector's priority(method), not by
|
|
731
|
+
// this array's order, so listing is free to stay readable. (The order is still
|
|
732
|
+
// used verbatim for the `checkly import` package-manager prompt menu.)
|
|
733
|
+
export const knownPackageManagers = [
|
|
734
|
+
new PNpmDetector(),
|
|
735
|
+
new BunDetector(),
|
|
736
|
+
new DenoDetector(),
|
|
737
|
+
new YarnDetector(),
|
|
738
|
+
npmPackageManager,
|
|
739
|
+
new CNpmDetector(),
|
|
740
|
+
];
|
|
741
|
+
async function detectPackageManagerImpl(dir, options) {
|
|
742
|
+
const { detectors, requireLockfile, } = options;
|
|
743
|
+
// Detectors are evaluated highest-priority-first within each detection
|
|
744
|
+
// method, so the order they were supplied in never affects the result.
|
|
745
|
+
const ordered = (method) => [...detectors].sort((a, b) => b.priority(method) - a.priority(method));
|
|
746
|
+
const lockfileDetected = new Set(Array.from(await detectNearestLockfiles(dir, {
|
|
747
|
+
detectors,
|
|
748
|
+
root: options?.root,
|
|
749
|
+
}).catch(() => []), ({ packageManager }) => packageManager));
|
|
750
|
+
// Try user agent first.
|
|
751
|
+
const userAgent = process.env['npm_config_user_agent'];
|
|
752
|
+
if (userAgent !== undefined) {
|
|
753
|
+
for (const detector of ordered('userAgent')) {
|
|
754
|
+
if (detector.detectUserAgent(userAgent)) {
|
|
755
|
+
if ((!requireLockfile || lockfileDetected.has(detector))) {
|
|
756
|
+
return detector;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
// Next, try runtime.
|
|
762
|
+
for (const detector of ordered('runtime')) {
|
|
763
|
+
if (detector.detectRuntime()) {
|
|
764
|
+
if ((!requireLockfile || lockfileDetected.has(detector))) {
|
|
765
|
+
return detector;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
// Next, try to find a lockfile. When several package managers claim a lockfile
|
|
770
|
+
// in the nearest directory (e.g. npm and cnpm both claim package-lock.json),
|
|
771
|
+
// the highest-priority one wins.
|
|
772
|
+
const lockfileWinner = ordered('lockfile').find(detector => lockfileDetected.has(detector));
|
|
773
|
+
if (lockfileWinner !== undefined) {
|
|
774
|
+
return lockfileWinner;
|
|
775
|
+
}
|
|
776
|
+
// If we get here, there's no lockfile, in which case we have to stop
|
|
777
|
+
// if it's required.
|
|
778
|
+
if (requireLockfile) {
|
|
779
|
+
return undefined;
|
|
780
|
+
}
|
|
781
|
+
// Next, try to find a config file. As with lockfiles, when several package
|
|
782
|
+
// managers have a config file in the nearest directory, the highest-priority
|
|
783
|
+
// one wins.
|
|
784
|
+
const configDetected = new Set(Array.from(await detectNearestConfigFiles(dir, {
|
|
785
|
+
detectors,
|
|
786
|
+
root: options?.root,
|
|
787
|
+
}).catch(() => []), ({ packageManager }) => packageManager));
|
|
788
|
+
const configWinner = ordered('configFile').find(detector => configDetected.has(detector));
|
|
789
|
+
if (configWinner !== undefined) {
|
|
790
|
+
return configWinner;
|
|
791
|
+
}
|
|
792
|
+
// Finally, try to find a relevant executable.
|
|
793
|
+
//
|
|
794
|
+
// This can generate a whole bunch of path lookups. Try one by one despite
|
|
795
|
+
// async support.
|
|
796
|
+
const lookup = new PathLookup();
|
|
797
|
+
for (const detector of ordered('executable')) {
|
|
798
|
+
try {
|
|
799
|
+
await detector.detectExecutable(lookup);
|
|
800
|
+
return detector;
|
|
801
|
+
}
|
|
802
|
+
catch {
|
|
803
|
+
continue;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
return undefined;
|
|
807
|
+
}
|
|
808
|
+
export async function detectPackageManager(dir, options) {
|
|
809
|
+
const detectors = options?.detectors ?? knownPackageManagers;
|
|
810
|
+
// Try with lockfile required first, which gives a stronger signal.
|
|
811
|
+
// Fall back to not requiring it.
|
|
812
|
+
for (const requireLockfile of [true, false]) {
|
|
813
|
+
const pm = await detectPackageManagerImpl(dir, {
|
|
814
|
+
detectors,
|
|
815
|
+
requireLockfile,
|
|
816
|
+
root: options?.root,
|
|
817
|
+
});
|
|
818
|
+
if (pm !== undefined) {
|
|
819
|
+
return pm;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
// If all else fails, just assume npm.
|
|
823
|
+
return npmPackageManager;
|
|
824
|
+
}
|
|
825
|
+
export class NoLockfileFoundError extends Error {
|
|
826
|
+
searchPaths;
|
|
827
|
+
lockfiles;
|
|
828
|
+
constructor(searchPaths, lockfiles, options) {
|
|
829
|
+
const message = `Unable to detect a lockfile in any of the following paths:`
|
|
830
|
+
+ `\n\n`
|
|
831
|
+
+ `${searchPaths.map(searchPath => ` ${searchPath}`).join('\n')}`
|
|
832
|
+
+ `\n\n`
|
|
833
|
+
+ `Lockfiles we looked for:`
|
|
834
|
+
+ `\n\n`
|
|
835
|
+
+ `${lockfiles.map(lockfile => ` ${lockfile}`).join('\n')}`;
|
|
836
|
+
super(message, options);
|
|
837
|
+
this.name = 'NoLockfileFoundError';
|
|
838
|
+
this.searchPaths = searchPaths;
|
|
839
|
+
this.lockfiles = lockfiles;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* Searches `dir` and every parent directory (up to and including
|
|
844
|
+
* `options.root`) for a lockfile of any of the given `options.detectors`
|
|
845
|
+
* (or all known package manager detectors if not given). The search stops
|
|
846
|
+
* when a directory containing lockfiles is found.
|
|
847
|
+
*
|
|
848
|
+
* @returns All detected lockfiles in the directory.
|
|
849
|
+
* @throws {NoLockfileFoundError} If no directory containing a lockfile is found.
|
|
850
|
+
*/
|
|
851
|
+
export async function detectNearestLockfiles(dir, options) {
|
|
852
|
+
const detectors = options?.detectors ?? knownPackageManagers;
|
|
853
|
+
const searchPaths = [];
|
|
854
|
+
for (const searchPath of lineage(dir, { root: options?.root })) {
|
|
855
|
+
searchPaths.push(searchPath);
|
|
856
|
+
const results = await Promise.all(detectors.map(async (detector) => {
|
|
857
|
+
try {
|
|
858
|
+
const lockfile = await detector.detectLockfile(searchPath);
|
|
859
|
+
return {
|
|
860
|
+
packageManager: detector,
|
|
861
|
+
lockfile,
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
catch {
|
|
865
|
+
return null;
|
|
866
|
+
}
|
|
867
|
+
}));
|
|
868
|
+
const found = results.filter(value => value !== null);
|
|
869
|
+
if (found.length > 0) {
|
|
870
|
+
return found;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
const lockfiles = [...new Set(detectors.flatMap(detector => detector.representativeLockfiles))];
|
|
874
|
+
throw new NoLockfileFoundError(searchPaths, lockfiles);
|
|
875
|
+
}
|
|
876
|
+
export class NoConfigFileFoundError extends Error {
|
|
877
|
+
searchPaths;
|
|
878
|
+
configFiles;
|
|
879
|
+
constructor(searchPaths, configFiles, options) {
|
|
880
|
+
const message = `Unable to detect a config file in any of the following paths:`
|
|
881
|
+
+ `\n\n`
|
|
882
|
+
+ `${searchPaths.map(searchPath => ` ${searchPath}`).join('\n')}`
|
|
883
|
+
+ `\n\n`
|
|
884
|
+
+ `Config files we looked for:`
|
|
885
|
+
+ `\n\n`
|
|
886
|
+
+ `${configFiles.map(lockfile => ` ${lockfile}`).join('\n')}`;
|
|
887
|
+
super(message, options);
|
|
888
|
+
this.name = 'NoConfigFileFoundError';
|
|
889
|
+
this.searchPaths = searchPaths;
|
|
890
|
+
this.configFiles = configFiles;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
/**
|
|
894
|
+
* Searches `dir` and every parent directory (up to and including
|
|
895
|
+
* `options.root`) for a config file of any of the given `options.detectors`
|
|
896
|
+
* (or all known package manager detectors if not given). The search stops
|
|
897
|
+
* when a directory containing config files is found.
|
|
898
|
+
*
|
|
899
|
+
* @returns All detected config files in the directory.
|
|
900
|
+
* @throws {NoConfigFileFoundError} If no directory containing a config file is found.
|
|
901
|
+
*/
|
|
902
|
+
export async function detectNearestConfigFiles(dir, options) {
|
|
903
|
+
const detectors = options?.detectors ?? knownPackageManagers;
|
|
904
|
+
const searchPaths = [];
|
|
905
|
+
for (const searchPath of lineage(dir, { root: options?.root })) {
|
|
906
|
+
searchPaths.push(searchPath);
|
|
907
|
+
const results = await Promise.all(detectors.map(async (detector) => {
|
|
908
|
+
try {
|
|
909
|
+
const configFile = await detector.detectConfigFile(searchPath);
|
|
910
|
+
return {
|
|
911
|
+
packageManager: detector,
|
|
912
|
+
configFile,
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
catch {
|
|
916
|
+
return null;
|
|
917
|
+
}
|
|
918
|
+
}));
|
|
919
|
+
const found = results.filter(value => value !== null);
|
|
920
|
+
if (found.length > 0) {
|
|
921
|
+
return found;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
const configFiles = [...new Set(detectors.flatMap(detector => detector.representativeConfigFile ?? []))];
|
|
925
|
+
throw new NoConfigFileFoundError(searchPaths, configFiles);
|
|
926
|
+
}
|
|
927
|
+
export class NoPackageJsonFoundError extends Error {
|
|
928
|
+
searchPaths;
|
|
929
|
+
constructor(searchPaths, options) {
|
|
930
|
+
const message = `Unable to detect a package.json in any of the following paths:`
|
|
931
|
+
+ `\n\n`
|
|
932
|
+
+ `${searchPaths.map(searchPath => ` ${searchPath}`).join('\n')}`;
|
|
933
|
+
super(message, options);
|
|
934
|
+
this.name = 'NoPackageJsonFoundError';
|
|
935
|
+
this.searchPaths = searchPaths;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
export async function detectNearestPackageJson(dir, options) {
|
|
939
|
+
const searchPaths = [];
|
|
940
|
+
for (const searchPath of lineage(dir, { root: options?.root })) {
|
|
941
|
+
searchPaths.push(searchPath);
|
|
942
|
+
const packageJson = await PackageJsonFile.loadFromFilePath(PackageJsonFile.filePath(searchPath));
|
|
943
|
+
if (packageJson) {
|
|
944
|
+
return packageJson;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
throw new NoPackageJsonFoundError(searchPaths);
|
|
948
|
+
}
|
|
949
|
+
export async function fauxWorkspaceFromPackageJson(packageManager, packageJsonFile) {
|
|
950
|
+
const rootPackage = new Package({
|
|
951
|
+
name: packageJsonFile.name,
|
|
952
|
+
path: packageJsonFile.basePath,
|
|
953
|
+
version: packageJsonFile.version,
|
|
954
|
+
});
|
|
955
|
+
return await initWorkspace(packageManager.detector(), {
|
|
956
|
+
root: rootPackage,
|
|
957
|
+
packages: [],
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
async function lookupNearestPackageJsonWorkspace(detector, dir) {
|
|
961
|
+
for (const searchPath of lineage(dir)) {
|
|
962
|
+
const rootPackage = await Package.loadFromDirPath(searchPath);
|
|
963
|
+
if (!rootPackage) {
|
|
964
|
+
continue;
|
|
965
|
+
}
|
|
966
|
+
if (rootPackage.workspaces === undefined || rootPackage.workspaces.length === 0) {
|
|
967
|
+
continue;
|
|
968
|
+
}
|
|
969
|
+
const packages = await Workspace.resolvePatterns(searchPath, rootPackage.workspaces);
|
|
970
|
+
return await initWorkspace(detector, {
|
|
971
|
+
root: rootPackage,
|
|
972
|
+
packages,
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
async function initWorkspace(detector, options) {
|
|
977
|
+
const lockfile = await detectNearestLockfiles(options.root.path, {
|
|
978
|
+
root: options.root.path,
|
|
979
|
+
detectors: [detector],
|
|
980
|
+
}).then(([{ lockfile }]) => Ok(lockfile), reason => Err(reason));
|
|
981
|
+
const configFile = await detectNearestConfigFiles(options.root.path, {
|
|
982
|
+
root: options.root.path,
|
|
983
|
+
detectors: [detector],
|
|
984
|
+
}).then(([{ configFile }]) => Ok(configFile), reason => Err(reason));
|
|
985
|
+
// Pnpmfiles are only meaningful for pnpm workspaces. Discovering them here
|
|
986
|
+
// gives the bundler and the cache hash a single source of truth for which
|
|
987
|
+
// pnpmfiles exist and whether they can be bundled.
|
|
988
|
+
const pnpmfiles = detector.name === 'pnpm'
|
|
989
|
+
? await loadWorkspacePnpmfiles(options.root.path, configFile.ok(), lockfile.ok())
|
|
990
|
+
: [];
|
|
991
|
+
return new Workspace({
|
|
992
|
+
...options,
|
|
993
|
+
lockfile,
|
|
994
|
+
configFile,
|
|
995
|
+
pnpmfiles,
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
//# sourceMappingURL=package-manager.js.map
|