@blockrun/clawrouter 0.8.1 → 0.8.2

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
@@ -3925,18 +3925,17 @@ var plugin = {
3925
3925
  }
3926
3926
  }
3927
3927
  });
3928
- try {
3929
- await startProxyInBackground(api);
3928
+ startProxyInBackground(api).then(async () => {
3930
3929
  const port = getProxyPort();
3931
- const healthy = await waitForProxyHealth(port);
3930
+ const healthy = await waitForProxyHealth(port, 5e3);
3932
3931
  if (!healthy) {
3933
3932
  api.logger.warn(`Proxy health check timed out, commands may not work immediately`);
3934
3933
  }
3935
- } catch (err) {
3934
+ }).catch((err) => {
3936
3935
  api.logger.error(
3937
3936
  `Failed to start BlockRun proxy: ${err instanceof Error ? err.message : String(err)}`
3938
3937
  );
3939
- }
3938
+ });
3940
3939
  }
3941
3940
  };
3942
3941
  var index_default = plugin;