4fe4773381
Phase 5 of multi-repository task support: primitives the upcoming UI work needs without changing any visible behavior yet. - TaskRepository.checkout_branch surfaces the optional PR head branch field that the backend already exposes. - primaryTaskRepository(repos) picks by lowest Position so consumers match the backend's "primary" semantics instead of `[0]`. - New useTaskRepositories(taskId) / useTaskPrimaryRepository(taskId) hooks read the live kanban task and return its repos sorted by position. Future kanban/diff/UI consumers should use these instead of poking task.repositories directly. - Tests cover lowest-position selection and empty/single-repo edge cases. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>