@cnc-tools/storm 0.7.0 → 0.8.1

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 (120) hide show
  1. package/dist/build-info.js +1 -1
  2. package/dist/commands/exec/cleanup.d.ts +3 -3
  3. package/dist/commands/exec/cleanup.js +1 -1
  4. package/dist/commands/exec/command.d.ts +771 -1
  5. package/dist/commands/exec/command.js +1 -1
  6. package/dist/commands/exec/live-view.js +3 -2
  7. package/dist/commands/exec/metadata.d.ts +1 -1
  8. package/dist/commands/exec/metadata.js +4 -0
  9. package/dist/commands/exec/mint-failed.d.ts +28 -0
  10. package/dist/commands/exec/outcomes.d.ts +476 -0
  11. package/dist/commands/exec/progress.js +3 -5
  12. package/dist/commands/exec/run-command.d.ts +2 -2
  13. package/dist/commands/exec/run-metadata.d.ts +1 -1
  14. package/dist/commands/exec/run-metadata.js +1 -1
  15. package/dist/commands/exec/tests-summary.d.ts +1 -1
  16. package/dist/commands/exec/tests-summary.js +1 -1
  17. package/dist/commands/runs/facts.d.ts +2 -2
  18. package/dist/commands/runs/facts.js +1 -1
  19. package/dist/commands/runs/list/command.d.ts +129 -1
  20. package/dist/commands/runs/list/command.js +1 -1
  21. package/dist/commands/runs/list/outcomes.d.ts +16 -0
  22. package/dist/commands/runs/list/outcomes.js +1 -1
  23. package/dist/commands/runs/logs/command.d.ts +263 -1
  24. package/dist/commands/runs/logs/command.js +1 -1
  25. package/dist/commands/runs/logs/outcomes.d.ts +105 -0
  26. package/dist/commands/runs/logs/outcomes.js +1 -1
  27. package/dist/commands/runs/show/command.d.ts +329 -1
  28. package/dist/commands/runs/show/command.js +1 -1
  29. package/dist/commands/runs/show/outcomes.d.ts +71 -0
  30. package/dist/commands/runs/show/outcomes.js +3 -3
  31. package/dist/commands/vitest/command.d.ts +886 -1
  32. package/dist/commands/vitest/command.js +1 -1
  33. package/dist/commands/vitest/metadata.d.ts +1 -1
  34. package/dist/commands/vitest/metadata.js +4 -0
  35. package/dist/commands/vitest/outcomes.d.ts +295 -0
  36. package/dist/config/errors.d.ts +73 -0
  37. package/dist/config/schema.d.ts +1 -1
  38. package/dist/config-file/define.d.ts +4 -3
  39. package/dist/config-file/define.js +1 -1
  40. package/dist/config-file/toolchain.js +1 -1
  41. package/dist/core/command-slots.d.ts +8 -2
  42. package/dist/core/command-slots.js +6 -2
  43. package/dist/core/index.d.ts +1 -1
  44. package/dist/credential/index.d.ts +1 -0
  45. package/dist/credential/index.js +1 -0
  46. package/dist/credential/settle.d.ts +20 -0
  47. package/dist/credential/target.d.ts +6 -0
  48. package/dist/credential/target.js +7 -0
  49. package/dist/resources/github/command.d.ts +54 -2
  50. package/dist/resources/github/config.js +1 -1
  51. package/dist/resources/github/index.js +1 -1
  52. package/dist/resources/github/resource.js +2 -2
  53. package/dist/resources/testserver/command.d.ts +208 -10
  54. package/dist/resources/testserver/command.js +7 -0
  55. package/dist/resources/testserver/commands/create/command.d.ts +810 -1
  56. package/dist/resources/testserver/commands/create/command.js +73 -23
  57. package/dist/resources/testserver/commands/create/metadata.js +6 -2
  58. package/dist/resources/testserver/commands/create/outcomes.d.ts +347 -0
  59. package/dist/resources/testserver/commands/create/outcomes.js +14 -1
  60. package/dist/resources/testserver/commands/list/command.d.ts +84 -1
  61. package/dist/resources/testserver/commands/list/command.js +1 -1
  62. package/dist/resources/testserver/commands/list/outcomes.d.ts +16 -0
  63. package/dist/resources/testserver/config.js +14 -4
  64. package/dist/resources/testserver/events.d.ts +11 -0
  65. package/dist/resources/testserver/index.js +8 -7
  66. package/dist/resources/testserver/lane.js +1 -0
  67. package/dist/resources/testserver/live/gateways.d.ts +2 -0
  68. package/dist/resources/testserver/live/gateways.js +16 -3
  69. package/dist/resources/testserver/pool/channels.d.ts +5 -2
  70. package/dist/resources/testserver/pool/channels.js +1 -1
  71. package/dist/resources/testserver/pool/create.d.ts +9 -2
  72. package/dist/resources/testserver/pool/create.js +8 -5
  73. package/dist/resources/testserver/pool/gateways.d.ts +6 -0
  74. package/dist/resources/testserver/pool/index.d.ts +1 -0
  75. package/dist/resources/testserver/pool/index.js +1 -0
  76. package/dist/resources/testserver/pool/live/pool-records.js +6 -2
  77. package/dist/resources/testserver/pool/pull-request.d.ts +96 -0
  78. package/dist/resources/testserver/pool/pull-request.js +118 -0
  79. package/dist/resources/testserver/pr-build-facts.d.ts +130 -0
  80. package/dist/resources/testserver/pr-build-facts.js +261 -0
  81. package/dist/resources/testserver/presentation.d.ts +2 -2
  82. package/dist/resources/testserver/presentation.js +13 -3
  83. package/dist/resources/testserver/provider.d.ts +16 -6
  84. package/dist/resources/testserver/provider.js +55 -16
  85. package/dist/resources/testserver/pull-request/gateways.d.ts +117 -0
  86. package/dist/resources/testserver/pull-request/gateways.js +5 -0
  87. package/dist/resources/testserver/pull-request/index.d.ts +5 -0
  88. package/dist/resources/testserver/pull-request/index.js +6 -0
  89. package/dist/resources/testserver/pull-request/live/github-rest.d.ts +28 -0
  90. package/dist/resources/testserver/pull-request/live/github-rest.js +114 -0
  91. package/dist/resources/testserver/pull-request/live/github-token-gateway.d.ts +12 -0
  92. package/dist/resources/testserver/pull-request/live/github-token-gateway.js +39 -0
  93. package/dist/resources/testserver/pull-request/live/pull-request-gateway.d.ts +10 -0
  94. package/dist/resources/testserver/pull-request/live/pull-request-gateway.js +27 -0
  95. package/dist/resources/testserver/pull-request/live/testserver-workflow-gateway.d.ts +21 -0
  96. package/dist/resources/testserver/pull-request/live/testserver-workflow-gateway.js +64 -0
  97. package/dist/resources/testserver/ran.d.ts +5 -0
  98. package/dist/resources/testserver/ran.js +19 -3
  99. package/dist/resources/testserver/resource.d.ts +5 -1
  100. package/dist/resources/testserver/resource.js +2 -2
  101. package/dist/resources/testserver/sandbox/build-reference.d.ts +38 -0
  102. package/dist/resources/testserver/sandbox/build-reference.js +79 -0
  103. package/dist/resources/testserver/sandbox/index.d.ts +1 -0
  104. package/dist/resources/testserver/sandbox/index.js +1 -0
  105. package/dist/resources.d.ts +265 -15
  106. package/dist/sdk/index.js +2 -2
  107. package/dist/story/command-line.d.ts +34 -0
  108. package/dist/story/command-line.js +100 -0
  109. package/dist/story/index.d.ts +1 -0
  110. package/dist/story/index.js +3 -2
  111. package/dist/vercel-cli/context.js +1 -1
  112. package/dist/vercel-cli/index.js +1 -1
  113. package/dist/vitest/config.js +2 -2
  114. package/dist/vitest/fixtures.d.ts +1 -1
  115. package/dist/vitest/fixtures.js +1 -1
  116. package/dist/vitest/index.js +3 -3
  117. package/dist/vitest/plan.js +1 -1
  118. package/package.json +2 -3
  119. package/skills/overview.md +2 -0
  120. package/skills/testserver-builds.md +82 -0
