@cnc-tools/storm 0.16.0 → 0.18.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/bin/storm.js +54 -40
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-VL7WFTVQ.js → chunk-24UYAK4R.js} +465 -365
- package/dist/chunks/{chunk-DC2CDHNK.js → chunk-2JMWUKH3.js} +2074 -473
- package/dist/chunks/{chunk-FOZWA52V.js → chunk-3VXZONGE.js} +481 -376
- package/dist/chunks/{chunk-ZG3WQ4UF.js → chunk-55O4FCN4.js} +1 -1
- package/dist/chunks/{chunk-CN4EFA5J.js → chunk-72ZFEMAW.js} +1 -1
- package/dist/chunks/chunk-AS37D43E.js +2173 -0
- package/dist/chunks/chunk-CQAY6GLP.js +1260 -0
- package/dist/chunks/chunk-DZLU7BYK.js +340 -0
- package/dist/chunks/{chunk-R7XVBZOY.js → chunk-EEENLQHE.js} +59 -11
- package/dist/chunks/{chunk-TJNFVNKR.js → chunk-EI3XDCEI.js} +1 -1
- package/dist/chunks/{chunk-HVNK3I45.js → chunk-FDUY3BNF.js} +1 -1
- package/dist/chunks/{chunk-FCQUJDA4.js → chunk-GUCCYCIO.js} +4 -189
- package/dist/chunks/{chunk-OIY3DMF2.js → chunk-HBI4LEMH.js} +3 -3
- package/dist/chunks/{chunk-2MAD5NKK.js → chunk-K4MDQPLW.js} +1 -18
- package/dist/chunks/chunk-KK7PAWIZ.js +198 -0
- package/dist/chunks/{chunk-G3PHMXH5.js → chunk-KQ5FXRUD.js} +18 -1
- package/dist/chunks/{chunk-5VXBKPW6.js → chunk-LKXHGGGX.js} +1 -1
- package/dist/chunks/{chunk-P357TZAY.js → chunk-LOGHIUUB.js} +21 -18
- package/dist/chunks/{chunk-CK2GZEPK.js → chunk-OEPFINFT.js} +2 -2
- package/dist/chunks/{chunk-DWEAHX4T.js → chunk-OI4AP6Z7.js} +5 -5
- package/dist/chunks/{chunk-V4IKA3WI.js → chunk-PMBQWVTW.js} +26 -19
- package/dist/chunks/chunk-SZMYIIG2.js +88 -0
- package/dist/chunks/{chunk-5CCP36QQ.js → chunk-TXCOFC7N.js} +1 -1
- package/dist/chunks/{chunk-VUPZH7J2.js → chunk-UXD3TVWM.js} +1 -1
- package/dist/chunks/{chunk-3L52KNQA.js → chunk-WNW2QXQK.js} +8 -8
- package/dist/chunks/{chunk-AWBSONHB.js → chunk-XBDRVFEV.js} +55 -16
- package/dist/chunks/{live-app-WECQOQ4C.js → live-app-UY7BEDUN.js} +17 -13
- package/dist/cli.d.ts +28 -0
- package/dist/cli.js +64 -0
- package/dist/commands/exec/across-sandboxes-outcomes.d.ts +2 -2
- package/dist/commands/exec/across-sandboxes-outcomes.js +3 -3
- package/dist/commands/exec/before-run.d.ts +123 -0
- package/dist/commands/exec/before-run.js +105 -0
- package/dist/commands/exec/command.d.ts +67 -14
- package/dist/commands/exec/command.js +31 -95
- package/dist/commands/exec/driver-plan.d.ts +9 -4
- package/dist/commands/exec/driver-plan.js +8 -8
- package/dist/commands/exec/exec-words.js +1 -1
- package/dist/commands/exec/execute-run.d.ts +39 -0
- package/dist/commands/exec/execute-run.js +325 -0
- package/dist/commands/exec/live-view.d.ts +3 -3
- package/dist/commands/exec/live-view.js +16 -15
- package/dist/commands/exec/metadata.js +1 -1
- package/dist/commands/exec/mint-failed.d.ts +38 -0
- package/dist/commands/exec/mint-failed.js +27 -4
- package/dist/commands/exec/outcomes.d.ts +104 -22
- package/dist/commands/exec/outcomes.js +73 -26
- package/dist/commands/exec/plan-run.d.ts +58 -150
- package/dist/commands/exec/plan-run.js +239 -90
- package/dist/commands/exec/progress.d.ts +10 -6
- package/dist/commands/exec/progress.js +38 -25
- package/dist/commands/exec/run-bin.d.ts +11 -11
- package/dist/commands/exec/run-bin.js +9 -9
- package/dist/commands/exec/run-flags.d.ts +69 -0
- package/dist/commands/exec/run-flags.js +58 -0
- package/dist/commands/exec/run-metadata.js +4 -4
- package/dist/commands/exec/run-summary.d.ts +58 -0
- package/dist/commands/exec/run-summary.js +205 -0
- package/dist/commands/exec/runner-refusals.d.ts +82 -0
- package/dist/commands/exec/runner-refusals.js +71 -0
- package/dist/commands/exec/sandbox-progress.js +3 -0
- package/dist/commands/exec/stopped-outcome.d.ts +12 -0
- package/dist/commands/exec/stopped-outcome.js +77 -0
- package/dist/commands/exec/view.d.ts +20 -11
- package/dist/commands/exec/view.js +103 -47
- package/dist/commands/runs/facts.d.ts +8 -4
- package/dist/commands/runs/facts.js +19 -10
- package/dist/commands/runs/list/command.d.ts +16 -8
- package/dist/commands/runs/list/command.js +10 -10
- package/dist/commands/runs/list/outcomes.d.ts +8 -4
- package/dist/commands/runs/logs/command.js +10 -10
- package/dist/commands/runs/show/command.d.ts +16 -8
- package/dist/commands/runs/show/command.js +31 -29
- package/dist/commands/runs/show/metadata.js +1 -1
- package/dist/commands/runs/show/outcomes.d.ts +8 -4
- package/dist/commands/runs/show/outcomes.js +8 -6
- package/dist/commands/snapshots/access.d.ts +111 -0
- package/dist/commands/snapshots/access.js +96 -0
- package/dist/commands/snapshots/build/command.d.ts +376 -101
- package/dist/commands/snapshots/build/command.js +447 -149
- package/dist/commands/snapshots/build/metadata.d.ts +10 -0
- package/dist/commands/snapshots/build/metadata.js +31 -11
- package/dist/commands/snapshots/build/outcomes.d.ts +242 -47
- package/dist/commands/snapshots/build/outcomes.js +200 -36
- package/dist/commands/snapshots/list/command.d.ts +368 -27
- package/dist/commands/snapshots/list/command.js +298 -68
- package/dist/commands/snapshots/list/metadata.d.ts +16 -0
- package/dist/commands/snapshots/list/metadata.js +29 -6
- package/dist/commands/snapshots/list/outcomes.d.ts +247 -15
- package/dist/commands/snapshots/list/outcomes.js +223 -52
- package/dist/commands/snapshots/metadata.js +1 -1
- package/dist/commands/snapshots/prune/command.d.ts +430 -0
- package/dist/commands/snapshots/prune/command.js +161 -0
- package/dist/commands/snapshots/prune/metadata.d.ts +28 -0
- package/dist/commands/snapshots/prune/metadata.js +39 -0
- package/dist/commands/snapshots/prune/outcomes.d.ts +208 -0
- package/dist/commands/snapshots/prune/outcomes.js +78 -0
- package/dist/commands/suites/list/command.js +17 -17
- package/dist/commands/suites/list/outcomes.js +2 -2
- package/dist/commands/test/command.d.ts +67 -14
- package/dist/commands/test/command.js +49 -252
- package/dist/commands/test/outcomes.d.ts +33 -7
- package/dist/config/check-runner.d.ts +3 -3
- package/dist/config/check-runner.js +8 -7
- package/dist/config/credential-resolver.d.ts +50 -5
- package/dist/config/credential-resolver.js +51 -19
- package/dist/config/credential-settle.d.ts +6 -2
- package/dist/config/credential-settle.js +11 -5
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +1 -1
- package/dist/config/runner.d.ts +5 -5
- package/dist/config/runner.js +1 -1
- package/dist/config/schema.d.ts +2 -2
- package/dist/config/schema.js +1 -1
- package/dist/config-file/define.d.ts +1 -1
- package/dist/config-file/define.js +1 -1
- package/dist/config-file/runner.d.ts +5 -5
- package/dist/config-file/toolchain.d.ts +14 -4
- package/dist/config-file/toolchain.js +43 -7
- package/dist/context.d.ts +10 -6
- package/dist/context.js +8 -6
- package/dist/core/across-sandboxes.d.ts +7 -6
- package/dist/core/across-sandboxes.js +123 -152
- package/dist/core/coordinator.d.ts +166 -0
- package/dist/core/coordinator.js +233 -0
- package/dist/core/events.d.ts +2 -2
- package/dist/core/index.d.ts +4 -2
- package/dist/core/index.js +1 -1
- package/dist/core/outcomes.d.ts +148 -0
- package/dist/core/{sandbox-end.js → outcomes.js} +28 -4
- package/dist/core/resources.d.ts +31 -53
- package/dist/core/resources.js +32 -70
- package/dist/core/run-state.d.ts +7 -1
- package/dist/core/run-state.js +2 -0
- package/dist/core/run.d.ts +32 -236
- package/dist/core/run.js +107 -267
- package/dist/core/state-directory.d.ts +1 -1
- package/dist/core/state-directory.js +2 -2
- package/dist/credential/gateways.d.ts +15 -1
- package/dist/credential/index.d.ts +4 -3
- package/dist/credential/index.js +3 -2
- package/dist/credential/live/vercel-cli-gateway.d.ts +1 -1
- package/dist/credential/live/vercel-cli-gateway.js +1 -1
- package/dist/credential/live/vercel-oidc-token-gateway.d.ts +11 -0
- package/dist/credential/live/vercel-oidc-token-gateway.js +16 -0
- package/dist/credential/source.d.ts +73 -6
- package/dist/credential/source.js +55 -2
- package/dist/extension-commands.d.ts +1 -1
- package/dist/extension-commands.js +2 -2
- package/dist/extensions/testserver/commands/pool/create/command.d.ts +35 -2
- package/dist/extensions/testserver/commands/pool/create/command.js +7 -7
- package/dist/extensions/testserver/commands/pool/create/metadata.js +5 -5
- package/dist/extensions/testserver/commands/pool/create/outcomes.d.ts +17 -1
- package/dist/extensions/testserver/commands/pool/list/command.js +4 -4
- package/dist/extensions/testserver/credential-facts.d.ts +6 -2
- package/dist/extensions/testserver/credential-facts.js +29 -11
- package/dist/extensions/testserver/lifecycle.js +7 -1
- package/dist/extensions/testserver/limit.d.ts +3 -0
- package/dist/extensions/testserver/limit.js +3 -0
- package/dist/extensions/testserver/provision.d.ts +8 -1
- package/dist/extensions/testserver/provision.js +8 -3
- package/dist/extensions/testserver/refusals.d.ts +6 -1
- package/dist/extensions/testserver/refusals.js +16 -1
- package/dist/extensions/testserver/resource.d.ts +1 -1
- package/dist/extensions/testserver/resource.js +1 -1
- package/dist/extensions/testserver/result.d.ts +1 -1
- package/dist/extensions/testserver/result.js +9 -4
- package/dist/planning/driver-file-lists.d.ts +0 -15
- package/dist/planning/driver-file-lists.js +2 -21
- package/dist/planning/plan-only.d.ts +3 -14
- package/dist/planning/plan-only.js +11 -20
- package/dist/planning/run-kind-flags.js +2 -2
- package/dist/planning/run-plan.d.ts +45 -12
- package/dist/planning/run-plan.js +4 -3
- package/dist/planning/suites.d.ts +1 -1
- package/dist/planning/suites.js +2 -2
- package/dist/planning/test-plan.d.ts +9 -0
- package/dist/planning/test-plan.js +9 -0
- package/dist/run-directory/recording.js +3 -3
- package/dist/run-directory/run-record.d.ts +26 -11
- package/dist/run-directory/run-record.js +16 -13
- package/dist/runner/base.js +1 -1
- package/dist/runner/build-snapshots.d.ts +60 -29
- package/dist/runner/build-snapshots.js +136 -29
- package/dist/runner/context.d.ts +15 -7
- package/dist/runner/context.js +19 -6
- package/dist/runner/events.d.ts +16 -10
- package/dist/runner/gateways.d.ts +122 -23
- package/dist/runner/gateways.js +1 -1
- package/dist/runner/gh.d.ts +42 -0
- package/dist/runner/gh.js +58 -0
- package/dist/runner/index.d.ts +13 -8
- package/dist/runner/index.js +12 -6
- package/dist/runner/live/checkout-gateway.js +7 -0
- package/dist/runner/live/gh-output.d.ts +17 -0
- package/dist/runner/live/gh-output.js +37 -0
- package/dist/runner/live/gh-token-gateway.d.ts +13 -0
- package/dist/runner/live/gh-token-gateway.js +51 -0
- package/dist/runner/live/sandbox-errors.d.ts +2 -0
- package/dist/runner/live/sandbox-errors.js +4 -0
- package/dist/runner/live/sandbox-gateway.js +140 -4
- package/dist/runner/live/snapshot-index-gateway.d.ts +12 -0
- package/dist/runner/live/{snapshot-cache-gateway.js → snapshot-index-gateway.js} +11 -11
- package/dist/runner/live/snapshot-records.js +12 -12
- package/dist/runner/local-snapshot-index.d.ts +205 -0
- package/dist/runner/local-snapshot-index.js +210 -0
- package/dist/runner/network-policy.d.ts +6 -6
- package/dist/runner/network-policy.js +7 -7
- package/dist/runner/policy-writes.d.ts +1 -1
- package/dist/runner/policy-writes.js +1 -1
- package/dist/runner/prepare.d.ts +14 -14
- package/dist/runner/prepare.js +20 -11
- package/dist/runner/ready.d.ts +19 -11
- package/dist/runner/ready.js +104 -33
- package/dist/runner/sandboxed-command.d.ts +3 -3
- package/dist/runner/sandboxed-command.js +3 -3
- package/dist/runner/scope.d.ts +15 -8
- package/dist/runner/scope.js +16 -5
- package/dist/runner/secrets.d.ts +41 -18
- package/dist/runner/secrets.js +226 -30
- package/dist/runner/session.d.ts +8 -8
- package/dist/runner/session.js +6 -3
- package/dist/runner/shared-snapshot-entry.d.ts +92 -0
- package/dist/runner/shared-snapshot-entry.js +168 -0
- package/dist/runner/shared-snapshot-list.d.ts +81 -0
- package/dist/runner/shared-snapshot-list.js +155 -0
- package/dist/runner/shared-snapshot-lookup.d.ts +51 -0
- package/dist/runner/shared-snapshot-lookup.js +118 -0
- package/dist/runner/shared-snapshot-prune.d.ts +58 -0
- package/dist/runner/shared-snapshot-prune.js +133 -0
- package/dist/runner/snapshot-build.d.ts +42 -14
- package/dist/runner/snapshot-build.js +79 -47
- package/dist/runner/snapshot-choice.js +2 -1
- package/dist/runner/snapshot-inspect.d.ts +39 -40
- package/dist/runner/snapshot-inspect.js +52 -35
- package/dist/runner/snapshot-key.d.ts +32 -17
- package/dist/runner/snapshot-key.js +43 -18
- package/dist/runner/snapshot-source.d.ts +31 -0
- package/dist/runner/snapshot-source.js +122 -0
- package/dist/runner/steps.d.ts +1 -1
- package/dist/runner/steps.js +1 -1
- package/dist/runner/{recipe-check.d.ts → vercel-sandbox-check.d.ts} +4 -2
- package/dist/runner/{recipe-check.js → vercel-sandbox-check.js} +7 -2
- package/dist/runner/{recipe.d.ts → vercel-sandbox-options.d.ts} +59 -28
- package/dist/runner/{recipe.js → vercel-sandbox-options.js} +128 -84
- package/dist/runner/vercel-sandbox-secrets.d.ts +116 -0
- package/dist/runner/{recipe-secrets.js → vercel-sandbox-secrets.js} +159 -26
- package/dist/sdk/extension/credential-diagnosis.d.ts +3 -1
- package/dist/sdk/extension/credential-diagnosis.js +25 -5
- package/dist/sdk/extension/credential-source.d.ts +20 -3
- package/dist/sdk/extension/credential-source.js +4 -4
- package/dist/sdk/extension/index.d.ts +3 -2
- package/dist/sdk/extension/index.js +2 -1
- package/dist/sdk/extension/resource-definition.d.ts +1 -1
- package/dist/sdk/extension/secret-source.d.ts +1 -1
- package/dist/sdk/extension/secret-source.js +1 -1
- package/dist/sdk/extension/vercel-oidc-facts.d.ts +20 -0
- package/dist/sdk/extension/vercel-oidc-facts.js +20 -0
- package/dist/shared/cleanup.d.ts +3 -3
- package/dist/shared/cleanup.js +15 -5
- package/dist/shared/snapshot-text.d.ts +4 -4
- package/dist/shared/snapshot-text.js +11 -11
- package/dist/time/duration.js +1 -1
- package/package.json +5 -3
- package/skills/overview.md +4 -4
- package/skills/plan-runs.md +1 -1
- package/skills/read-run-output.md +6 -6
- package/dist/application.d.ts +0 -21
- package/dist/application.js +0 -30
- package/dist/chunks/chunk-7EENF73W.js +0 -782
- package/dist/chunks/chunk-Z5PBVG3Y.js +0 -2599
- package/dist/commands/exec/across-sandboxes-run.d.ts +0 -180
- package/dist/commands/exec/across-sandboxes-run.js +0 -339
- package/dist/commands/exec/plan-only.d.ts +0 -10
- package/dist/commands/exec/plan-only.js +0 -45
- package/dist/commands/exec/run-command.d.ts +0 -475
- package/dist/commands/exec/run-command.js +0 -603
- package/dist/commands/exec/run-planned.d.ts +0 -20
- package/dist/commands/exec/run-planned.js +0 -22
- package/dist/commands/exec/sandbox-view.d.ts +0 -19
- package/dist/commands/exec/sandbox-view.js +0 -72
- package/dist/commands/test/plan.d.ts +0 -92
- package/dist/commands/test/plan.js +0 -125
- package/dist/core/sandbox-end.d.ts +0 -64
- package/dist/runner/live/snapshot-cache-gateway.d.ts +0 -12
- package/dist/runner/recipe-secrets.d.ts +0 -67
- package/dist/runner/snapshot-cache.d.ts +0 -148
- package/dist/runner/snapshot-cache.js +0 -126
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** How `snapshots prune` ends. No outcome carries the credential. */
|
|
3
|
+
export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
4
|
+
pruned: z.ZodObject<{
|
|
5
|
+
teamId: z.ZodString;
|
|
6
|
+
projectId: z.ZodString;
|
|
7
|
+
team: z.ZodNullable<z.ZodString>;
|
|
8
|
+
project: z.ZodNullable<z.ZodString>;
|
|
9
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
10
|
+
dryRun: z.ZodBoolean;
|
|
11
|
+
scanned: z.ZodNumber;
|
|
12
|
+
deleted: z.ZodArray<z.ZodObject<{
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
reason: z.ZodEnum<{
|
|
15
|
+
expired: "expired";
|
|
16
|
+
failed: "failed";
|
|
17
|
+
missing: "missing";
|
|
18
|
+
"no-snapshot": "no-snapshot";
|
|
19
|
+
}>;
|
|
20
|
+
snapshotId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
skipped: z.ZodNumber;
|
|
23
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
message: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
deletesFailed: z.ZodObject<{
|
|
29
|
+
teamId: z.ZodString;
|
|
30
|
+
projectId: z.ZodString;
|
|
31
|
+
team: z.ZodNullable<z.ZodString>;
|
|
32
|
+
project: z.ZodNullable<z.ZodString>;
|
|
33
|
+
configFile: z.ZodNullable<z.ZodString>;
|
|
34
|
+
dryRun: z.ZodBoolean;
|
|
35
|
+
scanned: z.ZodNumber;
|
|
36
|
+
deleted: z.ZodArray<z.ZodObject<{
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
reason: z.ZodEnum<{
|
|
39
|
+
expired: "expired";
|
|
40
|
+
failed: "failed";
|
|
41
|
+
missing: "missing";
|
|
42
|
+
"no-snapshot": "no-snapshot";
|
|
43
|
+
}>;
|
|
44
|
+
snapshotId: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
skipped: z.ZodNumber;
|
|
47
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
message: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
}, {
|
|
53
|
+
pruned: unknown;
|
|
54
|
+
deletesFailed: 1;
|
|
55
|
+
}, {
|
|
56
|
+
invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
57
|
+
file: string;
|
|
58
|
+
problems: {
|
|
59
|
+
key: string | null;
|
|
60
|
+
location: {
|
|
61
|
+
line: number;
|
|
62
|
+
column: number | null;
|
|
63
|
+
} | null;
|
|
64
|
+
problem: string;
|
|
65
|
+
}[];
|
|
66
|
+
}]>;
|
|
67
|
+
missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
68
|
+
missing: ("project" | "scope")[];
|
|
69
|
+
}]>;
|
|
70
|
+
runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
71
|
+
failure: {
|
|
72
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
73
|
+
label: string;
|
|
74
|
+
exitCode: number | null;
|
|
75
|
+
tail: string[];
|
|
76
|
+
} | {
|
|
77
|
+
kind: "sandbox-api-failed";
|
|
78
|
+
operation: string;
|
|
79
|
+
status: number | null;
|
|
80
|
+
message: string;
|
|
81
|
+
} | {
|
|
82
|
+
kind: "checkout-failed";
|
|
83
|
+
message: string;
|
|
84
|
+
command: string | null;
|
|
85
|
+
} | {
|
|
86
|
+
kind: "credential-claims-missing";
|
|
87
|
+
team: string;
|
|
88
|
+
project: string;
|
|
89
|
+
} | {
|
|
90
|
+
kind: "network-policy-failed";
|
|
91
|
+
operation: "inject" | "remove";
|
|
92
|
+
around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
|
|
93
|
+
reason: "api" | "timed-out";
|
|
94
|
+
status: number | null;
|
|
95
|
+
message: string;
|
|
96
|
+
};
|
|
97
|
+
cleanup: import("../../../shared/cleanup.ts").StormCleanupFacts;
|
|
98
|
+
}]>;
|
|
99
|
+
sharedListFailed: z.ZodObject<{
|
|
100
|
+
teamId: z.ZodString;
|
|
101
|
+
projectId: z.ZodString;
|
|
102
|
+
team: z.ZodNullable<z.ZodString>;
|
|
103
|
+
project: z.ZodNullable<z.ZodString>;
|
|
104
|
+
message: z.ZodString;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
107
|
+
team: string;
|
|
108
|
+
project: string;
|
|
109
|
+
cause: string;
|
|
110
|
+
fix: string;
|
|
111
|
+
}]>;
|
|
112
|
+
tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [data: {
|
|
113
|
+
cause: "request-failed" | "variables-missing";
|
|
114
|
+
missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
|
|
115
|
+
status: number | null;
|
|
116
|
+
said: string | null;
|
|
117
|
+
detail: string;
|
|
118
|
+
fix: string;
|
|
119
|
+
}]>;
|
|
120
|
+
vercelOidcTokenFailed: import("@vercel/clinkr").SharedError<"vercel_oidc_token_failed", [data: {
|
|
121
|
+
cause: "invalid-token" | "missing-token";
|
|
122
|
+
detail: string;
|
|
123
|
+
fix: string;
|
|
124
|
+
}]>;
|
|
125
|
+
}, {
|
|
126
|
+
readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
|
|
127
|
+
file: string;
|
|
128
|
+
problems: {
|
|
129
|
+
key: string | null;
|
|
130
|
+
location: {
|
|
131
|
+
line: number;
|
|
132
|
+
column: number | null;
|
|
133
|
+
} | null;
|
|
134
|
+
problem: string;
|
|
135
|
+
}[];
|
|
136
|
+
}]>;
|
|
137
|
+
readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
|
|
138
|
+
missing: ("project" | "scope")[];
|
|
139
|
+
}]>;
|
|
140
|
+
readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
|
|
141
|
+
failure: {
|
|
142
|
+
kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
|
|
143
|
+
label: string;
|
|
144
|
+
exitCode: number | null;
|
|
145
|
+
tail: string[];
|
|
146
|
+
} | {
|
|
147
|
+
kind: "sandbox-api-failed";
|
|
148
|
+
operation: string;
|
|
149
|
+
status: number | null;
|
|
150
|
+
message: string;
|
|
151
|
+
} | {
|
|
152
|
+
kind: "checkout-failed";
|
|
153
|
+
message: string;
|
|
154
|
+
command: string | null;
|
|
155
|
+
} | {
|
|
156
|
+
kind: "credential-claims-missing";
|
|
157
|
+
team: string;
|
|
158
|
+
project: string;
|
|
159
|
+
} | {
|
|
160
|
+
kind: "network-policy-failed";
|
|
161
|
+
operation: "inject" | "remove";
|
|
162
|
+
around: "command" | "run-steps" | "snapshot-save" | "snapshot-steps";
|
|
163
|
+
reason: "api" | "timed-out";
|
|
164
|
+
status: number | null;
|
|
165
|
+
message: string;
|
|
166
|
+
};
|
|
167
|
+
cleanup: import("../../../shared/cleanup.ts").StormCleanupFacts;
|
|
168
|
+
}]>;
|
|
169
|
+
readonly sharedListFailed: {
|
|
170
|
+
exitCode: 1;
|
|
171
|
+
description: string;
|
|
172
|
+
schema: z.ZodObject<{
|
|
173
|
+
teamId: z.ZodString;
|
|
174
|
+
projectId: z.ZodString;
|
|
175
|
+
team: z.ZodNullable<z.ZodString>;
|
|
176
|
+
project: z.ZodNullable<z.ZodString>;
|
|
177
|
+
message: z.ZodString;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
render: (facts: import("../access.ts").ProjectFacts & {
|
|
180
|
+
readonly message: string;
|
|
181
|
+
}) => {
|
|
182
|
+
message: string;
|
|
183
|
+
next: {
|
|
184
|
+
type: "text";
|
|
185
|
+
text: string;
|
|
186
|
+
}[];
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
|
|
190
|
+
team: string;
|
|
191
|
+
project: string;
|
|
192
|
+
cause: string;
|
|
193
|
+
fix: string;
|
|
194
|
+
}]>;
|
|
195
|
+
readonly tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [data: {
|
|
196
|
+
cause: "request-failed" | "variables-missing";
|
|
197
|
+
missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
|
|
198
|
+
status: number | null;
|
|
199
|
+
said: string | null;
|
|
200
|
+
detail: string;
|
|
201
|
+
fix: string;
|
|
202
|
+
}]>;
|
|
203
|
+
readonly vercelOidcTokenFailed: import("@vercel/clinkr").SharedError<"vercel_oidc_token_failed", [data: {
|
|
204
|
+
cause: "invalid-token" | "missing-token";
|
|
205
|
+
detail: string;
|
|
206
|
+
fix: string;
|
|
207
|
+
}]>;
|
|
208
|
+
}>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { renderOutcome } from "@vercel/clinkr/vcli-kit";
|
|
2
|
+
import { defineOutcomes } from "@vercel/clinkr";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { configErrors, credentialErrors, credentialSourceErrors } from "../../../config/index.js";
|
|
5
|
+
import { runErrors } from "../../exec/outcomes.js";
|
|
6
|
+
import { PROJECT_FIELDS, projectDisplayText, sharedListFailedError } from "../access.js";
|
|
7
|
+
/** One entry it deleted, or with --dry-run would delete. */
|
|
8
|
+
const deletedSchema = z.object({
|
|
9
|
+
/** The named sandbox that held the entry. */
|
|
10
|
+
name: z.string(),
|
|
11
|
+
/** Why: `no-snapshot`, the sandbox holds no snapshot; `failed`, the build sandbox ended failed or aborted; `missing`, its snapshot is not found or not created; `expired`, its snapshot has expired. */
|
|
12
|
+
reason: z.enum(["no-snapshot", "expired", "missing", "failed"]),
|
|
13
|
+
/** For `expired` and `missing`, the snapshot id the sandbox held; null for `no-snapshot` and `failed`. */
|
|
14
|
+
snapshotId: z.string().nullable(),
|
|
15
|
+
});
|
|
16
|
+
const prunedSchema = z.object({
|
|
17
|
+
/** The config file that gave the team and project; null when none did. */
|
|
18
|
+
configFile: z.string().nullable(),
|
|
19
|
+
/** The Vercel project whose shared snapshot index it pruned. */
|
|
20
|
+
...PROJECT_FIELDS,
|
|
21
|
+
/** Whether --dry-run asked it to delete nothing. */
|
|
22
|
+
dryRun: z.boolean(),
|
|
23
|
+
/** How many storm-snap- sandboxes the project holds. */
|
|
24
|
+
scanned: z.number(),
|
|
25
|
+
/** Each entry it deleted, or with --dry-run would delete, in the order it listed them. */
|
|
26
|
+
deleted: z.array(deletedSchema),
|
|
27
|
+
/** How many it kept: a build still owns it, or it is unexpired. */
|
|
28
|
+
skipped: z.number(),
|
|
29
|
+
/** Each sandbox it couldn't check or delete, with what the Sandbox API said. */
|
|
30
|
+
failed: z.array(z.object({ name: z.string(), message: z.string() })),
|
|
31
|
+
});
|
|
32
|
+
/** One deleted entry in words: its sandbox and its reason, with the snapshot id when expired or missing. */
|
|
33
|
+
function deletedText({ name, reason, snapshotId }) {
|
|
34
|
+
return snapshotId === null ? `${name} (${reason})` : `${name} (${reason}, snapshot ${snapshotId})`;
|
|
35
|
+
}
|
|
36
|
+
/** The counts, in one line. */
|
|
37
|
+
function countsText(pruned) {
|
|
38
|
+
const deleted = pruned.dryRun ? `${pruned.deleted.length} to delete` : `${pruned.deleted.length} deleted`;
|
|
39
|
+
return `Scanned ${pruned.scanned}: ${deleted}, ${pruned.skipped} skipped, ${pruned.failed.length} failed.`;
|
|
40
|
+
}
|
|
41
|
+
/** A result's content: the counts, each deleted entry, and each failure. */
|
|
42
|
+
function prunedContent(pruned) {
|
|
43
|
+
return renderOutcome({
|
|
44
|
+
rows: [
|
|
45
|
+
["Project", projectDisplayText(pruned)],
|
|
46
|
+
[pruned.dryRun ? "Would delete" : "Deleted", pruned.deleted.map(deletedText)],
|
|
47
|
+
["Failed", pruned.failed.map(({ name, message }) => `${name}: ${message}`)],
|
|
48
|
+
],
|
|
49
|
+
message: [countsText(pruned), ...(pruned.dryRun ? ["--dry-run deleted nothing."] : [])].join("\n"),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/** How `snapshots prune` ends. No outcome carries the credential. */
|
|
53
|
+
export const outcomes = defineOutcomes({
|
|
54
|
+
results: {
|
|
55
|
+
pruned: {
|
|
56
|
+
schema: prunedSchema,
|
|
57
|
+
description: "It scanned the shared snapshot index and deleted each dead entry (expired, missing, failed, or snapshot-less), or with --dry-run listed them and deleted nothing.",
|
|
58
|
+
render: prunedContent,
|
|
59
|
+
},
|
|
60
|
+
deletesFailed: {
|
|
61
|
+
exitCode: 1,
|
|
62
|
+
schema: prunedSchema,
|
|
63
|
+
description: "It scanned the shared snapshot index, but couldn't check or delete at least one entry; `failed` names each one.",
|
|
64
|
+
render: prunedContent,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
errors: {
|
|
68
|
+
invalidConfig: configErrors.invalidConfig,
|
|
69
|
+
missingTarget: credentialErrors.missingTarget,
|
|
70
|
+
...credentialSourceErrors,
|
|
71
|
+
runnerFailed: runErrors.runnerFailed,
|
|
72
|
+
sharedListFailed: sharedListFailedError({
|
|
73
|
+
description: "The Vercel Sandbox API failed while storm listed the shared snapshot index, so nothing was deleted.",
|
|
74
|
+
consequence: ", so nothing was deleted",
|
|
75
|
+
next: "Run storm snapshots prune again.",
|
|
76
|
+
}),
|
|
77
|
+
},
|
|
78
|
+
});
|
|
@@ -2,36 +2,36 @@ import {
|
|
|
2
2
|
formatCommandLine,
|
|
3
3
|
listResolvedSuites,
|
|
4
4
|
targetRedactor
|
|
5
|
-
} from "../../../chunks/chunk-
|
|
5
|
+
} from "../../../chunks/chunk-HBI4LEMH.js";
|
|
6
|
+
import {
|
|
7
|
+
redactStrings
|
|
8
|
+
} from "../../../chunks/chunk-FDUY3BNF.js";
|
|
6
9
|
import {
|
|
7
10
|
DRIVER_NAMES,
|
|
8
11
|
driverNamed
|
|
9
|
-
} from "../../../chunks/chunk-
|
|
10
|
-
import "../../../chunks/chunk-
|
|
11
|
-
import "../../../chunks/chunk-
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
} from "../../../chunks/chunk-HVNK3I45.js";
|
|
15
|
-
import "../../../chunks/chunk-ZG3WQ4UF.js";
|
|
16
|
-
import "../../../chunks/chunk-5CCP36QQ.js";
|
|
12
|
+
} from "../../../chunks/chunk-OI4AP6Z7.js";
|
|
13
|
+
import "../../../chunks/chunk-EEENLQHE.js";
|
|
14
|
+
import "../../../chunks/chunk-72ZFEMAW.js";
|
|
15
|
+
import "../../../chunks/chunk-55O4FCN4.js";
|
|
16
|
+
import "../../../chunks/chunk-TXCOFC7N.js";
|
|
17
17
|
import {
|
|
18
18
|
path,
|
|
19
19
|
renderOutcome
|
|
20
|
-
} from "../../../chunks/chunk-
|
|
20
|
+
} from "../../../chunks/chunk-EI3XDCEI.js";
|
|
21
21
|
import "../../../chunks/chunk-F6N34UWB.js";
|
|
22
|
-
import "../../../chunks/chunk-
|
|
22
|
+
import "../../../chunks/chunk-3VXZONGE.js";
|
|
23
23
|
import {
|
|
24
24
|
CONFIG_FILE_NAME,
|
|
25
25
|
CONFIG_FILE_NAMES_TEXT,
|
|
26
26
|
configErrors
|
|
27
|
-
} from "../../../chunks/chunk-
|
|
28
|
-
import "../../../chunks/chunk-
|
|
27
|
+
} from "../../../chunks/chunk-2JMWUKH3.js";
|
|
28
|
+
import "../../../chunks/chunk-XBDRVFEV.js";
|
|
29
29
|
import {
|
|
30
30
|
stormCommands
|
|
31
|
-
} from "../../../chunks/chunk-
|
|
31
|
+
} from "../../../chunks/chunk-LKXHGGGX.js";
|
|
32
32
|
import {
|
|
33
33
|
defineOutcomes
|
|
34
|
-
} from "../../../chunks/chunk-
|
|
34
|
+
} from "../../../chunks/chunk-24UYAK4R.js";
|
|
35
35
|
|
|
36
36
|
// src/commands/suites/list/command.ts
|
|
37
37
|
import { z as z2 } from "zod";
|
|
@@ -45,7 +45,7 @@ var resourceRecordSchema = z.object({
|
|
|
45
45
|
var runnerSummarySchema = z.object({
|
|
46
46
|
/** The effective runner kind: `launch-machine` or `vercel-sandbox`. */
|
|
47
47
|
kind: z.enum(["launch-machine", "vercel-sandbox"]),
|
|
48
|
-
/** The Vercel Sandbox runner
|
|
48
|
+
/** The Vercel Sandbox runner's name, or null for the launch machine runner. */
|
|
49
49
|
name: z.string().nullable()
|
|
50
50
|
});
|
|
51
51
|
var resolvedEntrySchema = z.object({
|
|
@@ -79,7 +79,7 @@ function resolvedEntryFacts(target, redact) {
|
|
|
79
79
|
driver: target.driver,
|
|
80
80
|
args: [...target.args],
|
|
81
81
|
command: [...target.command],
|
|
82
|
-
runner: runner === void 0 ? null : runner.kind === "launch-machine" ? { kind: "launch-machine", name: null } : { kind: "vercel-sandbox", name: runner.
|
|
82
|
+
runner: runner === void 0 ? null : runner.kind === "launch-machine" ? { kind: "launch-machine", name: null } : { kind: "vercel-sandbox", name: runner.options.name },
|
|
83
83
|
resources: Object.fromEntries(
|
|
84
84
|
Object.entries(target.settingsFile.values?.resources ?? {}).map(([key, { definition, options }]) => [
|
|
85
85
|
key,
|
|
@@ -14,7 +14,7 @@ const resourceRecordSchema = z.object({
|
|
|
14
14
|
const runnerSummarySchema = z.object({
|
|
15
15
|
/** The effective runner kind: `launch-machine` or `vercel-sandbox`. */
|
|
16
16
|
kind: z.enum(["launch-machine", "vercel-sandbox"]),
|
|
17
|
-
/** The Vercel Sandbox runner
|
|
17
|
+
/** The Vercel Sandbox runner's name, or null for the launch machine runner. */
|
|
18
18
|
name: z.string().nullable(),
|
|
19
19
|
});
|
|
20
20
|
const resolvedEntrySchema = z.object({
|
|
@@ -55,7 +55,7 @@ export function resolvedEntryFacts(target, redact) {
|
|
|
55
55
|
? null
|
|
56
56
|
: runner.kind === "launch-machine"
|
|
57
57
|
? { kind: "launch-machine", name: null }
|
|
58
|
-
: { kind: "vercel-sandbox", name: runner.
|
|
58
|
+
: { kind: "vercel-sandbox", name: runner.options.name },
|
|
59
59
|
resources: Object.fromEntries(Object.entries(target.settingsFile.values?.resources ?? {}).map(([key, { definition, options }]) => [
|
|
60
60
|
key,
|
|
61
61
|
{ definition, options: { ...options } },
|
|
@@ -5,6 +5,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
5
5
|
credential: z.ZodOptional<z.ZodEnum<{
|
|
6
6
|
"github-actions": "github-actions";
|
|
7
7
|
mint: "mint";
|
|
8
|
+
"vercel-oidc": "vercel-oidc";
|
|
8
9
|
}>>;
|
|
9
10
|
showOutput: z.ZodDefault<z.ZodBoolean>;
|
|
10
11
|
keepSandbox: z.ZodOptional<z.ZodString>;
|
|
@@ -34,7 +35,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
34
35
|
built: z.ZodBoolean;
|
|
35
36
|
vcpus: z.ZodNumber;
|
|
36
37
|
region: z.ZodString;
|
|
37
|
-
|
|
38
|
+
image: z.ZodString;
|
|
38
39
|
buildMs: z.ZodNumber;
|
|
39
40
|
}, z.core.$strip>>;
|
|
40
41
|
timeline: z.ZodObject<{
|
|
@@ -197,7 +198,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
197
198
|
built: z.ZodBoolean;
|
|
198
199
|
vcpus: z.ZodNumber;
|
|
199
200
|
region: z.ZodString;
|
|
200
|
-
|
|
201
|
+
image: z.ZodString;
|
|
201
202
|
uploadBytes: z.ZodNullable<z.ZodNumber>;
|
|
202
203
|
}, z.core.$strip>;
|
|
203
204
|
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>>;
|
|
@@ -205,7 +206,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
205
206
|
sandbox: z.ZodNumber;
|
|
206
207
|
name: z.ZodString;
|
|
207
208
|
stopsAt: z.ZodString;
|
|
208
|
-
url: z.ZodString
|
|
209
|
+
url: z.ZodNullable<z.ZodString>;
|
|
209
210
|
}, z.core.$strip>>;
|
|
210
211
|
notKept: z.ZodArray<z.ZodObject<{
|
|
211
212
|
sandbox: z.ZodNumber;
|
|
@@ -294,9 +295,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
294
295
|
configFile: string | null;
|
|
295
296
|
}]>;
|
|
296
297
|
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
297
|
-
|
|
298
|
+
problems: {
|
|
298
299
|
name: string;
|
|
299
|
-
problem: "missing" | "multiline" | "short";
|
|
300
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
301
|
+
detail: string;
|
|
302
|
+
hint: string;
|
|
300
303
|
}[];
|
|
301
304
|
minLength: number;
|
|
302
305
|
configFile: string | null;
|
|
@@ -364,6 +367,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
364
367
|
}[];
|
|
365
368
|
}[];
|
|
366
369
|
}]>;
|
|
370
|
+
keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
371
|
+
providers: string[];
|
|
372
|
+
configFile: string | null;
|
|
373
|
+
}]>;
|
|
367
374
|
keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
368
375
|
variables: string[];
|
|
369
376
|
configFile: string | null;
|
|
@@ -491,6 +498,13 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
491
498
|
minLength: number;
|
|
492
499
|
configFile: string | null;
|
|
493
500
|
}]>;
|
|
501
|
+
vercelOidcTokenFailed: import("@vercel/clinkr").SharedError<"vercel_oidc_token_failed", [data: {
|
|
502
|
+
cause: "invalid-token" | "missing-token";
|
|
503
|
+
detail: string;
|
|
504
|
+
fix: string;
|
|
505
|
+
runner: boolean;
|
|
506
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
507
|
+
}]>;
|
|
494
508
|
}, {
|
|
495
509
|
readonly conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
|
|
496
510
|
conflicts: {
|
|
@@ -506,9 +520,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
506
520
|
configFile: string | null;
|
|
507
521
|
}]>;
|
|
508
522
|
readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
509
|
-
|
|
523
|
+
problems: {
|
|
510
524
|
name: string;
|
|
511
|
-
problem: "missing" | "multiline" | "short";
|
|
525
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
526
|
+
detail: string;
|
|
527
|
+
hint: string;
|
|
512
528
|
}[];
|
|
513
529
|
minLength: number;
|
|
514
530
|
configFile: string | null;
|
|
@@ -576,6 +592,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
576
592
|
}[];
|
|
577
593
|
}[];
|
|
578
594
|
}]>;
|
|
595
|
+
readonly keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
596
|
+
providers: string[];
|
|
597
|
+
configFile: string | null;
|
|
598
|
+
}]>;
|
|
579
599
|
readonly keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
580
600
|
variables: string[];
|
|
581
601
|
configFile: string | null;
|
|
@@ -703,6 +723,13 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
703
723
|
minLength: number;
|
|
704
724
|
configFile: string | null;
|
|
705
725
|
}]>;
|
|
726
|
+
readonly vercelOidcTokenFailed: import("@vercel/clinkr").SharedError<"vercel_oidc_token_failed", [data: {
|
|
727
|
+
cause: "invalid-token" | "missing-token";
|
|
728
|
+
detail: string;
|
|
729
|
+
fix: string;
|
|
730
|
+
runner: boolean;
|
|
731
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
732
|
+
}]>;
|
|
706
733
|
}>, import("@vercel/clinkr").OutcomeOf<import("@vercel/clinkr").Outcomes<{
|
|
707
734
|
ran: z.ZodObject<{
|
|
708
735
|
version: z.ZodString;
|
|
@@ -722,7 +749,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
722
749
|
built: z.ZodBoolean;
|
|
723
750
|
vcpus: z.ZodNumber;
|
|
724
751
|
region: z.ZodString;
|
|
725
|
-
|
|
752
|
+
image: z.ZodString;
|
|
726
753
|
buildMs: z.ZodNumber;
|
|
727
754
|
}, z.core.$strip>>;
|
|
728
755
|
timeline: z.ZodObject<{
|
|
@@ -885,7 +912,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
885
912
|
built: z.ZodBoolean;
|
|
886
913
|
vcpus: z.ZodNumber;
|
|
887
914
|
region: z.ZodString;
|
|
888
|
-
|
|
915
|
+
image: z.ZodString;
|
|
889
916
|
uploadBytes: z.ZodNullable<z.ZodNumber>;
|
|
890
917
|
}, z.core.$strip>;
|
|
891
918
|
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>>;
|
|
@@ -893,7 +920,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
893
920
|
sandbox: z.ZodNumber;
|
|
894
921
|
name: z.ZodString;
|
|
895
922
|
stopsAt: z.ZodString;
|
|
896
|
-
url: z.ZodString
|
|
923
|
+
url: z.ZodNullable<z.ZodString>;
|
|
897
924
|
}, z.core.$strip>>;
|
|
898
925
|
notKept: z.ZodArray<z.ZodObject<{
|
|
899
926
|
sandbox: z.ZodNumber;
|
|
@@ -982,9 +1009,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
982
1009
|
configFile: string | null;
|
|
983
1010
|
}]>;
|
|
984
1011
|
credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
985
|
-
|
|
1012
|
+
problems: {
|
|
986
1013
|
name: string;
|
|
987
|
-
problem: "missing" | "multiline" | "short";
|
|
1014
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
1015
|
+
detail: string;
|
|
1016
|
+
hint: string;
|
|
988
1017
|
}[];
|
|
989
1018
|
minLength: number;
|
|
990
1019
|
configFile: string | null;
|
|
@@ -1052,6 +1081,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
1052
1081
|
}[];
|
|
1053
1082
|
}[];
|
|
1054
1083
|
}]>;
|
|
1084
|
+
keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
1085
|
+
providers: string[];
|
|
1086
|
+
configFile: string | null;
|
|
1087
|
+
}]>;
|
|
1055
1088
|
keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
1056
1089
|
variables: string[];
|
|
1057
1090
|
configFile: string | null;
|
|
@@ -1179,6 +1212,13 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
1179
1212
|
minLength: number;
|
|
1180
1213
|
configFile: string | null;
|
|
1181
1214
|
}]>;
|
|
1215
|
+
vercelOidcTokenFailed: import("@vercel/clinkr").SharedError<"vercel_oidc_token_failed", [data: {
|
|
1216
|
+
cause: "invalid-token" | "missing-token";
|
|
1217
|
+
detail: string;
|
|
1218
|
+
fix: string;
|
|
1219
|
+
runner: boolean;
|
|
1220
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
1221
|
+
}]>;
|
|
1182
1222
|
}, {
|
|
1183
1223
|
readonly conflictingOptions: import("@vercel/clinkr").SharedError<"conflicting_options", [data: {
|
|
1184
1224
|
conflicts: {
|
|
@@ -1194,9 +1234,11 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
1194
1234
|
configFile: string | null;
|
|
1195
1235
|
}]>;
|
|
1196
1236
|
readonly credentialsInvalid: import("@vercel/clinkr").SharedError<"credentials_invalid", [data: {
|
|
1197
|
-
|
|
1237
|
+
problems: {
|
|
1198
1238
|
name: string;
|
|
1199
|
-
problem: "missing" | "multiline" | "short";
|
|
1239
|
+
problem: "gh-failed" | "gh-not-authenticated" | "gh-not-installed" | "gh-preframed" | "gh-timed-out" | "missing" | "multiline" | "short";
|
|
1240
|
+
detail: string;
|
|
1241
|
+
hint: string;
|
|
1200
1242
|
}[];
|
|
1201
1243
|
minLength: number;
|
|
1202
1244
|
configFile: string | null;
|
|
@@ -1264,6 +1306,10 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
1264
1306
|
}[];
|
|
1265
1307
|
}[];
|
|
1266
1308
|
}]>;
|
|
1309
|
+
readonly keepSandboxManagedCredentials: import("@vercel/clinkr").SharedError<"keep_sandbox_managed_credentials", [data: {
|
|
1310
|
+
providers: string[];
|
|
1311
|
+
configFile: string | null;
|
|
1312
|
+
}]>;
|
|
1267
1313
|
readonly keepSandboxUnsafeSecretEnvVars: import("@vercel/clinkr").SharedError<"keep_sandbox_unsafe_secret_env_vars", [data: {
|
|
1268
1314
|
variables: string[];
|
|
1269
1315
|
configFile: string | null;
|
|
@@ -1391,5 +1437,12 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
1391
1437
|
minLength: number;
|
|
1392
1438
|
configFile: string | null;
|
|
1393
1439
|
}]>;
|
|
1440
|
+
readonly vercelOidcTokenFailed: import("@vercel/clinkr").SharedError<"vercel_oidc_token_failed", [data: {
|
|
1441
|
+
cause: "invalid-token" | "missing-token";
|
|
1442
|
+
detail: string;
|
|
1443
|
+
fix: string;
|
|
1444
|
+
runner: boolean;
|
|
1445
|
+
cleanup: import("../../shared/cleanup.ts").StormCleanupFacts;
|
|
1446
|
+
}]>;
|
|
1394
1447
|
}>>, import("../../context.ts").StormApp, false>;
|
|
1395
1448
|
export default _default;
|