@blockrun/franklin 3.42.2 → 3.43.1
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 +5 -5
- package/dist/agent/commands.js +2 -2
- package/dist/agent/compact.js +6 -3
- package/dist/agent/context.js +1 -1
- package/dist/agent/evaluator.js +2 -1
- package/dist/agent/llm.js +4 -3
- package/dist/agent/loop.js +82 -14
- package/dist/agent/nemotron-prose-stripper.d.ts +26 -0
- package/dist/agent/nemotron-prose-stripper.js +39 -1
- package/dist/agent/tokens.js +22 -5
- package/dist/agent/turn-analyzer.js +18 -6
- package/dist/agent/verification.js +2 -1
- package/dist/brain/extract.js +2 -1
- package/dist/commands/slack.js +2 -1
- package/dist/commands/social.js +2 -1
- package/dist/commands/telegram.js +2 -1
- package/dist/free-models.constants.d.ts +28 -0
- package/dist/free-models.constants.js +33 -0
- package/dist/free-models.d.ts +320 -0
- package/dist/free-models.js +407 -0
- package/dist/gateway-models.js +15 -3
- package/dist/learnings/extractor.js +3 -2
- package/dist/plugin-sdk/workflow.js +5 -2
- package/dist/pricing.js +18 -9
- package/dist/proxy/fallback.d.ts +8 -1
- package/dist/proxy/fallback.js +35 -3
- package/dist/proxy/server.js +42 -3
- package/dist/router/index.d.ts +3 -1
- package/dist/router/index.js +140 -89
- package/dist/router/vision.js +35 -10
- package/dist/serve/server.js +1 -4
- package/dist/tools/moa.js +9 -3
- package/dist/tools/subagent.js +6 -5
- package/dist/ui/model-picker.js +75 -74
- package/package.json +2 -2
package/dist/ui/model-picker.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import readline from 'node:readline';
|
|
6
6
|
import chalk from 'chalk';
|
|
7
7
|
import { getGatewayModels } from '../gateway-models.js';
|
|
8
|
+
import { FREE_DEFAULT_MODEL } from '../free-models.js';
|
|
8
9
|
// ─── Model Shortcuts (same as proxy) ───────────────────────────────────────
|
|
9
10
|
export const MODEL_SHORTCUTS = {
|
|
10
11
|
// Routing profiles — Auto is the only profile surfaced in the picker.
|
|
@@ -138,66 +139,60 @@ export const MODEL_SHORTCUTS = {
|
|
|
138
139
|
// The free nvidia/deepseek-v4-flash SKU was EOL'd by the gateway (410).
|
|
139
140
|
// Point the deepseek-free aliases at the current free default so muscle
|
|
140
141
|
// memory keeps working without handing back a dead id.
|
|
141
|
-
'deepseek-v4':
|
|
142
|
-
'deepseek-v4-flash':
|
|
143
|
-
dsv4:
|
|
144
|
-
'deepseek-v3.2':
|
|
145
|
-
'deepseek-v3':
|
|
146
|
-
// Free
|
|
147
|
-
//
|
|
148
|
-
//
|
|
149
|
-
//
|
|
150
|
-
//
|
|
151
|
-
//
|
|
152
|
-
//
|
|
153
|
-
//
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
'qwen3
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
'
|
|
162
|
-
'qwen-
|
|
163
|
-
'
|
|
164
|
-
'gpt-oss
|
|
165
|
-
'
|
|
166
|
-
'mistral-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
//
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
//
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
'
|
|
179
|
-
|
|
180
|
-
//
|
|
181
|
-
//
|
|
182
|
-
//
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
//
|
|
187
|
-
//
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
'llama-4
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
// Map to the closest current free model so old session records + user
|
|
196
|
-
// muscle memory keep working.
|
|
197
|
-
// `nemotron` resolves to the real Mistral Nemotron (in-catalog; currently
|
|
198
|
-
// DEGRADED upstream, non-stream calls ride a disclosed gateway fallback).
|
|
199
|
-
nemotron: 'nvidia/mistral-nemotron',
|
|
200
|
-
devstral: 'nvidia/nemotron-nano-9b-v2',
|
|
142
|
+
'deepseek-v4': FREE_DEFAULT_MODEL,
|
|
143
|
+
'deepseek-v4-flash': FREE_DEFAULT_MODEL,
|
|
144
|
+
dsv4: FREE_DEFAULT_MODEL,
|
|
145
|
+
'deepseek-v3.2': FREE_DEFAULT_MODEL,
|
|
146
|
+
'deepseek-v3': FREE_DEFAULT_MODEL,
|
|
147
|
+
// Free tier. On 2026-08-30 the gateway rotated the ENTIRE free pool: every
|
|
148
|
+
// id these aliases used to name (nemotron-nano-9b-v2, mistral-nemotron,
|
|
149
|
+
// nemotron-nano-12b-v2-vl, step-3.7-flash) left the catalog and is now
|
|
150
|
+
// answered by a substitute. They all resolve to the current free default
|
|
151
|
+
// instead — the retired-free-id pattern this list has followed since the
|
|
152
|
+
// qwen3-next EOL. Evidence and ordering: src/free-models.ts.
|
|
153
|
+
//
|
|
154
|
+
// NOTE: every free alias resolves to a $0 model. The free tier NEVER falls
|
|
155
|
+
// back to a paid model.
|
|
156
|
+
free: FREE_DEFAULT_MODEL,
|
|
157
|
+
qwen: FREE_DEFAULT_MODEL,
|
|
158
|
+
qwen3: FREE_DEFAULT_MODEL,
|
|
159
|
+
'qwen3-next': FREE_DEFAULT_MODEL,
|
|
160
|
+
'qwen3.5': FREE_DEFAULT_MODEL,
|
|
161
|
+
glm4: FREE_DEFAULT_MODEL,
|
|
162
|
+
'deepseek-free': FREE_DEFAULT_MODEL,
|
|
163
|
+
'qwen-coder': FREE_DEFAULT_MODEL,
|
|
164
|
+
'qwen-think': FREE_DEFAULT_MODEL,
|
|
165
|
+
'gpt-oss': FREE_DEFAULT_MODEL,
|
|
166
|
+
'gpt-oss-small': FREE_DEFAULT_MODEL,
|
|
167
|
+
'mistral-small': FREE_DEFAULT_MODEL,
|
|
168
|
+
'mistral-nemotron': FREE_DEFAULT_MODEL,
|
|
169
|
+
'nano-9b': FREE_DEFAULT_MODEL,
|
|
170
|
+
// Free vision aliases kept as muscle memory, but they no longer promise
|
|
171
|
+
// vision: the gateway serves both free vision ids from a text-only model
|
|
172
|
+
// (see router/vision.ts). They resolve to the free default like every other
|
|
173
|
+
// retired free id.
|
|
174
|
+
'nano-vl': FREE_DEFAULT_MODEL,
|
|
175
|
+
'free-vision': FREE_DEFAULT_MODEL,
|
|
176
|
+
// omni IS the free default now (the only free id on both chains), so these
|
|
177
|
+
// are the same target rather than a redirect.
|
|
178
|
+
omni: FREE_DEFAULT_MODEL,
|
|
179
|
+
'free-omni': FREE_DEFAULT_MODEL,
|
|
180
|
+
'nano-omni': FREE_DEFAULT_MODEL,
|
|
181
|
+
// Base-only free ids. They 400 on Solana, which is a clear error rather than
|
|
182
|
+
// a silent wrong model, so the shortcuts stay honest and resolve to the id
|
|
183
|
+
// the user typed.
|
|
184
|
+
'nano-30b': 'nvidia/nemotron-3-nano-30b',
|
|
185
|
+
laguna: 'poolside/laguna-xs-2.1',
|
|
186
|
+
'ultra-550b': 'nvidia/nemotron-3-ultra-550b',
|
|
187
|
+
// Maverick left the gateway catalog on/before 2026-07-14 and the free pool
|
|
188
|
+
// silently substitutes for it, so pointing users at it would promise a model
|
|
189
|
+
// they don't get. Resolve to the current free default instead.
|
|
190
|
+
llama: FREE_DEFAULT_MODEL,
|
|
191
|
+
'llama-4': FREE_DEFAULT_MODEL,
|
|
192
|
+
'llama-4-maverick': FREE_DEFAULT_MODEL,
|
|
193
|
+
maverick: FREE_DEFAULT_MODEL,
|
|
194
|
+
nemotron: FREE_DEFAULT_MODEL,
|
|
195
|
+
devstral: FREE_DEFAULT_MODEL,
|
|
201
196
|
// Others
|
|
202
197
|
minimax: 'minimax/minimax-m3',
|
|
203
198
|
'm3': 'minimax/minimax-m3',
|
|
@@ -426,20 +421,26 @@ export const PICKER_CATEGORIES = [
|
|
|
426
421
|
// hit NVIDIA's EOL (410). All rows are $0 — the free tier never falls
|
|
427
422
|
// back to paid.
|
|
428
423
|
//
|
|
429
|
-
// Caveat worth knowing before editing this list: the
|
|
430
|
-
//
|
|
431
|
-
//
|
|
432
|
-
//
|
|
433
|
-
//
|
|
434
|
-
//
|
|
435
|
-
//
|
|
436
|
-
//
|
|
437
|
-
//
|
|
438
|
-
//
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
424
|
+
// Caveat worth knowing before editing this list: only the FIRST row is
|
|
425
|
+
// available on both chains. The Solana gateway lists exactly one free
|
|
426
|
+
// model and 400s ("Unknown model") on the other three, which are
|
|
427
|
+
// Base-only as of the 2026-08-30 rotation. That is why `free` — and
|
|
428
|
+
// every legacy free alias — points at the chain-safe id, and why the
|
|
429
|
+
// ROUTER upgrades to the 550B at runtime from the live catalog rather
|
|
430
|
+
// than from this list (see src/free-models.ts, freeChain).
|
|
431
|
+
//
|
|
432
|
+
// The rows are still worth showing on both chains: the picker hydrates
|
|
433
|
+
// against the gateway catalog, and a user who pins a Base-only id on
|
|
434
|
+
// Solana gets a clear "Unknown model" rather than a silent wrong model.
|
|
435
|
+
//
|
|
436
|
+
// Deliberately absent (NOT quarantined — QUARANTINED_FREE_MODELS is
|
|
437
|
+
// empty): nemotron-3.5-lightning is merely slow, cohere/north-mini-code
|
|
438
|
+
// is a routable chain rung with no picker row, and llama-3.2-11b-vision
|
|
439
|
+
// is vision-only. Reasons per id live in src/free-models.ts.
|
|
440
|
+
{ id: FREE_DEFAULT_MODEL, shortcut: 'free', label: 'Nemotron 3 Nano Omni', price: 'FREE', highlight: true },
|
|
441
|
+
{ id: 'nvidia/nemotron-3-ultra-550b', shortcut: 'ultra-550b', label: 'Nemotron 3 Ultra 550B', price: 'FREE' },
|
|
442
|
+
{ id: 'nvidia/nemotron-3-nano-30b', shortcut: 'nano-30b', label: 'Nemotron 3 Nano 30B', price: 'FREE' },
|
|
443
|
+
{ id: 'poolside/laguna-xs-2.1', shortcut: 'laguna', label: 'Laguna XS 2.1', price: 'FREE' },
|
|
443
444
|
],
|
|
444
445
|
},
|
|
445
446
|
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/franklin",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "Franklin Agent
|
|
3
|
+
"version": "3.43.1",
|
|
4
|
+
"description": "Franklin Agent \u2014 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": {
|
|
7
7
|
".": {
|