add typecheck script and fix TypeScript errors (#48)

This commit is contained in:
Chris Scott authored and GitHub committed 2026-01-04 17:11:53 -05:00
1 parent e853660ad3
commit ed4bc17987
14 files changed
+371 -137

No files matched your search

@@ -145,7 +145,8 @@ export const MessagePart = memo(function MessagePart({ part, role, allParts, par
)
case 'step-finish': {
const isFree = part.cost === 0
const costText = isMobile && isFree ? null : <span>${part.cost.toFixed(4)} • {part.tokens.input + part.tokens.output} tokens</span>
const totalTokens = part.tokens.input + part.tokens.output + (part.tokens.cache?.read || 0)
const costText = isMobile && isFree ? null : <span>${part.cost.toFixed(4)} • {totalTokens} tokens</span>
return (
<div className="text-xs text-muted-foreground my-1 flex items-center gap-2">
{costText}