@blockrun/clawrouter 0.9.12 → 0.9.13

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.9.12",
3
+ "version": "0.9.13",
4
4
  "description": "Smart LLM router — save 78% on inference costs. 30+ models, one wallet, x402 micropayments.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -39,7 +39,9 @@
39
39
  "test:resilience:lifecycle": "npx tsx test/resilience-lifecycle.ts",
40
40
  "test:resilience:quick": "npm run test:resilience:errors && npm run test:resilience:lifecycle",
41
41
  "test:resilience:full": "npm run test:resilience:errors && npm run test:resilience:lifecycle && npm run test:resilience:stability:full",
42
- "test:e2e:tool-ids": "npx tsx test/e2e-tool-id-sanitization.ts"
42
+ "test:e2e:tool-ids": "npx tsx test/e2e-tool-id-sanitization.ts",
43
+ "test:docker:install": "bash test/run-docker-test.sh",
44
+ "test:docker:edge-cases": "bash test/docker/run-edge-cases.sh"
43
45
  },
44
46
  "keywords": [
45
47
  "llm",
@@ -131,6 +131,23 @@ if (fs.existsSync(configPath)) {
131
131
  echo "→ Installing ClawRouter..."
132
132
  openclaw plugins install @blockrun/clawrouter
133
133
 
134
+ # 6.1. Verify installation (check dist/ files exist)
135
+ echo "→ Verifying installation..."
136
+ DIST_PATH="$HOME/.openclaw/extensions/clawrouter/dist/index.js"
137
+ if [ ! -f "$DIST_PATH" ]; then
138
+ echo " ⚠️ dist/ files missing, clearing npm cache and retrying..."
139
+ npm cache clean --force 2>/dev/null || true
140
+ rm -rf ~/.openclaw/extensions/clawrouter
141
+ openclaw plugins install @blockrun/clawrouter
142
+
143
+ if [ ! -f "$DIST_PATH" ]; then
144
+ echo " ❌ Installation failed - dist/index.js still missing"
145
+ echo " Please report this issue at https://github.com/BlockRunAI/ClawRouter/issues"
146
+ exit 1
147
+ fi
148
+ fi
149
+ echo " ✓ dist/index.js verified"
150
+
134
151
  # 7. Add plugin to allow list (done AFTER install so plugin files exist for validation)
135
152
  echo "→ Adding to plugins allow list..."
136
153
  node -e "