@runtypelabs/cli 2.10.3 → 2.10.5

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 CHANGED
@@ -767,7 +767,7 @@ RUNTYPE_DASHBOARD_URL=http://localhost:3001
767
767
  CLERK_PUBLISHABLE_KEY=pk_test_your_key_here
768
768
 
769
769
  # Optional: Set defaults
770
- RUNTYPE_DEFAULT_MODEL=meta/llama3.1-8b-instruct-free
770
+ RUNTYPE_DEFAULT_MODEL=qwen/qwen3.5-9b
771
771
  RUNTYPE_DEFAULT_TEMPERATURE=0.7
772
772
  DEBUG=true
773
773
  ```
package/dist/index.js CHANGED
@@ -38,6 +38,93 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
38
  mod
39
39
  ));
40
40
 
41
+ // ../shared/dist/default-models.js
42
+ var require_default_models = __commonJS({
43
+ "../shared/dist/default-models.js"(exports) {
44
+ "use strict";
45
+ var _a;
46
+ var _b;
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.LIGHTWEIGHT_MODELS = exports.FALLBACK_MODEL_ID = exports.DEFAULT_MODEL_ID = exports.DEFAULT_MODELS_FOR_NEW_ACCOUNTS = void 0;
49
+ exports.getDefaultModelsByProvider = getDefaultModelsByProvider;
50
+ exports.getDefaultModel = getDefaultModel;
51
+ exports.getDefaultModelProviders = getDefaultModelProviders;
52
+ exports.DEFAULT_MODELS_FOR_NEW_ACCOUNTS = [
53
+ // Mixlayer models
54
+ { provider: "runtype", modelId: "qwen/qwen3.5-9b", isDefault: true },
55
+ { provider: "runtype", modelId: "qwen3.5-plus", isDefault: false },
56
+ // Routed models - benefit from automatic provider optimization
57
+ // OpenAI models (routed via OpenAI direct, with Vercel fallback)
58
+ { provider: "runtype", modelId: "gpt-5.4", isDefault: false },
59
+ { provider: "runtype", modelId: "gpt-5.4-mini", isDefault: false },
60
+ // Anthropic models (routed via Anthropic direct, with Vertex/Bedrock fallback)
61
+ { provider: "runtype", modelId: "claude-sonnet-4-6", isDefault: false },
62
+ { provider: "runtype", modelId: "claude-haiku-4-5", isDefault: false },
63
+ { provider: "runtype", modelId: "claude-opus-4-6", isDefault: false },
64
+ // Google models (routed via Google direct, with Vertex/Vercel fallback)
65
+ { provider: "runtype", modelId: "gemini-3-1-flash-lite", isDefault: false },
66
+ { provider: "runtype", modelId: "gemini-3-1-flash-image", isDefault: false },
67
+ { provider: "runtype", modelId: "gemini-3.1-pro", isDefault: false },
68
+ // xAI models (routed via xAI direct, with Vercel fallback)
69
+ { provider: "runtype", modelId: "grok-4", isDefault: false },
70
+ { provider: "runtype", modelId: "grok-4-fast", isDefault: false },
71
+ // Inception models (routed via Vercel)
72
+ { provider: "runtype", modelId: "mercury-2", isDefault: false }
73
+ ];
74
+ exports.DEFAULT_MODEL_ID = (_b = (_a = exports.DEFAULT_MODELS_FOR_NEW_ACCOUNTS.find((m) => m.isDefault)) === null || _a === void 0 ? void 0 : _a.modelId) !== null && _b !== void 0 ? _b : "qwen/qwen3.5-9b";
75
+ exports.FALLBACK_MODEL_ID = "gpt-5.4-nano";
76
+ function getDefaultModelsByProvider(provider) {
77
+ return exports.DEFAULT_MODELS_FOR_NEW_ACCOUNTS.filter((m) => m.provider === provider);
78
+ }
79
+ function getDefaultModel() {
80
+ return exports.DEFAULT_MODELS_FOR_NEW_ACCOUNTS.find((m) => m.isDefault);
81
+ }
82
+ function getDefaultModelProviders() {
83
+ return [...new Set(exports.DEFAULT_MODELS_FOR_NEW_ACCOUNTS.map((m) => m.provider))];
84
+ }
85
+ exports.LIGHTWEIGHT_MODELS = [
86
+ {
87
+ id: "qwen3.5-35b-a3b",
88
+ name: "Qwen 3.5 35B A3B (Recommended)",
89
+ description: "Best quality for formatting, fast with great JSON compliance"
90
+ },
91
+ {
92
+ id: "qwen3.5-flash",
93
+ name: "Qwen 3.5 Flash",
94
+ description: "Very fast & cheap, excellent JSON compliance"
95
+ },
96
+ {
97
+ id: "gpt-4.1-nano",
98
+ name: "GPT-4.1 Nano",
99
+ description: "Fastest & cheapest, designed for classification"
100
+ },
101
+ { id: "gpt-4.1-mini", name: "GPT-4.1 Mini", description: "Fast general purpose" },
102
+ { id: "gpt-5-nano", name: "GPT-5 Nano", description: "Latest generation, very affordable" },
103
+ {
104
+ id: "mixlayer/nvidia/orchestrator-8b",
105
+ name: "NVIDIA Orchestrator 8B",
106
+ description: "Purpose-built for tool/intent routing"
107
+ },
108
+ {
109
+ id: "mixlayer/qwen/qwen3.5-9b",
110
+ name: "Qwen 3.5 9B",
111
+ description: "Fast open-source, non-reasoning mode"
112
+ },
113
+ {
114
+ id: "gemini-3-1-flash-lite",
115
+ name: "Gemini 3.1 Flash-Lite",
116
+ description: "Latest generation, fast and affordable"
117
+ },
118
+ { id: "claude-haiku-4.5", name: "Claude Haiku 4.5", description: "Fast, 2x speed of Sonnet" },
119
+ {
120
+ id: "grok-4.1-fast",
121
+ name: "Grok 4.1 Fast",
122
+ description: "Very affordable, good tool calling"
123
+ }
124
+ ];
125
+ }
126
+ });
127
+
41
128
  // src/auth/credential-store.ts
42
129
  var credential_store_exports = {};
43
130
  __export(credential_store_exports, {
@@ -20554,6 +20641,7 @@ var OAuthManager = class {
20554
20641
  };
20555
20642
 
20556
20643
  // src/config/env.ts
20644
+ var import_default_models = __toESM(require_default_models(), 1);
20557
20645
  function getApiUrl() {
20558
20646
  return process.env.RUNTYPE_API_URL || "https://api.runtype.com";
20559
20647
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/cli",
3
- "version": "2.10.3",
3
+ "version": "2.10.5",
4
4
  "description": "Command-line interface for Runtype AI platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,8 +23,8 @@
23
23
  "micromatch": "^4.0.8",
24
24
  "yaml": "^2.8.3",
25
25
  "@runtypelabs/ink-components": "0.3.1",
26
- "@runtypelabs/sdk": "1.15.1",
27
- "@runtypelabs/terminal-animations": "0.2.0"
26
+ "@runtypelabs/terminal-animations": "0.2.0",
27
+ "@runtypelabs/sdk": "1.15.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/micromatch": "^4.0.9",