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

136 Commits

Author SHA1 Message Date
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
Tw93
52d50a0a80 Improve spinner subprocess and trap cleanup handling 2025-12-28 19:35:29 +08:00
Tw93
c8e33931c2 refactor: centralize whitelist path checking with a new is_path_whitelisted helper function 2025-12-28 09:21:04 +08:00
Tw93
36e480333b Add inline spinners for better UI feedback and integrate recent items cleanup into the main flow. 2025-12-27 10:15:58 +08:00
Tw93
a7c989588e improve code quality and fix signal handling 2025-12-26 20:34:38 +08:00
Tw93
2c23d15eb7 Clean performance speed optimization 2025-12-26 18:25:38 +08:00
Luke Bullimore
785032635a feat: harden user file handling and gate LaunchServices rebuild (#159)
- add ensure_user_dir/ensure_user_file helpers in lib/core/base.sh, including
  sudo-aware ownership correction under the invoking user’s home
- use the helpers across clean/optimize/purge/uninstall/whitelist to create
  cache and export files safely (no naked mkdir/touch), including log files and
  dry-run exports
- ensure purge stats/count files and update message caches are pre-created with
  safe permissions
- add Darwin version helpers and skip LaunchServices/dyld rebuild on macOS 15+,
  keeping the existing corruption protection for earlier versions
- guard brew cache timestamp writes and TCC permission flags with safe file
  creation to avoid root-owned artifacts
2025-12-26 10:54:56 +08:00
Tw93
d5c41a6fb7 chore: Remove whitelist skipped count from clean script output summaries. 2025-12-22 16:57:25 +08:00
Tw93
240202dfa9 refactor: Extract Apple Silicon cache cleaning to a shared function and improve optimization summary calculation. 2025-12-19 20:35:54 +08:00
Tw93
8eeed7d079 feat(clean, optimize): enhance recent items cleanup safety 2025-12-18 17:19:18 +08:00
Tw93
af03452f6d feat: Enhance clean and optimize operations with new configuration constants 2025-12-18 17:02:04 +08:00
Tw93
9d72eab95a feat: add interactive purge command with comprehensive tests 2025-12-18 14:16:56 +08:00
Tw93
df7e5c8a04 feat: enhance system protection by adding critical path safeguards and removing problematic Spotlight and Finder/Dock cleanups. 2025-12-18 10:42:13 +08:00
Tw93
7e229bbf41 feat: Improve cleaning protection for system settings and control center, 2025-12-18 09:34:38 +08:00
Tw93
34bdd14a6f feat: add purge command to clean project build artifacts and update clean dry-run message. 2025-12-17 20:35:45 +08:00
Tw93
a77638da8d feat: Add com.apple.finder cache to cleaning, protect specific apps from critical cleaning, implement login item whitelist checks 2025-12-15 15:32:49 +08:00
Tw93
37c7b7e743 feat: Add AI agent documentation, expand critical application protection for AI/LLM tools, and enhance user cache cleaning safety 2025-12-14 08:53:19 +08:00
Tw93
da73cb901e feat: Add local APFS snapshot cleanup, optimize Homebrew health check, and enhance UI feedback for various operations 2025-12-13 13:37:41 +08:00
Tw93
581f9398e0 feat: Add comprehensive protection for various VPN and proxy applications and bump version. 2025-12-13 12:16:25 +08:00
Tw93
57819950bb Scan a large number of files for optimization 2025-12-11 16:41:17 +08:00
Tw93
2386701897 Fix search problems and best practices 2025-12-08 17:40:54 +08:00
Tw93
8128765d79 Support the clean uninstall of more than 10 mainstream ides 2025-12-08 16:51:54 +08:00
Tw93
78e6743666 Performance and speed optimization 2025-12-08 15:34:51 +08:00
Tw93
e7fd73302d More thoughtful consideration 2025-12-06 21:12:02 +08:00
Tw93
074f447269 Move the system maintenance in the cleaning to optimize 2025-12-06 20:37:36 +08:00
Tw93
cec6d7a462 Do not clean up the system panel cache 2025-12-06 20:09:32 +08:00
Tw93
3b59920bab Simplify the debug code 2025-12-06 12:40:07 +08:00
Tw93
c2abb639dc Continue to fix the exit issue 2025-12-06 09:17:58 +08:00
Tw93
19adf535f3 Code simplified to previous version 2025-12-05 23:47:02 +08:00
Tw93
9fd771bd8e More debug logs 2025-12-05 23:20:06 +08:00
Tw93
b939442e92 Support debug 2025-12-05 17:16:46 +08:00
Tw93
5761fd87c8 Simpler and faster 2025-12-05 14:21:18 +08:00
Tw93
36c993ec1c Fix the system update check problem 2025-12-04 17:52:19 +08:00
Tw93
5ddd345d76 Improve the scanning speed 2025-12-04 16:36:17 +08:00
Tw93
a92d352376 Safety and Reliability Improvements 2025-12-04 15:06:45 +08:00
Tw93
54bbbcce47 Safety reinforcement 2025-12-03 21:20:28 +08:00
Tw93
2c0f602ebd Safety reinforcement 2025-12-03 20:31:17 +08:00
Tw93
6f7c0336c6 Support dry-run to generate cleanup lists 2025-12-03 15:33:34 +08:00
Tw93
443b59d9c7 Grammar check and optimization 2025-12-02 17:02:14 +08:00
Tw93
bb50a345b6 optimize code structure and reduce duplication 2025-12-02 15:24:19 +08:00
Tw93
8cdf583d85 Uniform color specifications 2025-12-02 14:45:48 +08:00
Tw93
4bd4ffc7be Reconstruct clean lib code 2025-12-01 16:58:35 +08:00
Tw93
1578988ede Code optimization as a whole 2025-12-01 16:27:32 +08:00
Tw93
11936bce57 Whitelist capability optimization 2025-12-01 14:45:18 +08:00
Yuze Pan
b79797faf8 feat: add system maintenance cleanup module
- Add broken preferences detection using plutil -lint validation
- Add broken login items cleanup (LaunchAgents pointing to missing files)
- Add universal binary slimming (opt-in via MOLE_SLIM_BINARIES=true)
- Protect Spotify cache if >500MB (likely contains offline music)
- Warn when browsers are running before cache cleanup
- All cleanup stats properly counted in final summary
2025-11-30 10:30:22 +08:00
Tw93
3f9d1205fd Automated test synchronous update 2025-11-29 23:14:46 +09:00
Tw93
75bd91840f Safer cleaning and enhancement capabilities 2025-11-29 22:43:57 +09:00
Tw93
a47f7d0d32 Reconstruct the clean split logic 2025-11-28 22:39:11 +09:00
Tw93
5530bbe0e5 Clean up and protect the login items 2025-11-27 07:27:48 +09:00