@llblab/pi-codex-usage 0.9.1 → 0.9.3

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,6 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 0.9.3: Trusted Release Automation
4
+
5
+ - Added tag-gated release automation with exact package/lock/tag identity checks, full package validation, npm Trusted Publisher provenance, public registry verification, and workflow-owned GitHub Release creation through `.github/workflows/release.yml`.
6
+ - Normalized nullable provider headers into the string-only request header contract, preserving compatibility with current Pi model-registry types while omitting intentionally removed headers.
4
7
 
5
8
  ## 0.9.1: Clear Weekly Quota Status
6
9
 
package/index.ts CHANGED
@@ -652,7 +652,10 @@ async function resolvePiCodexAuth(
652
652
  continue;
653
653
  }
654
654
 
655
- const headers = { ...(auth.headers ?? {}) };
655
+ const headers: Record<string, string> = {};
656
+ for (const [name, value] of Object.entries(auth.headers ?? {})) {
657
+ if (value !== null) headers[name] = value;
658
+ }
656
659
  if (!hasHeader(headers, "Authorization") && auth.apiKey) {
657
660
  headers.Authorization = `Bearer ${auth.apiKey}`;
658
661
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@llblab/pi-codex-usage",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "private": false,
5
- "description": "Minimal Pi extension that shows primary Codex ChatGPT subscription usage limits.",
5
+ "description": "Minimal Pi extension that shows primary Codex ChatGPT subscription usage limits",
6
6
  "keywords": [
7
7
  "pi-package",
8
8
  "pi-extension",
@@ -28,8 +28,9 @@
28
28
  "check": "node --experimental-strip-types -e \"await import('./index.ts'); console.log('pi-codex-usage: extension import ok')\"",
29
29
  "test": "node --experimental-strip-types --test test/*.test.ts",
30
30
  "typecheck": "tsc --noEmit",
31
+ "audit": "npm audit --omit=peer",
31
32
  "pack:dry": "npm pack --dry-run",
32
- "validate": "npm run typecheck && npm run test && npm run check && npm run pack:dry"
33
+ "validate": "npm run typecheck && npm run test && npm run check && npm run audit && npm run pack:dry"
33
34
  },
34
35
  "files": [
35
36
  "index.ts",