mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 08:05:58 +08:00
8f018a2d45
Add a profile feature that captures the current provider, MCP, skills and prompt state for Claude Code and Codex as a named snapshot, and re-applies it in one click from the header switcher or the tray Projects submenu. - New profiles table (schema v12) with current marker in settings - ProfileService orchestrates the four existing switch primitives (provider first, then MCP diff, skills diff, prompt enable) - Best-effort apply: dangling references become warnings, no rollback - Header combobox switcher + snapshot-style manage dialog - Tray Projects submenu shared with the UI apply/event pipeline - i18n for zh/en/ja/zh-TW under the new profiles domain - Integration tests covering roundtrip, dangling refs and clear
48 lines
1.2 KiB
Rust
48 lines
1.2 KiB
Rust
pub mod balance;
|
|
pub mod codex_oauth_models;
|
|
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 profile;
|
|
pub mod prompt;
|
|
pub mod provider;
|
|
pub mod proxy;
|
|
pub mod s3;
|
|
pub mod s3_auto_sync;
|
|
pub mod s3_sync;
|
|
pub mod session_usage;
|
|
pub mod session_usage_codex;
|
|
pub mod session_usage_gemini;
|
|
pub mod session_usage_opencode;
|
|
pub mod skill;
|
|
pub mod speedtest;
|
|
pub mod sql_helpers;
|
|
pub mod stream_check;
|
|
pub mod subscription;
|
|
pub mod sync_protocol;
|
|
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, UsageSummaryByApp,
|
|
};
|