CLI entry point for the analysis-artifact-driven article
pipeline. Given a run directory under analysis/daily/, it aggregates
every artifact into a canonical Markdown document, renders it to HTML,
and writes one HTML variant per language (plus the English source
Markdown).
Usage:
npm run generate-article -- --run analysis/daily/2026-01-15/breaking-run1
npm run generate-article -- --run ... --lang en --lang sv
npm run generate-article -- --run ... --out-dir news --title "Headline"
Designed to be idempotent: running again with no changes overwrites
identical files byte-for-byte.
Description
CLI entry point for the analysis-artifact-driven article pipeline. Given a run directory under
analysis/daily/, it aggregates every artifact into a canonical Markdown document, renders it to HTML, and writes one HTML variant per language (plus the English source Markdown).Usage: npm run generate-article -- --run analysis/daily/2026-01-15/breaking-run1 npm run generate-article -- --run ... --lang en --lang sv npm run generate-article -- --run ... --out-dir news --title "Headline"
Designed to be idempotent: running again with no changes overwrites identical files byte-for-byte.