Changelog
- Added the new mo optimize command with full system tuning (cache refresh, network reset, log cleanup, Spotlight rebuild).
- Rewrote the entire disk analysis module in Go with faster concurrent scanning and smart caching.
- Improved large-directory handling by auto-collapsing node_modules and optimizing large-file detection.
- Strengthened path-safety checks to prevent accidental system deletion and expanded protected directories.
- Enhanced whitelist validation to block malformed paths, spaces, and injection attempts like double slashes.
- Added post-Base64 decoding validation to prevent null-byte and illegal-path injection risks.
- Optimized logging and caching systems to reduce I/O and improve overall performance.
- Improved sudo keep-alive stability and refined DS_Store cleanup with progress and directory exclusions.
- Overhauled keyboard and UI interactions with simpler inputs, better prompts, and unified Q to exit.
- Upgraded code quality with ShellCheck, new unit tests, optimized scripts.
- Fixed the timeout issue during Brew cleanup, optimized the installation experience of Raycast to support 4 commands.
更新日志
- 新增 mo optimize 一键系统优化命令,涵盖缓存刷新、网络重置、日志清理、Spotlight 重建等全套操作。
- 使用 Go 语言重写磁盘分析模块,支持并发扫描并引入智能缓存,大幅提升分析速度。
- 优化大型目录处理,自动折叠 node_modules,并改进大文件检测与展示逻辑。
- 加强路径安全校验,防止误删系统文件,并扩大关键系统目录的保护范围。
- 升级白名单校验机制,严格拒绝异常路径、空格路径和 // 注入风险。
- Base64 解码后新增完整性与非法字符校验,避免批量卸载中的路径注入问题。
- 优化日志与缓存系统,减少 I/O 消耗并提升整体性能。
- 改进 sudo 保活稳定性,并增强 DS_Store 清理逻辑(进度显示与目录排除)。
- 全面优化键盘与界面交互,输入更简洁、提示更清晰,统一使用 Q 退出。
- 提升代码质量:加入 ShellCheck、完善单测、优化脚本.
- 修复Brew清理时候的超时问题,Raycast 安装体验优化支持4个命令
Learn how to use it through this main document. If you think mole is useful to you, welcome to Star