MCPcopy Create free account
hub / github.com/ccusage/ccusage / agent_report_supported

Function agent_report_supported

rust/crates/ccusage-cli/src/parser.rs:794–808  ·  view source on GitHub ↗
(agent: &str, report: &str)

Source from the content-addressed store, hash-verified

792}
793
794fn agent_report_supported(agent: &str, report: &str) -> bool {
795 match agent {
796 "claude" => matches!(
797 report,
798 "daily" | "weekly" | "monthly" | "session" | "blocks" | "statusline"
799 ),
800 "codex" => matches!(report, "daily" | "monthly" | "session"),
801 "opencode" => matches!(report, "daily" | "weekly" | "monthly" | "session"),
802 "amp" | "droid" | "codebuff" | "hermes" | "pi" | "goose" | "kilo" | "copilot"
803 | "gemini" | "kimi" | "qwen" | "openclaw" => {
804 matches!(report, "daily" | "monthly" | "session")
805 }
806 _ => false,
807 }
808}
809
810fn agent_display_name(agent: &str) -> &'static str {
811 match agent {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected