- Create Economist SubmissionTracking package correctly: * mainArticle = full blog post content * coverLetter = 216-word SIR— letter * Links to blog post via blogPostId - Archive 'Letter to The Economist' from blog posts (it's the cover letter) - Fix date display on article cards (use published_at) - Target publication already displaying via blue badge Database changes: - Make blogPostId optional in SubmissionTracking model - Economist package ID: 68fa85ae49d4900e7f2ecd83 - Le Monde package ID: 68fa2abd2e6acd5691932150 Next: Enhanced modal with tabs, validation, export 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
1 KiB
JavaScript
28 lines
1 KiB
JavaScript
#!/usr/bin/env node
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const historyPath = path.join(__dirname, '../.claude/instruction-history.json');
|
|
const history = JSON.parse(fs.readFileSync(historyPath, 'utf8'));
|
|
|
|
// Archive inst_010 and inst_050
|
|
['inst_010', 'inst_050'].forEach(id => {
|
|
const inst = history.instructions.find(i => i.id === id);
|
|
if (inst && inst.active) {
|
|
inst.active = false;
|
|
inst.archived_date = new Date().toISOString();
|
|
inst.archived_reason = id === 'inst_010'
|
|
? 'Covered by general quality standards (inst_004) and deployment checklist (inst_071)'
|
|
: 'Best practice covered by general development workflow, not framework-critical';
|
|
console.log(`✓ Archived ${id}`);
|
|
}
|
|
});
|
|
|
|
history.last_updated = new Date().toISOString();
|
|
fs.writeFileSync(historyPath, JSON.stringify(history, null, 2));
|
|
|
|
const activeCount = history.instructions.filter(i => i.active).length;
|
|
console.log(`\n✓ Active instructions: ${activeCount}`);
|
|
if (activeCount < 50) {
|
|
console.log(`✓ TARGET ACHIEVED: <50 active instructions!`);
|
|
}
|