@llblab/pi-codex-usage 0.10.0 → 0.10.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 0.10.1: Softer Quota Bar
6
+
7
+ - Changed the normal and loading dual-quota bar background from `selectedBg` to the softer themed `userMessageBg`; exhausted quotas still use `toolErrorBg`. The bar is less prominent across dark and light themes without altering quota values or countdowns.
8
+
3
9
  ## 0.10.0: Business Credit Usage
4
10
 
5
11
  - Added Business-account credit usage support for responses that do not expose Codex rate-limit windows. Impact: the statusline now shows rounded remaining credit percentage and an optional reset countdown while preserving existing rate-limit displays when both forms are available.
package/index.ts CHANGED
@@ -1136,7 +1136,7 @@ export function formatCodexUsageStatusline(
1136
1136
  const barText = formatStatuslineBarText(
1137
1137
  ctx,
1138
1138
  bar ?? "",
1139
- hasExhaustedQuotaWindow(report, model) ? "toolErrorBg" : "selectedBg",
1139
+ hasExhaustedQuotaWindow(report, model) ? "toolErrorBg" : "userMessageBg",
1140
1140
  model,
1141
1141
  );
1142
1142
  return countdown
@@ -1299,7 +1299,7 @@ function formatStatuslineText(
1299
1299
  function formatStatuslineBarText(
1300
1300
  ctx: ExtensionContext,
1301
1301
  bar: string,
1302
- background: "selectedBg" | "toolErrorBg" = "selectedBg",
1302
+ background: "userMessageBg" | "toolErrorBg",
1303
1303
  model?: CodexUsageModel,
1304
1304
  ): string {
1305
1305
  const label = ctx.ui.theme.fg("accent", activeUsageLabel(model));
@@ -1331,7 +1331,7 @@ function formatStatuslineLoading(
1331
1331
  return formatStatuslineBarText(
1332
1332
  ctx,
1333
1333
  formatCodexUsageLoadingBar(frame),
1334
- "selectedBg",
1334
+ "userMessageBg",
1335
1335
  model,
1336
1336
  );
1337
1337
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-codex-usage",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "private": false,
5
5
  "description": "Minimal Pi extension that shows primary Codex ChatGPT subscription usage limits",
6
6
  "keywords": [