mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
Resolve the active `claude` command from PATH and apply an equal-length byte patch to remove the domain whitelist check. Backups are stored in ~/.cc-switch/toolsearch-backups/ (SHA-256 of path) so they survive Claude Code version upgrades. The patch auto-reapplies on app startup when the setting is enabled. Frontend checks PatchResult.success and rolls back the setting on failure.
49 lines
804 B
Rust
49 lines
804 B
Rust
#![allow(non_snake_case)]
|
|
|
|
mod config;
|
|
mod deeplink;
|
|
mod env;
|
|
mod failover;
|
|
mod global_proxy;
|
|
mod import_export;
|
|
mod mcp;
|
|
mod misc;
|
|
mod omo;
|
|
mod openclaw;
|
|
mod plugin;
|
|
mod prompt;
|
|
mod provider;
|
|
mod proxy;
|
|
mod session_manager;
|
|
mod settings;
|
|
pub mod skill;
|
|
mod stream_check;
|
|
mod sync_support;
|
|
mod toolsearch;
|
|
mod usage;
|
|
mod webdav_sync;
|
|
mod workspace;
|
|
|
|
pub use config::*;
|
|
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 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 toolsearch::*;
|
|
pub use usage::*;
|
|
pub use webdav_sync::*;
|
|
pub use workspace::*;
|