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

1263 Commits

Author SHA1 Message Date
Bhadra
ba8ec9ef34 feat: add Windows screenshots and screen recordings cleanup
- Add Pictures\Screenshots path (Snipping Tool/Snip & Sketch)
- Add Videos\Screen Recordings path (Windows 11 screen recorder)
- Both use age-based cleanup (>90d by default)
2026-01-12 20:48:33 +05:30
Bhadra
3dccf3592f feat: add game media cleanup (replays, screenshots, recordings)
- Add Clear-GameMediaFiles function to clean old game media (>90d by default)
- Supports NVIDIA ShadowPlay/Highlights, AMD ReLive, Xbox Game Bar
- Supports Steam screenshots, OBS recordings, Medal.tv, Overwolf/Outplayed
- Includes game-specific replays (Fortnite, LoL, Valorant, Rocket League, etc.)
- New -GameMedia flag for mole clean command
- Uses age-based cleanup to protect recent recordings
2026-01-12 20:24:11 +05:30
github-actions[bot]
8b3def7ffe chore: update contributors [skip ci] 2026-01-12 14:29:15 +00:00
Bhadra
419f3afd71 Merge branch 'windows' into windows 2026-01-12 19:58:55 +05:30
Bhadra
f019ea3d94 chore: docs update 2026-01-12 12:19:29 +05:30
Bhadra
a2f0ae6078 fix: repair command icon and null input handling
- Replace non-existent Icons.Mole with Icons.Admin
- Add null check for empty menu input
2026-01-12 12:14:45 +05:30
github-actions[bot]
1e75d916df chore: update contributors [skip ci] 2026-01-12 06:32:27 +00:00
Bhadra
afe8d09c7c feat: add repair command with cache rebuilds and system fixes
Add new 'mole repair' command with the following utilities:
- DNS cache flush (Repair-DnsCache)
- Font cache rebuild (Repair-FontCache) - requires admin
- Icon cache rebuild (Repair-IconCache) - restarts Explorer
- Windows Search index reset (Repair-SearchIndex) - requires admin
- Windows Store cache reset (Repair-StoreCache) - runs wsreset.exe

Features:
- Interactive menu when run without arguments
- Command-line flags: -DNS, -Font, -Icon, -Search, -Store, -All
- Dry-run mode support
- Proper service stop/start for font and search repairs

Usage:
  mole repair           # Interactive menu
  mole repair -DNS      # Flush DNS only
  mole repair -All      # Run all repairs
2026-01-12 12:01:48 +05:30
Bhadra
661105670c feat: add GPU shader cache cleanup (NVIDIA, AMD, Intel, DirectX)
Add Clear-GPUShaderCaches function to clean GPU shader caches:
- NVIDIA: DXCache, GLCache, NV_Cache
- AMD: DXCache, GLCache, VkCache
- Intel: ShaderCache
- DirectX: D3DSCache, DirectX Shader Cache
- Vulkan: VulkanCache (pipeline cache)

These caches can grow to 10GB+ and are safe to delete.
They will be rebuilt automatically when needed.

Integrated into main clean.ps1 workflow.
2026-01-12 11:58:20 +05:30
github-actions[bot]
66cb7e7229 chore: update contributors [skip ci] 2026-01-12 06:04:32 +00:00
Tw93
9a354d3ebe Merge pull request #302 from bhadraagada/windows
feat: add cleanup support for Elixir, Haskell, OCaml, and Editors
2026-01-12 14:04:13 +08:00
Bhadra
b8d8771878 fix: update go.mod and go.sum with all dependencies
Run go mod tidy to add missing indirect dependencies required for CI build.
This fixes the 'missing go.sum entry' errors in the test workflow.
2026-01-12 11:03:37 +05:30
Bhadra
017a1311b8 fix: address Copilot review feedback for dev cleanup
- Use age-based cleanup (90 days) for Cabal packages instead of clearing all
- Skip Mix archives cleanup to preserve globally installed tools
- Use age-based cleanup for Hex packages instead of clearing all
- Use age-based cleanup for Stack programs (GHC installations)
- Remove workspaceStorage from VS Code cleanup to preserve workspace settings
- Add missing cache paths for VS Code Insiders (CachedExtensions, etc.)

