@blockrun/franklin 3.29.2 → 3.29.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 CHANGED
@@ -500,6 +500,10 @@ Same wallet. Same tools. From your phone.
500
500
 
501
501
  ## Documentation
502
502
 
503
+ Full BlockRun docs: **https://blockrun.ai/docs**
504
+
505
+ - [Agent developer guide](https://blockrun.ai/docs/getting-started/agent-developers) — building agents on BlockRun
506
+ - [Models, SDKs & APIs](https://blockrun.ai/docs) — the full gateway reference
503
507
  - [Plugin SDK guide](docs/plugin-sdk.md) — build your own workflow vertical
504
508
  - [Changelog](CHANGELOG.md) — every release explained
505
509
  - [Roadmap](docs/ROADMAP.md) — what's coming next
@@ -242,7 +242,7 @@ You run on the BlockRun AI Gateway. When the user asks you to "test the BlockRun
242
242
  - \`GET /.well-known/x402\` — x402 resource list with prices
243
243
 
244
244
  **LLM (POST, x402-paid)**
245
- - \`POST /v1/chat/completions\` — OpenAI-compatible. Body: \`{ model, messages, stream?, tools?, max_tokens?, temperature? }\`. \`model\` MUST come from \`GET /v1/models\` (real frontier examples on the gateway as of 2026-06: \`anthropic/claude-sonnet-4.6\`, \`anthropic/claude-opus-4.8\`, \`deepseek/deepseek-v4-pro\`, \`zai/glm-5.1\`, \`nvidia/llama-4-maverick\`, \`openai/gpt-5-nano\`). Do NOT invent versions like \`openai/gpt-5.1\` or \`xai/grok-5\` — those don't exist; the gateway 400s with the valid list in the error body, so when in doubt fetch \`GET /v1/models\` first.
245
+ - \`POST /v1/chat/completions\` — OpenAI-compatible. Body: \`{ model, messages, stream?, tools?, max_tokens?, temperature? }\`. \`model\` MUST come from \`GET /v1/models\` (real frontier examples on the gateway as of 2026-06: \`anthropic/claude-sonnet-4.6\`, \`anthropic/claude-opus-4.8\`, \`deepseek/deepseek-v4-pro\`, \`zai/glm-5.2\`, \`nvidia/llama-4-maverick\`, \`openai/gpt-5-nano\`). Do NOT invent versions like \`openai/gpt-5.1\` or \`xai/grok-5\` — those don't exist; the gateway 400s with the valid list in the error body, so when in doubt fetch \`GET /v1/models\` first.
246
246
  - \`POST /v1/messages\` — Anthropic-compatible. Body: \`{ model, messages, max_tokens, system?, tools? }\`.
247
247
 
248
248
  **Media (POST, x402-paid; GET to poll async jobs)**
@@ -1384,7 +1384,7 @@ export async function interactiveSession(config, getUserInput, onEvent, onAbortR
1384
1384
  const hasTools = responseParts.some(p => p.type === 'tool_use');
1385
1385
  const hasThinking = responseParts.some(p => p.type === 'thinking');
1386
1386
  if (!hasText && !hasTools && !hasThinking) {
1387
- const EMPTY_FALLBACK_MODELS = ['nvidia/llama-4-maverick', 'nvidia/deepseek-v4-flash', 'zai/glm-5.1'];
1387
+ const EMPTY_FALLBACK_MODELS = ['nvidia/llama-4-maverick', 'nvidia/deepseek-v4-flash', 'zai/glm-5.2'];
1388
1388
  const nextModel = EMPTY_FALLBACK_MODELS.find(m => m !== config.model && !turnFailedModels.has(m));
1389
1389
  if (nextModel && recoveryAttempts < 2) {
1390
1390
  recoveryAttempts++;
@@ -232,6 +232,7 @@ const MODEL_CONTEXT_WINDOWS = {
232
232
  'xai/grok-4-0709': 131_072,
233
233
  'xai/grok-4-1-fast-reasoning': 131_072,
234
234
  // Others
235
+ 'zai/glm-5.2': 1_000_000, // flagship bump 2026-06 — context jumped 200K → 1M
235
236
  'zai/glm-5.1': 200_000,
236
237
  'moonshot/kimi-k2.7': 256_000,
237
238
  'moonshot/kimi-k2.6': 256_000,
package/dist/pricing.js CHANGED
@@ -92,6 +92,7 @@ export const MODEL_PRICING = {
92
92
  // PROMOTION (active ~2026-04): flat $0.001/call for all GLM models
93
93
  'zai/glm-5': { input: 0.6, output: 1.92 }, // flat promo ended 2026-06-06 — per-token now
94
94
  'zai/glm-5.1': { input: 1.40, output: 4.40 }, // launch promo ended 2026-06-05 — per-token now
95
+ 'zai/glm-5.2': { input: 1.40, output: 4.40 }, // new flagship 2026-06 — 1M context, same per-token price as 5.1
95
96
  'zai/glm-5-turbo': { input: 1.2, output: 4.0 }, // flat promo ended 2026-06-06 — per-token now
96
97
  'zai/glm-5.1-turbo': { input: 1.2, output: 4.0 }, // client alias for zai/glm-5-turbo
97
98
  };
@@ -158,9 +158,12 @@ const MODEL_SHORTCUTS = {
158
158
  'm3': 'minimax/minimax-m3',
159
159
  'm2.7': 'minimax/minimax-m2.7',
160
160
  // Others
161
- glm: 'zai/glm-5.1',
161
+ glm: 'zai/glm-5.2',
162
+ 'glm-5.2': 'zai/glm-5.2',
163
+ // glm-5.1 demoted to back-compat pin 2026-06 (flagship is 5.2) — still routes.
164
+ 'glm-5.1': 'zai/glm-5.1',
162
165
  'glm-turbo': 'zai/glm-5-turbo',
163
- 'glm5': 'zai/glm-5.1',
166
+ 'glm5': 'zai/glm-5.2',
164
167
  kimi: 'moonshot/kimi-k2.7',
165
168
  'k2.7': 'moonshot/kimi-k2.7',
166
169
  // K2.6 demoted 2026-06 (flagship is K2.7) but still routes — `k2.6` pins it.
@@ -97,10 +97,14 @@ export const MODEL_SHORTCUTS = {
97
97
  minimax: 'minimax/minimax-m3',
98
98
  'm3': 'minimax/minimax-m3',
99
99
  'm2.7': 'minimax/minimax-m2.7',
100
- glm: 'zai/glm-5.1',
100
+ glm: 'zai/glm-5.2',
101
101
  'glm-5': 'zai/glm-5',
102
+ 'glm-5.2': 'zai/glm-5.2',
103
+ // GLM-5.1 demoted to a back-compat pin 2026-06 (flagship is 5.2) — still
104
+ // routes for anyone who wants the 200K-context build explicitly.
105
+ 'glm-5.1': 'zai/glm-5.1',
102
106
  'glm-turbo': 'zai/glm-5-turbo',
103
- 'glm5': 'zai/glm-5.1',
107
+ 'glm5': 'zai/glm-5.2',
104
108
  kimi: 'moonshot/kimi-k2.7',
105
109
  'k2.7': 'moonshot/kimi-k2.7',
106
110
  // K2.6 demoted 2026-06 (gateway flagship is K2.7) but still routes — the
@@ -169,6 +173,9 @@ export const PICKER_CATEGORIES = [
169
173
  { id: 'deepseek/deepseek-v4-pro', shortcut: 'deepseek-v4-pro', label: 'DeepSeek V4 Pro', price: '$0.435/$0.87', highlight: true },
170
174
  { id: 'deepseek/deepseek-reasoner', shortcut: 'r1', label: 'DeepSeek V4 Flash R.', price: '$0.2/$0.4' },
171
175
  { id: 'xai/grok-4-1-fast-reasoning', shortcut: 'grok-fast', label: 'Grok 4.1 Fast R.', price: '$0.2/$0.5' },
176
+ // GLM-5.2: Z.AI's new flagship — 1M context, top open-source on
177
+ // long-horizon coding. `glm`/`glm5` shortcuts pin it.
178
+ { id: 'zai/glm-5.2', shortcut: 'glm', label: 'GLM-5.2', price: '$1.4/$4.4' },
172
179
  ],
173
180
  },
174
181
  {
@@ -181,7 +188,8 @@ export const PICKER_CATEGORIES = [
181
188
  { id: 'deepseek/deepseek-chat', shortcut: 'deepseek', label: 'DeepSeek V4 Flash Chat', price: '$0.2/$0.4' },
182
189
  { id: 'moonshot/kimi-k2.7', shortcut: 'kimi', label: 'Kimi K2.7', price: '$0.95/$4' },
183
190
  // GLM flat-rate promos fully ended 2026-06-06 — whole family per-token
184
- // now (glm-5 $0.60/$1.92; `glm` shortcut still pins flagship glm-5.1).
191
+ // now (glm-5 $0.60/$1.92; `glm` shortcut pins flagship glm-5.2, listed
192
+ // in Reasoning above).
185
193
  { id: 'zai/glm-5', shortcut: 'glm-5', label: 'GLM-5', price: '$0.6/$1.92' },
186
194
  // Minimax M2.7 hidden to make room for V4 Pro in Reasoning + V4 Flash
187
195
  // (free) without exceeding the picker's 24-entry cap. Shortcut `minimax`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/franklin",
3
- "version": "3.29.2",
3
+ "version": "3.29.3",
4
4
  "description": "Franklin Agent — The AI agent with a wallet. Spends USDC autonomously to get real work done. Pay per action, no subscriptions.",
5
5
  "type": "module",
6
6
  "exports": {