@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.
Files changed (109) hide show
  1. package/dist/bin/storm.js +1 -1
  2. package/dist/build-info.js +1 -1
  3. package/dist/chunks/{chunk-QUHY6FGN.js → chunk-2MAD5NKK.js} +1 -1
  4. package/dist/chunks/{chunk-XEVHP5ZW.js → chunk-3L52KNQA.js} +1 -1
  5. package/dist/chunks/{chunk-E4PJNZVG.js → chunk-7EENF73W.js} +12 -13
  6. package/dist/chunks/{chunk-4U4DZ7VG.js → chunk-CK2GZEPK.js} +1 -1
  7. package/dist/chunks/{chunk-L36GBUBB.js → chunk-DC2CDHNK.js} +398 -158
  8. package/dist/chunks/{chunk-PN5ULTTH.js → chunk-DWEAHX4T.js} +1 -1
  9. package/dist/chunks/{chunk-5GBMR4HM.js → chunk-FCQUJDA4.js} +4 -7
  10. package/dist/chunks/{chunk-YV7GE6EV.js → chunk-FOZWA52V.js} +1 -1
  11. package/dist/chunks/{chunk-OX7X4B2L.js → chunk-G3PHMXH5.js} +1 -1
  12. package/dist/chunks/{chunk-CXAT7ZKP.js → chunk-HVNK3I45.js} +1 -1
  13. package/dist/chunks/{chunk-QVS7HRU7.js → chunk-OIY3DMF2.js} +2 -2
  14. package/dist/chunks/{chunk-SZEURWRS.js → chunk-P357TZAY.js} +2 -2
  15. package/dist/chunks/{chunk-KC4KDJ5K.js → chunk-V4IKA3WI.js} +153 -139
  16. package/dist/chunks/{chunk-RAQEXKL6.js → chunk-Z5PBVG3Y.js} +26 -18
  17. package/dist/chunks/{live-app-PI3BAN6Y.js → live-app-WECQOQ4C.js} +4 -4
  18. package/dist/commands/exec/across-sandboxes-outcomes.js +2 -1
  19. package/dist/commands/exec/command.d.ts +8 -2
  20. package/dist/commands/exec/command.js +11 -11
  21. package/dist/commands/exec/metadata.js +1 -1
  22. package/dist/commands/exec/outcomes.d.ts +4 -1
  23. package/dist/commands/exec/outcomes.js +2 -2
  24. package/dist/commands/exec/plan-only.js +1 -2
  25. package/dist/commands/exec/planned-outcome.js +8 -1
  26. package/dist/commands/exec/run-command.d.ts +6 -7
  27. package/dist/commands/exec/run-command.js +8 -9
  28. package/dist/commands/exec/run-metadata.js +1 -1
  29. package/dist/commands/runs/facts.d.ts +2 -1
  30. package/dist/commands/runs/facts.js +11 -3
  31. package/dist/commands/runs/list/command.d.ts +2 -0
  32. package/dist/commands/runs/list/command.js +6 -6
  33. package/dist/commands/runs/list/outcomes.d.ts +1 -0
  34. package/dist/commands/runs/logs/command.d.ts +6 -2
  35. package/dist/commands/runs/logs/command.js +6 -6
  36. package/dist/commands/runs/logs/outcomes.d.ts +3 -1
  37. package/dist/commands/runs/past-run.d.ts +14 -5
  38. package/dist/commands/runs/past-run.js +16 -5
  39. package/dist/commands/runs/show/command.d.ts +6 -2
  40. package/dist/commands/runs/show/command.js +9 -9
  41. package/dist/commands/runs/show/outcomes.d.ts +3 -1
  42. package/dist/commands/snapshots/build/command.js +11 -11
  43. package/dist/commands/snapshots/list/command.d.ts +3 -3
  44. package/dist/commands/snapshots/list/command.js +6 -6
  45. package/dist/commands/snapshots/list/metadata.js +1 -1
  46. package/dist/commands/suites/list/command.js +7 -6
  47. package/dist/commands/suites/list/outcomes.js +2 -2
  48. package/dist/commands/test/command.d.ts +8 -2
  49. package/dist/commands/test/command.js +38 -40
  50. package/dist/commands/test/metadata.js +1 -1
  51. package/dist/commands/test/outcomes.d.ts +4 -1
  52. package/dist/commands/test/outcomes.js +2 -2
  53. package/dist/commands/test/plan.d.ts +2 -2
  54. package/dist/commands/test/plan.js +2 -5
  55. package/dist/config/check-runner.d.ts +4 -2
  56. package/dist/config/check-runner.js +27 -2
  57. package/dist/config/check-suites.js +1 -0
  58. package/dist/config/gateways.d.ts +7 -3
  59. package/dist/config/index.d.ts +2 -3
  60. package/dist/config/index.js +2 -3
  61. package/dist/config/live/config-gateway.js +5 -2
  62. package/dist/config/load.d.ts +21 -4
  63. package/dist/config/load.js +129 -15
  64. package/dist/config/runner.d.ts +5 -6
  65. package/dist/config/runner.js +1 -1
  66. package/dist/config/schema.d.ts +15 -3
  67. package/dist/config/schema.js +10 -2
  68. package/dist/config/typed-options.d.ts +1 -6
  69. package/dist/config/typed-options.js +2 -10
  70. package/dist/config-file/define.d.ts +1 -11
  71. package/dist/config-file/define.js +3 -3
  72. package/dist/config-file/runner.d.ts +2 -3
  73. package/dist/config-file/toolchain.d.ts +13 -7
  74. package/dist/config-file/toolchain.js +51 -35
  75. package/dist/extensions/github/resource.d.ts +1 -1
  76. package/dist/extensions/github/resource.js +1 -1
  77. package/dist/extensions/testserver/commands/pool/create/command.js +1 -1
  78. package/dist/extensions/testserver/resource.d.ts +2 -2
  79. package/dist/extensions/testserver/resource.js +2 -2
  80. package/dist/planning/plan-only.d.ts +4 -1
  81. package/dist/planning/plan-only.js +5 -2
  82. package/dist/planning/run-plan.d.ts +1 -2
  83. package/dist/planning/test-plan.js +1 -2
  84. package/dist/runner/base.d.ts +0 -6
  85. package/dist/runner/base.js +0 -15
  86. package/dist/runner/build-snapshots.js +7 -8
  87. package/dist/runner/gateways.d.ts +5 -0
  88. package/dist/runner/index.d.ts +1 -1
  89. package/dist/runner/live/sandbox-gateway.js +12 -0
  90. package/dist/runner/prepare.d.ts +16 -15
  91. package/dist/runner/prepare.js +11 -12
  92. package/dist/runner/recipe.d.ts +66 -67
  93. package/dist/runner/recipe.js +204 -120
  94. package/dist/runner/snapshot-build.d.ts +1 -1
  95. package/dist/runner/snapshot-build.js +10 -3
  96. package/dist/runner/snapshot-inspect.d.ts +4 -4
  97. package/dist/runner/snapshot-inspect.js +7 -7
  98. package/dist/runner/snapshot-key.d.ts +23 -15
  99. package/dist/runner/snapshot-key.js +46 -27
  100. package/dist/sdk/extension/resource-definition.d.ts +3 -2
  101. package/dist/sdk/extension/resource-definition.js +3 -2
  102. package/dist/sdk/extension/resource-factory.js +3 -4
  103. package/dist/sdk/run/present.d.ts +3 -3
  104. package/dist/sdk/run/present.js +1 -3
  105. package/package.json +1 -1
  106. package/skills/overview.md +2 -0
  107. package/skills/plan-runs.md +1 -1
  108. package/dist/config/recipe-run.d.ts +0 -33
  109. package/dist/config/recipe-run.js +0 -28
