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
refactor(ios): isolate message attachment models
Sean Ferguson511f920f4ffd
diff --git a/apps/ios/Kit/Sources/CodyncKit/Models/EntryData.swift b/apps/ios/Kit/Sources/CodyncKit/Models/EntryData.swiftnew file mode 100644index 00000000..3eb23c28--- /dev/null+++ b/apps/ios/Kit/Sources/CodyncKit/Models/EntryData.swift@@ -0,0 +1,59 @@+import Foundation++public struct EntryData: Codable, Hashable, Sendable {+ public var connectionRequest: ConnectionRequest?+ public var routineId: String?+ public var runId: String?+ public var text: String?+ public var final: Bool?+ /// user: queued | sent | cancelled | failed · tool: pending | in_progress | completed | failed · permission: pending | answered | cancelled | expired+ public var status: String?+ public var clientNonce: String?+ public var title: String?+ public var toolKind: String?+ public var output: String?+ public var diffs: [FileDiff]?+ public var locations: [Location]?+ public var options: [PermissionOption]?+ public var selected: String?+ public var command: String?+ public var detail: String?+ public var cwd: String?+ public var entries: [PlanItem]?+ /// notice: info | error | divider+ public var style: String?+ /// The bot that wrote it (a group shows who spoke).+ public var author: String?+ /// On a main-chat message that has a thread: its replies.+ public var thread: ThreadSummary?+ /// The user's emoji reactions, oldest first.+ public var reactions: [String]?+ /// Files sent with a user message.+ public var attachments: [Attachment]?+ /// notice: a finished voice call's length.+ public var callSeconds: Int?++ public init(text: String? = nil, status: String? = nil, clientNonce: String? = nil) {+ self.text = text+ self.status = status+ self.clientNonce = clientNonce+ }+}++/// A file sent with a message; the agent reads it on the computer.+public struct Attachment: Codable, Hashable, Sendable, Identifiable {+ public var id: String+ public var name: String+ public var size: Int64++ public init(id: String, name: String, size: Int64) {+ self.id = id+ self.name = name+ self.size = size+ }++ public var isImage: Bool {+ ["png", "jpg", "jpeg", "heic", "gif", "webp", "tiff", "bmp"].contains((name as NSString).pathExtension.lowercased())+ }+}+diff --git a/apps/ios/Kit/Sources/CodyncKit/Models/Models.swift b/apps/ios/Kit/Sources/CodyncKit/Models/Models.swiftindex 7ecbd075..8f7135ba 100644--- a/apps/ios/Kit/Sources/CodyncKit/Models/Models.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Models/Models.swift@@ -103,63 +103,6 @@ public struct Entry: Codable, Identifiable, Hashable, Sendable {public var date: Date { Date(milliseconds: createdAt) }}-public struct EntryData: Codable, Hashable, Sendable {- public var connectionRequest: ConnectionRequest?- public var routineId: String?- public var runId: String?- public var text: String?- public var final: Bool?- /// user: queued | sent | cancelled | failed · tool: pending | in_progress | completed | failed · permission: pending | answered | cancelled | expired- public var status: String?- public var clientNonce: String?- public var title: String?- public var toolKind: String?- public var output: String?- public var diffs: [FileDiff]?- public var locations: [Location]?- public var options: [PermissionOption]?- public var selected: String?- public var command: String?- public var detail: String?- public var cwd: String?- public var entries: [PlanItem]?- /// notice: info | error | divider- public var style: String?- /// The bot that wrote it (a group shows who spoke).- public var author: String?- /// On a main-chat message that has a thread: its replies.- public var thread: ThreadSummary?- /// The user's emoji reactions, oldest first.- public var reactions: [String]?- /// Files sent with a user message.- public var attachments: [Attachment]?- /// notice: a finished voice call's length.- public var callSeconds: Int?-- public init(text: String? = nil, status: String? = nil, clientNonce: String? = nil) {- self.text = text- self.status = status- self.clientNonce = clientNonce- }-}--/// A file sent with a message; the agent reads it on the computer.-public struct Attachment: Codable, Hashable, Sendable, Identifiable {- public var id: String- public var name: String- public var size: Int64-- public init(id: String, name: String, size: Int64) {- self.id = id- self.name = name- self.size = size- }-- public var isImage: Bool {- ["png", "jpg", "jpeg", "heic", "gif", "webp", "tiff", "bmp"].contains((name as NSString).pathExtension.lowercased())- }-}-public struct ThreadSummary: Codable, Hashable, Sendable {public var count: Intpublic var lastAt: Int64