@lokiyou/pi-nano-footer 0.15.4 → 0.15.6

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.
Files changed (2) hide show
  1. package/index.ts +11 -6
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -14,7 +14,7 @@ const icons = {
14
14
  model: "\uec19", // nf-md-chip
15
15
  mcp: "\u{f048d}", // nf-md-server-network
16
16
  folder: "\uf115", // nf-fa-folder_open
17
- thinking: "\ueab4", // nf-mdi-lightbulb
17
+ thinking: "\uf0eb", // nf-fa-lightbulb
18
18
  context: "\ue70f", // nf-dev-database
19
19
  cache: "\uf1c0", // nf-fa-database
20
20
  input: "\uf090", // nf-fa-sign_in
@@ -170,18 +170,23 @@ function paint(hex: string, text: string, bold = false): string {
170
170
 
171
171
  /** 渲染思考等级 */
172
172
  function renderThinkingN(level: string): string {
173
+ const label = level === "minimal" ? "min"
174
+ : level === "medium" ? "med"
175
+ : level;
176
+ const text = `${icons.thinking} think:${label}`;
177
+
173
178
  switch (level) {
174
179
  case "high":
175
180
  case "xhigh":
176
- return paint("#fff6b0", icons.thinking, true);
181
+ return paint("#fff6b0", text, true);
177
182
  case "medium":
178
- return paint(C.thinkingMedium, icons.thinking, true);
183
+ return paint(C.thinkingMedium, text, true);
179
184
  case "low":
180
- return paint(C.thinkingLow, icons.thinking);
185
+ return paint(C.thinkingLow, text);
181
186
  case "minimal":
182
- return paint(C.thinkingMinimal, icons.thinking);
187
+ return paint(C.thinkingMinimal, text);
183
188
  default:
184
- return paint(C.thinking, icons.thinking);
189
+ return paint(C.thinking, text);
185
190
  }
186
191
  }
187
192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokiyou/pi-nano-footer",
3
- "version": "0.15.4",
3
+ "version": "0.15.6",
4
4
  "description": "Lightweight powerline-style footer for Pi Coding Agent that shows model, thinking level, directory, MCP status, context usage, tokens, and cost while keeping the built-in Working indicator.",
5
5
  "type": "module",
6
6
  "keywords": [