feat: split apart main.tsx

This commit is contained in:
Brooklyn Nicholson
2026-04-02 20:39:52 -05:00
parent 2818dd8611
commit bbba9ed4f2
16 changed files with 1710 additions and 1653 deletions

35
ui-tui/src/types.ts Normal file
View File

@@ -0,0 +1,35 @@
export interface ActiveTool {
id: string
name: string
}
export interface ApprovalReq {
command: string
description: string
}
export interface ClarifyReq {
choices: string[] | null
question: string
requestId: string
}
export interface Msg {
role: Role
text: string
}
export type Role = 'assistant' | 'system' | 'tool' | 'user'
export interface SessionInfo {
model: string
skills: Record<string, string[]>
tools: Record<string, string[]>
}
export interface Usage {
calls: number
input: number
output: number
total: number
}