magi-code 0.100.0

Repository-aware CLI coding agent for terminal work
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Built-in provider identities, independent of provider execution.

pub(crate) const OPENAI_CODEX_PROVIDER: &str = "openai-codex";
pub(crate) const ANTHROPIC_PROVIDER: &str = "anthropic";
pub(crate) const CLAUDE_SUBSCRIPTION_PROVIDER: &str = "claude-subscription";

/// Providers whose input usage excludes cache reads and writes.
pub(crate) fn reports_anthropic_usage(provider_id: &str) -> bool {
    matches!(
        provider_id,
        ANTHROPIC_PROVIDER | CLAUDE_SUBSCRIPTION_PROVIDER
    )
}