fix(cli): add config alias and reduce probe noise

This commit is contained in:
Peter Steinberger
2026-01-04 17:23:24 +00:00
parent 9eee832282
commit 2110cac5d6
6 changed files with 20 additions and 6 deletions

View File

@@ -176,7 +176,7 @@ async function promptGatewayConfig(
...next,
gateway: {
...next.gateway,
auth: { ...next.gateway?.auth, mode: "token" },
auth: { ...next.gateway?.auth, mode: "token", token: gatewayToken },
},
};
}
@@ -453,7 +453,7 @@ export async function runConfigureWizard(
const localUrl = "ws://127.0.0.1:18789";
const localProbe = await probeGatewayReachable({
url: localUrl,
token: process.env.CLAWDBOT_GATEWAY_TOKEN,
token: baseConfig.gateway?.auth?.token ?? process.env.CLAWDBOT_GATEWAY_TOKEN,
password:
baseConfig.gateway?.auth?.password ??
process.env.CLAWDBOT_GATEWAY_PASSWORD,

View File

@@ -194,6 +194,8 @@ export async function probeGatewayReachable(params: {
password: params.password,
method: "health",
timeoutMs,
clientName: "clawdbot-probe",
mode: "probe",
});
return { ok: true };
} catch (err) {