@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 +6 -0
- package/index.ts +3 -3
- package/package.json +1 -1
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" : "
|
|
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: "
|
|
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
|
-
"
|
|
1334
|
+
"userMessageBg",
|
|
1335
1335
|
model,
|
|
1336
1336
|
);
|
|
1337
1337
|
}
|