@blockrun/franklin 3.36.0 → 3.37.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/dist/commands/config.d.ts +1 -1
- package/dist/mcp/codegraph.js +13 -0
- package/dist/serve/server.js +4 -2
- package/dist/tools/read.js +5 -2
- package/dist/ui/app.js +4 -3
- package/package.json +14 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const VALID_KEYS: readonly [
|
|
1
|
+
declare const VALID_KEYS: readonly ['default-model', 'sonnet-model', 'opus-model', 'haiku-model', 'smart-routing', 'permission-mode', 'max-turns', 'auto-compact', 'cost-saver', 'session-save', 'debug', 'zerox-api-key', 'base-rpc-url'];
|
|
2
2
|
type ConfigKey = (typeof VALID_KEYS)[number];
|
|
3
3
|
export interface AppConfig {
|
|
4
4
|
'default-model'?: string;
|
package/dist/mcp/codegraph.js
CHANGED
|
@@ -31,6 +31,19 @@ function userEnabled() {
|
|
|
31
31
|
* isn't installed / resolvable. The shim is plain JS runnable by any node.
|
|
32
32
|
*/
|
|
33
33
|
export function resolveCodegraphShim() {
|
|
34
|
+
// CodeGraph 1.x added an `exports` map that no longer lists ./npm-shim.js,
|
|
35
|
+
// so resolving that subpath directly throws ERR_PACKAGE_PATH_NOT_EXPORTED
|
|
36
|
+
// even though the file still ships (it's the package's `bin`). `./package.json`
|
|
37
|
+
// stays exported, so resolve the manifest and walk to the shim beside it.
|
|
38
|
+
try {
|
|
39
|
+
const manifest = require.resolve('@colbymchenry/codegraph/package.json');
|
|
40
|
+
const shim = path.join(path.dirname(manifest), 'npm-shim.js');
|
|
41
|
+
if (fs.existsSync(shim))
|
|
42
|
+
return shim;
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
/* fall through to the pre-1.x subpath resolve */
|
|
46
|
+
}
|
|
34
47
|
try {
|
|
35
48
|
const shim = require.resolve('@colbymchenry/codegraph/npm-shim.js');
|
|
36
49
|
return fs.existsSync(shim) ? shim : null;
|
package/dist/serve/server.js
CHANGED
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
import http from 'node:http';
|
|
20
20
|
import fs from 'node:fs';
|
|
21
21
|
import path from 'node:path';
|
|
22
|
-
|
|
22
|
+
// `ws` 8 moved the server class off the default export onto a named one. The
|
|
23
|
+
// default import stays for the `WebSocket` type and its `OPEN` constant.
|
|
24
|
+
import WebSocket, { WebSocketServer } from 'ws';
|
|
23
25
|
import { loadChain, API_URLS, BLOCKRUN_DIR } from '../config.js';
|
|
24
26
|
import { loadConfig, setConfigValue } from '../commands/config.js';
|
|
25
27
|
import { assembleInstructions } from '../agent/context.js';
|
|
@@ -890,7 +892,7 @@ export async function startServer(opts) {
|
|
|
890
892
|
res.writeHead(404);
|
|
891
893
|
res.end();
|
|
892
894
|
});
|
|
893
|
-
const wss = new
|
|
895
|
+
const wss = new WebSocketServer({
|
|
894
896
|
server: httpServer,
|
|
895
897
|
path: '/agent',
|
|
896
898
|
// Same gate as /file: refuse upgrades from non-allowlisted browser origins
|
package/dist/tools/read.js
CHANGED
|
@@ -125,8 +125,11 @@ async function execute(input, ctx) {
|
|
|
125
125
|
let normalizeNote = '';
|
|
126
126
|
if (stat.size > SKIP_BELOW_BYTES) {
|
|
127
127
|
try {
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
// sharp 0.35 ships proper ESM types: the default export is the
|
|
129
|
+
// constructor itself, so the old cast (which claimed `default` was
|
|
130
|
+
// the whole module namespace) no longer type-checks. Runtime shape
|
|
131
|
+
// is unchanged — `.default` was always the callable.
|
|
132
|
+
const { default: sharp } = await import('sharp');
|
|
130
133
|
const img = sharp(rawBytes, { failOn: 'none' });
|
|
131
134
|
const meta = await img.metadata();
|
|
132
135
|
const longEdge = Math.max(meta.width ?? 0, meta.height ?? 0);
|
package/dist/ui/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* RunCode ink-based terminal UI.
|
|
4
4
|
* Real-time streaming, thinking animation, tool progress, slash commands.
|
|
@@ -182,8 +182,9 @@ async function shrinkImageInPlace(filePath) {
|
|
|
182
182
|
try {
|
|
183
183
|
const before = fs.statSync(filePath).size;
|
|
184
184
|
const raw = fs.readFileSync(filePath);
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
// See the note in src/tools/read.ts: sharp 0.35's default export is the
|
|
186
|
+
// constructor, so the old namespace cast no longer type-checks.
|
|
187
|
+
const { default: sharp } = await import('sharp');
|
|
187
188
|
const meta = await sharp(raw, { failOn: 'none' }).metadata();
|
|
188
189
|
let hasAlpha = false;
|
|
189
190
|
if (meta.hasAlpha) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/franklin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.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": {
|
|
@@ -67,33 +67,37 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@blockrun/llm": "^3.5.2",
|
|
70
|
-
"@colbymchenry/codegraph": "
|
|
70
|
+
"@colbymchenry/codegraph": "^1.5.0",
|
|
71
71
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
72
72
|
"@polymarket/builder-relayer-client": "^0.0.10",
|
|
73
73
|
"@polymarket/builder-signing-sdk": "0.0.8",
|
|
74
74
|
"@polymarket/clob-client-v2": "1.0.8",
|
|
75
|
-
"@slack/bolt": "^
|
|
75
|
+
"@slack/bolt": "^5.0.0",
|
|
76
76
|
"@solana/spl-token": "^0.4.14",
|
|
77
77
|
"@solana/web3.js": "^1.98.4",
|
|
78
78
|
"@types/react": "^19.2.14",
|
|
79
79
|
"axios": "^1.18.1",
|
|
80
80
|
"bs58": "^6.0.0",
|
|
81
81
|
"chalk": "^5.4.0",
|
|
82
|
-
"commander": "^
|
|
82
|
+
"commander": "^15.0.0",
|
|
83
83
|
"https-proxy-agent": "^9.1.0",
|
|
84
|
-
"ink": "^
|
|
84
|
+
"ink": "^7.1.1",
|
|
85
85
|
"ink-spinner": "^5.0.0",
|
|
86
86
|
"ink-text-input": "^6.0.0",
|
|
87
87
|
"playwright-core": "^1.49.1",
|
|
88
88
|
"qrcode": "^1.5.4",
|
|
89
89
|
"react": "^19.2.4",
|
|
90
|
-
"sharp": "^0.
|
|
91
|
-
"viem": "^2.48.1"
|
|
90
|
+
"sharp": "^0.35.3",
|
|
91
|
+
"viem": "^2.48.1",
|
|
92
|
+
"ws": "^8.21.1"
|
|
92
93
|
},
|
|
93
94
|
"devDependencies": {
|
|
94
|
-
"@types/node": "^
|
|
95
|
+
"@types/node": "^26.1.1",
|
|
95
96
|
"@types/qrcode": "^1.5.6",
|
|
96
|
-
"@types/ws": "^
|
|
97
|
-
"typescript": "^
|
|
97
|
+
"@types/ws": "^8.18.1",
|
|
98
|
+
"typescript": "^7.0.2"
|
|
99
|
+
},
|
|
100
|
+
"overrides": {
|
|
101
|
+
"ws@>=8.0.0 <=8.20.1": "^8.21.1"
|
|
98
102
|
}
|
|
99
103
|
}
|