Skip to content

feat(rules): add Flatpak/Snap/Homebrew cleaning coverage#52

Merged
dbfx merged 1 commit intomainfrom
feat/flatpak-snap-homebrew-rules
Mar 23, 2026
Merged

feat(rules): add Flatpak/Snap/Homebrew cleaning coverage#52
dbfx merged 1 commit intomainfrom
feat/flatpak-snap-homebrew-rules

Conversation

@dbfx
Copy link
Contributor

@dbfx dbfx commented Mar 23, 2026

Summary

  • Linux: Add Snap per-app user cache cleaning (~/snap/*/common/.cache) and Flatpak system repo temp files (/var/lib/flatpak/repo/tmp)
  • Linux: Add Homebrew/Linuxbrew cache rule (~/.cache/Homebrew)
  • macOS: Expand existing Homebrew rule to also clean build logs (~/Library/Logs/Homebrew)

Test plan

  • npm run validate:rules passes
  • npm test passes
  • Verify Snap cache paths resolve correctly on a Snap-enabled system
  • Verify Flatpak repo tmp is scannable with admin privileges

🤖 Generated with Claude Code

Expand sandboxed app cache cleaning on Linux and Homebrew coverage
across platforms:

- Linux: Snap per-app user caches (~~/snap/*/common/.cache)
- Linux: Flatpak system repo temp files (/var/lib/flatpak/repo/tmp)
- Linux: Homebrew/Linuxbrew cache (~/.cache/Homebrew)
- macOS: Add Homebrew build logs (~/Library/Logs/Homebrew) to existing rule

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🧹 Rules Bot

Changes

  • ✅ Added Homebrew Cache (homebrew) to linux/apps.json

Validation ✅

All rules are valid

Full validation output

> kudu@1.21.1 validate:rules
> npx tsx src/main/rules/validate.ts

npm warn exec The following package was not found and will be installed: tsx@4.21.0

win32:
  ✓ apps.json passes schema
  ✓ browsers.json passes schema
  ✓ databases.json passes schema
  ✓ gaming.json passes schema
  ✓ gpu-cache.json passes schema
  ✓ misc.json passes schema
  ✓ steam.json passes schema
  ✓ system.json passes schema

darwin:
  ✓ apps.json passes schema
  ✓ browsers.json passes schema
  ✓ databases.json passes schema
  ✓ gaming.json passes schema
  ✓ gpu-cache.json passes schema
  ✓ misc.json passes schema
  ✓ steam.json passes schema
  ✓ system.json passes schema

linux:
  ✓ apps.json passes schema
  ✓ browsers.json passes schema
  ✓ databases.json passes schema
  ✓ gaming.json passes schema
  ✓ gpu-cache.json passes schema
  ✓ misc.json passes schema
  ✓ steam.json passes schema
  ✓ system.json passes schema

✓ All rule files are valid

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 88f1995a5d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@dbfx dbfx merged commit 2006078 into main Mar 23, 2026
9 checks passed
@dbfx dbfx deleted the feat/flatpak-snap-homebrew-rules branch March 23, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant