pi-clinepass 0.1.0 → 0.1.2

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 ADDED
@@ -0,0 +1,32 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## 0.1.2 - 2026-08-30
6
+
7
+ - New paid model: `cline-pass/glm-5.3-flash` ($0.15/$0.50/$0.03)
8
+ - New free model: `cline-free/longcat-2.0`
9
+ - Model picker shows prices
10
+ - Price calibration via `/clinepass` measures real billing and updates the whole panel; fatal errors abort the run
11
+ - `/clinepass` runs in a centered modal: dashboard (prices, plan sidebar) and calibration (live per-model progress, esc-esc cancel)
12
+ - Prices stored in `clinepass-prices.json`, seeded on install, synced per release
13
+ - Gateway thinking-stream corruption repaired
14
+ - pi's built-in cost estimate off for ClinePass (the footer meter is the single cost display, turn cost includes every tool-calling round)
15
+ - Free-route headers applied to every free model
16
+ - 403 on free routes classified as route gate, not subscription
17
+
18
+ ## 0.1.1 - 2026-08-27
19
+
20
+ - Catalog: `stealth/ox-alpha` is now `z-ai/glm-5.3-flash` (renamed)
21
+ - Context capped to 921600 for 1M models to avoid gateway edge
22
+ - Max output capped to 131072 for code-friendly limits
23
+ - Inputs updated per modalities (image where supported)
24
+ - Thinking levels mapped per model spec
25
+ - Prices adjusted to latest measured rates
26
+
27
+ ## 0.1.0 - 2026-08-26
28
+
29
+ - Initial release
30
+ - 16 models (13 paid, 3 free)
31
+ - Server-truth billing meter and plan report
32
+ - Login via Cline CLI, browser, or API key
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 fific
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 fific
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,117 +1,122 @@
1
- <div align="center">
2
-
3
- # pi-clinepass
4
-
5
- **ClinePass provider for [pi](https://pi.dev) coding agent**
6
-
7
- Dollar-based limits, live cost tracking, and plan cap reporting.
8
-
9
- <br>
10
-
11
- <p align="center">
12
- <a href="https://www.npmjs.com/package/pi-clinepass"><img src="https://img.shields.io/badge/npm-pi--clinepass-CB3837?style=for-the-badge&logo=npm&logoColor=white" alt="npm package"></a>
13
- <a href="https://www.typescriptlang.org"><img src="https://img.shields.io/badge/TypeScript-7.0-3178C6?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript 7"></a>
14
- <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node.js-%3E%3D22.19-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" alt="Node version"></a>
15
- <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-000000?style=for-the-badge" alt="MIT License"></a>
16
- </p>
17
-
18
- <br>
19
-
20
- <img src="https://raw.githubusercontent.com/fifidayone/pi-clinepass/main/assets/status.png" alt="pi-clinepass status meter" width="680">
21
-
22
- </div>
23
-
24
- <br>
25
-
26
- ## Highlights
27
-
28
- - **16 Models**: 13 ClinePass models on a dollar-based limit system plus 3 free tier models
29
- - **Live Status Meter**: Per-turn and session cost directly in the pi footer
30
- - **Plan Utilization**: 5-hour, weekly, and monthly caps tracked via `/clinepass`
31
- - **Simple Auth**: One-time login via Cline CLI, browser, or API key
32
-
33
- ---
34
-
35
- ## Installation
36
-
37
- Requires **Node.js 22.19+** and [pi](https://pi.dev).
38
-
39
- ```sh
40
- pi install npm:pi-clinepass
41
- ```
42
-
43
- ---
44
-
45
- ## Quickstart
46
-
47
- ### 1. Authenticate
48
-
49
- Run the login command inside pi:
50
-
51
- ```
52
- /login
53
- ```
54
-
55
- Select **ClinePass** to choose your sign-in method:
56
-
57
- <br>
58
-
59
- <div align="center">
60
- <img src="https://raw.githubusercontent.com/fifidayone/pi-clinepass/main/assets/login.png" alt="ClinePass login menu" width="620">
61
- </div>
62
-
63
- <br>
64
-
65
- - **Use existing sign-in (Cline CLI)**: keep using your Cline CLI account
66
- - **Sign in with browser**: log in once in your browser
67
- - **Enter API key**: paste your ClinePass key
68
-
69
- ### 2. Select a Model
70
-
71
- Pick any model using the interactive selector:
72
-
73
- ```
74
- /model
75
- ```
76
-
77
- ---
78
-
79
- ## Report
80
-
81
- View the live rate sheet and plan limit utilization anytime:
82
-
83
- ```
84
- /clinepass
85
- ```
86
-
87
- <div align="center">
88
- <img src="https://raw.githubusercontent.com/fifidayone/pi-clinepass/main/assets/report.png" alt="ClinePass report with pricing and plan limits" width="620">
89
- </div>
90
-
91
- ---
92
-
93
- ## Development
94
-
95
- ```sh
96
- git clone https://github.com/fifidayone/pi-clinepass.git
97
- cd pi-clinepass
98
- npm install
99
- npm test
100
- npm run typecheck
101
- ```
102
-
103
- ---
104
-
105
- ## Support
106
-
107
- pi-clinepass is free and will stay free. If you'd like to help, consider buying me a coffee:
108
-
109
- <p align="left">
110
- <a href="https://www.paypal.com/paypalme/fifidayone"><img src="https://img.shields.io/badge/PayPal-fifidayone-00457C?style=for-the-badge&logo=paypal&logoColor=white" alt="Support via PayPal"></a>
111
- </p>
112
-
113
- ---
114
-
115
- ## License
116
-
117
- [MIT](LICENSE) © 2026 fifidayone
1
+ <div align="center">
2
+
3
+ # pi-clinepass
4
+
5
+ **ClinePass for [pi](https://pi.dev) coding agent**
6
+
7
+ Dollar-based limits, live cost tracking, and plan cap reporting.
8
+
9
+ <br>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/pi-clinepass"><img src="https://img.shields.io/badge/npm-pi--clinepass-CB3837?style=for-the-badge&logo=npm&logoColor=white" alt="npm package"></a>
13
+ <a href="https://www.typescriptlang.org"><img src="https://img.shields.io/badge/TypeScript-7.0-3178C6?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript 7"></a>
14
+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node.js-%3E%3D22.19-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" alt="Node version"></a>
15
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-000000?style=for-the-badge" alt="MIT License"></a>
16
+ </p>
17
+
18
+ <br>
19
+
20
+ <img src="https://raw.githubusercontent.com/fifidayone/pi-clinepass/main/assets/status.png" alt="pi-clinepass status meter" width="680">
21
+
22
+ </div>
23
+
24
+ <br>
25
+
26
+ ## Highlights
27
+
28
+ - **18 Models**: 14 ClinePass models on a dollar-based limit system plus 4 free tier models
29
+ - **Live Status Meter**: Per-turn and session cost directly in the pi footer
30
+ - **Plan Utilization**: 5-hour, weekly, and monthly caps tracked via `/clinepass`
31
+ - **Price Calibration**: measure real gateway billing from `/clinepass` to keep displayed prices honest
32
+ - **Simple Auth**: One-time login via Cline CLI, browser, or API key
33
+
34
+ ---
35
+
36
+ ## Installation
37
+
38
+ Requires **Node.js 22.19+** and [pi](https://pi.dev).
39
+
40
+ ```sh
41
+ pi install npm:pi-clinepass
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Quickstart
47
+
48
+ ### 1. Authenticate
49
+
50
+ Run the login command inside pi:
51
+
52
+ ```
53
+ /login
54
+ ```
55
+
56
+ Select **ClinePass** to choose your sign-in method:
57
+
58
+ <br>
59
+
60
+ <div align="center">
61
+ <img src="https://raw.githubusercontent.com/fifidayone/pi-clinepass/main/assets/login.png" alt="ClinePass login menu" width="620">
62
+ </div>
63
+
64
+ <br>
65
+
66
+ - **Use existing sign-in (Cline CLI)**: keep using your Cline CLI account
67
+ - **Sign in with browser**: log in once in your browser
68
+ - **Enter API key**: paste your ClinePass key
69
+
70
+ ### 2. Select a Model
71
+
72
+ Pick any model using the interactive selector — prices are shown right in the picker:
73
+
74
+ ```
75
+ /model
76
+ ```
77
+
78
+ ---
79
+
80
+ ## Report
81
+
82
+ View the live rate sheet and plan limit utilization anytime:
83
+
84
+ ```
85
+ /clinepass
86
+ ```
87
+
88
+ The command opens a menu: the dashboard shows model rates and plan utilization
89
+ in a centered modal, or run **price calibration** to measure real gateway
90
+ billing and update the whole panel (uses ~5-10% of the 5-hour quota).
91
+
92
+ <div align="center">
93
+ <img src="https://raw.githubusercontent.com/fifidayone/pi-clinepass/main/assets/report.png" alt="ClinePass report with pricing and plan limits" width="620">
94
+ </div>
95
+
96
+ ---
97
+
98
+ ## Development
99
+
100
+ ```sh
101
+ git clone https://github.com/fifidayone/pi-clinepass.git
102
+ cd pi-clinepass
103
+ npm install
104
+ npm test
105
+ npm run typecheck
106
+ ```
107
+
108
+ ---
109
+
110
+ ## Support
111
+
112
+ pi-clinepass is free and will stay free. If you'd like to help, consider buying me a coffee:
113
+
114
+ <p align="left">
115
+ <a href="https://www.paypal.com/paypalme/fifidayone"><img src="https://img.shields.io/badge/PayPal-fifidayone-00457C?style=for-the-badge&logo=paypal&logoColor=white" alt="Support via PayPal"></a>
116
+ </p>
117
+
118
+ ---
119
+
120
+ ## License
121
+
122
+ [MIT](LICENSE) © 2026 fifidayone
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-clinepass",
3
- "version": "0.1.0",
4
- "description": "ClinePass provider for pi — static measured-price catalog, server-truth billing meter, free models",
3
+ "version": "0.1.2",
4
+ "description": "ClinePass for pi — static measured-price catalog, server-truth billing meter, free models",
5
5
  "keywords": [
6
6
  "ai",
7
7
  "cline",
@@ -37,7 +37,8 @@
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@earendil-works/pi-ai": "*",
40
- "@earendil-works/pi-coding-agent": "*"
40
+ "@earendil-works/pi-coding-agent": "*",
41
+ "@earendil-works/pi-tui": "*"
41
42
  },
42
43
  "devDependencies": {
43
44
  "@types/node": "^26.3.0",
@@ -47,6 +48,7 @@
47
48
  "pi": {
48
49
  "extensions": [
49
50
  "./src/index.ts"
50
- ]
51
+ ],
52
+ "image": "https://raw.githubusercontent.com/fifidayone/pi-clinepass/main/assets/report.png"
51
53
  }
52
54
  }