openzoo 0.50.68 → 0.50.69
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/lib/cursorbackend.js +12 -5
- package/package.json +1 -1
package/lib/cursorbackend.js
CHANGED
|
@@ -1836,9 +1836,12 @@ const MODEL_ALIASES = {
|
|
|
1836
1836
|
opus: 'anthropic/claude-opus-5',
|
|
1837
1837
|
'opus-5': 'anthropic/claude-opus-5',
|
|
1838
1838
|
sonnet: 'anthropic/claude-sonnet-5',
|
|
1839
|
-
grok
|
|
1840
|
-
|
|
1841
|
-
|
|
1839
|
+
// BARE grok-4.6 is the bazaar (x402 door) row; x-ai/grok-4.6 is OpenRouter's
|
|
1840
|
+
// and drains OpenRouter credits. Every spelling lands on the bare id.
|
|
1841
|
+
grok: 'grok-4.6',
|
|
1842
|
+
'grok-4': 'grok-4.6',
|
|
1843
|
+
'grok-4.6': 'grok-4.6',
|
|
1844
|
+
'x-ai/grok-4.6': 'grok-4.6',
|
|
1842
1845
|
glm: 'zai-org/glm-5.3-flash',
|
|
1843
1846
|
'glm-5': 'zai-org/glm-5.3-flash',
|
|
1844
1847
|
'glm-5.3': 'zai-org/glm-5.3-flash',
|
|
@@ -1872,10 +1875,14 @@ async function resolveModelId(raw) {
|
|
|
1872
1875
|
return ids.find((id) => id === s) || ids.find((id) => id.toLowerCase() === lower) || null;
|
|
1873
1876
|
} catch { return null; }
|
|
1874
1877
|
}
|
|
1878
|
+
export function canonicalZooModel(id) {
|
|
1879
|
+
const s = String(id || '').trim();
|
|
1880
|
+
return MODEL_ALIASES[s.toLowerCase()] || s;
|
|
1881
|
+
}
|
|
1875
1882
|
function currentModel(agentId) {
|
|
1876
|
-
return agentModels.get(agentId)
|
|
1883
|
+
return canonicalZooModel(agentModels.get(agentId)
|
|
1877
1884
|
|| process.env.OPENZOO_DEFAULT_MODEL
|
|
1878
|
-
|| DEFAULT_ZOO_MODEL;
|
|
1885
|
+
|| DEFAULT_ZOO_MODEL);
|
|
1879
1886
|
}
|
|
1880
1887
|
|
|
1881
1888
|
const execFileAsync = promisify(execFile);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.69",
|
|
4
4
|
"description": "Local x402-paying proxy + MCP server for openzoo.fun — point any OpenAI-compatible harness (Cursor, Claude Code, aider, SDKs) at localhost and it pays per call from a local burner wallet. Solana and Base rails live; Robinhood experimental.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|