v4.0.0
Features
-
Enhance ksu handling in module loading and add fallback check
-
daemonImplement command handling and HTTP server for WebUI - Addedcommands.rsto handle various daemon commands including status, configuration, and Kasumi operations. - Introducedhttp.rsto manage the HTTP server for WebUI interactions, including session management and SSE support. - Implemented request validation and response formatting for daemon commands. - Created validation schemas invalidation.tsfor structured error handling and response parsing in the WebUI. -
AppEnsure status is loaded during app initialization
Fixes
- Review and harden frontend-backend interaction - saveConfigToFile now includes kasumi and rules fields (was silently dropping) - Replace fastrand token generation with /dev/urandom CSPRNG - Use {err} instead of {err:#} in HTTP responses to avoid leaking filesystem paths - Remove Access-Control-Allow-Private-Network CORS header - Add /proc//cmdline verification to PID file cleanup - Add config.toml.bak backup before overwriting config - Remove duplicate KasumiUnameMode enum, reuse schema::KasumiUnameMode - Replace inverted bool return with ConnectionAction enum in HTTP handler - Add typed DaemonCommandPayload discriminated union matching Rust serde tags - Add runDaemonCommand() bypassing JSON-in-shell-string round-trip - Preserve first error in bridge retry for debugging - Fix clearKasumiUname transaction order (clear runtime before config) - Fix ensureDaemonAwake TOCTOU race - Add proper types to RuntimeStatePayload stable fields - Rename parseHybridMountJsonOutput to parseDaemonJsonOutput - Clarify extractConfig fallback logic with comment
Refactors
-
Remove module metadata from runtime entries and tests for cleaner payload handling
-
runtime_stateSimplify conditional check in save method -
sysStoreRemove redundant systemInfo updates in handleSseUpdate
Maintenance
-
Update .gitignore to include CLAUDE.md
-
Pnpm format
-
Make clippy happy
Other
- Refactor inventory discovery and planner modules for improved directory handling and performance