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