@blockrun/franklin 3.37.0 → 3.39.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 +8 -8
- package/dist/agent/compact.js +1 -1
- package/dist/agent/context.js +3 -3
- package/dist/agent/evaluator.js +1 -1
- package/dist/agent/llm.js +6 -6
- package/dist/agent/loop.js +25 -9
- package/dist/agent/tokens.js +17 -3
- package/dist/agent/turn-analyzer.js +6 -4
- package/dist/agent/verification.js +1 -1
- package/dist/commands/slack.js +1 -1
- package/dist/commands/social.js +1 -1
- package/dist/commands/telegram.js +1 -1
- package/dist/content/image-pricing.js +23 -0
- package/dist/content/library.d.ts +1 -1
- package/dist/gateway-models.d.ts +14 -4
- package/dist/gateway-models.js +18 -5
- package/dist/learnings/extractor.js +2 -2
- package/dist/plugin-sdk/workflow.d.ts +1 -1
- package/dist/plugin-sdk/workflow.js +2 -2
- package/dist/pricing.js +39 -19
- package/dist/proxy/fallback.js +1 -1
- package/dist/proxy/server.js +52 -5
- package/dist/router/index.d.ts +24 -5
- package/dist/router/index.js +100 -35
- package/dist/router/vision.js +5 -3
- package/dist/serve/server.js +4 -4
- package/dist/tools/content-execute.js +1 -1
- package/dist/tools/moa.js +3 -3
- package/dist/tools/polymarket/client.d.ts +5 -5
- package/dist/tools/polymarket/client.js +26 -11
- package/dist/tools/polymarket/constants.d.ts +25 -26
- package/dist/tools/polymarket/constants.js +65 -31
- package/dist/tools/polymarket/creds.d.ts +10 -0
- package/dist/tools/polymarket/creds.js +7 -1
- package/dist/tools/polymarket/fund.js +15 -3
- package/dist/tools/polymarket/orders.js +14 -7
- package/dist/tools/polymarket/positions.js +1 -1
- package/dist/tools/polymarket/redeem.d.ts +26 -0
- package/dist/tools/polymarket/redeem.js +180 -33
- package/dist/tools/polymarket/relayer.d.ts +20 -10
- package/dist/tools/polymarket/relayer.js +57 -37
- package/dist/tools/polymarket/setup.d.ts +20 -0
- package/dist/tools/polymarket/setup.js +135 -53
- package/dist/tools/polymarket/transactions.d.ts +9 -0
- package/dist/tools/polymarket/transactions.js +22 -0
- package/dist/tools/polymarket/withdraw.d.ts +15 -0
- package/dist/tools/polymarket/withdraw.js +173 -23
- package/dist/tools/prediction.d.ts +5 -2
- package/dist/tools/prediction.js +21 -44
- package/dist/tools/subagent.js +1 -1
- package/dist/tools/videogen.d.ts +4 -3
- package/dist/tools/videogen.js +9 -6
- package/dist/ui/model-picker.js +48 -39
- package/package.json +8 -5
|
@@ -14,8 +14,11 @@
|
|
|
14
14
|
* Limitless+Opinion+Predict.Fun in one call
|
|
15
15
|
* searchPolymarket $0.001 query Polymarket markets (event filter, sort)
|
|
16
16
|
* searchKalshi $0.001 query Kalshi markets
|
|
17
|
-
* crossPlatform
|
|
18
|
-
* (
|
|
17
|
+
* crossPlatform SUNSET Predexon discontinued market matching
|
|
18
|
+
* 2026-07-20 (upstream 410; gateway de-registered
|
|
19
|
+
* it 2026-08-03). Kept as a zero-cost tombstone
|
|
20
|
+
* that steers callers to searchAll, whose
|
|
21
|
+
* canonical containers already span venues.
|
|
19
22
|
* leaderboard $0.001 global Polymarket leaderboard — top wallets by P&L
|
|
20
23
|
* walletProfile $0.005 full Polymarket wallet profile (single wallet)
|
|
21
24
|
* or batch profiles (comma-separated wallets)
|
package/dist/tools/prediction.js
CHANGED
|
@@ -14,8 +14,11 @@
|
|
|
14
14
|
* Limitless+Opinion+Predict.Fun in one call
|
|
15
15
|
* searchPolymarket $0.001 query Polymarket markets (event filter, sort)
|
|
16
16
|
* searchKalshi $0.001 query Kalshi markets
|
|
17
|
-
* crossPlatform
|
|
18
|
-
* (
|
|
17
|
+
* crossPlatform SUNSET Predexon discontinued market matching
|
|
18
|
+
* 2026-07-20 (upstream 410; gateway de-registered
|
|
19
|
+
* it 2026-08-03). Kept as a zero-cost tombstone
|
|
20
|
+
* that steers callers to searchAll, whose
|
|
21
|
+
* canonical containers already span venues.
|
|
19
22
|
* leaderboard $0.001 global Polymarket leaderboard — top wallets by P&L
|
|
20
23
|
* walletProfile $0.005 full Polymarket wallet profile (single wallet)
|
|
21
24
|
* or batch profiles (comma-separated wallets)
|
|
@@ -48,7 +51,6 @@ const MAX_LIMIT = 50;
|
|
|
48
51
|
// (success/latency) so panel health stays accurate.
|
|
49
52
|
const PATH_PRICES = [
|
|
50
53
|
{ pattern: /\/v1\/pm\/markets\/search$/, usd: 0.005 },
|
|
51
|
-
{ pattern: /\/v1\/pm\/matching-markets/, usd: 0.005 },
|
|
52
54
|
{ pattern: /\/v1\/pm\/polymarket\/wallets\//, usd: 0.005 },
|
|
53
55
|
{ pattern: /\/v1\/pm\/polymarket\/wallet\//, usd: 0.005 },
|
|
54
56
|
{ pattern: /\/v1\/pm\/polymarket\/market\/[^/]+\/smart-money$/, usd: 0.005 },
|
|
@@ -321,7 +323,7 @@ async function execute(input, ctx) {
|
|
|
321
323
|
const cappedLimit = Math.min(Math.max(1, limit ?? DEFAULT_LIMIT), MAX_LIMIT);
|
|
322
324
|
if (!action) {
|
|
323
325
|
return {
|
|
324
|
-
output: 'Error: action is required (searchAll | searchPolymarket | searchKalshi |
|
|
326
|
+
output: 'Error: action is required (searchAll | searchPolymarket | searchKalshi | leaderboard | walletProfile | walletPnl | walletPositions | smartActivity | smartMoney)',
|
|
325
327
|
isError: true,
|
|
326
328
|
};
|
|
327
329
|
}
|
|
@@ -883,46 +885,23 @@ async function execute(input, ctx) {
|
|
|
883
885
|
return { output: frameUntrusted('Prediction-market data (untrusted)', lines.join('\n')) };
|
|
884
886
|
}
|
|
885
887
|
case 'crossPlatform': {
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
// Venues are nested UPPERCASE sub-objects in Predexon v2. pickString
|
|
900
|
-
// walks the sub-object's name keys (title/slug/...), so passing the
|
|
901
|
-
// whole `POLYMARKET` / `KALSHI` object resolves the title regardless
|
|
902
|
-
// of which name-bearing key is populated. Flat legacy fields are
|
|
903
|
-
// passed as fallbacks.
|
|
904
|
-
const poly = p.POLYMARKET ?? undefined;
|
|
905
|
-
const kalshi = p.KALSHI ?? undefined;
|
|
906
|
-
const polyTitle = pickString(poly, p.polymarket_question) ?? '(untitled)';
|
|
907
|
-
const kalshiTitle = pickString(kalshi, p.kalshi_title);
|
|
908
|
-
const ticker = (kalshi && kalshi.market_ticker) || p.kalshi_ticker;
|
|
909
|
-
const sim = p.similarity != null ? ` · similarity ${formatPct(p.similarity, 0)}` : '';
|
|
910
|
-
lines.push(`${i + 1}. **Polymarket:** ${polyTitle}`);
|
|
911
|
-
if (kalshi) {
|
|
912
|
-
lines.push(` **Kalshi:** ${kalshiTitle ?? '(untitled)'}` +
|
|
913
|
-
(ticker ? ` · ticker=\`${ticker}\`` : '') +
|
|
914
|
-
sim);
|
|
915
|
-
}
|
|
916
|
-
else {
|
|
917
|
-
lines.push(` _(no Kalshi match)_${sim}`);
|
|
918
|
-
}
|
|
919
|
-
});
|
|
920
|
-
lines.push('', `_$0.005 paid via x402._`);
|
|
921
|
-
return { output: frameUntrusted('Prediction-market data (untrusted)', lines.join('\n')) };
|
|
888
|
+
// Tombstone (no charge): Predexon sunset market matching 2026-07-20
|
|
889
|
+
// and the gateway de-registered /v1/pm/matching-markets{,/pairs} on
|
|
890
|
+
// 2026-08-03 — the upstream 410s. Old sessions / prompts may still
|
|
891
|
+
// ask for this action, so steer them instead of burning a paid call
|
|
892
|
+
// on a dead endpoint.
|
|
893
|
+
return {
|
|
894
|
+
output: 'crossPlatform was retired: Predexon discontinued cross-venue market ' +
|
|
895
|
+
'matching on 2026-07-20 and the gateway removed the endpoint. To compare ' +
|
|
896
|
+
'venues, use `searchAll` — its canonical market containers already span ' +
|
|
897
|
+
'Polymarket+Kalshi+Limitless+Opinion+Predict.Fun — or run `searchPolymarket` ' +
|
|
898
|
+
'and `searchKalshi` in parallel and compare implied probabilities.',
|
|
899
|
+
isError: true,
|
|
900
|
+
};
|
|
922
901
|
}
|
|
923
902
|
default:
|
|
924
903
|
return {
|
|
925
|
-
output: `Error: unknown action "${action}". Use: searchAll, searchPolymarket, searchKalshi,
|
|
904
|
+
output: `Error: unknown action "${action}". Use: searchAll, searchPolymarket, searchKalshi, leaderboard, walletProfile, walletPnl, walletPositions, smartActivity, smartMoney`,
|
|
926
905
|
isError: true,
|
|
927
906
|
};
|
|
928
907
|
}
|
|
@@ -939,7 +918,6 @@ export const predictionMarketCapability = {
|
|
|
939
918
|
'`searchAll` (search markets across Polymarket+Kalshi+Limitless+Opinion+Predict.Fun in one call — $0.005), ' +
|
|
940
919
|
'`searchPolymarket` (Polymarket only, supports sort+status — $0.001), ' +
|
|
941
920
|
'`searchKalshi` (Kalshi only, supports sort+status — $0.001), ' +
|
|
942
|
-
'`crossPlatform` (matched market pairs across Polymarket+Kalshi for arbitrage / consensus — $0.005), ' +
|
|
943
921
|
'`leaderboard` (global top wallets by P&L on Polymarket — $0.001), ' +
|
|
944
922
|
'`walletProfile` (full Polymarket wallet profile — labels, scores, stats. Single address → /wallet/{addr}; comma-list → batch /wallets/profiles — $0.005), ' +
|
|
945
923
|
'`walletPnl` (single Polymarket wallet P&L summary + time series — $0.005), ' +
|
|
@@ -962,7 +940,6 @@ export const predictionMarketCapability = {
|
|
|
962
940
|
'searchAll',
|
|
963
941
|
'searchPolymarket',
|
|
964
942
|
'searchKalshi',
|
|
965
|
-
'crossPlatform',
|
|
966
943
|
'leaderboard',
|
|
967
944
|
'walletProfile',
|
|
968
945
|
'walletPnl',
|
|
@@ -974,7 +951,7 @@ export const predictionMarketCapability = {
|
|
|
974
951
|
},
|
|
975
952
|
search: {
|
|
976
953
|
type: 'string',
|
|
977
|
-
description: 'Search query. Used by searchAll / searchPolymarket / searchKalshi / smartActivity. Optional for
|
|
954
|
+
description: 'Search query. Used by searchAll / searchPolymarket / searchKalshi / smartActivity. Optional for leaderboard/walletProfile/walletPnl/walletPositions/smartMoney.',
|
|
978
955
|
},
|
|
979
956
|
status: {
|
|
980
957
|
type: 'string',
|
package/dist/tools/subagent.js
CHANGED
|
@@ -18,7 +18,7 @@ async function execute(input, ctx) {
|
|
|
18
18
|
return { output: 'Error: prompt is required', isError: true };
|
|
19
19
|
}
|
|
20
20
|
// Resolve which model the sub-agent will actually run on
|
|
21
|
-
const subModel = model || registeredParentModel || 'nvidia/
|
|
21
|
+
const subModel = model || registeredParentModel || 'nvidia/nemotron-nano-9b-v2';
|
|
22
22
|
// Cost gate: if parent is free but sub-agent wants paid, ask user first.
|
|
23
23
|
// Prevents silent charges when the agent decides to spawn a more capable sub-agent.
|
|
24
24
|
if (isFreeModel(registeredParentModel) && !isFreeModel(subModel)) {
|
package/dist/tools/videogen.d.ts
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* Video Generation capability — generate short MP4 videos via the BlockRun
|
|
3
3
|
* /v1/videos/generations endpoint. Uses x402 payment (Base or Solana).
|
|
4
4
|
*
|
|
5
|
-
* Default model `xai/grok-imagine-video` returns an 8-second clip for ~$0.42
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Default model `xai/grok-imagine-video` returns an 8-second clip for ~$0.42
|
|
6
|
+
* (480p at $0.05/s; the gateway added an official 720p tier at $0.07/s on
|
|
7
|
+
* 2026-08-12). Seedance (bytedance/seedance-2.0-mini through -2.5) runs
|
|
8
|
+
* longer — up to a few minutes for a 10s clip.
|
|
8
9
|
*
|
|
9
10
|
* Flow (async since blockrun@654cd35):
|
|
10
11
|
* 1. POST /v1/videos/generations with signed x-payment header. The server
|
package/dist/tools/videogen.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* Video Generation capability — generate short MP4 videos via the BlockRun
|
|
3
3
|
* /v1/videos/generations endpoint. Uses x402 payment (Base or Solana).
|
|
4
4
|
*
|
|
5
|
-
* Default model `xai/grok-imagine-video` returns an 8-second clip for ~$0.42
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Default model `xai/grok-imagine-video` returns an 8-second clip for ~$0.42
|
|
6
|
+
* (480p at $0.05/s; the gateway added an official 720p tier at $0.07/s on
|
|
7
|
+
* 2026-08-12). Seedance (bytedance/seedance-2.0-mini through -2.5) runs
|
|
8
|
+
* longer — up to a few minutes for a 10s clip.
|
|
8
9
|
*
|
|
9
10
|
* Flow (async since blockrun@654cd35):
|
|
10
11
|
* 1. POST /v1/videos/generations with signed x-payment header. The server
|
|
@@ -503,10 +504,12 @@ export function createVideoGenCapability(deps = {}) {
|
|
|
503
504
|
output_path: { type: 'string', description: 'Where to save the MP4. Default: generated-<timestamp>.mp4 in working directory' },
|
|
504
505
|
model: {
|
|
505
506
|
type: 'string',
|
|
506
|
-
description: 'Video model. Default: xai/grok-imagine-video. Known-valid models on the BlockRun gateway as of 2026-
|
|
507
|
-
'xai/grok-imagine-video, bytedance/seedance-1.5-pro
|
|
507
|
+
description: 'Video model. Default: xai/grok-imagine-video ($0.05/s). Known-valid models on the BlockRun gateway as of 2026-08: ' +
|
|
508
|
+
'xai/grok-imagine-video, bytedance/seedance-1.5-pro ($0.070/s), bytedance/seedance-2.0-mini ($0.0797/s), ' +
|
|
509
|
+
'bytedance/seedance-2.0-fast ($0.165/s), bytedance/seedance-2.0 ($0.227/s), bytedance/seedance-2.5 ($0.315/s), azure/sora-2 ($0.10/s). ' +
|
|
508
510
|
'Pick from this list; the gateway rejects unknown names with HTTP 400 (no money charged on rejection). ' +
|
|
509
|
-
'Speak "Seedance
|
|
511
|
+
'Speak "Seedance" → bytedance/seedance-2.5 (newest flagship); "Seedance Pro" → bytedance/seedance-2.0; ' +
|
|
512
|
+
'"Seedance fast" → bytedance/seedance-2.0-fast; "Seedance mini" → bytedance/seedance-2.0-mini (cheapest).',
|
|
510
513
|
},
|
|
511
514
|
image_url: { type: 'string', description: 'Optional seed image (image-to-video). Accepts http(s) URL, data: URI, or local file path — local paths get inlined as base64 data URIs automatically.' },
|
|
512
515
|
duration_seconds: { type: 'number', description: 'Duration billed for. Default depends on model (8s for grok-imagine-video).' },
|
package/dist/ui/model-picker.js
CHANGED
|
@@ -89,46 +89,55 @@ export const MODEL_SHORTCUTS = {
|
|
|
89
89
|
// The free nvidia/deepseek-v4-flash SKU was EOL'd by the gateway (410).
|
|
90
90
|
// Point the deepseek-free aliases at the current free default so muscle
|
|
91
91
|
// memory keeps working without handing back a dead id.
|
|
92
|
-
'deepseek-v4': 'nvidia/
|
|
93
|
-
'deepseek-v4-flash': 'nvidia/
|
|
94
|
-
dsv4: 'nvidia/
|
|
95
|
-
'deepseek-v3.2': 'nvidia/
|
|
96
|
-
'deepseek-v3': 'nvidia/
|
|
97
|
-
// Free (agent-tested BlockRun gateway free tier — refreshed 2026-
|
|
98
|
-
// `free` follows the
|
|
99
|
-
// free
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
|
|
111
|
-
'
|
|
112
|
-
'
|
|
92
|
+
'deepseek-v4': 'nvidia/nemotron-nano-9b-v2',
|
|
93
|
+
'deepseek-v4-flash': 'nvidia/nemotron-nano-9b-v2',
|
|
94
|
+
dsv4: 'nvidia/nemotron-nano-9b-v2',
|
|
95
|
+
'deepseek-v3.2': 'nvidia/nemotron-nano-9b-v2',
|
|
96
|
+
'deepseek-v3': 'nvidia/nemotron-nano-9b-v2',
|
|
97
|
+
// Free (agent-tested BlockRun gateway free tier — refreshed 2026-08-12 after
|
|
98
|
+
// qwen3-next-80b-a3b-instruct hit NVIDIA's EOL, 410). `free` follows the
|
|
99
|
+
// current free default (nemotron-nano-9b-v2: the one free model that
|
|
100
|
+
// verifiably serves itself on the streaming path — mistral-nemotron is
|
|
101
|
+
// DEGRADED upstream and 400s on stream). The qwen3-next / qwen3.5 aliases
|
|
102
|
+
// follow the retired-free-id pattern and resolve here too. NOTE: every free
|
|
103
|
+
// alias resolves to a $0 nvidia model — the free tier NEVER falls back to a
|
|
104
|
+
// paid model.
|
|
105
|
+
free: 'nvidia/nemotron-nano-9b-v2',
|
|
106
|
+
qwen: 'nvidia/nemotron-nano-9b-v2',
|
|
107
|
+
qwen3: 'nvidia/nemotron-nano-9b-v2',
|
|
108
|
+
'qwen3-next': 'nvidia/nemotron-nano-9b-v2',
|
|
109
|
+
'qwen3.5': 'nvidia/nemotron-nano-9b-v2',
|
|
110
|
+
glm4: 'nvidia/nemotron-nano-9b-v2',
|
|
111
|
+
'deepseek-free': 'nvidia/nemotron-nano-9b-v2',
|
|
112
|
+
'qwen-coder': 'nvidia/nemotron-nano-9b-v2',
|
|
113
|
+
'qwen-think': 'nvidia/nemotron-nano-9b-v2',
|
|
114
|
+
'gpt-oss': 'nvidia/nemotron-nano-9b-v2',
|
|
115
|
+
'gpt-oss-small': 'nvidia/nemotron-nano-9b-v2',
|
|
116
|
+
'mistral-small': 'nvidia/mistral-nemotron',
|
|
113
117
|
'mistral-nemotron': 'nvidia/mistral-nemotron',
|
|
118
|
+
// Verified-self-serving free secondaries (2026-08-12): the nano line answers
|
|
119
|
+
// as itself on live probes, unlike the pooled 30B omni model.
|
|
120
|
+
'nano-9b': 'nvidia/nemotron-nano-9b-v2',
|
|
121
|
+
'nano-vl': 'nvidia/nemotron-nano-12b-v2-vl',
|
|
122
|
+
'free-vision': 'nvidia/nemotron-nano-12b-v2-vl',
|
|
114
123
|
// Maverick left the gateway catalog on/before 2026-07-14. The id still
|
|
115
124
|
// answers, but only because the free pool silently substitutes another model
|
|
116
125
|
// for it — so pointing users at it would be promising a model they don't get.
|
|
117
126
|
// Follow the established retired-free-id pattern instead: resolve to the
|
|
118
127
|
// current free default so muscle memory keeps working.
|
|
119
|
-
llama: 'nvidia/
|
|
120
|
-
'llama-4': 'nvidia/
|
|
121
|
-
'llama-4-maverick': 'nvidia/
|
|
122
|
-
maverick: 'nvidia/
|
|
128
|
+
llama: 'nvidia/nemotron-nano-9b-v2',
|
|
129
|
+
'llama-4': 'nvidia/nemotron-nano-9b-v2',
|
|
130
|
+
'llama-4-maverick': 'nvidia/nemotron-nano-9b-v2',
|
|
131
|
+
maverick: 'nvidia/nemotron-nano-9b-v2',
|
|
123
132
|
// Backward-compatibility aliases for models the gateway retired or exposes
|
|
124
133
|
// unreliably on /v1/messages. Map to agent-tested free models so shortcuts
|
|
125
134
|
// keep working without silent paid fallback or empty tool-use turns.
|
|
126
135
|
// Map to the closest current free model so old session records + user
|
|
127
136
|
// muscle memory keep working.
|
|
128
|
-
// `nemotron`
|
|
129
|
-
//
|
|
137
|
+
// `nemotron` resolves to the real Mistral Nemotron (in-catalog; currently
|
|
138
|
+
// DEGRADED upstream, non-stream calls ride a disclosed gateway fallback).
|
|
130
139
|
nemotron: 'nvidia/mistral-nemotron',
|
|
131
|
-
devstral: 'nvidia/
|
|
140
|
+
devstral: 'nvidia/nemotron-nano-9b-v2',
|
|
132
141
|
// Others
|
|
133
142
|
minimax: 'minimax/minimax-m3',
|
|
134
143
|
'm3': 'minimax/minimax-m3',
|
|
@@ -311,19 +320,19 @@ export const PICKER_CATEGORIES = [
|
|
|
311
320
|
{
|
|
312
321
|
category: '🆓 Free (no USDC needed)',
|
|
313
322
|
models: [
|
|
314
|
-
//
|
|
315
|
-
// profile resolve to
|
|
316
|
-
//
|
|
317
|
-
//
|
|
323
|
+
// Nemotron Nano 9B leads: it's what the `free` shortcut + free routing
|
|
324
|
+
// profile resolve to, promoted 2026-08-12 when qwen3-next-80b-a3b-instruct
|
|
325
|
+
// hit NVIDIA's EOL (410). All rows are $0 — the free tier never falls
|
|
326
|
+
// back to paid.
|
|
318
327
|
//
|
|
319
328
|
// Caveat worth knowing before editing this list: the NVIDIA free pool
|
|
320
|
-
// silently substitutes.
|
|
321
|
-
//
|
|
322
|
-
//
|
|
323
|
-
//
|
|
324
|
-
//
|
|
325
|
-
|
|
326
|
-
{ id: 'nvidia/
|
|
329
|
+
// silently substitutes or degrades. The 30B omni model currently answers
|
|
330
|
+
// as `nvidia/gpt-oss-120b`, and mistral-nemotron 400s on streaming calls
|
|
331
|
+
// (DEGRADED upstream; non-stream rides a disclosed gateway fallback) —
|
|
332
|
+
// both verified live 2026-08-12. The nano rows lead precisely because
|
|
333
|
+
// they serve themselves, consistently, on every path.
|
|
334
|
+
{ id: 'nvidia/nemotron-nano-9b-v2', shortcut: 'free', label: 'Nemotron Nano 9B', price: 'FREE', highlight: true },
|
|
335
|
+
{ id: 'nvidia/nemotron-nano-12b-v2-vl', shortcut: 'nano-vl', label: 'Nemotron Nano VL', price: 'FREE' },
|
|
327
336
|
{ id: 'nvidia/mistral-nemotron', shortcut: 'nemotron', label: 'Mistral Nemotron', price: 'FREE' },
|
|
328
337
|
],
|
|
329
338
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/franklin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.39.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": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"start": "node dist/index.js",
|
|
34
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",
|
|
35
35
|
"test:e2e": "npm run build && node --test --test-reporter=spec test/e2e.mjs",
|
|
36
|
+
"e2e:polymarket:readonly": "npm run build && node scripts/polymarket-e2e-readonly.mjs",
|
|
36
37
|
"test:free-models": "npm run build && node --test --test-reporter=spec test/free-model-matrix.mjs",
|
|
37
38
|
"test:all": "npm run test && npm run test:e2e",
|
|
38
39
|
"test:watch": "node --test --watch test/local.mjs test/skills.local.mjs test/exa.local.mjs test/audit-batch.local.mjs",
|
|
@@ -66,12 +67,13 @@
|
|
|
66
67
|
"node": ">=20.19.0"
|
|
67
68
|
},
|
|
68
69
|
"dependencies": {
|
|
69
|
-
"@blockrun/llm": "^3.
|
|
70
|
+
"@blockrun/llm": "^3.13.1",
|
|
71
|
+
"@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/6a790ebec60161825bbc8c4093fd221006b4e5fb",
|
|
70
72
|
"@colbymchenry/codegraph": "^1.5.0",
|
|
71
73
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
72
74
|
"@polymarket/builder-relayer-client": "^0.0.10",
|
|
73
|
-
"@polymarket/builder-signing-sdk": "0.0
|
|
74
|
-
"@polymarket/clob-client-v2": "1.0
|
|
75
|
+
"@polymarket/builder-signing-sdk": "1.0.0",
|
|
76
|
+
"@polymarket/clob-client-v2": "1.1.0",
|
|
75
77
|
"@slack/bolt": "^5.0.0",
|
|
76
78
|
"@solana/spl-token": "^0.4.14",
|
|
77
79
|
"@solana/web3.js": "^1.98.4",
|
|
@@ -98,6 +100,7 @@
|
|
|
98
100
|
"typescript": "^7.0.2"
|
|
99
101
|
},
|
|
100
102
|
"overrides": {
|
|
101
|
-
"ws@>=8.0.0 <=8.20.1": "^8.21.1"
|
|
103
|
+
"ws@>=8.0.0 <=8.20.1": "^8.21.1",
|
|
104
|
+
"@polymarket/builder-signing-sdk": "1.0.0"
|
|
102
105
|
}
|
|
103
106
|
}
|