import { z } from 'zod';
export const SPEC_ID_PATTERN = /^SPEC-\d+$/;
export const SPEC_DIR_NAME_PATTERN = /^SPEC-\d+(?:-[a-z0-9]+(?:-[a-z0-9]+)*)?$/;
export const SpecIdSchema = z
    .string()
    .min(1)
    .max(50)
    .regex(SPEC_ID_PATTERN, 'Spec ID must use canonical numeric format like SPEC-042.');
export const SpecDirNameSchema = z
    .string()
    .min(1)
    .max(200)
    .regex(SPEC_DIR_NAME_PATTERN, 'Spec directory must start with a canonical numeric ID like SPEC-042 or SPEC-042-my-feature.');
export function isCanonicalSpecId(value) {
    return SPEC_ID_PATTERN.test(value);
}
//# sourceMappingURL=spec-id.js.map