@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.
@@ -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
- const sharpMod = await import('sharp');
129
- const sharp = sharpMod.default;
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 { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
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
- const sharpMod = await import('sharp');
186
- const sharp = sharpMod.default;
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.36.0",
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": "0.9.7",
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.8",
74
- "@polymarket/clob-client-v2": "1.0.8",
75
- "@slack/bolt": "^4.7.3",
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": "^13.0.0",
82
+ "commander": "^15.0.0",
83
83
  "https-proxy-agent": "^9.1.0",
84
- "ink": "^6.8.0",
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.34.5",
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": "^22.0.0",
95
+ "@types/node": "^26.1.1",
95
96
  "@types/qrcode": "^1.5.6",
96
- "@types/ws": "^7.4.7",
97
- "typescript": "^5.7.0"
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
  }