Typst has no typst eval subcommand, but typst query is one in practice. It runs the
full compiler and emits JSON instead of a document, which is enough to use the language
as a scripting runtime — map/filter, regex, dictionaries, recursion, date formatting.
Everything below is verified against Typst 0.14.0 on Linux.