feat(sessions): show token usage and estimated cost in logs (#557)

* feat(sessions): show token usage and estimated cost in logs

* fix(sessions): compact the usage footer

* fix(ci): bypass Bun cache for Windows ARM64
This commit is contained in:
Yiling-J
2026-12-01 20:49:07 +08:00
committed by GitHub
parent e3fe5792b9
commit bfeabb8244
16 changed files with 292 additions and 60 deletions
+1 -7
View File
@@ -8,13 +8,7 @@ declare global {
writes: import('./generated/prisma/internal/prismaNamespace').JsonValue[]
}
export interface AgentSessionUsage {
inputTokens: number
outputTokens: number
cacheReadTokens: number
totalTokens: number
cost: number
}
export type AgentSessionUsage = import('@shumai/dtos').AiUsageMetrics
export type PiSessionEntryData = { [key: string]: unknown }