@blockrun/clawrouter 0.8.3 → 0.8.5

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
@@ -1626,7 +1626,7 @@ function route(prompt, systemPrompt, maxOutputTokens, options) {
1626
1626
  const estimatedTokens = Math.ceil(fullText.length / 4);
1627
1627
  const ruleResult = classifyByRules(prompt, systemPrompt, estimatedTokens, config.scoring);
1628
1628
  const agenticScore = ruleResult.agenticScore ?? 0;
1629
- const isAutoAgentic = agenticScore >= 0.6;
1629
+ const isAutoAgentic = agenticScore >= 0.75;
1630
1630
  const isExplicitAgentic = config.overrides.agenticMode ?? false;
1631
1631
  const useAgenticTiers = (isAutoAgentic || isExplicitAgentic) && config.agenticTiers != null;
1632
1632
  const tierConfigs = useAgenticTiers ? config.agenticTiers : config.tiers;
@@ -3501,9 +3501,9 @@ function isCompletionMode() {
3501
3501
  const args = process.argv;
3502
3502
  return args.some((arg, i) => arg === "completion" && i >= 1 && i <= 3);
3503
3503
  }
3504
- function isInstallMode() {
3504
+ function isGatewayMode() {
3505
3505
  const args = process.argv;
3506
- return args.some((arg) => arg === "plugins") && args.some((arg) => arg === "install" || arg === "uninstall");
3506
+ return args.includes("gateway");
3507
3507
  }
3508
3508
  function injectModelsConfig(logger) {
3509
3509
  const configDir = join5(homedir4(), ".openclaw");
@@ -3929,8 +3929,8 @@ var plugin = {
3929
3929
  }
3930
3930
  }
3931
3931
  });
3932
- if (isInstallMode()) {
3933
- api.logger.info("Installation mode \u2014 proxy will start when gateway runs");
3932
+ if (!isGatewayMode()) {
3933
+ api.logger.info("Not in gateway mode \u2014 proxy will start when gateway runs");
3934
3934
  return;
3935
3935
  }
3936
3936
  startProxyInBackground(api).then(async () => {