@lace-cloud/proto 0.37.1 → 0.39.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
@@ -51,15 +51,15 @@ declare const GROUP_HEADER_HEIGHT = 32;
51
51
  declare const COLLAPSED_GROUP_WIDTH = 220;
52
52
  /** The inputs a folded card draws: those it needs (required) and those a
53
53
  * wire feeds; the rest fold behind "+N more". */
54
- declare function visibleInputs(inputs: readonly NodePin$1[]): NodePin$1[];
54
+ declare function visibleInputs(inputs: readonly NodePin[]): NodePin[];
55
55
  /** How many pin rows a folded card draws: its visible inputs, plus one for
56
56
  * "+N more" when some fold, against its outputs. */
57
- declare function nodeRows(node: Pick<RenderNode$1, 'inputs' | 'outputs'>): number;
57
+ declare function nodeRows(node: Pick<RenderNode, 'inputs' | 'outputs'>): number;
58
58
  /** A module card's extent as ModuleNode draws it, folded. */
59
- declare function nodeSize(node: Pick<RenderNode$1, 'inputs' | 'outputs'>): Size;
59
+ declare function nodeSize(node: Pick<RenderNode, 'inputs' | 'outputs'>): Size;
60
60
  /** Where on a folded card an input's wire lands, from the card's top: the
61
61
  * centre of its row, or of the header when the input is folded away. */
62
- declare function inputPinY(node: Pick<RenderNode$1, 'inputs'>, name: string): number;
62
+ declare function inputPinY(node: Pick<RenderNode, 'inputs'>, name: string): number;
63
63
  /** The extent of a set of boxes: the least box that holds them all; an
64
64
  * empty one at the origin when there are none. A group's box is its
65
65
  * content's extent with its padding (`groupBoxSize`). */
@@ -70,7 +70,7 @@ declare function groupBoxSize(content: Size): Size;
70
70
  /** A collapsed group's card: its header, then its interface's pins
71
71
  * (`groupPins`), inputs on the left rail and outputs on the right, a row
72
72
  * per pin of the longer rail. */
73
- declare function collapsedGroupSize(pins: Pick<RenderGroup$1, 'inputs' | 'outputs'>): Size;
73
+ declare function collapsedGroupSize(pins: Pick<RenderGroup, 'inputs' | 'outputs'>): Size;
74
74
  /** Where on a collapsed group's card the pin of row `row` of either rail is
75
75
  * centred, from the card's top. */
76
76
  declare function groupPinY(row: number): number;
@@ -78,24 +78,24 @@ declare function groupPinY(row: number): number;
78
78
  * input's row, which the group draws at the same height collapsed or
79
79
  * expanded, or of its header when the input is not one of its interface's
80
80
  * (a meta-argument). */
81
- declare function groupInputPinY(group: Pick<RenderGroup$1, 'inputs'>, name: string): number;
81
+ declare function groupInputPinY(group: Pick<RenderGroup, 'inputs'>, name: string): number;
82
82
  /** What a group draws: its card while collapsed; its `box` while expanded. */
83
- declare function groupFootprint(group: Pick<RenderGroup$1, 'collapsed' | 'inputs' | 'outputs'>, box: Size): Size;
83
+ declare function groupFootprint(group: Pick<RenderGroup, 'collapsed' | 'inputs' | 'outputs'>, box: Size): Size;
84
84
  /** Everything a group can draw from one anchor, collapsed or expanded: the
85
85
  * larger, in width and in height, of its card (from its interface's pins)
86
86
  * and its `box`. A paste keeps a pasted group's reach clear of everything
87
87
  * its scope draws; Group steps a fresh group's reach past what the layout
88
88
  * keeps before it, and the layout steps what comes after it down past it. */
89
- declare function groupReach(pins: Pick<RenderGroup$1, 'inputs' | 'outputs'>, box: Size): Size;
89
+ declare function groupReach(pins: Pick<RenderGroup, 'inputs' | 'outputs'>, box: Size): Size;
90
90
 
