@blockrun/clawrouter 0.11.5 → 0.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
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",
@@ -255,18 +255,15 @@ try {
255
255
  console.log(' Added minimax model to blockrun provider catalog');
256
256
  }
257
257
 
258
- // Ensure minimax alias is present in model picker allowlist
259
- if (!config.agents) config.agents = {};
260
- if (!config.agents.defaults) config.agents.defaults = {};
261
- if (!config.agents.defaults.models || typeof config.agents.defaults.models !== 'object') {
262
- config.agents.defaults.models = {};
263
- changed = true;
264
- }
265
- const allowlist = config.agents.defaults.models;
266
- if (!allowlist['blockrun/minimax'] || allowlist['blockrun/minimax'].alias !== 'minimax') {
267
- allowlist['blockrun/minimax'] = { alias: 'minimax' };
268
- changed = true;
269
- console.log(' Added minimax to model picker allowlist');
258
+ // Clean up broken allowlist: if it only has blockrun/ entries, delete it entirely
259
+ // (previous versions accidentally created an allowlist that hid all non-blockrun models)
260
+ if (config.agents?.defaults?.models && typeof config.agents.defaults.models === 'object') {
261
+ const keys = Object.keys(config.agents.defaults.models);
262
+ if (keys.length > 0 && keys.every(k => k.startsWith('blockrun/'))) {
263
+ delete config.agents.defaults.models;
264
+ changed = true;
265
+ console.log(' Removed blockrun-only allowlist (was hiding other models)');
266
+ }
270
267
  }
271
268
 
272
269
  if (changed) {