Skip to main contentModule output
Source - exit_codes
- Exit codes for agent-friendly error handling.
Agents can branch on specific failure modes without parsing error text.
- OutputConfig
- Output configuration for agent-friendly CLI design.
- exit_code_for_error
- Map an error to a specific exit code by downcasting to ApiError.
- hyperlink
- Format a URL as a clickable OSC 8 hyperlink in terminals that support it.
- print_error_envelope
- Write a structured error envelope as the last line of stderr.
- use_color
- Whether to use colored output (only when stdout is a terminal).