@askdkc/dsh-cli 0.12.1 → 0.12.3
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 +7 -2
- package/lib/types/dsh-adapter/contract.d.ts +4 -3
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +5 -3
- package/node_modules/@askdkc/dsh-auth/README.ja.md +6 -0
- package/node_modules/@askdkc/dsh-auth/README.md +5 -0
- package/node_modules/@askdkc/dsh-auth/lib/fresh-models.d.ts +59 -0
- package/node_modules/@askdkc/dsh-auth/lib/fresh-models.js +246 -0
- package/node_modules/@askdkc/dsh-auth/lib/index.d.ts +1 -0
- package/node_modules/@askdkc/dsh-auth/lib/index.js +1 -0
- package/node_modules/@askdkc/dsh-auth/lib/opencode-snapshot.generated.d.ts +321 -0
- package/node_modules/@askdkc/dsh-auth/lib/opencode-snapshot.generated.js +528 -0
- package/node_modules/@askdkc/dsh-auth/lib/pi-ai.d.ts +2 -1
- package/node_modules/@askdkc/dsh-auth/lib/pi-ai.js +2 -1
- package/node_modules/@askdkc/dsh-auth/lib/profiles.js +7 -1
- package/node_modules/@askdkc/dsh-auth/package.json +11 -10
- package/node_modules/dsh-working-activity/package.json +9 -9
- package/package.json +92 -92
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/sync-opencode-models.mjs — do not edit by hand.
|
|
3
|
+
* Refresh: `pnpm --dir dsh-auth sync:models`.
|
|
4
|
+
*
|
|
5
|
+
* generatedAt: 2026-09-30T15:19:42.378Z
|
|
6
|
+
* pi-ai: 0.99.1
|
|
7
|
+
* live roster: zen=82 go=43
|
|
8
|
+
* beyond installed catalog: zen=+5 go=+14
|
|
9
|
+
*
|
|
10
|
+
* Shape contract (see src/fresh-models.ts parseSnapshotData):
|
|
11
|
+
* version=1, per route { roster (live chat ids, sorted), entries
|
|
12
|
+
* (allowlisted models.dev metadata for roster ids the installed catalog
|
|
13
|
+
* lacks), fallback (roster ids neither source describes — runtime clones
|
|
14
|
+
* the nearest catalog sibling and flags nothing on the model object;
|
|
15
|
+
* provenance lives here) }, classifiers (live ids pi-ai serves on its
|
|
16
|
+
* classifier path, excluded from the chat merge).
|
|
17
|
+
*/
|
|
18
|
+
export const OPENCODE_SNAPSHOT = {
|
|
19
|
+
"version": 1,
|
|
20
|
+
"generatedAt": "2026-09-30T15:19:42.378Z",
|
|
21
|
+
"piAiVersion": "0.99.1",
|
|
22
|
+
"sources": {
|
|
23
|
+
"modelsDev": "https://models.dev/api.json",
|
|
24
|
+
"zen": "https://opencode.ai/zen/v1/models",
|
|
25
|
+
"go": "https://opencode.ai/zen/go/v1/models"
|
|
26
|
+
},
|
|
27
|
+
"classifiers": [
|
|
28
|
+
"jev-1.13",
|
|
29
|
+
"jev-1.13-free"
|
|
30
|
+
],
|
|
31
|
+
"opencode": {
|
|
32
|
+
"roster": [
|
|
33
|
+
"big-pickle",
|
|
34
|
+
"claude-fable-5",
|
|
35
|
+
"claude-fable-5-1",
|
|
36
|
+
"claude-haiku-4-5",
|
|
37
|
+
"claude-opus-4-5",
|
|
38
|
+
"claude-opus-4-6",
|
|
39
|
+
"claude-opus-4-7",
|
|
40
|
+
"claude-opus-4-8",
|
|
41
|
+
"claude-opus-5",
|
|
42
|
+
"claude-opus-5-5",
|
|
43
|
+
"claude-sonnet-4",
|
|
44
|
+
"claude-sonnet-4-5",
|
|
45
|
+
"claude-sonnet-4-6",
|
|
46
|
+
"claude-sonnet-5",
|
|
47
|
+
"claude-sonnet-5-5",
|
|
48
|
+
"deepseek-v4-flash",
|
|
49
|
+
"deepseek-v4-flash-free",
|
|
50
|
+
"deepseek-v4-flash-vision-exp",
|
|
51
|
+
"deepseek-v4-pro",
|
|
52
|
+
"deepseek-v4.1-flash",
|
|
53
|
+
"gemini-3-flash",
|
|
54
|
+
"gemini-3.1-pro",
|
|
55
|
+
"gemini-3.5-flash",
|
|
56
|
+
"gemini-3.5-flash-lite",
|
|
57
|
+
"gemini-3.6-flash",
|
|
58
|
+
"gemini-3.7-flash",
|
|
59
|
+
"gemini-3.8-flash",
|
|
60
|
+
"glm-5",
|
|
61
|
+
"glm-5.1",
|
|
62
|
+
"glm-5.2",
|
|
63
|
+
"glm-5.3",
|
|
64
|
+
"glm-5.3-flash",
|
|
65
|
+
"gpt-5",
|
|
66
|
+
"gpt-5-codex",
|
|
67
|
+
"gpt-5-nano",
|
|
68
|
+
"gpt-5.1",
|
|
69
|
+
"gpt-5.1-codex",
|
|
70
|
+
"gpt-5.1-codex-max",
|
|
71
|
+
"gpt-5.1-codex-mini",
|
|
72
|
+
"gpt-5.2",
|
|
73
|
+
"gpt-5.2-codex",
|
|
74
|
+
"gpt-5.3-codex",
|
|
75
|
+
"gpt-5.3-codex-spark",
|
|
76
|
+
"gpt-5.4",
|
|
77
|
+
"gpt-5.4-mini",
|
|
78
|
+
"gpt-5.4-nano",
|
|
79
|
+
"gpt-5.4-pro",
|
|
80
|
+
"gpt-5.5",
|
|
81
|
+
"gpt-5.5-pro",
|
|
82
|
+
"gpt-5.6-luna",
|
|
83
|
+
"gpt-5.6-sol",
|
|
84
|
+
"gpt-5.6-terra",
|
|
85
|
+
"gpt-6-astra",
|
|
86
|
+
"gpt-6-luna",
|
|
87
|
+
"gpt-6-sol",
|
|
88
|
+
"gpt-6.1-sol",
|
|
89
|
+
"grok-4.5",
|
|
90
|
+
"grok-4.6",
|
|
91
|
+
"grok-4.7",
|
|
92
|
+
"grok-build-0.1",
|
|
93
|
+
"kimi-k2.5",
|
|
94
|
+
"kimi-k2.6",
|
|
95
|
+
"kimi-k2.7-code",
|
|
96
|
+
"kimi-k3",
|
|
97
|
+
"ling-3.0-flash-fin-free",
|
|
98
|
+
"longcat-2.5-preview-free",
|
|
99
|
+
"mimo-v2.5-free",
|
|
100
|
+
"mimo-v2.6-flash-free",
|
|
101
|
+
"minimax-m2.5",
|
|
102
|
+
"minimax-m2.7",
|
|
103
|
+
"minimax-m3",
|
|
104
|
+
"muse-spark-1.2",
|
|
105
|
+
"muse-spark-1.2-contributor-free",
|
|
106
|
+
"muse-spark-1.3",
|
|
107
|
+
"muse-spark-1.3-contributor-free",
|
|
108
|
+
"nemotron-3-ultra-free",
|
|
109
|
+
"nemotron-3.5-lightning-free",
|
|
110
|
+
"qwen3.5-plus",
|
|
111
|
+
"qwen3.6-plus",
|
|
112
|
+
"qwen3.8-flash",
|
|
113
|
+
"qwen3.8-max",
|
|
114
|
+
"space-bunny-free"
|
|
115
|
+
],
|
|
116
|
+
"entries": {
|
|
117
|
+
"deepseek-v4-flash-free": {
|
|
118
|
+
"id": "deepseek-v4-flash-free",
|
|
119
|
+
"name": "DeepSeek V4 Flash Free",
|
|
120
|
+
"reasoning": true,
|
|
121
|
+
"attachment": false,
|
|
122
|
+
"modalities": {
|
|
123
|
+
"input": [
|
|
124
|
+
"text"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"limit": {
|
|
128
|
+
"context": 200000,
|
|
129
|
+
"output": 128000
|
|
130
|
+
},
|
|
131
|
+
"cost": {
|
|
132
|
+
"input": 0,
|
|
133
|
+
"output": 0,
|
|
134
|
+
"cache_read": 0
|
|
135
|
+
},
|
|
136
|
+
"temperature": true,
|
|
137
|
+
"reasoning_options": {
|
|
138
|
+
"effort": [
|
|
139
|
+
"low",
|
|
140
|
+
"high",
|
|
141
|
+
"max"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"gpt-5.3-codex-spark": {
|
|
146
|
+
"id": "gpt-5.3-codex-spark",
|
|
147
|
+
"name": "GPT-5.3 Codex Spark",
|
|
148
|
+
"reasoning": true,
|
|
149
|
+
"attachment": false,
|
|
150
|
+
"modalities": {
|
|
151
|
+
"input": [
|
|
152
|
+
"text"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"limit": {
|
|
156
|
+
"context": 128000,
|
|
157
|
+
"output": 128000
|
|
158
|
+
},
|
|
159
|
+
"cost": {
|
|
160
|
+
"input": 1.75,
|
|
161
|
+
"output": 14,
|
|
162
|
+
"cache_read": 0.175
|
|
163
|
+
},
|
|
164
|
+
"temperature": false,
|
|
165
|
+
"reasoning_options": {
|
|
166
|
+
"effort": [
|
|
167
|
+
"low",
|
|
168
|
+
"medium",
|
|
169
|
+
"high",
|
|
170
|
+
"xhigh"
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"gpt-6.1-sol": {
|
|
175
|
+
"id": "gpt-6.1-sol",
|
|
176
|
+
"name": "GPT-6.1 Sol",
|
|
177
|
+
"reasoning": true,
|
|
178
|
+
"attachment": true,
|
|
179
|
+
"modalities": {
|
|
180
|
+
"input": [
|
|
181
|
+
"text",
|
|
182
|
+
"image",
|
|
183
|
+
"pdf"
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
"limit": {
|
|
187
|
+
"context": 1050000,
|
|
188
|
+
"output": 128000
|
|
189
|
+
},
|
|
190
|
+
"cost": {
|
|
191
|
+
"input": 2,
|
|
192
|
+
"output": 10,
|
|
193
|
+
"cache_read": 0.1
|
|
194
|
+
},
|
|
195
|
+
"temperature": false,
|
|
196
|
+
"reasoning_options": {
|
|
197
|
+
"effort": [
|
|
198
|
+
"low",
|
|
199
|
+
"medium",
|
|
200
|
+
"high",
|
|
201
|
+
"xhigh",
|
|
202
|
+
"max"
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"mimo-v2.5-free": {
|
|
207
|
+
"id": "mimo-v2.5-free",
|
|
208
|
+
"name": "MiMo V2.5 Free",
|
|
209
|
+
"reasoning": true,
|
|
210
|
+
"attachment": true,
|
|
211
|
+
"modalities": {
|
|
212
|
+
"input": [
|
|
213
|
+
"text",
|
|
214
|
+
"image",
|
|
215
|
+
"audio",
|
|
216
|
+
"video"
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"limit": {
|
|
220
|
+
"context": 200000,
|
|
221
|
+
"output": 32000
|
|
222
|
+
},
|
|
223
|
+
"cost": {
|
|
224
|
+
"input": 0,
|
|
225
|
+
"output": 0,
|
|
226
|
+
"cache_read": 0
|
|
227
|
+
},
|
|
228
|
+
"temperature": true
|
|
229
|
+
},
|
|
230
|
+
"muse-spark-1.2-contributor-free": {
|
|
231
|
+
"id": "muse-spark-1.2-contributor-free",
|
|
232
|
+
"name": "Muse Spark 1.2 Free",
|
|
233
|
+
"reasoning": true,
|
|
234
|
+
"attachment": true,
|
|
235
|
+
"modalities": {
|
|
236
|
+
"input": [
|
|
237
|
+
"text",
|
|
238
|
+
"image",
|
|
239
|
+
"video",
|
|
240
|
+
"pdf",
|
|
241
|
+
"audio"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"limit": {
|
|
245
|
+
"context": 1048576,
|
|
246
|
+
"output": 131072
|
|
247
|
+
},
|
|
248
|
+
"cost": {
|
|
249
|
+
"input": 0,
|
|
250
|
+
"output": 0,
|
|
251
|
+
"cache_read": 0
|
|
252
|
+
},
|
|
253
|
+
"temperature": true,
|
|
254
|
+
"reasoning_options": {
|
|
255
|
+
"effort": [
|
|
256
|
+
"minimal",
|
|
257
|
+
"low",
|
|
258
|
+
"medium",
|
|
259
|
+
"high",
|
|
260
|
+
"xhigh"
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"fallback": []
|
|
266
|
+
},
|
|
267
|
+
"opencode-go": {
|
|
268
|
+
"roster": [
|
|
269
|
+
"deepseek-flash",
|
|
270
|
+
"deepseek-v4-flash",
|
|
271
|
+
"deepseek-v4-flash-vision-exp",
|
|
272
|
+
"deepseek-v4-pro",
|
|
273
|
+
"deepseek-v4.1-flash",
|
|
274
|
+
"glm-5",
|
|
275
|
+
"glm-5.1",
|
|
276
|
+
"glm-5.2",
|
|
277
|
+
"glm-5.3",
|
|
278
|
+
"glm-5.3-flash",
|
|
279
|
+
"gpt-5.6-luna",
|
|
280
|
+
"gpt-6-luna",
|
|
281
|
+
"grok-4.5",
|
|
282
|
+
"grok-4.6",
|
|
283
|
+
"grok-4.7",
|
|
284
|
+
"hy3",
|
|
285
|
+
"hy3-preview",
|
|
286
|
+
"hy4-preview",
|
|
287
|
+
"kimi-k2.5",
|
|
288
|
+
"kimi-k2.6",
|
|
289
|
+
"kimi-k2.7-code",
|
|
290
|
+
"kimi-k3",
|
|
291
|
+
"longcat-2.0",
|
|
292
|
+
"longcat-2.5-preview-free",
|
|
293
|
+
"mimo-v2-omni",
|
|
294
|
+
"mimo-v2-pro",
|
|
295
|
+
"mimo-v2.5",
|
|
296
|
+
"mimo-v2.5-pro",
|
|
297
|
+
"mimo-v2.6-flash",
|
|
298
|
+
"mimo-v2.6-pro",
|
|
299
|
+
"minimax-m2.5",
|
|
300
|
+
"minimax-m2.7",
|
|
301
|
+
"minimax-m3",
|
|
302
|
+
"muse-spark-1.2-contributor",
|
|
303
|
+
"muse-spark-1.3-contributor",
|
|
304
|
+
"omen-alpha",
|
|
305
|
+
"qwen3.5-plus",
|
|
306
|
+
"qwen3.6-plus",
|
|
307
|
+
"qwen3.7-max",
|
|
308
|
+
"qwen3.7-plus",
|
|
309
|
+
"qwen3.8-flash",
|
|
310
|
+
"qwen3.8-max",
|
|
311
|
+
"space-bunny-free"
|
|
312
|
+
],
|
|
313
|
+
"entries": {
|
|
314
|
+
"glm-5": {
|
|
315
|
+
"id": "glm-5",
|
|
316
|
+
"name": "GLM-5",
|
|
317
|
+
"reasoning": true,
|
|
318
|
+
"attachment": false,
|
|
319
|
+
"modalities": {
|
|
320
|
+
"input": [
|
|
321
|
+
"text"
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
"limit": {
|
|
325
|
+
"context": 204800,
|
|
326
|
+
"output": 131072
|
|
327
|
+
},
|
|
328
|
+
"cost": {
|
|
329
|
+
"input": 1,
|
|
330
|
+
"output": 3.2,
|
|
331
|
+
"cache_read": 0.2
|
|
332
|
+
},
|
|
333
|
+
"temperature": true
|
|
334
|
+
},
|
|
335
|
+
"glm-5.1": {
|
|
336
|
+
"id": "glm-5.1",
|
|
337
|
+
"name": "GLM-5.1",
|
|
338
|
+
"reasoning": true,
|
|
339
|
+
"attachment": false,
|
|
340
|
+
"modalities": {
|
|
341
|
+
"input": [
|
|
342
|
+
"text"
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
"limit": {
|
|
346
|
+
"context": 204800,
|
|
347
|
+
"output": 131072
|
|
348
|
+
},
|
|
349
|
+
"cost": {
|
|
350
|
+
"input": 1.4,
|
|
351
|
+
"output": 4.4,
|
|
352
|
+
"cache_read": 0.26
|
|
353
|
+
},
|
|
354
|
+
"temperature": true
|
|
355
|
+
},
|
|
356
|
+
"grok-4.5": {
|
|
357
|
+
"id": "grok-4.5",
|
|
358
|
+
"name": "Grok 4.5",
|
|
359
|
+
"reasoning": true,
|
|
360
|
+
"attachment": true,
|
|
361
|
+
"modalities": {
|
|
362
|
+
"input": [
|
|
363
|
+
"text",
|
|
364
|
+
"image"
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
"limit": {
|
|
368
|
+
"context": 500000,
|
|
369
|
+
"output": 500000
|
|
370
|
+
},
|
|
371
|
+
"cost": {
|
|
372
|
+
"input": 2,
|
|
373
|
+
"output": 6,
|
|
374
|
+
"cache_read": 0.3
|
|
375
|
+
},
|
|
376
|
+
"temperature": true,
|
|
377
|
+
"reasoning_options": {
|
|
378
|
+
"effort": [
|
|
379
|
+
"low",
|
|
380
|
+
"medium",
|
|
381
|
+
"high"
|
|
382
|
+
]
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"kimi-k2.5": {
|
|
386
|
+
"id": "kimi-k2.5",
|
|
387
|
+
"name": "Kimi K2.5",
|
|
388
|
+
"reasoning": true,
|
|
389
|
+
"attachment": true,
|
|
390
|
+
"modalities": {
|
|
391
|
+
"input": [
|
|
392
|
+
"text",
|
|
393
|
+
"image",
|
|
394
|
+
"video"
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
"limit": {
|
|
398
|
+
"context": 262144,
|
|
399
|
+
"output": 65536
|
|
400
|
+
},
|
|
401
|
+
"cost": {
|
|
402
|
+
"input": 0.6,
|
|
403
|
+
"output": 3,
|
|
404
|
+
"cache_read": 0.08
|
|
405
|
+
},
|
|
406
|
+
"temperature": true
|
|
407
|
+
},
|
|
408
|
+
"kimi-k2.6": {
|
|
409
|
+
"id": "kimi-k2.6",
|
|
410
|
+
"name": "Kimi K2.6",
|
|
411
|
+
"reasoning": true,
|
|
412
|
+
"attachment": true,
|
|
413
|
+
"modalities": {
|
|
414
|
+
"input": [
|
|
415
|
+
"text",
|
|
416
|
+
"image",
|
|
417
|
+
"video"
|
|
418
|
+
]
|
|
419
|
+
},
|
|
420
|
+
"limit": {
|
|
421
|
+
"context": 262144,
|
|
422
|
+
"output": 65536
|
|
423
|
+
},
|
|
424
|
+
"cost": {
|
|
425
|
+
"input": 0.95,
|
|
426
|
+
"output": 4,
|
|
427
|
+
"cache_read": 0.16
|
|
428
|
+
},
|
|
429
|
+
"temperature": true
|
|
430
|
+
},
|
|
431
|
+
"minimax-m2.5": {
|
|
432
|
+
"id": "minimax-m2.5",
|
|
433
|
+
"name": "MiniMax-M2.5",
|
|
434
|
+
"reasoning": true,
|
|
435
|
+
"attachment": false,
|
|
436
|
+
"modalities": {
|
|
437
|
+
"input": [
|
|
438
|
+
"text"
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
"limit": {
|
|
442
|
+
"context": 204800,
|
|
443
|
+
"output": 131072
|
|
444
|
+
},
|
|
445
|
+
"cost": {
|
|
446
|
+
"input": 0.3,
|
|
447
|
+
"output": 1.2,
|
|
448
|
+
"cache_read": 0.06
|
|
449
|
+
},
|
|
450
|
+
"temperature": true
|
|
451
|
+
},
|
|
452
|
+
"qwen3.5-plus": {
|
|
453
|
+
"id": "qwen3.5-plus",
|
|
454
|
+
"name": "Qwen3.5 Plus",
|
|
455
|
+
"reasoning": true,
|
|
456
|
+
"attachment": true,
|
|
457
|
+
"modalities": {
|
|
458
|
+
"input": [
|
|
459
|
+
"text",
|
|
460
|
+
"image",
|
|
461
|
+
"video"
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
"limit": {
|
|
465
|
+
"context": 262144,
|
|
466
|
+
"output": 65536
|
|
467
|
+
},
|
|
468
|
+
"cost": {
|
|
469
|
+
"input": 0.2,
|
|
470
|
+
"output": 1.2,
|
|
471
|
+
"cache_read": 0.02
|
|
472
|
+
},
|
|
473
|
+
"temperature": true
|
|
474
|
+
},
|
|
475
|
+
"qwen3.6-plus": {
|
|
476
|
+
"id": "qwen3.6-plus",
|
|
477
|
+
"name": "Qwen3.6 Plus",
|
|
478
|
+
"reasoning": true,
|
|
479
|
+
"attachment": true,
|
|
480
|
+
"modalities": {
|
|
481
|
+
"input": [
|
|
482
|
+
"text",
|
|
483
|
+
"image",
|
|
484
|
+
"video"
|
|
485
|
+
]
|
|
486
|
+
},
|
|
487
|
+
"limit": {
|
|
488
|
+
"context": 1000000,
|
|
489
|
+
"output": 65536
|
|
490
|
+
},
|
|
491
|
+
"cost": {
|
|
492
|
+
"input": 0.5,
|
|
493
|
+
"output": 3,
|
|
494
|
+
"cache_read": 0.05
|
|
495
|
+
},
|
|
496
|
+
"temperature": true
|
|
497
|
+
},
|
|
498
|
+
"qwen3.7-max": {
|
|
499
|
+
"id": "qwen3.7-max",
|
|
500
|
+
"name": "Qwen3.7 Max",
|
|
501
|
+
"reasoning": true,
|
|
502
|
+
"attachment": false,
|
|
503
|
+
"modalities": {
|
|
504
|
+
"input": [
|
|
505
|
+
"text"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
"limit": {
|
|
509
|
+
"context": 1000000,
|
|
510
|
+
"output": 65536
|
|
511
|
+
},
|
|
512
|
+
"cost": {
|
|
513
|
+
"input": 2.5,
|
|
514
|
+
"output": 7.5,
|
|
515
|
+
"cache_read": 0.5
|
|
516
|
+
},
|
|
517
|
+
"temperature": true
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
"fallback": [
|
|
521
|
+
"deepseek-flash",
|
|
522
|
+
"hy3-preview",
|
|
523
|
+
"mimo-v2-omni",
|
|
524
|
+
"mimo-v2-pro",
|
|
525
|
+
"omen-alpha"
|
|
526
|
+
]
|
|
527
|
+
}
|
|
528
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The pi-ai instance owned by the installed dsh-llm-pi-ai adapter.
|
|
3
3
|
*
|
|
4
|
-
* dsh-llm-pi-ai rc.2
|
|
4
|
+
* dsh-llm-pi-ai 0.2.0-rc.2 declares pi-ai ^0.87.1; the workspace override
|
|
5
|
+
* pins @earendil-works/pi-ai to the latest verified catalog (0.99.1).
|
|
5
6
|
* Loading a second catalog from dsh-auth and handing its Provider objects to
|
|
6
7
|
* the adapter crosses package instances and is neither type- nor runtime-safe.
|
|
7
8
|
* Resolve the adapter's own dependency instead, and derive every public type
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The pi-ai instance owned by the installed dsh-llm-pi-ai adapter.
|
|
3
3
|
*
|
|
4
|
-
* dsh-llm-pi-ai rc.2
|
|
4
|
+
* dsh-llm-pi-ai 0.2.0-rc.2 declares pi-ai ^0.87.1; the workspace override
|
|
5
|
+
* pins @earendil-works/pi-ai to the latest verified catalog (0.99.1).
|
|
5
6
|
* Loading a second catalog from dsh-auth and handing its Provider objects to
|
|
6
7
|
* the adapter crosses package instances and is neither type- nor runtime-safe.
|
|
7
8
|
* Resolve the adapter's own dependency instead, and derive every public type
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { randomUUID } from 'node:crypto';
|
|
13
13
|
import { resolveRetryPolicy } from '@deepseek-ai/dsh-llm';
|
|
14
14
|
import { adapterBuiltinProviders } from './pi-ai.js';
|
|
15
|
+
import { withFreshModels } from './fresh-models.js';
|
|
15
16
|
/** Provider routes this build mounts, in picker order. */
|
|
16
17
|
export const OAUTH_PROVIDER_IDS = ['openai-codex', 'anthropic', 'xai'];
|
|
17
18
|
export const CATALOG_PROVIDER_IDS = [...OAUTH_PROVIDER_IDS, 'opencode', 'opencode-go', 'openrouter'];
|
|
@@ -110,7 +111,12 @@ export function buildOAuthProfile(id, modelOverrides) {
|
|
|
110
111
|
throw new Error(`dsh-auth: "${id}" is not a catalog provider this build mounts (${CATALOG_PROVIDER_IDS.join(', ')})`);
|
|
111
112
|
}
|
|
112
113
|
const provider = catalogProviderOf(id);
|
|
113
|
-
const
|
|
114
|
+
const routed = id === 'opencode' || id === 'opencode-go' ? withOpenCodeSessionHeader(provider) : provider;
|
|
115
|
+
// OpenCode routes serve the live roster on top of the installed catalog:
|
|
116
|
+
// per-model wire protocols resolve from the nearest catalog sibling and
|
|
117
|
+
// installed models always win, so this only ever adds (see fresh-models).
|
|
118
|
+
const fresh = id === 'opencode' || id === 'opencode-go' ? withFreshModels(routed, id) : routed;
|
|
119
|
+
const catalog = withModelOverrides(fresh, modelOverrides);
|
|
114
120
|
return {
|
|
115
121
|
provider: id,
|
|
116
122
|
displayName: catalog.name,
|
|
@@ -45,15 +45,16 @@
|
|
|
45
45
|
"build": "tsc -p tsconfig.json",
|
|
46
46
|
"clean": "node -e \"require('node:fs').rmSync('lib', { recursive: true, force: true })\"",
|
|
47
47
|
"smoke": "node scripts/smoke.mjs",
|
|
48
|
+
"sync:models": "node scripts/sync-opencode-models.mjs",
|
|
48
49
|
"verify": "npm run build && npm run smoke"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
52
|
-
"@deepseek-ai/dsh-attachment": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
53
|
-
"@deepseek-ai/dsh-commands": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
54
|
-
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
55
|
-
"@deepseek-ai/dsh-llm-pi-ai": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
56
|
-
"@deepseek-ai/dsh-user-questions": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
53
|
+
"@deepseek-ai/dsh-attachment": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-commands": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-llm-pi-ai": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-user-questions": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
57
58
|
"@deepseek-ai/schemastery": "^3.18.1"
|
|
58
59
|
},
|
|
59
60
|
"peerDependenciesMeta": {
|
|
@@ -63,11 +64,11 @@
|
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
66
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
66
|
-
"@deepseek-ai/dsh-attachment": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
67
|
-
"@deepseek-ai/dsh-commands": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
68
|
-
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
69
|
-
"@deepseek-ai/dsh-llm-pi-ai": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
70
|
-
"@deepseek-ai/dsh-user-questions": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-attachment": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-commands": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-llm-pi-ai": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-user-questions": "^0.1.0-rc.6 || ^0.1.1-rc.1 || 0.1.2-alpha.3 || 0.1.2-alpha.4 || 0.1.2-alpha.5 || 0.1.2-rc.1 || 0.1.3-alpha.2 || 0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.7-rc.1 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
71
72
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
72
73
|
"@types/node": "^22.0.0",
|
|
73
74
|
"typescript": "^6.0.3"
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
76
|
-
"@deepseek-ai/dsh-agent": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.7-rc.2 || 0.2.0-rc.1",
|
|
77
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.7-rc.2 || 0.2.0-rc.1",
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-rc.2 || 0.2.0-rc.1",
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-session": "^0.1.7-rc.2 || 0.2.0-rc.1",
|
|
80
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.7-rc.2 || 0.2.0-rc.1",
|
|
81
|
-
"@deepseek-ai/dsh-invariants": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.7-rc.2 || 0.2.0-rc.1",
|
|
82
|
-
"@deepseek-ai/dsh-session": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.7-rc.2 || 0.2.0-rc.1",
|
|
83
|
-
"@deepseek-ai/dsh-session-projection": "^0.1.7-rc.2 || 0.2.0-rc.1",
|
|
84
|
-
"@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.7-rc.2 || 0.2.0-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-agent": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
77
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
80
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
81
|
+
"@deepseek-ai/dsh-invariants": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
82
|
+
"@deepseek-ai/dsh-session": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
83
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
84
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
85
85
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
86
86
|
"react": "^18.2.0"
|
|
87
87
|
},
|