// SPEC-464: Only canonical pages are regenerated (index + roadmap).
// Legacy pages (analytics, changelog, executive-summary, risks, decisions, architecture)
// are no longer generated automatically.
const STORE_TO_PAGES = {
    specs: ['index', 'roadmap'],
    metrics: ['index'],
    risks: [],
    decisions: [],
    knowledge: [],
};
/**
 * Return the deduplicated set of portal pages that need regeneration
 * when the given stores have changed.
 */
export function getAffectedPages(changedStores) {
    const pages = new Set();
    for (const store of changedStores) {
        const mapped = STORE_TO_PAGES[store];
        for (const p of mapped) {
            pages.add(p);
        }
    }
    return [...pages];
}
//# sourceMappingURL=dirty-flag-map.js.map