/** * The label vocabulary the projection uses. * * Two kinds of label, doing two different jobs: * * - **The discovery label** (`aidlc` by default) is how the whole issue map is found in * one `gh issue list` call. It is identity: an issue without it is invisible to the * projection. * - **A status label** (`aidlc:backlog`, `aidlc:done`, …) is how a reader tells planned * from in-flight without opening anything. * * The status names are *derived* from `ROADMAP_STATUSES` rather than listed here, so the * two vocabularies cannot drift: adding a sixth status becomes a compile-time fact * instead of a label nobody remembered to add. * * `LABEL_COLOR` and `LABEL_DESCRIPTION` exist because `gh label create` exits 1 on a * label that already exists, so creation must pass `--force` — and `gh` chooses a * *random* colour when none is given, so `--force` without an explicit colour would * repaint the label on every single run. Fixed values make the ensure genuinely * idempotent. * * Requirements: roadmap-issue-projection/AC-17, roadmap-issue-projection/AC-43 * * @module */ import { type RoadmapStatus } from '../paths.js'; /** Default discovery label. Overridable via `roadmap.sync.label`. */ export declare const DEFAULT_DISCOVERY_LABEL = "aidlc"; /** GitHub's own label-name limit. */ export declare const MAX_LABEL_LENGTH = 50; /** Prefix marking a label this projection owns. */ export declare const STATUS_LABEL_PREFIX = "aidlc:"; /** The label carrying an item's status. */ export declare function statusLabel(status: RoadmapStatus): string; /** Every status label, derived. */ export declare const ALL_STATUS_LABELS: readonly string[]; /** * True when a label name is one this projection owns. * * Used to decide what `update-labels` may remove. Anything failing this test is a * human's label and is never touched — which is why the update uses `--add-label` / * `--remove-label` rather than a wholesale `--label` replacement. */ export declare function isStatusLabel(name: string): boolean; /** Fixed colours, so `--force` is idempotent rather than a repaint. */ export declare const LABEL_COLOR: Readonly>; /** Fallback colour for a custom discovery label. */ export declare const FALLBACK_LABEL_COLOR = "5319e7"; /** Fixed descriptions, for the same reason as the colours. */ export declare const LABEL_DESCRIPTION: Readonly>; /** Fallback description for the discovery label, whatever it is named. */ export declare function discoveryLabelDescription(): string; /** Colour for a label name, falling back for a custom discovery label. */ export declare function colorFor(name: string): string; /** Description for a label name, falling back for a custom discovery label. */ export declare function descriptionFor(name: string): string; //# sourceMappingURL=labels.d.ts.map