Expand description
Structured JSON Lines output for objectiveai-cli.
Every line objectiveai-cli writes to stdout is one Output JSON
object. There are two top-level shapes, discriminated by "type":
error— a failure or advisory (Error).notification— a typed payloadTchosen by the consumer (the CLI defines its own notification enum and parameterizesOutput<T>over it).
T is flattened into the same JSON object as the "type" tag via
serde’s internal tagging, so T should be a struct or an
internally-tagged enum.
Re-exports§
pub use notification::*;
Modules§
Structs§
- Error
- A failure or advisory written to stdout.
fatal: truemeans the process is exiting with a non-zero status;fatal: falseis a non-blocking warning (e.g. auto-update failed but the requested command still ran).
Enums§
- Handle
- Destination for
super::Output::emit. - Level
- Severity matching the conventions used by bunyan / pino /
logcrate JSON encoders.fatalis encoded separately onError. - Output
- A single line of CLI output.