mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-25 13:45:03 +08:00
bfdac2a22a
Add a new "Token Plan" template type in the usage query panel that natively queries quota/usage from Chinese coding plan providers (Kimi For Coding, Zhipu GLM, MiniMax) without requiring custom scripts. - Rust backend: new coding_plan service with provider-specific API queries (Kimi /v1/usages, Zhipu /api/monitor/usage/quota/limit, MiniMax /coding_plan/remains) normalized into UsageResult - Frontend: Token Plan template in UsageScriptModal with auto-detection of provider based on ANTHROPIC_BASE_URL pattern matching - Follows the same pattern as GitHub Copilot template (dedicated API path in queryProviderUsage, no JS script needed)
61 lines
993 B
Rust
61 lines
993 B
Rust
#![allow(non_snake_case)]
|
|
|
|
mod auth;
|
|
mod coding_plan;
|
|
mod config;
|
|
mod copilot;
|
|
mod deeplink;
|
|
mod env;
|
|
mod failover;
|
|
mod global_proxy;
|
|
mod import_export;
|
|
mod mcp;
|
|
mod misc;
|
|
mod model_fetch;
|
|
mod omo;
|
|
mod openclaw;
|
|
mod plugin;
|
|
mod prompt;
|
|
mod provider;
|
|
mod proxy;
|
|
mod session_manager;
|
|
mod settings;
|
|
pub mod skill;
|
|
mod stream_check;
|
|
mod subscription;
|
|
mod sync_support;
|
|
|
|
mod lightweight;
|
|
mod usage;
|
|
mod webdav_sync;
|
|
mod workspace;
|
|
|
|
pub use auth::*;
|
|
pub use coding_plan::*;
|
|
pub use config::*;
|
|
pub use copilot::*;
|
|
pub use deeplink::*;
|
|
pub use env::*;
|
|
pub use failover::*;
|
|
pub use global_proxy::*;
|
|
pub use import_export::*;
|
|
pub use mcp::*;
|
|
pub use misc::*;
|
|
pub use model_fetch::*;
|
|
pub use omo::*;
|
|
pub use openclaw::*;
|
|
pub use plugin::*;
|
|
pub use prompt::*;
|
|
pub use provider::*;
|
|
pub use proxy::*;
|
|
pub use session_manager::*;
|
|
pub use settings::*;
|
|
pub use skill::*;
|
|
pub use stream_check::*;
|
|
pub use subscription::*;
|
|
|
|
pub use lightweight::*;
|
|
pub use usage::*;
|
|
pub use webdav_sync::*;
|
|
pub use workspace::*;
|