Commit Graph

314 Commits

  • Squashed commit of the following:
    commit 2a9f2f20e9c6d88c2f96fd40589740e1f236f64a
    Author: Tunglies <77394545+Tunglies@users.noreply.github.com>
    Date:   Mon Oct 13 11:07:31 2025 +0800
    
        fix: improve message handling in CommandEvent logging with CompactString
    
    commit c77fc18accefeaf471594035d61bd13e235c87d6
    Author: Tunglies <77394545+Tunglies@users.noreply.github.com>
    Date:   Mon Oct 13 10:47:16 2025 +0800
    
        fix: optimize shared writer locking in CommandEvent handling
    
    commit d5286ee5f1612f17b7a97eead84d430669816d98
    Author: Tunglies <77394545+Tunglies@users.noreply.github.com>
    Date:   Mon Oct 13 10:30:19 2025 +0800
    
        feat: integrate CompactString for improved logging and dependency management
    
    commit 951fb2b120ce159c00dc57d43c5a519990f34cee
    Author: Tunglies <77394545+Tunglies@users.noreply.github.com>
    Date:   Mon Oct 13 09:39:29 2025 +0800
    
        refactor: remove write_sidecar_log function and streamline logging in CommandEvent handling
    
    commit fd48d66c55a2c62fd32741fd3c65cc06d4cc693f
    Author: Tunglies <77394545+Tunglies@users.noreply.github.com>
    Date:   Mon Oct 13 09:38:05 2025 +0800
    
        Revert "refactor(core): stabilize 'static backing for sidecar logging"
    
        This reverts commit fe7eb59f18.
  • Revert "fix: improve Service connection method and permissions for Windows and Unix"
    This reverts commit 601e99f0b5.
    
    Revert "refactor: clash-verge-rev-service-ipc (#4841)"
    
    This reverts commit 5370bd45ed.
  • refactor: clash-verge-rev-service-ipc (#4841)
    * feat: update service installation scripts and IPC integration
    
    - Updated `Cargo.toml` to use version 2.0.8 of `clash_verge_service_ipc` with "client" feature.
    - Renamed service installation and uninstallation scripts in `post-install.sh` and `pre-remove.sh`.
    - Removed `service_ipc` module and refactored IPC handling in `service.rs` to use the new `clash_verge_service_ipc` directly.
    - Adjusted service version checking and core management to align with the new IPC structure.
    - Simplified directory checks in `dirs.rs` and updated logging configurations in `init.rs`.
    - Updated Linux configuration file to reflect new script names.
    - Enhanced service installer hook to manage state more effectively.
    
    * refactor: simplify ClashConfig instantiation and remove unused service log file function
    
    * feat: update clash_verge_service_ipc to version 2.0.9 and enhance service initialization logging
    
    * chore: update clash_verge_service_ipc to version 2.0.10 and refactor async service manager initialization
    
    * fix: update clash_verge_service_ipc to version 2.0.11 and improve service manager initialization
    
    * fix: increase sleep duration for socket readiness check to improve stability
    
    * fix: update clash_verge_service_ipc to version 2.0.12 and kode-bridge to version 0.3.4; refactor service management and IPC path checks
    
    * fix: update clash_verge_service_ipc to version 2.0.13; refactor service connection and initialization logic
  • chore(deps): update rust crate regex to 1.12.1 (#5017)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • chore(deps): update rust crate libc to 0.2.177 (#5003)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • chore(deps): update rust crate zip to v6 (#5000)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • chore(deps): update rust crate flexi_logger to 0.31.6 (#4979)
    * chore(deps): update rust crate flexi_logger to 0.31.6
    
    * chore: up lock
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Slinetrac <realakayuki@gmail.com>
  • refactor: invock mihomo api by use tauri-plugin-mihomo (#4926)
    * feat: add tauri-plugin-mihomo
    
    * refactor: invock mihomo api by use tauri-plugin-mihomo
    
    * chore: todo
    
    * chore: update
    
    * chore: update
    
    * chore: update
    
    * chore: update
    
    * fix: incorrect delay status and update pretty config
    
    * chore: update
    
    * chore: remove cache
    
    * chore: update
    
    * chore: update
    
    * fix: app freezed when change group proxy
    
    * chore: update
    
    * chore: update
    
    * chore: add rustfmt.toml to tauri-plugin-mihomo
    
    * chore: happy clippy
    
    * refactor: connect mihomo websocket
    
    * chore: update
    
    * chore: update
    
    * fix: parse bigint to number
    
    * chore: update
    
    * Revert "fix: parse bigint to number"
    
    This reverts commit 74c006522e.
    
    * chore: use number instead of bigint
    
    * chore: cleanup
    
    * fix: rule data not refresh when switch profile
    
    * chore: update
    
    * chore: cleanup
    
    * chore: update
    
    * fix: traffic graph data display
    
    * feat: add ipc connection pool
    
    * chore: update
    
    * chore: clippy
    
    * fix: incorrect delay status
    
    * fix: typo
    
    * fix: empty proxies tray menu
    
    * chore: clippy
    
    * chore: import tauri-plugin-mihomo by using git repo
    
    * chore: cleanup
    
    * fix: mihomo api
    
    * fix: incorrect delay status
    
    * chore: update tauri-plugin-mihomo dep
    
    chore: update
  • chore(deps): update rust crate flexi_logger to 0.31.5 (#4965)
    * chore(deps): update rust crate flexi_logger to 0.31.5
    
    * chore: up lock
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Slinetrac <realakayuki@gmail.com>
  • chore(deps): update cargo dependencies (#4899)
    * chore(deps): update cargo dependencies
    
    * chore: up lock
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Slinetrac <realakayuki@gmail.com>
  • chore(deps): update cargo dependencies (#4796)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • fix: Cargo.toml dependencies option (#4805)
    * chore: update cargo lock
    
    * refactor: streamline dependency declarations in Cargo.toml
    
    * refactor: reorder import statements and comment out Cargo.toml version update
    
    * fix: enable Cargo version update in release script and update tauri-plugin-devtools dependency
  • refactor: enhance logging system and add new development commands (#4803)
    * refactor: enhance logging system and add new development commands
    
    * refactor: add cfg-if dependency and improve logging configuration
  • refactor: clash-verge-service management (#4674)
    * refactor: clash-verge-service management
    
    * fix: correct service state checks in ProxyControlSwitches component
    refactor: improve logging in service state update functions
    
    * fix: add missing async handler for Windows and adjust logging import for macOS
    
    * fix: streamline logging imports and add missing async handler for Windows
    
    * refactor: remove unused useServiceStateSync hook and update imports in _layout
    
    * refactor: remove unused useServiceStateSync import and clean up code in ProxyControlSwitches and _layout
    
    * refactor: simplify service status checks and reduce wait time in useServiceInstaller hook
    
    * refactor: remove unnecessary logging statements in service checks and IPC connection
    
    * refactor: extract SwitchRow component for better code organization and readability
    
    * refactor: enhance service state management and update related mutations in layout
    
    * refactor: streamline core stopping logic and improve IPC connection logging
    
    * refactor: consolidate service uninstallation logic and improve error handling
    
    * fix: simplify conditional statements in CoreManager and service functions
    
    * feat: add backoff dependency and implement retry strategy for IPC requests
    
    * refactor: remove redundant Windows conditional and improve error handling in IPC tests
    
    * test: improve error handling in IPC tests for message signing and verification
    
    * fix: adjust IPC backoff retry parameters
    
    * refactor: Remove service state tracking and related logic from service management
    
    * feat: Enhance service status handling with logging and running mode updates
    
    * fix: Improve service status handling with enhanced error logging
    
    * fix: Ensure proper handling of service operations with error propagation
    
    * refactor: Simplify service operation execution and enhance service status handling
    
    * fix: Improve error message formatting in service operation execution and simplify service status retrieval
    
    * refactor: Replace Cache with CacheProxy in multiple modules and update CacheEntry to be generic
    
    * fix: Remove unnecessary success message from config validation
    
    * refactor: Comment out logging statements in service version check and IPC request handling
  • chore(deps): update cargo dependencies (#4687)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • chore(deps): update cargo dependencies (#4586)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • refactor: migrate from serde_yaml to serde_yaml_ng for improved YAML handling (#4568)
    * refactor: migrate from serde_yaml to serde_yaml_ng for improved YAML handling
    
    * refactor: format code for better readability in DNS configuration
  • chore(deps): update sysinfo to 0.37.0 and zip to 4.5.0 in Cargo.toml (#4564)
    * chore(deps): update sysinfo to 0.37.0 and zip to 4.5.0 in Cargo.toml
    
    * chore(deps): remove libnghttp2-sys dependency and update isahc features in Cargo.toml
    
    * chore(deps): remove sysinfo and zip from ignoreDeps in renovate.json
  • chore(deps): update rust crate reqwest_dav to 0.2.2 (#4554)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • refactor: enhance async initialization and streamline setup process (#4560)
    * feat: Implement DNS management for macOS
    
    - Added `set_public_dns` and `restore_public_dns` functions in `dns.rs` to manage system DNS settings.
    - Introduced `resolve` module to encapsulate DNS and scheme resolution functionalities.
    - Implemented `resolve_scheme` function in `scheme.rs` to handle deep links and profile imports.
    - Created UI readiness management in `ui.rs` to track and update UI loading states.
    - Developed window management logic in `window.rs` to handle window creation and visibility.
    - Added initial loading overlay script in `window_script.rs` for better user experience during startup.
    - Updated server handling in `server.rs` to integrate new resolve functionalities.
    - Refactored window creation calls in `window_manager.rs` to use the new window management logic.
    
    * refactor: streamline asynchronous handling in config and resolve setup
    
    * Revert "refactor: streamline asynchronous handling in config and resolve setup"
    
    This reverts commit 23d7dc86d5.
    
    * fix: optimize asynchronous memory handling
    
    * fix: enhance task logging by adding size check for special cases
    
    * refactor: enhance async initialization and streamline setup process
    
    * refactor: optimize async setup by consolidating initialization tasks
    
    * chore: update changelog for Mihomo(Meta) kernel upgrade to v1.19.13
    
    * fix: improve startup phase initialization performance
    
    * refactor: optimize file read/write performance to reduce application wait time
    
    * refactor: simplify app instance exit logic and adjust system proxy guard initialization
    
    * refactor: change resolve_setup_async to synchronous execution for improved performance
    
    * refactor: update resolve_setup_async to accept AppHandle for improved initialization flow
    
    * refactor: remove unnecessary initialization of portable flag in run function
    
    * refactor: consolidate async initialization tasks into a single blocking call for improved execution flow
    
    * refactor: optimize resolve_setup_async by restructuring async tasks for improved concurrency
    
    * refactor: streamline resolve_setup_async and embed_server for improved async handling
    
    * refactor: separate synchronous and asynchronous setup functions for improved clarity
    
    * refactor: simplify async notification handling and remove redundant network manager initialization
    
    * refactor: enhance async handling in proxy request cache and window creation logic
    
    * refactor: improve code formatting and readability in ProxyRequestCache
    
    * refactor: adjust singleton check timeout and optimize trace size conditions
    
    * refactor: update TRACE_SPECIAL_SIZE to include additional size condition
    
    * refactor: update kode-bridge dependency to version 0.2.1-rc2
    
    * refactor: replace RwLock with AtomicBool for UI readiness and implement event-driven monitoring
    
    * refactor: convert async functions to synchronous for window management
    
    * Update src-tauri/src/utils/resolve/window.rs
    
    * fix: handle missing app_handle in create_window function
    
    * Update src-tauri/src/module/lightweight.rs
  • fix(subscription): resolve issues causing import failures in some cases #4534, #4436, #4552, #4519, #4517, #4503, #4336, #4301 (#4553)
    * fix(subscription): resolve issues causing import failures in some cases #4534, #4436, #4552, #4519, #4517, #4503, #4336, #4301
    
    * fix(profile): update profile creation to include file data handling
    
    * fix(app): improve singleton instance exit handling
    
    * fix: remove unsued handle method
  • chore(deps): update cargo dependencies (#4468)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • chore(deps): update cargo dependencies (#4451)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Tunglies <tunglies.dev@outlook.com>
  • chore(deps): update cargo dependencies (#4443)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • fix: clippy errors with new config (#4428)
    * refactor: improve code quality with clippy fixes and standardized logging
    
    - Replace dangerous unwrap()/expect() calls with proper error handling
    - Standardize logging from log:: to logging\! macro with Type:: classifications
    - Fix app handle panics with graceful fallback patterns
    - Improve error resilience across 35+ modules without breaking functionality
    - Reduce clippy warnings from 300+ to 0 in main library code
    
    * chore: update Cargo.toml configuration
    
    * refactor: resolve all clippy warnings
    - Fix Arc clone warnings using explicit Arc::clone syntax across 9 files
    - Add #[allow(clippy::expect_used)] to test functions for appropriate expect usage
    - Remove no-effect statements from debug code cleanup
    - Apply clippy auto-fixes for dbg\! macro removals and path statements
    - Achieve zero clippy warnings on all targets with -D warnings flag
    
    * chore: update Cargo.toml clippy configuration
    
    * refactor: simplify macOS job configuration and improve caching
    
    * refactor: remove unnecessary async/await from service and proxy functions
    
    * refactor: streamline pnpm installation in CI configuration
    
    * refactor: simplify error handling and remove unnecessary else statements
    
    * refactor: replace async/await with synchronous locks for core management
    
    * refactor: add workflow_dispatch trigger to clippy job
    
    * refactor: convert async functions to synchronous for service management
    
    * refactor: convert async functions to synchronous for UWP tool invocation
    
    * fix: change wrong logging
    
    * refactor: convert proxy restoration functions to async
    
    * Revert "refactor: convert proxy restoration functions to async"
    
    This reverts commit b82f5d250b.
    
    * refactor: update proxy restoration functions to return Result types
    
    * fix: handle errors during proxy restoration and update async function signatures
    
    * fix: handle errors during proxy restoration and update async function signatures
    
    * refactor: update restore_pac_proxy and restore_sys_proxy functions to async
    
    * fix: convert restore_pac_proxy and restore_sys_proxy functions to async
    
    * fix: await restore_sys_proxy calls in proxy restoration logic
    
    * fix: suppress clippy warnings for unused async functions in proxy restoration
    
    * fix: suppress clippy warnings for unused async functions in proxy restoration
  • chore(deps): update rust crate async-trait to 0.1.89 (#4404)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • chore(deps): update cargo dependencies (#4360)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • chore(deps): update rust crate warp to 0.4.1 (#4342)
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>