atproto_codegen
Lexicon -> Gleam codegen. Reads <lexicons_dir>/**/*.json and writes
typed modules into <out_dir>, importable as <out_module>/....
Pipeline: read lexicon files, decode via atproto_lexicon/decoding into
ast.LexiconDoc, codegen/lower flattens those into the view plugins
consume, codegen/plugin runs the registered plugins and assembles
their per-module sections, codegen/module_header computes each
module’s import header, then this module writes the files.
Values
pub fn main() -> Nil