@cnc-tools/storm 0.15.0 → 0.16.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 +1 -1
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-QUHY6FGN.js → chunk-2MAD5NKK.js} +1 -1
- package/dist/chunks/{chunk-XEVHP5ZW.js → chunk-3L52KNQA.js} +1 -1
- package/dist/chunks/{chunk-E4PJNZVG.js → chunk-7EENF73W.js} +12 -13
- package/dist/chunks/{chunk-4U4DZ7VG.js → chunk-CK2GZEPK.js} +1 -1
- package/dist/chunks/{chunk-L36GBUBB.js → chunk-DC2CDHNK.js} +398 -158
- package/dist/chunks/{chunk-PN5ULTTH.js → chunk-DWEAHX4T.js} +1 -1
- package/dist/chunks/{chunk-5GBMR4HM.js → chunk-FCQUJDA4.js} +4 -7
- package/dist/chunks/{chunk-YV7GE6EV.js → chunk-FOZWA52V.js} +1 -1
- package/dist/chunks/{chunk-OX7X4B2L.js → chunk-G3PHMXH5.js} +1 -1
- package/dist/chunks/{chunk-CXAT7ZKP.js → chunk-HVNK3I45.js} +1 -1
- package/dist/chunks/{chunk-QVS7HRU7.js → chunk-OIY3DMF2.js} +2 -2
- package/dist/chunks/{chunk-SZEURWRS.js → chunk-P357TZAY.js} +2 -2
- package/dist/chunks/{chunk-KC4KDJ5K.js → chunk-V4IKA3WI.js} +153 -139
- package/dist/chunks/{chunk-RAQEXKL6.js → chunk-Z5PBVG3Y.js} +26 -18
- package/dist/chunks/{live-app-PI3BAN6Y.js → live-app-WECQOQ4C.js} +4 -4
- package/dist/commands/exec/across-sandboxes-outcomes.js +2 -1
- package/dist/commands/exec/command.d.ts +8 -2
- package/dist/commands/exec/command.js +11 -11
- package/dist/commands/exec/metadata.js +1 -1
- package/dist/commands/exec/outcomes.d.ts +4 -1
- package/dist/commands/exec/outcomes.js +2 -2
- package/dist/commands/exec/plan-only.js +1 -2
- package/dist/commands/exec/planned-outcome.js +8 -1
- package/dist/commands/exec/run-command.d.ts +6 -7
- package/dist/commands/exec/run-command.js +8 -9
- package/dist/commands/exec/run-metadata.js +1 -1
- package/dist/commands/runs/facts.d.ts +2 -1
- package/dist/commands/runs/facts.js +11 -3
- package/dist/commands/runs/list/command.d.ts +2 -0
- package/dist/commands/runs/list/command.js +6 -6
- package/dist/commands/runs/list/outcomes.d.ts +1 -0
- package/dist/commands/runs/logs/command.d.ts +6 -2
- package/dist/commands/runs/logs/command.js +6 -6
- package/dist/commands/runs/logs/outcomes.d.ts +3 -1
- package/dist/commands/runs/past-run.d.ts +14 -5
- package/dist/commands/runs/past-run.js +16 -5
- package/dist/commands/runs/show/command.d.ts +6 -2
- package/dist/commands/runs/show/command.js +9 -9
- package/dist/commands/runs/show/outcomes.d.ts +3 -1
- package/dist/commands/snapshots/build/command.js +11 -11
- package/dist/commands/snapshots/list/command.d.ts +3 -3
- package/dist/commands/snapshots/list/command.js +6 -6
- package/dist/commands/snapshots/list/metadata.js +1 -1
- package/dist/commands/suites/list/command.js +7 -6
- package/dist/commands/suites/list/outcomes.js +2 -2
- package/dist/commands/test/command.d.ts +8 -2
- package/dist/commands/test/command.js +38 -40
- package/dist/commands/test/metadata.js +1 -1
- package/dist/commands/test/outcomes.d.ts +4 -1
- package/dist/commands/test/outcomes.js +2 -2
- package/dist/commands/test/plan.d.ts +2 -2
- package/dist/commands/test/plan.js +2 -5
- package/dist/config/check-runner.d.ts +4 -2
- package/dist/config/check-runner.js +27 -2
- package/dist/config/check-suites.js +1 -0
- package/dist/config/gateways.d.ts +7 -3
- package/dist/config/index.d.ts +2 -3
- package/dist/config/index.js +2 -3
- package/dist/config/live/config-gateway.js +5 -2
- package/dist/config/load.d.ts +21 -4
- package/dist/config/load.js +129 -15
- package/dist/config/runner.d.ts +5 -6
- package/dist/config/runner.js +1 -1
- package/dist/config/schema.d.ts +15 -3
- package/dist/config/schema.js +10 -2
- package/dist/config/typed-options.d.ts +1 -6
- package/dist/config/typed-options.js +2 -10
- package/dist/config-file/define.d.ts +1 -11
- package/dist/config-file/define.js +3 -3
- package/dist/config-file/runner.d.ts +2 -3
- package/dist/config-file/toolchain.d.ts +13 -7
- package/dist/config-file/toolchain.js +51 -35
- package/dist/extensions/github/resource.d.ts +1 -1
- package/dist/extensions/github/resource.js +1 -1
- package/dist/extensions/testserver/commands/pool/create/command.js +1 -1
- package/dist/extensions/testserver/resource.d.ts +2 -2
- package/dist/extensions/testserver/resource.js +2 -2
- package/dist/planning/plan-only.d.ts +4 -1
- package/dist/planning/plan-only.js +5 -2
- package/dist/planning/run-plan.d.ts +1 -2
- package/dist/planning/test-plan.js +1 -2
- package/dist/runner/base.d.ts +0 -6
- package/dist/runner/base.js +0 -15
- package/dist/runner/build-snapshots.js +7 -8
- package/dist/runner/gateways.d.ts +5 -0
- package/dist/runner/index.d.ts +1 -1
- package/dist/runner/live/sandbox-gateway.js +12 -0
- package/dist/runner/prepare.d.ts +16 -15
- package/dist/runner/prepare.js +11 -12
- package/dist/runner/recipe.d.ts +66 -67
- package/dist/runner/recipe.js +204 -120
- package/dist/runner/snapshot-build.d.ts +1 -1
- package/dist/runner/snapshot-build.js +10 -3
- package/dist/runner/snapshot-inspect.d.ts +4 -4
- package/dist/runner/snapshot-inspect.js +7 -7
- package/dist/runner/snapshot-key.d.ts +23 -15
- package/dist/runner/snapshot-key.js +46 -27
- package/dist/sdk/extension/resource-definition.d.ts +3 -2
- package/dist/sdk/extension/resource-definition.js +3 -2
- package/dist/sdk/extension/resource-factory.js +3 -4
- package/dist/sdk/run/present.d.ts +3 -3
- package/dist/sdk/run/present.js +1 -3
- package/package.json +1 -1
- package/skills/overview.md +2 -0
- package/skills/plan-runs.md +1 -1
- package/dist/config/recipe-run.d.ts +0 -33
- package/dist/config/recipe-run.js +0 -28
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
planAskedSandboxesRun,
|
|
3
3
|
runHelp,
|
|
4
4
|
runPlanned
|
|
5
|
-
} from "../../chunks/chunk-
|
|
5
|
+
} from "../../chunks/chunk-7EENF73W.js";
|
|
6
6
|
import {
|
|
7
7
|
RUN_CLI_OPTIONS,
|
|
8
8
|
RUN_REQUEST_FIELDS,
|
|
@@ -10,25 +10,25 @@ import {
|
|
|
10
10
|
planCommandRun,
|
|
11
11
|
runFlagProblems,
|
|
12
12
|
sandboxesFlagProblems
|
|
13
|
-
} from "../../chunks/chunk-
|
|
13
|
+
} from "../../chunks/chunk-Z5PBVG3Y.js";
|
|
14
14
|
import "../../chunks/chunk-I5GZLOLQ.js";
|
|
15
|
-
import "../../chunks/chunk-
|
|
16
|
-
import "../../chunks/chunk-
|
|
15
|
+
import "../../chunks/chunk-FCQUJDA4.js";
|
|
16
|
+
import "../../chunks/chunk-DWEAHX4T.js";
|
|
17
17
|
import "../../chunks/chunk-R7XVBZOY.js";
|
|
18
18
|
import "../../chunks/chunk-CN4EFA5J.js";
|
|
19
|
-
import "../../chunks/chunk-
|
|
20
|
-
import "../../chunks/chunk-
|
|
19
|
+
import "../../chunks/chunk-HVNK3I45.js";
|
|
20
|
+
import "../../chunks/chunk-3L52KNQA.js";
|
|
21
21
|
import "../../chunks/chunk-VUPZH7J2.js";
|
|
22
22
|
import "../../chunks/chunk-ZG3WQ4UF.js";
|
|
23
23
|
import "../../chunks/chunk-5CCP36QQ.js";
|
|
24
|
-
import "../../chunks/chunk-
|
|
25
|
-
import "../../chunks/chunk-
|
|
26
|
-
import "../../chunks/chunk-
|
|
24
|
+
import "../../chunks/chunk-2MAD5NKK.js";
|
|
25
|
+
import "../../chunks/chunk-P357TZAY.js";
|
|
26
|
+
import "../../chunks/chunk-G3PHMXH5.js";
|
|
27
27
|
import "../../chunks/chunk-F6N34UWB.js";
|
|
28
|
-
import "../../chunks/chunk-
|
|
28
|
+
import "../../chunks/chunk-FOZWA52V.js";
|
|
29
29
|
import {
|
|
30
30
|
effectiveConfig
|
|
31
|
-
} from "../../chunks/chunk-
|
|
31
|
+
} from "../../chunks/chunk-DC2CDHNK.js";
|
|
32
32
|
import {
|
|
33
33
|
NOT_COUNTED
|
|
34
34
|
} from "../../chunks/chunk-AWBSONHB.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/commands/exec/metadata.ts
|
|
2
2
|
var metadata = {
|
|
3
|
-
description: `Run any command, the argument list after --, as it is, with the run payload in STORM_RUN. For a project's tests declared in storm.config.ts, use storm test, which finds the driver's program and can count the tests and size the run first (testPlan in storm.config.ts or --count-tests); exec counts nothing and sizes nothing. Where the command runs is the runner declared at the top level of storm.config.ts (launchMachine() or vercelSandbox({ \u2026 })), or --runner launch-machine, which runs on the launch machine and needs no config file. On the launch machine, the command runs on this machine in the working directory, with this machine's environment less the launcher environment variables the run's resources hide, plus STORM_RUN, and FORCE_COLOR or NO_COLOR only when neither is set and the launcher asks for or opts out of color. With vercelSandbox({ \u2026 }), it runs in a runner sandbox, a Vercel Sandbox readied from the runner recipe in storm.config.ts, in the recipe's cwd, with the runner sandbox's own environment, a PATH that starts with node_modules/.bin of that cwd and of the repository's root, the recipe's env, FORCE_COLOR or NO_COLOR only when that env sets neither and the launcher asks for or opts out of color (a plain non-TTY launcher gets neither), any variables declared in the recipe's unsafeSecretEnvVars (each read from its source, { kind: "env", name }; command-only, never in steps or snapshots, and incompatible with keeping the runner sandbox), and STORM_RUN, and nothing else from this machine's environment; during the toolchain and prebuild steps of a snapshot build, then from the install until the command has ended, never during the upload or the apply, the Sandbox firewall adds each credential the recipe's credentials key declares\u2014the value read from its source ({ kind: "env", name })\u2014as its header to the requests to its domain, GET and HEAD only by default, answering every other request to that domain with 403, or every request with requests: "all", so the value never enters the runner sandbox; storm shows each value as <token> in what it prints and writes, and a run in a runner sandbox refuses before it starts when one of them is unset, holds a line break, or is shorter than 8 characters; each path under the repository's root in its arguments points at the runner sandbox's copy, and each in its output back at this checkout. The run has each resource that storm.config.ts declares under resources or that one of the resource's own flags names, unless the resource skips itself: it first acquires each one, while the Vercel Sandbox runner readies its runner sandbox, hands it to the command under the run payload's resources, and releases it once the command has stopped; without one, the run payload names no resource. While the command runs in a runner sandbox, and only then, the Sandbox firewall adds each sandbox credential a resource gives the command to the requests to its domain, replacing a header of that name the request carries, so the value never enters the runner sandbox; a resource that gives one needs a runner sandbox, so a run on the launch machine that uses it is refused with resource_needs_runner_sandbox before it starts. Each resource's flags and examples are below, and its own commands are under storm ext. Shows on stderr what runs when and what runs at once, live on a terminal and one line at a time elsewhere, then a waterfall of the run's lanes naming its critical path, and exits with the command's code. Each run writes what it was and how it ended, its events, its steps' output, its command's output, its test events, and its timeline to a run directory under \${XDG_STATE_HOME:-~/.local/state}/storm/runs/, named for its run id, keeping the newest 1000 completed ones and every one whose run is still going; the summary names the run id, storm runs show reads the run back, and storm runs logs prints its command's output and its steps' logs. A flag overrides storm.config.ts, found in the working directory or a parent up to the git worktree's root and checked whole, which overrides the built-in default. A resource's secrets, such as a token it reads from this machine's environment, show as <token> in what the run prints and writes. With --sandboxes <n> and the Vercel Sandbox runner, it is a run across runner sandboxes: one mint and one runner snapshot serve n runner sandboxes, which start at once, and each runner sandbox runs the command with {sandbox} replaced by its runner sandbox index (from 0), {sandbox+1} by its index plus one, and {sandboxes} by n; storm.config.ts must set runner.sandboxes.max; each resource of the run is acquired once and split across the runner sandboxes, each runner sandbox getting its own part; it prints status lines and no command output, each runner sandbox's output goes to its own command log in the run directory, and storm exits 0 when every runner sandbox passed, else 1.`,
|
|
3
|
+
description: `Run any command, the argument list after --, as it is, with the run payload in STORM_RUN. For a project's tests declared in storm.config.ts, use storm test, which finds the driver's program and can count the tests and size the run first (testPlan in storm.config.ts or --count-tests); exec counts nothing and sizes nothing. Where the command runs is the runner declared at the top level of storm.config.ts (launchMachine() or vercelSandbox({ \u2026 })), or --runner launch-machine, which runs on the launch machine and needs no config file. On the launch machine, the command runs on this machine in the working directory, with this machine's environment less the launcher environment variables the run's resources hide, plus STORM_RUN, and FORCE_COLOR or NO_COLOR only when neither is set and the launcher asks for or opts out of color. With vercelSandbox({ \u2026 }), it runs in a runner sandbox, a Vercel Sandbox readied from the runner recipe in storm.config.ts, in the recipe's cwd, with the runner sandbox's own environment, a PATH that starts with node_modules/.bin of that cwd and of the repository's root, the recipe's env, FORCE_COLOR or NO_COLOR only when that env sets neither and the launcher asks for or opts out of color (a plain non-TTY launcher gets neither), any variables declared in the recipe's unsafeSecretEnvVars (each read from its source, { kind: "env", name }; command-only, never in steps or snapshots, and incompatible with keeping the runner sandbox), and STORM_RUN, and nothing else from this machine's environment; during the toolchain and prebuild steps of a snapshot build, then from the install until the command has ended, never during the upload or the apply, the Sandbox firewall adds each credential the recipe's credentials key declares\u2014the value read from its source ({ kind: "env", name })\u2014as its header to the requests to its domain, GET and HEAD only by default, answering every other request to that domain with 403, or every request with requests: "all", so the value never enters the runner sandbox; storm shows each value as <token> in what it prints and writes, and a run in a runner sandbox refuses before it starts when one of them is unset, holds a line break, or is shorter than 8 characters; each path under the repository's root in its arguments points at the runner sandbox's copy, and each in its output back at this checkout. The run has each resource that storm.config.ts declares under resources or that one of the resource's own flags names, unless the resource skips itself: it first acquires each one, while the Vercel Sandbox runner readies its runner sandbox, hands it to the command under the run payload's resources, and releases it once the command has stopped; without one, the run payload names no resource. While the command runs in a runner sandbox, and only then, the Sandbox firewall adds each sandbox credential a resource gives the command to the requests to its domain, replacing a header of that name the request carries, so the value never enters the runner sandbox; a resource that gives one needs a runner sandbox, so a run on the launch machine that uses it is refused with resource_needs_runner_sandbox before it starts. Each resource's flags and examples are below, and its own commands are under storm ext. Shows on stderr what runs when and what runs at once, live on a terminal and one line at a time elsewhere, then a waterfall of the run's lanes naming its critical path, and exits with the command's code. Each run writes what it was and how it ended, its events, its steps' output, its command's output, its test events, and its timeline to a run directory under \${XDG_STATE_HOME:-~/.local/state}/storm/runs/, named for its run id, keeping the newest 1000 completed ones and every one whose run is still going; the summary names the run id, storm runs show reads the run back, and storm runs logs prints its command's output and its steps' logs. A flag overrides storm.config.ts, found in the working directory or a parent up to the git worktree's root and checked whole, which overrides the built-in default; storm.config.mts works the same, always loads as an ES module, and suits a package.json without "type": "module", and one directory may hold only one of the two. A resource's secrets, such as a token it reads from this machine's environment, show as <token> in what the run prints and writes. With --sandboxes <n> and the Vercel Sandbox runner, it is a run across runner sandboxes: one mint and one runner snapshot serve n runner sandboxes, which start at once, and each runner sandbox runs the command with {sandbox} replaced by its runner sandbox index (from 0), {sandbox+1} by its index plus one, and {sandboxes} by n; storm.config.ts must set runner.sandboxes.max; each resource of the run is acquired once and split across the runner sandboxes, each runner sandbox getting its own part; it prints status lines and no command output, each runner sandbox's output goes to its own command log in the run directory, and storm exits 0 when every runner sandbox passed, else 1.`,
|
|
4
4
|
summary: "Run any command with the declared runner or on the launch machine."
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
@@ -900,7 +900,10 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
900
900
|
testFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
901
901
|
runnerSandboxes: z.ZodNullable<z.ZodObject<{
|
|
902
902
|
max: z.ZodNumber;
|
|
903
|
-
default: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.
|
|
903
|
+
default: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
904
|
+
filesPerSandbox: z.ZodNumber;
|
|
905
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
906
|
+
}, z.core.$strip>]>>;
|
|
904
907
|
}, z.core.$strip>>;
|
|
905
908
|
sandboxes: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
906
909
|
sandbox: z.ZodNumber;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineErrors, defineOutcomes, renderOutcome } from "@vercel/clinkr";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { DEFINITION_SET } from "../../extensions.js";
|
|
4
|
-
import { configErrors, credentialErrors } from "../../config/index.js";
|
|
4
|
+
import { CONFIG_FILE_NAMES_TEXT, configErrors, credentialErrors } from "../../config/index.js";
|
|
5
5
|
import { keptText, RUN_CLEANUP, runnerCleanupWarnings } from "../../shared/cleanup.js";
|
|
6
6
|
import { noFinalResultsContent } from "../../planning/final-results.js";
|
|
7
7
|
import { plannedSchema } from "../../planning/plan-only.js";
|
|
@@ -320,7 +320,7 @@ export const runErrors = defineErrors({
|
|
|
320
320
|
}),
|
|
321
321
|
render: ({ configFile }) => ({
|
|
322
322
|
message: configFile === null
|
|
323
|
-
?
|
|
323
|
+
? `No runner is declared, and no ${CONFIG_FILE_NAMES_TEXT} applies.`
|
|
324
324
|
: `No runner is declared in ${configFile}.`,
|
|
325
325
|
next: [
|
|
326
326
|
{
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Thin CLI wiring for `--plan-only`: resolves `vcpus` via `prepareRunner` for a planned run, across runner sandboxes or
|
|
2
2
|
// not, builds redacted `PlannedFacts` through `src/planning/plan-only.ts`, and returns the `planned` outcome.
|
|
3
|
-
import { recipeRun } from "../../config/index.js";
|
|
4
3
|
import { buildPlannedFacts, plannedSecrets } from "../../planning/plan-only.js";
|
|
5
4
|
import { redactor, redactStrings } from "../../planning/redaction.js";
|
|
6
5
|
import { prepareRunner } from "../../runner/index.js";
|
|
@@ -36,7 +35,7 @@ async function plannedVcpus(app, lifecycles, { where, configFile, resources, san
|
|
|
36
35
|
const prepared = await prepareRunner(app.context, {
|
|
37
36
|
cwd: app.cwd,
|
|
38
37
|
recipe: where.recipe,
|
|
39
|
-
|
|
38
|
+
vcpuRun: { resources: recipeResources(resources), sandboxes: sandboxes?.sandboxes.length ?? 1 },
|
|
40
39
|
});
|
|
41
40
|
if (prepared.kind === "ok")
|
|
42
41
|
return { ok: true, vcpus: prepared.prepared.vcpus };
|
|
@@ -20,11 +20,18 @@ export function plannedText(planned) {
|
|
|
20
20
|
...(planned.runnerSandboxes === null || planned.runnerSandboxes.default === null
|
|
21
21
|
? []
|
|
22
22
|
: [
|
|
23
|
-
`runner.sandboxes: default ${planned.runnerSandboxes.default
|
|
23
|
+
`runner.sandboxes: default ${formatSandboxesDefault(planned.runnerSandboxes.default)}, max ${planned.runnerSandboxes.max}`,
|
|
24
24
|
]),
|
|
25
25
|
...planned.options.map(({ path, value, from }) => `${path}: ${String(value)} (${from})`),
|
|
26
26
|
].join("\n");
|
|
27
27
|
}
|
|
28
|
+
/** Formats `runner.sandboxes.default` for `--plan-only` text output. */
|
|
29
|
+
function formatSandboxesDefault(value) {
|
|
30
|
+
if (typeof value === "number")
|
|
31
|
+
return String(value);
|
|
32
|
+
const per = `1 per ${value.filesPerSandbox} test ${value.filesPerSandbox === 1 ? "file" : "files"}`;
|
|
33
|
+
return value.max === undefined ? per : `${per} (max ${value.max})`;
|
|
34
|
+
}
|
|
28
35
|
/** How a `planned` outcome renders: the planned run on stdout, and that nothing started on stderr. */
|
|
29
36
|
export function renderPlanned(planned) {
|
|
30
37
|
return renderOutcome({
|
|
@@ -2,7 +2,7 @@ import type { ArgumentIssue, CommandError, CommandResult, ExecutionContext } fro
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import type { StormApp } from "../../context.ts";
|
|
4
4
|
import { type CheckoutFailure, type CheckoutGateway, type PrepareRunnerOutcome } from "../../runner/index.ts";
|
|
5
|
-
import { type
|
|
5
|
+
import { type SettingsFile } from "../../config/index.ts";
|
|
6
6
|
import type { DriverHints, RunTestPlan } from "../../sdk/extension/index.ts";
|
|
7
7
|
import { type ResourceLifecycles, type RunRunnerFailure, type RunOutcome, type RunRequest } from "../../core/index.ts";
|
|
8
8
|
import { type PlanOption, type RunDirectoryFailure, type RunRecording, type RunRecordGit, type TestPlanFacts } from "../../run-directory/index.ts";
|
|
@@ -349,9 +349,9 @@ export declare function runFlagProblems(request: RunCommandRequest): readonly Ar
|
|
|
349
349
|
/**
|
|
350
350
|
* The runner's part of the request of a run with a runner, which starts `sandboxes` runner sandboxes, each kept running
|
|
351
351
|
* for `keepMs` once the run ends. The runner's local checks run here (`prepareRunner`), before anything is minted,
|
|
352
|
-
* acquired or started. Their refusal ends the command and leaves no run directory; it can quote what preparation
|
|
353
|
-
*
|
|
354
|
-
*
|
|
352
|
+
* acquired, or started. Their refusal ends the command and leaves no run directory; it can quote what preparation saw,
|
|
353
|
+
* such as a declared base file path or a `vcpus` rule's resource option value, so it shows the resources' secrets and
|
|
354
|
+
* the runner secrets' values as `<token>`.
|
|
355
355
|
*/
|
|
356
356
|
export declare function runnerRequestFor(app: StormApp, where: Extract<RunWhere, {
|
|
357
357
|
readonly kind: "runner";
|
|
@@ -395,14 +395,13 @@ export declare function logsText({ opened }: Pick<RunRecording, "opened">, write
|
|
|
395
395
|
*/
|
|
396
396
|
export declare function checkoutGit(checkout: CheckoutGateway, cwd: string): Promise<RunRecordGit | null>;
|
|
397
397
|
/**
|
|
398
|
-
* Each resource's
|
|
399
|
-
* function reads.
|
|
398
|
+
* Each resource's resolved options, by resource key: what a runner recipe's declared `vcpus` rule reads.
|
|
400
399
|
*/
|
|
401
400
|
export declare function recipeResources(requests: Readonly<Record<string, {
|
|
402
401
|
readonly definition: string;
|
|
403
402
|
readonly options: unknown;
|
|
404
403
|
}>>): {
|
|
405
|
-
readonly [key: string]:
|
|
404
|
+
readonly [key: string]: Readonly<Record<string, unknown>>;
|
|
406
405
|
};
|
|
407
406
|
/** A runner failure as outcomes report it. */
|
|
408
407
|
export declare function runnerFailureFacts(failure: RunRunnerFailure): {
|
|
@@ -9,7 +9,7 @@ import { z } from "zod";
|
|
|
9
9
|
import { forwardSigterm } from "../../forward-sigterm.js";
|
|
10
10
|
import { describeMintFailure } from "../../credential/index.js";
|
|
11
11
|
import { prepareRunner, } from "../../runner/index.js";
|
|
12
|
-
import { invalidConfig
|
|
12
|
+
import { invalidConfig } from "../../config/index.js";
|
|
13
13
|
import { commandExitStatus, executeRun, timedProgress, } from "../../core/index.js";
|
|
14
14
|
import { DEFINITION_SET } from "../../extensions.js";
|
|
15
15
|
import { recordRun, } from "../../run-directory/index.js";
|
|
@@ -364,15 +364,15 @@ export function runFlagProblems(request) {
|
|
|
364
364
|
/**
|
|
365
365
|
* The runner's part of the request of a run with a runner, which starts `sandboxes` runner sandboxes, each kept running
|
|
366
366
|
* for `keepMs` once the run ends. The runner's local checks run here (`prepareRunner`), before anything is minted,
|
|
367
|
-
* acquired or started. Their refusal ends the command and leaves no run directory; it can quote what preparation
|
|
368
|
-
*
|
|
369
|
-
*
|
|
367
|
+
* acquired, or started. Their refusal ends the command and leaves no run directory; it can quote what preparation saw,
|
|
368
|
+
* such as a declared base file path or a `vcpus` rule's resource option value, so it shows the resources' secrets and
|
|
369
|
+
* the runner secrets' values as `<token>`.
|
|
370
370
|
*/
|
|
371
371
|
export async function runnerRequestFor(app, where, used, options) {
|
|
372
372
|
const prepared = await prepareRunner(app.context, {
|
|
373
373
|
cwd: app.cwd,
|
|
374
374
|
recipe: where.recipe,
|
|
375
|
-
|
|
375
|
+
vcpuRun: { resources: recipeResources(used.requests), sandboxes: options.sandboxes },
|
|
376
376
|
});
|
|
377
377
|
if (prepared.kind !== "ok") {
|
|
378
378
|
const refusal = prepareRefusal(prepared, options.configFile);
|
|
@@ -512,15 +512,14 @@ export async function checkoutGit(checkout, cwd) {
|
|
|
512
512
|
return head.ok ? { ...head.value } : null;
|
|
513
513
|
}
|
|
514
514
|
/**
|
|
515
|
-
* Each resource's
|
|
516
|
-
* function reads.
|
|
515
|
+
* Each resource's resolved options, by resource key: what a runner recipe's declared `vcpus` rule reads.
|
|
517
516
|
*/
|
|
518
517
|
export function recipeResources(requests) {
|
|
519
|
-
return Object.fromEntries(Object.entries(requests).map(([key, {
|
|
518
|
+
return Object.fromEntries(Object.entries(requests).map(([key, { options }]) => {
|
|
520
519
|
// A resource's options are the plain values its definition merges to: always an object.
|
|
521
520
|
if (typeof options !== "object" || options === null)
|
|
522
521
|
throw new Error(`${key}'s options are not an object`);
|
|
523
|
-
return [key,
|
|
522
|
+
return [key, options];
|
|
524
523
|
}));
|
|
525
524
|
}
|
|
526
525
|
/**
|
|
@@ -65,7 +65,7 @@ export function runHelp(words, field, options = {}) {
|
|
|
65
65
|
*/
|
|
66
66
|
export const DRIVER_SANDBOXES_HELP = {
|
|
67
67
|
valueLabel: "N",
|
|
68
|
-
description: "Run in N runner sandboxes at once, a run across runner sandboxes, with a driver that has file list support, else driver_sandboxes_refused: storm lists the run's test files on this machine, whether or not storm.config.ts sets testPlan, sorts them, deals them in turn into N file lists, the first file to runner sandbox 0's list, the second to runner sandbox 1's, and so on, and runs each file list in its own runner sandbox, all started from one runner snapshot, with the run's arguments unchanged and each runner sandbox's file list in STORM_RUN. With fewer test files than N, the run has one runner sandbox for each test file, and the plan line says so. N is a whole number from 1 to runner.sandboxes.max in storm.config.ts, and a config file without runner.sandboxes takes no --sandboxes. Each runner sandbox's command output goes only to its command.log in the run directory, under sandboxes/<index>/, and the run prints one status line for each runner sandbox's step, then each runner sandbox's waterfall, a table of the runner sandboxes, and a warning, file_list_mismatch, for each runner sandbox that reported nothing for a test file of its list or reported a test file not in its list; storm exits 0 when every runner sandbox passed, else 1, warning or not. The run keeps each runner sandbox only with --keep-sandbox. To give your own lists, use --file-lists. Fits the Vercel Sandbox runner only. Not with --show-output. Config key: runner.sandboxes.default, the number of runner sandboxes of a run with neither --sandboxes nor --file-lists, a whole number or a
|
|
68
|
+
description: "Run in N runner sandboxes at once, a run across runner sandboxes, with a driver that has file list support, else driver_sandboxes_refused: storm lists the run's test files on this machine, whether or not storm.config.ts sets testPlan, sorts them, deals them in turn into N file lists, the first file to runner sandbox 0's list, the second to runner sandbox 1's, and so on, and runs each file list in its own runner sandbox, all started from one runner snapshot, with the run's arguments unchanged and each runner sandbox's file list in STORM_RUN. With fewer test files than N, the run has one runner sandbox for each test file, and the plan line says so. N is a whole number from 1 to runner.sandboxes.max in storm.config.ts, and a config file without runner.sandboxes takes no --sandboxes. Each runner sandbox's command output goes only to its command.log in the run directory, under sandboxes/<index>/, and the run prints one status line for each runner sandbox's step, then each runner sandbox's waterfall, a table of the runner sandboxes, and a warning, file_list_mismatch, for each runner sandbox that reported nothing for a test file of its list or reported a test file not in its list; storm exits 0 when every runner sandbox passed, else 1, warning or not. The run keeps each runner sandbox only with --keep-sandbox. To give your own lists, use --file-lists. Fits the Vercel Sandbox runner only. Not with --show-output. Config key: runner.sandboxes.default, the number of runner sandboxes of a run with neither --sandboxes nor --file-lists, a whole number or a declared { filesPerSandbox, max? } rule, lowered to runner.sandboxes.max when it is above it; with it, every such run is a run across runner sandboxes, also with one runner sandbox.",
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* The field description of `--file-lists` on `storm test`, for a driver with file list support (`Driver.fileLists`).
|
|
@@ -2,7 +2,7 @@ import { type StyledCell } from "@vercel/clinkr/vcli-kit";
|
|
|
2
2
|
import type { Intent } from "@vercel/clinkr/vcli-kit/theme";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { type ListedRun } from "../../run-directory/index.ts";
|
|
5
|
-
import type
|
|
5
|
+
import { type RunScope } from "./past-run.ts";
|
|
6
6
|
/**
|
|
7
7
|
* The run logs `runs logs` prints and `runs show` names: the command log (`command`), then each step's, in the order a
|
|
8
8
|
* person looks for them.
|
|
@@ -15,6 +15,7 @@ export declare const scopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
15
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
16
16
|
kind: z.ZodLiteral<"all">;
|
|
17
17
|
why: z.ZodEnum<{
|
|
18
|
+
"config-file-conflict": "config-file-conflict";
|
|
18
19
|
flag: "flag";
|
|
19
20
|
"no-config-file": "no-config-file";
|
|
20
21
|
}>;
|
|
@@ -6,6 +6,7 @@ import { sandboxRecordSchema } from "../../run-directory/index.js";
|
|
|
6
6
|
import { sandboxPage, snapshotPage } from "../../shared/dashboard.js";
|
|
7
7
|
import { testTotalsText } from "../../shared/sandbox-table.js";
|
|
8
8
|
import { isoSecondsText, seconds, short } from "../../shared/text.js";
|
|
9
|
+
import { ALL_RUNS_WHY } from "./past-run.js";
|
|
9
10
|
/**
|
|
10
11
|
* The run logs `runs logs` prints and `runs show` names: the command log (`command`), then each step's, in the order a
|
|
11
12
|
* person looks for them.
|
|
@@ -22,8 +23,8 @@ export const scopeSchema = z.discriminatedUnion("kind", [
|
|
|
22
23
|
z.object({
|
|
23
24
|
/** Every run. */
|
|
24
25
|
kind: z.literal("all"),
|
|
25
|
-
/**
|
|
26
|
-
why: z.enum(
|
|
26
|
+
/** Why every run: one of `ALL_RUNS_WHY`. */
|
|
27
|
+
why: z.enum(ALL_RUNS_WHY),
|
|
27
28
|
}),
|
|
28
29
|
]);
|
|
29
30
|
/** A run's facts, from its run directory and `run.json`; each fact is null when unknown. */
|
|
@@ -178,7 +179,14 @@ export function scopeFacts(scope) {
|
|
|
178
179
|
export function scopeText(scope) {
|
|
179
180
|
if (scope.kind === "config")
|
|
180
181
|
return scope.configFile;
|
|
181
|
-
|
|
182
|
+
switch (scope.why) {
|
|
183
|
+
case "flag":
|
|
184
|
+
return "every config (--all)";
|
|
185
|
+
case "no-config-file":
|
|
186
|
+
return "every config (no config file found)";
|
|
187
|
+
case "config-file-conflict":
|
|
188
|
+
return "every config (storm.config.ts and storm.config.mts in one directory)";
|
|
189
|
+
}
|
|
182
190
|
}
|
|
183
191
|
/** The error every `runs` command returns when the run directories can't be read. */
|
|
184
192
|
export const runsUnreadable = {
|
|
@@ -18,6 +18,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
18
18
|
}, z.core.$strip>, z.ZodObject<{
|
|
19
19
|
kind: z.ZodLiteral<"all">;
|
|
20
20
|
why: z.ZodEnum<{
|
|
21
|
+
"config-file-conflict": "config-file-conflict";
|
|
21
22
|
flag: "flag";
|
|
22
23
|
"no-config-file": "no-config-file";
|
|
23
24
|
}>;
|
|
@@ -149,6 +150,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
149
150
|
}, z.core.$strip>, z.ZodObject<{
|
|
150
151
|
kind: z.ZodLiteral<"all">;
|
|
151
152
|
why: z.ZodEnum<{
|
|
153
|
+
"config-file-conflict": "config-file-conflict";
|
|
152
154
|
flag: "flag";
|
|
153
155
|
"no-config-file": "no-config-file";
|
|
154
156
|
}>;
|
|
@@ -17,23 +17,23 @@ import {
|
|
|
17
17
|
tookText,
|
|
18
18
|
totalsText,
|
|
19
19
|
totalsTone
|
|
20
|
-
} from "../../../chunks/chunk-
|
|
20
|
+
} from "../../../chunks/chunk-V4IKA3WI.js";
|
|
21
21
|
import {
|
|
22
22
|
muted,
|
|
23
23
|
path,
|
|
24
24
|
renderOutcome,
|
|
25
25
|
status
|
|
26
26
|
} from "../../../chunks/chunk-TJNFVNKR.js";
|
|
27
|
-
import "../../../chunks/chunk-
|
|
27
|
+
import "../../../chunks/chunk-2MAD5NKK.js";
|
|
28
28
|
import {
|
|
29
29
|
pastRuns
|
|
30
|
-
} from "../../../chunks/chunk-
|
|
31
|
-
import "../../../chunks/chunk-
|
|
30
|
+
} from "../../../chunks/chunk-P357TZAY.js";
|
|
31
|
+
import "../../../chunks/chunk-G3PHMXH5.js";
|
|
32
32
|
import "../../../chunks/chunk-F6N34UWB.js";
|
|
33
|
-
import "../../../chunks/chunk-
|
|
33
|
+
import "../../../chunks/chunk-FOZWA52V.js";
|
|
34
34
|
import {
|
|
35
35
|
findConfigFile
|
|
36
|
-
} from "../../../chunks/chunk-
|
|
36
|
+
} from "../../../chunks/chunk-DC2CDHNK.js";
|
|
37
37
|
import "../../../chunks/chunk-AWBSONHB.js";
|
|
38
38
|
import {
|
|
39
39
|
stormCommands
|
|
@@ -47,6 +47,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
47
47
|
}, z.core.$strip>, z.ZodObject<{
|
|
48
48
|
kind: z.ZodLiteral<"all">;
|
|
49
49
|
why: z.ZodEnum<{
|
|
50
|
+
"config-file-conflict": "config-file-conflict";
|
|
50
51
|
flag: "flag";
|
|
51
52
|
"no-config-file": "no-config-file";
|
|
52
53
|
}>;
|
|
@@ -121,6 +122,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
121
122
|
}, z.core.$strip>, z.ZodObject<{
|
|
122
123
|
kind: z.ZodLiteral<"all">;
|
|
123
124
|
why: z.ZodEnum<{
|
|
125
|
+
"config-file-conflict": "config-file-conflict";
|
|
124
126
|
flag: "flag";
|
|
125
127
|
"no-config-file": "no-config-file";
|
|
126
128
|
}>;
|
|
@@ -132,7 +134,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
132
134
|
configFile: string;
|
|
133
135
|
} | {
|
|
134
136
|
kind: "all";
|
|
135
|
-
why: "flag" | "no-config-file";
|
|
137
|
+
why: "config-file-conflict" | "flag" | "no-config-file";
|
|
136
138
|
};
|
|
137
139
|
}) => {
|
|
138
140
|
message: string;
|
|
@@ -251,6 +253,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
251
253
|
}, z.core.$strip>, z.ZodObject<{
|
|
252
254
|
kind: z.ZodLiteral<"all">;
|
|
253
255
|
why: z.ZodEnum<{
|
|
256
|
+
"config-file-conflict": "config-file-conflict";
|
|
254
257
|
flag: "flag";
|
|
255
258
|
"no-config-file": "no-config-file";
|
|
256
259
|
}>;
|
|
@@ -325,6 +328,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
325
328
|
}, z.core.$strip>, z.ZodObject<{
|
|
326
329
|
kind: z.ZodLiteral<"all">;
|
|
327
330
|
why: z.ZodEnum<{
|
|
331
|
+
"config-file-conflict": "config-file-conflict";
|
|
328
332
|
flag: "flag";
|
|
329
333
|
"no-config-file": "no-config-file";
|
|
330
334
|
}>;
|
|
@@ -336,7 +340,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
336
340
|
configFile: string;
|
|
337
341
|
} | {
|
|
338
342
|
kind: "all";
|
|
339
|
-
why: "flag" | "no-config-file";
|
|
343
|
+
why: "config-file-conflict" | "flag" | "no-config-file";
|
|
340
344
|
};
|
|
341
345
|
}) => {
|
|
342
346
|
message: string;
|
|
@@ -8,22 +8,22 @@ import {
|
|
|
8
8
|
sandboxIndexesText,
|
|
9
9
|
scopeFacts,
|
|
10
10
|
scopeSchema
|
|
11
|
-
} from "../../../chunks/chunk-
|
|
11
|
+
} from "../../../chunks/chunk-V4IKA3WI.js";
|
|
12
12
|
import {
|
|
13
13
|
renderOutcome
|
|
14
14
|
} from "../../../chunks/chunk-TJNFVNKR.js";
|
|
15
|
-
import "../../../chunks/chunk-
|
|
15
|
+
import "../../../chunks/chunk-2MAD5NKK.js";
|
|
16
16
|
import {
|
|
17
17
|
pastRuns
|
|
18
|
-
} from "../../../chunks/chunk-
|
|
19
|
-
import "../../../chunks/chunk-
|
|
18
|
+
} from "../../../chunks/chunk-P357TZAY.js";
|
|
19
|
+
import "../../../chunks/chunk-G3PHMXH5.js";
|
|
20
20
|
import {
|
|
21
21
|
stripAnsi
|
|
22
22
|
} from "../../../chunks/chunk-F6N34UWB.js";
|
|
23
|
-
import "../../../chunks/chunk-
|
|
23
|
+
import "../../../chunks/chunk-FOZWA52V.js";
|
|
24
24
|
import {
|
|
25
25
|
findConfigFile
|
|
26
|
-
} from "../../../chunks/chunk-
|
|
26
|
+
} from "../../../chunks/chunk-DC2CDHNK.js";
|
|
27
27
|
import "../../../chunks/chunk-AWBSONHB.js";
|
|
28
28
|
import {
|
|
29
29
|
stormCommands
|
|
@@ -31,6 +31,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
31
31
|
}, z.core.$strip>, z.ZodObject<{
|
|
32
32
|
kind: z.ZodLiteral<"all">;
|
|
33
33
|
why: z.ZodEnum<{
|
|
34
|
+
"config-file-conflict": "config-file-conflict";
|
|
34
35
|
flag: "flag";
|
|
35
36
|
"no-config-file": "no-config-file";
|
|
36
37
|
}>;
|
|
@@ -105,6 +106,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
105
106
|
}, z.core.$strip>, z.ZodObject<{
|
|
106
107
|
kind: z.ZodLiteral<"all">;
|
|
107
108
|
why: z.ZodEnum<{
|
|
109
|
+
"config-file-conflict": "config-file-conflict";
|
|
108
110
|
flag: "flag";
|
|
109
111
|
"no-config-file": "no-config-file";
|
|
110
112
|
}>;
|
|
@@ -116,7 +118,7 @@ export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
|
116
118
|
configFile: string;
|
|
117
119
|
} | {
|
|
118
120
|
kind: "all";
|
|
119
|
-
why: "flag" | "no-config-file";
|
|
121
|
+
why: "config-file-conflict" | "flag" | "no-config-file";
|
|
120
122
|
};
|
|
121
123
|
}) => {
|
|
122
124
|
message: string;
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
+
import type { ConfigFileLookup } from "../../config/index.ts";
|
|
1
2
|
import type { ListedRun, PastTestEvent, SandboxState } from "../../run-directory/index.ts";
|
|
2
3
|
import type { TestEvent, TestResultEvent } from "../../sdk/run/launcher.ts";
|
|
3
4
|
/**
|
|
4
|
-
* Which runs a command sees: those of the config file
|
|
5
|
-
*
|
|
5
|
+
* Which runs a command sees: those of the config file the working directory finds, or every run, by `--all`, because
|
|
6
|
+
* no config file was found, or because the nearest directory holding one holds more than one.
|
|
6
7
|
*/
|
|
7
8
|
export type RunScope = {
|
|
8
9
|
readonly kind: "config";
|
|
9
10
|
readonly configFile: string;
|
|
10
11
|
} | {
|
|
11
12
|
readonly kind: "all";
|
|
12
|
-
readonly why:
|
|
13
|
+
readonly why: AllRunsWhy;
|
|
13
14
|
};
|
|
14
|
-
/**
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Why a scope holds every run: `flag` for `--all`; `no-config-file` when no config file was found from the working
|
|
17
|
+
* directory; `config-file-conflict` when the nearest directory holding one holds both storm.config.ts and
|
|
18
|
+
* storm.config.mts.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ALL_RUNS_WHY: readonly ["flag", "no-config-file", "config-file-conflict"];
|
|
21
|
+
/** One of `ALL_RUNS_WHY`. */
|
|
22
|
+
export type AllRunsWhy = (typeof ALL_RUNS_WHY)[number];
|
|
23
|
+
/** The scope for `--all` and what looking for the config file from the working directory found. */
|
|
24
|
+
export declare function runScope(all: boolean, found: ConfigFileLookup): RunScope;
|
|
16
25
|
/**
|
|
17
26
|
* The runs in `scope`, newest first, as `listed` holds them. A run of another config file, or whose `run.json` can't be
|
|
18
27
|
* read, such as one an older storm wrote, is only in the `all` scope.
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
// Which past runs a `storm runs` command sees, and which of a run's tests it selects. Pure: the commands hand it what
|
|
2
2
|
// the run directory module's reader read (`pastRuns`, `run-directory/`).
|
|
3
3
|
import { stripAnsi } from "@vercel/clinkr/vcli-kit/ansi";
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Why a scope holds every run: `flag` for `--all`; `no-config-file` when no config file was found from the working
|
|
6
|
+
* directory; `config-file-conflict` when the nearest directory holding one holds both storm.config.ts and
|
|
7
|
+
* storm.config.mts.
|
|
8
|
+
*/
|
|
9
|
+
export const ALL_RUNS_WHY = ["flag", "no-config-file", "config-file-conflict"];
|
|
10
|
+
/** The scope for `--all` and what looking for the config file from the working directory found. */
|
|
11
|
+
export function runScope(all, found) {
|
|
6
12
|
if (all)
|
|
7
13
|
return { kind: "all", why: "flag" };
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
switch (found.kind) {
|
|
15
|
+
case "none":
|
|
16
|
+
return { kind: "all", why: "no-config-file" };
|
|
17
|
+
case "conflict":
|
|
18
|
+
return { kind: "all", why: "config-file-conflict" };
|
|
19
|
+
case "found":
|
|
20
|
+
return { kind: "config", configFile: found.path };
|
|
21
|
+
}
|
|
11
22
|
}
|
|
12
23
|
/**
|
|
13
24
|
* The runs in `scope`, newest first, as `listed` holds them. A run of another config file, or whose `run.json` can't be
|
|
@@ -421,6 +421,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
421
421
|
}, z.core.$strip>, z.ZodObject<{
|
|
422
422
|
kind: z.ZodLiteral<"all">;
|
|
423
423
|
why: z.ZodEnum<{
|
|
424
|
+
"config-file-conflict": "config-file-conflict";
|
|
424
425
|
flag: "flag";
|
|
425
426
|
"no-config-file": "no-config-file";
|
|
426
427
|
}>;
|
|
@@ -511,6 +512,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
511
512
|
}, z.core.$strip>, z.ZodObject<{
|
|
512
513
|
kind: z.ZodLiteral<"all">;
|
|
513
514
|
why: z.ZodEnum<{
|
|
515
|
+
"config-file-conflict": "config-file-conflict";
|
|
514
516
|
flag: "flag";
|
|
515
517
|
"no-config-file": "no-config-file";
|
|
516
518
|
}>;
|
|
@@ -522,7 +524,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
522
524
|
configFile: string;
|
|
523
525
|
} | {
|
|
524
526
|
kind: "all";
|
|
525
|
-
why: "flag" | "no-config-file";
|
|
527
|
+
why: "config-file-conflict" | "flag" | "no-config-file";
|
|
526
528
|
};
|
|
527
529
|
}) => {
|
|
528
530
|
message: string;
|
|
@@ -936,6 +938,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
936
938
|
}, z.core.$strip>, z.ZodObject<{
|
|
937
939
|
kind: z.ZodLiteral<"all">;
|
|
938
940
|
why: z.ZodEnum<{
|
|
941
|
+
"config-file-conflict": "config-file-conflict";
|
|
939
942
|
flag: "flag";
|
|
940
943
|
"no-config-file": "no-config-file";
|
|
941
944
|
}>;
|
|
@@ -1026,6 +1029,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
1026
1029
|
}, z.core.$strip>, z.ZodObject<{
|
|
1027
1030
|
kind: z.ZodLiteral<"all">;
|
|
1028
1031
|
why: z.ZodEnum<{
|
|
1032
|
+
"config-file-conflict": "config-file-conflict";
|
|
1029
1033
|
flag: "flag";
|
|
1030
1034
|
"no-config-file": "no-config-file";
|
|
1031
1035
|
}>;
|
|
@@ -1037,7 +1041,7 @@ declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
|
1037
1041
|
configFile: string;
|
|
1038
1042
|
} | {
|
|
1039
1043
|
kind: "all";
|
|
1040
|
-
why: "flag" | "no-config-file";
|
|
1044
|
+
why: "config-file-conflict" | "flag" | "no-config-file";
|
|
1041
1045
|
};
|
|
1042
1046
|
}) => {
|
|
1043
1047
|
message: string;
|