@blockrun/clawrouter 0.12.19 → 0.12.21
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/cli.js +21 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5258,7 +5258,6 @@ function hashRequestContent(lastUserContent, toolCallNames) {
|
|
|
5258
5258
|
|
|
5259
5259
|
// src/updater.ts
|
|
5260
5260
|
var NPM_REGISTRY = "https://registry.npmjs.org/@blockrun/clawrouter/latest";
|
|
5261
|
-
var UPDATE_URL = "https://blockrun.ai/ClawRouter-update";
|
|
5262
5261
|
var CHECK_TIMEOUT_MS = 5e3;
|
|
5263
5262
|
function compareSemver(a, b) {
|
|
5264
5263
|
const pa = a.split(".").map(Number);
|
|
@@ -5285,7 +5284,7 @@ async function checkForUpdates() {
|
|
|
5285
5284
|
if (compareSemver(latest, VERSION) > 0) {
|
|
5286
5285
|
console.log("");
|
|
5287
5286
|
console.log(`\x1B[33m\u2B06\uFE0F ClawRouter ${latest} available (you have ${VERSION})\x1B[0m`);
|
|
5288
|
-
console.log(` Run: \x1B[
|
|
5287
|
+
console.log(` Run: \x1B[36mnpx @blockrun/clawrouter@latest\x1B[0m`);
|
|
5289
5288
|
console.log("");
|
|
5290
5289
|
}
|
|
5291
5290
|
} catch {
|
|
@@ -6079,9 +6078,9 @@ async function startProxy(options) {
|
|
|
6079
6078
|
const paymentChain = options.paymentChain ?? await resolvePaymentChain();
|
|
6080
6079
|
const apiBase = options.apiBase ?? (paymentChain === "solana" && solanaPrivateKeyBytes ? BLOCKRUN_SOLANA_API : BLOCKRUN_API);
|
|
6081
6080
|
if (paymentChain === "solana" && !solanaPrivateKeyBytes) {
|
|
6082
|
-
console.warn(
|
|
6083
|
-
|
|
6084
|
-
);
|
|
6081
|
+
console.warn(`[ClawRouter] \u26A0 Payment chain is Solana but no mnemonic found \u2014 falling back to Base (EVM).`);
|
|
6082
|
+
console.warn(`[ClawRouter] To fix: run "npx @blockrun/clawrouter wallet recover" if your mnemonic exists,`);
|
|
6083
|
+
console.warn(`[ClawRouter] or run "npx @blockrun/clawrouter chain base" to switch to EVM.`);
|
|
6085
6084
|
} else if (paymentChain === "solana") {
|
|
6086
6085
|
console.log(`[ClawRouter] Payment chain: Solana (${BLOCKRUN_SOLANA_API})`);
|
|
6087
6086
|
}
|