mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-12 04:08:53 +02:00
SwiftUI app (iOS 17+) with zero third-party dependencies: - Passwordless email authentication with Keychain token storage - Workspace selection and multi-workspace support - Issue list grouped by status with search and filtering - Issue detail with inline status/priority/assignee editing - Comments with threaded display and compose - Agent task runs history and real-time execution log streaming - WebSocket integration for live updates
30 lines
702 B
Swift
30 lines
702 B
Swift
import Foundation
|
|
|
|
struct Agent: Codable, Identifiable, Hashable, Sendable {
|
|
let id: String
|
|
let workspaceId: String
|
|
let name: String
|
|
let description: String
|
|
let instructions: String?
|
|
let avatarURL: String?
|
|
let status: AgentStatus
|
|
let createdAt: String
|
|
let updatedAt: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case id, name, description, instructions, status
|
|
case workspaceId = "workspace_id"
|
|
case avatarURL = "avatar_url"
|
|
case createdAt = "created_at"
|
|
case updatedAt = "updated_at"
|
|
}
|
|
}
|
|
|
|
enum AgentStatus: String, Codable, Sendable {
|
|
case idle
|
|
case working
|
|
case blocked
|
|
case error
|
|
case offline
|
|
}
|