@narumitw/pi-statusline 0.17.2 → 0.20.0
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 +4 -4
- package/src/render.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-statusline",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Pi extension that replaces the footer with an information-rich statusline.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "2.5.3",
|
|
33
|
-
"@earendil-works/pi-coding-agent": "0.80.
|
|
34
|
-
"@earendil-works/pi-tui": "0.80.
|
|
33
|
+
"@earendil-works/pi-coding-agent": "0.80.10",
|
|
34
|
+
"@earendil-works/pi-tui": "0.80.10",
|
|
35
35
|
"@types/node": "26.1.1",
|
|
36
|
-
"typescript": "
|
|
36
|
+
"typescript": "7.0.2"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
package/src/render.ts
CHANGED
|
@@ -164,7 +164,7 @@ function pickColor(config: StatuslineConfig, index: number): ThemeColor {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
function thinkingColor(level: ThinkingLevel): ThemeColor {
|
|
167
|
-
switch (level) {
|
|
167
|
+
switch (level as string) {
|
|
168
168
|
case "off":
|
|
169
169
|
return "dim";
|
|
170
170
|
case "minimal":
|
|
@@ -177,6 +177,10 @@ function thinkingColor(level: ThinkingLevel): ThemeColor {
|
|
|
177
177
|
return "thinkingHigh";
|
|
178
178
|
case "xhigh":
|
|
179
179
|
return "thinkingXhigh";
|
|
180
|
+
case "max":
|
|
181
|
+
return "thinkingMax" as ThemeColor;
|
|
182
|
+
default:
|
|
183
|
+
return "dim";
|
|
180
184
|
}
|
|
181
185
|
}
|
|
182
186
|
|