groove-dev 0.26.27 → 0.26.28
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/node_modules/@groove-dev/gui/dist/assets/{index-AsZg-lZa.js → index--XNm9lTq.js} +38 -38
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/src/views/agents.jsx +26 -1
- package/package.json +1 -1
- package/packages/gui/dist/assets/{index-AsZg-lZa.js → index--XNm9lTq.js} +38 -38
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/src/views/agents.jsx +26 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
7
7
|
<title>Groove GUI</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index
|
|
8
|
+
<script type="module" crossorigin src="/assets/index--XNm9lTq.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/vendor-C0HXlhrU.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/reactflow-BQPfi37R.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/codemirror-BBL3i_JW.js">
|
|
@@ -319,7 +319,32 @@ function AgentTreeInner() {
|
|
|
319
319
|
});
|
|
320
320
|
}, [targetNodes, setNodes]);
|
|
321
321
|
|
|
322
|
-
|
|
322
|
+
// Recalculate edge handles from actual node positions (not saved positions)
|
|
323
|
+
// Runs after nodes settle — handles always match where nodes actually are
|
|
324
|
+
useEffect(() => {
|
|
325
|
+
setEdges(() => {
|
|
326
|
+
const rootNode = nodes.find((n) => n.id === ROOT_ID);
|
|
327
|
+
if (!rootNode) return targetEdges;
|
|
328
|
+
const rootPos = rootNode.position;
|
|
329
|
+
|
|
330
|
+
return targetEdges.map((edge) => {
|
|
331
|
+
const agentNode = nodes.find((n) => n.id === edge.target);
|
|
332
|
+
if (!agentNode) return edge;
|
|
333
|
+
|
|
334
|
+
const dx = agentNode.position.x + NODE_W / 2 - rootPos.x;
|
|
335
|
+
const dy = agentNode.position.y + NODE_H / 2 - rootPos.y;
|
|
336
|
+
let sourceHandle, targetHandle;
|
|
337
|
+
if (Math.abs(dy) > Math.abs(dx)) {
|
|
338
|
+
sourceHandle = dy > 0 ? 'bottom' : 'top';
|
|
339
|
+
targetHandle = dy > 0 ? 'top' : 'bottom';
|
|
340
|
+
} else {
|
|
341
|
+
sourceHandle = dx > 0 ? 'right' : 'left';
|
|
342
|
+
targetHandle = dx > 0 ? 'left' : 'right';
|
|
343
|
+
}
|
|
344
|
+
return { ...edge, sourceHandle, targetHandle };
|
|
345
|
+
});
|
|
346
|
+
});
|
|
347
|
+
}, [targetEdges, nodes, setEdges]);
|
|
323
348
|
|
|
324
349
|
// Only fitView when agents are added — debounced so team launches (multiple spawns)
|
|
325
350
|
// don't cause repeated zoom/pan jitter
|