package/dist/bin/storm.js CHANGED
@@ -115,7 +115,7 @@ var accessible = process.env["VERCEL_ACCESSIBLE"] === "1";
115
115
  var noColor = hasNoColorFlag(process.argv.slice(2));
116
116
  var status = await runNodeCli(await loadStormApplication(version, { accessible, root }), {
117
117
  app: async (host) => {
118
- const [{ liveStormApp }, built] = await Promise.all([import("../chunks/live-app-PI3BAN6Y.js"), commit()]);
118
+ const [{ liveStormApp }, built] = await Promise.all([import("../chunks/live-app-WECQOQ4C.js"), commit()]);
119
119
  return liveStormApp(host, { version: manifest.version, commit: built }, exit, { noColor });
120
120
  }
121
121
  });
@@ -1,3 +1,3 @@
1
1
  // Written by scripts/write-build-info.js when the package was built.
2
- export const sha = "21220bcf901b";
2
+ export const sha = "6859d45e35c3";
3
3
  export const dirty = false;
@@ -2,7 +2,7 @@ import {
2
2
  isoSecondsText,
3
3
  paint,
4
4
  seconds
5
- } from "./chunk-OX7X4B2L.js";
5
+ } from "./chunk-G3PHMXH5.js";
6
6
 
7
7
  // src/shared/dashboard.ts
