@llblab/pi-codex-usage 0.5.0 → 0.5.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.5.1: Non-Codex Bucket Hotfix
6
+
7
+ - Fixed non-Codex app-server quota buckets so Spark-only or unrelated limits are ignored instead of being displayed as Codex quota.
8
+
3
9
  ## 0.5.0: Weekly Reset Countdown
4
10
 
5
11
  - Added refresh request coalescing so repeated statusline events share one quota lookup instead of spawning parallel provider/fallback requests. Impact: transient failures and busy session-tree updates no longer amplify Codex usage polling work.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ![Codex Usage](./banner.png)
6
6
 
7
- This repository is a minimal fork of [`narumiruna/pi-extensions/extensions/pi-codex-usage`](https://github.com/narumiruna/pi-extensions/tree/main/extensions/pi-codex-usage). It keeps the auth and quota-fetching path, but intentionally narrows the interface to the primary Codex 5-hour and weekly windows.
7
+ This repository is a minimal fork of [`narumiruna/pi-extensions/extensions/pi-codex-usage`](https://github.com/narumiruna/pi-extensions/tree/main/extensions/pi-codex-usage). It keeps the auth and quota-fetching path, but intentionally narrows the interface to the primary Codex 5-hour and weekly limits.
8
8
 
9
9
  ## Start Here
10
10
 
package/banner.png CHANGED
Binary file
package/index.ts CHANGED
@@ -925,7 +925,7 @@ function isUnavailableError(error: UsageQueryError): boolean {
925
925
  function selectPrimaryCodexSnapshot(
926
926
  report: CodexUsageReport,
927
927
  ): NormalizedRateLimitSnapshot | undefined {
928
- return report.snapshots.find(isPrimaryCodexSnapshot) ?? report.snapshots[0];
928
+ return report.snapshots.find(isPrimaryCodexSnapshot);
929
929
  }
930
930
 
931
931
  function normalizedUsageKey(value: string | undefined): string | undefined {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-codex-usage",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "private": false,
5
5
  "description": "Minimal Pi extension that shows primary Codex ChatGPT subscription usage limits.",
6
6
  "keywords": [