mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-11 02:33:10 +08:00
Compare commits
1 Commits
patch-1
...
kpahel/mai
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03f3c0834f |
@@ -52,7 +52,7 @@ function buildContextBar(remaining) {
|
|||||||
if (used < 50) return ` \x1b[32m${bar} ${used}%\x1b[0m`;
|
if (used < 50) return ` \x1b[32m${bar} ${used}%\x1b[0m`;
|
||||||
if (used < 65) return ` \x1b[33m${bar} ${used}%\x1b[0m`;
|
if (used < 65) return ` \x1b[33m${bar} ${used}%\x1b[0m`;
|
||||||
if (used < 80) return ` \x1b[38;5;208m${bar} ${used}%\x1b[0m`;
|
if (used < 80) return ` \x1b[38;5;208m${bar} ${used}%\x1b[0m`;
|
||||||
return ` \x1b[5;31m${bar} ${used}%\x1b[0m`;
|
return ` \x1b[1;31m${bar} ${used}%\x1b[0m`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,7 +137,7 @@ function runStatusline() {
|
|||||||
parts.push(dur);
|
parts.push(dur);
|
||||||
}
|
}
|
||||||
if (parts.length > 0) {
|
if (parts.length > 0) {
|
||||||
metricsStr = `\x1b[36m${parts.join(' ')}\x1b[0m`;
|
metricsStr = `\x1b[38;5;117m${parts.join(' ')}\x1b[0m`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,7 +149,7 @@ function runStatusline() {
|
|||||||
const segments = [`\x1b[2m${model}\x1b[0m`];
|
const segments = [`\x1b[2m${model}\x1b[0m`];
|
||||||
|
|
||||||
if (task) {
|
if (task) {
|
||||||
segments.push(`\x1b[1m${task}\x1b[0m`);
|
segments.push(`\x1b[1;97m${task}\x1b[0m`);
|
||||||
}
|
}
|
||||||
if (metricsStr) {
|
if (metricsStr) {
|
||||||
segments.push(metricsStr);
|
segments.push(metricsStr);
|
||||||
|
|||||||
@@ -131,9 +131,9 @@ function runTests() {
|
|||||||
else failed++;
|
else failed++;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
test('20% remaining contains red blink ANSI code', () => {
|
test('20% remaining contains bold red ANSI code', () => {
|
||||||
const bar = buildContextBar(20);
|
const bar = buildContextBar(20);
|
||||||
assert.ok(bar.includes('\x1b[5;31m'), `Expected red blink ANSI in: ${JSON.stringify(bar)}`);
|
assert.ok(bar.includes('\x1b[1;31m'), `Expected bold red ANSI in: ${JSON.stringify(bar)}`);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
passed++;
|
passed++;
|
||||||
|
|||||||
Reference in New Issue
Block a user