@ravshansbox/pi-statusline 1.0.0 → 1.2.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/index.ts +3 -11
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -135,19 +135,11 @@ export default function (pi: ExtensionAPI) {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
const minPadding = 2;
|
|
138
|
-
const modelName = model?.id || 'no-model';
|
|
139
|
-
let
|
|
138
|
+
const modelName = model?.id.replace(/^claude-/, '') || 'no-model';
|
|
139
|
+
let right = modelName;
|
|
140
140
|
if (model?.reasoning) {
|
|
141
141
|
const level = ctx.thinkingLevel || 'off';
|
|
142
|
-
|
|
143
|
-
level === 'off' ? `${modelName} • thinking off` : `${modelName} • ${level}`;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
let right = rightWithoutProvider;
|
|
147
|
-
if (footerData.getAvailableProviderCount() > 1 && model) {
|
|
148
|
-
right = `(${model.provider}) ${rightWithoutProvider}`;
|
|
149
|
-
if (statsLeftWidth + minPadding + visibleWidth(right) > width)
|
|
150
|
-
right = rightWithoutProvider;
|
|
142
|
+
right = level === 'off' ? `${modelName} • thinking off` : `${modelName} • ${level}`;
|
|
151
143
|
}
|
|
152
144
|
|
|
153
145
|
const rightWidth = visibleWidth(right);
|