claude-simple-status 1.0.0 → 1.0.1
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/statusline.mjs +6 -3
package/package.json
CHANGED
package/statusline.mjs
CHANGED
|
@@ -248,9 +248,12 @@ async function main() {
|
|
|
248
248
|
const branch = getGitBranch();
|
|
249
249
|
|
|
250
250
|
// Build output
|
|
251
|
-
let output = `${branch ? `${YELLOW_BOLD}${branch}${RESET} | ` : ''}${CYAN}${model}${RESET} | ${colorPct(contextUsed)}
|
|
252
|
-
if (
|
|
253
|
-
output += ` | ${
|
|
251
|
+
let output = `${branch ? `${YELLOW_BOLD}${branch}${RESET} | ` : ''}${CYAN}${model}${RESET} | ${colorPct(contextUsed)}`;
|
|
252
|
+
if (token) {
|
|
253
|
+
output += ` | ${resetLocal} | 5h:${colorPct(fiveHourPct)} | 7d:${colorPct(sevenDayPct)}`;
|
|
254
|
+
if (hasError) {
|
|
255
|
+
output += ` | ${RED}ERR${RESET}`;
|
|
256
|
+
}
|
|
254
257
|
}
|
|
255
258
|
|
|
256
259
|
process.stdout.write(output);
|