oh-pi 0.1.25 → 0.1.26

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": "oh-pi",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "One-click setup for pi-coding-agent. Like oh-my-zsh for pi.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -72,22 +72,15 @@ export default function (pi: ExtensionAPI) {
72
72
  const branchStr = branch ? theme.fg("accent", `⎇ ${branch}`) : "";
73
73
 
74
74
  const thinking = pi.getThinkingLevel();
75
+ const thinkColor = thinking === "high" ? "warning" : thinking === "medium" ? "accent" : thinking === "low" ? "dim" : "muted";
75
76
  const modelId = ctx.model?.id || "no-model";
76
- const modelStr = theme.fg("accent", `◆ ${modelId}`);
77
+ const modelStr = theme.fg(thinkColor, "◆") + " " + theme.fg("accent", modelId);
77
78
 
78
79
  const sep = theme.fg("dim", " | ");
79
80
  const leftParts = [modelStr, tokenStats, elapsed, cwdStr];
80
81
  if (branchStr) leftParts.push(branchStr);
81
82
  const left = leftParts.join(sep);
82
83
 
83
- const right = theme.fg("dim", thinking);
84
-
85
- const leftW = visibleWidth(left);
86
- const rightW = visibleWidth(right);
87
- const gap = width - leftW - rightW;
88
- if (gap >= 2) {
89
- return [truncateToWidth(left + " ".repeat(gap) + right, width)];
90
- }
91
84
  return [truncateToWidth(left, width)];
92
85
  },
93
86
  };