@blockrun/clawrouter 0.12.41 → 0.12.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.41",
3
+ "version": "0.12.42",
4
4
  "description": "Smart LLM router — save 92% on inference costs. 41+ models, one wallet, x402 micropayments.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -203,6 +203,14 @@ if [ ! -f "$DIST_PATH" ]; then
203
203
  fi
204
204
  echo " ✓ dist/index.js verified"
205
205
 
206
+ # 6.1b. Ensure all dependencies are installed (Solana, x402, etc.)
207
+ # openclaw's plugin installer may skip native deps like @solana/kit.
208
+ PLUGIN_DIR="$HOME/.openclaw/extensions/clawrouter"
209
+ if [ -d "$PLUGIN_DIR" ] && [ -f "$PLUGIN_DIR/package.json" ]; then
210
+ echo "→ Installing dependencies (Solana, x402, etc.)..."
211
+ (cd "$PLUGIN_DIR" && npm install --omit=dev 2>&1 | tail -1)
212
+ fi
213
+
206
214
  # 6.2. Populate model allowlist so top BlockRun models appear in /model picker
207
215
  echo "→ Populating model allowlist..."
208
216
  node -e "
package/scripts/update.sh CHANGED
@@ -100,6 +100,15 @@ try {
100
100
  echo "→ Installing latest ClawRouter..."
101
101
  openclaw plugins install @blockrun/clawrouter
102
102
 
103
+ # ── Step 4b: Ensure all dependencies are installed ────────────
104
+ # openclaw's plugin installer may skip native/optional deps like @solana/kit.
105
+ # Run npm install in the plugin directory to fill any gaps.
106
+ PLUGIN_DIR="$HOME/.openclaw/extensions/clawrouter"
107
+ if [ -d "$PLUGIN_DIR" ] && [ -f "$PLUGIN_DIR/package.json" ]; then
108
+ echo "→ Installing dependencies (Solana, x402, etc.)..."
109
+ (cd "$PLUGIN_DIR" && npm install --omit=dev 2>&1 | tail -1)
110
+ fi
111
+
103
112
  # ── Step 5: Verify wallet survived ─────────────────────────────
104
113
  echo ""
105
114
  echo "→ Verifying wallet integrity..."