mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-28 00:35:32 +08:00
518d945eb8
Hermes aggregates all in-process API calls into a single sessions row with the `model` field locked to the initial model, so the usage dashboard cannot cleanly surface per-call billing context. Two rounds of UI workarounds (raw mapping, then `<model> @ <host>` display) did not resolve the user-facing confusion, so the whole tracking integration is dropped for now. Removes session_usage_hermes service (and its 17 tests), sync wiring in commands/usage.rs and lib.rs, _hermes_session/hermes_session entries in usage_stats SQL (provider_name_coalesce CASE and effective_usage_log_filter IN clause), frontend Tab/banner/dropdown/ icon entries, and four i18n keys per locale. Hermes app integration outside usage tracking (proxy routing, session manager, config) is preserved. Pre-existing hermes rows in proxy_request_logs are left as orphans — filtered out by the updated SQL and never surfaced in the UI.
40 lines
1.0 KiB
Rust
40 lines
1.0 KiB
Rust
pub mod balance;
|
|
pub mod coding_plan;
|
|
pub mod config;
|
|
pub mod env_checker;
|
|
pub mod env_manager;
|
|
pub mod mcp;
|
|
pub mod model_fetch;
|
|
pub mod omo;
|
|
pub mod prompt;
|
|
pub mod provider;
|
|
pub mod proxy;
|
|
pub mod session_usage;
|
|
pub mod session_usage_codex;
|
|
pub mod session_usage_gemini;
|
|
pub mod skill;
|
|
pub mod speedtest;
|
|
pub mod stream_check;
|
|
pub mod subscription;
|
|
pub mod usage_cache;
|
|
pub mod usage_stats;
|
|
pub mod webdav;
|
|
pub mod webdav_auto_sync;
|
|
pub mod webdav_sync;
|
|
|
|
pub use config::ConfigService;
|
|
pub use mcp::McpService;
|
|
pub use omo::OmoService;
|
|
pub use prompt::PromptService;
|
|
pub use provider::{ProviderService, ProviderSortUpdate, SwitchResult};
|
|
pub use proxy::ProxyService;
|
|
#[allow(unused_imports)]
|
|
pub use skill::{DiscoverableSkill, Skill, SkillRepo, SkillService};
|
|
pub use speedtest::{EndpointLatency, SpeedtestService};
|
|
pub use usage_cache::UsageCache;
|
|
#[allow(unused_imports)]
|
|
pub use usage_stats::{
|
|
DailyStats, LogFilters, ModelStats, PaginatedLogs, ProviderLimitStatus, ProviderStats,
|
|
RequestLogDetail, UsageSummary,
|
|
};
|