Initial commit: OpenCode mobile app (extracted from opencode monorepo)

This commit is contained in:
Ubuntu
2026-05-17 19:52:54 +00:00
commit 1843a7c37e
84 changed files with 9303 additions and 0 deletions

32
src/lib/types.ts Normal file
View File

@@ -0,0 +1,32 @@
// Connection types for multiple server support
export type ConnectionType = "local" | "tunnel" | "cloud"
export interface ServerConnection {
id: string
name: string
type: ConnectionType
url: string
// For auth
username?: string
// Password stored separately in SecureStore
// Directory to use for this connection
directory?: string
// When last successfully connected
lastConnected?: number
// Is this the active connection?
active?: boolean
}
export interface AppSettings {
// Require biometric auth to open app
requireBiometric: boolean
// Require biometric to send messages
requireBiometricForMessages: boolean
// Theme preference
theme: "light" | "dark" | "system"
// Show notifications for task completion
notifications: boolean
}
// Re-export SDK types we'll use frequently
export type { Session, Message, Part, Project, Event, HealthResponse } from "./sdk"