@lokiyou/pi-nano-footer 0.15.5 → 0.15.7
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/index.ts +10 -5
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -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
|
|
181
|
+
return rainbow(text);
|
|
177
182
|
case "medium":
|
|
178
|
-
return paint(C.thinkingMedium,
|
|
183
|
+
return paint(C.thinkingMedium, text, true);
|
|
179
184
|
case "low":
|
|
180
|
-
return paint(C.thinkingLow,
|
|
185
|
+
return paint(C.thinkingLow, text);
|
|
181
186
|
case "minimal":
|
|
182
|
-
return paint(C.thinkingMinimal,
|
|
187
|
+
return paint(C.thinkingMinimal, text);
|
|
183
188
|
default:
|
|
184
|
-
return paint(C.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.
|
|
3
|
+
"version": "0.15.7",
|
|
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": [
|