notParsec / 문서전체 문서

생성 코드·템플릿

write_briefs.cjs

design/write_briefs.cjs

출처: 현재 작업 폴더 · 원문 다운로드

// Regenerate both handoffs from the same policy, catalogue and evidence ledger.
const fs = require('node:fs');
const path = require('node:path');
const C = require('./plan-core.js');
const D = require('./development-progress.js');
const read = name => JSON.parse(fs.readFileSync(path.join(__dirname, name), 'utf8'));
const plan = read('plan-data.json');
const report = read('development-status.json');
C.validatePlan(plan);
D.validate(plan, report);
for (const [name, state] of [
  ['START_DEVELOPMENT.md', C.initial(plan)],
  ['ALL_FEATURES_DEVELOPMENT.md', C.normalize(plan, read('all-features-scope.json'))],
]) fs.writeFileSync(path.join(__dirname, name), C.brief(plan, state, report) + '\n');
console.log('Updated default and all-features handoffs.');