codev / desktop /src /types /session.ts
chenbhao's picture
feat: desktop
1f21206
Raw
History Blame
600 Bytes
// Source: src/server/services/sessionService.ts
export type SessionListItem = {
id: string
title: string
createdAt: string
modifiedAt: string
messageCount: number
projectPath: string
projectRoot?: string | null
workDir: string | null
workDirExists: boolean
}
export type MessageEntry = {
id: string
type: 'user' | 'assistant' | 'system' | 'tool_use' | 'tool_result'
content: unknown
timestamp: string
model?: string
parentUuid?: string
parentToolUseId?: string
isSidechain?: boolean
}
export type SessionDetail = SessionListItem & {
messages: MessageEntry[]
}