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

543 Commits

Author SHA1 Message Date
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
Tw93
40521b44e0 refactor: simplify log file initialization by consolidating directory and file creation. 2025-12-26 11:27:30 +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
80903729a3 chore: auto format code 2025-12-25 03:50:34 +00:00
Tw93
babab8e1a3 Fix the error judgment problem of uninstalling the silent writing software 2025-12-25 11:45:52 +08:00
Tw93
4aaab78985 chore: auto format code 2025-12-25 03:27:51 +00:00
Tw93
952b2eea61 fix: Enhance uninstall robustness with base64
compatibility and cleanup improvements

- Fix field count
  mismatch and base64 BSD/GNU compatibility
  - Add sensitive data detection and macOS defaults cleanup
  - Improve error handling and add compatibility tests
2025-12-25 11:24:12 +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
ae82c83714 chore: auto format code 2025-12-22 03:24:39 +00: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
f8765ee3d3 feat: optimize application scanning performance, improve multi-selection robustness 2025-12-22 09:46:10 +08:00
Tw93
b3b2a83613 feat: add support for custom protected paths and update whitelist UI with config path and examples 2025-12-21 20:59:45 +08:00
Tw93
f23ab89db0 Disable LaunchServices rebuild to prevent System Settings corruption 2025-12-20 22:55:17 +08:00
Tw93
016bc4b4b0 Merge branch 'main' of github.com:tw93/Mole 2025-12-20 22:30:36 +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
f4419c7c7a chore: auto format code 2025-12-20 14:18:53 +00:00
Tw93
2a0fe88fd3 feat: dynamically adjust column widths in UI and analysis output based on terminal size for improved readability 2025-12-20 22:18:06 +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
7e3daabcfb feat: Enhance file deletion safety with path protection, streamline update prompts, and remove automated Homebrew update checks. 2025-12-18 20:17:03 +08:00
Tw93
25f0fff91d fix: Refine recent items clearing to target specific global lists and prevent accidental deletion 2025-12-18 19:05:33 +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
456215f2ff Fix the setting panel cleaning issue 2025-12-18 15:20:26 +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
694f5e76db chore: auto format code 2025-12-17 03:57:08 +00:00
Tw93
a667a1a777 feat: Bump version to 1.13.5, enhance show_version output, optimize software update checks, and add Touch ID for sudo as a security fix. 2025-12-17 11:56:39 +08:00
Tw93
ba8bc3dc8f chore: auto format code 2025-12-17 03:02:06 +00:00
Tw93
27205c653d feat: Boost UI performance with pure bash string width calculation and truncation, and add visual feedback for cache hits in uninstall scripts. 2025-12-17 11:01:15 +08:00
Tw93
3053e05ce4 chore: auto format code 2025-12-17 02:37:33 +00:00
Tw93
be1027f9c3 refine sudo requirement checks for uninstallation. 2025-12-17 10:37:03 +08:00
Tw93
b843cde0fd feat: localize app names based on system language and improve UI display width calculation for CJK characters with loading indicator 2025-12-17 10:36:33 +08:00
Tw93
bde4e16a43 update 2025-12-16 18:03:14 +08:00
Tw93
019a0c63ff fix: Enhance sudo password input handling and expand tilde paths in maintenance. 2025-12-16 17:54:37 +08:00
purofle
50806efc37 fix: correct boot_time parsing error (#130) 2025-12-16 17:43:44 +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
5a60a675a0 chore: auto format code 2025-12-14 00:53:52 +00: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
49d25625d5 chore: auto format code 2025-12-13 13:14:08 +00:00