pub enum Event {
OpenAtomcode,
LlmChat {Show 14 fields
duration_ms: u32,
tool_calls_count: u32,
input_tokens: u32,
output_tokens: u32,
cached_tokens: u32,
had_error: bool,
context_window: u32,
system_tokens: u32,
tool_def_tokens: u32,
tool_result_tokens: u32,
message_tokens: u32,
messages_count: u32,
error_kind: Option<LlmErrorKind>,
error_data: Option<String>,
},
ToolCall {
name: String,
success: bool,
duration_ms: u32,
error_kind: Option<ToolErrorKind>,
error_data: Option<String>,
},
UseCommand {
type_: String,
success: Option<bool>,
error_kind: Option<UseCommandErrorKind>,
error_data: Option<String>,
},
McpConnect {
server_name: String,
transport: McpTransport,
success: bool,
duration_ms: Option<u32>,
error_kind: Option<McpErrorKind>,
error_data: Option<String>,
},
LoginSuccess,
TakeCodingplan {
type_: CodingplanResult,
error_kind: Option<CodingplanErrorKind>,
error_data: Option<String>,
},
Panic {
location: String,
message_head: String,
thread: String,
backtrace_top_5: Vec<String>,
error_kind: Option<String>,
error_data: Option<String>,
},
TelemetryDisabled,
CodingplanOfficialBuildRequired,
}Variants§
OpenAtomcode
Fired when AtomCode is launched (interactive CLI, oneshot, or TUI entry). Not fired for –version / –help / telemetry subcommands.
LlmChat
One LLM turn completed (success or failure).
Fields
error_kind: Option<LlmErrorKind>Error category (None when had_error=false or unclassifiable).
ToolCall
Single tool call result (success or failure).
Fields
error_kind: Option<ToolErrorKind>Error category (None when success=true).
UseCommand
A slash command was executed in TUI or daemon.
type_ is the literal command name (without the leading /).
Fields
error_kind: Option<UseCommandErrorKind>Error category (None when success=true or legacy).
McpConnect
MCP server connection attempt (success or failure).
Fields
transport: McpTransportTransport type.
error_kind: Option<McpErrorKind>Error category (None when success=true).
LoginSuccess
OAuth login completed successfully.
TakeCodingplan
A coding plan run finished.
Fields
type_: CodingplanResulterror_kind: Option<CodingplanErrorKind>Error category (None when type_=Success).
Panic
Panic captured by global hook.
Fields
TelemetryDisabled
Final event before user opts out via atomcode telemetry disable.
Only fired if telemetry was currently enabled at the time of the command.
CodingplanOfficialBuildRequired
Reserved variant. Will be fired (in a future PR) when an
open-source build of AtomCode attempts to send a request to the
AtomGit LLM gateway. Locking the wire-format event_id here
keeps the firing-site PR small.