Skip to main content

Module regen

Module regen 

Source
Expand description

cargo xtask codex-schema regen <dir> - rebuilds the vendored schema assets from a fresh codex app-server generate-json-schema dump, and stamps the codex version they were generated from for staleness detection (see crates/shared/codex-app-server-client/build.rs).

Functionsยง

assert_no_v2_refs ๐Ÿ”’
Mirrors the Python originalโ€™s final sanity assertion: every #/definitions/v2/X ref must have been rewritten to #/definitions/X before writing - a leftover match means the ref-rewrite pass missed something and the output would fail to resolve.
capture_codex_version ๐Ÿ”’
parse_args ๐Ÿ”’
regen
run
stamp_codex_version ๐Ÿ”’