Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
feat(ios): open each team widget bot through an app intent
leepokaif1e6407ff4d5
diff --git a/apps/Codync.xcodeproj/project.pbxproj b/apps/Codync.xcodeproj/project.pbxprojindex fb191513..abc50635 100644--- a/apps/Codync.xcodeproj/project.pbxproj+++ b/apps/Codync.xcodeproj/project.pbxproj@@ -27,6 +27,7 @@501377099B6CF42761B230CB /* WelcomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D57A7C09154869DD84BACE19 /* WelcomeView.swift */; };52CF04B855C6AAEC47B75B8F /* CodyncKit in Frameworks */ = {isa = PBXBuildFile; productRef = 1285DDFA0390A76ECDAAD6C0 /* CodyncKit */; };54CEEA0734C2940E2D9FAC7D /* AXTree.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D13418ABB5FD7CFC087677 /* AXTree.swift */; };+ 5C9AE497DA83EB32AEC9057C /* OpenBotIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C4EB0DBA2F08CD7C0E25E30 /* OpenBotIntent.swift */; };5CF8180C760CFAE49CF4B8C6 /* CodyncBot-cloud-Tint.ttf in Resources */ = {isa = PBXBuildFile; fileRef = AAD970B8394F4EDFB85A8936 /* CodyncBot-cloud-Tint.ttf */; };5FD48874687C2D18B31C7C01 /* CodyncBot-pebble-Tint.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1FECC371F3CD98687C0B69FA /* CodyncBot-pebble-Tint.ttf */; };646410F85B1110297E5F54B9 /* CodyncBot-squircle-Tint.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D5F23C3F9FCE63B4AFB4771A /* CodyncBot-squircle-Tint.ttf */; };@@ -59,6 +60,7 @@BCB60463C96AF5725EC4A2C7 /* CodyncBot-hex-Tint.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D827E43025A592B41CB68EFD /* CodyncBot-hex-Tint.ttf */; };BF77DD7946621D8818EDAB9B /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A87B0091DAF0E4807D62017 /* SettingsView.swift */; };C7ED489193AC0934515D2E85 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = D0DE72EEAEC947C1D3CA237F /* PrivacyInfo.xcprivacy */; };+ E695251CFD06AC6F4E3396B7 /* OpenBotIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C4EB0DBA2F08CD7C0E25E30 /* OpenBotIntent.swift */; };E78E3B5FAFEB79F31AAC104D /* CodyncBot-teardrop-Tint.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C8F46BD8301E7E2C83C35111 /* CodyncBot-teardrop-Tint.ttf */; };EBB0417A5FB2CE6D514D21BE /* ClerkKit in Frameworks */ = {isa = PBXBuildFile; productRef = D9AB2F442A5F243653EAE936 /* ClerkKit */; };F171F16563D1FF6308697173 /* CodyncUI in Frameworks */ = {isa = PBXBuildFile; productRef = 06C9F37C6502131CAF0F145E /* CodyncUI */; };@@ -119,6 +121,7 @@52A96030D47F1B9678095909 /* iOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOS.entitlements; sourceTree = "<group>"; };5A21538E748C62E82DF7B139 /* CodyncBot-cloud-Ink.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "CodyncBot-cloud-Ink.ttf"; sourceTree = "<group>"; };5B22589689593E0089118FDB /* WidgetGalleryView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetGalleryView.swift; sourceTree = "<group>"; };+ 5C4EB0DBA2F08CD7C0E25E30 /* OpenBotIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenBotIntent.swift; sourceTree = "<group>"; };60422D3CA8FEBCDC5AC465E0 /* iOS.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = iOS.app; sourceTree = BUILT_PRODUCTS_DIR; };64888B10E98F19723500FBCA /* NotificationService.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NotificationService.entitlements; sourceTree = "<group>"; };6BC00039A6C2C0D3F39A5F67 /* ComputerStatus.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComputerStatus.swift; sourceTree = "<group>"; };@@ -263,6 +266,7 @@isa = PBXGroup;children = (FAB9BDB52C3A9F7B2568A750 /* CodyncWidgets.swift */,+ 5C4EB0DBA2F08CD7C0E25E30 /* OpenBotIntent.swift */,305DDCC18BB8AA6CD9D19CEF /* WidgetPreviews.swift */,39BD6D06FC3DE74E5AA24856 /* Resources */,);@@ -574,6 +578,7 @@buildActionMask = 2147483647;files = (2CDF3DF16A13DAF83CA42168 /* CodyncWidgets.swift in Sources */,+ 5C9AE497DA83EB32AEC9057C /* OpenBotIntent.swift in Sources */,3BCC04815E5CA8953E0DDCAD /* WidgetPreviews.swift in Sources */,);runOnlyForDeploymentPostprocessing = 0;@@ -604,6 +609,7 @@7C20764DC05D499075BC5E8C /* CodyncApp.swift in Sources */,2002C16E427B4E4E7279E1C4 /* ComputerStatus.swift in Sources */,35CFB641A4F10C0EBD21CB14 /* LaunchSplash.swift in Sources */,+ E695251CFD06AC6F4E3396B7 /* OpenBotIntent.swift in Sources */,719EABCBBAC0A973D729363A /* PairingView.swift in Sources */,89CA3972915769DBA315876F /* Push.swift in Sources */,0631979397E0D6822747E03A /* RootView.swift in Sources */,diff --git a/apps/ios/App/CodyncApp.swift b/apps/ios/App/CodyncApp.swiftindex b7650719..08201c9f 100644--- a/apps/ios/App/CodyncApp.swift+++ b/apps/ios/App/CodyncApp.swift@@ -16,6 +16,11 @@ struct CodyncApp: App {/// Cold launch with a computer to reach: the splash covers its connect and catch-up.@State private var launching = !AppStore.shared.accounts.computers.isEmpty+ init() {+ // A tapped widget bot arrives as an intent, not a URL.+ OpenBotIntent.open = { AppStore.shared.open($0) }+ }+var body: some Scene {WindowGroup {RootView()diff --git a/apps/ios/Kit/Sources/CodyncKit/Design/WidgetCards.swift b/apps/ios/Kit/Sources/CodyncKit/Design/WidgetCards.swiftindex 88ad6bec..c1510f4e 100644--- a/apps/ios/Kit/Sources/CodyncKit/Design/WidgetCards.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Design/WidgetCards.swift@@ -273,12 +273,12 @@ public extension Bot {/// empty spots hold a faded sleeping character.public struct BotsTeamCard: View {let slots: [Bot?]- let links: [String: URL]+ let opens: [String: any AppIntent]- /// `links` (bot id → its conversation) makes each spot open its own bot.- public init(bots: [Bot], picks: [String?] = [], links: [String: URL] = [:]) {+ /// `opens` (bot id → the intent that opens its conversation) makes each spot a button.+ public init(bots: [Bot], picks: [String?] = [], opens: [String: any AppIntent] = [:]) {slots = Self.slots(bots: bots, picks: picks)- self.links = links+ self.opens = opens}/// The bots in their four spots: picks first (a deleted pick falls back to automatic).@@ -304,8 +304,8 @@ public struct BotsTeamCard: View {if let bot = slots[index] {// A small widget has one tap target unless it uses buttons: each spot is a// button that opens its bot's conversation.- if let url = links[bot.id] {- Button(intent: OpenURLIntent(url)) { botTile(bot) }.buttonStyle(.plain)+ if let open = opens[bot.id] {+ Button(intent: open) { botTile(bot) }.buttonStyle(.plain)} else {botTile(bot)}diff --git a/apps/ios/Widgets/CodyncWidgets.swift b/apps/ios/Widgets/CodyncWidgets.swiftindex 76b06cbb..b08dc2bb 100644--- a/apps/ios/Widgets/CodyncWidgets.swift+++ b/apps/ios/Widgets/CodyncWidgets.swift@@ -121,7 +121,7 @@ struct BotsTeamWidget: Widget {Group {if entry.bots.paired {// Each spot opens its own bot; the gaps between them open the app.- BotsTeamCard(bots: entry.bots.bots, picks: entry.picks, links: entry.bots.links)+ BotsTeamCard(bots: entry.bots.bots, picks: entry.picks, opens: entry.bots.links.mapValues { OpenBotIntent($0) })} else {EmptyWidget(text: "Open Codync to pair with your computer.")}diff --git a/apps/ios/Widgets/OpenBotIntent.swift b/apps/ios/Widgets/OpenBotIntent.swiftnew file mode 100644index 00000000..8e964c6d--- /dev/null+++ b/apps/ios/Widgets/OpenBotIntent.swift@@ -0,0 +1,24 @@+import AppIntents++/// A widget button that opens one bot's conversation. `OpenURLIntent` from a home screen+/// widget button doesn't launch the app for a custom scheme, so this intent is built into the+/// app as well and runs there (`openAppWhenRun`), handing the bot's deep link to `open`.+struct OpenBotIntent: AppIntent {+ static let title: LocalizedStringResource = "Open Bot"+ static let isDiscoverable = false+ static let openAppWhenRun = true++ /// Set by the app at launch; the widget extension never runs `perform`.+ @MainActor static var open: (URL) -> Void = { _ in }++ @Parameter(title: "Link") var url: URL++ init() {}++ init(_ url: URL) { self.url = url }++ @MainActor func perform() async throws -> some IntentResult {+ Self.open(url)+ return .result()+ }+}diff --git a/apps/project.yml b/apps/project.ymlindex 7bdf224d..31d7a33e 100644--- a/apps/project.yml+++ b/apps/project.yml@@ -66,6 +66,8 @@ targets:- WhatsNew.md# The app's shared Swift package (models, client, screens), added as a package below.- Kit+ # The widget's bot buttons run this intent in the app.+ - ios/Widgets/OpenBotIntent.swiftdependencies:- package: Clerkproduct: ClerkKit