/**
 * NERF branch naming patterns — single source of truth.
 *
 * bnerf/<worktree>/<milestone>/<slice>  → SLICE_BRANCH_RE
 * bnerf/quick/<id>-<slug>               → QUICK_BRANCH_RE
 * bnerf/<workflow>/<...>                 → WORKFLOW_BRANCH_RE (non-milestone bnerf/ branches)
 */
/** Matches bnerf/ slice branches: bnerf/[worktree/]M001[-hash]/S01 */
export const SLICE_BRANCH_RE = /^bnerf\/(?:([a-zA-Z0-9_-]+)\/)?(M\d+(?:-[a-z0-9]{6})?)\/(S\d+)$/;
/** Matches bnerf/quick/ task branches */
export const QUICK_BRANCH_RE = /^bnerf\/quick\//;
/** Matches bnerf/ workflow branches (non-milestone, e.g. bnerf/workflow-name/...) */
export const WORKFLOW_BRANCH_RE = /^bnerf\/(?!M\d)[\w-]+\//;
