Expand description
Handler for the merge-entities CLI subcommand (GAP-19).
Merges two or more source entities into a single target entity by:
- Retargeting all relationships pointing at any source to the target.
- Deduplicating relationships that become identical after the merge (same source_id + target_id + relation).
- Retargeting memory_entities bindings.
- Deleting the now-empty source entity rows.