Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

App Store build: claudeHooksInstalled() lives outside the GitHub-only block

Claude2bdefe5591d4
diff --git a/NotchBuddy/Sources/App/HookServer.swift b/NotchBuddy/Sources/App/HookServer.swift
index a1c9156d..c9f0e45a 100644
--- a/NotchBuddy/Sources/App/HookServer.swift
+++ b/NotchBuddy/Sources/App/HookServer.swift
@@ -1544,17 +1544,7 @@ final class HookServer: @unchecked Sendable {
}
#endif
- // MARK: - Gemini CLI and Antigravity hook installers (#if !APPSTORE only)
-
- #if !APPSTORE
- private static var geminiSettingsURL: URL {
- FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent(".gemini/settings.json")
- }
- private static var agyHooksURL: URL {
- FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent(".gemini/config/hooks.json")
- }
-
- // MARK: Installed-state detection
+ // MARK: - Claude Code installed-state detection (both builds)
/// True when ~/.claude/settings.json already routes Claude Code events to Coucou.
/// Cursor sessions ride on these same hooks, so they share this state.
@@ -1572,6 +1562,18 @@ final class HookServer: @unchecked Sendable {
#endif
}
+ // MARK: - Gemini CLI and Antigravity hook installers (#if !APPSTORE only)
+
+ #if !APPSTORE
+ private static var geminiSettingsURL: URL {
+ FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent(".gemini/settings.json")
+ }
+ private static var agyHooksURL: URL {
+ FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent(".gemini/config/hooks.json")
+ }
+
+ // MARK: Installed-state detection
+
static func geminiHooksInstalled() -> Bool {
guard let data = try? Data(contentsOf: geminiSettingsURL),
let settings = (try? JSONSerialization.jsonObject(with: data)) as? [String: Any],