style: format providers docs output
This commit is contained in:
@@ -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,
|
||||
})}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user