Download desktop/src/types/session.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/e40073cc959cd4729bf4009662bca374c5c4e266/desktop/src/types/session.ts
- Command line
-
hf download hf://chenbhao/codev@e40073cc959cd4729bf4009662bca374c5c4e266/desktop/src/types/session.ts
-
curl -L -o session.ts https://huggingface.co/chenbhao/codev/resolve/e40073cc959cd4729bf4009662bca374c5c4e266/desktop/src/types/session.ts
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[] | |
| } | |