@cnc-tools/storm 0.14.2 → 0.15.0
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/dist/application.js +3 -1
- package/dist/bin/storm.js +9 -7
- package/dist/build-info.js +1 -1
- package/dist/chunks/chunk-4U4DZ7VG.js +40 -0
- package/dist/chunks/{chunk-GSC6SRTW.js → chunk-5CCP36QQ.js} +1 -1
- package/dist/chunks/chunk-5GBMR4HM.js +966 -0
- package/dist/chunks/{chunk-43MWZLJR.js → chunk-5VXBKPW6.js} +1 -1
- package/dist/chunks/{chunk-RA4L2ACU.js → chunk-AWBSONHB.js} +88 -34
- package/dist/chunks/{chunk-BRUIATTR.js → chunk-CN4EFA5J.js} +59 -12
- package/dist/chunks/{chunk-3HBPNQ4Y.js → chunk-CXAT7ZKP.js} +2 -2
- package/dist/chunks/chunk-E4PJNZVG.js +783 -0
- package/dist/chunks/{chunk-T6AZIDZD.js → chunk-F6N34UWB.js} +12 -244
- package/dist/chunks/{chunk-RUPD4TLT.js → chunk-KC4KDJ5K.js} +147 -26
- package/dist/chunks/{chunk-I7AN3DIJ.js → chunk-L36GBUBB.js} +1626 -676
- package/dist/chunks/{chunk-XZCDA5PE.js → chunk-OX7X4B2L.js} +7 -2
- package/dist/chunks/{chunk-UUBZTGLV.js → chunk-PN5ULTTH.js} +140 -130
- package/dist/chunks/chunk-QUHY6FGN.js +108 -0
- package/dist/chunks/chunk-QVS7HRU7.js +74 -0
- package/dist/chunks/{chunk-UC6DULWY.js → chunk-R7XVBZOY.js} +130 -39
- package/dist/chunks/{chunk-LUOHJ3LB.js → chunk-RAQEXKL6.js} +1120 -465
- package/dist/chunks/{chunk-GJOEPJJL.js → chunk-SZEURWRS.js} +446 -52
- package/dist/chunks/chunk-TJNFVNKR.js +246 -0
- package/dist/chunks/{chunk-BW2ADH7U.js → chunk-VUPZH7J2.js} +1 -1
- package/dist/chunks/{chunk-HDL4WKIB.js → chunk-XEVHP5ZW.js} +2 -2
- package/dist/chunks/{chunk-VH2POPW5.js → chunk-YV7GE6EV.js} +635 -79
- package/dist/chunks/{chunk-GQIL3AHY.js → chunk-ZG3WQ4UF.js} +1 -1
- package/dist/chunks/{live-app-SZGEILCQ.js → live-app-PI3BAN6Y.js} +28 -23
- package/dist/command-tree.d.ts +2 -2
- package/dist/command-tree.js +2 -2
- package/dist/commands/exec/across-sandboxes-outcomes.d.ts +364 -0
- package/dist/commands/exec/across-sandboxes-outcomes.js +229 -0
- package/dist/commands/exec/across-sandboxes-run.d.ts +180 -0
- package/dist/commands/exec/across-sandboxes-run.js +339 -0
- package/dist/commands/exec/command.d.ts +577 -75
- package/dist/commands/exec/command.js +165 -32
- package/dist/commands/exec/driver-plan.d.ts +8 -2
- package/dist/commands/exec/driver-plan.js +13 -3
- package/dist/commands/exec/exec-words.d.ts +17 -3
- package/dist/commands/exec/exec-words.js +27 -16
- package/dist/commands/exec/live-view.d.ts +3 -4
- package/dist/commands/exec/live-view.js +37 -28
- package/dist/commands/exec/metadata.js +2 -2
- package/dist/commands/exec/mint-failed.d.ts +4 -4
- package/dist/commands/exec/mint-failed.js +6 -6
- package/dist/commands/exec/outcomes.d.ts +530 -73
- package/dist/commands/exec/outcomes.js +202 -66
- package/dist/commands/exec/plan-only.d.ts +10 -0
- package/dist/commands/exec/plan-only.js +46 -0
- package/dist/commands/exec/plan-run.d.ts +54 -35
- package/dist/commands/exec/plan-run.js +81 -38
- package/dist/commands/exec/planned-outcome.d.ts +15 -0
- package/dist/commands/exec/planned-outcome.js +35 -0
- package/dist/commands/exec/progress.d.ts +2 -2
- package/dist/commands/exec/progress.js +35 -18
- package/dist/commands/exec/resource-refusals.d.ts +2 -2
- package/dist/commands/exec/resource-refusals.js +3 -3
- package/dist/commands/exec/run-bin.d.ts +1 -1
- package/dist/commands/exec/run-bin.js +2 -2
- package/dist/commands/exec/run-command.d.ts +345 -63
- package/dist/commands/exec/run-command.js +308 -258
- package/dist/commands/exec/run-metadata.d.ts +42 -8
- package/dist/commands/exec/run-metadata.js +40 -21
- package/dist/commands/exec/run-planned.d.ts +20 -0
- package/dist/commands/exec/run-planned.js +22 -0
- package/dist/commands/exec/sandbox-lines.d.ts +42 -0
- package/dist/commands/exec/sandbox-lines.js +59 -0
- package/dist/commands/exec/sandbox-progress.d.ts +30 -0
- package/dist/commands/exec/sandbox-progress.js +232 -0
- package/dist/commands/exec/sandbox-view.d.ts +19 -0
- package/dist/commands/exec/sandbox-view.js +72 -0
- package/dist/commands/exec/view.d.ts +3 -2
- package/dist/commands/exec/view.js +10 -6
- package/dist/commands/runs/facts.d.ts +51 -9
- package/dist/commands/runs/facts.js +49 -29
- package/dist/commands/runs/list/command.d.ts +80 -4
- package/dist/commands/runs/list/command.js +11 -10
- package/dist/commands/runs/list/metadata.js +1 -1
- package/dist/commands/runs/list/outcomes.d.ts +40 -2
- package/dist/commands/runs/logs/command.d.ts +103 -8
- package/dist/commands/runs/logs/command.js +139 -24
- package/dist/commands/runs/logs/metadata.d.ts +4 -0
- package/dist/commands/runs/logs/metadata.js +14 -7
- package/dist/commands/runs/logs/outcomes.d.ts +49 -2
- package/dist/commands/runs/logs/outcomes.js +110 -6
- package/dist/commands/runs/past-run.d.ts +77 -6
- package/dist/commands/runs/past-run.js +133 -4
- package/dist/commands/runs/show/command.d.ts +568 -10
- package/dist/commands/runs/show/command.js +634 -119
- package/dist/commands/runs/show/metadata.d.ts +17 -0
- package/dist/commands/runs/show/metadata.js +48 -7
- package/dist/commands/runs/show/outcomes.d.ts +276 -5
- package/dist/commands/runs/show/outcomes.js +484 -96
- package/dist/commands/snapshots/build/command.d.ts +109 -18
- package/dist/commands/snapshots/build/command.js +72 -36
- package/dist/commands/snapshots/build/metadata.d.ts +4 -0
- package/dist/commands/snapshots/build/metadata.js +5 -1
- package/dist/commands/snapshots/build/outcomes.d.ts +53 -8
- package/dist/commands/snapshots/build/outcomes.js +26 -3
- package/dist/commands/snapshots/list/command.d.ts +72 -7
- package/dist/commands/snapshots/list/command.js +57 -24
- package/dist/commands/snapshots/list/metadata.d.ts +4 -0
- package/dist/commands/snapshots/list/metadata.js +4 -0
- package/dist/commands/snapshots/list/outcomes.d.ts +31 -0
- package/dist/commands/snapshots/list/outcomes.js +25 -2
- package/dist/commands/suites/list/command.d.ts +129 -0
- package/dist/commands/suites/list/command.js +162 -0
- package/dist/commands/suites/list/metadata.d.ts +11 -0
- package/dist/commands/suites/list/metadata.js +15 -0
- package/dist/commands/suites/list/outcomes.d.ts +91 -0
- package/dist/commands/suites/list/outcomes.js +122 -0
- package/dist/commands/suites/metadata.js +8 -0
- package/dist/commands/test/command.d.ts +1389 -0
- package/dist/commands/test/command.js +583 -0
- package/dist/commands/test/metadata.js +8 -0
- package/dist/commands/test/outcomes.d.ts +765 -0
- package/dist/commands/test/outcomes.js +140 -0
- package/dist/commands/test/plan.d.ts +92 -0
- package/dist/commands/test/plan.js +128 -0
- package/dist/commands/test/test-words.d.ts +12 -0
- package/dist/commands/test/test-words.js +42 -0
- package/dist/config/check-resources.d.ts +14 -0
- package/dist/config/check-resources.js +98 -0
- package/dist/config/check-runner.d.ts +13 -0
- package/dist/config/check-runner.js +54 -0
- package/dist/config/check-suites.d.ts +14 -0
- package/dist/config/check-suites.js +99 -0
- package/dist/config/gateways.d.ts +24 -0
- package/dist/config/index.d.ts +6 -3
- package/dist/config/index.js +3 -1
- package/dist/config/live/file-lists-file-gateway.d.ts +4 -0
- package/dist/config/live/file-lists-file-gateway.js +27 -0
- package/dist/config/load.d.ts +11 -10
- package/dist/config/load.js +35 -103
- package/dist/config/recipe-run.d.ts +8 -1
- package/dist/config/recipe-run.js +2 -1
- package/dist/config/resolve.d.ts +3 -2
- package/dist/config/resolve.js +6 -3
- package/dist/config/resolver.d.ts +20 -6
- package/dist/config/resolver.js +11 -8
- package/dist/config/runner.d.ts +24 -0
- package/dist/config/runner.js +4 -0
- package/dist/config/schema.d.ts +26 -18
- package/dist/config/schema.js +41 -9
- package/dist/config/settings-file.d.ts +9 -3
- package/dist/config/settings-file.js +41 -4
- package/dist/config/suite.d.ts +39 -0
- package/dist/config/suite.js +5 -0
- package/dist/config-file/define.d.ts +49 -18
- package/dist/config-file/define.js +9 -8
- package/dist/config-file/runner.d.ts +12 -0
- package/dist/config-file/runner.js +9 -0
- package/dist/context.d.ts +12 -8
- package/dist/context.js +9 -3
- package/dist/core/across-sandboxes.d.ts +43 -0
- package/dist/core/across-sandboxes.js +319 -0
- package/dist/core/before-run.d.ts +5 -3
- package/dist/core/before-run.js +12 -1
- package/dist/core/events.d.ts +62 -6
- package/dist/core/events.js +14 -0
- package/dist/core/index.d.ts +4 -2
- package/dist/core/index.js +3 -1
- package/dist/core/payload.d.ts +2 -1
- package/dist/core/payload.js +2 -1
- package/dist/core/presentations.js +1 -1
- package/dist/core/resource.d.ts +1 -1
- package/dist/core/resources.d.ts +56 -6
- package/dist/core/resources.js +81 -5
- package/dist/core/run-state.js +9 -0
- package/dist/core/run.d.ts +77 -15
- package/dist/core/run.js +150 -86
- package/dist/core/sandbox-end.d.ts +64 -0
- package/dist/core/sandbox-end.js +128 -0
- package/dist/core/timeline.d.ts +4 -4
- package/dist/core/timeline.js +3 -3
- package/dist/credential/live/vercel-cli-gateway.d.ts +7 -0
- package/dist/credential/live/vercel-cli-gateway.js +14 -1
- package/dist/extensions/github/context.d.ts +1 -1
- package/dist/extensions/github/definition.d.ts +11 -9
- package/dist/extensions/github/definition.js +8 -6
- package/dist/extensions/github/extension.d.ts +3 -3
- package/dist/extensions/github/fixture-repo.d.ts +21 -2
- package/dist/extensions/github/fixture-repo.js +31 -2
- package/dist/extensions/github/index.d.ts +2 -2
- package/dist/extensions/github/index.js +2 -2
- package/dist/extensions/github/lifecycle.d.ts +16 -6
- package/dist/extensions/github/lifecycle.js +42 -25
- package/dist/extensions/github/options.d.ts +17 -11
- package/dist/extensions/github/options.js +14 -13
- package/dist/extensions/github/refusals.d.ts +23 -6
- package/dist/extensions/github/refusals.js +34 -12
- package/dist/extensions/github/resource.d.ts +21 -12
- package/dist/extensions/github/resource.js +16 -8
- package/dist/extensions/github/run/payload.d.ts +6 -6
- package/dist/extensions/github/run/payload.js +3 -5
- package/dist/extensions/github/split.d.ts +10 -0
- package/dist/extensions/github/split.js +12 -0
- package/dist/extensions/playwright/driver.js +6 -26
- package/dist/extensions/playwright/extension.js +1 -1
- package/dist/extensions/testserver/commands/pool/create/command.js +8 -8
- package/dist/extensions/testserver/commands/pool/list/command.js +4 -4
- package/dist/extensions/testserver/definition.d.ts +4 -4
- package/dist/extensions/testserver/definition.js +41 -31
- package/dist/extensions/testserver/extension.d.ts +4 -5
- package/dist/extensions/testserver/extension.js +14 -41
- package/dist/extensions/testserver/index.d.ts +1 -1
- package/dist/extensions/testserver/index.js +1 -1
- package/dist/extensions/testserver/lifecycle.d.ts +10 -2
- package/dist/extensions/testserver/lifecycle.js +29 -6
- package/dist/extensions/testserver/options/rules.d.ts +5 -5
- package/dist/extensions/testserver/options/rules.js +10 -8
- package/dist/extensions/testserver/options/sandboxes.d.ts +4 -2
- package/dist/extensions/testserver/options/sandboxes.js +8 -3
- package/dist/extensions/testserver/pool/gateways.d.ts +29 -4
- package/dist/extensions/testserver/pool/index.d.ts +2 -2
- package/dist/extensions/testserver/pool/index.js +1 -1
- package/dist/extensions/testserver/pool/lease.d.ts +10 -0
- package/dist/extensions/testserver/pool/lease.js +21 -0
- package/dist/extensions/testserver/pool/live/pool-store-gateway.js +38 -3
- package/dist/extensions/testserver/refusals.d.ts +12 -0
- package/dist/extensions/testserver/refusals.js +18 -0
- package/dist/extensions/testserver/release.d.ts +16 -0
- package/dist/extensions/testserver/release.js +56 -4
- package/dist/extensions/testserver/resource.d.ts +4 -4
- package/dist/extensions/testserver/resource.js +1 -1
- package/dist/extensions/testserver/split.d.ts +9 -0
- package/dist/extensions/testserver/split.js +22 -0
- package/dist/extensions/testserver/vitest/fixtures.d.ts +5 -5
- package/dist/extensions/testserver/vitest/fixtures.js +9 -38
- package/dist/extensions/vitest/driver.d.ts +7 -0
- package/dist/extensions/vitest/driver.js +33 -37
- package/dist/extensions/vitest/extension.js +1 -1
- package/dist/extensions/vitest/plan/plan-over.d.ts +8 -1
- package/dist/extensions/vitest/plan/plan-over.js +16 -2
- package/dist/extensions.d.ts +17 -16
- package/dist/extensions.js +5 -4
- package/dist/forward-sigterm.js +1 -1
- package/dist/launcher-resolvers/local-services.d.ts +1 -1
- package/dist/live-app.js +4 -3
- package/dist/local-services.js +1 -1
- package/dist/planning/driver-file-lists.d.ts +61 -0
- package/dist/planning/driver-file-lists.js +66 -0
- package/dist/{commands/exec → planning}/driver-refusals.d.ts +11 -10
- package/dist/{commands/exec → planning}/driver-refusals.js +18 -14
- package/dist/planning/file-lists-file.d.ts +58 -0
- package/dist/planning/file-lists-file.js +105 -0
- package/dist/planning/file-lists.d.ts +28 -0
- package/dist/planning/file-lists.js +52 -0
- package/dist/{commands/exec → planning}/final-results.d.ts +1 -1
- package/dist/{commands/exec → planning}/final-results.js +6 -6
- package/dist/planning/plan-only.d.ts +81 -0
- package/dist/planning/plan-only.js +83 -0
- package/dist/{commands/exec → planning}/redaction.d.ts +2 -2
- package/dist/{commands/exec → planning}/redaction.js +5 -4
- package/dist/{commands/exec → planning}/resource-flags.d.ts +5 -12
- package/dist/{commands/exec → planning}/resource-flags.js +6 -16
- package/dist/planning/run-kind-flags.d.ts +20 -0
- package/dist/planning/run-kind-flags.js +48 -0
- package/dist/planning/run-plan.d.ts +30 -0
- package/dist/planning/run-plan.js +4 -0
- package/dist/planning/sandbox-placeholders.d.ts +22 -0
- package/dist/planning/sandbox-placeholders.js +60 -0
- package/dist/planning/suite-not-found.d.ts +37 -0
- package/dist/planning/suite-not-found.js +36 -0
- package/dist/planning/suites.d.ts +43 -0
- package/dist/planning/suites.js +89 -0
- package/dist/{commands/exec → planning}/test-plan.d.ts +8 -3
- package/dist/{commands/exec → planning}/test-plan.js +32 -4
- package/dist/playwright/reporter.d.ts +20 -8
- package/dist/playwright/reporter.js +195 -15
- package/dist/presentation.d.ts +10 -6
- package/dist/presentation.js +13 -15
- package/dist/run-directory/gateways.d.ts +60 -4
- package/dist/run-directory/index.d.ts +4 -4
- package/dist/run-directory/index.js +2 -1
- package/dist/run-directory/live/run-directory-gateway.js +92 -16
- package/dist/run-directory/plan.d.ts +35 -2
- package/dist/run-directory/plan.js +44 -7
- package/dist/run-directory/reader.d.ts +26 -5
- package/dist/run-directory/reader.js +24 -1
- package/dist/run-directory/recording.d.ts +75 -49
- package/dist/run-directory/recording.js +214 -28
- package/dist/run-directory/run-directory.d.ts +22 -1
- package/dist/run-directory/run-directory.js +24 -0
- package/dist/run-directory/run-record.d.ts +144 -21
- package/dist/run-directory/run-record.js +118 -19
- package/dist/run-directory/timeline-facts.js +4 -4
- package/dist/runner/build-snapshots.d.ts +7 -7
- package/dist/runner/build-snapshots.js +12 -16
- package/dist/runner/events.d.ts +29 -8
- package/dist/runner/gateways.d.ts +49 -6
- package/dist/runner/index.d.ts +6 -4
- package/dist/runner/index.js +3 -2
- package/dist/runner/live/sandbox-gateway.js +161 -31
- package/dist/runner/network-policy.d.ts +55 -0
- package/dist/runner/network-policy.js +46 -0
- package/dist/runner/policy-writes.d.ts +40 -0
- package/dist/runner/policy-writes.js +124 -0
- package/dist/runner/prepare.d.ts +6 -7
- package/dist/runner/ready.d.ts +39 -10
- package/dist/runner/ready.js +59 -47
- package/dist/runner/recipe-check.d.ts +6 -0
- package/dist/runner/recipe-check.js +29 -0
- package/dist/runner/recipe-secrets.d.ts +67 -0
- package/dist/runner/recipe-secrets.js +230 -0
- package/dist/runner/recipe.d.ts +115 -26
- package/dist/runner/recipe.js +147 -154
- package/dist/runner/sandboxed-command.d.ts +22 -8
- package/dist/runner/sandboxed-command.js +33 -10
- package/dist/runner/scope.d.ts +107 -21
- package/dist/runner/scope.js +274 -54
- package/dist/runner/secrets.d.ts +42 -31
- package/dist/runner/secrets.js +62 -40
- package/dist/runner/session.d.ts +59 -26
- package/dist/runner/session.js +82 -41
- package/dist/runner/snapshot-build.d.ts +7 -4
- package/dist/runner/snapshot-build.js +48 -28
- package/dist/runner/snapshot-choice.d.ts +37 -0
- package/dist/runner/snapshot-choice.js +38 -0
- package/dist/runner/snapshot-key.d.ts +16 -14
- package/dist/runner/snapshot-key.js +24 -18
- package/dist/runner/steps.d.ts +13 -5
- package/dist/runner/steps.js +34 -4
- package/dist/runner/time-limit.d.ts +10 -0
- package/dist/runner/time-limit.js +43 -0
- package/dist/sdk/extension/commands.d.ts +1 -7
- package/dist/sdk/extension/driver.d.ts +39 -46
- package/dist/sdk/extension/driver.js +6 -6
- package/dist/sdk/extension/index.d.ts +3 -3
- package/dist/sdk/extension/index.js +3 -4
- package/dist/sdk/extension/lifecycle.d.ts +52 -9
- package/dist/sdk/extension/lifecycle.js +1 -1
- package/dist/sdk/extension/resource-definition.d.ts +13 -10
- package/dist/sdk/extension/resource-definition.js +7 -2
- package/dist/sdk/extension/resource.d.ts +2 -2
- package/dist/sdk/extension/secret-source.d.ts +58 -0
- package/dist/sdk/extension/secret-source.js +78 -0
- package/dist/sdk/index.d.ts +2 -2
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/run/launcher.d.ts +1 -1
- package/dist/sdk/run/launcher.js +1 -1
- package/dist/sdk/run/payload.d.ts +16 -1
- package/dist/sdk/run/payload.js +17 -2
- package/dist/sdk/run/redact.js +2 -2
- package/dist/sdk/run/test-events.d.ts +23 -6
- package/dist/sdk/run/test-events.js +6 -4
- package/dist/sdk/run/test-result-writer.d.ts +8 -3
- package/dist/sdk/run/test-result-writer.js +22 -2
- package/dist/{commands/exec → shared}/cleanup.d.ts +3 -3
- package/dist/{commands/exec → shared}/cleanup.js +11 -6
- package/dist/shared/job-summary.d.ts +19 -0
- package/dist/{commands/exec → shared}/job-summary.js +17 -0
- package/dist/shared/sandbox-table.d.ts +48 -0
- package/dist/shared/sandbox-table.js +109 -0
- package/dist/{commands/exec → shared}/snapshot-text.d.ts +1 -1
- package/dist/{commands/exec → shared}/tests-summary.d.ts +22 -6
- package/dist/{commands/exec → shared}/tests-summary.js +74 -31
- package/dist/{commands/exec → shared}/text.d.ts +7 -2
- package/dist/{commands/exec → shared}/text.js +9 -1
- package/dist/{commands/exec → shared}/waterfall.d.ts +8 -6
- package/dist/{commands/exec → shared}/waterfall.js +71 -24
- package/dist/shared/worker-chart.d.ts +172 -0
- package/dist/shared/worker-chart.js +623 -0
- package/dist/vitest/config.d.ts +35 -11
- package/dist/vitest/config.js +47 -14
- package/dist/vitest/index.d.ts +1 -1
- package/dist/vitest/index.js +3 -3
- package/dist/vitest/sequencer.d.ts +23 -0
- package/dist/vitest/sequencer.js +73 -0
- package/dist/vitest/setup.d.ts +1 -0
- package/dist/vitest/setup.js +34 -0
- package/dist/vitest/test-events.d.ts +32 -6
- package/dist/vitest/test-events.js +25 -5
- package/dist/vitest/test-results.d.ts +8 -3
- package/dist/vitest/test-results.js +6 -0
- package/package.json +7 -2
- package/skills/overview.md +21 -17
- package/skills/plan-runs.md +67 -0
- package/skills/read-run-output.md +51 -19
- package/dist/chunks/chunk-E3QU74NX.js +0 -49
- package/dist/chunks/chunk-HP54VHGY.js +0 -201
- package/dist/chunks/chunk-NMVODY3P.js +0 -19
- package/dist/chunks/chunk-TVMEKVOW.js +0 -607
- package/dist/commands/exec/define-run-command.d.ts +0 -671
- package/dist/commands/exec/define-run-command.js +0 -91
- package/dist/commands/exec/job-summary.d.ts +0 -10
- package/dist/commands/exec/worker-chart.d.ts +0 -87
- package/dist/commands/exec/worker-chart.js +0 -343
- package/dist/commands/playwright/command.d.ts +0 -661
- package/dist/commands/playwright/command.js +0 -31
- package/dist/commands/playwright/metadata.js +0 -8
- package/dist/commands/vitest/command.d.ts +0 -662
- package/dist/commands/vitest/command.js +0 -31
- package/dist/commands/vitest/metadata.js +0 -8
- package/dist/sdk/extension/ci.d.ts +0 -2
- package/dist/sdk/extension/ci.js +0 -6
- package/dist/chunks/{chunk-YM6TZV4L.js → chunk-VL7WFTVQ.js} +52 -52
- package/dist/commands/{playwright → suites}/metadata.d.ts +1 -1
- package/dist/commands/{vitest → test}/metadata.d.ts +1 -1
- /package/dist/{commands → shared}/dashboard.d.ts +0 -0
- /package/dist/{commands → shared}/dashboard.js +0 -0
- /package/dist/{commands/exec → shared}/snapshot-text.js +0 -0
|
@@ -6,7 +6,7 @@ export declare const ranSchema: z.ZodObject<{
|
|
|
6
6
|
commit: z.ZodNullable<z.ZodString>;
|
|
7
7
|
configFile: z.ZodNullable<z.ZodString>;
|
|
8
8
|
resources: z.ZodType<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts, z.core.$ZodTypeInternals<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts>>;
|
|
9
|
-
cleanup: z.ZodType<import("
|
|
9
|
+
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
10
10
|
command: z.ZodObject<{
|
|
11
11
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
12
12
|
signal: z.ZodNullable<z.ZodString>;
|
|
@@ -65,15 +65,17 @@ export declare const ranSchema: z.ZodObject<{
|
|
|
65
65
|
}, z.core.$strip>>;
|
|
66
66
|
}, z.core.$strip>;
|
|
67
67
|
runId: z.ZodNullable<z.ZodString>;
|
|
68
|
-
noFinalTestResults: z.ZodBoolean;
|
|
69
68
|
}, z.core.$strip>;
|
|
70
69
|
/** What a `ran` outcome is, for its description. */
|
|
71
|
-
export declare const RAN_DESCRIPTION = "The command ran and ended. storm exits with its code, or 128 + n when signal n ended it, whatever this result's exit code.
|
|
70
|
+
export declare const RAN_DESCRIPTION = "The command ran and ended. storm exits with its code, or 128 + n when signal n ended it, whatever this result's exit code.";
|
|
72
71
|
/**
|
|
73
|
-
* How a `ran` outcome renders: its warnings, and the runner sandbox the run kept running, if any;
|
|
74
|
-
*
|
|
72
|
+
* How a `ran` outcome renders: its warnings, and the runner sandbox the run kept running, if any; when `noFinal` says
|
|
73
|
+
* the run saved no final test result, the `no_final_test_results` warning and `hints.addReporter` as its next steps.
|
|
75
74
|
*/
|
|
76
|
-
export declare function
|
|
75
|
+
export declare function renderRan(ran: z.output<typeof ranSchema>, noFinal?: {
|
|
76
|
+
readonly noFinalTestResults: boolean;
|
|
77
|
+
readonly hints: Pick<DriverHints, "addReporter">;
|
|
78
|
+
}): import("@vercel/clinkr").Rendered<{
|
|
77
79
|
message?: string;
|
|
78
80
|
warnings?: import("../../sdk/extension/reports.ts").Warning<string>[];
|
|
79
81
|
next?: {
|
|
@@ -83,14 +85,46 @@ export declare function ranRenderer(hints: Pick<DriverHints, "addReporter">): (r
|
|
|
83
85
|
}>;
|
|
84
86
|
/** The errors only a run ends with, beside the config's, the credential's, the resources' and the mint's. */
|
|
85
87
|
export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
88
|
+
conflictingOptions: z.ZodObject<{
|
|
89
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
90
|
+
flag: z.ZodString;
|
|
91
|
+
message: z.ZodString;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
runner: z.ZodEnum<{
|
|
94
|
+
"launch-machine": "launch-machine";
|
|
95
|
+
"vercel-sandbox": "vercel-sandbox";
|
|
96
|
+
}>;
|
|
97
|
+
suite: z.ZodNullable<z.ZodString>;
|
|
98
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
86
100
|
credentialUnused: z.ZodObject<{
|
|
87
101
|
flags: z.ZodArray<z.ZodString>;
|
|
88
102
|
configFile: z.ZodNullable<z.ZodString>;
|
|
89
103
|
}, z.core.$strip>;
|
|
104
|
+
resourceNeedsRunnerSandbox: z.ZodObject<{
|
|
105
|
+
resources: z.ZodArray<z.ZodString>;
|
|
106
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>;
|
|
90
108
|
missingRunner: z.ZodObject<{
|
|
91
109
|
configFile: z.ZodNullable<z.ZodString>;
|
|
92
110
|
}, z.core.$strip>;
|
|
93
|
-
|
|
111
|
+
credentialsInvalid: z.ZodObject<{
|
|
112
|
+
variables: z.ZodArray<z.ZodObject<{
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
problem: z.ZodEnum<{
|
|
115
|
+
missing: "missing";
|
|
116
|
+
multiline: "multiline";
|
|
117
|
+
short: "short";
|
|
118
|
+
}>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
minLength: z.ZodNumber;
|
|
121
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
keepSandboxUnsafeSecretEnvVars: z.ZodObject<{
|
|
124
|
+
variables: z.ZodArray<z.ZodString>;
|
|
125
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
unsafeSecretEnvVarsInvalid: z.ZodObject<{
|
|
94
128
|
variables: z.ZodArray<z.ZodObject<{
|
|
95
129
|
name: z.ZodString;
|
|
96
130
|
problem: z.ZodEnum<{
|
|
@@ -121,7 +155,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
121
155
|
path: z.ZodString;
|
|
122
156
|
message: z.ZodString;
|
|
123
157
|
}, z.core.$strip>>;
|
|
124
|
-
cleanup: z.ZodType<import("
|
|
158
|
+
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
125
159
|
}, z.core.$strip>;
|
|
126
160
|
runnerFailed: z.ZodObject<{
|
|
127
161
|
failure: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -147,15 +181,65 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
147
181
|
kind: z.ZodLiteral<"credential-claims-missing">;
|
|
148
182
|
team: z.ZodString;
|
|
149
183
|
project: z.ZodString;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
kind: z.ZodLiteral<"network-policy-failed">;
|
|
186
|
+
operation: z.ZodEnum<{
|
|
187
|
+
inject: "inject";
|
|
188
|
+
remove: "remove";
|
|
189
|
+
}>;
|
|
190
|
+
around: z.ZodEnum<{
|
|
191
|
+
command: "command";
|
|
192
|
+
"run-steps": "run-steps";
|
|
193
|
+
"snapshot-save": "snapshot-save";
|
|
194
|
+
"snapshot-steps": "snapshot-steps";
|
|
195
|
+
}>;
|
|
196
|
+
reason: z.ZodEnum<{
|
|
197
|
+
api: "api";
|
|
198
|
+
"timed-out": "timed-out";
|
|
199
|
+
}>;
|
|
200
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
201
|
+
message: z.ZodString;
|
|
150
202
|
}, z.core.$strip>]>;
|
|
151
|
-
cleanup: z.ZodType<import("
|
|
203
|
+
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
152
204
|
}, z.core.$strip>;
|
|
153
205
|
spawnFailed: z.ZodObject<{
|
|
154
206
|
executable: z.ZodString;
|
|
155
207
|
message: z.ZodString;
|
|
156
|
-
cleanup: z.ZodType<import("
|
|
208
|
+
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
157
209
|
}, z.core.$strip>;
|
|
158
210
|
}, {
|
|
211
|
+
readonly conflictingOptions: {
|
|
212
|
+
readonly exitCode: 2;
|
|
213
|
+
readonly description: "A run flag doesn't fit the effective runner: --show-output and --keep-sandbox fit the Vercel Sandbox runner, and --credential github-actions fits the launch machine runner.";
|
|
214
|
+
readonly schema: z.ZodObject<{
|
|
215
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
216
|
+
flag: z.ZodString;
|
|
217
|
+
message: z.ZodString;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
runner: z.ZodEnum<{
|
|
220
|
+
"launch-machine": "launch-machine";
|
|
221
|
+
"vercel-sandbox": "vercel-sandbox";
|
|
222
|
+
}>;
|
|
223
|
+
suite: z.ZodNullable<z.ZodString>;
|
|
224
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
readonly render: ({ conflicts, runner, suite }: {
|
|
227
|
+
conflicts: {
|
|
228
|
+
flag: string;
|
|
229
|
+
message: string;
|
|
230
|
+
}[];
|
|
231
|
+
runner: "launch-machine" | "vercel-sandbox";
|
|
232
|
+
suite: string | null;
|
|
233
|
+
configFile: string | null;
|
|
234
|
+
}) => {
|
|
235
|
+
message: string;
|
|
236
|
+
rows: ([string, string[]] | [string, "launch-machine" | "vercel-sandbox"] | readonly ["Suite", string])[];
|
|
237
|
+
next: {
|
|
238
|
+
type: "text";
|
|
239
|
+
text: string;
|
|
240
|
+
}[];
|
|
241
|
+
};
|
|
242
|
+
};
|
|
159
243
|
readonly credentialUnused: {
|
|
160
244
|
readonly exitCode: 2;
|
|
161
245
|
readonly description: "--credential was given to a run with no resource that takes a credential.";
|
|
@@ -174,9 +258,27 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
174
258
|
}[];
|
|
175
259
|
};
|
|
176
260
|
};
|
|
261
|
+
readonly resourceNeedsRunnerSandbox: {
|
|
262
|
+
readonly exitCode: 2;
|
|
263
|
+
readonly description: "A run on the launch machine uses a resource that needs a runner sandbox, such as one that gives the command a sandbox credential the runner sandbox's firewall adds, so the run didn't start: it minted, acquired, and started nothing.";
|
|
264
|
+
readonly schema: z.ZodObject<{
|
|
265
|
+
resources: z.ZodArray<z.ZodString>;
|
|
266
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
267
|
+
}, z.core.$strip>;
|
|
268
|
+
readonly render: ({ resources }: {
|
|
269
|
+
resources: string[];
|
|
270
|
+
configFile: string | null;
|
|
271
|
+
}) => {
|
|
272
|
+
message: string;
|
|
273
|
+
next: {
|
|
274
|
+
type: "text";
|
|
275
|
+
text: string;
|
|
276
|
+
}[];
|
|
277
|
+
};
|
|
278
|
+
};
|
|
177
279
|
readonly missingRunner: {
|
|
178
280
|
readonly exitCode: 2;
|
|
179
|
-
readonly description: "
|
|
281
|
+
readonly description: "No runner is declared: neither storm.config.ts (nor the selected suite) declares runner with vercelSandbox({ … }) or launchMachine(), and --runner launch-machine wasn't passed.";
|
|
180
282
|
readonly schema: z.ZodObject<{
|
|
181
283
|
configFile: z.ZodNullable<z.ZodString>;
|
|
182
284
|
}, z.core.$strip>;
|
|
@@ -190,9 +292,58 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
190
292
|
}[];
|
|
191
293
|
};
|
|
192
294
|
};
|
|
193
|
-
readonly
|
|
295
|
+
readonly credentialsInvalid: {
|
|
296
|
+
readonly exitCode: 2;
|
|
297
|
+
readonly description: "With the Vercel Sandbox runner, launcher environment variables named by the runner recipe's credentials key (source: { kind: \"env\", name }) can't be used, so the run didn't start: it minted, acquired, and created nothing. Each variable has one problem, the first of: missing, unset or empty; multiline, its value holds a carriage return or a line feed, which line-by-line output would split past storm's redaction; short, its value holds fewer than 8 characters, and storm shows each value as <token> wherever it appears in what it prints and writes, so a value that short would hide ordinary output.";
|
|
298
|
+
readonly schema: z.ZodObject<{
|
|
299
|
+
variables: z.ZodArray<z.ZodObject<{
|
|
300
|
+
name: z.ZodString;
|
|
301
|
+
problem: z.ZodEnum<{
|
|
302
|
+
missing: "missing";
|
|
303
|
+
multiline: "multiline";
|
|
304
|
+
short: "short";
|
|
305
|
+
}>;
|
|
306
|
+
}, z.core.$strip>>;
|
|
307
|
+
minLength: z.ZodNumber;
|
|
308
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
309
|
+
}, z.core.$strip>;
|
|
310
|
+
readonly render: ({ variables, minLength, configFile }: {
|
|
311
|
+
variables: {
|
|
312
|
+
name: string;
|
|
313
|
+
problem: "missing" | "multiline" | "short";
|
|
314
|
+
}[];
|
|
315
|
+
minLength: number;
|
|
316
|
+
configFile: string | null;
|
|
317
|
+
}) => {
|
|
318
|
+
message: string;
|
|
319
|
+
rows: [string, string[]][];
|
|
320
|
+
next: {
|
|
321
|
+
type: "text";
|
|
322
|
+
text: string;
|
|
323
|
+
}[];
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly keepSandboxUnsafeSecretEnvVars: {
|
|
194
327
|
readonly exitCode: 2;
|
|
195
|
-
readonly description: "
|
|
328
|
+
readonly description: "With the Vercel Sandbox runner, --keep-sandbox asked to keep the runner sandbox for a recipe whose unsafeSecretEnvVars passes secrets into the command's environment, so the run didn't start: it minted, acquired, and created nothing. Anyone who can update the Vercel project can connect to a kept runner sandbox and read what the command wrote.";
|
|
329
|
+
readonly schema: z.ZodObject<{
|
|
330
|
+
variables: z.ZodArray<z.ZodString>;
|
|
331
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
readonly render: ({ variables, configFile }: {
|
|
334
|
+
variables: string[];
|
|
335
|
+
configFile: string | null;
|
|
336
|
+
}) => {
|
|
337
|
+
message: string;
|
|
338
|
+
next: {
|
|
339
|
+
type: "text";
|
|
340
|
+
text: string;
|
|
341
|
+
}[];
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
readonly unsafeSecretEnvVarsInvalid: {
|
|
345
|
+
readonly exitCode: 2;
|
|
346
|
+
readonly description: "With the Vercel Sandbox runner, launcher environment variables named by the runner recipe's unsafeSecretEnvVars key (source: { kind: \"env\", name }) can't be used, so the run didn't start: it minted, acquired, and created nothing. Each variable has one problem, the first of: missing, unset or empty; multiline, its value holds a carriage return or a line feed, which line-by-line output would split past storm's redaction; short, its value holds fewer than 8 characters, and storm shows each value as <token> wherever it appears in what it prints and writes, so a value that short would hide ordinary output.";
|
|
196
347
|
readonly schema: z.ZodObject<{
|
|
197
348
|
variables: z.ZodArray<z.ZodObject<{
|
|
198
349
|
name: z.ZodString;
|
|
@@ -223,7 +374,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
223
374
|
};
|
|
224
375
|
readonly noBaseRef: {
|
|
225
376
|
readonly exitCode: 1;
|
|
226
|
-
readonly description: "
|
|
377
|
+
readonly description: "With the Vercel Sandbox runner, none of the runner recipe's baseRefs exists locally and shares history with HEAD, so there is no base. storm never fetches.";
|
|
227
378
|
readonly schema: z.ZodObject<{
|
|
228
379
|
refs: z.ZodArray<z.ZodObject<{
|
|
229
380
|
ref: z.ZodString;
|
|
@@ -249,7 +400,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
249
400
|
};
|
|
250
401
|
readonly submodulesRefused: {
|
|
251
402
|
readonly exitCode: 1;
|
|
252
|
-
readonly description: "
|
|
403
|
+
readonly description: "With the Vercel Sandbox runner, the checkout has Git submodules, which neither the upload nor the base's files carry.";
|
|
253
404
|
readonly schema: z.ZodObject<{
|
|
254
405
|
paths: z.ZodArray<z.ZodString>;
|
|
255
406
|
}, z.core.$strip>;
|
|
@@ -265,7 +416,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
265
416
|
};
|
|
266
417
|
readonly snapshotGone: {
|
|
267
418
|
readonly exitCode: 1;
|
|
268
|
-
readonly description: "
|
|
419
|
+
readonly description: "With the Vercel Sandbox runner, the cached runner snapshot the run picked was gone (the Sandbox API answered 410), so its cache entry was removed and the command didn't run. The next run picks another runner snapshot or builds one.";
|
|
269
420
|
readonly schema: z.ZodObject<{
|
|
270
421
|
snapshotId: z.ZodString;
|
|
271
422
|
base: z.ZodString;
|
|
@@ -273,7 +424,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
273
424
|
path: z.ZodString;
|
|
274
425
|
message: z.ZodString;
|
|
275
426
|
}, z.core.$strip>>;
|
|
276
|
-
cleanup: z.ZodType<import("
|
|
427
|
+
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
277
428
|
}, z.core.$strip>;
|
|
278
429
|
readonly render: ({ snapshotId, removal, cleanup }: {
|
|
279
430
|
snapshotId: string;
|
|
@@ -282,7 +433,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
282
433
|
path: string;
|
|
283
434
|
message: string;
|
|
284
435
|
} | null;
|
|
285
|
-
cleanup: import("
|
|
436
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
286
437
|
}) => {
|
|
287
438
|
message: string;
|
|
288
439
|
rows?: readonly import("@vercel/clinkr").Row[];
|
|
@@ -294,7 +445,7 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
294
445
|
};
|
|
295
446
|
readonly runnerFailed: {
|
|
296
447
|
readonly exitCode: 1;
|
|
297
|
-
readonly description: "
|
|
448
|
+
readonly description: "With the Vercel Sandbox runner, the runner couldn't run the command: a snapshot build step, applying the changes, the install, or the build failed (with the step's last 40 output lines), a Vercel Sandbox call failed, a network policy write that puts the recipe steps' credentials in place or removes them failed, git or tar failed on this machine, or the credential names no team and project ids.";
|
|
298
449
|
readonly schema: z.ZodObject<{
|
|
299
450
|
failure: z.ZodUnion<readonly [z.ZodObject<{
|
|
300
451
|
kind: z.ZodEnum<{
|
|
@@ -319,8 +470,26 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
319
470
|
kind: z.ZodLiteral<"credential-claims-missing">;
|
|
320
471
|
team: z.ZodString;
|
|
321
472
|
project: z.ZodString;
|
|
473
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
474
|
+
kind: z.ZodLiteral<"network-policy-failed">;
|
|
475
|
+
operation: z.ZodEnum<{
|
|
476
|
+
inject: "inject";
|
|
477
|
+
remove: "remove";
|
|
478
|
+
}>;
|
|
479
|
+
around: z.ZodEnum<{
|
|
480
|
+
command: "command";
|
|
481
|
+
"run-steps": "run-steps";
|
|
482
|
+
"snapshot-save": "snapshot-save";
|
|
483
|
+
"snapshot-steps": "snapshot-steps";
|
|
484
|
+
}>;
|
|
485
|
+
reason: z.ZodEnum<{
|
|
486
|
+
api: "api";
|
|
487
|
+
"timed-out": "timed-out";
|
|
488
|
+
}>;
|
|
489
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
490
|
+
message: z.ZodString;
|
|
322
491
|
}, z.core.$strip>]>;
|
|
323
|
-
cleanup: z.ZodType<import("
|
|
492
|
+
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
324
493
|
}, z.core.$strip>;
|
|
325
494
|
readonly render: ({ failure, cleanup }: {
|
|
326
495
|
failure: {
|
|
@@ -341,8 +510,15 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
341
510
|
kind: "credential-claims-missing";
|
|
342
511
|
team: string;
|
|
343
512
|
project: string;
|
|
513
|
+
} | {
|
|
514
|
+
kind: "network-policy-failed";
|
|
515
|
+
operation: "inject" | "remove";
|
|
516
|
+
around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
|
|
517
|
+
reason: "api" | "timed-out";
|
|
518
|
+
status: number | null;
|
|
519
|
+
message: string;
|
|
344
520
|
};
|
|
345
|
-
cleanup: import("
|
|
521
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
346
522
|
}) => {
|
|
347
523
|
message: string;
|
|
348
524
|
rows?: import("@vercel/clinkr").Row[];
|
|
@@ -358,12 +534,12 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
358
534
|
readonly schema: z.ZodObject<{
|
|
359
535
|
executable: z.ZodString;
|
|
360
536
|
message: z.ZodString;
|
|
361
|
-
cleanup: z.ZodType<import("
|
|
537
|
+
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
362
538
|
}, z.core.$strip>;
|
|
363
539
|
readonly render: ({ executable, message, cleanup }: {
|
|
364
540
|
executable: string;
|
|
365
541
|
message: string;
|
|
366
|
-
cleanup: import("
|
|
542
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
367
543
|
}) => {
|
|
368
544
|
message: string;
|
|
369
545
|
rows?: readonly import("@vercel/clinkr").Row[];
|
|
@@ -376,10 +552,27 @@ export declare const runErrors: import("@vercel/clinkr").SharedErrors<{
|
|
|
376
552
|
}>;
|
|
377
553
|
/** Every error a run ends with, in order: the config's, the credential's, a resource's refusal, the mint's, the run's. */
|
|
378
554
|
export declare const RUN_ERRORS: {
|
|
555
|
+
conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
|
|
556
|
+
conflicts: {
|
|
557
|
+
flag: string;
|
|
558
|
+
message: string;
|
|
559
|
+
}[];
|
|
560
|
+
runner: "launch-machine" | "vercel-sandbox";
|
|
561
|
+
suite: string | null;
|
|
562
|
+
configFile: string | null;
|
|
563
|
+
}]>;
|
|
379
564
|
credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
380
565
|
flags: string[];
|
|
381
566
|
configFile: string | null;
|
|
382
567
|
}]>;
|
|
568
|
+
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
569
|
+
variables: {
|
|
570
|
+
name: string;
|
|
571
|
+
problem: "missing" | "multiline" | "short";
|
|
572
|
+
}[];
|
|
573
|
+
minLength: number;
|
|
574
|
+
configFile: string | null;
|
|
575
|
+
}]>;
|
|
383
576
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
384
577
|
file: string;
|
|
385
578
|
problems: {
|
|
@@ -403,13 +596,17 @@ export declare const RUN_ERRORS: {
|
|
|
403
596
|
}[];
|
|
404
597
|
}[];
|
|
405
598
|
}]>;
|
|
599
|
+
keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
600
|
+
variables: string[];
|
|
601
|
+
configFile: string | null;
|
|
602
|
+
}]>;
|
|
406
603
|
mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
407
604
|
team: string;
|
|
408
605
|
project: string;
|
|
409
606
|
cause: string;
|
|
410
607
|
fix: string;
|
|
411
608
|
runner: boolean;
|
|
412
|
-
cleanup: import("
|
|
609
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
413
610
|
}]>;
|
|
414
611
|
missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
415
612
|
configFile: string | null;
|
|
@@ -423,11 +620,15 @@ export declare const RUN_ERRORS: {
|
|
|
423
620
|
reason: "missing" | "unrelated";
|
|
424
621
|
}[];
|
|
425
622
|
}]>;
|
|
623
|
+
resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
|
|
624
|
+
resources: string[];
|
|
625
|
+
configFile: string | null;
|
|
626
|
+
}]>;
|
|
426
627
|
resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
|
|
427
628
|
resource: string;
|
|
428
629
|
refusal: string;
|
|
429
630
|
data: Record<string, unknown>;
|
|
430
|
-
cleanup: import("
|
|
631
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
431
632
|
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
432
633
|
resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
433
634
|
resource: string;
|
|
@@ -454,16 +655,15 @@ export declare const RUN_ERRORS: {
|
|
|
454
655
|
kind: "credential-claims-missing";
|
|
455
656
|
team: string;
|
|
456
657
|
project: string;
|
|
658
|
+
} | {
|
|
659
|
+
kind: "network-policy-failed";
|
|
660
|
+
operation: "inject" | "remove";
|
|
661
|
+
around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
|
|
662
|
+
reason: "api" | "timed-out";
|
|
663
|
+
status: number | null;
|
|
664
|
+
message: string;
|
|
457
665
|
};
|
|
458
|
-
cleanup: import("
|
|
459
|
-
}]>;
|
|
460
|
-
runnerSecretsInvalid: import("@vercel/clinkr").SharedError<"runner_secrets_invalid", [data: {
|
|
461
|
-
variables: {
|
|
462
|
-
name: string;
|
|
463
|
-
problem: "missing" | "multiline" | "short";
|
|
464
|
-
}[];
|
|
465
|
-
minLength: number;
|
|
466
|
-
configFile: string | null;
|
|
666
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
467
667
|
}]>;
|
|
468
668
|
snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
469
669
|
snapshotId: string;
|
|
@@ -472,16 +672,24 @@ export declare const RUN_ERRORS: {
|
|
|
472
672
|
path: string;
|
|
473
673
|
message: string;
|
|
474
674
|
} | null;
|
|
475
|
-
cleanup: import("
|
|
675
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
476
676
|
}]>;
|
|
477
677
|
spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
478
678
|
executable: string;
|
|
479
679
|
message: string;
|
|
480
|
-
cleanup: import("
|
|
680
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
481
681
|
}]>;
|
|
482
682
|
submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
483
683
|
paths: string[];
|
|
484
684
|
}]>;
|
|
685
|
+
unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
|
|
686
|
+
variables: {
|
|
687
|
+
name: string;
|
|
688
|
+
problem: "missing" | "multiline" | "short";
|
|
689
|
+
}[];
|
|
690
|
+
minLength: number;
|
|
691
|
+
configFile: string | null;
|
|
692
|
+
}]>;
|
|
485
693
|
};
|
|
486
694
|
/** How `exec` ends. No outcome carries the credential. */
|
|
487
695
|
export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
@@ -490,7 +698,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
490
698
|
commit: z.ZodNullable<z.ZodString>;
|
|
491
699
|
configFile: z.ZodNullable<z.ZodString>;
|
|
492
700
|
resources: z.ZodType<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts, z.core.$ZodTypeInternals<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts>>;
|
|
493
|
-
cleanup: z.ZodType<import("
|
|
701
|
+
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
494
702
|
command: z.ZodObject<{
|
|
495
703
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
496
704
|
signal: z.ZodNullable<z.ZodString>;
|
|
@@ -549,15 +757,193 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
549
757
|
}, z.core.$strip>>;
|
|
550
758
|
}, z.core.$strip>;
|
|
551
759
|
runId: z.ZodNullable<z.ZodString>;
|
|
552
|
-
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
sandboxesRan: z.ZodObject<{
|
|
762
|
+
version: z.ZodString;
|
|
763
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
764
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
765
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
766
|
+
runDirectory: z.ZodNullable<z.ZodString>;
|
|
767
|
+
sandboxes: z.ZodArray<z.ZodObject<{
|
|
768
|
+
sandbox: z.ZodNumber;
|
|
769
|
+
argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
770
|
+
files: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
771
|
+
state: z.ZodEnum<{
|
|
772
|
+
canceled: "canceled";
|
|
773
|
+
failed: "failed";
|
|
774
|
+
"not-started": "not-started";
|
|
775
|
+
passed: "passed";
|
|
776
|
+
pending: "pending";
|
|
777
|
+
}>;
|
|
778
|
+
failedStage: z.ZodNullable<z.ZodEnum<{
|
|
779
|
+
apply: "apply";
|
|
780
|
+
build: "build";
|
|
781
|
+
checkout: "checkout";
|
|
782
|
+
command: "command";
|
|
783
|
+
install: "install";
|
|
784
|
+
mint: "mint";
|
|
785
|
+
resource: "resource";
|
|
786
|
+
snapshot: "snapshot";
|
|
787
|
+
start: "start";
|
|
788
|
+
storm: "storm";
|
|
789
|
+
upload: "upload";
|
|
790
|
+
}>>;
|
|
791
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
792
|
+
cause: z.ZodNullable<z.ZodString>;
|
|
793
|
+
name: z.ZodNullable<z.ZodString>;
|
|
794
|
+
keptUntil: z.ZodNullable<z.ZodString>;
|
|
795
|
+
preparedMs: z.ZodNullable<z.ZodNumber>;
|
|
796
|
+
commandMs: z.ZodNullable<z.ZodNumber>;
|
|
797
|
+
tests: z.ZodNullable<z.ZodObject<{
|
|
798
|
+
passed: z.ZodNumber;
|
|
799
|
+
failed: z.ZodNumber;
|
|
800
|
+
skipped: z.ZodNumber;
|
|
801
|
+
}, z.core.$strip>>;
|
|
802
|
+
tail: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
803
|
+
}, z.core.$strip>>;
|
|
804
|
+
states: z.ZodObject<{
|
|
805
|
+
passed: z.ZodNumber;
|
|
806
|
+
failed: z.ZodNumber;
|
|
807
|
+
"not-started": z.ZodNumber;
|
|
808
|
+
canceled: z.ZodNumber;
|
|
809
|
+
}, z.core.$strip>;
|
|
810
|
+
tests: z.ZodNullable<z.ZodObject<{
|
|
811
|
+
passed: z.ZodNumber;
|
|
812
|
+
failed: z.ZodNumber;
|
|
813
|
+
skipped: z.ZodNumber;
|
|
814
|
+
}, z.core.$strip>>;
|
|
815
|
+
plan: z.ZodObject<{
|
|
816
|
+
tests: z.ZodOptional<z.ZodNumber>;
|
|
817
|
+
files: z.ZodOptional<z.ZodNumber>;
|
|
818
|
+
options: z.ZodArray<z.ZodObject<{
|
|
819
|
+
path: z.ZodString;
|
|
820
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
821
|
+
from: z.ZodEnum<{
|
|
822
|
+
default: "default";
|
|
823
|
+
file: "file";
|
|
824
|
+
flag: "flag";
|
|
825
|
+
}>;
|
|
826
|
+
}, z.core.$strip>>;
|
|
827
|
+
sandboxes: z.ZodOptional<z.ZodObject<{
|
|
828
|
+
count: z.ZodNumber;
|
|
829
|
+
from: z.ZodEnum<{
|
|
830
|
+
default: "default";
|
|
831
|
+
"file-lists": "file-lists";
|
|
832
|
+
flag: "flag";
|
|
833
|
+
}>;
|
|
834
|
+
max: z.ZodNumber;
|
|
835
|
+
default: z.ZodOptional<z.ZodNumber>;
|
|
836
|
+
requested: z.ZodOptional<z.ZodNumber>;
|
|
837
|
+
leftOut: z.ZodOptional<z.ZodNumber>;
|
|
838
|
+
}, z.core.$strip>>;
|
|
839
|
+
}, z.core.$strip>;
|
|
840
|
+
resources: z.ZodType<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts, z.core.$ZodTypeInternals<import("../../core/resource-reports.ts").InstanceFacts, import("../../core/resource-reports.ts").InstanceFacts>>;
|
|
841
|
+
wallMs: z.ZodNumber;
|
|
842
|
+
runner: z.ZodObject<{
|
|
843
|
+
snapshotId: z.ZodString;
|
|
844
|
+
base: z.ZodString;
|
|
845
|
+
builtBehind: z.ZodNullable<z.ZodNumber>;
|
|
846
|
+
built: z.ZodBoolean;
|
|
847
|
+
vcpus: z.ZodNumber;
|
|
848
|
+
region: z.ZodString;
|
|
849
|
+
runtime: z.ZodString;
|
|
850
|
+
uploadBytes: z.ZodNullable<z.ZodNumber>;
|
|
851
|
+
}, z.core.$strip>;
|
|
852
|
+
cleanup: z.ZodType<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../../shared/cleanup.ts").StormCleanupFacts, import("../../shared/cleanup.ts").StormCleanupFacts>>;
|
|
853
|
+
kept: z.ZodArray<z.ZodObject<{
|
|
854
|
+
sandbox: z.ZodNumber;
|
|
855
|
+
name: z.ZodString;
|
|
856
|
+
stopsAt: z.ZodString;
|
|
857
|
+
url: z.ZodString;
|
|
858
|
+
}, z.core.$strip>>;
|
|
859
|
+
notKept: z.ZodArray<z.ZodObject<{
|
|
860
|
+
sandbox: z.ZodNumber;
|
|
861
|
+
name: z.ZodString;
|
|
862
|
+
message: z.ZodString;
|
|
863
|
+
}, z.core.$strip>>;
|
|
864
|
+
fileListMismatches: z.ZodArray<z.ZodObject<{
|
|
865
|
+
sandbox: z.ZodNumber;
|
|
866
|
+
missing: z.ZodArray<z.ZodString>;
|
|
867
|
+
extra: z.ZodArray<z.ZodString>;
|
|
868
|
+
}, z.core.$strip>>;
|
|
869
|
+
}, z.core.$strip>;
|
|
870
|
+
planned: z.ZodObject<{
|
|
871
|
+
version: z.ZodString;
|
|
872
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
873
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
874
|
+
argv: z.ZodArray<z.ZodString>;
|
|
875
|
+
plan: z.ZodNullable<z.ZodObject<{
|
|
876
|
+
tests: z.ZodOptional<z.ZodNumber>;
|
|
877
|
+
files: z.ZodOptional<z.ZodNumber>;
|
|
878
|
+
options: z.ZodArray<z.ZodObject<{
|
|
879
|
+
path: z.ZodString;
|
|
880
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
881
|
+
from: z.ZodEnum<{
|
|
882
|
+
default: "default";
|
|
883
|
+
file: "file";
|
|
884
|
+
flag: "flag";
|
|
885
|
+
}>;
|
|
886
|
+
}, z.core.$strip>>;
|
|
887
|
+
sandboxes: z.ZodOptional<z.ZodObject<{
|
|
888
|
+
count: z.ZodNumber;
|
|
889
|
+
from: z.ZodEnum<{
|
|
890
|
+
default: "default";
|
|
891
|
+
"file-lists": "file-lists";
|
|
892
|
+
flag: "flag";
|
|
893
|
+
}>;
|
|
894
|
+
max: z.ZodNumber;
|
|
895
|
+
default: z.ZodOptional<z.ZodNumber>;
|
|
896
|
+
requested: z.ZodOptional<z.ZodNumber>;
|
|
897
|
+
leftOut: z.ZodOptional<z.ZodNumber>;
|
|
898
|
+
}, z.core.$strip>>;
|
|
899
|
+
}, z.core.$strip>>;
|
|
900
|
+
testFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
901
|
+
runnerSandboxes: z.ZodNullable<z.ZodObject<{
|
|
902
|
+
max: z.ZodNumber;
|
|
903
|
+
default: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"function">]>>;
|
|
904
|
+
}, z.core.$strip>>;
|
|
905
|
+
sandboxes: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
906
|
+
sandbox: z.ZodNumber;
|
|
907
|
+
argv: z.ZodArray<z.ZodString>;
|
|
908
|
+
files: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
909
|
+
}, z.core.$strip>>>;
|
|
910
|
+
options: z.ZodArray<z.ZodObject<{
|
|
911
|
+
path: z.ZodString;
|
|
912
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
913
|
+
from: z.ZodEnum<{
|
|
914
|
+
default: "default";
|
|
915
|
+
file: "file";
|
|
916
|
+
flag: "flag";
|
|
917
|
+
}>;
|
|
918
|
+
}, z.core.$strip>>;
|
|
919
|
+
vcpus: z.ZodNullable<z.ZodNumber>;
|
|
553
920
|
}, z.core.$strip>;
|
|
554
921
|
}, {
|
|
555
922
|
ran: unknown;
|
|
923
|
+
sandboxesRan: unknown;
|
|
924
|
+
planned: unknown;
|
|
556
925
|
}, {
|
|
926
|
+
conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
|
|
927
|
+
conflicts: {
|
|
928
|
+
flag: string;
|
|
929
|
+
message: string;
|
|
930
|
+
}[];
|
|
931
|
+
runner: "launch-machine" | "vercel-sandbox";
|
|
932
|
+
suite: string | null;
|
|
933
|
+
configFile: string | null;
|
|
934
|
+
}]>;
|
|
557
935
|
credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
558
936
|
flags: string[];
|
|
559
937
|
configFile: string | null;
|
|
560
938
|
}]>;
|
|
939
|
+
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
940
|
+
variables: {
|
|
941
|
+
name: string;
|
|
942
|
+
problem: "missing" | "multiline" | "short";
|
|
943
|
+
}[];
|
|
944
|
+
minLength: number;
|
|
945
|
+
configFile: string | null;
|
|
946
|
+
}]>;
|
|
561
947
|
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
562
948
|
file: string;
|
|
563
949
|
problems: {
|
|
@@ -581,17 +967,26 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
581
967
|
}[];
|
|
582
968
|
}[];
|
|
583
969
|
}]>;
|
|
970
|
+
keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
971
|
+
variables: string[];
|
|
972
|
+
configFile: string | null;
|
|
973
|
+
}]>;
|
|
584
974
|
mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
585
975
|
team: string;
|
|
586
976
|
project: string;
|
|
587
977
|
cause: string;
|
|
588
978
|
fix: string;
|
|
589
979
|
runner: boolean;
|
|
590
|
-
cleanup: import("
|
|
980
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
591
981
|
}]>;
|
|
592
982
|
missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
593
983
|
configFile: string | null;
|
|
594
984
|
}]>;
|
|
985
|
+
missingSandboxesMax: import("@vercel/clinkr").SharedError<"missing_sandboxes_max", [data: {
|
|
986
|
+
flag: "--file-lists" | "--sandboxes";
|
|
987
|
+
key: string;
|
|
988
|
+
configFile: string | null;
|
|
989
|
+
}]>;
|
|
595
990
|
missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
596
991
|
missing: ("project" | "scope")[];
|
|
597
992
|
}]>;
|
|
@@ -601,11 +996,15 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
601
996
|
reason: "missing" | "unrelated";
|
|
602
997
|
}[];
|
|
603
998
|
}]>;
|
|
999
|
+
resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
|
|
1000
|
+
resources: string[];
|
|
1001
|
+
configFile: string | null;
|
|
1002
|
+
}]>;
|
|
604
1003
|
resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
|
|
605
1004
|
resource: string;
|
|
606
1005
|
refusal: string;
|
|
607
1006
|
data: Record<string, unknown>;
|
|
608
|
-
cleanup: import("
|
|
1007
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
609
1008
|
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
610
1009
|
resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
611
1010
|
resource: string;
|
|
@@ -632,15 +1031,21 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
632
1031
|
kind: "credential-claims-missing";
|
|
633
1032
|
team: string;
|
|
634
1033
|
project: string;
|
|
1034
|
+
} | {
|
|
1035
|
+
kind: "network-policy-failed";
|
|
1036
|
+
operation: "inject" | "remove";
|
|
1037
|
+
around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
|
|
1038
|
+
reason: "api" | "timed-out";
|
|
1039
|
+
status: number | null;
|
|
1040
|
+
message: string;
|
|
635
1041
|
};
|
|
636
|
-
cleanup: import("
|
|
1042
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
637
1043
|
}]>;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
minLength: number;
|
|
1044
|
+
sandboxesOverMax: import("@vercel/clinkr").SharedError<"sandboxes_over_max", [data: {
|
|
1045
|
+
flag: "--file-lists" | "--sandboxes";
|
|
1046
|
+
sandboxes: number;
|
|
1047
|
+
key: string;
|
|
1048
|
+
max: number;
|
|
644
1049
|
configFile: string | null;
|
|
645
1050
|
}]>;
|
|
646
1051
|
snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
@@ -650,22 +1055,47 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
650
1055
|
path: string;
|
|
651
1056
|
message: string;
|
|
652
1057
|
} | null;
|
|
653
|
-
cleanup: import("
|
|
1058
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
654
1059
|
}]>;
|
|
655
1060
|
spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
656
1061
|
executable: string;
|
|
657
1062
|
message: string;
|
|
658
|
-
cleanup: import("
|
|
1063
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
659
1064
|
}]>;
|
|
660
1065
|
submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
661
1066
|
paths: string[];
|
|
662
1067
|
}]>;
|
|
1068
|
+
unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
|
|
1069
|
+
variables: {
|
|
1070
|
+
name: string;
|
|
1071
|
+
problem: "missing" | "multiline" | "short";
|
|
1072
|
+
}[];
|
|
1073
|
+
minLength: number;
|
|
1074
|
+
configFile: string | null;
|
|
1075
|
+
}]>;
|
|
663
1076
|
}, {
|
|
664
|
-
|
|
1077
|
+
readonly conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
|
|
1078
|
+
conflicts: {
|
|
1079
|
+
flag: string;
|
|
1080
|
+
message: string;
|
|
1081
|
+
}[];
|
|
1082
|
+
runner: "launch-machine" | "vercel-sandbox";
|
|
1083
|
+
suite: string | null;
|
|
1084
|
+
configFile: string | null;
|
|
1085
|
+
}]>;
|
|
1086
|
+
readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
|
|
665
1087
|
flags: string[];
|
|
666
1088
|
configFile: string | null;
|
|
667
1089
|
}]>;
|
|
668
|
-
|
|
1090
|
+
readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
1091
|
+
variables: {
|
|
1092
|
+
name: string;
|
|
1093
|
+
problem: "missing" | "multiline" | "short";
|
|
1094
|
+
}[];
|
|
1095
|
+
minLength: number;
|
|
1096
|
+
configFile: string | null;
|
|
1097
|
+
}]>;
|
|
1098
|
+
readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
669
1099
|
file: string;
|
|
670
1100
|
problems: {
|
|
671
1101
|
key: string | null;
|
|
@@ -676,7 +1106,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
676
1106
|
problem: string;
|
|
677
1107
|
}[];
|
|
678
1108
|
}]>;
|
|
679
|
-
invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
1109
|
+
readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
|
|
680
1110
|
configFile: string | null;
|
|
681
1111
|
problems: {
|
|
682
1112
|
key: string;
|
|
@@ -688,39 +1118,52 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
688
1118
|
}[];
|
|
689
1119
|
}[];
|
|
690
1120
|
}]>;
|
|
691
|
-
|
|
1121
|
+
readonly keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
1122
|
+
variables: string[];
|
|
1123
|
+
configFile: string | null;
|
|
1124
|
+
}]>;
|
|
1125
|
+
readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
692
1126
|
team: string;
|
|
693
1127
|
project: string;
|
|
694
1128
|
cause: string;
|
|
695
1129
|
fix: string;
|
|
696
1130
|
runner: boolean;
|
|
697
|
-
cleanup: import("
|
|
1131
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
698
1132
|
}]>;
|
|
699
|
-
missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
1133
|
+
readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
|
|
700
1134
|
configFile: string | null;
|
|
701
1135
|
}]>;
|
|
702
|
-
|
|
1136
|
+
readonly missingSandboxesMax: import("@vercel/clinkr").SharedError<"missing_sandboxes_max", [data: {
|
|
1137
|
+
flag: "--file-lists" | "--sandboxes";
|
|
1138
|
+
key: string;
|
|
1139
|
+
configFile: string | null;
|
|
1140
|
+
}]>;
|
|
1141
|
+
readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
703
1142
|
missing: ("project" | "scope")[];
|
|
704
1143
|
}]>;
|
|
705
|
-
noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
1144
|
+
readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
|
|
706
1145
|
refs: {
|
|
707
1146
|
ref: string;
|
|
708
1147
|
reason: "missing" | "unrelated";
|
|
709
1148
|
}[];
|
|
710
1149
|
}]>;
|
|
711
|
-
|
|
1150
|
+
readonly resourceNeedsRunnerSandbox: import("@vercel/clinkr").SharedError<"resource_needs_runner_sandbox", [data: {
|
|
1151
|
+
resources: string[];
|
|
1152
|
+
configFile: string | null;
|
|
1153
|
+
}]>;
|
|
1154
|
+
readonly resourceRefused: import("@vercel/clinkr").SharedError<"resource_refused", [data: {
|
|
712
1155
|
resource: string;
|
|
713
1156
|
refusal: string;
|
|
714
1157
|
data: Record<string, unknown>;
|
|
715
|
-
cleanup: import("
|
|
1158
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
716
1159
|
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
717
|
-
resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
1160
|
+
readonly resourceRefusedBeforeRun: import("@vercel/clinkr").SharedError<"resource_refused_before_run", [data: {
|
|
718
1161
|
resource: string;
|
|
719
1162
|
refusal: string;
|
|
720
1163
|
data: Record<string, unknown>;
|
|
721
1164
|
configFile: string | null;
|
|
722
1165
|
}, refusal: import("../../sdk/extension/lifecycle.ts").RefusalContent]>;
|
|
723
|
-
runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
1166
|
+
readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
724
1167
|
failure: {
|
|
725
1168
|
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
726
1169
|
label: string;
|
|
@@ -739,32 +1182,46 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
739
1182
|
kind: "credential-claims-missing";
|
|
740
1183
|
team: string;
|
|
741
1184
|
project: string;
|
|
1185
|
+
} | {
|
|
1186
|
+
kind: "network-policy-failed";
|
|
1187
|
+
operation: "inject" | "remove";
|
|
1188
|
+
around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
|
|
1189
|
+
reason: "api" | "timed-out";
|
|
1190
|
+
status: number | null;
|
|
1191
|
+
message: string;
|
|
742
1192
|
};
|
|
743
|
-
cleanup: import("
|
|
1193
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
744
1194
|
}]>;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
minLength: number;
|
|
1195
|
+
readonly sandboxesOverMax: import("@vercel/clinkr").SharedError<"sandboxes_over_max", [data: {
|
|
1196
|
+
flag: "--file-lists" | "--sandboxes";
|
|
1197
|
+
sandboxes: number;
|
|
1198
|
+
key: string;
|
|
1199
|
+
max: number;
|
|
751
1200
|
configFile: string | null;
|
|
752
1201
|
}]>;
|
|
753
|
-
snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
1202
|
+
readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
|
|
754
1203
|
snapshotId: string;
|
|
755
1204
|
base: string;
|
|
756
1205
|
removal: {
|
|
757
1206
|
path: string;
|
|
758
1207
|
message: string;
|
|
759
1208
|
} | null;
|
|
760
|
-
cleanup: import("
|
|
1209
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
761
1210
|
}]>;
|
|
762
|
-
spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
1211
|
+
readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
|
|
763
1212
|
executable: string;
|
|
764
1213
|
message: string;
|
|
765
|
-
cleanup: import("
|
|
1214
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
766
1215
|
}]>;
|
|
767
|
-
submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
1216
|
+
readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
|
|
768
1217
|
paths: string[];
|
|
769
1218
|
}]>;
|
|
1219
|
+
readonly unsafeSecretEnvVarsInvalid: import("@vercel/clinkr").SharedError<"unsafe_secret_env_vars_invalid", [data: {
|
|
1220
|
+
variables: {
|
|
1221
|
+
name: string;
|
|
1222
|
+
problem: "missing" | "multiline" | "short";
|
|
1223
|
+
}[];
|
|
1224
|
+
minLength: number;
|
|
1225
|
+
configFile: string | null;
|
|
1226
|
+
}]>;
|
|
770
1227
|
}>;
|