claude-code-hud 0.3.15 → 0.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tui/hud.tsx +11 -8
package/package.json
CHANGED
package/tui/hud.tsx
CHANGED
|
@@ -1033,7 +1033,7 @@ function App() {
|
|
|
1033
1033
|
<Box flexDirection="column" height={termHeight}>
|
|
1034
1034
|
|
|
1035
1035
|
{/* ── Header / Tab bar ── */}
|
|
1036
|
-
<Box height={
|
|
1036
|
+
<Box height={3} borderStyle="single" borderColor={ctxPct > 0.85 ? (blinkOn ? C.red : C.border) : ctxPct > 0.65 ? C.yellow : C.brand} paddingX={1} justifyContent="space-between">
|
|
1037
1037
|
<Box>
|
|
1038
1038
|
<Text color={C.brand} bold>◆ HUD</Text>
|
|
1039
1039
|
{TAB_NAMES.map((name, i) => (
|
|
@@ -1047,15 +1047,15 @@ function App() {
|
|
|
1047
1047
|
))}
|
|
1048
1048
|
</Box>
|
|
1049
1049
|
<Box>
|
|
1050
|
-
<Text color={C.
|
|
1051
|
-
<Text color={C.
|
|
1050
|
+
<Text color={C.border}> │ </Text>
|
|
1051
|
+
<Text color={C.text} bold>{modelShort(usage.model)}</Text>
|
|
1052
1052
|
</Box>
|
|
1053
1053
|
</Box>
|
|
1054
1054
|
|
|
1055
1055
|
{/* ── Content: fixed height so header/footer never get pushed off screen ── */}
|
|
1056
1056
|
{(() => {
|
|
1057
|
-
// header ~
|
|
1058
|
-
const contentH = Math.max(4, termHeight -
|
|
1057
|
+
// header ~3 rows, footer key row ~1, footer dir row ~3 = 7 total chrome
|
|
1058
|
+
const contentH = Math.max(4, termHeight - 7);
|
|
1059
1059
|
return (
|
|
1060
1060
|
<Box flexDirection="column" height={contentH} overflow="hidden">
|
|
1061
1061
|
{showHelp ? (
|
|
@@ -1104,9 +1104,12 @@ function App() {
|
|
|
1104
1104
|
</Box>
|
|
1105
1105
|
|
|
1106
1106
|
{/* ── Footer row 2: current dir ── */}
|
|
1107
|
-
<Box height={3} paddingX={1} borderStyle="single" borderColor={C.brand}>
|
|
1108
|
-
<
|
|
1109
|
-
|
|
1107
|
+
<Box height={3} paddingX={1} borderStyle="single" borderColor={C.brand} justifyContent="space-between">
|
|
1108
|
+
<Box>
|
|
1109
|
+
<Text color={C.brand} bold>◆ </Text>
|
|
1110
|
+
<Text color={C.text} bold>~/{basename(cwd)}</Text>
|
|
1111
|
+
</Box>
|
|
1112
|
+
<Text color={C.dimmer}>up {fmtSince(Date.now() - SESSION_START)}</Text>
|
|
1110
1113
|
</Box>
|
|
1111
1114
|
|
|
1112
1115
|
</Box>
|