Skip to main content

Crate atm_core

Crate atm_core 

Source
Expand description

ATM Core - Shared types for Claude Code monitoring

This crate provides the core domain types shared between the daemon (atmd) and TUI (atm).

All code follows the panic-free policy: no .unwrap(), .expect(), panic!(), unreachable!(), todo!(), or direct indexing [i].

Re-exports§

pub use agent::AgentType;
pub use context::ContextUsage;
pub use context::TokenCount;
pub use cost::Money;
pub use error::DomainError;
pub use error::DomainResult;
pub use hook::HookEventType;
pub use model::Model;
pub use session::DisplayState;
pub use session::LinesChanged;
pub use session::SessionDomain;
pub use session::SessionDuration;
pub use session::SessionId;
pub use session::SessionInfrastructure;
pub use session::SessionStatus;
pub use session::SessionView;
pub use session::ToolUseId;
pub use session::ToolUsageRecord;
pub use session::TranscriptPath;

Modules§

agent
Agent type identification.
context
Context window and token tracking.
cost
Money and cost tracking value objects.
error
Domain-specific error types following panic-free policy.
hook
Hook event types from Claude Code.
model
Claude model identification and metadata.
session
Session domain entities and value objects.