@narumitw/pi-statusline 0.1.12 → 0.1.13

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-statusline",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Pi extension that replaces the footer with an information-rich statusline.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/statusline.ts CHANGED
@@ -424,7 +424,9 @@ function formatExtensionStatuses(
424
424
 
425
425
  function formatExtensionStatus(key: string, value: string, theme: Theme): string {
426
426
  const text = truncateToWidth(simplifyExtensionStatus(key, value), 22, "…");
427
- return `${theme.fg(extensionColor(key, value), extensionIcon(key))} ${theme.fg("muted", text)}`;
427
+ const color = extensionColor(key, value);
428
+ const textColor = key.toLowerCase().includes("codex") ? color : "muted";
429
+ return `${theme.fg(color, extensionIcon(key))} ${theme.fg(textColor, text)}`;
428
430
  }
429
431
 
430
432
  function formatSubagentStatus(runtime: RuntimeState, theme: Theme): string[] {
@@ -453,6 +455,7 @@ function extensionIcon(key: string): string {
453
455
  if (normalizedKey.includes("caffeinate")) return "☕";
454
456
  if (normalizedKey.includes("chrome") || normalizedKey.includes("devtools") || normalizedKey === "cdp")
455
457
  return "🌐";
458
+ if (normalizedKey.includes("codex")) return "📊";
456
459
  if (normalizedKey.includes("firecrawl")) return "🔥";
457
460
  if (normalizedKey.includes("goal")) return "🎯";
458
461
  if (normalizedKey.includes("retry")) return "🔁";
@@ -462,6 +465,7 @@ function extensionIcon(key: string): string {
462
465
  function extensionColor(key: string, value: string): ThemeColor {
463
466
  const normalized = `${key} ${value}`.toLowerCase();
464
467
  if (/missing|error|fail|conflict|duplicate/.test(normalized)) return "warning";
468
+ if (normalized.includes("codex")) return "accent";
465
469
  if (/ready|active|running|enabled|ok/.test(normalized)) return "success";
466
470
  return "muted";
467
471
  }