@blockrun/clawrouter 0.12.40 → 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/dist/cli.js +23 -9
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/reinstall.sh +8 -0
- package/scripts/update.sh +9 -0
package/package.json
CHANGED
package/scripts/reinstall.sh
CHANGED
|
@@ -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..."
|