// 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.');