games status: both stores' game services in one read-only report (CLI, MCP games_status, desktop read method); --json status output stays pure JSON

This commit is contained in:
CRTkafa 2026-10-21 05:07:58 +07:00
parent a4c31e096b
commit 26f0723641
7 changed files with 23 additions and 4 deletions

View file

@ -86,3 +86,12 @@ export function gameServicesFindings(s: GameServicesStatus): VFinding[] {
}
return out;
}
/** `storebound games status [--json]`: both stores' game services in one read-only report (desktop card, MCP). */
export async function run(ctx: import('./lib/ctx').Ctx): Promise<void> {
const s = await gameServicesStatus(ctx.loaded);
if (ctx.args.has('json')) { console.log(JSON.stringify(s, null, 2)); return; }
const { formatFindings } = await import('./lib/validate-rules');
console.log(formatFindings(gameServicesFindings(s)));
for (const l of s.links) console.log(`${l.label}: ${l.url}`);
}