Skip to main content

emit_success

Function emit_success 

Source
pub fn emit_success(
    event: &str,
    fields: Value,
    human: &str,
    json: bool,
) -> Result<()>
Expand description

Agent-first success emitter (GAP-AUD-003/008).

When json is true, writes a single stdout envelope: { "ok": true, "event": <event>, …fields }. Otherwise prints the human message (respecting --quiet).

§Errors

Returns I/O errors from writing stdout.