These changes make cleanup less aggressive and prevent accidental removal
of user-installed tools and workspace preferences.
2026-01-12 10:59:29 +05:30
github-actions[bot]
7ea1ecdea2 chore: update contributors [skip ci] 2026-01-12 05:23:48 +00:00
Bhadra
81c3b97878 fix(ci): update workflows for Windows branch
- Rewrite check.yml for Windows (PowerShell syntax check, Go linting)
- Rewrite test.yml for Windows (Pester tests, Go tests, security checks)
- Rewrite release.yml for Windows releases (W* tags, zip package)
- Update update-contributors.yml to trigger on windows branch
2026-01-12 10:53:29 +05:30
Bhadra
e648ceceb0 feat: add cleanup support for Elixir, Haskell, OCaml, and Editors
Windows port of biplavbarua's extended dev cleanup feature:
- Elixir: Mix archives and Hex cache cleanup
- Haskell: Cabal packages/store and Stack programs cache
- OCaml: Opam download and repo cache
- Editors: VS Code, VS Code Insiders, Zed, Sublime Text, Atom caches

Mirrors the macOS implementation from PR #287
2026-01-10 12:30:15 +05:30
Tw93
edf5ed09a9 chore: restructure windows branch (move windows/ content to root, remove macos files) 2026-01-10 13:23:29 +08:00
Tw93
e84a457c2f Merge branch 'main' into dev 2026-01-10 13:05:53 +08:00
Tw93
ef713afda7 update test 2026-01-10 09:41:17 +08:00
Tw93
8a3443be4d update readme 2026-01-10 08:58:16 +08:00
Tw93
8118cab604 Merge branch 'main' of github.com:tw93/Mole 2026-01-10 08:52:12 +08:00
Tw93
7d43e669a8 fix(analyze): improve deletion safety and UI clarity
- Update UI status to 'Moving to Trash...' for clarity
- Use os.Lstat instead of os.Stat to correctly handle broken symlinks during deletion checks
2026-01-10 08:51:14 +08:00
Tw93
273a6b5cf0 fix(clean): enhance orphan detection accuracy and safety
- Expand app scan to include Homebrew Cask and Setapp locations
- Add lsappinfo fallback for more reliable running app detection
- Add sensitive data protection patterns (1Password, Keychain, etc.)
- Add mdfind fallback with file-based caching (Bash 3.2 compatible)
2026-01-10 08:51:14 +08:00
Tw93
9c39eef7fe chore: auto format code 2026-01-10 00:23:16 +00:00
Tw93
0a654f365b fix(clean): enhance orphan detection accuracy and safety
- Expand app scan to include Homebrew Cask and Setapp locations
- Add lsappinfo fallback for more reliable running app detection
- Add sensitive data protection patterns (1Password, Keychain, etc.)
- Add mdfind fallback with file-based caching (Bash 3.2 compatible)
2026-01-10 08:22:17 +08:00
github-actions[bot]
b952752a7d chore: update contributors [skip ci] 2026-01-09 23:25:33 +00:00
Tw93
ebb4f7a1e9 feat(analyze): safer deletion with Trash and two-key confirm
- Change delete confirmation from double-delete to Delete→Enter
- Move files to macOS Trash instead of permanent deletion
- Allow file recovery from Trash if accidentally deleted
- Update UI prompts to show 'Press Enter to confirm'
- Skip Finder-dependent tests in CI environments
- Update SECURITY_AUDIT.md with new safety mechanisms

