pi-opencode-go-provider 1.1.22 → 1.1.26

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.
@@ -0,0 +1,58 @@
1
+ name: Update models
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "7 0 * * *" # 07:07 Asia/Ho_Chi_Minh
6
+ workflow_dispatch:
7
+
8
+ # Publishing uses npm Trusted Publishing (OIDC) bound to this workflow file, so
9
+ # no npm token is stored. A version pushed while publishing was unavailable is
10
+ # published by the next run that finds it missing from npm.
11
+ permissions:
12
+ contents: write
13
+ id-token: write
14
+
15
+ concurrency:
16
+ group: update-models
17
+ cancel-in-progress: false
18
+
19
+ jobs:
20
+ update:
21
+ runs-on: ubuntu-latest
22
+ timeout-minutes: 15
23
+ steps:
24
+ - uses: actions/checkout@v5
25
+
26
+ - uses: actions/setup-node@v5
27
+ with:
28
+ node-version: 24
29
+
30
+ - name: Fetch the model catalog
31
+ run: node scripts/update-models.js
32
+
33
+ - name: Commit, bump and push
34
+ run: |
35
+ if git diff --quiet; then
36
+ echo "No model changes."
37
+ exit 0
38
+ fi
39
+ git config user.name "github-actions[bot]"
40
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
41
+ git add -A
42
+ git commit -m "feat: update opencode-go models from API"
43
+ npm version patch --no-git-tag-version
44
+ version=$(node -p "require('./package.json').version")
45
+ git commit -am "chore(release): v$version"
46
+ git push origin HEAD:main
47
+
48
+ - name: Publish to npm if this version is missing
49
+ run: |
50
+ name=$(node -p "require('./package.json').name")
51
+ version=$(node -p "require('./package.json').version")
52
+ if npm view "$name@$version" version >/dev/null 2>&1; then
53
+ echo "$name@$version is already on npm."
54
+ exit 0
55
+ fi
56
+ # Trusted publishing needs npm 11.5.1 or newer.
57
+ npm install --global npm@latest
58
+ npm publish --access public --provenance
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.26
4
+
5
+ - Pin Pi SDK development dependencies to 1.2.0 while retaining wildcard host peers; verify real manifest loading, lifecycle and native/bundled Pi hosts offline.
6
+
3
7
  ## 1.1.22
4
8
 
5
9
  - Quiet startup sync: background `/v1/models` revalidation runs only with an API key, only when the disk cache is older than 1 hour (`PI_PROVIDER_SYNC_TTL_MS`, `0` = always), missing, or fetched with a different key, and only in one pi process at a time (lock file next to the cache). Failed refreshes back off for 5 minutes; sessions that skip adopt a cache refreshed by another process.
package/README.md CHANGED
@@ -76,11 +76,11 @@ pi
76
76
 
77
77
  | Model | API | Type | Context | Max Tokens | Input Cost | Output Cost |
78
78
  |-------|-----|------|---------|------------|------------|-------------|
79
+ | Cat Jam Free | Completions | Text | 262K | 131K | — | — |
79
80
  | Claude Haiku 5.5 | Anthropic | Text + Image | 1.0M | 128K | $0.10 | $0.50 |
80
- | DeepSeek V4 Flash | Completions | Text | 1.0M | 384K | $0.15 | $0.60 |
81
- | DeepSeek V4 Flash Vision Exp | Completions | Text + Image | 1.0M | 384K | $0.15 | $0.60 |
82
81
  | DeepSeek V4 Pro (New) | Completions | Text | 1.0M | 384K | $0.66 | $1.98 |
83
82
  | DeepSeek V4.1 Flash | Completions | Text + Image | 1.0M | 384K | $0.15 | $0.60 |
83
+ | Gemini 4 Argon Contributor | Completions | Text + Image | 1.0M | 66K | $4.00 | $20.00 |
84
84
  | GLM-5.2 | Completions | Text | 1.0M | 131K | $1.40 | $4.40 |
85
85
  | GLM-5.3 | Completions | Text | 1.0M | 131K | $1.40 | $4.40 |
86
86
  | GLM-5.3-Flash | Completions | Text + Image | 1.0M | 131K | $0.15 | $0.50 |
