@lace-cloud/canvas 0.32.0 → 0.33.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.
@@ -542,6 +542,165 @@ function isSet(value) {
542
542
  return value !== null && value !== void 0;
543
543
  }
544
544
 
545
+ // src/generated/reason.ts
546
+ var Reason = /* @__PURE__ */ ((Reason3) => {
547
+ Reason3[Reason3["REASON_UNSPECIFIED"] = 0] = "REASON_UNSPECIFIED";
548
+ Reason3[Reason3["REASON_NOT_LACE_FORM"] = 1] = "REASON_NOT_LACE_FORM";
549
+ Reason3[Reason3["REASON_HASH_MISMATCH"] = 2] = "REASON_HASH_MISMATCH";
550
+ Reason3[Reason3["REASON_REGISTRY_UNAVAILABLE"] = 3] = "REASON_REGISTRY_UNAVAILABLE";
551
+ Reason3[Reason3["REASON_ROOT_LOCKED"] = 4] = "REASON_ROOT_LOCKED";
552
+ Reason3[Reason3["REASON_UNSAVED"] = 5] = "REASON_UNSAVED";
553
+ Reason3[Reason3["REASON_CONFLICT"] = 6] = "REASON_CONFLICT";
554
+ Reason3[Reason3["REASON_SOURCE_REFUSED"] = 7] = "REASON_SOURCE_REFUSED";
555
+ Reason3[Reason3["REASON_NOT_GIT_REPOSITORY"] = 8] = "REASON_NOT_GIT_REPOSITORY";
556
+ Reason3[Reason3["REASON_GENERATE_IN_PROGRESS"] = 9] = "REASON_GENERATE_IN_PROGRESS";
557
+ Reason3[Reason3["REASON_NO_ORGANIZATION"] = 10] = "REASON_NO_ORGANIZATION";
558
+ Reason3[Reason3["REASON_NO_TEAM"] = 11] = "REASON_NO_TEAM";
559
+ Reason3[Reason3["REASON_NO_CERTIFICATION"] = 12] = "REASON_NO_CERTIFICATION";
560
+ Reason3[Reason3["REASON_STALE_CERTIFICATION"] = 13] = "REASON_STALE_CERTIFICATION";
561
+ Reason3[Reason3["REASON_TOOL_MISSING"] = 14] = "REASON_TOOL_MISSING";
562
+ Reason3[Reason3["REASON_CROSS_SCOPE"] = 15] = "REASON_CROSS_SCOPE";
563
+ Reason3[Reason3["REASON_UNAUTHENTICATED"] = 16] = "REASON_UNAUTHENTICATED";
564
+ Reason3[Reason3["REASON_IMPORT_RESIDUAL"] = 17] = "REASON_IMPORT_RESIDUAL";
565
+ Reason3[Reason3["REASON_STACK_HAS_STATE"] = 18] = "REASON_STACK_HAS_STATE";
566
+ Reason3[Reason3["REASON_NO_ORIGIN_REMOTE"] = 19] = "REASON_NO_ORIGIN_REMOTE";
567
+ Reason3[Reason3["REASON_IMPORT_UNDECLARED"] = 20] = "REASON_IMPORT_UNDECLARED";
568
+ Reason3[Reason3["REASON_ALREADY_IMPORTED"] = 21] = "REASON_ALREADY_IMPORTED";
569
+ Reason3[Reason3["REASON_NO_LOCKFILE"] = 22] = "REASON_NO_LOCKFILE";
570
+ Reason3[Reason3["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
571
+ return Reason3;
572
+ })(Reason || {});
573
+ function reasonFromJSON(object) {
574
+ switch (object) {
575
+ case 0:
576
+ case "REASON_UNSPECIFIED":
577
+ return 0 /* REASON_UNSPECIFIED */;
578
+ case 1:
579
+ case "REASON_NOT_LACE_FORM":
580
+ return 1 /* REASON_NOT_LACE_FORM */;
581
+ case 2:
582
+ case "REASON_HASH_MISMATCH":
583
+ return 2 /* REASON_HASH_MISMATCH */;
584
+ case 3:
585
+ case "REASON_REGISTRY_UNAVAILABLE":
586
+ return 3 /* REASON_REGISTRY_UNAVAILABLE */;
587
+ case 4:
588
+ case "REASON_ROOT_LOCKED":
589
+ return 4 /* REASON_ROOT_LOCKED */;
590
+ case 5:
591
+ case "REASON_UNSAVED":
592
+ return 5 /* REASON_UNSAVED */;
593
+ case 6:
594
+ case "REASON_CONFLICT":
595
+ return 6 /* REASON_CONFLICT */;
596
+ case 7:
597
+ case "REASON_SOURCE_REFUSED":
598
+ return 7 /* REASON_SOURCE_REFUSED */;
599
+ case 8:
600
+ case "REASON_NOT_GIT_REPOSITORY":
601
+ return 8 /* REASON_NOT_GIT_REPOSITORY */;
602
+ case 9:
603
+ case "REASON_GENERATE_IN_PROGRESS":
604
+ return 9 /* REASON_GENERATE_IN_PROGRESS */;
605
+ case 10:
606
+ case "REASON_NO_ORGANIZATION":
607
+ return 10 /* REASON_NO_ORGANIZATION */;
608
+ case 11:
609
+ case "REASON_NO_TEAM":
610
+ return 11 /* REASON_NO_TEAM */;
611
+ case 12:
612
+ case "REASON_NO_CERTIFICATION":
613
+ return 12 /* REASON_NO_CERTIFICATION */;
614
+ case 13:
615
+ case "REASON_STALE_CERTIFICATION":
616
+ return 13 /* REASON_STALE_CERTIFICATION */;
617
+ case 14:
618
+ case "REASON_TOOL_MISSING":
619
+ return 14 /* REASON_TOOL_MISSING */;
620
+ case 15:
621
+ case "REASON_CROSS_SCOPE":
622
+ return 15 /* REASON_CROSS_SCOPE */;
623
+ case 16:
624
+ case "REASON_UNAUTHENTICATED":
625
+ return 16 /* REASON_UNAUTHENTICATED */;
626
+ case 17:
627
+ case "REASON_IMPORT_RESIDUAL":
628
+ return 17 /* REASON_IMPORT_RESIDUAL */;
629
+ case 18:
630
+ case "REASON_STACK_HAS_STATE":
631
+ return 18 /* REASON_STACK_HAS_STATE */;
632
+ case 19:
633
+ case "REASON_NO_ORIGIN_REMOTE":
634
+ return 19 /* REASON_NO_ORIGIN_REMOTE */;
635
+ case 20:
636
+ case "REASON_IMPORT_UNDECLARED":
637
+ return 20 /* REASON_IMPORT_UNDECLARED */;
638
+ case 21:
639
+ case "REASON_ALREADY_IMPORTED":
640
+ return 21 /* REASON_ALREADY_IMPORTED */;
641
+ case 22:
642
+ case "REASON_NO_LOCKFILE":
643
+ return 22 /* REASON_NO_LOCKFILE */;
644
+ case -1:
645
+ case "UNRECOGNIZED":
646
+ default:
647
+ return -1 /* UNRECOGNIZED */;
648
+ }
649
+ }
650
+ function reasonToJSON(object) {
651
+ switch (object) {
652
+ case 0 /* REASON_UNSPECIFIED */:
653
+ return "REASON_UNSPECIFIED";
654
+ case 1 /* REASON_NOT_LACE_FORM */:
655
+ return "REASON_NOT_LACE_FORM";
656
+ case 2 /* REASON_HASH_MISMATCH */:
657
+ return "REASON_HASH_MISMATCH";
658
+ case 3 /* REASON_REGISTRY_UNAVAILABLE */:
659
+ return "REASON_REGISTRY_UNAVAILABLE";
660
+ case 4 /* REASON_ROOT_LOCKED */:
661
+ return "REASON_ROOT_LOCKED";
662
+ case 5 /* REASON_UNSAVED */:
663
+ return "REASON_UNSAVED";
664
+ case 6 /* REASON_CONFLICT */:
665
+ return "REASON_CONFLICT";
666
+ case 7 /* REASON_SOURCE_REFUSED */:
667
+ return "REASON_SOURCE_REFUSED";
668
+ case 8 /* REASON_NOT_GIT_REPOSITORY */:
669
+ return "REASON_NOT_GIT_REPOSITORY";
670
+ case 9 /* REASON_GENERATE_IN_PROGRESS */:
671
+ return "REASON_GENERATE_IN_PROGRESS";
672
+ case 10 /* REASON_NO_ORGANIZATION */:
673
+ return "REASON_NO_ORGANIZATION";
674
+ case 11 /* REASON_NO_TEAM */:
675
+ return "REASON_NO_TEAM";
676
+ case 12 /* REASON_NO_CERTIFICATION */:
677
+ return "REASON_NO_CERTIFICATION";
678
+ case 13 /* REASON_STALE_CERTIFICATION */:
679
+ return "REASON_STALE_CERTIFICATION";
680
+ case 14 /* REASON_TOOL_MISSING */:
681
+ return "REASON_TOOL_MISSING";
682
+ case 15 /* REASON_CROSS_SCOPE */:
683
+ return "REASON_CROSS_SCOPE";
684
+ case 16 /* REASON_UNAUTHENTICATED */:
685
+ return "REASON_UNAUTHENTICATED";
686
+ case 17 /* REASON_IMPORT_RESIDUAL */:
687
+ return "REASON_IMPORT_RESIDUAL";
688
+ case 18 /* REASON_STACK_HAS_STATE */:
689
+ return "REASON_STACK_HAS_STATE";
690
+ case 19 /* REASON_NO_ORIGIN_REMOTE */:
691
+ return "REASON_NO_ORIGIN_REMOTE";
692
+ case 20 /* REASON_IMPORT_UNDECLARED */:
693
+ return "REASON_IMPORT_UNDECLARED";
694
+ case 21 /* REASON_ALREADY_IMPORTED */:
695
+ return "REASON_ALREADY_IMPORTED";
696
+ case 22 /* REASON_NO_LOCKFILE */:
697
+ return "REASON_NO_LOCKFILE";
698
+ case -1 /* UNRECOGNIZED */:
699
+ default:
700
+ return "UNRECOGNIZED";
701
+ }
702
+ }
703
+
545
704
  // src/generated/state.ts
546
705
  var import_wire3 = require("@bufbuild/protobuf/wire");
547
706
  function createBaseBundle() {
@@ -3436,163 +3595,6 @@ function diagnosticSeverityToJSON(object) {
3436
3595
  return "UNRECOGNIZED";
3437
3596
  }
3438
3597
  }
3439
- var Reason = /* @__PURE__ */ ((Reason2) => {
3440
- Reason2[Reason2["REASON_UNSPECIFIED"] = 0] = "REASON_UNSPECIFIED";
3441
- Reason2[Reason2["REASON_NOT_LACE_FORM"] = 1] = "REASON_NOT_LACE_FORM";
3442
- Reason2[Reason2["REASON_HASH_MISMATCH"] = 2] = "REASON_HASH_MISMATCH";
3443
- Reason2[Reason2["REASON_REGISTRY_UNAVAILABLE"] = 3] = "REASON_REGISTRY_UNAVAILABLE";
3444
- Reason2[Reason2["REASON_ROOT_LOCKED"] = 4] = "REASON_ROOT_LOCKED";
3445
- Reason2[Reason2["REASON_UNSAVED"] = 5] = "REASON_UNSAVED";
3446
- Reason2[Reason2["REASON_CONFLICT"] = 6] = "REASON_CONFLICT";
3447
- Reason2[Reason2["REASON_SOURCE_REFUSED"] = 7] = "REASON_SOURCE_REFUSED";
3448
- Reason2[Reason2["REASON_NOT_GIT_REPOSITORY"] = 8] = "REASON_NOT_GIT_REPOSITORY";
3449
- Reason2[Reason2["REASON_GENERATE_IN_PROGRESS"] = 9] = "REASON_GENERATE_IN_PROGRESS";
3450
- Reason2[Reason2["REASON_NO_ORGANIZATION"] = 10] = "REASON_NO_ORGANIZATION";
3451
- Reason2[Reason2["REASON_NO_TEAM"] = 11] = "REASON_NO_TEAM";
3452
- Reason2[Reason2["REASON_NO_CERTIFICATION"] = 12] = "REASON_NO_CERTIFICATION";
3453
- Reason2[Reason2["REASON_STALE_CERTIFICATION"] = 13] = "REASON_STALE_CERTIFICATION";
3454
- Reason2[Reason2["REASON_TOOL_MISSING"] = 14] = "REASON_TOOL_MISSING";
3455
- Reason2[Reason2["REASON_CROSS_SCOPE"] = 15] = "REASON_CROSS_SCOPE";
3456
- Reason2[Reason2["REASON_UNAUTHENTICATED"] = 16] = "REASON_UNAUTHENTICATED";
3457
- Reason2[Reason2["REASON_IMPORT_RESIDUAL"] = 17] = "REASON_IMPORT_RESIDUAL";
3458
- Reason2[Reason2["REASON_STACK_HAS_STATE"] = 18] = "REASON_STACK_HAS_STATE";
3459
- Reason2[Reason2["REASON_NO_ORIGIN_REMOTE"] = 19] = "REASON_NO_ORIGIN_REMOTE";
3460
- Reason2[Reason2["REASON_IMPORT_UNDECLARED"] = 20] = "REASON_IMPORT_UNDECLARED";
3461
- Reason2[Reason2["REASON_ALREADY_IMPORTED"] = 21] = "REASON_ALREADY_IMPORTED";
3462
- Reason2[Reason2["REASON_NO_LOCKFILE"] = 22] = "REASON_NO_LOCKFILE";
3463
- Reason2[Reason2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
3464
- return Reason2;
3465
- })(Reason || {});
3466
- function reasonFromJSON(object) {
3467
- switch (object) {
3468
- case 0:
3469
- case "REASON_UNSPECIFIED":
3470
- return 0 /* REASON_UNSPECIFIED */;
3471
- case 1:
3472
- case "REASON_NOT_LACE_FORM":
3473
- return 1 /* REASON_NOT_LACE_FORM */;
3474
- case 2:
3475
- case "REASON_HASH_MISMATCH":
3476
- return 2 /* REASON_HASH_MISMATCH */;
3477
- case 3:
3478
- case "REASON_REGISTRY_UNAVAILABLE":
3479
- return 3 /* REASON_REGISTRY_UNAVAILABLE */;
3480
- case 4:
3481
- case "REASON_ROOT_LOCKED":
3482
- return 4 /* REASON_ROOT_LOCKED */;
3483
- case 5:
3484
- case "REASON_UNSAVED":
3485
- return 5 /* REASON_UNSAVED */;
3486
- case 6:
3487
- case "REASON_CONFLICT":
3488
- return 6 /* REASON_CONFLICT */;
3489
- case 7:
3490
- case "REASON_SOURCE_REFUSED":
3491
- return 7 /* REASON_SOURCE_REFUSED */;
3492
- case 8:
3493
- case "REASON_NOT_GIT_REPOSITORY":
3494
- return 8 /* REASON_NOT_GIT_REPOSITORY */;
3495
- case 9:
3496
- case "REASON_GENERATE_IN_PROGRESS":
3497
- return 9 /* REASON_GENERATE_IN_PROGRESS */;
3498
- case 10:
3499
- case "REASON_NO_ORGANIZATION":
3500
- return 10 /* REASON_NO_ORGANIZATION */;
3501
- case 11:
3502
- case "REASON_NO_TEAM":
3503
- return 11 /* REASON_NO_TEAM */;
3504
- case 12:
3505
- case "REASON_NO_CERTIFICATION":
3506
- return 12 /* REASON_NO_CERTIFICATION */;
3507
- case 13:
3508
- case "REASON_STALE_CERTIFICATION":
3509
- return 13 /* REASON_STALE_CERTIFICATION */;
3510
- case 14:
3511
- case "REASON_TOOL_MISSING":
3512
- return 14 /* REASON_TOOL_MISSING */;
3513
- case 15:
3514
- case "REASON_CROSS_SCOPE":
3515
- return 15 /* REASON_CROSS_SCOPE */;
3516
- case 16:
3517
- case "REASON_UNAUTHENTICATED":
3518
- return 16 /* REASON_UNAUTHENTICATED */;
3519
- case 17:
3520
- case "REASON_IMPORT_RESIDUAL":
3521
- return 17 /* REASON_IMPORT_RESIDUAL */;
3522
- case 18:
3523
- case "REASON_STACK_HAS_STATE":
3524
- return 18 /* REASON_STACK_HAS_STATE */;
3525
- case 19:
3526
- case "REASON_NO_ORIGIN_REMOTE":
3527
- return 19 /* REASON_NO_ORIGIN_REMOTE */;
3528
- case 20:
3529
- case "REASON_IMPORT_UNDECLARED":
3530
- return 20 /* REASON_IMPORT_UNDECLARED */;
3531
- case 21:
3532
- case "REASON_ALREADY_IMPORTED":
3533
- return 21 /* REASON_ALREADY_IMPORTED */;
3534
- case 22:
3535
- case "REASON_NO_LOCKFILE":
3536
- return 22 /* REASON_NO_LOCKFILE */;
3537
- case -1:
3538
- case "UNRECOGNIZED":
3539
- default:
3540
- return -1 /* UNRECOGNIZED */;
3541
- }
3542
- }
3543
- function reasonToJSON(object) {
3544
- switch (object) {
3545
- case 0 /* REASON_UNSPECIFIED */:
3546
- return "REASON_UNSPECIFIED";
3547
- case 1 /* REASON_NOT_LACE_FORM */:
3548
- return "REASON_NOT_LACE_FORM";
3549
- case 2 /* REASON_HASH_MISMATCH */:
3550
- return "REASON_HASH_MISMATCH";
3551
- case 3 /* REASON_REGISTRY_UNAVAILABLE */:
3552
- return "REASON_REGISTRY_UNAVAILABLE";
3553
- case 4 /* REASON_ROOT_LOCKED */:
3554
- return "REASON_ROOT_LOCKED";
3555
- case 5 /* REASON_UNSAVED */:
3556
- return "REASON_UNSAVED";
3557
- case 6 /* REASON_CONFLICT */:
3558
- return "REASON_CONFLICT";
3559
- case 7 /* REASON_SOURCE_REFUSED */:
3560
- return "REASON_SOURCE_REFUSED";
3561
- case 8 /* REASON_NOT_GIT_REPOSITORY */:
3562
- return "REASON_NOT_GIT_REPOSITORY";
3563
- case 9 /* REASON_GENERATE_IN_PROGRESS */:
3564
- return "REASON_GENERATE_IN_PROGRESS";
3565
- case 10 /* REASON_NO_ORGANIZATION */:
3566
- return "REASON_NO_ORGANIZATION";
3567
- case 11 /* REASON_NO_TEAM */:
3568
- return "REASON_NO_TEAM";
3569
- case 12 /* REASON_NO_CERTIFICATION */:
3570
- return "REASON_NO_CERTIFICATION";
3571
- case 13 /* REASON_STALE_CERTIFICATION */:
3572
- return "REASON_STALE_CERTIFICATION";
3573
- case 14 /* REASON_TOOL_MISSING */:
3574
- return "REASON_TOOL_MISSING";
3575
- case 15 /* REASON_CROSS_SCOPE */:
3576
- return "REASON_CROSS_SCOPE";
3577
- case 16 /* REASON_UNAUTHENTICATED */:
3578
- return "REASON_UNAUTHENTICATED";
3579
- case 17 /* REASON_IMPORT_RESIDUAL */:
3580
- return "REASON_IMPORT_RESIDUAL";
3581
- case 18 /* REASON_STACK_HAS_STATE */:
3582
- return "REASON_STACK_HAS_STATE";
3583
- case 19 /* REASON_NO_ORIGIN_REMOTE */:
3584
- return "REASON_NO_ORIGIN_REMOTE";
3585
- case 20 /* REASON_IMPORT_UNDECLARED */:
3586
- return "REASON_IMPORT_UNDECLARED";
3587
- case 21 /* REASON_ALREADY_IMPORTED */:
3588
- return "REASON_ALREADY_IMPORTED";
3589
- case 22 /* REASON_NO_LOCKFILE */:
3590
- return "REASON_NO_LOCKFILE";
3591
- case -1 /* UNRECOGNIZED */:
3592
- default:
3593
- return "UNRECOGNIZED";
3594
- }
3595
- }
3596
3598
  function conflictChoiceFromJSON(object) {
3597
3599
  switch (object) {
3598
3600
  case 0:
@@ -11168,6 +11170,42 @@ var COMMANDS = {
11168
11170
  "hidden": false,
11169
11171
  "yes": false
11170
11172
  },
11173
+ "drift scan": {
11174
+ "path": "drift scan",
11175
+ "positionals": [],
11176
+ "flags": {
11177
+ "full": {
11178
+ "type": "bool"
11179
+ },
11180
+ "org": {
11181
+ "type": "string"
11182
+ },
11183
+ "output": {
11184
+ "type": "string",
11185
+ "values": [
11186
+ "table",
11187
+ "json"
11188
+ ],
11189
+ "short": "o"
11190
+ },
11191
+ "stack": {
11192
+ "type": "string",
11193
+ "required": true
11194
+ },
11195
+ "team": {
11196
+ "type": "string"
11197
+ },
11198
+ "wait": {
11199
+ "type": "bool"
11200
+ },
11201
+ "waitTimeout": {
11202
+ "type": "duration"
11203
+ }
11204
+ },
11205
+ "effect": "write",
11206
+ "hidden": false,
11207
+ "yes": false
11208
+ },
11171
11209
  "hooks install": {
11172
11210
  "path": "hooks install",
11173
11211
  "positionals": [],
@@ -11332,6 +11370,44 @@ var COMMANDS = {
11332
11370
  "hidden": false,
11333
11371
  "yes": false
11334
11372
  },
11373
+ "module import": {
11374
+ "path": "module import",
11375
+ "positionals": [],
11376
+ "flags": {
11377
+ "allowPartial": {
11378
+ "type": "bool"
11379
+ },
11380
+ "org": {
11381
+ "type": "string"
11382
+ },
11383
+ "output": {
11384
+ "type": "string",
11385
+ "values": [
11386
+ "table",
11387
+ "json"
11388
+ ],
11389
+ "short": "o"
11390
+ },
11391
+ "path": {
11392
+ "type": "string",
11393
+ "short": "p"
11394
+ },
11395
+ "stack": {
11396
+ "type": "string",
11397
+ "required": true
11398
+ },
11399
+ "state": {
11400
+ "type": "string",
11401
+ "required": true
11402
+ },
11403
+ "team": {
11404
+ "type": "string"
11405
+ }
11406
+ },
11407
+ "effect": "rewrite",
11408
+ "hidden": false,
11409
+ "yes": false
11410
+ },
11335
11411
  "module lock": {
11336
11412
  "path": "module lock",
11337
11413
  "positionals": [],
@@ -12115,45 +12191,6 @@ var COMMANDS = {
12115
12191
  "hidden": false,
12116
12192
  "yes": false
12117
12193
  },
12118
- "stack import": {
12119
- "path": "stack import",
12120
- "positionals": [
12121
- {
12122
- "name": "stack",
12123
- "kind": "required"
12124
- }
12125
- ],
12126
- "flags": {
12127
- "allowPartial": {
12128
- "type": "bool"
12129
- },
12130
- "org": {
12131
- "type": "string"
12132
- },
12133
- "output": {
12134
- "type": "string",
12135
- "values": [
12136
- "table",
12137
- "json"
12138
- ],
12139
- "short": "o"
12140
- },
12141
- "path": {
12142
- "type": "string",
12143
- "short": "p"
12144
- },
12145
- "state": {
12146
- "type": "string",
12147
- "required": true
12148
- },
12149
- "team": {
12150
- "type": "string"
12151
- }
12152
- },
12153
- "effect": "rewrite",
12154
- "hidden": false,
12155
- "yes": false
12156
- },
12157
12194
  "stack list": {
12158
12195
  "path": "stack list",
12159
12196
  "positionals": [],
@@ -12225,43 +12262,6 @@ var COMMANDS = {
12225
12262
  "hidden": false,
12226
12263
  "yes": false
12227
12264
  },
12228
- "stack scan": {
12229
- "path": "stack scan",
12230
- "positionals": [
12231
- {
12232
- "name": "stack",
12233
- "kind": "required"
12234
- }
12235
- ],
12236
- "flags": {
12237
- "full": {
12238
- "type": "bool"
12239
- },
12240
- "org": {
12241
- "type": "string"
12242
- },
12243
- "output": {
12244
- "type": "string",
12245
- "values": [
12246
- "table",
12247
- "json"
12248
- ],
12249
- "short": "o"
12250
- },
12251
- "team": {
12252
- "type": "string"
12253
- },
12254
- "wait": {
12255
- "type": "bool"
12256
- },
12257
- "waitTimeout": {
12258
- "type": "duration"
12259
- }
12260
- },
12261
- "effect": "write",
12262
- "hidden": false,
12263
- "yes": false
12264
- },
12265
12265
  "stack update": {
12266
12266
  "path": "stack update",
12267
12267
  "positionals": [
@@ -12483,6 +12483,9 @@ function completeArgs(path, partial) {
12483
12483
 
12484
12484
  // src/contracts/schemas.ts
12485
12485
  var import_zod = require("zod");
12486
+ function reads() {
12487
+ return (schema) => schema;
12488
+ }
12486
12489
  var REASON_PREFIX = "REASON_";
12487
12490
  function reasonWire(reason) {
12488
12491
  return reasonToJSON(reason).slice(REASON_PREFIX.length).toLowerCase();
@@ -12531,10 +12534,11 @@ var commandDiagnosticSchema = import_zod.z.object({
12531
12534
  line: import_zod.z.number().optional(),
12532
12535
  column: import_zod.z.number().optional()
12533
12536
  });
12537
+ var VERDICTS = ["already-lace-style", "convertible", "uncomposable", "lossy"];
12534
12538
  var moduleValidateResultSchema = import_zod.z.object({
12535
12539
  root: import_zod.z.string().min(1).optional(),
12536
12540
  treeHash: import_zod.z.string().min(1).optional(),
12537
- verdict: import_zod.z.enum(["already-lace-style", "representable-but-transpilable", "uncomposable", "lossy"]).optional(),
12541
+ verdict: import_zod.z.enum(VERDICTS).optional(),
12538
12542
  residuals: import_zod.z.array(
12539
12543
  import_zod.z.object({
12540
12544
  construct: import_zod.z.string(),
@@ -12668,7 +12672,7 @@ var registryDescribeSchema = import_zod.z.object({
12668
12672
  version: import_zod.z.string(),
12669
12673
  source: import_zod.z.string(),
12670
12674
  treeHash: import_zod.z.string(),
12671
- verdict: import_zod.z.string(),
12675
+ verdict: import_zod.z.enum(VERDICTS),
12672
12676
  interface: import_zod.z.object({
12673
12677
  inputs: import_zod.z.array(
12674
12678
  import_zod.z.object({
@@ -12692,39 +12696,41 @@ var stackSourceSchema = import_zod.z.object({
12692
12696
  ref: import_zod.z.string().optional(),
12693
12697
  path: import_zod.z.string().optional()
12694
12698
  });
12695
- var stackSchema = import_zod.z.object({
12696
- id: import_zod.z.string(),
12697
- orgId: import_zod.z.string(),
12698
- teamId: import_zod.z.string(),
12699
- connectionId: import_zod.z.string(),
12700
- slug: import_zod.z.string(),
12701
- name: import_zod.z.string(),
12702
- description: import_zod.z.string().nullable(),
12703
- source: stackSourceSchema.nullable(),
12704
- stateSerial: import_zod.z.number(),
12705
- stateLineage: import_zod.z.string().nullable(),
12706
- stateVersion: import_zod.z.number().nullable(),
12707
- stateLastWrittenAt: import_zod.z.string().nullable(),
12708
- lastAppliedRunId: import_zod.z.string().nullable(),
12709
- lastDriftScanAt: import_zod.z.string().nullable(),
12710
- lastDriftStatus: import_zod.z.string().nullable(),
12711
- lastDriftCount: import_zod.z.number(),
12712
- lastDriftStale: import_zod.z.boolean(),
12713
- lastDriftConfirmedAt: import_zod.z.string().nullable(),
12714
- lastDriftUndeterminedReason: import_zod.z.string().nullable(),
12715
- createdBy: import_zod.z.string(),
12716
- createdAt: import_zod.z.string(),
12717
- updatedAt: import_zod.z.string(),
12718
- archivedAt: import_zod.z.string().nullable(),
12719
- connection: import_zod.z.object({ name: import_zod.z.string(), provider: import_zod.z.string(), awsAccountId: import_zod.z.string().nullable() }).nullable(),
12720
- createdByName: import_zod.z.string().nullable(),
12721
- lastApply: import_zod.z.object({
12722
- runId: import_zod.z.string(),
12723
- bundleSnapshotId: import_zod.z.string(),
12724
- completedAt: import_zod.z.string().nullable(),
12725
- initiatedByName: import_zod.z.string().nullable()
12726
- }).nullable()
12727
- });
12699
+ var stackSchema = reads()(
12700
+ import_zod.z.object({
12701
+ id: import_zod.z.string(),
12702
+ orgId: import_zod.z.string(),
12703
+ teamId: import_zod.z.string(),
12704
+ connectionId: import_zod.z.string(),
12705
+ slug: import_zod.z.string(),
12706
+ name: import_zod.z.string(),
12707
+ description: import_zod.z.string().nullable(),
12708
+ source: stackSourceSchema.nullable(),
12709
+ stateSerial: import_zod.z.number(),
12710
+ stateLineage: import_zod.z.string().nullable(),
12711
+ stateVersion: import_zod.z.number().nullable(),
12712
+ stateLastWrittenAt: import_zod.z.string().nullable(),
12713
+ lastAppliedRunId: import_zod.z.string().nullable(),
12714
+ lastDriftScanAt: import_zod.z.string().nullable(),
12715
+ lastDriftStatus: import_zod.z.string().nullable(),
12716
+ lastDriftCount: import_zod.z.number(),
12717
+ lastDriftStale: import_zod.z.boolean(),
12718
+ lastDriftConfirmedAt: import_zod.z.string().nullable(),
12719
+ lastDriftUndeterminedReason: import_zod.z.string().nullable(),
12720
+ createdBy: import_zod.z.string(),
12721
+ createdAt: import_zod.z.string(),
12722
+ updatedAt: import_zod.z.string(),
12723
+ archivedAt: import_zod.z.string().nullable(),
12724
+ connection: import_zod.z.object({ name: import_zod.z.string(), provider: import_zod.z.string(), awsAccountId: import_zod.z.string().nullable() }).nullable(),
12725
+ createdByName: import_zod.z.string().nullable(),
12726
+ lastApply: import_zod.z.object({
12727
+ runId: import_zod.z.string(),
12728
+ bundleSnapshotId: import_zod.z.string(),
12729
+ completedAt: import_zod.z.string().nullable(),
12730
+ initiatedByName: import_zod.z.string().nullable()
12731
+ }).nullable()
12732
+ })
12733
+ );
12728
12734
  var stackListSchema = import_zod.z.object({
12729
12735
  items: import_zod.z.array(stackSchema),
12730
12736
  nextCursor: import_zod.z.string().nullable(),
@@ -12737,29 +12743,39 @@ var driftedResourceSchema = import_zod.z.object({
12737
12743
  details: import_zod.z.string().optional(),
12738
12744
  goldenAttributes: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()),
12739
12745
  liveProperties: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()),
12740
- diff: import_zod.z.array(import_zod.z.object({ path: import_zod.z.string(), declared: import_zod.z.unknown(), detected: import_zod.z.unknown() })),
12746
+ diff: import_zod.z.array(
12747
+ import_zod.z.object({
12748
+ path: import_zod.z.string(),
12749
+ declared: import_zod.z.unknown().optional(),
12750
+ detected: import_zod.z.unknown().optional()
12751
+ })
12752
+ ),
12741
12753
  findingId: import_zod.z.string().nullable()
12742
12754
  });
12743
- var driftSchema = import_zod.z.object({
12744
- stackId: import_zod.z.string(),
12745
- scannedAt: import_zod.z.string(),
12746
- driftStatus: import_zod.z.literal("DRIFTED"),
12747
- totalResources: import_zod.z.number(),
12748
- stateSerial: import_zod.z.number(),
12749
- driftedResources: import_zod.z.array(driftedResourceSchema)
12750
- }).nullable();
12751
- var stackDescribeSchema = import_zod.z.object({
12752
- stack: stackSchema.nullable(),
12753
- state: import_zod.z.object({
12754
- serial: import_zod.z.number(),
12755
- lineage: import_zod.z.string(),
12756
- terraformVersion: import_zod.z.string(),
12757
- resourceCount: import_zod.z.number(),
12758
- resourcesByType: import_zod.z.record(import_zod.z.string(), import_zod.z.number()),
12759
- resources: import_zod.z.array(import_zod.z.object({ address: import_zod.z.string(), type: import_zod.z.string() }))
12760
- }).nullable(),
12761
- drift: driftSchema
12762
- });
12755
+ var driftSchema = reads()(
12756
+ import_zod.z.object({
12757
+ stackId: import_zod.z.string(),
12758
+ scannedAt: import_zod.z.string(),
12759
+ driftStatus: import_zod.z.literal("DRIFTED"),
12760
+ totalResources: import_zod.z.number(),
12761
+ stateSerial: import_zod.z.number(),
12762
+ driftedResources: import_zod.z.array(driftedResourceSchema)
12763
+ }).nullable()
12764
+ );
12765
+ var stackDescribeSchema = reads()(
12766
+ import_zod.z.object({
12767
+ stack: stackSchema.nullable(),
12768
+ state: import_zod.z.object({
12769
+ serial: import_zod.z.number(),
12770
+ lineage: import_zod.z.string(),
12771
+ terraformVersion: import_zod.z.string(),
12772
+ resourceCount: import_zod.z.number(),
12773
+ resourcesByType: import_zod.z.record(import_zod.z.string(), import_zod.z.number()),
12774
+ resources: import_zod.z.array(import_zod.z.object({ address: import_zod.z.string(), type: import_zod.z.string() }))
12775
+ }).nullable(),
12776
+ drift: driftSchema
12777
+ })
12778
+ );
12763
12779
  var policySummarySchema = import_zod.z.object({
12764
12780
  policyId: import_zod.z.string(),
12765
12781
  name: import_zod.z.string(),
@@ -12767,77 +12783,81 @@ var policySummarySchema = import_zod.z.object({
12767
12783
  approvalMode: import_zod.z.string().nullable(),
12768
12784
  ruleIds: import_zod.z.array(import_zod.z.string())
12769
12785
  });
12770
- var policyListSchema = import_zod.z.object({
12771
- stack: import_zod.z.string().nullable(),
12772
- policies: import_zod.z.array(policySummarySchema)
12773
- });
12774
- var runSchema = import_zod.z.object({
12775
- id: import_zod.z.string(),
12776
- stackId: import_zod.z.string(),
12777
- orgId: import_zod.z.string(),
12778
- teamId: import_zod.z.string(),
12779
- kind: import_zod.z.string(),
12780
- status: import_zod.z.string(),
12781
- initiatedByUserId: import_zod.z.string().nullable(),
12782
- initiatedVia: import_zod.z.string(),
12783
- runnerIdentity: import_zod.z.string().nullable(),
12784
- runnerLocation: import_zod.z.string().nullable(),
12785
- bundleSnapshotId: import_zod.z.string().nullable(),
12786
- sourceCommitSha: import_zod.z.string().nullable(),
12787
- sourceRef: import_zod.z.string().nullable(),
12788
- sourcePrUrl: import_zod.z.string().nullable(),
12789
- sourceOverride: import_zod.z.boolean(),
12790
- planResourceAdd: import_zod.z.number().nullable(),
12791
- planResourceChange: import_zod.z.number().nullable(),
12792
- planResourceDestroy: import_zod.z.number().nullable(),
12793
- planLocation: import_zod.z.string().nullable(),
12794
- planHumanLocation: import_zod.z.string().nullable(),
12795
- applyLogLocation: import_zod.z.string().nullable(),
12796
- policyResultsLocation: import_zod.z.string().nullable(),
12797
- policyPassed: import_zod.z.boolean().nullable(),
12798
- policyResolution: import_zod.z.unknown().nullable(),
12799
- changeRequestId: import_zod.z.string().nullable(),
12800
- cancelReason: import_zod.z.string().nullable(),
12801
- startedAt: import_zod.z.string().nullable(),
12802
- completedAt: import_zod.z.string().nullable(),
12803
- errorMessage: import_zod.z.string().nullable(),
12804
- sourceTreeHash: import_zod.z.string().nullable(),
12805
- attestationStatus: import_zod.z.string().nullable(),
12806
- attestedAt: import_zod.z.string().nullable(),
12807
- attestation: import_zod.z.string().nullable(),
12808
- createdAt: import_zod.z.string(),
12809
- updatedAt: import_zod.z.string(),
12810
- // The run's page in the portal. The CLI builds it on every Run it prints
12811
- // (apps/cli/internal/api/runs.go, from the configured base URL and the
12812
- // selected organization and team); the API's own record carries none, so
12813
- // a portal mount reading the API body sees it absent — optional so both
12814
- // bodies parse. A host opens this link and never composes a portal route.
12815
- url: import_zod.z.string().optional(),
12816
- // The provider versions the Run's lockfile pins, each with the
12817
- // organization's admission it ran under when the version is one admitted
12818
- // outside the curated range. A single-run read carries it; a list does
12819
- // not, and the CLI omits an empty one.
12820
- providers: import_zod.z.array(
12821
- import_zod.z.object({
12822
- address: import_zod.z.string(),
12823
- version: import_zod.z.string(),
12824
- admission: import_zod.z.object({
12825
- id: import_zod.z.string(),
12826
- admittedBy: import_zod.z.string(),
12827
- admittedByName: import_zod.z.string().nullable(),
12828
- admittedAt: import_zod.z.string()
12829
- }).optional()
12830
- })
12831
- ).optional(),
12832
- // The CLI's own `api.Run` decode struct (apps/cli/internal/api/runs.go) has no
12833
- // json tag for these, so every CLI JSON golden omits them; the API always sends
12834
- // them (apps/api/src/openapi/schemas/runs.ts) — optional so both bodies parse.
12835
- keepStack: import_zod.z.boolean().optional(),
12836
- version: import_zod.z.number().optional(),
12837
- lastHeartbeatAt: import_zod.z.string().nullable().optional(),
12838
- initiatedByName: import_zod.z.string().nullable().optional(),
12839
- stackName: import_zod.z.string().nullable().optional()
12840
- });
12786
+ var policyListSchema = reads()(
12787
+ import_zod.z.object({
12788
+ stack: import_zod.z.string().nullable(),
12789
+ policies: import_zod.z.array(policySummarySchema)
12790
+ })
12791
+ );
12792
+ var runSchema = reads()(
12793
+ import_zod.z.object({
12794
+ id: import_zod.z.string(),
12795
+ stackId: import_zod.z.string(),
12796
+ orgId: import_zod.z.string(),
12797
+ teamId: import_zod.z.string(),
12798
+ kind: import_zod.z.string(),
12799
+ status: import_zod.z.string(),
12800
+ initiatedByUserId: import_zod.z.string().nullable(),
12801
+ initiatedVia: import_zod.z.string(),
12802
+ runnerIdentity: import_zod.z.string().nullable(),
12803
+ runnerLocation: import_zod.z.string().nullable(),
12804
+ bundleSnapshotId: import_zod.z.string().nullable(),
12805
+ sourceCommitSha: import_zod.z.string().nullable(),
12806
+ sourceRef: import_zod.z.string().nullable(),
12807
+ sourcePrUrl: import_zod.z.string().nullable(),
12808
+ sourceOverride: import_zod.z.boolean(),
12809
+ planResourceAdd: import_zod.z.number().nullable(),
12810
+ planResourceChange: import_zod.z.number().nullable(),
12811
+ planResourceDestroy: import_zod.z.number().nullable(),
12812
+ planLocation: import_zod.z.string().nullable(),
12813
+ planHumanLocation: import_zod.z.string().nullable(),
12814
+ applyLogLocation: import_zod.z.string().nullable(),
12815
+ policyResultsLocation: import_zod.z.string().nullable(),
12816
+ policyPassed: import_zod.z.boolean().nullable(),
12817
+ policyResolution: import_zod.z.unknown().nullable(),
12818
+ changeRequestId: import_zod.z.string().nullable(),
12819
+ cancelReason: import_zod.z.string().nullable(),
12820
+ startedAt: import_zod.z.string().nullable(),
12821
+ completedAt: import_zod.z.string().nullable(),
12822
+ errorMessage: import_zod.z.string().nullable(),
12823
+ sourceTreeHash: import_zod.z.string().nullable(),
12824
+ attestationStatus: import_zod.z.string().nullable(),
12825
+ attestedAt: import_zod.z.string().nullable(),
12826
+ attestation: import_zod.z.string().nullable(),
12827
+ createdAt: import_zod.z.string(),
12828
+ updatedAt: import_zod.z.string(),
12829
+ // The run's page in the portal. The CLI builds it on every Run it prints
12830
+ // (apps/cli/internal/kernel/api/runs.go, from the configured base URL and the
12831
+ // selected organization and team); the API's own record carries none, so
12832
+ // a portal mount reading the API body sees it absent — optional so both
12833
+ // bodies parse. A host opens this link and never composes a portal route.
12834
+ url: import_zod.z.string().optional(),
12835
+ // The provider versions the Run's lockfile pins, each with the
12836
+ // organization's admission it ran under when the version is one admitted
12837
+ // outside the curated range. A single-run read carries it; a list does
12838
+ // not, and the CLI omits an empty one.
12839
+ providers: import_zod.z.array(
12840
+ import_zod.z.object({
12841
+ address: import_zod.z.string(),
12842
+ version: import_zod.z.string(),
12843
+ admission: import_zod.z.object({
12844
+ id: import_zod.z.string(),
12845
+ admittedBy: import_zod.z.string(),
12846
+ admittedByName: import_zod.z.string().nullable(),
12847
+ admittedAt: import_zod.z.string()
12848
+ }).optional()
12849
+ })
12850
+ ).optional(),
12851
+ // The CLI's own `api.Run` decode struct (apps/cli/internal/kernel/api/runs.go) has no
12852
+ // json tag for these, so every CLI JSON golden omits them; the API always sends
12853
+ // them (apps/api/src/verticals/runs/routes/schemas/runs.ts) — optional so both bodies parse.
12854
+ keepStack: import_zod.z.boolean().optional(),
12855
+ version: import_zod.z.number().optional(),
12856
+ lastHeartbeatAt: import_zod.z.string().nullable().optional(),
12857
+ initiatedByName: import_zod.z.string().nullable().optional(),
12858
+ stackName: import_zod.z.string().nullable().optional()
12859
+ })
12860
+ );
12841
12861
  var runListSchema = import_zod.z.object({
12842
12862
  items: import_zod.z.array(runSchema),
12843
12863
  nextCursor: import_zod.z.string().nullable(),
@@ -12888,27 +12908,29 @@ var stackPreviewSchema = import_zod.z.object({
12888
12908
  stack: stackIdentSchema,
12889
12909
  treeHash: import_zod.z.string(),
12890
12910
  plan: import_zod.z.object({ summary: planSummarySchema, human: import_zod.z.string() }),
12891
- policy: import_zod.z.object({
12892
- mode: import_zod.z.string(),
12893
- policyId: import_zod.z.string(),
12894
- ruleId: import_zod.z.string(),
12895
- rulesFired: import_zod.z.array(import_zod.z.string()),
12896
- reason: import_zod.z.string(),
12897
- approvalMode: import_zod.z.string().nullable(),
12898
- isAuthoringTimePreview: import_zod.z.boolean(),
12899
- bindings: import_zod.z.array(
12900
- import_zod.z.object({
12901
- policyId: import_zod.z.string(),
12902
- name: import_zod.z.string(),
12903
- handler: import_zod.z.string(),
12904
- mode: import_zod.z.string(),
12905
- decision: import_zod.z.string(),
12906
- reason: import_zod.z.string(),
12907
- rulesFired: import_zod.z.array(import_zod.z.string()),
12908
- approvalMode: import_zod.z.string().nullable()
12909
- })
12910
- )
12911
- }).nullable(),
12911
+ policy: reads()(
12912
+ import_zod.z.object({
12913
+ mode: import_zod.z.string(),
12914
+ policyId: import_zod.z.string(),
12915
+ ruleId: import_zod.z.string(),
12916
+ rulesFired: import_zod.z.array(import_zod.z.string()),
12917
+ reason: import_zod.z.string(),
12918
+ approvalMode: import_zod.z.string().nullable(),
12919
+ isAuthoringTimePreview: import_zod.z.boolean(),
12920
+ bindings: import_zod.z.array(
12921
+ import_zod.z.object({
12922
+ policyId: import_zod.z.string(),
12923
+ name: import_zod.z.string(),
12924
+ handler: import_zod.z.string(),
12925
+ mode: import_zod.z.string(),
12926
+ decision: import_zod.z.string(),
12927
+ reason: import_zod.z.string(),
12928
+ rulesFired: import_zod.z.array(import_zod.z.string()),
12929
+ approvalMode: import_zod.z.string().nullable()
12930
+ })
12931
+ )
12932
+ }).nullable()
12933
+ ),
12912
12934
  // What the Preview shows of the Agents bound at it: the curated queue of
12913
12935
  // their Advisories about this tree, how many were recorded under the
12914
12936
  // Preview's floor, how many bound Agents have not answered, and how many
@@ -12966,7 +12988,7 @@ var runEventSchema = import_zod.z.discriminatedUnion("type", [
12966
12988
  error: import_zod.z.string().nullable()
12967
12989
  })
12968
12990
  ]);
12969
- var stackScanSchema = import_zod.z.object({
12991
+ var driftScanSchema = import_zod.z.object({
12970
12992
  stack: stackIdentSchema,
12971
12993
  triggered: import_zod.z.boolean(),
12972
12994
  reason: import_zod.z.string().nullable(),
@@ -12980,60 +13002,74 @@ var stackScanSchema = import_zod.z.object({
12980
13002
  drift: driftSchema
12981
13003
  }).nullable()
12982
13004
  });
12983
- var stackImportSchema = moduleConvertResultSchema.extend({
13005
+ var moduleImportSchema = moduleConvertResultSchema.extend({
12984
13006
  stack: stackIdentSchema,
12985
13007
  importBlocks: import_zod.z.number(),
12986
13008
  importResiduals: import_zod.z.array(importResidualSchema)
12987
13009
  });
12988
13010
  var artifactRefSchema = import_zod.z.object({ url: import_zod.z.string(), key: import_zod.z.string() });
12989
- var runPlanSchema = import_zod.z.object({
12990
- runId: import_zod.z.string(),
12991
- status: import_zod.z.string().nullable(),
12992
- summary: planSummarySchema.nullable(),
12993
- planHuman: artifactRefSchema.nullable()
12994
- });
13011
+ var runPlanSchema = reads()(
13012
+ import_zod.z.object({
13013
+ runId: import_zod.z.string(),
13014
+ status: import_zod.z.string().nullable(),
13015
+ // The counts the Run recorded, each null for a Run whose plan has none.
13016
+ summary: import_zod.z.object({
13017
+ resourceAdd: import_zod.z.number().nullable(),
13018
+ resourceChange: import_zod.z.number().nullable(),
13019
+ resourceDestroy: import_zod.z.number().nullable()
13020
+ }).nullable(),
13021
+ planHuman: artifactRefSchema.nullable()
13022
+ })
13023
+ );
12995
13024
  var runLogsEventSchema = import_zod.z.discriminatedUnion("type", [
12996
13025
  import_zod.z.object({ type: import_zod.z.literal("log"), text: import_zod.z.string() }),
12997
13026
  import_zod.z.object({ type: import_zod.z.literal("result"), status: import_zod.z.string().nullable() })
12998
13027
  ]);
12999
- var whoamiSchema = import_zod.z.object({
13000
- organization: import_zod.z.string().nullable(),
13001
- user: import_zod.z.object({ email: import_zod.z.string(), id: import_zod.z.string(), name: import_zod.z.string() })
13002
- });
13028
+ var whoamiSchema = reads()(
13029
+ import_zod.z.object({
13030
+ organization: import_zod.z.string().nullable(),
13031
+ // A machine credential's principal names no person.
13032
+ user: import_zod.z.object({ email: import_zod.z.string(), id: import_zod.z.string(), name: import_zod.z.string() }).optional()
13033
+ })
13034
+ );
13003
13035
  var orgListSchema = import_zod.z.object({
13004
13036
  items: import_zod.z.array(import_zod.z.object({ slug: import_zod.z.string(), name: import_zod.z.string(), role: import_zod.z.string() }))
13005
13037
  });
13006
- var teamListSchema = import_zod.z.object({
13007
- items: import_zod.z.array(
13008
- import_zod.z.object({
13009
- id: import_zod.z.string(),
13010
- orgId: import_zod.z.string(),
13011
- name: import_zod.z.string(),
13012
- slug: import_zod.z.string(),
13013
- description: import_zod.z.string(),
13014
- createdBy: import_zod.z.string(),
13015
- createdAt: import_zod.z.string(),
13016
- updatedAt: import_zod.z.string(),
13017
- role: import_zod.z.string(),
13018
- memberCount: import_zod.z.number()
13019
- })
13020
- ),
13021
- nextCursor: import_zod.z.string().nullable(),
13022
- hasMore: import_zod.z.boolean(),
13023
- createUrl: import_zod.z.string()
13024
- });
13038
+ var teamListSchema = reads()(
13039
+ import_zod.z.object({
13040
+ items: import_zod.z.array(
13041
+ import_zod.z.object({
13042
+ id: import_zod.z.string(),
13043
+ orgId: import_zod.z.string(),
13044
+ name: import_zod.z.string(),
13045
+ slug: import_zod.z.string(),
13046
+ description: import_zod.z.string().nullish(),
13047
+ createdBy: import_zod.z.string(),
13048
+ createdAt: import_zod.z.string(),
13049
+ updatedAt: import_zod.z.string(),
13050
+ role: import_zod.z.string().optional(),
13051
+ memberCount: import_zod.z.number().optional()
13052
+ })
13053
+ ),
13054
+ nextCursor: import_zod.z.string().nullable(),
13055
+ hasMore: import_zod.z.boolean(),
13056
+ createUrl: import_zod.z.string()
13057
+ })
13058
+ );
13025
13059
  var connectionListSchema = import_zod.z.object({
13026
13060
  items: import_zod.z.array(
13027
- import_zod.z.object({
13028
- id: import_zod.z.string(),
13029
- name: import_zod.z.string(),
13030
- provider_type: import_zod.z.string(),
13031
- status: import_zod.z.string(),
13032
- status_reason: import_zod.z.string().nullable(),
13033
- created_at: import_zod.z.string(),
13034
- updated_at: import_zod.z.string(),
13035
- metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown())
13036
- })
13061
+ reads()(
13062
+ import_zod.z.object({
13063
+ id: import_zod.z.string(),
13064
+ name: import_zod.z.string(),
13065
+ provider_type: import_zod.z.string(),
13066
+ status: import_zod.z.string(),
13067
+ status_reason: import_zod.z.string().nullable(),
13068
+ created_at: import_zod.z.string(),
13069
+ updated_at: import_zod.z.string(),
13070
+ metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown())
13071
+ })
13072
+ )
13037
13073
  ),
13038
13074
  createUrl: import_zod.z.string()
13039
13075
  });
@@ -13075,9 +13111,9 @@ var SCHEMAS = {
13075
13111
  "stack preview": stackPreviewSchema,
13076
13112
  "stack apply": runEventSchema,
13077
13113
  "stack destroy": runEventSchema,
13078
- "stack scan": stackScanSchema,
13114
+ "drift scan": driftScanSchema,
13079
13115
  "stack create": stackSchema,
13080
- "stack import": stackImportSchema,
13116
+ "module import": moduleImportSchema,
13081
13117
  "run get": runSchema,
13082
13118
  "run plan": runPlanSchema,
13083
13119
  "run cancel": runSchema,
@@ -13539,7 +13575,7 @@ function diagnosticsOf(sourceDiagnostics, reportFindings) {
13539
13575
  var REPORT_PATHS = ["module validate", "module convert", "module scan"];
13540
13576
  var FOLDS_AS = new Map([
13541
13577
  ...REPORT_PATHS.map((path) => [path, path]),
13542
- ["stack import", "module convert"]
13578
+ ["module import", "module convert"]
13543
13579
  ]);
13544
13580
  var EMPTY_REPORT_FOLD = /* @__PURE__ */ new Map();
13545
13581
  function readEntry(path, exitCode, data) {
@@ -14005,7 +14041,7 @@ function scanNotice(e) {
14005
14041
  }
14006
14042
  var scan = defineCommand({
14007
14043
  kind: "command",
14008
- path: "stack scan",
14044
+ path: "drift scan",
14009
14045
  args: (ctx) => ({ stack: ctx.stack?.id, wait: true }),
14010
14046
  invalidates: true,
14011
14047
  result: {
@@ -14058,14 +14094,14 @@ var importResult = {
14058
14094
  };
14059
14095
  var importStack = defineCommand({
14060
14096
  kind: "command",
14061
- path: "stack import",
14097
+ path: "module import",
14062
14098
  args: (ctx) => ({ stack: ctx.stack?.id }),
14063
14099
  invalidates: true,
14064
14100
  result: importResult
14065
14101
  });
14066
14102
  var importPartial = defineCommand({
14067
14103
  kind: "command",
14068
- path: "stack import",
14104
+ path: "module import",
14069
14105
  args: (ctx) => ({ stack: ctx.stack?.id, allowPartial: true }),
14070
14106
  confirm: (ctx, _args, target) => ({
14071
14107
  text: `Import into ${ctx.stack?.slug} without adopting ${residualAddresses(target.failure?.importResiduals ?? [])}? Lace writes no import block for them, so the stack's apply creates them anew beside the live ones.`
@@ -14218,7 +14254,7 @@ var STACK_COMMAND_ACTIONS = [
14218
14254
  label: "Import existing resources",
14219
14255
  placement: "toolbar",
14220
14256
  requiredPorts: ["commands"],
14221
- // `stack import` writes the directory it runs in, the same way
14257
+ // `module import` writes the directory it runs in, the same way
14222
14258
  // Convert does.
14223
14259
  requiredContext: ["root", "stack"],
14224
14260
  binding: importStack