supermind-claude 4.0.1 → 4.0.2
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/hooks/statusline-command.js +7 -15
- package/package.json +1 -1
|
@@ -219,6 +219,7 @@ process.stdin.on("end", () => {
|
|
|
219
219
|
const SLATE = c(239); // ctx bar empty / separators
|
|
220
220
|
const LILAC = c(183); // thinking
|
|
221
221
|
const CORAL = c(209); // supabase
|
|
222
|
+
const ORANGE = c(214); // folder name
|
|
222
223
|
const GRAY = c(245); // labels
|
|
223
224
|
const WHITE = c(255); // bright text
|
|
224
225
|
const DKGRAY = c(237); // box chars
|
|
@@ -254,29 +255,20 @@ process.stdin.on("end", () => {
|
|
|
254
255
|
if (model) line1 += `${SEP}${ROSE}${model}${R}`;
|
|
255
256
|
if (gitBranch) line1 += `${SEP}${MINT}${BOLD}${gitBranch}${R}`;
|
|
256
257
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
const bar = contextBar(pct);
|
|
261
|
-
|
|
262
|
-
// Color the percentage by remaining capacity
|
|
263
|
-
let pctColor;
|
|
264
|
-
if (remaining > 50) pctColor = GREEN;
|
|
265
|
-
else if (remaining >= 25) pctColor = YELLOW;
|
|
266
|
-
else pctColor = RED;
|
|
267
|
-
|
|
268
|
-
line1 += `${SEP}${bar} ${pctColor}${BOLD}${pct}%${R}`;
|
|
269
|
-
}
|
|
258
|
+
// Folder name (basename of cwd)
|
|
259
|
+
const folderName = cwdUnix.split("/").filter(Boolean).pop() || "";
|
|
260
|
+
if (folderName) line1 += `${SEP}${ORANGE}${BOLD}${folderName}${R}`;
|
|
270
261
|
|
|
271
262
|
// ─── Line 2: wave progress + executors + cost ──────────────────────────
|
|
272
263
|
|
|
273
264
|
let line2 = `${DKGRAY}\u2570${R} `;
|
|
274
265
|
const parts2 = [];
|
|
275
266
|
|
|
276
|
-
//
|
|
267
|
+
// Context bar + token counts (compact)
|
|
277
268
|
if (usedTokens != null && windowSize) {
|
|
269
|
+
const barPrefix = usedPct != null ? `${contextBar(Math.round(usedPct))} ` : "";
|
|
278
270
|
parts2.push(
|
|
279
|
-
`${WHITE}${fmt(usedTokens)}${R}${GRAY}/${R}${WHITE}${fmt(windowSize)}${R}${GRAY} tokens${R}`,
|
|
271
|
+
`${barPrefix}${WHITE}${fmt(usedTokens)}${R}${GRAY}/${R}${WHITE}${fmt(windowSize)}${R}${GRAY} tokens${R}`,
|
|
280
272
|
);
|
|
281
273
|
}
|
|
282
274
|
|