@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.
package/dist/index.cjs CHANGED
@@ -2037,6 +2037,165 @@ var import_proto8 = require("@lace-cloud/proto");
2037
2037
  // src/ports.ts
2038
2038
  var import_proto7 = require("@lace-cloud/proto");
2039
2039
 
2040
+ // src/generated/reason.ts
2041
+ var Reason = /* @__PURE__ */ ((Reason3) => {
2042
+ Reason3[Reason3["REASON_UNSPECIFIED"] = 0] = "REASON_UNSPECIFIED";
2043
+ Reason3[Reason3["REASON_NOT_LACE_FORM"] = 1] = "REASON_NOT_LACE_FORM";
2044
+ Reason3[Reason3["REASON_HASH_MISMATCH"] = 2] = "REASON_HASH_MISMATCH";
2045
+ Reason3[Reason3["REASON_REGISTRY_UNAVAILABLE"] = 3] = "REASON_REGISTRY_UNAVAILABLE";
2046
+ Reason3[Reason3["REASON_ROOT_LOCKED"] = 4] = "REASON_ROOT_LOCKED";
2047
+ Reason3[Reason3["REASON_UNSAVED"] = 5] = "REASON_UNSAVED";
2048
+ Reason3[Reason3["REASON_CONFLICT"] = 6] = "REASON_CONFLICT";
2049
+ Reason3[Reason3["REASON_SOURCE_REFUSED"] = 7] = "REASON_SOURCE_REFUSED";
2050
+ Reason3[Reason3["REASON_NOT_GIT_REPOSITORY"] = 8] = "REASON_NOT_GIT_REPOSITORY";
2051
+ Reason3[Reason3["REASON_GENERATE_IN_PROGRESS"] = 9] = "REASON_GENERATE_IN_PROGRESS";
2052
+ Reason3[Reason3["REASON_NO_ORGANIZATION"] = 10] = "REASON_NO_ORGANIZATION";
2053
+ Reason3[Reason3["REASON_NO_TEAM"] = 11] = "REASON_NO_TEAM";
2054
+ Reason3[Reason3["REASON_NO_CERTIFICATION"] = 12] = "REASON_NO_CERTIFICATION";
2055
+ Reason3[Reason3["REASON_STALE_CERTIFICATION"] = 13] = "REASON_STALE_CERTIFICATION";
2056
+ Reason3[Reason3["REASON_TOOL_MISSING"] = 14] = "REASON_TOOL_MISSING";
2057
+ Reason3[Reason3["REASON_CROSS_SCOPE"] = 15] = "REASON_CROSS_SCOPE";
2058
+ Reason3[Reason3["REASON_UNAUTHENTICATED"] = 16] = "REASON_UNAUTHENTICATED";
2059
+ Reason3[Reason3["REASON_IMPORT_RESIDUAL"] = 17] = "REASON_IMPORT_RESIDUAL";
2060
+ Reason3[Reason3["REASON_STACK_HAS_STATE"] = 18] = "REASON_STACK_HAS_STATE";
2061
+ Reason3[Reason3["REASON_NO_ORIGIN_REMOTE"] = 19] = "REASON_NO_ORIGIN_REMOTE";
2062
+ Reason3[Reason3["REASON_IMPORT_UNDECLARED"] = 20] = "REASON_IMPORT_UNDECLARED";
2063
+ Reason3[Reason3["REASON_ALREADY_IMPORTED"] = 21] = "REASON_ALREADY_IMPORTED";
2064
+ Reason3[Reason3["REASON_NO_LOCKFILE"] = 22] = "REASON_NO_LOCKFILE";
2065
+ Reason3[Reason3["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2066
+ return Reason3;
2067
+ })(Reason || {});
2068
+ function reasonFromJSON(object) {
2069
+ switch (object) {
2070
+ case 0:
2071
+ case "REASON_UNSPECIFIED":
2072
+ return 0 /* REASON_UNSPECIFIED */;
2073
+ case 1:
2074
+ case "REASON_NOT_LACE_FORM":
2075
+ return 1 /* REASON_NOT_LACE_FORM */;
2076
+ case 2:
2077
+ case "REASON_HASH_MISMATCH":
2078
+ return 2 /* REASON_HASH_MISMATCH */;
2079
+ case 3:
2080
+ case "REASON_REGISTRY_UNAVAILABLE":
2081
+ return 3 /* REASON_REGISTRY_UNAVAILABLE */;
2082
+ case 4:
2083
+ case "REASON_ROOT_LOCKED":
2084
+ return 4 /* REASON_ROOT_LOCKED */;
2085
+ case 5:
2086
+ case "REASON_UNSAVED":
2087
+ return 5 /* REASON_UNSAVED */;
2088
+ case 6:
2089
+ case "REASON_CONFLICT":
2090
+ return 6 /* REASON_CONFLICT */;
2091
+ case 7:
2092
+ case "REASON_SOURCE_REFUSED":
2093
+ return 7 /* REASON_SOURCE_REFUSED */;
2094
+ case 8:
2095
+ case "REASON_NOT_GIT_REPOSITORY":
2096
+ return 8 /* REASON_NOT_GIT_REPOSITORY */;
2097
+ case 9:
2098
+ case "REASON_GENERATE_IN_PROGRESS":
2099
+ return 9 /* REASON_GENERATE_IN_PROGRESS */;
2100
+ case 10:
2101
+ case "REASON_NO_ORGANIZATION":
2102
+ return 10 /* REASON_NO_ORGANIZATION */;
2103
+ case 11:
2104
+ case "REASON_NO_TEAM":
2105
+ return 11 /* REASON_NO_TEAM */;
2106
+ case 12:
2107
+ case "REASON_NO_CERTIFICATION":
2108
+ return 12 /* REASON_NO_CERTIFICATION */;
2109
+ case 13:
2110
+ case "REASON_STALE_CERTIFICATION":
2111
+ return 13 /* REASON_STALE_CERTIFICATION */;
2112
+ case 14:
2113
+ case "REASON_TOOL_MISSING":
2114
+ return 14 /* REASON_TOOL_MISSING */;
2115
+ case 15:
2116
+ case "REASON_CROSS_SCOPE":
2117
+ return 15 /* REASON_CROSS_SCOPE */;
2118
+ case 16:
2119
+ case "REASON_UNAUTHENTICATED":
2120
+ return 16 /* REASON_UNAUTHENTICATED */;
2121
+ case 17:
2122
+ case "REASON_IMPORT_RESIDUAL":
2123
+ return 17 /* REASON_IMPORT_RESIDUAL */;
2124
+ case 18:
2125
+ case "REASON_STACK_HAS_STATE":
2126
+ return 18 /* REASON_STACK_HAS_STATE */;
2127
+ case 19:
2128
+ case "REASON_NO_ORIGIN_REMOTE":
2129
+ return 19 /* REASON_NO_ORIGIN_REMOTE */;
2130
+ case 20:
2131
+ case "REASON_IMPORT_UNDECLARED":
2132
+ return 20 /* REASON_IMPORT_UNDECLARED */;
2133
+ case 21:
2134
+ case "REASON_ALREADY_IMPORTED":
2135
+ return 21 /* REASON_ALREADY_IMPORTED */;
2136
+ case 22:
2137
+ case "REASON_NO_LOCKFILE":
2138
+ return 22 /* REASON_NO_LOCKFILE */;
2139
+ case -1:
2140
+ case "UNRECOGNIZED":
2141
+ default:
2142
+ return -1 /* UNRECOGNIZED */;
2143
+ }
2144
+ }
2145
+ function reasonToJSON(object) {
2146
+ switch (object) {
2147
+ case 0 /* REASON_UNSPECIFIED */:
2148
+ return "REASON_UNSPECIFIED";
2149
+ case 1 /* REASON_NOT_LACE_FORM */:
2150
+ return "REASON_NOT_LACE_FORM";
2151
+ case 2 /* REASON_HASH_MISMATCH */:
2152
+ return "REASON_HASH_MISMATCH";
2153
+ case 3 /* REASON_REGISTRY_UNAVAILABLE */:
2154
+ return "REASON_REGISTRY_UNAVAILABLE";
2155
+ case 4 /* REASON_ROOT_LOCKED */:
2156
+ return "REASON_ROOT_LOCKED";
2157
+ case 5 /* REASON_UNSAVED */:
2158
+ return "REASON_UNSAVED";
2159
+ case 6 /* REASON_CONFLICT */:
2160
+ return "REASON_CONFLICT";
2161
+ case 7 /* REASON_SOURCE_REFUSED */:
2162
+ return "REASON_SOURCE_REFUSED";
2163
+ case 8 /* REASON_NOT_GIT_REPOSITORY */:
2164
+ return "REASON_NOT_GIT_REPOSITORY";
2165
+ case 9 /* REASON_GENERATE_IN_PROGRESS */:
2166
+ return "REASON_GENERATE_IN_PROGRESS";
2167
+ case 10 /* REASON_NO_ORGANIZATION */:
2168
+ return "REASON_NO_ORGANIZATION";
2169
+ case 11 /* REASON_NO_TEAM */:
2170
+ return "REASON_NO_TEAM";
2171
+ case 12 /* REASON_NO_CERTIFICATION */:
2172
+ return "REASON_NO_CERTIFICATION";
2173
+ case 13 /* REASON_STALE_CERTIFICATION */:
2174
+ return "REASON_STALE_CERTIFICATION";
2175
+ case 14 /* REASON_TOOL_MISSING */:
2176
+ return "REASON_TOOL_MISSING";
2177
+ case 15 /* REASON_CROSS_SCOPE */:
2178
+ return "REASON_CROSS_SCOPE";
2179
+ case 16 /* REASON_UNAUTHENTICATED */:
2180
+ return "REASON_UNAUTHENTICATED";
2181
+ case 17 /* REASON_IMPORT_RESIDUAL */:
2182
+ return "REASON_IMPORT_RESIDUAL";
2183
+ case 18 /* REASON_STACK_HAS_STATE */:
2184
+ return "REASON_STACK_HAS_STATE";
2185
+ case 19 /* REASON_NO_ORIGIN_REMOTE */:
2186
+ return "REASON_NO_ORIGIN_REMOTE";
2187
+ case 20 /* REASON_IMPORT_UNDECLARED */:
2188
+ return "REASON_IMPORT_UNDECLARED";
2189
+ case 21 /* REASON_ALREADY_IMPORTED */:
2190
+ return "REASON_ALREADY_IMPORTED";
2191
+ case 22 /* REASON_NO_LOCKFILE */:
2192
+ return "REASON_NO_LOCKFILE";
2193
+ case -1 /* UNRECOGNIZED */:
2194
+ default:
2195
+ return "UNRECOGNIZED";
2196
+ }
2197
+ }
2198
+
2040
2199
  // src/generated/service.ts
2041
2200
  var import_wire4 = require("@bufbuild/protobuf/wire");
2042
2201
 
@@ -5390,163 +5549,6 @@ function diagnosticSeverityToJSON(object) {
5390
5549
  return "UNRECOGNIZED";
5391
5550
  }
5392
5551
  }
5393
- var Reason = /* @__PURE__ */ ((Reason2) => {
5394
- Reason2[Reason2["REASON_UNSPECIFIED"] = 0] = "REASON_UNSPECIFIED";
5395
- Reason2[Reason2["REASON_NOT_LACE_FORM"] = 1] = "REASON_NOT_LACE_FORM";
5396
- Reason2[Reason2["REASON_HASH_MISMATCH"] = 2] = "REASON_HASH_MISMATCH";
5397
- Reason2[Reason2["REASON_REGISTRY_UNAVAILABLE"] = 3] = "REASON_REGISTRY_UNAVAILABLE";
5398
- Reason2[Reason2["REASON_ROOT_LOCKED"] = 4] = "REASON_ROOT_LOCKED";
5399
- Reason2[Reason2["REASON_UNSAVED"] = 5] = "REASON_UNSAVED";
5400
- Reason2[Reason2["REASON_CONFLICT"] = 6] = "REASON_CONFLICT";
5401
- Reason2[Reason2["REASON_SOURCE_REFUSED"] = 7] = "REASON_SOURCE_REFUSED";
5402
- Reason2[Reason2["REASON_NOT_GIT_REPOSITORY"] = 8] = "REASON_NOT_GIT_REPOSITORY";
5403
- Reason2[Reason2["REASON_GENERATE_IN_PROGRESS"] = 9] = "REASON_GENERATE_IN_PROGRESS";
5404
- Reason2[Reason2["REASON_NO_ORGANIZATION"] = 10] = "REASON_NO_ORGANIZATION";
5405
- Reason2[Reason2["REASON_NO_TEAM"] = 11] = "REASON_NO_TEAM";
5406
- Reason2[Reason2["REASON_NO_CERTIFICATION"] = 12] = "REASON_NO_CERTIFICATION";
5407
- Reason2[Reason2["REASON_STALE_CERTIFICATION"] = 13] = "REASON_STALE_CERTIFICATION";
5408
- Reason2[Reason2["REASON_TOOL_MISSING"] = 14] = "REASON_TOOL_MISSING";
5409
- Reason2[Reason2["REASON_CROSS_SCOPE"] = 15] = "REASON_CROSS_SCOPE";
5410
- Reason2[Reason2["REASON_UNAUTHENTICATED"] = 16] = "REASON_UNAUTHENTICATED";
5411
- Reason2[Reason2["REASON_IMPORT_RESIDUAL"] = 17] = "REASON_IMPORT_RESIDUAL";
5412
- Reason2[Reason2["REASON_STACK_HAS_STATE"] = 18] = "REASON_STACK_HAS_STATE";
5413
- Reason2[Reason2["REASON_NO_ORIGIN_REMOTE"] = 19] = "REASON_NO_ORIGIN_REMOTE";
5414
- Reason2[Reason2["REASON_IMPORT_UNDECLARED"] = 20] = "REASON_IMPORT_UNDECLARED";
5415
- Reason2[Reason2["REASON_ALREADY_IMPORTED"] = 21] = "REASON_ALREADY_IMPORTED";
5416
- Reason2[Reason2["REASON_NO_LOCKFILE"] = 22] = "REASON_NO_LOCKFILE";
5417
- Reason2[Reason2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
5418
- return Reason2;
5419
- })(Reason || {});
5420
- function reasonFromJSON(object) {
5421
- switch (object) {
5422
- case 0:
5423
- case "REASON_UNSPECIFIED":
5424
- return 0 /* REASON_UNSPECIFIED */;
5425
- case 1:
5426
- case "REASON_NOT_LACE_FORM":
5427
- return 1 /* REASON_NOT_LACE_FORM */;
5428
- case 2:
5429
- case "REASON_HASH_MISMATCH":
5430
- return 2 /* REASON_HASH_MISMATCH */;
5431
- case 3:
5432
- case "REASON_REGISTRY_UNAVAILABLE":
5433
- return 3 /* REASON_REGISTRY_UNAVAILABLE */;
5434
- case 4:
5435
- case "REASON_ROOT_LOCKED":
5436
- return 4 /* REASON_ROOT_LOCKED */;
5437
- case 5:
5438
- case "REASON_UNSAVED":
5439
- return 5 /* REASON_UNSAVED */;
5440
- case 6:
5441
- case "REASON_CONFLICT":
5442
- return 6 /* REASON_CONFLICT */;
5443
- case 7:
5444
- case "REASON_SOURCE_REFUSED":
5445
- return 7 /* REASON_SOURCE_REFUSED */;
5446
- case 8:
5447
- case "REASON_NOT_GIT_REPOSITORY":
5448
- return 8 /* REASON_NOT_GIT_REPOSITORY */;
5449
- case 9:
5450
- case "REASON_GENERATE_IN_PROGRESS":
5451
- return 9 /* REASON_GENERATE_IN_PROGRESS */;
5452
- case 10:
5453
- case "REASON_NO_ORGANIZATION":
5454
- return 10 /* REASON_NO_ORGANIZATION */;
5455
- case 11:
5456
- case "REASON_NO_TEAM":
5457
- return 11 /* REASON_NO_TEAM */;
5458
- case 12:
5459
- case "REASON_NO_CERTIFICATION":
5460
- return 12 /* REASON_NO_CERTIFICATION */;
5461
- case 13:
5462
- case "REASON_STALE_CERTIFICATION":
5463
- return 13 /* REASON_STALE_CERTIFICATION */;
5464
- case 14:
5465
- case "REASON_TOOL_MISSING":
5466
- return 14 /* REASON_TOOL_MISSING */;
5467
- case 15:
5468
- case "REASON_CROSS_SCOPE":
5469
- return 15 /* REASON_CROSS_SCOPE */;
5470
- case 16:
5471
- case "REASON_UNAUTHENTICATED":
5472
- return 16 /* REASON_UNAUTHENTICATED */;
5473
- case 17:
5474
- case "REASON_IMPORT_RESIDUAL":
5475
- return 17 /* REASON_IMPORT_RESIDUAL */;
5476
- case 18:
5477
- case "REASON_STACK_HAS_STATE":
5478
- return 18 /* REASON_STACK_HAS_STATE */;
5479
- case 19:
5480
- case "REASON_NO_ORIGIN_REMOTE":
5481
- return 19 /* REASON_NO_ORIGIN_REMOTE */;
5482
- case 20:
5483
- case "REASON_IMPORT_UNDECLARED":
5484
- return 20 /* REASON_IMPORT_UNDECLARED */;
5485
- case 21:
5486
- case "REASON_ALREADY_IMPORTED":
5487
- return 21 /* REASON_ALREADY_IMPORTED */;
5488
- case 22:
5489
- case "REASON_NO_LOCKFILE":
5490
- return 22 /* REASON_NO_LOCKFILE */;
5491
- case -1:
5492
- case "UNRECOGNIZED":
5493
- default:
5494
- return -1 /* UNRECOGNIZED */;
5495
- }
5496
- }
5497
- function reasonToJSON(object) {
5498
- switch (object) {
5499
- case 0 /* REASON_UNSPECIFIED */:
5500
- return "REASON_UNSPECIFIED";
5501
- case 1 /* REASON_NOT_LACE_FORM */:
5502
- return "REASON_NOT_LACE_FORM";
5503
- case 2 /* REASON_HASH_MISMATCH */:
5504
- return "REASON_HASH_MISMATCH";
5505
- case 3 /* REASON_REGISTRY_UNAVAILABLE */:
5506
- return "REASON_REGISTRY_UNAVAILABLE";
5507
- case 4 /* REASON_ROOT_LOCKED */:
5508
- return "REASON_ROOT_LOCKED";
5509
- case 5 /* REASON_UNSAVED */:
5510
- return "REASON_UNSAVED";
5511
- case 6 /* REASON_CONFLICT */:
5512
- return "REASON_CONFLICT";
5513
- case 7 /* REASON_SOURCE_REFUSED */:
5514
- return "REASON_SOURCE_REFUSED";
5515
- case 8 /* REASON_NOT_GIT_REPOSITORY */:
5516
- return "REASON_NOT_GIT_REPOSITORY";
5517
- case 9 /* REASON_GENERATE_IN_PROGRESS */:
5518
- return "REASON_GENERATE_IN_PROGRESS";
5519
- case 10 /* REASON_NO_ORGANIZATION */:
5520
- return "REASON_NO_ORGANIZATION";
5521
- case 11 /* REASON_NO_TEAM */:
5522
- return "REASON_NO_TEAM";
5523
- case 12 /* REASON_NO_CERTIFICATION */:
5524
- return "REASON_NO_CERTIFICATION";
5525
- case 13 /* REASON_STALE_CERTIFICATION */:
5526
- return "REASON_STALE_CERTIFICATION";
5527
- case 14 /* REASON_TOOL_MISSING */:
5528
- return "REASON_TOOL_MISSING";
5529
- case 15 /* REASON_CROSS_SCOPE */:
5530
- return "REASON_CROSS_SCOPE";
5531
- case 16 /* REASON_UNAUTHENTICATED */:
5532
- return "REASON_UNAUTHENTICATED";
5533
- case 17 /* REASON_IMPORT_RESIDUAL */:
5534
- return "REASON_IMPORT_RESIDUAL";
5535
- case 18 /* REASON_STACK_HAS_STATE */:
5536
- return "REASON_STACK_HAS_STATE";
5537
- case 19 /* REASON_NO_ORIGIN_REMOTE */:
5538
- return "REASON_NO_ORIGIN_REMOTE";
5539
- case 20 /* REASON_IMPORT_UNDECLARED */:
5540
- return "REASON_IMPORT_UNDECLARED";
5541
- case 21 /* REASON_ALREADY_IMPORTED */:
5542
- return "REASON_ALREADY_IMPORTED";
5543
- case 22 /* REASON_NO_LOCKFILE */:
5544
- return "REASON_NO_LOCKFILE";
5545
- case -1 /* UNRECOGNIZED */:
5546
- default:
5547
- return "UNRECOGNIZED";
5548
- }
5549
- }
5550
5552
  function conflictChoiceFromJSON(object) {
5551
5553
  switch (object) {
5552
5554
  case 0:
@@ -14161,6 +14163,42 @@ var COMMANDS = {
14161
14163
  "hidden": false,
14162
14164
  "yes": false
14163
14165
  },
14166
+ "drift scan": {
14167
+ "path": "drift scan",
14168
+ "positionals": [],
14169
+ "flags": {
14170
+ "full": {
14171
+ "type": "bool"
14172
+ },
14173
+ "org": {
14174
+ "type": "string"
14175
+ },
14176
+ "output": {
14177
+ "type": "string",
14178
+ "values": [
14179
+ "table",
14180
+ "json"
14181
+ ],
14182
+ "short": "o"
14183
+ },
14184
+ "stack": {
14185
+ "type": "string",
14186
+ "required": true
14187
+ },
14188
+ "team": {
14189
+ "type": "string"
14190
+ },
14191
+ "wait": {
14192
+ "type": "bool"
14193
+ },
14194
+ "waitTimeout": {
14195
+ "type": "duration"
14196
+ }
14197
+ },
14198
+ "effect": "write",
14199
+ "hidden": false,
14200
+ "yes": false
14201
+ },
14164
14202
  "hooks install": {
14165
14203
  "path": "hooks install",
14166
14204
  "positionals": [],
@@ -14325,6 +14363,44 @@ var COMMANDS = {
14325
14363
  "hidden": false,
14326
14364
  "yes": false
14327
14365
  },
14366
+ "module import": {
14367
+ "path": "module import",
14368
+ "positionals": [],
14369
+ "flags": {
14370
+ "allowPartial": {
14371
+ "type": "bool"
14372
+ },
14373
+ "org": {
14374
+ "type": "string"
14375
+ },
14376
+ "output": {
14377
+ "type": "string",
14378
+ "values": [
14379
+ "table",
14380
+ "json"
14381
+ ],
14382
+ "short": "o"
14383
+ },
14384
+ "path": {
14385
+ "type": "string",
14386
+ "short": "p"
14387
+ },
14388
+ "stack": {
14389
+ "type": "string",
14390
+ "required": true
14391
+ },
14392
+ "state": {
14393
+ "type": "string",
14394
+ "required": true
14395
+ },
14396
+ "team": {
14397
+ "type": "string"
14398
+ }
14399
+ },
14400
+ "effect": "rewrite",
14401
+ "hidden": false,
14402
+ "yes": false
14403
+ },
14328
14404
  "module lock": {
14329
14405
  "path": "module lock",
14330
14406
  "positionals": [],
@@ -15108,45 +15184,6 @@ var COMMANDS = {
15108
15184
  "hidden": false,
15109
15185
  "yes": false
15110
15186
  },
15111
- "stack import": {
15112
- "path": "stack import",
15113
- "positionals": [
15114
- {
15115
- "name": "stack",
15116
- "kind": "required"
15117
- }
15118
- ],
15119
- "flags": {
15120
- "allowPartial": {
15121
- "type": "bool"
15122
- },
15123
- "org": {
15124
- "type": "string"
15125
- },
15126
- "output": {
15127
- "type": "string",
15128
- "values": [
15129
- "table",
15130
- "json"
15131
- ],
15132
- "short": "o"
15133
- },
15134
- "path": {
15135
- "type": "string",
15136
- "short": "p"
15137
- },
15138
- "state": {
15139
- "type": "string",
15140
- "required": true
15141
- },
15142
- "team": {
15143
- "type": "string"
15144
- }
15145
- },
15146
- "effect": "rewrite",
15147
- "hidden": false,
15148
- "yes": false
15149
- },
15150
15187
  "stack list": {
15151
15188
  "path": "stack list",
15152
15189
  "positionals": [],
@@ -15218,43 +15255,6 @@ var COMMANDS = {
15218
15255
  "hidden": false,
15219
15256
  "yes": false
15220
15257
  },
15221
- "stack scan": {
15222
- "path": "stack scan",
15223
- "positionals": [
15224
- {
15225
- "name": "stack",
15226
- "kind": "required"
15227
- }
15228
- ],
15229
- "flags": {
15230
- "full": {
15231
- "type": "bool"
15232
- },
15233
- "org": {
15234
- "type": "string"
15235
- },
15236
- "output": {
15237
- "type": "string",
15238
- "values": [
15239
- "table",
15240
- "json"
15241
- ],
15242
- "short": "o"
15243
- },
15244
- "team": {
15245
- "type": "string"
15246
- },
15247
- "wait": {
15248
- "type": "bool"
15249
- },
15250
- "waitTimeout": {
15251
- "type": "duration"
15252
- }
15253
- },
15254
- "effect": "write",
15255
- "hidden": false,
15256
- "yes": false
15257
- },
15258
15258
  "stack update": {
15259
15259
  "path": "stack update",
15260
15260
  "positionals": [
@@ -15476,6 +15476,9 @@ function completeArgs(path, partial) {
15476
15476
 
15477
15477
  // src/contracts/schemas.ts
15478
15478
  var import_zod = require("zod");
15479
+ function reads() {
15480
+ return (schema) => schema;
15481
+ }
15479
15482
  var REASON_PREFIX = "REASON_";
15480
15483
  function reasonWire(reason) {
15481
15484
  return reasonToJSON(reason).slice(REASON_PREFIX.length).toLowerCase();
@@ -15524,10 +15527,11 @@ var commandDiagnosticSchema = import_zod.z.object({
15524
15527
  line: import_zod.z.number().optional(),
15525
15528
  column: import_zod.z.number().optional()
15526
15529
  });
15530
+ var VERDICTS = ["already-lace-style", "convertible", "uncomposable", "lossy"];
15527
15531
  var moduleValidateResultSchema = import_zod.z.object({
15528
15532
  root: import_zod.z.string().min(1).optional(),
15529
15533
  treeHash: import_zod.z.string().min(1).optional(),
15530
- verdict: import_zod.z.enum(["already-lace-style", "representable-but-transpilable", "uncomposable", "lossy"]).optional(),
15534
+ verdict: import_zod.z.enum(VERDICTS).optional(),
15531
15535
  residuals: import_zod.z.array(
15532
15536
  import_zod.z.object({
15533
15537
  construct: import_zod.z.string(),
@@ -15661,7 +15665,7 @@ var registryDescribeSchema = import_zod.z.object({
15661
15665
  version: import_zod.z.string(),
15662
15666
  source: import_zod.z.string(),
15663
15667
  treeHash: import_zod.z.string(),
15664
- verdict: import_zod.z.string(),
15668
+ verdict: import_zod.z.enum(VERDICTS),
15665
15669
  interface: import_zod.z.object({
15666
15670
  inputs: import_zod.z.array(
15667
15671
  import_zod.z.object({
@@ -15685,39 +15689,41 @@ var stackSourceSchema = import_zod.z.object({
15685
15689
  ref: import_zod.z.string().optional(),
15686
15690
  path: import_zod.z.string().optional()
15687
15691
  });
15688
- var stackSchema = import_zod.z.object({
15689
- id: import_zod.z.string(),
15690
- orgId: import_zod.z.string(),
15691
- teamId: import_zod.z.string(),
15692
- connectionId: import_zod.z.string(),
15693
- slug: import_zod.z.string(),
15694
- name: import_zod.z.string(),
15695
- description: import_zod.z.string().nullable(),
15696
- source: stackSourceSchema.nullable(),
15697
- stateSerial: import_zod.z.number(),
15698
- stateLineage: import_zod.z.string().nullable(),
15699
- stateVersion: import_zod.z.number().nullable(),
15700
- stateLastWrittenAt: import_zod.z.string().nullable(),
15701
- lastAppliedRunId: import_zod.z.string().nullable(),
15702
- lastDriftScanAt: import_zod.z.string().nullable(),
15703
- lastDriftStatus: import_zod.z.string().nullable(),
15704
- lastDriftCount: import_zod.z.number(),
15705
- lastDriftStale: import_zod.z.boolean(),
15706
- lastDriftConfirmedAt: import_zod.z.string().nullable(),
15707
- lastDriftUndeterminedReason: import_zod.z.string().nullable(),
15708
- createdBy: import_zod.z.string(),
15709
- createdAt: import_zod.z.string(),
15710
- updatedAt: import_zod.z.string(),
15711
- archivedAt: import_zod.z.string().nullable(),
15712
- connection: import_zod.z.object({ name: import_zod.z.string(), provider: import_zod.z.string(), awsAccountId: import_zod.z.string().nullable() }).nullable(),
15713
- createdByName: import_zod.z.string().nullable(),
15714
- lastApply: import_zod.z.object({
15715
- runId: import_zod.z.string(),
15716
- bundleSnapshotId: import_zod.z.string(),
15717
- completedAt: import_zod.z.string().nullable(),
15718
- initiatedByName: import_zod.z.string().nullable()
15719
- }).nullable()
15720
- });
15692
+ var stackSchema = reads()(
15693
+ import_zod.z.object({
15694
+ id: import_zod.z.string(),
15695
+ orgId: import_zod.z.string(),
15696
+ teamId: import_zod.z.string(),
15697
+ connectionId: import_zod.z.string(),
15698
+ slug: import_zod.z.string(),
15699
+ name: import_zod.z.string(),
15700
+ description: import_zod.z.string().nullable(),
15701
+ source: stackSourceSchema.nullable(),
15702
+ stateSerial: import_zod.z.number(),
15703
+ stateLineage: import_zod.z.string().nullable(),
15704
+ stateVersion: import_zod.z.number().nullable(),
15705
+ stateLastWrittenAt: import_zod.z.string().nullable(),
15706
+ lastAppliedRunId: import_zod.z.string().nullable(),
15707
+ lastDriftScanAt: import_zod.z.string().nullable(),
15708
+ lastDriftStatus: import_zod.z.string().nullable(),
15709
+ lastDriftCount: import_zod.z.number(),
15710
+ lastDriftStale: import_zod.z.boolean(),
15711
+ lastDriftConfirmedAt: import_zod.z.string().nullable(),
15712
+ lastDriftUndeterminedReason: import_zod.z.string().nullable(),
15713
+ createdBy: import_zod.z.string(),
15714
+ createdAt: import_zod.z.string(),
15715
+ updatedAt: import_zod.z.string(),
15716
+ archivedAt: import_zod.z.string().nullable(),
15717
+ connection: import_zod.z.object({ name: import_zod.z.string(), provider: import_zod.z.string(), awsAccountId: import_zod.z.string().nullable() }).nullable(),
15718
+ createdByName: import_zod.z.string().nullable(),
15719
+ lastApply: import_zod.z.object({
15720
+ runId: import_zod.z.string(),
15721
+ bundleSnapshotId: import_zod.z.string(),
15722
+ completedAt: import_zod.z.string().nullable(),
15723
+ initiatedByName: import_zod.z.string().nullable()
15724
+ }).nullable()
15725
+ })
15726
+ );
15721
15727
  var stackListSchema = import_zod.z.object({
15722
15728
  items: import_zod.z.array(stackSchema),
15723
15729
  nextCursor: import_zod.z.string().nullable(),
@@ -15730,29 +15736,39 @@ var driftedResourceSchema = import_zod.z.object({
15730
15736
  details: import_zod.z.string().optional(),
15731
15737
  goldenAttributes: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()),
15732
15738
  liveProperties: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()),
15733
- diff: import_zod.z.array(import_zod.z.object({ path: import_zod.z.string(), declared: import_zod.z.unknown(), detected: import_zod.z.unknown() })),
15739
+ diff: import_zod.z.array(
15740
+ import_zod.z.object({
15741
+ path: import_zod.z.string(),
15742
+ declared: import_zod.z.unknown().optional(),
15743
+ detected: import_zod.z.unknown().optional()
15744
+ })
15745
+ ),
15734
15746
  findingId: import_zod.z.string().nullable()
15735
15747
  });
15736
- var driftSchema = import_zod.z.object({
15737
- stackId: import_zod.z.string(),
15738
- scannedAt: import_zod.z.string(),
15739
- driftStatus: import_zod.z.literal("DRIFTED"),
15740
- totalResources: import_zod.z.number(),
15741
- stateSerial: import_zod.z.number(),
15742
- driftedResources: import_zod.z.array(driftedResourceSchema)
15743
- }).nullable();
15744
- var stackDescribeSchema = import_zod.z.object({
15745
- stack: stackSchema.nullable(),
15746
- state: import_zod.z.object({
15747
- serial: import_zod.z.number(),
15748
- lineage: import_zod.z.string(),
15749
- terraformVersion: import_zod.z.string(),
15750
- resourceCount: import_zod.z.number(),
15751
- resourcesByType: import_zod.z.record(import_zod.z.string(), import_zod.z.number()),
15752
- resources: import_zod.z.array(import_zod.z.object({ address: import_zod.z.string(), type: import_zod.z.string() }))
15753
- }).nullable(),
15754
- drift: driftSchema
15755
- });
15748
+ var driftSchema = reads()(
15749
+ import_zod.z.object({
15750
+ stackId: import_zod.z.string(),
15751
+ scannedAt: import_zod.z.string(),
15752
+ driftStatus: import_zod.z.literal("DRIFTED"),
15753
+ totalResources: import_zod.z.number(),
15754
+ stateSerial: import_zod.z.number(),
15755
+ driftedResources: import_zod.z.array(driftedResourceSchema)
15756
+ }).nullable()
15757
+ );
15758
+ var stackDescribeSchema = reads()(
15759
+ import_zod.z.object({
15760
+ stack: stackSchema.nullable(),
15761
+ state: import_zod.z.object({
15762
+ serial: import_zod.z.number(),
15763
+ lineage: import_zod.z.string(),
15764
+ terraformVersion: import_zod.z.string(),
15765
+ resourceCount: import_zod.z.number(),
15766
+ resourcesByType: import_zod.z.record(import_zod.z.string(), import_zod.z.number()),
15767
+ resources: import_zod.z.array(import_zod.z.object({ address: import_zod.z.string(), type: import_zod.z.string() }))
15768
+ }).nullable(),
15769
+ drift: driftSchema
15770
+ })
15771
+ );
15756
15772
  var policySummarySchema = import_zod.z.object({
15757
15773
  policyId: import_zod.z.string(),
15758
15774
  name: import_zod.z.string(),
@@ -15760,77 +15776,81 @@ var policySummarySchema = import_zod.z.object({
15760
15776
  approvalMode: import_zod.z.string().nullable(),
15761
15777
  ruleIds: import_zod.z.array(import_zod.z.string())
15762
15778
  });
15763
- var policyListSchema = import_zod.z.object({
15764
- stack: import_zod.z.string().nullable(),
15765
- policies: import_zod.z.array(policySummarySchema)
15766
- });
15767
- var runSchema = import_zod.z.object({
15768
- id: import_zod.z.string(),
15769
- stackId: import_zod.z.string(),
15770
- orgId: import_zod.z.string(),
15771
- teamId: import_zod.z.string(),
15772
- kind: import_zod.z.string(),
15773
- status: import_zod.z.string(),
15774
- initiatedByUserId: import_zod.z.string().nullable(),
15775
- initiatedVia: import_zod.z.string(),
15776
- runnerIdentity: import_zod.z.string().nullable(),
15777
- runnerLocation: import_zod.z.string().nullable(),
15778
- bundleSnapshotId: import_zod.z.string().nullable(),
15779
- sourceCommitSha: import_zod.z.string().nullable(),
15780
- sourceRef: import_zod.z.string().nullable(),
15781
- sourcePrUrl: import_zod.z.string().nullable(),
15782
- sourceOverride: import_zod.z.boolean(),
15783
- planResourceAdd: import_zod.z.number().nullable(),
15784
- planResourceChange: import_zod.z.number().nullable(),
15785
- planResourceDestroy: import_zod.z.number().nullable(),
15786
- planLocation: import_zod.z.string().nullable(),
15787
- planHumanLocation: import_zod.z.string().nullable(),
15788
- applyLogLocation: import_zod.z.string().nullable(),
15789
- policyResultsLocation: import_zod.z.string().nullable(),
15790
- policyPassed: import_zod.z.boolean().nullable(),
15791
- policyResolution: import_zod.z.unknown().nullable(),
15792
- changeRequestId: import_zod.z.string().nullable(),
15793
- cancelReason: import_zod.z.string().nullable(),
15794
- startedAt: import_zod.z.string().nullable(),
15795
- completedAt: import_zod.z.string().nullable(),
15796
- errorMessage: import_zod.z.string().nullable(),
15797
- sourceTreeHash: import_zod.z.string().nullable(),
15798
- attestationStatus: import_zod.z.string().nullable(),
15799
- attestedAt: import_zod.z.string().nullable(),
15800
- attestation: import_zod.z.string().nullable(),
15801
- createdAt: import_zod.z.string(),
15802
- updatedAt: import_zod.z.string(),
15803
- // The run's page in the portal. The CLI builds it on every Run it prints
15804
- // (apps/cli/internal/api/runs.go, from the configured base URL and the
15805
- // selected organization and team); the API's own record carries none, so
15806
- // a portal mount reading the API body sees it absent — optional so both
15807
- // bodies parse. A host opens this link and never composes a portal route.
15808
- url: import_zod.z.string().optional(),
15809
- // The provider versions the Run's lockfile pins, each with the
15810
- // organization's admission it ran under when the version is one admitted
15811
- // outside the curated range. A single-run read carries it; a list does
15812
- // not, and the CLI omits an empty one.
15813
- providers: import_zod.z.array(
15814
- import_zod.z.object({
15815
- address: import_zod.z.string(),
15816
- version: import_zod.z.string(),
15817
- admission: import_zod.z.object({
15818
- id: import_zod.z.string(),
15819
- admittedBy: import_zod.z.string(),
15820
- admittedByName: import_zod.z.string().nullable(),
15821
- admittedAt: import_zod.z.string()
15822
- }).optional()
15823
- })
15824
- ).optional(),
15825
- // The CLI's own `api.Run` decode struct (apps/cli/internal/api/runs.go) has no
15826
- // json tag for these, so every CLI JSON golden omits them; the API always sends
15827
- // them (apps/api/src/openapi/schemas/runs.ts) — optional so both bodies parse.
15828
- keepStack: import_zod.z.boolean().optional(),
15829
- version: import_zod.z.number().optional(),
15830
- lastHeartbeatAt: import_zod.z.string().nullable().optional(),
15831
- initiatedByName: import_zod.z.string().nullable().optional(),
15832
- stackName: import_zod.z.string().nullable().optional()
15833
- });
15779
+ var policyListSchema = reads()(
15780
+ import_zod.z.object({
15781
+ stack: import_zod.z.string().nullable(),
15782
+ policies: import_zod.z.array(policySummarySchema)
15783
+ })
15784
+ );
15785
+ var runSchema = reads()(
15786
+ import_zod.z.object({
15787
+ id: import_zod.z.string(),
15788
+ stackId: import_zod.z.string(),
15789
+ orgId: import_zod.z.string(),
15790
+ teamId: import_zod.z.string(),
15791
+ kind: import_zod.z.string(),
15792
+ status: import_zod.z.string(),
15793
+ initiatedByUserId: import_zod.z.string().nullable(),
15794
+ initiatedVia: import_zod.z.string(),
15795
+ runnerIdentity: import_zod.z.string().nullable(),
15796
+ runnerLocation: import_zod.z.string().nullable(),
15797
+ bundleSnapshotId: import_zod.z.string().nullable(),
15798
+ sourceCommitSha: import_zod.z.string().nullable(),
15799
+ sourceRef: import_zod.z.string().nullable(),
15800
+ sourcePrUrl: import_zod.z.string().nullable(),
15801
+ sourceOverride: import_zod.z.boolean(),
15802
+ planResourceAdd: import_zod.z.number().nullable(),
15803
+ planResourceChange: import_zod.z.number().nullable(),
15804
+ planResourceDestroy: import_zod.z.number().nullable(),
15805
+ planLocation: import_zod.z.string().nullable(),
15806
+ planHumanLocation: import_zod.z.string().nullable(),
15807
+ applyLogLocation: import_zod.z.string().nullable(),
15808
+ policyResultsLocation: import_zod.z.string().nullable(),
15809
+ policyPassed: import_zod.z.boolean().nullable(),
15810
+ policyResolution: import_zod.z.unknown().nullable(),
15811
+ changeRequestId: import_zod.z.string().nullable(),
15812
+ cancelReason: import_zod.z.string().nullable(),
15813
+ startedAt: import_zod.z.string().nullable(),
15814
+ completedAt: import_zod.z.string().nullable(),
15815
+ errorMessage: import_zod.z.string().nullable(),
15816
+ sourceTreeHash: import_zod.z.string().nullable(),
15817
+ attestationStatus: import_zod.z.string().nullable(),
15818
+ attestedAt: import_zod.z.string().nullable(),
15819
+ attestation: import_zod.z.string().nullable(),
15820
+ createdAt: import_zod.z.string(),
15821
+ updatedAt: import_zod.z.string(),
15822
+ // The run's page in the portal. The CLI builds it on every Run it prints
15823
+ // (apps/cli/internal/kernel/api/runs.go, from the configured base URL and the
15824
+ // selected organization and team); the API's own record carries none, so
15825
+ // a portal mount reading the API body sees it absent — optional so both
15826
+ // bodies parse. A host opens this link and never composes a portal route.
15827
+ url: import_zod.z.string().optional(),
15828
+ // The provider versions the Run's lockfile pins, each with the
15829
+ // organization's admission it ran under when the version is one admitted
15830
+ // outside the curated range. A single-run read carries it; a list does
15831
+ // not, and the CLI omits an empty one.
15832
+ providers: import_zod.z.array(
15833
+ import_zod.z.object({
15834
+ address: import_zod.z.string(),
15835
+ version: import_zod.z.string(),
15836
+ admission: import_zod.z.object({
15837
+ id: import_zod.z.string(),
15838
+ admittedBy: import_zod.z.string(),
15839
+ admittedByName: import_zod.z.string().nullable(),
15840
+ admittedAt: import_zod.z.string()
15841
+ }).optional()
15842
+ })
15843
+ ).optional(),
15844
+ // The CLI's own `api.Run` decode struct (apps/cli/internal/kernel/api/runs.go) has no
15845
+ // json tag for these, so every CLI JSON golden omits them; the API always sends
15846
+ // them (apps/api/src/verticals/runs/routes/schemas/runs.ts) — optional so both bodies parse.
15847
+ keepStack: import_zod.z.boolean().optional(),
15848
+ version: import_zod.z.number().optional(),
15849
+ lastHeartbeatAt: import_zod.z.string().nullable().optional(),
15850
+ initiatedByName: import_zod.z.string().nullable().optional(),
15851
+ stackName: import_zod.z.string().nullable().optional()
15852
+ })
15853
+ );
15834
15854
  var runListSchema = import_zod.z.object({
15835
15855
  items: import_zod.z.array(runSchema),
15836
15856
  nextCursor: import_zod.z.string().nullable(),
@@ -15881,27 +15901,29 @@ var stackPreviewSchema = import_zod.z.object({
15881
15901
  stack: stackIdentSchema,
15882
15902
  treeHash: import_zod.z.string(),
15883
15903
  plan: import_zod.z.object({ summary: planSummarySchema, human: import_zod.z.string() }),
15884
- policy: import_zod.z.object({
15885
- mode: import_zod.z.string(),
15886
- policyId: import_zod.z.string(),
15887
- ruleId: import_zod.z.string(),
15888
- rulesFired: import_zod.z.array(import_zod.z.string()),
15889
- reason: import_zod.z.string(),
15890
- approvalMode: import_zod.z.string().nullable(),
15891
- isAuthoringTimePreview: import_zod.z.boolean(),
15892
- bindings: import_zod.z.array(
15893
- import_zod.z.object({
15894
- policyId: import_zod.z.string(),
15895
- name: import_zod.z.string(),
15896
- handler: import_zod.z.string(),
15897
- mode: import_zod.z.string(),
15898
- decision: import_zod.z.string(),
15899
- reason: import_zod.z.string(),
15900
- rulesFired: import_zod.z.array(import_zod.z.string()),
15901
- approvalMode: import_zod.z.string().nullable()
15902
- })
15903
- )
15904
- }).nullable(),
15904
+ policy: reads()(
15905
+ import_zod.z.object({
15906
+ mode: import_zod.z.string(),
15907
+ policyId: import_zod.z.string(),
15908
+ ruleId: import_zod.z.string(),
15909
+ rulesFired: import_zod.z.array(import_zod.z.string()),
15910
+ reason: import_zod.z.string(),
15911
+ approvalMode: import_zod.z.string().nullable(),
15912
+ isAuthoringTimePreview: import_zod.z.boolean(),
15913
+ bindings: import_zod.z.array(
15914
+ import_zod.z.object({
15915
+ policyId: import_zod.z.string(),
15916
+ name: import_zod.z.string(),
15917
+ handler: import_zod.z.string(),
15918
+ mode: import_zod.z.string(),
15919
+ decision: import_zod.z.string(),
15920
+ reason: import_zod.z.string(),
15921
+ rulesFired: import_zod.z.array(import_zod.z.string()),
15922
+ approvalMode: import_zod.z.string().nullable()
15923
+ })
15924
+ )
15925
+ }).nullable()
15926
+ ),
15905
15927
  // What the Preview shows of the Agents bound at it: the curated queue of
15906
15928
  // their Advisories about this tree, how many were recorded under the
15907
15929
  // Preview's floor, how many bound Agents have not answered, and how many
@@ -15959,7 +15981,7 @@ var runEventSchema = import_zod.z.discriminatedUnion("type", [
15959
15981
  error: import_zod.z.string().nullable()
15960
15982
  })
15961
15983
  ]);
15962
- var stackScanSchema = import_zod.z.object({
15984
+ var driftScanSchema = import_zod.z.object({
15963
15985
  stack: stackIdentSchema,
15964
15986
  triggered: import_zod.z.boolean(),
15965
15987
  reason: import_zod.z.string().nullable(),
@@ -15973,60 +15995,74 @@ var stackScanSchema = import_zod.z.object({
15973
15995
  drift: driftSchema
15974
15996
  }).nullable()
15975
15997
  });
15976
- var stackImportSchema = moduleConvertResultSchema.extend({
15998
+ var moduleImportSchema = moduleConvertResultSchema.extend({
15977
15999
  stack: stackIdentSchema,
15978
16000
  importBlocks: import_zod.z.number(),
15979
16001
  importResiduals: import_zod.z.array(importResidualSchema)
15980
16002
  });
15981
16003
  var artifactRefSchema = import_zod.z.object({ url: import_zod.z.string(), key: import_zod.z.string() });
15982
- var runPlanSchema = import_zod.z.object({
15983
- runId: import_zod.z.string(),
15984
- status: import_zod.z.string().nullable(),
15985
- summary: planSummarySchema.nullable(),
15986
- planHuman: artifactRefSchema.nullable()
15987
- });
16004
+ var runPlanSchema = reads()(
16005
+ import_zod.z.object({
16006
+ runId: import_zod.z.string(),
16007
+ status: import_zod.z.string().nullable(),
16008
+ // The counts the Run recorded, each null for a Run whose plan has none.
16009
+ summary: import_zod.z.object({
16010
+ resourceAdd: import_zod.z.number().nullable(),
16011
+ resourceChange: import_zod.z.number().nullable(),
16012
+ resourceDestroy: import_zod.z.number().nullable()
16013
+ }).nullable(),
16014
+ planHuman: artifactRefSchema.nullable()
16015
+ })
16016
+ );
15988
16017
  var runLogsEventSchema = import_zod.z.discriminatedUnion("type", [
15989
16018
  import_zod.z.object({ type: import_zod.z.literal("log"), text: import_zod.z.string() }),
15990
16019
  import_zod.z.object({ type: import_zod.z.literal("result"), status: import_zod.z.string().nullable() })
15991
16020
  ]);
15992
- var whoamiSchema = import_zod.z.object({
15993
- organization: import_zod.z.string().nullable(),
15994
- user: import_zod.z.object({ email: import_zod.z.string(), id: import_zod.z.string(), name: import_zod.z.string() })
15995
- });
16021
+ var whoamiSchema = reads()(
16022
+ import_zod.z.object({
16023
+ organization: import_zod.z.string().nullable(),
16024
+ // A machine credential's principal names no person.
16025
+ user: import_zod.z.object({ email: import_zod.z.string(), id: import_zod.z.string(), name: import_zod.z.string() }).optional()
16026
+ })
16027
+ );
15996
16028
  var orgListSchema = import_zod.z.object({
15997
16029
  items: import_zod.z.array(import_zod.z.object({ slug: import_zod.z.string(), name: import_zod.z.string(), role: import_zod.z.string() }))
15998
16030
  });
15999
- var teamListSchema = import_zod.z.object({
16000
- items: import_zod.z.array(
16001
- import_zod.z.object({
16002
- id: import_zod.z.string(),
16003
- orgId: import_zod.z.string(),
16004
- name: import_zod.z.string(),
16005
- slug: import_zod.z.string(),
16006
- description: import_zod.z.string(),
16007
- createdBy: import_zod.z.string(),
16008
- createdAt: import_zod.z.string(),
16009
- updatedAt: import_zod.z.string(),
16010
- role: import_zod.z.string(),
16011
- memberCount: import_zod.z.number()
16012
- })
16013
- ),
16014
- nextCursor: import_zod.z.string().nullable(),
16015
- hasMore: import_zod.z.boolean(),
16016
- createUrl: import_zod.z.string()
16017
- });
16031
+ var teamListSchema = reads()(
16032
+ import_zod.z.object({
16033
+ items: import_zod.z.array(
16034
+ import_zod.z.object({
16035
+ id: import_zod.z.string(),
16036
+ orgId: import_zod.z.string(),
16037
+ name: import_zod.z.string(),
16038
+ slug: import_zod.z.string(),
16039
+ description: import_zod.z.string().nullish(),
16040
+ createdBy: import_zod.z.string(),
16041
+ createdAt: import_zod.z.string(),
16042
+ updatedAt: import_zod.z.string(),
16043
+ role: import_zod.z.string().optional(),
16044
+ memberCount: import_zod.z.number().optional()
16045
+ })
16046
+ ),
16047
+ nextCursor: import_zod.z.string().nullable(),
16048
+ hasMore: import_zod.z.boolean(),
16049
+ createUrl: import_zod.z.string()
16050
+ })
16051
+ );
16018
16052
  var connectionListSchema = import_zod.z.object({
16019
16053
  items: import_zod.z.array(
16020
- import_zod.z.object({
16021
- id: import_zod.z.string(),
16022
- name: import_zod.z.string(),
16023
- provider_type: import_zod.z.string(),
16024
- status: import_zod.z.string(),
16025
- status_reason: import_zod.z.string().nullable(),
16026
- created_at: import_zod.z.string(),
16027
- updated_at: import_zod.z.string(),
16028
- metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown())
16029
- })
16054
+ reads()(
16055
+ import_zod.z.object({
16056
+ id: import_zod.z.string(),
16057
+ name: import_zod.z.string(),
16058
+ provider_type: import_zod.z.string(),
16059
+ status: import_zod.z.string(),
16060
+ status_reason: import_zod.z.string().nullable(),
16061
+ created_at: import_zod.z.string(),
16062
+ updated_at: import_zod.z.string(),
16063
+ metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown())
16064
+ })
16065
+ )
16030
16066
  ),
16031
16067
  createUrl: import_zod.z.string()
16032
16068
  });
@@ -16068,9 +16104,9 @@ var SCHEMAS = {
16068
16104
  "stack preview": stackPreviewSchema,
16069
16105
  "stack apply": runEventSchema,
16070
16106
  "stack destroy": runEventSchema,
16071
- "stack scan": stackScanSchema,
16107
+ "drift scan": driftScanSchema,
16072
16108
  "stack create": stackSchema,
16073
- "stack import": stackImportSchema,
16109
+ "module import": moduleImportSchema,
16074
16110
  "run get": runSchema,
16075
16111
  "run plan": runPlanSchema,
16076
16112
  "run cancel": runSchema,
@@ -16160,7 +16196,7 @@ function CommandArgsForm({ form }) {
16160
16196
  var REPORT_PATHS = ["module validate", "module convert", "module scan"];
16161
16197
  var FOLDS_AS = new Map([
16162
16198
  ...REPORT_PATHS.map((path) => [path, path]),
16163
- ["stack import", "module convert"]
16199
+ ["module import", "module convert"]
16164
16200
  ]);
16165
16201
  var EMPTY_REPORT_FOLD = /* @__PURE__ */ new Map();
16166
16202
  function readEntry(path, exitCode, data) {
@@ -16626,7 +16662,7 @@ function scanNotice(e) {
16626
16662
  }
16627
16663
  var scan = defineCommand({
16628
16664
  kind: "command",
16629
- path: "stack scan",
16665
+ path: "drift scan",
16630
16666
  args: (ctx) => ({ stack: ctx.stack?.id, wait: true }),
16631
16667
  invalidates: true,
16632
16668
  result: {
@@ -16679,14 +16715,14 @@ var importResult = {
16679
16715
  };
16680
16716
  var importStack = defineCommand({
16681
16717
  kind: "command",
16682
- path: "stack import",
16718
+ path: "module import",
16683
16719
  args: (ctx) => ({ stack: ctx.stack?.id }),
16684
16720
  invalidates: true,
16685
16721
  result: importResult
16686
16722
  });
16687
16723
  var importPartial = defineCommand({
16688
16724
  kind: "command",
16689
- path: "stack import",
16725
+ path: "module import",
16690
16726
  args: (ctx) => ({ stack: ctx.stack?.id, allowPartial: true }),
16691
16727
  confirm: (ctx, _args, target) => ({
16692
16728
  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.`
@@ -16839,7 +16875,7 @@ var STACK_COMMAND_ACTIONS = [
16839
16875
  label: "Import existing resources",
16840
16876
  placement: "toolbar",
16841
16877
  requiredPorts: ["commands"],
16842
- // `stack import` writes the directory it runs in, the same way
16878
+ // `module import` writes the directory it runs in, the same way
16843
16879
  // Convert does.
16844
16880
  requiredContext: ["root", "stack"],
16845
16881
  binding: importStack
@@ -17387,11 +17423,6 @@ var import_proto15 = require("@lace-cloud/proto");
17387
17423
  var import_ui19 = require("@lace-cloud/ui");
17388
17424
  var import_react37 = require("react");
17389
17425
 
17390
- // src/exhaustive.ts
17391
- function assertNever(value) {
17392
- throw new Error(`Unhandled closed-enum branch: ${JSON.stringify(value)}`);
17393
- }
17394
-
17395
17426
  // src/hooks/useDraft.ts
17396
17427
  var import_react32 = require("react");
17397
17428
 
@@ -19004,7 +19035,7 @@ function toInputMode(mode) {
19004
19035
  case "expression":
19005
19036
  return 4 /* INPUT_MODE_EXPRESSION */;
19006
19037
  default:
19007
- return assertNever(mode);
19038
+ return (0, import_ui19.assertNever)(mode);
19008
19039
  }
19009
19040
  }
19010
19041
  function literalKind(type) {
@@ -19055,7 +19086,7 @@ function sentBinding(draft, type) {
19055
19086
  case "expression":
19056
19087
  return draft.expression.trim() ? sent("expression", { expression: draft.expression }) : sent("empty");
19057
19088
  default:
19058
- return assertNever(draft.mode);
19089
+ return (0, import_ui19.assertNever)(draft.mode);
19059
19090
  }
19060
19091
  }
19061
19092
  function callActions(config, address, fields) {