1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 20:15:07 +00:00
Commit Graph

1839 Commits

Author SHA1 Message Date
tw93
8e8059b0aa fix(status): resolve layout issue when stretching terminal window (#467)
When the terminal is stretched wide, the header info line may wrap to
multiple lines but the mole position was calculated independently based
on terminal width, causing vertical misalignment.

Separate header and mole rendering so mole always appears on dedicated
lines below the header regardless of terminal width.
2026-02-16 19:07:42 +08:00
tw93
abd9791cd7 feat(clean): add Maven local repository cleanup support 2026-02-16 18:54:19 +08:00
tw93
573f55e79e feat(clean): add Google Chrome/Updater cache cleanup support
Add cleanup for:
- Chrome component_crx_cache
- GoogleUpdater crx_cache
- GoogleUpdater *.old files

Closes #460
2026-02-16 16:09:24 +08:00
tw93
f21794d3d9 fix(clean): fix find -maxdepth position for BSD/macOS compatibility
On macOS (BSD find), -maxdepth must be placed before -name to work
correctly. When placed after, it was ignored causing find to scan
the entire home directory indefinitely on large directories.

Fixes #463
2026-02-16 16:05:22 +08:00
tw93
a29cadbfd0 fix(purge): resolve trap conflict between purge.sh and project.sh
- Add guard flag in cleanup_monitor to prevent duplicate execution
- Check for existing trap in project.sh before setting new one
- Prevents crash when user presses Ctrl-C or scan process fails
2026-02-16 15:54:16 +08:00
tw93
1a63b992c6 refactor(clean): simplify npm residual directories cleanup
Use loops instead of duplicated safe_clean calls for npm cache
directories (_cacache, _npx, _logs, _prebuilds). Add comments
explaining these are not removed by npm cache clean --force.
2026-02-16 15:53:32 +08:00
tw93
a61a427f88 feat(clean): add Expo cache cleanup support
Clean Expo/React Native caches in ~/.expo while preserving state.json
which contains authentication tokens.

Caches cleaned:
- expo-go/
- android-apk-cache/
- ios-simulator-app-cache/
- native-modules-cache/
- schema-cache/
- template-cache/
- versions-cache/

Closes #462
2026-02-16 15:45:21 +08:00
tw93
679ca2f30c Merge branch 'main' of https://github.com/tw93/Mole 2026-02-16 15:40:38 +08:00
github-actions[bot]
43d9bb237a chore: update contributors [skip ci] 2026-02-16 07:40:31 +00:00
Michael Aristarco
ab83bd1ed9 fix: deep clean npm residual caches (#457)
Fixes #454
2026-02-16 15:40:13 +08:00
tw93
685aa8b970 refactor(purge): improve React Native targets safety and clarity
- Clarify .cxx comment to indicate React Native NDK build cache
- Add protection for Xcode global DerivedData in ~/Library/Developer/Xcode/
  to prevent accidental deletion of shared build artifacts

Refs: #461
2026-02-16 15:39:00 +08:00
github-actions[bot]
db0b3a967a chore: update contributors [skip ci] 2026-02-16 07:37:25 +00:00
Dimitar Nestorov
a7c9b8d6ec feat(purge): add common React Native targets (#461) 2026-02-16 15:37:07 +08:00
tw93
88a4c83a2b fix: update version to 1.26.0 V1.26.0 2026-02-15 08:52:06 +08:00
tw93
950af1a5ed Improve clean progress visibility for dev runtime scans 2026-02-15 08:45:47 +08:00
tw93
52d333bc9e feat(uninstall): keep progress visible until app list is ready 2026-02-15 08:45:16 +08:00
tw93
91d0e5353a fix: handle cd failure in diagnostic report standalone test 2026-02-15 08:18:02 +08:00
github-actions[bot]
ad21e75f73 chore: update contributors [skip ci] 2026-02-15 00:04:38 +00:00
tw93
c896163d4b fix(clean): ensure flutter .dart_tool caches are discovered 2026-02-15 08:03:38 +08:00
tw93
744ecec4ba fix(clean): use sudo-safe cleanup for Xcode documentation cache 2026-02-15 07:52:43 +08:00
tw93
7d193526c3 fix(purge): support vim j/k navigation in selector 2026-02-15 07:48:35 +08:00
tw93
4a63ce330f fix(raycast): keep Ghostty window open after command 2026-02-14 20:37:00 +08:00
yamamel
0cde1041f9 feat(clean): add interactive Xcode simulator runtime volumes cleanup (#444)
* feat(clean): add interactive Xcode simulator runtime volumes cleanup

Scan CoreSimulator Volumes/Cryptex directories, detect IN_USE/UNUSED
status via mount points, and let users interactively select items to
clean. Also show size info for unavailable simulator cleanup.


* refactor(clean): auto-clean Xcode simulator runtime volumes

Remove interactive selector, now automatically cleans all UNUSED
runtime volumes while skipping IN_USE and protected paths.
2026-02-13 10:41:28 +08:00
Paul
2ee95f963e Add '$HOME/Developer' to common development paths (#447)
Add '$HOME/Developer' as it is a convention-based workspace directory on macOS
2026-02-13 10:30:33 +08:00
github-actions[bot]
c6423a56b8 chore: update contributors [skip ci] 2026-02-13 02:28:31 +00:00
Mario Vtor
a73a739b02 feat: add generic flutter clean support (#450)
* fix: re-apply flutter clean logic after branch switch

* fix(caches): unify hidden directory exclusion pattern

Restore */.* pattern to exclude all hidden directories consistently
across Next.js, Python, and Flutter scans. This prevents scanning
into .venv, .idea, .DS_Store and other hidden directories.

---------

Co-authored-by: tw93 <tw93@qq.com>
2026-02-13 10:28:12 +08:00
NeedmeFordev
85cd0253d5 feat(uninstall): remove app diagnostic reports from /Library/Logs/DiagnosticReports (fixes #441) (#443)
* Implement deleting files from DiagnosticReports

* fix(uninstall): avoid diagnostic size double-count and set -e exit

---------

Co-authored-by: tw93 <tw93@qq.com>
2026-02-11 14:35:45 +08:00
tw93
4c60fcca73 fix(uninstall): show full preview paths and add regression tests 2026-02-11 14:22:22 +08:00
github-actions[bot]
649f638a53 chore: update contributors [skip ci] 2026-02-11 02:40:56 +00:00
NeedmeFordev
42893381e3 fix silent exit on permission denied during App State Cleanup (#440) 2026-02-11 10:40:34 +08:00
tw93
5065c9cacb Merge branch 'main' of https://github.com/tw93/Mole 2026-02-10 16:38:17 +08:00
tw93
7ab04035a5 fix(clean-dev): keep mtime variable local in doc cache cleanup 2026-02-10 16:33:17 +08:00
tw93
9c8c25116b refactor(uninstall): centralize size and last-used display normalization 2026-02-10 16:33:14 +08:00
tw93
878dfa1bde refactor(analyze): remove unused volume mount helper 2026-02-10 16:33:10 +08:00
github-actions[bot]
afcdb3cfe1 chore: update contributors [skip ci] 2026-02-10 08:23:48 +00:00
tw93
1a559f8563 optimize analyze scanner concurrency and channel send semantics 2026-02-10 16:23:24 +08:00
tw93
7d8bfbc9d9 improve uninstall scan metadata and list refresh UX 2026-02-10 16:23:15 +08:00
github-actions[bot]
e27c323a1b chore: update contributors [skip ci] 2026-02-10 07:52:21 +00:00
tw93
8b025dd640 feat: clean duplicate Xcode documentation indexes safely 2026-02-10 15:51:28 +08:00
github-actions[bot]
acbe8a5375 chore: update contributors [skip ci] 2026-02-10 07:34:39 +00:00
tw93
b605dde450 refactor: simplify analyze volumes behavior 2026-02-10 15:32:13 +08:00
github-actions[bot]
5aa02b0af0 chore: update contributors [skip ci] 2026-02-10 07:28:52 +00:00
Andrei Murariu
37bdc6edf7 feat: Exclude External Disks from Analyze (#428)
Created optional flag `--exclude-volumes` for `mo analyze` to consent the users to analyze the filesystem without taking in consideration attached Volumes.
Normal behaviour (with volumes included) is left untouched.
2026-02-10 15:28:33 +08:00
Tw93
9aa5a0a69d chore: auto format code 2026-02-10 07:07:52 +00:00
tw93
172afa83af refactor: centralize subcommand help handlers 2026-02-10 15:06:14 +08:00
Michael Wang 汪東陽
3820bf2be7 feat: add commands help flag (#429) 2026-02-10 15:02:57 +08:00
tw93
e65b73eb64 Merge branch 'main' into dev 2026-02-10 14:27:26 +08:00
github-actions[bot]
3e61b659e6 chore: update contributors [skip ci] 2026-02-10 06:27:19 +00:00
Oleksandr Redko
599b39a3fb refactor: use builtin max instead of maxInt (#430) 2026-02-10 14:27:00 +08:00
tw93
7813124f33 refactor: Extract com.clash.app pattern to avoid ShellCheck redundancy warning 2026-02-09 20:25:10 +08:00