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

View File

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