mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-21 16:41:56 +00:00
Status scan: fix JSON channels result typing
This commit is contained in:
@@ -166,7 +166,7 @@ async function scanStatusJsonFast(opts: {
|
||||
gatewaySelf,
|
||||
channelIssues,
|
||||
agentStatus,
|
||||
channels: [],
|
||||
channels: { rows: [], details: [] },
|
||||
summary,
|
||||
memory,
|
||||
memoryPlugin,
|
||||
@@ -188,7 +188,7 @@ export async function scanStatus(
|
||||
{
|
||||
label: "Scanning status…",
|
||||
total: 10,
|
||||
enabled: opts.json !== true,
|
||||
enabled: true,
|
||||
},
|
||||
async (progress) => {
|
||||
progress.setLabel("Loading config…");
|
||||
@@ -258,13 +258,11 @@ export async function scanStatus(
|
||||
progress.tick();
|
||||
|
||||
progress.setLabel("Summarizing channels…");
|
||||
const channels = opts.json
|
||||
? []
|
||||
: await buildChannelsTable(cfg, {
|
||||
// Show token previews in regular status; keep `status --all` redacted.
|
||||
// Set `CLAWDBOT_SHOW_SECRETS=0` to force redaction.
|
||||
showSecrets: process.env.CLAWDBOT_SHOW_SECRETS?.trim() !== "0",
|
||||
});
|
||||
const channels = await buildChannelsTable(cfg, {
|
||||
// Show token previews in regular status; keep `status --all` redacted.
|
||||
// Set `CLAWDBOT_SHOW_SECRETS=0` to force redaction.
|
||||
showSecrets: process.env.CLAWDBOT_SHOW_SECRETS?.trim() !== "0",
|
||||
});
|
||||
progress.tick();
|
||||
|
||||
progress.setLabel("Checking memory…");
|
||||
|
||||
Reference in New Issue
Block a user