@blockrun/clawrouter 0.8.2 → 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 +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3501,6 +3501,10 @@ 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 isGatewayMode() {
|
|
3505
|
+
const args = process.argv;
|
|
3506
|
+
return args.includes("gateway");
|
|
3507
|
+
}
|
|
3504
3508
|
function injectModelsConfig(logger) {
|
|
3505
3509
|
const configDir = join5(homedir4(), ".openclaw");
|
|
3506
3510
|
const configPath = join5(configDir, "openclaw.json");
|
|
@@ -3925,6 +3929,10 @@ var plugin = {
|
|
|
3925
3929
|
}
|
|
3926
3930
|
}
|
|
3927
3931
|
});
|
|
3932
|
+
if (!isGatewayMode()) {
|
|
3933
|
+
api.logger.info("Not in gateway mode \u2014 proxy will start when gateway runs");
|
|
3934
|
+
return;
|
|
3935
|
+
}
|
|
3928
3936
|
startProxyInBackground(api).then(async () => {
|
|
3929
3937
|
const port = getProxyPort();
|
|
3930
3938
|
const healthy = await waitForProxyHealth(port, 5e3);
|