1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-07 17:59:16 +00:00

Refactor and simplify cleanup and optimization tasks, update health checks, and add debug logging tests.

This commit is contained in:
Tw93
2025-12-12 14:10:55 +08:00
parent bb22dc5d10
commit 0f701f7711
3 changed files with 29 additions and 101 deletions

View File

@@ -124,10 +124,13 @@ EOF
# Always-on items (no size checks - instant)
items+=('system_maintenance|System Maintenance|Rebuild system databases & flush caches|true')
items+=('maintenance_scripts|Maintenance Scripts|Run daily/weekly/monthly scripts & rotate logs|true')
items+=('maintenance_scripts|Maintenance Scripts|Rotate system logs|true')
items+=('recent_items|Recent Items|Clear recent apps/documents/servers lists|true')
items+=('log_cleanup|Diagnostics Cleanup|Purge old diagnostic & crash logs|true')
items+=('startup_cache|Startup Cache Rebuild|Rebuild kext caches & prelinked kernel|true')
items+=('mail_downloads|Mail Downloads|Clear old mail attachments (> 30 days)|true')
items+=('swap_cleanup|Swap Refresh|Reset swap files and dynamic pager|true')
items+=('spotlight_cache_cleanup|Spotlight Cache|Clear user-level Spotlight indexes|true')
items+=('developer_cleanup|Developer Cleanup|Clear Xcode DerivedData & DeviceSupport|false')
# Output items as JSON
local first=true