1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 22:04:43 +00:00
Commit Graph

137 Commits

Author SHA1 Message Date
Tw93
24fa0f8f21 feat: Add cleanup rule for Quark (夸克) video cache (#279) 2026-01-09 14:38:59 +08:00
Tw93
9d59649b51 feat(debug): add detailed debug output for clean operations
- Add classify_cleanup_risk() for risk level classification (LOW/MEDIUM/HIGH)
- Enhance safe_clean() with operation details and risk info
- Show item counts and file lists in debug mode
- Support for lib/clean/user.sh debug enhancements
- Part of GitHub issue #242 implementation
2026-01-04 17:30:41 +08:00
Tw93
fc4d94f7c7 Merge pull request #247 from JackPhallen/feat/more-purge-support
feat(purge): C# bin purge support
2026-01-04 16:16:59 +08:00
Jack Phallen
aabee42344 feat(purge): C# bin purge support 2026-01-03 23:24:25 -08:00
Jack Phallen
2045917c23 feat(purge): Additional python purge targets 2026-01-03 22:54:37 -08:00
Tw93
41c8325019 chore: auto format code 2026-01-03 10:08:35 +00:00
Tw93
6dfd675417 refactor: standardize epoch time retrieval with get_epoch_seconds and ensure locale-independent string transformations. 2026-01-03 18:07:47 +08:00
Tw93
8a55e33a00 refactor: ensure mail cleaning configuration variables default to empty if unset. 2026-01-03 14:06:29 +08:00
Tw93
5ee7d2d703 test: fix empty directory cleanup depth and remove obsolete spinner test 2026-01-03 13:37:53 +08:00
Tw93
f98aab6840 refactor: simplify configuration by removing unused environment variables 2026-01-03 13:34:19 +08:00
Tw93
5955bd93dc feat: enhance clean logic
1. Add recursive empty directory cleanup for Application Support and Caches.
2. Add support for cleaning old Edge Updater versions.
2026-01-03 13:29:07 +08:00
Tw93
3cb21aad7e refactor: improve brew cleanup timeout handling and remove app_caches, clean_extras, and optimize_core tests. 2026-01-03 12:53:31 +08:00
Tw93
ac5c0e3c9d fix: Add Library directory existence check to clean script and enhance test script for bats version compatibility. 2026-01-03 12:30:53 +08:00
Tw93
f5a8adb97e feat: implement empty Library directory cleanup and Android NDK version check. 2026-01-03 09:41:05 +08:00
Tw93
d701519310 refactor: simplify pnpm environment variable handling in clean script 2026-01-02 19:10:20 +08:00
Tw93
910e79df4e feat: Improve clean command's regex handling and pnpm cache cleaning, enhance test output, update completion descriptions, and clarify installation instructions. 2026-01-02 18:50:42 +08:00
Jack Phallen
5e7f276722 fix(purge): use regex OR pattern instead of multiple -g flags for fd 2026-01-01 22:45:30 -08:00
Tw93
23ffafc415 feat: add Microsoft Edge old version cleanup and improve vendor directory protection logic. 2026-01-02 00:29:58 +08:00
Tw93
a671c63401 feat: smart vendor directory handling in purge
- Only clean PHP Composer vendor (regeneratable)
  - Protect Rails, Go, and unknown vendor directories
  - Enhanced test coverage for all scenarios

  Builds on PR #229 with improved multi-language support
2026-01-02 00:03:17 +08:00
Jalen Yan
9e84883de5 fix: skip Rails vendor during purge 2026-01-01 23:37:02 +08:00
Tw93
b64f7df357 feat: add Zig build artifacts and project files to cleanup script. 2026-01-01 13:48:08 +08:00
Tw93
f53d440bb8 feat: Add Chrome old versions cleanup and whitelist Poetry virtualenvs from cleaning. 2026-01-01 10:26:59 +08:00
Tw93
2bede99e94 fix: enhance local snapshot warning and improve disk space calculation for macOS 2026-01-01 10:12:43 +08:00
Tw93
9aa569cbb6 feat: Enhance clean, optimize, analyze, and status commands, and update security audit documentation. 2025-12-31 16:23:31 +08:00
Tw93
aca0f66688 chore: auto format code 2025-12-31 02:25:09 +00:00
Tw93
97ed11cd42 refactor: clean_local_snapshots now uses an array for snapshot processing and includes a read_key fallback, with new tests. 2025-12-31 10:23:11 +08:00
Tw93
7247ded783 fix: prompt before cleaning local snapshots and keep latest 2025-12-31 09:24:59 +08:00
Tw93
13e735d58a fix: replace safe_sudo with sudo for local snapshot removal 2025-12-30 23:53:17 +08:00
Tw93
bb49ec3170 fix: Improve shell script robustness by adding variable validation and safer du output parsing. 2025-12-30 18:07:48 +08:00
Tw93
6c1fcd23d7 feat: optimize clean operation performance by pre-expanding whitelist patterns, improving size calculation, and adapting parallel processing based on file types, alongside test suite enhancements. 2025-12-30 17:13:43 +08:00
Tw93
3ba406b5e7 Merge branch 'main' of github.com:tw93/Mole 2025-12-30 14:48:15 +08:00
Tw93
f5dad048ff refactor: improve pagination robustness and reduce code duplication 2025-12-30 14:48:10 +08:00
Tw93
dab8136da5 chore: auto format code 2025-12-30 06:46:48 +00:00
Tw93
73f3d43308 feat: improve mo purge UX with pagination and smart project detection
- Add pagination for project list based on terminal height
- Show position indicator [5/25] when scrolling
- Fix GB display for values < 1 (0.6GB instead of .6GB)
- Improve project name detection by walking up to find project root
- Change default editor from nano to vim
2025-12-30 14:38:16 +08:00
Tw93
3eccb7c094 feat: improve project clean module's common utility sourcing and bump version to 1.15.10 2025-12-29 20:26:16 +08:00
Tw93
fd95e2f3fc chore: auto format code 2025-12-29 11:38:50 +00:00
Tw93
6328bf158d feat(purge): smart project discovery and optimization 2025-12-29 19:38:14 +08:00
Tw93
bf36d3d6b6 chore: polish PR #197 and add Xcode Archives whitelist option
- Remove duplicate comment in project.sh
- Fix color code issue in purge.sh help message
- Add proper spacing after load_purge_config function
- Add shell syntax highlighting in README code block
- Add Xcode Archives to whitelist options (fixes #195)
2025-12-29 19:18:41 +08:00
Tw93
ad43c92fa1 chore: auto format code 2025-12-29 11:16:45 +00:00
Andrii Medvediev
7e62ed19f9 feat: add configurable purge paths (#197) 2025-12-29 19:16:16 +08:00
Tw93
56c5fe08d2 Remove some useless comments 2025-12-29 15:38:30 +08:00
Tw93
ae3889eb34 Simplify the content deleted by the system 2025-12-29 15:34:35 +08:00
Tw93
694c55f73b fix: implement layered error tolerance and accurate cleanup reporting (#175 #176 #180)
- Fix safe_remove set -e trap in command substitution
  - Fix has_full_disk_access false positives and unknown state handling
  - Use set +e in perform_cleanup for graceful degradation
  - Track removal failures and only count actually deleted items (#180)
  - Add "Skipped X items (permission denied or in use)" notification
  - Improve spinner reliability with cooperative stop mechanism (#175)
2025-12-29 14:27:47 +08:00
Tw93
b67204f959 feat: remove SQLite vacuum optimization, enhance CJK/emoji width calculation, and improve system cleanup and UI feedback. 2025-12-29 00:29:42 +08:00
Hensell
23479c61bd feat: add .dart_tool to project purge targets and disk analyzer (#179) 2025-12-28 20:12:22 +08:00
Tw93
ffce5aeb2a chore: auto format code 2025-12-28 12:11:02 +00:00
Tw93
ff6f288c9b fix: replace pgrep with tmutil status for more accurate Time Machine backup detection and add new tests for this logic. 2025-12-28 20:10:16 +08:00
Tw93
66ad3b34ee chore: auto format code 2025-12-28 11:39:34 +00:00
Tw93
faac42cb62 Improve performance and process handling 2025-12-28 19:37:42 +08:00
Tw93
e7546d762b Add deep system cache cleaning features
- Clean memory exception reports (can save 1-2GB)
     - Clean diagnostic tracev3 logs with 30-day retention
     - Clean core symbolication cache when >1GB with timeout protection
     - Clean Aliyun/DingTalk security component logs and caches
     - Use standard cleanup functions with proper validation
2025-12-28 19:35:57 +08:00