pi-clinepass 0.1.6 → 0.1.7
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 +5 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/catalog.ts +0 -12
- package/src/headers.ts +1 -1
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.1.7 - 2026-10-01
|
|
6
|
+
|
|
7
|
+
- Retired model removed: `cline-free/gemini-3.8-flash` (dropped from the gateway's free tier)
|
|
8
|
+
- Free-route client headers track the latest CLI release
|
|
9
|
+
|
|
5
10
|
## 0.1.6 - 2026-09-25
|
|
6
11
|
|
|
7
12
|
- New free models: `cline-free/gemini-3.8-flash` (mandatory low/medium/high reasoning), `stealth/space-bunny-alpha`, `cline-free/mimo-v2.6-flash`, and `cline-free/deepseek-v4.1-flash`
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Dollar-based limits, live cost tracking, and plan cap reporting.
|
|
|
25
25
|
|
|
26
26
|
## Highlights
|
|
27
27
|
|
|
28
|
-
- **
|
|
28
|
+
- **16 Models**: 12 ClinePass models on a dollar-based limit system plus 4 free tier models
|
|
29
29
|
- **Live Status Meter**: Per-turn and session cost directly in the pi footer
|
|
30
30
|
- **Plan Utilization**: 5-hour, weekly, and monthly caps tracked via `/clinepass`
|
|
31
31
|
- **Price Calibration**: measure real gateway billing from `/clinepass` to keep displayed prices honest
|
package/package.json
CHANGED
package/src/catalog.ts
CHANGED
|
@@ -102,17 +102,6 @@ const XHIGH_MEDIUM_LOW: ThinkingLevelMap = {
|
|
|
102
102
|
max: null,
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
/** Only low/medium/high, mandatory (no off). Used for gemini-3.8-flash. */
|
|
106
|
-
const LOW_MEDIUM_HIGH_MANDATORY: ThinkingLevelMap = {
|
|
107
|
-
off: null,
|
|
108
|
-
minimal: null,
|
|
109
|
-
low: "low",
|
|
110
|
-
medium: "medium",
|
|
111
|
-
high: "high",
|
|
112
|
-
xhigh: null,
|
|
113
|
-
max: null,
|
|
114
|
-
};
|
|
115
|
-
|
|
116
105
|
/** Only off/medium/high. Used for solar-pro4. */
|
|
117
106
|
const OFF_MEDIUM_HIGH: ThinkingLevelMap = {
|
|
118
107
|
off: "none",
|
|
@@ -175,7 +164,6 @@ function model(
|
|
|
175
164
|
/** Measured prices ($/1M tokens: input/output/cacheRead) — latest verified. */
|
|
176
165
|
export const MODELS: readonly ClinePassModel[] = [
|
|
177
166
|
// ── Free models (Cline free tier, cost 0) ──────────────────────────────
|
|
178
|
-
model("cline-free/gemini-3.8-flash", "Gemini 3.8 Flash", [0, 0, 0], 921_600, 65_536, ["text", "image"], LOW_MEDIUM_HIGH_MANDATORY),
|
|
179
167
|
model("stealth/space-bunny-alpha", "Space Bunny Alpha", [0, 0, 0], 921_600, 131_072, ["text", "image"], ALL_THINKING),
|
|
180
168
|
model("cline-free/mimo-v2.6-flash", "MiMo-V2.6-Flash", [0, 0, 0], 921_600, 131_072, ["text", "image"], ALL_THINKING),
|
|
181
169
|
model("cline-free/deepseek-v4.1-flash", "DeepSeek V4.1 Flash", [0, 0, 0], 921_600, 131_072, ["text", "image"], MAX_HIGH_LOW),
|
package/src/headers.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { release } from "node:os";
|
|
12
12
|
import { isFreeModel } from "./catalog.js";
|
|
13
13
|
|
|
14
|
-
const FALLBACK_CLINE_VERSION = "3.0.
|
|
14
|
+
const FALLBACK_CLINE_VERSION = "3.0.67";
|
|
15
15
|
const VERSION_CACHE_TTL_MS = 24 * 60 * 60 * 1000;
|
|
16
16
|
const NPM_REGISTRY_URL = "https://registry.npmjs.org/cline/latest";
|
|
17
17
|
|
package/src/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* pi-clinepass — ClinePass for pi.
|
|
3
3
|
*
|
|
4
4
|
* Registers the `clinepass` provider (12 paid models with measured billing
|
|
5
|
-
* prices +
|
|
5
|
+
* prices + 4 free models) and wires the hooks that keep pi's numbers real:
|
|
6
6
|
* - message_end → server-truth cost meter + session total + error surface + thinking repair
|
|
7
7
|
* - before_provider_headers → free-route Cline-CLI headers
|
|
8
8
|
* - model_select / session_start → immediate meter + default model sync
|