Commit ee67d48
committed
fix(flows-create): auto-generate node IDs and remap wires
AI agents supply logical node IDs (like 'inject1') for wiring references,
but those IDs can collide with existing Node-RED node IDs, causing
'duplicate id' errors. Now the tool always generates fresh UUID-style IDs,
builds an old→new remap, and rewires all connections.
Fixes the dogfooding gap where agents had to create a flow empty then
update it — now a single create call works.1 parent d9d7992 commit ee67d48
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
26 | 41 | | |
27 | 42 | | |
28 | 43 | | |
29 | | - | |
| 44 | + | |
30 | 45 | | |
31 | 46 | | |
32 | 47 | | |
| |||
0 commit comments