@@ -267,6 +267,635 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
267
267
  } & {
268
268
  readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
269
269
  }]>;
270
+ prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
271
+ pr: number;
272
+ headSha: string;
273
+ build: string;
274
+ expiresAt: string;
275
+ } & {
276
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
277
+ }]>;
278
+ prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
279
+ pr: number;
280
+ headSha: string;
281
+ newest: {
282
+ build: string;
283
+ headSha: string;
284
+ createdAt: string;
285
+ } | null;
286
+ } & {
287
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
288
+ }]>;
289
+ prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
290
+ pr: number;
291
+ failure: {
292
+ kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
293
+ status: number | null;
294
+ detail: string;
295
+ };
296
+ } & {
297
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
298
+ }]>;
299
+ pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
300
+ pr: number;
301
+ repo: string;
302
+ kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
303
+ status: number | null;
304
+ message: string | null;
305
+ tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
306
+ } & {
307
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
308
+ }]>;
309
+ runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
310
+ failure: {
311
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
312
+ label: string;
313
+ exitCode: number | null;
314
+ tail: string[];
315
+ } | {
316
+ kind: "sandbox-api-failed";
317
+ operation: string;
318
+ status: number | null;
319
+ message: string;
320
+ } | {
321
+ kind: "checkout-failed";
322
+ message: string;
323
+ command: string | null;
324
+ } | {
325
+ kind: "credential-claims-missing";
326
+ team: string;
327
+ project: string;
328
+ };
329
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
330
+ }]>;
331
+ snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
332
+ snapshotId: string;
333
+ base: string;
334
+ removal: {
335
+ path: string;
336
+ message: string;
337
+ } | null;
338
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
339
+ }]>;
340
+ spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
341
+ executable: string;
342
+ message: string;
343
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
344
+ }]>;
345
+ submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
346
+ paths: string[];
347
+ }]>;
348
+ tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
349
+ cause: "request-failed" | "variables-missing";
350
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
351
+ status: number | null;
352
+ said: string | null;
353
+ detail: string;
354
+ fix: string;
355
+ ttlMinutes: number;
356
+ failedCreates: {
357
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
358
+ detail: string | null;
359
+ }[];
360
+ sandboxMayExist: boolean;
361
+ } & {
362
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
363
+ }]>;
364
+ }, {
365
+ readonly noMatchingTests: {
366
+ readonly exitCode: 1;
367
+ readonly description: "vitest list found no test for the arguments given to vitest run, so nothing was minted, leased or started.";
368
+ readonly schema: z.ZodObject<{
369
+ args: z.ZodArray<z.ZodString>;
370
+ cwd: z.ZodString;
371
+ }, z.core.$strip>;
372
+ readonly render: ({ args, cwd }: {
373
+ args: string[];
374
+ cwd: string;
375
+ }) => {
376
+ message: string;
377
+ next: {
378
+ type: "text";
379
+ text: string;
380
+ }[];
381
+ };
382
+ };
383
+ readonly vitestListFailed: {
384
+ readonly exitCode: 1;
385
+ readonly description: "storm couldn't count the tests before the run: vitest wasn't found or failed to start, didn't finish within 60s, exited other than 0, or printed something other than a list of tests. Nothing was minted, leased or started.";
386
+ readonly schema: z.ZodObject<{
387
+ args: z.ZodArray<z.ZodString>;
388
+ cwd: z.ZodString;
389
+ kind: z.ZodEnum<{
390
+ exited: "exited";
391
+ "start-failed": "start-failed";
392
+ "timed-out": "timed-out";
393
+ "unreadable-output": "unreadable-output";
394
+ }>;
395
+ message: z.ZodString;
396
+ }, z.core.$strip>;
397
+ readonly render: ({ kind, message, cwd }: {
398
+ args: string[];
399
+ cwd: string;
400
+ kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
401
+ message: string;
402
+ }) => {
403
+ message: string;
404
+ next: {
405
+ type: "text";
406
+ text: "Check that the package's vitest prints its list with --json, then retry." | "Check why vitest list doesn't finish, such as a global setup that waits, then retry." | "Fix what vitest list reports, then retry. vitest list takes the arguments vitest run does, but refuses some run-only options." | "Install vitest in the package, or run the command with storm exec, which counts nothing.";
407
+ }[];
408
+ };
409
+ };
410
+ readonly credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
411
+ origin: {
412
+ source: "mint";
413
+ team: string;
414
+ project: string;
415
+ } | {
416
+ source: "github-actions";
417
+ claims: {
418
+ aud: string;
419
+ repository: string;
420
+ } | null;
421
+ };
422
+ fix: string;
423
+ status: number;
424
+ vercelId: string | null;
425
+ ttlMinutes: number;
426
+ failedCreates: {
427
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
428
+ detail: string | null;
429
+ }[];
430
+ unpooled: {
431
+ testserverUrl: string;
432
+ path: string;
433
+ message: string;
434
+ }[];
435
+ sandboxMayExist: boolean;
436
+ } & {
437
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
438
+ }]>;
439
+ readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
440
+ flags: string[];
441
+ configFile: string | null;
442
+ }]>;
443
+ readonly githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
444
+ repo: string;
445
+ status: number | null;
446
+ message: string;
447
+ } & {
448
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
449
+ }]>;
450
+ readonly githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
451
+ tokenEnv: string;
452
+ repo: string;
453
+ configFile: string | null;
454
+ requiredBy: "config" | "set";
455
+ }]>;
456
+ readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
457
+ file: string;
458
+ problems: {
459
+ key: string | null;
460
+ location: {
461
+ line: number;
462
+ column: number | null;
463
+ } | null;
464
+ problem: string;
465
+ }[];
466
+ }]>;
467
+ readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
468
+ configFile: string | null;
469
+ problems: {
470
+ key: string;
471
+ problem: string;
472
+ values: {
473
+ key: string;
474
+ value: string;
475
+ source: "default" | "file" | "flag";
476
+ }[];
477
+ }[];
478
+ }]>;
479
+ readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
480
+ team: string;
481
+ project: string;
482
+ cause: string;
483
+ fix: string;
484
+ runner: boolean;
485
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
486
+ }]>;
487
+ readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
488
+ configFile: string | null;
489
+ }]>;
490
+ readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
491
+ missing: ("project" | "scope")[];
492
+ }]>;
493
+ readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
494
+ refs: {
495
+ ref: string;
496
+ reason: "missing" | "unrelated";
497
+ }[];
498
+ }]>;
499
+ readonly noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
500
+ requested: number;
501
+ ttlMinutes: number;
502
+ failedCreates: {
503
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
504
+ detail: string | null;
505
+ }[];
506
+ sandboxMayExist: boolean;
507
+ } & {
508
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
509
+ }]>;
510
+ readonly noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
511
+ requested: number;
512
+ build: string;
513
+ } & {
514
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
515
+ }]>;
516
+ readonly poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
517
+ path: string;
518
+ message: string;
519
+ }]>;
520
+ readonly poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
521
+ path: string;
522
+ message: string;
523
+ } & {
524
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
525
+ }]>;
526
+ readonly prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
527
+ pr: number;
528
+ headSha: string;
529
+ build: string;
530
+ expiresAt: string;
531
+ } & {
532
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
533
+ }]>;
534
+ readonly prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
535
+ pr: number;
536
+ headSha: string;
537
+ newest: {
538
+ build: string;
539
+ headSha: string;
540
+ createdAt: string;
541
+ } | null;
542
+ } & {
543
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
544
+ }]>;
545
+ readonly prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
546
+ pr: number;
547
+ failure: {
548
+ kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
549
+ status: number | null;
550
+ detail: string;
551
+ };
552
+ } & {
553
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
554
+ }]>;
555
+ readonly pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
556
+ pr: number;
557
+ repo: string;
558
+ kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
559
+ status: number | null;
560
+ message: string | null;
561
+ tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
562
+ } & {
563
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
564
+ }]>;
565
+ readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
566
+ failure: {
567
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
568
+ label: string;
569
+ exitCode: number | null;
570
+ tail: string[];
571
+ } | {
572
+ kind: "sandbox-api-failed";
573
+ operation: string;
574
+ status: number | null;
575
+ message: string;
576
+ } | {
577
+ kind: "checkout-failed";
578
+ message: string;
579
+ command: string | null;
580
+ } | {
581
+ kind: "credential-claims-missing";
582
+ team: string;
583
+ project: string;
584
+ };
585
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
586
+ }]>;
587
+ readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
588
+ snapshotId: string;
589
+ base: string;
590
+ removal: {
591
+ path: string;
592
+ message: string;
593
+ } | null;
594
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
595
+ }]>;
596
+ readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
597
+ executable: string;
598
+ message: string;
599
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
600
+ }]>;
601
+ readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
602
+ paths: string[];
603
+ }]>;
604
+ readonly tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
605
+ cause: "request-failed" | "variables-missing";
606
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
607
+ status: number | null;
608
+ said: string | null;
609
+ detail: string;
610
+ fix: string;
611
+ ttlMinutes: number;
612
+ failedCreates: {
613
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
614
+ detail: string | null;
615
+ }[];
616
+ sandboxMayExist: boolean;
617
+ } & {
618
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
619
+ }]>;
620
+ }>, import("@vercel/clinkr").OutcomeOf<import("@vercel/clinkr").Outcomes<{
621
+ ran: z.ZodObject<{
622
+ version: z.ZodString;
623
+ commit: z.ZodNullable<z.ZodString>;
624
+ configFile: z.ZodNullable<z.ZodString>;
625
+ resources: z.ZodType<import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>, import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>, z.core.$ZodTypeInternals<import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>, import("../../core/resource.ts").ResourceRanFacts<import("../../resources.ts").Resources>>>;
626
+ cleanup: z.ZodType<import("../exec/cleanup.ts").StormCleanupFacts, import("../exec/cleanup.ts").StormCleanupFacts, z.core.$ZodTypeInternals<import("../exec/cleanup.ts").StormCleanupFacts, import("../exec/cleanup.ts").StormCleanupFacts>>;
627
+ command: z.ZodObject<{
628
+ exitCode: z.ZodNullable<z.ZodNumber>;
629
+ signal: z.ZodNullable<z.ZodString>;
630
+ }, z.core.$strip>;
631
+ runner: z.ZodNullable<z.ZodObject<{
632
+ snapshotId: z.ZodString;
633
+ base: z.ZodString;
634
+ snapshotBranch: z.ZodNullable<z.ZodString>;
635
+ snapshotHead: z.ZodNullable<z.ZodString>;
636
+ built: z.ZodBoolean;
637
+ vcpus: z.ZodNumber;
638
+ region: z.ZodString;
639
+ runtime: z.ZodString;
640
+ buildMs: z.ZodNumber;
641
+ save: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
642
+ kind: z.ZodLiteral<"saved">;
643
+ snapshotId: z.ZodString;
644
+ base: z.ZodString;
645
+ branch: z.ZodString;
646
+ head: z.ZodString;
647
+ ms: z.ZodNumber;
648
+ sizeBytes: z.ZodNumber;
649
+ entryWritten: z.ZodBoolean;
650
+ }, z.core.$strip>, z.ZodObject<{
651
+ kind: z.ZodLiteral<"skipped">;
652
+ reason: z.ZodLiteral<"detached-head">;
653
+ }, z.core.$strip>, z.ZodObject<{
654
+ kind: z.ZodLiteral<"failed">;
655
+ step: z.ZodEnum<{
656
+ "save-snapshot": "save-snapshot";
657
+ scrub: "scrub";
658
+ }>;
659
+ message: z.ZodString;
660
+ }, z.core.$strip>, z.ZodObject<{
661
+ kind: z.ZodLiteral<"stopped">;
662
+ }, z.core.$strip>], "kind">>;
663
+ }, z.core.$strip>>;
664
+ timeline: z.ZodObject<{
665
+ startedAt: z.ZodString;
666
+ totalMs: z.ZodNumber;
667
+ rows: z.ZodArray<z.ZodObject<{
668
+ name: z.ZodEnum<{
669
+ cleanup: "cleanup";
670
+ mint: "mint";
671
+ runner: "runner";
672
+ tests: "tests";
673
+ testserver: "testserver";
674
+ }>;
675
+ startMs: z.ZodNumber;
676
+ endMs: z.ZodNumber;
677
+ outcome: z.ZodEnum<{
678
+ done: "done";
679
+ failed: "failed";
680
+ stopped: "stopped";
681
+ unfinished: "unfinished";
682
+ }>;
683
+ steps: z.ZodArray<z.ZodObject<{
684
+ name: z.ZodEnum<{
685
+ [x: string]: string;
686
+ }>;
687
+ startMs: z.ZodNumber;
688
+ endMs: z.ZodNumber;
689
+ outcome: z.ZodEnum<{
690
+ done: "done";
691
+ failed: "failed";
692
+ stopped: "stopped";
693
+ unfinished: "unfinished";
694
+ }>;
695
+ }, z.core.$strip>>;
696
+ idleMs: z.ZodNumber;
697
+ snapshot: z.ZodOptional<z.ZodEnum<{
698
+ built: "built";
699
+ reused: "reused";
700
+ }>>;
701
+ sandboxes: z.ZodOptional<z.ZodObject<{
702
+ reused: z.ZodNumber;
703
+ created: z.ZodNumber;
704
+ }, z.core.$strip>>;
705
+ }, z.core.$strip>>;
706
+ criticalPath: z.ZodArray<z.ZodEnum<{
707
+ cleanup: "cleanup";
708
+ mint: "mint";
709
+ runner: "runner";
710
+ tests: "tests";
711
+ testserver: "testserver";
712
+ }>>;
713
+ }, z.core.$strip>;
714
+ runId: z.ZodNullable<z.ZodString>;
715
+ plan: z.ZodObject<{
716
+ tests: z.ZodNumber;
717
+ files: z.ZodNumber;
718
+ sandboxes: z.ZodNullable<z.ZodNumber>;
719
+ sandboxesFrom: z.ZodNullable<z.ZodEnum<{
720
+ auto: "auto";
721
+ file: "file";
722
+ flag: "flag";
723
+ }>>;
724
+ }, z.core.$strip>;
725
+ }, z.core.$strip>;
726
+ }, {
727
+ ran: unknown;
728
+ }, {
729
+ noMatchingTests: z.ZodObject<{
730
+ args: z.ZodArray<z.ZodString>;
731
+ cwd: z.ZodString;
732
+ }, z.core.$strip>;
733
+ vitestListFailed: z.ZodObject<{
734
+ args: z.ZodArray<z.ZodString>;
735
+ cwd: z.ZodString;
736
+ kind: z.ZodEnum<{
737
+ exited: "exited";
738
+ "start-failed": "start-failed";
739
+ "timed-out": "timed-out";
740
+ "unreadable-output": "unreadable-output";
741
+ }>;
742
+ message: z.ZodString;
743
+ }, z.core.$strip>;
744
+ credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
745
+ origin: {
746
+ source: "mint";
747
+ team: string;
748
+ project: string;
749
+ } | {
750
+ source: "github-actions";
751
+ claims: {
752
+ aud: string;
753
+ repository: string;
754
+ } | null;
755
+ };
756
+ fix: string;
757
+ status: number;
758
+ vercelId: string | null;
759
+ ttlMinutes: number;
760
+ failedCreates: {
761
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
762
+ detail: string | null;
763
+ }[];
764
+ unpooled: {
765
+ testserverUrl: string;
766
+ path: string;
767
+ message: string;
768
+ }[];
769
+ sandboxMayExist: boolean;
770
+ } & {
771
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
772
+ }]>;
773
+ credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
774
+ flags: string[];
775
+ configFile: string | null;
776
+ }]>;
777
+ githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
778
+ repo: string;
779
+ status: number | null;
780
+ message: string;
781
+ } & {
782
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
783
+ }]>;
784
+ githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
785
+ tokenEnv: string;
786
+ repo: string;
787
+ configFile: string | null;
788
+ requiredBy: "config" | "set";
789
+ }]>;
790
+ invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
791
+ file: string;
792
+ problems: {
793
+ key: string | null;
794
+ location: {
795
+ line: number;
796
+ column: number | null;
797
+ } | null;
798
+ problem: string;
799
+ }[];
800
+ }]>;
801
+ invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
802
+ configFile: string | null;
803
+ problems: {
804
+ key: string;
805
+ problem: string;
806
+ values: {
807
+ key: string;
808
+ value: string;
809
+ source: "default" | "file" | "flag";
810
+ }[];
811
+ }[];
812
+ }]>;
813
+ mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
814
+ team: string;
815
+ project: string;
816
+ cause: string;
817
+ fix: string;
818
+ runner: boolean;
819
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
820
+ }]>;
821
+ missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
822
+ configFile: string | null;
823
+ }]>;
824
+ missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
825
+ missing: ("project" | "scope")[];
826
+ }]>;
827
+ noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
828
+ refs: {
829
+ ref: string;
830
+ reason: "missing" | "unrelated";
831
+ }[];
832
+ }]>;
833
+ noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
834
+ requested: number;
835
+ ttlMinutes: number;
836
+ failedCreates: {
837
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
838
+ detail: string | null;
839
+ }[];
840
+ sandboxMayExist: boolean;
841
+ } & {
842
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
843
+ }]>;
844
+ noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
845
+ requested: number;
846
+ build: string;
847
+ } & {
848
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
849
+ }]>;
850
+ poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
851
+ path: string;
852
+ message: string;
853
+ }]>;
854
+ poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
855
+ path: string;
856
+ message: string;
857
+ } & {
858
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
859
+ }]>;
860
+ prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
861
+ pr: number;
862
+ headSha: string;
863
+ build: string;
864
+ expiresAt: string;
865
+ } & {
866
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
867
+ }]>;
868
+ prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
869
+ pr: number;
870
+ headSha: string;
871
+ newest: {
872
+ build: string;
873
+ headSha: string;
874
+ createdAt: string;
875
+ } | null;
876
+ } & {
877
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
878
+ }]>;
879
+ prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
880
+ pr: number;
881
+ failure: {
882
+ kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
883
+ status: number | null;
884
+ detail: string;
885
+ };
886
+ } & {
887
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
888
+ }]>;
889
+ pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
890
+ pr: number;
891
+ repo: string;
892
+ kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
893
+ status: number | null;
894
+ message: string | null;
895
+ tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
896
+ } & {
897
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
898
+ }]>;
270
899
  runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
