apps/ios/src/
├── app/
│ ├── api/ # API clients
│ │ ├── MainAPI.swift # Base API infrastructure
│ │ ├── AuthAPI.swift # Authentication
│ │ ├── AgentAPI.swift # Agent SSE streaming
│ │ ├── SandboxAPI.swift # Sandbox management
│ │ ├── SessionAPI.swift # Session management
│ │ ├── ScheduledTaskAPI.swift # Scheduled tasks
│ │ └── SkillAPI.swift # Skills
│ └── pages/ # Page views
│ ├── MainView.swift # Entry + Tab navigation
│ ├── AuthView.swift # Login (WebView)
│ ├── SessionView.swift # Session list
│ ├── ChatView.swift # Chat conversation
│ ├── AutomationView.swift # Scheduled tasks
│ ├── SkillsView.swift # Skills list
│ └── MeView.swift # Profile & Settings
├── components/ # Reusable SwiftUI components
├── db/
│ ├── schema/ # Data structures (API mapping)
│ └── model/ # CRUD operations (Keychain)
├── i18n/ # Internationalization
│ └── Localizable.xcstrings # Localized strings
├── lib/
│ ├── message-handler/ # SSE message processing
│ │ ├── MessageHandler.swift
│ │ ├── MessageHandler+Text.swift
│ │ ├── MessageHandler+ToolCall.swift
│ │ └── MessageHandler+ToolResult.swift
│ └── types/ # Local types and enums
│ ├── AuthTypes.swift
│ ├── ChatTypes.swift
│ └── ToolIconTypes.swift
└── store/ # State management
├── WorkspaceState.swift
└── SpeechRecorder.swift