openzoo 0.18.8 → 0.18.9

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.
Files changed (2) hide show
  1. package/lib/setup.js +21 -30
  2. package/package.json +1 -1
package/lib/setup.js CHANGED
@@ -23,42 +23,33 @@ import { config } from './config.js';
23
23
  import { writeEditorProviderConfig, editorRunning, quitEditor, pinEditorProviderConfig } from './cursorcfg.js';
24
24
 
25
25
  /**
26
- * Models offered in the editor's picker. All verified present in the live
27
- * catalog; the first is the default selection. A spread across vendors and
28
- * price tiers on purpose the picker is where someone chooses cost, and one
29
- * flagship plus one cheap model is not a choice.
30
- * Override with OPENZOO_MODELS (comma-separated).
26
+ * Models offered in the editor's picker named the way the EDITOR names them.
27
+ *
28
+ * Vendor-prefixed ids (anthropic/claude-opus-5) are foreign to Cursor's picker;
29
+ * its own catalog uses bare names (claude-opus-5, grok-4.6, glm-5.2). Matching
30
+ * that naming means the entries look native and the proxy still resolves them:
31
+ * lib/models.js maps each to a real catalog id (claude-opus-5 ->
32
+ * anthropic/claude-opus-5-fast, grok-4.6 -> x-ai/grok-4.6, composer-2.5 ->
33
+ * qwen/qwen-2.5-coder-32b-instruct), all verified against the live catalog.
34
+ * Override with OPENZOO_MODELS.
31
35
  */
32
36
  const DEFAULT_MODELS = (process.env.OPENZOO_MODELS
33
37
  ? process.env.OPENZOO_MODELS.split(',').map((m) => m.trim()).filter(Boolean)
34
38
  : [
35
- 'anthropic/claude-opus-5', // default — strongest reasoning
36
- 'anthropic/claude-sonnet-4',
37
- 'openai/gpt-5.6-sol-pro', // flagship, ~$90/M out
38
- 'openai/gpt-5.6-luna',
39
- 'x-ai/grok-4.6',
40
- 'z-ai/glm-5.2',
41
- 'google/gemini-3.1-pro-preview-customtools',
42
- 'deepseek/deepseek-v4-pro-0813', // ~34x cheaper output than the flagship
43
- 'qwen/qwen3.8-2.4t-a95b',
44
- 'moonshotai/kimi-k2-0905',
45
- 'meta-llama/llama-4-maverick',
46
- 'bytedance-seed/seed-2.0-code', // code specialist
39
+ 'claude-opus-5', // default
40
+ 'claude-sonnet-5',
41
+ 'gpt-5.6-sol',
42
+ 'gpt-5.6-luna',
43
+ 'grok-4.6',
44
+ 'glm-5.2',
45
+ 'gemini-3.1-pro',
46
+ 'kimi-k3',
47
+ 'gpt-5.3-codex',
48
+ 'claude-haiku-4-5',
49
+ 'composer-2.5',
50
+ 'deepseek/deepseek-v4-pro-0813', // no Cursor equivalent; cheapest output
47
51
  ]);
48
52
 
49
- /**
50
- * An ISOLATED editor profile we own.
51
- *
52
- * The editor's normal profile syncs provider settings from the vendor account
53
- * and overwrites local state on launch — measured repeatedly. `--user-data-dir`
54
- * gives it a profile directory we control, so our settings are the only ones
55
- * there and nothing upstream reclaims them. Opt in with OPENZOO_PROFILE=1 (or
56
- * --profile) because a fresh profile means signing in again and re-adding
57
- * extensions; that is a real cost, not a detail to spring on someone.
58
- */
59
- const PROFILE_DIR = process.env.OPENZOO_PROFILE_DIR
60
- || path.join(os.homedir(), '.openzoo', 'editor-profile');
61
-
62
53
  const MCP_FILES = {
63
54
  cursor: path.join(os.homedir(), '.cursor', 'mcp.json'),
64
55
  vscode: path.join(os.homedir(), '.vscode', 'mcp.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openzoo",
3
- "version": "0.18.8",
3
+ "version": "0.18.9",
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",