mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 08:14:33 +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)
34 lines
877 B
Rust
34 lines
877 B
Rust
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 skill;
|
|
pub mod speedtest;
|
|
pub mod stream_check;
|
|
pub mod subscription;
|
|
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};
|
|
#[allow(unused_imports)]
|
|
pub use usage_stats::{
|
|
DailyStats, LogFilters, ModelStats, PaginatedLogs, ProviderLimitStatus, ProviderStats,
|
|
RequestLogDetail, UsageSummary,
|
|
};
|