mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-05-21 15:52:37 +00:00
build: compile dist/ [auto]
This commit is contained in:
7
dist/render/session-line.js
vendored
7
dist/render/session-line.js
vendored
@@ -1,7 +1,7 @@
|
||||
import { isLimitReached } from '../types.js';
|
||||
import { getContextPercent, getBufferedPercent, getModelName, getProviderLabel, getTotalTokens } from '../stdin.js';
|
||||
import { getOutputSpeed } from '../speed-tracker.js';
|
||||
import { coloredBar, critical, cyan, dim, magenta, red, warning, yellow, getContextColor, getQuotaColor, quotaBar, RESET } from './colors.js';
|
||||
import { coloredBar, critical, cyan, dim, magenta, red, warning, yellow, getContextColor, getQuotaColor, quotaBar, claudeOrange, RESET } from './colors.js';
|
||||
import { getAdaptiveBarWidth } from '../utils/terminal.js';
|
||||
const DEBUG = process.env.DEBUG?.includes('claude-hud') || process.env.DEBUG === '*';
|
||||
/**
|
||||
@@ -188,6 +188,11 @@ export function renderSessionLine(ctx) {
|
||||
if (ctx.extraLabel) {
|
||||
parts.push(dim(ctx.extraLabel));
|
||||
}
|
||||
// Custom line (static user-defined text)
|
||||
const customLine = display?.customLine;
|
||||
if (customLine) {
|
||||
parts.push(claudeOrange(customLine));
|
||||
}
|
||||
let line = parts.join(' | ');
|
||||
// Token breakdown at high context
|
||||
if (display?.showTokenBreakdown !== false && percent >= 85) {
|
||||
|
||||
Reference in New Issue
Block a user