async function handler(ctx) {
    const { projectPath, specId, spec } = ctx;
    if (!projectPath) {
        return;
    }
    // Skip trivial-scope specs
    if (spec.scope === 'trivial') {
        return;
    }
    await import('../../../engine/technical-enricher/index.js')
        .then(({ runTechnicalEnricher }) => runTechnicalEnricher({ specId, projectPath, specScope: spec.scope }))
        .catch(() => {
        /* best-effort — never blocks update_status */
    });
}
export const reviewEnricherHook = {
    id: 'review-enricher',
    triggers: ['review'],
    requiresProjectPath: true,
    label: 'Auto-enrich technical.md when spec moves to review (SPEC-696)',
    handler,
};
//# sourceMappingURL=review-enricher.hook.js.map