pi-opencode-go-provider 1.1.22 → 1.1.27

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,114 @@
1
+ name: Publish
2
+
3
+ # Releases of pi-opencode-go-provider go out from here, and only from here.
4
+ #
5
+ # 1. Bump "version" in package.json (the `chore(release): X.Y.Z` commit).
6
+ # 2. Push it to main. This workflow publishes every version that npm does
7
+ # not have yet; any other push is a no-op.
8
+ #
9
+ # Run it from the Actions tab to retry a failed release, or tick "dry_run" to
10
+ # build, check and pack without publishing.
11
+ #
12
+ # Auth is npm Trusted Publishing (OIDC): npm trusts this file, so no npm token
13
+ # is stored anywhere. Registered once with
14
+ # npm trust github pi-opencode-go-provider --repo monotykamary/pi-opencode-go-provider --file publish.yml --allow-publish
15
+ #
16
+ # Bun installs and packs exactly as `bun publish` does; npm uploads the
17
+ # tarballs because only the npm CLI speaks trusted publishing.
18
+
19
+ on:
20
+ push:
21
+ branches: [main]
22
+ paths: [package.json]
23
+ workflow_dispatch:
24
+ inputs:
25
+ dry_run:
26
+ description: Build, check and pack, but do not publish
27
+ type: boolean
28
+ default: false
29
+
30
+ permissions:
31
+ contents: read
32
+ id-token: write
33
+
34
+ concurrency:
35
+ group: publish
36
+ cancel-in-progress: false
37
+
38
+ jobs:
39
+ publish:
40
+ runs-on: ubuntu-latest
41
+ timeout-minutes: 45
42
+ steps:
43
+ - uses: actions/checkout@v5
44
+
45
+ - uses: actions/setup-node@v5
46
+ with:
47
+ node-version: 24
48
+
49
+ - uses: oven-sh/setup-bun@v2
50
+
51
+ - name: Find versions npm does not have
52
+ id: release
53
+ env:
54
+ DRY_RUN: ${{ inputs.dry_run }}
55
+ run: |
56
+ specs=$(
57
+ node -p "const p = require('./package.json'); p.name + '@' + p.version"
58
+ )
59
+ missing=""
60
+ for spec in $specs; do
61
+ # npm runs from outside the checkout so the repo's devEngines do not apply.
62
+ if (cd "$RUNNER_TEMP" && npm view "$spec" version >/dev/null 2>&1); then
63
+ echo "$spec is already on npm"
64
+ else
65
+ missing="$missing $spec"
66
+ fi
67
+ done
68
+ if [ "$DRY_RUN" = "true" ]; then
69
+ mode=dry-run
70
+ elif [ -n "$missing" ]; then
71
+ mode=publish
72
+ echo "::notice::Publishing$missing"
73
+ else
74
+ mode=skip
75
+ echo "::notice::Nothing to publish"
76
+ fi
77
+ echo "mode=$mode" >> "$GITHUB_OUTPUT"
78
+
79
+ - name: Install dependencies
80
+ if: steps.release.outputs.mode != 'skip'
81
+ run: bun install --frozen-lockfile
82
+
83
+ - name: Check
84
+ if: steps.release.outputs.mode != 'skip'
85
+ run: bun run check
86
+
87
+ - name: Pack
88
+ if: steps.release.outputs.mode != 'skip'
89
+ run: |
90
+ bun run --if-present prepublishOnly
91
+ bun pm pack --destination "$RUNNER_TEMP/pack"
92
+
93
+ - name: Publish
94
+ if: steps.release.outputs.mode != 'skip'
95
+ env:
96
+ MODE: ${{ steps.release.outputs.mode }}
97
+ run: |
98
+ # Trusted publishing needs npm 11.5.1 or newer.
99
+ npm install --global npm@latest
100
+ cd "$RUNNER_TEMP"
101
+ # ./ keeps npm from reading pack/name.tgz as a GitHub repo shorthand.
102
+ for tarball in ./pack/*.tgz; do
103
+ spec=$(tar -xOzf "$tarball" package/package.json | node -p "const p = JSON.parse(require('fs').readFileSync(0, 'utf8')); p.name + '@' + p.version")
104
+ echo "::group::$spec"
105
+ tar -tzf "$tarball"
106
+ echo "::endgroup::"
107
+ if [ "$MODE" = "dry-run" ]; then
108
+ echo "Dry run: not publishing $spec"
109
+ elif npm view "$spec" version >/dev/null 2>&1; then
110
+ echo "$spec is already on npm"
111
+ else
112
+ npm publish "$tarball" --access public --provenance
113
+ fi
114
+ done
@@ -0,0 +1,53 @@
1
+ name: Update models
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "7 0 * * *" # 07:07 Asia/Ho_Chi_Minh
6
+ workflow_dispatch:
7
+
8
+ # This workflow only syncs the catalog and bumps the version; publish.yml does
9
+ # the releasing. It publishes any version npm does not have yet, so a release
10
+ # that failed earlier goes out with the next hand-off.
11
+ permissions:
12
+ contents: write
13
+ actions: 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
+ # Pushes made with GITHUB_TOKEN do not start other workflows, so hand the
49
+ # release to publish.yml explicitly.
50
+ - name: Hand off to publish.yml
51
+ env:
52
+ GH_TOKEN: ${{ github.token }}
53
+ run: gh workflow run publish.yml --ref main
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,17 +76,16 @@ pi
76
76
 
77
77
  | Model | API | Type | Context | Max Tokens | Input Cost | Output Cost |
78
78
  |-------|-----|------|---------|------------|------------|-------------|
79
+ | Cat Jam Free | Completions | Text | 1.0M | 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 |
87
87
  | GPT-5.6 Luna | Responses | Text + Image | 1.1M | 128K | $0.20 | $1.20 |
88
88
  | GPT-6 Luna | Completions | Text + Image | 1.1M | 128K | $0.10 | $0.50 |
89
- | Grok 4.6 | Completions | Text + Image | 500K | 500K | $2.00 | $6.00 |
90
89
  | Grok 4.7 | Completions | Text + Image | 500K | 500K | $2.00 | $6.00 |
91
90
  | Hy3 | Completions | Text | 256K | 128K | $0.14 | $0.58 |
92
91
  | Hy4 preview | Completions | Text | 1.0M | 64K | $0.83 | $2.50 |
@@ -98,7 +97,6 @@ pi
98
97
  | MiMo V2.5 Pro | Completions | Text | 1.0M | 128K | $0.43 | $0.87 |
99
98
  | MiMo-V2.6-Flash | Completions | Text + Image | 1.0M | 131K | $0.14 | $0.28 |
100
99
  | MiMo-V2.6-Pro | Completions | Text + Image | 1.0M | 131K | $0.43 | $0.87 |
101
- | MiniMax-M2.7 | Completions | Text | 205K | 131K | $0.30 | $1.20 |
102
100
  | MiniMax-M3 | Anthropic | Text + Image | 1.0M | 131K | $0.30 | $1.20 |
103
101
  | Muse Spark 1.2 Contributor | Responses | Text + Image | 1.0M | 131K | $0.10 | $0.20 |
104
102
  | Muse Spark 1.3 Contributor | Responses | Text + Image | 1.0M | 131K | $0.10 | $0.20 |
@@ -106,7 +104,7 @@ pi
106
104
  | Qwen3.8 Flash | Anthropic | Text + Image | 1.0M | 131K | $0.15 | $0.47 |
107
105
  | Qwen3.8 Max | Anthropic | Text + Image | 1.0M | 131K | $2.00 | $6.00 |
108
106
  | Space Bunny | Completions | Text + Image | 1.0M | 524K | $0.15 | $0.60 |
109
- | Step 5 Preview Free | Completions | Text + Image | 1.0M | 66K | — | — |
107
+ | Step 5 Preview | Completions | Text + Image | 1.0M | 66K | $1.00 | $2.70 |
110
108
  *Costs are per million tokens. Prices subject to change - check [opencode.ai](https://opencode.ai) for current pricing.*
111
109
 
112
110
  ## Usage
@@ -1,85 +1,141 @@
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
+ "thinkingLevelMap": {
9
+ "off": null,
10
+ "minimal": null,
11
+ "low": "low",
12
+ "medium": "medium",
13
+ "high": "high",
14
+ "xhigh": "xhigh",
15
+ "max": "max"
16
+ },
8
17
  "input": [
9
- "text"
18
+ "text",
19
+ "image"
10
20
  ],
11
21
  "cost": {
12
- "input": 2.5,
13
- "output": 7.5,
14
- "cacheRead": 0.5,
15
- "cacheWrite": 3.125
22
+ "input": 0,
23
+ "output": 0,
24
+ "cacheRead": 0,
25
+ "cacheWrite": 0
16
26
  },
17
- "contextWindow": 1000000,
18
- "maxTokens": 65536,
19
- "deprecatedAt": "2026-09-29T00:00:25.466Z"
27
+ "contextWindow": 1048576,
28
+ "maxTokens": 524288,
29
+ "deprecatedAt": "2026-10-07T00:00:29.926Z"
20
30
  },
21
- "kimi-k2.6": {
22
- "id": "kimi-k2.6",
23
- "name": "Kimi K2.6",
31
+ "deepseek-v4-flash-vision-exp": {
32
+ "id": "deepseek-v4-flash-vision-exp",
33
+ "name": "DeepSeek V4 Flash Vision Exp",
24
34
  "api": "openai-completions",
25
35
  "baseUrl": "https://opencode.ai/zen/go/v1",
26
36
  "reasoning": true,
37
+ "thinkingLevelMap": {
38
+ "off": null,
39
+ "minimal": null,
40
+ "low": "low",
41
+ "medium": null,
42
+ "high": "high",
43
+ "xhigh": null,
44
+ "max": "max"
45
+ },
27
46
  "input": [
28
47
  "text",
29
48
  "image"
30
49
  ],
31
50
  "cost": {
32
- "input": 0.95,
33
- "output": 4,
34
- "cacheRead": 0.16,
51
+ "input": 0.15,
52
+ "output": 0.6,
53
+ "cacheRead": 0.003,
35
54
  "cacheWrite": 0
36
55
  },
37
- "contextWindow": 262144,
38
- "maxTokens": 65536,
39
- "deprecatedAt": "2026-09-29T00:00:25.466Z"
56
+ "contextWindow": 1000000,
57
+ "maxTokens": 384000,
58
+ "deprecatedAt": "2026-10-15T04:29:21.599Z"
40
59
  },
41
- "glm-5.1": {
42
- "id": "glm-5.1",
43
- "name": "GLM-5.1",
60
+ "deepseek-v4-flash": {
61
+ "id": "deepseek-v4-flash",
62
+ "name": "DeepSeek V4 Flash",
44
63
  "api": "openai-completions",
45
64
  "baseUrl": "https://opencode.ai/zen/go/v1",
46
65
  "reasoning": true,
66
+ "thinkingLevelMap": {
67
+ "off": null,
68
+ "minimal": null,
69
+ "low": "low",
70
+ "medium": null,
71
+ "high": "high",
72
+ "xhigh": null,
73
+ "max": "max"
74
+ },
47
75
  "input": [
48
76
  "text"
49
77
  ],
50
78
  "cost": {
51
- "input": 1.4,
52
- "output": 4.4,
53
- "cacheRead": 0.26,
79
+ "input": 0.15,
80
+ "output": 0.6,
81
+ "cacheRead": 0.003,
54
82
  "cacheWrite": 0
55
83
  },
56
- "contextWindow": 202752,
57
- "maxTokens": 32768,
58
- "deprecatedAt": "2026-09-29T00:00:25.466Z"
84
+ "contextWindow": 1000000,
85
+ "maxTokens": 384000,
86
+ "deprecatedAt": "2026-10-15T04:29:21.599Z"
87
+ },
88
+ "minimax-m2.7": {
89
+ "id": "minimax-m2.7",
90
+ "name": "MiniMax-M2.7",
91
+ "api": "anthropic-messages",
92
+ "baseUrl": "https://opencode.ai/zen/go",
93
+ "reasoning": true,
94
+ "input": [
95
+ "text"
96
+ ],
97
+ "cost": {
98
+ "input": 0.3,
99
+ "output": 1.2,
100
+ "cacheRead": 0.06,
101
+ "cacheWrite": 0.375
102
+ },
103
+ "contextWindow": 204800,
104
+ "maxTokens": 131072,
105
+ "deprecatedAt": "2026-10-16T04:24:15.416Z"
59
106
  },
60
- "qwen3.6-plus": {
61
- "id": "qwen3.6-plus",
62
- "name": "Qwen3.6 Plus",
107
+ "step-5-preview-free": {
108
+ "id": "step-5-preview-free",
109
+ "name": "Step 5 Preview Free",
63
110
  "api": "openai-completions",
64
111
  "baseUrl": "https://opencode.ai/zen/go/v1",
65
112
  "reasoning": true,
113
+ "thinkingLevelMap": {
114
+ "off": null,
115
+ "minimal": null,
116
+ "low": "low",
117
+ "medium": "medium",
118
+ "high": "high",
119
+ "xhigh": null,
120
+ "max": null
121
+ },
66
122
  "input": [
67
123
  "text",
68
124
  "image"
69
125
  ],
70
126
  "cost": {
71
- "input": 0.5,
72
- "output": 3,
73
- "cacheRead": 0.05,
74
- "cacheWrite": 0.625
127
+ "input": 0,
128
+ "output": 0,
129
+ "cacheRead": 0,
130
+ "cacheWrite": 0
75
131
  },
76
132
  "contextWindow": 1000000,
77
133
  "maxTokens": 65536,
78
- "deprecatedAt": "2026-09-29T00:00:25.466Z"
134
+ "deprecatedAt": "2026-10-16T04:24:15.416Z"
79
135
  },
80
- "space-bunny-free": {
81
- "id": "space-bunny-free",
82
- "name": "Space Bunny Free",
136
+ "grok-4.6": {
137
+ "id": "grok-4.6",
138
+ "name": "Grok 4.6",
83
139
  "api": "openai-completions",
84
140
  "baseUrl": "https://opencode.ai/zen/go/v1",
85
141
  "reasoning": true,
@@ -90,20 +146,20 @@
90
146
  "medium": "medium",
91
147
  "high": "high",
92
148
  "xhigh": "xhigh",
93
- "max": "max"
149
+ "max": null
94
150
  },
95
151
  "input": [
96
152
  "text",
97
153
  "image"
98
154
  ],
99
155
  "cost": {
100
- "input": 0,
101
- "output": 0,
102
- "cacheRead": 0,
156
+ "input": 2,
157
+ "output": 6,
158
+ "cacheRead": 0.5,
103
159
  "cacheWrite": 0
104
160
  },
105
- "contextWindow": 1048576,
106
- "maxTokens": 524288,
107
- "deprecatedAt": "2026-10-07T00:00:29.926Z"
161
+ "contextWindow": 500000,
162
+ "maxTokens": 500000,
163
+ "deprecatedAt": "2026-10-16T04:24:15.416Z"
108
164
  }
109
165
  }
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,8 +225,8 @@
197
225
  "maxTokens": 384000
198
226
  },
199
227
  {
200
- "id": "deepseek-v4-flash-vision-exp",
201
- "name": "DeepSeek V4 Flash Vision Exp",
228
+ "id": "step-5-preview",
229
+ "name": "Step 5 Preview",
202
230
  "api": "openai-completions",
203
231
  "baseUrl": "https://opencode.ai/zen/go/v1",
204
232
  "reasoning": true,
@@ -206,23 +234,23 @@
206
234
  "off": null,
207
235
  "minimal": null,
208
236
  "low": "low",
209
- "medium": null,
237
+ "medium": "medium",
210
238
  "high": "high",
211
239
  "xhigh": null,
212
- "max": "max"
240
+ "max": null
213
241
  },
214
242
  "input": [
215
243
  "text",
216
244
  "image"
217
245
  ],
218
246
  "cost": {
219
- "input": 0.15,
220
- "output": 0.6,
221
- "cacheRead": 0.003,
247
+ "input": 1,
248
+ "output": 2.7,
249
+ "cacheRead": 0.1,
222
250
  "cacheWrite": 0
223
251
  },
224
252
  "contextWindow": 1000000,
225
- "maxTokens": 384000
253
+ "maxTokens": 65536
226
254
  },
227
255
  {
228
256
  "id": "longcat-2.0",
@@ -242,6 +270,33 @@
242
270
  "contextWindow": 1000000,
243
271
  "maxTokens": 131072
244
272
  },
273
+ {
274
+ "id": "cat-jam-free",
275
+ "name": "Cat Jam Free",
276
+ "api": "openai-completions",
277
+ "baseUrl": "https://opencode.ai/zen/go/v1",
278
+ "reasoning": true,
279
+ "thinkingLevelMap": {
280
+ "off": null,
281
+ "minimal": null,
282
+ "low": "low",
283
+ "medium": "medium",
284
+ "high": "high",
285
+ "xhigh": "xhigh",
286
+ "max": "max"
287
+ },
288
+ "input": [
289
+ "text"
290
+ ],
291
+ "cost": {
292
+ "input": 0,
293
+ "output": 0,
294
+ "cacheRead": 0,
295
+ "cacheWrite": 0
296
+ },
297
+ "contextWindow": 1048576,
298
+ "maxTokens": 131072
299
+ },
245
300
  {
246
301
  "id": "space-bunny",
247
302
  "name": "Space Bunny",
@@ -270,24 +325,6 @@
270
325
  "contextWindow": 1048576,
271
326
  "maxTokens": 524288
272
327
  },
273
- {
274
- "id": "minimax-m2.7",
275
- "name": "MiniMax-M2.7",
276
- "api": "anthropic-messages",
277
- "baseUrl": "https://opencode.ai/zen/go",
278
- "reasoning": true,
279
- "input": [
280
- "text"
281
- ],
282
- "cost": {
283
- "input": 0.3,
284
- "output": 1.2,
285
- "cacheRead": 0.06,
286
- "cacheWrite": 0.375
287
- },
288
- "contextWindow": 204800,
289
- "maxTokens": 131072
290
- },
291
328
  {
292
329
  "id": "mimo-v2.5-pro",
293
330
  "name": "MiMo V2.5 Pro",
@@ -620,34 +657,6 @@
620
657
  "contextWindow": 1048576,
621
658
  "maxTokens": 131072
622
659
  },
623
- {
624
- "id": "step-5-preview-free",
625
- "name": "Step 5 Preview Free",
626
- "api": "openai-completions",
627
- "baseUrl": "https://opencode.ai/zen/go/v1",
628
- "reasoning": true,
629
- "thinkingLevelMap": {
630
- "off": null,
631
- "minimal": null,
632
- "low": "low",
633
- "medium": "medium",
634
- "high": "high",
635
- "xhigh": null,
636
- "max": null
637
- },
638
- "input": [
639
- "text",
640
- "image"
641
- ],
642
- "cost": {
643
- "input": 0,
644
- "output": 0,
645
- "cacheRead": 0,
646
- "cacheWrite": 0
647
- },
648
- "contextWindow": 1000000,
649
- "maxTokens": 65536
650
- },
651
660
  {
652
661
  "id": "glm-5.3",
653
662
  "name": "GLM-5.3",
@@ -694,34 +703,6 @@
694
703
  "contextWindow": 262144,
695
704
  "maxTokens": 262144
696
705
  },
697
- {
698
- "id": "grok-4.6",
699
- "name": "Grok 4.6",
700
- "api": "openai-completions",
701
- "baseUrl": "https://opencode.ai/zen/go/v1",
702
- "reasoning": true,
703
- "thinkingLevelMap": {
704
- "off": null,
705
- "minimal": null,
706
- "low": "low",
707
- "medium": "medium",
708
- "high": "high",
709
- "xhigh": "xhigh",
710
- "max": null
711
- },
712
- "input": [
713
- "text",
714
- "image"
715
- ],
716
- "cost": {
717
- "input": 2,
718
- "output": 6,
719
- "cacheRead": 0.5,
720
- "cacheWrite": 0
721
- },
722
- "contextWindow": 500000,
723
- "maxTokens": 500000
724
- },
725
706
  {
726
707
  "id": "qwen3.7-plus",
727
708
  "name": "Qwen3.7 Plus",
@@ -740,32 +721,5 @@
740
721
  },
741
722
  "contextWindow": 1000000,
742
723
  "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
724
  }
771
725
  ]
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.27",
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,