@blockrun/clawrouter 0.12.28 → 0.12.29

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/index.js CHANGED
@@ -5582,7 +5582,9 @@ function transformPaymentError(errorBody) {
5582
5582
  }
5583
5583
  });
5584
5584
  }
5585
- console.error(`[ClawRouter] Solana payment verification failed: ${parsed.debug} payer=${wallet}`);
5585
+ console.error(
5586
+ `[ClawRouter] Solana payment verification failed: ${parsed.debug} payer=${wallet}`
5587
+ );
5586
5588
  return JSON.stringify({
5587
5589
  error: {
5588
5590
  message: `Solana payment verification failed: ${parsed.debug}`,
@@ -6286,9 +6288,18 @@ async function startProxy(options) {
6286
6288
  const s = await fsStat(filePath);
6287
6289
  if (!s.isFile()) throw new Error("not a file");
6288
6290
  const ext = filename.split(".").pop()?.toLowerCase() ?? "png";
6289
- const mime = { png: "image/png", jpg: "image/jpeg", jpeg: "image/jpeg", webp: "image/webp", gif: "image/gif" };
6291
+ const mime = {
6292
+ png: "image/png",
6293
+ jpg: "image/jpeg",
6294
+ jpeg: "image/jpeg",
6295
+ webp: "image/webp",
6296
+ gif: "image/gif"
6297
+ };
6290
6298
  const data = await readFile(filePath);
6291
- res.writeHead(200, { "Content-Type": mime[ext] ?? "application/octet-stream", "Content-Length": data.length });
6299
+ res.writeHead(200, {
6300
+ "Content-Type": mime[ext] ?? "application/octet-stream",
6301
+ "Content-Length": data.length
6302
+ });
6292
6303
  res.end(data);
6293
6304
  } catch {
6294
6305
  res.writeHead(404, { "Content-Type": "application/json" });
@@ -8464,9 +8475,13 @@ async function startProxyInBackground(api) {
8464
8475
  proxy.balanceMonitor.checkBalance().then((balance) => {
8465
8476
  if (balance.isEmpty) {
8466
8477
  api.logger.info(`Wallet (${network}): ${displayAddress}`);
8467
- api.logger.info(`Balance: $0.00 \u2014 send USDC on ${network} to the address above to unlock paid models.`);
8478
+ api.logger.info(
8479
+ `Balance: $0.00 \u2014 send USDC on ${network} to the address above to unlock paid models.`
8480
+ );
8468
8481
  } else if (balance.isLow) {
8469
- api.logger.info(`Wallet (${network}): ${displayAddress} | Balance: ${balance.balanceUSD} (low \u2014 top up soon)`);
8482
+ api.logger.info(
8483
+ `Wallet (${network}): ${displayAddress} | Balance: ${balance.balanceUSD} (low \u2014 top up soon)`
8484
+ );
8470
8485
  } else {
8471
8486
  api.logger.info(`Wallet (${network}): ${displayAddress} | Balance: ${balance.balanceUSD}`);
8472
8487
  }