async function handler(ctx) {
    const { specId, projectPath } = ctx;
    if (!projectPath) {
        return;
    }
    await import('../../living-specs/index.js')
        .then(({ reconcileSpec }) => reconcileSpec(specId, projectPath))
        .catch((err) => {
        console.error('[planu] living-specs auto-reconcile failed:', err);
    });
}
export const livingSpecsHook = {
    id: 'living-specs',
    triggers: ['implementing', 'done'],
    requiresProjectPath: true,
    label: 'Auto-reconcile living specs on implementing/done (SPEC-330)',
    handler,
};
//# sourceMappingURL=living-specs.hook.js.map