1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Render the live agent schema to `schema/agents.json`.
//!
//! Calls [`agent_config::schema::build`] and writes the result with a
//! consistent pretty-printed shape. The first key in the document is
//! `"_warning"`, which makes the auto-generated origin obvious to anyone
//! grepping the file.
//!
//! Run: `cargo run --example gen_schema`
//!
//! The companion test at `tests/schema_golden.rs` verifies that the
//! checked-in file matches the live build. Set `AGENT_SCHEMA_UPDATE=1`
//! when running that test to regenerate.
use PathBuf;
use schema;