Closes #288
2026-01-10 07:24:58 +08:00
Biplav Barua
3507870275 feat: add Angular, SvelteKit, Astro, and coverage to purge targets (#286) 2026-01-10 00:05:38 +08:00
Tw93
cbd777bf14 Update documents and instructions 2026-01-09 17:13:34 +08:00
Tw93
cce0afecc5 Merge branch 'dev' of github.com:tw93/Mole into dev 2026-01-09 15:10:36 +08:00
Tw93
124e498f15 refactor(windows): fix cmdlet shadowing and enforce dependency isolation 2026-01-09 15:10:26 +08:00
github-actions[bot]
9915d5e56f chore: update contributors [skip ci] 2026-01-09 06:50:00 +00:00
Tw93
e40a992f7e Merge branch main into dev 2026-01-09 14:49:31 +08:00
Tw93
ea00d979da Merge branch 'main' into dev 2026-01-09 14:49:08 +08:00
Tw93
ce8989d3e9 chore: auto format code 2026-01-09 06:44:51 +00:00
Tw93
e33e428569 fix: add KeePassXC new bundle id to protection list (#285) 2026-01-09 14:43:50 +08:00
Tw93
24fa0f8f21 feat: Add cleanup rule for Quark (夸克) video cache (#279) 2026-01-09 14:38:59 +08:00
github-actions[bot]
07e1ee0f3e chore: update contributors [skip ci] 2026-01-09 06:16:55 +00:00
Tw93
2b5dd3f44c feat: show scanning progress as percentage in disk analyzer
- Implemented progress percentage display (e.g., `(45%)`) in `cmd/analyze` to show scanning status based on cached total files.
- Kept the UI clean by avoiding a full progress bar.
- fix: formatting improvements in `bin/touchid.sh`.
2026-01-09 14:16:29 +08:00
github-actions[bot]
bb4561e682 chore: update contributors [skip ci] 2026-01-09 03:02:38 +00:00
Tw93
2394c5d768 feat(touchid): add sudo_local support with silent migration 2026-01-09 11:02:10 +08:00
Bhadra
ee2c798b29 docs: url update 2026-01-08 23:08:44 +05:30
Bhadra
2e0714d1fe docs: add Windows platform support section to README 2026-01-08 23:07:55 +05:30
Bhadra
9b40c5acf4 fix(windows): support arrow key escape sequences in interactive menus
Some terminals send escape sequences (ESC [ A/B) instead of VirtualKeyCode
for arrow keys. Now handles both methods for better terminal compatibility.
2026-01-08 22:49:43 +05:30
Bhadra
800db2429d fix(windows): address code review security and reliability issues
- Add protection checks to Go analyze tool before delete operations
- Use try/finally to ensure Windows Update service restarts after cleanup
- Don't count interactive uninstall as automatic success
- Tighten orphaned app detection with stricter prefix matching
2026-01-08 22:25:57 +05:30
Bhadra
3255fa2451 fix(windows): fix CI function name and purge return type handling
- Fix Test-IsProtectedPath -> Test-ProtectedPath in CI workflow
- Fix purge.ps1 to handle boolean return from Remove-SafeItem
- Add C:\Program Files and C:\Program Files (x86) to ProtectedPaths
2026-01-08 21:37:07 +05:30
Bhadra
cfe8ea0724 fix(windows): address code review issues
- Fix openInExplorer to actually execute explorer.exe (was a no-op)
- Load System.Windows.Forms assembly before using Clipboard
- Use Remove-SafeItem in purge for consistent safety checks
- Fix Dropbox typo (was DroplboxCache)
2026-01-08 20:08:41 +05:30
Bhadra
34affd75c4 fix(windows): fix install script directory copy to prevent nesting
- Remove existing directories before copying to prevent nested folder structures (e.g., bin/bin)
- This fixes 'Unknown command' errors after installation
2026-01-08 19:59:51 +05:30
Bhadra
7b03fceaf8 perf(windows): speed up analyze scanning with shallow depth
- Reduce timeout from 5s to 500ms per directory
- Limit scan depth to 3 levels for quick size estimation
- Reduce max files scanned from 50k to 10k
- Results now appear in 1-2 seconds instead of minutes
2026-01-08 19:40:38 +05:30
Bhadra
3653900e2d fix(windows): fix property access errors and scanning performance
- Fix analyze: Add timeout and depth limits to calculateDirSize() to prevent
  indefinite scanning on large directories like user profile
- Fix purge: Add null checks for .Count property access under StrictMode
- Fix uninstall: Wrap registry property access in try/catch for items without
  DisplayName, and add null checks throughout
- Fix mole.ps1: Add null check for Arguments.Count
- Add try/catch around CursorVisible calls for non-interactive terminals

All 73 Pester tests and all Go tests pass.
2026-01-08 19:33:26 +05:30