@@ -1,85 +1,65 @@
1
1
  {
2
- "qwen3.7-max": {
3
- "id": "qwen3.7-max",
4
- "name": "Qwen3.7 Max",
2
+ "space-bunny-free": {
3
+ "id": "space-bunny-free",
4
+ "name": "Space Bunny Free",
5
5
  "api": "openai-completions",
6
6
  "baseUrl": "https://opencode.ai/zen/go/v1",
7
7
  "reasoning": true,
8
- "input": [
9
- "text"
10
- ],
11
- "cost": {
12
- "input": 2.5,
13
- "output": 7.5,
14
- "cacheRead": 0.5,
15
- "cacheWrite": 3.125
8
+ "thinkingLevelMap": {
9
+ "off": null,
10
+ "minimal": null,
11
+ "low": "low",
12
+ "medium": "medium",
13
+ "high": "high",
14
+ "xhigh": "xhigh",
15
+ "max": "max"
16
16
  },
17
- "contextWindow": 1000000,
18
- "maxTokens": 65536,
19
- "deprecatedAt": "2026-09-29T00:00:25.466Z"
20
- },
21
- "kimi-k2.6": {
22
- "id": "kimi-k2.6",
23
- "name": "Kimi K2.6",
24
- "api": "openai-completions",
25
- "baseUrl": "https://opencode.ai/zen/go/v1",
26
- "reasoning": true,
27
17
  "input": [
28
18
  "text",
29
19
  "image"
30
20
  ],
31
21
  "cost": {
32
- "input": 0.95,
33
- "output": 4,
34
- "cacheRead": 0.16,
22
+ "input": 0,
23
+ "output": 0,
24
+ "cacheRead": 0,
35
25
  "cacheWrite": 0
36
26
  },
37
- "contextWindow": 262144,
38
- "maxTokens": 65536,
39
- "deprecatedAt": "2026-09-29T00:00:25.466Z"
27
+ "contextWindow": 1048576,
28
+ "maxTokens": 524288,
29
+ "deprecatedAt": "2026-10-07T00:00:29.926Z"
40
30
  },
41
- "glm-5.1": {
42
- "id": "glm-5.1",
43
- "name": "GLM-5.1",
31
+ "deepseek-v4-flash-vision-exp": {
32
+ "id": "deepseek-v4-flash-vision-exp",
33
+ "name": "DeepSeek V4 Flash Vision Exp",
44
34
  "api": "openai-completions",
45
35
  "baseUrl": "https://opencode.ai/zen/go/v1",
46
36
  "reasoning": true,
47
- "input": [
48
- "text"
49
- ],
50
- "cost": {
51
- "input": 1.4,
52
- "output": 4.4,
53
- "cacheRead": 0.26,
54
- "cacheWrite": 0
37
+ "thinkingLevelMap": {
38
+ "off": null,
39
+ "minimal": null,
40
+ "low": "low",
41
+ "medium": null,
42
+ "high": "high",
43
+ "xhigh": null,
44
+ "max": "max"
55
45
  },
56
- "contextWindow": 202752,
57
- "maxTokens": 32768,
58
- "deprecatedAt": "2026-09-29T00:00:25.466Z"
59
- },
60
- "qwen3.6-plus": {
61
- "id": "qwen3.6-plus",
62
- "name": "Qwen3.6 Plus",
63
- "api": "openai-completions",
64
- "baseUrl": "https://opencode.ai/zen/go/v1",
65
- "reasoning": true,
66
46
  "input": [
67
47
  "text",
68
48
  "image"
69
49
  ],
70
50
  "cost": {
71
- "input": 0.5,
72
- "output": 3,
73
- "cacheRead": 0.05,
74
- "cacheWrite": 0.625
51
+ "input": 0.15,
52
+ "output": 0.6,
53
+ "cacheRead": 0.003,
54
+ "cacheWrite": 0
75
55
  },
76
56
  "contextWindow": 1000000,
77
- "maxTokens": 65536,
78
- "deprecatedAt": "2026-09-29T00:00:25.466Z"
57
+ "maxTokens": 384000,
58
+ "deprecatedAt": "2026-10-15T04:29:21.599Z"
79
59
  },
80
- "space-bunny-free": {
81
- "id": "space-bunny-free",
82
- "name": "Space Bunny Free",
60
+ "deepseek-v4-flash": {
61
+ "id": "deepseek-v4-flash",
62
+ "name": "DeepSeek V4 Flash",
83
63
  "api": "openai-completions",
84
64
  "baseUrl": "https://opencode.ai/zen/go/v1",
85
65
  "reasoning": true,
@@ -87,23 +67,22 @@
87
67
  "off": null,
88
68
  "minimal": null,
89
69
  "low": "low",
90
- "medium": "medium",
70
+ "medium": null,
91
71
  "high": "high",
92
- "xhigh": "xhigh",
72
+ "xhigh": null,
93
73
  "max": "max"
94
74
  },
95
75
  "input": [
96
- "text",
97
- "image"
76
+ "text"
98
77
  ],
99
78
  "cost": {
100
- "input": 0,
101
- "output": 0,
102
- "cacheRead": 0,
79
+ "input": 0.15,
80
+ "output": 0.6,
81
+ "cacheRead": 0.003,
103
82
  "cacheWrite": 0
104
83
  },
105
- "contextWindow": 1048576,
106
- "maxTokens": 524288,
107
- "deprecatedAt": "2026-10-07T00:00:29.926Z"
84
+ "contextWindow": 1000000,
85
+ "maxTokens": 384000,
86
+ "deprecatedAt": "2026-10-15T04:29:21.599Z"
108
87
  }
109
88
  }
package/models.json CHANGED
@@ -84,6 +84,34 @@
84
84
  "contextWindow": 1000000,
85
85
  "maxTokens": 131072
86
86
  },
87
+ {
88
+ "id": "gemini-4-argon-contributor",
89
+ "name": "Gemini 4 Argon Contributor",
90
+ "api": "openai-completions",
91
+ "baseUrl": "https://opencode.ai/zen/go/v1",
92
+ "reasoning": true,
93
+ "thinkingLevelMap": {
94
+ "off": null,
95
+ "minimal": null,
96
+ "low": "low",
97
+ "medium": "medium",
98
+ "high": "high",
99
+ "xhigh": null,
100
+ "max": null
101
+ },
102
+ "input": [
103
+ "text",
104
+ "image"
105
+ ],
106
+ "cost": {
107
+ "input": 4,
108
+ "output": 20,
109
+ "cacheRead": 0.2,
110
+ "cacheWrite": 0
111
+ },
112
+ "contextWindow": 1048576,
113
+ "maxTokens": 65536
114
+ },
87
115
  {
88
116
  "id": "glm-5.3-flash",
89
117
  "name": "GLM-5.3-Flash",
@@ -197,49 +225,48 @@
197
225
  "maxTokens": 384000
198
226
  },
199
227
  {
200
- "id": "deepseek-v4-flash-vision-exp",
201
- "name": "DeepSeek V4 Flash Vision Exp",
228
+ "id": "longcat-2.0",
229
+ "name": "LongCat-2.0",
202
230
  "api": "openai-completions",
203
231
  "baseUrl": "https://opencode.ai/zen/go/v1",
204
232
  "reasoning": true,
205
- "thinkingLevelMap": {
206
- "off": null,
207
- "minimal": null,
208
- "low": "low",
209
- "medium": null,
210
- "high": "high",
211
- "xhigh": null,
212
- "max": "max"
213
- },
214
233
  "input": [
215
- "text",
216
- "image"
234
+ "text"
217
235
  ],
218
236
  "cost": {
219
- "input": 0.15,
220
- "output": 0.6,
221
- "cacheRead": 0.003,
237
+ "input": 0.3,
238
+ "output": 1.2,
239
+ "cacheRead": 0.006,
222
240
  "cacheWrite": 0
223
241
  },
224
242
  "contextWindow": 1000000,
225
- "maxTokens": 384000
243
+ "maxTokens": 131072
226
244
  },
227
245
  {
228
- "id": "longcat-2.0",
229
- "name": "LongCat-2.0",
246
+ "id": "cat-jam-free",
247
+ "name": "Cat Jam Free",
230
248
  "api": "openai-completions",
231
249
  "baseUrl": "https://opencode.ai/zen/go/v1",
232
250
  "reasoning": true,
251
+ "thinkingLevelMap": {
252
+ "off": null,
253
+ "minimal": null,
254
+ "low": "low",
255
+ "medium": "medium",
256
+ "high": "high",
257
+ "xhigh": "xhigh",
258
+ "max": "max"
259
+ },
233
260
  "input": [
234
261
  "text"
235
262
  ],
236
263
  "cost": {
237
- "input": 0.3,
238
- "output": 1.2,
239
- "cacheRead": 0.006,
264
+ "input": 0,
265
+ "output": 0,
266
+ "cacheRead": 0,
240
267
  "cacheWrite": 0
241
268
  },
242
- "contextWindow": 1000000,
269
+ "contextWindow": 262144,
243
270
  "maxTokens": 131072
244
271
  },
245
272
  {
@@ -740,32 +767,5 @@
740
767
  },
741
768
  "contextWindow": 1000000,
742
769
  "maxTokens": 65536
743
- },
744
- {
745
- "id": "deepseek-v4-flash",
746
- "name": "DeepSeek V4 Flash",
747
- "api": "openai-completions",
748
- "baseUrl": "https://opencode.ai/zen/go/v1",
749
- "reasoning": true,
750
- "thinkingLevelMap": {
751
- "off": null,
752
- "minimal": null,
753
- "low": "low",
754
- "medium": null,
755
- "high": "high",
756
- "xhigh": null,
757
- "max": "max"
758
- },
759
- "input": [
760
- "text"
761
- ],
762
- "cost": {
763
- "input": 0.15,
764
- "output": 0.6,
765
- "cacheRead": 0.003,
766
- "cacheWrite": 0
767
- },
768
- "contextWindow": 1000000,
769
- "maxTokens": 384000
770
770
  }
771
771
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-opencode-go-provider",
3
- "version": "1.1.22",
3
+ "version": "1.1.26",
4
4
  "description": "Opencode Go provider extension for pi - Fast, efficient GLM, Kimi, and MiniMax models through the opencode.ai API",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -36,12 +36,16 @@
36
36
  "brace-expansion": "5.0.12"
37
37
  },
38
38
  "devDependencies": {
39
- "@earendil-works/pi-coding-agent": "1.1.0",
39
+ "@earendil-works/pi-coding-agent": "1.2.0",
40
40
  "@types/node": "~22.19.0",
41
41
  "typescript": "^6.0.3",
42
42
  "vitest": "4.1.7"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@earendil-works/pi-coding-agent": "*"
46
+ },
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/monotykamary/pi-opencode-go-provider.git"
46
50
  }
