@lace-cloud/canvas 0.18.0 → 0.19.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/README.md +115 -21
- package/dist/{App-LQX66JSZ.css → App-D7WF3TWZ.css} +9 -3
- package/dist/{DiagnosticsPanel-3UQFOL4T.css → DiagnosticsPanel-HB3JQYSY.css} +6 -0
- package/dist/{ModuleNode-VNODPUHI.css → ModuleNode-OJXMNOL3.css} +28 -0
- package/dist/chunk-S2FFLFOT.mjs +13747 -0
- package/dist/chunk-S2FFLFOT.mjs.map +1 -0
- package/dist/engine/index.cjs +13765 -0
- package/dist/engine/index.cjs.map +1 -0
- package/dist/engine/index.d.mts +26 -0
- package/dist/engine/index.d.ts +26 -0
- package/dist/engine/index.mjs +81 -0
- package/dist/engine/index.mjs.map +1 -0
- package/dist/index.cjs +8675 -7271
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +29 -3369
- package/dist/index.d.ts +29 -3369
- package/dist/index.mjs +1391 -13561
- package/dist/index.mjs.map +1 -1
- package/dist/mapping-BzX6r87C.d.mts +4045 -0
- package/dist/mapping-BzX6r87C.d.ts +4045 -0
- package/package.json +17 -12
- package/dist/AccountPanel-YCG6RHJI.css +0 -32
- package/dist/ChaosPanel-7JZ2KASG.css +0 -18
- package/dist/PreviewPanel-FHSY6FS6.css +0 -18
- package/dist/RegistryPanel-DLIMDBWW.css +0 -33
- package/dist/RunPanel-DHBR5SCC.css +0 -11
- package/dist/StackPicker-ZJQELYQ6.css +0 -10
|
@@ -0,0 +1,4045 @@
|
|
|
1
|
+
import { Diagnostic as Diagnostic$1, CanvasArrangement, CanvasView, EngineMethod, EngineStreamMethod, BridgeMethod, MessageBridge } from '@lace-cloud/proto';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
4
|
+
|
|
5
|
+
declare const COMMANDS: {
|
|
6
|
+
readonly "chaos get": {
|
|
7
|
+
readonly path: "chaos get";
|
|
8
|
+
readonly positionals: readonly [{
|
|
9
|
+
readonly name: "run";
|
|
10
|
+
readonly kind: "required";
|
|
11
|
+
}];
|
|
12
|
+
readonly flags: {
|
|
13
|
+
readonly org: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
};
|
|
16
|
+
readonly output: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly values: readonly ["table", "json"];
|
|
19
|
+
};
|
|
20
|
+
readonly team: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
readonly hidden: false;
|
|
25
|
+
readonly yes: false;
|
|
26
|
+
};
|
|
27
|
+
readonly "chaos list": {
|
|
28
|
+
readonly path: "chaos list";
|
|
29
|
+
readonly positionals: readonly [];
|
|
30
|
+
readonly flags: {
|
|
31
|
+
readonly org: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
};
|
|
34
|
+
readonly output: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
readonly values: readonly ["table", "json"];
|
|
37
|
+
};
|
|
38
|
+
readonly stack: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly required: true;
|
|
41
|
+
};
|
|
42
|
+
readonly team: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
readonly hidden: false;
|
|
47
|
+
readonly yes: false;
|
|
48
|
+
};
|
|
49
|
+
readonly "chaos run": {
|
|
50
|
+
readonly path: "chaos run";
|
|
51
|
+
readonly positionals: readonly [];
|
|
52
|
+
readonly flags: {
|
|
53
|
+
readonly chaosBinding: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
readonly required: true;
|
|
56
|
+
};
|
|
57
|
+
readonly org: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
};
|
|
60
|
+
readonly output: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly values: readonly ["table", "json"];
|
|
63
|
+
};
|
|
64
|
+
readonly stack: {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly required: true;
|
|
67
|
+
};
|
|
68
|
+
readonly team: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
readonly hidden: false;
|
|
73
|
+
readonly yes: false;
|
|
74
|
+
};
|
|
75
|
+
readonly "connection get": {
|
|
76
|
+
readonly path: "connection get";
|
|
77
|
+
readonly positionals: readonly [{
|
|
78
|
+
readonly name: "connection";
|
|
79
|
+
readonly kind: "required";
|
|
80
|
+
}];
|
|
81
|
+
readonly flags: {
|
|
82
|
+
readonly org: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
};
|
|
85
|
+
readonly output: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly values: readonly ["table", "json"];
|
|
88
|
+
};
|
|
89
|
+
readonly team: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly hidden: false;
|
|
94
|
+
readonly yes: false;
|
|
95
|
+
};
|
|
96
|
+
readonly "connection list": {
|
|
97
|
+
readonly path: "connection list";
|
|
98
|
+
readonly positionals: readonly [];
|
|
99
|
+
readonly flags: {
|
|
100
|
+
readonly org: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
};
|
|
103
|
+
readonly output: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly values: readonly ["table", "json"];
|
|
106
|
+
};
|
|
107
|
+
readonly provider: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
};
|
|
110
|
+
readonly team: {
|
|
111
|
+
readonly type: "string";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
readonly hidden: false;
|
|
115
|
+
readonly yes: false;
|
|
116
|
+
};
|
|
117
|
+
readonly "hooks install": {
|
|
118
|
+
readonly path: "hooks install";
|
|
119
|
+
readonly positionals: readonly [];
|
|
120
|
+
readonly flags: {
|
|
121
|
+
readonly force: {
|
|
122
|
+
readonly type: "bool";
|
|
123
|
+
};
|
|
124
|
+
readonly path: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly hidden: false;
|
|
129
|
+
readonly yes: false;
|
|
130
|
+
};
|
|
131
|
+
readonly "hooks uninstall": {
|
|
132
|
+
readonly path: "hooks uninstall";
|
|
133
|
+
readonly positionals: readonly [];
|
|
134
|
+
readonly flags: {
|
|
135
|
+
readonly path: {
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly hidden: false;
|
|
140
|
+
readonly yes: false;
|
|
141
|
+
};
|
|
142
|
+
readonly license: {
|
|
143
|
+
readonly path: "license";
|
|
144
|
+
readonly positionals: readonly [];
|
|
145
|
+
readonly flags: {
|
|
146
|
+
readonly thirdParty: {
|
|
147
|
+
readonly type: "bool";
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly hidden: false;
|
|
151
|
+
readonly yes: false;
|
|
152
|
+
};
|
|
153
|
+
readonly login: {
|
|
154
|
+
readonly path: "login";
|
|
155
|
+
readonly positionals: readonly [];
|
|
156
|
+
readonly flags: {
|
|
157
|
+
readonly email: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
};
|
|
160
|
+
readonly org: {
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
};
|
|
163
|
+
readonly output: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly values: readonly ["table", "json"];
|
|
166
|
+
};
|
|
167
|
+
readonly provider: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
};
|
|
170
|
+
readonly token: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly hidden: false;
|
|
175
|
+
readonly yes: false;
|
|
176
|
+
};
|
|
177
|
+
readonly logout: {
|
|
178
|
+
readonly path: "logout";
|
|
179
|
+
readonly positionals: readonly [];
|
|
180
|
+
readonly flags: {
|
|
181
|
+
readonly output: {
|
|
182
|
+
readonly type: "string";
|
|
183
|
+
readonly values: readonly ["table", "json"];
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly hidden: false;
|
|
187
|
+
readonly yes: false;
|
|
188
|
+
};
|
|
189
|
+
readonly "module convert": {
|
|
190
|
+
readonly path: "module convert";
|
|
191
|
+
readonly positionals: readonly [];
|
|
192
|
+
readonly flags: {
|
|
193
|
+
readonly output: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
readonly values: readonly ["table", "json"];
|
|
196
|
+
};
|
|
197
|
+
readonly path: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly hidden: false;
|
|
202
|
+
readonly yes: false;
|
|
203
|
+
};
|
|
204
|
+
readonly "module docs": {
|
|
205
|
+
readonly path: "module docs";
|
|
206
|
+
readonly positionals: readonly [];
|
|
207
|
+
readonly flags: {
|
|
208
|
+
readonly file: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
};
|
|
211
|
+
readonly output: {
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
readonly values: readonly ["markdown", "json", "terraform-docs-json", "terraform-docs-yaml"];
|
|
214
|
+
};
|
|
215
|
+
readonly path: {
|
|
216
|
+
readonly type: "string";
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
readonly hidden: false;
|
|
220
|
+
readonly yes: false;
|
|
221
|
+
};
|
|
222
|
+
readonly "module fmt": {
|
|
223
|
+
readonly path: "module fmt";
|
|
224
|
+
readonly positionals: readonly [];
|
|
225
|
+
readonly flags: {
|
|
226
|
+
readonly check: {
|
|
227
|
+
readonly type: "bool";
|
|
228
|
+
};
|
|
229
|
+
readonly diff: {
|
|
230
|
+
readonly type: "bool";
|
|
231
|
+
};
|
|
232
|
+
readonly output: {
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
readonly values: readonly ["table", "json"];
|
|
235
|
+
};
|
|
236
|
+
readonly path: {
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
};
|
|
239
|
+
readonly recursive: {
|
|
240
|
+
readonly type: "bool";
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly hidden: false;
|
|
244
|
+
readonly yes: false;
|
|
245
|
+
};
|
|
246
|
+
readonly "module scan": {
|
|
247
|
+
readonly path: "module scan";
|
|
248
|
+
readonly positionals: readonly [];
|
|
249
|
+
readonly flags: {
|
|
250
|
+
readonly output: {
|
|
251
|
+
readonly type: "string";
|
|
252
|
+
readonly values: readonly ["table", "json", "tfsec-json", "sarif", "junit", "checkstyle"];
|
|
253
|
+
};
|
|
254
|
+
readonly path: {
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
};
|
|
257
|
+
readonly severity: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly values: readonly ["LOW", "MEDIUM", "HIGH", "CRITICAL"];
|
|
260
|
+
};
|
|
261
|
+
readonly softFail: {
|
|
262
|
+
readonly type: "bool";
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
readonly hidden: false;
|
|
266
|
+
readonly yes: false;
|
|
267
|
+
};
|
|
268
|
+
readonly "module validate": {
|
|
269
|
+
readonly path: "module validate";
|
|
270
|
+
readonly positionals: readonly [];
|
|
271
|
+
readonly flags: {
|
|
272
|
+
readonly org: {
|
|
273
|
+
readonly type: "string";
|
|
274
|
+
};
|
|
275
|
+
readonly output: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly values: readonly ["table", "json"];
|
|
278
|
+
};
|
|
279
|
+
readonly path: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
};
|
|
282
|
+
readonly view: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
readonly values: readonly ["public", "publication"];
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly hidden: false;
|
|
288
|
+
readonly yes: false;
|
|
289
|
+
};
|
|
290
|
+
readonly "org current": {
|
|
291
|
+
readonly path: "org current";
|
|
292
|
+
readonly positionals: readonly [];
|
|
293
|
+
readonly flags: {
|
|
294
|
+
readonly output: {
|
|
295
|
+
readonly type: "string";
|
|
296
|
+
readonly values: readonly ["table", "json"];
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly hidden: false;
|
|
300
|
+
readonly yes: false;
|
|
301
|
+
};
|
|
302
|
+
readonly "org list": {
|
|
303
|
+
readonly path: "org list";
|
|
304
|
+
readonly positionals: readonly [];
|
|
305
|
+
readonly flags: {
|
|
306
|
+
readonly output: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly values: readonly ["table", "json"];
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly hidden: false;
|
|
312
|
+
readonly yes: false;
|
|
313
|
+
};
|
|
314
|
+
readonly "org use": {
|
|
315
|
+
readonly path: "org use";
|
|
316
|
+
readonly positionals: readonly [{
|
|
317
|
+
readonly name: "org";
|
|
318
|
+
readonly kind: "required";
|
|
319
|
+
}];
|
|
320
|
+
readonly flags: {
|
|
321
|
+
readonly output: {
|
|
322
|
+
readonly type: "string";
|
|
323
|
+
readonly values: readonly ["table", "json"];
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly hidden: false;
|
|
327
|
+
readonly yes: false;
|
|
328
|
+
};
|
|
329
|
+
readonly "policy get": {
|
|
330
|
+
readonly path: "policy get";
|
|
331
|
+
readonly positionals: readonly [{
|
|
332
|
+
readonly name: "policy";
|
|
333
|
+
readonly kind: "required";
|
|
334
|
+
}];
|
|
335
|
+
readonly flags: {
|
|
336
|
+
readonly org: {
|
|
337
|
+
readonly type: "string";
|
|
338
|
+
};
|
|
339
|
+
readonly output: {
|
|
340
|
+
readonly type: "string";
|
|
341
|
+
readonly values: readonly ["table", "json"];
|
|
342
|
+
};
|
|
343
|
+
readonly team: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
readonly hidden: false;
|
|
348
|
+
readonly yes: false;
|
|
349
|
+
};
|
|
350
|
+
readonly "policy list": {
|
|
351
|
+
readonly path: "policy list";
|
|
352
|
+
readonly positionals: readonly [];
|
|
353
|
+
readonly flags: {
|
|
354
|
+
readonly org: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
};
|
|
357
|
+
readonly output: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
readonly values: readonly ["table", "json"];
|
|
360
|
+
};
|
|
361
|
+
readonly stack: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
};
|
|
364
|
+
readonly team: {
|
|
365
|
+
readonly type: "string";
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
readonly hidden: false;
|
|
369
|
+
readonly yes: false;
|
|
370
|
+
};
|
|
371
|
+
readonly "registry describe": {
|
|
372
|
+
readonly path: "registry describe";
|
|
373
|
+
readonly positionals: readonly [{
|
|
374
|
+
readonly name: "artifact";
|
|
375
|
+
readonly kind: "required";
|
|
376
|
+
}];
|
|
377
|
+
readonly flags: {
|
|
378
|
+
readonly org: {
|
|
379
|
+
readonly type: "string";
|
|
380
|
+
};
|
|
381
|
+
readonly output: {
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
readonly values: readonly ["table", "json"];
|
|
384
|
+
};
|
|
385
|
+
readonly version: {
|
|
386
|
+
readonly type: "string";
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
readonly hidden: false;
|
|
390
|
+
readonly yes: false;
|
|
391
|
+
};
|
|
392
|
+
readonly "registry get": {
|
|
393
|
+
readonly path: "registry get";
|
|
394
|
+
readonly positionals: readonly [{
|
|
395
|
+
readonly name: "artifact";
|
|
396
|
+
readonly kind: "required";
|
|
397
|
+
}];
|
|
398
|
+
readonly flags: {
|
|
399
|
+
readonly org: {
|
|
400
|
+
readonly type: "string";
|
|
401
|
+
};
|
|
402
|
+
readonly output: {
|
|
403
|
+
readonly type: "string";
|
|
404
|
+
readonly values: readonly ["table", "json"];
|
|
405
|
+
};
|
|
406
|
+
readonly view: {
|
|
407
|
+
readonly type: "string";
|
|
408
|
+
readonly values: readonly ["public"];
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
readonly hidden: false;
|
|
412
|
+
readonly yes: false;
|
|
413
|
+
};
|
|
414
|
+
readonly "registry list": {
|
|
415
|
+
readonly path: "registry list";
|
|
416
|
+
readonly positionals: readonly [];
|
|
417
|
+
readonly flags: {
|
|
418
|
+
readonly author: {
|
|
419
|
+
readonly type: "string";
|
|
420
|
+
};
|
|
421
|
+
readonly axis: {
|
|
422
|
+
readonly type: "string";
|
|
423
|
+
readonly values: readonly ["module", "scanner", "handler", "agent"];
|
|
424
|
+
};
|
|
425
|
+
readonly category: {
|
|
426
|
+
readonly type: "string";
|
|
427
|
+
};
|
|
428
|
+
readonly limit: {
|
|
429
|
+
readonly type: "int";
|
|
430
|
+
};
|
|
431
|
+
readonly org: {
|
|
432
|
+
readonly type: "string";
|
|
433
|
+
};
|
|
434
|
+
readonly output: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly values: readonly ["table", "json"];
|
|
437
|
+
};
|
|
438
|
+
readonly query: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
};
|
|
441
|
+
readonly system: {
|
|
442
|
+
readonly type: "string";
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
readonly hidden: false;
|
|
446
|
+
readonly yes: false;
|
|
447
|
+
};
|
|
448
|
+
readonly "registry validate": {
|
|
449
|
+
readonly path: "registry validate";
|
|
450
|
+
readonly positionals: readonly [];
|
|
451
|
+
readonly flags: {
|
|
452
|
+
readonly axis: {
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
readonly values: readonly ["module", "scanner", "handler", "agent"];
|
|
455
|
+
readonly required: true;
|
|
456
|
+
};
|
|
457
|
+
readonly manifest: {
|
|
458
|
+
readonly type: "string";
|
|
459
|
+
readonly required: true;
|
|
460
|
+
};
|
|
461
|
+
readonly output: {
|
|
462
|
+
readonly type: "string";
|
|
463
|
+
readonly values: readonly ["table", "json"];
|
|
464
|
+
};
|
|
465
|
+
readonly readme: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
readonly hidden: false;
|
|
470
|
+
readonly yes: false;
|
|
471
|
+
};
|
|
472
|
+
readonly "run bundle": {
|
|
473
|
+
readonly path: "run bundle";
|
|
474
|
+
readonly positionals: readonly [{
|
|
475
|
+
readonly name: "run";
|
|
476
|
+
readonly kind: "required";
|
|
477
|
+
}];
|
|
478
|
+
readonly flags: {
|
|
479
|
+
readonly org: {
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
};
|
|
482
|
+
readonly output: {
|
|
483
|
+
readonly type: "string";
|
|
484
|
+
readonly values: readonly ["json"];
|
|
485
|
+
};
|
|
486
|
+
readonly team: {
|
|
487
|
+
readonly type: "string";
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
readonly hidden: false;
|
|
491
|
+
readonly yes: false;
|
|
492
|
+
};
|
|
493
|
+
readonly "run cancel": {
|
|
494
|
+
readonly path: "run cancel";
|
|
495
|
+
readonly positionals: readonly [{
|
|
496
|
+
readonly name: "run";
|
|
497
|
+
readonly kind: "required";
|
|
498
|
+
}];
|
|
499
|
+
readonly flags: {
|
|
500
|
+
readonly org: {
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
};
|
|
503
|
+
readonly output: {
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
readonly values: readonly ["table", "json"];
|
|
506
|
+
};
|
|
507
|
+
readonly reason: {
|
|
508
|
+
readonly type: "string";
|
|
509
|
+
};
|
|
510
|
+
readonly team: {
|
|
511
|
+
readonly type: "string";
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
readonly hidden: false;
|
|
515
|
+
readonly yes: false;
|
|
516
|
+
};
|
|
517
|
+
readonly "run get": {
|
|
518
|
+
readonly path: "run get";
|
|
519
|
+
readonly positionals: readonly [{
|
|
520
|
+
readonly name: "run";
|
|
521
|
+
readonly kind: "optional";
|
|
522
|
+
}];
|
|
523
|
+
readonly flags: {
|
|
524
|
+
readonly change: {
|
|
525
|
+
readonly type: "string";
|
|
526
|
+
};
|
|
527
|
+
readonly org: {
|
|
528
|
+
readonly type: "string";
|
|
529
|
+
};
|
|
530
|
+
readonly output: {
|
|
531
|
+
readonly type: "string";
|
|
532
|
+
readonly values: readonly ["table", "json"];
|
|
533
|
+
};
|
|
534
|
+
readonly team: {
|
|
535
|
+
readonly type: "string";
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
readonly hidden: false;
|
|
539
|
+
readonly yes: false;
|
|
540
|
+
};
|
|
541
|
+
readonly "run list": {
|
|
542
|
+
readonly path: "run list";
|
|
543
|
+
readonly positionals: readonly [];
|
|
544
|
+
readonly flags: {
|
|
545
|
+
readonly change: {
|
|
546
|
+
readonly type: "string";
|
|
547
|
+
};
|
|
548
|
+
readonly cursor: {
|
|
549
|
+
readonly type: "string";
|
|
550
|
+
};
|
|
551
|
+
readonly kind: {
|
|
552
|
+
readonly type: "string";
|
|
553
|
+
};
|
|
554
|
+
readonly limit: {
|
|
555
|
+
readonly type: "int";
|
|
556
|
+
};
|
|
557
|
+
readonly org: {
|
|
558
|
+
readonly type: "string";
|
|
559
|
+
};
|
|
560
|
+
readonly output: {
|
|
561
|
+
readonly type: "string";
|
|
562
|
+
readonly values: readonly ["table", "json"];
|
|
563
|
+
};
|
|
564
|
+
readonly stack: {
|
|
565
|
+
readonly type: "string";
|
|
566
|
+
};
|
|
567
|
+
readonly startedAfter: {
|
|
568
|
+
readonly type: "string";
|
|
569
|
+
};
|
|
570
|
+
readonly status: {
|
|
571
|
+
readonly type: "string";
|
|
572
|
+
};
|
|
573
|
+
readonly team: {
|
|
574
|
+
readonly type: "string";
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
readonly hidden: false;
|
|
578
|
+
readonly yes: false;
|
|
579
|
+
};
|
|
580
|
+
readonly "run logs": {
|
|
581
|
+
readonly path: "run logs";
|
|
582
|
+
readonly positionals: readonly [{
|
|
583
|
+
readonly name: "run";
|
|
584
|
+
readonly kind: "required";
|
|
585
|
+
}];
|
|
586
|
+
readonly flags: {
|
|
587
|
+
readonly follow: {
|
|
588
|
+
readonly type: "bool";
|
|
589
|
+
};
|
|
590
|
+
readonly org: {
|
|
591
|
+
readonly type: "string";
|
|
592
|
+
};
|
|
593
|
+
readonly output: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
readonly values: readonly ["table", "json"];
|
|
596
|
+
};
|
|
597
|
+
readonly team: {
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
readonly hidden: false;
|
|
602
|
+
readonly yes: false;
|
|
603
|
+
};
|
|
604
|
+
readonly "run plan": {
|
|
605
|
+
readonly path: "run plan";
|
|
606
|
+
readonly positionals: readonly [{
|
|
607
|
+
readonly name: "run";
|
|
608
|
+
readonly kind: "required";
|
|
609
|
+
}];
|
|
610
|
+
readonly flags: {
|
|
611
|
+
readonly org: {
|
|
612
|
+
readonly type: "string";
|
|
613
|
+
};
|
|
614
|
+
readonly output: {
|
|
615
|
+
readonly type: "string";
|
|
616
|
+
readonly values: readonly ["table", "json"];
|
|
617
|
+
};
|
|
618
|
+
readonly team: {
|
|
619
|
+
readonly type: "string";
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
readonly hidden: false;
|
|
623
|
+
readonly yes: false;
|
|
624
|
+
};
|
|
625
|
+
readonly "stack apply": {
|
|
626
|
+
readonly path: "stack apply";
|
|
627
|
+
readonly positionals: readonly [{
|
|
628
|
+
readonly name: "stack";
|
|
629
|
+
readonly kind: "required";
|
|
630
|
+
}];
|
|
631
|
+
readonly flags: {
|
|
632
|
+
readonly allowSourceMismatch: {
|
|
633
|
+
readonly type: "bool";
|
|
634
|
+
};
|
|
635
|
+
readonly commit: {
|
|
636
|
+
readonly type: "string";
|
|
637
|
+
};
|
|
638
|
+
readonly org: {
|
|
639
|
+
readonly type: "string";
|
|
640
|
+
};
|
|
641
|
+
readonly output: {
|
|
642
|
+
readonly type: "string";
|
|
643
|
+
readonly values: readonly ["table", "json"];
|
|
644
|
+
};
|
|
645
|
+
readonly prUrl: {
|
|
646
|
+
readonly type: "string";
|
|
647
|
+
};
|
|
648
|
+
readonly ref: {
|
|
649
|
+
readonly type: "string";
|
|
650
|
+
};
|
|
651
|
+
readonly team: {
|
|
652
|
+
readonly type: "string";
|
|
653
|
+
};
|
|
654
|
+
readonly var: {
|
|
655
|
+
readonly type: "stringArray";
|
|
656
|
+
readonly repeated: true;
|
|
657
|
+
};
|
|
658
|
+
readonly varFile: {
|
|
659
|
+
readonly type: "stringArray";
|
|
660
|
+
readonly repeated: true;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
readonly hidden: false;
|
|
664
|
+
readonly yes: false;
|
|
665
|
+
};
|
|
666
|
+
readonly "stack create": {
|
|
667
|
+
readonly path: "stack create";
|
|
668
|
+
readonly positionals: readonly [{
|
|
669
|
+
readonly name: "slug";
|
|
670
|
+
readonly kind: "required";
|
|
671
|
+
}];
|
|
672
|
+
readonly flags: {
|
|
673
|
+
readonly connection: {
|
|
674
|
+
readonly type: "string";
|
|
675
|
+
readonly required: true;
|
|
676
|
+
};
|
|
677
|
+
readonly description: {
|
|
678
|
+
readonly type: "string";
|
|
679
|
+
};
|
|
680
|
+
readonly name: {
|
|
681
|
+
readonly type: "string";
|
|
682
|
+
};
|
|
683
|
+
readonly org: {
|
|
684
|
+
readonly type: "string";
|
|
685
|
+
};
|
|
686
|
+
readonly output: {
|
|
687
|
+
readonly type: "string";
|
|
688
|
+
readonly values: readonly ["table", "json"];
|
|
689
|
+
};
|
|
690
|
+
readonly source: {
|
|
691
|
+
readonly type: "string";
|
|
692
|
+
};
|
|
693
|
+
readonly sourcePath: {
|
|
694
|
+
readonly type: "string";
|
|
695
|
+
};
|
|
696
|
+
readonly sourceRef: {
|
|
697
|
+
readonly type: "string";
|
|
698
|
+
};
|
|
699
|
+
readonly sourceRepo: {
|
|
700
|
+
readonly type: "string";
|
|
701
|
+
};
|
|
702
|
+
readonly team: {
|
|
703
|
+
readonly type: "string";
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
readonly hidden: false;
|
|
707
|
+
readonly yes: false;
|
|
708
|
+
};
|
|
709
|
+
readonly "stack delete": {
|
|
710
|
+
readonly path: "stack delete";
|
|
711
|
+
readonly positionals: readonly [{
|
|
712
|
+
readonly name: "stack";
|
|
713
|
+
readonly kind: "required";
|
|
714
|
+
}];
|
|
715
|
+
readonly flags: {
|
|
716
|
+
readonly org: {
|
|
717
|
+
readonly type: "string";
|
|
718
|
+
};
|
|
719
|
+
readonly output: {
|
|
720
|
+
readonly type: "string";
|
|
721
|
+
readonly values: readonly ["table", "json"];
|
|
722
|
+
};
|
|
723
|
+
readonly team: {
|
|
724
|
+
readonly type: "string";
|
|
725
|
+
};
|
|
726
|
+
readonly yes: {
|
|
727
|
+
readonly type: "bool";
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
readonly hidden: false;
|
|
731
|
+
readonly yes: true;
|
|
732
|
+
};
|
|
733
|
+
readonly "stack describe": {
|
|
734
|
+
readonly path: "stack describe";
|
|
735
|
+
readonly positionals: readonly [{
|
|
736
|
+
readonly name: "stack";
|
|
737
|
+
readonly kind: "required";
|
|
738
|
+
}];
|
|
739
|
+
readonly flags: {
|
|
740
|
+
readonly full: {
|
|
741
|
+
readonly type: "bool";
|
|
742
|
+
};
|
|
743
|
+
readonly includeArchived: {
|
|
744
|
+
readonly type: "bool";
|
|
745
|
+
};
|
|
746
|
+
readonly org: {
|
|
747
|
+
readonly type: "string";
|
|
748
|
+
};
|
|
749
|
+
readonly output: {
|
|
750
|
+
readonly type: "string";
|
|
751
|
+
readonly values: readonly ["table", "json"];
|
|
752
|
+
};
|
|
753
|
+
readonly team: {
|
|
754
|
+
readonly type: "string";
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
readonly hidden: false;
|
|
758
|
+
readonly yes: false;
|
|
759
|
+
};
|
|
760
|
+
readonly "stack destroy": {
|
|
761
|
+
readonly path: "stack destroy";
|
|
762
|
+
readonly positionals: readonly [{
|
|
763
|
+
readonly name: "stack";
|
|
764
|
+
readonly kind: "required";
|
|
765
|
+
}];
|
|
766
|
+
readonly flags: {
|
|
767
|
+
readonly allowSourceMismatch: {
|
|
768
|
+
readonly type: "bool";
|
|
769
|
+
};
|
|
770
|
+
readonly archive: {
|
|
771
|
+
readonly type: "bool";
|
|
772
|
+
};
|
|
773
|
+
readonly commit: {
|
|
774
|
+
readonly type: "string";
|
|
775
|
+
};
|
|
776
|
+
readonly org: {
|
|
777
|
+
readonly type: "string";
|
|
778
|
+
};
|
|
779
|
+
readonly output: {
|
|
780
|
+
readonly type: "string";
|
|
781
|
+
readonly values: readonly ["table", "json"];
|
|
782
|
+
};
|
|
783
|
+
readonly prUrl: {
|
|
784
|
+
readonly type: "string";
|
|
785
|
+
};
|
|
786
|
+
readonly ref: {
|
|
787
|
+
readonly type: "string";
|
|
788
|
+
};
|
|
789
|
+
readonly team: {
|
|
790
|
+
readonly type: "string";
|
|
791
|
+
};
|
|
792
|
+
readonly var: {
|
|
793
|
+
readonly type: "stringArray";
|
|
794
|
+
readonly repeated: true;
|
|
795
|
+
};
|
|
796
|
+
readonly varFile: {
|
|
797
|
+
readonly type: "stringArray";
|
|
798
|
+
readonly repeated: true;
|
|
799
|
+
};
|
|
800
|
+
readonly yes: {
|
|
801
|
+
readonly type: "bool";
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
readonly hidden: false;
|
|
805
|
+
readonly yes: true;
|
|
806
|
+
};
|
|
807
|
+
readonly "stack get": {
|
|
808
|
+
readonly path: "stack get";
|
|
809
|
+
readonly positionals: readonly [{
|
|
810
|
+
readonly name: "stack";
|
|
811
|
+
readonly kind: "required";
|
|
812
|
+
}];
|
|
813
|
+
readonly flags: {
|
|
814
|
+
readonly includeArchived: {
|
|
815
|
+
readonly type: "bool";
|
|
816
|
+
};
|
|
817
|
+
readonly org: {
|
|
818
|
+
readonly type: "string";
|
|
819
|
+
};
|
|
820
|
+
readonly output: {
|
|
821
|
+
readonly type: "string";
|
|
822
|
+
readonly values: readonly ["table", "json"];
|
|
823
|
+
};
|
|
824
|
+
readonly team: {
|
|
825
|
+
readonly type: "string";
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
readonly hidden: false;
|
|
829
|
+
readonly yes: false;
|
|
830
|
+
};
|
|
831
|
+
readonly "stack import": {
|
|
832
|
+
readonly path: "stack import";
|
|
833
|
+
readonly positionals: readonly [{
|
|
834
|
+
readonly name: "stack";
|
|
835
|
+
readonly kind: "required";
|
|
836
|
+
}];
|
|
837
|
+
readonly flags: {
|
|
838
|
+
readonly allowPartial: {
|
|
839
|
+
readonly type: "bool";
|
|
840
|
+
};
|
|
841
|
+
readonly org: {
|
|
842
|
+
readonly type: "string";
|
|
843
|
+
};
|
|
844
|
+
readonly output: {
|
|
845
|
+
readonly type: "string";
|
|
846
|
+
readonly values: readonly ["table", "json"];
|
|
847
|
+
};
|
|
848
|
+
readonly path: {
|
|
849
|
+
readonly type: "string";
|
|
850
|
+
};
|
|
851
|
+
readonly state: {
|
|
852
|
+
readonly type: "string";
|
|
853
|
+
readonly required: true;
|
|
854
|
+
};
|
|
855
|
+
readonly team: {
|
|
856
|
+
readonly type: "string";
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
readonly hidden: false;
|
|
860
|
+
readonly yes: false;
|
|
861
|
+
};
|
|
862
|
+
readonly "stack list": {
|
|
863
|
+
readonly path: "stack list";
|
|
864
|
+
readonly positionals: readonly [];
|
|
865
|
+
readonly flags: {
|
|
866
|
+
readonly cursor: {
|
|
867
|
+
readonly type: "string";
|
|
868
|
+
};
|
|
869
|
+
readonly includeArchived: {
|
|
870
|
+
readonly type: "bool";
|
|
871
|
+
};
|
|
872
|
+
readonly limit: {
|
|
873
|
+
readonly type: "int";
|
|
874
|
+
};
|
|
875
|
+
readonly org: {
|
|
876
|
+
readonly type: "string";
|
|
877
|
+
};
|
|
878
|
+
readonly output: {
|
|
879
|
+
readonly type: "string";
|
|
880
|
+
readonly values: readonly ["table", "json"];
|
|
881
|
+
};
|
|
882
|
+
readonly source: {
|
|
883
|
+
readonly type: "string";
|
|
884
|
+
};
|
|
885
|
+
readonly team: {
|
|
886
|
+
readonly type: "string";
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
readonly hidden: false;
|
|
890
|
+
readonly yes: false;
|
|
891
|
+
};
|
|
892
|
+
readonly "stack preview": {
|
|
893
|
+
readonly path: "stack preview";
|
|
894
|
+
readonly positionals: readonly [{
|
|
895
|
+
readonly name: "stack";
|
|
896
|
+
readonly kind: "required";
|
|
897
|
+
}];
|
|
898
|
+
readonly flags: {
|
|
899
|
+
readonly org: {
|
|
900
|
+
readonly type: "string";
|
|
901
|
+
};
|
|
902
|
+
readonly output: {
|
|
903
|
+
readonly type: "string";
|
|
904
|
+
readonly values: readonly ["table", "json"];
|
|
905
|
+
};
|
|
906
|
+
readonly team: {
|
|
907
|
+
readonly type: "string";
|
|
908
|
+
};
|
|
909
|
+
readonly var: {
|
|
910
|
+
readonly type: "stringArray";
|
|
911
|
+
readonly repeated: true;
|
|
912
|
+
};
|
|
913
|
+
readonly varFile: {
|
|
914
|
+
readonly type: "stringArray";
|
|
915
|
+
readonly repeated: true;
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
readonly hidden: false;
|
|
919
|
+
readonly yes: false;
|
|
920
|
+
};
|
|
921
|
+
readonly "stack scan": {
|
|
922
|
+
readonly path: "stack scan";
|
|
923
|
+
readonly positionals: readonly [{
|
|
924
|
+
readonly name: "stack";
|
|
925
|
+
readonly kind: "required";
|
|
926
|
+
}];
|
|
927
|
+
readonly flags: {
|
|
928
|
+
readonly full: {
|
|
929
|
+
readonly type: "bool";
|
|
930
|
+
};
|
|
931
|
+
readonly org: {
|
|
932
|
+
readonly type: "string";
|
|
933
|
+
};
|
|
934
|
+
readonly output: {
|
|
935
|
+
readonly type: "string";
|
|
936
|
+
readonly values: readonly ["table", "json"];
|
|
937
|
+
};
|
|
938
|
+
readonly team: {
|
|
939
|
+
readonly type: "string";
|
|
940
|
+
};
|
|
941
|
+
readonly wait: {
|
|
942
|
+
readonly type: "bool";
|
|
943
|
+
};
|
|
944
|
+
readonly waitTimeout: {
|
|
945
|
+
readonly type: "duration";
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
readonly hidden: false;
|
|
949
|
+
readonly yes: false;
|
|
950
|
+
};
|
|
951
|
+
readonly "stack update": {
|
|
952
|
+
readonly path: "stack update";
|
|
953
|
+
readonly positionals: readonly [{
|
|
954
|
+
readonly name: "stack";
|
|
955
|
+
readonly kind: "required";
|
|
956
|
+
}];
|
|
957
|
+
readonly flags: {
|
|
958
|
+
readonly description: {
|
|
959
|
+
readonly type: "string";
|
|
960
|
+
};
|
|
961
|
+
readonly name: {
|
|
962
|
+
readonly type: "string";
|
|
963
|
+
};
|
|
964
|
+
readonly org: {
|
|
965
|
+
readonly type: "string";
|
|
966
|
+
};
|
|
967
|
+
readonly output: {
|
|
968
|
+
readonly type: "string";
|
|
969
|
+
readonly values: readonly ["table", "json"];
|
|
970
|
+
};
|
|
971
|
+
readonly sourcePath: {
|
|
972
|
+
readonly type: "string";
|
|
973
|
+
};
|
|
974
|
+
readonly sourceRef: {
|
|
975
|
+
readonly type: "string";
|
|
976
|
+
};
|
|
977
|
+
readonly sourceRepo: {
|
|
978
|
+
readonly type: "string";
|
|
979
|
+
};
|
|
980
|
+
readonly team: {
|
|
981
|
+
readonly type: "string";
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
readonly hidden: false;
|
|
985
|
+
readonly yes: false;
|
|
986
|
+
};
|
|
987
|
+
readonly "team current": {
|
|
988
|
+
readonly path: "team current";
|
|
989
|
+
readonly positionals: readonly [];
|
|
990
|
+
readonly flags: {
|
|
991
|
+
readonly org: {
|
|
992
|
+
readonly type: "string";
|
|
993
|
+
};
|
|
994
|
+
readonly output: {
|
|
995
|
+
readonly type: "string";
|
|
996
|
+
readonly values: readonly ["table", "json"];
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
readonly hidden: false;
|
|
1000
|
+
readonly yes: false;
|
|
1001
|
+
};
|
|
1002
|
+
readonly "team list": {
|
|
1003
|
+
readonly path: "team list";
|
|
1004
|
+
readonly positionals: readonly [];
|
|
1005
|
+
readonly flags: {
|
|
1006
|
+
readonly cursor: {
|
|
1007
|
+
readonly type: "string";
|
|
1008
|
+
};
|
|
1009
|
+
readonly limit: {
|
|
1010
|
+
readonly type: "int";
|
|
1011
|
+
};
|
|
1012
|
+
readonly org: {
|
|
1013
|
+
readonly type: "string";
|
|
1014
|
+
};
|
|
1015
|
+
readonly output: {
|
|
1016
|
+
readonly type: "string";
|
|
1017
|
+
readonly values: readonly ["table", "json"];
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
readonly hidden: false;
|
|
1021
|
+
readonly yes: false;
|
|
1022
|
+
};
|
|
1023
|
+
readonly "team use": {
|
|
1024
|
+
readonly path: "team use";
|
|
1025
|
+
readonly positionals: readonly [{
|
|
1026
|
+
readonly name: "team";
|
|
1027
|
+
readonly kind: "required";
|
|
1028
|
+
}];
|
|
1029
|
+
readonly flags: {
|
|
1030
|
+
readonly org: {
|
|
1031
|
+
readonly type: "string";
|
|
1032
|
+
};
|
|
1033
|
+
readonly output: {
|
|
1034
|
+
readonly type: "string";
|
|
1035
|
+
readonly values: readonly ["table", "json"];
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1038
|
+
readonly hidden: false;
|
|
1039
|
+
readonly yes: false;
|
|
1040
|
+
};
|
|
1041
|
+
readonly version: {
|
|
1042
|
+
readonly path: "version";
|
|
1043
|
+
readonly positionals: readonly [];
|
|
1044
|
+
readonly flags: {
|
|
1045
|
+
readonly output: {
|
|
1046
|
+
readonly type: "string";
|
|
1047
|
+
readonly values: readonly ["table", "json"];
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
readonly hidden: false;
|
|
1051
|
+
readonly yes: false;
|
|
1052
|
+
};
|
|
1053
|
+
readonly whoami: {
|
|
1054
|
+
readonly path: "whoami";
|
|
1055
|
+
readonly positionals: readonly [];
|
|
1056
|
+
readonly flags: {
|
|
1057
|
+
readonly output: {
|
|
1058
|
+
readonly type: "string";
|
|
1059
|
+
readonly values: readonly ["table", "json"];
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
readonly hidden: false;
|
|
1063
|
+
readonly yes: false;
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
/** Every non-hidden command path, minus `lace ` and minus `lace engine`. */
|
|
1067
|
+
type CommandPath = keyof typeof COMMANDS;
|
|
1068
|
+
type FlagTypeOf<F> = F extends {
|
|
1069
|
+
type: "bool";
|
|
1070
|
+
} ? boolean : F extends {
|
|
1071
|
+
type: "int";
|
|
1072
|
+
} ? number : F extends {
|
|
1073
|
+
type: "stringArray";
|
|
1074
|
+
} ? string[] : F extends {
|
|
1075
|
+
values: readonly (infer V)[];
|
|
1076
|
+
} ? V : string;
|
|
1077
|
+
type PositionalOf<P extends CommandPath> = (typeof COMMANDS)[P]["positionals"][number];
|
|
1078
|
+
type PositionalNameOf<P extends CommandPath, Kind extends "required" | "optional" | "variadic"> = Extract<PositionalOf<P>, {
|
|
1079
|
+
kind: Kind;
|
|
1080
|
+
}>["name"];
|
|
1081
|
+
/** `output` is excluded: Invoke owns it, never the command binding. */
|
|
1082
|
+
type FlagKeys<P extends CommandPath> = Exclude<keyof (typeof COMMANDS)[P]["flags"], "output">;
|
|
1083
|
+
type RequiredFlagKeys<P extends CommandPath> = {
|
|
1084
|
+
[K in FlagKeys<P>]: (typeof COMMANDS)[P]["flags"][K] extends {
|
|
1085
|
+
required: true;
|
|
1086
|
+
} ? K : never;
|
|
1087
|
+
}[FlagKeys<P>];
|
|
1088
|
+
type OptionalFlagKeys<P extends CommandPath> = Exclude<FlagKeys<P>, RequiredFlagKeys<P>>;
|
|
1089
|
+
/** Required positionals/flags are non-optional; enum flags become unions. */
|
|
1090
|
+
type ArgsOf<P extends CommandPath> = {
|
|
1091
|
+
[K in PositionalNameOf<P, "required">]: string;
|
|
1092
|
+
} & {
|
|
1093
|
+
[K in PositionalNameOf<P, "optional">]?: string;
|
|
1094
|
+
} & {
|
|
1095
|
+
[K in PositionalNameOf<P, "variadic">]?: string[];
|
|
1096
|
+
} & {
|
|
1097
|
+
[K in RequiredFlagKeys<P>]: FlagTypeOf<(typeof COMMANDS)[P]["flags"][K]>;
|
|
1098
|
+
} & {
|
|
1099
|
+
[K in OptionalFlagKeys<P>]?: FlagTypeOf<(typeof COMMANDS)[P]["flags"][K]>;
|
|
1100
|
+
};
|
|
1101
|
+
/**
|
|
1102
|
+
* flags (`--flag=value`, sorted by flag name) then `--` then positionals in
|
|
1103
|
+
* golden order, so a positional value that starts with `-` always parses
|
|
1104
|
+
* as a positional, never as a flag. A bool `true` emits a bare `--flag`;
|
|
1105
|
+
* `false`/absent is omitted. A repeated flag emits one `--flag=v` per
|
|
1106
|
+
* element.
|
|
1107
|
+
*/
|
|
1108
|
+
declare function toArgv<P extends CommandPath>(path: P, args: ArgsOf<P>): string[];
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
1112
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
1113
|
+
* or the response type of an API method. For instance:
|
|
1114
|
+
*
|
|
1115
|
+
* service Foo {
|
|
1116
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
1117
|
+
* }
|
|
1118
|
+
*/
|
|
1119
|
+
interface Empty {
|
|
1120
|
+
}
|
|
1121
|
+
declare const Empty: MessageFns$2<Empty>;
|
|
1122
|
+
type Builtin$2 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1123
|
+
type DeepPartial$2<T> = T extends Builtin$2 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$2<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$2<U>> : T extends {} ? {
|
|
1124
|
+
[K in keyof T]?: DeepPartial$2<T[K]>;
|
|
1125
|
+
} : Partial<T>;
|
|
1126
|
+
type KeysOfUnion$2<T> = T extends T ? keyof T : never;
|
|
1127
|
+
type Exact$2<P, I extends P> = P extends Builtin$2 ? P : P & {
|
|
1128
|
+
[K in keyof P]: Exact$2<P[K], I[K]>;
|
|
1129
|
+
} & {
|
|
1130
|
+
[K in Exclude<keyof I, KeysOfUnion$2<P>>]: never;
|
|
1131
|
+
};
|
|
1132
|
+
interface MessageFns$2<T> {
|
|
1133
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1134
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1135
|
+
fromJSON(object: any): T;
|
|
1136
|
+
toJSON(message: T): unknown;
|
|
1137
|
+
create<I extends Exact$2<DeepPartial$2<T>, I>>(base?: I): T;
|
|
1138
|
+
fromPartial<I extends Exact$2<DeepPartial$2<T>, I>>(object: I): T;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
interface Bundle {
|
|
1142
|
+
/**
|
|
1143
|
+
* The format of this encoding: "2.0", at which every Expression carries
|
|
1144
|
+
* the module references the engine read from it. The engine writes every
|
|
1145
|
+
* Bundle at it; an encoding of an earlier version carries none.
|
|
1146
|
+
*/
|
|
1147
|
+
schema_version: string;
|
|
1148
|
+
kind: string;
|
|
1149
|
+
entry: string;
|
|
1150
|
+
modules: {
|
|
1151
|
+
[key: string]: Module;
|
|
1152
|
+
};
|
|
1153
|
+
}
|
|
1154
|
+
declare const Bundle: MessageFns$1<Bundle>;
|
|
1155
|
+
interface Module {
|
|
1156
|
+
id: string;
|
|
1157
|
+
version: string;
|
|
1158
|
+
source: Source | undefined;
|
|
1159
|
+
interface: Interface | undefined;
|
|
1160
|
+
modules: Use[];
|
|
1161
|
+
resources: Resource[];
|
|
1162
|
+
locals: Local[];
|
|
1163
|
+
exports: Exports | undefined;
|
|
1164
|
+
terraform: TerraformBlock | undefined;
|
|
1165
|
+
providers: ProviderConfig[];
|
|
1166
|
+
/** top-level directives: moved {}, import {} */
|
|
1167
|
+
top_level_blocks: Block[];
|
|
1168
|
+
}
|
|
1169
|
+
declare const Module: MessageFns$1<Module>;
|
|
1170
|
+
interface Interface {
|
|
1171
|
+
inputs: InputDef$1[];
|
|
1172
|
+
outputs: OutputDef$1[];
|
|
1173
|
+
}
|
|
1174
|
+
declare const Interface: MessageFns$1<Interface>;
|
|
1175
|
+
interface InputDef$1 {
|
|
1176
|
+
name: string;
|
|
1177
|
+
type: string;
|
|
1178
|
+
required: boolean;
|
|
1179
|
+
description: string;
|
|
1180
|
+
default_value: any | undefined;
|
|
1181
|
+
validation: ValidationBlock$1[];
|
|
1182
|
+
sensitive: boolean;
|
|
1183
|
+
/** unset = default (true); explicit false is meaningful */
|
|
1184
|
+
nullable?: boolean | undefined;
|
|
1185
|
+
/** unset = default (false); explicit true is meaningful */
|
|
1186
|
+
ephemeral?: boolean | undefined;
|
|
1187
|
+
}
|
|
1188
|
+
declare const InputDef$1: MessageFns$1<InputDef$1>;
|
|
1189
|
+
interface ValidationBlock$1 {
|
|
1190
|
+
condition: string;
|
|
1191
|
+
error_message: string;
|
|
1192
|
+
}
|
|
1193
|
+
declare const ValidationBlock$1: MessageFns$1<ValidationBlock$1>;
|
|
1194
|
+
interface OutputDef$1 {
|
|
1195
|
+
name: string;
|
|
1196
|
+
type: string;
|
|
1197
|
+
description: string;
|
|
1198
|
+
sensitive: boolean;
|
|
1199
|
+
depends_on: string[];
|
|
1200
|
+
}
|
|
1201
|
+
declare const OutputDef$1: MessageFns$1<OutputDef$1>;
|
|
1202
|
+
interface Source {
|
|
1203
|
+
kind: string;
|
|
1204
|
+
repo: string;
|
|
1205
|
+
subdir: string;
|
|
1206
|
+
ref: string;
|
|
1207
|
+
}
|
|
1208
|
+
declare const Source: MessageFns$1<Source>;
|
|
1209
|
+
interface Local {
|
|
1210
|
+
name: string;
|
|
1211
|
+
value: Binding | undefined;
|
|
1212
|
+
}
|
|
1213
|
+
declare const Local: MessageFns$1<Local>;
|
|
1214
|
+
interface Use {
|
|
1215
|
+
id: string;
|
|
1216
|
+
module: string;
|
|
1217
|
+
inputs: {
|
|
1218
|
+
[key: string]: Binding;
|
|
1219
|
+
};
|
|
1220
|
+
depends_on: string[];
|
|
1221
|
+
/** count meta-argument */
|
|
1222
|
+
count: Binding | undefined;
|
|
1223
|
+
/** for_each meta-argument */
|
|
1224
|
+
for_each: Binding | undefined;
|
|
1225
|
+
/**
|
|
1226
|
+
* A module call's `providers = {}` map (child-local name → root ref).
|
|
1227
|
+
* Each entry targets the child's default provider slot for that name;
|
|
1228
|
+
* this map has no way to target an aliased child slot.
|
|
1229
|
+
*/
|
|
1230
|
+
providers: {
|
|
1231
|
+
[key: string]: string;
|
|
1232
|
+
};
|
|
1233
|
+
}
|
|
1234
|
+
declare const Use: MessageFns$1<Use>;
|
|
1235
|
+
interface Resource {
|
|
1236
|
+
id: string;
|
|
1237
|
+
kind: string;
|
|
1238
|
+
type: string;
|
|
1239
|
+
inputs: {
|
|
1240
|
+
[key: string]: Binding;
|
|
1241
|
+
};
|
|
1242
|
+
depends_on: string[];
|
|
1243
|
+
/** nested blocks (ingress, lifecycle, dynamic, …) */
|
|
1244
|
+
blocks: Block[];
|
|
1245
|
+
/** count meta-argument */
|
|
1246
|
+
count: Binding | undefined;
|
|
1247
|
+
/** for_each meta-argument */
|
|
1248
|
+
for_each: Binding | undefined;
|
|
1249
|
+
/** provider meta-argument, e.g. "aws.west" */
|
|
1250
|
+
provider_ref: string;
|
|
1251
|
+
}
|
|
1252
|
+
declare const Resource: MessageFns$1<Resource>;
|
|
1253
|
+
/**
|
|
1254
|
+
* Block is a recursive nested block (within a resource, or top-level moved/
|
|
1255
|
+
* import). Attributes are ordered (declaration order) so regenerated HCL is
|
|
1256
|
+
* byte-deterministic.
|
|
1257
|
+
*/
|
|
1258
|
+
interface Block {
|
|
1259
|
+
type: string;
|
|
1260
|
+
labels: string[];
|
|
1261
|
+
attributes: NamedBinding[];
|
|
1262
|
+
blocks: Block[];
|
|
1263
|
+
}
|
|
1264
|
+
declare const Block: MessageFns$1<Block>;
|
|
1265
|
+
/** NamedBinding is an ordered (name, value) attribute within a Block. */
|
|
1266
|
+
interface NamedBinding {
|
|
1267
|
+
name: string;
|
|
1268
|
+
value: Binding | undefined;
|
|
1269
|
+
}
|
|
1270
|
+
declare const NamedBinding: MessageFns$1<NamedBinding>;
|
|
1271
|
+
interface Exports {
|
|
1272
|
+
outputs: {
|
|
1273
|
+
[key: string]: OutputExport;
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
declare const Exports: MessageFns$1<Exports>;
|
|
1277
|
+
interface OutputExport {
|
|
1278
|
+
out: OutputRef | undefined;
|
|
1279
|
+
lit: any | undefined;
|
|
1280
|
+
var: string;
|
|
1281
|
+
expr: Expression | undefined;
|
|
1282
|
+
}
|
|
1283
|
+
declare const OutputExport: MessageFns$1<OutputExport>;
|
|
1284
|
+
interface Binding {
|
|
1285
|
+
lit?: any | undefined;
|
|
1286
|
+
var?: string | undefined;
|
|
1287
|
+
out?: OutputRef | undefined;
|
|
1288
|
+
expr?: Expression | undefined;
|
|
1289
|
+
}
|
|
1290
|
+
declare const Binding: MessageFns$1<Binding>;
|
|
1291
|
+
interface OutputRef {
|
|
1292
|
+
module: string;
|
|
1293
|
+
name: string;
|
|
1294
|
+
}
|
|
1295
|
+
declare const OutputRef: MessageFns$1<OutputRef>;
|
|
1296
|
+
interface Expression {
|
|
1297
|
+
lang: string;
|
|
1298
|
+
value: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* The module calls `value` reads, in source order: what the engine's
|
|
1301
|
+
* one reader of references reads from the parse of `value`. The engine
|
|
1302
|
+
* fills them each time it encodes an Expression and reads none back, so
|
|
1303
|
+
* a consumer takes a reference from here and never from `value`.
|
|
1304
|
+
*/
|
|
1305
|
+
module_references: ModuleReference[];
|
|
1306
|
+
}
|
|
1307
|
+
declare const Expression: MessageFns$1<Expression>;
|
|
1308
|
+
/** ModuleReference is one module.<call> an expression reads. */
|
|
1309
|
+
interface ModuleReference {
|
|
1310
|
+
/** The call read: module.<call>. */
|
|
1311
|
+
call: string;
|
|
1312
|
+
/**
|
|
1313
|
+
* The output read off the call: the first attribute after the call and
|
|
1314
|
+
* any instance key in the text, module.<call>.<output> or
|
|
1315
|
+
* module.<call>[0].<output>. Unset when the reference reads the whole
|
|
1316
|
+
* call: module.<call> alone, through a splat, or by a key an expression
|
|
1317
|
+
* computes.
|
|
1318
|
+
*/
|
|
1319
|
+
output?: string | undefined;
|
|
1320
|
+
/** An instance key follows the call: [0], ["k"] or [<expression>]. */
|
|
1321
|
+
instance_key: boolean;
|
|
1322
|
+
/** A splat follows the call or its instance key: [*] or .*. */
|
|
1323
|
+
splat: boolean;
|
|
1324
|
+
}
|
|
1325
|
+
declare const ModuleReference: MessageFns$1<ModuleReference>;
|
|
1326
|
+
interface TerraformBlock {
|
|
1327
|
+
required_version: string;
|
|
1328
|
+
required_providers: {
|
|
1329
|
+
[key: string]: ProviderRequirement;
|
|
1330
|
+
};
|
|
1331
|
+
backend: BackendConfig | undefined;
|
|
1332
|
+
}
|
|
1333
|
+
declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
1334
|
+
interface ProviderRequirement {
|
|
1335
|
+
source: string;
|
|
1336
|
+
version: string;
|
|
1337
|
+
configuration_aliases: string[];
|
|
1338
|
+
}
|
|
1339
|
+
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
1340
|
+
interface BackendConfig {
|
|
1341
|
+
type: string;
|
|
1342
|
+
config: {
|
|
1343
|
+
[key: string]: any | undefined;
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
declare const BackendConfig: MessageFns$1<BackendConfig>;
|
|
1347
|
+
interface ProviderConfig {
|
|
1348
|
+
name: string;
|
|
1349
|
+
alias: string;
|
|
1350
|
+
config: {
|
|
1351
|
+
[key: string]: Binding;
|
|
1352
|
+
};
|
|
1353
|
+
/** nested config blocks (default_tags, assume_role, …) */
|
|
1354
|
+
blocks: Block[];
|
|
1355
|
+
}
|
|
1356
|
+
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
1357
|
+
type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1358
|
+
type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$1<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$1<U>> : T extends {} ? {
|
|
1359
|
+
[K in keyof T]?: DeepPartial$1<T[K]>;
|
|
1360
|
+
} : Partial<T>;
|
|
1361
|
+
type KeysOfUnion$1<T> = T extends T ? keyof T : never;
|
|
1362
|
+
type Exact$1<P, I extends P> = P extends Builtin$1 ? P : P & {
|
|
1363
|
+
[K in keyof P]: Exact$1<P[K], I[K]>;
|
|
1364
|
+
} & {
|
|
1365
|
+
[K in Exclude<keyof I, KeysOfUnion$1<P>>]: never;
|
|
1366
|
+
};
|
|
1367
|
+
interface MessageFns$1<T> {
|
|
1368
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1369
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1370
|
+
fromJSON(object: any): T;
|
|
1371
|
+
toJSON(message: T): unknown;
|
|
1372
|
+
create<I extends Exact$1<DeepPartial$1<T>, I>>(base?: I): T;
|
|
1373
|
+
fromPartial<I extends Exact$1<DeepPartial$1<T>, I>>(object: I): T;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
declare enum InputMode {
|
|
1377
|
+
INPUT_MODE_UNSPECIFIED = 0,
|
|
1378
|
+
INPUT_MODE_EMPTY = 1,
|
|
1379
|
+
INPUT_MODE_LITERAL = 2,
|
|
1380
|
+
INPUT_MODE_VARIABLE = 3,
|
|
1381
|
+
INPUT_MODE_EXPRESSION = 4,
|
|
1382
|
+
INPUT_MODE_WIRED = 5,
|
|
1383
|
+
UNRECOGNIZED = -1
|
|
1384
|
+
}
|
|
1385
|
+
declare enum DiagnosticSeverity {
|
|
1386
|
+
DIAGNOSTIC_SEVERITY_UNSPECIFIED = 0,
|
|
1387
|
+
DIAGNOSTIC_SEVERITY_ERROR = 1,
|
|
1388
|
+
DIAGNOSTIC_SEVERITY_WARNING = 2,
|
|
1389
|
+
DIAGNOSTIC_SEVERITY_INFO = 3,
|
|
1390
|
+
UNRECOGNIZED = -1
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Reason is the one vocabulary of what a failure asks of the developer.
|
|
1394
|
+
* The engine attaches it to a refused RPC as a `ReasonDetail` in the
|
|
1395
|
+
* status' error details, and a command's failure document names it; a
|
|
1396
|
+
* client branches on it, never on the message's text. A failure the API
|
|
1397
|
+
* decided carries the API's own code (`ReasonDetail.api_code`), and a
|
|
1398
|
+
* reason only where that code has one: every code that asks the developer
|
|
1399
|
+
* to sign in again is `REASON_UNAUTHENTICATED`.
|
|
1400
|
+
*/
|
|
1401
|
+
declare enum Reason {
|
|
1402
|
+
REASON_UNSPECIFIED = 0,
|
|
1403
|
+
/** REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form. */
|
|
1404
|
+
REASON_NOT_LACE_FORM = 1,
|
|
1405
|
+
/** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
|
|
1406
|
+
REASON_HASH_MISMATCH = 2,
|
|
1407
|
+
/** REASON_REGISTRY_UNAVAILABLE - Placement: the registry could not be reached or answered with no verdict. */
|
|
1408
|
+
REASON_REGISTRY_UNAVAILABLE = 3,
|
|
1409
|
+
/** REASON_ROOT_LOCKED - SessionOpen: the root's canvas is open in another window. */
|
|
1410
|
+
REASON_ROOT_LOCKED = 4,
|
|
1411
|
+
/** REASON_UNSAVED - Generate: the session has unsaved edits; save first. */
|
|
1412
|
+
REASON_UNSAVED = 5,
|
|
1413
|
+
/** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
|
|
1414
|
+
REASON_CONFLICT = 6,
|
|
1415
|
+
/**
|
|
1416
|
+
* REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused.
|
|
1417
|
+
* module convert and stack import: the tree's tf does not parse, has a
|
|
1418
|
+
* non-empty residual report, or its Bundle fails its own validation.
|
|
1419
|
+
* stack apply / stack destroy / registry register: a source in the stack
|
|
1420
|
+
* does not read, checked before the certification.
|
|
1421
|
+
*/
|
|
1422
|
+
REASON_SOURCE_REFUSED = 7,
|
|
1423
|
+
/**
|
|
1424
|
+
* REASON_NOT_GIT_REPOSITORY - Generate, module convert, stack import and module fmt: the authoring
|
|
1425
|
+
* root is not inside a git working tree.
|
|
1426
|
+
*/
|
|
1427
|
+
REASON_NOT_GIT_REPOSITORY = 8,
|
|
1428
|
+
/** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
|
|
1429
|
+
REASON_GENERATE_IN_PROGRESS = 9,
|
|
1430
|
+
/** REASON_NO_ORGANIZATION - A scoped command: no organization is selected. */
|
|
1431
|
+
REASON_NO_ORGANIZATION = 10,
|
|
1432
|
+
/** REASON_NO_TEAM - A team-scoped command: no team is selected in the organization. */
|
|
1433
|
+
REASON_NO_TEAM = 11,
|
|
1434
|
+
/**
|
|
1435
|
+
* REASON_NO_CERTIFICATION - stack apply / stack destroy / registry register: the root has no
|
|
1436
|
+
* certification.
|
|
1437
|
+
*/
|
|
1438
|
+
REASON_NO_CERTIFICATION = 12,
|
|
1439
|
+
/**
|
|
1440
|
+
* REASON_STALE_CERTIFICATION - stack apply / stack destroy / registry register: the certification
|
|
1441
|
+
* does not certify the tree on disk — the tree changed since validate,
|
|
1442
|
+
* another lace version wrote it, or its files are torn or mixed from two
|
|
1443
|
+
* validates. Running validate again replaces it.
|
|
1444
|
+
*/
|
|
1445
|
+
REASON_STALE_CERTIFICATION = 13,
|
|
1446
|
+
/**
|
|
1447
|
+
* REASON_TOOL_MISSING - module scan / module docs / module fmt / module validate / module
|
|
1448
|
+
* convert / stack import / stack preview: the tool the command runs
|
|
1449
|
+
* (tfsec, terraform-docs, the pinned terraform) is not available. convert
|
|
1450
|
+
* and stack import run the pinned terraform through the validate each
|
|
1451
|
+
* closes on.
|
|
1452
|
+
*/
|
|
1453
|
+
REASON_TOOL_MISSING = 14,
|
|
1454
|
+
/**
|
|
1455
|
+
* REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
|
|
1456
|
+
* modules crosses a group's boundary, which no single-scope edit makes.
|
|
1457
|
+
* It is a refusal of the batch's content, carried on its GraphError.
|
|
1458
|
+
*/
|
|
1459
|
+
REASON_CROSS_SCOPE = 15,
|
|
1460
|
+
/**
|
|
1461
|
+
* REASON_UNAUTHENTICATED - The developer must sign in: a command or a placement that needs
|
|
1462
|
+
* credentials finds none (no `lace login`, no LACE_TOKEN), decided
|
|
1463
|
+
* before any request; or the API refuses the ones sent with its code
|
|
1464
|
+
* `unauthenticated`, which `ReasonDetail.api_code` then names.
|
|
1465
|
+
*/
|
|
1466
|
+
REASON_UNAUTHENTICATED = 16,
|
|
1467
|
+
UNRECOGNIZED = -1
|
|
1468
|
+
}
|
|
1469
|
+
declare enum ConflictChoice {
|
|
1470
|
+
CONFLICT_CHOICE_UNSPECIFIED = 0,
|
|
1471
|
+
CONFLICT_CHOICE_KEEP = 1,
|
|
1472
|
+
CONFLICT_CHOICE_RELOAD = 2,
|
|
1473
|
+
UNRECOGNIZED = -1
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* ReasonDetail rides a refused RPC's status as its one error detail:
|
|
1477
|
+
* `grpc-status-details-bin` over gRPC, `details[]` over Connect. A
|
|
1478
|
+
* failure Lace decided sets `reason`; one the API decided sets `api_code`
|
|
1479
|
+
* to the API's own closed code, passed through unchanged, with the status
|
|
1480
|
+
* code that HTTP status maps to, and `reason` where that code has one
|
|
1481
|
+
* (`REASON_UNAUTHENTICATED` for the API's `unauthenticated`).
|
|
1482
|
+
*/
|
|
1483
|
+
interface ReasonDetail {
|
|
1484
|
+
reason: Reason;
|
|
1485
|
+
api_code: string;
|
|
1486
|
+
}
|
|
1487
|
+
declare const ReasonDetail: MessageFns<ReasonDetail>;
|
|
1488
|
+
interface InitializeRequest {
|
|
1489
|
+
client_version: string;
|
|
1490
|
+
/**
|
|
1491
|
+
* The protocol version the client speaks: the decimal of
|
|
1492
|
+
* PROTOCOL_VERSION_CURRENT as the client was built with it. The engine
|
|
1493
|
+
* refuses any other value than its own with FAILED_PRECONDITION, naming
|
|
1494
|
+
* both.
|
|
1495
|
+
*/
|
|
1496
|
+
protocol_version: string;
|
|
1497
|
+
}
|
|
1498
|
+
declare const InitializeRequest: MessageFns<InitializeRequest>;
|
|
1499
|
+
interface InitializeResponse {
|
|
1500
|
+
server_version: string;
|
|
1501
|
+
/** the decimal of PROTOCOL_VERSION_CURRENT as the engine was built with it */
|
|
1502
|
+
protocol_version: string;
|
|
1503
|
+
supported_protocols: string[];
|
|
1504
|
+
/** space-joined paths of the non-hidden command tree */
|
|
1505
|
+
command_paths: string[];
|
|
1506
|
+
}
|
|
1507
|
+
declare const InitializeResponse: MessageFns<InitializeResponse>;
|
|
1508
|
+
interface ShutdownResponse {
|
|
1509
|
+
status: string;
|
|
1510
|
+
}
|
|
1511
|
+
declare const ShutdownResponse: MessageFns<ShutdownResponse>;
|
|
1512
|
+
interface ReadCredentialResponse {
|
|
1513
|
+
/** empty when signed out */
|
|
1514
|
+
api_key: string;
|
|
1515
|
+
/** the API the engine's own commands call */
|
|
1516
|
+
api_base_url: string;
|
|
1517
|
+
}
|
|
1518
|
+
declare const ReadCredentialResponse: MessageFns<ReadCredentialResponse>;
|
|
1519
|
+
interface SessionOpenRequest {
|
|
1520
|
+
ephemeral?: EphemeralSession | undefined;
|
|
1521
|
+
root?: RootSession | undefined;
|
|
1522
|
+
/** ephemeral only */
|
|
1523
|
+
workspace_name: string;
|
|
1524
|
+
}
|
|
1525
|
+
declare const SessionOpenRequest: MessageFns<SessionOpenRequest>;
|
|
1526
|
+
interface EphemeralSession {
|
|
1527
|
+
}
|
|
1528
|
+
declare const EphemeralSession: MessageFns<EphemeralSession>;
|
|
1529
|
+
interface RootSession {
|
|
1530
|
+
/** absolute authoring root */
|
|
1531
|
+
path: string;
|
|
1532
|
+
}
|
|
1533
|
+
declare const RootSession: MessageFns<RootSession>;
|
|
1534
|
+
interface SessionOpenResponse {
|
|
1535
|
+
session_id: string;
|
|
1536
|
+
state: BundleState | undefined;
|
|
1537
|
+
}
|
|
1538
|
+
declare const SessionOpenResponse: MessageFns<SessionOpenResponse>;
|
|
1539
|
+
interface TestSessionOpenRequest {
|
|
1540
|
+
fixture_name: string;
|
|
1541
|
+
workspace_name: string;
|
|
1542
|
+
}
|
|
1543
|
+
declare const TestSessionOpenRequest: MessageFns<TestSessionOpenRequest>;
|
|
1544
|
+
interface SessionSaveRequest {
|
|
1545
|
+
session_id: string;
|
|
1546
|
+
}
|
|
1547
|
+
declare const SessionSaveRequest: MessageFns<SessionSaveRequest>;
|
|
1548
|
+
interface SessionSaveResponse {
|
|
1549
|
+
/**
|
|
1550
|
+
* The revision of the state the save left: the `BundleState.revision`
|
|
1551
|
+
* of the frame that carries it, or the session's current revision when
|
|
1552
|
+
* nothing was unsaved. A subscriber holds the save once it has received
|
|
1553
|
+
* a frame at this revision or a later one.
|
|
1554
|
+
*/
|
|
1555
|
+
revision: number;
|
|
1556
|
+
}
|
|
1557
|
+
declare const SessionSaveResponse: MessageFns<SessionSaveResponse>;
|
|
1558
|
+
interface SessionCloseRequest {
|
|
1559
|
+
session_id: string;
|
|
1560
|
+
}
|
|
1561
|
+
declare const SessionCloseRequest: MessageFns<SessionCloseRequest>;
|
|
1562
|
+
interface SessionCloseResponse {
|
|
1563
|
+
status: string;
|
|
1564
|
+
}
|
|
1565
|
+
declare const SessionCloseResponse: MessageFns<SessionCloseResponse>;
|
|
1566
|
+
interface SessionGenerateRequest {
|
|
1567
|
+
session_id: string;
|
|
1568
|
+
/**
|
|
1569
|
+
* Client-chosen, unique per engine connection, as `invoke_id` is:
|
|
1570
|
+
* required, and an id still live is AlreadyExists. Every generate event
|
|
1571
|
+
* this call publishes carries it.
|
|
1572
|
+
*/
|
|
1573
|
+
generate_id: string;
|
|
1574
|
+
}
|
|
1575
|
+
declare const SessionGenerateRequest: MessageFns<SessionGenerateRequest>;
|
|
1576
|
+
interface SessionGenerateResponse {
|
|
1577
|
+
files_written: string[];
|
|
1578
|
+
/** the `module validate -o json` document for the written tree */
|
|
1579
|
+
validate_json: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* The revision of the state the Generate left: the
|
|
1582
|
+
* `BundleState.revision` of the frame that carries it, or the session's
|
|
1583
|
+
* current revision when it changed nothing. A subscriber holds the
|
|
1584
|
+
* Generate once it has received a frame at this revision or a later one.
|
|
1585
|
+
*/
|
|
1586
|
+
revision: number;
|
|
1587
|
+
}
|
|
1588
|
+
declare const SessionGenerateResponse: MessageFns<SessionGenerateResponse>;
|
|
1589
|
+
interface SessionResolveConflictRequest {
|
|
1590
|
+
session_id: string;
|
|
1591
|
+
choice: ConflictChoice;
|
|
1592
|
+
tree_hash: string;
|
|
1593
|
+
}
|
|
1594
|
+
declare const SessionResolveConflictRequest: MessageFns<SessionResolveConflictRequest>;
|
|
1595
|
+
interface SessionResolveConflictResponse {
|
|
1596
|
+
}
|
|
1597
|
+
declare const SessionResolveConflictResponse: MessageFns<SessionResolveConflictResponse>;
|
|
1598
|
+
interface Diagnostic {
|
|
1599
|
+
severity: DiagnosticSeverity;
|
|
1600
|
+
message: string;
|
|
1601
|
+
file: string;
|
|
1602
|
+
line: number;
|
|
1603
|
+
column: number;
|
|
1604
|
+
/**
|
|
1605
|
+
* Locates an engine-validator finding within the graph. Empty when
|
|
1606
|
+
* the diagnostic has no graph location (file/line/column instead).
|
|
1607
|
+
*/
|
|
1608
|
+
module_key: string;
|
|
1609
|
+
instance_id: string;
|
|
1610
|
+
input_name: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* The rule the finding breaks, when its source names one: a workspace
|
|
1613
|
+
* rule's code, a scan's rule id. Empty for a finding with no rule.
|
|
1614
|
+
*/
|
|
1615
|
+
code: string;
|
|
1616
|
+
}
|
|
1617
|
+
declare const Diagnostic: MessageFns<Diagnostic>;
|
|
1618
|
+
/**
|
|
1619
|
+
* ConnectAction wires `source`'s output to `target`'s input. A wire is an
|
|
1620
|
+
* edit of one module: `scope` owns the target and `source_scope` owns the
|
|
1621
|
+
* source, both required, and a wire whose two scopes differ crosses a
|
|
1622
|
+
* group's boundary: the batch is refused (`success=false`) with a
|
|
1623
|
+
* GraphError carrying `REASON_CROSS_SCOPE`.
|
|
1624
|
+
*/
|
|
1625
|
+
interface ConnectAction {
|
|
1626
|
+
source: string;
|
|
1627
|
+
target: string;
|
|
1628
|
+
source_output: string;
|
|
1629
|
+
target_input: string;
|
|
1630
|
+
scope: string;
|
|
1631
|
+
source_scope: string;
|
|
1632
|
+
}
|
|
1633
|
+
declare const ConnectAction: MessageFns<ConnectAction>;
|
|
1634
|
+
/**
|
|
1635
|
+
* AutoConnectAction wires `source` to `target` by the engine's matching
|
|
1636
|
+
* rules, as one batch entry: every output of `source` is scored against
|
|
1637
|
+
* every required input of `target` that has no binding
|
|
1638
|
+
* (`WiringCandidate.score`), and the pairs are taken from the highest
|
|
1639
|
+
* score down, each output and each input wired at most once. Pairs that
|
|
1640
|
+
* tie at one score for an input or an output they share are not wired,
|
|
1641
|
+
* nor is any port they name: they come back in `BundleApplyResult.ties`
|
|
1642
|
+
* for the caller to choose between. A pair of instances with no scored
|
|
1643
|
+
* pair at all is refused. Its two scopes are a ConnectAction's.
|
|
1644
|
+
*/
|
|
1645
|
+
interface AutoConnectAction {
|
|
1646
|
+
source: string;
|
|
1647
|
+
target: string;
|
|
1648
|
+
scope: string;
|
|
1649
|
+
source_scope: string;
|
|
1650
|
+
}
|
|
1651
|
+
declare const AutoConnectAction: MessageFns<AutoConnectAction>;
|
|
1652
|
+
interface DisconnectAction {
|
|
1653
|
+
target: string;
|
|
1654
|
+
input_name: string;
|
|
1655
|
+
scope: string;
|
|
1656
|
+
}
|
|
1657
|
+
declare const DisconnectAction: MessageFns<DisconnectAction>;
|
|
1658
|
+
interface UpdateInputAction {
|
|
1659
|
+
instance_id: string;
|
|
1660
|
+
input_name: string;
|
|
1661
|
+
mode: InputMode;
|
|
1662
|
+
value: any | undefined;
|
|
1663
|
+
variable: string;
|
|
1664
|
+
expression: string;
|
|
1665
|
+
scope: string;
|
|
1666
|
+
}
|
|
1667
|
+
declare const UpdateInputAction: MessageFns<UpdateInputAction>;
|
|
1668
|
+
interface UpdateAllInputsAction {
|
|
1669
|
+
instance_id: string;
|
|
1670
|
+
inputs: InputEntry[];
|
|
1671
|
+
scope: string;
|
|
1672
|
+
}
|
|
1673
|
+
declare const UpdateAllInputsAction: MessageFns<UpdateAllInputsAction>;
|
|
1674
|
+
interface InputEntry {
|
|
1675
|
+
name: string;
|
|
1676
|
+
mode: InputMode;
|
|
1677
|
+
value: any | undefined;
|
|
1678
|
+
variable: string;
|
|
1679
|
+
expression: string;
|
|
1680
|
+
}
|
|
1681
|
+
declare const InputEntry: MessageFns<InputEntry>;
|
|
1682
|
+
interface RenameInstanceAction {
|
|
1683
|
+
old_id: string;
|
|
1684
|
+
new_id: string;
|
|
1685
|
+
scope: string;
|
|
1686
|
+
}
|
|
1687
|
+
declare const RenameInstanceAction: MessageFns<RenameInstanceAction>;
|
|
1688
|
+
interface DeleteInstanceAction {
|
|
1689
|
+
instance_id: string;
|
|
1690
|
+
scope: string;
|
|
1691
|
+
}
|
|
1692
|
+
declare const DeleteInstanceAction: MessageFns<DeleteInstanceAction>;
|
|
1693
|
+
interface CopyInstancesAction {
|
|
1694
|
+
instance_ids: string[];
|
|
1695
|
+
scope: string;
|
|
1696
|
+
}
|
|
1697
|
+
declare const CopyInstancesAction: MessageFns<CopyInstancesAction>;
|
|
1698
|
+
/**
|
|
1699
|
+
* CreateGroupAction creates a new visual group from selected nodes. The
|
|
1700
|
+
* group's display label is consumer-owned arrangement state (written from
|
|
1701
|
+
* `BundleApplyResult.created` after this action lands); the wire payload
|
|
1702
|
+
* carries only membership.
|
|
1703
|
+
*/
|
|
1704
|
+
interface CreateGroupAction {
|
|
1705
|
+
node_ids: string[];
|
|
1706
|
+
scope: string;
|
|
1707
|
+
}
|
|
1708
|
+
declare const CreateGroupAction: MessageFns<CreateGroupAction>;
|
|
1709
|
+
/**
|
|
1710
|
+
* UngroupAction dissolves the group `group_id` in `scope`: its Use is
|
|
1711
|
+
* removed and the module it pointed at has its children promoted into
|
|
1712
|
+
* the parent. Mirrors workspace.UngroupAction.
|
|
1713
|
+
*/
|
|
1714
|
+
interface UngroupAction {
|
|
1715
|
+
group_id: string;
|
|
1716
|
+
scope: string;
|
|
1717
|
+
}
|
|
1718
|
+
declare const UngroupAction: MessageFns<UngroupAction>;
|
|
1719
|
+
interface SetVariablesAction {
|
|
1720
|
+
variables: InputDef[];
|
|
1721
|
+
}
|
|
1722
|
+
declare const SetVariablesAction: MessageFns<SetVariablesAction>;
|
|
1723
|
+
interface SetExportsAction {
|
|
1724
|
+
outputs: OutputExportEntry[];
|
|
1725
|
+
output_defs: OutputDef[];
|
|
1726
|
+
}
|
|
1727
|
+
declare const SetExportsAction: MessageFns<SetExportsAction>;
|
|
1728
|
+
interface OutputExportEntry {
|
|
1729
|
+
name: string;
|
|
1730
|
+
source_instance: string;
|
|
1731
|
+
source_output: string;
|
|
1732
|
+
}
|
|
1733
|
+
declare const OutputExportEntry: MessageFns<OutputExportEntry>;
|
|
1734
|
+
interface SetTerraformAction {
|
|
1735
|
+
required_version: string;
|
|
1736
|
+
required_providers: ProviderReqView[];
|
|
1737
|
+
backend: BackendView | undefined;
|
|
1738
|
+
}
|
|
1739
|
+
declare const SetTerraformAction: MessageFns<SetTerraformAction>;
|
|
1740
|
+
interface SetProvidersAction {
|
|
1741
|
+
providers: ProviderView[];
|
|
1742
|
+
}
|
|
1743
|
+
declare const SetProvidersAction: MessageFns<SetProvidersAction>;
|
|
1744
|
+
interface SetLocalsAction {
|
|
1745
|
+
locals: LocalEntry[];
|
|
1746
|
+
}
|
|
1747
|
+
declare const SetLocalsAction: MessageFns<SetLocalsAction>;
|
|
1748
|
+
interface LocalEntry {
|
|
1749
|
+
name: string;
|
|
1750
|
+
mode: string;
|
|
1751
|
+
value: any | undefined;
|
|
1752
|
+
variable: string;
|
|
1753
|
+
expression: string;
|
|
1754
|
+
}
|
|
1755
|
+
declare const LocalEntry: MessageFns<LocalEntry>;
|
|
1756
|
+
interface SetDependsOnAction {
|
|
1757
|
+
instance_id: string;
|
|
1758
|
+
depends_on: string[];
|
|
1759
|
+
scope: string;
|
|
1760
|
+
}
|
|
1761
|
+
declare const SetDependsOnAction: MessageFns<SetDependsOnAction>;
|
|
1762
|
+
/**
|
|
1763
|
+
* SetUseProvidersAction sets a module call's `providers = {}` map. Keys are
|
|
1764
|
+
* the child module's local provider names, values the root's provider
|
|
1765
|
+
* references passed down (`name` or `name.alias`). A node-tier edit of the
|
|
1766
|
+
* existing Use, mirroring SetDependsOnAction.
|
|
1767
|
+
*/
|
|
1768
|
+
interface SetUseProvidersAction {
|
|
1769
|
+
instance_id: string;
|
|
1770
|
+
providers: {
|
|
1771
|
+
[key: string]: string;
|
|
1772
|
+
};
|
|
1773
|
+
scope: string;
|
|
1774
|
+
}
|
|
1775
|
+
declare const SetUseProvidersAction: MessageFns<SetUseProvidersAction>;
|
|
1776
|
+
/**
|
|
1777
|
+
* Undo / Redo are zero-payload actions — the session's history stack
|
|
1778
|
+
* carries the state. Modeled as Action oneof cases (empty messages) so
|
|
1779
|
+
* the single ApplyAction RPC covers the full mutation surface.
|
|
1780
|
+
*/
|
|
1781
|
+
interface UndoAction {
|
|
1782
|
+
}
|
|
1783
|
+
declare const UndoAction: MessageFns<UndoAction>;
|
|
1784
|
+
interface RedoAction {
|
|
1785
|
+
}
|
|
1786
|
+
declare const RedoAction: MessageFns<RedoAction>;
|
|
1787
|
+
/**
|
|
1788
|
+
* PlaceModuleAction drops a registry module onto the canvas. Distinct from
|
|
1789
|
+
* Connect/UpdateInput/etc. in that it names a *source* module (registry
|
|
1790
|
+
* coordinates) rather than a sibling instance; the server orchestrates the
|
|
1791
|
+
* registry fetch + module-key resolution before producing the Bundle
|
|
1792
|
+
* mutation. Placement position is consumer-owned arrangement state, written
|
|
1793
|
+
* client-side from `BundleApplyResult.created` after this action lands.
|
|
1794
|
+
*/
|
|
1795
|
+
interface PlaceModuleAction {
|
|
1796
|
+
author: string;
|
|
1797
|
+
name: string;
|
|
1798
|
+
version: string;
|
|
1799
|
+
}
|
|
1800
|
+
declare const PlaceModuleAction: MessageFns<PlaceModuleAction>;
|
|
1801
|
+
/** The canonical Action type used inside ApplyActionRequest. */
|
|
1802
|
+
interface Action {
|
|
1803
|
+
connect?: ConnectAction | undefined;
|
|
1804
|
+
auto_connect?: AutoConnectAction | undefined;
|
|
1805
|
+
disconnect?: DisconnectAction | undefined;
|
|
1806
|
+
update_input?: UpdateInputAction | undefined;
|
|
1807
|
+
update_all_inputs?: UpdateAllInputsAction | undefined;
|
|
1808
|
+
rename_instance?: RenameInstanceAction | undefined;
|
|
1809
|
+
delete_instance?: DeleteInstanceAction | undefined;
|
|
1810
|
+
copy_instances?: CopyInstancesAction | undefined;
|
|
1811
|
+
create_group?: CreateGroupAction | undefined;
|
|
1812
|
+
set_variables?: SetVariablesAction | undefined;
|
|
1813
|
+
set_exports?: SetExportsAction | undefined;
|
|
1814
|
+
set_terraform?: SetTerraformAction | undefined;
|
|
1815
|
+
set_providers?: SetProvidersAction | undefined;
|
|
1816
|
+
set_locals?: SetLocalsAction | undefined;
|
|
1817
|
+
set_depends_on?: SetDependsOnAction | undefined;
|
|
1818
|
+
undo?: UndoAction | undefined;
|
|
1819
|
+
redo?: RedoAction | undefined;
|
|
1820
|
+
place_module?: PlaceModuleAction | undefined;
|
|
1821
|
+
set_use_providers?: SetUseProvidersAction | undefined;
|
|
1822
|
+
ungroup?: UngroupAction | undefined;
|
|
1823
|
+
}
|
|
1824
|
+
declare const Action: MessageFns<Action>;
|
|
1825
|
+
interface ApplyActionRequest {
|
|
1826
|
+
session_id: string;
|
|
1827
|
+
actions: Action[];
|
|
1828
|
+
}
|
|
1829
|
+
declare const ApplyActionRequest: MessageFns<ApplyActionRequest>;
|
|
1830
|
+
/**
|
|
1831
|
+
* WiringCandidate is one output → input pair the matcher scores between
|
|
1832
|
+
* two instances of one module: `source_instance`'s `output` could feed
|
|
1833
|
+
* `target_instance`'s `input`, a required input with no binding. `score`
|
|
1834
|
+
* is the matcher's: 100 for the same name, 90 for the same last
|
|
1835
|
+
* `_`-separated word, 50 when one name contains the other, 30 for the
|
|
1836
|
+
* same type alone; a pair that scores nothing is no candidate.
|
|
1837
|
+
*/
|
|
1838
|
+
interface WiringCandidate$1 {
|
|
1839
|
+
source_instance: string;
|
|
1840
|
+
output: string;
|
|
1841
|
+
target_instance: string;
|
|
1842
|
+
input: string;
|
|
1843
|
+
score: number;
|
|
1844
|
+
}
|
|
1845
|
+
declare const WiringCandidate$1: MessageFns<WiringCandidate$1>;
|
|
1846
|
+
interface ReadWiringCandidatesRequest {
|
|
1847
|
+
session_id: string;
|
|
1848
|
+
/** The key of the module whose instances are matched (an action's `scope`). */
|
|
1849
|
+
scope: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* Narrows the pairs to those reading this instance's outputs; unset,
|
|
1852
|
+
* every instance of the scope is a source.
|
|
1853
|
+
*/
|
|
1854
|
+
source_instance?: string | undefined;
|
|
1855
|
+
/**
|
|
1856
|
+
* Narrows the pairs to those feeding this instance's inputs; unset,
|
|
1857
|
+
* every instance of the scope is a target.
|
|
1858
|
+
*/
|
|
1859
|
+
target_instance?: string | undefined;
|
|
1860
|
+
}
|
|
1861
|
+
declare const ReadWiringCandidatesRequest: MessageFns<ReadWiringCandidatesRequest>;
|
|
1862
|
+
interface ReadWiringCandidatesResponse {
|
|
1863
|
+
/**
|
|
1864
|
+
* Highest score first; equal scores in source instance, output, target
|
|
1865
|
+
* instance, input order.
|
|
1866
|
+
*/
|
|
1867
|
+
candidates: WiringCandidate$1[];
|
|
1868
|
+
}
|
|
1869
|
+
declare const ReadWiringCandidatesResponse: MessageFns<ReadWiringCandidatesResponse>;
|
|
1870
|
+
interface InvokeRequest {
|
|
1871
|
+
/** client-chosen, unique per engine connection */
|
|
1872
|
+
invoke_id: string;
|
|
1873
|
+
/** e.g. ["stack","preview"] */
|
|
1874
|
+
path: string[];
|
|
1875
|
+
/** positionals + flags from toArgv; never -o/--output */
|
|
1876
|
+
argv: string[];
|
|
1877
|
+
/**
|
|
1878
|
+
* The absolute directory the command runs in, as a terminal invocation
|
|
1879
|
+
* has one: every relative path argument resolves against it. Required,
|
|
1880
|
+
* and it must name an existing directory. The engine picks the
|
|
1881
|
+
* Workspace: the session's own when its pool holds a root session open
|
|
1882
|
+
* on this directory, whatever spelling names it, else the disk
|
|
1883
|
+
* Workspace a terminal invocation builds. A command that reads no
|
|
1884
|
+
* directory is sent with the developer's home.
|
|
1885
|
+
*/
|
|
1886
|
+
working_directory: string;
|
|
1887
|
+
}
|
|
1888
|
+
declare const InvokeRequest: MessageFns<InvokeRequest>;
|
|
1889
|
+
interface InvokeEvent {
|
|
1890
|
+
json?: string | undefined;
|
|
1891
|
+
exit?: InvokeExit | undefined;
|
|
1892
|
+
}
|
|
1893
|
+
declare const InvokeEvent: MessageFns<InvokeEvent>;
|
|
1894
|
+
interface InvokeExit {
|
|
1895
|
+
code: number;
|
|
1896
|
+
/** tail ≤ 8 KiB */
|
|
1897
|
+
stderr_tail: string;
|
|
1898
|
+
/**
|
|
1899
|
+
* The command's final document, as its `CommandResult` carries it: the
|
|
1900
|
+
* last JSON document the command wrote to stdout, compact. A failed
|
|
1901
|
+
* command's is its failure document, `{reason, message}` plus the
|
|
1902
|
+
* fields its reason carries; a client tells a failure from a result by
|
|
1903
|
+
* the document's own shape and never reads `stderr_tail` for why. Empty
|
|
1904
|
+
* when the command wrote none.
|
|
1905
|
+
*/
|
|
1906
|
+
document: string;
|
|
1907
|
+
}
|
|
1908
|
+
declare const InvokeExit: MessageFns<InvokeExit>;
|
|
1909
|
+
interface CancelInvokeRequest {
|
|
1910
|
+
invoke_id: string;
|
|
1911
|
+
}
|
|
1912
|
+
declare const CancelInvokeRequest: MessageFns<CancelInvokeRequest>;
|
|
1913
|
+
interface CancelInvokeResponse {
|
|
1914
|
+
found: boolean;
|
|
1915
|
+
}
|
|
1916
|
+
declare const CancelInvokeResponse: MessageFns<CancelInvokeResponse>;
|
|
1917
|
+
interface SubscribeRequest {
|
|
1918
|
+
session_id: string;
|
|
1919
|
+
}
|
|
1920
|
+
declare const SubscribeRequest: MessageFns<SubscribeRequest>;
|
|
1921
|
+
interface GenerateProgress {
|
|
1922
|
+
stage: string;
|
|
1923
|
+
message: string;
|
|
1924
|
+
/** the Generate this event belongs to */
|
|
1925
|
+
generate_id: string;
|
|
1926
|
+
}
|
|
1927
|
+
declare const GenerateProgress: MessageFns<GenerateProgress>;
|
|
1928
|
+
interface GenerateSuccess {
|
|
1929
|
+
files_written: string[];
|
|
1930
|
+
/** the `module validate -o json` document for the written tree */
|
|
1931
|
+
validate_json: string;
|
|
1932
|
+
/** the Generate this event belongs to */
|
|
1933
|
+
generate_id: string;
|
|
1934
|
+
}
|
|
1935
|
+
declare const GenerateSuccess: MessageFns<GenerateSuccess>;
|
|
1936
|
+
interface GenerateError {
|
|
1937
|
+
message: string;
|
|
1938
|
+
diagnostics: Diagnostic[];
|
|
1939
|
+
/**
|
|
1940
|
+
* Set when Generate refused because a conflict opened during its
|
|
1941
|
+
* precondition check or its pre-write re-walk.
|
|
1942
|
+
*/
|
|
1943
|
+
conflict: Conflict | undefined;
|
|
1944
|
+
/** the Generate this event belongs to */
|
|
1945
|
+
generate_id: string;
|
|
1946
|
+
/**
|
|
1947
|
+
* Why the Generate was refused, the same reason its failed call carries
|
|
1948
|
+
* in its status' error details; unspecified for a failure with no entry
|
|
1949
|
+
* in the vocabulary.
|
|
1950
|
+
*/
|
|
1951
|
+
reason: Reason;
|
|
1952
|
+
}
|
|
1953
|
+
declare const GenerateError: MessageFns<GenerateError>;
|
|
1954
|
+
interface Conflict {
|
|
1955
|
+
base_tree_hash: string;
|
|
1956
|
+
tree_hash: string;
|
|
1957
|
+
}
|
|
1958
|
+
declare const Conflict: MessageFns<Conflict>;
|
|
1959
|
+
/**
|
|
1960
|
+
* CommandResult is the result of one command that ran in a session's
|
|
1961
|
+
* root: every `Invoke` whose working directory resolved to a session
|
|
1962
|
+
* publishes exactly one to that session's subscribers when the command
|
|
1963
|
+
* exits, and one whose working directory resolved to no session publishes
|
|
1964
|
+
* nothing. The engine has no knowledge of which command it was: the event
|
|
1965
|
+
* is the path, the exit code and the final document, whatever the
|
|
1966
|
+
* command. The session keeps the last one per path, and a subscriber that
|
|
1967
|
+
* joins later receives the kept set after its first state.
|
|
1968
|
+
*/
|
|
1969
|
+
interface CommandResult$1 {
|
|
1970
|
+
/** space-joined, as `command_paths` names it, e.g. "module validate" */
|
|
1971
|
+
path: string;
|
|
1972
|
+
exit_code: number;
|
|
1973
|
+
/**
|
|
1974
|
+
* The last JSON document the command wrote to stdout, compact: a
|
|
1975
|
+
* command that streams NDJSON publishes its closing document and none
|
|
1976
|
+
* of the lines before it. Empty when the command wrote none.
|
|
1977
|
+
*/
|
|
1978
|
+
document: string;
|
|
1979
|
+
}
|
|
1980
|
+
declare const CommandResult$1: MessageFns<CommandResult$1>;
|
|
1981
|
+
/**
|
|
1982
|
+
* BundleStateEvent is the element yielded by the Subscribe stream. Every
|
|
1983
|
+
* session-state change publishes a full BundleState; generate events and
|
|
1984
|
+
* command results pass through as their own cases. Conflict, unsaved,
|
|
1985
|
+
* ungenerated and the tree hash ride on BundleState.
|
|
1986
|
+
*/
|
|
1987
|
+
interface BundleStateEvent {
|
|
1988
|
+
state?: BundleState | undefined;
|
|
1989
|
+
generate_progress?: GenerateProgress | undefined;
|
|
1990
|
+
generate_success?: GenerateSuccess | undefined;
|
|
1991
|
+
generate_error?: GenerateError | undefined;
|
|
1992
|
+
command_result?: CommandResult$1 | undefined;
|
|
1993
|
+
}
|
|
1994
|
+
declare const BundleStateEvent: MessageFns<BundleStateEvent>;
|
|
1995
|
+
/**
|
|
1996
|
+
* BundleState is the authoritative session state over the wire: the
|
|
1997
|
+
* Bundle IR + session-undo metadata + the engine validator's findings
|
|
1998
|
+
* for that Bundle, plus the session's standing against its source tf
|
|
1999
|
+
* tree. Consumers (VS Code extension, portal, tests) project this
|
|
2000
|
+
* locally via the proto package's `projectCanvasView(bundle,
|
|
2001
|
+
* arrangement?, meta)` to produce a renderable CanvasView —
|
|
2002
|
+
* `arrangement` (node positions, group collapse/label) is
|
|
2003
|
+
* consumer-owned view state and never travels here.
|
|
2004
|
+
*
|
|
2005
|
+
* Not to be confused with the `bundle_snapshot` API entity, which is
|
|
2006
|
+
* the content-addressed immutable archival form in D1 + R2. BundleState
|
|
2007
|
+
* is a live, per-session wire shape.
|
|
2008
|
+
*/
|
|
2009
|
+
interface BundleState {
|
|
2010
|
+
/** Unset when the session is source-refused with no accepted tree. */
|
|
2011
|
+
bundle: Bundle | undefined;
|
|
2012
|
+
can_undo: boolean;
|
|
2013
|
+
can_redo: boolean;
|
|
2014
|
+
/** True when the working IR differs from the saved IR in `state.lace`. */
|
|
2015
|
+
unsaved: boolean;
|
|
2016
|
+
/**
|
|
2017
|
+
* The engine validator's findings for this state, in the validator's
|
|
2018
|
+
* order. Empty when the state has none, so a subscriber sees errors
|
|
2019
|
+
* clear.
|
|
2020
|
+
*/
|
|
2021
|
+
diagnostics: Diagnostic[];
|
|
2022
|
+
/**
|
|
2023
|
+
* Set when a tf change diverges from the session's base tree hash and
|
|
2024
|
+
* needs Keep or Reload. Unset when there is no open conflict.
|
|
2025
|
+
*/
|
|
2026
|
+
conflict: Conflict | undefined;
|
|
2027
|
+
/**
|
|
2028
|
+
* True when the saved IR in `state.lace` carries edits no Generate
|
|
2029
|
+
* has written to the source tf.
|
|
2030
|
+
*/
|
|
2031
|
+
ungenerated: boolean;
|
|
2032
|
+
/**
|
|
2033
|
+
* True when the source tf this session opened, or last observed live,
|
|
2034
|
+
* is refused (unparsable or lossy). The engine refuses
|
|
2035
|
+
* every mutation while this holds — edit, undo, redo, save, generate,
|
|
2036
|
+
* and SessionResolveConflict's Keep/Reload alike — until a live tf
|
|
2037
|
+
* change parses and clears it.
|
|
2038
|
+
*/
|
|
2039
|
+
source_refused: boolean;
|
|
2040
|
+
/**
|
|
2041
|
+
* The hash of the root's tree as the session last observed it: the
|
|
2042
|
+
* same hash `module validate` reports as `treeHash`, so a client tells
|
|
2043
|
+
* whether the tree moved since a report by comparing the two. Empty
|
|
2044
|
+
* for an ephemeral session, and for a tree that cannot be hashed.
|
|
2045
|
+
*/
|
|
2046
|
+
tree_hash: string;
|
|
2047
|
+
/**
|
|
2048
|
+
* The session's state revision: a per-session counter that advances by
|
|
2049
|
+
* one with every state frame the session publishes, and frames reach a
|
|
2050
|
+
* subscriber in revision order. The state a SessionOpen or a Subscribe
|
|
2051
|
+
* starts with carries the session's current revision. A client compares
|
|
2052
|
+
* it with `BundleApplyResult.revision` to tell whether the frame it
|
|
2053
|
+
* holds already shows a batch it applied.
|
|
2054
|
+
*/
|
|
2055
|
+
revision: number;
|
|
2056
|
+
}
|
|
2057
|
+
declare const BundleState: MessageFns<BundleState>;
|
|
2058
|
+
/**
|
|
2059
|
+
* BundleApplyResult is returned by action RPCs (Connect, UpdateInput,
|
|
2060
|
+
* CreateGroup, ...) after an action is applied to the session. On
|
|
2061
|
+
* success, the corresponding `BundleState` is delivered via Subscribe
|
|
2062
|
+
* to all connected subscribers (including the action's caller).
|
|
2063
|
+
* On failure, `errors` carries the reasons the mutation was rejected
|
|
2064
|
+
* at the IR-validation boundary.
|
|
2065
|
+
*
|
|
2066
|
+
* `created` is the action-result attribution contract: the server
|
|
2067
|
+
* already knows which child/module IDs an action minted (placement,
|
|
2068
|
+
* group creation, copy), so it reports them here instead of clients
|
|
2069
|
+
* diffing successive BundleState frames to guess.
|
|
2070
|
+
*/
|
|
2071
|
+
interface BundleApplyResult {
|
|
2072
|
+
success: boolean;
|
|
2073
|
+
errors: GraphError$1[];
|
|
2074
|
+
created: CreatedRef$1[];
|
|
2075
|
+
/**
|
|
2076
|
+
* The revision of the state the batch produced: the
|
|
2077
|
+
* `BundleState.revision` of the frame that carries it. For a batch
|
|
2078
|
+
* that changed nothing or was refused, the session's current revision.
|
|
2079
|
+
* A subscriber holds the batch's own write once it has received a
|
|
2080
|
+
* frame at this revision or a later one.
|
|
2081
|
+
*/
|
|
2082
|
+
revision: number;
|
|
2083
|
+
/**
|
|
2084
|
+
* The pairs an `auto_connect` of the batch did not wire because they
|
|
2085
|
+
* tie: two or more pairs at one score sharing an input or an output.
|
|
2086
|
+
* No port a tied pair names was wired.
|
|
2087
|
+
*/
|
|
2088
|
+
ties: WiringCandidate$1[];
|
|
2089
|
+
}
|
|
2090
|
+
declare const BundleApplyResult: MessageFns<BundleApplyResult>;
|
|
2091
|
+
/**
|
|
2092
|
+
* CreatedRef names one child created by an action (PlaceModule,
|
|
2093
|
+
* CreateGroup, CopyInstances, ...). Clients key pending arrangement
|
|
2094
|
+
* writes (position, group label/collapse) off these IDs instead of
|
|
2095
|
+
* diffing BundleState frames.
|
|
2096
|
+
*/
|
|
2097
|
+
interface CreatedRef$1 {
|
|
2098
|
+
/** The scope key (module key) the child was created in. */
|
|
2099
|
+
scope: string;
|
|
2100
|
+
/** The created child/Use ID. */
|
|
2101
|
+
id: string;
|
|
2102
|
+
/**
|
|
2103
|
+
* Set when the action minted a new module (e.g. group create): the
|
|
2104
|
+
* new module's key. Empty otherwise.
|
|
2105
|
+
*/
|
|
2106
|
+
module_key: string;
|
|
2107
|
+
/**
|
|
2108
|
+
* Set when the child was cloned from an existing one (e.g. copy):
|
|
2109
|
+
* the source child ID. Empty otherwise.
|
|
2110
|
+
*/
|
|
2111
|
+
source_id: string;
|
|
2112
|
+
}
|
|
2113
|
+
declare const CreatedRef$1: MessageFns<CreatedRef$1>;
|
|
2114
|
+
/**
|
|
2115
|
+
* GraphError is a refusal of a batch's content: one action the working IR
|
|
2116
|
+
* would not take, located at the module, instance and input it addressed,
|
|
2117
|
+
* with its sentence and, where the refusal has an entry in the one
|
|
2118
|
+
* vocabulary, its reason (`REASON_CROSS_SCOPE` for a wire across a
|
|
2119
|
+
* group's boundary; `REASON_UNSPECIFIED` otherwise). A client branches on
|
|
2120
|
+
* the reason, never on the message. Mutation-boundary errors never reach
|
|
2121
|
+
* the canvas; they are returned synchronously to the action RPC caller.
|
|
2122
|
+
* The canvas renders no validator of its own — it surfaces
|
|
2123
|
+
* BundleState.diagnostics.
|
|
2124
|
+
*/
|
|
2125
|
+
interface GraphError$1 {
|
|
2126
|
+
module_key: string;
|
|
2127
|
+
instance_id: string;
|
|
2128
|
+
input_name: string;
|
|
2129
|
+
message: string;
|
|
2130
|
+
reason: Reason;
|
|
2131
|
+
}
|
|
2132
|
+
declare const GraphError$1: MessageFns<GraphError$1>;
|
|
2133
|
+
interface ProviderReqView {
|
|
2134
|
+
name: string;
|
|
2135
|
+
source: string;
|
|
2136
|
+
version: string;
|
|
2137
|
+
/**
|
|
2138
|
+
* Provider references the module declares it accepts from its caller
|
|
2139
|
+
* (`configuration_aliases = [aws.src, aws.dst]`). Each entry is a `name` or
|
|
2140
|
+
* `name.alias` reference, re-emitted unquoted; carried so the panel neither
|
|
2141
|
+
* drops nor corrupts the construct.
|
|
2142
|
+
*/
|
|
2143
|
+
configuration_aliases: string[];
|
|
2144
|
+
}
|
|
2145
|
+
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
2146
|
+
interface BackendView {
|
|
2147
|
+
type: string;
|
|
2148
|
+
config: {
|
|
2149
|
+
[key: string]: any | undefined;
|
|
2150
|
+
};
|
|
2151
|
+
}
|
|
2152
|
+
declare const BackendView: MessageFns<BackendView>;
|
|
2153
|
+
interface ProviderView {
|
|
2154
|
+
name: string;
|
|
2155
|
+
alias: string;
|
|
2156
|
+
config: {
|
|
2157
|
+
[key: string]: string;
|
|
2158
|
+
};
|
|
2159
|
+
/**
|
|
2160
|
+
* Nested config blocks (default_tags, assume_role, …). Full-fidelity,
|
|
2161
|
+
* read-only echo: the panel renders and round-trips these verbatim but does
|
|
2162
|
+
* not structurally edit them, deliberately mixing tiers with the flattened,
|
|
2163
|
+
* editable `config` map above (see ProvidersPanel). Reuses state.proto's
|
|
2164
|
+
* recursive Block so no HCL is re-serialized on the wire.
|
|
2165
|
+
*/
|
|
2166
|
+
blocks: Block[];
|
|
2167
|
+
}
|
|
2168
|
+
declare const ProviderView: MessageFns<ProviderView>;
|
|
2169
|
+
interface InputDef {
|
|
2170
|
+
name: string;
|
|
2171
|
+
type: string;
|
|
2172
|
+
required: boolean;
|
|
2173
|
+
description: string;
|
|
2174
|
+
default_value: any | undefined;
|
|
2175
|
+
validation: ValidationBlock[];
|
|
2176
|
+
/** unset = default (false); explicit true is meaningful */
|
|
2177
|
+
ephemeral?: boolean | undefined;
|
|
2178
|
+
/** unset = default (true); explicit false is meaningful */
|
|
2179
|
+
nullable?: boolean | undefined;
|
|
2180
|
+
sensitive: boolean;
|
|
2181
|
+
}
|
|
2182
|
+
declare const InputDef: MessageFns<InputDef>;
|
|
2183
|
+
interface ValidationBlock {
|
|
2184
|
+
condition: string;
|
|
2185
|
+
error_message: string;
|
|
2186
|
+
}
|
|
2187
|
+
declare const ValidationBlock: MessageFns<ValidationBlock>;
|
|
2188
|
+
interface OutputDef {
|
|
2189
|
+
name: string;
|
|
2190
|
+
type: string;
|
|
2191
|
+
description: string;
|
|
2192
|
+
sensitive: boolean;
|
|
2193
|
+
depends_on: string[];
|
|
2194
|
+
}
|
|
2195
|
+
declare const OutputDef: MessageFns<OutputDef>;
|
|
2196
|
+
type LaceEngineDefinition = typeof LaceEngineDefinition;
|
|
2197
|
+
declare const LaceEngineDefinition: {
|
|
2198
|
+
readonly name: "LaceEngine";
|
|
2199
|
+
readonly fullName: "lace.engine.LaceEngine";
|
|
2200
|
+
readonly methods: {
|
|
2201
|
+
/** Lifecycle (global; no session_id) */
|
|
2202
|
+
readonly initialize: {
|
|
2203
|
+
readonly name: "Initialize";
|
|
2204
|
+
readonly requestType: typeof InitializeRequest;
|
|
2205
|
+
readonly requestStream: false;
|
|
2206
|
+
readonly responseType: typeof InitializeResponse;
|
|
2207
|
+
readonly responseStream: false;
|
|
2208
|
+
readonly options: {};
|
|
2209
|
+
};
|
|
2210
|
+
readonly shutdown: {
|
|
2211
|
+
readonly name: "Shutdown";
|
|
2212
|
+
readonly requestType: typeof Empty;
|
|
2213
|
+
readonly requestStream: false;
|
|
2214
|
+
readonly responseType: typeof ShutdownResponse;
|
|
2215
|
+
readonly responseStream: false;
|
|
2216
|
+
readonly options: {};
|
|
2217
|
+
};
|
|
2218
|
+
/**
|
|
2219
|
+
* Answers the credential this engine holds: the API key `lace login`
|
|
2220
|
+
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
2221
|
+
* login` or `lace logout` takes effect at once (empty when signed out),
|
|
2222
|
+
* beside the base URL of the API that key is for, the one the engine's
|
|
2223
|
+
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
2224
|
+
* that spawned the engine builds its own authenticated transport to
|
|
2225
|
+
* Lace's API from the two, for the chat package, and never restates
|
|
2226
|
+
* which API; the engine knows nothing of what the host does with them. Served, like every RPC,
|
|
2227
|
+
* only to the bearer of the handshake's session token, and never
|
|
2228
|
+
* forwarded across the webview bridge (`BRIDGE_METHODS`,
|
|
2229
|
+
* @lace-cloud/proto's engine-bridge.ts).
|
|
2230
|
+
*/
|
|
2231
|
+
readonly readCredential: {
|
|
2232
|
+
readonly name: "ReadCredential";
|
|
2233
|
+
readonly requestType: typeof Empty;
|
|
2234
|
+
readonly requestStream: false;
|
|
2235
|
+
readonly responseType: typeof ReadCredentialResponse;
|
|
2236
|
+
readonly responseStream: false;
|
|
2237
|
+
readonly options: {};
|
|
2238
|
+
};
|
|
2239
|
+
/**
|
|
2240
|
+
* Session lifecycle. Never fails on a refused source tf — a refused tf
|
|
2241
|
+
* opens the session source-refused (`BundleState.source_refused`) with
|
|
2242
|
+
* its diagnostics, rather than returning an RPC error.
|
|
2243
|
+
*/
|
|
2244
|
+
readonly sessionOpen: {
|
|
2245
|
+
readonly name: "SessionOpen";
|
|
2246
|
+
readonly requestType: typeof SessionOpenRequest;
|
|
2247
|
+
readonly requestStream: false;
|
|
2248
|
+
readonly responseType: typeof SessionOpenResponse;
|
|
2249
|
+
readonly responseStream: false;
|
|
2250
|
+
readonly options: {};
|
|
2251
|
+
};
|
|
2252
|
+
readonly testSessionOpen: {
|
|
2253
|
+
readonly name: "TestSessionOpen";
|
|
2254
|
+
readonly requestType: typeof TestSessionOpenRequest;
|
|
2255
|
+
readonly requestStream: false;
|
|
2256
|
+
readonly responseType: typeof SessionOpenResponse;
|
|
2257
|
+
readonly responseStream: false;
|
|
2258
|
+
readonly options: {};
|
|
2259
|
+
};
|
|
2260
|
+
/**
|
|
2261
|
+
* Writes the session's working IR to `state.lace`. The one RPC that
|
|
2262
|
+
* writes `state.lace`; never writes the source tf.
|
|
2263
|
+
*/
|
|
2264
|
+
readonly sessionSave: {
|
|
2265
|
+
readonly name: "SessionSave";
|
|
2266
|
+
readonly requestType: typeof SessionSaveRequest;
|
|
2267
|
+
readonly requestStream: false;
|
|
2268
|
+
readonly responseType: typeof SessionSaveResponse;
|
|
2269
|
+
readonly responseStream: false;
|
|
2270
|
+
readonly options: {};
|
|
2271
|
+
};
|
|
2272
|
+
readonly sessionClose: {
|
|
2273
|
+
readonly name: "SessionClose";
|
|
2274
|
+
readonly requestType: typeof SessionCloseRequest;
|
|
2275
|
+
readonly requestStream: false;
|
|
2276
|
+
readonly responseType: typeof SessionCloseResponse;
|
|
2277
|
+
readonly responseStream: false;
|
|
2278
|
+
readonly options: {};
|
|
2279
|
+
};
|
|
2280
|
+
/**
|
|
2281
|
+
* Writes the session's saved Bundle to HCL and re-bases the session
|
|
2282
|
+
* onto the written tree's hash. Refuses (FailedPrecondition) while the
|
|
2283
|
+
* session is ephemeral, holds the git guard, is source-refused, has an
|
|
2284
|
+
* open conflict, has unsaved edits, or is already running a Generate
|
|
2285
|
+
* (one at a time per session). Every Generate that reaches a session
|
|
2286
|
+
* publishes its events to that session's subscribers under its own
|
|
2287
|
+
* `generate_id`: its progress, and exactly one closing `generate_success`
|
|
2288
|
+
* or `generate_error` — a refusal included, which also fails the call.
|
|
2289
|
+
*/
|
|
2290
|
+
readonly sessionGenerate: {
|
|
2291
|
+
readonly name: "SessionGenerate";
|
|
2292
|
+
readonly requestType: typeof SessionGenerateRequest;
|
|
2293
|
+
readonly requestStream: false;
|
|
2294
|
+
readonly responseType: typeof SessionGenerateResponse;
|
|
2295
|
+
readonly responseStream: false;
|
|
2296
|
+
readonly options: {};
|
|
2297
|
+
};
|
|
2298
|
+
/**
|
|
2299
|
+
* Resolves an open conflict: keep the session's IR for this tree hash,
|
|
2300
|
+
* or reload the session from the tree.
|
|
2301
|
+
*/
|
|
2302
|
+
readonly sessionResolveConflict: {
|
|
2303
|
+
readonly name: "SessionResolveConflict";
|
|
2304
|
+
readonly requestType: typeof SessionResolveConflictRequest;
|
|
2305
|
+
readonly requestStream: false;
|
|
2306
|
+
readonly responseType: typeof SessionResolveConflictResponse;
|
|
2307
|
+
readonly responseStream: false;
|
|
2308
|
+
readonly options: {};
|
|
2309
|
+
};
|
|
2310
|
+
/**
|
|
2311
|
+
* Single unified mutation RPC. Every canvas mutation (connect, update
|
|
2312
|
+
* input, create group, undo, redo, place module from registry, ...)
|
|
2313
|
+
* travels through ApplyAction carrying one or more `Action` oneof
|
|
2314
|
+
* cases. Returns `BundleApplyResult { success, errors, created,
|
|
2315
|
+
* revision }`. A batch is applied whole or not at all: a batch any
|
|
2316
|
+
* action of which is refused is refused whole and publishes nothing; a
|
|
2317
|
+
* batch that changes nothing publishes nothing and adds no undo entry;
|
|
2318
|
+
* an applied batch is one undo entry and one `BundleState` frame,
|
|
2319
|
+
* published to every Subscribe stream on this session (including the
|
|
2320
|
+
* caller's) at the revision the result names. Refused
|
|
2321
|
+
* (FailedPrecondition) while the session is source-refused.
|
|
2322
|
+
*/
|
|
2323
|
+
readonly applyAction: {
|
|
2324
|
+
readonly name: "ApplyAction";
|
|
2325
|
+
readonly requestType: typeof ApplyActionRequest;
|
|
2326
|
+
readonly requestStream: false;
|
|
2327
|
+
readonly responseType: typeof BundleApplyResult;
|
|
2328
|
+
readonly responseStream: false;
|
|
2329
|
+
readonly options: {};
|
|
2330
|
+
};
|
|
2331
|
+
/**
|
|
2332
|
+
* Reads the output → input pairs the engine's matcher scores between the
|
|
2333
|
+
* instances of one module of a session's working IR: the pairs an
|
|
2334
|
+
* `auto_connect` chooses among, with the scores it chooses by. The
|
|
2335
|
+
* matching rules have this one home; a client that picks a wire for a
|
|
2336
|
+
* request in words ranks these and sends the pair as a `connect`.
|
|
2337
|
+
*/
|
|
2338
|
+
readonly readWiringCandidates: {
|
|
2339
|
+
readonly name: "ReadWiringCandidates";
|
|
2340
|
+
readonly requestType: typeof ReadWiringCandidatesRequest;
|
|
2341
|
+
readonly requestStream: false;
|
|
2342
|
+
readonly responseType: typeof ReadWiringCandidatesResponse;
|
|
2343
|
+
readonly responseStream: false;
|
|
2344
|
+
readonly options: {};
|
|
2345
|
+
};
|
|
2346
|
+
/**
|
|
2347
|
+
* Runs one CLI command in-process against a fresh command tree. The command's `-o json` output is the stream:
|
|
2348
|
+
* each top-level JSON value on stdout is one `json` event; `exit` is always last.
|
|
2349
|
+
*/
|
|
2350
|
+
readonly invoke: {
|
|
2351
|
+
readonly name: "Invoke";
|
|
2352
|
+
readonly requestType: typeof InvokeRequest;
|
|
2353
|
+
readonly requestStream: false;
|
|
2354
|
+
readonly responseType: typeof InvokeEvent;
|
|
2355
|
+
readonly responseStream: true;
|
|
2356
|
+
readonly options: {};
|
|
2357
|
+
};
|
|
2358
|
+
/** Cancels a live Invoke as an explicit user cancel (errUserCancel). A stream closed without this detaches. */
|
|
2359
|
+
readonly cancelInvoke: {
|
|
2360
|
+
readonly name: "CancelInvoke";
|
|
2361
|
+
readonly requestType: typeof CancelInvokeRequest;
|
|
2362
|
+
readonly requestStream: false;
|
|
2363
|
+
readonly responseType: typeof CancelInvokeResponse;
|
|
2364
|
+
readonly responseStream: false;
|
|
2365
|
+
readonly options: {};
|
|
2366
|
+
};
|
|
2367
|
+
/**
|
|
2368
|
+
* Server-push events scoped to one session. Yields `BundleStateEvent`
|
|
2369
|
+
* — full `BundleState` snapshots per session-state change, generate-phase
|
|
2370
|
+
* pass-throughs, and the result of every command that ran in the
|
|
2371
|
+
* session's root (`CommandResult`). Initial emission is the current
|
|
2372
|
+
* BundleState, which acts as the "subscribed" ready signal, followed by
|
|
2373
|
+
* the last `CommandResult` the session keeps per command path.
|
|
2374
|
+
*
|
|
2375
|
+
* Consumers (portal + extension canvas engines) project locally via
|
|
2376
|
+
* `@lace-cloud/proto`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
2377
|
+
* `arrangement` (node positions, group collapse/label) is consumer-owned
|
|
2378
|
+
* view state — it never travels over this RPC.
|
|
2379
|
+
*/
|
|
2380
|
+
readonly subscribe: {
|
|
2381
|
+
readonly name: "Subscribe";
|
|
2382
|
+
readonly requestType: typeof SubscribeRequest;
|
|
2383
|
+
readonly requestStream: false;
|
|
2384
|
+
readonly responseType: typeof BundleStateEvent;
|
|
2385
|
+
readonly responseStream: true;
|
|
2386
|
+
readonly options: {};
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2390
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
2391
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
2392
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
2393
|
+
} : Partial<T>;
|
|
2394
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
2395
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
2396
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
2397
|
+
} & {
|
|
2398
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
2399
|
+
};
|
|
2400
|
+
interface MessageFns<T> {
|
|
2401
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
2402
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
2403
|
+
fromJSON(object: any): T;
|
|
2404
|
+
toJSON(message: T): unknown;
|
|
2405
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
2406
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* Every path an overlay, panel or action binds — a bound path with no
|
|
2411
|
+
* golden is a failing test, not a silent gap.
|
|
2412
|
+
*/
|
|
2413
|
+
declare const SCHEMAS: {
|
|
2414
|
+
'module validate': z.ZodObject<{
|
|
2415
|
+
root: z.ZodOptional<z.ZodString>;
|
|
2416
|
+
treeHash: z.ZodOptional<z.ZodString>;
|
|
2417
|
+
verdict: z.ZodOptional<z.ZodEnum<{
|
|
2418
|
+
"already-lace-style": "already-lace-style";
|
|
2419
|
+
"representable-but-transpilable": "representable-but-transpilable";
|
|
2420
|
+
lossy: "lossy";
|
|
2421
|
+
}>>;
|
|
2422
|
+
residuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2423
|
+
construct: z.ZodString;
|
|
2424
|
+
subject: z.ZodString;
|
|
2425
|
+
file: z.ZodString;
|
|
2426
|
+
line: z.ZodNumber;
|
|
2427
|
+
code: z.ZodString;
|
|
2428
|
+
guidance: z.ZodString;
|
|
2429
|
+
}, z.core.$strip>>>;
|
|
2430
|
+
deviation: z.ZodOptional<z.ZodObject<{
|
|
2431
|
+
notCompositional: z.ZodBoolean;
|
|
2432
|
+
clusters: z.ZodArray<z.ZodUnknown>;
|
|
2433
|
+
residuals: z.ZodArray<z.ZodUnknown>;
|
|
2434
|
+
hasManagedBackend: z.ZodBoolean;
|
|
2435
|
+
backendFindings: z.ZodArray<z.ZodObject<{
|
|
2436
|
+
file: z.ZodString;
|
|
2437
|
+
line: z.ZodNumber;
|
|
2438
|
+
kind: z.ZodString;
|
|
2439
|
+
}, z.core.$strip>>;
|
|
2440
|
+
sharedLocalSource: z.ZodBoolean;
|
|
2441
|
+
sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
|
|
2442
|
+
uncomposable: z.ZodBoolean;
|
|
2443
|
+
uncomposableReason: z.ZodString;
|
|
2444
|
+
registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
|
|
2445
|
+
childNotLaceForm: z.ZodArray<z.ZodUnknown>;
|
|
2446
|
+
}, z.core.$strip>>;
|
|
2447
|
+
terraform: z.ZodOptional<z.ZodObject<{
|
|
2448
|
+
valid: z.ZodBoolean;
|
|
2449
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2450
|
+
path: z.ZodString;
|
|
2451
|
+
line: z.ZodNumber;
|
|
2452
|
+
column: z.ZodNumber;
|
|
2453
|
+
severity: z.ZodString;
|
|
2454
|
+
message: z.ZodString;
|
|
2455
|
+
}, z.core.$strip>>;
|
|
2456
|
+
}, z.core.$strip>>;
|
|
2457
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2458
|
+
address: z.ZodString;
|
|
2459
|
+
version: z.ZodString;
|
|
2460
|
+
treeHash: z.ZodString;
|
|
2461
|
+
}, z.core.$strip>>>;
|
|
2462
|
+
exitClass: z.ZodString;
|
|
2463
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2464
|
+
severity: z.ZodEnum<{
|
|
2465
|
+
error: "error";
|
|
2466
|
+
warning: "warning";
|
|
2467
|
+
info: "info";
|
|
2468
|
+
}>;
|
|
2469
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2470
|
+
message: z.ZodString;
|
|
2471
|
+
moduleKey: z.ZodOptional<z.ZodString>;
|
|
2472
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
2473
|
+
inputName: z.ZodOptional<z.ZodString>;
|
|
2474
|
+
file: z.ZodOptional<z.ZodString>;
|
|
2475
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
2476
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
2477
|
+
}, z.core.$strip>>;
|
|
2478
|
+
}, z.core.$strip>;
|
|
2479
|
+
'module convert': z.ZodObject<{
|
|
2480
|
+
changed: z.ZodBoolean;
|
|
2481
|
+
written: z.ZodArray<z.ZodString>;
|
|
2482
|
+
removed: z.ZodArray<z.ZodString>;
|
|
2483
|
+
validate: z.ZodObject<{
|
|
2484
|
+
root: z.ZodOptional<z.ZodString>;
|
|
2485
|
+
treeHash: z.ZodOptional<z.ZodString>;
|
|
2486
|
+
verdict: z.ZodOptional<z.ZodEnum<{
|
|
2487
|
+
"already-lace-style": "already-lace-style";
|
|
2488
|
+
"representable-but-transpilable": "representable-but-transpilable";
|
|
2489
|
+
lossy: "lossy";
|
|
2490
|
+
}>>;
|
|
2491
|
+
residuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2492
|
+
construct: z.ZodString;
|
|
2493
|
+
subject: z.ZodString;
|
|
2494
|
+
file: z.ZodString;
|
|
2495
|
+
line: z.ZodNumber;
|
|
2496
|
+
code: z.ZodString;
|
|
2497
|
+
guidance: z.ZodString;
|
|
2498
|
+
}, z.core.$strip>>>;
|
|
2499
|
+
deviation: z.ZodOptional<z.ZodObject<{
|
|
2500
|
+
notCompositional: z.ZodBoolean;
|
|
2501
|
+
clusters: z.ZodArray<z.ZodUnknown>;
|
|
2502
|
+
residuals: z.ZodArray<z.ZodUnknown>;
|
|
2503
|
+
hasManagedBackend: z.ZodBoolean;
|
|
2504
|
+
backendFindings: z.ZodArray<z.ZodObject<{
|
|
2505
|
+
file: z.ZodString;
|
|
2506
|
+
line: z.ZodNumber;
|
|
2507
|
+
kind: z.ZodString;
|
|
2508
|
+
}, z.core.$strip>>;
|
|
2509
|
+
sharedLocalSource: z.ZodBoolean;
|
|
2510
|
+
sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
|
|
2511
|
+
uncomposable: z.ZodBoolean;
|
|
2512
|
+
uncomposableReason: z.ZodString;
|
|
2513
|
+
registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
|
|
2514
|
+
childNotLaceForm: z.ZodArray<z.ZodUnknown>;
|
|
2515
|
+
}, z.core.$strip>>;
|
|
2516
|
+
terraform: z.ZodOptional<z.ZodObject<{
|
|
2517
|
+
valid: z.ZodBoolean;
|
|
2518
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2519
|
+
path: z.ZodString;
|
|
2520
|
+
line: z.ZodNumber;
|
|
2521
|
+
column: z.ZodNumber;
|
|
2522
|
+
severity: z.ZodString;
|
|
2523
|
+
message: z.ZodString;
|
|
2524
|
+
}, z.core.$strip>>;
|
|
2525
|
+
}, z.core.$strip>>;
|
|
2526
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2527
|
+
address: z.ZodString;
|
|
2528
|
+
version: z.ZodString;
|
|
2529
|
+
treeHash: z.ZodString;
|
|
2530
|
+
}, z.core.$strip>>>;
|
|
2531
|
+
exitClass: z.ZodString;
|
|
2532
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2533
|
+
severity: z.ZodEnum<{
|
|
2534
|
+
error: "error";
|
|
2535
|
+
warning: "warning";
|
|
2536
|
+
info: "info";
|
|
2537
|
+
}>;
|
|
2538
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2539
|
+
message: z.ZodString;
|
|
2540
|
+
moduleKey: z.ZodOptional<z.ZodString>;
|
|
2541
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
2542
|
+
inputName: z.ZodOptional<z.ZodString>;
|
|
2543
|
+
file: z.ZodOptional<z.ZodString>;
|
|
2544
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
2545
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
2546
|
+
}, z.core.$strip>>;
|
|
2547
|
+
}, z.core.$strip>;
|
|
2548
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2549
|
+
severity: z.ZodEnum<{
|
|
2550
|
+
error: "error";
|
|
2551
|
+
warning: "warning";
|
|
2552
|
+
info: "info";
|
|
2553
|
+
}>;
|
|
2554
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2555
|
+
message: z.ZodString;
|
|
2556
|
+
moduleKey: z.ZodOptional<z.ZodString>;
|
|
2557
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
2558
|
+
inputName: z.ZodOptional<z.ZodString>;
|
|
2559
|
+
file: z.ZodOptional<z.ZodString>;
|
|
2560
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
2561
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
2562
|
+
}, z.core.$strip>>;
|
|
2563
|
+
}, z.core.$strip>;
|
|
2564
|
+
'module fmt': z.ZodObject<{
|
|
2565
|
+
changed: z.ZodArray<z.ZodString>;
|
|
2566
|
+
}, z.core.$strip>;
|
|
2567
|
+
'module docs': z.ZodObject<{
|
|
2568
|
+
markdown: z.ZodString;
|
|
2569
|
+
}, z.core.$strip>;
|
|
2570
|
+
'module scan': z.ZodObject<{
|
|
2571
|
+
treeHash: z.ZodString;
|
|
2572
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2573
|
+
severity: z.ZodEnum<{
|
|
2574
|
+
error: "error";
|
|
2575
|
+
warning: "warning";
|
|
2576
|
+
info: "info";
|
|
2577
|
+
}>;
|
|
2578
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2579
|
+
message: z.ZodString;
|
|
2580
|
+
moduleKey: z.ZodOptional<z.ZodString>;
|
|
2581
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
2582
|
+
inputName: z.ZodOptional<z.ZodString>;
|
|
2583
|
+
file: z.ZodOptional<z.ZodString>;
|
|
2584
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
2585
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
2586
|
+
}, z.core.$strip>>;
|
|
2587
|
+
}, z.core.$strip>;
|
|
2588
|
+
'registry list': z.ZodObject<{
|
|
2589
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2590
|
+
id: z.ZodString;
|
|
2591
|
+
axis: z.ZodString;
|
|
2592
|
+
author: z.ZodString;
|
|
2593
|
+
name: z.ZodString;
|
|
2594
|
+
displayName: z.ZodString;
|
|
2595
|
+
version: z.ZodString;
|
|
2596
|
+
status: z.ZodString;
|
|
2597
|
+
visibility: z.ZodString;
|
|
2598
|
+
description: z.ZodString;
|
|
2599
|
+
categories: z.ZodArray<z.ZodString>;
|
|
2600
|
+
vendor: z.ZodNullable<z.ZodObject<{
|
|
2601
|
+
author: z.ZodString;
|
|
2602
|
+
displayName: z.ZodString;
|
|
2603
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
2604
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2605
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
2606
|
+
supportEmail: z.ZodNullable<z.ZodString>;
|
|
2607
|
+
verified: z.ZodBoolean;
|
|
2608
|
+
}, z.core.$strip>>;
|
|
2609
|
+
system: z.ZodString;
|
|
2610
|
+
sourceAddress: z.ZodString;
|
|
2611
|
+
publisherVerdict: z.ZodString;
|
|
2612
|
+
}, z.core.$strip>>;
|
|
2613
|
+
truncated: z.ZodBoolean;
|
|
2614
|
+
publishingGuideUrl: z.ZodString;
|
|
2615
|
+
}, z.core.$strip>;
|
|
2616
|
+
'registry get': z.ZodObject<{
|
|
2617
|
+
axis: z.ZodString;
|
|
2618
|
+
author: z.ZodString;
|
|
2619
|
+
name: z.ZodString;
|
|
2620
|
+
treeHash: z.ZodString;
|
|
2621
|
+
repo: z.ZodString;
|
|
2622
|
+
commit: z.ZodString;
|
|
2623
|
+
latest: z.ZodObject<{
|
|
2624
|
+
id: z.ZodString;
|
|
2625
|
+
axis: z.ZodString;
|
|
2626
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
2627
|
+
author: z.ZodString;
|
|
2628
|
+
name: z.ZodString;
|
|
2629
|
+
version: z.ZodString;
|
|
2630
|
+
orgId: z.ZodNullable<z.ZodString>;
|
|
2631
|
+
visibility: z.ZodString;
|
|
2632
|
+
ownership: z.ZodString;
|
|
2633
|
+
displayName: z.ZodString;
|
|
2634
|
+
description: z.ZodString;
|
|
2635
|
+
categories: z.ZodArray<z.ZodString>;
|
|
2636
|
+
readme: z.ZodNullable<z.ZodString>;
|
|
2637
|
+
vendor: z.ZodNullable<z.ZodObject<{
|
|
2638
|
+
author: z.ZodString;
|
|
2639
|
+
displayName: z.ZodString;
|
|
2640
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
2641
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2642
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
2643
|
+
supportEmail: z.ZodNullable<z.ZodString>;
|
|
2644
|
+
verified: z.ZodBoolean;
|
|
2645
|
+
}, z.core.$strip>>;
|
|
2646
|
+
status: z.ZodString;
|
|
2647
|
+
installCount: z.ZodNumber;
|
|
2648
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
2649
|
+
publishedBy: z.ZodNullable<z.ZodString>;
|
|
2650
|
+
createdAt: z.ZodString;
|
|
2651
|
+
updatedAt: z.ZodString;
|
|
2652
|
+
system: z.ZodNullable<z.ZodString>;
|
|
2653
|
+
sourceAddress: z.ZodNullable<z.ZodString>;
|
|
2654
|
+
sourceVersion: z.ZodNullable<z.ZodString>;
|
|
2655
|
+
treeHash: z.ZodNullable<z.ZodString>;
|
|
2656
|
+
publisherVerdict: z.ZodNullable<z.ZodString>;
|
|
2657
|
+
publisherModules: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
2658
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
2659
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
2660
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
2661
|
+
}, z.core.$strip>;
|
|
2662
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
2663
|
+
version: z.ZodString;
|
|
2664
|
+
status: z.ZodString;
|
|
2665
|
+
publishedAt: z.ZodString;
|
|
2666
|
+
}, z.core.$strip>>;
|
|
2667
|
+
}, z.core.$strip>;
|
|
2668
|
+
'registry describe': z.ZodObject<{
|
|
2669
|
+
author: z.ZodString;
|
|
2670
|
+
name: z.ZodString;
|
|
2671
|
+
version: z.ZodString;
|
|
2672
|
+
source: z.ZodString;
|
|
2673
|
+
treeHash: z.ZodString;
|
|
2674
|
+
verdict: z.ZodString;
|
|
2675
|
+
interface: z.ZodObject<{
|
|
2676
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
2677
|
+
name: z.ZodString;
|
|
2678
|
+
type: z.ZodString;
|
|
2679
|
+
required: z.ZodBoolean;
|
|
2680
|
+
description: z.ZodString;
|
|
2681
|
+
default: z.ZodNullable<z.ZodUnknown>;
|
|
2682
|
+
sensitive: z.ZodBoolean;
|
|
2683
|
+
}, z.core.$strip>>;
|
|
2684
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
2685
|
+
name: z.ZodString;
|
|
2686
|
+
description: z.ZodString;
|
|
2687
|
+
sensitive: z.ZodBoolean;
|
|
2688
|
+
}, z.core.$strip>>;
|
|
2689
|
+
}, z.core.$strip>;
|
|
2690
|
+
}, z.core.$strip>;
|
|
2691
|
+
'stack list': z.ZodObject<{
|
|
2692
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2693
|
+
id: z.ZodString;
|
|
2694
|
+
orgId: z.ZodString;
|
|
2695
|
+
teamId: z.ZodString;
|
|
2696
|
+
connectionId: z.ZodString;
|
|
2697
|
+
slug: z.ZodString;
|
|
2698
|
+
name: z.ZodString;
|
|
2699
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2700
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
2701
|
+
kind: z.ZodLiteral<"git">;
|
|
2702
|
+
repoUrl: z.ZodString;
|
|
2703
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2704
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2705
|
+
}, z.core.$strip>>;
|
|
2706
|
+
stateSerial: z.ZodNumber;
|
|
2707
|
+
stateLineage: z.ZodNullable<z.ZodString>;
|
|
2708
|
+
stateVersion: z.ZodNullable<z.ZodNumber>;
|
|
2709
|
+
stateLastWrittenAt: z.ZodNullable<z.ZodString>;
|
|
2710
|
+
lastAppliedRunId: z.ZodNullable<z.ZodString>;
|
|
2711
|
+
lastDriftScanAt: z.ZodNullable<z.ZodString>;
|
|
2712
|
+
lastDriftStatus: z.ZodNullable<z.ZodString>;
|
|
2713
|
+
lastDriftCount: z.ZodNumber;
|
|
2714
|
+
lastDriftStale: z.ZodBoolean;
|
|
2715
|
+
lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
2716
|
+
lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
|
|
2717
|
+
chaosLockedByRunId: z.ZodNullable<z.ZodString>;
|
|
2718
|
+
chaosLockedAt: z.ZodNullable<z.ZodString>;
|
|
2719
|
+
createdBy: z.ZodString;
|
|
2720
|
+
createdAt: z.ZodString;
|
|
2721
|
+
updatedAt: z.ZodString;
|
|
2722
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
2723
|
+
connection: z.ZodNullable<z.ZodObject<{
|
|
2724
|
+
name: z.ZodString;
|
|
2725
|
+
provider: z.ZodString;
|
|
2726
|
+
awsAccountId: z.ZodNullable<z.ZodString>;
|
|
2727
|
+
}, z.core.$strip>>;
|
|
2728
|
+
createdByName: z.ZodNullable<z.ZodString>;
|
|
2729
|
+
lastApply: z.ZodNullable<z.ZodObject<{
|
|
2730
|
+
runId: z.ZodString;
|
|
2731
|
+
bundleSnapshotId: z.ZodString;
|
|
2732
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
2733
|
+
initiatedByName: z.ZodNullable<z.ZodString>;
|
|
2734
|
+
}, z.core.$strip>>;
|
|
2735
|
+
}, z.core.$strip>>;
|
|
2736
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2737
|
+
hasMore: z.ZodBoolean;
|
|
2738
|
+
}, z.core.$strip>;
|
|
2739
|
+
'stack describe': z.ZodObject<{
|
|
2740
|
+
stack: z.ZodNullable<z.ZodObject<{
|
|
2741
|
+
id: z.ZodString;
|
|
2742
|
+
orgId: z.ZodString;
|
|
2743
|
+
teamId: z.ZodString;
|
|
2744
|
+
connectionId: z.ZodString;
|
|
2745
|
+
slug: z.ZodString;
|
|
2746
|
+
name: z.ZodString;
|
|
2747
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2748
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
2749
|
+
kind: z.ZodLiteral<"git">;
|
|
2750
|
+
repoUrl: z.ZodString;
|
|
2751
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
2752
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2753
|
+
}, z.core.$strip>>;
|
|
2754
|
+
stateSerial: z.ZodNumber;
|
|
2755
|
+
stateLineage: z.ZodNullable<z.ZodString>;
|
|
2756
|
+
stateVersion: z.ZodNullable<z.ZodNumber>;
|
|
2757
|
+
stateLastWrittenAt: z.ZodNullable<z.ZodString>;
|
|
2758
|
+
lastAppliedRunId: z.ZodNullable<z.ZodString>;
|
|
2759
|
+
lastDriftScanAt: z.ZodNullable<z.ZodString>;
|
|
2760
|
+
lastDriftStatus: z.ZodNullable<z.ZodString>;
|
|
2761
|
+
lastDriftCount: z.ZodNumber;
|
|
2762
|
+
lastDriftStale: z.ZodBoolean;
|
|
2763
|
+
lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
2764
|
+
lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
|
|
2765
|
+
chaosLockedByRunId: z.ZodNullable<z.ZodString>;
|
|
2766
|
+
chaosLockedAt: z.ZodNullable<z.ZodString>;
|
|
2767
|
+
createdBy: z.ZodString;
|
|
2768
|
+
createdAt: z.ZodString;
|
|
2769
|
+
updatedAt: z.ZodString;
|
|
2770
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
2771
|
+
connection: z.ZodNullable<z.ZodObject<{
|
|
2772
|
+
name: z.ZodString;
|
|
2773
|
+
provider: z.ZodString;
|
|
2774
|
+
awsAccountId: z.ZodNullable<z.ZodString>;
|
|
2775
|
+
}, z.core.$strip>>;
|
|
2776
|
+
createdByName: z.ZodNullable<z.ZodString>;
|
|
2777
|
+
lastApply: z.ZodNullable<z.ZodObject<{
|
|
2778
|
+
runId: z.ZodString;
|
|
2779
|
+
bundleSnapshotId: z.ZodString;
|
|
2780
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
2781
|
+
initiatedByName: z.ZodNullable<z.ZodString>;
|
|
2782
|
+
}, z.core.$strip>>;
|
|
2783
|
+
}, z.core.$strip>>;
|
|
2784
|
+
state: z.ZodNullable<z.ZodObject<{
|
|
2785
|
+
serial: z.ZodNumber;
|
|
2786
|
+
lineage: z.ZodString;
|
|
2787
|
+
terraformVersion: z.ZodString;
|
|
2788
|
+
resourceCount: z.ZodNumber;
|
|
2789
|
+
resourcesByType: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2790
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
2791
|
+
address: z.ZodString;
|
|
2792
|
+
type: z.ZodString;
|
|
2793
|
+
}, z.core.$strip>>;
|
|
2794
|
+
}, z.core.$strip>>;
|
|
2795
|
+
drift: z.ZodNullable<z.ZodObject<{
|
|
2796
|
+
stackId: z.ZodString;
|
|
2797
|
+
scannedAt: z.ZodString;
|
|
2798
|
+
driftStatus: z.ZodLiteral<"DRIFTED">;
|
|
2799
|
+
totalResources: z.ZodNumber;
|
|
2800
|
+
stateSerial: z.ZodNumber;
|
|
2801
|
+
driftedResources: z.ZodArray<z.ZodObject<{
|
|
2802
|
+
address: z.ZodString;
|
|
2803
|
+
type: z.ZodString;
|
|
2804
|
+
status: z.ZodString;
|
|
2805
|
+
details: z.ZodOptional<z.ZodString>;
|
|
2806
|
+
goldenAttributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2807
|
+
liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2808
|
+
diff: z.ZodArray<z.ZodObject<{
|
|
2809
|
+
path: z.ZodString;
|
|
2810
|
+
declared: z.ZodUnknown;
|
|
2811
|
+
detected: z.ZodUnknown;
|
|
2812
|
+
}, z.core.$strip>>;
|
|
2813
|
+
findingId: z.ZodNullable<z.ZodString>;
|
|
2814
|
+
}, z.core.$strip>>;
|
|
2815
|
+
}, z.core.$strip>>;
|
|
2816
|
+
}, z.core.$strip>;
|
|
2817
|
+
'policy list': z.ZodObject<{
|
|
2818
|
+
stack: z.ZodNullable<z.ZodString>;
|
|
2819
|
+
policies: z.ZodArray<z.ZodObject<{
|
|
2820
|
+
policyId: z.ZodString;
|
|
2821
|
+
name: z.ZodString;
|
|
2822
|
+
mode: z.ZodString;
|
|
2823
|
+
approvalMode: z.ZodNullable<z.ZodString>;
|
|
2824
|
+
ruleIds: z.ZodArray<z.ZodString>;
|
|
2825
|
+
}, z.core.$strip>>;
|
|
2826
|
+
}, z.core.$strip>;
|
|
2827
|
+
'run list': z.ZodObject<{
|
|
2828
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2829
|
+
id: z.ZodString;
|
|
2830
|
+
stackId: z.ZodString;
|
|
2831
|
+
orgId: z.ZodString;
|
|
2832
|
+
teamId: z.ZodString;
|
|
2833
|
+
kind: z.ZodString;
|
|
2834
|
+
status: z.ZodString;
|
|
2835
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
2836
|
+
initiatedVia: z.ZodString;
|
|
2837
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
2838
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
2839
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
2840
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
2841
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
2842
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
2843
|
+
sourceOverride: z.ZodBoolean;
|
|
2844
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
2845
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
2846
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
2847
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
2848
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
2849
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
2850
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
2851
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
2852
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
2853
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
2854
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
2855
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
2856
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
2857
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
2858
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
2859
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
2860
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
2861
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
2862
|
+
createdAt: z.ZodString;
|
|
2863
|
+
updatedAt: z.ZodString;
|
|
2864
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2865
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
2866
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
2867
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2868
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2869
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2870
|
+
}, z.core.$strip>>;
|
|
2871
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2872
|
+
hasMore: z.ZodBoolean;
|
|
2873
|
+
}, z.core.$strip>;
|
|
2874
|
+
'chaos list': z.ZodObject<{
|
|
2875
|
+
stackId: z.ZodString;
|
|
2876
|
+
connectionBlock: z.ZodNullable<z.ZodUnknown>;
|
|
2877
|
+
experiments: z.ZodArray<z.ZodObject<{
|
|
2878
|
+
bindingId: z.ZodString;
|
|
2879
|
+
name: z.ZodString;
|
|
2880
|
+
assertionCount: z.ZodNumber;
|
|
2881
|
+
engine: z.ZodString;
|
|
2882
|
+
}, z.core.$strip>>;
|
|
2883
|
+
}, z.core.$strip>;
|
|
2884
|
+
'stack preview': z.ZodObject<{
|
|
2885
|
+
stack: z.ZodObject<{
|
|
2886
|
+
id: z.ZodString;
|
|
2887
|
+
slug: z.ZodString;
|
|
2888
|
+
}, z.core.$strip>;
|
|
2889
|
+
treeHash: z.ZodString;
|
|
2890
|
+
plan: z.ZodObject<{
|
|
2891
|
+
summary: z.ZodObject<{
|
|
2892
|
+
resourceAdd: z.ZodNumber;
|
|
2893
|
+
resourceChange: z.ZodNumber;
|
|
2894
|
+
resourceDestroy: z.ZodNumber;
|
|
2895
|
+
}, z.core.$strip>;
|
|
2896
|
+
human: z.ZodString;
|
|
2897
|
+
}, z.core.$strip>;
|
|
2898
|
+
policy: z.ZodNullable<z.ZodObject<{
|
|
2899
|
+
mode: z.ZodString;
|
|
2900
|
+
policyId: z.ZodString;
|
|
2901
|
+
ruleId: z.ZodString;
|
|
2902
|
+
rulesFired: z.ZodArray<z.ZodString>;
|
|
2903
|
+
reason: z.ZodString;
|
|
2904
|
+
approvalMode: z.ZodNullable<z.ZodString>;
|
|
2905
|
+
isAuthoringTimePreview: z.ZodBoolean;
|
|
2906
|
+
}, z.core.$strip>>;
|
|
2907
|
+
}, z.core.$strip>;
|
|
2908
|
+
'stack apply': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2909
|
+
type: z.ZodLiteral<"log">;
|
|
2910
|
+
text: z.ZodString;
|
|
2911
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2912
|
+
type: z.ZodLiteral<"phase">;
|
|
2913
|
+
name: z.ZodString;
|
|
2914
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2915
|
+
type: z.ZodLiteral<"gate">;
|
|
2916
|
+
resolution: z.ZodObject<{
|
|
2917
|
+
mode: z.ZodString;
|
|
2918
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2919
|
+
}, z.core.$strip>;
|
|
2920
|
+
changeRequest: z.ZodNullable<z.ZodObject<{
|
|
2921
|
+
id: z.ZodString;
|
|
2922
|
+
orgId: z.ZodString;
|
|
2923
|
+
teamId: z.ZodString;
|
|
2924
|
+
runId: z.ZodString;
|
|
2925
|
+
bindingId: z.ZodNullable<z.ZodString>;
|
|
2926
|
+
invocationId: z.ZodNullable<z.ZodString>;
|
|
2927
|
+
state: z.ZodString;
|
|
2928
|
+
approverUserId: z.ZodNullable<z.ZodString>;
|
|
2929
|
+
approvalChain: z.ZodUnknown;
|
|
2930
|
+
emergencyApproval: z.ZodBoolean;
|
|
2931
|
+
narrativeArtifactId: z.ZodNullable<z.ZodString>;
|
|
2932
|
+
policyResolution: z.ZodUnknown;
|
|
2933
|
+
externalSystemId: z.ZodNullable<z.ZodString>;
|
|
2934
|
+
externalRef: z.ZodNullable<z.ZodString>;
|
|
2935
|
+
idempotencyKey: z.ZodNullable<z.ZodString>;
|
|
2936
|
+
lastReconciledAt: z.ZodNullable<z.ZodString>;
|
|
2937
|
+
submittedByUserId: z.ZodNullable<z.ZodString>;
|
|
2938
|
+
submittedAt: z.ZodNullable<z.ZodString>;
|
|
2939
|
+
createdAt: z.ZodString;
|
|
2940
|
+
updatedAt: z.ZodString;
|
|
2941
|
+
}, z.core.$strip>>;
|
|
2942
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2943
|
+
type: z.ZodLiteral<"result">;
|
|
2944
|
+
run: z.ZodObject<{
|
|
2945
|
+
id: z.ZodString;
|
|
2946
|
+
stackId: z.ZodString;
|
|
2947
|
+
orgId: z.ZodString;
|
|
2948
|
+
teamId: z.ZodString;
|
|
2949
|
+
kind: z.ZodString;
|
|
2950
|
+
status: z.ZodString;
|
|
2951
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
2952
|
+
initiatedVia: z.ZodString;
|
|
2953
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
2954
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
2955
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
2956
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
2957
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
2958
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
2959
|
+
sourceOverride: z.ZodBoolean;
|
|
2960
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
2961
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
2962
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
2963
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
2964
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
2965
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
2966
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
2967
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
2968
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
2969
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
2970
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
2971
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
2972
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
2973
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
2974
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
2975
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
2976
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
2977
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
2978
|
+
createdAt: z.ZodString;
|
|
2979
|
+
updatedAt: z.ZodString;
|
|
2980
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2981
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
2982
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
2983
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2984
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2985
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2986
|
+
}, z.core.$strip>;
|
|
2987
|
+
summary: z.ZodObject<{
|
|
2988
|
+
resourceAdd: z.ZodNumber;
|
|
2989
|
+
resourceChange: z.ZodNumber;
|
|
2990
|
+
resourceDestroy: z.ZodNumber;
|
|
2991
|
+
}, z.core.$strip>;
|
|
2992
|
+
workspaceDir: z.ZodString;
|
|
2993
|
+
error: z.ZodNullable<z.ZodString>;
|
|
2994
|
+
}, z.core.$strip>], "type">;
|
|
2995
|
+
'stack destroy': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2996
|
+
type: z.ZodLiteral<"log">;
|
|
2997
|
+
text: z.ZodString;
|
|
2998
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2999
|
+
type: z.ZodLiteral<"phase">;
|
|
3000
|
+
name: z.ZodString;
|
|
3001
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3002
|
+
type: z.ZodLiteral<"gate">;
|
|
3003
|
+
resolution: z.ZodObject<{
|
|
3004
|
+
mode: z.ZodString;
|
|
3005
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3006
|
+
}, z.core.$strip>;
|
|
3007
|
+
changeRequest: z.ZodNullable<z.ZodObject<{
|
|
3008
|
+
id: z.ZodString;
|
|
3009
|
+
orgId: z.ZodString;
|
|
3010
|
+
teamId: z.ZodString;
|
|
3011
|
+
runId: z.ZodString;
|
|
3012
|
+
bindingId: z.ZodNullable<z.ZodString>;
|
|
3013
|
+
invocationId: z.ZodNullable<z.ZodString>;
|
|
3014
|
+
state: z.ZodString;
|
|
3015
|
+
approverUserId: z.ZodNullable<z.ZodString>;
|
|
3016
|
+
approvalChain: z.ZodUnknown;
|
|
3017
|
+
emergencyApproval: z.ZodBoolean;
|
|
3018
|
+
narrativeArtifactId: z.ZodNullable<z.ZodString>;
|
|
3019
|
+
policyResolution: z.ZodUnknown;
|
|
3020
|
+
externalSystemId: z.ZodNullable<z.ZodString>;
|
|
3021
|
+
externalRef: z.ZodNullable<z.ZodString>;
|
|
3022
|
+
idempotencyKey: z.ZodNullable<z.ZodString>;
|
|
3023
|
+
lastReconciledAt: z.ZodNullable<z.ZodString>;
|
|
3024
|
+
submittedByUserId: z.ZodNullable<z.ZodString>;
|
|
3025
|
+
submittedAt: z.ZodNullable<z.ZodString>;
|
|
3026
|
+
createdAt: z.ZodString;
|
|
3027
|
+
updatedAt: z.ZodString;
|
|
3028
|
+
}, z.core.$strip>>;
|
|
3029
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3030
|
+
type: z.ZodLiteral<"result">;
|
|
3031
|
+
run: z.ZodObject<{
|
|
3032
|
+
id: z.ZodString;
|
|
3033
|
+
stackId: z.ZodString;
|
|
3034
|
+
orgId: z.ZodString;
|
|
3035
|
+
teamId: z.ZodString;
|
|
3036
|
+
kind: z.ZodString;
|
|
3037
|
+
status: z.ZodString;
|
|
3038
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
3039
|
+
initiatedVia: z.ZodString;
|
|
3040
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
3041
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
3042
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
3043
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
3044
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
3045
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
3046
|
+
sourceOverride: z.ZodBoolean;
|
|
3047
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
3048
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
3049
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
3050
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
3051
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
3052
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
3053
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
3054
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
3055
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
3056
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
3057
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
3058
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
3059
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
3060
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
3061
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
3062
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
3063
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
3064
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
3065
|
+
createdAt: z.ZodString;
|
|
3066
|
+
updatedAt: z.ZodString;
|
|
3067
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3068
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
3069
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
3070
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3071
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3072
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3073
|
+
}, z.core.$strip>;
|
|
3074
|
+
summary: z.ZodObject<{
|
|
3075
|
+
resourceAdd: z.ZodNumber;
|
|
3076
|
+
resourceChange: z.ZodNumber;
|
|
3077
|
+
resourceDestroy: z.ZodNumber;
|
|
3078
|
+
}, z.core.$strip>;
|
|
3079
|
+
workspaceDir: z.ZodString;
|
|
3080
|
+
error: z.ZodNullable<z.ZodString>;
|
|
3081
|
+
}, z.core.$strip>], "type">;
|
|
3082
|
+
'stack scan': z.ZodObject<{
|
|
3083
|
+
triggered: z.ZodBoolean;
|
|
3084
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3085
|
+
settled: z.ZodNullable<z.ZodObject<{
|
|
3086
|
+
driftStatus: z.ZodString;
|
|
3087
|
+
driftCount: z.ZodNumber;
|
|
3088
|
+
scannedAt: z.ZodString;
|
|
3089
|
+
undeterminedReason: z.ZodNullable<z.ZodString>;
|
|
3090
|
+
drift: z.ZodNullable<z.ZodObject<{
|
|
3091
|
+
stackId: z.ZodString;
|
|
3092
|
+
scannedAt: z.ZodString;
|
|
3093
|
+
driftStatus: z.ZodLiteral<"DRIFTED">;
|
|
3094
|
+
totalResources: z.ZodNumber;
|
|
3095
|
+
stateSerial: z.ZodNumber;
|
|
3096
|
+
driftedResources: z.ZodArray<z.ZodObject<{
|
|
3097
|
+
address: z.ZodString;
|
|
3098
|
+
type: z.ZodString;
|
|
3099
|
+
status: z.ZodString;
|
|
3100
|
+
details: z.ZodOptional<z.ZodString>;
|
|
3101
|
+
goldenAttributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3102
|
+
liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3103
|
+
diff: z.ZodArray<z.ZodObject<{
|
|
3104
|
+
path: z.ZodString;
|
|
3105
|
+
declared: z.ZodUnknown;
|
|
3106
|
+
detected: z.ZodUnknown;
|
|
3107
|
+
}, z.core.$strip>>;
|
|
3108
|
+
findingId: z.ZodNullable<z.ZodString>;
|
|
3109
|
+
}, z.core.$strip>>;
|
|
3110
|
+
}, z.core.$strip>>;
|
|
3111
|
+
}, z.core.$strip>>;
|
|
3112
|
+
}, z.core.$strip>;
|
|
3113
|
+
'stack create': z.ZodObject<{
|
|
3114
|
+
id: z.ZodString;
|
|
3115
|
+
orgId: z.ZodString;
|
|
3116
|
+
teamId: z.ZodString;
|
|
3117
|
+
connectionId: z.ZodString;
|
|
3118
|
+
slug: z.ZodString;
|
|
3119
|
+
name: z.ZodString;
|
|
3120
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3121
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
3122
|
+
kind: z.ZodLiteral<"git">;
|
|
3123
|
+
repoUrl: z.ZodString;
|
|
3124
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
3125
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3126
|
+
}, z.core.$strip>>;
|
|
3127
|
+
stateSerial: z.ZodNumber;
|
|
3128
|
+
stateLineage: z.ZodNullable<z.ZodString>;
|
|
3129
|
+
stateVersion: z.ZodNullable<z.ZodNumber>;
|
|
3130
|
+
stateLastWrittenAt: z.ZodNullable<z.ZodString>;
|
|
3131
|
+
lastAppliedRunId: z.ZodNullable<z.ZodString>;
|
|
3132
|
+
lastDriftScanAt: z.ZodNullable<z.ZodString>;
|
|
3133
|
+
lastDriftStatus: z.ZodNullable<z.ZodString>;
|
|
3134
|
+
lastDriftCount: z.ZodNumber;
|
|
3135
|
+
lastDriftStale: z.ZodBoolean;
|
|
3136
|
+
lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
3137
|
+
lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
|
|
3138
|
+
chaosLockedByRunId: z.ZodNullable<z.ZodString>;
|
|
3139
|
+
chaosLockedAt: z.ZodNullable<z.ZodString>;
|
|
3140
|
+
createdBy: z.ZodString;
|
|
3141
|
+
createdAt: z.ZodString;
|
|
3142
|
+
updatedAt: z.ZodString;
|
|
3143
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
3144
|
+
connection: z.ZodNullable<z.ZodObject<{
|
|
3145
|
+
name: z.ZodString;
|
|
3146
|
+
provider: z.ZodString;
|
|
3147
|
+
awsAccountId: z.ZodNullable<z.ZodString>;
|
|
3148
|
+
}, z.core.$strip>>;
|
|
3149
|
+
createdByName: z.ZodNullable<z.ZodString>;
|
|
3150
|
+
lastApply: z.ZodNullable<z.ZodObject<{
|
|
3151
|
+
runId: z.ZodString;
|
|
3152
|
+
bundleSnapshotId: z.ZodString;
|
|
3153
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
3154
|
+
initiatedByName: z.ZodNullable<z.ZodString>;
|
|
3155
|
+
}, z.core.$strip>>;
|
|
3156
|
+
}, z.core.$strip>;
|
|
3157
|
+
'stack import': z.ZodObject<{
|
|
3158
|
+
stack: z.ZodObject<{
|
|
3159
|
+
id: z.ZodString;
|
|
3160
|
+
slug: z.ZodString;
|
|
3161
|
+
}, z.core.$strip>;
|
|
3162
|
+
written: z.ZodArray<z.ZodString>;
|
|
3163
|
+
importBlocks: z.ZodNumber;
|
|
3164
|
+
importResiduals: z.ZodArray<z.ZodUnknown>;
|
|
3165
|
+
validate: z.ZodObject<{
|
|
3166
|
+
root: z.ZodOptional<z.ZodString>;
|
|
3167
|
+
treeHash: z.ZodOptional<z.ZodString>;
|
|
3168
|
+
verdict: z.ZodOptional<z.ZodEnum<{
|
|
3169
|
+
"already-lace-style": "already-lace-style";
|
|
3170
|
+
"representable-but-transpilable": "representable-but-transpilable";
|
|
3171
|
+
lossy: "lossy";
|
|
3172
|
+
}>>;
|
|
3173
|
+
residuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3174
|
+
construct: z.ZodString;
|
|
3175
|
+
subject: z.ZodString;
|
|
3176
|
+
file: z.ZodString;
|
|
3177
|
+
line: z.ZodNumber;
|
|
3178
|
+
code: z.ZodString;
|
|
3179
|
+
guidance: z.ZodString;
|
|
3180
|
+
}, z.core.$strip>>>;
|
|
3181
|
+
deviation: z.ZodOptional<z.ZodObject<{
|
|
3182
|
+
notCompositional: z.ZodBoolean;
|
|
3183
|
+
clusters: z.ZodArray<z.ZodUnknown>;
|
|
3184
|
+
residuals: z.ZodArray<z.ZodUnknown>;
|
|
3185
|
+
hasManagedBackend: z.ZodBoolean;
|
|
3186
|
+
backendFindings: z.ZodArray<z.ZodObject<{
|
|
3187
|
+
file: z.ZodString;
|
|
3188
|
+
line: z.ZodNumber;
|
|
3189
|
+
kind: z.ZodString;
|
|
3190
|
+
}, z.core.$strip>>;
|
|
3191
|
+
sharedLocalSource: z.ZodBoolean;
|
|
3192
|
+
sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
|
|
3193
|
+
uncomposable: z.ZodBoolean;
|
|
3194
|
+
uncomposableReason: z.ZodString;
|
|
3195
|
+
registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
|
|
3196
|
+
childNotLaceForm: z.ZodArray<z.ZodUnknown>;
|
|
3197
|
+
}, z.core.$strip>>;
|
|
3198
|
+
terraform: z.ZodOptional<z.ZodObject<{
|
|
3199
|
+
valid: z.ZodBoolean;
|
|
3200
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
3201
|
+
path: z.ZodString;
|
|
3202
|
+
line: z.ZodNumber;
|
|
3203
|
+
column: z.ZodNumber;
|
|
3204
|
+
severity: z.ZodString;
|
|
3205
|
+
message: z.ZodString;
|
|
3206
|
+
}, z.core.$strip>>;
|
|
3207
|
+
}, z.core.$strip>>;
|
|
3208
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3209
|
+
address: z.ZodString;
|
|
3210
|
+
version: z.ZodString;
|
|
3211
|
+
treeHash: z.ZodString;
|
|
3212
|
+
}, z.core.$strip>>>;
|
|
3213
|
+
exitClass: z.ZodString;
|
|
3214
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
3215
|
+
severity: z.ZodEnum<{
|
|
3216
|
+
error: "error";
|
|
3217
|
+
warning: "warning";
|
|
3218
|
+
info: "info";
|
|
3219
|
+
}>;
|
|
3220
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3221
|
+
message: z.ZodString;
|
|
3222
|
+
moduleKey: z.ZodOptional<z.ZodString>;
|
|
3223
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
3224
|
+
inputName: z.ZodOptional<z.ZodString>;
|
|
3225
|
+
file: z.ZodOptional<z.ZodString>;
|
|
3226
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
3227
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
3228
|
+
}, z.core.$strip>>;
|
|
3229
|
+
}, z.core.$strip>;
|
|
3230
|
+
}, z.core.$strip>;
|
|
3231
|
+
'run get': z.ZodObject<{
|
|
3232
|
+
id: z.ZodString;
|
|
3233
|
+
stackId: z.ZodString;
|
|
3234
|
+
orgId: z.ZodString;
|
|
3235
|
+
teamId: z.ZodString;
|
|
3236
|
+
kind: z.ZodString;
|
|
3237
|
+
status: z.ZodString;
|
|
3238
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
3239
|
+
initiatedVia: z.ZodString;
|
|
3240
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
3241
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
3242
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
3243
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
3244
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
3245
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
3246
|
+
sourceOverride: z.ZodBoolean;
|
|
3247
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
3248
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
3249
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
3250
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
3251
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
3252
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
3253
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
3254
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
3255
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
3256
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
3257
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
3258
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
3259
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
3260
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
3261
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
3262
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
3263
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
3264
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
3265
|
+
createdAt: z.ZodString;
|
|
3266
|
+
updatedAt: z.ZodString;
|
|
3267
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3268
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
3269
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
3270
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3271
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3272
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3273
|
+
}, z.core.$strip>;
|
|
3274
|
+
'run plan': z.ZodObject<{
|
|
3275
|
+
runId: z.ZodString;
|
|
3276
|
+
status: z.ZodNullable<z.ZodString>;
|
|
3277
|
+
summary: z.ZodNullable<z.ZodObject<{
|
|
3278
|
+
resourceAdd: z.ZodNumber;
|
|
3279
|
+
resourceChange: z.ZodNumber;
|
|
3280
|
+
resourceDestroy: z.ZodNumber;
|
|
3281
|
+
}, z.core.$strip>>;
|
|
3282
|
+
planHuman: z.ZodNullable<z.ZodObject<{
|
|
3283
|
+
url: z.ZodString;
|
|
3284
|
+
key: z.ZodString;
|
|
3285
|
+
}, z.core.$strip>>;
|
|
3286
|
+
}, z.core.$strip>;
|
|
3287
|
+
'run cancel': z.ZodObject<{
|
|
3288
|
+
id: z.ZodString;
|
|
3289
|
+
stackId: z.ZodString;
|
|
3290
|
+
orgId: z.ZodString;
|
|
3291
|
+
teamId: z.ZodString;
|
|
3292
|
+
kind: z.ZodString;
|
|
3293
|
+
status: z.ZodString;
|
|
3294
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
3295
|
+
initiatedVia: z.ZodString;
|
|
3296
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
3297
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
3298
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
3299
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
3300
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
3301
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
3302
|
+
sourceOverride: z.ZodBoolean;
|
|
3303
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
3304
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
3305
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
3306
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
3307
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
3308
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
3309
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
3310
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
3311
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
3312
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
3313
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
3314
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
3315
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
3316
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
3317
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
3318
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
3319
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
3320
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
3321
|
+
createdAt: z.ZodString;
|
|
3322
|
+
updatedAt: z.ZodString;
|
|
3323
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3324
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
3325
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
3326
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3327
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3328
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3329
|
+
}, z.core.$strip>;
|
|
3330
|
+
'run logs': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3331
|
+
type: z.ZodLiteral<"log">;
|
|
3332
|
+
text: z.ZodString;
|
|
3333
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3334
|
+
type: z.ZodLiteral<"result">;
|
|
3335
|
+
status: z.ZodNullable<z.ZodString>;
|
|
3336
|
+
}, z.core.$strip>], "type">;
|
|
3337
|
+
whoami: z.ZodObject<{
|
|
3338
|
+
organization: z.ZodNullable<z.ZodString>;
|
|
3339
|
+
user: z.ZodObject<{
|
|
3340
|
+
email: z.ZodString;
|
|
3341
|
+
id: z.ZodString;
|
|
3342
|
+
name: z.ZodString;
|
|
3343
|
+
}, z.core.$strip>;
|
|
3344
|
+
}, z.core.$strip>;
|
|
3345
|
+
'org list': z.ZodObject<{
|
|
3346
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3347
|
+
slug: z.ZodString;
|
|
3348
|
+
name: z.ZodString;
|
|
3349
|
+
role: z.ZodString;
|
|
3350
|
+
}, z.core.$strip>>;
|
|
3351
|
+
}, z.core.$strip>;
|
|
3352
|
+
'org current': z.ZodUnion<readonly [z.ZodObject<{
|
|
3353
|
+
slug: z.ZodString;
|
|
3354
|
+
source: z.ZodEnum<{
|
|
3355
|
+
config: "config";
|
|
3356
|
+
flag: "flag";
|
|
3357
|
+
env: "env";
|
|
3358
|
+
}>;
|
|
3359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3360
|
+
slug: z.ZodNull;
|
|
3361
|
+
source: z.ZodNull;
|
|
3362
|
+
}, z.core.$strip>]>;
|
|
3363
|
+
'org use': z.ZodObject<{
|
|
3364
|
+
organization: z.ZodString;
|
|
3365
|
+
team: z.ZodNullable<z.ZodString>;
|
|
3366
|
+
}, z.core.$strip>;
|
|
3367
|
+
'team list': z.ZodObject<{
|
|
3368
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3369
|
+
id: z.ZodString;
|
|
3370
|
+
orgId: z.ZodString;
|
|
3371
|
+
name: z.ZodString;
|
|
3372
|
+
slug: z.ZodString;
|
|
3373
|
+
description: z.ZodString;
|
|
3374
|
+
createdBy: z.ZodString;
|
|
3375
|
+
createdAt: z.ZodString;
|
|
3376
|
+
updatedAt: z.ZodString;
|
|
3377
|
+
role: z.ZodString;
|
|
3378
|
+
memberCount: z.ZodNumber;
|
|
3379
|
+
}, z.core.$strip>>;
|
|
3380
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
3381
|
+
hasMore: z.ZodBoolean;
|
|
3382
|
+
createUrl: z.ZodString;
|
|
3383
|
+
}, z.core.$strip>;
|
|
3384
|
+
'team current': z.ZodUnion<readonly [z.ZodObject<{
|
|
3385
|
+
slug: z.ZodString;
|
|
3386
|
+
source: z.ZodEnum<{
|
|
3387
|
+
config: "config";
|
|
3388
|
+
flag: "flag";
|
|
3389
|
+
env: "env";
|
|
3390
|
+
}>;
|
|
3391
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3392
|
+
slug: z.ZodNull;
|
|
3393
|
+
source: z.ZodNull;
|
|
3394
|
+
}, z.core.$strip>]>;
|
|
3395
|
+
'team use': z.ZodObject<{
|
|
3396
|
+
organization: z.ZodString;
|
|
3397
|
+
team: z.ZodNullable<z.ZodString>;
|
|
3398
|
+
}, z.core.$strip>;
|
|
3399
|
+
'connection list': z.ZodObject<{
|
|
3400
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3401
|
+
id: z.ZodString;
|
|
3402
|
+
name: z.ZodString;
|
|
3403
|
+
provider_type: z.ZodString;
|
|
3404
|
+
status: z.ZodString;
|
|
3405
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
3406
|
+
created_at: z.ZodString;
|
|
3407
|
+
updated_at: z.ZodString;
|
|
3408
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3409
|
+
}, z.core.$strip>>;
|
|
3410
|
+
createUrl: z.ZodString;
|
|
3411
|
+
}, z.core.$strip>;
|
|
3412
|
+
login: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3413
|
+
type: z.ZodLiteral<"code">;
|
|
3414
|
+
code: z.ZodString;
|
|
3415
|
+
verificationUrl: z.ZodOptional<z.ZodString>;
|
|
3416
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3417
|
+
type: z.ZodLiteral<"url">;
|
|
3418
|
+
url: z.ZodString;
|
|
3419
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3420
|
+
type: z.ZodLiteral<"email_sent">;
|
|
3421
|
+
email: z.ZodString;
|
|
3422
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3423
|
+
type: z.ZodLiteral<"result">;
|
|
3424
|
+
user: z.ZodObject<{
|
|
3425
|
+
id: z.ZodString;
|
|
3426
|
+
email: z.ZodString;
|
|
3427
|
+
name: z.ZodString;
|
|
3428
|
+
}, z.core.$strip>;
|
|
3429
|
+
}, z.core.$strip>], "type">;
|
|
3430
|
+
logout: z.ZodObject<{
|
|
3431
|
+
loggedOut: z.ZodBoolean;
|
|
3432
|
+
}, z.core.$strip>;
|
|
3433
|
+
};
|
|
3434
|
+
type BoundPath = keyof typeof SCHEMAS;
|
|
3435
|
+
declare function isBoundPath(path: string): path is BoundPath;
|
|
3436
|
+
type JsonOf<P> = P extends BoundPath ? z.infer<(typeof SCHEMAS)[P]> : unknown;
|
|
3437
|
+
declare function parseBound<P extends BoundPath>(path: P, data: unknown): JsonOf<P>;
|
|
3438
|
+
declare const REASON_PREFIX = "REASON_";
|
|
3439
|
+
type WireSpelling<Name> = Name extends `${typeof REASON_PREFIX}${infer Rest}` ? Lowercase<Rest> : never;
|
|
3440
|
+
type LaceReason = WireSpelling<keyof typeof Reason>;
|
|
3441
|
+
declare function reasonWire(reason: Reason): string;
|
|
3442
|
+
declare const commandFailureSchema: z.ZodObject<{
|
|
3443
|
+
reason: z.ZodCustom<LaceReason, LaceReason>;
|
|
3444
|
+
message: z.ZodString;
|
|
3445
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3446
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
3447
|
+
apiCode: z.ZodOptional<z.ZodString>;
|
|
3448
|
+
}, z.core.$strict>;
|
|
3449
|
+
type CommandFailure = z.infer<typeof commandFailureSchema>;
|
|
3450
|
+
declare function carriesFailure(data: unknown): boolean;
|
|
3451
|
+
declare function parseCommandFailure(data: unknown): CommandFailure;
|
|
3452
|
+
|
|
3453
|
+
type SourceConflict = {
|
|
3454
|
+
baseTreeHash: string;
|
|
3455
|
+
treeHash: string;
|
|
3456
|
+
};
|
|
3457
|
+
type CanvasSource = {
|
|
3458
|
+
bundle: Bundle;
|
|
3459
|
+
canUndo: boolean;
|
|
3460
|
+
canRedo: boolean;
|
|
3461
|
+
unsaved: boolean;
|
|
3462
|
+
ungenerated: boolean;
|
|
3463
|
+
conflict: SourceConflict | null;
|
|
3464
|
+
sourceRefused: boolean;
|
|
3465
|
+
diagnostics: readonly Diagnostic$1[];
|
|
3466
|
+
treeHash: string;
|
|
3467
|
+
revision: number;
|
|
3468
|
+
};
|
|
3469
|
+
type CommandResult = {
|
|
3470
|
+
path: string;
|
|
3471
|
+
exitCode: number;
|
|
3472
|
+
document: string;
|
|
3473
|
+
};
|
|
3474
|
+
type SourceEnd = {
|
|
3475
|
+
kind: 'closed';
|
|
3476
|
+
} | {
|
|
3477
|
+
kind: 'failed';
|
|
3478
|
+
error: Error;
|
|
3479
|
+
};
|
|
3480
|
+
type SourcePort = {
|
|
3481
|
+
subscribe: (on: (s: CanvasSource) => void, onEnd: (end: SourceEnd) => void, onCommandResult?: (result: CommandResult) => void) => () => void;
|
|
3482
|
+
};
|
|
3483
|
+
type GenerateEvent = {
|
|
3484
|
+
type: 'progress';
|
|
3485
|
+
stage: 'generating' | 'validating';
|
|
3486
|
+
} | {
|
|
3487
|
+
type: 'success';
|
|
3488
|
+
written: string[];
|
|
3489
|
+
validate: JsonOf<'module validate'>;
|
|
3490
|
+
} | {
|
|
3491
|
+
type: 'error';
|
|
3492
|
+
message: string;
|
|
3493
|
+
reason: Reason;
|
|
3494
|
+
};
|
|
3495
|
+
/**
|
|
3496
|
+
* A refusal of a batch's content reported by `ApplyAction`. Mirrors the wire
|
|
3497
|
+
* `GraphError` — a failing `ApplyResult` carries one or more of these, and
|
|
3498
|
+
* consumers surface them as a toast, leaving canvas state unchanged.
|
|
3499
|
+
* `reason` is the refusal's entry in the one vocabulary
|
|
3500
|
+
* (`REASON_CROSS_SCOPE` for a wire across a group's boundary,
|
|
3501
|
+
* `REASON_UNSPECIFIED` for one with no entry), so a host branches on it and
|
|
3502
|
+
* never on `message`.
|
|
3503
|
+
*/
|
|
3504
|
+
type GraphError = {
|
|
3505
|
+
moduleKey: string;
|
|
3506
|
+
instanceId: string;
|
|
3507
|
+
inputName: string;
|
|
3508
|
+
message: string;
|
|
3509
|
+
reason: Reason;
|
|
3510
|
+
};
|
|
3511
|
+
/**
|
|
3512
|
+
* Names one child created by a mutation (placement, group creation, copy).
|
|
3513
|
+
* Mirrors the wire `CreatedRef` — clients key pending arrangement writes
|
|
3514
|
+
* (position, group label/collapse) off these ids instead of diffing
|
|
3515
|
+
* successive CanvasView frames to guess what changed.
|
|
3516
|
+
*/
|
|
3517
|
+
type CreatedRef = {
|
|
3518
|
+
scope: string;
|
|
3519
|
+
id: string;
|
|
3520
|
+
moduleKey: string;
|
|
3521
|
+
sourceId: string;
|
|
3522
|
+
};
|
|
3523
|
+
/**
|
|
3524
|
+
* One output → input pair the engine's matcher scores between two instances
|
|
3525
|
+
* of one module: `sourceInstance`'s `output` could feed `targetInstance`'s
|
|
3526
|
+
* `input`. Mirrors the wire `WiringCandidate`. The matching rules exist only
|
|
3527
|
+
* in the engine; a client ranks or shows these and never rescores them.
|
|
3528
|
+
*/
|
|
3529
|
+
type WiringCandidate = {
|
|
3530
|
+
sourceInstance: string;
|
|
3531
|
+
output: string;
|
|
3532
|
+
targetInstance: string;
|
|
3533
|
+
input: string;
|
|
3534
|
+
score: number;
|
|
3535
|
+
};
|
|
3536
|
+
type WiringQuery = {
|
|
3537
|
+
scope: string;
|
|
3538
|
+
source?: string;
|
|
3539
|
+
target?: string;
|
|
3540
|
+
};
|
|
3541
|
+
type ApplyResult = {
|
|
3542
|
+
success: boolean;
|
|
3543
|
+
errors: GraphError[];
|
|
3544
|
+
created: CreatedRef[];
|
|
3545
|
+
ties: WiringCandidate[];
|
|
3546
|
+
revision?: number;
|
|
3547
|
+
};
|
|
3548
|
+
type EditorPort = {
|
|
3549
|
+
apply: (actions: readonly Action[]) => Promise<ApplyResult>;
|
|
3550
|
+
wiringCandidates: (query: WiringQuery) => Promise<WiringCandidate[]>;
|
|
3551
|
+
save: () => Promise<void>;
|
|
3552
|
+
generate: () => AsyncIterable<GenerateEvent>;
|
|
3553
|
+
resolveConflict: (choice: 'keep' | 'reload', treeHash: string) => Promise<void>;
|
|
3554
|
+
};
|
|
3555
|
+
declare class ApplyUnobservedError extends Error {
|
|
3556
|
+
readonly end: SourceEnd | {
|
|
3557
|
+
kind: 'detached';
|
|
3558
|
+
};
|
|
3559
|
+
constructor(end: SourceEnd | {
|
|
3560
|
+
kind: 'detached';
|
|
3561
|
+
});
|
|
3562
|
+
}
|
|
3563
|
+
declare class CommandExitError extends Error {
|
|
3564
|
+
readonly code: number;
|
|
3565
|
+
readonly stderrTail: string;
|
|
3566
|
+
readonly failure?: CommandFailure | undefined;
|
|
3567
|
+
constructor(code: number, stderrTail: string, failure?: CommandFailure | undefined);
|
|
3568
|
+
}
|
|
3569
|
+
declare class ConnectError extends Error {
|
|
3570
|
+
readonly code: string;
|
|
3571
|
+
readonly reason: Reason;
|
|
3572
|
+
readonly apiCode: string | undefined;
|
|
3573
|
+
constructor(code: string, message: string, detail?: ReasonDetail);
|
|
3574
|
+
}
|
|
3575
|
+
declare class CommandDetachedError extends Error {
|
|
3576
|
+
constructor();
|
|
3577
|
+
}
|
|
3578
|
+
type Invocation<P extends BoundPath> = {
|
|
3579
|
+
events: AsyncIterable<JsonOf<P>>;
|
|
3580
|
+
cancel: () => Promise<void>;
|
|
3581
|
+
};
|
|
3582
|
+
type CommandsPort = {
|
|
3583
|
+
available: () => ReadonlySet<BoundPath>;
|
|
3584
|
+
invoke: <P extends BoundPath>(path: P, args: ArgsOf<P>, signal: AbortSignal, cwd?: string) => Invocation<P>;
|
|
3585
|
+
};
|
|
3586
|
+
type StackRef = {
|
|
3587
|
+
id: string;
|
|
3588
|
+
slug: string;
|
|
3589
|
+
};
|
|
3590
|
+
type ContextPort = {
|
|
3591
|
+
root?: string;
|
|
3592
|
+
sessionId?: string;
|
|
3593
|
+
stack?: StackRef;
|
|
3594
|
+
};
|
|
3595
|
+
type ViewStatePort = {
|
|
3596
|
+
load: () => CanvasArrangement;
|
|
3597
|
+
save: (a: CanvasArrangement) => void;
|
|
3598
|
+
};
|
|
3599
|
+
type ConfirmSpec = {
|
|
3600
|
+
text: string;
|
|
3601
|
+
typed?: string;
|
|
3602
|
+
};
|
|
3603
|
+
type PresenterPort = {
|
|
3604
|
+
notify: (level: 'info' | 'warn' | 'error', text: string, failure?: CommandFailure) => void;
|
|
3605
|
+
confirm?: (o: ConfirmSpec) => Promise<boolean>;
|
|
3606
|
+
};
|
|
3607
|
+
type RunnerPorts = {
|
|
3608
|
+
presenter: PresenterPort;
|
|
3609
|
+
commands?: CommandsPort;
|
|
3610
|
+
editor?: EditorPort;
|
|
3611
|
+
};
|
|
3612
|
+
type CanvasPorts = RunnerPorts & {
|
|
3613
|
+
source: SourcePort;
|
|
3614
|
+
context: ContextPort;
|
|
3615
|
+
viewState: ViewStatePort;
|
|
3616
|
+
};
|
|
3617
|
+
type PortName = keyof CanvasPorts;
|
|
3618
|
+
|
|
3619
|
+
type EdgeRef = {
|
|
3620
|
+
id: string;
|
|
3621
|
+
source: string;
|
|
3622
|
+
target: string;
|
|
3623
|
+
sourceOutput: string;
|
|
3624
|
+
targetInput: string;
|
|
3625
|
+
};
|
|
3626
|
+
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'resolved' | 'selection.node' | 'selection.edge' | 'diagnostics';
|
|
3627
|
+
type RunCtx = {
|
|
3628
|
+
root?: string;
|
|
3629
|
+
sessionId?: string;
|
|
3630
|
+
stack?: StackRef;
|
|
3631
|
+
};
|
|
3632
|
+
type CanvasCtx = RunCtx & {
|
|
3633
|
+
ports: CanvasPorts;
|
|
3634
|
+
editable: boolean;
|
|
3635
|
+
view: CanvasView;
|
|
3636
|
+
selection: {
|
|
3637
|
+
nodes: readonly string[];
|
|
3638
|
+
edge: EdgeRef | null;
|
|
3639
|
+
};
|
|
3640
|
+
diagnostics: readonly Diagnostic$1[];
|
|
3641
|
+
contributions: ContributionSet;
|
|
3642
|
+
};
|
|
3643
|
+
type Badge = {
|
|
3644
|
+
id: string;
|
|
3645
|
+
label: string;
|
|
3646
|
+
tone: 'neutral' | 'warn' | 'error';
|
|
3647
|
+
title?: string;
|
|
3648
|
+
};
|
|
3649
|
+
type NodeDecoration = {
|
|
3650
|
+
badges: readonly Badge[];
|
|
3651
|
+
};
|
|
3652
|
+
type Decorations = {
|
|
3653
|
+
nodes: Readonly<Record<string, NodeDecoration>>;
|
|
3654
|
+
};
|
|
3655
|
+
type OverlayContribution = {
|
|
3656
|
+
id: string;
|
|
3657
|
+
paths: readonly BoundPath[];
|
|
3658
|
+
useDecorations: (ctx: CanvasCtx) => Decorations;
|
|
3659
|
+
};
|
|
3660
|
+
type CommandRead<P extends BoundPath> = {
|
|
3661
|
+
path: P;
|
|
3662
|
+
args: (ctx: CanvasCtx, target: ActionTarget) => ArgsOf<P> | null;
|
|
3663
|
+
};
|
|
3664
|
+
type PanelSpec = {
|
|
3665
|
+
id: string;
|
|
3666
|
+
title: string;
|
|
3667
|
+
slot: 'banner' | 'toolbar' | 'sidebar' | 'bottom' | 'inspector';
|
|
3668
|
+
requiredPorts: readonly PortName[];
|
|
3669
|
+
reads?: readonly {
|
|
3670
|
+
path: BoundPath;
|
|
3671
|
+
}[];
|
|
3672
|
+
requiredContext?: readonly ContextKey[];
|
|
3673
|
+
};
|
|
3674
|
+
type ActionTarget = {
|
|
3675
|
+
nodeId?: string;
|
|
3676
|
+
diagnostic?: Diagnostic$1;
|
|
3677
|
+
runId?: string;
|
|
3678
|
+
};
|
|
3679
|
+
type Placement = 'toolbar' | 'node-menu' | {
|
|
3680
|
+
row: string;
|
|
3681
|
+
};
|
|
3682
|
+
type ResultKind = 'run' | 'preview' | 'report' | 'notify' | 'follow';
|
|
3683
|
+
type SlotKind = Exclude<ResultKind, 'notify'>;
|
|
3684
|
+
type SinkInput = {
|
|
3685
|
+
run: JsonOf<'stack apply'>;
|
|
3686
|
+
preview: JsonOf<'stack preview'>;
|
|
3687
|
+
report: CommandResult;
|
|
3688
|
+
notify: unknown;
|
|
3689
|
+
follow: JsonOf<'run logs'>;
|
|
3690
|
+
};
|
|
3691
|
+
type ResultFor<P extends BoundPath> = {
|
|
3692
|
+
[K in ResultKind]: JsonOf<P> extends SinkInput[K] ? K : never;
|
|
3693
|
+
}[ResultKind];
|
|
3694
|
+
type BindingRuntime = {
|
|
3695
|
+
ports: RunnerPorts;
|
|
3696
|
+
token: object;
|
|
3697
|
+
cwd?: string;
|
|
3698
|
+
write: <K extends SlotKind>(kind: K, token: object, value: SinkInput[K]) => void;
|
|
3699
|
+
detach: <K extends ResultKind>(kind: K, token: object) => void;
|
|
3700
|
+
begin: () => void;
|
|
3701
|
+
fail: (error: unknown) => boolean;
|
|
3702
|
+
tick: () => void;
|
|
3703
|
+
settled?: () => void;
|
|
3704
|
+
};
|
|
3705
|
+
type Sink<T> = {
|
|
3706
|
+
kind: ResultKind;
|
|
3707
|
+
consume: (rt: BindingRuntime, e: T) => void;
|
|
3708
|
+
};
|
|
3709
|
+
type CommandBinding<P extends BoundPath> = {
|
|
3710
|
+
kind: 'command';
|
|
3711
|
+
path: P;
|
|
3712
|
+
args: (ctx: RunCtx, target: ActionTarget) => Partial<ArgsOf<P>>;
|
|
3713
|
+
confirm?: (ctx: RunCtx, args: ArgsOf<P>) => ConfirmSpec;
|
|
3714
|
+
result: Sink<JsonOf<P>> & {
|
|
3715
|
+
kind: ResultFor<P>;
|
|
3716
|
+
};
|
|
3717
|
+
invalidates?: true | 'start+settle';
|
|
3718
|
+
};
|
|
3719
|
+
type ClipboardStore = {
|
|
3720
|
+
get: () => {
|
|
3721
|
+
ids: readonly string[];
|
|
3722
|
+
cut: boolean;
|
|
3723
|
+
} | null;
|
|
3724
|
+
set: (ids: readonly string[], cut: boolean) => void;
|
|
3725
|
+
clear: () => void;
|
|
3726
|
+
};
|
|
3727
|
+
type LayoutHandle = {
|
|
3728
|
+
forcePositions: () => void;
|
|
3729
|
+
panIntoView: (rect: {
|
|
3730
|
+
x: number;
|
|
3731
|
+
y: number;
|
|
3732
|
+
width: number;
|
|
3733
|
+
height: number;
|
|
3734
|
+
}) => void;
|
|
3735
|
+
};
|
|
3736
|
+
type EditorEnv = {
|
|
3737
|
+
editor: EditorPort;
|
|
3738
|
+
apply: (actions: readonly Action[]) => Promise<ApplyResult>;
|
|
3739
|
+
ctx: CanvasCtx;
|
|
3740
|
+
target: ActionTarget;
|
|
3741
|
+
bundle: Bundle;
|
|
3742
|
+
clipboard: ClipboardStore;
|
|
3743
|
+
arrangement: {
|
|
3744
|
+
get: () => CanvasArrangement;
|
|
3745
|
+
update: (a: CanvasArrangement) => void;
|
|
3746
|
+
};
|
|
3747
|
+
layout: LayoutHandle;
|
|
3748
|
+
};
|
|
3749
|
+
type EditorBinding = {
|
|
3750
|
+
kind: 'editor';
|
|
3751
|
+
confirm?: (ctx: CanvasCtx) => ConfirmSpec;
|
|
3752
|
+
} & ({
|
|
3753
|
+
result: 'apply';
|
|
3754
|
+
run: (env: EditorEnv) => Promise<ApplyResult>;
|
|
3755
|
+
} | {
|
|
3756
|
+
result: 'generate';
|
|
3757
|
+
run: (env: EditorEnv) => AsyncIterable<GenerateEvent>;
|
|
3758
|
+
} | {
|
|
3759
|
+
result: 'none';
|
|
3760
|
+
run: (env: EditorEnv) => Promise<void>;
|
|
3761
|
+
});
|
|
3762
|
+
type HostBinding = {
|
|
3763
|
+
kind: 'host';
|
|
3764
|
+
confirm?: (ctx: RunCtx) => ConfirmSpec;
|
|
3765
|
+
invalidates?: true;
|
|
3766
|
+
run: (rt: BindingRuntime, ctx: RunCtx, target: ActionTarget) => Promise<void>;
|
|
3767
|
+
};
|
|
3768
|
+
type ErasedCommand = {
|
|
3769
|
+
kind: 'command';
|
|
3770
|
+
path: BoundPath;
|
|
3771
|
+
confirms: boolean;
|
|
3772
|
+
resultKind: ResultKind;
|
|
3773
|
+
invalidates?: true | 'start+settle';
|
|
3774
|
+
partialArgs: (ctx: RunCtx, target: ActionTarget) => Record<string, unknown>;
|
|
3775
|
+
confirmSpec: (ctx: RunCtx, target: ActionTarget, formArgs: Record<string, unknown>) => ConfirmSpec | undefined;
|
|
3776
|
+
start: (rt: BindingRuntime, ctx: RunCtx, target: ActionTarget, formArgs: Record<string, unknown>, signal: AbortSignal) => Promise<{
|
|
3777
|
+
cancel: () => Promise<void>;
|
|
3778
|
+
} | null>;
|
|
3779
|
+
};
|
|
3780
|
+
declare const KEY_SCOPES: readonly ["surface", "app"];
|
|
3781
|
+
type KeyScope = (typeof KEY_SCOPES)[number];
|
|
3782
|
+
type ActionContribution = {
|
|
3783
|
+
id: string;
|
|
3784
|
+
label: string;
|
|
3785
|
+
icon?: string;
|
|
3786
|
+
keys?: readonly string[];
|
|
3787
|
+
/** Defaults to `surface`. */
|
|
3788
|
+
keyScope?: KeyScope;
|
|
3789
|
+
placement: Placement;
|
|
3790
|
+
requiredPorts: readonly PortName[];
|
|
3791
|
+
requiredContext?: readonly ContextKey[];
|
|
3792
|
+
requiredTarget?: readonly (keyof ActionTarget)[];
|
|
3793
|
+
enabledWhen?: readonly {
|
|
3794
|
+
key: ContextKey;
|
|
3795
|
+
reason: string;
|
|
3796
|
+
}[];
|
|
3797
|
+
binding: ErasedCommand | EditorBinding | HostBinding;
|
|
3798
|
+
};
|
|
3799
|
+
type ContributionSet<P extends PanelSpec = PanelSpec> = {
|
|
3800
|
+
overlays: readonly OverlayContribution[];
|
|
3801
|
+
panels: readonly P[];
|
|
3802
|
+
actions: readonly ActionContribution[];
|
|
3803
|
+
};
|
|
3804
|
+
|
|
3805
|
+
type ReportPath = 'module validate' | 'module convert' | 'module scan';
|
|
3806
|
+
type ReportEntry = {
|
|
3807
|
+
kind: 'result';
|
|
3808
|
+
path: 'module validate';
|
|
3809
|
+
exitCode: number;
|
|
3810
|
+
document: JsonOf<'module validate'>;
|
|
3811
|
+
} | {
|
|
3812
|
+
kind: 'result';
|
|
3813
|
+
path: 'module convert';
|
|
3814
|
+
exitCode: number;
|
|
3815
|
+
document: JsonOf<'module convert'>;
|
|
3816
|
+
} | {
|
|
3817
|
+
kind: 'result';
|
|
3818
|
+
path: 'module scan';
|
|
3819
|
+
exitCode: number;
|
|
3820
|
+
document: JsonOf<'module scan'>;
|
|
3821
|
+
} | {
|
|
3822
|
+
kind: 'failure';
|
|
3823
|
+
path: ReportPath;
|
|
3824
|
+
exitCode: number;
|
|
3825
|
+
failure: CommandFailure;
|
|
3826
|
+
};
|
|
3827
|
+
type ReportFold = ReadonlyMap<ReportPath, ReportEntry>;
|
|
3828
|
+
declare const EMPTY_REPORT_FOLD: ReportFold;
|
|
3829
|
+
declare function foldReport(prev: ReportFold, result: CommandResult): ReportFold;
|
|
3830
|
+
declare function currentReport(fold: ReportFold, treeHash: string): ReportFold;
|
|
3831
|
+
declare function diagnosticsOfDocument(document: JsonOf<'module validate'> | JsonOf<'module convert'> | JsonOf<'module scan'>): readonly Diagnostic$1[];
|
|
3832
|
+
declare function reportDiagnostics(fold: ReportFold): readonly Diagnostic$1[];
|
|
3833
|
+
|
|
3834
|
+
type SlotContext = {
|
|
3835
|
+
stack: string | undefined;
|
|
3836
|
+
};
|
|
3837
|
+
type OnScreen = SlotContext & {
|
|
3838
|
+
session: object;
|
|
3839
|
+
treeHash: string;
|
|
3840
|
+
};
|
|
3841
|
+
type RunOutcome = {
|
|
3842
|
+
kind: 'running';
|
|
3843
|
+
} | {
|
|
3844
|
+
kind: 'succeeded';
|
|
3845
|
+
} | {
|
|
3846
|
+
kind: 'awaiting-approval';
|
|
3847
|
+
changeRequestId: string;
|
|
3848
|
+
} | {
|
|
3849
|
+
kind: 'blocked';
|
|
3850
|
+
message: string;
|
|
3851
|
+
failure?: CommandFailure;
|
|
3852
|
+
} | {
|
|
3853
|
+
kind: 'cancelled';
|
|
3854
|
+
} | {
|
|
3855
|
+
kind: 'detached';
|
|
3856
|
+
submitted: boolean;
|
|
3857
|
+
} | {
|
|
3858
|
+
kind: 'failed';
|
|
3859
|
+
message: string;
|
|
3860
|
+
failure?: CommandFailure;
|
|
3861
|
+
};
|
|
3862
|
+
type RunPhaseStatus = 'current' | 'done';
|
|
3863
|
+
type RunPhase = {
|
|
3864
|
+
name: string;
|
|
3865
|
+
status: RunPhaseStatus;
|
|
3866
|
+
};
|
|
3867
|
+
type RunSlot = {
|
|
3868
|
+
token: object;
|
|
3869
|
+
outcome: RunOutcome;
|
|
3870
|
+
lastLog: string | null;
|
|
3871
|
+
submitted: boolean;
|
|
3872
|
+
phases: readonly RunPhase[];
|
|
3873
|
+
} | null;
|
|
3874
|
+
type PreviewSlot = {
|
|
3875
|
+
token: object;
|
|
3876
|
+
data: JsonOf<'stack preview'>;
|
|
3877
|
+
} | null;
|
|
3878
|
+
type ReportSlot = {
|
|
3879
|
+
sessions: ReadonlyMap<object, ReportFold>;
|
|
3880
|
+
} | null;
|
|
3881
|
+
type FollowSlot = {
|
|
3882
|
+
token: object;
|
|
3883
|
+
runId: string;
|
|
3884
|
+
lines: readonly string[];
|
|
3885
|
+
done: boolean;
|
|
3886
|
+
} | null;
|
|
3887
|
+
type SlotValues = {
|
|
3888
|
+
run: RunSlot;
|
|
3889
|
+
preview: PreviewSlot;
|
|
3890
|
+
report: ReportSlot;
|
|
3891
|
+
follow: FollowSlot;
|
|
3892
|
+
};
|
|
3893
|
+
type ReadOver<S> = (NonNullable<S> & {
|
|
3894
|
+
readOver: SlotContext;
|
|
3895
|
+
}) | null;
|
|
3896
|
+
type ResultSlots = {
|
|
3897
|
+
[K in SlotKind]: ReadOver<SlotValues[K]>;
|
|
3898
|
+
};
|
|
3899
|
+
type LiveSlots = Omit<ResultSlots, 'report'> & {
|
|
3900
|
+
report: ReportFold | null;
|
|
3901
|
+
};
|
|
3902
|
+
|
|
3903
|
+
declare function liveSlots(slots: ResultSlots, current: OnScreen): LiveSlots;
|
|
3904
|
+
declare function reduceRun(prev: RunSlot, token: object, event: JsonOf<'stack apply'>): RunSlot;
|
|
3905
|
+
declare function settleRun(prev: RunSlot, token: object, error: unknown): RunSlot;
|
|
3906
|
+
declare function reducePreview(_prev: PreviewSlot, token: object, event: JsonOf<'stack preview'>): PreviewSlot;
|
|
3907
|
+
declare function reduceReport(prev: ReportSlot, session: object, result: CommandResult): ReportSlot;
|
|
3908
|
+
declare function reduceFollow(prev: FollowSlot, token: object, event: JsonOf<'run logs'>): FollowSlot;
|
|
3909
|
+
type ResultStore = {
|
|
3910
|
+
getSnapshot(): ResultSlots;
|
|
3911
|
+
getTick(): number;
|
|
3912
|
+
subscribe(listener: () => void): () => void;
|
|
3913
|
+
write<K extends SlotKind>(kind: K, token: object, value: SinkInput[K], readOver: SlotContext): void;
|
|
3914
|
+
fail(kind: ResultKind, token: object, error: unknown): boolean;
|
|
3915
|
+
begin(kind: ResultKind, token: object, readOver: SlotContext, target: ActionTarget): void;
|
|
3916
|
+
detach<K extends ResultKind>(kind: K, token: object): void;
|
|
3917
|
+
isBusy(kind: ResultKind): boolean;
|
|
3918
|
+
bumpTick(): void;
|
|
3919
|
+
};
|
|
3920
|
+
declare function createResultStore(): ResultStore;
|
|
3921
|
+
|
|
3922
|
+
type PendingForm = {
|
|
3923
|
+
path: string;
|
|
3924
|
+
missing: readonly string[];
|
|
3925
|
+
submit(values: Record<string, unknown>): void;
|
|
3926
|
+
cancel(): void;
|
|
3927
|
+
} | null;
|
|
3928
|
+
type EditorEnvExtras = {
|
|
3929
|
+
bundle: Bundle;
|
|
3930
|
+
arrangement: {
|
|
3931
|
+
get(): CanvasArrangement;
|
|
3932
|
+
update(a: CanvasArrangement): void;
|
|
3933
|
+
};
|
|
3934
|
+
layout: LayoutHandle;
|
|
3935
|
+
};
|
|
3936
|
+
type ActionRunner = {
|
|
3937
|
+
run(action: ActionContribution, ctx: CanvasCtx, target: ActionTarget, envExtras: EditorEnvExtras): Promise<ApplyResult | undefined>;
|
|
3938
|
+
run(action: ActionContribution, ctx: RunCtx, target: ActionTarget): Promise<ApplyResult | undefined>;
|
|
3939
|
+
apply(actions: readonly Action[]): Promise<ApplyResult | undefined>;
|
|
3940
|
+
cancel(kind: ResultKind): Promise<void>;
|
|
3941
|
+
detach(kind: ResultKind): void;
|
|
3942
|
+
dispose(): void;
|
|
3943
|
+
};
|
|
3944
|
+
type CommandRun = {
|
|
3945
|
+
token: object;
|
|
3946
|
+
path: BoundPath;
|
|
3947
|
+
resultKind: ResultKind;
|
|
3948
|
+
ctx: RunCtx;
|
|
3949
|
+
target: ActionTarget;
|
|
3950
|
+
};
|
|
3951
|
+
type ActionRunnerOptions = {
|
|
3952
|
+
onPendingFormChange?(form: PendingForm): void;
|
|
3953
|
+
onRunLog?(line: string, run: CommandRun): void;
|
|
3954
|
+
};
|
|
3955
|
+
declare function createActionRunner(ports: RunnerPorts, store: ResultStore, options?: ActionRunnerOptions): ActionRunner;
|
|
3956
|
+
|
|
3957
|
+
declare function defineCommand<P extends BoundPath>(binding: CommandBinding<P>): ErasedCommand;
|
|
3958
|
+
|
|
3959
|
+
declare function uniqueDiagnostics(diagnostics: readonly Diagnostic$1[]): readonly Diagnostic$1[];
|
|
3960
|
+
declare function diagnosticsOf(sourceDiagnostics: readonly Diagnostic$1[], reportFindings: readonly Diagnostic$1[]): readonly Diagnostic$1[];
|
|
3961
|
+
|
|
3962
|
+
type MsgOf<M> = M extends {
|
|
3963
|
+
fromJSON(object: unknown): infer T;
|
|
3964
|
+
} ? T : never;
|
|
3965
|
+
type EngineMethodResponse = {
|
|
3966
|
+
[K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: MsgOf<(typeof LaceEngineDefinition.methods)[K]['responseType']>;
|
|
3967
|
+
};
|
|
3968
|
+
type EngineCaller<UnaryMethod extends EngineMethod = EngineMethod> = {
|
|
3969
|
+
kind: 'bridge' | 'direct';
|
|
3970
|
+
unary<M extends UnaryMethod>(method: M, request: unknown): Promise<EngineMethodResponse[M]>;
|
|
3971
|
+
stream<M extends EngineStreamMethod>(method: M, request: unknown, signal: AbortSignal): AsyncIterable<EngineMethodResponse[M]>;
|
|
3972
|
+
};
|
|
3973
|
+
/** The `kind: 'direct'` narrowing of `EngineCaller` — a caller that talks
|
|
3974
|
+
* straight to the engine and can serve every `EngineMethod`, `TestSessionOpen`
|
|
3975
|
+
* included. `openEngineSession`'s fixture-target overload requires one. */
|
|
3976
|
+
type DirectEngineCaller = EngineCaller<EngineMethod> & {
|
|
3977
|
+
kind: 'direct';
|
|
3978
|
+
};
|
|
3979
|
+
/** The `kind: 'bridge'` narrowing of `EngineCaller<BridgeMethod>` —
|
|
3980
|
+
* `bridgeCaller`'s return type. `openEngineSession`'s fixture-target overload
|
|
3981
|
+
* excludes it: a bridge caller can't serve `TestSessionOpen`. */
|
|
3982
|
+
type BridgeEngineCaller = EngineCaller<BridgeMethod> & {
|
|
3983
|
+
kind: 'bridge';
|
|
3984
|
+
};
|
|
3985
|
+
type ConnectCallerOptions = {
|
|
3986
|
+
baseUrl: string;
|
|
3987
|
+
token: string;
|
|
3988
|
+
/** Fetch impl override — used by tests. Defaults to globalThis.fetch. */
|
|
3989
|
+
fetch?: typeof fetch;
|
|
3990
|
+
};
|
|
3991
|
+
/**
|
|
3992
|
+
* Reaches a running `lace engine` process directly over Connect-JSON
|
|
3993
|
+
* (HTTP POST, fetch). Used by Storybook flow stories and the canvas-flow
|
|
3994
|
+
* Playwright suite, which run against a real engine process.
|
|
3995
|
+
*/
|
|
3996
|
+
declare function connectCaller(options: ConnectCallerOptions): DirectEngineCaller;
|
|
3997
|
+
/**
|
|
3998
|
+
* Forwards every call over a `MessageBridge` to the host process that holds
|
|
3999
|
+
* the engine connection (VS Code / JetBrains webview). `@lace-cloud/host`'s
|
|
4000
|
+
* `serveEngineBridge` is the other end. Each request is posted as its
|
|
4001
|
+
* method's proto-JSON, the body `connectCaller` sends, which the host reads
|
|
4002
|
+
* back through the message's `fromJSON` (`rpc.serialize`): a `bytes` field
|
|
4003
|
+
* crosses as base64 text, whatever the bridge does to a typed array. The
|
|
4004
|
+
* wire response arrives as the proto-JSON `serveEngineBridge` posted
|
|
4005
|
+
* (`rpc.deserialize`'s `toJSON`), so this caller decodes it back through
|
|
4006
|
+
* `RESPONSE_CODECS` before resolving/pushing it. `unary`'s own `M extends BridgeMethod` plus the
|
|
4007
|
+
* `kind: 'bridge'` tag are what make `BridgeEngineCaller` a type distinct
|
|
4008
|
+
* from `DirectEngineCaller`: `openEngineSession`'s fixture-target overload
|
|
4009
|
+
* requires `kind: 'direct'`, so a caller from here can't reach it.
|
|
4010
|
+
*/
|
|
4011
|
+
declare function bridgeCaller(bridge: MessageBridge): BridgeEngineCaller;
|
|
4012
|
+
|
|
4013
|
+
type EngineTarget = {
|
|
4014
|
+
root: string;
|
|
4015
|
+
} | {
|
|
4016
|
+
ephemeral: {
|
|
4017
|
+
name: string;
|
|
4018
|
+
};
|
|
4019
|
+
cwd: string;
|
|
4020
|
+
} | {
|
|
4021
|
+
fixture: string;
|
|
4022
|
+
cwd: string;
|
|
4023
|
+
};
|
|
4024
|
+
type NonFixtureTarget = Exclude<EngineTarget, {
|
|
4025
|
+
fixture: string;
|
|
4026
|
+
}>;
|
|
4027
|
+
type EngineSessionOptions = {
|
|
4028
|
+
onListenerError?: (error: unknown) => void;
|
|
4029
|
+
};
|
|
4030
|
+
type EngineSession = {
|
|
4031
|
+
ports: Required<Pick<CanvasPorts, 'source' | 'editor' | 'commands' | 'context'>>;
|
|
4032
|
+
close(): void;
|
|
4033
|
+
};
|
|
4034
|
+
/**
|
|
4035
|
+
* The commands mapping: one engine connection → the `commands` port alone.
|
|
4036
|
+
* Sends `Initialize` once and `Invoke` per command, each run in the
|
|
4037
|
+
* directory the call names, else in `cwd`; no `SessionOpen`, no `Subscribe`.
|
|
4038
|
+
*/
|
|
4039
|
+
declare function openEngineCommands(caller: EngineCaller, { cwd }: {
|
|
4040
|
+
cwd: string;
|
|
4041
|
+
}): Promise<CommandsPort>;
|
|
4042
|
+
declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4043
|
+
declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4044
|
+
|
|
4045
|
+
export { type EngineSessionOptions as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type EdgeRef as E, type CommandsPort as F, type ConfirmSpec as G, type ConnectCallerOptions as H, ConnectError as I, type JsonOf as J, type ContextKey as K, type LayoutHandle as L, type ContextPort as M, type CreatedRef as N, type OverlayContribution as O, type PanelSpec as P, type DirectEngineCaller as Q, type ResultStore as R, type SourcePort as S, EMPTY_REPORT_FOLD as T, type EditorBinding as U, type EditorEnv as V, type EditorEnvExtras as W, type EditorPort as X, type EngineCaller as Y, type EngineMethodResponse as Z, type EngineSession as _, type CanvasCtx as a, settleRun as a$, type EngineTarget as a0, type ErasedCommand as a1, type FollowSlot as a2, type GenerateEvent as a3, type GraphError as a4, type HostBinding as a5, type Invocation as a6, type NodeDecoration as a7, type Placement as a8, type PortName as a9, createResultStore as aA, currentReport as aB, defineCommand as aC, diagnosticsOf as aD, foldReport as aE, isBoundPath as aF, openEngineCommands as aG, openEngineSession as aH, parseBound as aI, parseCommandFailure as aJ, reportDiagnostics as aK, toArgv as aL, uniqueDiagnostics as aM, Action as aN, InputMode as aO, type LaceReason as aP, type LiveSlots as aQ, type OnScreen as aR, type RunPhase as aS, type RunPhaseStatus as aT, diagnosticsOfDocument as aU, liveSlots as aV, reasonWire as aW, reduceFollow as aX, reducePreview as aY, reduceReport as aZ, reduceRun as a_, type PresenterPort as aa, type PreviewSlot as ab, Reason as ac, type ReportEntry as ad, type ReportFold as ae, type ReportPath as af, type ReportSlot as ag, type ResultKind as ah, type ResultSlots as ai, type RunOutcome as aj, type RunSlot as ak, type RunnerPorts as al, SCHEMAS as am, type Sink as an, type SinkInput as ao, type SlotContext as ap, type SlotKind as aq, type SourceConflict as ar, type StackRef as as, type ViewStatePort as at, type WiringCandidate as au, type WiringQuery as av, bridgeCaller as aw, carriesFailure as ax, connectCaller as ay, createActionRunner as az, type CanvasPorts as b, type PendingForm as c, type BoundPath as d, type CommandRead as e, type ActionTarget as f, type CommandResult as g, type CanvasSource as h, type SourceEnd as i, type RunCtx as j, Bundle as k, type ActionRunner as l, type ActionRunnerOptions as m, type ApplyResult as n, ApplyUnobservedError as o, type ArgsOf as p, type BindingRuntime as q, type BridgeEngineCaller as r, COMMANDS as s, type ClipboardStore as t, type CommandBinding as u, CommandDetachedError as v, CommandExitError as w, type CommandFailure as x, type CommandPath as y, type CommandRun as z };
|