feat(cli): expand non-json status diagnostics output

This commit is contained in:
ZenchantLive 2026-03-02 21:23:21 -08:00
parent 84e2dff2d1
commit b61f27aaf3
3 changed files with 46 additions and 6 deletions

View file

@ -45,11 +45,21 @@ function output(payload, asJson) {
return;
}
if (payload.command === 'status') {
process.stdout.write(
payload.running
? `BeadBoard is running at ${payload.url}\n`
: `BeadBoard is not running at ${payload.url}\n`,
);
const statusLines = [
'BeadBoard status',
`Running: ${payload.running ? 'yes' : 'no'}`,
`URL: ${payload.url}`,
`Port: ${payload.port}`,
`Install Mode: ${payload.installMode}`,
`Runtime Root: ${payload.runtimeRoot}`,
`Shim Target: ${payload.shimTarget}`,
`bd Available: ${payload.bd?.available ? 'yes' : 'no'}`,
`bd Path: ${payload.bd?.path || '(not found)'}`,
`Project CWD: ${payload.bd?.project?.cwd || process.cwd()}`,
`.beads Dir: ${payload.bd?.project?.hasBeadsDir ? 'yes' : 'no'}`,
`.beads DB: ${payload.bd?.project?.hasBeadsDb ? 'yes' : 'no'}`,
];
process.stdout.write(`${statusLines.join('\n')}\n`);
return;
}
if (payload.command === 'open') {