Added plan.md with complete architecture for format-agnostic content generation: - Support for Markdown, HTML, Plain Text, JSON formats - New FormatExporter module with neutral data structure - Integration strategy with existing ContentAssembly and ArticleStorage - Bonus features: SEO metadata generation, readability scoring, WordPress Gutenberg format - Implementation roadmap with 4 phases (6h total estimated) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
11 lines
436 B
JavaScript
11 lines
436 B
JavaScript
export class MemoryArticleStorage {
|
|
constructor() {
|
|
this._map = new Map(); // key -> {data, final}
|
|
}
|
|
async writeDraft(key, data) { this._map.set(key, {data, final:false}); }
|
|
async writeFinal(key, data) { this._map.set(key, {data, final:true}); }
|
|
async hasFinal(key) { return this._map.get(key)?.final === true; }
|
|
async readFinal(key) { return this._map.get(key)?.data; }
|
|
count() { return this._map.size; }
|
|
}
|