@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.
Files changed (2) hide show
  1. package/index.ts +3 -11
  2. 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 rightWithoutProvider = modelName;
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
- rightWithoutProvider =
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ravshansbox/pi-statusline",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Statusline extension for pi",
5
5
  "license": "MIT",
6
6
  "type": "module",