mirror of
https://github.com/morluto/rea.git
synced 2026-10-12 02:19:24 +00:00
Derive package, tool-family, provider, setup-client, schema-version, and CLI facts from the runtime contract sources into a deterministic checked-in catalog. Add non-mutating generated-file checks, exact TypeDoc regenerate-and-compare validation, caller-visible documentation fact checks, and CI enforcement through docs:check. Cover command-router parity, source-derived catalog values, deliberate documentation drift, and stale generated artifacts while preserving runtime behavior.
11 lines
462 B
JavaScript
11 lines
462 B
JavaScript
import { dirname, join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
import { assertDocumentationFacts } from "./lib/docs-facts.mjs";
|
|
import { createProductCatalog } from "./lib/product-catalog.mjs";
|
|
|
|
if (process.argv.length > 2)
|
|
throw new Error(`Unknown documentation check option: ${process.argv[2]}`);
|
|
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
await assertDocumentationFacts(root, await createProductCatalog(root));
|