91
- type CanvasView$1 = {
91
+ type CanvasView = {
92
92
  module_name: string;
93
- nodes: RenderNode$1[];
94
- edges: RenderEdge$1[];
93
+ nodes: RenderNode[];
94
+ edges: RenderEdge[];
95
95
  can_undo: boolean;
96
96
  can_redo: boolean;
97
97
  unsaved: boolean;
98
- groups: RenderGroup$1[];
98
+ groups: RenderGroup[];
99
99
  conflict?: Conflict;
100
100
  ungenerated: boolean;
101
101
  };
@@ -103,21 +103,21 @@ type Conflict = {
103
103
  base_tree_hash: string;
104
104
  tree_hash: string;
105
105
  };
106
- type RenderGroup$1 = {
106
+ type RenderGroup = {
107
107
  id: string;
108
108
  label: string;
109
109
  node_ids: string[];
110
110
  collapsed: boolean;
111
111
  module_key?: string;
112
- inputs?: NodePin$1[];
113
- outputs?: NodePin$1[];
112
+ inputs?: NodePin[];
113
+ outputs?: NodePin[];
114
114
  position: XY;
115
115
  size: Size;
116
116
  origin: XY;
117
117
  call_wired?: boolean;
118
118
  meta_wired?: MetaArgument[];
119
119
  };
120
- type RenderNode$1 = {
120
+ type RenderNode = {
121
121
  id: string;
122
122
  label: string;
123
123
  kind: 'module' | 'resource' | 'data';
@@ -127,14 +127,14 @@ type RenderNode$1 = {
127
127
  x: number;
128
128
  y: number;
129
129
  };
130
- inputs: NodePin$1[];
131
- outputs: NodePin$1[];
130
+ inputs: NodePin[];
131
+ outputs: NodePin[];
132
132
  call_wired?: boolean;
133
133
  meta_wired?: MetaArgument[];
134
134
  };
135
135
  declare const META_ARGUMENTS: readonly ["count", "for_each"];
136
136
  type MetaArgument = (typeof META_ARGUMENTS)[number];
137
- type NodePin$1 = {
137
+ type NodePin = {
138
138
  name: string;
139
139
  type: string;
140
140
  type_family?: string;
@@ -143,7 +143,7 @@ type NodePin$1 = {
143
143
  description?: string;
144
144
  sensitive?: boolean;
145
145
  };
146
- type RenderEdge$1 = {
146
+ type RenderEdge = {
147
147
  id: string;
148
148
  source: string;
149
149
  target: string;
@@ -427,8 +427,16 @@ declare enum Reason {
427
427
  * discarded or restored; re-read the state and ask again.
428
428
  */
429
429
  REASON_STALE_WORKING_STATE = 24,
430
+ /**
431
+ * REASON_NO_STACK - A command that names a stack (an id, team/slug, or a slug in the
432
+ * selected team): the ref names no stack the caller can read. Pass the
433
+ * ref of a stack that exists; `lace stack list` lists them.
434
+ */
435
+ REASON_NO_STACK = 25,
430
436
  UNRECOGNIZED = -1
431
437
  }
438
+ declare function reasonFromJSON(object: any): Reason;
439
+ declare function reasonToJSON(object: Reason): string;
432
440
 
433
441
  interface Bundle {
434
442
  /**
@@ -669,13 +677,6 @@ interface MessageFns$1<T> {
669
677
  fromPartial<I extends Exact$1<DeepPartial$1<T>, I>>(object: I): T;
670
678
  }
671
679
 
672
- declare enum NodeKind {
673
- NODE_KIND_UNSPECIFIED = 0,
674
- NODE_KIND_MODULE = 1,
675
- NODE_KIND_RESOURCE = 2,
676
- NODE_KIND_DATA = 3,
677
- UNRECOGNIZED = -1
678
- }
679
680
  /**
680
681
  * ReasonDetail rides a refused RPC's status as its one error detail:
681
682
  * `grpc-status-details-bin` over gRPC, `details[]` over Connect. A
@@ -693,103 +694,6 @@ interface ReasonDetail {
693
694
  request_id: string;
694
695
  }
695
696
  declare const ReasonDetail: MessageFns<ReasonDetail>;
696
- interface CanvasView {
697
- module_name: string;
698
- nodes: RenderNode[];
699
- edges: RenderEdge[];
700
- can_undo: boolean;
701
- can_redo: boolean;
702
- unsaved: boolean;
703
- groups: RenderGroup[];
704
- }
705
- declare const CanvasView: MessageFns<CanvasView>;
706
- /**
707
- * RenderGroup represents an expand/collapse container on the canvas.
708
- * One `group` on the canvas corresponds to either a child Use whose
709
- * target module has its own sub-modules, or a user-created group
710
- * produced via CreateGroupAction.
711
- *
712
- * A group's behaviour:
713
- * - Registry drops whose target has sub-modules: module_key names
714
- * that target; inputs/outputs mirror its declared Interface.
715
- * - User-created groups (via "Group" canvas action): module_key is
716
- * empty; inputs/outputs are derived from crossing edges by the
717
- * webview.
718
- *
719
- * Groups arrive collapsed (collapsed=true) across all creation paths
720
- * for consistency. Expand/collapse is a pure view toggle that never
721
- * changes the IR or generated .tf — ungroup is the destructive
722
- * dissolve action.
723
- */
724
- interface RenderGroup {
725
- id: string;
726
- label: string;
727
- node_ids: string[];
728
- collapsed: boolean;
729
- /**
730
- * Bundle source identifier (e.g. "aws/examples/iam_stack@v1.0.0")
731
- * for groups backed by a registry drop; empty for user-created
732
- * local groups.
733
- */
734
- module_key: string;
735
- /**
736
- * Boundary input pins — what the group's target accepts from its
737
- * parent scope. Rendered on the left rail when collapsed; derived
738
- * from the target's Interface.Inputs (module-backed groups) or the
739
- * crossing edges (user-created groups).
740
- */
741
- inputs: NodePin[];
742
- /**
743
- * Boundary output pins — what the group's target exposes to its
744
- * parent scope. Rendered on the right rail when collapsed; derived
745
- * from the target's Exports (module-backed groups) or outgoing
746
- * crossing edges (user-created groups).
747
- */
748
- outputs: NodePin[];
749
- }
750
- declare const RenderGroup: MessageFns<RenderGroup>;
751
- interface RenderNode {
752
- id: string;
753
- label: string;
754
- kind: NodeKind;
755
- module_key: string;
756
- icon_url: string;
757
- position: Position | undefined;
758
- inputs: NodePin[];
759
- outputs: NodePin[];
760
- }
761
- declare const RenderNode: MessageFns<RenderNode>;
762
- /**
763
- * NodePin is a compact handle descriptor rendered on the canvas. One pin is
764
- * emitted per input variable (left rail) and per output (right rail) so the
765
- * webview can draw Blender-style per-variable connection handles.
766
- */
767
- interface NodePin {
768
- name: string;
769
- /** HCL type string, e.g. "string", "list(object)" */
770
- type: string;
771
- /** inputs only; always false for outputs */
772
- required: boolean;
773
- /** input has an Out binding, or output feeds >=1 edge */
774
- wired: boolean;
775
- description: string;
776
- /** outputs only */
777
- sensitive: boolean;
778
- }
779
- declare const NodePin: MessageFns<NodePin>;
780
- interface RenderEdge {
781
- id: string;
782
- source: string;
783
- target: string;
784
- source_output: string;
785
- target_input: string;
786
- }
787
- declare const RenderEdge: MessageFns<RenderEdge>;
788
- interface Position {
789
- x: number;
790
- y: number;
791
- }
792
- declare const Position: MessageFns<Position>;
793
697
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
794
698
  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 {} ? {
795
699
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -905,12 +809,19 @@ declare class EngineIdentityMismatchError extends Error {
905
809
  */
906
810
  declare function checkEngineIdentity(engine: EngineIdentity): void;
907
811
 
812
+ type AddressParts = {
813
+ modules: string[];
814
+ resource: string;
815
+ };
816
+ declare function splitAddress(address: string): AddressParts;
817
+ declare function moduleCallPath(address: string): string;
818
+
908
819
  declare function deriveNodeConfig(bundle: Bundle, instanceId: string): NodeConfig | null;
909
820
  declare function deriveSettingsConfig(bundle: Bundle, moduleKey: string): SettingsConfig | null;
910
821
 
911
- declare function nodeIdForAddress(view: Pick<CanvasView$1, 'nodes' | 'groups'>, address: string): string | null;
822
+ declare function nodeIdForAddress(view: Pick<CanvasView, 'nodes' | 'groups'>, address: string): string | null;
912
823
 
913
- declare function nodeIdForDiagnostic(view: Pick<CanvasView$1, 'nodes' | 'groups'>, diagnostic: Diagnostic): string | null;
824
+ declare function nodeIdForDiagnostic(view: Pick<CanvasView, 'nodes' | 'groups'>, diagnostic: Diagnostic): string | null;
914
825
 
915
826
  type ProjectionMeta = {
916
827
  moduleName?: string;
@@ -921,7 +832,7 @@ type ProjectionMeta = {
921
832
  ungenerated?: boolean;
922
833
  };
923
834
  declare const EMPTY_BUNDLE: Bundle;
924
- declare function projectCanvasView(bundle: Bundle, arrangement: CanvasArrangement | undefined, meta: ProjectionMeta): CanvasView$1;
835
+ declare function projectCanvasView(bundle: Bundle, arrangement: CanvasArrangement | undefined, meta: ProjectionMeta): CanvasView;
925
836
 
926
837
  /**
927
838
  * stepDown moves a box of `size` at `at` down its column, just past whatever
@@ -968,7 +879,6 @@ type LayoutItem = {
968
879
  /** The y, from the item's top, a wire into `input` lands at. */
969
880
  pinY?: (input: string) => number;
970
881
  };
971
- declare function resolveScopePositionsByDepth(ids: string[], arrangementNodes: CanvasArrangement[string]['nodes'], edges: readonly LayoutEdge[]): Map<string, XY>;
972
882
  /**
973
883
  * layoutByDepth places a scope's items — cards and group boxes, each by its
974
884
  * drawn extent — and returns every item's top-left in the scope's frame.
@@ -1001,7 +911,7 @@ declare function resolveScopePositionsByDepth(ids: string[], arrangementNodes: C
1001
911
  */
1002
912
  declare function layoutByDepth(items: readonly LayoutItem[], stored: ReadonlyMap<string, XY>, edges: readonly LayoutEdge[]): Map<string, XY>;
1003
913
 
1004
- type Frames = Pick<CanvasView$1, 'groups'>;
914
+ type Frames = Pick<CanvasView, 'groups'>;
1005
915
  /** Where a group's box is drawn, from its members' origin and how far its
1006
916
  * members reach up and left of that origin (`min`, never above 0): the
1007
917
  * group's padding up and left of their top-left. With no reach it is the
@@ -1015,16 +925,16 @@ declare function originAt(box: XY, min?: XY): XY;
1015
925
  /** Where the instance at `canvasPath` is drawn, in canvas coordinates: its
1016
926
  * card's top-left, or its group's box's; undefined when the view draws no
1017
927
  * such instance. */
1018
- declare function drawnAt(view: Pick<CanvasView$1, 'nodes' | 'groups'>, canvasPath: string): XY | undefined;
928
+ declare function drawnAt(view: Pick<CanvasView, 'nodes' | 'groups'>, canvasPath: string): XY | undefined;
1019
929
  /** What the instance at `canvasPath` draws, in canvas coordinates: its
1020
930
  * card, or its group's card while collapsed and box while expanded
1021
931
  * (`groupFootprint`); undefined when the view draws no such instance. */
1022
- declare function drawnRect(view: Pick<CanvasView$1, 'nodes' | 'groups'>, canvasPath: string): Rect | undefined;
932
+ declare function drawnRect(view: Pick<CanvasView, 'nodes' | 'groups'>, canvasPath: string): Rect | undefined;
1023
933
  /** Everything the instance at `canvasPath` can draw from where it is drawn,
1024
934
  * in canvas coordinates: a card's rect, or a group's rect by its reach,
1025
935
  * collapsed or expanded alike (`groupReach`); undefined when the view draws
1026
936
  * no such instance. */
1027
- declare function reachRect(view: Pick<CanvasView$1, 'nodes' | 'groups'>, canvasPath: string): Rect | undefined;
937
+ declare function reachRect(view: Pick<CanvasView, 'nodes' | 'groups'>, canvasPath: string): Rect | undefined;
1028
938
  /** Where the frame starts that the instance at `canvasPath` is stored in:
1029
939
  * its group's members' origin, or the canvas's (0,0) in the entry scope. */
1030
940
  declare function frameOf(view: Frames, canvasPath: string): XY;
@@ -1053,7 +963,7 @@ type ParsedModuleKey = {
1053
963
  };
1054
964
  declare function parseModuleKey(key: string): ParsedModuleKey;
1055
965
 
1056
- declare function groupPins(target: Module): Required<Pick<RenderGroup$1, 'inputs' | 'outputs'>>;
966
+ declare function groupPins(target: Module): Required<Pick<RenderGroup, 'inputs' | 'outputs'>>;
1057
967
 
1058
968
  type InstanceChild = {
1059
969
  id: string;
@@ -1071,9 +981,6 @@ type InstanceAddress = {
1071
981
  id: string;
1072
982
  };
1073
983
  declare function instanceAddress(bundle: Bundle, id: string): InstanceAddress;
1074
- declare function resolveScopePath(bundle: Bundle, path: string): string | null;
1075
-
1076
- declare const CanvasViewProto: MessageFns<CanvasView>;
1077
984
 
1078
- export { BRIDGE_METHODS, Bundle, COLLAPSED_GROUP_WIDTH, CONNECT_CODE_NAMES, CanvasViewProto, EMPTY_BUNDLE, ENGINE_CONTRACT, ENGINE_METHODS, ENGINE_PROTOCOL_VERSION, ENGINE_STREAM_METHODS, EngineIdentityMismatchError, GROUP_HEADER_HEIGHT, GROUP_PADDING, HOST_ONLY_METHODS, META_ARGUMENTS, NODE_HEADER_HEIGHT, NODE_ROW_HEIGHT, NODE_WIDTH, apiFields, boxAt, callText, checkEngineIdentity, collapsedGroupSize, convertDiagnostic, deriveNodeConfig, deriveSettingsConfig, drawnAt, drawnRect, extentOf, frameOf, freeSlot, groupBoxSize, groupFootprint, groupInputPinY, groupPinText, groupPinY, groupPins, groupReach, inputPinY, instanceAddress, joinPath, keepOrder, layoutByDepth, localIn, nodeIdForAddress, nodeIdForDiagnostic, nodeRows, nodeSize, originAt, parseModuleKey, projectCanvasView, reachRect, resolveInstance, resolveScopePath, resolveScopePositionsByDepth, splitPath, stepDown, visibleInputs };
1079
- export type { BlockConfig, BridgeMethod, BridgeRequest, BridgeResponse, CanvasArrangement, CanvasView$1 as CanvasView, Conflict, DeepPartial$1 as DeepPartial, Diagnostic, EngineIdentity, EngineMethod, EngineStreamMethod, HostOnlyMethod, InstanceAddress, InstanceChild, KeepKey, LayoutEdge, LayoutItem, MessageBridge, MetaArgument, NodeConfig, NodePin$1 as NodePin, ParsedModuleKey, ProjectionMeta, ProtoDiagnosticLike, Rect, RenderEdge$1 as RenderEdge, RenderGroup$1 as RenderGroup, RenderInput, RenderNode$1 as RenderNode, RenderOutput, ResourceConfig, ScopedInstance, SettingsConfig, Size, ViewportIntent, XY };
985
+ export { BRIDGE_METHODS, Bundle, COLLAPSED_GROUP_WIDTH, CONNECT_CODE_NAMES, EMPTY_BUNDLE, ENGINE_CONTRACT, ENGINE_METHODS, ENGINE_PROTOCOL_VERSION, ENGINE_STREAM_METHODS, EngineIdentityMismatchError, GROUP_HEADER_HEIGHT, GROUP_PADDING, HOST_ONLY_METHODS, META_ARGUMENTS, Module, NODE_HEADER_HEIGHT, NODE_ROW_HEIGHT, NODE_WIDTH, Reason, Resource, Use, apiFields, boxAt, callText, checkEngineIdentity, collapsedGroupSize, convertDiagnostic, deriveNodeConfig, deriveSettingsConfig, drawnAt, drawnRect, extentOf, frameOf, freeSlot, groupBoxSize, groupFootprint, groupInputPinY, groupPinText, groupPinY, groupPins, groupReach, inputPinY, instanceAddress, joinPath, keepOrder, layoutByDepth, localIn, moduleCallPath, nodeIdForAddress, nodeIdForDiagnostic, nodeRows, nodeSize, originAt, parseModuleKey, projectCanvasView, reachRect, reasonFromJSON, reasonToJSON, resolveInstance, splitAddress, splitPath, stepDown, visibleInputs };
986
+ export type { AddressParts, BlockConfig, BridgeMethod, BridgeRequest, BridgeResponse, CanvasArrangement, CanvasView, Conflict, DeepPartial$1 as DeepPartial, Diagnostic, EngineIdentity, EngineMethod, EngineStreamMethod, HostOnlyMethod, InstanceAddress, InstanceChild, KeepKey, LayoutEdge, LayoutItem, MessageBridge, MetaArgument, NodeConfig, NodePin, ParsedModuleKey, ProjectionMeta, ProtoDiagnosticLike, Rect, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, ResourceConfig, ScopedInstance, SettingsConfig, Size, ViewportIntent, XY };
package/dist/index.d.ts CHANGED
@@ -51,15 +51,15 @@ declare const GROUP_HEADER_HEIGHT = 32;
51
51
  declare const COLLAPSED_GROUP_WIDTH = 220;
52
52
  /** The inputs a folded card draws: those it needs (required) and those a
53
53
  * wire feeds; the rest fold behind "+N more". */
54
- declare function visibleInputs(inputs: readonly NodePin$1[]): NodePin$1[];
54
+ declare function visibleInputs(inputs: readonly NodePin[]): NodePin[];
55
55
  /** How many pin rows a folded card draws: its visible inputs, plus one for
56
56
  * "+N more" when some fold, against its outputs. */
57
- declare function nodeRows(node: Pick<RenderNode$1, 'inputs' | 'outputs'>): number;
57
+ declare function nodeRows(node: Pick<RenderNode, 'inputs' | 'outputs'>): number;
58
58
  /** A module card's extent as ModuleNode draws it, folded. */
59
- declare function nodeSize(node: Pick<RenderNode$1, 'inputs' | 'outputs'>): Size;
59
+ declare function nodeSize(node: Pick<RenderNode, 'inputs' | 'outputs'>): Size;
60
60
  /** Where on a folded card an input's wire lands, from the card's top: the
61
61
  * centre of its row, or of the header when the input is folded away. */
62
- declare function inputPinY(node: Pick<RenderNode$1, 'inputs'>, name: string): number;
62
+ declare function inputPinY(node: Pick<RenderNode, 'inputs'>, name: string): number;
63
63
  /** The extent of a set of boxes: the least box that holds them all; an
64
64
  * empty one at the origin when there are none. A group's box is its
65
65
  * content's extent with its padding (`groupBoxSize`). */
@@ -70,7 +70,7 @@ declare function groupBoxSize(content: Size): Size;
70
70
  /** A collapsed group's card: its header, then its interface's pins
71
71
  * (`groupPins`), inputs on the left rail and outputs on the right, a row
72
72
  * per pin of the longer rail. */
73
- declare function collapsedGroupSize(pins: Pick<RenderGroup$1, 'inputs' | 'outputs'>): Size;
73
+ declare function collapsedGroupSize(pins: Pick<RenderGroup, 'inputs' | 'outputs'>): Size;
74
74
  /** Where on a collapsed group's card the pin of row `row` of either rail is
75
75
  * centred, from the card's top. */
76
76
  declare function groupPinY(row: number): number;
@@ -78,24 +78,24 @@ declare function groupPinY(row: number): number;
78
78
  * input's row, which the group draws at the same height collapsed or
79
79
  * expanded, or of its header when the input is not one of its interface's
80
80
  * (a meta-argument). */
81
- declare function groupInputPinY(group: Pick<RenderGroup$1, 'inputs'>, name: string): number;
81
+ declare function groupInputPinY(group: Pick<RenderGroup, 'inputs'>, name: string): number;
82
82
  /** What a group draws: its card while collapsed; its `box` while expanded. */
83
- declare function groupFootprint(group: Pick<RenderGroup$1, 'collapsed' | 'inputs' | 'outputs'>, box: Size): Size;
83
+ declare function groupFootprint(group: Pick<RenderGroup, 'collapsed' | 'inputs' | 'outputs'>, box: Size): Size;
84
84
  /** Everything a group can draw from one anchor, collapsed or expanded: the
85
85
  * larger, in width and in height, of its card (from its interface's pins)
86
86
  * and its `box`. A paste keeps a pasted group's reach clear of everything
87
87
  * its scope draws; Group steps a fresh group's reach past what the layout
88
88
  * keeps before it, and the layout steps what comes after it down past it. */
89
- declare function groupReach(pins: Pick<RenderGroup$1, 'inputs' | 'outputs'>, box: Size): Size;
89
+ declare function groupReach(pins: Pick<RenderGroup, 'inputs' | 'outputs'>, box: Size): Size;
90
90
 
91
- type CanvasView$1 = {
91
+ type CanvasView = {
92
92
  module_name: string;
93
- nodes: RenderNode$1[];
94
- edges: RenderEdge$1[];
93
+ nodes: RenderNode[];
94
+ edges: RenderEdge[];
95
95
  can_undo: boolean;
96
96
  can_redo: boolean;
97
97
  unsaved: boolean;
98
- groups: RenderGroup$1[];
98
+ groups: RenderGroup[];
99
99
  conflict?: Conflict;
100
100
  ungenerated: boolean;
101
101
  };
@@ -103,21 +103,21 @@ type Conflict = {
103
103
  base_tree_hash: string;
104
104
  tree_hash: string;
105
105
  };
106
- type RenderGroup$1 = {
106
+ type RenderGroup = {
107
107
  id: string;
108
108
  label: string;
109
109
  node_ids: string[];
110
110
  collapsed: boolean;
111
111
  module_key?: string;
112
- inputs?: NodePin$1[];
113
- outputs?: NodePin$1[];
112
+ inputs?: NodePin[];
113
+ outputs?: NodePin[];
114
114
  position: XY;
115
115
  size: Size;
116
116
  origin: XY;
117
117
  call_wired?: boolean;
118
118
  meta_wired?: MetaArgument[];
119
119
  };
120
- type RenderNode$1 = {
120
+ type RenderNode = {
121
121
  id: string;
122
122
  label: string;
123
123
  kind: 'module' | 'resource' | 'data';
@@ -127,14 +127,14 @@ type RenderNode$1 = {
127
127
  x: number;
128
128
  y: number;
129
129
  };
130
- inputs: NodePin$1[];
131
- outputs: NodePin$1[];
130
+ inputs: NodePin[];
131
+ outputs: NodePin[];
132
132
  call_wired?: boolean;
133
133
  meta_wired?: MetaArgument[];
134
134
  };
135
135
  declare const META_ARGUMENTS: readonly ["count", "for_each"];
136
136
  type MetaArgument = (typeof META_ARGUMENTS)[number];
137
- type NodePin$1 = {
137
+ type NodePin = {
138
138
  name: string;
139
139
  type: string;
140
140
  type_family?: string;
@@ -143,7 +143,7 @@ type NodePin$1 = {
143
143
  description?: string;
144
144
  sensitive?: boolean;
145
145
  };
146
- type RenderEdge$1 = {
146
+ type RenderEdge = {
147
147
  id: string;
148
148
  source: string;
149
149
  target: string;
@@ -427,8 +427,16 @@ declare enum Reason {
427
427
  * discarded or restored; re-read the state and ask again.
428
428
  */
429
429
  REASON_STALE_WORKING_STATE = 24,
430
+ /**
431
+ * REASON_NO_STACK - A command that names a stack (an id, team/slug, or a slug in the
432
+ * selected team): the ref names no stack the caller can read. Pass the
433
+ * ref of a stack that exists; `lace stack list` lists them.
434
+ */
435
+ REASON_NO_STACK = 25,
430
436
  UNRECOGNIZED = -1
431
437
  }
438
+ declare function reasonFromJSON(object: any): Reason;
439
+ declare function reasonToJSON(object: Reason): string;
432
440
 
433
441
  interface Bundle {
434
442
  /**
@@ -669,13 +677,6 @@ interface MessageFns$1<T> {
669
677
  fromPartial<I extends Exact$1<DeepPartial$1<T>, I>>(object: I): T;
670
678
  }
671
679
 
672
- declare enum NodeKind {
673
- NODE_KIND_UNSPECIFIED = 0,
674
- NODE_KIND_MODULE = 1,
675
- NODE_KIND_RESOURCE = 2,
676
- NODE_KIND_DATA = 3,
677
- UNRECOGNIZED = -1
678
- }
679
680
  /**
680
681
  * ReasonDetail rides a refused RPC's status as its one error detail:
681
682
  * `grpc-status-details-bin` over gRPC, `details[]` over Connect. A
@@ -693,103 +694,6 @@ interface ReasonDetail {
693
694
  request_id: string;
694
695
  }
695
696
  declare const ReasonDetail: MessageFns<ReasonDetail>;
696
- interface CanvasView {
697
- module_name: string;
698
- nodes: RenderNode[];
699
- edges: RenderEdge[];
700
- can_undo: boolean;
701
- can_redo: boolean;
702
- unsaved: boolean;
703
- groups: RenderGroup[];
704
- }
705
- declare const CanvasView: MessageFns<CanvasView>;
706
- /**
707
- * RenderGroup represents an expand/collapse container on the canvas.
708
- * One `group` on the canvas corresponds to either a child Use whose
709
- * target module has its own sub-modules, or a user-created group
710
- * produced via CreateGroupAction.
711
- *
712
- * A group's behaviour:
713
- * - Registry drops whose target has sub-modules: module_key names
714
- * that target; inputs/outputs mirror its declared Interface.
715
- * - User-created groups (via "Group" canvas action): module_key is
716
- * empty; inputs/outputs are derived from crossing edges by the
717
- * webview.
718
- *
719
- * Groups arrive collapsed (collapsed=true) across all creation paths
720
- * for consistency. Expand/collapse is a pure view toggle that never
721
- * changes the IR or generated .tf — ungroup is the destructive
722
- * dissolve action.
723
- */
724
- interface RenderGroup {
725
- id: string;
726
- label: string;
727
- node_ids: string[];
728
- collapsed: boolean;
729
- /**
730
- * Bundle source identifier (e.g. "aws/examples/iam_stack@v1.0.0")
731
- * for groups backed by a registry drop; empty for user-created
732
- * local groups.
733
- */
734
- module_key: string;
735
- /**
736
- * Boundary input pins — what the group's target accepts from its
737
- * parent scope. Rendered on the left rail when collapsed; derived
738
- * from the target's Interface.Inputs (module-backed groups) or the
739
- * crossing edges (user-created groups).
740
- */
741
- inputs: NodePin[];
742
- /**
743
- * Boundary output pins — what the group's target exposes to its
744
- * parent scope. Rendered on the right rail when collapsed; derived
745
- * from the target's Exports (module-backed groups) or outgoing
746
- * crossing edges (user-created groups).
747
- */
748
- outputs: NodePin[];
749
- }
750
- declare const RenderGroup: MessageFns<RenderGroup>;
751
- interface RenderNode {
752
- id: string;
753
- label: string;
754
- kind: NodeKind;
755
- module_key: string;
756
- icon_url: string;
757
- position: Position | undefined;
758
- inputs: NodePin[];
759
- outputs: NodePin[];
760
- }
761
- declare const RenderNode: MessageFns<RenderNode>;
762
- /**
763
- * NodePin is a compact handle descriptor rendered on the canvas. One pin is
764
- * emitted per input variable (left rail) and per output (right rail) so the
765
- * webview can draw Blender-style per-variable connection handles.
766
- */
767
- interface NodePin {
768
- name: string;
769
- /** HCL type string, e.g. "string", "list(object)" */
770
- type: string;
771
- /** inputs only; always false for outputs */
772
- required: boolean;
773
- /** input has an Out binding, or output feeds >=1 edge */
774
- wired: boolean;
775
- description: string;
776
- /** outputs only */
777
- sensitive: boolean;
778
- }
779
- declare const NodePin: MessageFns<NodePin>;
780
- interface RenderEdge {
781
- id: string;
782
- source: string;
783
- target: string;
784
- source_output: string;
785
- target_input: string;
786
- }
787
- declare const RenderEdge: MessageFns<RenderEdge>;
788
- interface Position {
789
- x: number;
790
- y: number;
791
- }
792
- declare const Position: MessageFns<Position>;
793
697
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
794
698
  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 {} ? {
795
699
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -905,12 +809,19 @@ declare class EngineIdentityMismatchError extends Error {
905
809
  */
906
810
  declare function checkEngineIdentity(engine: EngineIdentity): void;
907
811
 
812
+ type AddressParts = {
813
+ modules: string[];
814
+ resource: string;
815
+ };
816
+ declare function splitAddress(address: string): AddressParts;
817
+ declare function moduleCallPath(address: string): string;
818
+
908
819
  declare function deriveNodeConfig(bundle: Bundle, instanceId: string): NodeConfig | null;
909
820
  declare function deriveSettingsConfig(bundle: Bundle, moduleKey: string): SettingsConfig | null;
910
821
 
911
- declare function nodeIdForAddress(view: Pick<CanvasView$1, 'nodes' | 'groups'>, address: string): string | null;
822
+ declare function nodeIdForAddress(view: Pick<CanvasView, 'nodes' | 'groups'>, address: string): string | null;
912
823
 
913
- declare function nodeIdForDiagnostic(view: Pick<CanvasView$1, 'nodes' | 'groups'>, diagnostic: Diagnostic): string | null;
824
+ declare function nodeIdForDiagnostic(view: Pick<CanvasView, 'nodes' | 'groups'>, diagnostic: Diagnostic): string | null;
914
825
 
915
826
  type ProjectionMeta = {
916
827
  moduleName?: string;
@@ -921,7 +832,7 @@ type ProjectionMeta = {
921
832
  ungenerated?: boolean;
922
833
  };
923
834
  declare const EMPTY_BUNDLE: Bundle;
924
- declare function projectCanvasView(bundle: Bundle, arrangement: CanvasArrangement | undefined, meta: ProjectionMeta): CanvasView$1;
835
+ declare function projectCanvasView(bundle: Bundle, arrangement: CanvasArrangement | undefined, meta: ProjectionMeta): CanvasView;
925
836
 
926
837
  /**
927
838
  * stepDown moves a box of `size` at `at` down its column, just past whatever
@@ -968,7 +879,6 @@ type LayoutItem = {
968
879
  /** The y, from the item's top, a wire into `input` lands at. */
969
880
  pinY?: (input: string) => number;
970
881
  };
971
- declare function resolveScopePositionsByDepth(ids: string[], arrangementNodes: CanvasArrangement[string]['nodes'], edges: readonly LayoutEdge[]): Map<string, XY>;
972
882
  /**
973
883
  * layoutByDepth places a scope's items — cards and group boxes, each by its
974
884
  * drawn extent — and returns every item's top-left in the scope's frame.
@@ -1001,7 +911,7 @@ declare function resolveScopePositionsByDepth(ids: string[], arrangementNodes: C
1001
911
  */
1002
912
  declare function layoutByDepth(items: readonly LayoutItem[], stored: ReadonlyMap<string, XY>, edges: readonly LayoutEdge[]): Map<string, XY>;
1003
913
 
1004
- type Frames = Pick<CanvasView$1, 'groups'>;
914
+ type Frames = Pick<CanvasView, 'groups'>;
1005
915
  /** Where a group's box is drawn, from its members' origin and how far its
1006
916
  * members reach up and left of that origin (`min`, never above 0): the
1007
917
  * group's padding up and left of their top-left. With no reach it is the
@@ -1015,16 +925,16 @@ declare function originAt(box: XY, min?: XY): XY;
1015
925
  /** Where the instance at `canvasPath` is drawn, in canvas coordinates: its
1016
926
  * card's top-left, or its group's box's; undefined when the view draws no
1017
927
  * such instance. */
1018
- declare function drawnAt(view: Pick<CanvasView$1, 'nodes' | 'groups'>, canvasPath: string): XY | undefined;
928
+ declare function drawnAt(view: Pick<CanvasView, 'nodes' | 'groups'>, canvasPath: string): XY | undefined;
1019
929
  /** What the instance at `canvasPath` draws, in canvas coordinates: its
1020
930
  * card, or its group's card while collapsed and box while expanded
1021
931
  * (`groupFootprint`); undefined when the view draws no such instance. */
1022
- declare function drawnRect(view: Pick<CanvasView$1, 'nodes' | 'groups'>, canvasPath: string): Rect | undefined;
932
+ declare function drawnRect(view: Pick<CanvasView, 'nodes' | 'groups'>, canvasPath: string): Rect | undefined;
1023
933
  /** Everything the instance at `canvasPath` can draw from where it is drawn,
1024
934
  * in canvas coordinates: a card's rect, or a group's rect by its reach,
1025
935
  * collapsed or expanded alike (`groupReach`); undefined when the view draws
1026
936
  * no such instance. */
1027
- declare function reachRect(view: Pick<CanvasView$1, 'nodes' | 'groups'>, canvasPath: string): Rect | undefined;
937
+ declare function reachRect(view: Pick<CanvasView, 'nodes' | 'groups'>, canvasPath: string): Rect | undefined;
1028
938
  /** Where the frame starts that the instance at `canvasPath` is stored in:
1029
939
  * its group's members' origin, or the canvas's (0,0) in the entry scope. */
1030
940
  declare function frameOf(view: Frames, canvasPath: string): XY;
@@ -1053,7 +963,7 @@ type ParsedModuleKey = {
1053
963
  };
1054
964
  declare function parseModuleKey(key: string): ParsedModuleKey;
1055
965
 
1056
- declare function groupPins(target: Module): Required<Pick<RenderGroup$1, 'inputs' | 'outputs'>>;
966
+ declare function groupPins(target: Module): Required<Pick<RenderGroup, 'inputs' | 'outputs'>>;
1057
967
 
1058
968
  type InstanceChild = {
1059
969
  id: string;
@@ -1071,9 +981,6 @@ type InstanceAddress = {
1071
981
  id: string;
1072
982
  };
1073
983
  declare function instanceAddress(bundle: Bundle, id: string): InstanceAddress;
1074
- declare function resolveScopePath(bundle: Bundle, path: string): string | null;
1075
-
1076
- declare const CanvasViewProto: MessageFns<CanvasView>;
1077
984
 
1078
- export { BRIDGE_METHODS, Bundle, COLLAPSED_GROUP_WIDTH, CONNECT_CODE_NAMES, CanvasViewProto, EMPTY_BUNDLE, ENGINE_CONTRACT, ENGINE_METHODS, ENGINE_PROTOCOL_VERSION, ENGINE_STREAM_METHODS, EngineIdentityMismatchError, GROUP_HEADER_HEIGHT, GROUP_PADDING, HOST_ONLY_METHODS, META_ARGUMENTS, NODE_HEADER_HEIGHT, NODE_ROW_HEIGHT, NODE_WIDTH, apiFields, boxAt, callText, checkEngineIdentity, collapsedGroupSize, convertDiagnostic, deriveNodeConfig, deriveSettingsConfig, drawnAt, drawnRect, extentOf, frameOf, freeSlot, groupBoxSize, groupFootprint, groupInputPinY, groupPinText, groupPinY, groupPins, groupReach, inputPinY, instanceAddress, joinPath, keepOrder, layoutByDepth, localIn, nodeIdForAddress, nodeIdForDiagnostic, nodeRows, nodeSize, originAt, parseModuleKey, projectCanvasView, reachRect, resolveInstance, resolveScopePath, resolveScopePositionsByDepth, splitPath, stepDown, visibleInputs };
1079
- export type { BlockConfig, BridgeMethod, BridgeRequest, BridgeResponse, CanvasArrangement, CanvasView$1 as CanvasView, Conflict, DeepPartial$1 as DeepPartial, Diagnostic, EngineIdentity, EngineMethod, EngineStreamMethod, HostOnlyMethod, InstanceAddress, InstanceChild, KeepKey, LayoutEdge, LayoutItem, MessageBridge, MetaArgument, NodeConfig, NodePin$1 as NodePin, ParsedModuleKey, ProjectionMeta, ProtoDiagnosticLike, Rect, RenderEdge$1 as RenderEdge, RenderGroup$1 as RenderGroup, RenderInput, RenderNode$1 as RenderNode, RenderOutput, ResourceConfig, ScopedInstance, SettingsConfig, Size, ViewportIntent, XY };
985
+ export { BRIDGE_METHODS, Bundle, COLLAPSED_GROUP_WIDTH, CONNECT_CODE_NAMES, EMPTY_BUNDLE, ENGINE_CONTRACT, ENGINE_METHODS, ENGINE_PROTOCOL_VERSION, ENGINE_STREAM_METHODS, EngineIdentityMismatchError, GROUP_HEADER_HEIGHT, GROUP_PADDING, HOST_ONLY_METHODS, META_ARGUMENTS, Module, NODE_HEADER_HEIGHT, NODE_ROW_HEIGHT, NODE_WIDTH, Reason, Resource, Use, apiFields, boxAt, callText, checkEngineIdentity, collapsedGroupSize, convertDiagnostic, deriveNodeConfig, deriveSettingsConfig, drawnAt, drawnRect, extentOf, frameOf, freeSlot, groupBoxSize, groupFootprint, groupInputPinY, groupPinText, groupPinY, groupPins, groupReach, inputPinY, instanceAddress, joinPath, keepOrder, layoutByDepth, localIn, moduleCallPath, nodeIdForAddress, nodeIdForDiagnostic, nodeRows, nodeSize, originAt, parseModuleKey, projectCanvasView, reachRect, reasonFromJSON, reasonToJSON, resolveInstance, splitAddress, splitPath, stepDown, visibleInputs };
986
+ export type { AddressParts, BlockConfig, BridgeMethod, BridgeRequest, BridgeResponse, CanvasArrangement, CanvasView, Conflict, DeepPartial$1 as DeepPartial, Diagnostic, EngineIdentity, EngineMethod, EngineStreamMethod, HostOnlyMethod, InstanceAddress, InstanceChild, KeepKey, LayoutEdge, LayoutItem, MessageBridge, MetaArgument, NodeConfig, NodePin, ParsedModuleKey, ProjectionMeta, ProtoDiagnosticLike, Rect, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, ResourceConfig, ScopedInstance, SettingsConfig, Size, ViewportIntent, XY };