47
51
  }
@@ -1,4 +1,4 @@
1
- // Offline Pi 1.1.0 manifest, lifecycle, catalog and real transport regression.
1
+ // Offline Pi 1.2.0 manifest, lifecycle, catalog and real transport regression.
2
2
  import assert from 'node:assert/strict';
3
3
  import { mkdtemp, readFile, rm } from 'node:fs/promises';
4
4
  import { tmpdir } from 'node:os';
@@ -18,13 +18,13 @@ try {
18
18
  const hostEntry = process.env.PI1_HOST_ENTRY === 'bundle' ? 'dist/bundle/index.js' : 'dist/index.js';
19
19
  const sdk = await import(host ? pathToFileURL(join(host, hostEntry)).href : '@earendil-works/pi-coding-agent');
20
20
  const { createAgentSession, DefaultResourceLoader, ModelRuntime, SessionManager, SettingsManager, VERSION } = sdk;
21
- assert.equal(VERSION, '1.1.0', 'executing host version');
22
- assert.equal((await import('@earendil-works/pi-coding-agent')).VERSION, '1.1.0', 'development host version');
21
+ assert.equal(VERSION, '1.2.0', 'executing host version');
22
+ assert.equal((await import('@earendil-works/pi-coding-agent')).VERSION, '1.2.0', 'development host version');
23
23
  const manifest = JSON.parse(await readFile(join(root, 'package.json'), 'utf8'));
24
24
  for (const name of ['@earendil-works/pi-ai', '@earendil-works/pi-agent-core', '@earendil-works/pi-coding-agent', '@earendil-works/pi-tui', 'typebox']) {
25
25
  assert.equal(manifest.dependencies?.[name], undefined, `${name}: do not bundle host packages`);
26
26
  if (manifest.peerDependencies?.[name] !== undefined) assert.equal(manifest.peerDependencies[name], '*');
27
- if (name !== 'typebox' && manifest.devDependencies?.[name]) assert.equal(manifest.devDependencies[name], '1.1.0');
27
+ if (name !== 'typebox' && manifest.devDependencies?.[name]) assert.equal(manifest.devDependencies[name], '1.2.0');
28
28
  }
29
29
  const settingsManager = SettingsManager.inMemory({ packages: [root], compaction: { enabled: false }, retry: { enabled: false } });
30
30
  const resourceLoader = new DefaultResourceLoader({ cwd: home, agentDir: home, settingsManager,