pi-clinepass 0.1.3 → 0.1.5
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 +8 -0
- package/README.md +1 -1
- package/package.json +54 -54
- package/src/catalog.ts +25 -0
- package/src/headers.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.1.5 - 2026-09-12
|
|
6
|
+
|
|
7
|
+
- New paid model: `cline-pass/deepseek-v4.1-flash` (measured rates pending calibration)
|
|
8
|
+
|
|
9
|
+
## 0.1.4 - 2026-09-09
|
|
10
|
+
|
|
11
|
+
- New free model: `cline-free/solar-pro4` and `cline-free/muse-spark-1.3-contributor`
|
|
12
|
+
|
|
5
13
|
## 0.1.3 - 2026-08-31
|
|
6
14
|
|
|
7
15
|
- Corrected model input modalities: `glm-5.3` and `deepseek-v4-flash` are text-only, `mimo-v2.5` and `qwen3.8-max` accept images
|
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
|
+
- **22 Models**: 16 ClinePass models on a dollar-based limit system plus 6 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
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pi-clinepass",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "ClinePass for pi — static measured-price catalog, server-truth billing meter, free models",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"ai",
|
|
7
|
-
"cline",
|
|
8
|
-
"cline-pass",
|
|
9
|
-
"clinepass",
|
|
10
|
-
"pi",
|
|
11
|
-
"pi-coding-agent",
|
|
12
|
-
"pi-package",
|
|
13
|
-
"pi-extension"
|
|
14
|
-
],
|
|
15
|
-
"license": "MIT",
|
|
16
|
-
"author": "fifidayone",
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/fifidayone/pi-clinepass.git"
|
|
20
|
-
},
|
|
21
|
-
"type": "module",
|
|
22
|
-
"main": "src/index.ts",
|
|
23
|
-
"types": "src/index.ts",
|
|
24
|
-
"files": [
|
|
25
|
-
"src",
|
|
26
|
-
"CHANGELOG.md",
|
|
27
|
-
"README.md",
|
|
28
|
-
"LICENSE"
|
|
29
|
-
],
|
|
30
|
-
"engines": {
|
|
31
|
-
"node": ">=22"
|
|
32
|
-
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"test": "vitest run",
|
|
35
|
-
"test:watch": "vitest",
|
|
36
|
-
"typecheck": "tsc --noEmit"
|
|
37
|
-
},
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"@earendil-works/pi-ai": "*",
|
|
40
|
-
"@earendil-works/pi-coding-agent": "*",
|
|
41
|
-
"@earendil-works/pi-tui": "*"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@types/node": "^26.3.0",
|
|
45
|
-
"typescript": "^7.0.2",
|
|
46
|
-
"vitest": "^4.1.11"
|
|
47
|
-
},
|
|
48
|
-
"pi": {
|
|
49
|
-
"extensions": [
|
|
50
|
-
"./src/index.ts"
|
|
51
|
-
],
|
|
52
|
-
"image": "https://raw.githubusercontent.com/fifidayone/pi-clinepass/main/assets/report.png"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "pi-clinepass",
|
|
3
|
+
"version": "0.1.5",
|
|
4
|
+
"description": "ClinePass for pi — static measured-price catalog, server-truth billing meter, free models",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ai",
|
|
7
|
+
"cline",
|
|
8
|
+
"cline-pass",
|
|
9
|
+
"clinepass",
|
|
10
|
+
"pi",
|
|
11
|
+
"pi-coding-agent",
|
|
12
|
+
"pi-package",
|
|
13
|
+
"pi-extension"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "fifidayone",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/fifidayone/pi-clinepass.git"
|
|
20
|
+
},
|
|
21
|
+
"type": "module",
|
|
22
|
+
"main": "src/index.ts",
|
|
23
|
+
"types": "src/index.ts",
|
|
24
|
+
"files": [
|
|
25
|
+
"src",
|
|
26
|
+
"CHANGELOG.md",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=22"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"test": "vitest run",
|
|
35
|
+
"test:watch": "vitest",
|
|
36
|
+
"typecheck": "tsc --noEmit"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@earendil-works/pi-ai": "*",
|
|
40
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
41
|
+
"@earendil-works/pi-tui": "*"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^26.3.0",
|
|
45
|
+
"typescript": "^7.0.2",
|
|
46
|
+
"vitest": "^4.1.11"
|
|
47
|
+
},
|
|
48
|
+
"pi": {
|
|
49
|
+
"extensions": [
|
|
50
|
+
"./src/index.ts"
|
|
51
|
+
],
|
|
52
|
+
"image": "https://raw.githubusercontent.com/fifidayone/pi-clinepass/main/assets/report.png"
|
|
53
|
+
}
|
|
54
|
+
}
|
package/src/catalog.ts
CHANGED
|
@@ -102,6 +102,28 @@ const XHIGH_MEDIUM_LOW: ThinkingLevelMap = {
|
|
|
102
102
|
max: null,
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
+
/** Only off/medium/high. Used for solar-pro4. */
|
|
106
|
+
const OFF_MEDIUM_HIGH: ThinkingLevelMap = {
|
|
107
|
+
off: "none",
|
|
108
|
+
minimal: null,
|
|
109
|
+
low: null,
|
|
110
|
+
medium: "medium",
|
|
111
|
+
high: "high",
|
|
112
|
+
xhigh: null,
|
|
113
|
+
max: null,
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/** minimal..xhigh, mandatory (no off, no max). Used for muse-spark contributor. */
|
|
117
|
+
const MANDATORY_NO_MAX: ThinkingLevelMap = {
|
|
118
|
+
off: null,
|
|
119
|
+
minimal: "minimal",
|
|
120
|
+
low: "low",
|
|
121
|
+
medium: "medium",
|
|
122
|
+
high: "high",
|
|
123
|
+
xhigh: "xhigh",
|
|
124
|
+
max: null,
|
|
125
|
+
};
|
|
126
|
+
|
|
105
127
|
/**
|
|
106
128
|
* ClinePass rejects the `developer` role; the API caps at `max_tokens` /
|
|
107
129
|
* `max_completion_tokens` with reasoning excluded from the completion cap,
|
|
@@ -146,6 +168,8 @@ export const MODELS: readonly ClinePassModel[] = [
|
|
|
146
168
|
model("z-ai/glm-5.3-flash", "GLM-5.3 Flash", [0, 0, 0], 921_600, 131_072, ["text", "image"], MAX_HIGH_LOW_MANDATORY),
|
|
147
169
|
model("deepseek/deepseek-v4-flash", "DeepSeek V4 Flash", [0, 0, 0], 921_600, 131_072, ["text"], MAX_HIGH_LOW),
|
|
148
170
|
model("poolside/laguna-s-2.1:free", "Laguna S-2.1", [0, 0, 0], 262_144, 131_072, ["text"], ALL_THINKING),
|
|
171
|
+
model("cline-free/solar-pro4", "Solar Pro 4", [0, 0, 0], 524_288, 131_072, ["text"], OFF_MEDIUM_HIGH),
|
|
172
|
+
model("cline-free/muse-spark-1.3-contributor", "Muse Spark 1.3 Contributor", [0, 0, 0], 921_600, 131_072, ["text", "image"], MANDATORY_NO_MAX),
|
|
149
173
|
// ── ClinePass models (measured billing prices) ─────────────────────────
|
|
150
174
|
model("cline-pass/glm-5.3-flash", "GLM-5.3 Flash", [0.15, 0.5, 0.03], 921_600, 131_072, ["text", "image"], MAX_HIGH_LOW_MANDATORY),
|
|
151
175
|
model("cline-pass/glm-5.3", "GLM-5.3", [1.4, 4.4, 0.26], 921_600, 131_072, ["text"], MAX_HIGH_LOW_MANDATORY),
|
|
@@ -154,6 +178,7 @@ export const MODELS: readonly ClinePassModel[] = [
|
|
|
154
178
|
model("cline-pass/kimi-k2.6", "Kimi K2.6", [1.58, 6.67, 0.27], 262_144, 131_072, ["text", "image"], ALL_THINKING),
|
|
155
179
|
model("cline-pass/kimi-k3", "Kimi K3", [6.0, 30.0, 0.6], 921_600, 131_072, ["text", "image"], MAX_HIGH_LOW),
|
|
156
180
|
model("cline-pass/deepseek-v4-pro", "DeepSeek V4 Pro", [1.65, 4.95, 0.06], 921_600, 131_072, ["text"], MAX_HIGH_LOW),
|
|
181
|
+
model("cline-pass/deepseek-v4.1-flash", "DeepSeek V4.1 Flash", [0.3, 1.2, 0.006], 921_600, 131_072, ["text", "image"], MAX_HIGH_LOW),
|
|
157
182
|
model("cline-pass/deepseek-v4-flash", "DeepSeek V4 Flash", [0.44, 1.32, 0.014], 921_600, 131_072, ["text"], MAX_HIGH_LOW),
|
|
158
183
|
model("cline-pass/mimo-v2.5", "MiMo-V2.5", [0.14, 0.28, 0.0028], 921_600, 131_072, ["text", "image"], ALL_THINKING),
|
|
159
184
|
model("cline-pass/mimo-v2.5-pro", "MiMo-V2.5-Pro", [0.435, 0.87, 0.0036], 921_600, 131_072, ["text"], ALL_THINKING),
|
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.61";
|
|
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
|
|