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>
16 lines
431 B
JavaScript
16 lines
431 B
JavaScript
import assert from 'node:assert';
|
|
|
|
export function requireEnv(keys) {
|
|
const missing = [];
|
|
for (const k of keys) {
|
|
if (!process.env[k] || String(process.env[k]).trim() === '') missing.push(k);
|
|
}
|
|
return { ok: missing.length === 0, missing };
|
|
}
|
|
|
|
export const DEFAULT_REQUIRED = [
|
|
// adapte à ton projet
|
|
'OPENAI_API_KEY', 'ANTHROPIC_API_KEY', 'GOOGLE_API_KEY',
|
|
'MAX_COST_PER_ARTICLE', 'TRACE_PATH'
|
|
];
|