@lace-cloud/canvas 0.16.2 → 0.18.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 +77 -73
- package/dist/{AccordionSection-RPWRZINZ.css → AccordionSection-QHNIBNJT.css} +12 -3
- package/dist/AccountPanel-YCG6RHJI.css +32 -0
- package/dist/App-LQX66JSZ.css +126 -0
- package/dist/ChaosPanel-7JZ2KASG.css +18 -0
- package/dist/ConflictBanner-4V5K2QNU.css +44 -0
- package/dist/DiagnosticsPanel-3UQFOL4T.css +33 -0
- package/dist/{GroupNode-EY63N53G.css → GroupNode-XSB4OKGK.css} +38 -0
- package/dist/Markers-XLREDZNM.css +16 -0
- package/dist/{ModuleNode-AZZ54ONC.css → ModuleNode-VNODPUHI.css} +36 -0
- package/dist/PreviewPanel-FHSY6FS6.css +18 -0
- package/dist/RegistryPanel-DLIMDBWW.css +33 -0
- package/dist/RunPanel-DHBR5SCC.css +11 -0
- package/dist/SourceRefusedBanner-5PXHEDHT.css +23 -0
- package/dist/StackPicker-ZJQELYQ6.css +10 -0
- package/dist/index.cjs +11661 -12408
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3307 -804
- package/dist/index.d.ts +3307 -804
- package/dist/index.mjs +8738 -9519
- package/dist/index.mjs.map +1 -1
- package/dist/{panels-shared-LLLB7PR4.css → panels-shared-OFOUQSUT.css} +3 -4
- package/package.json +8 -4
- package/dist/ActionBar-7ANPCCPK.css +0 -74
- package/dist/RegistryBrowser-3G22I4EO.css +0 -78
- package/dist/ValidationErrorBanner-G6TBGMK7.css +0 -158
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,1954 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { CanvasArrangement, CanvasView,
|
|
1
|
+
import { Diagnostic as Diagnostic$1, CanvasArrangement, CanvasView, EngineMethod, EngineStreamMethod, BridgeMethod, MessageBridge, RenderNode, SettingsConfig } from '@lace-cloud/proto';
|
|
2
|
+
export { CanvasArrangement, CanvasView, Conflict, Diagnostic, GeneratePhase, NodeConfig, NodePin, ProjectionMeta, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, SettingsConfig, ViewportIntent, projectCanvasView } from '@lace-cloud/proto';
|
|
3
3
|
export { Toast } from '@lace-cloud/ui/feedback';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import React__default from 'react';
|
|
6
|
+
import React__default, { FC, ReactNode } from 'react';
|
|
7
|
+
import { z } from 'zod';
|
|
7
8
|
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
8
9
|
import { NodeProps, Node } from '@xyflow/react';
|
|
9
10
|
|
|
11
|
+
declare const COMMANDS: {
|
|
12
|
+
readonly "chaos get": {
|
|
13
|
+
readonly path: "chaos get";
|
|
14
|
+
readonly positionals: readonly [{
|
|
15
|
+
readonly name: "run";
|
|
16
|
+
readonly kind: "required";
|
|
17
|
+
}];
|
|
18
|
+
readonly flags: {
|
|
19
|
+
readonly org: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
};
|
|
22
|
+
readonly output: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly values: readonly ["table", "json"];
|
|
25
|
+
};
|
|
26
|
+
readonly team: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
readonly hidden: false;
|
|
31
|
+
readonly yes: false;
|
|
32
|
+
};
|
|
33
|
+
readonly "chaos list": {
|
|
34
|
+
readonly path: "chaos list";
|
|
35
|
+
readonly positionals: readonly [];
|
|
36
|
+
readonly flags: {
|
|
37
|
+
readonly org: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
};
|
|
40
|
+
readonly output: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
readonly values: readonly ["table", "json"];
|
|
43
|
+
};
|
|
44
|
+
readonly stack: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
readonly required: true;
|
|
47
|
+
};
|
|
48
|
+
readonly team: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
readonly hidden: false;
|
|
53
|
+
readonly yes: false;
|
|
54
|
+
};
|
|
55
|
+
readonly "chaos run": {
|
|
56
|
+
readonly path: "chaos run";
|
|
57
|
+
readonly positionals: readonly [];
|
|
58
|
+
readonly flags: {
|
|
59
|
+
readonly chaosBinding: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
readonly required: true;
|
|
62
|
+
};
|
|
63
|
+
readonly org: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
};
|
|
66
|
+
readonly output: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
readonly values: readonly ["table", "json"];
|
|
69
|
+
};
|
|
70
|
+
readonly stack: {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly required: true;
|
|
73
|
+
};
|
|
74
|
+
readonly team: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly hidden: false;
|
|
79
|
+
readonly yes: false;
|
|
80
|
+
};
|
|
81
|
+
readonly "connection get": {
|
|
82
|
+
readonly path: "connection get";
|
|
83
|
+
readonly positionals: readonly [{
|
|
84
|
+
readonly name: "connection";
|
|
85
|
+
readonly kind: "required";
|
|
86
|
+
}];
|
|
87
|
+
readonly flags: {
|
|
88
|
+
readonly org: {
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
};
|
|
91
|
+
readonly output: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
readonly values: readonly ["table", "json"];
|
|
94
|
+
};
|
|
95
|
+
readonly team: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly hidden: false;
|
|
100
|
+
readonly yes: false;
|
|
101
|
+
};
|
|
102
|
+
readonly "connection list": {
|
|
103
|
+
readonly path: "connection list";
|
|
104
|
+
readonly positionals: readonly [];
|
|
105
|
+
readonly flags: {
|
|
106
|
+
readonly org: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
};
|
|
109
|
+
readonly output: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly values: readonly ["table", "json"];
|
|
112
|
+
};
|
|
113
|
+
readonly provider: {
|
|
114
|
+
readonly type: "string";
|
|
115
|
+
};
|
|
116
|
+
readonly team: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
readonly hidden: false;
|
|
121
|
+
readonly yes: false;
|
|
122
|
+
};
|
|
123
|
+
readonly "hooks install": {
|
|
124
|
+
readonly path: "hooks install";
|
|
125
|
+
readonly positionals: readonly [];
|
|
126
|
+
readonly flags: {
|
|
127
|
+
readonly force: {
|
|
128
|
+
readonly type: "bool";
|
|
129
|
+
};
|
|
130
|
+
readonly path: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly hidden: false;
|
|
135
|
+
readonly yes: false;
|
|
136
|
+
};
|
|
137
|
+
readonly "hooks uninstall": {
|
|
138
|
+
readonly path: "hooks uninstall";
|
|
139
|
+
readonly positionals: readonly [];
|
|
140
|
+
readonly flags: {
|
|
141
|
+
readonly path: {
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly hidden: false;
|
|
146
|
+
readonly yes: false;
|
|
147
|
+
};
|
|
148
|
+
readonly license: {
|
|
149
|
+
readonly path: "license";
|
|
150
|
+
readonly positionals: readonly [];
|
|
151
|
+
readonly flags: {
|
|
152
|
+
readonly thirdParty: {
|
|
153
|
+
readonly type: "bool";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
readonly hidden: false;
|
|
157
|
+
readonly yes: false;
|
|
158
|
+
};
|
|
159
|
+
readonly login: {
|
|
160
|
+
readonly path: "login";
|
|
161
|
+
readonly positionals: readonly [];
|
|
162
|
+
readonly flags: {
|
|
163
|
+
readonly email: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
};
|
|
166
|
+
readonly org: {
|
|
167
|
+
readonly type: "string";
|
|
168
|
+
};
|
|
169
|
+
readonly output: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly values: readonly ["table", "json"];
|
|
172
|
+
};
|
|
173
|
+
readonly provider: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
};
|
|
176
|
+
readonly token: {
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
readonly hidden: false;
|
|
181
|
+
readonly yes: false;
|
|
182
|
+
};
|
|
183
|
+
readonly logout: {
|
|
184
|
+
readonly path: "logout";
|
|
185
|
+
readonly positionals: readonly [];
|
|
186
|
+
readonly flags: {
|
|
187
|
+
readonly output: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
readonly values: readonly ["table", "json"];
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly hidden: false;
|
|
193
|
+
readonly yes: false;
|
|
194
|
+
};
|
|
195
|
+
readonly "module convert": {
|
|
196
|
+
readonly path: "module convert";
|
|
197
|
+
readonly positionals: readonly [];
|
|
198
|
+
readonly flags: {
|
|
199
|
+
readonly output: {
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
readonly values: readonly ["table", "json"];
|
|
202
|
+
};
|
|
203
|
+
readonly path: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
readonly hidden: false;
|
|
208
|
+
readonly yes: false;
|
|
209
|
+
};
|
|
210
|
+
readonly "module docs": {
|
|
211
|
+
readonly path: "module docs";
|
|
212
|
+
readonly positionals: readonly [];
|
|
213
|
+
readonly flags: {
|
|
214
|
+
readonly file: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
};
|
|
217
|
+
readonly output: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly values: readonly ["markdown", "json", "yaml"];
|
|
220
|
+
};
|
|
221
|
+
readonly path: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
readonly hidden: false;
|
|
226
|
+
readonly yes: false;
|
|
227
|
+
};
|
|
228
|
+
readonly "module fmt": {
|
|
229
|
+
readonly path: "module fmt";
|
|
230
|
+
readonly positionals: readonly [];
|
|
231
|
+
readonly flags: {
|
|
232
|
+
readonly check: {
|
|
233
|
+
readonly type: "bool";
|
|
234
|
+
};
|
|
235
|
+
readonly diff: {
|
|
236
|
+
readonly type: "bool";
|
|
237
|
+
};
|
|
238
|
+
readonly output: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
readonly values: readonly ["table", "json"];
|
|
241
|
+
};
|
|
242
|
+
readonly path: {
|
|
243
|
+
readonly type: "string";
|
|
244
|
+
};
|
|
245
|
+
readonly recursive: {
|
|
246
|
+
readonly type: "bool";
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly hidden: false;
|
|
250
|
+
readonly yes: false;
|
|
251
|
+
};
|
|
252
|
+
readonly "module scan": {
|
|
253
|
+
readonly path: "module scan";
|
|
254
|
+
readonly positionals: readonly [];
|
|
255
|
+
readonly flags: {
|
|
256
|
+
readonly output: {
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
readonly values: readonly ["table", "json", "sarif", "junit", "checkstyle"];
|
|
259
|
+
};
|
|
260
|
+
readonly path: {
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
};
|
|
263
|
+
readonly severity: {
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
readonly values: readonly ["LOW", "MEDIUM", "HIGH", "CRITICAL"];
|
|
266
|
+
};
|
|
267
|
+
readonly softFail: {
|
|
268
|
+
readonly type: "bool";
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
readonly hidden: false;
|
|
272
|
+
readonly yes: false;
|
|
273
|
+
};
|
|
274
|
+
readonly "module validate": {
|
|
275
|
+
readonly path: "module validate";
|
|
276
|
+
readonly positionals: readonly [];
|
|
277
|
+
readonly flags: {
|
|
278
|
+
readonly org: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
};
|
|
281
|
+
readonly output: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
readonly values: readonly ["table", "json"];
|
|
284
|
+
};
|
|
285
|
+
readonly path: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
};
|
|
288
|
+
readonly view: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
readonly values: readonly ["public", "publication"];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
readonly hidden: false;
|
|
294
|
+
readonly yes: false;
|
|
295
|
+
};
|
|
296
|
+
readonly "org current": {
|
|
297
|
+
readonly path: "org current";
|
|
298
|
+
readonly positionals: readonly [];
|
|
299
|
+
readonly flags: {
|
|
300
|
+
readonly output: {
|
|
301
|
+
readonly type: "string";
|
|
302
|
+
readonly values: readonly ["table", "json"];
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
readonly hidden: false;
|
|
306
|
+
readonly yes: false;
|
|
307
|
+
};
|
|
308
|
+
readonly "org list": {
|
|
309
|
+
readonly path: "org list";
|
|
310
|
+
readonly positionals: readonly [];
|
|
311
|
+
readonly flags: {
|
|
312
|
+
readonly output: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly values: readonly ["table", "json"];
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
readonly hidden: false;
|
|
318
|
+
readonly yes: false;
|
|
319
|
+
};
|
|
320
|
+
readonly "org use": {
|
|
321
|
+
readonly path: "org use";
|
|
322
|
+
readonly positionals: readonly [{
|
|
323
|
+
readonly name: "org";
|
|
324
|
+
readonly kind: "required";
|
|
325
|
+
}];
|
|
326
|
+
readonly flags: {};
|
|
327
|
+
readonly hidden: false;
|
|
328
|
+
readonly yes: false;
|
|
329
|
+
};
|
|
330
|
+
readonly "policy get": {
|
|
331
|
+
readonly path: "policy get";
|
|
332
|
+
readonly positionals: readonly [{
|
|
333
|
+
readonly name: "policy";
|
|
334
|
+
readonly kind: "required";
|
|
335
|
+
}];
|
|
336
|
+
readonly flags: {
|
|
337
|
+
readonly org: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
};
|
|
340
|
+
readonly output: {
|
|
341
|
+
readonly type: "string";
|
|
342
|
+
readonly values: readonly ["table", "json"];
|
|
343
|
+
};
|
|
344
|
+
readonly team: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
readonly hidden: false;
|
|
349
|
+
readonly yes: false;
|
|
350
|
+
};
|
|
351
|
+
readonly "policy list": {
|
|
352
|
+
readonly path: "policy list";
|
|
353
|
+
readonly positionals: readonly [];
|
|
354
|
+
readonly flags: {
|
|
355
|
+
readonly org: {
|
|
356
|
+
readonly type: "string";
|
|
357
|
+
};
|
|
358
|
+
readonly output: {
|
|
359
|
+
readonly type: "string";
|
|
360
|
+
readonly values: readonly ["table", "json"];
|
|
361
|
+
};
|
|
362
|
+
readonly stack: {
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
};
|
|
365
|
+
readonly team: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
readonly hidden: false;
|
|
370
|
+
readonly yes: false;
|
|
371
|
+
};
|
|
372
|
+
readonly "registry get": {
|
|
373
|
+
readonly path: "registry get";
|
|
374
|
+
readonly positionals: readonly [{
|
|
375
|
+
readonly name: "artifact";
|
|
376
|
+
readonly kind: "required";
|
|
377
|
+
}];
|
|
378
|
+
readonly flags: {
|
|
379
|
+
readonly org: {
|
|
380
|
+
readonly type: "string";
|
|
381
|
+
};
|
|
382
|
+
readonly output: {
|
|
383
|
+
readonly type: "string";
|
|
384
|
+
readonly values: readonly ["table", "json"];
|
|
385
|
+
};
|
|
386
|
+
readonly view: {
|
|
387
|
+
readonly type: "string";
|
|
388
|
+
readonly values: readonly ["public"];
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
readonly hidden: false;
|
|
392
|
+
readonly yes: false;
|
|
393
|
+
};
|
|
394
|
+
readonly "registry list": {
|
|
395
|
+
readonly path: "registry list";
|
|
396
|
+
readonly positionals: readonly [];
|
|
397
|
+
readonly flags: {
|
|
398
|
+
readonly author: {
|
|
399
|
+
readonly type: "string";
|
|
400
|
+
};
|
|
401
|
+
readonly axis: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly values: readonly ["module", "scanner", "handler", "agent"];
|
|
404
|
+
};
|
|
405
|
+
readonly limit: {
|
|
406
|
+
readonly type: "int";
|
|
407
|
+
};
|
|
408
|
+
readonly org: {
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
};
|
|
411
|
+
readonly output: {
|
|
412
|
+
readonly type: "string";
|
|
413
|
+
readonly values: readonly ["table", "json"];
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
readonly hidden: false;
|
|
417
|
+
readonly yes: false;
|
|
418
|
+
};
|
|
419
|
+
readonly "registry validate": {
|
|
420
|
+
readonly path: "registry validate";
|
|
421
|
+
readonly positionals: readonly [];
|
|
422
|
+
readonly flags: {
|
|
423
|
+
readonly axis: {
|
|
424
|
+
readonly type: "string";
|
|
425
|
+
readonly values: readonly ["module", "scanner", "handler", "agent"];
|
|
426
|
+
readonly required: true;
|
|
427
|
+
};
|
|
428
|
+
readonly manifest: {
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
readonly required: true;
|
|
431
|
+
};
|
|
432
|
+
readonly output: {
|
|
433
|
+
readonly type: "string";
|
|
434
|
+
readonly values: readonly ["table", "json"];
|
|
435
|
+
};
|
|
436
|
+
readonly readme: {
|
|
437
|
+
readonly type: "string";
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly hidden: false;
|
|
441
|
+
readonly yes: false;
|
|
442
|
+
};
|
|
443
|
+
readonly "run bundle": {
|
|
444
|
+
readonly path: "run bundle";
|
|
445
|
+
readonly positionals: readonly [{
|
|
446
|
+
readonly name: "run";
|
|
447
|
+
readonly kind: "required";
|
|
448
|
+
}];
|
|
449
|
+
readonly flags: {
|
|
450
|
+
readonly org: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
};
|
|
453
|
+
readonly output: {
|
|
454
|
+
readonly type: "string";
|
|
455
|
+
readonly values: readonly ["json"];
|
|
456
|
+
};
|
|
457
|
+
readonly team: {
|
|
458
|
+
readonly type: "string";
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
readonly hidden: false;
|
|
462
|
+
readonly yes: false;
|
|
463
|
+
};
|
|
464
|
+
readonly "run cancel": {
|
|
465
|
+
readonly path: "run cancel";
|
|
466
|
+
readonly positionals: readonly [{
|
|
467
|
+
readonly name: "run";
|
|
468
|
+
readonly kind: "required";
|
|
469
|
+
}];
|
|
470
|
+
readonly flags: {
|
|
471
|
+
readonly org: {
|
|
472
|
+
readonly type: "string";
|
|
473
|
+
};
|
|
474
|
+
readonly output: {
|
|
475
|
+
readonly type: "string";
|
|
476
|
+
readonly values: readonly ["table", "json"];
|
|
477
|
+
};
|
|
478
|
+
readonly reason: {
|
|
479
|
+
readonly type: "string";
|
|
480
|
+
};
|
|
481
|
+
readonly team: {
|
|
482
|
+
readonly type: "string";
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
readonly hidden: false;
|
|
486
|
+
readonly yes: false;
|
|
487
|
+
};
|
|
488
|
+
readonly "run get": {
|
|
489
|
+
readonly path: "run get";
|
|
490
|
+
readonly positionals: readonly [{
|
|
491
|
+
readonly name: "run";
|
|
492
|
+
readonly kind: "optional";
|
|
493
|
+
}];
|
|
494
|
+
readonly flags: {
|
|
495
|
+
readonly change: {
|
|
496
|
+
readonly type: "string";
|
|
497
|
+
};
|
|
498
|
+
readonly org: {
|
|
499
|
+
readonly type: "string";
|
|
500
|
+
};
|
|
501
|
+
readonly output: {
|
|
502
|
+
readonly type: "string";
|
|
503
|
+
readonly values: readonly ["table", "json"];
|
|
504
|
+
};
|
|
505
|
+
readonly team: {
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
readonly hidden: false;
|
|
510
|
+
readonly yes: false;
|
|
511
|
+
};
|
|
512
|
+
readonly "run list": {
|
|
513
|
+
readonly path: "run list";
|
|
514
|
+
readonly positionals: readonly [];
|
|
515
|
+
readonly flags: {
|
|
516
|
+
readonly change: {
|
|
517
|
+
readonly type: "string";
|
|
518
|
+
};
|
|
519
|
+
readonly cursor: {
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
};
|
|
522
|
+
readonly kind: {
|
|
523
|
+
readonly type: "string";
|
|
524
|
+
};
|
|
525
|
+
readonly limit: {
|
|
526
|
+
readonly type: "int";
|
|
527
|
+
};
|
|
528
|
+
readonly org: {
|
|
529
|
+
readonly type: "string";
|
|
530
|
+
};
|
|
531
|
+
readonly output: {
|
|
532
|
+
readonly type: "string";
|
|
533
|
+
readonly values: readonly ["table", "json"];
|
|
534
|
+
};
|
|
535
|
+
readonly stack: {
|
|
536
|
+
readonly type: "string";
|
|
537
|
+
};
|
|
538
|
+
readonly startedAfter: {
|
|
539
|
+
readonly type: "string";
|
|
540
|
+
};
|
|
541
|
+
readonly status: {
|
|
542
|
+
readonly type: "string";
|
|
543
|
+
};
|
|
544
|
+
readonly team: {
|
|
545
|
+
readonly type: "string";
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
readonly hidden: false;
|
|
549
|
+
readonly yes: false;
|
|
550
|
+
};
|
|
551
|
+
readonly "run logs": {
|
|
552
|
+
readonly path: "run logs";
|
|
553
|
+
readonly positionals: readonly [{
|
|
554
|
+
readonly name: "run";
|
|
555
|
+
readonly kind: "required";
|
|
556
|
+
}];
|
|
557
|
+
readonly flags: {
|
|
558
|
+
readonly follow: {
|
|
559
|
+
readonly type: "bool";
|
|
560
|
+
};
|
|
561
|
+
readonly org: {
|
|
562
|
+
readonly type: "string";
|
|
563
|
+
};
|
|
564
|
+
readonly output: {
|
|
565
|
+
readonly type: "string";
|
|
566
|
+
readonly values: readonly ["table", "json"];
|
|
567
|
+
};
|
|
568
|
+
readonly team: {
|
|
569
|
+
readonly type: "string";
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
readonly hidden: false;
|
|
573
|
+
readonly yes: false;
|
|
574
|
+
};
|
|
575
|
+
readonly "run plan": {
|
|
576
|
+
readonly path: "run plan";
|
|
577
|
+
readonly positionals: readonly [{
|
|
578
|
+
readonly name: "run";
|
|
579
|
+
readonly kind: "required";
|
|
580
|
+
}];
|
|
581
|
+
readonly flags: {
|
|
582
|
+
readonly org: {
|
|
583
|
+
readonly type: "string";
|
|
584
|
+
};
|
|
585
|
+
readonly output: {
|
|
586
|
+
readonly type: "string";
|
|
587
|
+
readonly values: readonly ["table", "json"];
|
|
588
|
+
};
|
|
589
|
+
readonly team: {
|
|
590
|
+
readonly type: "string";
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
readonly hidden: false;
|
|
594
|
+
readonly yes: false;
|
|
595
|
+
};
|
|
596
|
+
readonly "stack apply": {
|
|
597
|
+
readonly path: "stack apply";
|
|
598
|
+
readonly positionals: readonly [{
|
|
599
|
+
readonly name: "stack";
|
|
600
|
+
readonly kind: "required";
|
|
601
|
+
}];
|
|
602
|
+
readonly flags: {
|
|
603
|
+
readonly allowSourceMismatch: {
|
|
604
|
+
readonly type: "bool";
|
|
605
|
+
};
|
|
606
|
+
readonly commit: {
|
|
607
|
+
readonly type: "string";
|
|
608
|
+
};
|
|
609
|
+
readonly org: {
|
|
610
|
+
readonly type: "string";
|
|
611
|
+
};
|
|
612
|
+
readonly output: {
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
readonly values: readonly ["table", "json"];
|
|
615
|
+
};
|
|
616
|
+
readonly prUrl: {
|
|
617
|
+
readonly type: "string";
|
|
618
|
+
};
|
|
619
|
+
readonly ref: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
};
|
|
622
|
+
readonly team: {
|
|
623
|
+
readonly type: "string";
|
|
624
|
+
};
|
|
625
|
+
readonly var: {
|
|
626
|
+
readonly type: "stringArray";
|
|
627
|
+
readonly repeated: true;
|
|
628
|
+
};
|
|
629
|
+
readonly varFile: {
|
|
630
|
+
readonly type: "stringArray";
|
|
631
|
+
readonly repeated: true;
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
readonly hidden: false;
|
|
635
|
+
readonly yes: false;
|
|
636
|
+
};
|
|
637
|
+
readonly "stack create": {
|
|
638
|
+
readonly path: "stack create";
|
|
639
|
+
readonly positionals: readonly [{
|
|
640
|
+
readonly name: "slug";
|
|
641
|
+
readonly kind: "required";
|
|
642
|
+
}];
|
|
643
|
+
readonly flags: {
|
|
644
|
+
readonly connection: {
|
|
645
|
+
readonly type: "string";
|
|
646
|
+
readonly required: true;
|
|
647
|
+
};
|
|
648
|
+
readonly description: {
|
|
649
|
+
readonly type: "string";
|
|
650
|
+
};
|
|
651
|
+
readonly name: {
|
|
652
|
+
readonly type: "string";
|
|
653
|
+
};
|
|
654
|
+
readonly org: {
|
|
655
|
+
readonly type: "string";
|
|
656
|
+
};
|
|
657
|
+
readonly output: {
|
|
658
|
+
readonly type: "string";
|
|
659
|
+
readonly values: readonly ["table", "json"];
|
|
660
|
+
};
|
|
661
|
+
readonly source: {
|
|
662
|
+
readonly type: "string";
|
|
663
|
+
};
|
|
664
|
+
readonly sourcePath: {
|
|
665
|
+
readonly type: "string";
|
|
666
|
+
};
|
|
667
|
+
readonly sourceRef: {
|
|
668
|
+
readonly type: "string";
|
|
669
|
+
};
|
|
670
|
+
readonly sourceRepo: {
|
|
671
|
+
readonly type: "string";
|
|
672
|
+
};
|
|
673
|
+
readonly team: {
|
|
674
|
+
readonly type: "string";
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
readonly hidden: false;
|
|
678
|
+
readonly yes: false;
|
|
679
|
+
};
|
|
680
|
+
readonly "stack delete": {
|
|
681
|
+
readonly path: "stack delete";
|
|
682
|
+
readonly positionals: readonly [{
|
|
683
|
+
readonly name: "stack";
|
|
684
|
+
readonly kind: "required";
|
|
685
|
+
}];
|
|
686
|
+
readonly flags: {
|
|
687
|
+
readonly org: {
|
|
688
|
+
readonly type: "string";
|
|
689
|
+
};
|
|
690
|
+
readonly output: {
|
|
691
|
+
readonly type: "string";
|
|
692
|
+
readonly values: readonly ["table", "json"];
|
|
693
|
+
};
|
|
694
|
+
readonly team: {
|
|
695
|
+
readonly type: "string";
|
|
696
|
+
};
|
|
697
|
+
readonly yes: {
|
|
698
|
+
readonly type: "bool";
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
readonly hidden: false;
|
|
702
|
+
readonly yes: true;
|
|
703
|
+
};
|
|
704
|
+
readonly "stack describe": {
|
|
705
|
+
readonly path: "stack describe";
|
|
706
|
+
readonly positionals: readonly [{
|
|
707
|
+
readonly name: "stack";
|
|
708
|
+
readonly kind: "required";
|
|
709
|
+
}];
|
|
710
|
+
readonly flags: {
|
|
711
|
+
readonly full: {
|
|
712
|
+
readonly type: "bool";
|
|
713
|
+
};
|
|
714
|
+
readonly includeArchived: {
|
|
715
|
+
readonly type: "bool";
|
|
716
|
+
};
|
|
717
|
+
readonly org: {
|
|
718
|
+
readonly type: "string";
|
|
719
|
+
};
|
|
720
|
+
readonly output: {
|
|
721
|
+
readonly type: "string";
|
|
722
|
+
readonly values: readonly ["table", "json"];
|
|
723
|
+
};
|
|
724
|
+
readonly team: {
|
|
725
|
+
readonly type: "string";
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
readonly hidden: false;
|
|
729
|
+
readonly yes: false;
|
|
730
|
+
};
|
|
731
|
+
readonly "stack destroy": {
|
|
732
|
+
readonly path: "stack destroy";
|
|
733
|
+
readonly positionals: readonly [{
|
|
734
|
+
readonly name: "stack";
|
|
735
|
+
readonly kind: "required";
|
|
736
|
+
}];
|
|
737
|
+
readonly flags: {
|
|
738
|
+
readonly allowSourceMismatch: {
|
|
739
|
+
readonly type: "bool";
|
|
740
|
+
};
|
|
741
|
+
readonly archive: {
|
|
742
|
+
readonly type: "bool";
|
|
743
|
+
};
|
|
744
|
+
readonly commit: {
|
|
745
|
+
readonly type: "string";
|
|
746
|
+
};
|
|
747
|
+
readonly org: {
|
|
748
|
+
readonly type: "string";
|
|
749
|
+
};
|
|
750
|
+
readonly output: {
|
|
751
|
+
readonly type: "string";
|
|
752
|
+
readonly values: readonly ["table", "json"];
|
|
753
|
+
};
|
|
754
|
+
readonly prUrl: {
|
|
755
|
+
readonly type: "string";
|
|
756
|
+
};
|
|
757
|
+
readonly ref: {
|
|
758
|
+
readonly type: "string";
|
|
759
|
+
};
|
|
760
|
+
readonly team: {
|
|
761
|
+
readonly type: "string";
|
|
762
|
+
};
|
|
763
|
+
readonly var: {
|
|
764
|
+
readonly type: "stringArray";
|
|
765
|
+
readonly repeated: true;
|
|
766
|
+
};
|
|
767
|
+
readonly varFile: {
|
|
768
|
+
readonly type: "stringArray";
|
|
769
|
+
readonly repeated: true;
|
|
770
|
+
};
|
|
771
|
+
readonly yes: {
|
|
772
|
+
readonly type: "bool";
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
readonly hidden: false;
|
|
776
|
+
readonly yes: true;
|
|
777
|
+
};
|
|
778
|
+
readonly "stack get": {
|
|
779
|
+
readonly path: "stack get";
|
|
780
|
+
readonly positionals: readonly [{
|
|
781
|
+
readonly name: "stack";
|
|
782
|
+
readonly kind: "required";
|
|
783
|
+
}];
|
|
784
|
+
readonly flags: {
|
|
785
|
+
readonly includeArchived: {
|
|
786
|
+
readonly type: "bool";
|
|
787
|
+
};
|
|
788
|
+
readonly org: {
|
|
789
|
+
readonly type: "string";
|
|
790
|
+
};
|
|
791
|
+
readonly output: {
|
|
792
|
+
readonly type: "string";
|
|
793
|
+
readonly values: readonly ["table", "json"];
|
|
794
|
+
};
|
|
795
|
+
readonly team: {
|
|
796
|
+
readonly type: "string";
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
readonly hidden: false;
|
|
800
|
+
readonly yes: false;
|
|
801
|
+
};
|
|
802
|
+
readonly "stack import": {
|
|
803
|
+
readonly path: "stack import";
|
|
804
|
+
readonly positionals: readonly [{
|
|
805
|
+
readonly name: "stack";
|
|
806
|
+
readonly kind: "required";
|
|
807
|
+
}];
|
|
808
|
+
readonly flags: {
|
|
809
|
+
readonly allowPartial: {
|
|
810
|
+
readonly type: "bool";
|
|
811
|
+
};
|
|
812
|
+
readonly org: {
|
|
813
|
+
readonly type: "string";
|
|
814
|
+
};
|
|
815
|
+
readonly output: {
|
|
816
|
+
readonly type: "string";
|
|
817
|
+
readonly values: readonly ["table", "json"];
|
|
818
|
+
};
|
|
819
|
+
readonly path: {
|
|
820
|
+
readonly type: "string";
|
|
821
|
+
};
|
|
822
|
+
readonly state: {
|
|
823
|
+
readonly type: "string";
|
|
824
|
+
readonly required: true;
|
|
825
|
+
};
|
|
826
|
+
readonly team: {
|
|
827
|
+
readonly type: "string";
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
readonly hidden: false;
|
|
831
|
+
readonly yes: false;
|
|
832
|
+
};
|
|
833
|
+
readonly "stack list": {
|
|
834
|
+
readonly path: "stack list";
|
|
835
|
+
readonly positionals: readonly [];
|
|
836
|
+
readonly flags: {
|
|
837
|
+
readonly cursor: {
|
|
838
|
+
readonly type: "string";
|
|
839
|
+
};
|
|
840
|
+
readonly includeArchived: {
|
|
841
|
+
readonly type: "bool";
|
|
842
|
+
};
|
|
843
|
+
readonly limit: {
|
|
844
|
+
readonly type: "int";
|
|
845
|
+
};
|
|
846
|
+
readonly org: {
|
|
847
|
+
readonly type: "string";
|
|
848
|
+
};
|
|
849
|
+
readonly output: {
|
|
850
|
+
readonly type: "string";
|
|
851
|
+
readonly values: readonly ["table", "json"];
|
|
852
|
+
};
|
|
853
|
+
readonly source: {
|
|
854
|
+
readonly type: "string";
|
|
855
|
+
};
|
|
856
|
+
readonly team: {
|
|
857
|
+
readonly type: "string";
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
readonly hidden: false;
|
|
861
|
+
readonly yes: false;
|
|
862
|
+
};
|
|
863
|
+
readonly "stack preview": {
|
|
864
|
+
readonly path: "stack preview";
|
|
865
|
+
readonly positionals: readonly [{
|
|
866
|
+
readonly name: "stack";
|
|
867
|
+
readonly kind: "required";
|
|
868
|
+
}];
|
|
869
|
+
readonly flags: {
|
|
870
|
+
readonly org: {
|
|
871
|
+
readonly type: "string";
|
|
872
|
+
};
|
|
873
|
+
readonly output: {
|
|
874
|
+
readonly type: "string";
|
|
875
|
+
readonly values: readonly ["table", "json"];
|
|
876
|
+
};
|
|
877
|
+
readonly team: {
|
|
878
|
+
readonly type: "string";
|
|
879
|
+
};
|
|
880
|
+
readonly var: {
|
|
881
|
+
readonly type: "stringArray";
|
|
882
|
+
readonly repeated: true;
|
|
883
|
+
};
|
|
884
|
+
readonly varFile: {
|
|
885
|
+
readonly type: "stringArray";
|
|
886
|
+
readonly repeated: true;
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
readonly hidden: false;
|
|
890
|
+
readonly yes: false;
|
|
891
|
+
};
|
|
892
|
+
readonly "stack scan": {
|
|
893
|
+
readonly path: "stack scan";
|
|
894
|
+
readonly positionals: readonly [{
|
|
895
|
+
readonly name: "stack";
|
|
896
|
+
readonly kind: "required";
|
|
897
|
+
}];
|
|
898
|
+
readonly flags: {
|
|
899
|
+
readonly full: {
|
|
900
|
+
readonly type: "bool";
|
|
901
|
+
};
|
|
902
|
+
readonly org: {
|
|
903
|
+
readonly type: "string";
|
|
904
|
+
};
|
|
905
|
+
readonly output: {
|
|
906
|
+
readonly type: "string";
|
|
907
|
+
readonly values: readonly ["table", "json"];
|
|
908
|
+
};
|
|
909
|
+
readonly team: {
|
|
910
|
+
readonly type: "string";
|
|
911
|
+
};
|
|
912
|
+
readonly wait: {
|
|
913
|
+
readonly type: "bool";
|
|
914
|
+
};
|
|
915
|
+
readonly waitTimeout: {
|
|
916
|
+
readonly type: "duration";
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
readonly hidden: false;
|
|
920
|
+
readonly yes: false;
|
|
921
|
+
};
|
|
922
|
+
readonly "stack update": {
|
|
923
|
+
readonly path: "stack update";
|
|
924
|
+
readonly positionals: readonly [{
|
|
925
|
+
readonly name: "stack";
|
|
926
|
+
readonly kind: "required";
|
|
927
|
+
}];
|
|
928
|
+
readonly flags: {
|
|
929
|
+
readonly description: {
|
|
930
|
+
readonly type: "string";
|
|
931
|
+
};
|
|
932
|
+
readonly name: {
|
|
933
|
+
readonly type: "string";
|
|
934
|
+
};
|
|
935
|
+
readonly org: {
|
|
936
|
+
readonly type: "string";
|
|
937
|
+
};
|
|
938
|
+
readonly output: {
|
|
939
|
+
readonly type: "string";
|
|
940
|
+
readonly values: readonly ["table", "json"];
|
|
941
|
+
};
|
|
942
|
+
readonly sourcePath: {
|
|
943
|
+
readonly type: "string";
|
|
944
|
+
};
|
|
945
|
+
readonly sourceRef: {
|
|
946
|
+
readonly type: "string";
|
|
947
|
+
};
|
|
948
|
+
readonly sourceRepo: {
|
|
949
|
+
readonly type: "string";
|
|
950
|
+
};
|
|
951
|
+
readonly team: {
|
|
952
|
+
readonly type: "string";
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
readonly hidden: false;
|
|
956
|
+
readonly yes: false;
|
|
957
|
+
};
|
|
958
|
+
readonly "team current": {
|
|
959
|
+
readonly path: "team current";
|
|
960
|
+
readonly positionals: readonly [];
|
|
961
|
+
readonly flags: {
|
|
962
|
+
readonly org: {
|
|
963
|
+
readonly type: "string";
|
|
964
|
+
};
|
|
965
|
+
readonly output: {
|
|
966
|
+
readonly type: "string";
|
|
967
|
+
readonly values: readonly ["table", "json"];
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
readonly hidden: false;
|
|
971
|
+
readonly yes: false;
|
|
972
|
+
};
|
|
973
|
+
readonly "team list": {
|
|
974
|
+
readonly path: "team list";
|
|
975
|
+
readonly positionals: readonly [];
|
|
976
|
+
readonly flags: {
|
|
977
|
+
readonly cursor: {
|
|
978
|
+
readonly type: "string";
|
|
979
|
+
};
|
|
980
|
+
readonly limit: {
|
|
981
|
+
readonly type: "int";
|
|
982
|
+
};
|
|
983
|
+
readonly org: {
|
|
984
|
+
readonly type: "string";
|
|
985
|
+
};
|
|
986
|
+
readonly output: {
|
|
987
|
+
readonly type: "string";
|
|
988
|
+
readonly values: readonly ["table", "json"];
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
readonly hidden: false;
|
|
992
|
+
readonly yes: false;
|
|
993
|
+
};
|
|
994
|
+
readonly "team use": {
|
|
995
|
+
readonly path: "team use";
|
|
996
|
+
readonly positionals: readonly [{
|
|
997
|
+
readonly name: "team";
|
|
998
|
+
readonly kind: "required";
|
|
999
|
+
}];
|
|
1000
|
+
readonly flags: {
|
|
1001
|
+
readonly org: {
|
|
1002
|
+
readonly type: "string";
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
readonly hidden: false;
|
|
1006
|
+
readonly yes: false;
|
|
1007
|
+
};
|
|
1008
|
+
readonly version: {
|
|
1009
|
+
readonly path: "version";
|
|
1010
|
+
readonly positionals: readonly [];
|
|
1011
|
+
readonly flags: {
|
|
1012
|
+
readonly output: {
|
|
1013
|
+
readonly type: "string";
|
|
1014
|
+
readonly values: readonly ["table", "json"];
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
readonly hidden: false;
|
|
1018
|
+
readonly yes: false;
|
|
1019
|
+
};
|
|
1020
|
+
readonly whoami: {
|
|
1021
|
+
readonly path: "whoami";
|
|
1022
|
+
readonly positionals: readonly [];
|
|
1023
|
+
readonly flags: {
|
|
1024
|
+
readonly output: {
|
|
1025
|
+
readonly type: "string";
|
|
1026
|
+
readonly values: readonly ["table", "json"];
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
readonly hidden: false;
|
|
1030
|
+
readonly yes: false;
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
/** Every non-hidden command path, minus `lace ` and minus `lace engine`. */
|
|
1034
|
+
type CommandPath = keyof typeof COMMANDS;
|
|
1035
|
+
type FlagTypeOf<F> = F extends {
|
|
1036
|
+
type: "bool";
|
|
1037
|
+
} ? boolean : F extends {
|
|
1038
|
+
type: "int";
|
|
1039
|
+
} ? number : F extends {
|
|
1040
|
+
type: "stringArray";
|
|
1041
|
+
} ? string[] : F extends {
|
|
1042
|
+
values: readonly (infer V)[];
|
|
1043
|
+
} ? V : string;
|
|
1044
|
+
type PositionalOf<P extends CommandPath> = (typeof COMMANDS)[P]["positionals"][number];
|
|
1045
|
+
type PositionalNameOf<P extends CommandPath, Kind extends "required" | "optional" | "variadic"> = Extract<PositionalOf<P>, {
|
|
1046
|
+
kind: Kind;
|
|
1047
|
+
}>["name"];
|
|
1048
|
+
/** `output` is excluded: Invoke owns it, never the command binding. */
|
|
1049
|
+
type FlagKeys<P extends CommandPath> = Exclude<keyof (typeof COMMANDS)[P]["flags"], "output">;
|
|
1050
|
+
type RequiredFlagKeys<P extends CommandPath> = {
|
|
1051
|
+
[K in FlagKeys<P>]: (typeof COMMANDS)[P]["flags"][K] extends {
|
|
1052
|
+
required: true;
|
|
1053
|
+
} ? K : never;
|
|
1054
|
+
}[FlagKeys<P>];
|
|
1055
|
+
type OptionalFlagKeys<P extends CommandPath> = Exclude<FlagKeys<P>, RequiredFlagKeys<P>>;
|
|
1056
|
+
/** Required positionals/flags are non-optional; enum flags become unions. */
|
|
1057
|
+
type ArgsOf<P extends CommandPath> = {
|
|
1058
|
+
[K in PositionalNameOf<P, "required">]: string;
|
|
1059
|
+
} & {
|
|
1060
|
+
[K in PositionalNameOf<P, "optional">]?: string;
|
|
1061
|
+
} & {
|
|
1062
|
+
[K in PositionalNameOf<P, "variadic">]?: string[];
|
|
1063
|
+
} & {
|
|
1064
|
+
[K in RequiredFlagKeys<P>]: FlagTypeOf<(typeof COMMANDS)[P]["flags"][K]>;
|
|
1065
|
+
} & {
|
|
1066
|
+
[K in OptionalFlagKeys<P>]?: FlagTypeOf<(typeof COMMANDS)[P]["flags"][K]>;
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Every path an overlay, panel or action binds — a bound path with no
|
|
1071
|
+
* golden is a failing test, not a silent gap.
|
|
1072
|
+
*/
|
|
1073
|
+
declare const SCHEMAS: {
|
|
1074
|
+
'module validate': z.ZodObject<{
|
|
1075
|
+
root: z.ZodString;
|
|
1076
|
+
treeHash: z.ZodString;
|
|
1077
|
+
verdict: z.ZodEnum<{
|
|
1078
|
+
"already-lace-style": "already-lace-style";
|
|
1079
|
+
"representable-but-transpilable": "representable-but-transpilable";
|
|
1080
|
+
lossy: "lossy";
|
|
1081
|
+
}>;
|
|
1082
|
+
residuals: z.ZodArray<z.ZodObject<{
|
|
1083
|
+
construct: z.ZodString;
|
|
1084
|
+
subject: z.ZodString;
|
|
1085
|
+
file: z.ZodString;
|
|
1086
|
+
line: z.ZodNumber;
|
|
1087
|
+
code: z.ZodString;
|
|
1088
|
+
guidance: z.ZodString;
|
|
1089
|
+
}, z.core.$strip>>;
|
|
1090
|
+
deviation: z.ZodNullable<z.ZodObject<{
|
|
1091
|
+
notCompositional: z.ZodBoolean;
|
|
1092
|
+
clusters: z.ZodArray<z.ZodUnknown>;
|
|
1093
|
+
residuals: z.ZodArray<z.ZodUnknown>;
|
|
1094
|
+
hasManagedBackend: z.ZodBoolean;
|
|
1095
|
+
backendFindings: z.ZodArray<z.ZodObject<{
|
|
1096
|
+
file: z.ZodString;
|
|
1097
|
+
line: z.ZodNumber;
|
|
1098
|
+
kind: z.ZodString;
|
|
1099
|
+
}, z.core.$strip>>;
|
|
1100
|
+
sharedLocalSource: z.ZodBoolean;
|
|
1101
|
+
sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
|
|
1102
|
+
uncomposable: z.ZodBoolean;
|
|
1103
|
+
uncomposableReason: z.ZodString;
|
|
1104
|
+
registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
|
|
1105
|
+
childNotLaceForm: z.ZodArray<z.ZodUnknown>;
|
|
1106
|
+
}, z.core.$strip>>;
|
|
1107
|
+
terraform: z.ZodNullable<z.ZodObject<{
|
|
1108
|
+
valid: z.ZodBoolean;
|
|
1109
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
1110
|
+
path: z.ZodString;
|
|
1111
|
+
line: z.ZodNumber;
|
|
1112
|
+
column: z.ZodNumber;
|
|
1113
|
+
severity: z.ZodString;
|
|
1114
|
+
message: z.ZodString;
|
|
1115
|
+
}, z.core.$strip>>;
|
|
1116
|
+
}, z.core.$strip>>;
|
|
1117
|
+
modules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1118
|
+
address: z.ZodString;
|
|
1119
|
+
version: z.ZodString;
|
|
1120
|
+
treeHash: z.ZodString;
|
|
1121
|
+
}, z.core.$strip>>>;
|
|
1122
|
+
exitClass: z.ZodString;
|
|
1123
|
+
}, z.core.$strip>;
|
|
1124
|
+
'module convert': z.ZodObject<{
|
|
1125
|
+
changed: z.ZodBoolean;
|
|
1126
|
+
written: z.ZodArray<z.ZodString>;
|
|
1127
|
+
removed: z.ZodArray<z.ZodString>;
|
|
1128
|
+
residuals: z.ZodArray<z.ZodUnknown>;
|
|
1129
|
+
validate: z.ZodObject<{
|
|
1130
|
+
root: z.ZodString;
|
|
1131
|
+
treeHash: z.ZodString;
|
|
1132
|
+
verdict: z.ZodEnum<{
|
|
1133
|
+
"already-lace-style": "already-lace-style";
|
|
1134
|
+
"representable-but-transpilable": "representable-but-transpilable";
|
|
1135
|
+
lossy: "lossy";
|
|
1136
|
+
}>;
|
|
1137
|
+
residuals: z.ZodArray<z.ZodObject<{
|
|
1138
|
+
construct: z.ZodString;
|
|
1139
|
+
subject: z.ZodString;
|
|
1140
|
+
file: z.ZodString;
|
|
1141
|
+
line: z.ZodNumber;
|
|
1142
|
+
code: z.ZodString;
|
|
1143
|
+
guidance: z.ZodString;
|
|
1144
|
+
}, z.core.$strip>>;
|
|
1145
|
+
deviation: z.ZodNullable<z.ZodObject<{
|
|
1146
|
+
notCompositional: z.ZodBoolean;
|
|
1147
|
+
clusters: z.ZodArray<z.ZodUnknown>;
|
|
1148
|
+
residuals: z.ZodArray<z.ZodUnknown>;
|
|
1149
|
+
hasManagedBackend: z.ZodBoolean;
|
|
1150
|
+
backendFindings: z.ZodArray<z.ZodObject<{
|
|
1151
|
+
file: z.ZodString;
|
|
1152
|
+
line: z.ZodNumber;
|
|
1153
|
+
kind: z.ZodString;
|
|
1154
|
+
}, z.core.$strip>>;
|
|
1155
|
+
sharedLocalSource: z.ZodBoolean;
|
|
1156
|
+
sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
|
|
1157
|
+
uncomposable: z.ZodBoolean;
|
|
1158
|
+
uncomposableReason: z.ZodString;
|
|
1159
|
+
registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
|
|
1160
|
+
childNotLaceForm: z.ZodArray<z.ZodUnknown>;
|
|
1161
|
+
}, z.core.$strip>>;
|
|
1162
|
+
terraform: z.ZodNullable<z.ZodObject<{
|
|
1163
|
+
valid: z.ZodBoolean;
|
|
1164
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
1165
|
+
path: z.ZodString;
|
|
1166
|
+
line: z.ZodNumber;
|
|
1167
|
+
column: z.ZodNumber;
|
|
1168
|
+
severity: z.ZodString;
|
|
1169
|
+
message: z.ZodString;
|
|
1170
|
+
}, z.core.$strip>>;
|
|
1171
|
+
}, z.core.$strip>>;
|
|
1172
|
+
modules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1173
|
+
address: z.ZodString;
|
|
1174
|
+
version: z.ZodString;
|
|
1175
|
+
treeHash: z.ZodString;
|
|
1176
|
+
}, z.core.$strip>>>;
|
|
1177
|
+
exitClass: z.ZodString;
|
|
1178
|
+
}, z.core.$strip>;
|
|
1179
|
+
}, z.core.$strip>;
|
|
1180
|
+
'registry list': z.ZodObject<{
|
|
1181
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1182
|
+
axis: z.ZodString;
|
|
1183
|
+
author: z.ZodString;
|
|
1184
|
+
name: z.ZodString;
|
|
1185
|
+
version: z.ZodString;
|
|
1186
|
+
status: z.ZodString;
|
|
1187
|
+
visibility: z.ZodString;
|
|
1188
|
+
description: z.ZodString;
|
|
1189
|
+
system: z.ZodString;
|
|
1190
|
+
sourceAddress: z.ZodString;
|
|
1191
|
+
publisherVerdict: z.ZodString;
|
|
1192
|
+
}, z.core.$strip>>;
|
|
1193
|
+
truncated: z.ZodBoolean;
|
|
1194
|
+
}, z.core.$strip>;
|
|
1195
|
+
'registry get': z.ZodObject<{
|
|
1196
|
+
axis: z.ZodString;
|
|
1197
|
+
author: z.ZodString;
|
|
1198
|
+
name: z.ZodString;
|
|
1199
|
+
treeHash: z.ZodString;
|
|
1200
|
+
repo: z.ZodString;
|
|
1201
|
+
commit: z.ZodString;
|
|
1202
|
+
latest: z.ZodObject<{
|
|
1203
|
+
id: z.ZodString;
|
|
1204
|
+
axis: z.ZodString;
|
|
1205
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1206
|
+
author: z.ZodString;
|
|
1207
|
+
name: z.ZodString;
|
|
1208
|
+
version: z.ZodString;
|
|
1209
|
+
org_id: z.ZodNullable<z.ZodString>;
|
|
1210
|
+
visibility: z.ZodString;
|
|
1211
|
+
ownership: z.ZodString;
|
|
1212
|
+
display_name: z.ZodString;
|
|
1213
|
+
description: z.ZodString;
|
|
1214
|
+
categories: z.ZodArray<z.ZodString>;
|
|
1215
|
+
status: z.ZodString;
|
|
1216
|
+
install_count: z.ZodNumber;
|
|
1217
|
+
published_at: z.ZodNullable<z.ZodString>;
|
|
1218
|
+
published_by: z.ZodNullable<z.ZodString>;
|
|
1219
|
+
created_at: z.ZodString;
|
|
1220
|
+
updated_at: z.ZodString;
|
|
1221
|
+
system: z.ZodNullable<z.ZodString>;
|
|
1222
|
+
source_address: z.ZodNullable<z.ZodString>;
|
|
1223
|
+
source_version: z.ZodNullable<z.ZodString>;
|
|
1224
|
+
tree_hash: z.ZodNullable<z.ZodString>;
|
|
1225
|
+
publisher_verdict: z.ZodNullable<z.ZodString>;
|
|
1226
|
+
publisher_modules: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
1227
|
+
attested_at: z.ZodNullable<z.ZodString>;
|
|
1228
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
1229
|
+
commit: z.ZodNullable<z.ZodString>;
|
|
1230
|
+
}, z.core.$strip>;
|
|
1231
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
1232
|
+
version: z.ZodString;
|
|
1233
|
+
status: z.ZodString;
|
|
1234
|
+
publishedAt: z.ZodString;
|
|
1235
|
+
}, z.core.$strip>>;
|
|
1236
|
+
}, z.core.$strip>;
|
|
1237
|
+
'stack list': z.ZodObject<{
|
|
1238
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1239
|
+
id: z.ZodString;
|
|
1240
|
+
orgId: z.ZodString;
|
|
1241
|
+
teamId: z.ZodString;
|
|
1242
|
+
connectionId: z.ZodString;
|
|
1243
|
+
slug: z.ZodString;
|
|
1244
|
+
name: z.ZodString;
|
|
1245
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1246
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
1247
|
+
kind: z.ZodLiteral<"git">;
|
|
1248
|
+
repoUrl: z.ZodString;
|
|
1249
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1250
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1251
|
+
}, z.core.$strip>>;
|
|
1252
|
+
stateSerial: z.ZodNumber;
|
|
1253
|
+
stateLineage: z.ZodNullable<z.ZodString>;
|
|
1254
|
+
stateVersion: z.ZodNullable<z.ZodNumber>;
|
|
1255
|
+
stateLastWrittenAt: z.ZodNullable<z.ZodString>;
|
|
1256
|
+
lastAppliedRunId: z.ZodNullable<z.ZodString>;
|
|
1257
|
+
lastDriftScanAt: z.ZodNullable<z.ZodString>;
|
|
1258
|
+
lastDriftStatus: z.ZodNullable<z.ZodString>;
|
|
1259
|
+
lastDriftCount: z.ZodNumber;
|
|
1260
|
+
lastDriftStale: z.ZodBoolean;
|
|
1261
|
+
lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
1262
|
+
lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
|
|
1263
|
+
chaosLockedByRunId: z.ZodNullable<z.ZodString>;
|
|
1264
|
+
chaosLockedAt: z.ZodNullable<z.ZodString>;
|
|
1265
|
+
createdBy: z.ZodString;
|
|
1266
|
+
createdAt: z.ZodString;
|
|
1267
|
+
updatedAt: z.ZodString;
|
|
1268
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1269
|
+
connection: z.ZodNullable<z.ZodObject<{
|
|
1270
|
+
name: z.ZodString;
|
|
1271
|
+
provider: z.ZodString;
|
|
1272
|
+
awsAccountId: z.ZodNullable<z.ZodString>;
|
|
1273
|
+
}, z.core.$strip>>;
|
|
1274
|
+
createdByName: z.ZodNullable<z.ZodString>;
|
|
1275
|
+
lastApply: z.ZodNullable<z.ZodObject<{
|
|
1276
|
+
runId: z.ZodString;
|
|
1277
|
+
bundleSnapshotId: z.ZodString;
|
|
1278
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1279
|
+
initiatedByName: z.ZodNullable<z.ZodString>;
|
|
1280
|
+
}, z.core.$strip>>;
|
|
1281
|
+
}, z.core.$strip>>;
|
|
1282
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1283
|
+
hasMore: z.ZodBoolean;
|
|
1284
|
+
}, z.core.$strip>;
|
|
1285
|
+
'stack describe': z.ZodObject<{
|
|
1286
|
+
stack: z.ZodNullable<z.ZodObject<{
|
|
1287
|
+
id: z.ZodString;
|
|
1288
|
+
orgId: z.ZodString;
|
|
1289
|
+
teamId: z.ZodString;
|
|
1290
|
+
connectionId: z.ZodString;
|
|
1291
|
+
slug: z.ZodString;
|
|
1292
|
+
name: z.ZodString;
|
|
1293
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1294
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
1295
|
+
kind: z.ZodLiteral<"git">;
|
|
1296
|
+
repoUrl: z.ZodString;
|
|
1297
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1298
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
}, z.core.$strip>>;
|
|
1300
|
+
stateSerial: z.ZodNumber;
|
|
1301
|
+
stateLineage: z.ZodNullable<z.ZodString>;
|
|
1302
|
+
stateVersion: z.ZodNullable<z.ZodNumber>;
|
|
1303
|
+
stateLastWrittenAt: z.ZodNullable<z.ZodString>;
|
|
1304
|
+
lastAppliedRunId: z.ZodNullable<z.ZodString>;
|
|
1305
|
+
lastDriftScanAt: z.ZodNullable<z.ZodString>;
|
|
1306
|
+
lastDriftStatus: z.ZodNullable<z.ZodString>;
|
|
1307
|
+
lastDriftCount: z.ZodNumber;
|
|
1308
|
+
lastDriftStale: z.ZodBoolean;
|
|
1309
|
+
lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
1310
|
+
lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
|
|
1311
|
+
chaosLockedByRunId: z.ZodNullable<z.ZodString>;
|
|
1312
|
+
chaosLockedAt: z.ZodNullable<z.ZodString>;
|
|
1313
|
+
createdBy: z.ZodString;
|
|
1314
|
+
createdAt: z.ZodString;
|
|
1315
|
+
updatedAt: z.ZodString;
|
|
1316
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1317
|
+
connection: z.ZodNullable<z.ZodObject<{
|
|
1318
|
+
name: z.ZodString;
|
|
1319
|
+
provider: z.ZodString;
|
|
1320
|
+
awsAccountId: z.ZodNullable<z.ZodString>;
|
|
1321
|
+
}, z.core.$strip>>;
|
|
1322
|
+
createdByName: z.ZodNullable<z.ZodString>;
|
|
1323
|
+
lastApply: z.ZodNullable<z.ZodObject<{
|
|
1324
|
+
runId: z.ZodString;
|
|
1325
|
+
bundleSnapshotId: z.ZodString;
|
|
1326
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1327
|
+
initiatedByName: z.ZodNullable<z.ZodString>;
|
|
1328
|
+
}, z.core.$strip>>;
|
|
1329
|
+
}, z.core.$strip>>;
|
|
1330
|
+
state: z.ZodNullable<z.ZodObject<{
|
|
1331
|
+
serial: z.ZodNumber;
|
|
1332
|
+
lineage: z.ZodString;
|
|
1333
|
+
terraformVersion: z.ZodString;
|
|
1334
|
+
resourceCount: z.ZodNumber;
|
|
1335
|
+
resourcesByType: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1336
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
1337
|
+
address: z.ZodString;
|
|
1338
|
+
type: z.ZodString;
|
|
1339
|
+
}, z.core.$strip>>;
|
|
1340
|
+
}, z.core.$strip>>;
|
|
1341
|
+
drift: z.ZodNullable<z.ZodObject<{
|
|
1342
|
+
stackId: z.ZodString;
|
|
1343
|
+
scannedAt: z.ZodString;
|
|
1344
|
+
driftStatus: z.ZodLiteral<"DRIFTED">;
|
|
1345
|
+
totalResources: z.ZodNumber;
|
|
1346
|
+
stateSerial: z.ZodNumber;
|
|
1347
|
+
driftedResources: z.ZodArray<z.ZodObject<{
|
|
1348
|
+
address: z.ZodString;
|
|
1349
|
+
type: z.ZodString;
|
|
1350
|
+
status: z.ZodString;
|
|
1351
|
+
details: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
goldenAttributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1353
|
+
liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1354
|
+
diff: z.ZodArray<z.ZodObject<{
|
|
1355
|
+
path: z.ZodString;
|
|
1356
|
+
declared: z.ZodUnknown;
|
|
1357
|
+
detected: z.ZodUnknown;
|
|
1358
|
+
}, z.core.$strip>>;
|
|
1359
|
+
findingId: z.ZodNullable<z.ZodString>;
|
|
1360
|
+
}, z.core.$strip>>;
|
|
1361
|
+
}, z.core.$strip>>;
|
|
1362
|
+
}, z.core.$strip>;
|
|
1363
|
+
'policy list': z.ZodObject<{
|
|
1364
|
+
stack: z.ZodNullable<z.ZodString>;
|
|
1365
|
+
policies: z.ZodArray<z.ZodObject<{
|
|
1366
|
+
policyId: z.ZodString;
|
|
1367
|
+
name: z.ZodString;
|
|
1368
|
+
mode: z.ZodString;
|
|
1369
|
+
approvalMode: z.ZodNullable<z.ZodString>;
|
|
1370
|
+
ruleIds: z.ZodArray<z.ZodString>;
|
|
1371
|
+
}, z.core.$strip>>;
|
|
1372
|
+
}, z.core.$strip>;
|
|
1373
|
+
'run list': z.ZodObject<{
|
|
1374
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1375
|
+
id: z.ZodString;
|
|
1376
|
+
stackId: z.ZodString;
|
|
1377
|
+
orgId: z.ZodString;
|
|
1378
|
+
teamId: z.ZodString;
|
|
1379
|
+
kind: z.ZodString;
|
|
1380
|
+
status: z.ZodString;
|
|
1381
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
1382
|
+
initiatedVia: z.ZodString;
|
|
1383
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
1384
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
1385
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
1386
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
1387
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
1388
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
1389
|
+
sourceOverride: z.ZodBoolean;
|
|
1390
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
1391
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
1392
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
1393
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
1394
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
1395
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
1396
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
1397
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
1398
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
1399
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
1400
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
1401
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1402
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1403
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
1404
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
1405
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
1406
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
1407
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
1408
|
+
createdAt: z.ZodString;
|
|
1409
|
+
updatedAt: z.ZodString;
|
|
1410
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
1411
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1412
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1413
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1414
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1415
|
+
}, z.core.$strip>>;
|
|
1416
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1417
|
+
hasMore: z.ZodBoolean;
|
|
1418
|
+
}, z.core.$strip>;
|
|
1419
|
+
'chaos list': z.ZodObject<{
|
|
1420
|
+
stackId: z.ZodString;
|
|
1421
|
+
connectionBlock: z.ZodNullable<z.ZodUnknown>;
|
|
1422
|
+
experiments: z.ZodArray<z.ZodObject<{
|
|
1423
|
+
bindingId: z.ZodString;
|
|
1424
|
+
name: z.ZodString;
|
|
1425
|
+
assertionCount: z.ZodNumber;
|
|
1426
|
+
engine: z.ZodString;
|
|
1427
|
+
}, z.core.$strip>>;
|
|
1428
|
+
}, z.core.$strip>;
|
|
1429
|
+
'stack preview': z.ZodObject<{
|
|
1430
|
+
stack: z.ZodObject<{
|
|
1431
|
+
id: z.ZodString;
|
|
1432
|
+
slug: z.ZodString;
|
|
1433
|
+
}, z.core.$strip>;
|
|
1434
|
+
treeHash: z.ZodString;
|
|
1435
|
+
plan: z.ZodObject<{
|
|
1436
|
+
summary: z.ZodObject<{
|
|
1437
|
+
resourceAdd: z.ZodNumber;
|
|
1438
|
+
resourceChange: z.ZodNumber;
|
|
1439
|
+
resourceDestroy: z.ZodNumber;
|
|
1440
|
+
}, z.core.$strip>;
|
|
1441
|
+
human: z.ZodString;
|
|
1442
|
+
}, z.core.$strip>;
|
|
1443
|
+
policy: z.ZodNullable<z.ZodObject<{
|
|
1444
|
+
mode: z.ZodString;
|
|
1445
|
+
policyId: z.ZodString;
|
|
1446
|
+
ruleId: z.ZodString;
|
|
1447
|
+
rulesFired: z.ZodArray<z.ZodString>;
|
|
1448
|
+
reason: z.ZodString;
|
|
1449
|
+
approvalMode: z.ZodNullable<z.ZodString>;
|
|
1450
|
+
isAuthoringTimePreview: z.ZodBoolean;
|
|
1451
|
+
}, z.core.$strip>>;
|
|
1452
|
+
}, z.core.$strip>;
|
|
1453
|
+
'stack apply': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1454
|
+
type: z.ZodLiteral<"log">;
|
|
1455
|
+
text: z.ZodString;
|
|
1456
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1457
|
+
type: z.ZodLiteral<"phase">;
|
|
1458
|
+
name: z.ZodString;
|
|
1459
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1460
|
+
type: z.ZodLiteral<"gate">;
|
|
1461
|
+
resolution: z.ZodObject<{
|
|
1462
|
+
mode: z.ZodString;
|
|
1463
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1464
|
+
}, z.core.$strip>;
|
|
1465
|
+
changeRequest: z.ZodNullable<z.ZodObject<{
|
|
1466
|
+
id: z.ZodString;
|
|
1467
|
+
orgId: z.ZodString;
|
|
1468
|
+
teamId: z.ZodString;
|
|
1469
|
+
runId: z.ZodString;
|
|
1470
|
+
bindingId: z.ZodNullable<z.ZodString>;
|
|
1471
|
+
invocationId: z.ZodNullable<z.ZodString>;
|
|
1472
|
+
state: z.ZodString;
|
|
1473
|
+
approverUserId: z.ZodNullable<z.ZodString>;
|
|
1474
|
+
approvalChain: z.ZodUnknown;
|
|
1475
|
+
emergencyApproval: z.ZodBoolean;
|
|
1476
|
+
narrativeArtifactId: z.ZodNullable<z.ZodString>;
|
|
1477
|
+
policyResolution: z.ZodUnknown;
|
|
1478
|
+
externalSystemId: z.ZodNullable<z.ZodString>;
|
|
1479
|
+
externalRef: z.ZodNullable<z.ZodString>;
|
|
1480
|
+
idempotencyKey: z.ZodNullable<z.ZodString>;
|
|
1481
|
+
lastReconciledAt: z.ZodNullable<z.ZodString>;
|
|
1482
|
+
submittedByUserId: z.ZodNullable<z.ZodString>;
|
|
1483
|
+
submittedAt: z.ZodNullable<z.ZodString>;
|
|
1484
|
+
createdAt: z.ZodString;
|
|
1485
|
+
updatedAt: z.ZodString;
|
|
1486
|
+
}, z.core.$strip>>;
|
|
1487
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1488
|
+
type: z.ZodLiteral<"result">;
|
|
1489
|
+
run: z.ZodObject<{
|
|
1490
|
+
id: z.ZodString;
|
|
1491
|
+
stackId: z.ZodString;
|
|
1492
|
+
orgId: z.ZodString;
|
|
1493
|
+
teamId: z.ZodString;
|
|
1494
|
+
kind: z.ZodString;
|
|
1495
|
+
status: z.ZodString;
|
|
1496
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
1497
|
+
initiatedVia: z.ZodString;
|
|
1498
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
1499
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
1500
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
1501
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
1502
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
1503
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
1504
|
+
sourceOverride: z.ZodBoolean;
|
|
1505
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
1506
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
1507
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
1508
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
1509
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
1510
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
1511
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
1512
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
1513
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
1514
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
1515
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
1516
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1517
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1518
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
1519
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
1520
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
1521
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
1522
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
1523
|
+
createdAt: z.ZodString;
|
|
1524
|
+
updatedAt: z.ZodString;
|
|
1525
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
1526
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1527
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1528
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1529
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1530
|
+
}, z.core.$strip>;
|
|
1531
|
+
summary: z.ZodObject<{
|
|
1532
|
+
resourceAdd: z.ZodNumber;
|
|
1533
|
+
resourceChange: z.ZodNumber;
|
|
1534
|
+
resourceDestroy: z.ZodNumber;
|
|
1535
|
+
}, z.core.$strip>;
|
|
1536
|
+
workspaceDir: z.ZodString;
|
|
1537
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1538
|
+
}, z.core.$strip>], "type">;
|
|
1539
|
+
'stack destroy': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1540
|
+
type: z.ZodLiteral<"log">;
|
|
1541
|
+
text: z.ZodString;
|
|
1542
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1543
|
+
type: z.ZodLiteral<"phase">;
|
|
1544
|
+
name: z.ZodString;
|
|
1545
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1546
|
+
type: z.ZodLiteral<"gate">;
|
|
1547
|
+
resolution: z.ZodObject<{
|
|
1548
|
+
mode: z.ZodString;
|
|
1549
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1550
|
+
}, z.core.$strip>;
|
|
1551
|
+
changeRequest: z.ZodNullable<z.ZodObject<{
|
|
1552
|
+
id: z.ZodString;
|
|
1553
|
+
orgId: z.ZodString;
|
|
1554
|
+
teamId: z.ZodString;
|
|
1555
|
+
runId: z.ZodString;
|
|
1556
|
+
bindingId: z.ZodNullable<z.ZodString>;
|
|
1557
|
+
invocationId: z.ZodNullable<z.ZodString>;
|
|
1558
|
+
state: z.ZodString;
|
|
1559
|
+
approverUserId: z.ZodNullable<z.ZodString>;
|
|
1560
|
+
approvalChain: z.ZodUnknown;
|
|
1561
|
+
emergencyApproval: z.ZodBoolean;
|
|
1562
|
+
narrativeArtifactId: z.ZodNullable<z.ZodString>;
|
|
1563
|
+
policyResolution: z.ZodUnknown;
|
|
1564
|
+
externalSystemId: z.ZodNullable<z.ZodString>;
|
|
1565
|
+
externalRef: z.ZodNullable<z.ZodString>;
|
|
1566
|
+
idempotencyKey: z.ZodNullable<z.ZodString>;
|
|
1567
|
+
lastReconciledAt: z.ZodNullable<z.ZodString>;
|
|
1568
|
+
submittedByUserId: z.ZodNullable<z.ZodString>;
|
|
1569
|
+
submittedAt: z.ZodNullable<z.ZodString>;
|
|
1570
|
+
createdAt: z.ZodString;
|
|
1571
|
+
updatedAt: z.ZodString;
|
|
1572
|
+
}, z.core.$strip>>;
|
|
1573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1574
|
+
type: z.ZodLiteral<"result">;
|
|
1575
|
+
run: z.ZodObject<{
|
|
1576
|
+
id: z.ZodString;
|
|
1577
|
+
stackId: z.ZodString;
|
|
1578
|
+
orgId: z.ZodString;
|
|
1579
|
+
teamId: z.ZodString;
|
|
1580
|
+
kind: z.ZodString;
|
|
1581
|
+
status: z.ZodString;
|
|
1582
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
1583
|
+
initiatedVia: z.ZodString;
|
|
1584
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
1585
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
1586
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
1587
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
1588
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
1589
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
1590
|
+
sourceOverride: z.ZodBoolean;
|
|
1591
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
1592
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
1593
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
1594
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
1595
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
1596
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
1597
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
1598
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
1599
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
1600
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
1601
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
1602
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1603
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1604
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
1605
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
1606
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
1607
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
1608
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
1609
|
+
createdAt: z.ZodString;
|
|
1610
|
+
updatedAt: z.ZodString;
|
|
1611
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
1612
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1613
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1614
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1615
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1616
|
+
}, z.core.$strip>;
|
|
1617
|
+
summary: z.ZodObject<{
|
|
1618
|
+
resourceAdd: z.ZodNumber;
|
|
1619
|
+
resourceChange: z.ZodNumber;
|
|
1620
|
+
resourceDestroy: z.ZodNumber;
|
|
1621
|
+
}, z.core.$strip>;
|
|
1622
|
+
workspaceDir: z.ZodString;
|
|
1623
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1624
|
+
}, z.core.$strip>], "type">;
|
|
1625
|
+
'stack scan': z.ZodObject<{
|
|
1626
|
+
triggered: z.ZodBoolean;
|
|
1627
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1628
|
+
settled: z.ZodNullable<z.ZodObject<{
|
|
1629
|
+
driftStatus: z.ZodString;
|
|
1630
|
+
driftCount: z.ZodNumber;
|
|
1631
|
+
scannedAt: z.ZodString;
|
|
1632
|
+
undeterminedReason: z.ZodNullable<z.ZodString>;
|
|
1633
|
+
drift: z.ZodNullable<z.ZodObject<{
|
|
1634
|
+
stackId: z.ZodString;
|
|
1635
|
+
scannedAt: z.ZodString;
|
|
1636
|
+
driftStatus: z.ZodLiteral<"DRIFTED">;
|
|
1637
|
+
totalResources: z.ZodNumber;
|
|
1638
|
+
stateSerial: z.ZodNumber;
|
|
1639
|
+
driftedResources: z.ZodArray<z.ZodObject<{
|
|
1640
|
+
address: z.ZodString;
|
|
1641
|
+
type: z.ZodString;
|
|
1642
|
+
status: z.ZodString;
|
|
1643
|
+
details: z.ZodOptional<z.ZodString>;
|
|
1644
|
+
goldenAttributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1645
|
+
liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1646
|
+
diff: z.ZodArray<z.ZodObject<{
|
|
1647
|
+
path: z.ZodString;
|
|
1648
|
+
declared: z.ZodUnknown;
|
|
1649
|
+
detected: z.ZodUnknown;
|
|
1650
|
+
}, z.core.$strip>>;
|
|
1651
|
+
findingId: z.ZodNullable<z.ZodString>;
|
|
1652
|
+
}, z.core.$strip>>;
|
|
1653
|
+
}, z.core.$strip>>;
|
|
1654
|
+
}, z.core.$strip>>;
|
|
1655
|
+
}, z.core.$strip>;
|
|
1656
|
+
'stack create': z.ZodObject<{
|
|
1657
|
+
id: z.ZodString;
|
|
1658
|
+
orgId: z.ZodString;
|
|
1659
|
+
teamId: z.ZodString;
|
|
1660
|
+
connectionId: z.ZodString;
|
|
1661
|
+
slug: z.ZodString;
|
|
1662
|
+
name: z.ZodString;
|
|
1663
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1664
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
1665
|
+
kind: z.ZodLiteral<"git">;
|
|
1666
|
+
repoUrl: z.ZodString;
|
|
1667
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1668
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1669
|
+
}, z.core.$strip>>;
|
|
1670
|
+
stateSerial: z.ZodNumber;
|
|
1671
|
+
stateLineage: z.ZodNullable<z.ZodString>;
|
|
1672
|
+
stateVersion: z.ZodNullable<z.ZodNumber>;
|
|
1673
|
+
stateLastWrittenAt: z.ZodNullable<z.ZodString>;
|
|
1674
|
+
lastAppliedRunId: z.ZodNullable<z.ZodString>;
|
|
1675
|
+
lastDriftScanAt: z.ZodNullable<z.ZodString>;
|
|
1676
|
+
lastDriftStatus: z.ZodNullable<z.ZodString>;
|
|
1677
|
+
lastDriftCount: z.ZodNumber;
|
|
1678
|
+
lastDriftStale: z.ZodBoolean;
|
|
1679
|
+
lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
1680
|
+
lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
|
|
1681
|
+
chaosLockedByRunId: z.ZodNullable<z.ZodString>;
|
|
1682
|
+
chaosLockedAt: z.ZodNullable<z.ZodString>;
|
|
1683
|
+
createdBy: z.ZodString;
|
|
1684
|
+
createdAt: z.ZodString;
|
|
1685
|
+
updatedAt: z.ZodString;
|
|
1686
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1687
|
+
connection: z.ZodNullable<z.ZodObject<{
|
|
1688
|
+
name: z.ZodString;
|
|
1689
|
+
provider: z.ZodString;
|
|
1690
|
+
awsAccountId: z.ZodNullable<z.ZodString>;
|
|
1691
|
+
}, z.core.$strip>>;
|
|
1692
|
+
createdByName: z.ZodNullable<z.ZodString>;
|
|
1693
|
+
lastApply: z.ZodNullable<z.ZodObject<{
|
|
1694
|
+
runId: z.ZodString;
|
|
1695
|
+
bundleSnapshotId: z.ZodString;
|
|
1696
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1697
|
+
initiatedByName: z.ZodNullable<z.ZodString>;
|
|
1698
|
+
}, z.core.$strip>>;
|
|
1699
|
+
}, z.core.$strip>;
|
|
1700
|
+
'stack import': z.ZodObject<{
|
|
1701
|
+
stack: z.ZodObject<{
|
|
1702
|
+
id: z.ZodString;
|
|
1703
|
+
slug: z.ZodString;
|
|
1704
|
+
}, z.core.$strip>;
|
|
1705
|
+
written: z.ZodArray<z.ZodString>;
|
|
1706
|
+
importBlocks: z.ZodNumber;
|
|
1707
|
+
importResiduals: z.ZodArray<z.ZodUnknown>;
|
|
1708
|
+
validate: z.ZodObject<{
|
|
1709
|
+
root: z.ZodString;
|
|
1710
|
+
treeHash: z.ZodString;
|
|
1711
|
+
verdict: z.ZodEnum<{
|
|
1712
|
+
"already-lace-style": "already-lace-style";
|
|
1713
|
+
"representable-but-transpilable": "representable-but-transpilable";
|
|
1714
|
+
lossy: "lossy";
|
|
1715
|
+
}>;
|
|
1716
|
+
residuals: z.ZodArray<z.ZodObject<{
|
|
1717
|
+
construct: z.ZodString;
|
|
1718
|
+
subject: z.ZodString;
|
|
1719
|
+
file: z.ZodString;
|
|
1720
|
+
line: z.ZodNumber;
|
|
1721
|
+
code: z.ZodString;
|
|
1722
|
+
guidance: z.ZodString;
|
|
1723
|
+
}, z.core.$strip>>;
|
|
1724
|
+
deviation: z.ZodNullable<z.ZodObject<{
|
|
1725
|
+
notCompositional: z.ZodBoolean;
|
|
1726
|
+
clusters: z.ZodArray<z.ZodUnknown>;
|
|
1727
|
+
residuals: z.ZodArray<z.ZodUnknown>;
|
|
1728
|
+
hasManagedBackend: z.ZodBoolean;
|
|
1729
|
+
backendFindings: z.ZodArray<z.ZodObject<{
|
|
1730
|
+
file: z.ZodString;
|
|
1731
|
+
line: z.ZodNumber;
|
|
1732
|
+
kind: z.ZodString;
|
|
1733
|
+
}, z.core.$strip>>;
|
|
1734
|
+
sharedLocalSource: z.ZodBoolean;
|
|
1735
|
+
sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
|
|
1736
|
+
uncomposable: z.ZodBoolean;
|
|
1737
|
+
uncomposableReason: z.ZodString;
|
|
1738
|
+
registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
|
|
1739
|
+
childNotLaceForm: z.ZodArray<z.ZodUnknown>;
|
|
1740
|
+
}, z.core.$strip>>;
|
|
1741
|
+
terraform: z.ZodNullable<z.ZodObject<{
|
|
1742
|
+
valid: z.ZodBoolean;
|
|
1743
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
1744
|
+
path: z.ZodString;
|
|
1745
|
+
line: z.ZodNumber;
|
|
1746
|
+
column: z.ZodNumber;
|
|
1747
|
+
severity: z.ZodString;
|
|
1748
|
+
message: z.ZodString;
|
|
1749
|
+
}, z.core.$strip>>;
|
|
1750
|
+
}, z.core.$strip>>;
|
|
1751
|
+
modules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1752
|
+
address: z.ZodString;
|
|
1753
|
+
version: z.ZodString;
|
|
1754
|
+
treeHash: z.ZodString;
|
|
1755
|
+
}, z.core.$strip>>>;
|
|
1756
|
+
exitClass: z.ZodString;
|
|
1757
|
+
}, z.core.$strip>;
|
|
1758
|
+
}, z.core.$strip>;
|
|
1759
|
+
'run get': z.ZodObject<{
|
|
1760
|
+
id: z.ZodString;
|
|
1761
|
+
stackId: z.ZodString;
|
|
1762
|
+
orgId: z.ZodString;
|
|
1763
|
+
teamId: z.ZodString;
|
|
1764
|
+
kind: z.ZodString;
|
|
1765
|
+
status: z.ZodString;
|
|
1766
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
1767
|
+
initiatedVia: z.ZodString;
|
|
1768
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
1769
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
1770
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
1771
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
1772
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
1773
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
1774
|
+
sourceOverride: z.ZodBoolean;
|
|
1775
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
1776
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
1777
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
1778
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
1779
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
1780
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
1781
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
1782
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
1783
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
1784
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
1785
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
1786
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1787
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1788
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
1789
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
1790
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
1791
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
1792
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
1793
|
+
createdAt: z.ZodString;
|
|
1794
|
+
updatedAt: z.ZodString;
|
|
1795
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
1796
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1797
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1798
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1799
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1800
|
+
}, z.core.$strip>;
|
|
1801
|
+
'run plan': z.ZodObject<{
|
|
1802
|
+
runId: z.ZodString;
|
|
1803
|
+
status: z.ZodNullable<z.ZodString>;
|
|
1804
|
+
summary: z.ZodNullable<z.ZodObject<{
|
|
1805
|
+
resourceAdd: z.ZodNumber;
|
|
1806
|
+
resourceChange: z.ZodNumber;
|
|
1807
|
+
resourceDestroy: z.ZodNumber;
|
|
1808
|
+
}, z.core.$strip>>;
|
|
1809
|
+
planHuman: z.ZodNullable<z.ZodObject<{
|
|
1810
|
+
url: z.ZodString;
|
|
1811
|
+
key: z.ZodString;
|
|
1812
|
+
}, z.core.$strip>>;
|
|
1813
|
+
}, z.core.$strip>;
|
|
1814
|
+
'run cancel': z.ZodObject<{
|
|
1815
|
+
id: z.ZodString;
|
|
1816
|
+
stackId: z.ZodString;
|
|
1817
|
+
orgId: z.ZodString;
|
|
1818
|
+
teamId: z.ZodString;
|
|
1819
|
+
kind: z.ZodString;
|
|
1820
|
+
status: z.ZodString;
|
|
1821
|
+
initiatedByUserId: z.ZodNullable<z.ZodString>;
|
|
1822
|
+
initiatedVia: z.ZodString;
|
|
1823
|
+
runnerIdentity: z.ZodNullable<z.ZodString>;
|
|
1824
|
+
runnerLocation: z.ZodNullable<z.ZodString>;
|
|
1825
|
+
bundleSnapshotId: z.ZodNullable<z.ZodString>;
|
|
1826
|
+
sourceCommitSha: z.ZodNullable<z.ZodString>;
|
|
1827
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
1828
|
+
sourcePrUrl: z.ZodNullable<z.ZodString>;
|
|
1829
|
+
sourceOverride: z.ZodBoolean;
|
|
1830
|
+
planResourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
1831
|
+
planResourceChange: z.ZodNullable<z.ZodNumber>;
|
|
1832
|
+
planResourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
1833
|
+
planLocation: z.ZodNullable<z.ZodString>;
|
|
1834
|
+
planHumanLocation: z.ZodNullable<z.ZodString>;
|
|
1835
|
+
applyLogLocation: z.ZodNullable<z.ZodString>;
|
|
1836
|
+
policyResultsLocation: z.ZodNullable<z.ZodString>;
|
|
1837
|
+
policyPassed: z.ZodNullable<z.ZodBoolean>;
|
|
1838
|
+
policyResolution: z.ZodNullable<z.ZodUnknown>;
|
|
1839
|
+
changeRequestId: z.ZodNullable<z.ZodString>;
|
|
1840
|
+
cancelReason: z.ZodNullable<z.ZodString>;
|
|
1841
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1842
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1843
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
1844
|
+
sourceTreeHash: z.ZodNullable<z.ZodString>;
|
|
1845
|
+
attestationStatus: z.ZodNullable<z.ZodString>;
|
|
1846
|
+
attestedAt: z.ZodNullable<z.ZodString>;
|
|
1847
|
+
attestation: z.ZodNullable<z.ZodString>;
|
|
1848
|
+
createdAt: z.ZodString;
|
|
1849
|
+
updatedAt: z.ZodString;
|
|
1850
|
+
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
1851
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1852
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1853
|
+
initiatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1854
|
+
stackName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1855
|
+
}, z.core.$strip>;
|
|
1856
|
+
'run logs': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1857
|
+
type: z.ZodLiteral<"log">;
|
|
1858
|
+
text: z.ZodString;
|
|
1859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1860
|
+
type: z.ZodLiteral<"result">;
|
|
1861
|
+
status: z.ZodNullable<z.ZodString>;
|
|
1862
|
+
}, z.core.$strip>], "type">;
|
|
1863
|
+
whoami: z.ZodObject<{
|
|
1864
|
+
organization: z.ZodNullable<z.ZodString>;
|
|
1865
|
+
user: z.ZodObject<{
|
|
1866
|
+
email: z.ZodString;
|
|
1867
|
+
id: z.ZodString;
|
|
1868
|
+
name: z.ZodString;
|
|
1869
|
+
}, z.core.$strip>;
|
|
1870
|
+
}, z.core.$strip>;
|
|
1871
|
+
'org list': z.ZodObject<{
|
|
1872
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1873
|
+
slug: z.ZodString;
|
|
1874
|
+
name: z.ZodString;
|
|
1875
|
+
role: z.ZodString;
|
|
1876
|
+
}, z.core.$strip>>;
|
|
1877
|
+
}, z.core.$strip>;
|
|
1878
|
+
'team list': z.ZodObject<{
|
|
1879
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1880
|
+
id: z.ZodString;
|
|
1881
|
+
orgId: z.ZodString;
|
|
1882
|
+
name: z.ZodString;
|
|
1883
|
+
slug: z.ZodString;
|
|
1884
|
+
description: z.ZodString;
|
|
1885
|
+
createdBy: z.ZodString;
|
|
1886
|
+
createdAt: z.ZodString;
|
|
1887
|
+
updatedAt: z.ZodString;
|
|
1888
|
+
role: z.ZodString;
|
|
1889
|
+
memberCount: z.ZodNumber;
|
|
1890
|
+
}, z.core.$strip>>;
|
|
1891
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1892
|
+
hasMore: z.ZodBoolean;
|
|
1893
|
+
}, z.core.$strip>;
|
|
1894
|
+
login: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1895
|
+
type: z.ZodLiteral<"code">;
|
|
1896
|
+
code: z.ZodString;
|
|
1897
|
+
verificationUrl: z.ZodOptional<z.ZodString>;
|
|
1898
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1899
|
+
type: z.ZodLiteral<"url">;
|
|
1900
|
+
url: z.ZodString;
|
|
1901
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1902
|
+
type: z.ZodLiteral<"email_sent">;
|
|
1903
|
+
email: z.ZodString;
|
|
1904
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1905
|
+
type: z.ZodLiteral<"result">;
|
|
1906
|
+
user: z.ZodObject<{
|
|
1907
|
+
id: z.ZodString;
|
|
1908
|
+
email: z.ZodString;
|
|
1909
|
+
name: z.ZodString;
|
|
1910
|
+
}, z.core.$strip>;
|
|
1911
|
+
}, z.core.$strip>], "type">;
|
|
1912
|
+
logout: z.ZodObject<{
|
|
1913
|
+
loggedOut: z.ZodBoolean;
|
|
1914
|
+
}, z.core.$strip>;
|
|
1915
|
+
};
|
|
1916
|
+
type BoundPath = keyof typeof SCHEMAS;
|
|
1917
|
+
declare function isBoundPath(path: string): path is BoundPath;
|
|
1918
|
+
type JsonOf<P> = P extends BoundPath ? z.infer<(typeof SCHEMAS)[P]> : unknown;
|
|
1919
|
+
declare function parseBound<P extends BoundPath>(path: P, data: unknown): JsonOf<P>;
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
1923
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
1924
|
+
* or the response type of an API method. For instance:
|
|
1925
|
+
*
|
|
1926
|
+
* service Foo {
|
|
1927
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
1928
|
+
* }
|
|
1929
|
+
*/
|
|
1930
|
+
interface Empty {
|
|
1931
|
+
}
|
|
1932
|
+
declare const Empty: MessageFns$2<Empty>;
|
|
1933
|
+
type Builtin$2 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1934
|
+
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 {} ? {
|
|
1935
|
+
[K in keyof T]?: DeepPartial$2<T[K]>;
|
|
1936
|
+
} : Partial<T>;
|
|
1937
|
+
type KeysOfUnion$2<T> = T extends T ? keyof T : never;
|
|
1938
|
+
type Exact$2<P, I extends P> = P extends Builtin$2 ? P : P & {
|
|
1939
|
+
[K in keyof P]: Exact$2<P[K], I[K]>;
|
|
1940
|
+
} & {
|
|
1941
|
+
[K in Exclude<keyof I, KeysOfUnion$2<P>>]: never;
|
|
1942
|
+
};
|
|
1943
|
+
interface MessageFns$2<T> {
|
|
1944
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1945
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1946
|
+
fromJSON(object: any): T;
|
|
1947
|
+
toJSON(message: T): unknown;
|
|
1948
|
+
create<I extends Exact$2<DeepPartial$2<T>, I>>(base?: I): T;
|
|
1949
|
+
fromPartial<I extends Exact$2<DeepPartial$2<T>, I>>(object: I): T;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
10
1952
|
interface Bundle {
|
|
11
1953
|
schema_version: string;
|
|
12
1954
|
kind: string;
|
|
@@ -14,16 +1956,8 @@ interface Bundle {
|
|
|
14
1956
|
modules: {
|
|
15
1957
|
[key: string]: Module;
|
|
16
1958
|
};
|
|
17
|
-
environments: {
|
|
18
|
-
[key: string]: {
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
} | undefined;
|
|
21
|
-
};
|
|
22
|
-
environment_backends: {
|
|
23
|
-
[key: string]: BackendConfig;
|
|
24
|
-
};
|
|
25
1959
|
}
|
|
26
|
-
declare const Bundle: MessageFns<Bundle>;
|
|
1960
|
+
declare const Bundle: MessageFns$1<Bundle>;
|
|
27
1961
|
interface Module {
|
|
28
1962
|
id: string;
|
|
29
1963
|
version: string;
|
|
@@ -38,52 +1972,51 @@ interface Module {
|
|
|
38
1972
|
/** top-level directives: moved {}, import {} */
|
|
39
1973
|
top_level_blocks: Block[];
|
|
40
1974
|
}
|
|
41
|
-
declare const Module: MessageFns<Module>;
|
|
1975
|
+
declare const Module: MessageFns$1<Module>;
|
|
42
1976
|
interface Interface {
|
|
43
|
-
inputs: InputDef[];
|
|
44
|
-
outputs: OutputDef[];
|
|
1977
|
+
inputs: InputDef$1[];
|
|
1978
|
+
outputs: OutputDef$1[];
|
|
45
1979
|
}
|
|
46
|
-
declare const Interface: MessageFns<Interface>;
|
|
47
|
-
interface InputDef {
|
|
1980
|
+
declare const Interface: MessageFns$1<Interface>;
|
|
1981
|
+
interface InputDef$1 {
|
|
48
1982
|
name: string;
|
|
49
1983
|
type: string;
|
|
50
1984
|
required: boolean;
|
|
51
1985
|
description: string;
|
|
52
1986
|
default_value: any | undefined;
|
|
53
|
-
validation: ValidationBlock[];
|
|
1987
|
+
validation: ValidationBlock$1[];
|
|
54
1988
|
sensitive: boolean;
|
|
55
1989
|
/** unset = default (true); explicit false is meaningful */
|
|
56
1990
|
nullable?: boolean | undefined;
|
|
57
1991
|
/** unset = default (false); explicit true is meaningful */
|
|
58
1992
|
ephemeral?: boolean | undefined;
|
|
59
1993
|
}
|
|
60
|
-
declare const InputDef: MessageFns<InputDef>;
|
|
61
|
-
interface ValidationBlock {
|
|
1994
|
+
declare const InputDef$1: MessageFns$1<InputDef$1>;
|
|
1995
|
+
interface ValidationBlock$1 {
|
|
62
1996
|
condition: string;
|
|
63
1997
|
error_message: string;
|
|
64
1998
|
}
|
|
65
|
-
declare const ValidationBlock: MessageFns<ValidationBlock>;
|
|
66
|
-
interface OutputDef {
|
|
1999
|
+
declare const ValidationBlock$1: MessageFns$1<ValidationBlock$1>;
|
|
2000
|
+
interface OutputDef$1 {
|
|
67
2001
|
name: string;
|
|
68
2002
|
type: string;
|
|
69
2003
|
description: string;
|
|
70
2004
|
sensitive: boolean;
|
|
71
2005
|
depends_on: string[];
|
|
72
2006
|
}
|
|
73
|
-
declare const OutputDef: MessageFns<OutputDef>;
|
|
2007
|
+
declare const OutputDef$1: MessageFns$1<OutputDef$1>;
|
|
74
2008
|
interface Source {
|
|
75
2009
|
kind: string;
|
|
76
2010
|
repo: string;
|
|
77
2011
|
subdir: string;
|
|
78
2012
|
ref: string;
|
|
79
|
-
organization: string;
|
|
80
2013
|
}
|
|
81
|
-
declare const Source: MessageFns<Source>;
|
|
2014
|
+
declare const Source: MessageFns$1<Source>;
|
|
82
2015
|
interface Local {
|
|
83
2016
|
name: string;
|
|
84
2017
|
value: Binding | undefined;
|
|
85
2018
|
}
|
|
86
|
-
declare const Local: MessageFns<Local>;
|
|
2019
|
+
declare const Local: MessageFns$1<Local>;
|
|
87
2020
|
interface Use {
|
|
88
2021
|
id: string;
|
|
89
2022
|
module: string;
|
|
@@ -104,7 +2037,7 @@ interface Use {
|
|
|
104
2037
|
[key: string]: string;
|
|
105
2038
|
};
|
|
106
2039
|
}
|
|
107
|
-
declare const Use: MessageFns<Use>;
|
|
2040
|
+
declare const Use: MessageFns$1<Use>;
|
|
108
2041
|
interface Resource {
|
|
109
2042
|
id: string;
|
|
110
2043
|
kind: string;
|
|
@@ -122,7 +2055,7 @@ interface Resource {
|
|
|
122
2055
|
/** provider meta-argument, e.g. "aws.west" */
|
|
123
2056
|
provider_ref: string;
|
|
124
2057
|
}
|
|
125
|
-
declare const Resource: MessageFns<Resource>;
|
|
2058
|
+
declare const Resource: MessageFns$1<Resource>;
|
|
126
2059
|
/**
|
|
127
2060
|
* Block is a recursive nested block (within a resource, or top-level moved/
|
|
128
2061
|
* import). Attributes are ordered (declaration order) so regenerated HCL is
|
|
@@ -134,43 +2067,43 @@ interface Block {
|
|
|
134
2067
|
attributes: NamedBinding[];
|
|
135
2068
|
blocks: Block[];
|
|
136
2069
|
}
|
|
137
|
-
declare const Block: MessageFns<Block>;
|
|
2070
|
+
declare const Block: MessageFns$1<Block>;
|
|
138
2071
|
/** NamedBinding is an ordered (name, value) attribute within a Block. */
|
|
139
2072
|
interface NamedBinding {
|
|
140
2073
|
name: string;
|
|
141
2074
|
value: Binding | undefined;
|
|
142
2075
|
}
|
|
143
|
-
declare const NamedBinding: MessageFns<NamedBinding>;
|
|
2076
|
+
declare const NamedBinding: MessageFns$1<NamedBinding>;
|
|
144
2077
|
interface Exports {
|
|
145
2078
|
outputs: {
|
|
146
2079
|
[key: string]: OutputExport;
|
|
147
2080
|
};
|
|
148
2081
|
}
|
|
149
|
-
declare const Exports: MessageFns<Exports>;
|
|
2082
|
+
declare const Exports: MessageFns$1<Exports>;
|
|
150
2083
|
interface OutputExport {
|
|
151
2084
|
out: OutputRef | undefined;
|
|
152
2085
|
lit: any | undefined;
|
|
153
2086
|
var: string;
|
|
154
2087
|
expr: Expression | undefined;
|
|
155
2088
|
}
|
|
156
|
-
declare const OutputExport: MessageFns<OutputExport>;
|
|
2089
|
+
declare const OutputExport: MessageFns$1<OutputExport>;
|
|
157
2090
|
interface Binding {
|
|
158
2091
|
lit?: any | undefined;
|
|
159
2092
|
var?: string | undefined;
|
|
160
2093
|
out?: OutputRef | undefined;
|
|
161
2094
|
expr?: Expression | undefined;
|
|
162
2095
|
}
|
|
163
|
-
declare const Binding: MessageFns<Binding>;
|
|
2096
|
+
declare const Binding: MessageFns$1<Binding>;
|
|
164
2097
|
interface OutputRef {
|
|
165
2098
|
module: string;
|
|
166
2099
|
name: string;
|
|
167
2100
|
}
|
|
168
|
-
declare const OutputRef: MessageFns<OutputRef>;
|
|
2101
|
+
declare const OutputRef: MessageFns$1<OutputRef>;
|
|
169
2102
|
interface Expression {
|
|
170
2103
|
lang: string;
|
|
171
2104
|
value: string;
|
|
172
2105
|
}
|
|
173
|
-
declare const Expression: MessageFns<Expression>;
|
|
2106
|
+
declare const Expression: MessageFns$1<Expression>;
|
|
174
2107
|
interface TerraformBlock {
|
|
175
2108
|
required_version: string;
|
|
176
2109
|
required_providers: {
|
|
@@ -178,20 +2111,20 @@ interface TerraformBlock {
|
|
|
178
2111
|
};
|
|
179
2112
|
backend: BackendConfig | undefined;
|
|
180
2113
|
}
|
|
181
|
-
declare const TerraformBlock: MessageFns<TerraformBlock>;
|
|
2114
|
+
declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
182
2115
|
interface ProviderRequirement {
|
|
183
2116
|
source: string;
|
|
184
2117
|
version: string;
|
|
185
2118
|
configuration_aliases: string[];
|
|
186
2119
|
}
|
|
187
|
-
declare const ProviderRequirement: MessageFns<ProviderRequirement>;
|
|
2120
|
+
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
188
2121
|
interface BackendConfig {
|
|
189
2122
|
type: string;
|
|
190
2123
|
config: {
|
|
191
2124
|
[key: string]: any | undefined;
|
|
192
2125
|
};
|
|
193
2126
|
}
|
|
194
|
-
declare const BackendConfig: MessageFns<BackendConfig>;
|
|
2127
|
+
declare const BackendConfig: MessageFns$1<BackendConfig>;
|
|
195
2128
|
interface ProviderConfig {
|
|
196
2129
|
name: string;
|
|
197
2130
|
alias: string;
|
|
@@ -201,437 +2134,1183 @@ interface ProviderConfig {
|
|
|
201
2134
|
/** nested config blocks (default_tags, assume_role, …) */
|
|
202
2135
|
blocks: Block[];
|
|
203
2136
|
}
|
|
204
|
-
declare const ProviderConfig: MessageFns<ProviderConfig>;
|
|
205
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
206
|
-
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 {} ? {
|
|
207
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
2137
|
+
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
2138
|
+
type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
2139
|
+
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 {} ? {
|
|
2140
|
+
[K in keyof T]?: DeepPartial$1<T[K]>;
|
|
208
2141
|
} : Partial<T>;
|
|
209
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
210
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
211
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
2142
|
+
type KeysOfUnion$1<T> = T extends T ? keyof T : never;
|
|
2143
|
+
type Exact$1<P, I extends P> = P extends Builtin$1 ? P : P & {
|
|
2144
|
+
[K in keyof P]: Exact$1<P[K], I[K]>;
|
|
212
2145
|
} & {
|
|
213
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
2146
|
+
[K in Exclude<keyof I, KeysOfUnion$1<P>>]: never;
|
|
214
2147
|
};
|
|
215
|
-
interface MessageFns<T> {
|
|
2148
|
+
interface MessageFns$1<T> {
|
|
216
2149
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
217
2150
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
218
2151
|
fromJSON(object: any): T;
|
|
219
2152
|
toJSON(message: T): unknown;
|
|
220
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
221
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
2153
|
+
create<I extends Exact$1<DeepPartial$1<T>, I>>(base?: I): T;
|
|
2154
|
+
fromPartial<I extends Exact$1<DeepPartial$1<T>, I>>(object: I): T;
|
|
222
2155
|
}
|
|
223
2156
|
|
|
2157
|
+
declare enum InputMode {
|
|
2158
|
+
INPUT_MODE_UNSPECIFIED = 0,
|
|
2159
|
+
INPUT_MODE_EMPTY = 1,
|
|
2160
|
+
INPUT_MODE_LITERAL = 2,
|
|
2161
|
+
INPUT_MODE_VARIABLE = 3,
|
|
2162
|
+
INPUT_MODE_EXPRESSION = 4,
|
|
2163
|
+
INPUT_MODE_WIRED = 5,
|
|
2164
|
+
UNRECOGNIZED = -1
|
|
2165
|
+
}
|
|
2166
|
+
declare enum DiagnosticSeverity {
|
|
2167
|
+
DIAGNOSTIC_SEVERITY_UNSPECIFIED = 0,
|
|
2168
|
+
DIAGNOSTIC_SEVERITY_ERROR = 1,
|
|
2169
|
+
DIAGNOSTIC_SEVERITY_WARNING = 2,
|
|
2170
|
+
DIAGNOSTIC_SEVERITY_INFO = 3,
|
|
2171
|
+
UNRECOGNIZED = -1
|
|
2172
|
+
}
|
|
2173
|
+
declare enum ConflictChoice {
|
|
2174
|
+
CONFLICT_CHOICE_UNSPECIFIED = 0,
|
|
2175
|
+
CONFLICT_CHOICE_KEEP = 1,
|
|
2176
|
+
CONFLICT_CHOICE_RELOAD = 2,
|
|
2177
|
+
UNRECOGNIZED = -1
|
|
2178
|
+
}
|
|
2179
|
+
interface InitializeRequest {
|
|
2180
|
+
client_version: string;
|
|
2181
|
+
protocol_version: string;
|
|
2182
|
+
}
|
|
2183
|
+
declare const InitializeRequest: MessageFns<InitializeRequest>;
|
|
2184
|
+
interface InitializeResponse {
|
|
2185
|
+
server_version: string;
|
|
2186
|
+
protocol_version: string;
|
|
2187
|
+
supported_protocols: string[];
|
|
2188
|
+
/** space-joined paths of the non-hidden command tree */
|
|
2189
|
+
command_paths: string[];
|
|
2190
|
+
}
|
|
2191
|
+
declare const InitializeResponse: MessageFns<InitializeResponse>;
|
|
2192
|
+
interface ShutdownResponse {
|
|
2193
|
+
status: string;
|
|
2194
|
+
}
|
|
2195
|
+
declare const ShutdownResponse: MessageFns<ShutdownResponse>;
|
|
2196
|
+
interface SessionOpenRequest {
|
|
2197
|
+
ephemeral?: EphemeralSession | undefined;
|
|
2198
|
+
root?: RootSession | undefined;
|
|
2199
|
+
/** ephemeral only */
|
|
2200
|
+
workspace_name: string;
|
|
2201
|
+
}
|
|
2202
|
+
declare const SessionOpenRequest: MessageFns<SessionOpenRequest>;
|
|
2203
|
+
interface EphemeralSession {
|
|
2204
|
+
}
|
|
2205
|
+
declare const EphemeralSession: MessageFns<EphemeralSession>;
|
|
2206
|
+
interface RootSession {
|
|
2207
|
+
/** absolute authoring root */
|
|
2208
|
+
path: string;
|
|
2209
|
+
}
|
|
2210
|
+
declare const RootSession: MessageFns<RootSession>;
|
|
2211
|
+
interface SessionOpenResponse {
|
|
2212
|
+
session_id: string;
|
|
2213
|
+
state: BundleState | undefined;
|
|
2214
|
+
}
|
|
2215
|
+
declare const SessionOpenResponse: MessageFns<SessionOpenResponse>;
|
|
2216
|
+
interface TestSessionOpenRequest {
|
|
2217
|
+
fixture_name: string;
|
|
2218
|
+
workspace_name: string;
|
|
2219
|
+
}
|
|
2220
|
+
declare const TestSessionOpenRequest: MessageFns<TestSessionOpenRequest>;
|
|
2221
|
+
interface SessionSaveRequest {
|
|
2222
|
+
session_id: string;
|
|
2223
|
+
}
|
|
2224
|
+
declare const SessionSaveRequest: MessageFns<SessionSaveRequest>;
|
|
2225
|
+
interface SessionSaveResponse {
|
|
2226
|
+
}
|
|
2227
|
+
declare const SessionSaveResponse: MessageFns<SessionSaveResponse>;
|
|
2228
|
+
interface SessionCloseRequest {
|
|
2229
|
+
session_id: string;
|
|
2230
|
+
}
|
|
2231
|
+
declare const SessionCloseRequest: MessageFns<SessionCloseRequest>;
|
|
2232
|
+
interface SessionCloseResponse {
|
|
2233
|
+
status: string;
|
|
2234
|
+
}
|
|
2235
|
+
declare const SessionCloseResponse: MessageFns<SessionCloseResponse>;
|
|
2236
|
+
interface SessionGenerateRequest {
|
|
2237
|
+
session_id: string;
|
|
2238
|
+
}
|
|
2239
|
+
declare const SessionGenerateRequest: MessageFns<SessionGenerateRequest>;
|
|
2240
|
+
interface SessionGenerateResponse {
|
|
2241
|
+
files_written: string[];
|
|
2242
|
+
/** the `module validate -o json` document for the written tree */
|
|
2243
|
+
validate_json: string;
|
|
2244
|
+
}
|
|
2245
|
+
declare const SessionGenerateResponse: MessageFns<SessionGenerateResponse>;
|
|
2246
|
+
interface SessionResolveConflictRequest {
|
|
2247
|
+
session_id: string;
|
|
2248
|
+
choice: ConflictChoice;
|
|
2249
|
+
tree_hash: string;
|
|
2250
|
+
}
|
|
2251
|
+
declare const SessionResolveConflictRequest: MessageFns<SessionResolveConflictRequest>;
|
|
2252
|
+
interface SessionResolveConflictResponse {
|
|
2253
|
+
}
|
|
2254
|
+
declare const SessionResolveConflictResponse: MessageFns<SessionResolveConflictResponse>;
|
|
2255
|
+
interface Diagnostic {
|
|
2256
|
+
severity: DiagnosticSeverity;
|
|
2257
|
+
message: string;
|
|
2258
|
+
file: string;
|
|
2259
|
+
line: number;
|
|
2260
|
+
column: number;
|
|
2261
|
+
/**
|
|
2262
|
+
* Locates an engine-validator finding within the graph. Empty when
|
|
2263
|
+
* the diagnostic has no graph location (file/line/column instead).
|
|
2264
|
+
*/
|
|
2265
|
+
module_key: string;
|
|
2266
|
+
instance_id: string;
|
|
2267
|
+
input_name: string;
|
|
2268
|
+
}
|
|
2269
|
+
declare const Diagnostic: MessageFns<Diagnostic>;
|
|
2270
|
+
interface ConnectAction {
|
|
2271
|
+
source: string;
|
|
2272
|
+
target: string;
|
|
2273
|
+
source_output: string;
|
|
2274
|
+
target_input: string;
|
|
2275
|
+
}
|
|
2276
|
+
declare const ConnectAction: MessageFns<ConnectAction>;
|
|
2277
|
+
interface AutoConnectAction {
|
|
2278
|
+
source: string;
|
|
2279
|
+
target: string;
|
|
2280
|
+
}
|
|
2281
|
+
declare const AutoConnectAction: MessageFns<AutoConnectAction>;
|
|
2282
|
+
interface DisconnectAction {
|
|
2283
|
+
target: string;
|
|
2284
|
+
input_name: string;
|
|
2285
|
+
}
|
|
2286
|
+
declare const DisconnectAction: MessageFns<DisconnectAction>;
|
|
2287
|
+
interface UpdateInputAction {
|
|
2288
|
+
instance_id: string;
|
|
2289
|
+
input_name: string;
|
|
2290
|
+
mode: InputMode;
|
|
2291
|
+
value: any | undefined;
|
|
2292
|
+
variable: string;
|
|
2293
|
+
expression: string;
|
|
2294
|
+
}
|
|
2295
|
+
declare const UpdateInputAction: MessageFns<UpdateInputAction>;
|
|
2296
|
+
interface UpdateAllInputsAction {
|
|
2297
|
+
instance_id: string;
|
|
2298
|
+
inputs: InputEntry[];
|
|
2299
|
+
}
|
|
2300
|
+
declare const UpdateAllInputsAction: MessageFns<UpdateAllInputsAction>;
|
|
2301
|
+
interface InputEntry {
|
|
2302
|
+
name: string;
|
|
2303
|
+
mode: InputMode;
|
|
2304
|
+
value: any | undefined;
|
|
2305
|
+
variable: string;
|
|
2306
|
+
expression: string;
|
|
2307
|
+
}
|
|
2308
|
+
declare const InputEntry: MessageFns<InputEntry>;
|
|
2309
|
+
interface RenameInstanceAction {
|
|
2310
|
+
old_id: string;
|
|
2311
|
+
new_id: string;
|
|
2312
|
+
}
|
|
2313
|
+
declare const RenameInstanceAction: MessageFns<RenameInstanceAction>;
|
|
2314
|
+
interface DeleteInstanceAction {
|
|
2315
|
+
instance_id: string;
|
|
2316
|
+
}
|
|
2317
|
+
declare const DeleteInstanceAction: MessageFns<DeleteInstanceAction>;
|
|
2318
|
+
interface CopyInstancesAction {
|
|
2319
|
+
instance_ids: string[];
|
|
2320
|
+
}
|
|
2321
|
+
declare const CopyInstancesAction: MessageFns<CopyInstancesAction>;
|
|
224
2322
|
/**
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
* where no real terraform plan exists.
|
|
230
|
-
*/
|
|
231
|
-
type PolicyPredicateTrace = {
|
|
232
|
-
predicate: string;
|
|
233
|
-
fired: boolean;
|
|
234
|
-
evaluated: string;
|
|
235
|
-
cannotEvaluate: boolean;
|
|
236
|
-
};
|
|
237
|
-
type PolicyConditionTrace = {
|
|
238
|
-
policyId: string;
|
|
239
|
-
label: string;
|
|
240
|
-
fired: boolean;
|
|
241
|
-
predicates: PolicyPredicateTrace[];
|
|
242
|
-
};
|
|
243
|
-
/**
|
|
244
|
-
* Wire-shape PolicyResolution emitted by the CLI session as a
|
|
245
|
-
* `policyResolution` engine event (debounced ~100ms after each apply,
|
|
246
|
-
* plus once after every Subscribe connect). Mirrors `lace.canvas.PolicyResolution`.
|
|
247
|
-
*/
|
|
248
|
-
type PolicyResolution = {
|
|
249
|
-
mode: string;
|
|
250
|
-
policyId: string;
|
|
251
|
-
rulesFired: string[];
|
|
252
|
-
reason: string;
|
|
253
|
-
approvalMode: string;
|
|
254
|
-
conditionTrace: PolicyConditionTrace[];
|
|
255
|
-
isAuthoringTimePreview: boolean;
|
|
256
|
-
};
|
|
257
|
-
/**
|
|
258
|
-
* Hypothetical IR delta passed to `previewPolicyResolution`. v1 supports
|
|
259
|
-
* remove-resource only; setAttribute / addResource extend later without
|
|
260
|
-
* breaking the API.
|
|
2323
|
+
* CreateGroupAction creates a new visual group from selected nodes. The
|
|
2324
|
+
* group's display label is consumer-owned arrangement state (written from
|
|
2325
|
+
* `BundleApplyResult.created` after this action lands); the wire payload
|
|
2326
|
+
* carries only membership.
|
|
261
2327
|
*/
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
2328
|
+
interface CreateGroupAction {
|
|
2329
|
+
node_ids: string[];
|
|
2330
|
+
}
|
|
2331
|
+
declare const CreateGroupAction: MessageFns<CreateGroupAction>;
|
|
265
2332
|
/**
|
|
266
|
-
*
|
|
267
|
-
*
|
|
2333
|
+
* UngroupAction dissolves the group `group_id` in the current scope: its
|
|
2334
|
+
* Use is removed and the module it pointed at has its children promoted
|
|
2335
|
+
* into the parent. Mirrors workspace.UngroupAction.
|
|
268
2336
|
*/
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
message: string;
|
|
284
|
-
diagnostics?: Diagnostic[];
|
|
285
|
-
toastDurationMs?: number;
|
|
286
|
-
} | {
|
|
287
|
-
type: 'policyResolution';
|
|
288
|
-
resolution: PolicyResolution;
|
|
289
|
-
} | {
|
|
290
|
-
type: 'loadError';
|
|
291
|
-
message: string;
|
|
292
|
-
};
|
|
293
|
-
type EngineEventListener = (event: EngineEvent) => void;
|
|
294
|
-
type GenerateResult = {
|
|
295
|
-
files_written?: string[];
|
|
296
|
-
files?: Record<string, string>;
|
|
297
|
-
diagnostics: Diagnostic[];
|
|
298
|
-
};
|
|
299
|
-
type GraphSummary = {
|
|
300
|
-
text: string;
|
|
301
|
-
};
|
|
302
|
-
type InputUpdate = {
|
|
303
|
-
name: string;
|
|
304
|
-
mode: 'empty' | 'literal' | 'variable' | 'expression';
|
|
305
|
-
value?: unknown;
|
|
306
|
-
variable?: string;
|
|
307
|
-
expression?: string;
|
|
308
|
-
};
|
|
309
|
-
type VariableDef = {
|
|
310
|
-
name: string;
|
|
311
|
-
type: string;
|
|
312
|
-
required: boolean;
|
|
313
|
-
description?: string;
|
|
314
|
-
default?: unknown;
|
|
315
|
-
validation?: {
|
|
316
|
-
condition: string;
|
|
317
|
-
error_message: string;
|
|
318
|
-
}[];
|
|
319
|
-
ephemeral?: boolean;
|
|
320
|
-
sensitive?: boolean;
|
|
321
|
-
nullable?: boolean;
|
|
322
|
-
};
|
|
323
|
-
type OutputExportDef = {
|
|
2337
|
+
interface UngroupAction {
|
|
2338
|
+
group_id: string;
|
|
2339
|
+
}
|
|
2340
|
+
declare const UngroupAction: MessageFns<UngroupAction>;
|
|
2341
|
+
interface SetVariablesAction {
|
|
2342
|
+
variables: InputDef[];
|
|
2343
|
+
}
|
|
2344
|
+
declare const SetVariablesAction: MessageFns<SetVariablesAction>;
|
|
2345
|
+
interface SetExportsAction {
|
|
2346
|
+
outputs: OutputExportEntry[];
|
|
2347
|
+
output_defs: OutputDef[];
|
|
2348
|
+
}
|
|
2349
|
+
declare const SetExportsAction: MessageFns<SetExportsAction>;
|
|
2350
|
+
interface OutputExportEntry {
|
|
324
2351
|
name: string;
|
|
325
2352
|
source_instance: string;
|
|
326
2353
|
source_output: string;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
description?: string;
|
|
345
|
-
categories?: string[];
|
|
346
|
-
authors?: ModuleAuthor[];
|
|
347
|
-
example?: string;
|
|
348
|
-
};
|
|
349
|
-
type ProviderDef = {
|
|
350
|
-
name: string;
|
|
351
|
-
source: string;
|
|
352
|
-
version: string;
|
|
353
|
-
configuration_aliases?: string[];
|
|
354
|
-
};
|
|
355
|
-
type ProviderConfigDef = {
|
|
356
|
-
name: string;
|
|
357
|
-
alias?: string;
|
|
358
|
-
config: Record<string, string>;
|
|
359
|
-
blocks?: Block[];
|
|
360
|
-
};
|
|
361
|
-
type LocalDef = {
|
|
2354
|
+
}
|
|
2355
|
+
declare const OutputExportEntry: MessageFns<OutputExportEntry>;
|
|
2356
|
+
interface SetTerraformAction {
|
|
2357
|
+
required_version: string;
|
|
2358
|
+
required_providers: ProviderReqView[];
|
|
2359
|
+
backend: BackendView | undefined;
|
|
2360
|
+
}
|
|
2361
|
+
declare const SetTerraformAction: MessageFns<SetTerraformAction>;
|
|
2362
|
+
interface SetProvidersAction {
|
|
2363
|
+
providers: ProviderView[];
|
|
2364
|
+
}
|
|
2365
|
+
declare const SetProvidersAction: MessageFns<SetProvidersAction>;
|
|
2366
|
+
interface SetLocalsAction {
|
|
2367
|
+
locals: LocalEntry$1[];
|
|
2368
|
+
}
|
|
2369
|
+
declare const SetLocalsAction: MessageFns<SetLocalsAction>;
|
|
2370
|
+
interface LocalEntry$1 {
|
|
362
2371
|
name: string;
|
|
363
2372
|
mode: string;
|
|
364
|
-
value
|
|
365
|
-
variable
|
|
366
|
-
expression
|
|
367
|
-
}
|
|
2373
|
+
value: any | undefined;
|
|
2374
|
+
variable: string;
|
|
2375
|
+
expression: string;
|
|
2376
|
+
}
|
|
2377
|
+
declare const LocalEntry$1: MessageFns<LocalEntry$1>;
|
|
2378
|
+
interface SetDependsOnAction {
|
|
2379
|
+
instance_id: string;
|
|
2380
|
+
depends_on: string[];
|
|
2381
|
+
}
|
|
2382
|
+
declare const SetDependsOnAction: MessageFns<SetDependsOnAction>;
|
|
368
2383
|
/**
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
* `
|
|
372
|
-
*
|
|
2384
|
+
* SetUseProvidersAction sets a module call's `providers = {}` map. Keys are
|
|
2385
|
+
* the child module's local provider names, values the root's provider
|
|
2386
|
+
* references passed down (`name` or `name.alias`). A node-tier edit of the
|
|
2387
|
+
* existing Use, mirroring SetDependsOnAction.
|
|
373
2388
|
*/
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
}
|
|
2389
|
+
interface SetUseProvidersAction {
|
|
2390
|
+
instance_id: string;
|
|
2391
|
+
providers: {
|
|
2392
|
+
[key: string]: string;
|
|
2393
|
+
};
|
|
2394
|
+
}
|
|
2395
|
+
declare const SetUseProvidersAction: MessageFns<SetUseProvidersAction>;
|
|
380
2396
|
/**
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
* successive CanvasView frames to guess what changed.
|
|
2397
|
+
* Undo / Redo are zero-payload actions — the session's history stack
|
|
2398
|
+
* carries the state. Modeled as Action oneof cases (empty messages) so
|
|
2399
|
+
* the single ApplyAction RPC covers the full mutation surface.
|
|
385
2400
|
*/
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
2401
|
+
interface UndoAction {
|
|
2402
|
+
}
|
|
2403
|
+
declare const UndoAction: MessageFns<UndoAction>;
|
|
2404
|
+
interface RedoAction {
|
|
2405
|
+
}
|
|
2406
|
+
declare const RedoAction: MessageFns<RedoAction>;
|
|
392
2407
|
/**
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
*
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
*
|
|
2408
|
+
* PlaceModuleAction drops a registry module onto the canvas. Distinct from
|
|
2409
|
+
* Connect/UpdateInput/etc. in that it names a *source* module (registry
|
|
2410
|
+
* coordinates) rather than a sibling instance; the server orchestrates the
|
|
2411
|
+
* registry fetch + module-key resolution before producing the Bundle
|
|
2412
|
+
* mutation. Placement position is consumer-owned arrangement state, written
|
|
2413
|
+
* client-side from `BundleApplyResult.created` after this action lands.
|
|
399
2414
|
*/
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
2415
|
+
interface PlaceModuleAction {
|
|
2416
|
+
author: string;
|
|
2417
|
+
name: string;
|
|
2418
|
+
version: string;
|
|
2419
|
+
}
|
|
2420
|
+
declare const PlaceModuleAction: MessageFns<PlaceModuleAction>;
|
|
2421
|
+
/** The canonical Action type used inside ApplyActionRequest. */
|
|
2422
|
+
interface Action {
|
|
2423
|
+
connect?: ConnectAction | undefined;
|
|
2424
|
+
auto_connect?: AutoConnectAction | undefined;
|
|
2425
|
+
disconnect?: DisconnectAction | undefined;
|
|
2426
|
+
update_input?: UpdateInputAction | undefined;
|
|
2427
|
+
update_all_inputs?: UpdateAllInputsAction | undefined;
|
|
2428
|
+
rename_instance?: RenameInstanceAction | undefined;
|
|
2429
|
+
delete_instance?: DeleteInstanceAction | undefined;
|
|
2430
|
+
copy_instances?: CopyInstancesAction | undefined;
|
|
2431
|
+
create_group?: CreateGroupAction | undefined;
|
|
2432
|
+
set_variables?: SetVariablesAction | undefined;
|
|
2433
|
+
set_exports?: SetExportsAction | undefined;
|
|
2434
|
+
set_terraform?: SetTerraformAction | undefined;
|
|
2435
|
+
set_providers?: SetProvidersAction | undefined;
|
|
2436
|
+
set_locals?: SetLocalsAction | undefined;
|
|
2437
|
+
set_depends_on?: SetDependsOnAction | undefined;
|
|
2438
|
+
undo?: UndoAction | undefined;
|
|
2439
|
+
redo?: RedoAction | undefined;
|
|
2440
|
+
place_module?: PlaceModuleAction | undefined;
|
|
2441
|
+
set_use_providers?: SetUseProvidersAction | undefined;
|
|
2442
|
+
ungroup?: UngroupAction | undefined;
|
|
2443
|
+
}
|
|
2444
|
+
declare const Action: MessageFns<Action>;
|
|
2445
|
+
interface ApplyActionRequest {
|
|
2446
|
+
session_id: string;
|
|
2447
|
+
actions: Action[];
|
|
2448
|
+
}
|
|
2449
|
+
declare const ApplyActionRequest: MessageFns<ApplyActionRequest>;
|
|
2450
|
+
interface InvokeRequest {
|
|
2451
|
+
/** client-chosen, unique per engine connection */
|
|
2452
|
+
invoke_id: string;
|
|
2453
|
+
/** empty ⇒ sessionless: Workspace commands exit 2 "requires a canvas session" */
|
|
2454
|
+
session_id: string;
|
|
2455
|
+
/** e.g. ["stack","preview"] */
|
|
2456
|
+
path: string[];
|
|
2457
|
+
/** positionals + flags from toArgv; never -o/--output */
|
|
2458
|
+
argv: string[];
|
|
2459
|
+
}
|
|
2460
|
+
declare const InvokeRequest: MessageFns<InvokeRequest>;
|
|
2461
|
+
interface InvokeEvent {
|
|
2462
|
+
json?: string | undefined;
|
|
2463
|
+
exit?: InvokeExit | undefined;
|
|
2464
|
+
}
|
|
2465
|
+
declare const InvokeEvent: MessageFns<InvokeEvent>;
|
|
2466
|
+
interface InvokeExit {
|
|
2467
|
+
code: number;
|
|
2468
|
+
/** tail ≤ 8 KiB */
|
|
2469
|
+
stderr_tail: string;
|
|
2470
|
+
}
|
|
2471
|
+
declare const InvokeExit: MessageFns<InvokeExit>;
|
|
2472
|
+
interface CancelInvokeRequest {
|
|
2473
|
+
invoke_id: string;
|
|
2474
|
+
}
|
|
2475
|
+
declare const CancelInvokeRequest: MessageFns<CancelInvokeRequest>;
|
|
2476
|
+
interface CancelInvokeResponse {
|
|
2477
|
+
found: boolean;
|
|
2478
|
+
}
|
|
2479
|
+
declare const CancelInvokeResponse: MessageFns<CancelInvokeResponse>;
|
|
2480
|
+
interface SubscribeRequest {
|
|
2481
|
+
session_id: string;
|
|
2482
|
+
}
|
|
2483
|
+
declare const SubscribeRequest: MessageFns<SubscribeRequest>;
|
|
2484
|
+
interface GenerateProgress {
|
|
2485
|
+
stage: string;
|
|
2486
|
+
message: string;
|
|
2487
|
+
}
|
|
2488
|
+
declare const GenerateProgress: MessageFns<GenerateProgress>;
|
|
2489
|
+
interface GenerateSuccess {
|
|
2490
|
+
files_written: string[];
|
|
2491
|
+
/** the `module validate -o json` document for the written tree */
|
|
2492
|
+
validate_json: string;
|
|
2493
|
+
}
|
|
2494
|
+
declare const GenerateSuccess: MessageFns<GenerateSuccess>;
|
|
2495
|
+
interface GenerateError {
|
|
2496
|
+
message: string;
|
|
2497
|
+
diagnostics: Diagnostic[];
|
|
419
2498
|
/**
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
* awaiting a mutation's ApplyResult — the engine has already received
|
|
423
|
-
* the corresponding BundleStateEvent and re-projected by the time the
|
|
424
|
-
* awaited promise resolves.
|
|
2499
|
+
* Set when Generate refused because a conflict opened during its
|
|
2500
|
+
* precondition check or its pre-write re-walk.
|
|
425
2501
|
*/
|
|
426
|
-
|
|
2502
|
+
conflict: Conflict | undefined;
|
|
2503
|
+
}
|
|
2504
|
+
declare const GenerateError: MessageFns<GenerateError>;
|
|
2505
|
+
interface Conflict {
|
|
2506
|
+
base_tree_hash: string;
|
|
2507
|
+
tree_hash: string;
|
|
2508
|
+
}
|
|
2509
|
+
declare const Conflict: MessageFns<Conflict>;
|
|
2510
|
+
/**
|
|
2511
|
+
* BundleStateEvent is the element yielded by the Subscribe stream. Every
|
|
2512
|
+
* session-state change publishes a full BundleState; generate events pass
|
|
2513
|
+
* through as their own cases.
|
|
2514
|
+
*/
|
|
2515
|
+
interface BundleStateEvent {
|
|
2516
|
+
state?: BundleState | undefined;
|
|
2517
|
+
generate_progress?: GenerateProgress | undefined;
|
|
2518
|
+
generate_success?: GenerateSuccess | undefined;
|
|
2519
|
+
generate_error?: GenerateError | undefined;
|
|
2520
|
+
}
|
|
2521
|
+
declare const BundleStateEvent: MessageFns<BundleStateEvent>;
|
|
2522
|
+
/**
|
|
2523
|
+
* BundleState is the authoritative session state over the wire: the
|
|
2524
|
+
* Bundle IR + session-undo metadata + the engine validator's findings
|
|
2525
|
+
* for that Bundle, plus the session's standing against its source tf
|
|
2526
|
+
* tree. Consumers (VS Code extension, portal, tests) project this
|
|
2527
|
+
* locally via the proto package's `projectCanvasView(bundle,
|
|
2528
|
+
* arrangement?, meta)` to produce a renderable CanvasView —
|
|
2529
|
+
* `arrangement` (node positions, group collapse/label) is
|
|
2530
|
+
* consumer-owned view state and never travels here.
|
|
2531
|
+
*
|
|
2532
|
+
* Not to be confused with the `bundle_snapshot` API entity, which is
|
|
2533
|
+
* the content-addressed immutable archival form in D1 + R2. BundleState
|
|
2534
|
+
* is a live, per-session wire shape.
|
|
2535
|
+
*/
|
|
2536
|
+
interface BundleState {
|
|
2537
|
+
/** Unset when the session is source-refused with no accepted tree. */
|
|
2538
|
+
bundle: Bundle | undefined;
|
|
2539
|
+
can_undo: boolean;
|
|
2540
|
+
can_redo: boolean;
|
|
2541
|
+
/** True when the working IR differs from the saved IR in `state.lace`. */
|
|
2542
|
+
unsaved: boolean;
|
|
427
2543
|
/**
|
|
428
|
-
* The
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
* to resolve a canvas-path id to the (scopeKey, localId) pair the write
|
|
432
|
-
* targets — arrangement is keyed by module key, the same key
|
|
433
|
-
* `projectScope` resolves via `resolveScopePath`, not by canvas path.
|
|
2544
|
+
* The engine validator's findings for this state, in the validator's
|
|
2545
|
+
* order. Empty when the state has none, so a subscriber sees errors
|
|
2546
|
+
* clear.
|
|
434
2547
|
*/
|
|
435
|
-
|
|
2548
|
+
diagnostics: Diagnostic[];
|
|
436
2549
|
/**
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
* engine is the single projection site (`bundle-renders-on-canvas`); a
|
|
440
|
-
* consumer that mutates arrangement (drag, collapse toggle, rename)
|
|
441
|
-
* calls this instead of re-deriving a CanvasView itself.
|
|
2550
|
+
* Set when a tf change diverges from the session's base tree hash and
|
|
2551
|
+
* needs Keep or Reload. Unset when there is no open conflict.
|
|
442
2552
|
*/
|
|
443
|
-
|
|
444
|
-
connect(source: string, target: string, sourceOutput: string, targetInput: string): Promise<ApplyResult>;
|
|
445
|
-
autoConnect(source: string, target: string): Promise<ApplyResult>;
|
|
446
|
-
disconnect(target: string, inputName: string): Promise<ApplyResult>;
|
|
447
|
-
updateInput(instanceId: string, inputName: string, mode: string, value?: unknown, variable?: string, expression?: string): Promise<ApplyResult>;
|
|
448
|
-
updateAllInputs(instanceId: string, inputs: InputUpdate[]): Promise<ApplyResult>;
|
|
449
|
-
renameInstance(oldId: string, newId: string): Promise<ApplyResult>;
|
|
450
|
-
deleteInstance(instanceId: string): Promise<ApplyResult>;
|
|
451
|
-
copyInstances(instanceIds: string[]): Promise<ApplyResult>;
|
|
452
|
-
setVariables(variables: VariableDef[]): Promise<ApplyResult>;
|
|
453
|
-
setExports(outputs: OutputExportDef[], outputDefs: OutputDefEntry[]): Promise<ApplyResult>;
|
|
454
|
-
setTerraform(requiredVersion?: string, requiredProviders?: ProviderDef[]): Promise<ApplyResult>;
|
|
455
|
-
setProviders(providers: ProviderConfigDef[]): Promise<ApplyResult>;
|
|
456
|
-
setLocals(locals: LocalDef[]): Promise<ApplyResult>;
|
|
457
|
-
setDependsOn(instanceId: string, dependsOn: string[]): Promise<ApplyResult>;
|
|
2553
|
+
conflict: Conflict | undefined;
|
|
458
2554
|
/**
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
* A node-tier edit of the existing module call, mirroring setDependsOn.
|
|
2555
|
+
* True when the saved IR in `state.lace` carries edits no Generate
|
|
2556
|
+
* has written to the source tf.
|
|
462
2557
|
*/
|
|
463
|
-
|
|
464
|
-
setEnvironments(environments: Record<string, Record<string, unknown>>): Promise<ApplyResult>;
|
|
465
|
-
undo(): Promise<ApplyResult>;
|
|
466
|
-
redo(): Promise<ApplyResult>;
|
|
2558
|
+
ungenerated: boolean;
|
|
467
2559
|
/**
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
*
|
|
472
|
-
*
|
|
2560
|
+
* True when the source tf this session opened, or last observed live,
|
|
2561
|
+
* is refused (unparsable or a Lossless refusal). The engine refuses
|
|
2562
|
+
* every mutation while this holds — edit, undo, redo, save, generate,
|
|
2563
|
+
* and SessionResolveConflict's Keep/Reload alike — until a live tf
|
|
2564
|
+
* change parses and clears it.
|
|
473
2565
|
*/
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
2566
|
+
source_refused: boolean;
|
|
2567
|
+
}
|
|
2568
|
+
declare const BundleState: MessageFns<BundleState>;
|
|
2569
|
+
/**
|
|
2570
|
+
* BundleApplyResult is returned by action RPCs (Connect, UpdateInput,
|
|
2571
|
+
* CreateGroup, ...) after an action is applied to the session. On
|
|
2572
|
+
* success, the corresponding `BundleState` is delivered via Subscribe
|
|
2573
|
+
* to all connected subscribers (including the action's caller).
|
|
2574
|
+
* On failure, `errors` carries the reasons the mutation was rejected
|
|
2575
|
+
* at the IR-validation boundary.
|
|
2576
|
+
*
|
|
2577
|
+
* `created` is the action-result attribution contract: the server
|
|
2578
|
+
* already knows which child/module IDs an action minted (placement,
|
|
2579
|
+
* group creation, copy), so it reports them here instead of clients
|
|
2580
|
+
* diffing successive BundleState frames to guess.
|
|
2581
|
+
*/
|
|
2582
|
+
interface BundleApplyResult {
|
|
2583
|
+
success: boolean;
|
|
2584
|
+
errors: GraphError$1[];
|
|
2585
|
+
created: CreatedRef$1[];
|
|
2586
|
+
}
|
|
2587
|
+
declare const BundleApplyResult: MessageFns<BundleApplyResult>;
|
|
2588
|
+
/**
|
|
2589
|
+
* CreatedRef names one child created by an action (PlaceModule,
|
|
2590
|
+
* CreateGroup, CopyInstances, ...). Clients key pending arrangement
|
|
2591
|
+
* writes (position, group label/collapse) off these IDs instead of
|
|
2592
|
+
* diffing BundleState frames.
|
|
2593
|
+
*/
|
|
2594
|
+
interface CreatedRef$1 {
|
|
2595
|
+
/** The scope key (module key) the child was created in. */
|
|
2596
|
+
scope: string;
|
|
2597
|
+
/** The created child/Use ID. */
|
|
2598
|
+
id: string;
|
|
493
2599
|
/**
|
|
494
|
-
*
|
|
495
|
-
*
|
|
496
|
-
* file doesn't exist yet — the panel renders the metadata form blank
|
|
497
|
-
* for the user to fill in.
|
|
2600
|
+
* Set when the action minted a new module (e.g. group create): the
|
|
2601
|
+
* new module's key. Empty otherwise.
|
|
498
2602
|
*/
|
|
499
|
-
|
|
500
|
-
metadata: ModuleMetadata | null;
|
|
501
|
-
present: boolean;
|
|
502
|
-
}>;
|
|
2603
|
+
module_key: string;
|
|
503
2604
|
/**
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
* new bytes, never partial.
|
|
2605
|
+
* Set when the child was cloned from an existing one (e.g. copy):
|
|
2606
|
+
* the source child ID. Empty otherwise.
|
|
507
2607
|
*/
|
|
508
|
-
|
|
2608
|
+
source_id: string;
|
|
2609
|
+
}
|
|
2610
|
+
declare const CreatedRef$1: MessageFns<CreatedRef$1>;
|
|
2611
|
+
/**
|
|
2612
|
+
* GraphError describes an IR-level validation failure that rejected an
|
|
2613
|
+
* action. Mutation-boundary errors never reach the canvas; they are
|
|
2614
|
+
* returned synchronously to the action RPC caller. The canvas renders
|
|
2615
|
+
* no validator of its own — it surfaces BundleState.diagnostics.
|
|
2616
|
+
*/
|
|
2617
|
+
interface GraphError$1 {
|
|
2618
|
+
module_key: string;
|
|
2619
|
+
instance_id: string;
|
|
2620
|
+
input_name: string;
|
|
2621
|
+
message: string;
|
|
2622
|
+
}
|
|
2623
|
+
declare const GraphError$1: MessageFns<GraphError$1>;
|
|
2624
|
+
interface ProviderReqView {
|
|
2625
|
+
name: string;
|
|
2626
|
+
source: string;
|
|
2627
|
+
version: string;
|
|
509
2628
|
/**
|
|
510
|
-
*
|
|
511
|
-
*
|
|
512
|
-
*
|
|
513
|
-
*
|
|
514
|
-
* not support live policy evaluation may return a default
|
|
515
|
-
* auto_apply resolution.
|
|
2629
|
+
* Provider references the module declares it accepts from its caller
|
|
2630
|
+
* (`configuration_aliases = [aws.src, aws.dst]`). Each entry is a `name` or
|
|
2631
|
+
* `name.alias` reference, re-emitted unquoted; carried so the panel neither
|
|
2632
|
+
* drops nor corrupts the construct.
|
|
516
2633
|
*/
|
|
517
|
-
|
|
2634
|
+
configuration_aliases: string[];
|
|
2635
|
+
}
|
|
2636
|
+
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
2637
|
+
interface BackendView {
|
|
2638
|
+
type: string;
|
|
2639
|
+
config: {
|
|
2640
|
+
[key: string]: any | undefined;
|
|
2641
|
+
};
|
|
2642
|
+
}
|
|
2643
|
+
declare const BackendView: MessageFns<BackendView>;
|
|
2644
|
+
interface ProviderView {
|
|
2645
|
+
name: string;
|
|
2646
|
+
alias: string;
|
|
2647
|
+
config: {
|
|
2648
|
+
[key: string]: string;
|
|
2649
|
+
};
|
|
518
2650
|
/**
|
|
519
|
-
*
|
|
520
|
-
*
|
|
2651
|
+
* Nested config blocks (default_tags, assume_role, …). Full-fidelity,
|
|
2652
|
+
* read-only echo: the panel renders and round-trips these verbatim but does
|
|
2653
|
+
* not structurally edit them, deliberately mixing tiers with the flattened,
|
|
2654
|
+
* editable `config` map above (see ProvidersPanel). Reuses state.proto's
|
|
2655
|
+
* recursive Block so no HCL is re-serialized on the wire.
|
|
521
2656
|
*/
|
|
522
|
-
|
|
2657
|
+
blocks: Block[];
|
|
2658
|
+
}
|
|
2659
|
+
declare const ProviderView: MessageFns<ProviderView>;
|
|
2660
|
+
interface InputDef {
|
|
2661
|
+
name: string;
|
|
2662
|
+
type: string;
|
|
2663
|
+
required: boolean;
|
|
2664
|
+
description: string;
|
|
2665
|
+
default_value: any | undefined;
|
|
2666
|
+
validation: ValidationBlock[];
|
|
2667
|
+
/** unset = default (false); explicit true is meaningful */
|
|
2668
|
+
ephemeral?: boolean | undefined;
|
|
2669
|
+
/** unset = default (true); explicit false is meaningful */
|
|
2670
|
+
nullable?: boolean | undefined;
|
|
2671
|
+
sensitive: boolean;
|
|
2672
|
+
}
|
|
2673
|
+
declare const InputDef: MessageFns<InputDef>;
|
|
2674
|
+
interface ValidationBlock {
|
|
2675
|
+
condition: string;
|
|
2676
|
+
error_message: string;
|
|
2677
|
+
}
|
|
2678
|
+
declare const ValidationBlock: MessageFns<ValidationBlock>;
|
|
2679
|
+
interface OutputDef {
|
|
2680
|
+
name: string;
|
|
2681
|
+
type: string;
|
|
2682
|
+
description: string;
|
|
2683
|
+
sensitive: boolean;
|
|
2684
|
+
depends_on: string[];
|
|
2685
|
+
}
|
|
2686
|
+
declare const OutputDef: MessageFns<OutputDef>;
|
|
2687
|
+
type LaceEngineDefinition = typeof LaceEngineDefinition;
|
|
2688
|
+
declare const LaceEngineDefinition: {
|
|
2689
|
+
readonly name: "LaceEngine";
|
|
2690
|
+
readonly fullName: "lace.engine.LaceEngine";
|
|
2691
|
+
readonly methods: {
|
|
2692
|
+
/** Lifecycle (global; no session_id) */
|
|
2693
|
+
readonly initialize: {
|
|
2694
|
+
readonly name: "Initialize";
|
|
2695
|
+
readonly requestType: typeof InitializeRequest;
|
|
2696
|
+
readonly requestStream: false;
|
|
2697
|
+
readonly responseType: typeof InitializeResponse;
|
|
2698
|
+
readonly responseStream: false;
|
|
2699
|
+
readonly options: {};
|
|
2700
|
+
};
|
|
2701
|
+
readonly shutdown: {
|
|
2702
|
+
readonly name: "Shutdown";
|
|
2703
|
+
readonly requestType: typeof Empty;
|
|
2704
|
+
readonly requestStream: false;
|
|
2705
|
+
readonly responseType: typeof ShutdownResponse;
|
|
2706
|
+
readonly responseStream: false;
|
|
2707
|
+
readonly options: {};
|
|
2708
|
+
};
|
|
2709
|
+
/**
|
|
2710
|
+
* Session lifecycle. Never fails on a refused source tf — a refused tf
|
|
2711
|
+
* opens the session source-refused (`BundleState.source_refused`) with
|
|
2712
|
+
* its diagnostics, rather than returning an RPC error.
|
|
2713
|
+
*/
|
|
2714
|
+
readonly sessionOpen: {
|
|
2715
|
+
readonly name: "SessionOpen";
|
|
2716
|
+
readonly requestType: typeof SessionOpenRequest;
|
|
2717
|
+
readonly requestStream: false;
|
|
2718
|
+
readonly responseType: typeof SessionOpenResponse;
|
|
2719
|
+
readonly responseStream: false;
|
|
2720
|
+
readonly options: {};
|
|
2721
|
+
};
|
|
2722
|
+
readonly testSessionOpen: {
|
|
2723
|
+
readonly name: "TestSessionOpen";
|
|
2724
|
+
readonly requestType: typeof TestSessionOpenRequest;
|
|
2725
|
+
readonly requestStream: false;
|
|
2726
|
+
readonly responseType: typeof SessionOpenResponse;
|
|
2727
|
+
readonly responseStream: false;
|
|
2728
|
+
readonly options: {};
|
|
2729
|
+
};
|
|
2730
|
+
/**
|
|
2731
|
+
* Writes the session's working IR to `state.lace`. The one RPC that
|
|
2732
|
+
* writes `state.lace`; never writes the source tf.
|
|
2733
|
+
*/
|
|
2734
|
+
readonly sessionSave: {
|
|
2735
|
+
readonly name: "SessionSave";
|
|
2736
|
+
readonly requestType: typeof SessionSaveRequest;
|
|
2737
|
+
readonly requestStream: false;
|
|
2738
|
+
readonly responseType: typeof SessionSaveResponse;
|
|
2739
|
+
readonly responseStream: false;
|
|
2740
|
+
readonly options: {};
|
|
2741
|
+
};
|
|
2742
|
+
readonly sessionClose: {
|
|
2743
|
+
readonly name: "SessionClose";
|
|
2744
|
+
readonly requestType: typeof SessionCloseRequest;
|
|
2745
|
+
readonly requestStream: false;
|
|
2746
|
+
readonly responseType: typeof SessionCloseResponse;
|
|
2747
|
+
readonly responseStream: false;
|
|
2748
|
+
readonly options: {};
|
|
2749
|
+
};
|
|
2750
|
+
/**
|
|
2751
|
+
* Writes the session's saved Bundle to HCL and re-bases the session
|
|
2752
|
+
* onto the written tree's hash. Refuses (FailedPrecondition) while the
|
|
2753
|
+
* session is ephemeral, holds the git guard, is source-refused, has an
|
|
2754
|
+
* open conflict, or has unsaved edits.
|
|
2755
|
+
*/
|
|
2756
|
+
readonly sessionGenerate: {
|
|
2757
|
+
readonly name: "SessionGenerate";
|
|
2758
|
+
readonly requestType: typeof SessionGenerateRequest;
|
|
2759
|
+
readonly requestStream: false;
|
|
2760
|
+
readonly responseType: typeof SessionGenerateResponse;
|
|
2761
|
+
readonly responseStream: false;
|
|
2762
|
+
readonly options: {};
|
|
2763
|
+
};
|
|
2764
|
+
/**
|
|
2765
|
+
* Resolves an open conflict: keep the session's IR for this tree hash,
|
|
2766
|
+
* or reload the session from the tree.
|
|
2767
|
+
*/
|
|
2768
|
+
readonly sessionResolveConflict: {
|
|
2769
|
+
readonly name: "SessionResolveConflict";
|
|
2770
|
+
readonly requestType: typeof SessionResolveConflictRequest;
|
|
2771
|
+
readonly requestStream: false;
|
|
2772
|
+
readonly responseType: typeof SessionResolveConflictResponse;
|
|
2773
|
+
readonly responseStream: false;
|
|
2774
|
+
readonly options: {};
|
|
2775
|
+
};
|
|
2776
|
+
/**
|
|
2777
|
+
* Single unified mutation RPC. Every canvas mutation (connect, update
|
|
2778
|
+
* input, create group, undo, redo, place module from registry, ...)
|
|
2779
|
+
* travels through ApplyAction carrying one or more `Action` oneof
|
|
2780
|
+
* cases. Returns `BundleApplyResult { success, errors }`; on success
|
|
2781
|
+
* the corresponding `BundleState` snapshot is published to every
|
|
2782
|
+
* Subscribe stream on this session (including the caller's). Refused
|
|
2783
|
+
* (FailedPrecondition) while the session is source-refused.
|
|
2784
|
+
*/
|
|
2785
|
+
readonly applyAction: {
|
|
2786
|
+
readonly name: "ApplyAction";
|
|
2787
|
+
readonly requestType: typeof ApplyActionRequest;
|
|
2788
|
+
readonly requestStream: false;
|
|
2789
|
+
readonly responseType: typeof BundleApplyResult;
|
|
2790
|
+
readonly responseStream: false;
|
|
2791
|
+
readonly options: {};
|
|
2792
|
+
};
|
|
2793
|
+
/**
|
|
2794
|
+
* Runs one CLI command in-process against a fresh command tree. The command's `-o json` output is the stream:
|
|
2795
|
+
* each top-level JSON value on stdout is one `json` event; `exit` is always last.
|
|
2796
|
+
*/
|
|
2797
|
+
readonly invoke: {
|
|
2798
|
+
readonly name: "Invoke";
|
|
2799
|
+
readonly requestType: typeof InvokeRequest;
|
|
2800
|
+
readonly requestStream: false;
|
|
2801
|
+
readonly responseType: typeof InvokeEvent;
|
|
2802
|
+
readonly responseStream: true;
|
|
2803
|
+
readonly options: {};
|
|
2804
|
+
};
|
|
2805
|
+
/** Cancels a live Invoke as an explicit user cancel (errUserCancel). A stream closed without this detaches. */
|
|
2806
|
+
readonly cancelInvoke: {
|
|
2807
|
+
readonly name: "CancelInvoke";
|
|
2808
|
+
readonly requestType: typeof CancelInvokeRequest;
|
|
2809
|
+
readonly requestStream: false;
|
|
2810
|
+
readonly responseType: typeof CancelInvokeResponse;
|
|
2811
|
+
readonly responseStream: false;
|
|
2812
|
+
readonly options: {};
|
|
2813
|
+
};
|
|
2814
|
+
/**
|
|
2815
|
+
* Server-push events scoped to one session. Yields `BundleStateEvent`
|
|
2816
|
+
* — full `BundleState` snapshots per session-state change, plus
|
|
2817
|
+
* generate-phase pass-throughs. Initial emission is the current
|
|
2818
|
+
* BundleState, which acts as the "subscribed" ready signal.
|
|
2819
|
+
*
|
|
2820
|
+
* Consumers (portal + extension canvas engines) project locally via
|
|
2821
|
+
* `@lace-cloud/proto`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
2822
|
+
* `arrangement` (node positions, group collapse/label) is consumer-owned
|
|
2823
|
+
* view state — it never travels over this RPC.
|
|
2824
|
+
*/
|
|
2825
|
+
readonly subscribe: {
|
|
2826
|
+
readonly name: "Subscribe";
|
|
2827
|
+
readonly requestType: typeof SubscribeRequest;
|
|
2828
|
+
readonly requestStream: false;
|
|
2829
|
+
readonly responseType: typeof BundleStateEvent;
|
|
2830
|
+
readonly responseStream: true;
|
|
2831
|
+
readonly options: {};
|
|
2832
|
+
};
|
|
2833
|
+
};
|
|
2834
|
+
};
|
|
2835
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
2836
|
+
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 {} ? {
|
|
2837
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
2838
|
+
} : Partial<T>;
|
|
2839
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
2840
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
2841
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
2842
|
+
} & {
|
|
2843
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
2844
|
+
};
|
|
2845
|
+
interface MessageFns<T> {
|
|
2846
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
2847
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
2848
|
+
fromJSON(object: any): T;
|
|
2849
|
+
toJSON(message: T): unknown;
|
|
2850
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
2851
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
523
2852
|
}
|
|
524
2853
|
|
|
2854
|
+
type SourceConflict = {
|
|
2855
|
+
baseTreeHash: string;
|
|
2856
|
+
treeHash: string;
|
|
2857
|
+
};
|
|
2858
|
+
type CanvasSource = {
|
|
2859
|
+
bundle: Bundle;
|
|
2860
|
+
canUndo: boolean;
|
|
2861
|
+
canRedo: boolean;
|
|
2862
|
+
unsaved: boolean;
|
|
2863
|
+
ungenerated: boolean;
|
|
2864
|
+
conflict: SourceConflict | null;
|
|
2865
|
+
sourceRefused: boolean;
|
|
2866
|
+
diagnostics: readonly Diagnostic$1[];
|
|
2867
|
+
};
|
|
2868
|
+
type SourcePort = {
|
|
2869
|
+
subscribe: (on: (s: CanvasSource) => void, onError: (e: Error) => void) => () => void;
|
|
2870
|
+
};
|
|
2871
|
+
type GenerateEvent = {
|
|
2872
|
+
type: 'progress';
|
|
2873
|
+
stage: 'generating' | 'validating';
|
|
2874
|
+
} | {
|
|
2875
|
+
type: 'success';
|
|
2876
|
+
written: string[];
|
|
2877
|
+
validate: JsonOf<'module validate'>;
|
|
2878
|
+
} | {
|
|
2879
|
+
type: 'error';
|
|
2880
|
+
message: string;
|
|
2881
|
+
diagnostics: Diagnostic$1[];
|
|
2882
|
+
conflict?: SourceConflict;
|
|
2883
|
+
};
|
|
525
2884
|
/**
|
|
526
|
-
*
|
|
527
|
-
*
|
|
528
|
-
*
|
|
529
|
-
* the engine directly (e.g. triggerGenerate → engine.sessionGenerate).
|
|
2885
|
+
* IR-level validation error reported by `ApplyAction`. Mirrors the wire
|
|
2886
|
+
* `GraphError` — a failing `ApplyResult` carries one or more of these, and
|
|
2887
|
+
* consumers surface them as a toast, leaving canvas state unchanged.
|
|
530
2888
|
*/
|
|
531
|
-
type
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
2889
|
+
type GraphError = {
|
|
2890
|
+
moduleKey: string;
|
|
2891
|
+
instanceId: string;
|
|
2892
|
+
inputName: string;
|
|
2893
|
+
message: string;
|
|
2894
|
+
};
|
|
2895
|
+
/**
|
|
2896
|
+
* Names one child created by a mutation (placement, group creation, copy).
|
|
2897
|
+
* Mirrors the wire `CreatedRef` — clients key pending arrangement writes
|
|
2898
|
+
* (position, group label/collapse) off these ids instead of diffing
|
|
2899
|
+
* successive CanvasView frames to guess what changed.
|
|
2900
|
+
*/
|
|
2901
|
+
type CreatedRef = {
|
|
2902
|
+
scope: string;
|
|
2903
|
+
id: string;
|
|
2904
|
+
moduleKey: string;
|
|
2905
|
+
sourceId: string;
|
|
2906
|
+
};
|
|
2907
|
+
type ApplyResult = {
|
|
2908
|
+
success: boolean;
|
|
2909
|
+
errors: GraphError[];
|
|
2910
|
+
created: CreatedRef[];
|
|
2911
|
+
};
|
|
2912
|
+
type EditorPort = {
|
|
2913
|
+
apply: (actions: readonly Action[]) => Promise<ApplyResult>;
|
|
2914
|
+
save: () => Promise<void>;
|
|
2915
|
+
generate: () => AsyncIterable<GenerateEvent>;
|
|
2916
|
+
resolveConflict: (choice: 'keep' | 'reload', treeHash: string) => Promise<void>;
|
|
2917
|
+
autosave?: {
|
|
2918
|
+
delayMs: number;
|
|
2919
|
+
};
|
|
2920
|
+
};
|
|
2921
|
+
declare class CommandExitError extends Error {
|
|
2922
|
+
readonly code: number;
|
|
2923
|
+
readonly stderrTail: string;
|
|
2924
|
+
constructor(code: number, stderrTail: string);
|
|
2925
|
+
}
|
|
2926
|
+
declare class CommandDetachedError extends Error {
|
|
2927
|
+
constructor();
|
|
2928
|
+
}
|
|
2929
|
+
type Invocation<P extends BoundPath> = {
|
|
2930
|
+
events: AsyncIterable<JsonOf<P>>;
|
|
2931
|
+
cancel: () => Promise<void>;
|
|
2932
|
+
};
|
|
2933
|
+
type CommandsPort = {
|
|
2934
|
+
available: () => ReadonlySet<BoundPath>;
|
|
2935
|
+
invoke: <P extends BoundPath>(path: P, args: ArgsOf<P>, signal: AbortSignal) => Invocation<P>;
|
|
2936
|
+
};
|
|
2937
|
+
type StackRef = {
|
|
2938
|
+
id: string;
|
|
2939
|
+
slug: string;
|
|
2940
|
+
};
|
|
2941
|
+
type ContextPort = {
|
|
2942
|
+
root?: string;
|
|
2943
|
+
sessionId?: string;
|
|
2944
|
+
stack?: StackRef;
|
|
2945
|
+
};
|
|
2946
|
+
type NavKind = 'run';
|
|
2947
|
+
type NavigatorPort = {
|
|
2948
|
+
open: (kind: NavKind, id: string) => void;
|
|
2949
|
+
};
|
|
2950
|
+
type ViewStatePort = {
|
|
2951
|
+
load: () => CanvasArrangement;
|
|
2952
|
+
save: (a: CanvasArrangement) => void;
|
|
2953
|
+
stack?: StackRef;
|
|
2954
|
+
saveStack?: (s: StackRef | null) => void;
|
|
2955
|
+
};
|
|
2956
|
+
type ConfirmSpec = {
|
|
2957
|
+
text: string;
|
|
2958
|
+
typed?: string;
|
|
2959
|
+
};
|
|
2960
|
+
type PresenterPort = {
|
|
2961
|
+
notify: (level: 'info' | 'warn' | 'error', text: string) => void;
|
|
2962
|
+
confirm?: (o: ConfirmSpec) => Promise<boolean>;
|
|
2963
|
+
};
|
|
2964
|
+
type AuthPort = {
|
|
2965
|
+
showCode: (o: {
|
|
2966
|
+
code: string;
|
|
2967
|
+
verificationUrl?: string;
|
|
2968
|
+
}) => void;
|
|
2969
|
+
};
|
|
2970
|
+
type CanvasPorts = {
|
|
2971
|
+
source: SourcePort;
|
|
2972
|
+
context: ContextPort;
|
|
2973
|
+
viewState: ViewStatePort;
|
|
2974
|
+
presenter: PresenterPort;
|
|
2975
|
+
editor?: EditorPort;
|
|
2976
|
+
commands?: CommandsPort;
|
|
2977
|
+
navigator?: NavigatorPort;
|
|
2978
|
+
auth?: AuthPort;
|
|
2979
|
+
};
|
|
2980
|
+
type PortName = keyof CanvasPorts;
|
|
2981
|
+
|
|
2982
|
+
type EdgeRef = {
|
|
2983
|
+
id: string;
|
|
2984
|
+
source: string;
|
|
2985
|
+
target: string;
|
|
2986
|
+
sourceOutput: string;
|
|
2987
|
+
targetInput: string;
|
|
537
2988
|
};
|
|
2989
|
+
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'resolved' | 'selection.node' | 'selection.edge' | 'diagnostics';
|
|
2990
|
+
type CanvasCtx = {
|
|
2991
|
+
ports: CanvasPorts;
|
|
2992
|
+
root?: string;
|
|
2993
|
+
sessionId?: string;
|
|
2994
|
+
stack?: StackRef;
|
|
2995
|
+
editable: boolean;
|
|
2996
|
+
view: CanvasView;
|
|
2997
|
+
selection: {
|
|
2998
|
+
nodes: readonly string[];
|
|
2999
|
+
edge: EdgeRef | null;
|
|
3000
|
+
};
|
|
3001
|
+
diagnostics: readonly Diagnostic$1[];
|
|
3002
|
+
contributions: Contributions;
|
|
3003
|
+
};
|
|
3004
|
+
type Badge = {
|
|
3005
|
+
id: string;
|
|
3006
|
+
label: string;
|
|
3007
|
+
tone: 'neutral' | 'warn' | 'error';
|
|
3008
|
+
title?: string;
|
|
3009
|
+
};
|
|
3010
|
+
type NodeDecoration = {
|
|
3011
|
+
badges: readonly Badge[];
|
|
3012
|
+
};
|
|
3013
|
+
type Decorations = {
|
|
3014
|
+
nodes: Readonly<Record<string, NodeDecoration>>;
|
|
3015
|
+
};
|
|
3016
|
+
type OverlayContribution = {
|
|
3017
|
+
id: string;
|
|
3018
|
+
paths: readonly BoundPath[];
|
|
3019
|
+
useDecorations: (ctx: CanvasCtx) => Decorations;
|
|
3020
|
+
};
|
|
3021
|
+
type PanelProps = {
|
|
3022
|
+
ctx: CanvasCtx;
|
|
3023
|
+
};
|
|
3024
|
+
type CommandRead<P extends BoundPath> = {
|
|
3025
|
+
path: P;
|
|
3026
|
+
args: (ctx: CanvasCtx, target: ActionTarget) => ArgsOf<P> | null;
|
|
3027
|
+
};
|
|
3028
|
+
type Panel = {
|
|
3029
|
+
id: string;
|
|
3030
|
+
title: string;
|
|
3031
|
+
slot: 'banner' | 'toolbar' | 'sidebar' | 'bottom' | 'inspector';
|
|
3032
|
+
requiredPorts: readonly PortName[];
|
|
3033
|
+
reads?: readonly {
|
|
3034
|
+
path: BoundPath;
|
|
3035
|
+
}[];
|
|
3036
|
+
views?: SlotKind;
|
|
3037
|
+
requiredContext?: readonly ContextKey[];
|
|
3038
|
+
Component: FC<PanelProps>;
|
|
3039
|
+
};
|
|
3040
|
+
type ActionTarget = {
|
|
3041
|
+
nodeId?: string;
|
|
3042
|
+
diagnostic?: Diagnostic$1;
|
|
3043
|
+
runId?: string;
|
|
3044
|
+
artifact?: {
|
|
3045
|
+
author: string;
|
|
3046
|
+
name: string;
|
|
3047
|
+
version: string;
|
|
3048
|
+
};
|
|
3049
|
+
};
|
|
3050
|
+
type Placement = 'toolbar' | 'node-menu' | {
|
|
3051
|
+
row: string;
|
|
3052
|
+
};
|
|
3053
|
+
type ResultKind = 'run' | 'preview' | 'report' | 'notify' | 'follow' | 'sign-in';
|
|
3054
|
+
type SlotKind = Exclude<ResultKind, 'notify'>;
|
|
3055
|
+
type GenerateReportInput = {
|
|
3056
|
+
diagnostics: readonly Diagnostic$1[];
|
|
3057
|
+
};
|
|
3058
|
+
type SinkInput = {
|
|
3059
|
+
run: JsonOf<'stack apply'>;
|
|
3060
|
+
preview: JsonOf<'stack preview'>;
|
|
3061
|
+
report: JsonOf<'module validate'> | JsonOf<'module convert'> | GenerateReportInput;
|
|
3062
|
+
notify: unknown;
|
|
3063
|
+
follow: JsonOf<'run logs'>;
|
|
3064
|
+
'sign-in': JsonOf<'login'>;
|
|
3065
|
+
};
|
|
3066
|
+
type ResultFor<P extends BoundPath> = {
|
|
3067
|
+
[K in ResultKind]: JsonOf<P> extends SinkInput[K] ? K : never;
|
|
3068
|
+
}[ResultKind];
|
|
3069
|
+
type BindingRuntime = {
|
|
3070
|
+
ports: CanvasPorts;
|
|
3071
|
+
token: object;
|
|
3072
|
+
write: <K extends SlotKind>(kind: K, token: object, value: SinkInput[K]) => void;
|
|
3073
|
+
detach: <K extends ResultKind>(kind: K, token: object) => void;
|
|
3074
|
+
begin: () => void;
|
|
3075
|
+
fail: (error: unknown) => boolean;
|
|
3076
|
+
tick: () => void;
|
|
3077
|
+
settled?: () => void;
|
|
3078
|
+
};
|
|
3079
|
+
type Sink<T> = {
|
|
3080
|
+
kind: ResultKind;
|
|
3081
|
+
consume: (rt: BindingRuntime, e: T) => void;
|
|
3082
|
+
};
|
|
3083
|
+
type CommandBinding<P extends BoundPath> = {
|
|
3084
|
+
kind: 'command';
|
|
3085
|
+
path: P;
|
|
3086
|
+
args: (ctx: CanvasCtx, target: ActionTarget) => Partial<ArgsOf<P>>;
|
|
3087
|
+
confirm?: (ctx: CanvasCtx, args: ArgsOf<P>) => ConfirmSpec;
|
|
3088
|
+
result: Sink<JsonOf<P>> & {
|
|
3089
|
+
kind: ResultFor<P>;
|
|
3090
|
+
};
|
|
3091
|
+
invalidates?: true | 'start+settle';
|
|
3092
|
+
};
|
|
3093
|
+
type ClipboardStore = {
|
|
3094
|
+
get: () => {
|
|
3095
|
+
ids: readonly string[];
|
|
3096
|
+
cut: boolean;
|
|
3097
|
+
} | null;
|
|
3098
|
+
set: (ids: readonly string[], cut: boolean) => void;
|
|
3099
|
+
clear: () => void;
|
|
3100
|
+
};
|
|
3101
|
+
type LayoutHandle = {
|
|
3102
|
+
forcePositions: () => void;
|
|
3103
|
+
panIntoView: (rect: {
|
|
3104
|
+
x: number;
|
|
3105
|
+
y: number;
|
|
3106
|
+
width: number;
|
|
3107
|
+
height: number;
|
|
3108
|
+
}) => void;
|
|
3109
|
+
};
|
|
3110
|
+
type EditorEnv = {
|
|
3111
|
+
editor: EditorPort;
|
|
3112
|
+
apply: (actions: readonly Action[]) => Promise<ApplyResult>;
|
|
3113
|
+
ctx: CanvasCtx;
|
|
3114
|
+
target: ActionTarget;
|
|
3115
|
+
bundle: Bundle;
|
|
3116
|
+
clipboard: ClipboardStore;
|
|
3117
|
+
arrangement: {
|
|
3118
|
+
get: () => CanvasArrangement;
|
|
3119
|
+
update: (a: CanvasArrangement) => void;
|
|
3120
|
+
};
|
|
3121
|
+
layout: LayoutHandle;
|
|
3122
|
+
};
|
|
3123
|
+
type EditorBinding = {
|
|
3124
|
+
kind: 'editor';
|
|
3125
|
+
confirm?: (ctx: CanvasCtx) => ConfirmSpec;
|
|
3126
|
+
} & ({
|
|
3127
|
+
result: 'apply';
|
|
3128
|
+
run: (env: EditorEnv) => Promise<ApplyResult>;
|
|
3129
|
+
} | {
|
|
3130
|
+
result: 'generate';
|
|
3131
|
+
run: (env: EditorEnv) => AsyncIterable<GenerateEvent>;
|
|
3132
|
+
} | {
|
|
3133
|
+
result: 'none';
|
|
3134
|
+
run: (env: EditorEnv) => Promise<void>;
|
|
3135
|
+
});
|
|
3136
|
+
type NavigateBinding = {
|
|
3137
|
+
kind: 'navigate';
|
|
3138
|
+
to: (ctx: CanvasCtx, target: ActionTarget) => {
|
|
3139
|
+
open: [kind: NavKind, id: string];
|
|
3140
|
+
};
|
|
3141
|
+
};
|
|
3142
|
+
type HostBinding = {
|
|
3143
|
+
kind: 'host';
|
|
3144
|
+
confirm?: (ctx: CanvasCtx) => ConfirmSpec;
|
|
3145
|
+
invalidates?: true;
|
|
3146
|
+
run: (rt: BindingRuntime, ctx: CanvasCtx, target: ActionTarget) => Promise<void>;
|
|
3147
|
+
};
|
|
3148
|
+
type ErasedCommand = {
|
|
3149
|
+
kind: 'command';
|
|
3150
|
+
path: BoundPath;
|
|
3151
|
+
confirms: boolean;
|
|
3152
|
+
resultKind: ResultKind;
|
|
3153
|
+
invalidates?: true | 'start+settle';
|
|
3154
|
+
partialArgs: (ctx: CanvasCtx, target: ActionTarget) => Record<string, unknown>;
|
|
3155
|
+
confirmSpec: (ctx: CanvasCtx, target: ActionTarget, formArgs: Record<string, unknown>) => ConfirmSpec | undefined;
|
|
3156
|
+
start: (rt: BindingRuntime, ctx: CanvasCtx, target: ActionTarget, formArgs: Record<string, unknown>, signal: AbortSignal) => Promise<{
|
|
3157
|
+
cancel: () => Promise<void>;
|
|
3158
|
+
} | null>;
|
|
3159
|
+
};
|
|
3160
|
+
type ActionContribution = {
|
|
3161
|
+
id: string;
|
|
3162
|
+
label: string;
|
|
3163
|
+
icon?: string;
|
|
3164
|
+
keys?: readonly string[];
|
|
3165
|
+
placement: Placement;
|
|
3166
|
+
requiredPorts: readonly PortName[];
|
|
3167
|
+
requiredContext?: readonly ContextKey[];
|
|
3168
|
+
requiredTarget?: readonly (keyof ActionTarget)[];
|
|
3169
|
+
enabledWhen?: readonly {
|
|
3170
|
+
key: ContextKey;
|
|
3171
|
+
reason: string;
|
|
3172
|
+
}[];
|
|
3173
|
+
binding: ErasedCommand | EditorBinding | NavigateBinding | HostBinding;
|
|
3174
|
+
};
|
|
3175
|
+
type Contributions = {
|
|
3176
|
+
overlays: readonly OverlayContribution[];
|
|
3177
|
+
panels: readonly Panel[];
|
|
3178
|
+
actions: readonly ActionContribution[];
|
|
3179
|
+
};
|
|
3180
|
+
declare function defineCommand<P extends BoundPath>(binding: CommandBinding<P>): ErasedCommand;
|
|
3181
|
+
declare function defineOverlay<P extends BoundPath>(o: {
|
|
3182
|
+
id: string;
|
|
3183
|
+
read: CommandRead<P>;
|
|
3184
|
+
decorate(v: CanvasView, d: JsonOf<P>): Decorations;
|
|
3185
|
+
}): OverlayContribution;
|
|
3186
|
+
|
|
538
3187
|
type AppProps = {
|
|
539
|
-
|
|
540
|
-
|
|
3188
|
+
ports: CanvasPorts;
|
|
3189
|
+
/** Appended to the core contribution set — no core feature bypasses the registry. */
|
|
3190
|
+
contributions?: Contributions;
|
|
541
3191
|
/**
|
|
542
3192
|
* Height of the canvas root. Defaults to `100vh`; embedded consumers can
|
|
543
3193
|
* pass `100%` when their parent establishes an explicit height.
|
|
544
3194
|
*/
|
|
545
3195
|
height?: React__default.CSSProperties['height'];
|
|
546
|
-
/**
|
|
547
|
-
* When true, the canvas renders in read-only mode: pan/zoom/drag/inspect
|
|
548
|
-
* still work, but every IR-mutating affordance (save, delete, rename,
|
|
549
|
-
* wire, generate) is hidden or blocked. Defaults to `false`.
|
|
550
|
-
*/
|
|
551
|
-
readOnly?: boolean;
|
|
552
|
-
/** Base URL of the Lace registry API (e.g. https://lace.cloud). */
|
|
553
|
-
registryBaseUrl?: string;
|
|
554
|
-
/** API token for registry access. */
|
|
555
|
-
apiToken?: string;
|
|
556
3196
|
/**
|
|
557
3197
|
* True when the canvas is mounted INSIDE a host panel rather than owning
|
|
558
3198
|
* the window: the native zoom Controls dock top-left instead of
|
|
559
|
-
* bottom-right
|
|
560
|
-
* hard-docked top-right and stays mounted even in read-only embedded
|
|
561
|
-
* panels. Sizing is a separate concern — an embedded consumer passes
|
|
562
|
-
* `height="100%"`.
|
|
3199
|
+
* bottom-right (Canvas.tsx).
|
|
563
3200
|
*/
|
|
564
3201
|
embedded?: boolean;
|
|
3202
|
+
};
|
|
3203
|
+
declare function App({ ports, contributions, height, embedded, }: AppProps): react_jsx_runtime.JSX.Element | null;
|
|
3204
|
+
|
|
3205
|
+
type MsgOf<M> = M extends {
|
|
3206
|
+
fromJSON(object: unknown): infer T;
|
|
3207
|
+
} ? T : never;
|
|
3208
|
+
type EngineMethodResponse = {
|
|
3209
|
+
[K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: MsgOf<(typeof LaceEngineDefinition.methods)[K]['responseType']>;
|
|
3210
|
+
};
|
|
3211
|
+
type EngineCaller<UnaryMethod extends EngineMethod = EngineMethod> = {
|
|
3212
|
+
kind: 'bridge' | 'direct';
|
|
3213
|
+
unary<M extends UnaryMethod>(method: M, request: unknown): Promise<EngineMethodResponse[M]>;
|
|
3214
|
+
stream<M extends EngineStreamMethod>(method: M, request: unknown, signal: AbortSignal): AsyncIterable<EngineMethodResponse[M]>;
|
|
3215
|
+
};
|
|
3216
|
+
/** The `kind: 'direct'` narrowing of `EngineCaller` — a caller that talks
|
|
3217
|
+
* straight to the engine and can serve every `EngineMethod`, `TestSessionOpen`
|
|
3218
|
+
* included. `openEngineCanvas`'s fixture-target overload requires one. */
|
|
3219
|
+
type DirectEngineCaller = EngineCaller<EngineMethod> & {
|
|
3220
|
+
kind: 'direct';
|
|
3221
|
+
};
|
|
3222
|
+
/** The `kind: 'bridge'` narrowing of `EngineCaller<BridgeMethod>` —
|
|
3223
|
+
* `bridgeCaller`'s return type. `openEngineCanvas`'s fixture-target overload
|
|
3224
|
+
* excludes it: a bridge caller can't serve `TestSessionOpen`. */
|
|
3225
|
+
type BridgeEngineCaller = EngineCaller<BridgeMethod> & {
|
|
3226
|
+
kind: 'bridge';
|
|
3227
|
+
};
|
|
3228
|
+
type ConnectCallerOptions = {
|
|
3229
|
+
baseUrl: string;
|
|
3230
|
+
token: string;
|
|
3231
|
+
/** Fetch impl override — used by tests. Defaults to globalThis.fetch. */
|
|
3232
|
+
fetch?: typeof fetch;
|
|
3233
|
+
};
|
|
3234
|
+
/**
|
|
3235
|
+
* Reaches a running `lace engine` process directly over Connect-JSON
|
|
3236
|
+
* (HTTP POST, fetch). Used by Storybook flow stories and the canvas-flow
|
|
3237
|
+
* Playwright suite, which run against a real engine process.
|
|
3238
|
+
*/
|
|
3239
|
+
declare function connectCaller(options: ConnectCallerOptions): DirectEngineCaller;
|
|
3240
|
+
/**
|
|
3241
|
+
* Forwards every call over a `MessageBridge` to the host process that holds
|
|
3242
|
+
* the engine connection (VS Code / JetBrains webview). `@lace-cloud/host`'s
|
|
3243
|
+
* `serveEngineBridge` is the other end. The wire response arrives as the
|
|
3244
|
+
* proto-JSON `serveEngineBridge` posted (`rpc.deserialize`'s `toJSON`), so
|
|
3245
|
+
* this caller decodes it back through `RESPONSE_CODECS` before
|
|
3246
|
+
* resolving/pushing it. `unary`'s own `M extends BridgeMethod` plus the
|
|
3247
|
+
* `kind: 'bridge'` tag are what make `BridgeEngineCaller` a type distinct
|
|
3248
|
+
* from `DirectEngineCaller`: `openEngineCanvas`'s fixture-target overload
|
|
3249
|
+
* requires `kind: 'direct'`, so a caller from here can't reach it.
|
|
3250
|
+
*/
|
|
3251
|
+
declare function bridgeCaller(bridge: MessageBridge): BridgeEngineCaller;
|
|
3252
|
+
|
|
3253
|
+
declare class ConnectError extends Error {
|
|
3254
|
+
readonly code: string;
|
|
3255
|
+
constructor(code: string, message: string);
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
type EngineTarget = {
|
|
3259
|
+
root: string;
|
|
3260
|
+
} | {
|
|
3261
|
+
ephemeral: {
|
|
3262
|
+
name: string;
|
|
3263
|
+
};
|
|
3264
|
+
} | {
|
|
3265
|
+
fixture: string;
|
|
3266
|
+
};
|
|
3267
|
+
type NonFixtureTarget = Exclude<EngineTarget, {
|
|
3268
|
+
fixture: string;
|
|
3269
|
+
}>;
|
|
3270
|
+
type OpenEngineCanvasResult = {
|
|
3271
|
+
ports: Pick<CanvasPorts, 'source' | 'editor' | 'commands' | 'context'>;
|
|
3272
|
+
close(): void;
|
|
3273
|
+
};
|
|
3274
|
+
declare function openEngineCanvas(caller: DirectEngineCaller, target: EngineTarget): Promise<OpenEngineCanvasResult>;
|
|
3275
|
+
declare function openEngineCanvas(caller: BridgeEngineCaller, target: NonFixtureTarget): Promise<OpenEngineCanvasResult>;
|
|
3276
|
+
|
|
3277
|
+
type SnapshotSourceInput = {
|
|
3278
|
+
bundleUrl: string;
|
|
3279
|
+
/** Fetch impl override — used by tests. Defaults to globalThis.fetch. */
|
|
3280
|
+
fetch?: typeof fetch;
|
|
565
3281
|
/**
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
570
|
-
|
|
571
|
-
arrangement?: CanvasArrangement;
|
|
572
|
-
/**
|
|
573
|
-
* Fired whenever the arrangement changes (drag, collapse toggle, rename,
|
|
574
|
-
* group create/ungroup, copy/paste, placement) so a host that persists
|
|
575
|
-
* arrangement externally (localStorage, VS Code workspace state) can do
|
|
576
|
-
* so. Fires in both editable and read-only mode.
|
|
3282
|
+
* Extra request headers sent with the bundle GET. Same-origin portal
|
|
3283
|
+
* fetches carry the session cookie via `credentials: include`, but the
|
|
3284
|
+
* API still resolves org/team scope from `x-org-slug`/`x-team-slug`
|
|
3285
|
+
* headers — the caller must supply them here or the read 400s. Embed
|
|
3286
|
+
* routes authenticate via the token in the URL and omit this.
|
|
577
3287
|
*/
|
|
578
|
-
|
|
3288
|
+
headers?: Record<string, string>;
|
|
579
3289
|
};
|
|
580
|
-
declare function
|
|
3290
|
+
declare function snapshotSource(input: SnapshotSourceInput): SourcePort;
|
|
581
3291
|
|
|
582
|
-
type Props$
|
|
3292
|
+
type Props$8 = {
|
|
583
3293
|
title: string;
|
|
584
3294
|
defaultOpen?: boolean;
|
|
585
3295
|
badge?: string;
|
|
586
3296
|
children: React__default.ReactNode;
|
|
587
3297
|
};
|
|
588
|
-
declare function AccordionSection({ title, defaultOpen, badge, children }: Props$
|
|
589
|
-
|
|
590
|
-
type ActionBarProps = {
|
|
591
|
-
/**
|
|
592
|
-
* When true, only the MiniMap toggle + Settings gear render. Save,
|
|
593
|
-
* Clear, Undo, Redo, and Generate are IR-mutating and hidden; the
|
|
594
|
-
* Settings gear is kept because the settings panel has its own
|
|
595
|
-
* read-only flow for inspection. Defaults to `false`.
|
|
596
|
-
*/
|
|
597
|
-
readOnly?: boolean;
|
|
598
|
-
isGenerating?: boolean;
|
|
599
|
-
onSave: () => void;
|
|
600
|
-
onUndo: () => void;
|
|
601
|
-
onRedo: () => void;
|
|
602
|
-
onClearGraph: () => void;
|
|
603
|
-
onGenerate: () => void;
|
|
604
|
-
onOpenSettings: () => void;
|
|
605
|
-
/**
|
|
606
|
-
* When provided, the policy shield button renders alongside the
|
|
607
|
-
* settings gear. Snapshot canvases pass undefined to suppress the
|
|
608
|
-
* button (no live policy session in read-only mode).
|
|
609
|
-
*/
|
|
610
|
-
onOpenPolicy?: () => void;
|
|
611
|
-
onOpenRegistry?: () => void;
|
|
612
|
-
showMiniMap: boolean;
|
|
613
|
-
onToggleMiniMap: () => void;
|
|
614
|
-
};
|
|
615
|
-
declare function ActionBar({ readOnly, isGenerating, onSave, onUndo, onRedo, onClearGraph, onGenerate, onOpenSettings, onOpenPolicy, onOpenRegistry, showMiniMap, onToggleMiniMap, }: ActionBarProps): react_jsx_runtime.JSX.Element;
|
|
3298
|
+
declare function AccordionSection({ title, defaultOpen, badge, children }: Props$8): react_jsx_runtime.JSX.Element;
|
|
616
3299
|
|
|
617
3300
|
type ContextMenuState = {
|
|
618
3301
|
x: number;
|
|
619
3302
|
y: number;
|
|
620
3303
|
nodeId: string | null;
|
|
621
3304
|
groupId: string | null;
|
|
622
|
-
selectedCount: number;
|
|
623
3305
|
} | null;
|
|
624
3306
|
|
|
625
|
-
type Props$
|
|
3307
|
+
type Props$7 = {
|
|
626
3308
|
contextMenu: ContextMenuState;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
onPaste: () => void;
|
|
630
|
-
onGroupSelected: () => void;
|
|
631
|
-
onUngroup: (groupId: string) => void;
|
|
3309
|
+
actions: readonly ActionContribution[];
|
|
3310
|
+
onRun: (action: ActionContribution) => void;
|
|
632
3311
|
onDismiss: () => void;
|
|
633
3312
|
};
|
|
634
|
-
declare function ContextMenu({ contextMenu,
|
|
3313
|
+
declare function ContextMenu({ contextMenu, actions, onRun, onDismiss }: Props$7): react_jsx_runtime.JSX.Element | null;
|
|
635
3314
|
|
|
636
3315
|
type ErrorStateProps = {
|
|
637
3316
|
message: string;
|
|
@@ -667,6 +3346,7 @@ type GroupNodeData = {
|
|
|
667
3346
|
memberCount: number;
|
|
668
3347
|
collapsed: boolean;
|
|
669
3348
|
hasErrors: boolean;
|
|
3349
|
+
badges: readonly Badge[];
|
|
670
3350
|
externalPins: ExternalPin[];
|
|
671
3351
|
};
|
|
672
3352
|
type GroupNodeNode = Node<GroupNodeData, 'groupNode'>;
|
|
@@ -675,11 +3355,25 @@ declare const GroupNode: React__default.FC<NodeProps<GroupNodeNode>>;
|
|
|
675
3355
|
type ModuleNodeData = RenderNode & {
|
|
676
3356
|
hasValidationError?: boolean;
|
|
677
3357
|
isNew?: boolean;
|
|
3358
|
+
/** Badges the diagnostics decoration attached to this node — tone
|
|
3359
|
+
* `'error'` drives the error border/title. `RenderNode` carries no
|
|
3360
|
+
* error state of its own; a node's error styling comes only from its
|
|
3361
|
+
* decoration badges. The same field name and chip shape GroupNode's own
|
|
3362
|
+
* `badges` renders — a badge addressed to a collapsed group's own id
|
|
3363
|
+
* (nodeIdForAddress can return a group id) is not a ModuleNode concern
|
|
3364
|
+
* either way. */
|
|
3365
|
+
badges?: readonly Badge[];
|
|
678
3366
|
};
|
|
679
3367
|
type ModuleNodeNode = Node<ModuleNodeData, 'moduleNode'>;
|
|
680
3368
|
declare const ModuleNode: React__default.FC<NodeProps<ModuleNodeNode>>;
|
|
681
3369
|
|
|
682
|
-
type
|
|
3370
|
+
type OpenNodeConfig = (instanceId: string) => void;
|
|
3371
|
+
declare function NodeConfigBusProvider({ onOpen, children, }: {
|
|
3372
|
+
onOpen: OpenNodeConfig;
|
|
3373
|
+
children: ReactNode;
|
|
3374
|
+
}): react_jsx_runtime.JSX.Element;
|
|
3375
|
+
|
|
3376
|
+
type Props$6 = {
|
|
683
3377
|
source: string;
|
|
684
3378
|
target: string;
|
|
685
3379
|
sourceOutput: string;
|
|
@@ -687,107 +3381,89 @@ type Props$8 = {
|
|
|
687
3381
|
onDelete: () => void;
|
|
688
3382
|
onClose: () => void;
|
|
689
3383
|
};
|
|
690
|
-
declare function EdgeInspectorPanel({ source, target, sourceOutput, targetInput, onDelete, onClose, }: Props$
|
|
691
|
-
|
|
692
|
-
type ContentProps$4 = {
|
|
693
|
-
environments: Record<string, Record<string, unknown>> | undefined;
|
|
694
|
-
readOnly?: boolean;
|
|
695
|
-
onSave: (environments: Record<string, Record<string, unknown>>) => void | Promise<void>;
|
|
696
|
-
};
|
|
697
|
-
declare function EnvironmentsContent({ environments, readOnly, onSave }: ContentProps$4): react_jsx_runtime.JSX.Element;
|
|
698
|
-
type Props$7 = {
|
|
699
|
-
environments: Record<string, Record<string, unknown>> | undefined;
|
|
700
|
-
onSave: (environments: Record<string, Record<string, unknown>>) => void | Promise<void>;
|
|
701
|
-
onClose: () => void;
|
|
702
|
-
};
|
|
703
|
-
declare function EnvironmentsPanel({ environments, onSave, onClose }: Props$7): react_jsx_runtime.JSX.Element;
|
|
3384
|
+
declare function EdgeInspectorPanel({ source, target, sourceOutput, targetInput, onDelete, onClose, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
704
3385
|
|
|
705
3386
|
type LocalEntry = SettingsConfig['locals'][number];
|
|
706
3387
|
type ContentProps$3 = {
|
|
707
3388
|
locals: LocalEntry[] | undefined;
|
|
708
|
-
readOnly?: boolean;
|
|
709
3389
|
onSave: (locals: LocalEntry[]) => void | Promise<void>;
|
|
710
3390
|
};
|
|
711
|
-
declare function LocalsContent({ locals,
|
|
712
|
-
type Props$
|
|
3391
|
+
declare function LocalsContent({ locals, onSave }: ContentProps$3): react_jsx_runtime.JSX.Element;
|
|
3392
|
+
type Props$5 = {
|
|
713
3393
|
locals: LocalEntry[] | undefined;
|
|
714
3394
|
onSave: (locals: LocalEntry[]) => void | Promise<void>;
|
|
715
3395
|
onClose: () => void;
|
|
716
3396
|
};
|
|
717
|
-
declare function LocalsPanel({ locals, onSave, onClose }: Props$
|
|
3397
|
+
declare function LocalsPanel({ locals, onSave, onClose }: Props$5): react_jsx_runtime.JSX.Element;
|
|
718
3398
|
|
|
719
|
-
type Props$
|
|
3399
|
+
type Props$4 = {
|
|
720
3400
|
instance_id: string;
|
|
721
|
-
engine: CanvasEngine;
|
|
722
3401
|
onClose: () => void;
|
|
723
3402
|
onModified?: (instanceId: string) => void;
|
|
724
3403
|
};
|
|
725
|
-
declare function ModuleConfigPanel({ instance_id,
|
|
3404
|
+
declare function ModuleConfigPanel({ instance_id, onClose, onModified }: Props$4): react_jsx_runtime.JSX.Element;
|
|
726
3405
|
|
|
3406
|
+
type VariableDef = {
|
|
3407
|
+
name: string;
|
|
3408
|
+
type: string;
|
|
3409
|
+
required: boolean;
|
|
3410
|
+
description?: string;
|
|
3411
|
+
default?: unknown;
|
|
3412
|
+
validation?: {
|
|
3413
|
+
condition: string;
|
|
3414
|
+
error_message: string;
|
|
3415
|
+
}[];
|
|
3416
|
+
ephemeral?: boolean;
|
|
3417
|
+
sensitive?: boolean;
|
|
3418
|
+
nullable?: boolean;
|
|
3419
|
+
};
|
|
3420
|
+
type OutputExportDef = {
|
|
3421
|
+
name: string;
|
|
3422
|
+
source_instance: string;
|
|
3423
|
+
source_output: string;
|
|
3424
|
+
};
|
|
3425
|
+
type OutputDefEntry = {
|
|
3426
|
+
name: string;
|
|
3427
|
+
type: string;
|
|
3428
|
+
description?: string;
|
|
3429
|
+
sensitive?: boolean;
|
|
3430
|
+
depends_on?: string[];
|
|
3431
|
+
};
|
|
727
3432
|
type ContentProps$2 = {
|
|
728
3433
|
settings: SettingsConfig;
|
|
729
3434
|
view: CanvasView | null;
|
|
730
|
-
readOnly?: boolean;
|
|
731
3435
|
onSaveVariables: (variables: VariableDef[]) => void | Promise<void>;
|
|
732
3436
|
onSaveExports: (exports: OutputExportDef[], outputDefs: OutputDefEntry[]) => void | Promise<void>;
|
|
733
3437
|
};
|
|
734
|
-
declare function ModuleInterfaceContent({ settings, view,
|
|
735
|
-
type Props$
|
|
3438
|
+
declare function ModuleInterfaceContent({ settings, view, onSaveVariables, onSaveExports, }: ContentProps$2): react_jsx_runtime.JSX.Element;
|
|
3439
|
+
type Props$3 = {
|
|
736
3440
|
settings: SettingsConfig;
|
|
737
3441
|
view: CanvasView | null;
|
|
738
|
-
readOnly?: boolean;
|
|
739
3442
|
onSaveVariables: (variables: VariableDef[]) => void | Promise<void>;
|
|
740
3443
|
onSaveExports: (exports: OutputExportDef[], outputDefs: OutputDefEntry[]) => void | Promise<void>;
|
|
741
3444
|
onClose: () => void;
|
|
742
3445
|
};
|
|
743
|
-
declare function ModuleInterfacePanel({ settings, view,
|
|
744
|
-
|
|
745
|
-
type Props$3 = {
|
|
746
|
-
/**
|
|
747
|
-
* The current authoritative resolution emitted by the live session,
|
|
748
|
-
* or null when no resolution has arrived yet (initial connect, or
|
|
749
|
-
* non-extension canvases that never emit). The component renders a
|
|
750
|
-
* placeholder for null rather than hiding so the sidebar's presence
|
|
751
|
-
* is stable.
|
|
752
|
-
*/
|
|
753
|
-
resolution: PolicyResolution | null;
|
|
754
|
-
/**
|
|
755
|
-
* Counterfactual RPC. Provided in extension canvas only — portal/
|
|
756
|
-
* snapshot canvases pass undefined to suppress the hover affordance.
|
|
757
|
-
*/
|
|
758
|
-
onPreview?: (delta: PreviewDelta, signal?: AbortSignal) => Promise<PolicyResolution>;
|
|
759
|
-
onClose: () => void;
|
|
760
|
-
/**
|
|
761
|
-
* When true, the counterfactual hover handler is not installed. The
|
|
762
|
-
* sidebar still renders the resolution so read-only consumers see
|
|
763
|
-
* what the engine reported without being able to interact.
|
|
764
|
-
*/
|
|
765
|
-
readOnly?: boolean;
|
|
766
|
-
};
|
|
767
|
-
declare function PolicySidebar({ resolution, onPreview, onClose, readOnly }: Props$3): react_jsx_runtime.JSX.Element;
|
|
3446
|
+
declare function ModuleInterfacePanel({ settings, view, onSaveVariables, onSaveExports, onClose, }: Props$3): react_jsx_runtime.JSX.Element;
|
|
768
3447
|
|
|
769
3448
|
type ProviderEntry = SettingsConfig['providers'][number];
|
|
770
3449
|
type ContentProps$1 = {
|
|
771
3450
|
providers: ProviderEntry[] | undefined;
|
|
772
|
-
readOnly?: boolean;
|
|
773
3451
|
onSave: (providers: ProviderEntry[]) => void | Promise<void>;
|
|
774
3452
|
};
|
|
775
|
-
declare function ProvidersContent({ providers,
|
|
3453
|
+
declare function ProvidersContent({ providers, onSave }: ContentProps$1): react_jsx_runtime.JSX.Element;
|
|
776
3454
|
type Props$2 = {
|
|
777
3455
|
providers: ProviderEntry[] | undefined;
|
|
778
|
-
readOnly?: boolean;
|
|
779
3456
|
onSave: (providers: ProviderEntry[]) => void | Promise<void>;
|
|
780
3457
|
onClose: () => void;
|
|
781
3458
|
};
|
|
782
|
-
declare function ProvidersPanel({ providers,
|
|
3459
|
+
declare function ProvidersPanel({ providers, onSave, onClose }: Props$2): react_jsx_runtime.JSX.Element;
|
|
783
3460
|
|
|
784
3461
|
type TerraformConfig = SettingsConfig['terraform'];
|
|
785
3462
|
type ContentProps = {
|
|
786
3463
|
terraform: TerraformConfig | undefined;
|
|
787
|
-
readOnly?: boolean;
|
|
788
3464
|
onSave: (terraform: TerraformConfig) => void | Promise<void>;
|
|
789
3465
|
};
|
|
790
|
-
declare function TerraformConfigContent({ terraform,
|
|
3466
|
+
declare function TerraformConfigContent({ terraform, onSave }: ContentProps): react_jsx_runtime.JSX.Element;
|
|
791
3467
|
type Props$1 = {
|
|
792
3468
|
terraform: TerraformConfig | undefined;
|
|
793
3469
|
onSave: (terraform: TerraformConfig) => void | Promise<void>;
|
|
@@ -796,381 +3472,208 @@ type Props$1 = {
|
|
|
796
3472
|
declare function TerraformConfigPanel({ terraform, onSave, onClose }: Props$1): react_jsx_runtime.JSX.Element;
|
|
797
3473
|
|
|
798
3474
|
type Props = {
|
|
799
|
-
engine: CanvasEngine;
|
|
800
3475
|
onClose: () => void;
|
|
801
3476
|
onSaved?: () => void;
|
|
802
3477
|
};
|
|
803
|
-
declare function UnifiedSettingsPanel({
|
|
3478
|
+
declare function UnifiedSettingsPanel({ onClose, onSaved }: Props): react_jsx_runtime.JSX.Element;
|
|
804
3479
|
|
|
805
|
-
type
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
children: React__default.ReactNode;
|
|
3480
|
+
type SlotContext = {
|
|
3481
|
+
bundle: Bundle;
|
|
3482
|
+
stack: string | undefined;
|
|
809
3483
|
};
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
3484
|
+
type RunOutcome = {
|
|
3485
|
+
kind: 'running';
|
|
3486
|
+
} | {
|
|
3487
|
+
kind: 'succeeded';
|
|
3488
|
+
} | {
|
|
3489
|
+
kind: 'awaiting-approval';
|
|
3490
|
+
changeRequestId: string;
|
|
3491
|
+
} | {
|
|
3492
|
+
kind: 'blocked';
|
|
3493
|
+
message: string;
|
|
3494
|
+
} | {
|
|
3495
|
+
kind: 'cancelled';
|
|
3496
|
+
} | {
|
|
3497
|
+
kind: 'detached';
|
|
3498
|
+
submitted: boolean;
|
|
3499
|
+
} | {
|
|
3500
|
+
kind: 'failed';
|
|
3501
|
+
message: string;
|
|
3502
|
+
};
|
|
3503
|
+
type RunPhaseStatus = 'current' | 'done';
|
|
3504
|
+
type RunPhase = {
|
|
3505
|
+
name: string;
|
|
3506
|
+
status: RunPhaseStatus;
|
|
3507
|
+
};
|
|
3508
|
+
type RunSlot = {
|
|
3509
|
+
token: object;
|
|
3510
|
+
outcome: RunOutcome;
|
|
3511
|
+
lastLog: string | null;
|
|
3512
|
+
submitted: boolean;
|
|
3513
|
+
phases: readonly RunPhase[];
|
|
3514
|
+
} | null;
|
|
3515
|
+
type PreviewSlot = {
|
|
3516
|
+
token: object;
|
|
3517
|
+
data: JsonOf<'stack preview'>;
|
|
3518
|
+
} | null;
|
|
3519
|
+
type ReportSlot = {
|
|
3520
|
+
token: object;
|
|
3521
|
+
diagnostics: readonly Diagnostic$1[];
|
|
3522
|
+
} | null;
|
|
3523
|
+
type FollowSlot = {
|
|
3524
|
+
token: object;
|
|
3525
|
+
runId: string;
|
|
3526
|
+
lines: readonly string[];
|
|
3527
|
+
done: boolean;
|
|
3528
|
+
} | null;
|
|
3529
|
+
type SignInSlot = {
|
|
3530
|
+
token: object;
|
|
3531
|
+
code?: string;
|
|
3532
|
+
verificationUrl?: string;
|
|
3533
|
+
done: boolean;
|
|
3534
|
+
} | null;
|
|
3535
|
+
type SlotValues = {
|
|
3536
|
+
run: RunSlot;
|
|
3537
|
+
preview: PreviewSlot;
|
|
3538
|
+
report: ReportSlot;
|
|
3539
|
+
follow: FollowSlot;
|
|
3540
|
+
'sign-in': SignInSlot;
|
|
3541
|
+
};
|
|
3542
|
+
type ReadOver<S> = (NonNullable<S> & {
|
|
3543
|
+
readOver: SlotContext;
|
|
3544
|
+
}) | null;
|
|
3545
|
+
type ResultSlots = {
|
|
3546
|
+
[K in SlotKind]: ReadOver<SlotValues[K]>;
|
|
818
3547
|
};
|
|
819
|
-
declare function ValidationErrorBanner({ diagnostics, nodeIds, onGoToNode, onOpenFile, onDismiss, }: BannerProps): react_jsx_runtime.JSX.Element | null;
|
|
820
3548
|
|
|
821
|
-
type
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
3549
|
+
type ResultStore = {
|
|
3550
|
+
getSnapshot(): ResultSlots;
|
|
3551
|
+
getTick(): number;
|
|
3552
|
+
subscribe(listener: () => void): () => void;
|
|
3553
|
+
write<K extends SlotKind>(kind: K, token: object, value: SinkInput[K], readOver: SlotContext): void;
|
|
3554
|
+
fail(kind: ResultKind, token: object, error: unknown): boolean;
|
|
3555
|
+
begin(kind: ResultKind, token: object, readOver: SlotContext, target: ActionTarget): void;
|
|
3556
|
+
detach<K extends ResultKind>(kind: K, token: object): void;
|
|
3557
|
+
isBusy(kind: ResultKind): boolean;
|
|
3558
|
+
bumpTick(): void;
|
|
827
3559
|
};
|
|
828
|
-
declare
|
|
829
|
-
private readonly baseUrl;
|
|
830
|
-
private readonly token;
|
|
831
|
-
private _sessionId;
|
|
832
|
-
private readonly fetchImpl;
|
|
833
|
-
private subscribeAbort;
|
|
834
|
-
private readonly listeners;
|
|
835
|
-
private currentBundle;
|
|
836
|
-
private currentArrangement;
|
|
837
|
-
private currentCanUndo;
|
|
838
|
-
private currentCanRedo;
|
|
839
|
-
private currentIsDirty;
|
|
840
|
-
private currentView;
|
|
841
|
-
private stateUpdateWaiters;
|
|
842
|
-
constructor(options: ConnectWebEngineOptions);
|
|
843
|
-
onEvent(listener: EngineEventListener): () => void;
|
|
844
|
-
private emit;
|
|
845
|
-
get sessionId(): string | null;
|
|
846
|
-
getCurrentView(): CanvasView | null;
|
|
847
|
-
getCurrentBundle(): Bundle | null;
|
|
848
|
-
/**
|
|
849
|
-
* Replace the consumer-owned arrangement and re-project immediately —
|
|
850
|
-
* a local view refresh, not a mutation, so it never carries a viewport
|
|
851
|
-
* intent.
|
|
852
|
-
*/
|
|
853
|
-
setArrangement(arrangement: CanvasArrangement): void;
|
|
854
|
-
private requireSessionId;
|
|
855
|
-
private unary;
|
|
856
|
-
/** Replace local state from a BundleState snapshot and re-project. */
|
|
857
|
-
private adoptState;
|
|
858
|
-
private reproject;
|
|
859
|
-
private resolveStateWaiters;
|
|
860
|
-
/**
|
|
861
|
-
* Returns a promise that resolves on the next BundleState adoption. The
|
|
862
|
-
* engine awaits this inside `applyAction` so the caller's `await` doesn't
|
|
863
|
-
* return until the Subscribe stream has delivered the post-mutation
|
|
864
|
-
* BundleState and `currentView` reflects it.
|
|
865
|
-
*/
|
|
866
|
-
private nextStateUpdate;
|
|
867
|
-
sessionOpen(filePath: string, workspaceName: string): Promise<CanvasView>;
|
|
868
|
-
/**
|
|
869
|
-
* Opens an ephemeral (memory-only) session that is not backed to disk and
|
|
870
|
-
* is evicted after 30 minutes of idle with zero subscribers. Used by
|
|
871
|
-
* Storybook flow stories so each story gets isolated state — backed
|
|
872
|
-
* sessions are keyed by file path and would be shared across stories.
|
|
873
|
-
*/
|
|
874
|
-
openEphemeralSession(workspaceName: string): Promise<CanvasView>;
|
|
875
|
-
/**
|
|
876
|
-
* Opens an ephemeral session pre-populated from one of the CLI's embedded
|
|
877
|
-
* seed fixtures. Requires the CLI to be built with `-tags=test` — the
|
|
878
|
-
* release build returns Unimplemented. Used by Storybook flow stories +
|
|
879
|
-
* Playwright golden tests for deterministic canvas state without touching
|
|
880
|
-
* the registry (no network, no version drift, stable across environments).
|
|
881
|
-
*/
|
|
882
|
-
testSessionOpen(fixtureName: string, workspaceName?: string): Promise<CanvasView>;
|
|
883
|
-
sessionSave(): Promise<{
|
|
884
|
-
saved: boolean;
|
|
885
|
-
}>;
|
|
886
|
-
sessionClose(): Promise<{
|
|
887
|
-
status: string;
|
|
888
|
-
}>;
|
|
889
|
-
sessionGenerate(outputDir: string, options: {
|
|
890
|
-
dry_run?: boolean;
|
|
891
|
-
format?: boolean;
|
|
892
|
-
validate?: boolean;
|
|
893
|
-
overwrite?: boolean;
|
|
894
|
-
}): Promise<GenerateResult>;
|
|
895
|
-
/**
|
|
896
|
-
* Single action dispatch seam. Every mutation method builds an Action
|
|
897
|
-
* oneof member, sends it through ApplyAction, and awaits the next
|
|
898
|
-
* BundleStateEvent before returning — so the caller's await resolves
|
|
899
|
-
* only after `currentView` reflects the mutation.
|
|
900
|
-
*/
|
|
901
|
-
private applyAction;
|
|
902
|
-
connect(source: string, target: string, sourceOutput: string, targetInput: string): Promise<ApplyResult>;
|
|
903
|
-
autoConnect(source: string, target: string): Promise<ApplyResult>;
|
|
904
|
-
disconnect(target: string, inputName: string): Promise<ApplyResult>;
|
|
905
|
-
updateInput(instanceId: string, inputName: string, mode: string, value?: unknown, variable?: string, expression?: string): Promise<ApplyResult>;
|
|
906
|
-
updateAllInputs(instanceId: string, inputs: InputUpdate[]): Promise<ApplyResult>;
|
|
907
|
-
renameInstance(oldId: string, newId: string): Promise<ApplyResult>;
|
|
908
|
-
deleteInstance(instanceId: string): Promise<ApplyResult>;
|
|
909
|
-
copyInstances(instanceIds: string[]): Promise<ApplyResult>;
|
|
910
|
-
setVariables(variables: VariableDef[]): Promise<ApplyResult>;
|
|
911
|
-
setExports(outputs: OutputExportDef[], outputDefs: OutputDefEntry[]): Promise<ApplyResult>;
|
|
912
|
-
setTerraform(requiredVersion?: string, requiredProviders?: ProviderDef[]): Promise<ApplyResult>;
|
|
913
|
-
setProviders(providers: ProviderConfigDef[]): Promise<ApplyResult>;
|
|
914
|
-
setLocals(locals: LocalDef[]): Promise<ApplyResult>;
|
|
915
|
-
setDependsOn(instanceId: string, dependsOn: string[]): Promise<ApplyResult>;
|
|
916
|
-
setUseProviders(instanceId: string, providers: Record<string, string>): Promise<ApplyResult>;
|
|
917
|
-
setEnvironments(environments: Record<string, Record<string, unknown>>): Promise<ApplyResult>;
|
|
918
|
-
undo(): Promise<ApplyResult>;
|
|
919
|
-
redo(): Promise<ApplyResult>;
|
|
920
|
-
createGroup(nodeIds: string[]): Promise<ApplyResult>;
|
|
921
|
-
ungroup(groupId: string): Promise<ApplyResult>;
|
|
922
|
-
queryNodeConfig(instanceId: string): Promise<NodeConfig>;
|
|
923
|
-
queryEdgeConfig(source: string, target: string): Promise<EdgeConfig>;
|
|
924
|
-
querySettings(): Promise<SettingsConfig>;
|
|
925
|
-
queryGraphSummary(): Promise<GraphSummary>;
|
|
926
|
-
queryValidate(): Promise<{
|
|
927
|
-
errors: RenderError[];
|
|
928
|
-
}>;
|
|
929
|
-
getModuleMetadata(): Promise<{
|
|
930
|
-
metadata: ModuleMetadata | null;
|
|
931
|
-
present: boolean;
|
|
932
|
-
}>;
|
|
933
|
-
setModuleMetadata(metadata: ModuleMetadata): Promise<void>;
|
|
934
|
-
placeModule(params: {
|
|
935
|
-
name: string;
|
|
936
|
-
system: string;
|
|
937
|
-
version: string;
|
|
938
|
-
organization?: string;
|
|
939
|
-
}): Promise<ApplyResult>;
|
|
940
|
-
/**
|
|
941
|
-
* Starts a Subscribe stream for the active session. BundleStateEvents
|
|
942
|
-
* replace local state + re-project, surfacing via stateUpdated. Returns
|
|
943
|
-
* an unsubscribe function. Safe to call multiple times — a prior stream
|
|
944
|
-
* is aborted before a new one starts.
|
|
945
|
-
*/
|
|
946
|
-
startSubscribe(): () => void;
|
|
947
|
-
stopSubscribe(): void;
|
|
948
|
-
private runSubscribe;
|
|
949
|
-
private dispatchSubscribeEvent;
|
|
950
|
-
/**
|
|
951
|
-
* Counterfactual policy evaluation against the active session. The
|
|
952
|
-
* `signal` is honoured by the underlying fetch, so callers that
|
|
953
|
-
* supersede a previous hover with `AbortController.abort()` get a
|
|
954
|
-
* clean cancellation rather than racing rendered responses. A
|
|
955
|
-
* cancelled fetch surfaces as an `AbortError` from the
|
|
956
|
-
* native-fetch path; callers should ignore it.
|
|
957
|
-
*/
|
|
958
|
-
previewPolicyResolution(delta: PreviewDelta, signal?: AbortSignal): Promise<PolicyResolution>;
|
|
959
|
-
}
|
|
3560
|
+
declare function createResultStore(): ResultStore;
|
|
960
3561
|
|
|
961
|
-
type
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
3562
|
+
type PendingForm = {
|
|
3563
|
+
path: string;
|
|
3564
|
+
missing: readonly string[];
|
|
3565
|
+
submit(values: Record<string, unknown>): void;
|
|
3566
|
+
cancel(): void;
|
|
3567
|
+
} | null;
|
|
3568
|
+
type EditorEnvExtras = {
|
|
3569
|
+
bundle: Bundle;
|
|
3570
|
+
latestBundle(): Bundle;
|
|
3571
|
+
arrangement: {
|
|
3572
|
+
get(): CanvasArrangement;
|
|
3573
|
+
update(a: CanvasArrangement): void;
|
|
3574
|
+
};
|
|
3575
|
+
layout: LayoutHandle;
|
|
3576
|
+
};
|
|
3577
|
+
type ActionRunner = {
|
|
3578
|
+
run(action: ActionContribution, ctx: CanvasCtx, target: ActionTarget, envExtras: EditorEnvExtras): Promise<ApplyResult | undefined>;
|
|
3579
|
+
apply(actions: readonly Action[]): Promise<ApplyResult | undefined>;
|
|
3580
|
+
cancel(kind: ResultKind): Promise<void>;
|
|
3581
|
+
detach(kind: ResultKind): void;
|
|
978
3582
|
dispose(): void;
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
* this is a local view refresh, not a mutation, so it never waits on a
|
|
985
|
-
* round-trip and never carries a viewport intent (the consumer's camera
|
|
986
|
-
* position is unaffected by a drag/collapse/rename it already applied
|
|
987
|
-
* optimistically).
|
|
988
|
-
*/
|
|
989
|
-
setArrangement(arrangement: CanvasArrangement): void;
|
|
990
|
-
private emit;
|
|
991
|
-
private reproject;
|
|
992
|
-
private adoptState;
|
|
993
|
-
private nextStateUpdate;
|
|
994
|
-
private resolvePending;
|
|
995
|
-
private call;
|
|
996
|
-
private applyAction;
|
|
997
|
-
sessionOpen(filePath: string, workspaceName: string): Promise<CanvasView>;
|
|
998
|
-
sessionSave(): Promise<{
|
|
999
|
-
saved: boolean;
|
|
1000
|
-
}>;
|
|
1001
|
-
sessionClose(): Promise<{
|
|
1002
|
-
status: string;
|
|
1003
|
-
}>;
|
|
1004
|
-
sessionGenerate(outputDir: string, options: {
|
|
1005
|
-
dry_run?: boolean;
|
|
1006
|
-
format?: boolean;
|
|
1007
|
-
validate?: boolean;
|
|
1008
|
-
overwrite?: boolean;
|
|
1009
|
-
}): Promise<GenerateResult>;
|
|
1010
|
-
connect(source: string, target: string, sourceOutput: string, targetInput: string): Promise<ApplyResult>;
|
|
1011
|
-
autoConnect(source: string, target: string): Promise<ApplyResult>;
|
|
1012
|
-
disconnect(target: string, inputName: string): Promise<ApplyResult>;
|
|
1013
|
-
updateInput(instanceId: string, inputName: string, mode: string, value?: unknown, variable?: string, expression?: string): Promise<ApplyResult>;
|
|
1014
|
-
updateAllInputs(instanceId: string, inputs: InputUpdate[]): Promise<ApplyResult>;
|
|
1015
|
-
renameInstance(oldId: string, newId: string): Promise<ApplyResult>;
|
|
1016
|
-
deleteInstance(instanceId: string): Promise<ApplyResult>;
|
|
1017
|
-
copyInstances(instanceIds: string[]): Promise<ApplyResult>;
|
|
1018
|
-
setVariables(variables: VariableDef[]): Promise<ApplyResult>;
|
|
1019
|
-
setExports(outputs: OutputExportDef[], outputDefs: OutputDefEntry[]): Promise<ApplyResult>;
|
|
1020
|
-
setTerraform(requiredVersion?: string, requiredProviders?: ProviderDef[]): Promise<ApplyResult>;
|
|
1021
|
-
setProviders(providers: ProviderConfigDef[]): Promise<ApplyResult>;
|
|
1022
|
-
setLocals(locals: LocalDef[]): Promise<ApplyResult>;
|
|
1023
|
-
setDependsOn(instanceId: string, dependsOn: string[]): Promise<ApplyResult>;
|
|
1024
|
-
setUseProviders(instanceId: string, providers: Record<string, string>): Promise<ApplyResult>;
|
|
1025
|
-
setEnvironments(environments: Record<string, Record<string, unknown>>): Promise<ApplyResult>;
|
|
1026
|
-
undo(): Promise<ApplyResult>;
|
|
1027
|
-
redo(): Promise<ApplyResult>;
|
|
1028
|
-
placeModule(params: {
|
|
1029
|
-
name: string;
|
|
1030
|
-
system: string;
|
|
1031
|
-
version: string;
|
|
1032
|
-
organization?: string;
|
|
1033
|
-
}): Promise<ApplyResult>;
|
|
1034
|
-
createGroup(nodeIds: string[]): Promise<ApplyResult>;
|
|
1035
|
-
ungroup(groupId: string): Promise<ApplyResult>;
|
|
1036
|
-
queryNodeConfig(instanceId: string): Promise<NodeConfig>;
|
|
1037
|
-
queryEdgeConfig(source: string, target: string): Promise<EdgeConfig>;
|
|
1038
|
-
querySettings(): Promise<SettingsConfig>;
|
|
1039
|
-
queryGraphSummary(): Promise<GraphSummary>;
|
|
1040
|
-
queryValidate(): Promise<{
|
|
1041
|
-
errors: RenderError[];
|
|
1042
|
-
}>;
|
|
1043
|
-
getModuleMetadata(): Promise<{
|
|
1044
|
-
metadata: ModuleMetadata | null;
|
|
1045
|
-
present: boolean;
|
|
1046
|
-
}>;
|
|
1047
|
-
setModuleMetadata(metadata: ModuleMetadata): Promise<void>;
|
|
1048
|
-
/**
|
|
1049
|
-
* Counterfactual policy evaluation through the host bridge. The host
|
|
1050
|
-
* forwards to the CLI's `PreviewPolicyResolution` RPC and returns the
|
|
1051
|
-
* raw wire-shape PolicyResolution as the call result. AbortSignal
|
|
1052
|
-
* cancellation rejects the promise without affecting the in-flight
|
|
1053
|
-
* RPC — the host's response is discarded when it eventually arrives,
|
|
1054
|
-
* since the pending entry has been removed.
|
|
1055
|
-
*/
|
|
1056
|
-
previewPolicyResolution(delta: PreviewDelta, signal?: AbortSignal): Promise<PolicyResolution>;
|
|
1057
|
-
}
|
|
3583
|
+
};
|
|
3584
|
+
type ActionRunnerOptions = {
|
|
3585
|
+
onPendingFormChange?(form: PendingForm): void;
|
|
3586
|
+
};
|
|
3587
|
+
declare function createActionRunner(ports: CanvasPorts, store: ResultStore, options?: ActionRunnerOptions): ActionRunner;
|
|
1058
3588
|
|
|
1059
|
-
type
|
|
1060
|
-
|
|
1061
|
-
canUndo?: boolean;
|
|
1062
|
-
canRedo?: boolean;
|
|
1063
|
-
isDirty?: boolean;
|
|
3589
|
+
type CommandArgsFormProps = {
|
|
3590
|
+
form: PendingForm;
|
|
1064
3591
|
};
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
3592
|
+
declare function CommandArgsForm({ form }: CommandArgsFormProps): react_jsx_runtime.JSX.Element | null;
|
|
3593
|
+
|
|
3594
|
+
declare function decorate(view: Pick<CanvasView, 'nodes' | 'groups'>, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic$1[]): Decorations;
|
|
3595
|
+
|
|
3596
|
+
declare function diagnosticsOf(sourceDiagnostics: readonly Diagnostic$1[], report: ReportSlot): readonly Diagnostic$1[];
|
|
3597
|
+
|
|
3598
|
+
type DescribeData = JsonOf<'stack describe'>;
|
|
3599
|
+
declare function decorateDescribe(view: CanvasView, data: DescribeData): Decorations;
|
|
3600
|
+
declare const describeOverlay: OverlayContribution;
|
|
3601
|
+
|
|
3602
|
+
type PanelScopeValue = {
|
|
3603
|
+
ctx: CanvasCtx;
|
|
3604
|
+
target: ActionTarget;
|
|
3605
|
+
paths: ReadonlySet<BoundPath>;
|
|
3606
|
+
tick: number;
|
|
3607
|
+
reportError(path: BoundPath, error: Error | null): void;
|
|
1069
3608
|
};
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
3609
|
+
declare function PanelScope({ ctx, target, paths, tick, onReadError, children, }: {
|
|
3610
|
+
ctx: CanvasCtx;
|
|
3611
|
+
target?: ActionTarget;
|
|
3612
|
+
paths: readonly BoundPath[];
|
|
3613
|
+
tick: number;
|
|
3614
|
+
onReadError?: (path: BoundPath, error: Error | null) => void;
|
|
3615
|
+
children: ReactNode;
|
|
3616
|
+
}): react_jsx_runtime.JSX.Element;
|
|
3617
|
+
declare function usePanelScope(): PanelScopeValue;
|
|
3618
|
+
|
|
3619
|
+
declare function ConflictBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
|
|
3620
|
+
declare const conflictPanel: Panel;
|
|
3621
|
+
|
|
3622
|
+
declare function UnsavedMarker({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
|
|
3623
|
+
declare const unsavedMarker: Panel;
|
|
3624
|
+
declare function UngeneratedMarker({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
|
|
3625
|
+
declare const ungeneratedMarker: Panel;
|
|
3626
|
+
|
|
3627
|
+
declare function SourceRefusedBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
|
|
3628
|
+
declare const sourceRefusedPanel: Panel;
|
|
3629
|
+
|
|
3630
|
+
type SourceState = {
|
|
3631
|
+
source: CanvasSource | null;
|
|
3632
|
+
error: Error | null;
|
|
3633
|
+
getLatest(): CanvasSource | null;
|
|
1083
3634
|
};
|
|
1084
|
-
|
|
1085
|
-
declare class SnapshotCanvasEngine implements CanvasEngine {
|
|
1086
|
-
private readonly input;
|
|
1087
|
-
private readonly fetchImpl;
|
|
1088
|
-
private loadPromise;
|
|
1089
|
-
private view;
|
|
1090
|
-
private bundle;
|
|
1091
|
-
private readonly meta;
|
|
1092
|
-
private readonly listeners;
|
|
1093
|
-
constructor(input: SnapshotCanvasEngineInput);
|
|
1094
|
-
private projectInput;
|
|
1095
|
-
private loadView;
|
|
1096
|
-
private fetchBytes;
|
|
1097
|
-
getCurrentView(): CanvasView | null;
|
|
1098
|
-
getCurrentBundle(): Bundle | null;
|
|
1099
|
-
setArrangement(arrangement: CanvasArrangement): void;
|
|
1100
|
-
sessionOpen(): Promise<CanvasView>;
|
|
1101
|
-
sessionSave(): Promise<{
|
|
1102
|
-
saved: boolean;
|
|
1103
|
-
}>;
|
|
1104
|
-
sessionClose(): Promise<{
|
|
1105
|
-
status: string;
|
|
1106
|
-
}>;
|
|
1107
|
-
sessionGenerate(_outputDir: string, _options: {
|
|
1108
|
-
dry_run?: boolean;
|
|
1109
|
-
format?: boolean;
|
|
1110
|
-
validate?: boolean;
|
|
1111
|
-
overwrite?: boolean;
|
|
1112
|
-
}): Promise<GenerateResult>;
|
|
1113
|
-
connect(_source: string, _target: string, _sourceOutput: string, _targetInput: string): Promise<ApplyResult>;
|
|
1114
|
-
autoConnect(_source: string, _target: string): Promise<ApplyResult>;
|
|
1115
|
-
disconnect(_target: string, _inputName: string): Promise<ApplyResult>;
|
|
1116
|
-
updateInput(_instanceId: string, _inputName: string, _mode: string, _value?: unknown, _variable?: string, _expression?: string): Promise<ApplyResult>;
|
|
1117
|
-
updateAllInputs(_instanceId: string, _inputs: InputUpdate[]): Promise<ApplyResult>;
|
|
1118
|
-
renameInstance(_oldId: string, _newId: string): Promise<ApplyResult>;
|
|
1119
|
-
deleteInstance(_instanceId: string): Promise<ApplyResult>;
|
|
1120
|
-
copyInstances(_instanceIds: string[]): Promise<ApplyResult>;
|
|
1121
|
-
setVariables(_variables: VariableDef[]): Promise<ApplyResult>;
|
|
1122
|
-
setExports(_outputs: OutputExportDef[], _outputDefs: OutputDefEntry[]): Promise<ApplyResult>;
|
|
1123
|
-
setTerraform(_requiredVersion?: string, _requiredProviders?: ProviderDef[]): Promise<ApplyResult>;
|
|
1124
|
-
setProviders(_providers: ProviderConfigDef[]): Promise<ApplyResult>;
|
|
1125
|
-
setLocals(_locals: LocalDef[]): Promise<ApplyResult>;
|
|
1126
|
-
setDependsOn(_instanceId: string, _dependsOn: string[]): Promise<ApplyResult>;
|
|
1127
|
-
setUseProviders(_instanceId: string, _providers: Record<string, string>): Promise<ApplyResult>;
|
|
1128
|
-
setEnvironments(_environments: Record<string, Record<string, unknown>>): Promise<ApplyResult>;
|
|
1129
|
-
undo(): Promise<ApplyResult>;
|
|
1130
|
-
redo(): Promise<ApplyResult>;
|
|
1131
|
-
placeModule(_params: {
|
|
1132
|
-
name: string;
|
|
1133
|
-
system: string;
|
|
1134
|
-
version: string;
|
|
1135
|
-
organization?: string;
|
|
1136
|
-
}): Promise<ApplyResult>;
|
|
1137
|
-
createGroup(_nodeIds: string[]): Promise<ApplyResult>;
|
|
1138
|
-
ungroup(_groupId: string): Promise<ApplyResult>;
|
|
1139
|
-
queryNodeConfig(instanceId: string): Promise<NodeConfig>;
|
|
1140
|
-
queryEdgeConfig(source: string, target: string): Promise<EdgeConfig>;
|
|
1141
|
-
querySettings(): Promise<SettingsConfig>;
|
|
1142
|
-
queryGraphSummary(): Promise<GraphSummary>;
|
|
1143
|
-
queryValidate(): Promise<{
|
|
1144
|
-
errors: RenderError[];
|
|
1145
|
-
}>;
|
|
1146
|
-
getModuleMetadata(): Promise<{
|
|
1147
|
-
metadata: ModuleMetadata | null;
|
|
1148
|
-
present: boolean;
|
|
1149
|
-
}>;
|
|
1150
|
-
setModuleMetadata(_metadata: ModuleMetadata): Promise<void>;
|
|
1151
|
-
previewPolicyResolution(_delta: PreviewDelta, _signal?: AbortSignal): Promise<PolicyResolution>;
|
|
1152
|
-
onEvent(listener: EngineEventListener): () => void;
|
|
1153
|
-
}
|
|
3635
|
+
declare function useCanvasSource(source: SourcePort): SourceState;
|
|
1154
3636
|
|
|
1155
|
-
type
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
viewportIntent: ViewportIntent | null;
|
|
1160
|
-
viewportIntentSeq: number;
|
|
1161
|
-
/** Set when the engine emits `loadError` — the initial view load failed
|
|
1162
|
-
* and no `stateUpdated` will ever follow. Null in every other state. */
|
|
1163
|
-
loadError: string | null;
|
|
3637
|
+
type CommandReadState<P extends BoundPath> = {
|
|
3638
|
+
data: JsonOf<P> | null;
|
|
3639
|
+
error: Error | null;
|
|
3640
|
+
pending: boolean;
|
|
1164
3641
|
};
|
|
3642
|
+
declare function useCommandRead<P extends BoundPath>(read: CommandRead<P>, target?: ActionTarget): CommandReadState<P>;
|
|
3643
|
+
|
|
3644
|
+
type ResolveCtx = Pick<CanvasCtx, 'root' | 'sessionId' | 'stack' | 'editable' | 'view' | 'selection' | 'diagnostics'>;
|
|
3645
|
+
declare function disabledReason(action: ActionContribution, ctx: ResolveCtx, isBusy: boolean): string | undefined;
|
|
3646
|
+
declare function resolveContributions(all: Contributions, ports: CanvasPorts, ctx: ResolveCtx, target?: ActionTarget, slotFilled?: (kind: SlotKind) => boolean): Contributions;
|
|
3647
|
+
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
3648
|
+
declare function rowActions(resolved: Contributions, panelId: string): readonly ActionContribution[];
|
|
3649
|
+
|
|
1165
3650
|
type CanvasContextValue = {
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
3651
|
+
ports: CanvasPorts;
|
|
3652
|
+
bundle: Bundle;
|
|
3653
|
+
latestBundle: () => Bundle;
|
|
3654
|
+
view: CanvasView;
|
|
3655
|
+
ctx: CanvasCtx;
|
|
3656
|
+
decorations: Decorations;
|
|
3657
|
+
editable: boolean;
|
|
1169
3658
|
arrangement: CanvasArrangement;
|
|
1170
3659
|
updateArrangement: (next: CanvasArrangement) => void;
|
|
3660
|
+
stack: StackRef | undefined;
|
|
3661
|
+
updateStack: (next: StackRef | undefined) => void;
|
|
3662
|
+
selection: {
|
|
3663
|
+
nodes: readonly string[];
|
|
3664
|
+
edge: EdgeRef | null;
|
|
3665
|
+
};
|
|
3666
|
+
setSelection: (next: {
|
|
3667
|
+
nodes: readonly string[];
|
|
3668
|
+
edge: EdgeRef | null;
|
|
3669
|
+
}) => void;
|
|
3670
|
+
runner: ActionRunner;
|
|
3671
|
+
results: ResultStore;
|
|
3672
|
+
layout: LayoutHandle;
|
|
3673
|
+
settingsOpen: boolean;
|
|
3674
|
+
setSettingsOpen: (next: boolean) => void;
|
|
1171
3675
|
};
|
|
1172
|
-
declare const CanvasContext: React.Context<CanvasContextValue>;
|
|
3676
|
+
declare const CanvasContext: React.Context<CanvasContextValue | null>;
|
|
1173
3677
|
declare function useCanvas(): CanvasContextValue;
|
|
1174
|
-
declare function useEngine(): CanvasEngine;
|
|
1175
3678
|
|
|
1176
|
-
export { AccordionSection,
|
|
3679
|
+
export { AccordionSection, type ActionContribution, type ActionRunner, type ActionRunnerOptions, type ActionTarget, App, type AppProps, type ApplyResult, type ArgsOf, type AuthPort, type Badge, type BindingRuntime, type BoundPath, type BridgeEngineCaller, COMMANDS, CanvasContext, type CanvasContextValue, type CanvasCtx, type CanvasPorts, type CanvasSource, type ClipboardStore, CommandArgsForm, type CommandArgsFormProps, type CommandBinding, CommandDetachedError, CommandExitError, type CommandPath, type CommandRead, type CommandReadState, type CommandsPort, type ConfirmSpec, ConflictBanner, type ConnectCallerOptions, ConnectError, type ContextKey, ContextMenu, type ContextPort, type Contributions, type CreatedRef, type Decorations, type DirectEngineCaller, EdgeInspectorPanel, type EdgeRef, type EditorBinding, type EditorEnv, type EditorEnvExtras, type EditorPort, type EngineCaller, type EngineTarget, type ErasedCommand, ErrorBoundary, ErrorState, type ExternalPin, type FollowSlot, type GenerateEvent, type GraphError, GroupNode, type GroupNodeData, type HostBinding, type Invocation, type JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, type ModuleNodeData, type NavKind, type NavigateBinding, type NavigatorPort, NodeConfigBusProvider, type NodeDecoration, type OpenEngineCanvasResult, type OverlayContribution, type Panel, type PanelProps, PanelScope, type PanelScopeValue, type PendingForm, type Placement, type PortName, type PresenterPort, type PreviewSlot, ProvidersContent, ProvidersPanel, type ReportSlot, type ResultKind, type ResultSlots, type ResultStore, type RunOutcome, type RunSlot, SCHEMAS, type SignInSlot, type Sink, type SinkInput, type SlotContext, type SlotKind, type SnapshotSourceInput, type SourceConflict, type SourcePort, SourceRefusedBanner, type StackRef, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, type ViewStatePort, bridgeCaller, conflictPanel, connectCaller, createActionRunner, createResultStore, decorate, decorateDescribe, defineCommand, defineOverlay, describeOverlay, diagnosticsOf, disabledReason, isBoundPath, openEngineCanvas, parseBound, resolveContributions, rowActions, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };
|