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

83 Commits

Author SHA1 Message Date
Tw93
c8e33931c2 refactor: centralize whitelist path checking with a new is_path_whitelisted helper function 2025-12-28 09:21:04 +08:00
Tw93
f5efc63bae feat: add whitelist protection for user and external volume Trash directories and include ~/.Trash in default whitelist 2025-12-27 13:04:19 +08:00
Tw93
f2160b7cab chore: auto format code 2025-12-27 02:19:22 +00:00
Tw93
71d0f2c3cc Migrate recent items and mail downloads cleanup to the user module and add scanning spinners 2025-12-27 10:17:39 +08:00
Tw93
4d00794b04 Add progress spinners to deep system cleanup and Time Machine checks 2025-12-27 10:17:28 +08:00
Tw93
749d73b1b9 Add spinners to project artifact cleaning and update navigation icons 2025-12-27 10:17:22 +08:00
Tw93
d17c9efe47 Add progress spinners to developer tool cleanup task 2025-12-27 10:17:05 +08:00
Tw93
d2f61973c3 Add spinners to cache cleaning and optimize development project detection 2025-12-27 10:16:58 +08:00
Tw93
50c1b0146d Update output icons for Homebrew cleanup to match the new design system 2025-12-27 10:16:52 +08:00
Tw93
6323a45f37 Implement caching for installed application scanning to improve performance and add progress spinners 2025-12-27 10:16:42 +08:00
Tw93
bd832b9854 Add progress spinners to application cache scanning and cleaning 2025-12-27 10:16:35 +08:00
Tw93
2583f5000b Merge branch 'pr-162' 2025-12-26 20:41:44 +08:00
Tw93
a7c989588e improve code quality and fix signal handling 2025-12-26 20:34:38 +08:00
Ruben Nogueira
21bf7392c9 feat: legcord 2025-12-26 11:58:37 +00:00
Tw93
22db4291ce chore: auto format code 2025-12-26 10:26:55 +00:00
Tw93
2c23d15eb7 Clean performance speed optimization 2025-12-26 18:25:38 +08:00
Tw93
27f57bd361 Merge branch 'main' of github.com:tw93/Mole 2025-12-26 12:55:12 +08:00
Kwaku Biney
f9309bae01 improv: prompt user when Docker daemon not running (#155)
Signed-off-by: kwakubiney <kebiney@hotmail.com>
2025-12-26 12:54:39 +08:00
Tw93
428fc86f66 refactor: streamline pnpm cache cleaning by adjusting description and removing redundant store paths. 2025-12-26 12:49:56 +08:00
Tw93
2c5253736b chore: auto format code 2025-12-26 03:46:26 +00:00
Ruben Nogueira
4163fab312 feat: pnpm clean (#156)
* feat: pnpm clean

* fix: pnpm use prune
2025-12-26 11:46:00 +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
Nathan Broadbent
f838e9517d fix: use BSD stat explicitly to avoid GNU coreutils conflict (#160) 2025-12-26 10:43:18 +08:00
Tw93
6d66465447 refactor: Improve shell array expansion robustness in cleanup functions 2025-12-23 09:55:18 +08:00
Tw93
9a942a2770 feat: Add configurable project cleanup depth, refine interactive menu display, and sanitize uninstall app names. 2025-12-22 18:53:48 +08:00
Tw93
d2dc68da90 feat: Enhance app protection with centralized critical component checks, improve UI string width calculation, refine analysis and cleaning logic, and add new tests. 2025-12-22 11:24:04 +08:00
Tw93
d747ff43d3 fix: Remove local declaration for scan_pids and scan_temps to ensure accessibility by the cleanup_scan trap. 2025-12-20 22:30:32 +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
c1784f7aa4 refactor: improve clean item removal with safe_remove 2025-12-18 17:38:37 +08:00
Tw93
79e40b9c91 docs: Improve clarity and conciseness of comments and documentation 2025-12-18 17: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
fccc589fbd chore: auto format code 2025-12-18 06:17:29 +00: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
0427dbb6c0 feat: Expand critical system component protection in clean user logic and apply minor shell script fixes. 2025-12-17 20:42:25 +08:00
Tw93
611254848d chore: auto format code 2025-12-17 12:36:26 +00: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
278cc4a565 feat: Enhance clean protection by explicitly excluding critical system components and adding case-insensitive bundle ID checks. 2025-12-17 18:59:36 +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
70ce2a41c5 chore: Remove Rust documentation cache cleaning 2025-12-13 15:01:30 +08:00
Tw93
85005bd9cf Remove orphaned Homebrew cask cleaning functionality, improve shell safety for cache cleanup, and bump version 2025-12-13 14:12:01 +08:00
Tw93
012c0b257c chore: auto format code 2025-12-13 05:38:36 +00: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
045df37b7c chore: auto format code 2025-12-12 12:18:37 +00:00
Tw93
3601b14dc8 fix: Enhance system protection by explicitly preventing cleaning of critical background task and login item components 2025-12-12 20:17:47 +08:00
Tw93
67a8e83511 chore: Exclude JetBrains caches from cleaning 2025-12-12 16:04:38 +08:00
Tw93
5456d60876 chore: auto format code 2025-12-12 06:12:13 +00:00
Tw93
bb22dc5d10 Parallelize status metric collection, enhance debug logging with a dedicated file and system info, update security audit for swap clearing, and remove orphaned cask cleaning. 2025-12-12 14:10:36 +08:00