chore: add provider logs command

This commit is contained in:
Peter Steinberger
2026-01-08 12:01:06 +01:00
parent a483e58860
commit d42444928b
4 changed files with 184 additions and 0 deletions

View File

@@ -105,6 +105,9 @@ export function formatGatewayProvidersStatusLines(
if (probe && typeof probe.ok === "boolean") {
bits.push(probe.ok ? "works" : "probe failed");
}
if (typeof account.lastError === "string" && account.lastError) {
bits.push(`error:${account.lastError}`);
}
const accountId =
typeof account.accountId === "string" ? account.accountId : "default";
const name = typeof account.name === "string" ? account.name.trim() : "";