@blockrun/clawrouter 0.8.3 → 0.8.4

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
@@ -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 () => {