style: format providers docs output

This commit is contained in:
Peter Steinberger
2026-01-08 02:01:43 +00:00
parent 313925b357
commit 92a62bc300
2 changed files with 9 additions and 10 deletions

View File

@@ -13,14 +13,14 @@ import {
resolveDiscordAccount,
} from "../discord/accounts.js";
import { callGateway } from "../gateway/call.js";
import {
formatUsageReportLines,
loadProviderUsageSummary,
} from "../infra/provider-usage.js";
import {
listIMessageAccountIds,
resolveIMessageAccount,
} from "../imessage/accounts.js";
import {
formatUsageReportLines,
loadProviderUsageSummary,
} from "../infra/provider-usage.js";
import {
DEFAULT_ACCOUNT_ID,
normalizeAccountId,
@@ -617,11 +617,9 @@ export async function providersListCommand(
runtime.log("");
runtime.log(
`Docs: gateway/configuration -> ${formatTerminalLink(
DOCS_ROOT,
DOCS_ROOT,
{ fallback: DOCS_ROOT },
)}`,
`Docs: gateway/configuration -> ${formatTerminalLink(DOCS_ROOT, DOCS_ROOT, {
fallback: DOCS_ROOT,
})}`,
);
}

View File

@@ -117,7 +117,8 @@ export async function callGateway<T = unknown>(
: undefined) ||
process.env.CLAWDBOT_GATEWAY_PASSWORD?.trim() ||
(isRemoteMode
? typeof remote?.password === "string" && remote.password.trim().length > 0
? typeof remote?.password === "string" &&
remote.password.trim().length > 0
? remote.password.trim()
: undefined
: typeof authPassword === "string" && authPassword.trim().length > 0