@lace-cloud/canvas 0.16.1 → 0.16.2

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.mjs CHANGED
@@ -255,6 +255,201 @@ var ErrorBoundary = class extends React.Component {
255
255
  }
256
256
  };
257
257
 
258
+ // src/components/edges/DependencyEdge.tsx
259
+ import { BaseEdge, useStore } from "@xyflow/react";
260
+
261
+ // src/components/edges/dependency-edge-path.ts
262
+ import { getBezierPath } from "@xyflow/react";
263
+ var LOOP_STUB = 24;
264
+ var CLEARANCE = 24;
265
+ function boxTop(b) {
266
+ return b.y;
267
+ }
268
+ function boxBottom(b) {
269
+ return b.y + b.height;
270
+ }
271
+ function boxLeft(b) {
272
+ return b.x;
273
+ }
274
+ function boxRight(b) {
275
+ return b.x + b.width;
276
+ }
277
+ function segmentCrossesBox(p0, p1, box) {
278
+ const segMinX = Math.min(p0.x, p1.x);
279
+ const segMaxX = Math.max(p0.x, p1.x);
280
+ const segMinY = Math.min(p0.y, p1.y);
281
+ const segMaxY = Math.max(p0.y, p1.y);
282
+ return segMaxX >= boxLeft(box) && segMinX <= boxRight(box) && segMaxY >= boxTop(box) && segMinY <= boxBottom(box);
283
+ }
284
+ function chooseClearanceY(boxes, referenceY) {
285
+ const top = Math.min(...boxes.map(boxTop));
286
+ const bottom = Math.max(...boxes.map(boxBottom));
287
+ const aboveDist = referenceY - top;
288
+ const belowDist = bottom - referenceY;
289
+ return aboveDist <= belowDist ? top - CLEARANCE : bottom + CLEARANCE;
290
+ }
291
+ function loopWaypoints(source, target, railX1, railX2, clearanceY) {
292
+ return [
293
+ source,
294
+ { x: railX1, y: source.y },
295
+ { x: railX1, y: clearanceY },
296
+ { x: railX2, y: clearanceY },
297
+ { x: railX2, y: target.y },
298
+ target
299
+ ];
300
+ }
301
+ function loopedPath(source, target, railX1, railX2, clearanceY) {
302
+ const points = loopWaypoints(source, target, railX1, railX2, clearanceY);
303
+ const path = points.map((p, i) => `${i === 0 ? "M" : "L"}${p.x},${p.y}`).join(" ");
304
+ return { path, labelX: (railX1 + railX2) / 2, labelY: clearanceY };
305
+ }
306
+ function computeDependencyEdgePath(params) {
307
+ const {
308
+ sourceX,
309
+ sourceY,
310
+ targetX,
311
+ targetY,
312
+ sourcePosition,
313
+ targetPosition,
314
+ sourceBox,
315
+ targetBox,
316
+ obstacleBoxes
317
+ } = params;
318
+ const source = { x: sourceX, y: sourceY };
319
+ const target = { x: targetX, y: targetY };
320
+ if (targetX < sourceX) {
321
+ const clearanceY2 = chooseClearanceY([sourceBox, targetBox], (sourceY + targetY) / 2);
322
+ const railX12 = boxRight(sourceBox) + CLEARANCE;
323
+ const railX22 = boxLeft(targetBox) - CLEARANCE;
324
+ return loopedPath(source, target, railX12, railX22, clearanceY2);
325
+ }
326
+ const blocking = obstacleBoxes.filter((box) => segmentCrossesBox(source, target, box));
327
+ if (blocking.length === 0) {
328
+ const [path, labelX, labelY] = getBezierPath({
329
+ sourceX,
330
+ sourceY,
331
+ sourcePosition,
332
+ targetX,
333
+ targetY,
334
+ targetPosition
335
+ });
336
+ return { path, labelX, labelY };
337
+ }
338
+ const clearanceY = chooseClearanceY(blocking, (sourceY + targetY) / 2);
339
+ const railX1 = sourceX + LOOP_STUB;
340
+ const railX2 = targetX - LOOP_STUB;
341
+ return loopedPath(source, target, railX1, railX2, clearanceY);
342
+ }
343
+
344
+ // src/components/edges/obstacles-for.ts
345
+ var TOP_LEVEL = /* @__PURE__ */ Symbol("top-level scope");
346
+ function scopeOf(node) {
347
+ return node.parentId ?? TOP_LEVEL;
348
+ }
349
+ function boxContains(outer, inner) {
350
+ return outer.x <= inner.x && outer.y <= inner.y && outer.x + outer.width >= inner.x + inner.width && outer.y + outer.height >= inner.y + inner.height;
351
+ }
352
+ function obstaclesFor(edge, nodes) {
353
+ const byId = new Map(nodes.map((n) => [n.id, n]));
354
+ const source = byId.get(edge.sourceId);
355
+ const target = byId.get(edge.targetId);
356
+ if (!source || !target) return [];
357
+ const sourceScope = scopeOf(source);
358
+ const targetScope = scopeOf(target);
359
+ const candidates = /* @__PURE__ */ new Map();
360
+ const addScope = (scope) => {
361
+ for (const n of nodes) {
362
+ if (scopeOf(n) === scope) candidates.set(n.id, n);
363
+ }
364
+ };
365
+ if (sourceScope === TOP_LEVEL && targetScope === TOP_LEVEL) {
366
+ addScope(TOP_LEVEL);
367
+ } else if (sourceScope === targetScope) {
368
+ addScope(sourceScope);
369
+ } else {
370
+ addScope(TOP_LEVEL);
371
+ if (sourceScope !== TOP_LEVEL) addScope(sourceScope);
372
+ if (targetScope !== TOP_LEVEL) addScope(targetScope);
373
+ }
374
+ candidates.delete(source.id);
375
+ candidates.delete(target.id);
376
+ return [...candidates.values()].map((n) => n.box).filter((box) => !boxContains(box, source.box) && !boxContains(box, target.box));
377
+ }
378
+
379
+ // src/components/edges/scene-nodes.ts
380
+ function nodeBox(node) {
381
+ return {
382
+ x: node.internals.positionAbsolute.x,
383
+ y: node.internals.positionAbsolute.y,
384
+ width: node.measured.width ?? 0,
385
+ height: node.measured.height ?? 0
386
+ };
387
+ }
388
+ function selectSceneNodes(state) {
389
+ const scene = [];
390
+ for (const node of state.nodeLookup.values()) {
391
+ if (node.hidden) continue;
392
+ scene.push({ id: node.id, parentId: node.parentId, box: nodeBox(node) });
393
+ }
394
+ return scene;
395
+ }
396
+ function sameBox(a, b) {
397
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
398
+ }
399
+ function sceneNodesEqual(a, b) {
400
+ if (a.length !== b.length) return false;
401
+ return a.every((node, i) => {
402
+ const other = b[i];
403
+ return node.id === other.id && node.parentId === other.parentId && sameBox(node.box, other.box);
404
+ });
405
+ }
406
+
407
+ // src/components/edges/DependencyEdge.tsx
408
+ import { jsx as jsx4 } from "react/jsx-runtime";
409
+ var DEPENDENCY_EDGE_TYPE = "dependency";
410
+ function DependencyEdge({
411
+ id,
412
+ source,
413
+ target,
414
+ sourceX,
415
+ sourceY,
416
+ targetX,
417
+ targetY,
418
+ sourcePosition,
419
+ targetPosition,
420
+ style,
421
+ markerStart,
422
+ markerEnd
423
+ }) {
424
+ const sceneNodes = useStore(selectSceneNodes, sceneNodesEqual);
425
+ const endpointBox = (nodeId, x, y) => sceneNodes.find((n) => n.id === nodeId)?.box ?? { x, y, width: 0, height: 0 };
426
+ const { path, labelX, labelY } = computeDependencyEdgePath({
427
+ sourceX,
428
+ sourceY,
429
+ targetX,
430
+ targetY,
431
+ sourcePosition,
432
+ targetPosition,
433
+ sourceBox: endpointBox(source, sourceX, sourceY),
434
+ targetBox: endpointBox(target, targetX, targetY),
435
+ obstacleBoxes: obstaclesFor({ sourceId: source, targetId: target }, sceneNodes)
436
+ });
437
+ return /* @__PURE__ */ jsx4(
438
+ BaseEdge,
439
+ {
440
+ id,
441
+ path,
442
+ labelX,
443
+ labelY,
444
+ style,
445
+ markerStart,
446
+ markerEnd,
447
+ "data-edge-kind": "dependency"
448
+ }
449
+ );
450
+ }
451
+ var edgeTypes = { [DEPENDENCY_EDGE_TYPE]: DependencyEdge };
452
+
258
453
  // src/components/nodes/GroupNode.tsx
259
454
  import { Handle, Position } from "@xyflow/react";
260
455
  import { useCallback, useEffect, useRef, useState } from "react";
