Skip to main content

Module print_schema

Module print_schema 

Source
Expand description

Agent-native R-AN-01: --print-schema emits embedded JSON Schema and exits. Agent-native R-AN-01: emit a command’s JSON Schema and exit without work.

Two surfaces share this module:

  • the per-subcommand --print-schema flag, which emits the one schema its subcommand documents;
  • the top-level schema subcommand, which lists every contract shipped in docs/schemas/ and emits any of them by id.

Both write compact JSON to stdout and return successfully without opening the database, calling an LLM, or performing other side effects.

Schemas are embedded at compile time so the installed binary does not depend on a source-tree checkout.

Structs§

SchemaArgs
Arguments for the top-level schema subcommand.

Enums§

SchemaId
Identifiers for every JSON Schema shipped under docs/schemas/.

Functions§

emit
Emit the compact JSON Schema for id to stdout and flush.
run
Runs the schema subcommand: catalogue listing or single-document emit.