Track session usage totals (#26644)

This commit is contained in:
Dax 2026-05-12 01:18:57 -04:00 committed by GitHub
commit 36d40fee4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 1882 additions and 26 deletions

View file

@ -11,6 +11,7 @@ import type {
Provider,
PermissionRequest,
QuestionRequest,
Session,
SessionStatus,
TextPart,
Config as SdkConfig,
@ -310,6 +311,7 @@ export type TuiState = {
readonly vcs: { branch?: string } | undefined
session: {
count: () => number
get: (sessionID: string) => Session | undefined
diff: (sessionID: string) => ReadonlyArray<TuiSidebarFileItem>
todo: (sessionID: string) => ReadonlyArray<TuiSidebarTodoItem>
messages: (sessionID: string) => ReadonlyArray<Message>