@lace-cloud/canvas 0.16.2 → 0.17.0

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