tw93
88b0fe6af3
refactor(base): extract get_lsregister_path as shared utility
...
Move get_lsregister_path() to base.sh to avoid duplication across
optimize and uninstall modules. Adds macOS 14+ compatibility with
fallback paths.
2026-02-26 11:53:39 +08:00
github-actions[bot]
f394e7552c
chore: update contributors [skip ci]
2026-02-26 03:48:32 +00:00
tw93
0b5ac830e5
test(clean): add test for Application Support size counting
...
- Add test for nested directory contents in dry-run size summary
2026-02-26 11:47:51 +08:00
tw93
980bbcd3c3
fix(uninstall): improve LaunchServices path detection for macOS 14+
...
- Add fallback paths for lsregister tool
- Check executable permission before using path
2026-02-26 11:47:46 +08:00
tw93
3bd3e400b6
style: improve code consistency and formatting
...
- Rename _MOLE_HINTS_DIR to mole_hints_dir (naming convention)
- Split local variable declaration and assignment
- Add ICON_INFO constant to base.sh
- Remove redundant has_cached_sudo function (use has_sudo_session)
2026-02-26 11:47:41 +08:00
tw93
3c3c976b5b
fix(optimize): use ICON constants and improve LaunchServices path detection
...
- Replace Unicode characters with ICON_SUCCESS and ICON_INFO constants
- Add fallback paths for lsregister tool (macOS 14+ compatibility)
2026-02-26 11:47:33 +08:00
tw93
ceac7957aa
fix(clean): correct Messages check logic and improve Application Support scanning
...
- Fix Messages running check to not skip CrashReporter/idleassetsd cleanup
- Add proper spacing between function definitions
- Add app_support_item_size_bytes() for accurate size calculation
- Improve progress reporting during Application Support scan
2026-02-26 11:47:28 +08:00
github-actions[bot]
7f474f570e
chore: update contributors [skip ci]
2026-02-26 02:34:07 +00:00
tw93
44e1c61af3
Merge remote-tracking branch 'origin/main' into dev
2026-02-26 10:33:24 +08:00
tw93
5d69968ac0
perf: improve Application Support scan progress and size accounting
2026-02-26 10:33:19 +08:00
github-actions[bot]
b269501b9b
chore: update contributors [skip ci]
2026-02-26 02:30:04 +00:00
诺亚Q
dc7380d5b2
fix: avoid hang on large Application Support directories ( #495 ) ( #496 )
...
Replace du traversal + double find with single find -print0 + stat -f%z
to eliminate 8+ minute hang on directories with 392K files. Add progress
feedback via update_progress_if_needed in the outer loop.
2026-02-26 10:29:46 +08:00
tw93
5241b59ea9
refactor: reuse sudo cache checks in clean dry-run tests
2026-02-25 10:32:12 +08:00
Luke Bullimore
ee1f2bd372
Fix --dry-run hiding system cleanup preview ( #493 )
...
The dry-run mode hardcoded SYSTEM_CLEAN=false, which meant
the entire system section was silently skipped during preview.
Users had no way to see what /Library/Caches, /private/var/log,
diagnostics, or other sudo-required paths would be cleaned.
Now dry-run checks for a cached sudo session (sudo -n) and
includes the system preview when available. When sudo isn't
cached, a hint tells the user how to get the full preview
without running the whole script as root.
2026-02-25 10:22:56 +08:00
tw93
7c1fedae12
Merge branch 'main' of https://github.com/tw93/Mole
...
# Conflicts:
# lib/clean/project.sh
2026-02-25 10:20:32 +08:00
tw93
258d78991a
fix: refresh launchservices after app uninstall
2026-02-24 14:26:33 +08:00
tw93
7dac5dc4e2
refactor quick launcher metadata and docs
2026-02-24 14:24:46 +08:00
tw93
db602a0022
fix: skip font cache rebuild when browsers are running
2026-02-24 14:23:00 +08:00
tw93
8bd257a9c2
refactor(purge): reuse shared size formatter in header
2026-02-24 14:20:25 +08:00
Tw93
6754a5544b
chore: auto format code
2026-02-24 06:18:44 +00:00
github-actions[bot]
b9c067fec9
chore: update contributors [skip ci]
2026-02-24 06:18:09 +00:00
Sky Slinger
98089eeba8
Fix(raycast) : Made mole script commands discoverable ( #489 )
2026-02-24 14:17:51 +08:00
github-actions[bot]
4f4a1942ad
chore: update contributors [skip ci]
2026-02-24 06:17:41 +00:00
Angelk90
ae5e81722b
Fix ( #486 )
2026-02-24 14:17:20 +08:00
tw93
b864b61891
test(update): cover nightly update flows
2026-02-23 13:39:31 +08:00
tw93
3e3594dc58
fix(clean): avoid false success for third-party log cleanup
2026-02-23 13:39:27 +08:00
tw93
ff00e9ba9c
refactor(clean): extract shared purge hint helpers
2026-02-23 13:39:22 +08:00
tw93
4c9a71315f
refactor(ui): unify action and list hints across commands
2026-02-23 11:34:22 +08:00
tw93
3112673ed3
feat(clean): add storage clues after large files
2026-02-23 11:34:04 +08:00
tw93
1169cbf198
fix(purge): avoid command find in fallback scan ( #478 )
2026-02-23 08:15:47 +08:00
tw93
8f5b70457e
fix(purge): normalize search roots for scan filtering ( #478 )
2026-02-22 22:06:19 +08:00
tw93
082cc1d09b
feat(update): add --nightly channel for script installs
...
Refs #482
2026-02-22 21:25:42 +08:00
tw93
7561eec84f
docs: simplify README tips
2026-02-22 21:03:17 +08:00
tw93
979180d479
docs: add Kaku link in README tips
2026-02-22 20:59:26 +08:00
github-actions[bot]
ccbf7550c7
chore: update contributors [skip ci]
2026-02-22 12:57:05 +00:00
tw93
1c2796377d
docs: refine README copy
2026-02-22 20:46:34 +08:00
tw93
fd5ceea743
feat(clean): expand conservative cache cleanup coverage
...
- add conservative support/app/system cache targets\n- fix dry-run + success logging behavior for memory exception cleanup\n- add regression tests for new cleanup paths and safeguards\n\nRefs #477
2026-02-22 11:06:48 +08:00
tw93
894c81bb9a
fix(purge): detect artifacts when search path is project root
2026-02-22 10:08:20 +08:00
tw93
ec3affe882
chore(clean): reduce noisy clean output messages
...
- remove redundant project cache scanning line
- align xcode runtime empty result message to already clean
V1.27.0
2026-02-21 23:48:07 +08:00
tw93
37f4a82efa
Merge branch 'main' of https://github.com/tw93/Mole
2026-02-21 23:41:48 +08:00
tw93
831aebfc3e
docs(security): refresh audit for v1.27.0 cleanup hardening
...
- document safe deletion flow changes in system/user cleanup
- update timeout reference and latest local security test results
2026-02-21 23:38:41 +08:00
tw93
82366d8c5a
test(perf): reduce get_file_size loop count in benchmark
...
- lower iterations from 100 to 50 to reduce flaky timing noise
2026-02-21 23:36:15 +08:00
tw93
16a8bcafde
chore(dev-clean): streamline runtime volume reporting
...
- reduce noisy scan output outside debug mode
- consolidate final result messaging
- run xcode/code editor stages explicitly in developer flow
- update dev cache tests for new stage calls
2026-02-21 23:36:05 +08:00
tw93
c95a4ec5a8
fix(system): enforce safe sudo cleanup paths
...
- replace direct delete patterns with safe_sudo_find_delete/safe_sudo_remove
- keep log/temp/diagnostic cleanup behavior with guarded scans
- align system maintenance tests with safe deletion flow
2026-02-21 23:35:58 +08:00
tw93
dc8d1bd948
refactor(clean): merge app cache/user essentials flow
...
- reorganize perform_cleanup sections and naming
- merge macOS + sandbox caches into clean_app_caches
- move recent items and mail downloads into user essentials
- update core/user tests for renamed internal helpers
2026-02-21 23:35:53 +08:00
github-actions[bot]
6f54103b88
chore: update contributors [skip ci]
2026-02-21 12:23:07 +00:00
tw93
30fe312c22
Merge branch 'main' of https://github.com/tw93/Mole
2026-02-21 20:22:46 +08:00
tw93
e581da1d65
chore(release): bump version to 1.27.0
2026-02-21 20:22:16 +08:00
tw93
ef0e34a214
refactor(clean): optimize Group Containers directory check
...
- Replace ls with find -maxdepth 1 to reduce IO and permission noise
- Keep same behavior: silently skip if directory is empty or inaccessible
Addresses: user.sh (line 484)
2026-02-21 20:22:06 +08:00
tw93
9440d9e52a
fix(dev): normalize npm cache paths and add maven function guard
...
- Normalize npm cache paths with pwd -P to handle symlinks and
trailing slashes, preventing duplicate scans of same directory
- Add declare -f check before calling clean_maven_repository for
robustness when dynamic source fails
- Add test for trailing slash handling
Addresses: dev.sh (line 27, 48, 602)
2026-02-21 20:22:01 +08:00