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

42 Commits

Author SHA1 Message Date
tw93
e966838c82 style: standardize punctuation across codebase
- Replace parentheses with commas for supplementary info
- Use commas instead of em-dashes for separators
- Update bullet points from - to * in some contexts
- Improve version extraction regex with fallback logic
2026-01-26 14:36:06 +08:00
Tw93
d7a0d480bc fix: improve dry-run mode and error handling
- Export MOLE_DRY_RUN env var for subprocess visibility
- Add || true to grep commands to prevent pipeline failures
- Add dry-run test for clean_orphaned_system_services
- Simplify clean_local_snapshots tests
2026-01-23 18:05:09 +08:00
Tw93
cde39aaeb2 feat(clean): add large file review and unify warnings 2026-01-22 20:15:13 +08:00
Tw93
8188f4b81b fix: clean update packages with SIP enabled 2026-01-22 16:16:50 +08:00
Tw93
3f85c8238f Use gray color for warning icons to reduce visual noise 2026-01-20 15:07:37 +08:00
Tw93
46472bc86e chore: auto format code 2026-01-17 02:13:54 +00:00
Tw93
e6fc0613d5 perf: improve cleanup UI responsiveness and reduce visual flicker
- Speed up spinner animation from 100ms to 50ms for smoother visuals
- Fix spinner flicker by deferring stop until output is ready
- Remove unnecessary 'Preparing...' spinner at section start
- Hide whitelist-protected items from output (Trash, Finder metadata)
- Add spinner feedback for system diagnostic log cleanup
- Remove redundant stop_section_spinner calls in cleanup modules

The cleanup process now feels significantly faster and more polished,
with continuous visual feedback and no jarring gaps between operations.
2026-01-17 10:12:23 +08:00
Jack Phallen
a994e9b406 fix: remove Time Machine mount check 2026-01-11 09:58:43 -05:00
Jack Phallen
c0f76936cd feat: Skip TimeMachine cleaning if running 2026-01-10 17:40:42 -05: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
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
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
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
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
Tw93
99e9fc4cb3 Add immediate feedback for system cache cleaning 2025-12-28 14:59:17 +08:00
Tw93
4d00794b04 Add progress spinners to deep system cleanup and Time Machine checks 2025-12-27 10:17:28 +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
79e40b9c91 docs: Improve clarity and conciseness of comments and documentation 2025-12-18 17:35:54 +08:00
Tw93
af03452f6d feat: Enhance clean and optimize operations with new configuration constants 2025-12-18 17:02:04 +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
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
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
1b2da97032 Log cleaning does not take into account time 2025-12-06 20:46:25 +08:00
Tw93
4852383767 Support to clean up more system garbage 2025-12-06 20:09:15 +08:00
Tw93
c2abb639dc Continue to fix the exit issue 2025-12-06 09:17:58 +08:00
Tw93
5761fd87c8 Simpler and faster 2025-12-05 14:21:18 +08:00
Tw93
a92d352376 Safety and Reliability Improvements 2025-12-04 15:06:45 +08:00
Tw93
bb50a345b6 optimize code structure and reduce duplication 2025-12-02 15:24:19 +08:00
Tw93
4bd4ffc7be Reconstruct clean lib code 2025-12-01 16:58:35 +08:00