reportist/docs/development.md

814 B

Report plugin development

plugins/report/render.typ and plugins/report/model.typ own authored report structure. render.sh stages these files with the shared visual/elements.typ, visual/themes.yaml, and logo. The diagnostic plugin imports the same visual module but keeps its own Typst document logic.

Run tests/test.sh for both plugin suites. In the integration repository, ../beffroi.sh test rebuilds seven authored reports and ten diagnostics and compares them with the original Typst PDFs. When the local reference exists, the comparison includes rasterized pages.

The old Reportist v1 schema, IR adapter, and their test oracle were retired. The active report validator compiles with the report plugin so its checks stay aligned with rendering. build.sh is the public CLI for both plugins.