@blockrun/clawrouter 0.10.6 → 0.10.7

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 CHANGED
@@ -511,7 +511,7 @@ function calibrateConfidence(distance, steepness) {
511
511
  }
512
512
 
513
513
  // src/router/selector.ts
514
- var BASELINE_MODEL_ID = "anthropic/claude-opus-4-5";
514
+ var BASELINE_MODEL_ID = "anthropic/claude-opus-4.6";
515
515
  function selectModel(tier, confidence, method, reasoning, tierConfigs, modelPricing, estimatedInputTokens, maxOutputTokens, routingProfile) {
516
516
  const tierConfig = tierConfigs[tier];
517
517
  const model = tierConfig.primary;
@@ -5681,12 +5681,24 @@ async function loadSavedWallet() {
5681
5681
  console.log(`[ClawRouter] \u2713 Loaded existing wallet from ${WALLET_FILE}`);
5682
5682
  return key;
5683
5683
  }
5684
- console.warn(`[ClawRouter] \u26A0 Wallet file exists but is invalid (wrong format)`);
5684
+ console.error(`[ClawRouter] \u2717 CRITICAL: Wallet file exists but has invalid format!`);
5685
+ console.error(`[ClawRouter] File: ${WALLET_FILE}`);
5686
+ console.error(`[ClawRouter] Expected: 0x followed by 64 hex characters (66 chars total)`);
5687
+ console.error(`[ClawRouter] To fix: restore your backup key or set BLOCKRUN_WALLET_KEY env var`);
5688
+ throw new Error(
5689
+ `Wallet file at ${WALLET_FILE} is corrupted or has wrong format. Refusing to auto-generate new wallet to protect existing funds. Restore your backup key or set BLOCKRUN_WALLET_KEY environment variable.`
5690
+ );
5685
5691
  } catch (err) {
5686
5692
  if (err.code !== "ENOENT") {
5693
+ if (err instanceof Error && err.message.includes("Refusing to auto-generate")) {
5694
+ throw err;
5695
+ }
5687
5696
  console.error(
5688
5697
  `[ClawRouter] \u2717 Failed to read wallet file: ${err instanceof Error ? err.message : String(err)}`
5689
5698
  );
5699
+ throw new Error(
5700
+ `Cannot read wallet file at ${WALLET_FILE}: ${err instanceof Error ? err.message : String(err)}. Refusing to auto-generate new wallet to protect existing funds. Fix file permissions or set BLOCKRUN_WALLET_KEY environment variable.`
5701
+ );
5690
5702
  }
5691
5703
  }
5692
5704
  return void 0;
@@ -5707,6 +5719,20 @@ async function generateAndSaveWallet() {
5707
5719
  `Failed to verify wallet file after creation: ${err instanceof Error ? err.message : String(err)}`
5708
5720
  );
5709
5721
  }
5722
+ console.log(`[ClawRouter]`);
5723
+ console.log(`[ClawRouter] \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550`);
5724
+ console.log(`[ClawRouter] NEW WALLET GENERATED \u2014 BACK UP YOUR KEY NOW`);
5725
+ console.log(`[ClawRouter] \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550`);
5726
+ console.log(`[ClawRouter] Address : ${account.address}`);
5727
+ console.log(`[ClawRouter] Key file: ${WALLET_FILE}`);
5728
+ console.log(`[ClawRouter]`);
5729
+ console.log(`[ClawRouter] To back up, run in OpenClaw:`);
5730
+ console.log(`[ClawRouter] /wallet export`);
5731
+ console.log(`[ClawRouter]`);
5732
+ console.log(`[ClawRouter] To restore on another machine:`);
5733
+ console.log(`[ClawRouter] export BLOCKRUN_WALLET_KEY=<your_key>`);
5734
+ console.log(`[ClawRouter] \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550`);
5735
+ console.log(`[ClawRouter]`);
5710
5736
  return { key, address: account.address };
5711
5737
  }
5712
5738
  async function resolveOrGenerateWalletKey() {
@@ -6027,7 +6053,7 @@ var PARTNER_SERVICES = [
6027
6053
  id: "x_users_lookup",
6028
6054
  name: "Twitter/X User Lookup",
6029
6055
  partner: "AttentionVC",
6030
- description: "Look up Twitter/X user profiles by username. Returns follower counts, verification status, bio, and more. Accepts up to 100 usernames per request.",
6056
+ description: "ALWAYS use this tool to look up real-time Twitter/X user profiles. Call this when the user asks about any Twitter/X account, username, handle, follower count, verification status, bio, or profile. Do NOT answer Twitter/X user questions from memory \u2014 always fetch live data with this tool. Returns: follower count, verification badge, bio, location, join date. Accepts up to 100 usernames per request (without @ prefix).",
6031
6057
  proxyPath: "/x/users/lookup",
6032
6058
  method: "POST",
6033
6059
  params: [