github-actions[bot]
54259d6df1
chore: update contributors [skip ci]
2026-01-27 11:43:12 +00:00
Gokul
9a109b2b39
fix(clean): handle singular 4K movie summary ( #376 )
2026-01-27 19:42:54 +08:00
github-actions[bot]
736bca14b5
chore: update contributors [skip ci]
2026-01-27 03:34:41 +00:00
tw93
37e6994c34
feat(clean): add Yandex Browser cache cleanup support
2026-01-27 11:34:21 +08:00
github-actions[bot]
9cd47133d1
chore: update contributors [skip ci]
2026-01-27 03:19:54 +00:00
github-actions[bot]
c53a0afc67
chore: update contributors [skip ci]
2026-01-27 03:19:45 +00:00
tw93
3f5e450001
Merge branch 'main' into dev
2026-01-27 11:19:18 +08:00
tw93
92de429817
update readme
2026-01-27 10:43:33 +08:00
tw93
9bb255238d
update readme
2026-01-27 10:42:58 +08:00
tw93
1cf772b02c
update readme
2026-01-27 10:41:38 +08:00
tw93
8c5d529171
update readme
2026-01-27 10:41:18 +08:00
tw93
fca0fe1b15
update readme
2026-01-27 10:38:53 +08:00
tw93
86c9005381
Merge branch 'dwjoss/cleanable-tests' of https://github.com/dwjoss/Mole ; branch 'main' of https://github.com/tw93/Mole
2026-01-27 10:30:43 +08:00
github-actions[bot]
d8fb34b79c
chore: update contributors [skip ci]
2026-01-27 02:30:32 +00:00
Dylan Joss
db0b785842
test: expand cleanable directory detection tests ( #369 )
...
Enhance test coverage for `isCleanableDir` and add new tests for
`isHandledByMoClean` in `cmd/analyze/analyze_test.go`.
`TestIsHandledByMoClean` (new, 12 test cases):
- Paths `mo clean` handles (caches, logs, saved state, trash, reports)
- Paths `mo clean` does NOT handle (project dirs, home, random)
- Case sensitivity verification
`TestIsCleanableDir` (expanded from 3 to 24 test cases):
- Project dependencies (`node_modules`, `venv`, `pycache`, `build`, etc.)
- Xcode/iOS directories (DerivedData, Pods)
- Build outputs (dist, target, .next, coverage)
- Paths excluded because `mo clean` handles them
- Edge cases (empty string, root path, just basename)
2026-01-27 10:30:11 +08:00
tw93
0fe72245ce
docs: rewrite SECURITY_AUDIT.md as technical reference
2026-01-27 10:22:07 +08:00
Andrei Murariu
ac79773965
README: mo analyze - update the netowkr graph ( #366 )
...
continued the PR - https://github.com/tw93/Mole/pull/321
2026-01-27 10:04:49 +08:00
Dylan Joss
162ba949ee
test: expand cleanable directory detection tests
...
Enhance test coverage for `isCleanableDir` and add new tests for
`isHandledByMoClean` in `cmd/analyze/analyze_test.go`.
`TestIsHandledByMoClean` (new, 12 test cases):
- Paths `mo clean` handles (caches, logs, saved state, trash, reports)
- Paths `mo clean` does NOT handle (project dirs, home, random)
- Case sensitivity verification
`TestIsCleanableDir` (expanded from 3 to 24 test cases):
- Project dependencies (`node_modules`, `venv`, `pycache`, `build`, etc.)
- Xcode/iOS directories (DerivedData, Pods)
- Build outputs (dist, target, .next, coverage)
- Paths excluded because `mo clean` handles them
- Edge cases (empty string, root path, just basename)
2026-01-26 14:05:02 -08:00
tw93
3919a70300
fix: enhance uninstall security per audit review
...
- Validate bundle_id format (reverse-DNS) in stop_launch_services() to prevent glob injection attacks
- Add common word exclusion list for LaunchAgents name search to avoid false positive matches (Music, Notes, Photos, etc.) - Add security comments explaining symlink handling in remove_file_list()
- Improve brew_uninstall_cask() timeout handling: exit code 124 now returns failure immediately
- Update SECURITY_AUDIT.md with remediation details
2026-01-26 20:27:46 +08:00
Tw93
09f0cf9e53
chore: auto format code
2026-01-26 07:46:58 +00:00
tw93
b67d149cef
Merge branch 'main' of https://github.com/tw93/Mole
2026-01-26 15:46:05 +08:00
tw93
0fbf88a6c6
fix: harden cleanup path validation
2026-01-26 15:43:11 +08:00
Tw93
f272d29490
chore: auto format code
2026-01-26 07:32:44 +00:00
tw93
43a92a1847
Merge branch 'main' of https://github.com/tw93/Mole
2026-01-26 15:31:43 +08:00
tw93
981c79cfd1
fix: clear cleaning spinner after cleanup
2026-01-26 15:31:30 +08:00
Tw93
587b127c01
chore: auto format code
2026-01-26 07:24:38 +00:00
tw93
610a4fc0a7
chore: simplify optimize maintenance cleanup
2026-01-26 15:22:20 +08:00
tw93
864bade7c6
fix: improve uninstall guidance and timeouts
2026-01-26 15:22:16 +08:00
tw93
8c4cd7f82e
feat: log cleanup operations for troubleshooting
2026-01-26 15:22:07 +08:00
tw93
e0aba780c8
feat: remove automatic Rosetta 2 installation prompt
...
- Change Rosetta 2 status from warning to info
- Remove auto-fix suggestion for missing Rosetta 2
- Update tests to reflect new behavior (3 -> 2 expected fixes)
2026-01-26 14:36:12 +08:00
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
github-actions[bot]
a7bad3d79a
chore: update contributors [skip ci]
2026-01-26 03:12:00 +00:00
tw93
b8c25e4056
fix: improve cleanup code and fix Edge test isolation
...
- Refactor JetBrains Toolbox cleanup with _restore_whitelist helper
- Add MOLE_EDGE_APP_PATHS env var for test isolation
- Fix Edge old versions tests to avoid scanning system Edge installation
2026-01-26 11:09:38 +08:00
TomP0
61723e8d86
fix: handle empty arrays in clean_dev_jetbrains_toolbox ( #361 )
...
Add checks for empty product_dirs and version_dirs arrays before
iterating to prevent "unbound variable" errors when running with
set -u (pipefail) and the JetBrains Toolbox directory doesn't exist
or contains no products.
2026-01-26 10:49:30 +08:00
Tw93
5a29f506dc
chore: auto format code
2026-01-26 02:46:32 +00:00
tw93
ee32a63673
Merge branch 'main' of https://github.com/tw93/Mole
2026-01-26 10:45:32 +08:00
tw93
e803c46304
style: unify DRY_RUN variable check in trash cleanup
2026-01-26 10:44:36 +08:00
Tw93
4bacba7fec
chore: auto format code
2026-01-26 02:28:41 +00:00
Andrei Murariu
89eb442866
bug-fix: add automatic trash emptying to clean command ( #363 )
...
- Empty trash using macOS Finder API (osascript) for proper permission handling
- Respects whitelist protection (skips if Trash is whitelisted)
- Shows item count when emptying trash
- Fallback to direct cleanup if Finder API fails
- Supports dry-run mode
Issue: #362
2026-01-26 10:28:03 +08:00
tw93
fb4cef5fa7
docs: add help text and test for 'mo update --force'
2026-01-26 10:10:46 +08:00
Andrei Murariu
670f970b4c
feature: mo update --force flag implementation ( #360 )
2026-01-26 10:07:58 +08:00
Tw93
fbff0ec3bd
fix: show spinner during cleanup phase
...
Add progress indicator when deleting files to prevent the terminal
from appearing frozen during long-running cleanup operations.
Closes #358
2026-01-24 08:31:04 +08:00
Tw93
c0596f51e3
Fix update output version parsing
V1.23.2
2026-01-23 23:28:27 +08:00
Tw93
b0f9761458
test: add process_install_output test cases
...
- Test install.sh success message with version
- Test fallback version when no success message
- Test empty output handling
- Test avoiding wrong parentheses content extraction
2026-01-23 22:57:48 +08:00
Tw93
f9c33ac317
publish 1.23.1
2026-01-23 22:41:43 +08:00
Tw93
a4f1f49fab
feat: improve version detection and error handling
...
- Add fallback to mo --version when brew list fails
- Add error handling for debug log write failures
- Improve version extraction with multiple fallback strategies
2026-01-23 22:25:35 +08:00
Tw93
a27caab2b6
update core
2026-01-23 20:45:21 +08:00
Tw93
3d985ebcb9
publish 1.23
2026-01-23 20:31:54 +08:00
Tw93
83166f2fe8
fix: avoid orphan service false positives and warm large file threshold
2026-01-23 20:16:06 +08:00
Tw93
500b6dc554
fix(clean): silence ShellCheck SC2053
2026-01-23 18:32:33 +08:00