@lace-cloud/canvas 0.17.0 → 0.19.0

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