pub fn merge_groups(
existing: &[SemanticGroup],
new_assignments: &[SemanticGroup],
delta: &DiffDelta,
) -> Vec<SemanticGroup>Expand description
Merge new LLM grouping assignments into existing groups.
Steps:
- Clone existing groups.
- Remove entries for
removed_filesandmodified_files(stale data). - For each group in
new_assignments:- If label matches an existing group (case-insensitive), merge changes into it.
- Otherwise, append as a new group.
- Remove empty groups.