pi-bar 0.3.31 → 0.3.32

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/README.md CHANGED
@@ -9,9 +9,9 @@
9
9
  claude-opus-4.7 ❯ think:med ❯ 2.6% / 1.0M ❯ Reviewing package structure ❯ plan:active
10
10
  ```
11
11
 
12
- ![pi-bar with low context usage](https://cdn.jsdelivr.net/npm/pi-bar@0.3.31/assets/screenshot-green.png)
13
- ![pi-bar with medium context usage](https://cdn.jsdelivr.net/npm/pi-bar@0.3.31/assets/screenshot-yellow.png)
14
- ![pi-bar with high context usage](https://cdn.jsdelivr.net/npm/pi-bar@0.3.31/assets/screenshot-red.png)
12
+ ![pi-bar with low context usage](https://cdn.jsdelivr.net/npm/pi-bar@0.3.32/assets/screenshot-green.png)
13
+ ![pi-bar with medium context usage](https://cdn.jsdelivr.net/npm/pi-bar@0.3.32/assets/screenshot-yellow.png)
14
+ ![pi-bar with high context usage](https://cdn.jsdelivr.net/npm/pi-bar@0.3.32/assets/screenshot-red.png)
15
15
 
16
16
  ## Why use it?
17
17
 
@@ -76,9 +76,6 @@ type FastModelAuth = {
76
76
 
77
77
  const STATUS_FILTER_ENTRY_TYPE = "pi-bar-status-filter";
78
78
  const SETTINGS_PROGRESS_KEY = "progress";
79
- // Legacy settings/env names. The `tldr` keys remain accepted so existing user
80
- // configs continue to work after the rename to "progress updates".
81
- const LEGACY_SETTINGS_TLDR_KEY = "tldr";
82
79
  const SETTINGS_BAR_KEY = "bar";
83
80
  const MAX_ACTIVITY_TEXT_CHARS = 800;
84
81
  const MAX_USER_TEXT_CHARS = 700;
@@ -173,12 +170,9 @@ function parseSegments(): SegmentName[] {
173
170
  const raw = process.env.PI_BAR_SHOW;
174
171
  if (!raw) return DEFAULT_SEGMENTS;
175
172
 
176
- // `tldr` is the legacy segment name, kept working as an alias so existing
177
- // PI_BAR_SHOW configs do not break after the rename to "progress".
178
173
  const requested = raw
179
174
  .split(",")
180
175
  .map((segment) => segment.trim().toLowerCase())
181
- .map((segment) => (segment === "tldr" ? "progress" : segment))
182
176
  .filter((segment): segment is SegmentName =>
183
177
  ["model", "thinking", "context", "progress", "extensions"].includes(segment),
184
178
  );
@@ -225,11 +219,8 @@ function parseProgressModelSpec(value: string): ProgressModelPreference | undefi
225
219
  function settingsModelValue(settings: Record<string, unknown>): string | undefined {
226
220
  const bar = settings[SETTINGS_BAR_KEY];
227
221
  if (bar && typeof bar === "object" && !Array.isArray(bar)) {
228
- const record = bar as Record<string, unknown>;
229
- // Canonical key after rename. Falls through to legacy `tldrModel` so old
230
- // settings still work without manual migration.
231
- if (typeof record.progressModel === "string") return record.progressModel;
232
- if (typeof record.tldrModel === "string") return record.tldrModel;
222
+ const value = (bar as Record<string, unknown>).progressModel;
223
+ if (typeof value === "string") return value;
233
224
  }
234
225
 
235
226
  const progressSection = settings[SETTINGS_PROGRESS_KEY];
@@ -238,20 +229,11 @@ function settingsModelValue(settings: Record<string, unknown>): string | undefin
238
229
  if (typeof value === "string") return value;
239
230
  }
240
231
 
241
- const legacy = settings[LEGACY_SETTINGS_TLDR_KEY];
242
- if (legacy && typeof legacy === "object" && !Array.isArray(legacy)) {
243
- const value = (legacy as Record<string, unknown>).model;
244
- if (typeof value === "string") return value;
245
- }
246
-
247
232
  return undefined;
248
233
  }
249
234
 
250
235
  function resolveProgressModelPreference(cwd: string): ProgressModelPreference | undefined {
251
- // PI_BAR_PROGRESS_MODEL is the canonical env var. PI_BAR_TLDR_MODEL is
252
- // honored as a backwards-compat alias for users who set it before the
253
- // rename.
254
- const envModel = process.env.PI_BAR_PROGRESS_MODEL ?? process.env.PI_BAR_TLDR_MODEL;
236
+ const envModel = process.env.PI_BAR_PROGRESS_MODEL;
255
237
  if (envModel) return parseProgressModelSpec(envModel);
256
238
 
257
239
  const settings = SettingsManager.create(cwd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-bar",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "description": "Pi footer/statusline showing active model, thinking level, context pressure, live progress updates, and extension statuses.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -14,8 +14,7 @@
14
14
  "thinking",
15
15
  "context",
16
16
  "context-window",
17
- "progress",
18
- "tldr"
17
+ "progress"
19
18
  ],
20
19
  "license": "MIT",
21
20
  "repository": {
@@ -52,6 +51,6 @@
52
51
  "extensions": [
53
52
  "./extensions/status-footer.ts"
54
53
  ],
55
- "image": "https://cdn.jsdelivr.net/npm/pi-bar@0.3.31/assets/screenshot-yellow.png"
54
+ "image": "https://cdn.jsdelivr.net/npm/pi-bar@0.3.32/assets/screenshot-yellow.png"
56
55
  }
57
56
  }