@blockrun/franklin 3.41.0 → 3.42.0
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 +54 -4
- package/dist/agent/context.js +7 -10
- package/dist/agent/error-classifier.d.ts +7 -0
- package/dist/agent/error-classifier.js +11 -2
- package/dist/agent/intent-prefetch.d.ts +3 -1
- package/dist/agent/intent-prefetch.js +25 -21
- package/dist/agent/loop.js +31 -3
- package/dist/agent/permissions.d.ts +3 -1
- package/dist/agent/permissions.js +21 -1
- package/dist/agent/streaming-executor.js +54 -53
- package/dist/agent/tokens.js +5 -1
- package/dist/agent/types.d.ts +13 -0
- package/dist/commands/serve.js +4 -1
- package/dist/pricing.js +33 -20
- package/dist/router/index.d.ts +17 -0
- package/dist/router/index.js +80 -1
- package/dist/router/vision.js +10 -3
- package/dist/serve/agent-host.d.ts +5 -0
- package/dist/serve/agent-host.js +13 -3
- package/dist/serve/server.d.ts +11 -0
- package/dist/serve/server.js +285 -69
- package/dist/tools/jupiter.js +16 -2
- package/dist/tools/zerox-base.js +15 -2
- package/dist/tools/zerox-gasless.js +14 -4
- package/dist/ui/model-picker.js +13 -3
- package/package.json +10 -3
package/dist/ui/model-picker.js
CHANGED
|
@@ -28,6 +28,7 @@ export const MODEL_SHORTCUTS = {
|
|
|
28
28
|
'opus-5': 'anthropic/claude-opus-5',
|
|
29
29
|
'opus-4.8': 'anthropic/claude-opus-4.8',
|
|
30
30
|
'opus-4.7': 'anthropic/claude-opus-4.7',
|
|
31
|
+
// Hidden from /v1/models since 2026-08, still served (probed 2026-08-29).
|
|
31
32
|
'opus-4.6': 'anthropic/claude-opus-4.6',
|
|
32
33
|
'opus-4.5': 'anthropic/claude-opus-4.5',
|
|
33
34
|
haiku: 'anthropic/claude-haiku-4.5',
|
|
@@ -75,6 +76,7 @@ export const MODEL_SHORTCUTS = {
|
|
|
75
76
|
'gpt-4o': 'openai/gpt-4o',
|
|
76
77
|
'gpt-4o-mini': 'openai/gpt-4o-mini',
|
|
77
78
|
codex: 'openai/gpt-5.3-codex',
|
|
79
|
+
// Hidden from /v1/models, still served (probed 2026-08-29).
|
|
78
80
|
nano: 'openai/gpt-5-nano',
|
|
79
81
|
mini: 'openai/gpt-5-mini',
|
|
80
82
|
o3: 'openai/o3',
|
|
@@ -117,6 +119,10 @@ export const MODEL_SHORTCUTS = {
|
|
|
117
119
|
'grok-4.5': 'xai/grok-4.5',
|
|
118
120
|
'grok-4.3': 'xai/grok-4.3',
|
|
119
121
|
'grok-build': 'xai/grok-build-0.1',
|
|
122
|
+
// grok-3 / grok-4-0709 / the grok-4-1-fast pair are hidden from
|
|
123
|
+
// /v1/models but still served and charged (probed 2026-08-29) — explicit
|
|
124
|
+
// pins keep resolving to the real ids. Note grok-3 and grok-4-0709 bill at
|
|
125
|
+
// $3/$15; `grok` (4.5) is the cheaper flagship.
|
|
120
126
|
'grok-3': 'xai/grok-3',
|
|
121
127
|
'grok-4': 'xai/grok-4-0709',
|
|
122
128
|
'grok-fast': 'xai/grok-4-1-fast-reasoning',
|
|
@@ -220,6 +226,9 @@ export const MODEL_SHORTCUTS = {
|
|
|
220
226
|
glm: 'zai/glm-5.2',
|
|
221
227
|
'glm-5': 'zai/glm-5',
|
|
222
228
|
'glm-5.3': 'zai/glm-5.3',
|
|
229
|
+
// GLM-5.3 Flash (2026-08-29 catalog sync): 1M ctx, vision, $0.15/$0.5.
|
|
230
|
+
'glm-5.3-flash': 'zai/glm-5.3-flash',
|
|
231
|
+
'glm-flash': 'zai/glm-5.3-flash',
|
|
223
232
|
'glm-5.2': 'zai/glm-5.2',
|
|
224
233
|
// GLM-5.1 demoted to a back-compat pin 2026-06 (flagship is 5.2) — still
|
|
225
234
|
// routes for anyone who wants the 200K-context build explicitly.
|
|
@@ -393,9 +402,10 @@ export const PICKER_CATEGORIES = [
|
|
|
393
402
|
models: [
|
|
394
403
|
{ id: 'anthropic/claude-haiku-4.5', shortcut: 'haiku', label: 'Claude Haiku 4.5', price: '$1/$5' },
|
|
395
404
|
{ id: 'openai/gpt-5-mini', shortcut: 'mini', label: 'GPT-5 Mini', price: '$0.25/$2' },
|
|
396
|
-
//
|
|
397
|
-
//
|
|
398
|
-
|
|
405
|
+
// GLM-5.3 Flash took Gemini 2.5 Flash's row 2026-08-29: half the price,
|
|
406
|
+
// the same 1M context and vision, plus reasoning. `gemini-2.5-flash`
|
|
407
|
+
// still resolves — hide the row, keep the shortcut.
|
|
408
|
+
{ id: 'zai/glm-5.3-flash', shortcut: 'glm-flash', label: 'GLM-5.3 Flash', price: '$0.15/$0.5' },
|
|
399
409
|
// Re-aliased to V4 Flash Chat upstream — context 1M, price 30% lower.
|
|
400
410
|
{ id: 'deepseek/deepseek-chat', shortcut: 'deepseek', label: 'DeepSeek V4 Flash Chat', price: '$0.14/$0.28' },
|
|
401
411
|
// Cheapest paid model on the gateway, and it still carries 1M context
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/franklin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.42.0",
|
|
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": {
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"bin": {
|
|
22
22
|
"franklin": "dist/index.js"
|
|
23
23
|
},
|
|
24
|
+
"workspaces": [
|
|
25
|
+
"apps/desktop"
|
|
26
|
+
],
|
|
24
27
|
"files": [
|
|
25
28
|
"dist",
|
|
26
29
|
"assets",
|
|
@@ -29,9 +32,13 @@
|
|
|
29
32
|
],
|
|
30
33
|
"scripts": {
|
|
31
34
|
"build": "tsc && node scripts/copy-plugin-assets.mjs",
|
|
35
|
+
"desktop:build": "npm run build --workspace @blockrun/franklin-desktop",
|
|
36
|
+
"desktop:dev": "npm run desktop:dev --workspace @blockrun/franklin-desktop",
|
|
37
|
+
"desktop:package:mac": "npm run dist:mac --workspace @blockrun/franklin-desktop",
|
|
38
|
+
"desktop:package:win": "npm run dist:win --workspace @blockrun/franklin-desktop",
|
|
32
39
|
"dev": "tsc --watch",
|
|
33
40
|
"start": "node dist/index.js",
|
|
34
|
-
"test": "npm run build && node --test --test-concurrency=4 --test-reporter=spec test/local.mjs test/skills.local.mjs test/repair.mjs test/model-resolver.mjs test/exa.local.mjs test/audit-batch.local.mjs test/polymarket.local.mjs test/market.local.mjs test/hooks.local.mjs test/scheduler.local.mjs test/trade-plan.local.mjs test/goal.local.mjs test/memory.local.mjs test/agent-host.local.mjs",
|
|
41
|
+
"test": "npm run build && node --test --test-concurrency=4 --test-reporter=spec test/local.mjs test/serve-security.local.mjs test/skills.local.mjs test/repair.mjs test/model-resolver.mjs test/exa.local.mjs test/audit-batch.local.mjs test/polymarket.local.mjs test/market.local.mjs test/hooks.local.mjs test/scheduler.local.mjs test/trade-plan.local.mjs test/goal.local.mjs test/memory.local.mjs test/agent-host.local.mjs",
|
|
35
42
|
"test:e2e": "npm run build && node --test --test-reporter=spec test/e2e.mjs",
|
|
36
43
|
"e2e:polymarket:readonly": "npm run build && node scripts/polymarket-e2e-readonly.mjs",
|
|
37
44
|
"test:free-models": "npm run build && node --test --test-reporter=spec test/free-model-matrix.mjs",
|
|
@@ -68,7 +75,7 @@
|
|
|
68
75
|
},
|
|
69
76
|
"dependencies": {
|
|
70
77
|
"@blockrun/llm": "^3.13.1",
|
|
71
|
-
"@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/
|
|
78
|
+
"@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/d7bc10ce184b3daa40bcc115b523fd629d847a52",
|
|
72
79
|
"@colbymchenry/codegraph": "^1.5.0",
|
|
73
80
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
74
81
|
"@polymarket/builder-relayer-client": "^0.0.10",
|