@lace-cloud/canvas 0.29.0 → 0.31.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 +3 -2
- package/dist/{AccordionSection-J3ALHB5M.css → AccordionSection-5X2XWUYY.css} +9 -2
- package/dist/BadgeRow-KVODWDQK.css +23 -0
- package/dist/CardActions-QLTNQUVW.css +40 -0
- package/dist/{ContextMenu-C7SLX23S.css → ContextMenu-S3JIZMET.css} +11 -0
- package/dist/{DiagnosticsPanel-T6VDHH4A.css → DiagnosticsPanel-MSK72CGM.css} +3 -1
- package/dist/{GroupNode-QWSLBFCH.css → GroupNode-NJOGOGQM.css} +3 -44
- package/dist/{ModuleConfigPanel-ZMWRMN5N.css → ModuleConfigPanel-DW3RSOEL.css} +6 -0
- package/dist/{ModuleNode-RRZ37SFM.css → ModuleNode-LPPBJZCD.css} +1 -60
- package/dist/{chunk-ASG36ZXQ.mjs → chunk-MVOO7T3B.mjs} +444 -126
- package/dist/chunk-MVOO7T3B.mjs.map +1 -0
- package/dist/engine/index.cjs +431 -123
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +2 -2
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.mjs +7 -1
- package/dist/index.cjs +9263 -8860
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -23
- package/dist/index.d.ts +16 -23
- package/dist/index.mjs +2342 -2246
- package/dist/index.mjs.map +1 -1
- package/dist/{panels-shared-5JFNYXQ7.css → panels-shared-3HUQC7TC.css} +20 -2
- package/dist/{registry-CuZ4kEQJ.d.mts → registry-B56alajR.d.mts} +135 -37
- package/dist/{registry-CuZ4kEQJ.d.ts → registry-B56alajR.d.ts} +135 -37
- package/package.json +3 -3
- package/dist/chunk-ASG36ZXQ.mjs.map +0 -1
|
@@ -45,6 +45,7 @@ declare const COMMANDS: {
|
|
|
45
45
|
readonly output: {
|
|
46
46
|
readonly type: "string";
|
|
47
47
|
readonly values: readonly ["table", "json"];
|
|
48
|
+
readonly short: "o";
|
|
48
49
|
};
|
|
49
50
|
readonly prUrl: {
|
|
50
51
|
readonly type: "string";
|
|
@@ -92,6 +93,7 @@ declare const COMMANDS: {
|
|
|
92
93
|
readonly output: {
|
|
93
94
|
readonly type: "string";
|
|
94
95
|
readonly values: readonly ["table", "json"];
|
|
96
|
+
readonly short: "o";
|
|
95
97
|
};
|
|
96
98
|
readonly team: {
|
|
97
99
|
readonly type: "string";
|
|
@@ -111,6 +113,7 @@ declare const COMMANDS: {
|
|
|
111
113
|
readonly output: {
|
|
112
114
|
readonly type: "string";
|
|
113
115
|
readonly values: readonly ["table", "json"];
|
|
116
|
+
readonly short: "o";
|
|
114
117
|
};
|
|
115
118
|
readonly provider: {
|
|
116
119
|
readonly type: "string";
|
|
@@ -132,6 +135,7 @@ declare const COMMANDS: {
|
|
|
132
135
|
};
|
|
133
136
|
readonly path: {
|
|
134
137
|
readonly type: "string";
|
|
138
|
+
readonly short: "p";
|
|
135
139
|
};
|
|
136
140
|
};
|
|
137
141
|
readonly effect: "write";
|
|
@@ -144,6 +148,7 @@ declare const COMMANDS: {
|
|
|
144
148
|
readonly flags: {
|
|
145
149
|
readonly path: {
|
|
146
150
|
readonly type: "string";
|
|
151
|
+
readonly short: "p";
|
|
147
152
|
};
|
|
148
153
|
};
|
|
149
154
|
readonly effect: "write";
|
|
@@ -175,6 +180,7 @@ declare const COMMANDS: {
|
|
|
175
180
|
readonly output: {
|
|
176
181
|
readonly type: "string";
|
|
177
182
|
readonly values: readonly ["table", "json"];
|
|
183
|
+
readonly short: "o";
|
|
178
184
|
};
|
|
179
185
|
readonly provider: {
|
|
180
186
|
readonly type: "string";
|
|
@@ -194,6 +200,7 @@ declare const COMMANDS: {
|
|
|
194
200
|
readonly output: {
|
|
195
201
|
readonly type: "string";
|
|
196
202
|
readonly values: readonly ["table", "json"];
|
|
203
|
+
readonly short: "o";
|
|
197
204
|
};
|
|
198
205
|
};
|
|
199
206
|
readonly effect: "write";
|
|
@@ -207,9 +214,11 @@ declare const COMMANDS: {
|
|
|
207
214
|
readonly output: {
|
|
208
215
|
readonly type: "string";
|
|
209
216
|
readonly values: readonly ["table", "json"];
|
|
217
|
+
readonly short: "o";
|
|
210
218
|
};
|
|
211
219
|
readonly path: {
|
|
212
220
|
readonly type: "string";
|
|
221
|
+
readonly short: "p";
|
|
213
222
|
};
|
|
214
223
|
};
|
|
215
224
|
readonly effect: "rewrite";
|
|
@@ -226,9 +235,11 @@ declare const COMMANDS: {
|
|
|
226
235
|
readonly output: {
|
|
227
236
|
readonly type: "string";
|
|
228
237
|
readonly values: readonly ["markdown", "json", "terraform-docs-json", "terraform-docs-yaml"];
|
|
238
|
+
readonly short: "o";
|
|
229
239
|
};
|
|
230
240
|
readonly path: {
|
|
231
241
|
readonly type: "string";
|
|
242
|
+
readonly short: "p";
|
|
232
243
|
};
|
|
233
244
|
};
|
|
234
245
|
readonly effect: "write";
|
|
@@ -248,9 +259,11 @@ declare const COMMANDS: {
|
|
|
248
259
|
readonly output: {
|
|
249
260
|
readonly type: "string";
|
|
250
261
|
readonly values: readonly ["table", "json"];
|
|
262
|
+
readonly short: "o";
|
|
251
263
|
};
|
|
252
264
|
readonly path: {
|
|
253
265
|
readonly type: "string";
|
|
266
|
+
readonly short: "p";
|
|
254
267
|
};
|
|
255
268
|
readonly recursive: {
|
|
256
269
|
readonly type: "bool";
|
|
@@ -270,9 +283,11 @@ declare const COMMANDS: {
|
|
|
270
283
|
readonly output: {
|
|
271
284
|
readonly type: "string";
|
|
272
285
|
readonly values: readonly ["table", "json"];
|
|
286
|
+
readonly short: "o";
|
|
273
287
|
};
|
|
274
288
|
readonly path: {
|
|
275
289
|
readonly type: "string";
|
|
290
|
+
readonly short: "p";
|
|
276
291
|
};
|
|
277
292
|
readonly upgrade: {
|
|
278
293
|
readonly type: "stringArray";
|
|
@@ -290,9 +305,11 @@ declare const COMMANDS: {
|
|
|
290
305
|
readonly output: {
|
|
291
306
|
readonly type: "string";
|
|
292
307
|
readonly values: readonly ["table", "json", "tfsec-json", "sarif", "junit", "checkstyle"];
|
|
308
|
+
readonly short: "o";
|
|
293
309
|
};
|
|
294
310
|
readonly path: {
|
|
295
311
|
readonly type: "string";
|
|
312
|
+
readonly short: "p";
|
|
296
313
|
};
|
|
297
314
|
readonly severity: {
|
|
298
315
|
readonly type: "string";
|
|
@@ -316,9 +333,11 @@ declare const COMMANDS: {
|
|
|
316
333
|
readonly output: {
|
|
317
334
|
readonly type: "string";
|
|
318
335
|
readonly values: readonly ["table", "json"];
|
|
336
|
+
readonly short: "o";
|
|
319
337
|
};
|
|
320
338
|
readonly path: {
|
|
321
339
|
readonly type: "string";
|
|
340
|
+
readonly short: "p";
|
|
322
341
|
};
|
|
323
342
|
readonly view: {
|
|
324
343
|
readonly type: "string";
|
|
@@ -336,6 +355,7 @@ declare const COMMANDS: {
|
|
|
336
355
|
readonly output: {
|
|
337
356
|
readonly type: "string";
|
|
338
357
|
readonly values: readonly ["table", "json"];
|
|
358
|
+
readonly short: "o";
|
|
339
359
|
};
|
|
340
360
|
};
|
|
341
361
|
readonly effect: "read";
|
|
@@ -349,6 +369,7 @@ declare const COMMANDS: {
|
|
|
349
369
|
readonly output: {
|
|
350
370
|
readonly type: "string";
|
|
351
371
|
readonly values: readonly ["table", "json"];
|
|
372
|
+
readonly short: "o";
|
|
352
373
|
};
|
|
353
374
|
};
|
|
354
375
|
readonly effect: "read";
|
|
@@ -365,6 +386,7 @@ declare const COMMANDS: {
|
|
|
365
386
|
readonly output: {
|
|
366
387
|
readonly type: "string";
|
|
367
388
|
readonly values: readonly ["table", "json"];
|
|
389
|
+
readonly short: "o";
|
|
368
390
|
};
|
|
369
391
|
};
|
|
370
392
|
readonly effect: "write";
|
|
@@ -384,6 +406,7 @@ declare const COMMANDS: {
|
|
|
384
406
|
readonly output: {
|
|
385
407
|
readonly type: "string";
|
|
386
408
|
readonly values: readonly ["table", "json"];
|
|
409
|
+
readonly short: "o";
|
|
387
410
|
};
|
|
388
411
|
readonly team: {
|
|
389
412
|
readonly type: "string";
|
|
@@ -403,6 +426,7 @@ declare const COMMANDS: {
|
|
|
403
426
|
readonly output: {
|
|
404
427
|
readonly type: "string";
|
|
405
428
|
readonly values: readonly ["table", "json"];
|
|
429
|
+
readonly short: "o";
|
|
406
430
|
};
|
|
407
431
|
readonly stack: {
|
|
408
432
|
readonly type: "string";
|
|
@@ -428,6 +452,7 @@ declare const COMMANDS: {
|
|
|
428
452
|
readonly output: {
|
|
429
453
|
readonly type: "string";
|
|
430
454
|
readonly values: readonly ["table", "json"];
|
|
455
|
+
readonly short: "o";
|
|
431
456
|
};
|
|
432
457
|
readonly version: {
|
|
433
458
|
readonly type: "string";
|
|
@@ -450,6 +475,7 @@ declare const COMMANDS: {
|
|
|
450
475
|
readonly output: {
|
|
451
476
|
readonly type: "string";
|
|
452
477
|
readonly values: readonly ["table", "json"];
|
|
478
|
+
readonly short: "o";
|
|
453
479
|
};
|
|
454
480
|
readonly view: {
|
|
455
481
|
readonly type: "string";
|
|
@@ -483,6 +509,7 @@ declare const COMMANDS: {
|
|
|
483
509
|
readonly output: {
|
|
484
510
|
readonly type: "string";
|
|
485
511
|
readonly values: readonly ["table", "json"];
|
|
512
|
+
readonly short: "o";
|
|
486
513
|
};
|
|
487
514
|
readonly query: {
|
|
488
515
|
readonly type: "string";
|
|
@@ -511,6 +538,7 @@ declare const COMMANDS: {
|
|
|
511
538
|
readonly output: {
|
|
512
539
|
readonly type: "string";
|
|
513
540
|
readonly values: readonly ["table", "json"];
|
|
541
|
+
readonly short: "o";
|
|
514
542
|
};
|
|
515
543
|
readonly readme: {
|
|
516
544
|
readonly type: "string";
|
|
@@ -533,6 +561,7 @@ declare const COMMANDS: {
|
|
|
533
561
|
readonly output: {
|
|
534
562
|
readonly type: "string";
|
|
535
563
|
readonly values: readonly ["json"];
|
|
564
|
+
readonly short: "o";
|
|
536
565
|
};
|
|
537
566
|
readonly team: {
|
|
538
567
|
readonly type: "string";
|
|
@@ -555,6 +584,7 @@ declare const COMMANDS: {
|
|
|
555
584
|
readonly output: {
|
|
556
585
|
readonly type: "string";
|
|
557
586
|
readonly values: readonly ["table", "json"];
|
|
587
|
+
readonly short: "o";
|
|
558
588
|
};
|
|
559
589
|
readonly reason: {
|
|
560
590
|
readonly type: "string";
|
|
@@ -583,6 +613,7 @@ declare const COMMANDS: {
|
|
|
583
613
|
readonly output: {
|
|
584
614
|
readonly type: "string";
|
|
585
615
|
readonly values: readonly ["table", "json"];
|
|
616
|
+
readonly short: "o";
|
|
586
617
|
};
|
|
587
618
|
readonly team: {
|
|
588
619
|
readonly type: "string";
|
|
@@ -614,6 +645,7 @@ declare const COMMANDS: {
|
|
|
614
645
|
readonly output: {
|
|
615
646
|
readonly type: "string";
|
|
616
647
|
readonly values: readonly ["table", "json"];
|
|
648
|
+
readonly short: "o";
|
|
617
649
|
};
|
|
618
650
|
readonly stack: {
|
|
619
651
|
readonly type: "string";
|
|
@@ -648,6 +680,7 @@ declare const COMMANDS: {
|
|
|
648
680
|
readonly output: {
|
|
649
681
|
readonly type: "string";
|
|
650
682
|
readonly values: readonly ["table", "json"];
|
|
683
|
+
readonly short: "o";
|
|
651
684
|
};
|
|
652
685
|
readonly team: {
|
|
653
686
|
readonly type: "string";
|
|
@@ -670,6 +703,7 @@ declare const COMMANDS: {
|
|
|
670
703
|
readonly output: {
|
|
671
704
|
readonly type: "string";
|
|
672
705
|
readonly values: readonly ["table", "json"];
|
|
706
|
+
readonly short: "o";
|
|
673
707
|
};
|
|
674
708
|
readonly team: {
|
|
675
709
|
readonly type: "string";
|
|
@@ -698,6 +732,7 @@ declare const COMMANDS: {
|
|
|
698
732
|
readonly output: {
|
|
699
733
|
readonly type: "string";
|
|
700
734
|
readonly values: readonly ["table", "json"];
|
|
735
|
+
readonly short: "o";
|
|
701
736
|
};
|
|
702
737
|
readonly prUrl: {
|
|
703
738
|
readonly type: "string";
|
|
@@ -744,6 +779,7 @@ declare const COMMANDS: {
|
|
|
744
779
|
readonly output: {
|
|
745
780
|
readonly type: "string";
|
|
746
781
|
readonly values: readonly ["table", "json"];
|
|
782
|
+
readonly short: "o";
|
|
747
783
|
};
|
|
748
784
|
readonly source: {
|
|
749
785
|
readonly type: "string";
|
|
@@ -778,6 +814,7 @@ declare const COMMANDS: {
|
|
|
778
814
|
readonly output: {
|
|
779
815
|
readonly type: "string";
|
|
780
816
|
readonly values: readonly ["table", "json"];
|
|
817
|
+
readonly short: "o";
|
|
781
818
|
};
|
|
782
819
|
readonly team: {
|
|
783
820
|
readonly type: "string";
|
|
@@ -809,6 +846,7 @@ declare const COMMANDS: {
|
|
|
809
846
|
readonly output: {
|
|
810
847
|
readonly type: "string";
|
|
811
848
|
readonly values: readonly ["table", "json"];
|
|
849
|
+
readonly short: "o";
|
|
812
850
|
};
|
|
813
851
|
readonly team: {
|
|
814
852
|
readonly type: "string";
|
|
@@ -840,6 +878,7 @@ declare const COMMANDS: {
|
|
|
840
878
|
readonly output: {
|
|
841
879
|
readonly type: "string";
|
|
842
880
|
readonly values: readonly ["table", "json"];
|
|
881
|
+
readonly short: "o";
|
|
843
882
|
};
|
|
844
883
|
readonly prUrl: {
|
|
845
884
|
readonly type: "string";
|
|
@@ -882,6 +921,7 @@ declare const COMMANDS: {
|
|
|
882
921
|
readonly output: {
|
|
883
922
|
readonly type: "string";
|
|
884
923
|
readonly values: readonly ["table", "json"];
|
|
924
|
+
readonly short: "o";
|
|
885
925
|
};
|
|
886
926
|
readonly team: {
|
|
887
927
|
readonly type: "string";
|
|
@@ -907,9 +947,11 @@ declare const COMMANDS: {
|
|
|
907
947
|
readonly output: {
|
|
908
948
|
readonly type: "string";
|
|
909
949
|
readonly values: readonly ["table", "json"];
|
|
950
|
+
readonly short: "o";
|
|
910
951
|
};
|
|
911
952
|
readonly path: {
|
|
912
953
|
readonly type: "string";
|
|
954
|
+
readonly short: "p";
|
|
913
955
|
};
|
|
914
956
|
readonly state: {
|
|
915
957
|
readonly type: "string";
|
|
@@ -942,6 +984,7 @@ declare const COMMANDS: {
|
|
|
942
984
|
readonly output: {
|
|
943
985
|
readonly type: "string";
|
|
944
986
|
readonly values: readonly ["table", "json"];
|
|
987
|
+
readonly short: "o";
|
|
945
988
|
};
|
|
946
989
|
readonly source: {
|
|
947
990
|
readonly type: "string";
|
|
@@ -967,6 +1010,7 @@ declare const COMMANDS: {
|
|
|
967
1010
|
readonly output: {
|
|
968
1011
|
readonly type: "string";
|
|
969
1012
|
readonly values: readonly ["table", "json"];
|
|
1013
|
+
readonly short: "o";
|
|
970
1014
|
};
|
|
971
1015
|
readonly team: {
|
|
972
1016
|
readonly type: "string";
|
|
@@ -1000,6 +1044,7 @@ declare const COMMANDS: {
|
|
|
1000
1044
|
readonly output: {
|
|
1001
1045
|
readonly type: "string";
|
|
1002
1046
|
readonly values: readonly ["table", "json"];
|
|
1047
|
+
readonly short: "o";
|
|
1003
1048
|
};
|
|
1004
1049
|
readonly team: {
|
|
1005
1050
|
readonly type: "string";
|
|
@@ -1034,6 +1079,7 @@ declare const COMMANDS: {
|
|
|
1034
1079
|
readonly output: {
|
|
1035
1080
|
readonly type: "string";
|
|
1036
1081
|
readonly values: readonly ["table", "json"];
|
|
1082
|
+
readonly short: "o";
|
|
1037
1083
|
};
|
|
1038
1084
|
readonly sourcePath: {
|
|
1039
1085
|
readonly type: "string";
|
|
@@ -1062,6 +1108,7 @@ declare const COMMANDS: {
|
|
|
1062
1108
|
readonly output: {
|
|
1063
1109
|
readonly type: "string";
|
|
1064
1110
|
readonly values: readonly ["table", "json"];
|
|
1111
|
+
readonly short: "o";
|
|
1065
1112
|
};
|
|
1066
1113
|
};
|
|
1067
1114
|
readonly effect: "read";
|
|
@@ -1084,6 +1131,7 @@ declare const COMMANDS: {
|
|
|
1084
1131
|
readonly output: {
|
|
1085
1132
|
readonly type: "string";
|
|
1086
1133
|
readonly values: readonly ["table", "json"];
|
|
1134
|
+
readonly short: "o";
|
|
1087
1135
|
};
|
|
1088
1136
|
};
|
|
1089
1137
|
readonly effect: "read";
|
|
@@ -1103,6 +1151,7 @@ declare const COMMANDS: {
|
|
|
1103
1151
|
readonly output: {
|
|
1104
1152
|
readonly type: "string";
|
|
1105
1153
|
readonly values: readonly ["table", "json"];
|
|
1154
|
+
readonly short: "o";
|
|
1106
1155
|
};
|
|
1107
1156
|
};
|
|
1108
1157
|
readonly effect: "write";
|
|
@@ -1116,6 +1165,7 @@ declare const COMMANDS: {
|
|
|
1116
1165
|
readonly output: {
|
|
1117
1166
|
readonly type: "string";
|
|
1118
1167
|
readonly values: readonly ["table", "json"];
|
|
1168
|
+
readonly short: "o";
|
|
1119
1169
|
};
|
|
1120
1170
|
};
|
|
1121
1171
|
readonly effect: "read";
|
|
@@ -1129,6 +1179,7 @@ declare const COMMANDS: {
|
|
|
1129
1179
|
readonly output: {
|
|
1130
1180
|
readonly type: "string";
|
|
1131
1181
|
readonly values: readonly ["table", "json"];
|
|
1182
|
+
readonly short: "o";
|
|
1132
1183
|
};
|
|
1133
1184
|
};
|
|
1134
1185
|
readonly effect: "read";
|
|
@@ -1179,6 +1230,14 @@ type ArgsOf<P extends CommandPath> = {
|
|
|
1179
1230
|
* element.
|
|
1180
1231
|
*/
|
|
1181
1232
|
declare function toArgv<P extends CommandPath>(path: P, args: ArgsOf<P>): string[];
|
|
1233
|
+
/**
|
|
1234
|
+
* The command a `lace` command line names, from the words after the
|
|
1235
|
+
* program's name, found where the CLI finds it (`commandWordsAt`, the one
|
|
1236
|
+
* walk, over this tree). Undefined when the words name no command a host can
|
|
1237
|
+
* invoke: none at all, a group, a misspelt or hidden command, `lace engine`.
|
|
1238
|
+
* A command's words followed by its `toArgv` read back as that command.
|
|
1239
|
+
*/
|
|
1240
|
+
declare function commandPathOf(words: readonly string[]): CommandPath | undefined;
|
|
1182
1241
|
|
|
1183
1242
|
/**
|
|
1184
1243
|
* A generic empty message that you can re-use to avoid defining duplicated
|
|
@@ -1498,8 +1557,9 @@ declare enum Reason {
|
|
|
1498
1557
|
* (`BundleState.source_refused`).
|
|
1499
1558
|
* module convert and stack import: the tree's tf does not parse, has a
|
|
1500
1559
|
* non-empty residual report, or its Bundle fails its own validation.
|
|
1501
|
-
* stack apply / stack destroy / registry register: a
|
|
1502
|
-
* does not
|
|
1560
|
+
* module validate, stack apply / stack destroy / registry register: a
|
|
1561
|
+
* source the command reads does not parse; apply, destroy and register
|
|
1562
|
+
* check it before the certification.
|
|
1503
1563
|
*/
|
|
1504
1564
|
REASON_SOURCE_REFUSED = 7,
|
|
1505
1565
|
/**
|
|
@@ -1529,10 +1589,11 @@ declare enum Reason {
|
|
|
1529
1589
|
REASON_STALE_CERTIFICATION = 13,
|
|
1530
1590
|
/**
|
|
1531
1591
|
* REASON_TOOL_MISSING - module scan / module docs / module fmt / module validate / module
|
|
1532
|
-
* convert / stack import / stack preview
|
|
1533
|
-
* (tfsec, terraform-docs, the pinned terraform)
|
|
1534
|
-
* and stack import run the pinned terraform
|
|
1535
|
-
* closes on
|
|
1592
|
+
* convert / stack import / stack preview / stack apply / stack destroy:
|
|
1593
|
+
* the tool the command runs (tfsec, terraform-docs, the pinned terraform)
|
|
1594
|
+
* is not available. convert and stack import run the pinned terraform
|
|
1595
|
+
* through the validate each closes on, apply and destroy through their
|
|
1596
|
+
* local plan.
|
|
1536
1597
|
*/
|
|
1537
1598
|
REASON_TOOL_MISSING = 14,
|
|
1538
1599
|
/**
|
|
@@ -1578,6 +1639,11 @@ declare enum Reason {
|
|
|
1578
1639
|
* one address. Nothing was written.
|
|
1579
1640
|
*/
|
|
1580
1641
|
REASON_ALREADY_IMPORTED = 21,
|
|
1642
|
+
/**
|
|
1643
|
+
* REASON_NO_LOCKFILE - stack apply / stack destroy / stack preview: the root keeps no
|
|
1644
|
+
* `.terraform.lock.hcl`; `lace module lock` writes it.
|
|
1645
|
+
*/
|
|
1646
|
+
REASON_NO_LOCKFILE = 22,
|
|
1581
1647
|
UNRECOGNIZED = -1
|
|
1582
1648
|
}
|
|
1583
1649
|
declare enum ConflictChoice {
|
|
@@ -1685,7 +1751,19 @@ interface SessionGenerateRequest {
|
|
|
1685
1751
|
}
|
|
1686
1752
|
declare const SessionGenerateRequest: MessageFns<SessionGenerateRequest>;
|
|
1687
1753
|
interface SessionGenerateResponse {
|
|
1754
|
+
/**
|
|
1755
|
+
* Every file the write produced, sorted: Generate writes the whole
|
|
1756
|
+
* render, whatever bytes a file held before. Empty when nothing was
|
|
1757
|
+
* ungenerated.
|
|
1758
|
+
*/
|
|
1688
1759
|
files_written: string[];
|
|
1760
|
+
/**
|
|
1761
|
+
* The files of files_written whose bytes differ from the tree the write
|
|
1762
|
+
* replaced, a file the tree did not hold included, sorted.
|
|
1763
|
+
*/
|
|
1764
|
+
files_changed: string[];
|
|
1765
|
+
/** The source tf the write deleted, sorted. */
|
|
1766
|
+
files_removed: string[];
|
|
1689
1767
|
/** the `module validate -o json` document for the Terraform on disk */
|
|
1690
1768
|
validate_json: string;
|
|
1691
1769
|
/**
|
|
@@ -2146,7 +2224,10 @@ interface GenerateProgress {
|
|
|
2146
2224
|
}
|
|
2147
2225
|
declare const GenerateProgress: MessageFns<GenerateProgress>;
|
|
2148
2226
|
interface GenerateSuccess {
|
|
2227
|
+
/** The three file lists of the Generate's own SessionGenerateResponse. */
|
|
2149
2228
|
files_written: string[];
|
|
2229
|
+
files_changed: string[];
|
|
2230
|
+
files_removed: string[];
|
|
2150
2231
|
/** the `module validate -o json` document for the Terraform on disk */
|
|
2151
2232
|
validate_json: string;
|
|
2152
2233
|
/** the Generate this event belongs to */
|
|
@@ -3288,7 +3369,7 @@ declare const SCHEMAS: {
|
|
|
3288
3369
|
type: z.ZodLiteral<"log">;
|
|
3289
3370
|
text: z.ZodString;
|
|
3290
3371
|
}, z.core.$strip>, z.ZodObject<{
|
|
3291
|
-
type: z.ZodLiteral<"
|
|
3372
|
+
type: z.ZodLiteral<"stage">;
|
|
3292
3373
|
name: z.ZodString;
|
|
3293
3374
|
}, z.core.$strip>, z.ZodObject<{
|
|
3294
3375
|
type: z.ZodLiteral<"gate">;
|
|
@@ -3381,14 +3462,13 @@ declare const SCHEMAS: {
|
|
|
3381
3462
|
resourceChange: z.ZodNumber;
|
|
3382
3463
|
resourceDestroy: z.ZodNumber;
|
|
3383
3464
|
}, z.core.$strip>;
|
|
3384
|
-
workspaceDir: z.ZodString;
|
|
3385
3465
|
error: z.ZodNullable<z.ZodString>;
|
|
3386
3466
|
}, z.core.$strip>], "type">;
|
|
3387
3467
|
'stack destroy': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3388
3468
|
type: z.ZodLiteral<"log">;
|
|
3389
3469
|
text: z.ZodString;
|
|
3390
3470
|
}, z.core.$strip>, z.ZodObject<{
|
|
3391
|
-
type: z.ZodLiteral<"
|
|
3471
|
+
type: z.ZodLiteral<"stage">;
|
|
3392
3472
|
name: z.ZodString;
|
|
3393
3473
|
}, z.core.$strip>, z.ZodObject<{
|
|
3394
3474
|
type: z.ZodLiteral<"gate">;
|
|
@@ -3481,7 +3561,6 @@ declare const SCHEMAS: {
|
|
|
3481
3561
|
resourceChange: z.ZodNumber;
|
|
3482
3562
|
resourceDestroy: z.ZodNumber;
|
|
3483
3563
|
}, z.core.$strip>;
|
|
3484
|
-
workspaceDir: z.ZodString;
|
|
3485
3564
|
error: z.ZodNullable<z.ZodString>;
|
|
3486
3565
|
}, z.core.$strip>], "type">;
|
|
3487
3566
|
'stack scan': z.ZodObject<{
|
|
@@ -3497,7 +3576,6 @@ declare const SCHEMAS: {
|
|
|
3497
3576
|
scannedAt: z.ZodString;
|
|
3498
3577
|
undeterminedReason: z.ZodNullable<z.ZodString>;
|
|
3499
3578
|
undeterminedMessage: z.ZodNullable<z.ZodString>;
|
|
3500
|
-
standingDriftFindings: z.ZodNumber;
|
|
3501
3579
|
footprintDestroyed: z.ZodBoolean;
|
|
3502
3580
|
drift: z.ZodNullable<z.ZodObject<{
|
|
3503
3581
|
stackId: z.ZodString;
|
|
@@ -3943,7 +4021,7 @@ type CanvasSource = {
|
|
|
3943
4021
|
ungenerated: boolean;
|
|
3944
4022
|
conflict: SourceConflict | null;
|
|
3945
4023
|
sourceRefused: boolean;
|
|
3946
|
-
generating:
|
|
4024
|
+
generating: GenerateStage | false;
|
|
3947
4025
|
diagnostics: readonly Diagnostic$1[];
|
|
3948
4026
|
treeHash: string;
|
|
3949
4027
|
};
|
|
@@ -3961,18 +4039,31 @@ type SourceEnd = {
|
|
|
3961
4039
|
type SourcePort = {
|
|
3962
4040
|
subscribe: (on: (s: CanvasSource) => void, onEnd: (end: SourceEnd) => void, onCommandResult?: (result: CommandResult) => void) => () => void;
|
|
3963
4041
|
};
|
|
4042
|
+
declare const GENERATE_STAGES: readonly ["generating", "validating"];
|
|
4043
|
+
type GenerateStage = (typeof GENERATE_STAGES)[number];
|
|
3964
4044
|
type GenerateEvent = {
|
|
3965
4045
|
type: 'progress';
|
|
3966
|
-
stage:
|
|
4046
|
+
stage: GenerateStage;
|
|
3967
4047
|
} | {
|
|
3968
4048
|
type: 'success';
|
|
3969
4049
|
written: string[];
|
|
4050
|
+
changed: string[];
|
|
4051
|
+
removed: string[];
|
|
3970
4052
|
validate: JsonOf<'module validate'>;
|
|
3971
4053
|
} | {
|
|
3972
4054
|
type: 'error';
|
|
3973
4055
|
message: string;
|
|
3974
4056
|
reason: Reason;
|
|
3975
4057
|
};
|
|
4058
|
+
type GeneratedTree = {
|
|
4059
|
+
changed: readonly string[];
|
|
4060
|
+
removed: readonly string[];
|
|
4061
|
+
unchanged: number;
|
|
4062
|
+
treeChanged: boolean;
|
|
4063
|
+
};
|
|
4064
|
+
declare function generatedTree({ written, changed, removed, }: Extract<GenerateEvent, {
|
|
4065
|
+
type: 'success';
|
|
4066
|
+
}>): GeneratedTree;
|
|
3976
4067
|
/**
|
|
3977
4068
|
* A refusal of a batch's content reported by `ApplyAction`. Mirrors the wire
|
|
3978
4069
|
* `GraphError` — a failing `ApplyResult` carries one or more of these, and
|
|
@@ -4102,19 +4193,20 @@ type CanvasPorts = RunnerPorts & {
|
|
|
4102
4193
|
};
|
|
4103
4194
|
type PortName = keyof CanvasPorts;
|
|
4104
4195
|
|
|
4105
|
-
/** The
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
type
|
|
4196
|
+
/** The keys an action may bind with no modifier. */
|
|
4197
|
+
declare const BARE_KEYS: readonly ["Delete", "Backspace"];
|
|
4198
|
+
type BareKey = (typeof BARE_KEYS)[number];
|
|
4199
|
+
/** The type an action's `keys` hold: a key that starts with `Mod+`, or a
|
|
4200
|
+
* bare key. The `Mod+` arm is the grammar's prefix check alone — the type
|
|
4201
|
+
* cannot spell an optional `Shift` then one key — and `parseChord` refuses
|
|
4202
|
+
* the rest at runtime. */
|
|
4203
|
+
type KeySpec = `Mod+${string}` | BareKey;
|
|
4109
4204
|
|
|
4110
|
-
type
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
target: string;
|
|
4114
|
-
sourceOutput: string;
|
|
4115
|
-
targetInput: string;
|
|
4205
|
+
type CanvasSelection = {
|
|
4206
|
+
nodes: readonly string[];
|
|
4207
|
+
edges: readonly string[];
|
|
4116
4208
|
};
|
|
4117
|
-
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.edge' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4209
|
+
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.several' | 'selection.entryScope' | 'selection.oneScope' | 'selection.edge' | 'selection.edges' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4118
4210
|
type RunCtx = {
|
|
4119
4211
|
root?: string;
|
|
4120
4212
|
sessionId?: string;
|
|
@@ -4123,13 +4215,10 @@ type RunCtx = {
|
|
|
4123
4215
|
type CanvasCtx = RunCtx & {
|
|
4124
4216
|
ports: CanvasPorts;
|
|
4125
4217
|
editable: boolean;
|
|
4126
|
-
generating:
|
|
4218
|
+
generating: GenerateStage | false;
|
|
4127
4219
|
sourceRefused: boolean;
|
|
4128
4220
|
view: CanvasView;
|
|
4129
|
-
selection:
|
|
4130
|
-
nodes: readonly string[];
|
|
4131
|
-
edge: EdgeRef | null;
|
|
4132
|
-
};
|
|
4221
|
+
selection: CanvasSelection;
|
|
4133
4222
|
settingsOpen: boolean;
|
|
4134
4223
|
diagnostics: readonly Diagnostic$1[];
|
|
4135
4224
|
contributions: ContributionSet;
|
|
@@ -4173,7 +4262,7 @@ type ActionTarget = {
|
|
|
4173
4262
|
runId?: string;
|
|
4174
4263
|
failure?: CommandFailure;
|
|
4175
4264
|
};
|
|
4176
|
-
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | {
|
|
4265
|
+
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | 'card' | 'keymap' | {
|
|
4177
4266
|
row: string;
|
|
4178
4267
|
};
|
|
4179
4268
|
type ResultKind = 'run' | 'preview' | 'report' | 'notify' | 'follow';
|
|
@@ -4275,7 +4364,7 @@ type ErasedCommand = {
|
|
|
4275
4364
|
};
|
|
4276
4365
|
declare const KEY_SCOPES: readonly ["surface", "app"];
|
|
4277
4366
|
type KeyScope = (typeof KEY_SCOPES)[number];
|
|
4278
|
-
type ActionIcon = 'validate' | 'convert' | 'save' | 'generate' | 'undo' | 'redo' | 'clear';
|
|
4367
|
+
type ActionIcon = 'validate' | 'convert' | 'save' | 'generate' | 'undo' | 'redo' | 'clear' | 'close';
|
|
4279
4368
|
type ActionContribution = {
|
|
4280
4369
|
id: string;
|
|
4281
4370
|
label: string;
|
|
@@ -4287,6 +4376,9 @@ type ActionContribution = {
|
|
|
4287
4376
|
busy?: {
|
|
4288
4377
|
when: ContextKey;
|
|
4289
4378
|
label: string;
|
|
4379
|
+
} | {
|
|
4380
|
+
when: 'generating';
|
|
4381
|
+
label: Readonly<Record<GenerateStage, string>>;
|
|
4290
4382
|
};
|
|
4291
4383
|
section?: string;
|
|
4292
4384
|
tone?: 'danger';
|
|
@@ -4353,7 +4445,6 @@ type RunOutcome = {
|
|
|
4353
4445
|
} | {
|
|
4354
4446
|
kind: 'awaiting-approval';
|
|
4355
4447
|
changeRequest: GateChangeRequest;
|
|
4356
|
-
runUrl: string | null;
|
|
4357
4448
|
} | {
|
|
4358
4449
|
kind: 'blocked';
|
|
4359
4450
|
message: string;
|
|
@@ -4368,17 +4459,21 @@ type RunOutcome = {
|
|
|
4368
4459
|
message: string;
|
|
4369
4460
|
failure?: CommandFailure;
|
|
4370
4461
|
};
|
|
4371
|
-
type
|
|
4372
|
-
type
|
|
4462
|
+
type RunStageStatus = 'current' | 'done';
|
|
4463
|
+
type RunStage = {
|
|
4373
4464
|
name: string;
|
|
4374
|
-
status:
|
|
4465
|
+
status: RunStageStatus;
|
|
4375
4466
|
};
|
|
4467
|
+
type ResultRun = Extract<JsonOf<'stack apply'>, {
|
|
4468
|
+
type: 'result';
|
|
4469
|
+
}>['run'];
|
|
4376
4470
|
type RunSlot = {
|
|
4377
4471
|
token: object;
|
|
4378
4472
|
outcome: RunOutcome;
|
|
4473
|
+
run: ResultRun | null;
|
|
4379
4474
|
lastLog: string | null;
|
|
4380
4475
|
submitted: boolean;
|
|
4381
|
-
|
|
4476
|
+
stages: readonly RunStage[];
|
|
4382
4477
|
} | null;
|
|
4383
4478
|
type PreviewOutcome = {
|
|
4384
4479
|
kind: 'running';
|
|
@@ -4429,6 +4524,8 @@ type Busy = {
|
|
|
4429
4524
|
} | {
|
|
4430
4525
|
kind: 'notify';
|
|
4431
4526
|
running: RunningMark;
|
|
4527
|
+
} | {
|
|
4528
|
+
kind: 'edit';
|
|
4432
4529
|
};
|
|
4433
4530
|
type LiveSlots = Omit<ResultSlots, 'report'> & {
|
|
4434
4531
|
report: ReportFold | null;
|
|
@@ -4478,6 +4575,7 @@ type ActionRunner = {
|
|
|
4478
4575
|
apply(actions: readonly Action[]): Promise<ApplyResult | undefined>;
|
|
4479
4576
|
editing(): boolean;
|
|
4480
4577
|
onEditingChange(listener: (editing: boolean) => void): () => void;
|
|
4578
|
+
onDidTick(listener: (run: CommandRun) => void): () => void;
|
|
4481
4579
|
busy(action: ActionContribution, ctx: RunCtx, target: ActionTarget): Busy | undefined;
|
|
4482
4580
|
cancel(kind: ResultKind): Promise<void>;
|
|
4483
4581
|
detach(kind: ResultKind): void;
|
|
@@ -4594,4 +4692,4 @@ declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<
|
|
|
4594
4692
|
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
4595
4693
|
declare function rowActions(resolved: ContributionSet, panelId: string): readonly ActionContribution[];
|
|
4596
4694
|
|
|
4597
|
-
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type
|
|
4695
|
+
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type CommandPath as E, type CommandRun as F, CommandUnobservedError as G, type CommandsPort as H, type ConfirmSpec as I, type JsonOf as J, type ConnectCallerOptions as K, type LayoutHandle as L, ConnectError as M, type NodeDecoration as N, type OverlayContribution as O, type PanelSpec as P, type ContextKey as Q, type ResultStore as R, type SourcePort as S, type ContextPort as T, type CreatedRef as U, type DirectEngineCaller as V, EMPTY_REPORT_FOLD as W, type EditorBinding as X, type EditorEnv as Y, type EditorEnvExtras as Z, type EditorPort as _, type CanvasCtx as a, resolveContributions as a$, type EngineMethodResponse as a0, type EngineSession as a1, type EngineSessionOptions as a2, type EngineTarget as a3, type ErasedCommand as a4, type FollowSlot as a5, GENERATE_STAGES as a6, type GateChangeRequest as a7, type GenerateEvent as a8, type GenerateStage as a9, type SlotKind as aA, type SourceConflict as aB, type StackRef as aC, type Started as aD, type ViewStatePort as aE, type WiringCandidate as aF, type WiringQuery as aG, answering as aH, bridgeCaller as aI, carriesFailure as aJ, commandPathOf as aK, commandUnderWay as aL, connectCaller as aM, createActionRunner as aN, createResultStore as aO, currentReport as aP, defineCommand as aQ, diagnosticsOf as aR, disabledReason as aS, foldReport as aT, generatedTree as aU, isBoundPath as aV, openEngineCommands as aW, openEngineSession as aX, parseBound as aY, parseCommandFailure as aZ, reportDiagnostics as a_, type GeneratedTree as aa, type GraphError as ab, type HostBinding as ac, type Invocation as ad, type KeySpec as ae, type Placement as af, type PortName as ag, type PresenterPort as ah, type PreviewOutcome as ai, type PreviewSlot as aj, Reason as ak, type ReportEntry as al, type ReportFold as am, type ReportPath as an, type ReportSlot as ao, type ResultKind as ap, type ResultSlots as aq, type RunCtx as ar, type RunOutcome as as, type RunSlot as at, type RunnerPorts as au, type RunningMark as av, SCHEMAS as aw, type Sink as ax, type SinkInput as ay, type SlotContext as az, type CanvasPorts as b, rowActions as b0, toArgv as b1, uniqueDiagnostics as b2, Action as b3, InputMode as b4, type LaceReason as b5, type LiveSlots as b6, type OnScreen as b7, type RunStage as b8, type RunStageStatus as b9, diagnosticsOfDocument as ba, failureSays as bb, liveSlots as bc, reasonWire as bd, reduceFollow as be, reducePreview as bf, reduceReport as bg, reduceRun as bh, settleRun as bi, type PendingForm as c, type BoundPath as d, type CommandRead as e, type ActionTarget as f, type CommandResult as g, type CanvasSource as h, type SourceEnd as i, Bundle as j, type CanvasSelection as k, type ActionRunner as l, type ActionIcon as m, type ActionRunnerOptions as n, type ApplyResult as o, ApplyUnobservedError as p, type ArgsOf as q, type BindingRuntime as r, type BridgeEngineCaller as s, type Busy as t, COMMANDS as u, type ClipboardStore as v, type CommandBinding as w, CommandDetachedError as x, CommandExitError as y, type CommandFailure as z };
|