--- // WorktreeMap โ the repository-topology diagram with the SVG trunk-and-branches // behind four `tree-node` buttons. // // Static shell: the SVG paths render server-side; the nodes are buttons with // the `data-tree` hook asserted by `scripts/verify.mjs`. The `root` node and // the `initial` branch are marked selected. type Localized = { en: string; pt: string }; interface Branch { /** The `data-tree` hook, e.g. "ui", "tests", "docs". */ id: string; /** Uppercase label, e.g. "UI AGENT". */ label: string | Localized; /** Strong line, e.g. "agent/ui". */ strong: string; /** Status small, e.g. "3 files ยท working". */ small: string | Localized; /** CSS modifier so each branch picks up its tone. */ tone: 'ui' | 'tests' | 'docs' | string; } interface Props { branches: Branch[]; initial?: string; rootLabel?: string | Localized; rootSmall?: string | Localized; } const { branches, initial = 'main', rootLabel = 'ROOT', rootSmall = 'โ clean' } = Astro.props; ---