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.

Portfolio pill: exchange balances + self-custody wallets in the notch

Louis Raillead741e1f5e7d
diff --git a/NotchBuddy/NotchBuddy.xcodeproj/project.pbxproj b/NotchBuddy/NotchBuddy.xcodeproj/project.pbxproj
index 87d4df8f..ff726b2c 100644
--- a/NotchBuddy/NotchBuddy.xcodeproj/project.pbxproj
+++ b/NotchBuddy/NotchBuddy.xcodeproj/project.pbxproj
@@ -9,6 +9,7 @@
/* Begin PBXBuildFile section */
0099C844CFD9424CEAA5CA77 /* ClaudeResponseText.swift in Sources */ = {isa = PBXBuildFile; fileRef = 444604C7E2C530B664849EF9 /* ClaudeResponseText.swift */; };
01B96F947DF2BDC352E8526D /* WeeklyRecapView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 888B3E1420BCB6292BDC8117 /* WeeklyRecapView.swift */; };
+ 0325A44358904B44C2237CCE /* ApprovalQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1BAE224C1C435C9FFD05BF65 /* ApprovalQueue.swift */; };
0329E76BA4A8FEEA8A6D76E7 /* ClaudeService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A83D5410BD030B243ADDCFF4 /* ClaudeService.swift */; };
03538CF0E693300A14029EDE /* SpotifyViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 914A792788D403F836BEB570 /* SpotifyViews.swift */; };
035F9A85BF71B21F9AA5E004 /* VoiceSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4543CB771E0B723783F529E /* VoiceSettings.swift */; };
@@ -46,12 +47,6 @@
1C2BB61FA83015C42B321E0E /* PillColors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37564F5F041B38C976DF3DEF /* PillColors.swift */; };
1D23613B270FE8B11C5E27A7 /* IslandDisplayChoice.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A09E73F1E58019EF6EA2A62 /* IslandDisplayChoice.swift */; };
1D4CE0CCD2B5A0FFE50C7F06 /* TerminalTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87AF6F7A027AB1D46309DD49 /* TerminalTarget.swift */; };
- AA4B191682537CC92C899BC9 /* CryptoViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 036DE9440154C95E2B90C1EA /* CryptoViews.swift */; };
- 91ECF9F7C5C7E5F6886FA02F /* CryptoController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 033D87BF740911193C67D94D /* CryptoController.swift */; };
- AE2F7E3B42815ADC7EE77B8D /* MailViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCFDE7CC2BD8BCA9A6C9DF45 /* MailViews.swift */; };
- 56D42241B003E714A77CF838 /* MailController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB502629F8A6EE9E8A647B2E /* MailController.swift */; };
- 65F11D3911C3240BD89CF1C5 /* ApprovalQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5077E908D307285474CA87C /* ApprovalQueue.swift */; };
- 9CF7070265B7CDC933FD9776 /* PillSessionRegistry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 30A2AD5885FA3226E0337D67 /* PillSessionRegistry.swift */; };
1DAB0704A136FF8E6FB34191 /* ClaudeResponseText.swift in Sources */ = {isa = PBXBuildFile; fileRef = 444604C7E2C530B664849EF9 /* ClaudeResponseText.swift */; };
1DCF28998358810CDBC93F91 /* ClaudeHookDetection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EA7D927F6BB2667D37AA963 /* ClaudeHookDetection.swift */; };
1E55440B97C640993E93D04D /* DiffEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = B32FB972D02162720E566674 /* DiffEngine.swift */; };
@@ -61,6 +56,7 @@
2104B8000768F551064B17E4 /* PhoneLink.swift in Sources */ = {isa = PBXBuildFile; fileRef = C22AF9F301D7A23DA6254D49 /* PhoneLink.swift */; };
2132477000FD77F7EB234DAA /* FileDropView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3232F258523DD8D09B670363 /* FileDropView.swift */; };
23BFB915C12B0BC4E9B50AAA /* ApprovalRelay.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD426E81DF79CA79888059D9 /* ApprovalRelay.swift */; };
+ 2405F4EC8C89EE56F612BE2B /* CryptoViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = B59DD402B4D54D4A7DD36AB2 /* CryptoViews.swift */; };
244EC9B77D1903C8DD505D04 /* MochiLiveActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADA6A002ABEC0CC57667FBE0 /* MochiLiveActivity.swift */; };
2540E4198492CC2B9237ED99 /* SpotifyController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A9E6EB7C8468A8339CF6A5C /* SpotifyController.swift */; };
25F66E99460D62478899A292 /* MochiWardrobe.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79A7807ADD0963FF260D1FAD /* MochiWardrobe.swift */; };
@@ -70,22 +66,19 @@
2875610F701376BD65573386 /* WindowContextCapture.swift in Sources */ = {isa = PBXBuildFile; fileRef = E91B733ADC638E14E9BB6EFA /* WindowContextCapture.swift */; };
295F8FE5A9E2E8F1A6389DEE /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B53E4CAD2BCC77B280689B0F /* HomeView.swift */; };
2A30FA2F046492E22A1C5719 /* ServiceDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65F64746B2740D5FE26B7E5A /* ServiceDetail.swift */; };
+ 2A57CCE7D6813E6340C036BE /* MailViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 23F907A5CC3CC05876548E96 /* MailViews.swift */; };
2C798C3837A63B9BB561A1A0 /* HookServer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79D8DD79C3DD9BBC584B3CB2 /* HookServer.swift */; };
2CC2E3B688B15BBEB3AE3BCE /* WindowContextCapture.swift in Sources */ = {isa = PBXBuildFile; fileRef = E91B733ADC638E14E9BB6EFA /* WindowContextCapture.swift */; };
2DEB459FBD0BA3CEAAA5FDE9 /* ClaudeService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A83D5410BD030B243ADDCFF4 /* ClaudeService.swift */; };
2F36E3C6C073E968A682AFA4 /* NotionPoller.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE03E03D1804B0B92C5C2DAD /* NotionPoller.swift */; };
326971DDA23F331116E5A628 /* VoiceBrain.swift in Sources */ = {isa = PBXBuildFile; fileRef = C563E55884A7750B40EC9A01 /* VoiceBrain.swift */; };
3451DB0668FAEEF09503D808 /* WakePhrase.swift in Sources */ = {isa = PBXBuildFile; fileRef = A12EC8F605BBC37F8223D7AA /* WakePhrase.swift */; };
+ 352CD4E146AE486013366EC9 /* VoiceQuery.swift in Sources */ = {isa = PBXBuildFile; fileRef = 654AF6918593586EFF1989C6 /* VoiceQuery.swift */; };
36EBFB9A047DEBAC43E5D0CC /* VoiceCaptionManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A8FB03801C49690C3789EFD /* VoiceCaptionManager.swift */; };
- 6D21DDD51A255B1E3061D81F /* ElevenLabsTTS.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE24076E9F3476A814C87964 /* ElevenLabsTTS.swift */; };
- 34B22D329FA5D24C00A6EF91 /* ElevenLabsTTS.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE24076E9F3476A814C87964 /* ElevenLabsTTS.swift */; };
- D08B378612B4CB0C8811925B /* VoiceDataSources.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2C300BDBDD5FB8403291892 /* VoiceDataSources.swift */; };
- A51E53A7BF9F23535F3A8B15 /* VoiceDataSources.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2C300BDBDD5FB8403291892 /* VoiceDataSources.swift */; };
- 968932802E8017E2C23FF473 /* VoiceQuery.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62762B5BCD2B2209EAF89A7A /* VoiceQuery.swift */; };
- EEDE0A39D216069D77F097C8 /* VoiceQuery.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62762B5BCD2B2209EAF89A7A /* VoiceQuery.swift */; };
3756B7E1A55D9CEC8C4D34A4 /* IslandStateMachine.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8212018F09EA1E96FBD63CD /* IslandStateMachine.swift */; };
38EEB2D3A6EC538958D92575 /* GitHubPulse.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8D3AD61802A32C4833F3EDA /* GitHubPulse.swift */; };
390486F7CDC01C1BCDBB27F9 /* VoiceActionRunner.swift in Sources */ = {isa = PBXBuildFile; fileRef = A2737EC4885ADB8FDDA1C610 /* VoiceActionRunner.swift */; };
+ 3C8CBC6F9B6B3AEC1AD6647C /* CryptoViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = B59DD402B4D54D4A7DD36AB2 /* CryptoViews.swift */; };
3CF69605BB03E567C2DB0935 /* MacDictation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6544ED02D945CF9F00647AD1 /* MacDictation.swift */; };
3E84EA0AE7C450941ED943CF /* NowPlayingViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = F56C7E1EBC74664A7F1689CF /* NowPlayingViews.swift */; };
40473EEC3029D466B2769672 /* AppleStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 681E15F99FCF1E60C2553004 /* AppleStyle.swift */; };
@@ -94,8 +87,10 @@
41966EEF7599793AD70DFCEA /* DiffEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = B32FB972D02162720E566674 /* DiffEngine.swift */; };
422C116E73D2D9A96DAE104D /* MochiLive.swift in Sources */ = {isa = PBXBuildFile; fileRef = 265262A422C270C1798F4A80 /* MochiLive.swift */; };
440AAF9FA27CC3DF7CC9EF51 /* MochiStill.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045E7300878138F0AC385920 /* MochiStill.swift */; };
+ 44C7DD4E6F3527820DE1E4EA /* PortfolioSettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0793C2DA3333A385E075A04E /* PortfolioSettingsView.swift */; };
4755AAC633DCE5DAA6D54A3C /* ServiceDetailRunner.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6AAC67875F84A862BC2A9AF /* ServiceDetailRunner.swift */; };
4778852A12726803BCF8B357 /* SessionDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A27178AA6007F7B56901750 /* SessionDetailView.swift */; };
+ 48FA5A0DE13526F6C2A6B836 /* MailController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F2F18663F42A246DACCD639 /* MailController.swift */; };
4976F8BF814D6F817370F1D8 /* ChatMarkdownView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFE88A53AEAA637F866D479D /* ChatMarkdownView.swift */; };
4A32FB2EA69E8BA70EBEA8A7 /* ServiceLiveDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = 21B710512DB99390EC564487 /* ServiceLiveDetail.swift */; };
4B6AC00F22EC75E90E0157D5 /* AppLog.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F6D7015D6A77AA59323C0E7 /* AppLog.swift */; };
@@ -111,6 +106,7 @@
52F0DF1FBCB522951910390E /* InstructionRunner.swift in Sources */ = {isa = PBXBuildFile; fileRef = FADC1FE5696B1075932D0B7C /* InstructionRunner.swift */; };
530443F46F896F037A56F663 /* HotKeyCenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1218B86E249691AF44F819AC /* HotKeyCenter.swift */; };
535EC818E1DAF0FA588545D8 /* QuestionPayload.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C6993B34A0FFF8E3D454ADC /* QuestionPayload.swift */; };
+ 541AF30CF808CC0FC1B8D97D /* ElevenLabsTTS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 046F9CD91704C34AE5BE9393 /* ElevenLabsTTS.swift */; };
56BE8C733F10A030A638FB60 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C1A7D5CBE2AC084A10C5FF3 /* SettingsView.swift */; };
59FABCC0B6794FE95319825C /* CoucouNotificationContent.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = D6DF93125491729E14636AD8 /* CoucouNotificationContent.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
5B9A00AFB0837731FA678E4E /* IslandStateMachine.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8212018F09EA1E96FBD63CD /* IslandStateMachine.swift */; };
@@ -131,18 +127,13 @@
65CB53E20B2289CA3AC3E8FE /* TurnSnapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A1C4152EBDBD7C24CABFFD7 /* TurnSnapshot.swift */; };
6613EB914852E6EEB1FF37BF /* IntentParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = F39753CFF90B494D449CCD95 /* IntentParser.swift */; };
6726F74966EDE7F82BFE89B2 /* TerminalTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87AF6F7A027AB1D46309DD49 /* TerminalTarget.swift */; };
- A42BEDAC04B72921BF113A2C /* CryptoViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 036DE9440154C95E2B90C1EA /* CryptoViews.swift */; };
- BA41CE5D1739D3024B4F3214 /* CryptoController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 033D87BF740911193C67D94D /* CryptoController.swift */; };
- F6D1C30750D5232B70F678C1 /* MailViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCFDE7CC2BD8BCA9A6C9DF45 /* MailViews.swift */; };
- 2B2706A9D900EE525E470A6F /* MailController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB502629F8A6EE9E8A647B2E /* MailController.swift */; };
- 3E808AC02E35ABF5801BEBEC /* ApprovalQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5077E908D307285474CA87C /* ApprovalQueue.swift */; };
- 11363898DA837388E2823E7F /* PillSessionRegistry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 30A2AD5885FA3226E0337D67 /* PillSessionRegistry.swift */; };
68A950E3C23FD612639D9776 /* IslandViewContent.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA02B08886939FF6FE0475DD /* IslandViewContent.swift */; };
68C3ACC708B69035FD0CB8C4 /* TurnSnapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A1C4152EBDBD7C24CABFFD7 /* TurnSnapshot.swift */; };
694AB4504CD65662E1681E5C /* ServicePublisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F0C229BD085D76EB3DD94DF /* ServicePublisher.swift */; };
6A1AC92C431FA842928E8115 /* NotificationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDB831F5623E699A2506698E /* NotificationViewController.swift */; };
6B4A9D635FD529CE1C2692B8 /* ColorHex.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8ACB4350729C6513824D1ADF /* ColorHex.swift */; };
6BB32D6B5E627555994DC3CB /* SpotterGeneration.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4EF48A44D82B5422E631FE0 /* SpotterGeneration.swift */; };
+ 6BE6AA73FC83A588F21D9747 /* VoiceGenderNames.swift in Sources */ = {isa = PBXBuildFile; fileRef = 065B61C0809F2E3A461E9466 /* VoiceGenderNames.swift */; };
6CCEC73ED68E9F253C22D692 /* ShortcutLogic.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA51E5B140C20812641168EA /* ShortcutLogic.swift */; };
6D158183870434FEDF07E050 /* LocalChat.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8790ACE9F73BD74640A0F20C /* LocalChat.swift */; };
6D71A1FA10C766E465F326D4 /* BotEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66E6F5FC81429871B6F766A8 /* BotEngine.swift */; };
@@ -150,8 +141,6 @@
6FC65C190ED614C664C9BC17 /* SafeWebURL.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2FDED98F7F6C755A72C97A3 /* SafeWebURL.swift */; };
714B5BB7FFB0C8491AF67AD1 /* VoiceTranscriptHistory.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE925A6844FE3E3C09131CE0 /* VoiceTranscriptHistory.swift */; };
718410ED630AE3AC5DF59A95 /* VoiceSpeaker.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD11C7925B0A7831BFC2199C /* VoiceSpeaker.swift */; };
- 50C33F44687D70690514FBBB /* ClaudeVoiceBrain.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADBD590972D9536A1DA7B6EF /* ClaudeVoiceBrain.swift */; };
- 9BAD96406059597681D89A92 /* VoiceGenderNames.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16BF6539981E9EEF2397D061 /* VoiceGenderNames.swift */; };
71CBD1D39A6668BF454CA1C5 /* IslandTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0365DDE3C554F5E8570055F4 /* IslandTypes.swift */; };
724E602A05FE5A6D58218E27 /* CoucouControl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C406C508A86E215B3CBE3FC /* CoucouControl.swift */; };
725365FA4E184D970E7BB8B4 /* MochiOutfitDrawing.swift in Sources */ = {isa = PBXBuildFile; fileRef = E84E5D91129352E8A1D32AA4 /* MochiOutfitDrawing.swift */; };
@@ -163,6 +152,7 @@
78B3C6814431B2DD9D1F4949 /* SoundEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1BE21C2B315D37AA70ED45E9 /* SoundEngine.swift */; };
78F045A55E6F4EEA5787EEEF /* MochiStill.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045E7300878138F0AC385920 /* MochiStill.swift */; };
78FCEDC8F78B683AB10E6529 /* NotionPoller.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE03E03D1804B0B92C5C2DAD /* NotionPoller.swift */; };
+ 79BD23BDFE42A929764635E7 /* MailController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F2F18663F42A246DACCD639 /* MailController.swift */; };
7A449E237CAAB62758508C7C /* RecapStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78FB882D49084DEA6A10DB4D /* RecapStore.swift */; };
7AEED9FBB924F0DD1D07E1A5 /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = B2AA83D80260660475FAB052 /* Localizable.xcstrings */; };
7C75CCB3DC0116D8D3B12313 /* AskQuestion.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBB84A66045EB20CAC93A8A6 /* AskQuestion.swift */; };
@@ -180,14 +170,17 @@
868E3EB4A275AA2394EA20BF /* CoucouWidgets.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 5C3E2269A202B640E7F3B5E0 /* CoucouWidgets.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
875FB3F71BD34B53B0524063 /* CoucouWidgets.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6723392BE01AF210E484316 /* CoucouWidgets.swift */; };
878924960FC0F2B3524D48AC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 192844E7299DEED5C2372067 /* AppDelegate.swift */; };
+ 884AEF9BAB1C54809C573BB4 /* PortfolioSettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0793C2DA3333A385E075A04E /* PortfolioSettingsView.swift */; };
8881BC510155DEC038F3B552 /* ServiceSnapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84ECC59BE7CDDEE348FC7096 /* ServiceSnapshot.swift */; };
88A88E8704759E7F1F9D52BA /* ClaudeHost.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F0D0F67E7C56B9E37E7648 /* ClaudeHost.swift */; };
88A8F2E4E754FAFABF6B1960 /* VoiceAudio.swift in Sources */ = {isa = PBXBuildFile; fileRef = A87F39805C78722F614295B4 /* VoiceAudio.swift */; };
88C3F0A4F3AE29DBED8710A0 /* ClaudeSettingsFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B238F6E7B20EFDED5CD3E8E /* ClaudeSettingsFile.swift */; };
88F268E408FBBA2702B90E6C /* PillColors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37564F5F041B38C976DF3DEF /* PillColors.swift */; };
+ 89BC677F3ACB387A475FFFED /* ClaudeVoiceBrain.swift in Sources */ = {isa = PBXBuildFile; fileRef = EFE8C8C843B4B30C547FF64A /* ClaudeVoiceBrain.swift */; };
8A6B3688D6B3BF728D106D8B /* UserIdentity.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4A13AEE6E06F46CEC9D908C /* UserIdentity.swift */; };
8AC19BAF88822CB31519D447 /* CoucouIntents.swift in Sources */ = {isa = PBXBuildFile; fileRef = 708E1FD9894461B4AD727DB1 /* CoucouIntents.swift */; };
8C32A0C3EAF536D3836F61D5 /* GreetingCanvasView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C581F7B1A9F14B281B60063E /* GreetingCanvasView.swift */; };
+ 8C5CF7C82640DD6A0685A0D5 /* ApprovalQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1BAE224C1C435C9FFD05BF65 /* ApprovalQueue.swift */; };
8C785917FD0740DAE56420A4 /* ServiceSnapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84ECC59BE7CDDEE348FC7096 /* ServiceSnapshot.swift */; };
8C9AF392DAE8F2098A7BE7B6 /* ServiceDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65F64746B2740D5FE26B7E5A /* ServiceDetail.swift */; };
8D1C01F283FA7806119A1C85 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C1A7D5CBE2AC084A10C5FF3 /* SettingsView.swift */; };
@@ -209,6 +202,7 @@
967B525F7D3837F31D740D18 /* ResendPoller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FDDE03F5F711146937E2 /* ResendPoller.swift */; };
9728564FCBF0334E68E9E6E7 /* SessionPublisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 824E56D2255CA86DAC350DBF /* SessionPublisher.swift */; };
992C904D46CB503D947C0940 /* PillColors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37564F5F041B38C976DF3DEF /* PillColors.swift */; };
+ 995B59B7DE9B0537F240047A /* PillSessionRegistry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9EF1D0C0784ED873065DD8C0 /* PillSessionRegistry.swift */; };
99A1CF41C797EA7F98F2B5B1 /* MochiActivityState.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE18399D1CD69468CCF57966 /* MochiActivityState.swift */; };
9A04B16AEEAB1A344D13CE74 /* InstructionComposer.swift in Sources */ = {isa = PBXBuildFile; fileRef = E18E74B3586BC0861C69E70A /* InstructionComposer.swift */; };
9AD370335A3ECC9C82375F93 /* CodexPlanGauge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73FA4DF1BE5246CCFFB72E5C /* CodexPlanGauge.swift */; };
@@ -217,6 +211,7 @@
9BCD79FD8CF211DC8FBD2971 /* SearchAndSpotlight.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE60A834934474CDAE022FF8 /* SearchAndSpotlight.swift */; };
9C11C226915DBC97B5CD7953 /* VoiceIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = D1A7C62058BB0C9D0DF58DCB /* VoiceIntent.swift */; };
9C653B8291EFFA414565E8A8 /* MusicController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F142FB3952B5F0639383047 /* MusicController.swift */; };
+ 9DA7881484E39458D9D157D3 /* PortfolioController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0364C7995680F9FA9F85F905 /* PortfolioController.swift */; };
9DD56C95ECABDDCE23652D50 /* HookServer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79D8DD79C3DD9BBC584B3CB2 /* HookServer.swift */; };
9E34044A001B01C3A514D20A /* IslandDisplayChoice.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A09E73F1E58019EF6EA2A62 /* IslandDisplayChoice.swift */; };
9EA178EA395B116336C1FA10 /* TerminalTarget+AppKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 244A7909EEDA4BFF4C2EA9B5 /* TerminalTarget+AppKit.swift */; };
@@ -232,12 +227,14 @@
AD94156F1F9CFF62B35202FB /* ApprovalRelay.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD426E81DF79CA79888059D9 /* ApprovalRelay.swift */; };
ADB4EF797FBD6CC90F8D25D3 /* MochiActivityAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 323F242B14A61A7C071EC115 /* MochiActivityAttributes.swift */; };
ADBB9C15DDA4044625B325BE /* MochiOutfitDrawing.swift in Sources */ = {isa = PBXBuildFile; fileRef = E84E5D91129352E8A1D32AA4 /* MochiOutfitDrawing.swift */; };
+ AFCA04C905C4E92BC480E4A2 /* VoiceQuery.swift in Sources */ = {isa = PBXBuildFile; fileRef = 654AF6918593586EFF1989C6 /* VoiceQuery.swift */; };
B09E884B33A35FA34543C64B /* IntentParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = F39753CFF90B494D449CCD95 /* IntentParser.swift */; };
B0CE5AC8B579866A14BD61D0 /* DemoEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEF5BD66B00BB64BB80AF38C /* DemoEngine.swift */; };
B2584220B877056366C8DCAE /* MochiWardrobe.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79A7807ADD0963FF260D1FAD /* MochiWardrobe.swift */; };
B2D86BE268D6F4C86BD0C446 /* ChatMarkdown.swift in Sources */ = {isa = PBXBuildFile; fileRef = D797CC384B5BC70D34F121BC /* ChatMarkdown.swift */; };
B314F09AD7924387D0E04B45 /* BotEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66E6F5FC81429871B6F766A8 /* BotEngine.swift */; };
B3EC9CF3C8BD629C3530E8F1 /* sounds in Resources */ = {isa = PBXBuildFile; fileRef = C066E2B991AA4F56B2724263 /* sounds */; };
+ B43ED72DC305F4A70A391094 /* PillSessionRegistry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9EF1D0C0784ED873065DD8C0 /* PillSessionRegistry.swift */; };
B4F12F8F978FCA7E5309DE28 /* EnergyVAD.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0E2C3ACD815230A0ECAB014 /* EnergyVAD.swift */; };
B5206E9D10AD77C0C24463AB /* WakeSpotter.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC1DE3225F5239394398E6B6 /* WakeSpotter.swift */; };
B555DFF3451AFB22CAF8E594 /* SpotterGeneration.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4EF48A44D82B5422E631FE0 /* SpotterGeneration.swift */; };
@@ -247,6 +244,7 @@
B733A76DD197F6D6D949284C /* HotKeyCenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1218B86E249691AF44F819AC /* HotKeyCenter.swift */; };
B7C93262AA9D5DEAA0B79C7C /* MacStubs.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B66D0C664FB9FF74517AAF5 /* MacStubs.swift */; };
B7ED198C941104866BB3BC57 /* Haptics.swift in Sources */ = {isa = PBXBuildFile; fileRef = F86B99CF65C5E4BC887888C6 /* Haptics.swift */; };
+ B9560210C8B8140D6522B8F7 /* VoiceGenderNames.swift in Sources */ = {isa = PBXBuildFile; fileRef = 065B61C0809F2E3A461E9466 /* VoiceGenderNames.swift */; };
BA65FC4A40F7227837C26214 /* DesktopMochiLogic.swift in Sources */ = {isa = PBXBuildFile; fileRef = C086E1932F86B9C2B559BE03 /* DesktopMochiLogic.swift */; };
BBCA973A1AE1385BBE79A834 /* VoiceWakeFilter.swift in Sources */ = {isa = PBXBuildFile; fileRef = ABD7A2C29B15EFFAF67FF2DE /* VoiceWakeFilter.swift */; };
BC6819C32C715E203254B9C6 /* TurnShare.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29E156CF1C215B8FE713B3A0 /* TurnShare.swift */; };
@@ -266,7 +264,9 @@
C5549C2D60998E297A7DC593 /* TurnSnapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A1C4152EBDBD7C24CABFFD7 /* TurnSnapshot.swift */; };
C5737FE7AE6B2BA92B9A8F72 /* ServiceDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65F64746B2740D5FE26B7E5A /* ServiceDetail.swift */; };
C61DDE2EC5FDDB39E4AA3B34 /* IslandWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D710BD7834228045869D0184 /* IslandWindowController.swift */; };
+ C61E45A1B325BEFBE854AB53 /* PortfolioViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A9F0D1E310731155BCB3D89 /* PortfolioViews.swift */; };
C67B690DFC0A294C0E65FCBB /* IslandScreenGeometry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9466FDE02C9B3FB4EF01DFF8 /* IslandScreenGeometry.swift */; };
+ C6EB0156909305CEF8B84A8D /* VoiceDataSources.swift in Sources */ = {isa = PBXBuildFile; fileRef = F289B4DB7C57BC593C2E7B7F /* VoiceDataSources.swift */; };
C808B654C84D9F71DBF8493A /* GithubPoller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB8B6E5E9DA6164F979E88F /* GithubPoller.swift */; };
C93BA975D35B8CD7473CF995 /* DesktopMochiLogic.swift in Sources */ = {isa = PBXBuildFile; fileRef = C086E1932F86B9C2B559BE03 /* DesktopMochiLogic.swift */; };
C940B651C6CA952D99388E04 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 192844E7299DEED5C2372067 /* AppDelegate.swift */; };
@@ -287,14 +287,19 @@
D34D31C27D97D23C0441D1BE /* MochiActivityState.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE18399D1CD69468CCF57966 /* MochiActivityState.swift */; };
D45D9C8EAF67FC2F46E9F352 /* CloudProbe.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28323DC20034A281F6829884 /* CloudProbe.swift */; };
D6559770BBFB06FD4E90187B /* OpenLeadMochiIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = D1D96E57E8DADE6B82628E3E /* OpenLeadMochiIntent.swift */; };
+ D69E561062D9358837380ABD /* CryptoController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73DF398C822D98F541B62F89 /* CryptoController.swift */; };
+ D7FD1948C7F97D6A2904CDBE /* ElevenLabsTTS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 046F9CD91704C34AE5BE9393 /* ElevenLabsTTS.swift */; };
D861479F6E7EAD07A6AC2105 /* ClaudePlanGauge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BF22817EC70748F2D1FB2E7 /* ClaudePlanGauge.swift */; };
D9EEB1079ACBCEEF74439C44 /* ClaudeSettingsFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B238F6E7B20EFDED5CD3E8E /* ClaudeSettingsFile.swift */; };
D9FF132804EB458F6FA69116 /* GitHubActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 168A9A73B519018FAB0AA465 /* GitHubActivity.swift */; };
+ DA813AE042EEFD29AD06802A /* PortfolioController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0364C7995680F9FA9F85F905 /* PortfolioController.swift */; };
DBA38F8F673F436CE1D4A2E0 /* MochiActivityAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 323F242B14A61A7C071EC115 /* MochiActivityAttributes.swift */; };
DCAC390FF9EC65B945A15B24 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 506824380E9C80B9BC6DCE72 /* Assets.xcassets */; };
DD2EEF113DB5EAA35CD88312 /* MochiOutfitDrawing.swift in Sources */ = {isa = PBXBuildFile; fileRef = E84E5D91129352E8A1D32AA4 /* MochiOutfitDrawing.swift */; };
+ DD89FAA8EE64C5FCBBFD9960 /* PortfolioViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A9F0D1E310731155BCB3D89 /* PortfolioViews.swift */; };
DE05D09A32117582AC93A24A /* NotchBuddyApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1BD8F3CAA60CF37640759E1 /* NotchBuddyApp.swift */; };
DE66BB6D18F467A7F4220CC3 /* SessionPublisher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 824E56D2255CA86DAC350DBF /* SessionPublisher.swift */; };
+ DEDE942C3CD3F30B492BEEF5 /* CryptoController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73DF398C822D98F541B62F89 /* CryptoController.swift */; };
E1581F8F2725B26E90D91C4A /* IntroView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B2EED5205DD7161E51BE1E1 /* IntroView.swift */; };
E2414533EDC7565286141198 /* SpotifyController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A9E6EB7C8468A8339CF6A5C /* SpotifyController.swift */; };
E4B9986674F4D425826F15A8 /* StripePoller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2EF78999D68D56ADE4CEFBE2 /* StripePoller.swift */; };
@@ -303,6 +308,7 @@
E776C7D1DE5C62EA8D4BA3E3 /* FileDropView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3232F258523DD8D09B670363 /* FileDropView.swift */; };
E81575CE4433C6F88E424A8F /* LocalChat.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8790ACE9F73BD74640A0F20C /* LocalChat.swift */; };
E82CA1269BF4859EEDE322AE /* MochiStill.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045E7300878138F0AC385920 /* MochiStill.swift */; };
+ E9C18F039035C78173C306C7 /* MailViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 23F907A5CC3CC05876548E96 /* MailViews.swift */; };
E9C21D11BCB72C392436D19E /* ClaudePlanGauge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BF22817EC70748F2D1FB2E7 /* ClaudePlanGauge.swift */; };
EB1D9680D3DB0F0707D4A043 /* CodexPlanGauge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73FA4DF1BE5246CCFFB72E5C /* CodexPlanGauge.swift */; };
EB23ED9F1C12EA8B54A76A91 /* ResendPoller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FDDE03F5F711146937E2 /* ResendPoller.swift */; };
@@ -312,9 +318,11 @@
ED5D9A334DE08C0EB81DE322 /* AskQuestion.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBB84A66045EB20CAC93A8A6 /* AskQuestion.swift */; };
ED62D1B9E6A35B1F85074A2A /* SharedSessions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1064AD8471C51AFF4F12258 /* SharedSessions.swift */; };
EE3AB10544113500486A9684 /* ColorHex.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8ACB4350729C6513824D1ADF /* ColorHex.swift */; };
+ EF5562030A7BA718EFA63278 /* VoiceDataSources.swift in Sources */ = {isa = PBXBuildFile; fileRef = F289B4DB7C57BC593C2E7B7F /* VoiceDataSources.swift */; };
EF9E6418C3F39F6FE88FD812 /* CoucouPhoneApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D9CEB5655FCA197D6B10A91 /* CoucouPhoneApp.swift */; };
EFAA9936D5C9DE635CFBA2AB /* SharedSessions.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1064AD8471C51AFF4F12258 /* SharedSessions.swift */; };
F06EE0A97CB77096A337AA8B /* sounds in Resources */ = {isa = PBXBuildFile; fileRef = C066E2B991AA4F56B2724263 /* sounds */; };
+ F0B7062107F8A91394707706 /* ClaudeVoiceBrain.swift in Sources */ = {isa = PBXBuildFile; fileRef = EFE8C8C843B4B30C547FF64A /* ClaudeVoiceBrain.swift */; };
F157D7A9BF878DB2B286B1F7 /* DemoEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEF5BD66B00BB64BB80AF38C /* DemoEngine.swift */; };
F1EE04000665E204E02DC5AC /* DenyApprovalIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = D849B1A27AD17AEE1C7FFD1A /* DenyApprovalIntent.swift */; };
F25EB7EF3662AFF99AA1C8A1 /* TeamConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8C1BB0DF7770A6B263995E6 /* TeamConfiguration.swift */; };
@@ -323,8 +331,6 @@
F6CA56F362902839EF9A3E2E /* PhoneAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 60401D1023D17C3FD30D7113 /* PhoneAssets.xcassets */; };
F6D57EEBD7E937EFD2B715CF /* ClaudeHost.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F0D0F67E7C56B9E37E7648 /* ClaudeHost.swift */; };
F7162101509D8CAE59711602 /* VoiceSpeaker.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD11C7925B0A7831BFC2199C /* VoiceSpeaker.swift */; };
- 70F221444F3D0B11EEA0E758 /* ClaudeVoiceBrain.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADBD590972D9536A1DA7B6EF /* ClaudeVoiceBrain.swift */; };
- D166CDFE3CBAF1310E7EC1F7 /* VoiceGenderNames.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16BF6539981E9EEF2397D061 /* VoiceGenderNames.swift */; };
F8F95EAD88F70E0A147D1662 /* MacDictation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6544ED02D945CF9F00647AD1 /* MacDictation.swift */; };
F9445A71BBF9E4D20224238E /* QuestionPayload.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C6993B34A0FFF8E3D454ADC /* QuestionPayload.swift */; };
F9685A58729FE64B23FCCFC5 /* VoiceResultView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C432FE1286945E42D3E11D7 /* VoiceResultView.swift */; };
@@ -370,8 +376,12 @@
/* Begin PBXFileReference section */
011D05714C97CF5CAB32DCE7 /* AgentNotifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AgentNotifier.swift; sourceTree = "<group>"; };
+ 0364C7995680F9FA9F85F905 /* PortfolioController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PortfolioController.swift; sourceTree = "<group>"; };
0365DDE3C554F5E8570055F4 /* IslandTypes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IslandTypes.swift; sourceTree = "<group>"; };
045E7300878138F0AC385920 /* MochiStill.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MochiStill.swift; sourceTree = "<group>"; };
+ 046F9CD91704C34AE5BE9393 /* ElevenLabsTTS.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ElevenLabsTTS.swift; sourceTree = "<group>"; };
+ 065B61C0809F2E3A461E9466 /* VoiceGenderNames.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceGenderNames.swift; sourceTree = "<group>"; };
+ 0793C2DA3333A385E075A04E /* PortfolioSettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PortfolioSettingsView.swift; sourceTree = "<group>"; };
08128342A3F894D567AD9E6B /* ServiceViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServiceViews.swift; sourceTree = "<group>"; };
097F57179CC066459E64303A /* AboutView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AboutView.swift; sourceTree = "<group>"; };
0D9CEB5655FCA197D6B10A91 /* CoucouPhoneApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoucouPhoneApp.swift; sourceTree = "<group>"; };
@@ -385,10 +395,12 @@
168A9A73B519018FAB0AA465 /* GitHubActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GitHubActivity.swift; sourceTree = "<group>"; };
192844E7299DEED5C2372067 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
1B2EED5205DD7161E51BE1E1 /* IntroView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntroView.swift; sourceTree = "<group>"; };
+ 1BAE224C1C435C9FFD05BF65 /* ApprovalQueue.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApprovalQueue.swift; sourceTree = "<group>"; };
1BE21C2B315D37AA70ED45E9 /* SoundEngine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SoundEngine.swift; sourceTree = "<group>"; };
1EA7D927F6BB2667D37AA963 /* ClaudeHookDetection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClaudeHookDetection.swift; sourceTree = "<group>"; };
21B710512DB99390EC564487 /* ServiceLiveDetail.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServiceLiveDetail.swift; sourceTree = "<group>"; };
22E03C8E267399FA25C75877 /* VoiceIslandView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceIslandView.swift; sourceTree = "<group>"; };
+ 23F907A5CC3CC05876548E96 /* MailViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MailViews.swift; sourceTree = "<group>"; };
244A7909EEDA4BFF4C2EA9B5 /* TerminalTarget+AppKit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "TerminalTarget+AppKit.swift"; sourceTree = "<group>"; };
265262A422C270C1798F4A80 /* MochiLive.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MochiLive.swift; sourceTree = "<group>"; };
28323DC20034A281F6829884 /* CloudProbe.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CloudProbe.swift; sourceTree = "<group>"; };
@@ -405,9 +417,6 @@
38BEAB5F20A13E5806A42EC9 /* ApprovalCard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApprovalCard.swift; sourceTree = "<group>"; };
3A27178AA6007F7B56901750 /* SessionDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionDetailView.swift; sourceTree = "<group>"; };
3A8FB03801C49690C3789EFD /* VoiceCaptionManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceCaptionManager.swift; sourceTree = "<group>"; };
- DE24076E9F3476A814C87964 /* ElevenLabsTTS.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ElevenLabsTTS.swift; sourceTree = "<group>"; };
- F2C300BDBDD5FB8403291892 /* VoiceDataSources.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceDataSources.swift; sourceTree = "<group>"; };
- 62762B5BCD2B2209EAF89A7A /* VoiceQuery.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceQuery.swift; sourceTree = "<group>"; };
3B238F6E7B20EFDED5CD3E8E /* ClaudeSettingsFile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClaudeSettingsFile.swift; sourceTree = "<group>"; };
444604C7E2C530B664849EF9 /* ClaudeResponseText.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClaudeResponseText.swift; sourceTree = "<group>"; };
49E39852175E81C9632A59C9 /* KitPreviewView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KitPreviewView.swift; sourceTree = "<group>"; };
@@ -423,18 +432,21 @@
61B5FDDE03F5F711146937E2 /* ResendPoller.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResendPoller.swift; sourceTree = "<group>"; };
62CF42AE7611EF212CA0458F /* ShortcutsSettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShortcutsSettingsView.swift; sourceTree = "<group>"; };
6544ED02D945CF9F00647AD1 /* MacDictation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MacDictation.swift; sourceTree = "<group>"; };
+ 654AF6918593586EFF1989C6 /* VoiceQuery.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceQuery.swift; sourceTree = "<group>"; };
65F64746B2740D5FE26B7E5A /* ServiceDetail.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServiceDetail.swift; sourceTree = "<group>"; };
66E6F5FC81429871B6F766A8 /* BotEngine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BotEngine.swift; sourceTree = "<group>"; };
6762C38A8952A90F394EDFE4 /* LinkTestView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LinkTestView.swift; sourceTree = "<group>"; };
681E15F99FCF1E60C2553004 /* AppleStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppleStyle.swift; sourceTree = "<group>"; };
68C3405BCC9BF5F378094BFB /* WakeWindowBackoff.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WakeWindowBackoff.swift; sourceTree = "<group>"; };
6A9E6EB7C8468A8339CF6A5C /* SpotifyController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpotifyController.swift; sourceTree = "<group>"; };
+ 6A9F0D1E310731155BCB3D89 /* PortfolioViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PortfolioViews.swift; sourceTree = "<group>"; };
6C6993B34A0FFF8E3D454ADC /* QuestionPayload.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuestionPayload.swift; sourceTree = "<group>"; };
6E5F9E4BB282FDE68D65FE6B /* TurnArchive.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TurnArchive.swift; sourceTree = "<group>"; };
6F0C229BD085D76EB3DD94DF /* ServicePublisher.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServicePublisher.swift; sourceTree = "<group>"; };
6FD65943C32E150F1CD65C31 /* UploadSequenceEngine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UploadSequenceEngine.swift; sourceTree = "<group>"; };
708E1FD9894461B4AD727DB1 /* CoucouIntents.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoucouIntents.swift; sourceTree = "<group>"; };
71718D1B87A39A4879DD2A9D /* VercelPoller.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VercelPoller.swift; sourceTree = "<group>"; };
+ 73DF398C822D98F541B62F89 /* CryptoController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CryptoController.swift; sourceTree = "<group>"; };
73FA4DF1BE5246CCFFB72E5C /* CodexPlanGauge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CodexPlanGauge.swift; sourceTree = "<group>"; };
787D306C2399FBAE8BBB86ED /* TurnEndPolicy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TurnEndPolicy.swift; sourceTree = "<group>"; };
78FB882D49084DEA6A10DB4D /* RecapStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecapStore.swift; sourceTree = "<group>"; };
@@ -448,21 +460,17 @@
871CA2BADC67D97C97C7009D /* error.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = error.wav; sourceTree = "<group>"; };
8790ACE9F73BD74640A0F20C /* LocalChat.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocalChat.swift; sourceTree = "<group>"; };
87AF6F7A027AB1D46309DD49 /* TerminalTarget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TerminalTarget.swift; sourceTree = "<group>"; };
- 036DE9440154C95E2B90C1EA /* CryptoViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CryptoViews.swift; sourceTree = "<group>"; };
- 033D87BF740911193C67D94D /* CryptoController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CryptoController.swift; sourceTree = "<group>"; };
- DCFDE7CC2BD8BCA9A6C9DF45 /* MailViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MailViews.swift; sourceTree = "<group>"; };
- AB502629F8A6EE9E8A647B2E /* MailController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MailController.swift; sourceTree = "<group>"; };
- E5077E908D307285474CA87C /* ApprovalQueue.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApprovalQueue.swift; sourceTree = "<group>"; };
- 30A2AD5885FA3226E0337D67 /* PillSessionRegistry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PillSessionRegistry.swift; sourceTree = "<group>"; };
888B3E1420BCB6292BDC8117 /* WeeklyRecapView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WeeklyRecapView.swift; sourceTree = "<group>"; };
8ACB4350729C6513824D1ADF /* ColorHex.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorHex.swift; sourceTree = "<group>"; };
8BF22817EC70748F2D1FB2E7 /* ClaudePlanGauge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClaudePlanGauge.swift; sourceTree = "<group>"; };
8CB8B6E5E9DA6164F979E88F /* GithubPoller.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GithubPoller.swift; sourceTree = "<group>"; };
+ 8F2F18663F42A246DACCD639 /* MailController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MailController.swift; sourceTree = "<group>"; };
914A792788D403F836BEB570 /* SpotifyViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpotifyViews.swift; sourceTree = "<group>"; };
9466FDE02C9B3FB4EF01DFF8 /* IslandScreenGeometry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IslandScreenGeometry.swift; sourceTree = "<group>"; };
96C64C4C5D705CE486221B74 /* PillCatalog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PillCatalog.swift; sourceTree = "<group>"; };
9AF705275522F99CAE7E1429 /* ServiceStatus.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServiceStatus.swift; sourceTree = "<group>"; };
9B66D0C664FB9FF74517AAF5 /* MacStubs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MacStubs.swift; sourceTree = "<group>"; };
+ 9EF1D0C0784ED873065DD8C0 /* PillSessionRegistry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PillSessionRegistry.swift; sourceTree = "<group>"; };
9F6D7015D6A77AA59323C0E7 /* AppLog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppLog.swift; sourceTree = "<group>"; };
A12EC8F605BBC37F8223D7AA /* WakePhrase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WakePhrase.swift; sourceTree = "<group>"; };
A14A61070D293AB4BBA303F7 /* NotchBuddy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NotchBuddy.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -482,6 +490,7 @@
B328028D18F590D6680B8A2B /* VoiceEngine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceEngine.swift; sourceTree = "<group>"; };
B32FB972D02162720E566674 /* DiffEngine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DiffEngine.swift; sourceTree = "<group>"; };
B53E4CAD2BCC77B280689B0F /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = "<group>"; };
+ B59DD402B4D54D4A7DD36AB2 /* CryptoViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CryptoViews.swift; sourceTree = "<group>"; };
B6723392BE01AF210E484316 /* CoucouWidgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoucouWidgets.swift; sourceTree = "<group>"; };
B89DA1A0C21AE3535A1760BB /* N8nPoller.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = N8nPoller.swift; sourceTree = "<group>"; };
BC1DE3225F5239394398E6B6 /* WakeSpotter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WakeSpotter.swift; sourceTree = "<group>"; };
@@ -495,8 +504,6 @@
C563E55884A7750B40EC9A01 /* VoiceBrain.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceBrain.swift; sourceTree = "<group>"; };
C581F7B1A9F14B281B60063E /* GreetingCanvasView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GreetingCanvasView.swift; sourceTree = "<group>"; };
CD11C7925B0A7831BFC2199C /* VoiceSpeaker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceSpeaker.swift; sourceTree = "<group>"; };
- ADBD590972D9536A1DA7B6EF /* ClaudeVoiceBrain.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClaudeVoiceBrain.swift; sourceTree = "<group>"; };
- 16BF6539981E9EEF2397D061 /* VoiceGenderNames.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceGenderNames.swift; sourceTree = "<group>"; };
D0F0D0F67E7C56B9E37E7648 /* ClaudeHost.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClaudeHost.swift; sourceTree = "<group>"; };
D1A7C62058BB0C9D0DF58DCB /* VoiceIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceIntent.swift; sourceTree = "<group>"; };
D1D96E57E8DADE6B82628E3E /* OpenLeadMochiIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenLeadMochiIntent.swift; sourceTree = "<group>"; };
@@ -518,9 +525,11 @@
EBB84A66045EB20CAC93A8A6 /* AskQuestion.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AskQuestion.swift; sourceTree = "<group>"; };
EDC1DEBFCAEBE6F0EEB865F3 /* EntityResolver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EntityResolver.swift; sourceTree = "<group>"; };
EE60A834934474CDAE022FF8 /* SearchAndSpotlight.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchAndSpotlight.swift; sourceTree = "<group>"; };
+ EFE8C8C843B4B30C547FF64A /* ClaudeVoiceBrain.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClaudeVoiceBrain.swift; sourceTree = "<group>"; };
F0E2C3ACD815230A0ECAB014 /* EnergyVAD.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EnergyVAD.swift; sourceTree = "<group>"; };
F1064AD8471C51AFF4F12258 /* SharedSessions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SharedSessions.swift; sourceTree = "<group>"; };
F1BD8F3CAA60CF37640759E1 /* NotchBuddyApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotchBuddyApp.swift; sourceTree = "<group>"; };
+ F289B4DB7C57BC593C2E7B7F /* VoiceDataSources.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceDataSources.swift; sourceTree = "<group>"; };
F39753CFF90B494D449CCD95 /* IntentParser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntentParser.swift; sourceTree = "<group>"; };
F4263B550838CC5614569D13 /* ClaudePlanCardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClaudePlanCardView.swift; sourceTree = "<group>"; };
F4A13AEE6E06F46CEC9D908C /* UserIdentity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserIdentity.swift; sourceTree = "<group>"; };
@@ -550,6 +559,7 @@
children = (
192844E7299DEED5C2372067 /* AppDelegate.swift */,
9F6D7015D6A77AA59323C0E7 /* AppLog.swift */,
+ 1BAE224C1C435C9FFD05BF65 /* ApprovalQueue.swift */,
C2E4F18AA940EFF7E047B9F7 /* AppState.swift */,
EBB84A66045EB20CAC93A8A6 /* AskQuestion.swift */,
A29F4C0B02BE91654D02AA0C /* BotCanvasView.swift */,
@@ -564,6 +574,8 @@
A83D5410BD030B243ADDCFF4 /* ClaudeService.swift */,
3B238F6E7B20EFDED5CD3E8E /* ClaudeSettingsFile.swift */,
73FA4DF1BE5246CCFFB72E5C /* CodexPlanGauge.swift */,
+ 73DF398C822D98F541B62F89 /* CryptoController.swift */,
+ B59DD402B4D54D4A7DD36AB2 /* CryptoViews.swift */,
AEF5BD66B00BB64BB80AF38C /* DemoEngine.swift */,
B1DDC96E7967032F5D0BD585 /* DesktopMochi.swift */,
C086E1932F86B9C2B559BE03 /* DesktopMochiLogic.swift */,
@@ -581,11 +593,17 @@
D710BD7834228045869D0184 /* IslandWindowController.swift */,
8790ACE9F73BD74640A0F20C /* LocalChat.swift */,
6544ED02D945CF9F00647AD1 /* MacDictation.swift */,
+ 8F2F18663F42A246DACCD639 /* MailController.swift */,
+ 23F907A5CC3CC05876548E96 /* MailViews.swift */,
4F142FB3952B5F0639383047 /* MusicController.swift */,
B89DA1A0C21AE3535A1760BB /* N8nPoller.swift */,
F1BD8F3CAA60CF37640759E1 /* NotchBuddyApp.swift */,
BE03E03D1804B0B92C5C2DAD /* NotionPoller.swift */,
F56C7E1EBC74664A7F1689CF /* NowPlayingViews.swift */,
+ 9EF1D0C0784ED873065DD8C0 /* PillSessionRegistry.swift */,
+ 0364C7995680F9FA9F85F905 /* PortfolioController.swift */,
+ 0793C2DA3333A385E075A04E /* PortfolioSettingsView.swift */,
+ 6A9F0D1E310731155BCB3D89 /* PortfolioViews.swift */,
78FB882D49084DEA6A10DB4D /* RecapStore.swift */,
61B5FDDE03F5F711146937E2 /* ResendPoller.swift */,
B2FDED98F7F6C755A72C97A3 /* SafeWebURL.swift */,
@@ -597,12 +615,6 @@
914A792788D403F836BEB570 /* SpotifyViews.swift */,
2EF78999D68D56ADE4CEFBE2 /* StripePoller.swift */,
87AF6F7A027AB1D46309DD49 /* TerminalTarget.swift */,
- 036DE9440154C95E2B90C1EA /* CryptoViews.swift */,
- 033D87BF740911193C67D94D /* CryptoController.swift */,
- DCFDE7CC2BD8BCA9A6C9DF45 /* MailViews.swift */,
- AB502629F8A6EE9E8A647B2E /* MailController.swift */,
- E5077E908D307285474CA87C /* ApprovalQueue.swift */,
- 30A2AD5885FA3226E0337D67 /* PillSessionRegistry.swift */,
244A7909EEDA4BFF4C2EA9B5 /* TerminalTarget+AppKit.swift */,
B241B043223AFBBFB7418A5E /* UploadCanvasView.swift */,
6FD65943C32E150F1CD65C31 /* UploadSequenceEngine.swift */,
@@ -759,7 +771,9 @@
FB8E4AAB0B5E949069B8D03D /* Voice */ = {
isa = PBXGroup;
children = (
+ EFE8C8C843B4B30C547FF64A /* ClaudeVoiceBrain.swift */,
2A67DA3B8EEF063C44E07F7E /* ConversationContext.swift */,
+ 046F9CD91704C34AE5BE9393 /* ElevenLabsTTS.swift */,
F0E2C3ACD815230A0ECAB014 /* EnergyVAD.swift */,
EDC1DEBFCAEBE6F0EEB865F3 /* EntityResolver.swift */,
F39753CFF90B494D449CCD95 /* IntentParser.swift */,
@@ -770,17 +784,15 @@
A87F39805C78722F614295B4 /* VoiceAudio.swift */,
C563E55884A7750B40EC9A01 /* VoiceBrain.swift */,
3A8FB03801C49690C3789EFD /* VoiceCaptionManager.swift */,
- DE24076E9F3476A814C87964 /* ElevenLabsTTS.swift */,
- F2C300BDBDD5FB8403291892 /* VoiceDataSources.swift */,
- 62762B5BCD2B2209EAF89A7A /* VoiceQuery.swift */,
+ F289B4DB7C57BC593C2E7B7F /* VoiceDataSources.swift */,
B328028D18F590D6680B8A2B /* VoiceEngine.swift */,
+ 065B61C0809F2E3A461E9466 /* VoiceGenderNames.swift */,
D1A7C62058BB0C9D0DF58DCB /* VoiceIntent.swift */,
22E03C8E267399FA25C75877 /* VoiceIslandView.swift */,
+ 654AF6918593586EFF1989C6 /* VoiceQuery.swift */,
7C432FE1286945E42D3E11D7 /* VoiceResultView.swift */,
D4543CB771E0B723783F529E /* VoiceSettings.swift */,
CD11C7925B0A7831BFC2199C /* VoiceSpeaker.swift */,
- ADBD590972D9536A1DA7B6EF /* ClaudeVoiceBrain.swift */,
- 16BF6539981E9EEF2397D061 /* VoiceGenderNames.swift */,
DE925A6844FE3E3C09131CE0 /* VoiceTranscriptHistory.swift */,
ABD7A2C29B15EFFAF67FF2DE /* VoiceWakeFilter.swift */,
A12EC8F605BBC37F8223D7AA /* WakePhrase.swift */,
@@ -1000,6 +1012,7 @@
C940B651C6CA952D99388E04 /* AppDelegate.swift in Sources */,
4B6AC00F22EC75E90E0157D5 /* AppLog.swift in Sources */,
1F11EC4E6F604C612A1ADAD1 /* AppState.swift in Sources */,
+ 0325A44358904B44C2237CCE /* ApprovalQueue.swift in Sources */,
23BFB915C12B0BC4E9B50AAA /* ApprovalRelay.swift in Sources */,
7C75CCB3DC0116D8D3B12313 /* AskQuestion.swift in Sources */,
CD8DECA66B9E09C97E469DB9 /* BotCanvasView.swift in Sources */,
@@ -1014,14 +1027,18 @@
1DAB0704A136FF8E6FB34191 /* ClaudeResponseText.swift in Sources */,
2DEB459FBD0BA3CEAAA5FDE9 /* ClaudeService.swift in Sources */,
88C3F0A4F3AE29DBED8710A0 /* ClaudeSettingsFile.swift in Sources */,
+ 89BC677F3ACB387A475FFFED /* ClaudeVoiceBrain.swift in Sources */,
D45D9C8EAF67FC2F46E9F352 /* CloudProbe.swift in Sources */,
9AD370335A3ECC9C82375F93 /* CodexPlanGauge.swift in Sources */,
EE3AB10544113500486A9684 /* ColorHex.swift in Sources */,
E5D08513CFEA5D5E6760ECA4 /* ConversationContext.swift in Sources */,
+ DEDE942C3CD3F30B492BEEF5 /* CryptoController.swift in Sources */,
+ 2405F4EC8C89EE56F612BE2B /* CryptoViews.swift in Sources */,
B0CE5AC8B579866A14BD61D0 /* DemoEngine.swift in Sources */,
BEC5DDB55B3DA67C61CA8470 /* DesktopMochi.swift in Sources */,
BA65FC4A40F7227837C26214 /* DesktopMochiLogic.swift in Sources */,
077ECE0906D8E820BD5FA764 /* DiffEngine.swift in Sources */,
+ 541AF30CF808CC0FC1B8D97D /* ElevenLabsTTS.swift in Sources */,
B4F12F8F978FCA7E5309DE28 /* EnergyVAD.swift in Sources */,
9B0A1CABB8FB8209E20D9B06 /* EntityResolver.swift in Sources */,
E776C7D1DE5C62EA8D4BA3E3 /* FileDropView.swift in Sources */,
@@ -1044,6 +1061,8 @@
80D1CB884F0587EFCB839315 /* LiveVoiceControls.swift in Sources */,
6D158183870434FEDF07E050 /* LocalChat.swift in Sources */,
F8F95EAD88F70E0A147D1662 /* MacDictation.swift in Sources */,
+ 48FA5A0DE13526F6C2A6B836 /* MailController.swift in Sources */,
+ 2A57CCE7D6813E6340C036BE /* MailViews.swift in Sources */,
D34D31C27D97D23C0441D1BE /* MochiActivityState.swift in Sources */,
DD2EEF113DB5EAA35CD88312 /* MochiOutfitDrawing.swift in Sources */,
72B1AEDB2152BF73659EB598 /* MochiStill.swift in Sources */,
@@ -1055,6 +1074,10 @@
03FDC0AA0CEDE913B59D0F4D /* NowPlayingViews.swift in Sources */,
BDD8A210DD6D9DA2D15BC5EE /* PillCatalog.swift in Sources */,
07EC91820A69E8BF11EC778D /* PillColors.swift in Sources */,
+ B43ED72DC305F4A70A391094 /* PillSessionRegistry.swift in Sources */,
+ DA813AE042EEFD29AD06802A /* PortfolioController.swift in Sources */,
+ 44C7DD4E6F3527820DE1E4EA /* PortfolioSettingsView.swift in Sources */,
+ DD89FAA8EE64C5FCBBFD9960 /* PortfolioViews.swift in Sources */,
CD05A497A7D0B3D723D92C06 /* QuestionPayload.swift in Sources */,
93AB64BF47D6D1EE7DB4C22B /* QuestionRelay.swift in Sources */,
7A449E237CAAB62758508C7C /* RecapStore.swift in Sources */,
@@ -1075,12 +1098,6 @@
1558BB00C530B721172F6E65 /* StripePoller.swift in Sources */,
9EA178EA395B116336C1FA10 /* TerminalTarget+AppKit.swift in Sources */,
1D4CE0CCD2B5A0FFE50C7F06 /* TerminalTarget.swift in Sources */,
- AA4B191682537CC92C899BC9 /* CryptoViews.swift in Sources */,
- 91ECF9F7C5C7E5F6886FA02F /* CryptoController.swift in Sources */,
- AE2F7E3B42815ADC7EE77B8D /* MailViews.swift in Sources */,
- 56D42241B003E714A77CF838 /* MailController.swift in Sources */,
- 65F11D3911C3240BD89CF1C5 /* ApprovalQueue.swift in Sources */,
- 9CF7070265B7CDC933FD9776 /* PillSessionRegistry.swift in Sources */,
8551E592C5FFC6A0A7458A26 /* TurnEndPolicy.swift in Sources */,
0408FE7F86EBEE61CAED32DA /* TurnRecorder.swift in Sources */,
68C3ACC708B69035FD0CB8C4 /* TurnSnapshot.swift in Sources */,
@@ -1092,17 +1109,15 @@
88A8F2E4E754FAFABF6B1960 /* VoiceAudio.swift in Sources */,
326971DDA23F331116E5A628 /* VoiceBrain.swift in Sources */,
525FB188F09F68D26A9D587D /* VoiceCaptionManager.swift in Sources */,
- 6D21DDD51A255B1E3061D81F /* ElevenLabsTTS.swift in Sources */,
- D08B378612B4CB0C8811925B /* VoiceDataSources.swift in Sources */,
- 968932802E8017E2C23FF473 /* VoiceQuery.swift in Sources */,
+ EF5562030A7BA718EFA63278 /* VoiceDataSources.swift in Sources */,
BDEFF4223DA949E2B8AB85A7 /* VoiceEngine.swift in Sources */,
+ B9560210C8B8140D6522B8F7 /* VoiceGenderNames.swift in Sources */,
9C11C226915DBC97B5CD7953 /* VoiceIntent.swift in Sources */,
9088C7BADF166685E471D248 /* VoiceIslandView.swift in Sources */,
+ 352CD4E146AE486013366EC9 /* VoiceQuery.swift in Sources */,
CE5ACDD856C76B717ABA295F /* VoiceResultView.swift in Sources */,
502F2B0D607C511DD3B836B3 /* VoiceSettings.swift in Sources */,
718410ED630AE3AC5DF59A95 /* VoiceSpeaker.swift in Sources */,
- 50C33F44687D70690514FBBB /* ClaudeVoiceBrain.swift in Sources */,
- 9BAD96406059597681D89A92 /* VoiceGenderNames.swift in Sources */,
189811F4DB3C4F6030043643 /* VoiceTranscriptHistory.swift in Sources */,
BBCA973A1AE1385BBE79A834 /* VoiceWakeFilter.swift in Sources */,
C2212AA8BF5834B62308235B /* WakePhrase.swift in Sources */,
@@ -1198,6 +1213,7 @@
878924960FC0F2B3524D48AC /* AppDelegate.swift in Sources */,
61CB7049490F61CFA1B36B64 /* AppLog.swift in Sources */,
61F73B27A7E3AFF584B2CC22 /* AppState.swift in Sources */,
+ 8C5CF7C82640DD6A0685A0D5 /* ApprovalQueue.swift in Sources */,
AD94156F1F9CFF62B35202FB /* ApprovalRelay.swift in Sources */,
ED5D9A334DE08C0EB81DE322 /* AskQuestion.swift in Sources */,
651FA3F09608DE5D02D61CCE /* BotCanvasView.swift in Sources */,
@@ -1212,14 +1228,18 @@
0099C844CFD9424CEAA5CA77 /* ClaudeResponseText.swift in Sources */,
0329E76BA4A8FEEA8A6D76E7 /* ClaudeService.swift in Sources */,
D9EEB1079ACBCEEF74439C44 /* ClaudeSettingsFile.swift in Sources */,
+ F0B7062107F8A91394707706 /* ClaudeVoiceBrain.swift in Sources */,
FDF87CF7C5F703EDD9A7CC14 /* CloudProbe.swift in Sources */,
EB1D9680D3DB0F0707D4A043 /* CodexPlanGauge.swift in Sources */,
9ECEE890D4486B6E83BD5B7F /* ColorHex.swift in Sources */,
4F4176856B544D8C620B6204 /* ConversationContext.swift in Sources */,
+ D69E561062D9358837380ABD /* CryptoController.swift in Sources */,
+ 3C8CBC6F9B6B3AEC1AD6647C /* CryptoViews.swift in Sources */,
F157D7A9BF878DB2B286B1F7 /* DemoEngine.swift in Sources */,
273FC0FA14AAF6CE62FD14AE /* DesktopMochi.swift in Sources */,
C93BA975D35B8CD7473CF995 /* DesktopMochiLogic.swift in Sources */,
4D958F2DDCE9504490FDA357 /* DiffEngine.swift in Sources */,
+ D7FD1948C7F97D6A2904CDBE /* ElevenLabsTTS.swift in Sources */,
A94F75489794D9C95E584B56 /* EnergyVAD.swift in Sources */,
118D3ABA767EE8A7E55B0F8E /* EntityResolver.swift in Sources */,
2132477000FD77F7EB234DAA /* FileDropView.swift in Sources */,
@@ -1242,6 +1262,8 @@
AAECF326505B361B5F818150 /* LiveVoiceControls.swift in Sources */,
E81575CE4433C6F88E424A8F /* LocalChat.swift in Sources */,
3CF69605BB03E567C2DB0935 /* MacDictation.swift in Sources */,
+ 79BD23BDFE42A929764635E7 /* MailController.swift in Sources */,
+ E9C18F039035C78173C306C7 /* MailViews.swift in Sources */,
82E72E0AFCAB192D98AB2004 /* MochiActivityState.swift in Sources */,
ADBB9C15DDA4044625B325BE /* MochiOutfitDrawing.swift in Sources */,
78F045A55E6F4EEA5787EEEF /* MochiStill.swift in Sources */,
@@ -1253,6 +1275,10 @@
3E84EA0AE7C450941ED943CF /* NowPlayingViews.swift in Sources */,
13663D98590927AF71C17628 /* PillCatalog.swift in Sources */,
40F7576FC56ED7BC1D2B717E /* PillColors.swift in Sources */,
+ 995B59B7DE9B0537F240047A /* PillSessionRegistry.swift in Sources */,
+ 9DA7881484E39458D9D157D3 /* PortfolioController.swift in Sources */,
+ 884AEF9BAB1C54809C573BB4 /* PortfolioSettingsView.swift in Sources */,
+ C61E45A1B325BEFBE854AB53 /* PortfolioViews.swift in Sources */,
535EC818E1DAF0FA588545D8 /* QuestionPayload.swift in Sources */,
9AEFD05D0A39D4AF3C091B3A /* QuestionRelay.swift in Sources */,
B69DE31E2B0C2E35594CAA87 /* RecapStore.swift in Sources */,
@@ -1273,12 +1299,6 @@
E4B9986674F4D425826F15A8 /* StripePoller.swift in Sources */,
11F14DB97C93CF84DF9D5C43 /* TerminalTarget+AppKit.swift in Sources */,
6726F74966EDE7F82BFE89B2 /* TerminalTarget.swift in Sources */,
- A42BEDAC04B72921BF113A2C /* CryptoViews.swift in Sources */,
- BA41CE5D1739D3024B4F3214 /* CryptoController.swift in Sources */,
- F6D1C30750D5232B70F678C1 /* MailViews.swift in Sources */,
- 2B2706A9D900EE525E470A6F /* MailController.swift in Sources */,
- 3E808AC02E35ABF5801BEBEC /* ApprovalQueue.swift in Sources */,
- 11363898DA837388E2823E7F /* PillSessionRegistry.swift in Sources */,
ABE0CEF17018F1BAD8F7DBFA /* TurnEndPolicy.swift in Sources */,
CE0A1BD64DF3E08D200691A6 /* TurnRecorder.swift in Sources */,
4D34FF10654B19B69FE1964C /* TurnSnapshot.swift in Sources */,
@@ -1290,17 +1310,15 @@
64FE8055CCAD30B44FE398E7 /* VoiceAudio.swift in Sources */,
273B404F55739D661D9489D8 /* VoiceBrain.swift in Sources */,
36EBFB9A047DEBAC43E5D0CC /* VoiceCaptionManager.swift in Sources */,
- 34B22D329FA5D24C00A6EF91 /* ElevenLabsTTS.swift in Sources */,
- A51E53A7BF9F23535F3A8B15 /* VoiceDataSources.swift in Sources */,
- EEDE0A39D216069D77F097C8 /* VoiceQuery.swift in Sources */,
+ C6EB0156909305CEF8B84A8D /* VoiceDataSources.swift in Sources */,
80B0B3C777A9DC8C82952FD2 /* VoiceEngine.swift in Sources */,
+ 6BE6AA73FC83A588F21D9747 /* VoiceGenderNames.swift in Sources */,
15D69752806E1D1D589B20A7 /* VoiceIntent.swift in Sources */,
C3BA3FA2A4025194FC088C5A /* VoiceIslandView.swift in Sources */,
+ AFCA04C905C4E92BC480E4A2 /* VoiceQuery.swift in Sources */,
F9685A58729FE64B23FCCFC5 /* VoiceResultView.swift in Sources */,
035F9A85BF71B21F9AA5E004 /* VoiceSettings.swift in Sources */,
F7162101509D8CAE59711602 /* VoiceSpeaker.swift in Sources */,
- 70F221444F3D0B11EEA0E758 /* ClaudeVoiceBrain.swift in Sources */,
- D166CDFE3CBAF1310E7EC1F7 /* VoiceGenderNames.swift in Sources */,
714B5BB7FFB0C8491AF67AD1 /* VoiceTranscriptHistory.swift in Sources */,
8DE75D1E260A1314D1C47885 /* VoiceWakeFilter.swift in Sources */,
3451DB0668FAEEF09503D808 /* WakePhrase.swift in Sources */,
diff --git a/NotchBuddy/Resources/Localizable.xcstrings b/NotchBuddy/Resources/Localizable.xcstrings
index 37205b3e..993e0f13 100644
--- a/NotchBuddy/Resources/Localizable.xcstrings
+++ b/NotchBuddy/Resources/Localizable.xcstrings
@@ -27294,6 +27294,274 @@
}
}
}
+ },
+ "portfolio.no-accounts": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "No accounts connected — add one in Settings → Integrations." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Aucun compte connecté — ajoutez-en un dans Réglages → Intégrations." } },
+ "ar": { "stringUnit": { "state": "translated", "value": "لا توجد حسابات متصلة — أضف حساباً في الإعدادات → التكاملات." } },
+ "bn": { "stringUnit": { "state": "translated", "value": "কোনো অ্যাকাউন্ট সংযুক্ত নেই — সেটিংস → ইন্টিগ্রেশনে একটি যোগ করুন।" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Kein Konto verbunden — füge eines unter Einstellungen → Integrationen hinzu." } },
+ "es": { "stringUnit": { "state": "translated", "value": "No hay cuentas conectadas — agrega una en Ajustes → Integraciones." } },
+ "hi": { "stringUnit": { "state": "translated", "value": "कोई खाता जुड़ा नहीं — सेटिंग्स → एकीकरण में एक जोड़ें।" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Tidak ada akun terhubung — tambahkan di Pengaturan → Integrasi." } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Nenhuma conta conectada — adicione uma em Ajustes → Integrações." } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "未连接账户 — 在设置 → 集成中添加。" } }
+ }
+ },
+ "portfolio.add-exchange": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Add exchange" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Ajouter une plateforme" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "إضافة منصة" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "এক্সচেঞ্জ যোগ করুন" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Börse hinzufügen" } },
+ "es": { "stringUnit": { "state": "translated", "value": "Agregar exchange" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "एक्सचेंज जोड़ें" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Tambah bursa" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Adicionar exchange" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "添加交易所" } }
+ }
+ },
+ "portfolio.add-wallet": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Add wallet" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Ajouter un portefeuille" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "إضافة محفظة" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "ওয়ালেট যোগ করুন" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Wallet hinzufügen" } },
+ "es": { "stringUnit": { "state": "translated", "value": "Agregar billetera" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "वॉलेट जोड़ें" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Tambah dompet" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Adicionar carteira" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "添加钱包" } }
+ }
+ },
+ "portfolio.hint": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Read-only access only. Keys stored in the Keychain, never sent anywhere." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Accès en lecture seule. Clés dans le Trousseau, jamais envoyées ailleurs." } },
+ "ar": { "stringUnit": { "state": "translated", "value": "وصول للقراءة فقط. المفاتيح في Keychain، لا تُرسل أبداً." } },
+ "bn": { "stringUnit": { "state": "translated", "value": "শুধু পড়ার অ্যাক্সেস। কীগুলি কীচেইনে, কোথাও পাঠানো হয় না।" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Nur Lesezugriff. Schlüssel im Keychain, werden nirgendwo gesendet." } },
+ "es": { "stringUnit": { "state": "translated", "value": "Solo acceso de lectura. Claves en Keychain, nunca enviadas." } },
+ "hi": { "stringUnit": { "state": "translated", "value": "केवल पढ़ने की पहुंच। कीज़ Keychain में, कहीं नहीं भेजी जातीं।" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Akses baca saja. Kunci disimpan di Keychain, tidak dikirim ke mana pun." } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Somente leitura. Chaves no Keychain, nunca enviadas." } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "仅读取权限。密钥存储在 Keychain,不会发送到任何地方。" } }
+ }
+ },
+ "portfolio.read-only": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "read-only" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "lecture seule" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "للقراءة فقط" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "শুধু পড়া" } },
+ "de": { "stringUnit": { "state": "translated", "value": "nur Lesen" } },
+ "es": { "stringUnit": { "state": "translated", "value": "solo lectura" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "केवल पढ़ें" } },
+ "id": { "stringUnit": { "state": "translated", "value": "baca saja" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "somente leitura" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "只读" } }
+ }
+ },
+ "portfolio.remove": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Remove" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Supprimer" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "إزالة" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "সরান" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Entfernen" } },
+ "es": { "stringUnit": { "state": "translated", "value": "Eliminar" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "हटाएं" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Hapus" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Remover" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "移除" } }
+ }
+ },
+ "portfolio.remove-confirm %@": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Remove %@?" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Supprimer %@ ?" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "إزالة %@؟" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "%@ সরান?" } },
+ "de": { "stringUnit": { "state": "translated", "value": "%@ entfernen?" } },
+ "es": { "stringUnit": { "state": "translated", "value": "¿Eliminar %@?" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "%@ हटाएं?" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Hapus %@?" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Remover %@?" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "移除 %@?" } }
+ }
+ },
+ "portfolio.exchange": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Exchange" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Plateforme" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "منصة" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "এক্সচেঞ্জ" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Börse" } },
+ "es": { "stringUnit": { "state": "translated", "value": "Exchange" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "एक्सचेंज" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Bursa" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Exchange" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "交易所" } }
+ }
+ },
+ "portfolio.network": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Network" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Réseau" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "شبكة" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "নেটওয়ার্ক" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Netzwerk" } },
+ "es": { "stringUnit": { "state": "translated", "value": "Red" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "नेटवर्क" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Jaringan" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Rede" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "网络" } }
+ }
+ },
+ "portfolio.test-save": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Test & Save" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Tester & Enregistrer" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "اختبار وحفظ" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "পরীক্ষা ও সংরক্ষণ" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Testen & Speichern" } },
+ "es": { "stringUnit": { "state": "translated", "value": "Probar y guardar" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "परीक्षण करें और सहेजें" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Uji & Simpan" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Testar e Salvar" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "测试并保存" } }
+ }
+ },
+ "portfolio.verify-save": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Verify & Save" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Vérifier & Enregistrer" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "تحقق وحفظ" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "যাচাই ও সংরক্ষণ" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Prüfen & Speichern" } },
+ "es": { "stringUnit": { "state": "translated", "value": "Verificar y guardar" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "सत्यापित करें और सहेजें" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Verifikasi & Simpan" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Verificar e Salvar" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "验证并保存" } }
+ }
+ },
+ "portfolio.wallet-label": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Label (optional)" } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Nom (optionnel)" } },
+ "ar": { "stringUnit": { "state": "translated", "value": "تسمية (اختياري)" } },
+ "bn": { "stringUnit": { "state": "translated", "value": "লেবেল (ঐচ্ছিক)" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Bezeichnung (optional)" } },
+ "es": { "stringUnit": { "state": "translated", "value": "Etiqueta (opcional)" } },
+ "hi": { "stringUnit": { "state": "translated", "value": "लेबल (वैकल्पिक)" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Label (opsional)" } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Rótulo (opcional)" } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "标签(可选)" } }
+ }
+ },
+ "portfolio.wallet-hint": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Public address only. Coucou never touches your private keys." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Adresse publique uniquement. Coucou ne touche jamais vos clés privées." } },
+ "ar": { "stringUnit": { "state": "translated", "value": "العنوان العام فقط. لا تمس Coucou مفاتيحك الخاصة أبداً." } },
+ "bn": { "stringUnit": { "state": "translated", "value": "শুধুমাত্র পাবলিক ঠিকানা। Coucou কখনো আপনার প্রাইভেট কী স্পর্শ করে না।" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Nur öffentliche Adresse. Coucou berührt nie deine privaten Schlüssel." } },
+ "es": { "stringUnit": { "state": "translated", "value": "Solo dirección pública. Coucou nunca toca tus claves privadas." } },
+ "hi": { "stringUnit": { "state": "translated", "value": "केवल सार्वजनिक पता। Coucou आपकी प्राइवेट कीज़ को कभी नहीं छूता।" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Hanya alamat publik. Coucou tidak pernah menyentuh kunci privat Anda." } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Apenas endereço público. Coucou nunca toca suas chaves privadas." } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "仅公开地址。Coucou 从不接触您的私钥。" } }
+ }
+ },
+ "portfolio.error.no-creds": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "No credentials found. Add them in Settings." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Aucune clé trouvée. Ajoutez-les dans Réglages." } },
+ "ar": { "stringUnit": { "state": "translated", "value": "لم يتم العثور على بيانات اعتماد. أضفها في الإعدادات." } },
+ "bn": { "stringUnit": { "state": "translated", "value": "কোনো ক্রিডেনশিয়াল পাওয়া যায়নি। সেটিংসে যোগ করুন।" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Keine Anmeldedaten gefunden. In Einstellungen hinzufügen." } },
+ "es": { "stringUnit": { "state": "translated", "value": "No se encontraron credenciales. Agrégalas en Ajustes." } },
+ "hi": { "stringUnit": { "state": "translated", "value": "कोई क्रेडेंशियल नहीं मिले। सेटिंग्स में जोड़ें।" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Kredensial tidak ditemukan. Tambahkan di Pengaturan." } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Nenhuma credencial encontrada. Adicione nas Configurações." } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "未找到凭据。在设置中添加。" } }
+ }
+ },
+ "portfolio.error.parse": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Unexpected response from the exchange." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Réponse inattendue de la plateforme." } },
+ "ar": { "stringUnit": { "state": "translated", "value": "استجابة غير متوقعة من المنصة." } },
+ "bn": { "stringUnit": { "state": "translated", "value": "এক্সচেঞ্জ থেকে অপ্রত্যাশিত প্রতিক্রিয়া।" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Unerwartete Antwort von der Börse." } },
+ "es": { "stringUnit": { "state": "translated", "value": "Respuesta inesperada del exchange." } },
+ "hi": { "stringUnit": { "state": "translated", "value": "एक्सचेंज से अप्रत्याशित प्रतिक्रिया।" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Respons tak terduga dari bursa." } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Resposta inesperada da exchange." } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "来自交易所的意外响应。" } }
+ }
+ },
+ "portfolio.error.bad-address": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Invalid address format." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Format d'adresse invalide." } },
+ "ar": { "stringUnit": { "state": "translated", "value": "تنسيق العنوان غير صالح." } },
+ "bn": { "stringUnit": { "state": "translated", "value": "অবৈধ ঠিকানা ফরম্যাট।" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Ungültiges Adressformat." } },
+ "es": { "stringUnit": { "state": "translated", "value": "Formato de dirección no válido." } },
+ "hi": { "stringUnit": { "state": "translated", "value": "अमान्य पता प्रारूप।" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Format alamat tidak valid." } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Formato de endereço inválido." } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "地址格式无效。" } }
+ }
+ },
+ "portfolio.error.network": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "Network error. Check your connection." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Erreur réseau. Vérifiez votre connexion." } },
+ "ar": { "stringUnit": { "state": "translated", "value": "خطأ في الشبكة. تحقق من اتصالك." } },
+ "bn": { "stringUnit": { "state": "translated", "value": "নেটওয়ার্ক ত্রুটি। সংযোগ পরীক্ষা করুন।" } },
+ "de": { "stringUnit": { "state": "translated", "value": "Netzwerkfehler. Verbindung prüfen." } },
+ "es": { "stringUnit": { "state": "translated", "value": "Error de red. Comprueba tu conexión." } },
+ "hi": { "stringUnit": { "state": "translated", "value": "नेटवर्क त्रुटि। अपना कनेक्शन जांचें।" } },
+ "id": { "stringUnit": { "state": "translated", "value": "Kesalahan jaringan. Periksa koneksi Anda." } },
+ "pt-BR": { "stringUnit": { "state": "translated", "value": "Erro de rede. Verifique sua conexão." } },
+ "zh-Hans": { "stringUnit": { "state": "translated", "value": "网络错误。请检查您的连接。" } }
+ }
+ },
+ "portfolio.instructions.binance": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "In Binance → API Management, create a key with Read Info permission only. Do not enable Spot Trading or Withdrawals." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Dans Binance → Gestion des API, créez une clé avec la permission Lire uniquement. N'activez pas le trading ni les retraits." } }
+ }
+ },
+ "portfolio.instructions.okx": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "In OKX → API → Create V5 API Key. Set permission to Read only. Note your passphrase — it is shown only once." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Dans OKX → API → Créer clé API V5. Permissions : Lecture seule. Notez votre passphrase — elle n'est affichée qu'une fois." } }
+ }
+ },
+ "portfolio.instructions.bybit": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "In Bybit → API Management, create a key with Read Only permissions. Uncheck all other scopes." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Dans Bybit → Gestion API, créez une clé avec les permissions En lecture seule uniquement." } }
+ }
+ },
+ "portfolio.instructions.kraken": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "In Kraken → Security → API, create a key with Query Funds permission only. Paste the Private Key (base64) as the secret." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Dans Kraken → Sécurité → API, créez une clé avec la permission Consulter les fonds uniquement. Collez la clé privée (base64) comme secret." } }
+ }
+ },
+ "portfolio.instructions.coinbase": {
+ "localizations": {
+ "en": { "stringUnit": { "state": "translated", "value": "In Coinbase → API → New API Key (Exchange/Pro). Enable View permission only. The secret is base64-encoded — paste it as-is." } },
+ "fr": { "stringUnit": { "state": "translated", "value": "Dans Coinbase → API → Nouvelle clé API (Exchange/Pro). Activer uniquement la permission Vue. Le secret est en base64 — collez-le tel quel." } }
+ }
}
},
"version": "1.0"
diff --git a/NotchBuddy/Sources/App/AppDelegate.swift b/NotchBuddy/Sources/App/AppDelegate.swift
index 03f3ee80..912fc093 100644
--- a/NotchBuddy/Sources/App/AppDelegate.swift
+++ b/NotchBuddy/Sources/App/AppDelegate.swift
@@ -220,6 +220,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
MailController.shared.start()
#endif
CryptoController.shared.start()
+ PortfolioController.shared.start()
}
}
diff --git a/NotchBuddy/Sources/App/ClaudeService.swift b/NotchBuddy/Sources/App/ClaudeService.swift
index 875afe3a..4411544a 100644
--- a/NotchBuddy/Sources/App/ClaudeService.swift
+++ b/NotchBuddy/Sources/App/ClaudeService.swift
@@ -72,6 +72,12 @@ final class KeychainStore: @unchecked Sendable {
"calcom-api-key",
"notion-api-key",
"elevenlabs-api-key",
+ // Portfolio exchange credentials
+ "portfolio-binance-key", "portfolio-binance-secret",
+ "portfolio-okx-key", "portfolio-okx-secret", "portfolio-okx-passphrase",
+ "portfolio-bybit-key", "portfolio-bybit-secret",
+ "portfolio-kraken-key", "portfolio-kraken-secret",
+ "portfolio-coinbase-key", "portfolio-coinbase-secret", "portfolio-coinbase-passphrase",
]
private init() {
diff --git a/NotchBuddy/Sources/App/IslandViewContent.swift b/NotchBuddy/Sources/App/IslandViewContent.swift
index 8cc2d25e..7811823d 100644
--- a/NotchBuddy/Sources/App/IslandViewContent.swift
+++ b/NotchBuddy/Sources/App/IslandViewContent.swift
@@ -231,6 +231,8 @@ struct OverviewView: View {
let url = exchange.tradeURL(exchange.pair(first, CryptoSettings.currency)) {
NSWorkspace.shared.open(url)
}
+ case "integration_portfolio":
+ break // no global URL; individual holdings open their exchange pages
case "integration_vercel":
NSWorkspace.shared.open(URL(string: "https://vercel.com/dashboard")!)
case "integration_github":
@@ -1854,6 +1856,8 @@ struct IntegrationCardView: View {
#endif
case "integration_crypto":
return true // public market data: no key, nothing to set up
+ case "integration_portfolio":
+ return PortfolioSettings.hasAnyAccount
case "ai_anthropic": return KeychainStore.shared.get("anthropic-api-key") != nil
case "ai_google": return KeychainStore.shared.get("google-api-key") != nil
case "ai_openai": return KeychainStore.shared.get("openai-api-key") != nil
@@ -2106,6 +2110,9 @@ struct IntegrationCardView: View {
// Its own card in every state (loading, no coins, prices).
CryptoCardView()
.transition(.opacity)
+ } else if task.id == "integration_portfolio" {
+ PortfolioCardView()
+ .transition(.opacity)
} else if mailHasData {
#if !APPSTORE
MailCardView()
diff --git a/NotchBuddy/Sources/App/PortfolioController.swift b/NotchBuddy/Sources/App/PortfolioController.swift
new file mode 100644
index 00000000..83025188
--- /dev/null
+++ b/NotchBuddy/Sources/App/PortfolioController.swift
@@ -0,0 +1,707 @@
+import Foundation
+import CryptoKit
+import Combine
+
+// MARK: - Data model
+
+struct PortfolioHolding: Identifiable, Equatable, Sendable {
+ let symbol: String // "BTC", "ETH", "USDT"
+ let amount: Double // raw units (BTC, not satoshi)
+ var price: Double // USD price; filled after the price pass
+ var id: String { symbol }
+ var value: Double { amount * price }
+}
+
+enum ExchangeKind: String, CaseIterable, Sendable, Codable {
+ case binance, okx, bybit, kraken, coinbase
+ var name: String {
+ switch self {
+ case .binance: return "Binance"
+ case .okx: return "OKX"
+ case .bybit: return "Bybit"
+ case .kraken: return "Kraken"
+ case .coinbase: return "Coinbase"
+ }
+ }
+ var keychainPrefix: String { "portfolio-\(rawValue)" }
+ /// Whether a passphrase is required (Coinbase Pro, OKX).
+ var needsPassphrase: Bool { self == .okx || self == .coinbase }
+}
+
+enum WalletKind: String, CaseIterable, Sendable, Codable {
+ case bitcoin, ethereum, solana
+ var name: String {
+ switch self {
+ case .bitcoin: return "Bitcoin"
+ case .ethereum: return "Ethereum"
+ case .solana: return "Solana"
+ }
+ }
+ var symbol: String {
+ switch self {
+ case .bitcoin: return "BTC"
+ case .ethereum: return "ETH"
+ case .solana: return "SOL"
+ }
+ }
+ var placeholder: String {
+ switch self {
+ case .bitcoin: return "bc1q… or 1… or 3…"
+ case .ethereum: return "0x…"
+ case .solana: return "base58 address"
+ }
+ }
+}
+
+struct PortfolioWallet: Identifiable, Equatable, Codable, Sendable {
+ var id: String { address }
+ let kind: WalletKind
+ let address: String
+ var label: String // user-defined label, defaults to trimmed address
+}
+
+struct PortfolioAccount: Identifiable, Equatable, Sendable {
+ enum Source: Equatable, Sendable {
+ case exchange(ExchangeKind)
+ case wallet(PortfolioWallet)
+ }
+ var id: String {
+ switch source {
+ case .exchange(let k): return k.rawValue
+ case .wallet(let w): return w.address
+ }
+ }
+ let source: Source
+ var holdings: [PortfolioHolding] = []
+ var fetchError: String?
+
+ var totalValueUSD: Double { holdings.reduce(0) { $0 + $1.value } }
+}
+
+// MARK: - Settings
+
+enum PortfolioSettings {
+ private static let walletsKey = "portfolioWallets"
+
+ static func key(for ex: ExchangeKind) -> String? { KeychainStore.shared.get("\(ex.keychainPrefix)-key") }
+ static func secret(for ex: ExchangeKind) -> String? { KeychainStore.shared.get("\(ex.keychainPrefix)-secret") }
+ static func passphrase(for ex: ExchangeKind) -> String? { KeychainStore.shared.get("\(ex.keychainPrefix)-passphrase") }
+
+ static func save(exchange: ExchangeKind, key: String, secret: String, passphrase: String = "") {
+ KeychainStore.shared.set("\(exchange.keychainPrefix)-key", value: key)
+ KeychainStore.shared.set("\(exchange.keychainPrefix)-secret", value: secret)
+ if exchange.needsPassphrase {
+ KeychainStore.shared.set("\(exchange.keychainPrefix)-passphrase", value: passphrase)
+ }
+ }
+
+ static func remove(exchange: ExchangeKind) {
+ KeychainStore.shared.remove("\(exchange.keychainPrefix)-key")
+ KeychainStore.shared.remove("\(exchange.keychainPrefix)-secret")
+ KeychainStore.shared.remove("\(exchange.keychainPrefix)-passphrase")
+ }
+
+ static func isConfigured(_ exchange: ExchangeKind) -> Bool {
+ guard let k = key(for: exchange), !k.isEmpty else { return false }
+ guard let s = secret(for: exchange), !s.isEmpty else { return false }
+ if exchange.needsPassphrase {
+ guard let p = passphrase(for: exchange), !p.isEmpty else { return false }
+ }
+ return true
+ }
+
+ static var wallets: [PortfolioWallet] {
+ get {
+ guard let data = UserDefaults.standard.data(forKey: walletsKey),
+ let list = try? JSONDecoder().decode([PortfolioWallet].self, from: data) else { return [] }
+ return list
+ }
+ set {
+ let data = try? JSONEncoder().encode(newValue)
+ UserDefaults.standard.set(data, forKey: walletsKey)
+ }
+ }
+
+ static func addWallet(_ w: PortfolioWallet) {
+ var list = wallets.filter { $0.address != w.address }
+ list.append(w)
+ wallets = list
+ }
+
+ static func removeWallet(address: String) {
+ wallets = wallets.filter { $0.address != address }
+ }
+
+ /// All configured exchange accounts + wallets, in deterministic order.
+ static var configuredAccounts: [PortfolioAccount] {
+ var accounts: [PortfolioAccount] = []
+ for ex in ExchangeKind.allCases where isConfigured(ex) {
+ accounts.append(PortfolioAccount(source: .exchange(ex)))
+ }
+ for w in wallets {
+ accounts.append(PortfolioAccount(source: .wallet(w)))
+ }
+ return accounts
+ }
+
+ static var hasAnyAccount: Bool {
+ ExchangeKind.allCases.contains(where: isConfigured) || !wallets.isEmpty
+ }
+}
+
+// MARK: - Controller
+
+@MainActor
+final class PortfolioController: ObservableObject {
+ static let shared = PortfolioController()
+ nonisolated static let pillId = "integration_portfolio"
+
+ @Published private(set) var accounts: [PortfolioAccount] = []
+ @Published private(set) var loaded = false
+ @Published private(set) var lastUpdate: Date?
+
+ private var timer: Timer?
+ private var fetching = false
+ private var cancellables = Set<AnyCancellable>()
+
+ private var isPillActive: Bool {
+ AppState.shared.activeIntegrations.contains(Self.pillId)
+ }
+
+ private init() {
+ AppState.shared.$activeIntegrations
+ .map { $0.contains(Self.pillId) }
+ .removeDuplicates()
+ .sink { [weak self] _ in
+ DispatchQueue.main.async { self?.updatePolling() }
+ }
+ .store(in: &cancellables)
+ }
+
+ func start() { updatePolling() }
+
+ func settingsChanged() {
+ accounts = []
+ loaded = false
+ refresh()
+ }
+
+ func refreshIfStale(minAge: TimeInterval = 30) {
+ guard Date().timeIntervalSince(lastUpdate ?? .distantPast) > minAge else { return }
+ refresh()
+ }
+
+ private func updatePolling() {
+ if isPillActive {
+ if timer == nil {
+ let t = Timer(timeInterval: 120, repeats: true) { _ in
+ MainActor.assumeIsolated { PortfolioController.shared.refresh() }
+ }
+ t.tolerance = 20
+ RunLoop.main.add(t, forMode: .common)
+ timer = t
+ }
+ refresh()
+ } else {
+ timer?.invalidate()
+ timer = nil
+ accounts = []
+ loaded = false
+ lastUpdate = nil
+ }
+ }
+
+ func refresh() {
+ guard isPillActive, !fetching else { return }
+ let configured = PortfolioSettings.configuredAccounts
+ guard !configured.isEmpty else { accounts = []; loaded = true; return }
+ fetching = true
+ Task {
+ var result: [PortfolioAccount] = []
+ await withTaskGroup(of: PortfolioAccount.self) { group in
+ for account in configured {
+ group.addTask { await Self.fetchAccount(account) }
+ }
+ for await a in group { result.append(a) }
+ }
+ // Stable order: match the configured order
+ let ordered = configured.compactMap { conf in result.first { $0.id == conf.id } }
+ // Get prices for all held symbols
+ let symbols = Set(ordered.flatMap { $0.holdings.map(\.symbol) })
+ .filter { !$0.hasPrefix("USD") && !$0.hasPrefix("EUR") } // stable coins, skip
+ let prices = await Self.fetchPrices(symbols: Array(symbols))
+ var priced = ordered
+ for i in priced.indices {
+ for j in priced[i].holdings.indices {
+ let sym = priced[i].holdings[j].symbol
+ if let p = prices[sym] {
+ priced[i].holdings[j].price = p
+ } else if sym == "USDT" || sym == "USDC" || sym == "BUSD" || sym == "DAI" {
+ priced[i].holdings[j].price = 1.0 // stable coins ≈ $1
+ }
+ }
+ }
+ fetching = false
+ accounts = priced
+ loaded = true
+ lastUpdate = Date()
+ }
+ }
+
+ // MARK: - Account fetch dispatch
+
+ private nonisolated static func fetchAccount(_ account: PortfolioAccount) async -> PortfolioAccount {
+ var a = account
+ do {
+ switch account.source {
+ case .exchange(let kind):
+ a.holdings = try await ExchangeFetcher.fetch(kind)
+ case .wallet(let w):
+ a.holdings = try await WalletFetcher.fetch(w)
+ }
+ } catch {
+ a.fetchError = error.localizedDescription
+ }
+ return a
+ }
+
+ // MARK: - Price fetch (Coinbase public, no key)
+
+ private nonisolated static func fetchPrices(symbols: [String]) async -> [String: Double] {
+ guard !symbols.isEmpty else { return [:] }
+ var prices: [String: Double] = [:]
+ await withTaskGroup(of: (String, Double?).self) { group in
+ for sym in symbols {
+ group.addTask {
+ let pair = "\(sym)-USD"
+ guard let url = URL(string: "https://api.exchange.coinbase.com/products/\(pair)/stats") else {
+ return (sym, nil)
+ }
+ var req = URLRequest(url: url, timeoutInterval: 8)
+ req.setValue("application/json", forHTTPHeaderField: "Accept")
+ guard let (data, resp) = try? await URLSession.shared.data(for: req),
+ (resp as? HTTPURLResponse)?.statusCode == 200,
+ let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
+ let last = json["last"].flatMap({ Self.num($0) }) else { return (sym, nil) }
+ return (sym, last)
+ }
+ }
+ for await (sym, price) in group {
+ if let p = price { prices[sym] = p }
+ }
+ }
+ return prices
+ }
+
+ private nonisolated static func num(_ v: Any) -> Double? {
+ if let d = v as? Double { return d }
+ if let s = v as? String { return Double(s) }
+ if let n = v as? NSNumber { return n.doubleValue }
+ return nil
+ }
+
+ // MARK: - Formatting
+
+ static func formatValue(_ usd: Double) -> String {
+ let f = NumberFormatter()
+ f.numberStyle = .currency
+ f.currencyCode = "USD"
+ f.maximumFractionDigits = usd >= 1000 ? 0 : usd >= 1 ? 2 : 4
+ f.minimumFractionDigits = 0
+ return f.string(from: NSNumber(value: usd)) ?? String(format: "$%.2f", usd)
+ }
+
+ static func formatAmount(_ amount: Double) -> String {
+ if amount == 0 { return "0" }
+ if amount >= 1000 { return String(format: "%.0f", amount) }
+ if amount >= 1 { return String(format: "%.4f", amount) }
+ return String(format: "%.8f", amount)
+ }
+}
+
+// MARK: - HMAC helpers
+
+private enum HMACHelper {
+ /// HMAC-SHA256 as hex.
+ static func sha256hex(key: Data, message: String) -> String {
+ let sym = SymmetricKey(data: key)
+ let mac = HMAC<SHA256>.authenticationCode(for: Data(message.utf8), using: sym)
+ return Data(mac).map { String(format: "%02x", $0) }.joined()
+ }
+
+ /// HMAC-SHA256 as base64.
+ static func sha256b64(key: Data, message: String) -> String {
+ let sym = SymmetricKey(data: key)
+ let mac = HMAC<SHA256>.authenticationCode(for: Data(message.utf8), using: sym)
+ return Data(mac).base64EncodedString()
+ }
+
+ /// HMAC-SHA512 as base64 (Kraken).
+ static func sha512b64(key: Data, message: Data) -> String {
+ let sym = SymmetricKey(data: key)
+ let mac = HMAC<SHA512>.authenticationCode(for: message, using: sym)
+ return Data(mac).base64EncodedString()
+ }
+
+ /// SHA-256 of a string as raw Data (Kraken inner hash).
+ static func sha256raw(_ input: String) -> Data {
+ Data(SHA256.hash(data: Data(input.utf8)))
+ }
+}
+
+// MARK: - Exchange Fetcher
+
+private enum ExchangeFetcher {
+ enum FetchError: Error, LocalizedError {
+ case noCredentials
+ case badResponse(String)
+ case parseError
+
+ var errorDescription: String? {
+ switch self {
+ case .noCredentials: return String(localized: "portfolio.error.no-creds")
+ case .badResponse(let m): return m
+ case .parseError: return String(localized: "portfolio.error.parse")
+ }
+ }
+ }
+
+ static func fetch(_ kind: ExchangeKind) async throws -> [PortfolioHolding] {
+ switch kind {
+ case .binance: return try await fetchBinance()
+ case .okx: return try await fetchOKX()
+ case .bybit: return try await fetchBybit()
+ case .kraken: return try await fetchKraken()
+ case .coinbase: return try await fetchCoinbase()
+ }
+ }
+
+ // MARK: Binance
+
+ private static func fetchBinance() async throws -> [PortfolioHolding] {
+ guard let apiKey = PortfolioSettings.key(for: .binance), !apiKey.isEmpty,
+ let secret = PortfolioSettings.secret(for: .binance), !secret.isEmpty,
+ let secretData = secret.data(using: .utf8) else { throw FetchError.noCredentials }
+ let ts = "\(Int64(Date().timeIntervalSince1970 * 1000))"
+ let queryString = "timestamp=\(ts)"
+ let sig = HMACHelper.sha256hex(key: secretData, message: queryString)
+ guard let url = URL(string: "https://api.binance.com/api/v3/account?\(queryString)&signature=\(sig)") else {
+ throw FetchError.badResponse("Invalid URL")
+ }
+ var req = URLRequest(url: url, timeoutInterval: 10)
+ req.setValue(apiKey, forHTTPHeaderField: "X-MBX-APIKEY")
+ let (data, resp) = try await URLSession.shared.data(for: req)
+ guard let http = resp as? HTTPURLResponse, http.statusCode == 200 else {
+ let msg = String(data: data, encoding: .utf8) ?? "HTTP \((resp as? HTTPURLResponse)?.statusCode ?? 0)"
+ throw FetchError.badResponse(msg)
+ }
+ guard let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
+ let balances = json["balances"] as? [[String: Any]] else { throw FetchError.parseError }
+ return balances.compactMap { b -> PortfolioHolding? in
+ guard let asset = b["asset"] as? String,
+ let free = (b["free"] as? String).flatMap(Double.init),
+ let locked = (b["locked"] as? String).flatMap(Double.init) else { return nil }
+ let total = free + locked
+ guard total > 0.000001 else { return nil }
+ return PortfolioHolding(symbol: asset, amount: total, price: 0)
+ }
+ }
+
+ // MARK: OKX
+
+ private static func fetchOKX() async throws -> [PortfolioHolding] {
+ guard let apiKey = PortfolioSettings.key(for: .okx), !apiKey.isEmpty,
+ let secret = PortfolioSettings.secret(for: .okx), !secret.isEmpty,
+ let passphrase = PortfolioSettings.passphrase(for: .okx), !passphrase.isEmpty,
+ let secretData = secret.data(using: .utf8) else { throw FetchError.noCredentials }
+ let ts = ISO8601DateFormatter().string(from: Date())
+ let path = "/api/v5/account/balance"
+ let message = "\(ts)GET\(path)"
+ let sig = HMACHelper.sha256b64(key: secretData, message: message)
+ guard let url = URL(string: "https://www.okx.com\(path)") else {
+ throw FetchError.badResponse("Invalid URL")
+ }
+ var req = URLRequest(url: url, timeoutInterval: 10)
+ req.setValue("application/json", forHTTPHeaderField: "Content-Type")
+ req.setValue(apiKey, forHTTPHeaderField: "OK-ACCESS-KEY")
+ req.setValue(sig, forHTTPHeaderField: "OK-ACCESS-SIGN")
+ req.setValue(ts, forHTTPHeaderField: "OK-ACCESS-TIMESTAMP")
+ req.setValue(passphrase, forHTTPHeaderField: "OK-ACCESS-PASSPHRASE")
+ let (data, resp) = try await URLSession.shared.data(for: req)
+ guard let http = resp as? HTTPURLResponse, http.statusCode == 200 else {
+ let msg = String(data: data, encoding: .utf8) ?? "HTTP \((resp as? HTTPURLResponse)?.statusCode ?? 0)"
+ throw FetchError.badResponse(msg)
+ }
+ guard let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
+ let dataArr = json["data"] as? [[String: Any]],
+ let first = dataArr.first,
+ let details = first["details"] as? [[String: Any]] else { throw FetchError.parseError }
+ return details.compactMap { d -> PortfolioHolding? in
+ guard let ccy = d["ccy"] as? String,
+ let avail = (d["availBal"] as? String).flatMap(Double.init),
+ let frozen = (d["frozenBal"] as? String).flatMap(Double.init) else { return nil }
+ let total = avail + frozen
+ guard total > 0.000001 else { return nil }
+ return PortfolioHolding(symbol: ccy, amount: total, price: 0)
+ }
+ }
+
+ // MARK: Bybit
+
+ private static func fetchBybit() async throws -> [PortfolioHolding] {
+ guard let apiKey = PortfolioSettings.key(for: .bybit), !apiKey.isEmpty,
+ let secret = PortfolioSettings.secret(for: .bybit), !secret.isEmpty,
+ let secretData = secret.data(using: .utf8) else { throw FetchError.noCredentials }
+ let ts = "\(Int64(Date().timeIntervalSince1970 * 1000))"
+ let recvWindow = "5000"
+ let queryString = "accountType=UNIFIED"
+ let message = "\(ts)\(apiKey)\(recvWindow)\(queryString)"
+ let sig = HMACHelper.sha256hex(key: secretData, message: message)
+ guard let url = URL(string: "https://api.bybit.com/v5/account/wallet-balance?\(queryString)") else {
+ throw FetchError.badResponse("Invalid URL")
+ }
+ var req = URLRequest(url: url, timeoutInterval: 10)
+ req.setValue(apiKey, forHTTPHeaderField: "X-BAPI-API-KEY")
+ req.setValue(sig, forHTTPHeaderField: "X-BAPI-SIGN")
+ req.setValue(ts, forHTTPHeaderField: "X-BAPI-TIMESTAMP")
+ req.setValue(recvWindow, forHTTPHeaderField: "X-BAPI-RECV-WINDOW")
+ let (data, resp) = try await URLSession.shared.data(for: req)
+ guard let http = resp as? HTTPURLResponse, http.statusCode == 200 else {
+ let msg = String(data: data, encoding: .utf8) ?? "HTTP \((resp as? HTTPURLResponse)?.statusCode ?? 0)"
+ throw FetchError.badResponse(msg)
+ }
+ guard let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
+ let result = json["result"] as? [String: Any],
+ let list = result["list"] as? [[String: Any]],
+ let first = list.first,
+ let coins = first["coin"] as? [[String: Any]] else { throw FetchError.parseError }
+ return coins.compactMap { c -> PortfolioHolding? in
+ guard let coin = c["coin"] as? String,
+ let bal = (c["walletBalance"] as? String).flatMap(Double.init) else { return nil }
+ guard bal > 0.000001 else { return nil }
+ return PortfolioHolding(symbol: coin, amount: bal, price: 0)
+ }
+ }
+
+ // MARK: Kraken
+
+ private static func fetchKraken() async throws -> [PortfolioHolding] {
+ guard let apiKey = PortfolioSettings.key(for: .kraken), !apiKey.isEmpty,
+ let secretB64 = PortfolioSettings.secret(for: .kraken), !secretB64.isEmpty,
+ let secretData = Data(base64Encoded: secretB64) else { throw FetchError.noCredentials }
+ let nonce = "\(Int64(Date().timeIntervalSince1970 * 1000))"
+ let path = "/0/private/Balance"
+ let body = "nonce=\(nonce)"
+ // Sign: SHA512( path_bytes + SHA256( nonce + body ) )
+ let innerInput = nonce + body
+ let innerHash = HMACHelper.sha256raw(innerInput)
+ var msgData = Data(path.utf8)
+ msgData.append(innerHash)
+ let sig = HMACHelper.sha512b64(key: secretData, message: msgData)
+ guard let url = URL(string: "https://api.kraken.com\(path)") else {
+ throw FetchError.badResponse("Invalid URL")
+ }
+ var req = URLRequest(url: url, timeoutInterval: 10)
+ req.httpMethod = "POST"
+ req.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
+ req.setValue(apiKey, forHTTPHeaderField: "API-Key")
+ req.setValue(sig, forHTTPHeaderField: "API-Sign")
+ req.httpBody = Data(body.utf8)
+ let (data, resp) = try await URLSession.shared.data(for: req)
+ guard let http = resp as? HTTPURLResponse, http.statusCode == 200 else {
+ let msg = String(data: data, encoding: .utf8) ?? "HTTP \((resp as? HTTPURLResponse)?.statusCode ?? 0)"
+ throw FetchError.badResponse(msg)
+ }
+ guard let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
+ (json["error"] as? [String])?.isEmpty != false,
+ let result = json["result"] as? [String: Any] else {
+ let errors = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])
+ .flatMap { $0["error"] as? [String] }?.first ?? "Parse error"
+ throw FetchError.badResponse(errors)
+ }
+ // Kraken uses X-prefixed names: XXBT = BTC, XETH = ETH, ZUSD = USD, etc.
+ return result.compactMap { (rawSym, rawVal) -> PortfolioHolding? in
+ guard let val = Double(String(describing: rawVal)), val > 0.000001 else { return nil }
+ let symbol = Self.krakenSymbol(rawSym)
+ return PortfolioHolding(symbol: symbol, amount: val, price: 0)
+ }
+ }
+
+ private static func krakenSymbol(_ raw: String) -> String {
+ let map: [String: String] = [
+ "XXBT": "BTC", "XETH": "ETH", "XLTC": "LTC", "XXLM": "XLM",
+ "XXMR": "XMR", "XXRP": "XRP", "XZEC": "ZEC", "ZUSD": "USDT",
+ "ZEUR": "EUR", "ZGBP": "GBP", "ZCAD": "CAD", "ZJPY": "JPY",
+ ]
+ return map[raw] ?? (raw.hasPrefix("X") || raw.hasPrefix("Z") ? String(raw.dropFirst()) : raw)
+ }
+
+ // MARK: Coinbase (Exchange Pro)
+
+ private static func fetchCoinbase() async throws -> [PortfolioHolding] {
+ guard let apiKey = PortfolioSettings.key(for: .coinbase), !apiKey.isEmpty,
+ let secret = PortfolioSettings.secret(for: .coinbase), !secret.isEmpty,
+ let passphrase = PortfolioSettings.passphrase(for: .coinbase), !passphrase.isEmpty,
+ let secretData = Data(base64Encoded: secret) else { throw FetchError.noCredentials }
+ let ts = String(Int64(Date().timeIntervalSince1970))
+ let path = "/accounts"
+ let message = "\(ts)GET\(path)"
+ let sig = HMACHelper.sha256b64(key: secretData, message: message)
+ guard let url = URL(string: "https://api.exchange.coinbase.com\(path)") else {
+ throw FetchError.badResponse("Invalid URL")
+ }
+ var req = URLRequest(url: url, timeoutInterval: 10)
+ req.setValue("application/json", forHTTPHeaderField: "Content-Type")
+ req.setValue(apiKey, forHTTPHeaderField: "CB-ACCESS-KEY")
+ req.setValue(sig, forHTTPHeaderField: "CB-ACCESS-SIGN")
+ req.setValue(ts, forHTTPHeaderField: "CB-ACCESS-TIMESTAMP")
+ req.setValue(passphrase, forHTTPHeaderField: "CB-ACCESS-PASSPHRASE")
+ let (data, resp) = try await URLSession.shared.data(for: req)
+ guard let http = resp as? HTTPURLResponse, http.statusCode == 200 else {
+ let msg = String(data: data, encoding: .utf8) ?? "HTTP \((resp as? HTTPURLResponse)?.statusCode ?? 0)"
+ throw FetchError.badResponse(msg)
+ }
+ guard let accounts = try? JSONSerialization.jsonObject(with: data) as? [[String: Any]] else {
+ throw FetchError.parseError
+ }
+ return accounts.compactMap { a -> PortfolioHolding? in
+ guard let currency = a["currency"] as? String,
+ let balance = (a["balance"] as? String).flatMap(Double.init),
+ balance > 0.000001 else { return nil }
+ return PortfolioHolding(symbol: currency, amount: balance, price: 0)
+ }
+ }
+}
+
+// MARK: - Wallet Fetcher
+
+private enum WalletFetcher {
+ enum FetchError: Error, LocalizedError {
+ case invalidAddress
+ case networkError
+ case parseError
+
+ var errorDescription: String? {
+ switch self {
+ case .invalidAddress: return String(localized: "portfolio.error.bad-address")
+ case .networkError: return String(localized: "portfolio.error.network")
+ case .parseError: return String(localized: "portfolio.error.parse")
+ }
+ }
+ }
+
+ static func fetch(_ wallet: PortfolioWallet) async throws -> [PortfolioHolding] {
+ switch wallet.kind {
+ case .bitcoin: return try await fetchBTC(address: wallet.address)
+ case .ethereum: return try await fetchETH(address: wallet.address)
+ case .solana: return try await fetchSOL(address: wallet.address)
+ }
+ }
+
+ private static func fetchBTC(address: String) async throws -> [PortfolioHolding] {
+ guard let url = URL(string: "https://blockchain.info/balance?active=\(address)&cors=true") else {
+ throw FetchError.invalidAddress
+ }
+ var req = URLRequest(url: url, timeoutInterval: 10)
+ req.setValue("application/json", forHTTPHeaderField: "Accept")
+ guard let (data, resp) = try? await URLSession.shared.data(for: req),
+ (resp as? HTTPURLResponse)?.statusCode == 200 else { throw FetchError.networkError }
+ guard let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
+ let addrData = json[address] as? [String: Any],
+ let satoshi = addrData["final_balance"] as? Int else { throw FetchError.parseError }
+ let btc = Double(satoshi) / 1e8
+ return [PortfolioHolding(symbol: "BTC", amount: btc, price: 0)]
+ }
+
+ private static func fetchETH(address: String) async throws -> [PortfolioHolding] {
+ guard let url = URL(string: "https://cloudflare-eth.com") else { throw FetchError.networkError }
+ var req = URLRequest(url: url, timeoutInterval: 10)
+ req.httpMethod = "POST"
+ req.setValue("application/json", forHTTPHeaderField: "Content-Type")
+ let body: [String: Any] = ["method": "eth_getBalance",
+ "params": [address, "latest"],
+ "id": 1, "jsonrpc": "2.0"]
+ req.httpBody = try? JSONSerialization.data(withJSONObject: body)
+ guard let (data, resp) = try? await URLSession.shared.data(for: req),
+ (resp as? HTTPURLResponse)?.statusCode == 200 else { throw FetchError.networkError }
+ guard let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
+ let hexWei = json["result"] as? String,
+ let wei = UInt64(hexWei.dropFirst(2), radix: 16) else { throw FetchError.parseError }
+ let eth = Double(wei) / 1e18
+ return [PortfolioHolding(symbol: "ETH", amount: eth, price: 0)]
+ }
+
+ private static func fetchSOL(address: String) async throws -> [PortfolioHolding] {
+ guard let url = URL(string: "https://api.mainnet-beta.solana.com") else { throw FetchError.networkError }
+ var req = URLRequest(url: url, timeoutInterval: 10)
+ req.httpMethod = "POST"
+ req.setValue("application/json", forHTTPHeaderField: "Content-Type")
+ let body: [String: Any] = ["jsonrpc": "2.0", "id": 1,
+ "method": "getBalance", "params": [address]]
+ req.httpBody = try? JSONSerialization.data(withJSONObject: body)
+ guard let (data, resp) = try? await URLSession.shared.data(for: req),
+ (resp as? HTTPURLResponse)?.statusCode == 200 else { throw FetchError.networkError }
+ guard let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
+ let result = json["result"] as? [String: Any],
+ let lamports = result["value"] as? Int else { throw FetchError.parseError }
+ let sol = Double(lamports) / 1e9
+ return [PortfolioHolding(symbol: "SOL", amount: sol, price: 0)]
+ }
+}
+
+// MARK: - Key validation (test before saving)
+
+extension PortfolioController {
+ /// Tests credentials by attempting a real fetch. Returns nil on success, error string on failure.
+ static func validate(exchange: ExchangeKind,
+ key: String, secret: String, passphrase: String = "") async -> String? {
+ // Temporarily set, test, then restore.
+ let prevKey = PortfolioSettings.key(for: exchange) ?? ""
+ let prevSecret = PortfolioSettings.secret(for: exchange) ?? ""
+ let prevPassphrase = PortfolioSettings.passphrase(for: exchange) ?? ""
+ PortfolioSettings.save(exchange: exchange, key: key, secret: secret, passphrase: passphrase)
+ do {
+ let holdings = try await ExchangeFetcher.fetch(exchange)
+ _ = holdings // success: at least an empty list is fine
+ return nil
+ } catch {
+ // Restore previous credentials on failure
+ PortfolioSettings.save(exchange: exchange,
+ key: prevKey, secret: prevSecret, passphrase: prevPassphrase)
+ return error.localizedDescription
+ }
+ }
+
+ /// Validates a public wallet address by fetching its balance. Returns nil on success.
+ static func validate(wallet: PortfolioWallet) async -> String? {
+ do {
+ _ = try await WalletFetcher.fetch(wallet)
+ return nil
+ } catch {
+ return error.localizedDescription
+ }
+ }
+}
+
+// MARK: - Address validation (local, no network)
+
+enum AddressValidator {
+ /// Quick local check before hitting the network.
+ static func isPlausible(_ address: String, kind: WalletKind) -> Bool {
+ switch kind {
+ case .bitcoin:
+ // bech32 (bc1q...), bech32m (bc1p...), P2PKH (1...), P2SH (3...)
+ let a = address.trimmingCharacters(in: .whitespaces)
+ if a.lowercased().hasPrefix("bc1") { return a.count >= 14 && a.count <= 90 }
+ if a.hasPrefix("1") || a.hasPrefix("3") { return a.count >= 25 && a.count <= 34 }
+ return false
+ case .ethereum:
+ let a = address.trimmingCharacters(in: .whitespaces)
+ guard a.lowercased().hasPrefix("0x") else { return false }
+ return a.dropFirst(2).count == 40 && a.dropFirst(2).allSatisfy(\.isHexDigit)
+ case .solana:
+ let a = address.trimmingCharacters(in: .whitespaces)
+ return a.count >= 32 && a.count <= 44
+ }
+ }
+}
diff --git a/NotchBuddy/Sources/App/PortfolioSettingsView.swift b/NotchBuddy/Sources/App/PortfolioSettingsView.swift
new file mode 100644
index 00000000..edd46f9b
--- /dev/null
+++ b/NotchBuddy/Sources/App/PortfolioSettingsView.swift
@@ -0,0 +1,331 @@
+import SwiftUI
+
+// MARK: - Portfolio settings section
+
+/// Embedded in the Integrations settings panel.
+/// Lets the user connect exchange accounts (read-only API key + secret) and
+/// self-custody wallet addresses (BTC, ETH, SOL). Keys are stored in the Keychain;
+/// addresses go to UserDefaults (they are public data).
+struct PortfolioSettingsSection: View {
+ @State private var showAddExchange = false
+ @State private var showAddWallet = false
+ @State private var wallets: [PortfolioWallet] = PortfolioSettings.wallets
+ /// Whether each exchange is configured (keyed by rawValue).
+ @State private var configured: [String: Bool] = Self.loadConfigured()
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 5) {
+ HStack(spacing: 6) {
+ Circle().fill(Color(hex: "#FFD700")).frame(width: 8, height: 8)
+ Text("Portfolio").font(.system(size: 12, weight: .semibold))
+ }
+
+ // Connected exchanges
+ ForEach(ExchangeKind.allCases, id: \.rawValue) { ex in
+ if configured[ex.rawValue] == true {
+ ExchangeRow(exchange: ex, onRemove: {
+ PortfolioSettings.remove(exchange: ex)
+ configured[ex.rawValue] = false
+ PortfolioController.shared.settingsChanged()
+ })
+ }
+ }
+
+ // Connected wallets
+ ForEach(wallets) { w in
+ WalletRow(wallet: w, onRemove: {
+ PortfolioSettings.removeWallet(address: w.address)
+ wallets = PortfolioSettings.wallets
+ PortfolioController.shared.settingsChanged()
+ })
+ }
+
+ // Add buttons
+ HStack(spacing: 8) {
+ Button(String(localized: "portfolio.add-exchange")) { showAddExchange = true }
+ .buttonStyle(.bordered)
+ Button(String(localized: "portfolio.add-wallet")) { showAddWallet = true }
+ .buttonStyle(.bordered)
+ }
+
+ Text(String(localized: "portfolio.hint"))
+ .font(.system(size: 10))
+ .foregroundColor(Color(hex: "#8E939C"))
+ }
+ .sheet(isPresented: $showAddExchange) {
+ AddExchangeSheet { ex in
+ configured[ex.rawValue] = true
+ PortfolioController.shared.settingsChanged()
+ }
+ }
+ .sheet(isPresented: $showAddWallet) {
+ AddWalletSheet {
+ wallets = PortfolioSettings.wallets
+ PortfolioController.shared.settingsChanged()
+ }
+ }
+ }
+
+ private static func loadConfigured() -> [String: Bool] {
+ Dictionary(uniqueKeysWithValues: ExchangeKind.allCases.map {
+ ($0.rawValue, PortfolioSettings.isConfigured($0))
+ })
+ }
+}
+
+// MARK: - Exchange row
+
+private struct ExchangeRow: View {
+ let exchange: ExchangeKind
+ let onRemove: () -> Void
+ @State private var confirmRemove = false
+
+ var body: some View {
+ HStack(spacing: 6) {
+ Image(systemName: "checkmark.circle.fill").foregroundColor(.green).imageScale(.small)
+ Text(verbatim: exchange.name).font(.system(size: 11))
+ Text(String(localized: "portfolio.read-only"))
+ .font(.system(size: 10)).foregroundColor(Color(hex: "#8E939C"))
+ Spacer()
+ Button(String(localized: "portfolio.remove")) { confirmRemove = true }
+ .font(.system(size: 11))
+ .foregroundColor(.red)
+ .buttonStyle(.plain)
+ }
+ .alert(String(format: String(localized: "portfolio.remove-confirm %@"), exchange.name),
+ isPresented: $confirmRemove) {
+ Button(String(localized: "portfolio.remove"), role: .destructive) { onRemove() }
+ Button(String(localized: "Cancel"), role: .cancel) {}
+ }
+ }
+}
+
+// MARK: - Wallet row
+
+private struct WalletRow: View {
+ let wallet: PortfolioWallet
+ let onRemove: () -> Void
+ @State private var confirmRemove = false
+
+ private var shortAddress: String {
+ let a = wallet.address
+ return a.count > 16 ? "\(a.prefix(8))…\(a.suffix(6))" : a
+ }
+
+ var body: some View {
+ HStack(spacing: 6) {
+ Image(systemName: "checkmark.circle.fill").foregroundColor(.green).imageScale(.small)
+ Text(verbatim: wallet.label.isEmpty ? shortAddress : wallet.label)
+ .font(.system(size: 11))
+ Text(verbatim: wallet.kind.name)
+ .font(.system(size: 10)).foregroundColor(Color(hex: "#8E939C"))
+ Spacer()
+ Button(String(localized: "portfolio.remove")) { confirmRemove = true }
+ .font(.system(size: 11))
+ .foregroundColor(.red)
+ .buttonStyle(.plain)
+ }
+ .alert(String(format: String(localized: "portfolio.remove-confirm %@"), wallet.label.isEmpty ? shortAddress : wallet.label),
+ isPresented: $confirmRemove) {
+ Button(String(localized: "portfolio.remove"), role: .destructive) { onRemove() }
+ Button(String(localized: "Cancel"), role: .cancel) {}
+ }
+ }
+}
+
+// MARK: - Add exchange sheet
+
+private struct AddExchangeSheet: View {
+ let onSave: (ExchangeKind) -> Void
+ @Environment(\.dismiss) private var dismiss
+
+ @State private var selectedExchange = ExchangeKind.binance
+ @State private var apiKey = ""
+ @State private var apiSecret = ""
+ @State private var passphrase = ""
+ @State private var testing = false
+ @State private var error: String?
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 12) {
+ Text(String(localized: "portfolio.add-exchange"))
+ .font(.headline)
+
+ Picker(String(localized: "portfolio.exchange"), selection: $selectedExchange) {
+ ForEach(ExchangeKind.allCases, id: \.rawValue) { ex in
+ Text(verbatim: ex.name).tag(ex)
+ }
+ }
+ .pickerStyle(.segmented)
+ .onChange(of: selectedExchange) { _, _ in error = nil }
+
+ instructions(for: selectedExchange)
+ .font(.system(size: 11))
+ .foregroundColor(Color(hex: "#8E939C"))
+ .fixedSize(horizontal: false, vertical: true)
+
+ SecureField("API Key", text: $apiKey)
+ .textFieldStyle(.roundedBorder)
+ SecureField("API Secret", text: $apiSecret)
+ .textFieldStyle(.roundedBorder)
+ if selectedExchange.needsPassphrase {
+ SecureField("Passphrase", text: $passphrase)
+ .textFieldStyle(.roundedBorder)
+ }
+
+ if let err = error {
+ Text(verbatim: err)
+ .font(.system(size: 11))
+ .foregroundColor(.red)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+
+ HStack {
+ Button(String(localized: "Cancel")) { dismiss() }
+ Spacer()
+ Button {
+ Task { await testAndSave() }
+ } label: {
+ if testing {
+ ProgressView().scaleEffect(0.7)
+ } else {
+ Text(String(localized: "portfolio.test-save"))
+ }
+ }
+ .buttonStyle(.borderedProminent)
+ .disabled(testing || apiKey.isEmpty || apiSecret.isEmpty
+ || (selectedExchange.needsPassphrase && passphrase.isEmpty))
+ }
+ }
+ .padding(20)
+ .frame(width: 380)
+ }
+
+ @MainActor
+ private func testAndSave() async {
+ testing = true
+ error = nil
+ let err = await PortfolioController.validate(
+ exchange: selectedExchange,
+ key: apiKey.trimmingCharacters(in: .whitespaces),
+ secret: apiSecret.trimmingCharacters(in: .whitespaces),
+ passphrase: passphrase.trimmingCharacters(in: .whitespaces)
+ )
+ testing = false
+ if let err {
+ error = err
+ } else {
+ PortfolioSettings.save(
+ exchange: selectedExchange,
+ key: apiKey.trimmingCharacters(in: .whitespaces),
+ secret: apiSecret.trimmingCharacters(in: .whitespaces),
+ passphrase: passphrase.trimmingCharacters(in: .whitespaces)
+ )
+ onSave(selectedExchange)
+ dismiss()
+ }
+ }
+
+ @ViewBuilder
+ private func instructions(for ex: ExchangeKind) -> some View {
+ switch ex {
+ case .binance:
+ Text(String(localized: "portfolio.instructions.binance"))
+ case .okx:
+ Text(String(localized: "portfolio.instructions.okx"))
+ case .bybit:
+ Text(String(localized: "portfolio.instructions.bybit"))
+ case .kraken:
+ Text(String(localized: "portfolio.instructions.kraken"))
+ case .coinbase:
+ Text(String(localized: "portfolio.instructions.coinbase"))
+ }
+ }
+}
+
+// MARK: - Add wallet sheet
+
+private struct AddWalletSheet: View {
+ let onSave: () -> Void
+ @Environment(\.dismiss) private var dismiss
+
+ @State private var selectedKind = WalletKind.bitcoin
+ @State private var address = ""
+ @State private var label = ""
+ @State private var testing = false
+ @State private var error: String?
+
+ private var isAddressPlausible: Bool {
+ AddressValidator.isPlausible(address.trimmingCharacters(in: .whitespaces), kind: selectedKind)
+ }
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 12) {
+ Text(String(localized: "portfolio.add-wallet"))
+ .font(.headline)
+
+ Picker(String(localized: "portfolio.network"), selection: $selectedKind) {
+ ForEach(WalletKind.allCases, id: \.rawValue) { k in
+ Text(verbatim: k.name).tag(k)
+ }
+ }
+ .pickerStyle(.segmented)
+ .onChange(of: selectedKind) { _, _ in error = nil }
+
+ TextField(selectedKind.placeholder, text: $address)
+ .textFieldStyle(.roundedBorder)
+ .font(.system(size: 11, design: .monospaced))
+
+ TextField(String(localized: "portfolio.wallet-label"), text: $label)
+ .textFieldStyle(.roundedBorder)
+
+ Text(String(localized: "portfolio.wallet-hint"))
+ .font(.system(size: 11))
+ .foregroundColor(Color(hex: "#8E939C"))
+
+ if let err = error {
+ Text(verbatim: err)
+ .font(.system(size: 11))
+ .foregroundColor(.red)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+
+ HStack {
+ Button(String(localized: "Cancel")) { dismiss() }
+ Spacer()
+ Button {
+ Task { await verifyAndSave() }
+ } label: {
+ if testing {
+ ProgressView().scaleEffect(0.7)
+ } else {
+ Text(String(localized: "portfolio.verify-save"))
+ }
+ }
+ .buttonStyle(.borderedProminent)
+ .disabled(testing || !isAddressPlausible)
+ }
+ }
+ .padding(20)
+ .frame(width: 360)
+ }
+
+ @MainActor
+ private func verifyAndSave() async {
+ let addr = address.trimmingCharacters(in: .whitespaces)
+ let lbl = label.trimmingCharacters(in: .whitespaces)
+ let wallet = PortfolioWallet(kind: selectedKind, address: addr,
+ label: lbl.isEmpty ? String(addr.prefix(12)) + "…" : lbl)
+ testing = true
+ error = nil
+ let err = await PortfolioController.validate(wallet: wallet)
+ testing = false
+ if let err {
+ error = err
+ } else {
+ PortfolioSettings.addWallet(wallet)
+ onSave()
+ dismiss()
+ }
+ }
+}
diff --git a/NotchBuddy/Sources/App/PortfolioViews.swift b/NotchBuddy/Sources/App/PortfolioViews.swift
new file mode 100644
index 00000000..c13b547e
--- /dev/null
+++ b/NotchBuddy/Sources/App/PortfolioViews.swift
@@ -0,0 +1,155 @@
+import SwiftUI
+import AppKit
+
+// MARK: - Portfolio card
+
+/// Real balances from connected exchange accounts and self-custody wallets.
+/// Balances are fetched with read-only API keys or public wallet addresses.
+struct PortfolioCardView: View {
+ @ObservedObject private var portfolio = PortfolioController.shared
+
+ private var accent: Color {
+ Color(hex: PillCatalog.definition(for: PortfolioController.pillId)?.color ?? "#FFD700")
+ }
+
+ private var totalUSD: Double {
+ portfolio.accounts.reduce(0) { $0 + $1.totalValueUSD }
+ }
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 0) {
+ // Header
+ HStack(spacing: 6) {
+ Circle()
+ .fill(accent)
+ .frame(width: 7, height: 7)
+ Text("Portfolio")
+ .font(.system(size: 12, weight: .semibold))
+ .foregroundColor(Color(hex: "#F5F6F8"))
+ Spacer(minLength: 2)
+ if portfolio.loaded && totalUSD > 0 {
+ Text(verbatim: PortfolioController.formatValue(totalUSD))
+ .font(.system(size: 11, weight: .medium))
+ .foregroundColor(Color(hex: "#C5C8CD"))
+ .monospacedDigit()
+ }
+ }
+ .padding(.top, 6)
+ .padding(.leading, 108)
+ .padding(.trailing, 36)
+
+ if !portfolio.loaded {
+ Text("Loading…")
+ .font(.system(size: 11))
+ .foregroundColor(Color(hex: "#6B7079"))
+ .padding(.top, 8)
+ .padding(.leading, 116)
+ .padding(.trailing, 12)
+ } else if portfolio.accounts.isEmpty {
+ Text(String(localized: "portfolio.no-accounts"))
+ .font(.system(size: 11))
+ .foregroundColor(Color(hex: "#6B7079"))
+ .padding(.top, 8)
+ .padding(.leading, 116)
+ .padding(.trailing, 12)
+ } else {
+ ScrollView(.vertical, showsIndicators: false) {
+ VStack(alignment: .leading, spacing: 6) {
+ ForEach(portfolio.accounts) { account in
+ PortfolioAccountSection(account: account)
+ }
+ }
+ }
+ .padding(.top, 5)
+ .padding(.leading, 108)
+ .padding(.trailing, 12)
+ }
+ }
+ .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
+ .padding(.top, 4)
+ .onAppear { portfolio.refreshIfStale() }
+ }
+}
+
+// MARK: - Account section
+
+private struct PortfolioAccountSection: View {
+ let account: PortfolioAccount
+
+ private var label: String {
+ switch account.source {
+ case .exchange(let k): return k.name
+ case .wallet(let w): return w.label
+ }
+ }
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 2) {
+ // Account label + value
+ HStack(spacing: 4) {
+ Text(verbatim: label)
+ .font(.system(size: 10, weight: .semibold))
+ .foregroundColor(Color(hex: "#8E939C"))
+ Spacer(minLength: 2)
+ if let err = account.fetchError {
+ Text(verbatim: err)
+ .font(.system(size: 9))
+ .foregroundColor(Color(hex: "#F4505E"))
+ .lineLimit(1)
+ .truncationMode(.tail)
+ } else if account.totalValueUSD > 0 {
+ Text(verbatim: PortfolioController.formatValue(account.totalValueUSD))
+ .font(.system(size: 10, weight: .medium))
+ .foregroundColor(Color(hex: "#8E939C"))
+ .monospacedDigit()
+ }
+ }
+ .padding(.horizontal, 8)
+
+ if account.fetchError == nil {
+ ForEach(account.holdings.sorted(by: { $0.value > $1.value })) { holding in
+ PortfolioHoldingRow(holding: holding)
+ }
+ }
+ }
+ }
+}
+
+// MARK: - Holding row
+
+private struct PortfolioHoldingRow: View {
+ let holding: PortfolioHolding
+ @State private var hovered = false
+
+ var body: some View {
+ HStack(spacing: 6) {
+ Text(verbatim: holding.symbol)
+ .font(.system(size: 11, weight: .semibold))
+ .foregroundColor(Color(hex: "#E8E9EC"))
+ .lineLimit(1)
+ .frame(width: 36, alignment: .leading)
+ Text(verbatim: PortfolioController.formatAmount(holding.amount))
+ .font(.system(size: 10))
+ .foregroundColor(Color(hex: "#8E939C"))
+ .monospacedDigit()
+ .lineLimit(1)
+ Spacer(minLength: 2)
+ if holding.price > 0 {
+ Text(verbatim: PortfolioController.formatValue(holding.value))
+ .font(.system(size: 11, weight: .medium))
+ .foregroundColor(Color(hex: "#C5C8CD"))
+ .monospacedDigit()
+ .lineLimit(1)
+ .fixedSize()
+ }
+ }
+ .padding(.horizontal, 8).padding(.vertical, 2)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .background(
+ RoundedRectangle(cornerRadius: 4)
+ .fill(Color.white.opacity(hovered ? 0.05 : 0))
+ )
+ .contentShape(Rectangle())
+ .onHover { hovered = $0 }
+ }
+}
diff --git a/NotchBuddy/Sources/App/SettingsView.swift b/NotchBuddy/Sources/App/SettingsView.swift
index 05d4c4c3..a0c8bc5a 100644
--- a/NotchBuddy/Sources/App/SettingsView.swift
+++ b/NotchBuddy/Sources/App/SettingsView.swift
@@ -1286,6 +1286,10 @@ struct SettingsView: View {
.onChange(of: cryptoExchange) { _, _ in CryptoController.shared.settingsChanged() }
.onChange(of: cryptoCurrency) { _, _ in CryptoController.shared.settingsChanged() }
+ // Portfolio: exchange accounts + wallets.
+ PortfolioSettingsSection()
+ .padding(.top, 4)
+
Button(String(localized: "integrations.save")) {
saveIntegrations()
CryptoController.shared.settingsChanged()
diff --git a/NotchBuddy/Sources/CoucouKit/PillCatalog.swift b/NotchBuddy/Sources/CoucouKit/PillCatalog.swift
index f12fa833..24ac53bd 100644
--- a/NotchBuddy/Sources/CoucouKit/PillCatalog.swift
+++ b/NotchBuddy/Sources/CoucouKit/PillCatalog.swift
@@ -126,7 +126,9 @@ enum PillCatalog {
category: .service, subtitle: "Integration", source: .n8n, githubOnly: true),
.init(id: "integration_mail", name: "Mail", color: "#2F8CFF",
category: .service, subtitle: "Integration", source: .n8n, githubOnly: true),
- .init(id: "integration_crypto", name: "Crypto", color: "#F7931A",
+ .init(id: "integration_crypto", name: "Crypto", color: "#F7931A",
+ category: .service, subtitle: "Integration", source: .n8n),
+ .init(id: "integration_portfolio", name: "Portfolio", color: "#FFD700",
category: .service, subtitle: "Integration", source: .n8n),
]