pi-wafer-provider 1.1.38 → 1.1.40
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/README.md +1 -0
- package/bun.lock +14 -11
- package/models.json +23 -0
- package/package.json +5 -2
- package/scripts/test-pi-compat.mjs +2 -2
package/README.md
CHANGED
|
@@ -84,6 +84,7 @@ pi
|
|
|
84
84
|
| GLM-5.3 | Text | 1M | 1M | $1.40 | $4.40 | $0.26 |
|
|
85
85
|
| GLM-5.3-Flash | Text + Image | 1M | 1M | $0.15 | $0.50 | $0.03 |
|
|
86
86
|
| Kimi-K3 | Text + Image | 1M | 16K | $3.00 | $15.00 | $0.30 |
|
|
87
|
+
| Nemotron-3.5-Lightning | Text | 262K | 262K | $0.05 | $0.20 | $0.03 |
|
|
87
88
|
| Qwen3.8-27B | Text + Image | 262K | 262K | $0.42 | $2.55 | $0.09 |
|
|
88
89
|
|
|
89
90
|
*Costs are per million tokens. Prices based on official provider pricing.*
|
package/bun.lock
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "pi-wafer-provider",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
8
|
+
"@earendil-works/pi-coding-agent": "1.1.0",
|
|
9
9
|
"@types/node": "^25.9.1",
|
|
10
10
|
"typescript": "6.0.3",
|
|
11
11
|
},
|
|
@@ -14,8 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
|
+
"overrides": {
|
|
18
|
+
"brace-expansion": "5.0.12",
|
|
19
|
+
},
|
|
17
20
|
"packages": {
|
|
18
|
-
"@anthropic-ai/sdk": ["@anthropic-ai/sdk@0.
|
|
21
|
+
"@anthropic-ai/sdk": ["@anthropic-ai/sdk@0.129.0", "", { "dependencies": { "json-schema-to-ts": "^3.1.1", "standardwebhooks": "^1.0.0" }, "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["zod"], "bin": { "anthropic-ai-sdk": "bin/cli" } }, "sha512-MH7LB20kNpGLUpPTe2OG5XvL/KhX8HUO9XyBaFjgFk6TLS4Xjt0VPIuMKywe7POKKPslX+QxSlVok9e+8kG5Nw=="],
|
|
19
22
|
|
|
20
23
|
"@aws-sdk/client-bedrock-runtime": ["@aws-sdk/client-bedrock-runtime@3.1127.0", "", { "dependencies": { "@aws-sdk/core": "^3.977.9", "@aws-sdk/credential-provider-node": "^3.972.82", "@aws-sdk/eventstream-handler-node": "^3.972.34", "@aws-sdk/middleware-eventstream": "^3.972.29", "@aws-sdk/middleware-websocket": "^3.972.52", "@aws-sdk/token-providers": "3.1127.0", "@aws-sdk/types": "^3.974.5", "@smithy/core": "^3.33.3", "@smithy/fetch-http-handler": "^5.7.2", "@smithy/node-http-handler": "^4.11.3", "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-IDl/lrPb90aH+pZFHGNDmgH9nAUQj5PlZH1sJ3w7RikctyjHSnY3oNjZhrLoaBoQn/rNK0zsP6OHEqEhj2tdLA=="],
|
|
21
24
|
|
|
@@ -57,21 +60,21 @@
|
|
|
57
60
|
|
|
58
61
|
"@babel/runtime": ["@babel/runtime@7.29.7", "", {}, "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw=="],
|
|
59
62
|
|
|
60
|
-
"@earendil-works/chord": ["@earendil-works/chord@1.
|
|
63
|
+
"@earendil-works/chord": ["@earendil-works/chord@1.1.0", "", { "dependencies": { "esbuild": "0.28.2" } }, "sha512-gsHzKfyQ3t0ZIQ3cLBjJ5Vqy1TYnFyruHIV3g3BwmulCDYe5BW4yT9vaJk9QzN6YANILIO75uzuq+Gdxtzz1og=="],
|
|
61
64
|
|
|
62
|
-
"@earendil-works/pi-agent-core": ["@earendil-works/pi-agent-core@1.
|
|
65
|
+
"@earendil-works/pi-agent-core": ["@earendil-works/pi-agent-core@1.1.0", "", { "dependencies": { "@earendil-works/pi-ai": "^1.1.0", "typebox": "1.3.27" } }, "sha512-aX1KZomNCPmwYnXa3OivF3VYLJ+WPUkIJlEIZTgwdOZdY/+oToWTQ334WYpQeOz9POpiYFNMJLPwIhXQ4e48kg=="],
|
|
63
66
|
|
|
64
|
-
"@earendil-works/pi-ai": ["@earendil-works/pi-ai@1.
|
|
67
|
+
"@earendil-works/pi-ai": ["@earendil-works/pi-ai@1.1.0", "", { "dependencies": { "@anthropic-ai/sdk": "0.129.0", "@aws-sdk/client-bedrock-runtime": "3.1127.0", "@earendil-works/pi-telemetry": "^1.1.0", "@google/genai": "2.21.0", "@smithy/node-http-handler": "4.12.1", "http-proxy-agent": "9.1.0", "https-proxy-agent": "9.1.0", "openai": "7.19.0", "partial-json": "0.1.7", "typebox": "1.3.27" }, "bin": { "pi-ai": "dist/cli.js" } }, "sha512-1T7LAkc/5Bvc0v6w4vAGVdCrli0o/E0pEmYKTnixu95vSFArBjvbhS/G4ZwI0RUePgf0Imcu0VyqlM4EcXxqfw=="],
|
|
65
68
|
|
|
66
|
-
"@earendil-works/pi-codemode": ["@earendil-works/pi-codemode@1.
|
|
69
|
+
"@earendil-works/pi-codemode": ["@earendil-works/pi-codemode@1.1.0", "", { "dependencies": { "quickjs-wasi": "3.6.2" } }, "sha512-8Asc2AzhoNaXS1snmRFa96OhcWIlFM5k1Kuiz6p2DvIYgi5QHQccRAmDVY9oO92TzWrizpvQpconZGQ7JhlI7Q=="],
|
|
67
70
|
|
|
68
|
-
"@earendil-works/pi-coding-agent": ["@earendil-works/pi-coding-agent@1.
|
|
71
|
+
"@earendil-works/pi-coding-agent": ["@earendil-works/pi-coding-agent@1.1.0", "", { "dependencies": { "@earendil-works/chord": "^1.1.0", "@earendil-works/pi-agent-core": "^1.1.0", "@earendil-works/pi-ai": "^1.1.0", "@earendil-works/pi-codemode": "^1.1.0", "@earendil-works/pi-mcp": "^1.1.0", "@earendil-works/pi-tui": "^1.1.0", "@silvia-odwyer/photon-node": "0.3.4", "brace-expansion": "5.0.12", "chalk": "6.0.0", "cross-spawn": "7.0.6", "diff": "8.0.4", "grok-mermaid": "0.2.3", "highlight.js": "10.7.3", "hosted-git-info": "9.0.3", "ignore": "7.0.8", "jiti": "2.7.0", "minimatch": "10.2.6", "proper-lockfile": "4.1.2", "quickjs-wasi": "3.6.2", "semver": "7.8.5", "typebox": "1.3.27", "undici": "8.10.2", "yaml": "2.9.0" }, "bin": { "pi": "dist/bundle/cli.js" } }, "sha512-SeEi/4hdcHNgA9UWlefZl7ZZpm3dzi2OoxNjDHsBJ9o298LNOtbL4DGKgitlEj6uCTccvtw6f2hlCkTPVJ2RXg=="],
|
|
69
72
|
|
|
70
|
-
"@earendil-works/pi-mcp": ["@earendil-works/pi-mcp@1.
|
|
73
|
+
"@earendil-works/pi-mcp": ["@earendil-works/pi-mcp@1.1.0", "", { "dependencies": { "cross-spawn": "7.0.6" } }, "sha512-xGKwvu3SvVTeoIx8Z7UGoJprB4VK20wKORMhufcWGx61fIauhu3J+UqfB5eeoF1oE/geYBA598K6nh1SdABQkg=="],
|
|
71
74
|
|
|
72
|
-
"@earendil-works/pi-telemetry": ["@earendil-works/pi-telemetry@1.
|
|
75
|
+
"@earendil-works/pi-telemetry": ["@earendil-works/pi-telemetry@1.1.0", "", {}, "sha512-8gAK05/2pPozZZz6hCLOi8x2vsqzvsmO9gG92kbvuvTPm0qMHaFlaXX98ndXsrOi5pmzha7vNLguuG4+0Rgxjw=="],
|
|
73
76
|
|
|
74
|
-
"@earendil-works/pi-tui": ["@earendil-works/pi-tui@1.
|
|
77
|
+
"@earendil-works/pi-tui": ["@earendil-works/pi-tui@1.1.0", "", { "dependencies": { "get-east-asian-width": "1.6.0", "marked": "18.0.11" } }, "sha512-v7wkS0y2ErZvZkSfemqd9RrBZJ5x6p8Ujsv7NdJj01IXJyFM0kNL6rMdcKcvTe7EVTd6ugvDB9VPZSoaBF9QxQ=="],
|
|
75
78
|
|
|
76
79
|
"@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.28.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ=="],
|
|
77
80
|
|
|
@@ -175,7 +178,7 @@
|
|
|
175
178
|
|
|
176
179
|
"bowser": ["bowser@2.14.1", "", {}, "sha512-tzPjzCxygAKWFOJP011oxFHs57HzIhOEracIgAePE4pqB3LikALKnSzUyU4MGs9/iCEUuHlAJTjTc5M+u7YEGg=="],
|
|
177
180
|
|
|
178
|
-
"brace-expansion": ["brace-expansion@5.0.
|
|
181
|
+
"brace-expansion": ["brace-expansion@5.0.12", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ=="],
|
|
179
182
|
|
|
180
183
|
"buffer-equal-constant-time": ["buffer-equal-constant-time@1.0.1", "", {}, "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="],
|
|
181
184
|
|
package/models.json
CHANGED
|
@@ -186,6 +186,29 @@
|
|
|
186
186
|
"supportsReasoningEffort": true
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
|
+
{
|
|
190
|
+
"id": "Nemotron-3.5-Lightning",
|
|
191
|
+
"name": "Nemotron-3.5-Lightning",
|
|
192
|
+
"reasoning": true,
|
|
193
|
+
"input": [
|
|
194
|
+
"text"
|
|
195
|
+
],
|
|
196
|
+
"cost": {
|
|
197
|
+
"input": 0.05,
|
|
198
|
+
"output": 0.2,
|
|
199
|
+
"cacheRead": 0.03,
|
|
200
|
+
"cacheWrite": 0
|
|
201
|
+
},
|
|
202
|
+
"contextWindow": 262144,
|
|
203
|
+
"maxTokens": 262144,
|
|
204
|
+
"compat": {
|
|
205
|
+
"maxTokensField": "max_completion_tokens",
|
|
206
|
+
"supportsDeveloperRole": false,
|
|
207
|
+
"supportsStore": false,
|
|
208
|
+
"supportsZdr": true,
|
|
209
|
+
"supportsReasoningEffort": true
|
|
210
|
+
}
|
|
211
|
+
},
|
|
189
212
|
{
|
|
190
213
|
"id": "Qwen3.8-27B",
|
|
191
214
|
"name": "Qwen3.8-27B",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-wafer-provider",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.40",
|
|
4
4
|
"description": "Wafer Serverless provider extension for pi - Access Qwen3.5-397B-A17B, GLM-5.1, Kimi K2.6, and DeepSeek-V4 through the Wafer Serverless API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -22,8 +22,11 @@
|
|
|
22
22
|
"./index.ts"
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
|
+
"overrides": {
|
|
26
|
+
"brace-expansion": "5.0.12"
|
|
27
|
+
},
|
|
25
28
|
"devDependencies": {
|
|
26
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
29
|
+
"@earendil-works/pi-coding-agent": "1.1.0",
|
|
27
30
|
"typescript": "6.0.3",
|
|
28
31
|
"@types/node": "^25.9.1"
|
|
29
32
|
},
|
|
@@ -14,7 +14,7 @@ globalThis.fetch = async () => new Response('', { status: 503 });
|
|
|
14
14
|
let session;
|
|
15
15
|
try {
|
|
16
16
|
const { createAgentSession, DefaultResourceLoader, ModelRuntime, SessionManager, SettingsManager, VERSION } = await import('@earendil-works/pi-coding-agent');
|
|
17
|
-
assert.equal(VERSION, '1.
|
|
17
|
+
assert.equal(VERSION, '1.1.0', 'run compatibility checks against the pinned host');
|
|
18
18
|
const manifest = JSON.parse(await readFile(join(root, 'package.json'), 'utf8'));
|
|
19
19
|
const hostPackages = ['@earendil-works/pi-ai', '@earendil-works/pi-agent-core', '@earendil-works/pi-coding-agent', '@earendil-works/pi-tui', 'typebox'];
|
|
20
20
|
for (const name of hostPackages) {
|
|
@@ -65,7 +65,7 @@ try {
|
|
|
65
65
|
modelCount += models.length;
|
|
66
66
|
}
|
|
67
67
|
await session.extensionRunner.emit({ type: 'session_shutdown' });
|
|
68
|
-
assert.deepEqual(errors, [], 'startup and shutdown handlers must work with Pi 1.0 contexts');
|
|
68
|
+
assert.deepEqual(errors, [], 'startup and shutdown handlers must work with Pi 1.1.0 contexts');
|
|
69
69
|
console.log(`${manifest.name}: Pi ${VERSION} loader, manifest, session startup, and ${modelCount} models OK`);
|
|
70
70
|
} finally {
|
|
71
71
|
session?.dispose();
|