Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Developer lists GitHub Copilot CLI's cache and logs, and DotSlash
Țugui Dragoș2f284483640e
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swiftindex 2c389c2a..07c3fba9 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift@@ -802,6 +802,13 @@ public enum DeveloperCaches {Definition(id: "codex", name: "Codex CLI", systemImage: "terminal", appBundleIdentifiers: [], folders: [Folder(".codex/log", .logs, source: "https://github.com/openai/codex/blob/main/codex-rs/core/src/config/mod.rs#L4063"),]),+ Definition(id: "copilotcli", name: "GitHub Copilot CLI", systemImage: "terminal", appBundleIdentifiers: [], folders: [+ Folder("Library/Caches/copilot", .cache, source: "https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference"),+ Folder(".copilot/logs", .logs, source: "https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference"),+ ]),+ Definition(id: "dotslash", name: "DotSlash", systemImage: "arrow.down.circle", appBundleIdentifiers: [], folders: [+ Folder("Library/Caches/dotslash", .downloads, source: "https://github.com/facebook/dotslash/blob/main/src/dotslash_cache.rs#L76-L85"),+ ]),Definition(id: "cursoragent", name: "Cursor CLI", systemImage: "terminal", appBundleIdentifiers: [], folders: [Folder(".local/share/cursor-agent/versions", .environments,diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swiftindex 7d48b568..23fcff6e 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift@@ -963,6 +963,25 @@ struct DeveloperCachesTests {#expect(locations.first?.kind == .cache)}+ /// GitHub documents the CLI's cache folder and its logs as safe to delete, and its sessions, secrets, and+ /// history beside the logs as the person's.+ @Test func offersCopilotCLIsCacheAndLogsAndNothingElseOfIt() async throws {+ let directory = try TemporaryDirectory()+ try directory.file("Library/Caches/copilot/pkg/1.0.0/index.js", bytes: 400_000)+ try directory.file(".copilot/logs/session.log", bytes: 400_000)+ try directory.file(".copilot/session-state/history.json", bytes: 400_000)+ try directory.file(".copilot/mcp-secrets/index.json", bytes: 400_000)+ let copilot = DeveloperCaches.definitions.filter { $0.id == "copilotcli" }++ let locations = await DeveloperCaches.scan(copilot, homeDirectory: directory.url).flatMap(\.locations)++ let home = directory.url.path(percentEncoded: false)+ #expect(Set(locations.map { String($0.url.path(percentEncoded: false).dropFirst(home.count)) }) == [+ "Library/Caches/copilot", ".copilot/logs",+ ])+ #expect(locations.allSatisfy { $0.isRecommended })+ }+/// The editor downloads its export templates again, so they are listed and never selected, and its settings/// beside them are never listed.@Test func listsGodotsExportTemplatesWithoutSelectingThem() async throws {