@narumitw/pi-statusline 0.1.14 → 0.1.15

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/README.md CHANGED
@@ -55,6 +55,7 @@ Statuses from other extensions, such as goal mode, appear on their own compact i
55
55
  Examples:
56
56
 
57
57
  - `🎯 active` for goal mode.
58
+ - `💊 awake` while pi-caffeinate is preventing sleep.
58
59
  - `🧬 ✓` for Biome LSP readiness.
59
60
  - `🐍 ty ✓ ruff ✓` for Python LSP readiness.
60
61
  - `🧑‍🤝‍🧑 2 parallel` while subagents are active.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-statusline",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
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
@@ -452,7 +452,7 @@ function extensionIcon(key: string): string {
452
452
  if (normalizedKey.includes("python") || normalizedKey.includes("ruff") || normalizedKey.includes("ty"))
453
453
  return "🐍";
454
454
  if (normalizedKey.includes("subagent")) return "🧑‍🤝‍🧑";
455
- if (normalizedKey.includes("caffeinate")) return "";
455
+ if (normalizedKey.includes("caffeinate")) return "💊";
456
456
  if (normalizedKey.includes("chrome") || normalizedKey.includes("devtools") || normalizedKey === "cdp")
457
457
  return "🌐";
458
458
  if (normalizedKey.includes("codex")) return "📊";
@@ -464,9 +464,9 @@ function extensionIcon(key: string): string {
464
464
 
465
465
  function extensionColor(key: string, value: string): ThemeColor {
466
466
  const normalized = `${key} ${value}`.toLowerCase();
467
- if (/missing|error|fail|conflict|duplicate/.test(normalized)) return "warning";
467
+ if (/missing|error|fail|conflict|duplicate|unavailable/.test(normalized)) return "warning";
468
468
  if (normalized.includes("codex")) return "accent";
469
- if (/ready|active|running|enabled|ok/.test(normalized)) return "success";
469
+ if (/ready|active|running|enabled|awake|ok/.test(normalized)) return "success";
470
470
  return "muted";
471
471
  }
472
472