@@ -394,7 +589,7 @@ function gcArrangement(bundle, arrangement) {
394
589
 
395
590
  // src/components/nodes/GroupNode.tsx
396
591
  import "./GroupNode-EY63N53G.css";
397
- import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
592
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
398
593
  var HEADER_HEIGHT = 32;
399
594
  var ROW_HEIGHT = 22;
400
595
  var COLLAPSED_WIDTH = 220;
@@ -420,7 +615,7 @@ var GroupHeader = ({
420
615
  className: `lace-group-node__header lace-group-node__header--${collapsed ? "collapsed" : "expanded"}`,
421
616
  style: { height: HEADER_HEIGHT },
422
617
  children: [
423
- /* @__PURE__ */ jsx4(
618
+ /* @__PURE__ */ jsx5(
424
619
  "button",
425
620
  {
426
621
  type: "button",
@@ -428,10 +623,10 @@ var GroupHeader = ({
428
623
  className: "lace-group-node__collapse-btn",
429
624
  title: collapsed ? "Expand" : "Collapse",
430
625
  "aria-label": collapsed ? "Expand" : "Collapse",
431
- children: /* @__PURE__ */ jsx4("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: "10", height: "10", "aria-hidden": "true", children: collapsed ? /* @__PURE__ */ jsx4("path", { d: "M8 5l8 7-8 7V5z" }) : /* @__PURE__ */ jsx4("path", { d: "M5 8l7 8 7-8H5z" }) })
626
+ children: /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: "10", height: "10", "aria-hidden": "true", children: collapsed ? /* @__PURE__ */ jsx5("path", { d: "M8 5l8 7-8 7V5z" }) : /* @__PURE__ */ jsx5("path", { d: "M5 8l7 8 7-8H5z" }) })
432
627
  }
433
628
  ),
434
- editing ? /* @__PURE__ */ jsx4(
629
+ editing ? /* @__PURE__ */ jsx5(
435
630
  "input",
436
631
  {
437
632
  ref: inputRef,
@@ -442,9 +637,9 @@ var GroupHeader = ({
442
637
  className: "lace-group-node__rename-input",
443
638
  onClick: (e) => e.stopPropagation()
444
639
  }
445
- ) : /* @__PURE__ */ jsx4("span", { className: "lace-group-node__label", onDoubleClick, title: label, children: label }),
446
- /* @__PURE__ */ jsx4("span", { className: "lace-group-node__count", children: collapsed ? `${memberCount} nodes` : memberCount }),
447
- hovered && /* @__PURE__ */ jsx4(
640
+ ) : /* @__PURE__ */ jsx5("span", { className: "lace-group-node__label", onDoubleClick, title: label, children: label }),
641
+ /* @__PURE__ */ jsx5("span", { className: "lace-group-node__count", children: collapsed ? `${memberCount} nodes` : memberCount }),
642
+ hovered && /* @__PURE__ */ jsx5(
448
643
  "button",
449
644
  {
450
645
  type: "button",
@@ -452,7 +647,7 @@ var GroupHeader = ({
452
647
  className: "lace-group-node__ungroup-btn",
453
648
  title: "Ungroup",
454
649
  "aria-label": "Ungroup",
455
- children: /* @__PURE__ */ jsx4(
650
+ children: /* @__PURE__ */ jsx5(
456
651
  "svg",
457
652
  {
458
653
  viewBox: "0 0 24 24",
@@ -462,7 +657,7 @@ var GroupHeader = ({
462
657
  width: "8",
463
658
  height: "8",
464
659
  "aria-hidden": "true",
465
- children: /* @__PURE__ */ jsx4("path", { d: "M18 6L6 18M6 6l12 12" })
660
+ children: /* @__PURE__ */ jsx5("path", { d: "M18 6L6 18M6 6l12 12" })
466
661
  }
467
662
  )
468
663
  }
@@ -489,7 +684,7 @@ var AggregatedPinRow = ({ pin, top }) => {
489
684
  },
490
685
  title: pin.label,
491
686
  children: [
492
- /* @__PURE__ */ jsx4(
687
+ /* @__PURE__ */ jsx5(
493
688
  Handle,
494
689
  {
495
690
  id: pin.handleId,
@@ -509,7 +704,7 @@ var AggregatedPinRow = ({ pin, top }) => {
509
704
  }
510
705
  }
511
706
  ),
512
- /* @__PURE__ */ jsx4("span", { className: "lace-group-node__pin-label", style: { maxWidth: COLLAPSED_WIDTH - 28 }, children: pin.label })
707
+ /* @__PURE__ */ jsx5("span", { className: "lace-group-node__pin-label", style: { maxWidth: COLLAPSED_WIDTH - 28 }, children: pin.label })
513
708
  ]
514
709
  }
515
710
  );
@@ -613,16 +808,16 @@ var GroupNode = ({ data }) => {
613
808
  onMouseEnter: () => setHovered(true),
614
809
  onMouseLeave: () => setHovered(false),
615
810
  children: [
616
- /* @__PURE__ */ jsx4(GroupHeader, { ...headerProps }),
811
+ /* @__PURE__ */ jsx5(GroupHeader, { ...headerProps }),
617
812
  rowCount > 0 && /* @__PURE__ */ jsxs4("div", { style: { position: "relative", height: bodyHeight }, children: [
618
- inputPins.map((pin, i) => /* @__PURE__ */ jsx4(AggregatedPinRow, { pin, top: i * ROW_HEIGHT }, pin.handleId)),
619
- outputPins.map((pin, i) => /* @__PURE__ */ jsx4(AggregatedPinRow, { pin, top: i * ROW_HEIGHT }, pin.handleId))
813
+ inputPins.map((pin, i) => /* @__PURE__ */ jsx5(AggregatedPinRow, { pin, top: i * ROW_HEIGHT }, pin.handleId)),
814
+ outputPins.map((pin, i) => /* @__PURE__ */ jsx5(AggregatedPinRow, { pin, top: i * ROW_HEIGHT }, pin.handleId))
620
815
  ] })
621
816
  ]
622
817
  }
623
818
  );
624
819
  }
625
- return /* @__PURE__ */ jsx4(
820
+ return /* @__PURE__ */ jsx5(
626
821
  "div",
627
822
  {
628
823
  "data-group": data.groupId,
@@ -636,7 +831,7 @@ var GroupNode = ({ data }) => {
636
831
  },
637
832
  onMouseEnter: () => setHovered(true),
638
833
  onMouseLeave: () => setHovered(false),
639
- children: /* @__PURE__ */ jsx4(GroupHeader, { ...headerProps })
834
+ children: /* @__PURE__ */ jsx5(GroupHeader, { ...headerProps })
640
835
  }
641
836
  );
642
837
  };
@@ -714,7 +909,7 @@ function pinColor(pin) {
714
909
  }
715
910
 
716
911
  // src/components/nodes/ModuleNode.tsx
717
- import { Fragment as Fragment3, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
912
+ import { Fragment as Fragment3, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
718
913
  var NODE_WIDTH = 200;
719
914
  var HEADER_HEIGHT2 = 28;
720
915
  var ROW_HEIGHT2 = 22;
@@ -733,9 +928,9 @@ function BrokenIcon() {
733
928
  strokeLinejoin: "round",
734
929
  "aria-hidden": "true",
735
930
  children: [
736
- /* @__PURE__ */ jsx5("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
737
- /* @__PURE__ */ jsx5("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
738
- /* @__PURE__ */ jsx5("polyline", { points: "21 15 16 10 5 21" })
931
+ /* @__PURE__ */ jsx6("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
932
+ /* @__PURE__ */ jsx6("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
933
+ /* @__PURE__ */ jsx6("polyline", { points: "21 15 16 10 5 21" })
739
934
  ]
740
935
  }
741
936
  );
@@ -771,7 +966,7 @@ var PinRow = ({ pin, side, top, isError }) => {
771
966
  },
772
967
  title: `${pin.name}: ${pin.type}${pin.description ? ` \u2014 ${pin.description}` : ""}`,
773
968
  children: [
774
- /* @__PURE__ */ jsx5(
969
+ /* @__PURE__ */ jsx6(
775
970
  Handle2,
776
971
  {
777
972
  id: `${isInput ? "in" : "out"}:${pin.name}`,
@@ -781,7 +976,7 @@ var PinRow = ({ pin, side, top, isError }) => {
781
976
  style: handleStyle
782
977
  }
783
978
  ),
784
- /* @__PURE__ */ jsx5(
979
+ /* @__PURE__ */ jsx6(
785
980
  "span",
786
981
  {
787
982
  className: `lace-module-node__pin-row-label lace-module-node__pin-row-label--${isError ? "error" : "default"}`,
@@ -906,7 +1101,7 @@ var ModuleNode = ({ id, data }) => {
906
1101
  onClick: onHeaderClick,
907
1102
  title: hasAnyError ? data.error_messages?.join("\n") : data.label,
908
1103
  children: [
909
- /* @__PURE__ */ jsx5(
1104
+ /* @__PURE__ */ jsx6(
910
1105
  "button",
911
1106
  {
912
1107
  type: "button",
@@ -914,10 +1109,10 @@ var ModuleNode = ({ id, data }) => {
914
1109
  className: "lace-module-node__collapse-btn",
915
1110
  title: collapsed ? "Expand" : "Collapse",
916
1111
  "aria-label": collapsed ? "Expand" : "Collapse",
917
- children: /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: "10", height: "10", "aria-hidden": "true", children: collapsed ? /* @__PURE__ */ jsx5("path", { d: "M8 5l8 7-8 7V5z" }) : /* @__PURE__ */ jsx5("path", { d: "M5 8l7 8 7-8H5z" }) })
1112
+ children: /* @__PURE__ */ jsx6("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: "10", height: "10", "aria-hidden": "true", children: collapsed ? /* @__PURE__ */ jsx6("path", { d: "M8 5l8 7-8 7V5z" }) : /* @__PURE__ */ jsx6("path", { d: "M5 8l7 8 7-8H5z" }) })
918
1113
  }
919
1114
  ),
920
- showIcon ? /* @__PURE__ */ jsx5(
1115
+ showIcon ? /* @__PURE__ */ jsx6(
921
1116
  "img",
922
1117
  {
923
1118
  src: data.icon_url,
@@ -926,8 +1121,8 @@ var ModuleNode = ({ id, data }) => {
926
1121
  style: { width: ICON_SIZE, height: ICON_SIZE },
927
1122
  onError: () => setImgFailed(true)
928
1123
  }
929
- ) : /* @__PURE__ */ jsx5("div", { className: "lace-module-node__icon-fallback", children: /* @__PURE__ */ jsx5(BrokenIcon, {}) }),
930
- editing ? /* @__PURE__ */ jsx5(
1124
+ ) : /* @__PURE__ */ jsx6("div", { className: "lace-module-node__icon-fallback", children: /* @__PURE__ */ jsx6(BrokenIcon, {}) }),
1125
+ editing ? /* @__PURE__ */ jsx6(
931
1126
  "input",
932
1127
  {
933
1128
  ref: inputRef,
@@ -938,7 +1133,7 @@ var ModuleNode = ({ id, data }) => {
938
1133
  className: "lace-module-node__rename-input",
939
1134
  onClick: (e) => e.stopPropagation()
940
1135
  }
941
- ) : /* @__PURE__ */ jsx5(
1136
+ ) : /* @__PURE__ */ jsx6(
942
1137
  "span",
943
1138
  {
944
1139
  className: "lace-module-node__label",
@@ -947,7 +1142,7 @@ var ModuleNode = ({ id, data }) => {
947
1142
  children: data.label
948
1143
  }
949
1144
  ),
950
- hovered && !readOnly && /* @__PURE__ */ jsx5(
1145
+ hovered && !readOnly && /* @__PURE__ */ jsx6(
951
1146
  "button",
952
1147
  {
953
1148
  type: "button",
@@ -955,7 +1150,7 @@ var ModuleNode = ({ id, data }) => {
955
1150
  className: "lace-module-node__delete-btn",
956
1151
  title: "Delete instance",
957
1152
  "aria-label": "Delete instance",
958
- children: /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: "8", height: "8", "aria-hidden": "true", children: /* @__PURE__ */ jsx5("path", { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" }) })
1153
+ children: /* @__PURE__ */ jsx6("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: "8", height: "8", "aria-hidden": "true", children: /* @__PURE__ */ jsx6("path", { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" }) })
959
1154
  }
960
1155
  )
961
1156
  ]
@@ -964,7 +1159,7 @@ var ModuleNode = ({ id, data }) => {
964
1159
  !collapsed && /* @__PURE__ */ jsxs5("div", { className: "lace-module-node__body", style: { height: bodyHeight }, children: [
965
1160
  visibleInputs.map((pin, i) => {
966
1161
  const errored = !!pin.required && !pin.wired;
967
- return /* @__PURE__ */ jsx5(
1162
+ return /* @__PURE__ */ jsx6(
968
1163
  PinRow,
969
1164
  {
970
1165
  pin,
@@ -975,7 +1170,7 @@ var ModuleNode = ({ id, data }) => {
975
1170
  `in:${pin.name}`
976
1171
  );
977
1172
  }),
978
- outputs.map((pin, i) => /* @__PURE__ */ jsx5(PinRow, { pin, side: "output", top: i * ROW_HEIGHT2 }, `out:${pin.name}`)),
1173
+ outputs.map((pin, i) => /* @__PURE__ */ jsx6(PinRow, { pin, side: "output", top: i * ROW_HEIGHT2 }, `out:${pin.name}`)),
979
1174
  hiddenInputCount > 0 && /* @__PURE__ */ jsxs5(
980
1175
  "div",
981
1176
  {
@@ -1005,7 +1200,7 @@ var ModuleNode = ({ id, data }) => {
1005
1200
  collapsed && /* @__PURE__ */ jsxs5(Fragment3, { children: [
1006
1201
  inputs.map((pin, i) => {
1007
1202
  const color = pinColor(pin);
1008
- return /* @__PURE__ */ jsx5(
1203
+ return /* @__PURE__ */ jsx6(
1009
1204
  Handle2,
1010
1205
  {
1011
1206
  id: `in:${pin.name}`,
@@ -1028,7 +1223,7 @@ var ModuleNode = ({ id, data }) => {
1028
1223
  }),
1029
1224
  outputs.map((pin, i) => {
1030
1225
  const color = pinColor(pin);
1031
- return /* @__PURE__ */ jsx5(
1226
+ return /* @__PURE__ */ jsx6(
1032
1227
  Handle2,
1033
1228
  {
1034
1229
  id: `out:${pin.name}`,
@@ -1059,7 +1254,7 @@ var ModuleNode_default = ModuleNode;
1059
1254
  // src/components/panels/EdgeInspectorPanel.tsx
1060
1255
  import { Panel as Panel2 } from "@lace-cloud/ui";
1061
1256
  import "./EdgeInspectorPanel-D536U5MZ.css";
1062
- import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
1257
+ import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
1063
1258
  function EdgeInspectorPanel({
1064
1259
  source,
1065
1260
  target,
@@ -1070,26 +1265,26 @@ function EdgeInspectorPanel({
1070
1265
  }) {
1071
1266
  const { readOnly } = useCanvas();
1072
1267
  const title = /* @__PURE__ */ jsxs6("div", { children: [
1073
- /* @__PURE__ */ jsx6("div", { className: "lace-edge-panel__title-eyebrow", children: "Connection" }),
1268
+ /* @__PURE__ */ jsx7("div", { className: "lace-edge-panel__title-eyebrow", children: "Connection" }),
1074
1269
  /* @__PURE__ */ jsxs6("div", { className: "lace-edge-panel__title", children: [
1075
1270
  source,
1076
1271
  " \u2192 ",
1077
1272
  target
1078
1273
  ] })
1079
1274
  ] });
1080
- const footer = readOnly ? void 0 : /* @__PURE__ */ jsx6("button", { type: "button", className: "lace-edge-panel__delete-btn", onClick: onDelete, children: "Delete connection" });
1275
+ const footer = readOnly ? void 0 : /* @__PURE__ */ jsx7("button", { type: "button", className: "lace-edge-panel__delete-btn", onClick: onDelete, children: "Delete connection" });
1081
1276
  return /* @__PURE__ */ jsxs6(Panel2, { title, width: 380, footer, onClose, children: [
1082
- /* @__PURE__ */ jsx6("div", { className: "lace-edge-panel__section-label", children: "Wiring" }),
1277
+ /* @__PURE__ */ jsx7("div", { className: "lace-edge-panel__section-label", children: "Wiring" }),
1083
1278
  /* @__PURE__ */ jsxs6("div", { className: "lace-edge-panel__wiring", children: [
1084
1279
  source,
1085
1280
  ".outputs.",
1086
1281
  sourceOutput,
1087
- /* @__PURE__ */ jsx6("div", { className: "lace-edge-panel__wiring-arrow", children: "\u2193" }),
1282
+ /* @__PURE__ */ jsx7("div", { className: "lace-edge-panel__wiring-arrow", children: "\u2193" }),
1088
1283
  target,
1089
1284
  ".inputs.",
1090
1285
  targetInput
1091
1286
  ] }),
1092
- !readOnly && /* @__PURE__ */ jsx6("div", { className: "lace-edge-panel__hint", children: "Delete or press Backspace with the edge selected to remove this connection. Create new edges by dragging between the pins on each node's edge." })
1287
+ !readOnly && /* @__PURE__ */ jsx7("div", { className: "lace-edge-panel__hint", children: "Delete or press Backspace with the edge selected to remove this connection. Create new edges by dragging between the pins on each node's edge." })
1093
1288
  ] });
1094
1289
  }
1095
1290
 
@@ -1105,7 +1300,7 @@ function assertNever(value) {
1105
1300
  // src/components/AccordionSection.tsx
1106
1301
  import { useState as useState3 } from "react";
1107
1302
  import "./AccordionSection-RPWRZINZ.css";
1108
- import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
1303
+ import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
1109
1304
  function AccordionSection({ title, defaultOpen = false, badge, children }) {
1110
1305
  const [open, setOpen] = useState3(defaultOpen);
1111
1306
  return /* @__PURE__ */ jsxs7("div", { className: `lace-accordion${open ? " lace-accordion--open" : ""}`, children: [
@@ -1117,20 +1312,20 @@ function AccordionSection({ title, defaultOpen = false, badge, children }) {
1117
1312
  onClick: () => setOpen((v) => !v),
1118
1313
  "aria-expanded": open,
1119
1314
  children: [
1120
- /* @__PURE__ */ jsx7("svg", { className: "lace-accordion__chevron", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ jsx7("path", { d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z" }) }),
1121
- /* @__PURE__ */ jsx7("span", { className: "lace-accordion__title", children: title }),
1122
- badge && /* @__PURE__ */ jsx7("span", { className: "lace-accordion__badge", children: badge })
1315
+ /* @__PURE__ */ jsx8("svg", { className: "lace-accordion__chevron", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ jsx8("path", { d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z" }) }),
1316
+ /* @__PURE__ */ jsx8("span", { className: "lace-accordion__title", children: title }),
1317
+ badge && /* @__PURE__ */ jsx8("span", { className: "lace-accordion__badge", children: badge })
1123
1318
  ]
1124
1319
  }
1125
1320
  ),
1126
- /* @__PURE__ */ jsx7("div", { className: "lace-accordion__body", children: /* @__PURE__ */ jsx7("div", { className: "lace-accordion__body-inner", children: /* @__PURE__ */ jsx7("div", { className: "lace-accordion__body-content", children }) }) })
1321
+ /* @__PURE__ */ jsx8("div", { className: "lace-accordion__body", children: /* @__PURE__ */ jsx8("div", { className: "lace-accordion__body-inner", children: /* @__PURE__ */ jsx8("div", { className: "lace-accordion__body-content", children }) }) })
1127
1322
  ] });
1128
1323
  }
1129
1324
 
1130
1325
  // src/components/panels/ModuleConfigPanel.tsx
1131
1326
  import "./ModuleConfigPanel-LZRL4F3Q.css";
1132
1327
  import "./panels-shared-LLLB7PR4.css";
1133
- import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
1328
+ import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
1134
1329
  var MODE_ITEMS = [
1135
1330
  { value: "literal", label: "Lit" },
1136
1331
  { value: "variable", label: "Var" },
@@ -1298,7 +1493,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1298
1493
  ...m,
1299
1494
  disabled: readOnly || m.value === "wired" || isWired
1300
1495
  }));
1301
- return /* @__PURE__ */ jsx8(
1496
+ return /* @__PURE__ */ jsx9(
1302
1497
  ModeToggle,
1303
1498
  {
1304
1499
  value: currentMode,
@@ -1313,7 +1508,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1313
1508
  return /* @__PURE__ */ jsxs8("div", { className: "lace-panel-field", children: [
1314
1509
  /* @__PURE__ */ jsxs8("label", { className: "lace-panel-row-label", children: [
1315
1510
  input.name,
1316
- input.required && /* @__PURE__ */ jsx8("span", { className: "lace-mcp__required-star", children: "*" })
1511
+ input.required && /* @__PURE__ */ jsx9("span", { className: "lace-mcp__required-star", children: "*" })
1317
1512
  ] }),
1318
1513
  renderModeSelector(input),
1319
1514
  /* @__PURE__ */ jsxs8("div", { className: "lace-panel-row-content", children: [
@@ -1322,15 +1517,15 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1322
1517
  currentMode === "expression" && renderExpressionEditor(input),
1323
1518
  currentMode === "literal" && renderLiteralEditor(input)
1324
1519
  ] }),
1325
- input.description && /* @__PURE__ */ jsx8("div", { className: "lace-panel-field__description", children: input.description })
1520
+ input.description && /* @__PURE__ */ jsx9("div", { className: "lace-panel-field__description", children: input.description })
1326
1521
  ] }, input.name);
1327
1522
  }
1328
1523
  function renderWiredEditor(input) {
1329
1524
  const label = input.wired_source ?? "Not wired";
1330
1525
  return /* @__PURE__ */ jsxs8("div", { className: "lace-mcp__wired-row", children: [
1331
- /* @__PURE__ */ jsx8("div", { className: "lace-mcp__wired-input", children: /* @__PURE__ */ jsx8(Input, { value: label, readOnly: true, fullWidth: true, mono: true }) }),
1332
- /* @__PURE__ */ jsx8(Badge, { variant: "info", size: "md", children: "Wired" }),
1333
- !readOnly && /* @__PURE__ */ jsx8(
1526
+ /* @__PURE__ */ jsx9("div", { className: "lace-mcp__wired-input", children: /* @__PURE__ */ jsx9(Input, { value: label, readOnly: true, fullWidth: true, mono: true }) }),
1527
+ /* @__PURE__ */ jsx9(Badge, { variant: "info", size: "md", children: "Wired" }),
1528
+ !readOnly && /* @__PURE__ */ jsx9(
1334
1529
  Button,
1335
1530
  {
1336
1531
  variant: "danger",
@@ -1345,7 +1540,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1345
1540
  }
1346
1541
  function renderVariableEditor(input) {
1347
1542
  const currentVar = localVariables[input.name] ?? input.variable ?? "";
1348
- return /* @__PURE__ */ jsx8(
1543
+ return /* @__PURE__ */ jsx9(
1349
1544
  Input,
1350
1545
  {
1351
1546
  value: currentVar,
@@ -1363,7 +1558,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1363
1558
  }
1364
1559
  function renderExpressionEditor(input) {
1365
1560
  const currentExpr = localExpressions[input.name] ?? input.expression ?? "";
1366
- return /* @__PURE__ */ jsx8(
1561
+ return /* @__PURE__ */ jsx9(
1367
1562
  Textarea,
1368
1563
  {
1369
1564
  value: currentExpr,
@@ -1391,14 +1586,14 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1391
1586
  onChange: (e) => updateValue(e.target.value === "true"),
1392
1587
  disabled: readOnly,
1393
1588
  children: [
1394
- /* @__PURE__ */ jsx8("option", { value: "true", children: "True" }),
1395
- /* @__PURE__ */ jsx8("option", { value: "false", children: "False" })
1589
+ /* @__PURE__ */ jsx9("option", { value: "true", children: "True" }),
1590
+ /* @__PURE__ */ jsx9("option", { value: "false", children: "False" })
1396
1591
  ]
1397
1592
  }
1398
1593
  );
1399
1594
  }
1400
1595
  if (type === "number") {
1401
- return /* @__PURE__ */ jsx8(
1596
+ return /* @__PURE__ */ jsx9(
1402
1597
  Input,
1403
1598
  {
1404
1599
  type: "number",
@@ -1411,7 +1606,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1411
1606
  }
1412
1607
  if (type.startsWith("list(") || type.startsWith("map(") || type.startsWith("set(") || type === "object" || type.startsWith("object(")) {
1413
1608
  const jsonStr = typeof value === "string" ? value : JSON.stringify(value ?? null, null, 2);
1414
- return /* @__PURE__ */ jsx8(
1609
+ return /* @__PURE__ */ jsx9(
1415
1610
  Textarea,
1416
1611
  {
1417
1612
  value: jsonStr,
@@ -1429,7 +1624,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1429
1624
  }
1430
1625
  );
1431
1626
  }
1432
- return /* @__PURE__ */ jsx8(
1627
+ return /* @__PURE__ */ jsx9(
1433
1628
  Input,
1434
1629
  {
1435
1630
  value: String(value ?? ""),
@@ -1452,32 +1647,32 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1452
1647
  instance_id,
1453
1648
  '":'
1454
1649
  ] }),
1455
- /* @__PURE__ */ jsx8("div", { className: "lace-mcp__error-detail", children: error })
1650
+ /* @__PURE__ */ jsx9("div", { className: "lace-mcp__error-detail", children: error })
1456
1651
  ] });
1457
1652
  }
1458
1653
  if (loading || !config) {
1459
- return /* @__PURE__ */ jsx8(Panel3, { title: "Loading...", onClose, children: /* @__PURE__ */ jsx8("div", { className: "lace-panel-hint", children: "Loading configuration..." }) });
1654
+ return /* @__PURE__ */ jsx9(Panel3, { title: "Loading...", onClose, children: /* @__PURE__ */ jsx9("div", { className: "lace-panel-hint", children: "Loading configuration..." }) });
1460
1655
  }
1461
1656
  const dependsOnCount = localDependsOn.size;
1462
1657
  const title = /* @__PURE__ */ jsxs8("div", { className: "lace-mcp__title", children: [
1463
- /* @__PURE__ */ jsx8("div", { className: "lace-mcp__title-eyebrow", children: "Module" }),
1464
- /* @__PURE__ */ jsx8("h3", { className: "lace-mcp__title-id", children: instance_id })
1658
+ /* @__PURE__ */ jsx9("div", { className: "lace-mcp__title-eyebrow", children: "Module" }),
1659
+ /* @__PURE__ */ jsx9("h3", { className: "lace-mcp__title-id", children: instance_id })
1465
1660
  ] });
1466
- const footer = readOnly ? void 0 : /* @__PURE__ */ jsx8(Button, { variant: "primary", fullWidth: true, onClick: handleSave, children: "Save configuration" });
1661
+ const footer = readOnly ? void 0 : /* @__PURE__ */ jsx9(Button, { variant: "primary", fullWidth: true, onClick: handleSave, children: "Save configuration" });
1467
1662
  return /* @__PURE__ */ jsxs8(Panel3, { title, footer, scrollable: false, onClose, children: [
1468
- requiredInputs.length > 0 && /* @__PURE__ */ jsx8(AccordionSection, { title: "Required Inputs", defaultOpen: true, badge: `(${requiredInputs.length})`, children: requiredInputs.map(renderInputField) }),
1469
- optionalInputs.length > 0 && /* @__PURE__ */ jsx8(AccordionSection, { title: "Optional Inputs", defaultOpen: true, badge: `(${optionalInputs.length})`, children: optionalInputs.map(renderInputField) }),
1663
+ requiredInputs.length > 0 && /* @__PURE__ */ jsx9(AccordionSection, { title: "Required Inputs", defaultOpen: true, badge: `(${requiredInputs.length})`, children: requiredInputs.map(renderInputField) }),
1664
+ optionalInputs.length > 0 && /* @__PURE__ */ jsx9(AccordionSection, { title: "Optional Inputs", defaultOpen: true, badge: `(${optionalInputs.length})`, children: optionalInputs.map(renderInputField) }),
1470
1665
  config.sibling_ids.length > 0 && /* @__PURE__ */ jsxs8(
1471
1666
  AccordionSection,
1472
1667
  {
1473
1668
  title: "Depends On",
1474
1669
  badge: dependsOnCount > 0 ? `(${dependsOnCount})` : void 0,
1475
1670
  children: [
1476
- /* @__PURE__ */ jsx8("div", { className: "lace-mcp__depends-hint", children: "Select sibling instances this module depends on." }),
1671
+ /* @__PURE__ */ jsx9("div", { className: "lace-mcp__depends-hint", children: "Select sibling instances this module depends on." }),
1477
1672
  config.sibling_ids.map((sibId) => {
1478
1673
  const depKey = `module.${sibId}`;
1479
1674
  return /* @__PURE__ */ jsxs8("label", { className: "lace-mcp__depends-item", children: [
1480
- /* @__PURE__ */ jsx8(
1675
+ /* @__PURE__ */ jsx9(
1481
1676
  "input",
1482
1677
  {
1483
1678
  type: "checkbox",
@@ -1494,7 +1689,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1494
1689
  }
1495
1690
  }
1496
1691
  ),
1497
- /* @__PURE__ */ jsx8("span", { className: "lace-mcp__depends-label", children: depKey })
1692
+ /* @__PURE__ */ jsx9("span", { className: "lace-mcp__depends-label", children: depKey })
1498
1693
  ] }, sibId);
1499
1694
  })
1500
1695
  ]
@@ -1509,15 +1704,15 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1509
1704
  /* @__PURE__ */ jsxs8("div", { className: "lace-mcp__depends-hint", children: [
1510
1705
  "Map each child-local provider name to the root provider reference passed down (e.g.",
1511
1706
  " ",
1512
- /* @__PURE__ */ jsx8("code", { children: "aws" }),
1707
+ /* @__PURE__ */ jsx9("code", { children: "aws" }),
1513
1708
  " \u2192 ",
1514
- /* @__PURE__ */ jsx8("code", { children: "aws.west" }),
1709
+ /* @__PURE__ */ jsx9("code", { children: "aws.west" }),
1515
1710
  ")."
1516
1711
  ] }),
1517
1712
  localProviders.map((row, i) => (
1518
1713
  // biome-ignore lint/suspicious/noArrayIndexKey: rows are positional and freely editable
1519
1714
  /* @__PURE__ */ jsxs8("div", { className: "lace-mcp__provider-row", children: [
1520
- /* @__PURE__ */ jsx8(
1715
+ /* @__PURE__ */ jsx9(
1521
1716
  Input,
1522
1717
  {
1523
1718
  value: row.key,
@@ -1529,8 +1724,8 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1529
1724
  readOnly
1530
1725
  }
1531
1726
  ),
1532
- /* @__PURE__ */ jsx8("span", { className: "lace-mcp__provider-arrow", children: "=" }),
1533
- /* @__PURE__ */ jsx8(
1727
+ /* @__PURE__ */ jsx9("span", { className: "lace-mcp__provider-arrow", children: "=" }),
1728
+ /* @__PURE__ */ jsx9(
1534
1729
  Input,
1535
1730
  {
1536
1731
  value: row.value,
@@ -1542,7 +1737,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1542
1737
  readOnly
1543
1738
  }
1544
1739
  ),
1545
- !readOnly && /* @__PURE__ */ jsx8(
1740
+ !readOnly && /* @__PURE__ */ jsx9(
1546
1741
  Button,
1547
1742
  {
1548
1743
  variant: "danger",
@@ -1555,7 +1750,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1555
1750
  )
1556
1751
  ] }, i)
1557
1752
  )),
1558
- !readOnly && /* @__PURE__ */ jsx8(
1753
+ !readOnly && /* @__PURE__ */ jsx9(
1559
1754
  Button,
1560
1755
  {
1561
1756
  variant: "secondary",
@@ -1567,13 +1762,13 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1567
1762
  ]
1568
1763
  }
1569
1764
  ),
1570
- config.outputs.length > 0 && /* @__PURE__ */ jsx8(AccordionSection, { title: "Outputs", badge: `(${config.outputs.length})`, children: config.outputs.map((o) => /* @__PURE__ */ jsxs8("div", { className: "lace-mcp__output-card", children: [
1765
+ config.outputs.length > 0 && /* @__PURE__ */ jsx9(AccordionSection, { title: "Outputs", badge: `(${config.outputs.length})`, children: config.outputs.map((o) => /* @__PURE__ */ jsxs8("div", { className: "lace-mcp__output-card", children: [
1571
1766
  /* @__PURE__ */ jsxs8("div", { className: "lace-mcp__output-header", children: [
1572
- /* @__PURE__ */ jsx8("strong", { className: "lace-mcp__output-name", children: o.name }),
1573
- /* @__PURE__ */ jsx8("span", { className: "lace-mcp__output-type", children: o.type ?? "" })
1767
+ /* @__PURE__ */ jsx9("strong", { className: "lace-mcp__output-name", children: o.name }),
1768
+ /* @__PURE__ */ jsx9("span", { className: "lace-mcp__output-type", children: o.type ?? "" })
1574
1769
  ] }),
1575
- o.description && /* @__PURE__ */ jsx8("div", { className: "lace-mcp__output-description", children: o.description }),
1576
- o.sensitive && /* @__PURE__ */ jsx8("div", { className: "lace-mcp__output-sensitive", children: "sensitive" })
1770
+ o.description && /* @__PURE__ */ jsx9("div", { className: "lace-mcp__output-description", children: o.description }),
1771
+ o.sensitive && /* @__PURE__ */ jsx9("div", { className: "lace-mcp__output-sensitive", children: "sensitive" })
1577
1772
  ] }, o.name)) })
1578
1773
  ] });
1579
1774
  }
@@ -1582,7 +1777,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1582
1777
  import { Panel as Panel4 } from "@lace-cloud/ui";
1583
1778
  import { useEffect as useEffect4, useState as useState5 } from "react";
1584
1779
  import "./panels-shared-LLLB7PR4.css";
1585
- import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1780
+ import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1586
1781
  var NODE_HOVER_EVENT = "lace:canvas:nodeHover";
1587
1782
  var HOVER_DEBOUNCE_MS = 150;
1588
1783
  var MODE_LABELS = {
@@ -1631,7 +1826,7 @@ function PolicySidebar({ resolution, onPreview, onClose, readOnly }) {
1631
1826
  {
1632
1827
  title: /* @__PURE__ */ jsxs9("h3", { className: "lace-panel__title", children: [
1633
1828
  "Policy",
1634
- resolution?.isAuthoringTimePreview ? /* @__PURE__ */ jsx9(
1829
+ resolution?.isAuthoringTimePreview ? /* @__PURE__ */ jsx10(
1635
1830
  "span",
1636
1831
  {
1637
1832
  style: {
@@ -1649,14 +1844,14 @@ function PolicySidebar({ resolution, onPreview, onClose, readOnly }) {
1649
1844
  ] }),
1650
1845
  onClose,
1651
1846
  children: [
1652
- resolution ? /* @__PURE__ */ jsx9(ResolutionView, { resolution }) : /* @__PURE__ */ jsx9("p", { style: { padding: 12, color: "var(--lace-text-muted)" }, children: "Waiting for first evaluation\u2026" }),
1847
+ resolution ? /* @__PURE__ */ jsx10(ResolutionView, { resolution }) : /* @__PURE__ */ jsx10("p", { style: { padding: 12, color: "var(--lace-text-muted)" }, children: "Waiting for first evaluation\u2026" }),
1653
1848
  counterfactual ? /* @__PURE__ */ jsxs9("section", { style: { borderTop: "1px solid var(--lace-policy-section-divider)", padding: 12 }, children: [
1654
1849
  /* @__PURE__ */ jsxs9("h4", { style: { margin: "0 0 6px 0", fontSize: 12, color: "var(--lace-text-description)" }, children: [
1655
1850
  "If ",
1656
- /* @__PURE__ */ jsx9("code", { children: counterfactual.nodeId }),
1851
+ /* @__PURE__ */ jsx10("code", { children: counterfactual.nodeId }),
1657
1852
  " were removed"
1658
1853
  ] }),
1659
- /* @__PURE__ */ jsx9(ResolutionView, { resolution: counterfactual.resolution, compact: true })
1854
+ /* @__PURE__ */ jsx10(ResolutionView, { resolution: counterfactual.resolution, compact: true })
1660
1855
  ] }) : null
1661
1856
  ]
1662
1857
  }
@@ -1681,12 +1876,12 @@ function ResolutionView({
1681
1876
  ]
1682
1877
  }
1683
1878
  ),
1684
- resolution.reason ? /* @__PURE__ */ jsx9("p", { style: { fontSize: 12, color: "var(--lace-text-description)", margin: "0 0 8px 0" }, children: resolution.reason }) : null,
1879
+ resolution.reason ? /* @__PURE__ */ jsx10("p", { style: { fontSize: 12, color: "var(--lace-text-description)", margin: "0 0 8px 0" }, children: resolution.reason }) : null,
1685
1880
  resolution.rulesFired.length > 0 ? /* @__PURE__ */ jsxs9("div", { style: { fontSize: 12, color: "var(--lace-text-description)", marginBottom: 8 }, children: [
1686
- /* @__PURE__ */ jsx9("span", { style: { color: "var(--lace-text-muted)" }, children: "Rules fired: " }),
1881
+ /* @__PURE__ */ jsx10("span", { style: { color: "var(--lace-text-muted)" }, children: "Rules fired: " }),
1687
1882
  resolution.rulesFired.join(", ")
1688
1883
  ] }) : null,
1689
- resolution.conditionTrace.length > 0 ? /* @__PURE__ */ jsx9("ul", { style: { listStyle: "none", padding: 0, margin: 0 }, children: resolution.conditionTrace.map((trace) => /* @__PURE__ */ jsx9(ConditionTraceRow, { trace }, `${trace.policyId}-${trace.label}`)) }) : null
1884
+ resolution.conditionTrace.length > 0 ? /* @__PURE__ */ jsx10("ul", { style: { listStyle: "none", padding: 0, margin: 0 }, children: resolution.conditionTrace.map((trace) => /* @__PURE__ */ jsx10(ConditionTraceRow, { trace }, `${trace.policyId}-${trace.label}`)) }) : null
1690
1885
  ] });
1691
1886
  }
1692
1887
  function ConditionTraceRow({ trace }) {
@@ -1703,9 +1898,9 @@ function ConditionTraceRow({ trace }) {
1703
1898
  /* @__PURE__ */ jsxs9("div", { style: { fontSize: 12, fontWeight: 500 }, children: [
1704
1899
  trace.label || trace.policyId,
1705
1900
  " ",
1706
- /* @__PURE__ */ jsx9("span", { style: { color: "var(--lace-text-muted)", fontWeight: 400 }, children: trace.fired ? "\u2014 fired" : "\u2014 did not fire" })
1901
+ /* @__PURE__ */ jsx10("span", { style: { color: "var(--lace-text-muted)", fontWeight: 400 }, children: trace.fired ? "\u2014 fired" : "\u2014 did not fire" })
1707
1902
  ] }),
1708
- trace.predicates.length > 0 ? /* @__PURE__ */ jsx9("ul", { style: { listStyle: "none", padding: "4px 0 0 0", margin: 0 }, children: trace.predicates.map((p) => /* @__PURE__ */ jsx9(PredicateRow, { predicate: p }, p.predicate)) }) : null
1903
+ trace.predicates.length > 0 ? /* @__PURE__ */ jsx10("ul", { style: { listStyle: "none", padding: "4px 0 0 0", margin: 0 }, children: trace.predicates.map((p) => /* @__PURE__ */ jsx10(PredicateRow, { predicate: p }, p.predicate)) }) : null
1709
1904
  ]
1710
1905
  }
1711
1906
  );
@@ -1715,7 +1910,7 @@ function PredicateRow({ predicate }) {
1715
1910
  return /* @__PURE__ */ jsxs9("li", { style: { fontSize: 11, color: "var(--lace-text-muted)", fontFamily: "monospace" }, children: [
1716
1911
  predicate.predicate,
1717
1912
  " ",
1718
- /* @__PURE__ */ jsx9(
1913
+ /* @__PURE__ */ jsx10(
1719
1914
  "span",
1720
1915
  {
1721
1916
  style: {
@@ -1741,7 +1936,7 @@ function PredicateRow({ predicate }) {
1741
1936
  predicate.predicate,
1742
1937
  " ",
1743
1938
  predicate.fired ? "\u2713" : "\xB7",
1744
- predicate.evaluated ? /* @__PURE__ */ jsx9(
1939
+ predicate.evaluated ? /* @__PURE__ */ jsx10(
1745
1940
  "span",
1746
1941
  {
1747
1942
  style: {
@@ -1763,7 +1958,7 @@ import { resolveScopePositions } from "@lace-cloud/proto";
1763
1958
  import { Button as Button2, Input as Input2, Panel as Panel5, Spinner } from "@lace-cloud/ui";
1764
1959
  import { useCallback as useCallback4, useEffect as useEffect5, useMemo as useMemo3, useState as useState6 } from "react";
1765
1960
  import "./RegistryBrowser-3G22I4EO.css";
1766
- import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
1961
+ import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
1767
1962
  function RegistryBrowser({
1768
1963
  registryBaseUrl,
1769
1964
  apiToken,
@@ -1863,8 +2058,8 @@ function RegistryBrowser({
1863
2058
  },
1864
2059
  [engine, arrangement, updateArrangement, onClose, readOnly, showToast]
1865
2060
  );
1866
- return /* @__PURE__ */ jsx10(Panel5, { title: "Registry", width: 380, onClose, scrollable: true, children: /* @__PURE__ */ jsxs10("div", { className: "lace-registry-browser", children: [
1867
- /* @__PURE__ */ jsx10("div", { className: "lace-registry-browser__search", children: /* @__PURE__ */ jsx10(
2061
+ return /* @__PURE__ */ jsx11(Panel5, { title: "Registry", width: 380, onClose, scrollable: true, children: /* @__PURE__ */ jsxs10("div", { className: "lace-registry-browser", children: [
2062
+ /* @__PURE__ */ jsx11("div", { className: "lace-registry-browser__search", children: /* @__PURE__ */ jsx11(
1868
2063
  Input2,
1869
2064
  {
1870
2065
  value: search,
@@ -1874,18 +2069,18 @@ function RegistryBrowser({
1874
2069
  }
1875
2070
  ) }),
1876
2071
  loading ? /* @__PURE__ */ jsxs10("div", { className: "lace-registry-browser__state", children: [
1877
- /* @__PURE__ */ jsx10(Spinner, {}),
1878
- /* @__PURE__ */ jsx10("span", { children: "Loading registry..." })
1879
- ] }) : error ? /* @__PURE__ */ jsx10("div", { className: "lace-registry-browser__state lace-registry-browser__state--error", children: /* @__PURE__ */ jsx10("span", { children: error }) }) : filtered.length === 0 ? /* @__PURE__ */ jsx10("div", { className: "lace-registry-browser__state lace-registry-browser__state--empty", children: modules.length === 0 ? "No modules found in the registry." : "No modules match your search." }) : /* @__PURE__ */ jsx10("ul", { className: "lace-registry-browser__list", children: filtered.map((mod) => /* @__PURE__ */ jsxs10("li", { className: "lace-registry-browser__item", children: [
2072
+ /* @__PURE__ */ jsx11(Spinner, {}),
2073
+ /* @__PURE__ */ jsx11("span", { children: "Loading registry..." })
2074
+ ] }) : error ? /* @__PURE__ */ jsx11("div", { className: "lace-registry-browser__state lace-registry-browser__state--error", children: /* @__PURE__ */ jsx11("span", { children: error }) }) : filtered.length === 0 ? /* @__PURE__ */ jsx11("div", { className: "lace-registry-browser__state lace-registry-browser__state--empty", children: modules.length === 0 ? "No modules found in the registry." : "No modules match your search." }) : /* @__PURE__ */ jsx11("ul", { className: "lace-registry-browser__list", children: filtered.map((mod) => /* @__PURE__ */ jsxs10("li", { className: "lace-registry-browser__item", children: [
1880
2075
  /* @__PURE__ */ jsxs10("div", { className: "lace-registry-browser__item-info", children: [
1881
- /* @__PURE__ */ jsx10("div", { className: "lace-registry-browser__item-name", children: mod.display_name ?? mod.name }),
2076
+ /* @__PURE__ */ jsx11("div", { className: "lace-registry-browser__item-name", children: mod.display_name ?? mod.name }),
1882
2077
  /* @__PURE__ */ jsxs10("div", { className: "lace-registry-browser__item-author", children: [
1883
2078
  "by ",
1884
2079
  mod.author
1885
2080
  ] }),
1886
- mod.description ? /* @__PURE__ */ jsx10("div", { className: "lace-registry-browser__item-desc", children: mod.description }) : null
2081
+ mod.description ? /* @__PURE__ */ jsx11("div", { className: "lace-registry-browser__item-desc", children: mod.description }) : null
1887
2082
  ] }),
1888
- !readOnly ? /* @__PURE__ */ jsx10(
2083
+ !readOnly ? /* @__PURE__ */ jsx11(
1889
2084
  Button2,
1890
2085
  {
1891
2086
  variant: "primary",
@@ -1967,7 +2162,7 @@ function findDuplicateIndices(items, keyFn) {
1967
2162
 
1968
2163
  // src/components/SaveButton.tsx
1969
2164
  import { Button as Button3 } from "@lace-cloud/ui";
1970
- import { jsx as jsx11 } from "react/jsx-runtime";
2165
+ import { jsx as jsx12 } from "react/jsx-runtime";
1971
2166
  var variantByStatus = {
1972
2167
  idle: "primary",
1973
2168
  saving: "primary",
@@ -1980,7 +2175,7 @@ var labelByStatus = {
1980
2175
  error: "Save failed \u2014 try again"
1981
2176
  };
1982
2177
  function SaveButton({ status, label, onClick, disabled, disabledTitle }) {
1983
- return /* @__PURE__ */ jsx11(
2178
+ return /* @__PURE__ */ jsx12(
1984
2179
  Button3,
1985
2180
  {
1986
2181
  variant: variantByStatus[status],
@@ -1996,7 +2191,7 @@ function SaveButton({ status, label, onClick, disabled, disabledTitle }) {
1996
2191
 
1997
2192
  // src/components/panels/EnvironmentsPanel.tsx
1998
2193
  import "./panels-shared-LLLB7PR4.css";
1999
- import { Fragment as Fragment4, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
2194
+ import { Fragment as Fragment4, jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
2000
2195
  function toEnvRows(envs) {
2001
2196
  if (!envs) return [];
2002
2197
  return Object.entries(envs).map(([name, vars]) => ({
@@ -2087,7 +2282,7 @@ function EnvironmentsContent({ environments, readOnly = false, onSave }) {
2087
2282
  return /* @__PURE__ */ jsxs11(Fragment4, { children: [
2088
2283
  envRows.map((env, ei) => /* @__PURE__ */ jsxs11("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
2089
2284
  /* @__PURE__ */ jsxs11("div", { className: "lace-panel-row-actions", children: [
2090
- /* @__PURE__ */ jsx12(
2285
+ /* @__PURE__ */ jsx13(
2091
2286
  Input3,
2092
2287
  {
2093
2288
  value: env.name,
@@ -2098,7 +2293,7 @@ function EnvironmentsContent({ environments, readOnly = false, onSave }) {
2098
2293
  readOnly
2099
2294
  }
2100
2295
  ),
2101
- !readOnly && /* @__PURE__ */ jsx12(
2296
+ !readOnly && /* @__PURE__ */ jsx13(
2102
2297
  "button",
2103
2298
  {
2104
2299
  type: "button",
@@ -2109,10 +2304,10 @@ function EnvironmentsContent({ environments, readOnly = false, onSave }) {
2109
2304
  }
2110
2305
  )
2111
2306
  ] }),
2112
- envNameDupes.has(ei) && /* @__PURE__ */ jsx12("div", { className: "lace-panel-row-error", children: "Duplicate environment name" }),
2113
- /* @__PURE__ */ jsx12("div", { className: "lace-panel-row-sublabel", children: "Variable overrides" }),
2307
+ envNameDupes.has(ei) && /* @__PURE__ */ jsx13("div", { className: "lace-panel-row-error", children: "Duplicate environment name" }),
2308
+ /* @__PURE__ */ jsx13("div", { className: "lace-panel-row-sublabel", children: "Variable overrides" }),
2114
2309
  env.vars.map((v, vi) => /* @__PURE__ */ jsxs11("div", { className: "lace-panel-row-actions", children: [
2115
- /* @__PURE__ */ jsx12(
2310
+ /* @__PURE__ */ jsx13(
2116
2311
  Input3,
2117
2312
  {
2118
2313
  value: v.key,
@@ -2124,7 +2319,7 @@ function EnvironmentsContent({ environments, readOnly = false, onSave }) {
2124
2319
  readOnly
2125
2320
  }
2126
2321
  ),
2127
- /* @__PURE__ */ jsx12(
2322
+ /* @__PURE__ */ jsx13(
2128
2323
  Input3,
2129
2324
  {
2130
2325
  value: v.value,
@@ -2134,7 +2329,7 @@ function EnvironmentsContent({ environments, readOnly = false, onSave }) {
2134
2329
  readOnly
2135
2330
  }
2136
2331
  ),
2137
- !readOnly && /* @__PURE__ */ jsx12(
2332
+ !readOnly && /* @__PURE__ */ jsx13(
2138
2333
  "button",
2139
2334
  {
2140
2335
  type: "button",
@@ -2145,7 +2340,7 @@ function EnvironmentsContent({ environments, readOnly = false, onSave }) {
2145
2340
  }
2146
2341
  )
2147
2342
  ] }, v.id)),
2148
- !readOnly && /* @__PURE__ */ jsx12(
2343
+ !readOnly && /* @__PURE__ */ jsx13(
2149
2344
  "button",
2150
2345
  {
2151
2346
  type: "button",
@@ -2156,8 +2351,8 @@ function EnvironmentsContent({ environments, readOnly = false, onSave }) {
2156
2351
  )
2157
2352
  ] }, env.id)),
2158
2353
  !readOnly && /* @__PURE__ */ jsxs11(Fragment4, { children: [
2159
- /* @__PURE__ */ jsx12("button", { type: "button", onClick: addEnv, className: "lace-panel-add-btn", children: "+ Add environment" }),
2160
- /* @__PURE__ */ jsx12(
2354
+ /* @__PURE__ */ jsx13("button", { type: "button", onClick: addEnv, className: "lace-panel-add-btn", children: "+ Add environment" }),
2355
+ /* @__PURE__ */ jsx13(
2161
2356
  SaveButton,
2162
2357
  {
2163
2358
  status: saveStatus,
@@ -2167,19 +2362,19 @@ function EnvironmentsContent({ environments, readOnly = false, onSave }) {
2167
2362
  disabledTitle: "Fix duplicate names before saving"
2168
2363
  }
2169
2364
  ),
2170
- hasDuplicates && /* @__PURE__ */ jsx12("div", { className: "lace-panel-row-error", children: "Fix duplicate environment or variable names before saving." })
2365
+ hasDuplicates && /* @__PURE__ */ jsx13("div", { className: "lace-panel-row-error", children: "Fix duplicate environment or variable names before saving." })
2171
2366
  ] })
2172
2367
  ] });
2173
2368
  }
2174
2369
  function EnvironmentsPanel({ environments, onSave, onClose }) {
2175
- return /* @__PURE__ */ jsx12(Panel6, { title: "Environments", onClose, children: /* @__PURE__ */ jsx12(EnvironmentsContent, { environments, onSave }) });
2370
+ return /* @__PURE__ */ jsx13(Panel6, { title: "Environments", onClose, children: /* @__PURE__ */ jsx13(EnvironmentsContent, { environments, onSave }) });
2176
2371
  }
2177
2372
 
2178
2373
  // src/components/panels/LocalsPanel.tsx
2179
2374
  import { Input as Input4, ModeToggle as ModeToggle2, Panel as Panel7, Textarea as Textarea2 } from "@lace-cloud/ui";
2180
2375
  import { useCallback as useCallback7, useState as useState9 } from "react";
2181
2376
  import "./panels-shared-LLLB7PR4.css";
2182
- import { Fragment as Fragment5, jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
2377
+ import { Fragment as Fragment5, jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
2183
2378
  function toRows(locals) {
2184
2379
  if (!locals) return [];
2185
2380
  return locals.map((l) => ({
@@ -2235,7 +2430,7 @@ function LocalsContent({ locals, readOnly = false, onSave }) {
2235
2430
  return /* @__PURE__ */ jsxs12(Fragment5, { children: [
2236
2431
  rows.map((row, i) => /* @__PURE__ */ jsxs12("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
2237
2432
  /* @__PURE__ */ jsxs12("div", { className: "lace-panel-row-actions", children: [
2238
- /* @__PURE__ */ jsx13(
2433
+ /* @__PURE__ */ jsx14(
2239
2434
  Input4,
2240
2435
  {
2241
2436
  value: row.name,
@@ -2247,7 +2442,7 @@ function LocalsContent({ locals, readOnly = false, onSave }) {
2247
2442
  readOnly
2248
2443
  }
2249
2444
  ),
2250
- !readOnly && /* @__PURE__ */ jsx13(
2445
+ !readOnly && /* @__PURE__ */ jsx14(
2251
2446
  "button",
2252
2447
  {
2253
2448
  type: "button",
@@ -2258,8 +2453,8 @@ function LocalsContent({ locals, readOnly = false, onSave }) {
2258
2453
  }
2259
2454
  )
2260
2455
  ] }),
2261
- nameDupes.has(i) && /* @__PURE__ */ jsx13("div", { className: "lace-panel-row-error", children: "Duplicate local name" }),
2262
- /* @__PURE__ */ jsx13("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx13(
2456
+ nameDupes.has(i) && /* @__PURE__ */ jsx14("div", { className: "lace-panel-row-error", children: "Duplicate local name" }),
2457
+ /* @__PURE__ */ jsx14("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx14(
2263
2458
  ModeToggle2,
2264
2459
  {
2265
2460
  value: row.mode,
@@ -2268,7 +2463,7 @@ function LocalsContent({ locals, readOnly = false, onSave }) {
2268
2463
  "aria-label": "Local binding mode"
2269
2464
  }
2270
2465
  ) }),
2271
- /* @__PURE__ */ jsx13("div", { className: "lace-panel-row-content", children: row.mode === "literal" ? /* @__PURE__ */ jsx13(
2466
+ /* @__PURE__ */ jsx14("div", { className: "lace-panel-row-content", children: row.mode === "literal" ? /* @__PURE__ */ jsx14(
2272
2467
  Textarea2,
2273
2468
  {
2274
2469
  value: row.litValue,
@@ -2279,7 +2474,7 @@ function LocalsContent({ locals, readOnly = false, onSave }) {
2279
2474
  mono: true,
2280
2475
  readOnly
2281
2476
  }
2282
- ) : /* @__PURE__ */ jsx13(
2477
+ ) : /* @__PURE__ */ jsx14(
2283
2478
  Textarea2,
2284
2479
  {
2285
2480
  value: row.exprValue,
@@ -2293,8 +2488,8 @@ function LocalsContent({ locals, readOnly = false, onSave }) {
2293
2488
  ) })
2294
2489
  ] }, row.id)),
2295
2490
  !readOnly && /* @__PURE__ */ jsxs12(Fragment5, { children: [
2296
- /* @__PURE__ */ jsx13("button", { type: "button", onClick: addLocal, className: "lace-panel-add-btn", children: "+ Add local" }),
2297
- /* @__PURE__ */ jsx13(
2491
+ /* @__PURE__ */ jsx14("button", { type: "button", onClick: addLocal, className: "lace-panel-add-btn", children: "+ Add local" }),
2492
+ /* @__PURE__ */ jsx14(
2298
2493
  SaveButton,
2299
2494
  {
2300
2495
  status: saveStatus,
@@ -2308,14 +2503,14 @@ function LocalsContent({ locals, readOnly = false, onSave }) {
2308
2503
  ] });
2309
2504
  }
2310
2505
  function LocalsPanel({ locals, onSave, onClose }) {
2311
- return /* @__PURE__ */ jsx13(Panel7, { title: "Locals", onClose, children: /* @__PURE__ */ jsx13(LocalsContent, { locals, onSave }) });
2506
+ return /* @__PURE__ */ jsx14(Panel7, { title: "Locals", onClose, children: /* @__PURE__ */ jsx14(LocalsContent, { locals, onSave }) });
2312
2507
  }
2313
2508
 
2314
2509
  // src/components/panels/ModuleInterfacePanel.tsx
2315
2510
  import { Button as Button4, Input as Input5, Panel as Panel8, Textarea as Textarea3 } from "@lace-cloud/ui";
2316
2511
  import { useCallback as useCallback8, useMemo as useMemo4, useState as useState10 } from "react";
2317
2512
  import "./panels-shared-LLLB7PR4.css";
2318
- import { Fragment as Fragment6, jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
2513
+ import { Fragment as Fragment6, jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
2319
2514
  function variablesToRows(variables) {
2320
2515
  return variables.map((v) => ({
2321
2516
  id: crypto.randomUUID(),
@@ -2519,16 +2714,16 @@ function ModuleInterfaceContent({
2519
2714
  }, [variables, outputs, hasErrors, onSaveVariables, onSaveExports])
2520
2715
  );
2521
2716
  return /* @__PURE__ */ jsxs13(Fragment6, { children: [
2522
- /* @__PURE__ */ jsx14("div", { className: "lace-panel-hint", children: "The composition's public surface \u2014 what the registry sees when this module is published." }),
2523
- /* @__PURE__ */ jsx14("h4", { className: "lace-panel-section-title", children: "Inputs" }),
2717
+ /* @__PURE__ */ jsx15("div", { className: "lace-panel-hint", children: "The composition's public surface \u2014 what the registry sees when this module is published." }),
2718
+ /* @__PURE__ */ jsx15("h4", { className: "lace-panel-section-title", children: "Inputs" }),
2524
2719
  variables.length === 0 ? /* @__PURE__ */ jsxs13("div", { className: "lace-panel-hint", children: [
2525
2720
  "No variables yet. They'll auto-derive on the next Generate from any ",
2526
- /* @__PURE__ */ jsx14("code", { children: "var.xxx" }),
2721
+ /* @__PURE__ */ jsx15("code", { children: "var.xxx" }),
2527
2722
  " ",
2528
2723
  "references in child input bindings."
2529
2724
  ] }) : variables.map((v, i) => /* @__PURE__ */ jsxs13("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
2530
- /* @__PURE__ */ jsx14("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx14(Input5, { value: v.name, placeholder: "Variable name", fullWidth: true, mono: true, readOnly: true }) }),
2531
- /* @__PURE__ */ jsx14("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx14(
2725
+ /* @__PURE__ */ jsx15("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx15(Input5, { value: v.name, placeholder: "Variable name", fullWidth: true, mono: true, readOnly: true }) }),
2726
+ /* @__PURE__ */ jsx15("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx15(
2532
2727
  Input5,
2533
2728
  {
2534
2729
  value: v.type,
@@ -2539,7 +2734,7 @@ function ModuleInterfaceContent({
2539
2734
  readOnly
2540
2735
  }
2541
2736
  ) }),
2542
- /* @__PURE__ */ jsx14("div", { className: "lace-panel-row-content", children: /* @__PURE__ */ jsx14(
2737
+ /* @__PURE__ */ jsx15("div", { className: "lace-panel-row-content", children: /* @__PURE__ */ jsx15(
2543
2738
  Textarea3,
2544
2739
  {
2545
2740
  value: v.description,
@@ -2552,7 +2747,7 @@ function ModuleInterfaceContent({
2552
2747
  ) }),
2553
2748
  /* @__PURE__ */ jsxs13("div", { className: "lace-panel-row-actions", children: [
2554
2749
  /* @__PURE__ */ jsxs13("label", { className: "lace-panel-checkbox-row", children: [
2555
- /* @__PURE__ */ jsx14(
2750
+ /* @__PURE__ */ jsx15(
2556
2751
  "input",
2557
2752
  {
2558
2753
  type: "checkbox",
@@ -2561,10 +2756,10 @@ function ModuleInterfaceContent({
2561
2756
  disabled: readOnly
2562
2757
  }
2563
2758
  ),
2564
- /* @__PURE__ */ jsx14("span", { children: "Required" })
2759
+ /* @__PURE__ */ jsx15("span", { children: "Required" })
2565
2760
  ] }),
2566
2761
  /* @__PURE__ */ jsxs13("label", { className: "lace-panel-checkbox-row", children: [
2567
- /* @__PURE__ */ jsx14(
2762
+ /* @__PURE__ */ jsx15(
2568
2763
  "input",
2569
2764
  {
2570
2765
  type: "checkbox",
@@ -2573,10 +2768,10 @@ function ModuleInterfaceContent({
2573
2768
  disabled: readOnly
2574
2769
  }
2575
2770
  ),
2576
- /* @__PURE__ */ jsx14("span", { children: "Ephemeral" })
2771
+ /* @__PURE__ */ jsx15("span", { children: "Ephemeral" })
2577
2772
  ] }),
2578
2773
  /* @__PURE__ */ jsxs13("label", { className: "lace-panel-checkbox-row", children: [
2579
- /* @__PURE__ */ jsx14(
2774
+ /* @__PURE__ */ jsx15(
2580
2775
  "input",
2581
2776
  {
2582
2777
  type: "checkbox",
@@ -2585,10 +2780,10 @@ function ModuleInterfaceContent({
2585
2780
  disabled: readOnly
2586
2781
  }
2587
2782
  ),
2588
- /* @__PURE__ */ jsx14("span", { children: "Sensitive" })
2783
+ /* @__PURE__ */ jsx15("span", { children: "Sensitive" })
2589
2784
  ] }),
2590
2785
  /* @__PURE__ */ jsxs13("label", { className: "lace-panel-checkbox-row", children: [
2591
- /* @__PURE__ */ jsx14(
2786
+ /* @__PURE__ */ jsx15(
2592
2787
  "input",
2593
2788
  {
2594
2789
  type: "checkbox",
@@ -2597,13 +2792,13 @@ function ModuleInterfaceContent({
2597
2792
  disabled: readOnly
2598
2793
  }
2599
2794
  ),
2600
- /* @__PURE__ */ jsx14("span", { children: "Nullable" })
2795
+ /* @__PURE__ */ jsx15("span", { children: "Nullable" })
2601
2796
  ] })
2602
2797
  ] }),
2603
2798
  (v.validation.length > 0 || !readOnly) && /* @__PURE__ */ jsxs13("div", { className: "lace-panel-row-content", children: [
2604
- /* @__PURE__ */ jsx14("div", { className: "lace-panel-subsection-label", children: "Validation" }),
2799
+ /* @__PURE__ */ jsx15("div", { className: "lace-panel-subsection-label", children: "Validation" }),
2605
2800
  v.validation.map((block, j) => /* @__PURE__ */ jsxs13("div", { className: "lace-panel-validation-block", children: [
2606
- /* @__PURE__ */ jsx14(
2801
+ /* @__PURE__ */ jsx15(
2607
2802
  Input5,
2608
2803
  {
2609
2804
  value: block.condition,
@@ -2615,7 +2810,7 @@ function ModuleInterfaceContent({
2615
2810
  readOnly
2616
2811
  }
2617
2812
  ),
2618
- /* @__PURE__ */ jsx14(
2813
+ /* @__PURE__ */ jsx15(
2619
2814
  Input5,
2620
2815
  {
2621
2816
  value: block.error_message,
@@ -2626,7 +2821,7 @@ function ModuleInterfaceContent({
2626
2821
  readOnly
2627
2822
  }
2628
2823
  ),
2629
- !readOnly && /* @__PURE__ */ jsx14(
2824
+ !readOnly && /* @__PURE__ */ jsx15(
2630
2825
  Button4,
2631
2826
  {
2632
2827
  variant: "danger",
@@ -2638,13 +2833,13 @@ function ModuleInterfaceContent({
2638
2833
  }
2639
2834
  )
2640
2835
  ] }, block.id)),
2641
- !readOnly && /* @__PURE__ */ jsx14(Button4, { variant: "secondary", size: "sm", onClick: () => addValidation(i), children: "+ Add validation rule" })
2836
+ !readOnly && /* @__PURE__ */ jsx15(Button4, { variant: "secondary", size: "sm", onClick: () => addValidation(i), children: "+ Add validation rule" })
2642
2837
  ] })
2643
2838
  ] }, v.id)),
2644
- /* @__PURE__ */ jsx14("h4", { className: "lace-panel-section-title", children: "Outputs" }),
2645
- outputs.length === 0 ? /* @__PURE__ */ jsx14("div", { className: "lace-panel-hint", children: "No child outputs available yet. Drop a module onto the canvas to see its outputs here." }) : outputs.map((o, i) => /* @__PURE__ */ jsxs13("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
2646
- /* @__PURE__ */ jsx14("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsxs13("label", { className: "lace-panel-checkbox-row", children: [
2647
- /* @__PURE__ */ jsx14(
2839
+ /* @__PURE__ */ jsx15("h4", { className: "lace-panel-section-title", children: "Outputs" }),
2840
+ outputs.length === 0 ? /* @__PURE__ */ jsx15("div", { className: "lace-panel-hint", children: "No child outputs available yet. Drop a module onto the canvas to see its outputs here." }) : outputs.map((o, i) => /* @__PURE__ */ jsxs13("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
2841
+ /* @__PURE__ */ jsx15("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsxs13("label", { className: "lace-panel-checkbox-row", children: [
2842
+ /* @__PURE__ */ jsx15(
2648
2843
  "input",
2649
2844
  {
2650
2845
  type: "checkbox",
@@ -2659,7 +2854,7 @@ function ModuleInterfaceContent({
2659
2854
  o.source_output
2660
2855
  ] })
2661
2856
  ] }) }),
2662
- o.exposed ? /* @__PURE__ */ jsx14("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx14(
2857
+ o.exposed ? /* @__PURE__ */ jsx15("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx15(
2663
2858
  Input5,
2664
2859
  {
2665
2860
  value: o.exposed_name,
@@ -2672,9 +2867,9 @@ function ModuleInterfaceContent({
2672
2867
  }
2673
2868
  ) }) : null,
2674
2869
  o.exposed && (o.depends_on.length > 0 || !readOnly && siblingModuleKeys.length > 0) ? /* @__PURE__ */ jsxs13("div", { className: "lace-panel-row-content", children: [
2675
- /* @__PURE__ */ jsx14("div", { className: "lace-panel-subsection-label", children: "Depends on" }),
2676
- readOnly ? o.depends_on.map((depKey) => /* @__PURE__ */ jsx14("div", { className: "lace-panel-depends-item", children: depKey }, depKey)) : siblingModuleKeys.map((depKey) => /* @__PURE__ */ jsxs13("label", { className: "lace-panel-checkbox-row", children: [
2677
- /* @__PURE__ */ jsx14(
2870
+ /* @__PURE__ */ jsx15("div", { className: "lace-panel-subsection-label", children: "Depends on" }),
2871
+ readOnly ? o.depends_on.map((depKey) => /* @__PURE__ */ jsx15("div", { className: "lace-panel-depends-item", children: depKey }, depKey)) : siblingModuleKeys.map((depKey) => /* @__PURE__ */ jsxs13("label", { className: "lace-panel-checkbox-row", children: [
2872
+ /* @__PURE__ */ jsx15(
2678
2873
  "input",
2679
2874
  {
2680
2875
  type: "checkbox",
@@ -2682,12 +2877,12 @@ function ModuleInterfaceContent({
2682
2877
  onChange: () => toggleDependsOn(i, depKey)
2683
2878
  }
2684
2879
  ),
2685
- /* @__PURE__ */ jsx14("span", { className: "lace-panel-checkbox-row__source", children: depKey })
2880
+ /* @__PURE__ */ jsx15("span", { className: "lace-panel-checkbox-row__source", children: depKey })
2686
2881
  ] }, depKey))
2687
2882
  ] }) : null,
2688
- exposedNameCollisions.has(i) ? /* @__PURE__ */ jsx14("div", { className: "lace-panel-row-error", children: "Exposed name must be unique and non-empty." }) : null
2883
+ exposedNameCollisions.has(i) ? /* @__PURE__ */ jsx15("div", { className: "lace-panel-row-error", children: "Exposed name must be unique and non-empty." }) : null
2689
2884
  ] }, o.id)),
2690
- !readOnly && /* @__PURE__ */ jsx14(
2885
+ !readOnly && /* @__PURE__ */ jsx15(
2691
2886
  SaveButton,
2692
2887
  {
2693
2888
  status: saveStatus,
@@ -2707,7 +2902,7 @@ function ModuleInterfacePanel({
2707
2902
  onSaveExports,
2708
2903
  onClose
2709
2904
  }) {
2710
- return /* @__PURE__ */ jsx14(Panel8, { title: "Module Interface", onClose, children: /* @__PURE__ */ jsx14(
2905
+ return /* @__PURE__ */ jsx15(Panel8, { title: "Module Interface", onClose, children: /* @__PURE__ */ jsx15(
2711
2906
  ModuleInterfaceContent,
2712
2907
  {
2713
2908
  settings,
@@ -2723,7 +2918,7 @@ function ModuleInterfacePanel({
2723
2918
  import { Input as Input6, Panel as Panel9, Textarea as Textarea4 } from "@lace-cloud/ui";
2724
2919
  import { useCallback as useCallback9, useEffect as useEffect7, useState as useState11 } from "react";
2725
2920
  import "./panels-shared-LLLB7PR4.css";
2726
- import { Fragment as Fragment7, jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
2921
+ import { Fragment as Fragment7, jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
2727
2922
  var ID_PATTERN = /^[a-z0-9_-]+\/[a-z0-9_-]+\/[a-z0-9_-]+$/;
2728
2923
  var NAME_PATTERN = /^[a-z][a-z0-9_-]*$/;
2729
2924
  var SEMVER_PATTERN = /^\d+\.\d+\.\d+(?:-[A-Za-z0-9.-]+)?(?:\+[A-Za-z0-9.-]+)?$/;
@@ -2811,20 +3006,20 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2811
3006
  }, [engine, meta, authors, categoriesInput, hasErrors, onSaved])
2812
3007
  );
2813
3008
  if (loading) {
2814
- return /* @__PURE__ */ jsx15("div", { className: "lace-panel-hint", children: "Loading module metadata\u2026" });
3009
+ return /* @__PURE__ */ jsx16("div", { className: "lace-panel-hint", children: "Loading module metadata\u2026" });
2815
3010
  }
2816
3011
  return /* @__PURE__ */ jsxs14(Fragment7, { children: [
2817
3012
  /* @__PURE__ */ jsxs14("div", { className: "lace-panel-hint", children: [
2818
3013
  "Saved as ",
2819
- /* @__PURE__ */ jsx15("code", { children: "module.yaml" }),
3014
+ /* @__PURE__ */ jsx16("code", { children: "module.yaml" }),
2820
3015
  " at the composition's root, alongside the generated Terraform. Once filled in, the directory is publish-ready via",
2821
- /* @__PURE__ */ jsx15("code", { children: " lace registry register --axis module" }),
3016
+ /* @__PURE__ */ jsx16("code", { children: " lace registry register --axis module" }),
2822
3017
  "."
2823
3018
  ] }),
2824
- /* @__PURE__ */ jsx15("h4", { className: "lace-panel-section-title", children: "Identity" }),
3019
+ /* @__PURE__ */ jsx16("h4", { className: "lace-panel-section-title", children: "Identity" }),
2825
3020
  /* @__PURE__ */ jsxs14("div", { className: "lace-panel-field", children: [
2826
- /* @__PURE__ */ jsx15("label", { className: "lace-panel-row-label", htmlFor: "module-id-input", children: "ID" }),
2827
- /* @__PURE__ */ jsx15(
3021
+ /* @__PURE__ */ jsx16("label", { className: "lace-panel-row-label", htmlFor: "module-id-input", children: "ID" }),
3022
+ /* @__PURE__ */ jsx16(
2828
3023
  Input6,
2829
3024
  {
2830
3025
  id: "module-id-input",
@@ -2839,13 +3034,13 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2839
3034
  ),
2840
3035
  idError ? /* @__PURE__ */ jsxs14("div", { className: "lace-panel-row-error", children: [
2841
3036
  "Expected ",
2842
- /* @__PURE__ */ jsx15("code", { children: "<system>/<service>/<name>" }),
3037
+ /* @__PURE__ */ jsx16("code", { children: "<system>/<service>/<name>" }),
2843
3038
  " (lowercase, hyphens or underscores)."
2844
3039
  ] }) : null
2845
3040
  ] }),
2846
3041
  /* @__PURE__ */ jsxs14("div", { className: "lace-panel-field", children: [
2847
- /* @__PURE__ */ jsx15("label", { className: "lace-panel-row-label", htmlFor: "module-name-input", children: "Name" }),
2848
- /* @__PURE__ */ jsx15(
3042
+ /* @__PURE__ */ jsx16("label", { className: "lace-panel-row-label", htmlFor: "module-name-input", children: "Name" }),
3043
+ /* @__PURE__ */ jsx16(
2849
3044
  Input6,
2850
3045
  {
2851
3046
  id: "module-name-input",
@@ -2858,11 +3053,11 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2858
3053
  error: Boolean(nameError)
2859
3054
  }
2860
3055
  ),
2861
- nameError ? /* @__PURE__ */ jsx15("div", { className: "lace-panel-row-error", children: "Expected kebab-case (lowercase letters, digits, hyphens or underscores; must start with a letter)." }) : null
3056
+ nameError ? /* @__PURE__ */ jsx16("div", { className: "lace-panel-row-error", children: "Expected kebab-case (lowercase letters, digits, hyphens or underscores; must start with a letter)." }) : null
2862
3057
  ] }),
2863
3058
  /* @__PURE__ */ jsxs14("div", { className: "lace-panel-field", children: [
2864
- /* @__PURE__ */ jsx15("label", { className: "lace-panel-row-label", htmlFor: "module-system-input", children: "System" }),
2865
- /* @__PURE__ */ jsx15(
3059
+ /* @__PURE__ */ jsx16("label", { className: "lace-panel-row-label", htmlFor: "module-system-input", children: "System" }),
3060
+ /* @__PURE__ */ jsx16(
2866
3061
  Input6,
2867
3062
  {
2868
3063
  id: "module-system-input",
@@ -2876,8 +3071,8 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2876
3071
  )
2877
3072
  ] }),
2878
3073
  /* @__PURE__ */ jsxs14("div", { className: "lace-panel-field", children: [
2879
- /* @__PURE__ */ jsx15("label", { className: "lace-panel-row-label", htmlFor: "module-version-input", children: "Version" }),
2880
- /* @__PURE__ */ jsx15(
3074
+ /* @__PURE__ */ jsx16("label", { className: "lace-panel-row-label", htmlFor: "module-version-input", children: "Version" }),
3075
+ /* @__PURE__ */ jsx16(
2881
3076
  Input6,
2882
3077
  {
2883
3078
  id: "module-version-input",
@@ -2890,10 +3085,10 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2890
3085
  error: Boolean(versionError)
2891
3086
  }
2892
3087
  ),
2893
- versionError ? /* @__PURE__ */ jsx15("div", { className: "lace-panel-row-error", children: "Expected semver (e.g. 1.0.0)." }) : null
3088
+ versionError ? /* @__PURE__ */ jsx16("div", { className: "lace-panel-row-error", children: "Expected semver (e.g. 1.0.0)." }) : null
2894
3089
  ] }),
2895
- /* @__PURE__ */ jsx15("h4", { className: "lace-panel-section-title", children: "Description" }),
2896
- /* @__PURE__ */ jsx15("div", { className: "lace-panel-field", children: /* @__PURE__ */ jsx15(
3090
+ /* @__PURE__ */ jsx16("h4", { className: "lace-panel-section-title", children: "Description" }),
3091
+ /* @__PURE__ */ jsx16("div", { className: "lace-panel-field", children: /* @__PURE__ */ jsx16(
2897
3092
  Textarea4,
2898
3093
  {
2899
3094
  value: meta.description ?? "",
@@ -2904,8 +3099,8 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2904
3099
  readOnly
2905
3100
  }
2906
3101
  ) }),
2907
- /* @__PURE__ */ jsx15("h4", { className: "lace-panel-section-title", children: "Categories" }),
2908
- /* @__PURE__ */ jsx15("div", { className: "lace-panel-field", children: /* @__PURE__ */ jsx15(
3102
+ /* @__PURE__ */ jsx16("h4", { className: "lace-panel-section-title", children: "Categories" }),
3103
+ /* @__PURE__ */ jsx16("div", { className: "lace-panel-field", children: /* @__PURE__ */ jsx16(
2909
3104
  Input6,
2910
3105
  {
2911
3106
  value: categoriesInput,
@@ -2915,10 +3110,10 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2915
3110
  readOnly
2916
3111
  }
2917
3112
  ) }),
2918
- /* @__PURE__ */ jsx15("h4", { className: "lace-panel-section-title", children: "Authors" }),
3113
+ /* @__PURE__ */ jsx16("h4", { className: "lace-panel-section-title", children: "Authors" }),
2919
3114
  authors.map((a, i) => /* @__PURE__ */ jsxs14("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
2920
3115
  /* @__PURE__ */ jsxs14("div", { className: "lace-panel-row-actions", children: [
2921
- /* @__PURE__ */ jsx15(
3116
+ /* @__PURE__ */ jsx16(
2922
3117
  Input6,
2923
3118
  {
2924
3119
  value: a.name,
@@ -2928,7 +3123,7 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2928
3123
  readOnly
2929
3124
  }
2930
3125
  ),
2931
- !readOnly && /* @__PURE__ */ jsx15(
3126
+ !readOnly && /* @__PURE__ */ jsx16(
2932
3127
  "button",
2933
3128
  {
2934
3129
  type: "button",
@@ -2939,7 +3134,7 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2939
3134
  }
2940
3135
  )
2941
3136
  ] }),
2942
- /* @__PURE__ */ jsx15("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx15(
3137
+ /* @__PURE__ */ jsx16("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx16(
2943
3138
  Input6,
2944
3139
  {
2945
3140
  value: a.email,
@@ -2950,9 +3145,9 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2950
3145
  }
2951
3146
  ) })
2952
3147
  ] }, a.id)),
2953
- !readOnly && /* @__PURE__ */ jsx15("button", { type: "button", onClick: addAuthor, className: "lace-panel-add-btn", children: "+ Add author" }),
2954
- /* @__PURE__ */ jsx15("h4", { className: "lace-panel-section-title", children: "Example" }),
2955
- /* @__PURE__ */ jsx15("div", { className: "lace-panel-field", children: /* @__PURE__ */ jsx15(
3148
+ !readOnly && /* @__PURE__ */ jsx16("button", { type: "button", onClick: addAuthor, className: "lace-panel-add-btn", children: "+ Add author" }),
3149
+ /* @__PURE__ */ jsx16("h4", { className: "lace-panel-section-title", children: "Example" }),
3150
+ /* @__PURE__ */ jsx16("div", { className: "lace-panel-field", children: /* @__PURE__ */ jsx16(
2956
3151
  Textarea4,
2957
3152
  {
2958
3153
  value: meta.example ?? "",
@@ -2964,7 +3159,7 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2964
3159
  readOnly
2965
3160
  }
2966
3161
  ) }),
2967
- !readOnly && /* @__PURE__ */ jsx15(
3162
+ !readOnly && /* @__PURE__ */ jsx16(
2968
3163
  SaveButton,
2969
3164
  {
2970
3165
  status: saveStatus,
@@ -2984,7 +3179,7 @@ import "./panels-shared-LLLB7PR4.css";
2984
3179
  import { Input as Input7, Panel as Panel10 } from "@lace-cloud/ui";
2985
3180
  import { useCallback as useCallback10, useState as useState12 } from "react";
2986
3181
  import "./panels-shared-LLLB7PR4.css";
2987
- import { Fragment as Fragment8, jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
3182
+ import { Fragment as Fragment8, jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
2988
3183
  function toRows2(providers) {
2989
3184
  if (!providers || providers.length === 0) return [];
2990
3185
  return providers.map((p) => ({
@@ -3080,7 +3275,7 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
3080
3275
  return /* @__PURE__ */ jsxs15(Fragment8, { children: [
3081
3276
  rows.map((row, pi) => /* @__PURE__ */ jsxs15("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
3082
3277
  /* @__PURE__ */ jsxs15("div", { className: "lace-panel-row-actions", children: [
3083
- /* @__PURE__ */ jsx16(
3278
+ /* @__PURE__ */ jsx17(
3084
3279
  Input7,
3085
3280
  {
3086
3281
  value: row.name,
@@ -3090,7 +3285,7 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
3090
3285
  readOnly
3091
3286
  }
3092
3287
  ),
3093
- /* @__PURE__ */ jsx16(
3288
+ /* @__PURE__ */ jsx17(
3094
3289
  Input7,
3095
3290
  {
3096
3291
  value: row.alias,
@@ -3100,7 +3295,7 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
3100
3295
  readOnly
3101
3296
  }
3102
3297
  ),
3103
- !readOnly && /* @__PURE__ */ jsx16(
3298
+ !readOnly && /* @__PURE__ */ jsx17(
3104
3299
  "button",
3105
3300
  {
3106
3301
  type: "button",
@@ -3111,9 +3306,9 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
3111
3306
  }
3112
3307
  )
3113
3308
  ] }),
3114
- /* @__PURE__ */ jsx16("div", { className: "lace-panel-row-sublabel", children: "Config" }),
3309
+ /* @__PURE__ */ jsx17("div", { className: "lace-panel-row-sublabel", children: "Config" }),
3115
3310
  row.configEntries.map((entry, ei) => /* @__PURE__ */ jsxs15("div", { className: "lace-panel-row-actions", children: [
3116
- /* @__PURE__ */ jsx16(
3311
+ /* @__PURE__ */ jsx17(
3117
3312
  Input7,
3118
3313
  {
3119
3314
  value: entry.key,
@@ -3123,7 +3318,7 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
3123
3318
  readOnly
3124
3319
  }
3125
3320
  ),
3126
- /* @__PURE__ */ jsx16(
3321
+ /* @__PURE__ */ jsx17(
3127
3322
  Input7,
3128
3323
  {
3129
3324
  value: entry.value,
@@ -3133,7 +3328,7 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
3133
3328
  readOnly
3134
3329
  }
3135
3330
  ),
3136
- !readOnly && /* @__PURE__ */ jsx16(
3331
+ !readOnly && /* @__PURE__ */ jsx17(
3137
3332
  "button",
3138
3333
  {
3139
3334
  type: "button",
@@ -3144,7 +3339,7 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
3144
3339
  }
3145
3340
  )
3146
3341
  ] }, entry.id)),
3147
- !readOnly && /* @__PURE__ */ jsx16(
3342
+ !readOnly && /* @__PURE__ */ jsx17(
3148
3343
  "button",
3149
3344
  {
3150
3345
  type: "button",
@@ -3154,8 +3349,8 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
3154
3349
  }
3155
3350
  ),
3156
3351
  row.blocks.length > 0 ? /* @__PURE__ */ jsxs15(Fragment8, { children: [
3157
- /* @__PURE__ */ jsx16("div", { className: "lace-panel-row-sublabel", children: "Nested blocks (read-only)" }),
3158
- row.blocks.map((block, bi) => /* @__PURE__ */ jsx16(
3352
+ /* @__PURE__ */ jsx17("div", { className: "lace-panel-row-sublabel", children: "Nested blocks (read-only)" }),
3353
+ row.blocks.map((block, bi) => /* @__PURE__ */ jsx17(
3159
3354
  "div",
3160
3355
  {
3161
3356
  className: "lace-panel-depends-item",
@@ -3166,20 +3361,20 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
3166
3361
  ] }) : null
3167
3362
  ] }, row.id)),
3168
3363
  !readOnly && /* @__PURE__ */ jsxs15(Fragment8, { children: [
3169
- /* @__PURE__ */ jsx16("button", { type: "button", onClick: addProvider, className: "lace-panel-add-btn", children: "+ Add provider" }),
3170
- /* @__PURE__ */ jsx16(SaveButton, { status: saveStatus, label: "Save providers", onClick: handleSave })
3364
+ /* @__PURE__ */ jsx17("button", { type: "button", onClick: addProvider, className: "lace-panel-add-btn", children: "+ Add provider" }),
3365
+ /* @__PURE__ */ jsx17(SaveButton, { status: saveStatus, label: "Save providers", onClick: handleSave })
3171
3366
  ] })
3172
3367
  ] });
3173
3368
  }
3174
3369
  function ProvidersPanel({ providers, readOnly = false, onSave, onClose }) {
3175
- return /* @__PURE__ */ jsx16(Panel10, { title: "Providers", onClose, children: /* @__PURE__ */ jsx16(ProvidersContent, { providers, readOnly, onSave }) });
3370
+ return /* @__PURE__ */ jsx17(Panel10, { title: "Providers", onClose, children: /* @__PURE__ */ jsx17(ProvidersContent, { providers, readOnly, onSave }) });
3176
3371
  }
3177
3372
 
3178
3373
  // src/components/panels/TerraformConfigPanel.tsx
3179
3374
  import { Input as Input8, Panel as Panel11 } from "@lace-cloud/ui";
3180
3375
  import { useCallback as useCallback11, useState as useState13 } from "react";
3181
3376
  import "./panels-shared-LLLB7PR4.css";
3182
- import { Fragment as Fragment9, jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
3377
+ import { Fragment as Fragment9, jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
3183
3378
  function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
3184
3379
  const [requiredVersion, setRequiredVersion] = useState13(terraform?.required_version ?? "");
3185
3380
  const [providers, setProviders] = useState13(() => {
@@ -3222,8 +3417,8 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
3222
3417
  }, [onSave, requiredVersion, providers])
3223
3418
  );
3224
3419
  return /* @__PURE__ */ jsxs16(Fragment9, { children: [
3225
- /* @__PURE__ */ jsx17("h4", { className: "lace-panel-section-title", children: "Required Version" }),
3226
- /* @__PURE__ */ jsx17("div", { className: "lace-panel-field", children: /* @__PURE__ */ jsx17(
3420
+ /* @__PURE__ */ jsx18("h4", { className: "lace-panel-section-title", children: "Required Version" }),
3421
+ /* @__PURE__ */ jsx18("div", { className: "lace-panel-field", children: /* @__PURE__ */ jsx18(
3227
3422
  Input8,
3228
3423
  {
3229
3424
  value: requiredVersion,
@@ -3233,10 +3428,10 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
3233
3428
  readOnly
3234
3429
  }
3235
3430
  ) }),
3236
- /* @__PURE__ */ jsx17("h4", { className: "lace-panel-section-title", children: "Required Providers" }),
3431
+ /* @__PURE__ */ jsx18("h4", { className: "lace-panel-section-title", children: "Required Providers" }),
3237
3432
  providers.map((p, i) => /* @__PURE__ */ jsxs16("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
3238
3433
  /* @__PURE__ */ jsxs16("div", { className: "lace-panel-row-actions", children: [
3239
- /* @__PURE__ */ jsx17(
3434
+ /* @__PURE__ */ jsx18(
3240
3435
  Input8,
3241
3436
  {
3242
3437
  value: p.name,
@@ -3246,7 +3441,7 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
3246
3441
  readOnly
3247
3442
  }
3248
3443
  ),
3249
- !readOnly && /* @__PURE__ */ jsx17(
3444
+ !readOnly && /* @__PURE__ */ jsx18(
3250
3445
  "button",
3251
3446
  {
3252
3447
  type: "button",
@@ -3256,7 +3451,7 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
3256
3451
  }
3257
3452
  )
3258
3453
  ] }),
3259
- /* @__PURE__ */ jsx17("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx17(
3454
+ /* @__PURE__ */ jsx18("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx18(
3260
3455
  Input8,
3261
3456
  {
3262
3457
  value: p.source,
@@ -3266,7 +3461,7 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
3266
3461
  readOnly
3267
3462
  }
3268
3463
  ) }),
3269
- /* @__PURE__ */ jsx17("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx17(
3464
+ /* @__PURE__ */ jsx18("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx18(
3270
3465
  Input8,
3271
3466
  {
3272
3467
  value: p.version,
@@ -3276,7 +3471,7 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
3276
3471
  readOnly
3277
3472
  }
3278
3473
  ) }),
3279
- p.configuration_aliases.length > 0 && /* @__PURE__ */ jsx17("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx17(
3474
+ p.configuration_aliases.length > 0 && /* @__PURE__ */ jsx18("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx18(
3280
3475
  Input8,
3281
3476
  {
3282
3477
  value: p.configuration_aliases.join(", "),
@@ -3287,18 +3482,18 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
3287
3482
  }
3288
3483
  ) })
3289
3484
  ] }, p.id)),
3290
- !readOnly && /* @__PURE__ */ jsx17("button", { type: "button", onClick: addProvider, className: "lace-panel-add-btn", children: "+ Add provider" }),
3291
- /* @__PURE__ */ jsx17("h4", { className: "lace-panel-section-title", children: "Backend" }),
3292
- /* @__PURE__ */ jsx17("div", { className: "lace-panel-hint", children: "Terraform state is managed by Lace Cloud. The HTTP backend is configured automatically during generation." }),
3293
- !readOnly && /* @__PURE__ */ jsx17(SaveButton, { status: saveStatus, label: "Save configuration", onClick: handleSave })
3485
+ !readOnly && /* @__PURE__ */ jsx18("button", { type: "button", onClick: addProvider, className: "lace-panel-add-btn", children: "+ Add provider" }),
3486
+ /* @__PURE__ */ jsx18("h4", { className: "lace-panel-section-title", children: "Backend" }),
3487
+ /* @__PURE__ */ jsx18("div", { className: "lace-panel-hint", children: "Terraform state is managed by Lace Cloud. The HTTP backend is configured automatically during generation." }),
3488
+ !readOnly && /* @__PURE__ */ jsx18(SaveButton, { status: saveStatus, label: "Save configuration", onClick: handleSave })
3294
3489
  ] });
3295
3490
  }
3296
3491
  function TerraformConfigPanel({ terraform, onSave, onClose }) {
3297
- return /* @__PURE__ */ jsx17(Panel11, { title: "Terraform Configuration", onClose, children: /* @__PURE__ */ jsx17(TerraformConfigContent, { terraform, onSave }) });
3492
+ return /* @__PURE__ */ jsx18(Panel11, { title: "Terraform Configuration", onClose, children: /* @__PURE__ */ jsx18(TerraformConfigContent, { terraform, onSave }) });
3298
3493
  }
3299
3494
 
3300
3495
  // src/components/panels/UnifiedSettingsPanel.tsx
3301
- import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
3496
+ import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
3302
3497
  function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
3303
3498
  const { state, readOnly } = useCanvas();
3304
3499
  const [settings, setSettings] = useState14(null);
@@ -3316,11 +3511,11 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
3316
3511
  };
3317
3512
  }, [engine]);
3318
3513
  if (loading || !settings) {
3319
- return /* @__PURE__ */ jsx18(Panel12, { title: "Settings", scrollable: false, onClose, children: /* @__PURE__ */ jsx18("div", { className: "lace-panel-hint", children: "Loading settings..." }) });
3514
+ return /* @__PURE__ */ jsx19(Panel12, { title: "Settings", scrollable: false, onClose, children: /* @__PURE__ */ jsx19("div", { className: "lace-panel-hint", children: "Loading settings..." }) });
3320
3515
  }
3321
3516
  return /* @__PURE__ */ jsxs17(Panel12, { title: "Settings", scrollable: false, onClose, children: [
3322
- /* @__PURE__ */ jsx18(AccordionSection, { title: "Module", defaultOpen: true, children: /* @__PURE__ */ jsx18(ModuleMetadataContent, { engine, readOnly, onSaved }) }),
3323
- /* @__PURE__ */ jsx18(AccordionSection, { title: "Interface", children: /* @__PURE__ */ jsx18(
3517
+ /* @__PURE__ */ jsx19(AccordionSection, { title: "Module", defaultOpen: true, children: /* @__PURE__ */ jsx19(ModuleMetadataContent, { engine, readOnly, onSaved }) }),
3518
+ /* @__PURE__ */ jsx19(AccordionSection, { title: "Interface", children: /* @__PURE__ */ jsx19(
3324
3519
  ModuleInterfaceContent,
3325
3520
  {
3326
3521
  settings,
@@ -3336,7 +3531,7 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
3336
3531
  }
3337
3532
  }
3338
3533
  ) }),
3339
- /* @__PURE__ */ jsx18(AccordionSection, { title: "Terraform Config", children: /* @__PURE__ */ jsx18(
3534
+ /* @__PURE__ */ jsx19(AccordionSection, { title: "Terraform Config", children: /* @__PURE__ */ jsx19(
3340
3535
  TerraformConfigContent,
3341
3536
  {
3342
3537
  terraform: settings.terraform,
@@ -3355,7 +3550,7 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
3355
3550
  }
3356
3551
  }
3357
3552
  ) }),
3358
- /* @__PURE__ */ jsx18(AccordionSection, { title: "Providers", children: /* @__PURE__ */ jsx18(
3553
+ /* @__PURE__ */ jsx19(AccordionSection, { title: "Providers", children: /* @__PURE__ */ jsx19(
3359
3554
  ProvidersContent,
3360
3555
  {
3361
3556
  providers: settings.providers,
@@ -3373,7 +3568,7 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
3373
3568
  }
3374
3569
  }
3375
3570
  ) }),
3376
- /* @__PURE__ */ jsx18(AccordionSection, { title: "Locals", children: /* @__PURE__ */ jsx18(
3571
+ /* @__PURE__ */ jsx19(AccordionSection, { title: "Locals", children: /* @__PURE__ */ jsx19(
3377
3572
  LocalsContent,
3378
3573
  {
3379
3574
  locals: settings.locals,
@@ -3396,7 +3591,7 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
3396
3591
  }
3397
3592
  }
3398
3593
  ) }),
3399
- /* @__PURE__ */ jsx18(AccordionSection, { title: "Environments", children: /* @__PURE__ */ jsx18(
3594
+ /* @__PURE__ */ jsx19(AccordionSection, { title: "Environments", children: /* @__PURE__ */ jsx19(
3400
3595
  EnvironmentsContent,
3401
3596
  {
3402
3597
  environments: settings.environments,
@@ -3412,7 +3607,7 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
3412
3607
 
3413
3608
  // src/components/SlidePanel.tsx
3414
3609
  import { useEffect as useEffect9, useRef as useRef4, useState as useState15 } from "react";
3415
- import { jsx as jsx19 } from "react/jsx-runtime";
3610
+ import { jsx as jsx20 } from "react/jsx-runtime";
3416
3611
  function SlidePanel({ open, zIndex = 20, children }) {
3417
3612
  const [mounted, setMounted] = useState15(open);
3418
3613
  const [visible, setVisible] = useState15(false);
@@ -3429,7 +3624,7 @@ function SlidePanel({ open, zIndex = 20, children }) {
3429
3624
  return () => clearTimeout(timeoutRef.current);
3430
3625
  }, [open]);
3431
3626
  if (!mounted) return null;
3432
- return /* @__PURE__ */ jsx19(
3627
+ return /* @__PURE__ */ jsx20(
3433
3628
  "div",
3434
3629
  {
3435
3630
  className: "slide-panel",
@@ -3442,7 +3637,7 @@ function SlidePanel({ open, zIndex = 20, children }) {
3442
3637
  // src/components/ValidationErrorBanner.tsx
3443
3638
  import { useState as useState16 } from "react";
3444
3639
  import "./ValidationErrorBanner-G6TBGMK7.css";
3445
- import { Fragment as Fragment10, jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
3640
+ import { Fragment as Fragment10, jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
3446
3641
  function ValidationErrorDialog({
3447
3642
  diagnostics,
3448
3643
  nodeIds,
@@ -3450,7 +3645,7 @@ function ValidationErrorDialog({
3450
3645
  onOpenFile,
3451
3646
  onClose
3452
3647
  }) {
3453
- return /* @__PURE__ */ jsx20(
3648
+ return /* @__PURE__ */ jsx21(
3454
3649
  "div",
3455
3650
  {
3456
3651
  className: "lace-error-dialog-backdrop",
@@ -3475,7 +3670,7 @@ function ValidationErrorDialog({
3475
3670
  diagnostics.length,
3476
3671
  ")"
3477
3672
  ] }),
3478
- /* @__PURE__ */ jsx20(
3673
+ /* @__PURE__ */ jsx21(
3479
3674
  "button",
3480
3675
  {
3481
3676
  type: "button",
@@ -3487,7 +3682,7 @@ function ValidationErrorDialog({
3487
3682
  }
3488
3683
  )
3489
3684
  ] }),
3490
- /* @__PURE__ */ jsx20("div", { className: "lace-error-dialog__list", children: diagnostics.map((d, i) => {
3685
+ /* @__PURE__ */ jsx21("div", { className: "lace-error-dialog__list", children: diagnostics.map((d, i) => {
3491
3686
  const nodeId = extractNodeId(d, nodeIds);
3492
3687
  const hasFileLink = !!d.file;
3493
3688
  return (
@@ -3496,7 +3691,7 @@ function ValidationErrorDialog({
3496
3691
  // are stable for the lifetime of this render.
3497
3692
  // biome-ignore lint/suspicious/noArrayIndexKey: immutable diagnostic snapshot, no row state
3498
3693
  /* @__PURE__ */ jsxs18("div", { className: "lace-error-dialog__item", children: [
3499
- /* @__PURE__ */ jsx20("div", { className: "lace-error-dialog__item-message", children: d.message }),
3694
+ /* @__PURE__ */ jsx21("div", { className: "lace-error-dialog__item-message", children: d.message }),
3500
3695
  hasFileLink && /* @__PURE__ */ jsxs18(
3501
3696
  "button",
3502
3697
  {
@@ -3511,7 +3706,7 @@ function ValidationErrorDialog({
3511
3706
  ]
3512
3707
  }
3513
3708
  ),
3514
- nodeId && /* @__PURE__ */ jsx20(
3709
+ nodeId && /* @__PURE__ */ jsx21(
3515
3710
  "button",
3516
3711
  {
3517
3712
  type: "button",
@@ -3540,7 +3735,7 @@ function ValidationErrorBanner({
3540
3735
  if (diagnostics.length === 0) return null;
3541
3736
  return /* @__PURE__ */ jsxs18(Fragment10, { children: [
3542
3737
  /* @__PURE__ */ jsxs18("div", { className: "lace-error-banner", role: "status", children: [
3543
- /* @__PURE__ */ jsx20(
3738
+ /* @__PURE__ */ jsx21(
3544
3739
  "svg",
3545
3740
  {
3546
3741
  className: "lace-error-banner__icon",
@@ -3549,11 +3744,11 @@ function ValidationErrorBanner({
3549
3744
  viewBox: "0 0 16 16",
3550
3745
  fill: "currentColor",
3551
3746
  "aria-hidden": "true",
3552
- children: /* @__PURE__ */ jsx20("path", { d: "M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm0 3.5c.28 0 .5.22.5.5v3a.5.5 0 0 1-1 0V5c0-.28.22-.5.5-.5zm0 6a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5z" })
3747
+ children: /* @__PURE__ */ jsx21("path", { d: "M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm0 3.5c.28 0 .5.22.5.5v3a.5.5 0 0 1-1 0V5c0-.28.22-.5.5-.5zm0 6a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5z" })
3553
3748
  }
3554
3749
  ),
3555
- /* @__PURE__ */ jsx20("span", { className: "lace-error-banner__message", children: "Terraform validation failed" }),
3556
- /* @__PURE__ */ jsx20(
3750
+ /* @__PURE__ */ jsx21("span", { className: "lace-error-banner__message", children: "Terraform validation failed" }),
3751
+ /* @__PURE__ */ jsx21(
3557
3752
  "button",
3558
3753
  {
3559
3754
  type: "button",
@@ -3562,7 +3757,7 @@ function ValidationErrorBanner({
3562
3757
  children: "View details"
3563
3758
  }
3564
3759
  ),
3565
- /* @__PURE__ */ jsx20(
3760
+ /* @__PURE__ */ jsx21(
3566
3761
  "button",
3567
3762
  {
3568
3763
  type: "button",
@@ -3574,7 +3769,7 @@ function ValidationErrorBanner({
3574
3769
  }
3575
3770
  )
3576
3771
  ] }),
3577
- dialogOpen && /* @__PURE__ */ jsx20(
3772
+ dialogOpen && /* @__PURE__ */ jsx21(
3578
3773
  ValidationErrorDialog,
3579
3774
  {
3580
3775
  diagnostics,
@@ -4056,7 +4251,7 @@ function renderEdgeToRfEdge(e) {
4056
4251
  sourceHandle: `out:${e.source_output}`,
4057
4252
  targetHandle: `in:${e.target_input}`,
4058
4253
  data: { source_output: e.source_output, target_input: e.target_input },
4059
- type: "default"
4254
+ type: DEPENDENCY_EDGE_TYPE
4060
4255
  };
4061
4256
  }
4062
4257
  function computeGroupOrigin(members) {
@@ -4143,7 +4338,7 @@ function computeCollapsedGroup(group, allEdges, nodeToGroup, nodeMap) {
4143
4338
  original_source: e.source,
4144
4339
  original_target: e.target
4145
4340
  },
4146
- type: "default"
4341
+ type: DEPENDENCY_EDGE_TYPE
4147
4342
  });
4148
4343
  }
4149
4344
  if (!srcInside && tgtInside) {
@@ -4173,7 +4368,7 @@ function computeCollapsedGroup(group, allEdges, nodeToGroup, nodeMap) {
4173
4368
  original_source: e.source,
4174
4369
  original_target: e.target
4175
4370
  },
4176
- type: "default"
4371
+ type: DEPENDENCY_EDGE_TYPE
4177
4372
  });
4178
4373
  }
4179
4374
  }
@@ -4285,7 +4480,7 @@ function parseHandleId(handleId, prefix) {
4285
4480
  }
4286
4481
 
4287
4482
  // src/Canvas.tsx
4288
- import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
4483
+ import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
4289
4484
  var nodeTypes = {
4290
4485
  moduleNode: ModuleNode_default,
4291
4486
  groupNode: GroupNode_default
@@ -4446,6 +4641,7 @@ function CompositeEditor({
4446
4641
  nodes: rfNodes,
4447
4642
  edges: rfEdges,
4448
4643
  nodeTypes,
4644
+ edgeTypes,
4449
4645
  onNodesChange,
4450
4646
  onEdgesChange,
4451
4647
  onConnect,
@@ -4511,7 +4707,7 @@ function CompositeEditor({
4511
4707
  proOptions: { hideAttribution: true },
4512
4708
  style: { background: "var(--lace-color-bg-canvas)" },
4513
4709
  children: [
4514
- showMiniMap ? /* @__PURE__ */ jsx21(
4710
+ showMiniMap ? /* @__PURE__ */ jsx22(
4515
4711
  MiniMap,
4516
4712
  {
4517
4713
  position: "bottom-left",
@@ -4526,7 +4722,7 @@ function CompositeEditor({
4526
4722
  nodeColor: "var(--lace-color-accent)"
4527
4723
  }
4528
4724
  ) : null,
4529
- /* @__PURE__ */ jsx21(
4725
+ /* @__PURE__ */ jsx22(
4530
4726
  Controls,
4531
4727
  {
4532
4728
  position: embedded ? "top-left" : "bottom-right",
@@ -4535,7 +4731,7 @@ function CompositeEditor({
4535
4731
  style: embedded ? { top: 8, left: 8 } : { bottom: 20, right: 20 }
4536
4732
  }
4537
4733
  ),
4538
- /* @__PURE__ */ jsx21(
4734
+ /* @__PURE__ */ jsx22(
4539
4735
  ActionBar,
4540
4736
  {
4541
4737
  readOnly,
@@ -4553,10 +4749,10 @@ function CompositeEditor({
4553
4749
  }
4554
4750
  ),
4555
4751
  /* @__PURE__ */ jsxs19("svg", { children: [
4556
- /* @__PURE__ */ jsx21("defs", { children: /* @__PURE__ */ jsx21("pattern", { id: "grid", width: "20", height: "20", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ jsx21("circle", { cx: "1", cy: "1", r: "0.5", fill: gridColor }) }) }),
4557
- /* @__PURE__ */ jsx21("rect", { width: "100%", height: "100%", fill: "url(#grid)" })
4752
+ /* @__PURE__ */ jsx22("defs", { children: /* @__PURE__ */ jsx22("pattern", { id: "grid", width: "20", height: "20", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ jsx22("circle", { cx: "1", cy: "1", r: "0.5", fill: gridColor }) }) }),
4753
+ /* @__PURE__ */ jsx22("rect", { width: "100%", height: "100%", fill: "url(#grid)" })
4558
4754
  ] }),
4559
- nodesInitialized ? /* @__PURE__ */ jsx21("div", { hidden: true, "data-rendered": "" }) : null
4755
+ nodesInitialized ? /* @__PURE__ */ jsx22("div", { hidden: true, "data-rendered": "" }) : null
4560
4756
  ]
4561
4757
  }
4562
4758
  );
@@ -4809,10 +5005,10 @@ function Canvas({ height, registryBaseUrl, apiToken, embedded }) {
4809
5005
  setPolicyOpen(true);
4810
5006
  }, []);
4811
5007
  if (state.loadError) {
4812
- return /* @__PURE__ */ jsx21(ErrorState, { message: state.loadError });
5008
+ return /* @__PURE__ */ jsx22(ErrorState, { message: state.loadError });
4813
5009
  }
4814
5010
  if (state.loading || !state.view) {
4815
- return /* @__PURE__ */ jsx21(
5011
+ return /* @__PURE__ */ jsx22(
4816
5012
  "div",
4817
5013
  {
4818
5014
  style: {
@@ -4829,8 +5025,8 @@ function Canvas({ height, registryBaseUrl, apiToken, embedded }) {
4829
5025
  }
4830
5026
  const view = state.view;
4831
5027
  return /* @__PURE__ */ jsxs19("div", { style: { position: "relative", display: "flex", flexDirection: "column", height }, children: [
4832
- /* @__PURE__ */ jsx21(Toast, { toast }),
4833
- /* @__PURE__ */ jsx21(
5028
+ /* @__PURE__ */ jsx22(Toast, { toast }),
5029
+ /* @__PURE__ */ jsx22(
4834
5030
  ContextMenu,
4835
5031
  {
4836
5032
  contextMenu,
@@ -4842,7 +5038,7 @@ function Canvas({ height, registryBaseUrl, apiToken, embedded }) {
4842
5038
  onDismiss: dismissContextMenu
4843
5039
  }
4844
5040
  ),
4845
- !errorBannerDismissed && validationErrors.length > 0 && !toast && /* @__PURE__ */ jsx21(
5041
+ !errorBannerDismissed && validationErrors.length > 0 && !toast && /* @__PURE__ */ jsx22(
4846
5042
  ValidationErrorBanner,
4847
5043
  {
4848
5044
  diagnostics: validationErrors,
@@ -4855,7 +5051,7 @@ function Canvas({ height, registryBaseUrl, apiToken, embedded }) {
4855
5051
  }
4856
5052
  ),
4857
5053
  /* @__PURE__ */ jsxs19("div", { style: { position: "relative", flex: "1 1 auto", minHeight: 0 }, children: [
4858
- /* @__PURE__ */ jsx21(
5054
+ /* @__PURE__ */ jsx22(
4859
5055
  CompositeEditor,
4860
5056
  {
4861
5057
  view,
@@ -4887,7 +5083,7 @@ function Canvas({ height, registryBaseUrl, apiToken, embedded }) {
4887
5083
  viewportIntentSeq: state.viewportIntentSeq
4888
5084
  }
4889
5085
  ),
4890
- /* @__PURE__ */ jsx21(SlidePanel, { open: !!configTarget, children: configTarget && /* @__PURE__ */ jsx21(
5086
+ /* @__PURE__ */ jsx22(SlidePanel, { open: !!configTarget, children: configTarget && /* @__PURE__ */ jsx22(
4891
5087
  ModuleConfigPanel,
4892
5088
  {
4893
5089
  instance_id: configTarget,
@@ -4896,7 +5092,7 @@ function Canvas({ height, registryBaseUrl, apiToken, embedded }) {
4896
5092
  onModified: clearNew
4897
5093
  }
4898
5094
  ) }),
4899
- /* @__PURE__ */ jsx21(SlidePanel, { open: !!selectedEdge, zIndex: 40, children: selectedEdge && /* @__PURE__ */ jsx21(
5095
+ /* @__PURE__ */ jsx22(SlidePanel, { open: !!selectedEdge, zIndex: 40, children: selectedEdge && /* @__PURE__ */ jsx22(
4900
5096
  EdgeInspectorPanel,
4901
5097
  {
4902
5098
  source: selectedEdge.source,
@@ -4907,7 +5103,7 @@ function Canvas({ height, registryBaseUrl, apiToken, embedded }) {
4907
5103
  onClose: clearSelectedEdge
4908
5104
  }
4909
5105
  ) }),
4910
- /* @__PURE__ */ jsx21(SlidePanel, { open: settingsOpen, children: settingsOpen && /* @__PURE__ */ jsx21(
5106
+ /* @__PURE__ */ jsx22(SlidePanel, { open: settingsOpen, children: settingsOpen && /* @__PURE__ */ jsx22(
4911
5107
  UnifiedSettingsPanel,
4912
5108
  {
4913
5109
  engine,
@@ -4915,7 +5111,7 @@ function Canvas({ height, registryBaseUrl, apiToken, embedded }) {
4915
5111
  onSaved: () => showToast("Settings saved", "success")
4916
5112
  }
4917
5113
  ) }),
4918
- !readOnly && /* @__PURE__ */ jsx21(SlidePanel, { open: policyOpen, children: policyOpen && /* @__PURE__ */ jsx21(
5114
+ !readOnly && /* @__PURE__ */ jsx22(SlidePanel, { open: policyOpen, children: policyOpen && /* @__PURE__ */ jsx22(
4919
5115
  PolicySidebar,
4920
5116
  {
4921
5117
  resolution: policyResolution,
@@ -4923,7 +5119,7 @@ function Canvas({ height, registryBaseUrl, apiToken, embedded }) {
4923
5119
  onClose: () => setPolicyOpen(false)
4924
5120
  }
4925
5121
  ) }),
4926
- canBrowseRegistry && /* @__PURE__ */ jsx21(SlidePanel, { open: registryOpen, children: registryOpen && /* @__PURE__ */ jsx21(
5122
+ canBrowseRegistry && /* @__PURE__ */ jsx22(SlidePanel, { open: registryOpen, children: registryOpen && /* @__PURE__ */ jsx22(
4927
5123
  RegistryBrowser,
4928
5124
  {
4929
5125
  engine,
@@ -4954,7 +5150,7 @@ function useWindowEvent(eventName, handler, options) {
4954
5150
  }
4955
5151
 
4956
5152
  // src/App.tsx
4957
- import { jsx as jsx22 } from "react/jsx-runtime";
5153
+ import { jsx as jsx23 } from "react/jsx-runtime";
4958
5154
  var FIT_ALL_INTENT = { kind: "fit-all" };
4959
5155
  function App({
4960
5156
  engine,
@@ -5034,7 +5230,7 @@ function App({
5034
5230
  useEffect17(() => {
5035
5231
  hostBridge.signalReady();
5036
5232
  }, [hostBridge]);
5037
- return /* @__PURE__ */ jsx22(ErrorBoundary, { children: /* @__PURE__ */ jsx22(
5233
+ return /* @__PURE__ */ jsx23(ErrorBoundary, { children: /* @__PURE__ */ jsx23(
5038
5234
  CanvasContext.Provider,
5039
5235
  {
5040
5236
  value: {
@@ -5044,7 +5240,7 @@ function App({
5044
5240
  arrangement,
5045
5241
  updateArrangement
5046
5242
  },
5047
- children: /* @__PURE__ */ jsx22(ReactFlowProvider, { children: /* @__PURE__ */ jsx22(
5243
+ children: /* @__PURE__ */ jsx23(ReactFlowProvider, { children: /* @__PURE__ */ jsx23(
5048
5244
  Canvas,
5049
5245
  {
5050
5246
  height,