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 2.0 (Mac and iPhone): versions, review clean-up, three features in the sandbox

Claude56287d7bf58a
diff --git a/NotchBuddy/Resources/CoucouAppStore.entitlements b/NotchBuddy/Resources/CoucouAppStore.entitlements
index 0fc60724..eb554c44 100644
--- a/NotchBuddy/Resources/CoucouAppStore.entitlements
+++ b/NotchBuddy/Resources/CoucouAppStore.entitlements
@@ -6,6 +6,8 @@
<true/>
<key>com.apple.security.network.client</key>
<true/>
+ <key>com.apple.security.device.audio-input</key>
+ <true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.files.bookmarks.app-scope</key>
diff --git a/NotchBuddy/Resources/CoucouAppStoreCloud.entitlements b/NotchBuddy/Resources/CoucouAppStoreCloud.entitlements
index 8cb503f6..b1629bc5 100644
--- a/NotchBuddy/Resources/CoucouAppStoreCloud.entitlements
+++ b/NotchBuddy/Resources/CoucouAppStoreCloud.entitlements
@@ -6,6 +6,8 @@
<true/>
<key>com.apple.security.network.client</key>
<true/>
+ <key>com.apple.security.device.audio-input</key>
+ <true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.files.bookmarks.app-scope</key>
diff --git a/NotchBuddy/Resources/InfoAppStore.plist b/NotchBuddy/Resources/InfoAppStore.plist
index 61941bb0..8e60db90 100644
--- a/NotchBuddy/Resources/InfoAppStore.plist
+++ b/NotchBuddy/Resources/InfoAppStore.plist
@@ -36,9 +36,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.1</string>
+ <string>2.0</string>
<key>CFBundleVersion</key>
- <string>6</string>
+ <string>20</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
@@ -52,6 +52,10 @@
</dict>
<key>NSHighResolutionCapable</key>
<true/>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>Coucou uses the microphone when you dictate a chat message.</string>
+ <key>NSSpeechRecognitionUsageDescription</key>
+ <string>Coucou turns your voice into the text of a chat message.</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
diff --git a/NotchBuddy/Resources/InfoNotificationContent.plist b/NotchBuddy/Resources/InfoNotificationContent.plist
index acf7642a..d3631d15 100644
--- a/NotchBuddy/Resources/InfoNotificationContent.plist
+++ b/NotchBuddy/Resources/InfoNotificationContent.plist
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>2.0</string>
<key>CFBundleVersion</key>
- <string>3</string>
+ <string>20</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
diff --git a/NotchBuddy/Resources/InfoPhone.plist b/NotchBuddy/Resources/InfoPhone.plist
index 9fb3925c..f4818d12 100644
--- a/NotchBuddy/Resources/InfoPhone.plist
+++ b/NotchBuddy/Resources/InfoPhone.plist
@@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>2.0</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
@@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>3</string>
+ <string>20</string>
<key>CoucouAPNsEnvironment</key>
<string>$(COUCOU_APNS_ENV)</string>
<key>ITSAppUsesNonExemptEncryption</key>
diff --git a/NotchBuddy/Resources/InfoWidgets.plist b/NotchBuddy/Resources/InfoWidgets.plist
index ff071e12..ad07dd39 100644
--- a/NotchBuddy/Resources/InfoWidgets.plist
+++ b/NotchBuddy/Resources/InfoWidgets.plist
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>2.0</string>
<key>CFBundleVersion</key>
- <string>3</string>
+ <string>20</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
diff --git a/NotchBuddy/Resources/Privacy/Mac/PrivacyInfo.xcprivacy b/NotchBuddy/Resources/Privacy/Mac/PrivacyInfo.xcprivacy
new file mode 100644
index 00000000..381d59aa
--- /dev/null
+++ b/NotchBuddy/Resources/Privacy/Mac/PrivacyInfo.xcprivacy
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!-- Mac App Store build (CoucouAppStore). No tracking, no data collected (no telemetry). UserDefaults: own settings. File dates: files dropped on the notch, in the container (C617.1), and ~/.claude/settings.json the user picked (3B52.1). Keyboards: the chat dictation picks its languages from the keyboard layouts (54BD.1). -->
+<plist version="1.0">
+<dict>
+ <key>NSPrivacyTracking</key>
+ <false/>
+ <key>NSPrivacyTrackingDomains</key>
+ <array/>
+ <key>NSPrivacyCollectedDataTypes</key>
+ <array/>
+ <key>NSPrivacyAccessedAPITypes</key>
+ <array>
+ <dict>
+ <key>NSPrivacyAccessedAPIType</key>
+ <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
+ <key>NSPrivacyAccessedAPITypeReasons</key>
+ <array>
+ <string>CA92.1</string>
+ </array>
+ </dict>
+ <dict>
+ <key>NSPrivacyAccessedAPIType</key>
+ <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
+ <key>NSPrivacyAccessedAPITypeReasons</key>
+ <array>
+ <string>C617.1</string>
+ <string>3B52.1</string>
+ </array>
+ </dict>
+ <dict>
+ <key>NSPrivacyAccessedAPIType</key>
+ <string>NSPrivacyAccessedAPICategoryActiveKeyboards</string>
+ <key>NSPrivacyAccessedAPITypeReasons</key>
+ <array>
+ <string>54BD.1</string>
+ </array>
+ </dict>
+ </array>
+</dict>
+</plist>
diff --git a/NotchBuddy/Resources/Privacy/Phone/PrivacyInfo.xcprivacy b/NotchBuddy/Resources/Privacy/Phone/PrivacyInfo.xcprivacy
new file mode 100644
index 00000000..d63b139c
--- /dev/null
+++ b/NotchBuddy/Resources/Privacy/Phone/PrivacyInfo.xcprivacy
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!-- iPhone app and its extensions. No tracking, no data collected (no telemetry). UserDefaults: own settings. -->
+<plist version="1.0">
+<dict>
+ <key>NSPrivacyTracking</key>
+ <false/>
+ <key>NSPrivacyTrackingDomains</key>
+ <array/>
+ <key>NSPrivacyCollectedDataTypes</key>
+ <array/>
+ <key>NSPrivacyAccessedAPITypes</key>
+ <array>
+ <dict>
+ <key>NSPrivacyAccessedAPIType</key>
+ <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
+ <key>NSPrivacyAccessedAPITypeReasons</key>
+ <array>
+ <string>CA92.1</string>
+ </array>
+ </dict>
+ </array>
+</dict>
+</plist>
diff --git a/NotchBuddy/Sources/App/FlowAudioBands.swift b/NotchBuddy/Sources/App/FlowAudioBands.swift
index 49d9edf7..e846124f 100644
--- a/NotchBuddy/Sources/App/FlowAudioBands.swift
+++ b/NotchBuddy/Sources/App/FlowAudioBands.swift
@@ -1,4 +1,3 @@
-#if !APPSTORE
import Accelerate
import AVFoundation
import os
@@ -71,4 +70,3 @@ final class FlowAudioBands: @unchecked Sendable {
lock.withLock { $0 = latest }
}
}
-#endif
diff --git a/NotchBuddy/Sources/App/HookServer.swift b/NotchBuddy/Sources/App/HookServer.swift
index b997ec96..6cc4a549 100644
--- a/NotchBuddy/Sources/App/HookServer.swift
+++ b/NotchBuddy/Sources/App/HookServer.swift
@@ -1591,6 +1591,14 @@ final class HookServer: @unchecked Sendable {
/// either a PermissionRequest hook with timeout < 120s, or the AskUserQuestion
/// PreToolUse matcher is missing (requires Claude Code 2.1.85+).
static func hooksNeedUpdate() -> Bool {
+ #if APPSTORE
+ // Sandboxed: ~/.claude can't be read here (homeDirectoryForCurrentUser is the
+ // container). The relay script written at install carries the version it was
+ // written with: an older one (1.1 wrote none) misses plan approval, session titles
+ // and Claude Desktop routing, so Settings offers "Update hooks".
+ guard UserDefaults.standard.bool(forKey: "coucouHooksInstalled") else { return false }
+ return UserDefaults.standard.integer(forKey: appStoreHookVersionKey) < appStoreHookVersion
+ #else
let settingsURL = FileManager.default.homeDirectoryForCurrentUser
.appendingPathComponent(".claude/settings.json")
guard let data = try? Data(contentsOf: settingsURL),
@@ -1628,8 +1636,16 @@ final class HookServer: @unchecked Sendable {
if !hasAskEntry { return true }
}
return false
+ #endif
}
+ #if APPSTORE
+ /// Bump when nbHookPythonAppStore or the hooks written by buildHooksData change in a way
+ /// the installed copy must catch up with. 1.1 wrote no version (0); 2.0 is 2.
+ static let appStoreHookVersion = 2
+ static let appStoreHookVersionKey = "coucouAppStoreHookVersion"
+ #endif
+
// MARK: - Claude Code settings.json hook installer
private var _pendingHooksData: Data?
@@ -1872,6 +1888,14 @@ final class HookServer: @unchecked Sendable {
let settingsURL = claudeURL.appendingPathComponent("settings.json")
try ClaudeSettingsFile.write(data, to: settingsURL, expecting: original)
UserDefaults.standard.set(true, forKey: "coucouHooksInstalled")
+ UserDefaults.standard.set(Self.appStoreHookVersion, forKey: Self.appStoreHookVersionKey)
+ }
+
+ /// The settings.json Coucou would write, to show before writing (CLAUDE.md: never
+ /// write ~/.claude/settings.json without showing the change first).
+ func previewClaudeHooksAppStore(claudeURL: URL) throws -> String {
+ let (data, _) = try buildHooksData(claudeURL: claudeURL)
+ return String(data: data, encoding: .utf8) ?? ""
}
func uninstallClaudeHooksAppStore(claudeURL: URL) throws {
diff --git a/NotchBuddy/Sources/App/IslandViewContent.swift b/NotchBuddy/Sources/App/IslandViewContent.swift
index dbd00f1d..caf53fdc 100644
--- a/NotchBuddy/Sources/App/IslandViewContent.swift
+++ b/NotchBuddy/Sources/App/IslandViewContent.swift
@@ -765,12 +765,10 @@ struct ErrorView: View {
NotificationCenter.default.post(name: .islandCollapse, object: nil)
}
} else {
- #if !APPSTORE
PrimaryButton("Open terminal") {
openSessionApp(task)
NotificationCenter.default.post(name: .islandCollapse, object: nil)
}
- #endif
}
SecondaryButton("OK") {
NotificationCenter.default.post(name: .islandCollapse, object: nil)
@@ -785,15 +783,14 @@ struct ErrorView: View {
}
}
-#if !APPSTORE
/// The app a session runs in (its terminal, or VS Code), else any known terminal.
+/// Only brings apps to the front, so the App Store build has it too.
private func openSessionApp(_ task: AgentTask?) {
if !(task?.pill == "integration_claude" && ClaudeHost.activate(task?.hostApp)),
!TerminalTarget.activate(sessionBundleId: task?.sessionBundleId) {
NSWorkspace.shared.open(URL(fileURLWithPath: "/System/Applications/Utilities/Terminal.app"))
}
}
-#endif
/// Brings the Claude desktop app forward (or launches it) — target of the Claude Desktop pill.
private let claudeDesktopBundleId = "com.anthropic.claudefordesktop"
@@ -830,12 +827,10 @@ struct FinishedView: View {
NotificationCenter.default.post(name: .islandCollapse, object: nil)
}
} else {
- #if !APPSTORE
PrimaryButton("Open terminal") {
openSessionApp(state.focusTask)
NotificationCenter.default.post(name: .islandCollapse, object: nil)
}
- #endif
}
SecondaryButton("OK") {
NotificationCenter.default.post(name: .islandCollapse, object: nil)
@@ -1404,7 +1399,6 @@ struct MailView: View {
// MARK: - Prompt (chat)
-#if !APPSTORE
/// The mic's right-click menu: Automatic (the user's languages) or one fixed language.
private struct DictationLanguageMenu: View {
@Bindable var dictation: MacDictation
@@ -1436,7 +1430,6 @@ private struct DictationLanguageMenu: View {
return chosen == MacDictation.automatic || automatic.contains(chosen) ? automatic : automatic + [chosen]
}
}
-#endif
struct PromptView: View {
@ObservedObject var state: AppState
@@ -1444,9 +1437,7 @@ struct PromptView: View {
@FocusState private var focused: Bool
@State private var showModelPicker = false
- #if !APPSTORE
@State private var dictation = MacDictation()
- #endif
var body: some View {
ZStack(alignment: .leading) {
CardBackground(wash: .indigo)
@@ -1541,7 +1532,6 @@ struct PromptView: View {
.writingToolsBehavior(.disabled)
.onSubmit { sendMessage() }
- #if !APPSTORE
// Dictate instead of typing (on-device speech recognition when available)
Button {
Task {
@@ -1561,7 +1551,6 @@ struct PromptView: View {
.onChange(of: dictation.transcript) { _, _ in
if dictation.isRecording { text = dictation.text }
}
- #endif
Button(action: sendMessage) {
Image(systemName: "arrow.up")
@@ -1607,7 +1596,6 @@ struct PromptView: View {
}
private func sendMessage() {
- #if !APPSTORE
// Still dictating: take the final words (and the right language) before sending.
if dictation.isRecording {
Task {
@@ -1616,7 +1604,6 @@ struct PromptView: View {
}
return
}
- #endif
let query = text.trimmingCharacters(in: .whitespacesAndNewlines)
guard !query.isEmpty else { return }
text = ""
@@ -5253,6 +5240,10 @@ struct SettingsIslandView: View {
@ObservedObject var state: AppState
private var claudeConnected: Bool {
+ #if APPSTORE
+ // Sandboxed: ~/.claude isn't readable here, and the hook path has no "NotchBuddy".
+ return HookServer.claudeHooksInstalled()
+ #else
let url = FileManager.default.homeDirectoryForCurrentUser
.appendingPathComponent(".claude/settings.json")
guard let data = try? Data(contentsOf: url),
@@ -5264,6 +5255,7 @@ struct SettingsIslandView: View {
($0["command"] as? String)?.contains("NotchBuddy") == true
} ?? false
}
+ #endif
}
private var apiConnected: Bool {
diff --git a/NotchBuddy/Sources/App/IslandWindowController.swift b/NotchBuddy/Sources/App/IslandWindowController.swift
index d65f53a5..bb2a715c 100644
--- a/NotchBuddy/Sources/App/IslandWindowController.swift
+++ b/NotchBuddy/Sources/App/IslandWindowController.swift
@@ -717,9 +717,8 @@ final class IslandWindowController: NSWindowController {
}
case .jumpToTerminal:
- #if !APPSTORE
+ // Bringing an app to the front works sandboxed too (App Store build).
performJumpToTerminal()
- #endif
case .attachFrontWindow:
#if !APPSTORE
@@ -861,7 +860,6 @@ final class IslandWindowController: NSWindowController {
// MARK: - Terminal jump
- #if !APPSTORE
private func performJumpToTerminal() {
guard state.focusTask != nil else {
SoundEngine.shared.play("error")
@@ -875,6 +873,7 @@ final class IslandWindowController: NSWindowController {
collapse(allowPendingApproval: true)
}
+ #if !APPSTORE
private func performAttachFrontWindow() {
guard let app = state.lastExternalApp else {
SoundEngine.shared.play("error"); return
@@ -1012,9 +1011,8 @@ final class IslandWindowController: NSWindowController {
self.attachDragStart = nil
self.state.stateOverride = nil
- #if !APPSTORE
// Dropped near a corner of its screen (or back at the top centre): the island
- // moves there.
+ // moves there (both builds).
if let here = NSScreen.screens.first(where: { $0.frame.contains(mouse) }),
here == Self.islandScreen(),
let target = IslandPlacement.snap(mouse, screen: here.frame),
@@ -1026,6 +1024,7 @@ final class IslandWindowController: NSWindowController {
return
}
+ #if !APPSTORE
let windowCtx = self.windowContextAtPoint(mouse)
let inNotchZone = self.window?.frame.contains(mouse) == true
@@ -1181,7 +1180,6 @@ final class IslandWindowController: NSWindowController {
let dt = min(0.05, max(0.001, now - lastGhostTick))
lastGhostTick = now
var target = NSPoint(x: mouse.x - s/2, y: mouse.y - s/2)
- #if !APPSTORE
// Near a corner (or the top centre): the place shows, and the nearer the pointer gets,
// the harder Mochi is pulled into it (a gradual magnet, no jump at the zone's edge).
if let snap = snapTarget(at: mouse) {
@@ -1195,7 +1193,6 @@ final class IslandWindowController: NSWindowController {
} else {
showSnapTarget(nil)
}
- #endif
// Eased towards the target, the same however fast the screen refreshes: he catches up
// with the pointer in a few frames (no jump), then follows it closely.
let k = CGFloat(1 - exp(-dt / 0.045))
diff --git a/NotchBuddy/Sources/App/MacDictation.swift b/NotchBuddy/Sources/App/MacDictation.swift
index 07838bc7..7053aab3 100644
--- a/NotchBuddy/Sources/App/MacDictation.swift
+++ b/NotchBuddy/Sources/App/MacDictation.swift
@@ -1,9 +1,9 @@
-#if !APPSTORE
import AVFoundation
import Carbon
import Speech
-/// Speech to text for the notch chat (GitHub build), on-device when the Mac supports it.
+/// Speech to text for the notch chat, on-device when the Mac supports it (both builds: the
+/// App Store one has the microphone entitlement and the usage strings for it).
///
/// Apple's recognizer only understands one language per request, so "Automatic" (the default)
/// listens with up to three recognizers at once — the user's languages (macOS languages,
@@ -307,4 +307,3 @@ extension Notification.Name {
static let dictationDidStart = Notification.Name("notchBuddy.dictationDidStart")
static let dictationDidEnd = Notification.Name("notchBuddy.dictationDidEnd")
}
-#endif
diff --git a/NotchBuddy/Sources/App/MachineVitals.swift b/NotchBuddy/Sources/App/MachineVitals.swift
index 7763fc72..2deaa545 100644
--- a/NotchBuddy/Sources/App/MachineVitals.swift
+++ b/NotchBuddy/Sources/App/MachineVitals.swift
@@ -191,6 +191,10 @@ final class MachineVitals: ObservableObject {
/// The apps using the processor the most since the last reading ("node", "Google Chrome").
private func topProcessNames() -> [String] {
+ #if APPSTORE
+ // Sandboxed: other apps' usage isn't ours to read (each try is a sandbox violation).
+ return []
+ #else
let estimate = proc_listallpids(nil, 0)
guard estimate > 0 else { return [] }
var pids = [pid_t](repeating: 0, count: Int(estimate) + 64)
@@ -219,6 +223,7 @@ final class MachineVitals: ObservableObject {
if names.count == 2 { break }
}
return names
+ #endif
}
/// "Google Chrome" for its helpers, the app's name when it has one, else the process name.
diff --git a/NotchBuddy/Sources/App/SettingsView.swift b/NotchBuddy/Sources/App/SettingsView.swift
index 69d3a72e..57e912c4 100644
--- a/NotchBuddy/Sources/App/SettingsView.swift
+++ b/NotchBuddy/Sources/App/SettingsView.swift
@@ -390,8 +390,7 @@ struct SettingsView: View {
.font(.system(size: 11))
.foregroundColor(.secondary)
.fixedSize(horizontal: false, vertical: true)
- #if !APPSTORE
- // The notch or a corner of the screen (IslandPlacement).
+ // The notch or a corner of the screen (IslandPlacement), both builds.
Picker(String(localized: "island.position"), selection: $state.islandPlacement) {
Text("island.position.notch").tag(IslandPlacement.notch)
Divider()
@@ -405,7 +404,6 @@ struct SettingsView: View {
.font(.system(size: 11))
.foregroundColor(.secondary)
.fixedSize(horizontal: false, vertical: true)
- #endif
}
.padding(6)
.onAppear { refreshConnectedScreens() }
@@ -519,6 +517,15 @@ struct SettingsView: View {
}
HStack(spacing: 8) {
Button(String(localized: "Restart Coucou")) {
+ #if APPSTORE
+ // Sandboxed: no helper process that outlives the app (guideline 2.4.5).
+ // Launch a fresh copy through Launch Services, then quit once it is on its way.
+ let config = NSWorkspace.OpenConfiguration()
+ config.createsNewApplicationInstance = true
+ NSWorkspace.shared.openApplication(at: Bundle.main.bundleURL, configuration: config) { _, _ in
+ DispatchQueue.main.async { NSApp.terminate(nil) }
+ }
+ #else
let appPath = Bundle.main.bundleURL.path
let pid = ProcessInfo.processInfo.processIdentifier
let task = Process()
@@ -526,6 +533,7 @@ struct SettingsView: View {
task.arguments = ["-c", "while kill -0 \(pid) 2>/dev/null; do sleep 0.2; done; open \"$1\"", "--", appPath]
try? task.run()
NSApp.terminate(nil)
+ #endif
}
.buttonStyle(.bordered)
Text(String(localized: "Applies on next launch"))
@@ -1484,9 +1492,11 @@ struct SettingsView: View {
.onChange(of: cryptoExchange) { _, _ in CryptoController.shared.settingsChanged() }
.onChange(of: cryptoCurrency) { _, _ in CryptoController.shared.settingsChanged() }
- // Portfolio: exchange accounts + wallets.
+ #if !APPSTORE
+ // Portfolio: exchange accounts + wallets (GitHub build, like its pill).
PortfolioSettingsSection()
.padding(.top, 4)
+ #endif
#if !APPSTORE
// WhatsApp through a local gateway: its own fields, saved by its own button.
@@ -1811,9 +1821,18 @@ struct SettingsView: View {
private func installHooksAppStore() {
guard let claudeURL = pickClaudeFolder(prompt: "Select") else { return }
+ // Show the settings.json Coucou is about to write, as the GitHub build does.
+ let preview: String
+ do {
+ preview = try HookServer.shared.previewClaudeHooksAppStore(claudeURL: claudeURL)
+ } catch {
+ statusMessage = "❌ \(error.localizedDescription)"
+ return
+ }
let alert = NSAlert()
alert.messageText = String(localized: "alert.hooks.title")
alert.informativeText = String(localized: "alert.hooks.body")
+ alert.accessoryView = Self.hooksPreviewView(preview)
alert.addButton(withTitle: String(localized: "alert.hooks.button-install"))
alert.addButton(withTitle: String(localized: "Cancel"))
alert.alertStyle = .informational
@@ -1827,6 +1846,21 @@ struct SettingsView: View {
}
}
+ /// A read-only, scrollable copy of the settings.json to be written, for the alert.
+ private static func hooksPreviewView(_ json: String) -> NSView {
+ let scroll = NSScrollView(frame: NSRect(x: 0, y: 0, width: 420, height: 180))
+ scroll.hasVerticalScroller = true
+ scroll.borderType = .bezelBorder
+ let text = NSTextView(frame: scroll.bounds)
+ text.isEditable = false
+ text.isSelectable = true
+ text.font = .monospacedSystemFont(ofSize: 10, weight: .regular)
+ text.string = json
+ text.autoresizingMask = [.width]
+ scroll.documentView = text
+ return scroll
+ }
+
private func uninstallHooksAppStore() {
guard let claudeURL = pickClaudeFolder(prompt: "Select") else { return }
do {
diff --git a/NotchBuddy/Sources/App/WeeklyRecapView.swift b/NotchBuddy/Sources/App/WeeklyRecapView.swift
index bdec4f29..181beea1 100644
--- a/NotchBuddy/Sources/App/WeeklyRecapView.swift
+++ b/NotchBuddy/Sources/App/WeeklyRecapView.swift
@@ -196,6 +196,13 @@ private struct RecapSharePanelView: View {
// MARK: - Share image (1080×1920)
struct RecapShareImageView: View {
+ /// Where people can find Coucou, printed under the shared image.
+ #if APPSTORE
+ static let footer = "Coucou · louis-cfm.github.io/coucou"
+ #else
+ static let footer = "Coucou · github.com/Louis-CFM/coucou"
+ #endif
+
let summary: WeeklySummary
let hideProjects: Bool
@@ -302,7 +309,7 @@ struct RecapShareImageView: View {
Spacer()
- Text("Coucou · github.com/Louis-CFM/coucou")
+ Text(Self.footer)
.font(.system(size: 20, weight: .medium, design: .monospaced))
.foregroundColor(Color(hex: "#8E939C").opacity(0.6))
.padding(.bottom, 60)
diff --git a/NotchBuddy/Sources/CoucouKit/PillCatalog.swift b/NotchBuddy/Sources/CoucouKit/PillCatalog.swift
index d76327d8..30a2d47d 100644
--- a/NotchBuddy/Sources/CoucouKit/PillCatalog.swift
+++ b/NotchBuddy/Sources/CoucouKit/PillCatalog.swift
@@ -130,8 +130,10 @@ enum PillCatalog {
category: .service, subtitle: String(localized: "Integration"), source: .n8n, githubOnly: true),
.init(id: "integration_crypto", name: "Crypto", color: "#F7931A",
category: .service, subtitle: String(localized: "Integration"), source: .n8n),
+ // GitHub build only, as intended when it was added (exchange API keys: not worth an
+ // App Review question for the store build).
.init(id: "integration_portfolio", name: "Portfolio", color: "#FFD700",
- category: .service, subtitle: String(localized: "Integration"), source: .n8n),
+ category: .service, subtitle: String(localized: "Integration"), source: .n8n, githubOnly: true),
]
/// Pills available in the current build target.
diff --git a/NotchBuddy/Sources/Phone/AboutView.swift b/NotchBuddy/Sources/Phone/AboutView.swift
index 3f40d86e..bf586a10 100644
--- a/NotchBuddy/Sources/Phone/AboutView.swift
+++ b/NotchBuddy/Sources/Phone/AboutView.swift
@@ -173,7 +173,7 @@ struct OnboardingView: View {
icon: "icloud")
VStack(alignment: .leading, spacing: 6) {
Text("Then, from here").font(.headline)
- Text("• Allow or deny a command, right from the Lock Screen\n• Answer Claude's questions\n• See what Claude did, file by file\n• Write or dictate the next instruction, or ask Siri (GitHub version on the Mac)\n• Mochi in your Dynamic Island when your Mac is locked")
+ Text("• Allow or deny a command, right from the Lock Screen\n• Answer Claude's questions\n• See what Claude did, file by file\n• Mochi in your Dynamic Island when your Mac is locked")
.font(.callout)
.foregroundStyle(.secondary)
}
diff --git a/NotchBuddy/Sources/Phone/InstructionComposer.swift b/NotchBuddy/Sources/Phone/InstructionComposer.swift
index e693d75f..f6b832bf 100644
--- a/NotchBuddy/Sources/Phone/InstructionComposer.swift
+++ b/NotchBuddy/Sources/Phone/InstructionComposer.swift
@@ -24,7 +24,7 @@ struct InstructionComposer: View {
composer
status
} else {
- Label("To write to Claude from here, turn on \"Let my iPhone send instructions to Claude Code\" in Coucou's Settings on your Mac (GitHub version).",
+ Label("This session doesn't take instructions from your iPhone. When Coucou on your Mac offers \"Let my iPhone send instructions to Claude Code\" in its Settings, turn it on to write to Claude from here.",
systemImage: "info.circle")
.font(.caption)
.foregroundStyle(.secondary)
diff --git a/NotchBuddy/project.yml b/NotchBuddy/project.yml
index 7c5c4398..282db271 100644
--- a/NotchBuddy/project.yml
+++ b/NotchBuddy/project.yml
@@ -224,20 +224,25 @@ targets:
type: folder
- path: Resources/Localizable.xcstrings
buildPhase: resources
+ # Privacy manifest (required-reason APIs; no tracking, nothing collected).
+ - path: Resources/Privacy/Mac/PrivacyInfo.xcprivacy
+ buildPhase: resources
info:
path: Resources/InfoAppStore.plist
properties:
CFBundleName: Coucou
CFBundleDisplayName: Coucou
CFBundleIdentifier: fr.louisraille.Coucou
- CFBundleVersion: "6"
- CFBundleShortVersionString: "1.1"
+ CFBundleVersion: "20"
+ CFBundleShortVersionString: "2.0"
CFBundlePackageType: APPL
LSUIElement: YES
NSHighResolutionCapable: YES
NSSupportsAutomaticGraphicsSwitching: YES
LSApplicationCategoryType: public.app-category.developer-tools
ITSAppUsesNonExemptEncryption: NO
+ NSMicrophoneUsageDescription: "Coucou uses the microphone when you dictate a chat message."
+ NSSpeechRecognitionUsageDescription: "Coucou turns your voice into the text of a chat message."
NSAppTransportSecurity:
NSAllowsLocalNetworking: true
CFBundleLocalizations:
@@ -305,14 +310,17 @@ targets:
buildPhase: resources
- path: Resources/sounds/error.wav
buildPhase: resources
+ # Privacy manifest (required-reason APIs; no tracking, nothing collected).
+ - path: Resources/Privacy/Phone/PrivacyInfo.xcprivacy
+ buildPhase: resources
info:
path: Resources/InfoPhone.plist
properties:
CFBundleName: Coucou
CFBundleDisplayName: Coucou
CFBundleIdentifier: fr.louisraille.Coucou
- CFBundleVersion: "3"
- CFBundleShortVersionString: "1.0"
+ CFBundleVersion: "20"
+ CFBundleShortVersionString: "2.0"
CFBundlePackageType: APPL
LSRequiresIPhoneOS: YES
UILaunchScreen: {}
@@ -385,14 +393,16 @@ targets:
- path: Sources/Phone/MochiActivityAttributes.swift
- path: Sources/Phone/OpenLeadMochiIntent.swift
- path: Sources/Phone/DenyApprovalIntent.swift
+ - path: Resources/Privacy/Phone/PrivacyInfo.xcprivacy
+ buildPhase: resources
info:
path: Resources/InfoWidgets.plist
properties:
CFBundleName: CoucouWidgets
CFBundleDisplayName: Coucou
CFBundleIdentifier: fr.louisraille.Coucou.Widgets
- CFBundleVersion: "3"
- CFBundleShortVersionString: "1.0"
+ CFBundleVersion: "20"
+ CFBundleShortVersionString: "2.0"
CFBundlePackageType: XPC!
NSExtension:
NSExtensionPointIdentifier: com.apple.widgetkit-extension
@@ -428,14 +438,16 @@ targets:
type: group
- path: Sources/Phone/MochiLive.swift
- path: Sources/Phone/MacStubs.swift
+ - path: Resources/Privacy/Phone/PrivacyInfo.xcprivacy
+ buildPhase: resources
info:
path: Resources/InfoNotificationContent.plist
properties:
CFBundleName: CoucouNotificationContent
CFBundleDisplayName: Coucou
CFBundleIdentifier: fr.louisraille.Coucou.NotificationContent
- CFBundleVersion: "3"
- CFBundleShortVersionString: "1.0"
+ CFBundleVersion: "20"
+ CFBundleShortVersionString: "2.0"
CFBundlePackageType: XPC!
NSExtension:
NSExtensionPointIdentifier: com.apple.usernotifications.content-extension
diff --git a/README.md b/README.md
index dc51b25b..0fcb7e25 100644
--- a/README.md
+++ b/README.md
@@ -215,7 +215,7 @@ Nothing is written to disk during the demo — no Keychain entries, no hook file
Coucou is coming to the **Mac App Store** and the **iPhone App Store**: one click to install, automatic updates, and the iPhone app pairs with your Mac through your iCloud account, with nothing to configure. The links will be here as soon as Apple publishes them.
-The App Store build of the Mac app runs in Apple's sandbox, so a few features stay in the GitHub build: Claude plan usage, the Apple Music pill and attaching the front window to the chat.
+The App Store build of the Mac app runs in Apple's sandbox, so some features stay in the GitHub build: agents other than Claude Code, Cursor and Claude Desktop (Codex, Gemini CLI, Antigravity, Copilot CLI…), Claude and Codex plan usage, the chat through your AI subscription, the Coucou window (Flow dictation, the Notetaker, settings search), « OK Coucou », Mail, WhatsApp, Apple Music, Spotify, the Portfolio pill, screen capture, attaching the front window to the chat, and updates from inside the app (the App Store updates it).
### iPhone