8
8
  function projectPage({ team, project }) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  short
3
- } from "./chunk-OX7X4B2L.js";
3
+ } from "./chunk-G3PHMXH5.js";
4
4
 
5
5
  // src/shared/snapshot-text.ts
6
6
  var REJECTIONS_SHOWN = 5;
@@ -20,7 +20,7 @@ import {
20
20
  runnerRequestFor,
21
21
  sandboxesDefaultErrors,
22
22
  sandboxesErrors
23
- } from "./chunk-RAQEXKL6.js";
23
+ } from "./chunk-Z5PBVG3Y.js";
24
24
  import {
25
25
  versionText
26
26
  } from "./chunk-I5GZLOLQ.js";
@@ -34,42 +34,41 @@ import {
34
34
  testsChart,
35
35
  testsSummaryLines,
36
36
  waterfallLines
37
- } from "./chunk-5GBMR4HM.js";
37
+ } from "./chunk-FCQUJDA4.js";
38
38
  import {
39
39
  DEFINITION_SET
40
- } from "./chunk-PN5ULTTH.js";
40
+ } from "./chunk-DWEAHX4T.js";
41
41
  import {
42
42
  redactStrings,
43
43
  redactingObserver,
44
44
  redactingTerminal,
45
45
  redactor
46
- } from "./chunk-CXAT7ZKP.js";
46
+ } from "./chunk-HVNK3I45.js";
47
47
  import {
48
48
  sandboxConnectPage,
49
49
  sandboxStateText,
50
50
  sandboxTableLines,
51
51
  sandboxTotalsLine,
52
52
  sandboxesText
53
- } from "./chunk-QUHY6FGN.js";
53
+ } from "./chunk-2MAD5NKK.js";
54
54
  import {
55
55
  recordAcrossSandboxes
56
- } from "./chunk-SZEURWRS.js";
56
+ } from "./chunk-P357TZAY.js";
57
57
  import {
58
58
  isoSecondsText,
59
59
  keepTimeText,
60
60
  paint,
61
61
  seconds
62
- } from "./chunk-OX7X4B2L.js";
62
+ } from "./chunk-G3PHMXH5.js";
63
63
  import {
64
64
  acrossSandboxesExitStatus,
65
65
  executeAcrossSandboxes,
66
66
  timedProgress
67
- } from "./chunk-YV7GE6EV.js";
67
+ } from "./chunk-FOZWA52V.js";
68
68
  import {
69
69
  parseKeepTime,
70
- prepareRunner,
71
- recipeRun
72
- } from "./chunk-L36GBUBB.js";
70
+ prepareRunner
71
+ } from "./chunk-DC2CDHNK.js";
73
72
  import {
74
73
  refused
75
74
  } from "./chunk-VL7WFTVQ.js";
@@ -721,7 +720,7 @@ function runHelp(words, field, options = {}) {
721
720
  }
722
721
  var DRIVER_SANDBOXES_HELP = {
723
722
  valueLabel: "N",
724
- 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 function of the test plan, 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."
723
+ 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."
725
724
  };
726
725
  var DRIVER_FILE_LISTS_HELP = {
727
726
  valueLabel: "PATH",
@@ -754,7 +753,7 @@ async function plannedVcpus(app, lifecycles, { where, configFile, resources, san
754
753
  const prepared = await prepareRunner(app.context, {
755
754
  cwd: app.cwd,
756
755
  recipe: where.recipe,
757
- vcpusRun: recipeRun(recipeResources(resources), sandboxes?.sandboxes.length ?? 1)
756
+ vcpuRun: { resources: recipeResources(resources), sandboxes: sandboxes?.sandboxes.length ?? 1 }
758
757
  });
759
758
  if (prepared.kind === "ok") return { ok: true, vcpus: prepared.prepared.vcpus };
760
759
  const refusal = prepareRefusal(prepared, configFile);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CONFIG_FILE_NAME
3
- } from "./chunk-L36GBUBB.js";
3
+ } from "./chunk-DC2CDHNK.js";
4
4
  import {
5
5
  defineErrors
6
6
  } from "./chunk-VL7WFTVQ.js";