@blockrun/clawrouter 0.8.0 → 0.8.1

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/index.js CHANGED
@@ -3596,8 +3596,9 @@ function injectModelsConfig(logger) {
3596
3596
  needsWrite = true;
3597
3597
  }
3598
3598
  const model = defaults.model;
3599
- if (model.primary !== "blockrun/auto") {
3599
+ if (!model.primary) {
3600
3600
  model.primary = "blockrun/auto";
3601
+ logger.info("Set default model to blockrun/auto (first install)");
3601
3602
  needsWrite = true;
3602
3603
  }
3603
3604
  const KEY_MODEL_ALIASES = [
@@ -3887,7 +3888,10 @@ var plugin = {
3887
3888
  if (!agents.defaults) agents.defaults = {};
3888
3889
  const defaults = agents.defaults;
3889
3890
  if (!defaults.model) defaults.model = {};
3890
- defaults.model.primary = "blockrun/auto";
3891
+ const model = defaults.model;
3892
+ if (!model.primary) {
3893
+ model.primary = "blockrun/auto";
3894
+ }
3891
3895
  api.logger.info("BlockRun provider registered (30+ models via x402)");
3892
3896
  createWalletCommand().then((walletCommand) => {
3893
3897
  api.registerCommand(walletCommand);