feat(homebrew): 优化缓存清理功能并改进文件管理

- 添加 ACTIVE_CLEANUP_MANIFEST 变量用于跟踪清理操作
- 实现 format_bytes 函数用于格式化字节大小显示
- 重构 prune_cache_before_today 函数以提供详细的文件统计信息
- 添加已删除和保留文件的详细列表输出
- 使用清单文件安全地处理缓存文件枚举和删除操作
- 改进错误处理和清理失败时的状态返回
- 在 .gitignore 中添加新的 IDE 配置文件忽略规则
This commit is contained in:
2026-07-18 13:34:01 +08:00
parent 854aceeae5
commit 82a3f49de8
2 changed files with 76 additions and 10 deletions
+2 -1
View File
@@ -41,6 +41,7 @@ Temporary Items
.idea/uiDesigner.xml
.idea/jsLibraryMappings.xml
.idea/claudeCodeTabState.xml
.idea/j2kLlmSettings.xml
.idea/.gitignore
# 拦截旧版 IDEA 和 Eclipse 文件
*.iml
@@ -144,4 +145,4 @@ docker-compose.override.yml
# SSL 证书和私钥绝不入库
*.pem
*.crt
*.key
*.key