import { generateContextMd } from '../../context-md-generator.js';
async function handler(ctx) {
    const { projectPath, projectId } = ctx;
    if (!projectPath) {
        return;
    }
    await generateContextMd(projectPath, projectId).catch(() => {
        /* best-effort */
    });
}
export const contextMdHook = {
    id: 'context-md',
    triggers: [], // any status change
    requiresProjectPath: true,
    label: 'Regenerate context.md on every status change (SPEC-654)',
    handler,
};
//# sourceMappingURL=context-md.hook.js.map