271
900
  failure: {
272
901
  kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
@@ -322,4 +951,260 @@ export declare function command(cmd: CommandBuilder<StormApp>): import("@vercel/
322
951
  } & {
323
952
  readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
324
953
  }]>;
325
- }>, StormApp, false>;
954
+ }, {
955
+ readonly noMatchingTests: {
956
+ readonly exitCode: 1;
957
+ readonly description: "vitest list found no test for the arguments given to vitest run, so nothing was minted, leased or started.";
958
+ readonly schema: z.ZodObject<{
959
+ args: z.ZodArray<z.ZodString>;
960
+ cwd: z.ZodString;
961
+ }, z.core.$strip>;
962
+ readonly render: ({ args, cwd }: {
963
+ args: string[];
964
+ cwd: string;
965
+ }) => {
966
+ message: string;
967
+ next: {
968
+ type: "text";
969
+ text: string;
970
+ }[];
971
+ };
972
+ };
973
+ readonly vitestListFailed: {
974
+ readonly exitCode: 1;
975
+ readonly description: "storm couldn't count the tests before the run: vitest wasn't found or failed to start, didn't finish within 60s, exited other than 0, or printed something other than a list of tests. Nothing was minted, leased or started.";
976
+ readonly schema: z.ZodObject<{
977
+ args: z.ZodArray<z.ZodString>;
978
+ cwd: z.ZodString;
979
+ kind: z.ZodEnum<{
980
+ exited: "exited";
981
+ "start-failed": "start-failed";
982
+ "timed-out": "timed-out";
983
+ "unreadable-output": "unreadable-output";
984
+ }>;
985
+ message: z.ZodString;
986
+ }, z.core.$strip>;
987
+ readonly render: ({ kind, message, cwd }: {
988
+ args: string[];
989
+ cwd: string;
990
+ kind: "exited" | "start-failed" | "timed-out" | "unreadable-output";
991
+ message: string;
992
+ }) => {
993
+ message: string;
994
+ next: {
995
+ type: "text";
996
+ text: "Check that the package's vitest prints its list with --json, then retry." | "Check why vitest list doesn't finish, such as a global setup that waits, then retry." | "Fix what vitest list reports, then retry. vitest list takes the arguments vitest run does, but refuses some run-only options." | "Install vitest in the package, or run the command with storm exec, which counts nothing.";
997
+ }[];
998
+ };
999
+ };
1000
+ readonly credentialRejected: import("@vercel/clinkr").SharedError<"credential_rejected", [{
1001
+ origin: {
1002
+ source: "mint";
1003
+ team: string;
1004
+ project: string;
1005
+ } | {
1006
+ source: "github-actions";
1007
+ claims: {
1008
+ aud: string;
1009
+ repository: string;
1010
+ } | null;
1011
+ };
1012
+ fix: string;
1013
+ status: number;
1014
+ vercelId: string | null;
1015
+ ttlMinutes: number;
1016
+ failedCreates: {
1017
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
1018
+ detail: string | null;
1019
+ }[];
1020
+ unpooled: {
1021
+ testserverUrl: string;
1022
+ path: string;
1023
+ message: string;
1024
+ }[];
1025
+ sandboxMayExist: boolean;
1026
+ } & {
1027
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1028
+ }]>;
1029
+ readonly credentialUnused: import("@vercel/clinkr").SharedError<"credential_unused", [data: {
1030
+ flags: string[];
1031
+ configFile: string | null;
1032
+ }]>;
1033
+ readonly githubFixtureRepoUnavailable: import("@vercel/clinkr").SharedError<"github_fixture_repo_unavailable", [{
1034
+ repo: string;
1035
+ status: number | null;
1036
+ message: string;
1037
+ } & {
1038
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1039
+ }]>;
1040
+ readonly githubTokenMissing: import("@vercel/clinkr").SharedError<"github_token_missing", [data: {
1041
+ tokenEnv: string;
1042
+ repo: string;
1043
+ configFile: string | null;
1044
+ requiredBy: "config" | "set";
1045
+ }]>;
1046
+ readonly invalidConfig: import("@vercel/clinkr").SharedError<"invalid_config", [data: {
1047
+ file: string;
1048
+ problems: {
1049
+ key: string | null;
1050
+ location: {
1051
+ line: number;
1052
+ column: number | null;
1053
+ } | null;
1054
+ problem: string;
1055
+ }[];
1056
+ }]>;
1057
+ readonly invalidResourceOptions: import("@vercel/clinkr").SharedError<"invalid_resource_options", [data: {
1058
+ configFile: string | null;
1059
+ problems: {
1060
+ key: string;
1061
+ problem: string;
1062
+ values: {
1063
+ key: string;
1064
+ value: string;
1065
+ source: "default" | "file" | "flag";
1066
+ }[];
1067
+ }[];
1068
+ }]>;
1069
+ readonly mintFailed: import("@vercel/clinkr").SharedError<"mint_failed", [data: {
1070
+ team: string;
1071
+ project: string;
1072
+ cause: string;
1073
+ fix: string;
1074
+ runner: boolean;
1075
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1076
+ }]>;
1077
+ readonly missingRunner: import("@vercel/clinkr").SharedError<"missing_runner", [data: {
1078
+ configFile: string | null;
1079
+ }]>;
1080
+ readonly missingTarget: import("@vercel/clinkr").SharedError<"missing_target", [data: {
1081
+ missing: ("project" | "scope")[];
1082
+ }]>;
1083
+ readonly noBaseRef: import("@vercel/clinkr").SharedError<"no_base_ref", [data: {
1084
+ refs: {
1085
+ ref: string;
1086
+ reason: "missing" | "unrelated";
1087
+ }[];
1088
+ }]>;
1089
+ readonly noSandboxes: import("@vercel/clinkr").SharedError<"no_sandboxes", [{
1090
+ requested: number;
1091
+ ttlMinutes: number;
1092
+ failedCreates: {
1093
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
1094
+ detail: string | null;
1095
+ }[];
1096
+ sandboxMayExist: boolean;
1097
+ } & {
1098
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1099
+ }]>;
1100
+ readonly noUsableSandboxes: import("@vercel/clinkr").SharedError<"no_usable_sandboxes", [{
1101
+ requested: number;
1102
+ build: string;
1103
+ } & {
1104
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1105
+ }]>;
1106
+ readonly poolUnavailable: import("@vercel/clinkr").SharedError<"pool_unavailable", [data: {
1107
+ path: string;
1108
+ message: string;
1109
+ }]>;
1110
+ readonly poolUnreadable: import("@vercel/clinkr").SharedError<"pool_unreadable", [{
1111
+ path: string;
1112
+ message: string;
1113
+ } & {
1114
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1115
+ }]>;
1116
+ readonly prBuildExpired: import("@vercel/clinkr").SharedError<"pr_build_expired", [{
1117
+ pr: number;
1118
+ headSha: string;
1119
+ build: string;
1120
+ expiresAt: string;
1121
+ } & {
1122
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1123
+ }]>;
1124
+ readonly prBuildNotReady: import("@vercel/clinkr").SharedError<"pr_build_not_ready", [{
1125
+ pr: number;
1126
+ headSha: string;
1127
+ newest: {
1128
+ build: string;
1129
+ headSha: string;
1130
+ createdAt: string;
1131
+ } | null;
1132
+ } & {
1133
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1134
+ }]>;
1135
+ readonly prBuildsUnlisted: import("@vercel/clinkr").SharedError<"pr_builds_unlisted", [{
1136
+ pr: number;
1137
+ failure: {
1138
+ kind: "connect-failed" | "http-error" | "malformed" | "not-found" | "rejected" | "timeout";
1139
+ status: number | null;
1140
+ detail: string;
1141
+ };
1142
+ } & {
1143
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1144
+ }]>;
1145
+ readonly pullRequestUnreadable: import("@vercel/clinkr").SharedError<"pull_request_unreadable", [{
1146
+ pr: number;
1147
+ repo: string;
1148
+ kind: "connect-failed" | "http-error" | "malformed" | "no-token" | "not-found" | "rejected" | "timeout";
1149
+ status: number | null;
1150
+ message: string | null;
1151
+ tokenOrigin: "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | null;
1152
+ } & {
1153
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1154
+ }]>;
1155
+ readonly runnerFailed: import("@vercel/clinkr").SharedError<"runner_failed", [data: {
1156
+ failure: {
1157
+ kind: "apply-failed" | "build-failed" | "install-failed" | "snapshot-build-step-failed";
1158
+ label: string;
1159
+ exitCode: number | null;
1160
+ tail: string[];
1161
+ } | {
1162
+ kind: "sandbox-api-failed";
1163
+ operation: string;
1164
+ status: number | null;
1165
+ message: string;
1166
+ } | {
1167
+ kind: "checkout-failed";
1168
+ message: string;
1169
+ command: string | null;
1170
+ } | {
1171
+ kind: "credential-claims-missing";
1172
+ team: string;
1173
+ project: string;
1174
+ };
1175
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1176
+ }]>;
1177
+ readonly snapshotGone: import("@vercel/clinkr").SharedError<"snapshot_gone", [data: {
1178
+ snapshotId: string;
1179
+ base: string;
1180
+ removal: {
1181
+ path: string;
1182
+ message: string;
1183
+ } | null;
1184
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1185
+ }]>;
1186
+ readonly spawnFailed: import("@vercel/clinkr").SharedError<"spawn_failed", [data: {
1187
+ executable: string;
1188
+ message: string;
1189
+ cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1190
+ }]>;
1191
+ readonly submodulesRefused: import("@vercel/clinkr").SharedError<"submodules_refused", [data: {
1192
+ paths: string[];
1193
+ }]>;
1194
+ readonly tokenRequestFailed: import("@vercel/clinkr").SharedError<"token_request_failed", [{
1195
+ cause: "request-failed" | "variables-missing";
1196
+ missing: ("ACTIONS_ID_TOKEN_REQUEST_TOKEN" | "ACTIONS_ID_TOKEN_REQUEST_URL")[] | null;
1197
+ status: number | null;
1198
+ said: string | null;
1199
+ detail: string;
1200
+ fix: string;
1201
+ ttlMinutes: number;
1202
+ failedCreates: {
1203
+ kind: "connect-failed" | "dropped" | "http-error" | "malformed" | "stream-ended" | "stream-error" | "timeout";
1204
+ detail: string | null;
1205
+ }[];
1206
+ sandboxMayExist: boolean;
1207
+ } & {
1208
+ readonly cleanup: import("../exec/cleanup.ts").StormCleanupFacts;
1209
+ }]>;
1210
+ }>>, StormApp, false>;