/** * Conversation types for mobile chat app */ export interface Message { id: string; role: "user" | "assistant"; content: string; specId?: string; createdAt: string; } export interface ConversationSpec { id: string; specId?: string; title: string; content: string; extends?: SpecReference[]; status: "draft" | "dispatched" | "queued" | "running" | "completed" | "failed"; prUrl?: string; error?: string; dispatchedAt?: string; } export interface SpecReference { type: "spec" | "pr" | "branch"; value: string; } export interface Conversation { id: string; userId: string; repoId: string; title: string; messages: Message[]; specs: ConversationSpec[]; forkedFrom?: string; createdAt: string; updatedAt: string; } export interface CodebaseContext { repoId: string; languages: string[]; frameworks: string[]; keyFiles: string[]; recentCommits: string[]; fileStructure: string; inspectedAt: string; } export interface CreateConversationRequest { repoId: string; } export interface ForkConversationRequest { newTitle?: string; } export interface ChatRequest { content: string; } export interface ChatResponse { message: Message; spec?: { title: string; content: string; extends?: SpecReference[]; }; } //# sourceMappingURL=types.d.ts.map