When two nodes share the same name, addNodeWithSubnodes() auto-renames
the second (e.g., "Process" → "Process 1"). However, add() and to() were
using node.name instead of the returned map key, causing subsequent
connections to target the wrong node.
- Capture addNodeWithSubnodes return value for _currentNode in add()
- Add InputTarget handling to workflow-level to() method
- Merge existing/new node paths in to() using idempotent addNodeWithSubnodes
- Add InputTarget overload to WorkflowBuilder interface
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>