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,1099 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import { formatMs, formatDate, resolveResultStatus, heading, escapeMdCell, renderDetailFields, renderCommandHints, renderAdaptiveTable, truncateSingleLine, stripAnsi, } from './render.js';
|
|
3
|
+
import { assertionSymbols, formatAssertionLine } from './assertion-line.js';
|
|
4
|
+
// --- Helpers ---
|
|
5
|
+
function label(text, width = 16) {
|
|
6
|
+
return chalk.dim(text.padEnd(width));
|
|
7
|
+
}
|
|
8
|
+
export function formatResultDetailWithNavigation(result, format, hints, extraSections = []) {
|
|
9
|
+
const output = [formatResultDetail(result, format)];
|
|
10
|
+
for (const section of extraSections) {
|
|
11
|
+
if (section) {
|
|
12
|
+
output.push('');
|
|
13
|
+
output.push(section);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
if (hints.length > 0) {
|
|
17
|
+
output.push('');
|
|
18
|
+
output.push(renderCommandHints(hints));
|
|
19
|
+
}
|
|
20
|
+
return output.join('\n');
|
|
21
|
+
}
|
|
22
|
+
// --- Retry attempts ---
|
|
23
|
+
// Picks the runs sharing a sequenceId out of a resultType=ALL page (there's no
|
|
24
|
+
// server-side sequenceId filter), oldest-first so the index is the run number.
|
|
25
|
+
export function groupAttemptsBySequence(results, sequenceId) {
|
|
26
|
+
return results
|
|
27
|
+
.filter(r => r.sequenceId === sequenceId)
|
|
28
|
+
.sort((a, b) => new Date(a.startedAt).getTime() - new Date(b.startedAt).getTime());
|
|
29
|
+
}
|
|
30
|
+
// Best-effort short error summary; list rows aren't hydrated with logs/assets,
|
|
31
|
+
// so fall back to the status flags. Empty string means "no error detail".
|
|
32
|
+
export function extractResultErrorSummary(result) {
|
|
33
|
+
const raw = firstErrorMessage(result);
|
|
34
|
+
if (raw)
|
|
35
|
+
return raw;
|
|
36
|
+
if (result.hasErrors)
|
|
37
|
+
return 'error';
|
|
38
|
+
if (result.hasFailures)
|
|
39
|
+
return 'failed';
|
|
40
|
+
return '';
|
|
41
|
+
}
|
|
42
|
+
function firstErrorMessage(result) {
|
|
43
|
+
const api = result.apiCheckResult;
|
|
44
|
+
if (api?.requestError)
|
|
45
|
+
return api.requestError;
|
|
46
|
+
const browserErr = result.browserCheckResult?.errors?.find(Boolean);
|
|
47
|
+
if (browserErr)
|
|
48
|
+
return formatErrorEntry(browserErr);
|
|
49
|
+
const multiStepErr = result.multiStepCheckResult?.errors?.find(Boolean);
|
|
50
|
+
if (multiStepErr)
|
|
51
|
+
return formatErrorEntry(multiStepErr);
|
|
52
|
+
const tracerouteErr = result.tracerouteCheckResult?.requestError;
|
|
53
|
+
if (tracerouteErr)
|
|
54
|
+
return tracerouteErr;
|
|
55
|
+
const grpcErr = result.grpcCheckResult?.requestError
|
|
56
|
+
?? result.grpcCheckResult?.response?.grpcStatusMessage;
|
|
57
|
+
if (grpcErr)
|
|
58
|
+
return grpcErr;
|
|
59
|
+
const sslErr = result.sslCheckResult?.requestError ?? result.sslCheckResult?.failureCategory;
|
|
60
|
+
if (sslErr)
|
|
61
|
+
return sslErr;
|
|
62
|
+
return '';
|
|
63
|
+
}
|
|
64
|
+
// Renders the retry table for a sequence; `attempts` must be oldest-first.
|
|
65
|
+
export function formatAttemptsSection(attempts, format, context = {}) {
|
|
66
|
+
if (attempts.length === 0)
|
|
67
|
+
return '';
|
|
68
|
+
const rows = attempts.map((result, i) => ({
|
|
69
|
+
result,
|
|
70
|
+
runNumber: i + 1,
|
|
71
|
+
isFinal: result.resultType === 'FINAL' || result.id === context.finalId,
|
|
72
|
+
isRequested: result.id === context.requestedId,
|
|
73
|
+
}));
|
|
74
|
+
const columns = buildAttemptColumns(format);
|
|
75
|
+
const table = renderAdaptiveTable(columns, rows, format);
|
|
76
|
+
return format === 'md'
|
|
77
|
+
? '## Attempts\n\n' + table
|
|
78
|
+
: chalk.bold('ATTEMPTS') + '\n' + table;
|
|
79
|
+
}
|
|
80
|
+
function buildAttemptColumns(format) {
|
|
81
|
+
if (format === 'md') {
|
|
82
|
+
return [
|
|
83
|
+
{ header: '#', value: row => row.isFinal ? `${row.runNumber} (FINAL)` : String(row.runNumber) },
|
|
84
|
+
{ header: 'Status', value: (row, fmt) => resolveResultStatus(row.result, fmt) },
|
|
85
|
+
{ header: 'Location', value: row => row.result.runLocation },
|
|
86
|
+
{ header: 'Duration', value: row => formatMs(row.result.responseTime) },
|
|
87
|
+
{ header: 'Error', value: row => mdErrorCell(row.result) },
|
|
88
|
+
{ header: 'Result ID', value: row => row.result.id },
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
return [
|
|
92
|
+
{
|
|
93
|
+
header: '#',
|
|
94
|
+
width: 14,
|
|
95
|
+
value: row => {
|
|
96
|
+
const marker = row.isFinal ? chalk.dim(' (FINAL)') : '';
|
|
97
|
+
const current = row.isRequested ? chalk.cyan(' ‹') : '';
|
|
98
|
+
return String(row.runNumber) + marker + current;
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{ header: 'Status', width: 10, value: (row, fmt) => resolveResultStatus(row.result, fmt) },
|
|
102
|
+
{ header: 'Location', minWidth: 8, maxWidth: 16, value: row => row.result.runLocation },
|
|
103
|
+
{ header: 'Duration', width: 10, value: row => formatMs(row.result.responseTime) },
|
|
104
|
+
{
|
|
105
|
+
header: 'Error',
|
|
106
|
+
minWidth: 12,
|
|
107
|
+
maxWidth: 50,
|
|
108
|
+
value: row => {
|
|
109
|
+
const msg = extractResultErrorSummary(row.result);
|
|
110
|
+
return msg ? chalk.red(truncateSingleLine(msg, 50)) : chalk.dim('—');
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{ header: 'Result ID', minWidth: 12, maxWidth: 38, value: row => chalk.dim(row.result.id) },
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
function mdErrorCell(result) {
|
|
117
|
+
const msg = extractResultErrorSummary(result);
|
|
118
|
+
if (!msg)
|
|
119
|
+
return '—';
|
|
120
|
+
return escapeMdCell(truncateSingleLine(msg, 80));
|
|
121
|
+
}
|
|
122
|
+
// --- Top-level result detail fields ---
|
|
123
|
+
export const resultDetailFields = [
|
|
124
|
+
{ label: 'Status', value: (r, fmt) => resolveResultStatus(r, fmt) },
|
|
125
|
+
{ label: 'Location', value: r => r.runLocation },
|
|
126
|
+
{ label: 'Response time', value: r => formatMs(r.responseTime) },
|
|
127
|
+
{ label: 'Started', value: (r, fmt) => fmt === 'md' ? (r.startedAt || '-') : formatDate(r.startedAt, fmt) },
|
|
128
|
+
{ label: 'Stopped', value: (r, fmt) => fmt === 'md' ? (r.stoppedAt || '-') : formatDate(r.stoppedAt, fmt) },
|
|
129
|
+
{ label: 'Attempts', value: r => String(r.attempts) },
|
|
130
|
+
{ label: 'Result type', value: r => r.resultType },
|
|
131
|
+
{ label: 'ID', value: r => r.id },
|
|
132
|
+
];
|
|
133
|
+
export function formatResultDetail(result, format) {
|
|
134
|
+
const parts = [renderDetailFields(result.name, resultDetailFields, result, format)];
|
|
135
|
+
if (result.apiCheckResult) {
|
|
136
|
+
const subLines = format === 'md'
|
|
137
|
+
? formatApiResultMd(result.apiCheckResult)
|
|
138
|
+
: formatApiResultTerminal(result.apiCheckResult);
|
|
139
|
+
parts.push(subLines.join('\n'));
|
|
140
|
+
}
|
|
141
|
+
if (result.browserCheckResult) {
|
|
142
|
+
const subLines = format === 'md'
|
|
143
|
+
? formatBrowserResultMd(result.browserCheckResult)
|
|
144
|
+
: formatBrowserResultTerminal(result.browserCheckResult);
|
|
145
|
+
parts.push(subLines.join('\n'));
|
|
146
|
+
}
|
|
147
|
+
if (result.multiStepCheckResult && format === 'terminal') {
|
|
148
|
+
parts.push(formatMultiStepResultTerminal(result.multiStepCheckResult).join('\n'));
|
|
149
|
+
}
|
|
150
|
+
if (result.tracerouteCheckResult) {
|
|
151
|
+
const subLines = format === 'md'
|
|
152
|
+
? formatTracerouteResultMd(result.tracerouteCheckResult)
|
|
153
|
+
: formatTracerouteResultTerminal(result.tracerouteCheckResult);
|
|
154
|
+
parts.push(subLines.join('\n'));
|
|
155
|
+
}
|
|
156
|
+
if (result.grpcCheckResult) {
|
|
157
|
+
const subLines = format === 'md'
|
|
158
|
+
? formatGrpcResultMd(result.grpcCheckResult)
|
|
159
|
+
: formatGrpcResultTerminal(result.grpcCheckResult);
|
|
160
|
+
parts.push(subLines.join('\n'));
|
|
161
|
+
}
|
|
162
|
+
if (result.sslCheckResult) {
|
|
163
|
+
const subLines = format === 'md'
|
|
164
|
+
? formatSslResultMd(result.sslCheckResult)
|
|
165
|
+
: formatSslResultTerminal(result.sslCheckResult);
|
|
166
|
+
parts.push(subLines.join('\n'));
|
|
167
|
+
}
|
|
168
|
+
return parts.join('\n\n');
|
|
169
|
+
}
|
|
170
|
+
// --- API check result (terminal) ---
|
|
171
|
+
function formatApiResultTerminal(api) {
|
|
172
|
+
const lines = [];
|
|
173
|
+
lines.push(heading('REQUEST', 2, 'terminal'));
|
|
174
|
+
lines.push(`${label('Method:')}${api.request.method}`);
|
|
175
|
+
lines.push(`${label('URL:')}${api.request.url}`);
|
|
176
|
+
const reqHeaders = Object.entries(api.request.headers || {});
|
|
177
|
+
if (reqHeaders.length > 0) {
|
|
178
|
+
lines.push(`${label('Headers:')}`);
|
|
179
|
+
for (const [key, val] of reqHeaders) {
|
|
180
|
+
lines.push(` ${chalk.dim(key + ':')} ${val}`);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (api.request.data) {
|
|
184
|
+
lines.push(`${label('Body:')}`);
|
|
185
|
+
lines.push(formatBody(api.request.data, ' '));
|
|
186
|
+
}
|
|
187
|
+
lines.push('');
|
|
188
|
+
lines.push(heading('RESPONSE', 2, 'terminal'));
|
|
189
|
+
const reasonPhrase = (api.response.statusText || '').replace(/^\d+\s*/, '');
|
|
190
|
+
lines.push(`${label('Status:')}${colorStatus(api.response.status)} ${reasonPhrase}`);
|
|
191
|
+
const respHeaders = Object.entries(api.response.headers || {});
|
|
192
|
+
if (respHeaders.length > 0) {
|
|
193
|
+
lines.push(`${label('Headers:')}`);
|
|
194
|
+
for (const [key, val] of respHeaders) {
|
|
195
|
+
lines.push(` ${chalk.dim(key + ':')} ${val}`);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (api.response.body) {
|
|
199
|
+
lines.push(`${label('Body:')}`);
|
|
200
|
+
lines.push(formatBody(api.response.body, ' '));
|
|
201
|
+
}
|
|
202
|
+
if (api.response.timingPhases) {
|
|
203
|
+
lines.push('');
|
|
204
|
+
lines.push(heading('TIMING', 2, 'terminal'));
|
|
205
|
+
lines.push(formatTimingBar(api.response.timingPhases));
|
|
206
|
+
}
|
|
207
|
+
if (api.assertions && api.assertions.length > 0) {
|
|
208
|
+
lines.push('');
|
|
209
|
+
lines.push(heading('ASSERTIONS', 2, 'terminal'));
|
|
210
|
+
for (const a of api.assertions) {
|
|
211
|
+
const src = a.property ? `${a.source}.${a.property}` : a.source;
|
|
212
|
+
lines.push(` ${chalk.dim('·')} ${src} ${a.comparison} ${a.target}`);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
if (api.requestError) {
|
|
216
|
+
lines.push('');
|
|
217
|
+
lines.push(heading('ERROR', 2, 'terminal'));
|
|
218
|
+
lines.push(chalk.red(` ${api.requestError}`));
|
|
219
|
+
}
|
|
220
|
+
if (api.jobLog) {
|
|
221
|
+
lines.push('');
|
|
222
|
+
lines.push(...formatJobLogObject(api.jobLog));
|
|
223
|
+
}
|
|
224
|
+
return lines;
|
|
225
|
+
}
|
|
226
|
+
// --- API check result (markdown) ---
|
|
227
|
+
function formatApiResultMd(api) {
|
|
228
|
+
const lines = [];
|
|
229
|
+
lines.push('## Request');
|
|
230
|
+
lines.push(`\`${api.request.method} ${api.request.url}\``);
|
|
231
|
+
lines.push('');
|
|
232
|
+
lines.push('## Response');
|
|
233
|
+
const mdReason = (api.response.statusText || '').replace(/^\d+\s*/, '');
|
|
234
|
+
lines.push(`**${api.response.status} ${mdReason}**`);
|
|
235
|
+
if (api.response.body) {
|
|
236
|
+
lines.push('');
|
|
237
|
+
lines.push('```json');
|
|
238
|
+
lines.push(api.response.body.slice(0, 2000));
|
|
239
|
+
lines.push('```');
|
|
240
|
+
}
|
|
241
|
+
if (api.response.timingPhases) {
|
|
242
|
+
const tp = api.response.timingPhases;
|
|
243
|
+
lines.push('');
|
|
244
|
+
lines.push('## Timing');
|
|
245
|
+
lines.push('| Phase | Duration |');
|
|
246
|
+
lines.push('| --- | --- |');
|
|
247
|
+
lines.push(`| DNS | ${formatMs(tp.dns)} |`);
|
|
248
|
+
lines.push(`| TCP | ${formatMs(tp.tcp)} |`);
|
|
249
|
+
lines.push(`| TLS | ${formatMs(tp.wait)} |`);
|
|
250
|
+
lines.push(`| TTFB | ${formatMs(tp.firstByte)} |`);
|
|
251
|
+
lines.push(`| Download | ${formatMs(tp.download)} |`);
|
|
252
|
+
lines.push(`| **Total** | **${formatMs(tp.total)}** |`);
|
|
253
|
+
}
|
|
254
|
+
if (api.assertions && api.assertions.length > 0) {
|
|
255
|
+
lines.push('');
|
|
256
|
+
lines.push('## Assertions');
|
|
257
|
+
for (const a of api.assertions) {
|
|
258
|
+
const src = a.property ? `${a.source}.${a.property}` : a.source;
|
|
259
|
+
lines.push(`- ${src} ${a.comparison} ${a.target}`);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return lines;
|
|
263
|
+
}
|
|
264
|
+
// --- Browser check result (terminal) ---
|
|
265
|
+
function formatBrowserResultTerminal(browser) {
|
|
266
|
+
const lines = [];
|
|
267
|
+
lines.push(heading('BROWSER RESULT', 2, 'terminal'));
|
|
268
|
+
lines.push(`${label('Framework:')}${browser.type}`);
|
|
269
|
+
lines.push(`${label('Runtime:')}${browser.runtimeVersion}`);
|
|
270
|
+
const ts = browser.traceSummary;
|
|
271
|
+
const errorCounts = ts
|
|
272
|
+
? [
|
|
273
|
+
ts.userScriptErrors > 0 ? `${ts.userScriptErrors} script` : null,
|
|
274
|
+
ts.consoleErrors > 0 ? `${ts.consoleErrors} console` : null,
|
|
275
|
+
ts.networkErrors > 0 ? `${ts.networkErrors} network` : null,
|
|
276
|
+
ts.documentErrors > 0 ? `${ts.documentErrors} document` : null,
|
|
277
|
+
].filter(Boolean)
|
|
278
|
+
: [];
|
|
279
|
+
if (errorCounts.length > 0) {
|
|
280
|
+
lines.push(`${label('Errors:')}${chalk.red(errorCounts.join(', '))}`);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
lines.push(`${label('Errors:')}${chalk.green('none')}`);
|
|
284
|
+
}
|
|
285
|
+
appendErrors(lines, browser.errors);
|
|
286
|
+
if (browser.pages && browser.pages.length > 0) {
|
|
287
|
+
const vitalLines = [];
|
|
288
|
+
for (const page of browser.pages) {
|
|
289
|
+
const pageLines = [];
|
|
290
|
+
const vitals = page.webVitals;
|
|
291
|
+
if (vitals) {
|
|
292
|
+
const entries = Object.entries(vitals);
|
|
293
|
+
for (const [name, v] of entries) {
|
|
294
|
+
if (v && v.value != null) {
|
|
295
|
+
pageLines.push(` ${label(name + ':', 8)}${formatVitalValue(name, v)} ${vitalScore(v.score)}`);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
if (pageLines.length > 0) {
|
|
300
|
+
if (browser.pages.length > 1) {
|
|
301
|
+
vitalLines.push(` ${chalk.dim(page.url)}`);
|
|
302
|
+
}
|
|
303
|
+
vitalLines.push(...pageLines);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
if (vitalLines.length > 0) {
|
|
307
|
+
lines.push('');
|
|
308
|
+
lines.push(heading('WEB VITALS', 2, 'terminal'));
|
|
309
|
+
lines.push(...vitalLines);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if (browser.jobLog && browser.jobLog.length > 0) {
|
|
313
|
+
lines.push('');
|
|
314
|
+
lines.push(...formatJobLogArray(browser.jobLog));
|
|
315
|
+
}
|
|
316
|
+
appendAssets(lines, browser);
|
|
317
|
+
return lines;
|
|
318
|
+
}
|
|
319
|
+
// --- Browser check result (markdown) ---
|
|
320
|
+
function formatBrowserResultMd(browser) {
|
|
321
|
+
const lines = [];
|
|
322
|
+
lines.push(`## Browser Result (${browser.type})`);
|
|
323
|
+
if (browser.pages && browser.pages.length > 0) {
|
|
324
|
+
lines.push('');
|
|
325
|
+
lines.push('### Web Vitals');
|
|
326
|
+
lines.push('| Metric | Value | Score |');
|
|
327
|
+
lines.push('| --- | --- | --- |');
|
|
328
|
+
for (const page of browser.pages) {
|
|
329
|
+
if (page.webVitals) {
|
|
330
|
+
for (const [name, v] of Object.entries(page.webVitals)) {
|
|
331
|
+
if (v && v.value != null) {
|
|
332
|
+
lines.push(`| ${name} | ${formatVitalValue(name, v)} | ${v.score} |`);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
if (browser.errors.length > 0) {
|
|
339
|
+
lines.push('');
|
|
340
|
+
lines.push('### Errors');
|
|
341
|
+
for (const err of browser.errors) {
|
|
342
|
+
lines.push(`- ${formatErrorEntry(err)}`);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return lines;
|
|
346
|
+
}
|
|
347
|
+
// --- Multi-step check result (terminal only — markdown has no special multi-step section) ---
|
|
348
|
+
function formatMultiStepResultTerminal(ms) {
|
|
349
|
+
const lines = [];
|
|
350
|
+
lines.push(heading('MULTI-STEP RESULT', 2, 'terminal'));
|
|
351
|
+
lines.push(`${label('Runtime:')}${ms.runtimeVersion}`);
|
|
352
|
+
appendErrors(lines, ms.errors);
|
|
353
|
+
if (ms.jobLog && ms.jobLog.length > 0) {
|
|
354
|
+
lines.push('');
|
|
355
|
+
lines.push(...formatJobLogArray(ms.jobLog));
|
|
356
|
+
}
|
|
357
|
+
appendAssets(lines, ms);
|
|
358
|
+
return lines;
|
|
359
|
+
}
|
|
360
|
+
// --- Traceroute check result ---
|
|
361
|
+
//
|
|
362
|
+
// The diagnostic objects (tracerouteCheckResult/grpcCheckResult/sslCheckResult)
|
|
363
|
+
// carry documented top-level scalars plus a richer `response` artifact. The
|
|
364
|
+
// renderers prefer the top-level scalar but fall back to the artifact so a
|
|
365
|
+
// metadata-only uptime result still surfaces something useful.
|
|
366
|
+
function num(...vals) {
|
|
367
|
+
for (const v of vals) {
|
|
368
|
+
if (typeof v === 'number' && !Number.isNaN(v))
|
|
369
|
+
return v;
|
|
370
|
+
}
|
|
371
|
+
return undefined;
|
|
372
|
+
}
|
|
373
|
+
function str(...vals) {
|
|
374
|
+
for (const v of vals) {
|
|
375
|
+
if (typeof v === 'string' && v.length > 0)
|
|
376
|
+
return v;
|
|
377
|
+
}
|
|
378
|
+
return undefined;
|
|
379
|
+
}
|
|
380
|
+
function boolFlag(...vals) {
|
|
381
|
+
for (const v of vals) {
|
|
382
|
+
if (typeof v === 'boolean')
|
|
383
|
+
return v;
|
|
384
|
+
}
|
|
385
|
+
return undefined;
|
|
386
|
+
}
|
|
387
|
+
function yesNo(value, { goodWhenTrue = true } = {}) {
|
|
388
|
+
if (value == null)
|
|
389
|
+
return chalk.dim('—');
|
|
390
|
+
const good = goodWhenTrue ? value : !value;
|
|
391
|
+
const text = value ? 'yes' : 'no';
|
|
392
|
+
return good ? chalk.green(text) : chalk.red(text);
|
|
393
|
+
}
|
|
394
|
+
// finalHopLatency / RTT objects come straight from the runner artifact, where
|
|
395
|
+
// keys are snake_case (`avg_ms`/`best_ms`/`worst_ms`); accept the camelCase
|
|
396
|
+
// variants too in case a consumer reshapes the payload.
|
|
397
|
+
function formatLatencyStats(obj) {
|
|
398
|
+
if (!obj || typeof obj !== 'object')
|
|
399
|
+
return undefined;
|
|
400
|
+
const o = obj;
|
|
401
|
+
const avg = num(o.avgMs, o.avg_ms, o.avg);
|
|
402
|
+
const best = num(o.bestMs, o.best_ms, o.best);
|
|
403
|
+
const worst = num(o.worstMs, o.worst_ms, o.worst);
|
|
404
|
+
const parts = [
|
|
405
|
+
avg != null ? `avg ${formatMs(avg)}` : null,
|
|
406
|
+
best != null ? `best ${formatMs(best)}` : null,
|
|
407
|
+
worst != null ? `worst ${formatMs(worst)}` : null,
|
|
408
|
+
].filter(Boolean);
|
|
409
|
+
return parts.length > 0 ? parts.join(' / ') : undefined;
|
|
410
|
+
}
|
|
411
|
+
// A request that errored never evaluated its assertions, and the backend reports
|
|
412
|
+
// those unevaluated entries without an `error`, which renders as a green success
|
|
413
|
+
// mark. Suppress the whole section instead of claiming assertions passed.
|
|
414
|
+
function assertionsToRender(result) {
|
|
415
|
+
if (result.requestError)
|
|
416
|
+
return;
|
|
417
|
+
if (!result.assertions || result.assertions.length === 0)
|
|
418
|
+
return;
|
|
419
|
+
return result.assertions;
|
|
420
|
+
}
|
|
421
|
+
function appendAssertionsTerminal(lines, result) {
|
|
422
|
+
const assertions = assertionsToRender(result);
|
|
423
|
+
if (!assertions)
|
|
424
|
+
return;
|
|
425
|
+
lines.push('');
|
|
426
|
+
lines.push(heading('ASSERTIONS', 2, 'terminal'));
|
|
427
|
+
for (const assertion of assertions) {
|
|
428
|
+
lines.push(` ${formatAssertionLine(assertion)}`);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function appendAssertionsMd(lines, result) {
|
|
432
|
+
const assertions = assertionsToRender(result);
|
|
433
|
+
if (!assertions)
|
|
434
|
+
return;
|
|
435
|
+
lines.push('');
|
|
436
|
+
lines.push('## Assertions');
|
|
437
|
+
for (const assertion of assertions) {
|
|
438
|
+
lines.push(`- ${stripAnsi(formatAssertionLine(assertion))}`);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
function formatTracerouteResultTerminal(tr) {
|
|
442
|
+
const lines = [];
|
|
443
|
+
const resp = tr.response ?? {};
|
|
444
|
+
lines.push(heading('TRACEROUTE RESULT', 2, 'terminal'));
|
|
445
|
+
const host = str(resp.hostname);
|
|
446
|
+
const ip = str(resp.resolvedIp);
|
|
447
|
+
if (host || ip) {
|
|
448
|
+
const dest = [host, ip ? `(${ip})` : null].filter(Boolean).join(' ');
|
|
449
|
+
lines.push(`${label('Destination:')}${dest}`);
|
|
450
|
+
}
|
|
451
|
+
const protocol = str(resp.protocol, resp.probeProtocol);
|
|
452
|
+
if (protocol)
|
|
453
|
+
lines.push(`${label('Protocol:')}${protocol}`);
|
|
454
|
+
const probeProtocol = str(resp.probeProtocol);
|
|
455
|
+
if (probeProtocol)
|
|
456
|
+
lines.push(`${label('Probe protocol:')}${probeProtocol}`);
|
|
457
|
+
const totalHops = num(tr.totalHops, resp.totalHops);
|
|
458
|
+
if (totalHops != null)
|
|
459
|
+
lines.push(`${label('Hops:')}${totalHops}`);
|
|
460
|
+
const reached = boolFlag(tr.destinationReached, resp.destinationReached);
|
|
461
|
+
lines.push(`${label('Reached:')}${yesNo(reached)}`);
|
|
462
|
+
const truncation = str(resp.truncationReason);
|
|
463
|
+
if (truncation)
|
|
464
|
+
lines.push(`${label('Truncated:')}${chalk.yellow(truncation)}`);
|
|
465
|
+
const finalHop = formatLatencyStats(tr.finalHopLatency ?? resp.finalHopLatency);
|
|
466
|
+
if (finalHop)
|
|
467
|
+
lines.push(`${label('Final hop:')}${finalHop}`);
|
|
468
|
+
const hops = Array.isArray(resp.hops) ? resp.hops : [];
|
|
469
|
+
if (hops.length > 0) {
|
|
470
|
+
lines.push('');
|
|
471
|
+
lines.push(heading('HOPS', 2, 'terminal'));
|
|
472
|
+
for (const hop of hops.slice(0, 40)) {
|
|
473
|
+
lines.push(` ${formatTracerouteHop(hop)}`);
|
|
474
|
+
}
|
|
475
|
+
if (hops.length > 40) {
|
|
476
|
+
lines.push(chalk.dim(` ... (${hops.length - 40} more hops)`));
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
const trDns = num(asObject(tr.timingPhases)?.dns);
|
|
480
|
+
if (trDns != null) {
|
|
481
|
+
lines.push('');
|
|
482
|
+
lines.push(heading('TIMING', 2, 'terminal'));
|
|
483
|
+
lines.push(`${label('DNS:')}${formatMs(trDns)}`);
|
|
484
|
+
}
|
|
485
|
+
appendAssertionsTerminal(lines, tr);
|
|
486
|
+
if (tr.requestError) {
|
|
487
|
+
lines.push('');
|
|
488
|
+
lines.push(heading('ERROR', 2, 'terminal'));
|
|
489
|
+
lines.push(chalk.red(` ${tr.requestError}`));
|
|
490
|
+
}
|
|
491
|
+
return lines;
|
|
492
|
+
}
|
|
493
|
+
function formatTracerouteHop(hop) {
|
|
494
|
+
if (!hop || typeof hop !== 'object')
|
|
495
|
+
return String(hop);
|
|
496
|
+
const h = hop;
|
|
497
|
+
const n = num(h.hop_number, h.hopNumber, h.number, h.hop);
|
|
498
|
+
const addr = str(h.main_ip, h.mainIp, h.ip, h.address) ?? '*';
|
|
499
|
+
const host = str(h.main_host, h.mainHost, h.host);
|
|
500
|
+
const loss = num(h.loss_percentage, h.lossPercentage, h.loss);
|
|
501
|
+
const rtt = formatLatencyStats(h.rtt);
|
|
502
|
+
const asn = num(h.asn);
|
|
503
|
+
return [
|
|
504
|
+
n != null ? chalk.dim(String(n).padStart(2)) : chalk.dim(' ·'),
|
|
505
|
+
host ? `${addr} (${host})` : addr,
|
|
506
|
+
loss != null ? `loss ${loss.toFixed(0)}%` : null,
|
|
507
|
+
rtt ? `rtt ${rtt}` : null,
|
|
508
|
+
asn ? chalk.dim(`AS${asn}`) : null,
|
|
509
|
+
].filter(Boolean).join(' ');
|
|
510
|
+
}
|
|
511
|
+
function formatTracerouteResultMd(tr) {
|
|
512
|
+
const lines = ['## Traceroute Result'];
|
|
513
|
+
const resp = tr.response ?? {};
|
|
514
|
+
const host = str(resp.hostname);
|
|
515
|
+
const ip = str(resp.resolvedIp);
|
|
516
|
+
if (host || ip)
|
|
517
|
+
lines.push(`- **Destination:** ${[host, ip ? `(${ip})` : null].filter(Boolean).join(' ')}`);
|
|
518
|
+
const probeProtocol = str(resp.probeProtocol);
|
|
519
|
+
if (probeProtocol)
|
|
520
|
+
lines.push(`- **Probe protocol:** ${probeProtocol}`);
|
|
521
|
+
const totalHops = num(tr.totalHops, resp.totalHops);
|
|
522
|
+
if (totalHops != null)
|
|
523
|
+
lines.push(`- **Hops:** ${totalHops}`);
|
|
524
|
+
const reached = boolFlag(tr.destinationReached, resp.destinationReached);
|
|
525
|
+
if (reached != null)
|
|
526
|
+
lines.push(`- **Reached:** ${reached ? 'yes' : 'no'}`);
|
|
527
|
+
const truncation = str(resp.truncationReason);
|
|
528
|
+
if (truncation)
|
|
529
|
+
lines.push(`- **Truncated:** ${truncation}`);
|
|
530
|
+
const finalHop = formatLatencyStats(tr.finalHopLatency ?? resp.finalHopLatency);
|
|
531
|
+
if (finalHop)
|
|
532
|
+
lines.push(`- **Final hop:** ${finalHop}`);
|
|
533
|
+
const trDns = num(asObject(tr.timingPhases)?.dns);
|
|
534
|
+
if (trDns != null) {
|
|
535
|
+
lines.push('');
|
|
536
|
+
lines.push('## Timing');
|
|
537
|
+
lines.push(`- **DNS:** ${formatMs(trDns)}`);
|
|
538
|
+
}
|
|
539
|
+
appendAssertionsMd(lines, tr);
|
|
540
|
+
if (tr.requestError) {
|
|
541
|
+
lines.push('');
|
|
542
|
+
lines.push('## Error');
|
|
543
|
+
lines.push(`- ${tr.requestError}`);
|
|
544
|
+
}
|
|
545
|
+
return lines;
|
|
546
|
+
}
|
|
547
|
+
// --- gRPC check result ---
|
|
548
|
+
function formatGrpcResultTerminal(grpc) {
|
|
549
|
+
const lines = [];
|
|
550
|
+
const resp = grpc.response ?? {};
|
|
551
|
+
lines.push(heading('GRPC RESULT', 2, 'terminal'));
|
|
552
|
+
const host = str(resp.host);
|
|
553
|
+
const ip = str(resp.resolvedIp);
|
|
554
|
+
const port = num(resp.port);
|
|
555
|
+
if (host || ip || port != null) {
|
|
556
|
+
const target = [
|
|
557
|
+
host ?? ip,
|
|
558
|
+
port != null ? `:${port}` : '',
|
|
559
|
+
].filter(Boolean).join('');
|
|
560
|
+
lines.push(`${label('Target:')}${target}`);
|
|
561
|
+
}
|
|
562
|
+
const method = str(resp.grpcMethod);
|
|
563
|
+
if (method)
|
|
564
|
+
lines.push(`${label('Method:')}${method}`);
|
|
565
|
+
const mode = str(resp.grpcMode);
|
|
566
|
+
if (mode)
|
|
567
|
+
lines.push(`${label('Mode:')}${mode}`);
|
|
568
|
+
const code = num(grpc.grpcStatusCode, resp.grpcStatusCode);
|
|
569
|
+
const statusMsg = str(resp.grpcStatusMessage);
|
|
570
|
+
if (code != null) {
|
|
571
|
+
const codeStr = code === 0 ? chalk.green(String(code)) : chalk.red(String(code));
|
|
572
|
+
lines.push(`${label('Status:')}${codeStr}${statusMsg ? ` ${statusMsg}` : ''}`);
|
|
573
|
+
}
|
|
574
|
+
const healthLabel = str(resp.healthStatusLabel);
|
|
575
|
+
const healthNum = num(grpc.healthStatus, resp.healthStatus);
|
|
576
|
+
if (healthLabel || healthNum != null) {
|
|
577
|
+
const display = healthLabel ?? String(healthNum);
|
|
578
|
+
const colored = healthLabel === 'SERVING' ? chalk.green(display) : chalk.red(display);
|
|
579
|
+
lines.push(`${label('Health:')}${colored}`);
|
|
580
|
+
}
|
|
581
|
+
const responseMessage = str(resp.responseMessage);
|
|
582
|
+
if (responseMessage)
|
|
583
|
+
lines.push(`${label('Response:')}${truncateSingleLine(responseMessage, 200)}`);
|
|
584
|
+
const methods = Array.isArray(resp.discoveredMethods) ? resp.discoveredMethods : [];
|
|
585
|
+
if (methods.length > 0) {
|
|
586
|
+
lines.push(`${label('Methods:')}${methods.slice(0, 20).join(', ')}${methods.length > 20 ? ', …' : ''}`);
|
|
587
|
+
}
|
|
588
|
+
const metadata = Array.isArray(resp.metadata) ? resp.metadata : [];
|
|
589
|
+
if (metadata.length > 0) {
|
|
590
|
+
lines.push(`${label('Metadata:')}`);
|
|
591
|
+
for (const entry of metadata.slice(0, 20)) {
|
|
592
|
+
lines.push(` ${formatKeyValueEntry(entry)}`);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
// Timing breakdown. gRPC exposes dns/connect/total (not the HTTP phases the
|
|
596
|
+
// API TIMING bar renders), so surface those directly for parity with the API
|
|
597
|
+
// result's timing detail instead of only the top-level total response time.
|
|
598
|
+
const timing = (grpc.timingPhases ?? resp.timingPhases);
|
|
599
|
+
const tDns = num(timing?.dns), tConnect = num(timing?.connect), tTotal = num(timing?.total);
|
|
600
|
+
if (tDns != null || tConnect != null || tTotal != null) {
|
|
601
|
+
lines.push('');
|
|
602
|
+
lines.push(heading('TIMING', 2, 'terminal'));
|
|
603
|
+
if (tDns != null)
|
|
604
|
+
lines.push(`${label('DNS:')}${formatMs(tDns)}`);
|
|
605
|
+
if (tConnect != null)
|
|
606
|
+
lines.push(`${label('Connect:')}${formatMs(tConnect)}`);
|
|
607
|
+
if (tTotal != null)
|
|
608
|
+
lines.push(`${label('Total:')}${formatMs(tTotal)}`);
|
|
609
|
+
}
|
|
610
|
+
appendAssertionsTerminal(lines, grpc);
|
|
611
|
+
if (grpc.requestError) {
|
|
612
|
+
lines.push('');
|
|
613
|
+
lines.push(heading('ERROR', 2, 'terminal'));
|
|
614
|
+
lines.push(chalk.red(` ${grpc.requestError}`));
|
|
615
|
+
}
|
|
616
|
+
return lines;
|
|
617
|
+
}
|
|
618
|
+
function formatKeyValueEntry(entry) {
|
|
619
|
+
if (!entry || typeof entry !== 'object')
|
|
620
|
+
return String(entry);
|
|
621
|
+
const e = entry;
|
|
622
|
+
const key = str(e.key, e.name) ?? '(key)';
|
|
623
|
+
const value = e.value != null ? String(e.value) : '';
|
|
624
|
+
return `${chalk.dim(key + ':')} ${value}`;
|
|
625
|
+
}
|
|
626
|
+
function formatGrpcResultMd(grpc) {
|
|
627
|
+
const lines = ['## gRPC Result'];
|
|
628
|
+
const resp = grpc.response ?? {};
|
|
629
|
+
const code = num(grpc.grpcStatusCode, resp.grpcStatusCode);
|
|
630
|
+
const statusMsg = str(resp.grpcStatusMessage);
|
|
631
|
+
if (code != null)
|
|
632
|
+
lines.push(`- **Status:** ${code}${statusMsg ? ` ${statusMsg}` : ''}`);
|
|
633
|
+
const healthLabel = str(resp.healthStatusLabel);
|
|
634
|
+
if (healthLabel)
|
|
635
|
+
lines.push(`- **Health:** ${healthLabel}`);
|
|
636
|
+
const method = str(resp.grpcMethod);
|
|
637
|
+
if (method)
|
|
638
|
+
lines.push(`- **Method:** ${method}`);
|
|
639
|
+
const responseMessage = str(resp.responseMessage);
|
|
640
|
+
if (responseMessage)
|
|
641
|
+
lines.push(`- **Response:** \`${truncateSingleLine(responseMessage, 200)}\``);
|
|
642
|
+
const methods = Array.isArray(resp.discoveredMethods) ? resp.discoveredMethods : [];
|
|
643
|
+
if (methods.length > 0)
|
|
644
|
+
lines.push(`- **Discovered methods:** ${methods.join(', ')}`);
|
|
645
|
+
const timing = (grpc.timingPhases ?? resp.timingPhases);
|
|
646
|
+
const tDns = num(timing?.dns), tConnect = num(timing?.connect), tTotal = num(timing?.total);
|
|
647
|
+
if (tDns != null || tConnect != null || tTotal != null) {
|
|
648
|
+
lines.push('');
|
|
649
|
+
lines.push('## Timing');
|
|
650
|
+
lines.push('| Phase | Duration |');
|
|
651
|
+
lines.push('| --- | --- |');
|
|
652
|
+
if (tDns != null)
|
|
653
|
+
lines.push(`| DNS | ${formatMs(tDns)} |`);
|
|
654
|
+
if (tConnect != null)
|
|
655
|
+
lines.push(`| Connect | ${formatMs(tConnect)} |`);
|
|
656
|
+
if (tTotal != null)
|
|
657
|
+
lines.push(`| **Total** | **${formatMs(tTotal)}** |`);
|
|
658
|
+
}
|
|
659
|
+
appendAssertionsMd(lines, grpc);
|
|
660
|
+
if (grpc.requestError) {
|
|
661
|
+
lines.push('');
|
|
662
|
+
lines.push('## Error');
|
|
663
|
+
lines.push(`- ${grpc.requestError}`);
|
|
664
|
+
}
|
|
665
|
+
return lines;
|
|
666
|
+
}
|
|
667
|
+
// --- SSL check result ---
|
|
668
|
+
// SSL security-baseline rules, in display order, mapped to humanized labels.
|
|
669
|
+
// Each rule in `response.securityBaseline` is `{ violated, severity }`: a
|
|
670
|
+
// non-violated rule renders as a pass, a violated one as a fail, with the
|
|
671
|
+
// configured enforcement severity (fail / warn / ignore) shown alongside.
|
|
672
|
+
const SSL_BASELINE_RULES = [
|
|
673
|
+
['minTLSVersion', 'min TLS version'],
|
|
674
|
+
['minKeySizeBits', 'min key size'],
|
|
675
|
+
['weakSignatureAlgorithm', 'weak signature algorithm'],
|
|
676
|
+
['weakCipherSuite', 'weak cipher suite'],
|
|
677
|
+
['knownBadCA', 'known bad CA'],
|
|
678
|
+
['recommendedTLSVersion', 'recommended TLS version'],
|
|
679
|
+
['recommendedKeySizeBits', 'recommended key size'],
|
|
680
|
+
['ocspMustStapleRespected', 'OCSP must-staple respected'],
|
|
681
|
+
['sctPresent', 'SCT present'],
|
|
682
|
+
];
|
|
683
|
+
// Join SANs with a cap so a wildcard cert with dozens of names stays readable.
|
|
684
|
+
function formatSans(sans) {
|
|
685
|
+
if (!Array.isArray(sans))
|
|
686
|
+
return undefined;
|
|
687
|
+
const list = sans.filter((s) => typeof s === 'string' && s.length > 0);
|
|
688
|
+
if (list.length === 0)
|
|
689
|
+
return undefined;
|
|
690
|
+
const cap = 10;
|
|
691
|
+
if (list.length <= cap)
|
|
692
|
+
return list.join(', ');
|
|
693
|
+
return `${list.slice(0, cap).join(', ')}, +${list.length - cap} more`;
|
|
694
|
+
}
|
|
695
|
+
function asObject(value) {
|
|
696
|
+
return value && typeof value === 'object' ? value : undefined;
|
|
697
|
+
}
|
|
698
|
+
function appendSslCertificateTerminal(lines, resp) {
|
|
699
|
+
const cert = asObject(resp.certificate);
|
|
700
|
+
const ocspStapled = boolFlag(resp.ocspStapled);
|
|
701
|
+
const body = [];
|
|
702
|
+
if (cert) {
|
|
703
|
+
const subjectCN = str(cert.subjectCN);
|
|
704
|
+
if (subjectCN)
|
|
705
|
+
body.push(`${label('Subject CN:')}${subjectCN}`);
|
|
706
|
+
const issuerCN = str(cert.issuerCN);
|
|
707
|
+
if (issuerCN)
|
|
708
|
+
body.push(`${label('Issuer CN:')}${issuerCN}`);
|
|
709
|
+
const notBefore = str(cert.notBefore);
|
|
710
|
+
const notAfter = str(cert.notAfter);
|
|
711
|
+
if (notBefore || notAfter)
|
|
712
|
+
body.push(`${label('Valid:')}${[notBefore, notAfter].filter(Boolean).join(' → ')}`);
|
|
713
|
+
const keyAlgorithm = str(cert.keyAlgorithm);
|
|
714
|
+
const keySizeBits = num(cert.keySizeBits);
|
|
715
|
+
if (keyAlgorithm || keySizeBits != null) {
|
|
716
|
+
body.push(`${label('Key:')}${[keyAlgorithm, keySizeBits != null ? `${keySizeBits}-bit` : null].filter(Boolean).join(' ')}`);
|
|
717
|
+
}
|
|
718
|
+
const signatureAlgorithm = str(cert.signatureAlgorithm);
|
|
719
|
+
if (signatureAlgorithm)
|
|
720
|
+
body.push(`${label('Signature:')}${signatureAlgorithm}`);
|
|
721
|
+
const fingerprint = str(cert.fingerprintSha256);
|
|
722
|
+
if (fingerprint)
|
|
723
|
+
body.push(`${label('SHA-256:')}${fingerprint}`);
|
|
724
|
+
const sans = formatSans(cert.sans);
|
|
725
|
+
if (sans)
|
|
726
|
+
body.push(`${label('SANs:')}${sans}`);
|
|
727
|
+
const serial = str(cert.serialNumber);
|
|
728
|
+
if (serial)
|
|
729
|
+
body.push(`${label('Serial:')}${serial}`);
|
|
730
|
+
if (boolFlag(cert.selfSigned) === true)
|
|
731
|
+
body.push(`${label('Self-signed:')}${chalk.yellow('yes')}`);
|
|
732
|
+
if (boolFlag(cert.isCA) === true)
|
|
733
|
+
body.push(`${label('CA:')}yes`);
|
|
734
|
+
}
|
|
735
|
+
if (ocspStapled != null)
|
|
736
|
+
body.push(`${label('OCSP stapled:')}${yesNo(ocspStapled)}`);
|
|
737
|
+
if (body.length === 0)
|
|
738
|
+
return;
|
|
739
|
+
lines.push('');
|
|
740
|
+
lines.push(heading('CERTIFICATE', 2, 'terminal'));
|
|
741
|
+
lines.push(...body);
|
|
742
|
+
}
|
|
743
|
+
function appendSslCertificateMd(lines, resp) {
|
|
744
|
+
const cert = asObject(resp.certificate);
|
|
745
|
+
const ocspStapled = boolFlag(resp.ocspStapled);
|
|
746
|
+
const body = [];
|
|
747
|
+
if (cert) {
|
|
748
|
+
const subjectCN = str(cert.subjectCN);
|
|
749
|
+
if (subjectCN)
|
|
750
|
+
body.push(`- **Subject CN:** ${subjectCN}`);
|
|
751
|
+
const issuerCN = str(cert.issuerCN);
|
|
752
|
+
if (issuerCN)
|
|
753
|
+
body.push(`- **Issuer CN:** ${issuerCN}`);
|
|
754
|
+
const notBefore = str(cert.notBefore);
|
|
755
|
+
const notAfter = str(cert.notAfter);
|
|
756
|
+
if (notBefore || notAfter)
|
|
757
|
+
body.push(`- **Valid:** ${[notBefore, notAfter].filter(Boolean).join(' → ')}`);
|
|
758
|
+
const keyAlgorithm = str(cert.keyAlgorithm);
|
|
759
|
+
const keySizeBits = num(cert.keySizeBits);
|
|
760
|
+
if (keyAlgorithm || keySizeBits != null) {
|
|
761
|
+
body.push(`- **Key:** ${[keyAlgorithm, keySizeBits != null ? `${keySizeBits}-bit` : null].filter(Boolean).join(' ')}`);
|
|
762
|
+
}
|
|
763
|
+
const signatureAlgorithm = str(cert.signatureAlgorithm);
|
|
764
|
+
if (signatureAlgorithm)
|
|
765
|
+
body.push(`- **Signature:** ${signatureAlgorithm}`);
|
|
766
|
+
const fingerprint = str(cert.fingerprintSha256);
|
|
767
|
+
if (fingerprint)
|
|
768
|
+
body.push(`- **SHA-256:** \`${fingerprint}\``);
|
|
769
|
+
const sans = formatSans(cert.sans);
|
|
770
|
+
if (sans)
|
|
771
|
+
body.push(`- **SANs:** ${sans}`);
|
|
772
|
+
const serial = str(cert.serialNumber);
|
|
773
|
+
if (serial)
|
|
774
|
+
body.push(`- **Serial:** ${serial}`);
|
|
775
|
+
if (boolFlag(cert.selfSigned) === true)
|
|
776
|
+
body.push('- **Self-signed:** yes');
|
|
777
|
+
if (boolFlag(cert.isCA) === true)
|
|
778
|
+
body.push('- **CA:** yes');
|
|
779
|
+
}
|
|
780
|
+
if (ocspStapled != null)
|
|
781
|
+
body.push(`- **OCSP stapled:** ${ocspStapled ? 'yes' : 'no'}`);
|
|
782
|
+
if (body.length === 0)
|
|
783
|
+
return;
|
|
784
|
+
lines.push('');
|
|
785
|
+
lines.push('## Certificate');
|
|
786
|
+
lines.push(...body);
|
|
787
|
+
}
|
|
788
|
+
// Build the per-rule baseline breakdown as [symbol, humanLabel, severity, violated]
|
|
789
|
+
// tuples so terminal and markdown can render the same rules with format-specific
|
|
790
|
+
// styling. A rule that carries neither a `violated` flag nor a scalar value is
|
|
791
|
+
// skipped.
|
|
792
|
+
// Observed value for a baseline rule, pulled from the SSL response so the result
|
|
793
|
+
// shows *what* was seen (e.g. "min TLS version: TLS1.3"), not just the rule name.
|
|
794
|
+
// Rules without a single observed value (knownBadCA, sctPresent) return undefined.
|
|
795
|
+
function sslBaselineObservedValue(key, resp) {
|
|
796
|
+
const cert = asObject(resp.certificate);
|
|
797
|
+
switch (key) {
|
|
798
|
+
case 'minTLSVersion':
|
|
799
|
+
case 'recommendedTLSVersion':
|
|
800
|
+
return str(resp.protocol);
|
|
801
|
+
case 'minKeySizeBits':
|
|
802
|
+
case 'recommendedKeySizeBits': {
|
|
803
|
+
const bits = cert ? num(cert.keySizeBits) : undefined;
|
|
804
|
+
return bits != null ? `${bits}-bit` : undefined;
|
|
805
|
+
}
|
|
806
|
+
case 'weakSignatureAlgorithm':
|
|
807
|
+
return cert ? str(cert.signatureAlgorithm) : undefined;
|
|
808
|
+
case 'weakCipherSuite':
|
|
809
|
+
return str(resp.cipherSuite);
|
|
810
|
+
case 'ocspMustStapleRespected': {
|
|
811
|
+
const stapled = boolFlag(resp.ocspStapled);
|
|
812
|
+
return stapled == null ? undefined : (stapled ? 'stapled' : 'not stapled');
|
|
813
|
+
}
|
|
814
|
+
default:
|
|
815
|
+
return undefined;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
function sslBaselineRules(resp) {
|
|
819
|
+
const baseline = asObject(resp.securityBaseline);
|
|
820
|
+
if (!baseline)
|
|
821
|
+
return [];
|
|
822
|
+
const rules = [];
|
|
823
|
+
for (const [key, human] of SSL_BASELINE_RULES) {
|
|
824
|
+
const rule = baseline[key];
|
|
825
|
+
if (rule == null)
|
|
826
|
+
continue;
|
|
827
|
+
const obj = asObject(rule);
|
|
828
|
+
if (obj) {
|
|
829
|
+
const violated = boolFlag(obj.violated);
|
|
830
|
+
const severity = str(obj.severity);
|
|
831
|
+
if (violated == null && severity == null)
|
|
832
|
+
continue;
|
|
833
|
+
rules.push({ human, violated, severity, value: sslBaselineObservedValue(key, resp) });
|
|
834
|
+
}
|
|
835
|
+
else if (typeof rule === 'string' || typeof rule === 'number' || typeof rule === 'boolean') {
|
|
836
|
+
rules.push({ human, scalar: String(rule) });
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
return rules;
|
|
840
|
+
}
|
|
841
|
+
function appendSslBaselineTerminal(lines, resp) {
|
|
842
|
+
const rules = sslBaselineRules(resp);
|
|
843
|
+
if (rules.length === 0)
|
|
844
|
+
return;
|
|
845
|
+
lines.push('');
|
|
846
|
+
lines.push(heading('SECURITY BASELINE', 2, 'terminal'));
|
|
847
|
+
for (const rule of rules) {
|
|
848
|
+
if (rule.violated == null && rule.scalar == null) {
|
|
849
|
+
lines.push(` ${chalk.dim('·')} ${rule.human}`);
|
|
850
|
+
continue;
|
|
851
|
+
}
|
|
852
|
+
if (rule.scalar != null) {
|
|
853
|
+
lines.push(` ${chalk.dim('·')} ${rule.human}: ${rule.scalar}`);
|
|
854
|
+
continue;
|
|
855
|
+
}
|
|
856
|
+
const head = `${rule.violated ? assertionSymbols.error : assertionSymbols.success} ${rule.human}${rule.value ? `: ${rule.value}` : ''}`;
|
|
857
|
+
const coloredHead = rule.violated ? chalk.red(head) : chalk.green(head);
|
|
858
|
+
lines.push(` ${coloredHead}`);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
function appendSslBaselineMd(lines, resp) {
|
|
862
|
+
const rules = sslBaselineRules(resp);
|
|
863
|
+
if (rules.length === 0)
|
|
864
|
+
return;
|
|
865
|
+
lines.push('');
|
|
866
|
+
lines.push('## Security Baseline');
|
|
867
|
+
for (const rule of rules) {
|
|
868
|
+
if (rule.scalar != null) {
|
|
869
|
+
lines.push(`- ${rule.human}: ${rule.scalar}`);
|
|
870
|
+
continue;
|
|
871
|
+
}
|
|
872
|
+
if (rule.violated == null) {
|
|
873
|
+
lines.push(`- ${rule.human}`);
|
|
874
|
+
continue;
|
|
875
|
+
}
|
|
876
|
+
const sym = rule.violated ? assertionSymbols.error : assertionSymbols.success;
|
|
877
|
+
lines.push(`- ${sym} ${rule.human}${rule.value ? `: ${rule.value}` : ''}`);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
function formatSslResultTerminal(ssl) {
|
|
881
|
+
const lines = [];
|
|
882
|
+
const resp = ssl.response ?? {};
|
|
883
|
+
lines.push(heading('SSL RESULT', 2, 'terminal'));
|
|
884
|
+
const ip = str(resp.resolvedIp);
|
|
885
|
+
if (ip)
|
|
886
|
+
lines.push(`${label('Resolved IP:')}${ip}`);
|
|
887
|
+
const tls = str(ssl.tlsVersion, resp.protocol);
|
|
888
|
+
const cipher = str(ssl.cipherSuite, resp.cipherSuite);
|
|
889
|
+
if (tls || cipher)
|
|
890
|
+
lines.push(`${label('TLS:')}${[tls, cipher].filter(Boolean).join(' / ')}`);
|
|
891
|
+
const days = num(ssl.daysUntilExpiry, resp.daysUntilExpiry);
|
|
892
|
+
if (days != null) {
|
|
893
|
+
const text = days < 0 ? `expired ${-days} day(s) ago` : `${days} day(s)`;
|
|
894
|
+
lines.push(`${label('Expires in:')}${days <= 0 ? chalk.red(text) : days < 14 ? chalk.yellow(text) : chalk.green(text)}`);
|
|
895
|
+
}
|
|
896
|
+
const handshake = num(ssl.handshakeTimeMs, resp.handshakeTimeMs);
|
|
897
|
+
if (handshake != null)
|
|
898
|
+
lines.push(`${label('Handshake:')}${formatMs(handshake)}`);
|
|
899
|
+
const chainTrusted = boolFlag(ssl.chainTrusted, resp.chainTrusted);
|
|
900
|
+
if (chainTrusted != null)
|
|
901
|
+
lines.push(`${label('Chain trusted:')}${yesNo(chainTrusted)}`);
|
|
902
|
+
const hostnameVerified = boolFlag(ssl.hostnameVerified, resp.hostnameVerified);
|
|
903
|
+
if (hostnameVerified != null)
|
|
904
|
+
lines.push(`${label('Hostname:')}${yesNo(hostnameVerified)}`);
|
|
905
|
+
const verdict = str(ssl.baselineVerdict);
|
|
906
|
+
const grade = str(ssl.baselineGrade);
|
|
907
|
+
if (verdict || grade) {
|
|
908
|
+
let verdictStr = '';
|
|
909
|
+
if (verdict) {
|
|
910
|
+
const v = verdict.toLowerCase();
|
|
911
|
+
verdictStr = v === 'pass' ? chalk.green(verdict) : v === 'warn' ? chalk.yellow(verdict) : chalk.red(verdict);
|
|
912
|
+
}
|
|
913
|
+
lines.push(`${label('Baseline:')}${[verdictStr, grade ? `grade ${grade}` : ''].filter(Boolean).join(' ')}`);
|
|
914
|
+
}
|
|
915
|
+
const failure = str(ssl.failureCategory);
|
|
916
|
+
if (failure)
|
|
917
|
+
lines.push(`${label('Failure:')}${chalk.red(failure)}`);
|
|
918
|
+
appendSslCertificateTerminal(lines, resp);
|
|
919
|
+
appendSslBaselineTerminal(lines, resp);
|
|
920
|
+
appendAssertionsTerminal(lines, ssl);
|
|
921
|
+
if (ssl.requestError) {
|
|
922
|
+
lines.push('');
|
|
923
|
+
lines.push(heading('ERROR', 2, 'terminal'));
|
|
924
|
+
lines.push(chalk.red(` ${ssl.requestError}`));
|
|
925
|
+
}
|
|
926
|
+
return lines;
|
|
927
|
+
}
|
|
928
|
+
function formatSslResultMd(ssl) {
|
|
929
|
+
const lines = ['## SSL Result'];
|
|
930
|
+
const resp = ssl.response ?? {};
|
|
931
|
+
const tls = str(ssl.tlsVersion, resp.protocol);
|
|
932
|
+
const cipher = str(ssl.cipherSuite, resp.cipherSuite);
|
|
933
|
+
if (tls || cipher)
|
|
934
|
+
lines.push(`- **TLS:** ${[tls, cipher].filter(Boolean).join(' / ')}`);
|
|
935
|
+
const days = num(ssl.daysUntilExpiry, resp.daysUntilExpiry);
|
|
936
|
+
if (days != null)
|
|
937
|
+
lines.push(`- **Expires in:** ${days < 0 ? `expired ${-days} day(s) ago` : `${days} day(s)`}`);
|
|
938
|
+
const handshake = num(ssl.handshakeTimeMs, resp.handshakeTimeMs);
|
|
939
|
+
if (handshake != null)
|
|
940
|
+
lines.push(`- **Handshake:** ${formatMs(handshake)}`);
|
|
941
|
+
const chainTrusted = boolFlag(ssl.chainTrusted, resp.chainTrusted);
|
|
942
|
+
if (chainTrusted != null)
|
|
943
|
+
lines.push(`- **Chain trusted:** ${chainTrusted ? 'yes' : 'no'}`);
|
|
944
|
+
const hostnameVerified = boolFlag(ssl.hostnameVerified, resp.hostnameVerified);
|
|
945
|
+
if (hostnameVerified != null)
|
|
946
|
+
lines.push(`- **Hostname verified:** ${hostnameVerified ? 'yes' : 'no'}`);
|
|
947
|
+
const verdict = str(ssl.baselineVerdict);
|
|
948
|
+
const grade = str(ssl.baselineGrade);
|
|
949
|
+
if (verdict || grade)
|
|
950
|
+
lines.push(`- **Baseline:** ${[verdict, grade ? `grade ${grade}` : ''].filter(Boolean).join(' ')}`);
|
|
951
|
+
const failure = str(ssl.failureCategory);
|
|
952
|
+
if (failure)
|
|
953
|
+
lines.push(`- **Failure:** ${failure}`);
|
|
954
|
+
appendSslCertificateMd(lines, resp);
|
|
955
|
+
appendSslBaselineMd(lines, resp);
|
|
956
|
+
appendAssertionsMd(lines, ssl);
|
|
957
|
+
if (ssl.requestError) {
|
|
958
|
+
lines.push('');
|
|
959
|
+
lines.push('## Error');
|
|
960
|
+
lines.push(`- ${ssl.requestError}`);
|
|
961
|
+
}
|
|
962
|
+
return lines;
|
|
963
|
+
}
|
|
964
|
+
// --- Shared internal helpers ---
|
|
965
|
+
function colorStatus(code) {
|
|
966
|
+
if (code >= 200 && code < 300)
|
|
967
|
+
return chalk.green(String(code));
|
|
968
|
+
if (code >= 300 && code < 400)
|
|
969
|
+
return chalk.yellow(String(code));
|
|
970
|
+
return chalk.red(String(code));
|
|
971
|
+
}
|
|
972
|
+
function formatErrorEntry(err) {
|
|
973
|
+
if (typeof err === 'string')
|
|
974
|
+
return err;
|
|
975
|
+
if (err && typeof err === 'object') {
|
|
976
|
+
// API may return error objects with message/name fields
|
|
977
|
+
const obj = err;
|
|
978
|
+
if (obj.message)
|
|
979
|
+
return String(obj.message);
|
|
980
|
+
return JSON.stringify(err);
|
|
981
|
+
}
|
|
982
|
+
return String(err);
|
|
983
|
+
}
|
|
984
|
+
function appendErrors(lines, errors) {
|
|
985
|
+
if (errors.length === 0)
|
|
986
|
+
return;
|
|
987
|
+
lines.push('', heading('ERRORS', 2, 'terminal'));
|
|
988
|
+
for (const err of errors)
|
|
989
|
+
lines.push(chalk.red(` ${formatErrorEntry(err)}`));
|
|
990
|
+
}
|
|
991
|
+
function appendAssets(lines, obj) {
|
|
992
|
+
const parts = [];
|
|
993
|
+
if (obj.jobAssets?.length)
|
|
994
|
+
parts.push(`${obj.jobAssets.length} screenshot(s)`);
|
|
995
|
+
if (obj.playwrightTestTraces?.length)
|
|
996
|
+
parts.push(`${obj.playwrightTestTraces.length} trace(s)`);
|
|
997
|
+
if (obj.playwrightTestVideos?.length)
|
|
998
|
+
parts.push(`${obj.playwrightTestVideos.length} video(s)`);
|
|
999
|
+
if (parts.length > 0) {
|
|
1000
|
+
lines.push('', heading('ASSETS', 2, 'terminal'));
|
|
1001
|
+
lines.push(` ${parts.join(', ')}`);
|
|
1002
|
+
lines.push(chalk.dim(' Use --output json to get asset URLs'));
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
function formatBody(body, indent) {
|
|
1006
|
+
let text;
|
|
1007
|
+
try {
|
|
1008
|
+
text = JSON.stringify(JSON.parse(body), null, 2);
|
|
1009
|
+
}
|
|
1010
|
+
catch {
|
|
1011
|
+
text = body;
|
|
1012
|
+
}
|
|
1013
|
+
const lines = text.split('\n');
|
|
1014
|
+
if (lines.length > 30) {
|
|
1015
|
+
return lines.slice(0, 30).map(l => indent + l).join('\n')
|
|
1016
|
+
+ `\n${indent}${chalk.dim(`... (${lines.length - 30} more lines)`)}`;
|
|
1017
|
+
}
|
|
1018
|
+
return lines.map(l => indent + l).join('\n');
|
|
1019
|
+
}
|
|
1020
|
+
function formatTimingBar(tp) {
|
|
1021
|
+
const phases = [
|
|
1022
|
+
{ name: 'DNS', ms: tp.dns, color: chalk.cyan },
|
|
1023
|
+
{ name: 'TCP', ms: tp.tcp, color: chalk.blue },
|
|
1024
|
+
{ name: 'TLS', ms: tp.wait, color: chalk.magenta },
|
|
1025
|
+
{ name: 'TTFB', ms: tp.firstByte, color: chalk.yellow },
|
|
1026
|
+
{ name: 'Download', ms: tp.download, color: chalk.green },
|
|
1027
|
+
];
|
|
1028
|
+
const lines = [];
|
|
1029
|
+
for (const phase of phases) {
|
|
1030
|
+
if (phase.ms > 0) {
|
|
1031
|
+
lines.push(` ${label(phase.name + ':', 12)}${phase.color(formatMs(phase.ms))}`);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
lines.push(` ${label('Total:', 12)}${chalk.bold(formatMs(tp.total))}`);
|
|
1035
|
+
return lines.join('\n');
|
|
1036
|
+
}
|
|
1037
|
+
function formatVitalValue(name, v) {
|
|
1038
|
+
if (v.value == null)
|
|
1039
|
+
return '-';
|
|
1040
|
+
if (name === 'CLS')
|
|
1041
|
+
return String(v.value.toFixed(3));
|
|
1042
|
+
return formatMs(v.value);
|
|
1043
|
+
}
|
|
1044
|
+
function vitalScore(score) {
|
|
1045
|
+
switch (score) {
|
|
1046
|
+
case 'GOOD': return chalk.green('good');
|
|
1047
|
+
case 'NEEDS_IMPROVEMENT': return chalk.yellow('needs improvement');
|
|
1048
|
+
case 'POOR': return chalk.red('poor');
|
|
1049
|
+
default: return chalk.dim(score);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
// --- Job log formatting ---
|
|
1053
|
+
function formatJobLogArray(log) {
|
|
1054
|
+
const lines = [heading('JOB LOG', 2, 'terminal')];
|
|
1055
|
+
const maxLines = 50;
|
|
1056
|
+
const entries = log.slice(0, maxLines);
|
|
1057
|
+
for (const entry of entries) {
|
|
1058
|
+
const level = entry.level === 'ERROR' ? chalk.red(entry.level) : chalk.dim(entry.level);
|
|
1059
|
+
lines.push(` ${level} ${entry.msg}`);
|
|
1060
|
+
}
|
|
1061
|
+
if (log.length > maxLines) {
|
|
1062
|
+
lines.push(chalk.dim(` ... (${log.length - maxLines} more entries)`));
|
|
1063
|
+
}
|
|
1064
|
+
return lines;
|
|
1065
|
+
}
|
|
1066
|
+
function formatJobLogObject(log) {
|
|
1067
|
+
if (!log)
|
|
1068
|
+
return [];
|
|
1069
|
+
if (Array.isArray(log)) {
|
|
1070
|
+
return formatJobLogArray(log);
|
|
1071
|
+
}
|
|
1072
|
+
if (typeof log === 'object' && log !== null) {
|
|
1073
|
+
const obj = log;
|
|
1074
|
+
const phases = ['setup', 'request', 'teardown'];
|
|
1075
|
+
const allEntries = [];
|
|
1076
|
+
for (const phase of phases) {
|
|
1077
|
+
const entries = obj[phase];
|
|
1078
|
+
if (Array.isArray(entries)) {
|
|
1079
|
+
allEntries.push(...entries);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
if (allEntries.length > 0) {
|
|
1083
|
+
return formatJobLogArray(allEntries);
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
const lines = [heading('JOB LOG', 2, 'terminal')];
|
|
1087
|
+
try {
|
|
1088
|
+
const pretty = JSON.stringify(log, null, 2);
|
|
1089
|
+
const jsonLines = pretty.split('\n').slice(0, 50);
|
|
1090
|
+
for (const l of jsonLines) {
|
|
1091
|
+
lines.push(` ${l}`);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
catch {
|
|
1095
|
+
lines.push(` ${String(log)}`);
|
|
1096
|
+
}
|
|
1097
|
+
return lines;
|
|
1098
|
+
}
|
|
1099
|
+
//# sourceMappingURL=check-result-detail.js.map
|