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
38
39
40
41
42
//! Single point of terminal I/O for the CLI (stdout JSON, stderr human).
//!
//! All user-visible output must go through this module; direct `println!` in
//! other modules is forbidden.
//!
//! Split by responsibility (GAP-SG-146), roughly in order of how structured
//! the output is:
//!
//! * `envelope` — complete JSON payloads, and the single point where the
//! agent-native reshaping surface is applied
//! * `error_envelope` — failure payloads, with a serializer-free fallback
//! * `stream` — NDJSON, one record per line, under the GAP-SG-215 stream
//! contract: per-record knobs only, and the `agent_surface` record on the
//! trailer rather than on every line
//! * `passthrough` — plain text and verbatim bytes, no JSON at all
//! * `human` — stderr diagnostics via `tracing`
//! * `sink` — the one place bytes actually reach stdout
//! * [`format`] — `--format` value enums
//! * `responses` — the serializable payload types themselves
//!
//! Every public item is re-exported here, so `crate::output::emit_json` and
//! friends keep working unchanged; callers never name a submodule.
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;