This file remains the compiled CLI entry — npm run generate-article
resolves to scripts/aggregator/article-generator.js. The
process.exit, console.log, and process.argv side-effects live
inside the isMain block below so that programmatic importers
(production aggregator code, the test suite, downstream curators)
see only the pure barrel exports.
Always-14-languages-always-HTML contract: every CLI invocation
renders every supported language to HTML. The legacy --lang /
--language / --markdown-only flags have been removed. The
programmatic generateArticle() API still accepts langs and
markdownOnly for tests that need to scope a render for speed.
Description
Barrel + thin CLI entry point for the article generator.
The library was split (Refactor 7/8) into focused sub-modules under
./generator/so the public API is importable without CLI side-effects:./generator/cli.ts—parseCliArgs,CliOptions./generator/slug.ts— slug + default-description helpers./generator/discovery.ts—discoverAnalysisRuns, grouping./generator/reader-guide-insertion.ts— Reader guide splice helper./generator/render-one.ts—generateArticle(...)single-run./generator/render-batch.ts—generateAllArticles(opts)This file remains the compiled CLI entry —
npm run generate-articleresolves toscripts/aggregator/article-generator.js. Theprocess.exit,console.log, andprocess.argvside-effects live inside theisMainblock below so that programmatic importers (production aggregator code, the test suite, downstream curators) see only the pure barrel exports.Always-14-languages-always-HTML contract: every CLI invocation renders every supported language to HTML. The legacy
--lang/--language/--markdown-onlyflags have been removed. The programmaticgenerateArticle()API still acceptslangsandmarkdownOnlyfor tests that need to scope a render for speed.