# @evolv/wiki-gen Generate the AUTOGEN sections of per-node wikis from the source of truth (`nodes//src/commands/index.js`). ## What it generates Replaces content between these markers: ```markdown ... wiki-gen overwrites this block ... ``` The 9 wikis uplifted in 2026-05 carry these markers in `wiki/Reference-Contracts.md` (and some in `wiki/Home.md`); `wiki-gen` keeps them in sync with the registry. ## Usage ```bash # regenerate every node node tools/wiki-gen/bin/wiki-gen.js # one node node tools/wiki-gen/bin/wiki-gen.js nodes/rotatingMachine # CI check: fail if any AUTOGEN block is out of date node tools/wiki-gen/bin/wiki-gen.js --check ``` ## What it writes For each registry descriptor: | Column | Source | |---|---| | Canonical topic | `descriptor.topic` | | Aliases | `descriptor.aliases` (deprecation candidates) | | Payload | `descriptor.payloadSchema` | | Unit | `descriptor.units.measure` + `descriptor.units.default` (or `—`) | | Effect | `descriptor.description` | ## Out of scope (for now) - The `data-model` AUTOGEN block (sample of `getOutput()`) — requires instantiating the domain class, which depends on `generalFunctions`. The 9 wikis carry hand-written placeholders inside those markers; upgrading to runtime sampling is a follow-up. Run after touching `src/commands/index.js` in any node, or as a CI gate.