@blockrun/franklin 3.36.0 → 3.38.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/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/read.js +5 -2
- package/dist/ui/app.js +4 -3
- package/package.json +17 -12
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.38.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,38 @@
|
|
|
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
|
-
"@polymarket/builder-signing-sdk": "0.0
|
|
74
|
-
"@polymarket/clob-client-v2": "1.0
|
|
75
|
-
"@slack/bolt": "^
|
|
73
|
+
"@polymarket/builder-signing-sdk": "1.0.0",
|
|
74
|
+
"@polymarket/clob-client-v2": "1.1.0",
|
|
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",
|
|
102
|
+
"@polymarket/builder-signing-sdk": "1.0.0"
|
|
98
103
|
}
|
|
99
104
|
}
|