@cnc-tools/storm 0.14.0 → 0.14.2
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 +10 -2
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-27P2QSIM.js → chunk-3HBPNQ4Y.js} +1 -1
- package/dist/chunks/{chunk-HOKDKP5A.js → chunk-E3QU74NX.js} +1 -1
- package/dist/chunks/{chunk-RKONDLPS.js → chunk-GJOEPJJL.js} +2 -2
- package/dist/chunks/{chunk-XPCUINWS.js → chunk-HDL4WKIB.js} +1 -1
- package/dist/chunks/{chunk-IVRRGGCD.js → chunk-HP54VHGY.js} +4 -4
- package/dist/chunks/{chunk-5ED3IDUJ.js → chunk-I7AN3DIJ.js} +25 -4
- package/dist/chunks/{chunk-YBPTMJUM.js → chunk-LUOHJ3LB.js} +9 -9
- package/dist/chunks/{chunk-ZH5R7W4A.js → chunk-RUPD4TLT.js} +1 -1
- package/dist/chunks/{chunk-BFLYGMG3.js → chunk-TVMEKVOW.js} +4 -4
- package/dist/chunks/{chunk-Z5OXOZD3.js → chunk-UUBZTGLV.js} +1 -1
- package/dist/chunks/{chunk-5TMHYH7G.js → chunk-VH2POPW5.js} +4 -2
- package/dist/chunks/{chunk-QBR5VHJ7.js → chunk-XZCDA5PE.js} +1 -1
- package/dist/chunks/{live-app-FBVWUUMT.js → live-app-SZGEILCQ.js} +13 -7
- package/dist/commands/exec/command.js +10 -10
- package/dist/commands/exec/exec-words.js +1 -1
- package/dist/commands/exec/metadata.js +1 -1
- package/dist/commands/playwright/command.js +11 -11
- package/dist/commands/runs/list/command.js +5 -5
- package/dist/commands/runs/logs/command.js +5 -5
- package/dist/commands/runs/show/command.js +8 -8
- package/dist/commands/snapshots/build/command.js +9 -9
- package/dist/commands/snapshots/list/command.js +6 -6
- package/dist/commands/vitest/command.js +11 -11
- package/dist/context.d.ts +1 -0
- package/dist/context.js +4 -1
- package/dist/core/payload.d.ts +5 -3
- package/dist/core/payload.js +8 -3
- package/dist/extensions/testserver/commands/pool/create/command.js +1 -1
- package/dist/extensions/testserver/vercel-cli/arguments.d.ts +10 -4
- package/dist/extensions/testserver/vercel-cli/arguments.js +17 -6
- package/dist/extensions/testserver/vercel-cli/environment.d.ts +12 -1
- package/dist/extensions/testserver/vercel-cli/environment.js +35 -5
- package/dist/extensions/testserver/vercel-cli/invoker.d.ts +28 -13
- package/dist/extensions/testserver/vercel-cli/invoker.js +81 -67
- package/dist/extensions/testserver/vercel-cli/live/process-gateway.js +4 -10
- package/dist/extensions/testserver/vercel-cli/session-id.js +5 -4
- package/dist/extensions/testserver/vitest/diagnostics.d.ts +10 -9
- package/dist/extensions/testserver/vitest/diagnostics.js +17 -16
- package/dist/extensions/testserver/vitest/fixtures.d.ts +6 -2
- package/dist/extensions/testserver/vitest/fixtures.js +13 -10
- package/dist/extensions/testserver/vitest/types.d.ts +9 -2
- package/dist/live-app.d.ts +3 -1
- package/dist/live-app.js +5 -2
- package/dist/runner/gateways.d.ts +10 -2
- package/dist/runner/index.d.ts +1 -1
- package/dist/runner/live/sandbox-gateway.js +16 -2
- package/dist/runner/live/terminal.d.ts +15 -3
- package/dist/runner/live/terminal.js +25 -3
- package/dist/runner/recipe.d.ts +3 -2
- package/dist/runner/sandboxed-command.d.ts +5 -5
- package/dist/runner/sandboxed-command.js +7 -5
- package/package.json +1 -1
package/dist/bin/storm.js
CHANGED
|
@@ -102,11 +102,19 @@ async function version() {
|
|
|
102
102
|
return versionText(manifest.version, built);
|
|
103
103
|
}
|
|
104
104
|
var exit = { status: void 0 };
|
|
105
|
+
function hasNoColorFlag(argv) {
|
|
106
|
+
for (const token of argv) {
|
|
107
|
+
if (token === "--") return false;
|
|
108
|
+
if (token === "--no-color") return true;
|
|
109
|
+
}
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
105
112
|
var accessible = process.env["VERCEL_ACCESSIBLE"] === "1";
|
|
113
|
+
var noColor = hasNoColorFlag(process.argv.slice(2));
|
|
106
114
|
var status = await runNodeCli(await loadStormApplication(version, { accessible, root }), {
|
|
107
115
|
app: async (host) => {
|
|
108
|
-
const [{ liveStormApp }, built] = await Promise.all([import("../chunks/live-app-
|
|
109
|
-
return liveStormApp(host, { version: manifest.version, commit: built }, exit);
|
|
116
|
+
const [{ liveStormApp }, built] = await Promise.all([import("../chunks/live-app-SZGEILCQ.js"), commit()]);
|
|
117
|
+
return liveStormApp(host, { version: manifest.version, commit: built }, exit, { noColor });
|
|
110
118
|
}
|
|
111
119
|
});
|
|
112
120
|
process.exitCode = exit.status ?? status;
|
package/dist/build-info.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
RESOURCE_FLAG_HELP,
|
|
3
3
|
RESOURCE_USAGE_FLAGS,
|
|
4
4
|
resourceRunExamples
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TVMEKVOW.js";
|
|
6
6
|
|
|
7
7
|
// src/commands/exec/run-metadata.ts
|
|
8
8
|
var RUN_USAGE_FLAGS = `${RESOURCE_USAGE_FLAGS} [--credential <SOURCE>] [--scope <TEAM> --project <PROJECT>] [--unsandboxed | [--show-output] [--keep-sandbox <DURATION>]] [--verbose]`;
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
EMPTY_RUN_STATE,
|
|
3
3
|
commandExitStatus,
|
|
4
4
|
observeAll
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VH2POPW5.js";
|
|
6
6
|
import {
|
|
7
7
|
parseTestEvent,
|
|
8
8
|
testEventLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I7AN3DIJ.js";
|
|
10
10
|
|
|
11
11
|
// src/run-directory/run-directory.ts
|
|
12
12
|
import { join } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runHelp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E3QU74NX.js";
|
|
4
4
|
import {
|
|
5
5
|
RAN_DESCRIPTION,
|
|
6
6
|
RUN_CLI_OPTIONS,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
ranSchema,
|
|
13
13
|
runCommand,
|
|
14
14
|
runProblems
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LUOHJ3LB.js";
|
|
16
16
|
import {
|
|
17
17
|
recordedPlan
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TVMEKVOW.js";
|
|
19
19
|
import {
|
|
20
20
|
planSchema
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GJOEPJJL.js";
|
|
22
22
|
import {
|
|
23
23
|
DRIVER_PLAN_FAILURE_KINDS,
|
|
24
24
|
NOT_COUNTED
|
|
@@ -1552,6 +1552,13 @@ var TERMINATE_GRACE_MS = 1e4;
|
|
|
1552
1552
|
var KILL_GRACE_MS = 5e3;
|
|
1553
1553
|
var STDERR_MESSAGE_CHARS = 1e3;
|
|
1554
1554
|
var SNAPSHOT_GONE_STATUS = 410;
|
|
1555
|
+
var DROP_CAPABILITIES_ARGS = [
|
|
1556
|
+
"--inh-caps=-all",
|
|
1557
|
+
"--ambient-caps=-all",
|
|
1558
|
+
"--bounding-set=-all",
|
|
1559
|
+
"--no-new-privs",
|
|
1560
|
+
"--"
|
|
1561
|
+
];
|
|
1555
1562
|
function liveRunnerSandboxGateway() {
|
|
1556
1563
|
let loading;
|
|
1557
1564
|
const sdk = () => loading ??= import("@vercel/sandbox");
|
|
@@ -1651,8 +1658,8 @@ function liveRunnerSandboxGateway() {
|
|
|
1651
1658
|
const cmd = await resolveExecutable(holder, request2);
|
|
1652
1659
|
if (kill.aborted) return { ok: false, failure: { kind: "aborted" } };
|
|
1653
1660
|
const command = await startDetached(holder, {
|
|
1654
|
-
cmd,
|
|
1655
|
-
args: [...request2.args],
|
|
1661
|
+
cmd: "setpriv",
|
|
1662
|
+
args: [...DROP_CAPABILITIES_ARGS, cmd, ...request2.args],
|
|
1656
1663
|
cwd: request2.cwd,
|
|
1657
1664
|
env: { ...request2.env }
|
|
1658
1665
|
});
|
|
@@ -1909,6 +1916,16 @@ function isAborted(signal) {
|
|
|
1909
1916
|
}
|
|
1910
1917
|
|
|
1911
1918
|
// src/runner/live/terminal.ts
|
|
1919
|
+
function resolveRunnerTerminalColor(options) {
|
|
1920
|
+
if (options.noColor === true) return "off";
|
|
1921
|
+
const noColor = options.env["NO_COLOR"];
|
|
1922
|
+
if (noColor !== void 0 && noColor !== "") return "off";
|
|
1923
|
+
const forced = options.env["FORCE_COLOR"];
|
|
1924
|
+
if (forced !== void 0 && forced !== "") {
|
|
1925
|
+
return forced === "0" || forced === "false" ? "auto" : "on";
|
|
1926
|
+
}
|
|
1927
|
+
return options.isTTY && options.env["TERM"] !== "dumb" ? "on" : "auto";
|
|
1928
|
+
}
|
|
1912
1929
|
function liveRunnerTerminal(options) {
|
|
1913
1930
|
const stdout = options.stdout ?? process.stdout;
|
|
1914
1931
|
const stderr = options.stderr ?? process.stderr;
|
|
@@ -1931,7 +1948,11 @@ function liveRunnerTerminal(options) {
|
|
|
1931
1948
|
}
|
|
1932
1949
|
};
|
|
1933
1950
|
return {
|
|
1934
|
-
color:
|
|
1951
|
+
color: resolveRunnerTerminalColor({
|
|
1952
|
+
isTTY: stdout.isTTY === true,
|
|
1953
|
+
env: options.env,
|
|
1954
|
+
...options.noColor === void 0 ? {} : { noColor: options.noColor }
|
|
1955
|
+
}),
|
|
1935
1956
|
writeStdout: (text) => write(stdout, text),
|
|
1936
1957
|
writeStderr: (text) => write(stderr, text)
|
|
1937
1958
|
};
|
|
@@ -2143,7 +2164,7 @@ function sandboxEnvironment(request2) {
|
|
|
2143
2164
|
return {
|
|
2144
2165
|
PATH: [...bins, request2.loginPath].filter((part) => part !== "").join(":"),
|
|
2145
2166
|
NO_UPDATE_NOTIFIER: "1",
|
|
2146
|
-
...request2.env["FORCE_COLOR"] !== void 0 || request2.env["NO_COLOR"] !== void 0 ? {} : request2.color ? { FORCE_COLOR: "1" } : { NO_COLOR: "1" },
|
|
2167
|
+
...request2.env["FORCE_COLOR"] !== void 0 || request2.env["NO_COLOR"] !== void 0 ? {} : request2.color === "on" ? { FORCE_COLOR: "1" } : request2.color === "off" ? { NO_COLOR: "1" } : {},
|
|
2147
2168
|
...request2.env,
|
|
2148
2169
|
[RUN_PAYLOAD_VARIABLE]: request2.runPayload
|
|
2149
2170
|
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
redactingObserver,
|
|
7
7
|
redactingTerminal,
|
|
8
8
|
redactor
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3HBPNQ4Y.js";
|
|
10
10
|
import {
|
|
11
11
|
criticalPathStep,
|
|
12
12
|
recordedPlan,
|
|
@@ -17,23 +17,23 @@ import {
|
|
|
17
17
|
testsChart,
|
|
18
18
|
testsSummaryLines,
|
|
19
19
|
waterfallLines
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TVMEKVOW.js";
|
|
21
21
|
import {
|
|
22
22
|
builtAtText,
|
|
23
23
|
rejectionLines,
|
|
24
24
|
snapshotCacheNoteText
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HDL4WKIB.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFINITION_SET,
|
|
28
28
|
RESOURCES
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UUBZTGLV.js";
|
|
30
30
|
import {
|
|
31
31
|
sandboxConnectPage
|
|
32
32
|
} from "./chunk-NMVODY3P.js";
|
|
33
33
|
import {
|
|
34
34
|
recordRun,
|
|
35
35
|
timelineSchema
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GJOEPJJL.js";
|
|
37
37
|
import {
|
|
38
38
|
isoSecondsText,
|
|
39
39
|
keepTimeText,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
truncate,
|
|
47
47
|
visibleLength,
|
|
48
48
|
withArticle
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XZCDA5PE.js";
|
|
50
50
|
import {
|
|
51
51
|
EMPTY_RUN_STATE,
|
|
52
52
|
cleanupProblems,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
setupPhaseWords,
|
|
60
60
|
timedProgress,
|
|
61
61
|
warningTally
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-VH2POPW5.js";
|
|
63
63
|
import {
|
|
64
64
|
RUNNER_SECRET_MIN_LENGTH,
|
|
65
65
|
configErrors,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
requireTarget,
|
|
76
76
|
settleCredential,
|
|
77
77
|
settleRunResources
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-I7AN3DIJ.js";
|
|
79
79
|
import {
|
|
80
80
|
describeMintFailure,
|
|
81
81
|
isCi
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
// src/commands/exec/exec-words.ts
|
|
94
94
|
var EXEC_HELP = {
|
|
95
95
|
usage: "-- <command...>",
|
|
96
|
-
args: "The command to run, after --, as an argument list with no shell. Unsandboxed, it gets this machine's working directory and environment, less the launcher variables its resources hide, plus STORM_RUN, and FORCE_COLOR or NO_COLOR when neither is set; in a sandboxed run, the runner recipe's cwd, its env, the runner's PATH, STORM_RUN, and FORCE_COLOR or NO_COLOR when that env sets neither, with paths under the repository's root rewritten.",
|
|
96
|
+
args: "The command to run, after --, as an argument list with no shell. Unsandboxed, it gets this machine's working directory and environment, less the launcher variables its 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; in a sandboxed run, the runner recipe's cwd, its env, the runner's PATH, STORM_RUN, and FORCE_COLOR or NO_COLOR only when that env sets neither and the launcher asks for or opts out of color, with paths under the repository's root rewritten.",
|
|
97
97
|
verbose: "which asks the command to print what each test does as it happens, for passing tests too",
|
|
98
98
|
examples: [
|
|
99
99
|
{
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DEFINITION_SET,
|
|
3
3
|
EXTENSIONS,
|
|
4
4
|
RESOURCES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UUBZTGLV.js";
|
|
6
6
|
import {
|
|
7
7
|
median,
|
|
8
8
|
paint,
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
shortFile,
|
|
11
11
|
truncate,
|
|
12
12
|
visibleLength
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XZCDA5PE.js";
|
|
14
14
|
import {
|
|
15
15
|
megabytesText,
|
|
16
16
|
sameRow,
|
|
17
17
|
setupPhaseKey,
|
|
18
18
|
setupPhaseWords
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VH2POPW5.js";
|
|
20
20
|
import {
|
|
21
21
|
CONFIG_FILE_NAME
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-I7AN3DIJ.js";
|
|
23
23
|
import {
|
|
24
24
|
defaultResourceKey,
|
|
25
25
|
optionKeyPath
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
parseTestEvent,
|
|
8
8
|
systemClock,
|
|
9
9
|
systemTimer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I7AN3DIJ.js";
|
|
11
11
|
|
|
12
12
|
// src/core/reports.ts
|
|
13
13
|
var WARNINGS_HEADING = "Warnings";
|
|
@@ -976,7 +976,9 @@ function commandEnvironment(env, payload) {
|
|
|
976
976
|
}
|
|
977
977
|
function colorEnvironment(env, color) {
|
|
978
978
|
if (env["FORCE_COLOR"] !== void 0 || env["NO_COLOR"] !== void 0) return env;
|
|
979
|
-
|
|
979
|
+
if (color === "on") return { ...env, FORCE_COLOR: "1" };
|
|
980
|
+
if (color === "off") return { ...env, NO_COLOR: "1" };
|
|
981
|
+
return env;
|
|
980
982
|
}
|
|
981
983
|
|
|
982
984
|
// src/core/resources.ts
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
RESOURCES,
|
|
3
3
|
liveDriverContexts,
|
|
4
4
|
liveResourceContexts
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UUBZTGLV.js";
|
|
6
6
|
import "./chunk-UC6DULWY.js";
|
|
7
7
|
import "./chunk-BRUIATTR.js";
|
|
8
8
|
import {
|
|
9
9
|
RUNS_SUBPATH,
|
|
10
10
|
liveRunDirectoryGateway,
|
|
11
11
|
unavailableRunDirectoryGateway
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GJOEPJJL.js";
|
|
13
13
|
import {
|
|
14
14
|
liveCommandGateway,
|
|
15
15
|
liveJobSummaryGateway,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
liveProgressTerminal,
|
|
18
18
|
resolveStateDirectory,
|
|
19
19
|
stateDirectoryPattern
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VH2POPW5.js";
|
|
21
21
|
import {
|
|
22
22
|
RUNNER_SNAPSHOTS_SUBPATH,
|
|
23
23
|
configResolver,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
systemClock,
|
|
34
34
|
systemTimer,
|
|
35
35
|
unavailableRunnerSnapshotCacheGateway
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-I7AN3DIJ.js";
|
|
37
37
|
import "./chunk-RA4L2ACU.js";
|
|
38
38
|
import "./chunk-GQIL3AHY.js";
|
|
39
39
|
import "./chunk-GSC6SRTW.js";
|
|
@@ -71,7 +71,10 @@ function liveContext(options) {
|
|
|
71
71
|
checkout: liveCheckoutGateway(),
|
|
72
72
|
runnerSnapshots: snapshots.ok ? liveRunnerSnapshotCacheGateway({ directory: snapshots.directory }) : unavailableRunnerSnapshotCacheGateway(stateDirectoryPattern(RUNNER_SNAPSHOTS_SUBPATH), snapshots.reason),
|
|
73
73
|
runnerSandboxes: liveRunnerSandboxGateway(),
|
|
74
|
-
runnerTerminal: liveRunnerTerminal({
|
|
74
|
+
runnerTerminal: liveRunnerTerminal({
|
|
75
|
+
env: options.env,
|
|
76
|
+
...options.noColor === void 0 ? {} : { noColor: options.noColor }
|
|
77
|
+
}),
|
|
75
78
|
runDirectories: runs.ok ? liveRunDirectoryGateway({ directory: runs.directory }) : unavailableRunDirectoryGateway(stateDirectoryPattern(RUNS_SUBPATH), runs.reason),
|
|
76
79
|
progressTerminal: liveProgressTerminal(),
|
|
77
80
|
jobSummary: liveJobSummaryGateway({ path: options.env["GITHUB_STEP_SUMMARY"] }),
|
|
@@ -98,8 +101,11 @@ function resolveColor(env, rich) {
|
|
|
98
101
|
}
|
|
99
102
|
|
|
100
103
|
// src/live-app.ts
|
|
101
|
-
function liveStormApp(host, build, exit) {
|
|
102
|
-
const context = liveContext({
|
|
104
|
+
function liveStormApp(host, build, exit, options = {}) {
|
|
105
|
+
const context = liveContext({
|
|
106
|
+
env: host.env,
|
|
107
|
+
...options.noColor === void 0 ? {} : { noColor: options.noColor }
|
|
108
|
+
});
|
|
103
109
|
return {
|
|
104
110
|
context,
|
|
105
111
|
resourceContexts: liveResourceContexts(host.env),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runHelp
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-E3QU74NX.js";
|
|
4
4
|
import {
|
|
5
5
|
EXEC_HELP,
|
|
6
6
|
EXEC_HINTS,
|
|
@@ -9,19 +9,19 @@ import {
|
|
|
9
9
|
outcomes,
|
|
10
10
|
runCommand,
|
|
11
11
|
runProblems
|
|
12
|
-
} from "../../chunks/chunk-
|
|
12
|
+
} from "../../chunks/chunk-LUOHJ3LB.js";
|
|
13
13
|
import "../../chunks/chunk-I5GZLOLQ.js";
|
|
14
|
-
import "../../chunks/chunk-
|
|
15
|
-
import "../../chunks/chunk-
|
|
16
|
-
import "../../chunks/chunk-
|
|
17
|
-
import "../../chunks/chunk-
|
|
14
|
+
import "../../chunks/chunk-3HBPNQ4Y.js";
|
|
15
|
+
import "../../chunks/chunk-TVMEKVOW.js";
|
|
16
|
+
import "../../chunks/chunk-HDL4WKIB.js";
|
|
17
|
+
import "../../chunks/chunk-UUBZTGLV.js";
|
|
18
18
|
import "../../chunks/chunk-UC6DULWY.js";
|
|
19
19
|
import "../../chunks/chunk-BRUIATTR.js";
|
|
20
20
|
import "../../chunks/chunk-NMVODY3P.js";
|
|
21
|
-
import "../../chunks/chunk-
|
|
22
|
-
import "../../chunks/chunk-
|
|
23
|
-
import "../../chunks/chunk-
|
|
24
|
-
import "../../chunks/chunk-
|
|
21
|
+
import "../../chunks/chunk-GJOEPJJL.js";
|
|
22
|
+
import "../../chunks/chunk-XZCDA5PE.js";
|
|
23
|
+
import "../../chunks/chunk-VH2POPW5.js";
|
|
24
|
+
import "../../chunks/chunk-I7AN3DIJ.js";
|
|
25
25
|
import {
|
|
26
26
|
NOT_COUNTED
|
|
27
27
|
} from "../../chunks/chunk-RA4L2ACU.js";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/** `exec`'s part of its leaf help: its usage after the run flags, its arguments, `--verbose`'s ending and its examples. */
|
|
7
7
|
export const EXEC_HELP = {
|
|
8
8
|
usage: "-- <command...>",
|
|
9
|
-
args: "The command to run, after --, as an argument list with no shell. Unsandboxed, it gets this machine's working directory and environment, less the launcher variables its resources hide, plus STORM_RUN, and FORCE_COLOR or NO_COLOR when neither is set; in a sandboxed run, the runner recipe's cwd, its env, the runner's PATH, STORM_RUN, and FORCE_COLOR or NO_COLOR when that env sets neither, with paths under the repository's root rewritten.",
|
|
9
|
+
args: "The command to run, after --, as an argument list with no shell. Unsandboxed, it gets this machine's working directory and environment, less the launcher variables its 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; in a sandboxed run, the runner recipe's cwd, its env, the runner's PATH, STORM_RUN, and FORCE_COLOR or NO_COLOR only when that env sets neither and the launcher asks for or opts out of color, with paths under the repository's root rewritten.",
|
|
10
10
|
verbose: "which asks the command to print what each test does as it happens, for passing tests too",
|
|
11
11
|
examples: [
|
|
12
12
|
{
|
|
@@ -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 vitest, use storm vitest, which finds vitest and can count the tests and size the run first (testPlan in storm.config.ts); exec counts nothing and sizes nothing. In an unsandboxed run (--unsandboxed), 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 when neither is set. In a sandboxed run, the default, 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 (
|
|
3
|
+
description: "Run any command, the argument list after --, as it is, with the run payload in STORM_RUN. For vitest, use storm vitest, which finds vitest and can count the tests and size the run first (testPlan in storm.config.ts); exec counts nothing and sizes nothing. In an unsandboxed run (--unsandboxed), 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. In a sandboxed run, the default, 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), and STORM_RUN, and nothing else from this machine's environment; each recipe step that names a runner secret, never the command, also gets that launcher environment variable, one its secrets key declares, shown as <token> in what storm prints and writes, and a sandboxed run 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 a sandboxed run 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. 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. A run whose command exits 0 but saves no final test result warns no_final_test_results, whose next steps say how to add storm's reporter if the command runs tests. 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 secret a resource hands its command, such as a test-data token, shows as <token> in what the run prints and writes.",
|
|
4
4
|
summary: "Run any command, in a runner sandbox or unsandboxed."
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineRunCommand
|
|
3
|
-
} from "../../chunks/chunk-
|
|
4
|
-
import "../../chunks/chunk-
|
|
5
|
-
import "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-HP54VHGY.js";
|
|
4
|
+
import "../../chunks/chunk-E3QU74NX.js";
|
|
5
|
+
import "../../chunks/chunk-LUOHJ3LB.js";
|
|
6
6
|
import "../../chunks/chunk-I5GZLOLQ.js";
|
|
7
|
-
import "../../chunks/chunk-
|
|
8
|
-
import "../../chunks/chunk-
|
|
9
|
-
import "../../chunks/chunk-
|
|
7
|
+
import "../../chunks/chunk-3HBPNQ4Y.js";
|
|
8
|
+
import "../../chunks/chunk-TVMEKVOW.js";
|
|
9
|
+
import "../../chunks/chunk-HDL4WKIB.js";
|
|
10
10
|
import {
|
|
11
11
|
driverNamed
|
|
12
|
-
} from "../../chunks/chunk-
|
|
12
|
+
} from "../../chunks/chunk-UUBZTGLV.js";
|
|
13
13
|
import "../../chunks/chunk-UC6DULWY.js";
|
|
14
14
|
import "../../chunks/chunk-BRUIATTR.js";
|
|
15
15
|
import "../../chunks/chunk-NMVODY3P.js";
|
|
16
|
-
import "../../chunks/chunk-
|
|
17
|
-
import "../../chunks/chunk-
|
|
18
|
-
import "../../chunks/chunk-
|
|
19
|
-
import "../../chunks/chunk-
|
|
16
|
+
import "../../chunks/chunk-GJOEPJJL.js";
|
|
17
|
+
import "../../chunks/chunk-XZCDA5PE.js";
|
|
18
|
+
import "../../chunks/chunk-VH2POPW5.js";
|
|
19
|
+
import "../../chunks/chunk-I7AN3DIJ.js";
|
|
20
20
|
import "../../chunks/chunk-RA4L2ACU.js";
|
|
21
21
|
import "../../chunks/chunk-BW2ADH7U.js";
|
|
22
22
|
import "../../chunks/chunk-GQIL3AHY.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
tookText,
|
|
18
18
|
totalsText,
|
|
19
19
|
totalsTone
|
|
20
|
-
} from "../../../chunks/chunk-
|
|
20
|
+
} from "../../../chunks/chunk-RUPD4TLT.js";
|
|
21
21
|
import {
|
|
22
22
|
muted,
|
|
23
23
|
path,
|
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
import "../../../chunks/chunk-NMVODY3P.js";
|
|
28
28
|
import {
|
|
29
29
|
pastRuns
|
|
30
|
-
} from "../../../chunks/chunk-
|
|
31
|
-
import "../../../chunks/chunk-
|
|
32
|
-
import "../../../chunks/chunk-
|
|
30
|
+
} from "../../../chunks/chunk-GJOEPJJL.js";
|
|
31
|
+
import "../../../chunks/chunk-XZCDA5PE.js";
|
|
32
|
+
import "../../../chunks/chunk-VH2POPW5.js";
|
|
33
33
|
import {
|
|
34
34
|
findConfigFile
|
|
35
|
-
} from "../../../chunks/chunk-
|
|
35
|
+
} from "../../../chunks/chunk-I7AN3DIJ.js";
|
|
36
36
|
import "../../../chunks/chunk-RA4L2ACU.js";
|
|
37
37
|
import {
|
|
38
38
|
stormCommands
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
runsUnreadable,
|
|
8
8
|
scopeFacts,
|
|
9
9
|
scopeSchema
|
|
10
|
-
} from "../../../chunks/chunk-
|
|
10
|
+
} from "../../../chunks/chunk-RUPD4TLT.js";
|
|
11
11
|
import {
|
|
12
12
|
renderOutcome
|
|
13
13
|
} from "../../../chunks/chunk-T6AZIDZD.js";
|
|
14
14
|
import "../../../chunks/chunk-NMVODY3P.js";
|
|
15
15
|
import {
|
|
16
16
|
pastRuns
|
|
17
|
-
} from "../../../chunks/chunk-
|
|
18
|
-
import "../../../chunks/chunk-
|
|
19
|
-
import "../../../chunks/chunk-
|
|
17
|
+
} from "../../../chunks/chunk-GJOEPJJL.js";
|
|
18
|
+
import "../../../chunks/chunk-XZCDA5PE.js";
|
|
19
|
+
import "../../../chunks/chunk-VH2POPW5.js";
|
|
20
20
|
import {
|
|
21
21
|
findConfigFile
|
|
22
|
-
} from "../../../chunks/chunk-
|
|
22
|
+
} from "../../../chunks/chunk-I7AN3DIJ.js";
|
|
23
23
|
import "../../../chunks/chunk-RA4L2ACU.js";
|
|
24
24
|
import {
|
|
25
25
|
stormCommands
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tookText,
|
|
21
21
|
totalsText,
|
|
22
22
|
totalsTone
|
|
23
|
-
} from "../../../chunks/chunk-
|
|
23
|
+
} from "../../../chunks/chunk-RUPD4TLT.js";
|
|
24
24
|
import {
|
|
25
25
|
bold,
|
|
26
26
|
capsFor,
|
|
@@ -29,11 +29,11 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
testPlanText,
|
|
31
31
|
waterfallLines
|
|
32
|
-
} from "../../../chunks/chunk-
|
|
32
|
+
} from "../../../chunks/chunk-TVMEKVOW.js";
|
|
33
33
|
import {
|
|
34
34
|
builtAtText
|
|
35
|
-
} from "../../../chunks/chunk-
|
|
36
|
-
import "../../../chunks/chunk-
|
|
35
|
+
} from "../../../chunks/chunk-HDL4WKIB.js";
|
|
36
|
+
import "../../../chunks/chunk-UUBZTGLV.js";
|
|
37
37
|
import "../../../chunks/chunk-UC6DULWY.js";
|
|
38
38
|
import "../../../chunks/chunk-BRUIATTR.js";
|
|
39
39
|
import "../../../chunks/chunk-NMVODY3P.js";
|
|
@@ -41,16 +41,16 @@ import {
|
|
|
41
41
|
pastRuns,
|
|
42
42
|
planSchema,
|
|
43
43
|
timelineSchema
|
|
44
|
-
} from "../../../chunks/chunk-
|
|
44
|
+
} from "../../../chunks/chunk-GJOEPJJL.js";
|
|
45
45
|
import {
|
|
46
46
|
short
|
|
47
|
-
} from "../../../chunks/chunk-
|
|
47
|
+
} from "../../../chunks/chunk-XZCDA5PE.js";
|
|
48
48
|
import {
|
|
49
49
|
megabytesText
|
|
50
|
-
} from "../../../chunks/chunk-
|
|
50
|
+
} from "../../../chunks/chunk-VH2POPW5.js";
|
|
51
51
|
import {
|
|
52
52
|
findConfigFile
|
|
53
|
-
} from "../../../chunks/chunk-
|
|
53
|
+
} from "../../../chunks/chunk-I7AN3DIJ.js";
|
|
54
54
|
import "../../../chunks/chunk-RA4L2ACU.js";
|
|
55
55
|
import "../../../chunks/chunk-GQIL3AHY.js";
|
|
56
56
|
import "../../../chunks/chunk-GSC6SRTW.js";
|
|
@@ -9,28 +9,28 @@ import {
|
|
|
9
9
|
prepareRefusal,
|
|
10
10
|
runErrors,
|
|
11
11
|
runnerFailureFacts
|
|
12
|
-
} from "../../../chunks/chunk-
|
|
12
|
+
} from "../../../chunks/chunk-LUOHJ3LB.js";
|
|
13
13
|
import "../../../chunks/chunk-I5GZLOLQ.js";
|
|
14
14
|
import {
|
|
15
15
|
redactStrings,
|
|
16
16
|
redactor
|
|
17
|
-
} from "../../../chunks/chunk-
|
|
18
|
-
import "../../../chunks/chunk-
|
|
19
|
-
import "../../../chunks/chunk-
|
|
17
|
+
} from "../../../chunks/chunk-3HBPNQ4Y.js";
|
|
18
|
+
import "../../../chunks/chunk-TVMEKVOW.js";
|
|
19
|
+
import "../../../chunks/chunk-HDL4WKIB.js";
|
|
20
20
|
import {
|
|
21
21
|
RESOURCES
|
|
22
|
-
} from "../../../chunks/chunk-
|
|
22
|
+
} from "../../../chunks/chunk-UUBZTGLV.js";
|
|
23
23
|
import "../../../chunks/chunk-UC6DULWY.js";
|
|
24
24
|
import "../../../chunks/chunk-BRUIATTR.js";
|
|
25
25
|
import "../../../chunks/chunk-NMVODY3P.js";
|
|
26
|
-
import "../../../chunks/chunk-
|
|
26
|
+
import "../../../chunks/chunk-GJOEPJJL.js";
|
|
27
27
|
import {
|
|
28
28
|
seconds,
|
|
29
29
|
short
|
|
30
|
-
} from "../../../chunks/chunk-
|
|
30
|
+
} from "../../../chunks/chunk-XZCDA5PE.js";
|
|
31
31
|
import {
|
|
32
32
|
megabytesText
|
|
33
|
-
} from "../../../chunks/chunk-
|
|
33
|
+
} from "../../../chunks/chunk-VH2POPW5.js";
|
|
34
34
|
import {
|
|
35
35
|
RUNNER_SECRET_MIN_LENGTH,
|
|
36
36
|
buildSnapshots,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
prepareSnapshotBuild,
|
|
43
43
|
readRunnerSecrets,
|
|
44
44
|
requireTarget
|
|
45
|
-
} from "../../../chunks/chunk-
|
|
45
|
+
} from "../../../chunks/chunk-I7AN3DIJ.js";
|
|
46
46
|
import "../../../chunks/chunk-RA4L2ACU.js";
|
|
47
47
|
import "../../../chunks/chunk-BW2ADH7U.js";
|
|
48
48
|
import "../../../chunks/chunk-GQIL3AHY.js";
|