From 6c1373c33212e26521701acf73c0398721b3a881 Mon Sep 17 00:00:00 2001 From: Jacob Richman Date: Fri, 15 Aug 2025 20:18:31 -0700 Subject: Revert "Update semantic color tokens" (#6365) --- .../cli/src/ui/components/ModelStatsDisplay.tsx | 30 +++++++++------------- 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'packages/cli/src/ui/components/ModelStatsDisplay.tsx') diff --git a/packages/cli/src/ui/components/ModelStatsDisplay.tsx b/packages/cli/src/ui/components/ModelStatsDisplay.tsx index c3b109a3..1911e757 100644 --- a/packages/cli/src/ui/components/ModelStatsDisplay.tsx +++ b/packages/cli/src/ui/components/ModelStatsDisplay.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { Box, Text } from 'ink'; -import { theme } from '../semantic-colors.js'; +import { Colors } from '../colors.js'; import { formatDuration } from '../utils/formatters.js'; import { calculateAverageLatency, @@ -33,13 +33,13 @@ const StatRow: React.FC = ({ }) => ( - + {isSubtle ? ` ↳ ${title}` : title} {values.map((value, index) => ( - {value} + {value} ))} @@ -56,13 +56,11 @@ export const ModelStatsDisplay: React.FC = () => { return ( - - No API calls have been made in this session. - + No API calls have been made in this session. ); } @@ -84,12 +82,12 @@ export const ModelStatsDisplay: React.FC = () => { return ( - + Model Stats For Nerds @@ -97,15 +95,11 @@ export const ModelStatsDisplay: React.FC = () => { {/* Header */} - - Metric - + Metric {modelNames.map((name) => ( - - {name} - + {name} ))} @@ -132,7 +126,7 @@ export const ModelStatsDisplay: React.FC = () => { return ( 0 ? theme.status.error : theme.text.primary + m.api.totalErrors > 0 ? Colors.AccentRed : Colors.Foreground } > {m.api.totalErrors.toLocaleString()} ({errorRate.toFixed(1)}%) @@ -155,7 +149,7 @@ export const ModelStatsDisplay: React.FC = () => { ( - + {m.tokens.total.toLocaleString()} ))} @@ -172,7 +166,7 @@ export const ModelStatsDisplay: React.FC = () => { values={getModelValues((m) => { const cacheHitRate = calculateCacheHitRate(m); return ( - + {m.tokens.cached.toLocaleString()} ({cacheHitRate.toFixed(1)}%) ); -- cgit v1.2.3