@bacnh85/pi-sub 0.1.21 → 0.1.22

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +5 -11
  3. package/package.json +2 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,35 @@
1
+ # Changelog
2
+
3
+ All notable changes to `pi-sub` will be documented in this file.
4
+
5
+ ## 0.1.22 (2026-07-30)
6
+
7
+ ### Improvements
8
+
9
+ - Patch version bump for release sync and package documentation update.
10
+
11
+ ## 0.1.21 (2026-07-24)
12
+
13
+ ### Features
14
+
15
+ - Added 9router adapter for tokens per second (tok/s) and endpoint display.
16
+ - Cleared stale context on session shutdown to prevent crashes on `/new`.
17
+
18
+ ## 0.1.15 (2026-07-16)
19
+
20
+ ### Features
21
+
22
+ - Added `zai-coding-cn` (Z.ai China / open.bigmodel.cn) usage monitoring.
23
+ - Surfaced Z.ai MCP/month + per-model usage in `/sub` detail view.
24
+
25
+ ## 0.1.10 (2026-07-10)
26
+
27
+ ### Features
28
+
29
+ - Added tok/s (tokens per second) display for response speed tracking.
30
+
31
+ ## 0.1.0 (2026-07-05)
32
+
33
+ ### Features
34
+
35
+ - Initial release of `pi-sub` subscription usage footer extension.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # pi-sub
1
+ # @bacnh85/pi-sub
2
2
 
3
3
  Pi extension that shows subscription usage for the currently selected supported model provider.
4
4
 
@@ -6,20 +6,10 @@ Supports OpenAI Codex (`openai-codex`) with live usage windows from ChatGPT's us
6
6
 
7
7
  ## Install
8
8
 
9
- From npm after the package is published:
10
-
11
9
  ```bash
12
10
  pi install npm:@bacnh85/pi-sub
13
11
  ```
14
12
 
15
- From this repository checkout:
16
-
17
- ```bash
18
- pi install ./pi-sub
19
- # or test directly
20
- pi -e ./pi-sub
21
- ```
22
-
23
13
  ## What it shows
24
14
 
25
15
  ### OpenAI Codex
@@ -145,6 +135,10 @@ Refreshes are cached briefly to avoid excessive usage endpoint calls.
145
135
  - For API-key-only providers, account labels come from stored auth metadata (`email`, `label`, `name`, or `accountId`) when available; otherwise `pi-sub` displays a non-secret SHA-256 key fingerprint such as `Z.ai key#1a2b3c4d`.
146
136
  - `pi-sub` redacts auth/token-related errors and never prints credentials.
147
137
 
138
+ ## Changelog
139
+
140
+ See [CHANGELOG.md](CHANGELOG.md) for release history.
141
+
148
142
  ## Design notes
149
143
 
150
144
  The extension is named `pi-sub` rather than `pi-codex-usage` so future subscription providers can be added as separate adapters. Supports OpenAI Codex (live usage API), OpenCode Go (session cost only), and the Z.ai GLM Coding Plan (international `zai` and China `zai-coding-cn`, which share a quota response format and are served by one parameterized adapter).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bacnh85/pi-sub",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Pi extension showing subscription usage for supported model providers.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,6 +26,7 @@
26
26
  ],
27
27
  "files": [
28
28
  "README.md",
29
+ "CHANGELOG.md",
29
30
  "extensions/index.ts",
30
31
  "extensions/package.json"
31
32
  ],