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