feat: add task records and verified engineering check jobs
This commit is contained in:
@@ -151,6 +151,7 @@ export function applyChange(store, session, id) {
|
||||
fs.renameSync(temporary, target);
|
||||
} finally { if (fs.existsSync(temporary)) fs.unlinkSync(temporary); }
|
||||
change.status = 'applied'; change.appliedAt = now();
|
||||
store.invalidateChecks(project.id);
|
||||
if (session.status === 'needs_review' && !session.changes.some(item => ['pending', 'conflict'].includes(item.status))) session.status = 'completed';
|
||||
store.event(session, { kind: 'change', label: '已应用 ' + change.path, phase: 'completed', output: exists ? '写入前基线检查通过,原文已备份。' : '写入前基线检查通过,已创建新文件。' });
|
||||
return change;
|
||||
|
||||
Reference in New Issue
Block a user