You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-code-search.ts currently parses --group-by-team-prefix as a flat comma-separated prefix list and calls fetchRepoTeams (src/api.ts) with that flat list; fetchRepoTeams's signature is prefix-list agnostic and does not need to change. This issue integrates all previous sub-issues into the actual CLI surface.
Parse the new --group-by-team-prefix chain grammar: / separates hierarchy levels within one chain, , separates independent sibling hierarchies (confirm and document the exact grammar, including edge cases like leading/trailing /, empty segments, duplicate prefixes across chains).
Flatten all distinct prefix segments across all chains/levels before calling fetchRepoTeams (no changes needed to fetchRepoTeams itself).
Context
github-code-search.ts currently parses
--group-by-team-prefixas a flat comma-separated prefix list and callsfetchRepoTeams(src/api.ts) with that flat list;fetchRepoTeams's signature is prefix-list agnostic and does not need to change. This issue integrates all previous sub-issues into the actual CLI surface.Part of EPIC #125. Depends on #177, #178, #179, #180, #181.
Solution
--group-by-team-prefixchain grammar:/separates hierarchy levels within one chain,,separates independent sibling hierarchies (confirm and document the exact grammar, including edge cases like leading/trailing/, empty segments, duplicate prefixes across chains).fetchRepoTeams(no changes needed tofetchRepoTeamsitself).Acceptance Criteria
--group-by-team-prefix "gamme-/squad-,chapter-"is parsed into one 2-level chain (gamme-,squad-) and one 1-level chain (chapter-)./) produces a clear stderr warning and a sane fallback (e.g. treat as a flat single-level prefix), not a crash.Definition of Done
bun test,bun run lint,bun run format:check,bun run knip,bun run build.tsall green.