import { loadKeywordGroups } from './keyword-loader.js';
/** Numeric weight per priority (higher = more important). Used for sorting and scoring. */
export const PRIORITY_ORDER = {
    critical: 4,
    high: 3,
    medium: 2,
    low: 1,
};
// ---------------------------------------------------------------------------
// Config-driven keyword sets (SPEC-211)
// Loaded once at module init from src/config/ac-gap-keywords.json
// Teams can override at data/global/ac-gap-keywords-custom.json
//   or data/projects/{hash}/config/ac-gap-keywords-overrides.json
// ---------------------------------------------------------------------------
const _keywords = loadKeywordGroups();
function getKeywords(domain) {
    const kws = _keywords.get(domain);
    if (!kws) {
        throw new Error(`AC gap keyword group not found for domain: "${domain}"`);
    }
    return kws;
}
/** Keywords that indicate an existing AC already covers error handling. */
export const ERROR_HANDLING_KEYWORDS = getKeywords('error-handling');
/** Keywords that indicate existing ACs cover security concerns. */
export const SECURITY_KEYWORDS = getKeywords('security');
/** Keywords that indicate existing ACs cover performance concerns. */
export const PERFORMANCE_KEYWORDS = getKeywords('performance');
/** Keywords that indicate existing ACs cover accessibility. */
export const ACCESSIBILITY_KEYWORDS = getKeywords('accessibility');
/** Keywords that indicate existing ACs cover input/data validation. */
export const DATA_VALIDATION_KEYWORDS = getKeywords('data-validation');
/** Keywords that indicate existing ACs cover observability. */
export const OBSERVABILITY_KEYWORDS = getKeywords('observability');
/** Keywords that indicate existing ACs cover edge cases broadly. */
export const EDGE_CASE_KEYWORDS = getKeywords('edge-cases');
/** Keywords that indicate existing ACs cover rollback / undo. */
export const ROLLBACK_KEYWORDS = getKeywords('rollback');
/** Signal words that suggest this spec likely has UI / frontend components. */
export const WEB_UI_KEYWORDS = getKeywords('web-ui');
//# sourceMappingURL=constants.js.map