@brainervirus/opencode-commandcode 0.7.46 → 0.7.48
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 +4 -0
- package/_version.txt +1 -1
- package/manifest.json +7 -7
- package/models.json +58 -0
- package/package.json +2 -1
- package/src/catalog.ts +7 -3
package/CHANGELOG.md
CHANGED
package/_version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.42.0
|
package/manifest.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-09-
|
|
4
|
-
"pluginVersion": "0.7.
|
|
5
|
-
"commandCodeVersion": "1.
|
|
6
|
-
"commandCodeTarball": "https://registry.npmjs.org/command-code/-/command-code-1.
|
|
7
|
-
"modelCount":
|
|
8
|
-
"reasoningModelCount":
|
|
3
|
+
"generatedAt": "2026-09-02T18:01:17.115Z",
|
|
4
|
+
"pluginVersion": "0.7.47",
|
|
5
|
+
"commandCodeVersion": "1.42.0",
|
|
6
|
+
"commandCodeTarball": "https://registry.npmjs.org/command-code/-/command-code-1.42.0.tgz",
|
|
7
|
+
"modelCount": 69,
|
|
8
|
+
"reasoningModelCount": 58,
|
|
9
9
|
"extraction": {
|
|
10
10
|
"modelCatalog": "ok",
|
|
11
11
|
"costCatalog": "cli",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"costSources": {
|
|
15
15
|
"cli": 21,
|
|
16
|
-
"officialDocs":
|
|
16
|
+
"officialDocs": 43,
|
|
17
17
|
"thirdParty": 0,
|
|
18
18
|
"free": 5,
|
|
19
19
|
"fallback": 0,
|
package/models.json
CHANGED
|
@@ -1284,6 +1284,31 @@
|
|
|
1284
1284
|
]
|
|
1285
1285
|
}
|
|
1286
1286
|
},
|
|
1287
|
+
{
|
|
1288
|
+
"id": "meituan/LongCat-2.0:free",
|
|
1289
|
+
"name": "LongCat 2.0",
|
|
1290
|
+
"tier": "open-source",
|
|
1291
|
+
"reasoning": true,
|
|
1292
|
+
"tool_call": true,
|
|
1293
|
+
"cost": {
|
|
1294
|
+
"input": 0,
|
|
1295
|
+
"output": 0,
|
|
1296
|
+
"cache_read": 0
|
|
1297
|
+
},
|
|
1298
|
+
"limit": {
|
|
1299
|
+
"context": 1048576,
|
|
1300
|
+
"output": 65536
|
|
1301
|
+
},
|
|
1302
|
+
"attachment": false,
|
|
1303
|
+
"modalities": {
|
|
1304
|
+
"input": [
|
|
1305
|
+
"text"
|
|
1306
|
+
],
|
|
1307
|
+
"output": [
|
|
1308
|
+
"text"
|
|
1309
|
+
]
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1287
1312
|
{
|
|
1288
1313
|
"id": "xiaomi/mimo-v2.5",
|
|
1289
1314
|
"name": "MiMo V2.5",
|
|
@@ -1833,6 +1858,39 @@
|
|
|
1833
1858
|
]
|
|
1834
1859
|
}
|
|
1835
1860
|
},
|
|
1861
|
+
{
|
|
1862
|
+
"id": "Qwen/Qwen3.8-Max-0902",
|
|
1863
|
+
"name": "Qwen 3.8 Max 0902",
|
|
1864
|
+
"tier": "open-source",
|
|
1865
|
+
"reasoning": true,
|
|
1866
|
+
"reasoningEfforts": [
|
|
1867
|
+
"low",
|
|
1868
|
+
"medium",
|
|
1869
|
+
"xhigh"
|
|
1870
|
+
],
|
|
1871
|
+
"tool_call": true,
|
|
1872
|
+
"cost": {
|
|
1873
|
+
"input": 2,
|
|
1874
|
+
"output": 6,
|
|
1875
|
+
"cache_read": 0.25
|
|
1876
|
+
},
|
|
1877
|
+
"limit": {
|
|
1878
|
+
"context": 1000000,
|
|
1879
|
+
"output": 65536
|
|
1880
|
+
},
|
|
1881
|
+
"attachment": true,
|
|
1882
|
+
"modalities": {
|
|
1883
|
+
"input": [
|
|
1884
|
+
"text",
|
|
1885
|
+
"image",
|
|
1886
|
+
"video",
|
|
1887
|
+
"pdf"
|
|
1888
|
+
],
|
|
1889
|
+
"output": [
|
|
1890
|
+
"text"
|
|
1891
|
+
]
|
|
1892
|
+
}
|
|
1893
|
+
},
|
|
1836
1894
|
{
|
|
1837
1895
|
"id": "stepfun/Step-3.5-Flash",
|
|
1838
1896
|
"name": "Step 3.5 Flash",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/opencode-commandcode",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.48",
|
|
4
4
|
"description": "Command Code API provider for opencode — use Claude, GPT, Gemini, DeepSeek, Qwen, Kimi, GLM, MiniMax, and Step models via Command Code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@semantic-release/github": "12.0.9",
|
|
74
74
|
"@semantic-release/npm": "13.1.5",
|
|
75
75
|
"@semantic-release/release-notes-generator": "14.1.1",
|
|
76
|
+
"@types/bun": "1.4.0",
|
|
76
77
|
"@types/node": "^25.9.1",
|
|
77
78
|
"ai": "6.0.191",
|
|
78
79
|
"oxfmt": "0.63.0",
|
package/src/catalog.ts
CHANGED
|
@@ -396,16 +396,20 @@ export function extractModelCatalog(
|
|
|
396
396
|
}
|
|
397
397
|
if (candidates.length === 0) throw new Error("Could not locate model catalog object");
|
|
398
398
|
|
|
399
|
+
let lastError: unknown = null;
|
|
399
400
|
for (const raw of candidates) {
|
|
400
401
|
try {
|
|
401
402
|
const value = evaluateWithContext(normalizeForEval(raw), ctx);
|
|
402
403
|
if (isModelCatalog(value)) return value;
|
|
403
|
-
} catch {
|
|
404
|
-
//
|
|
404
|
+
} catch (err) {
|
|
405
|
+
// keep the first real failure (e.g. "$R is not defined") — it names the
|
|
406
|
+
// missing binding; later candidates usually fail on the same cause
|
|
407
|
+
lastError ??= err;
|
|
405
408
|
}
|
|
406
409
|
}
|
|
407
410
|
|
|
408
|
-
|
|
411
|
+
const detail = lastError instanceof Error ? `: ${lastError.message}` : "";
|
|
412
|
+
throw new Error(`Could not evaluate model catalog${detail}`);
|
|
409
413
|
}
|
|
410
414
|
|
|
411
415
|
function isCostMap(value: unknown): value is Record<string, CostEntry[]> {
|