feat: add marker-only sub2api sentinel reporting

This commit is contained in:
Codex
2026-06-11 08:40:37 +00:00
parent def417f0cf
commit 0bef6e577a
10 changed files with 1508 additions and 97 deletions
+5
View File
@@ -333,6 +333,11 @@ async function main(): Promise<void> {
const { runPlatformInfraCommand } = await import("./src/platform-infra");
const result = await runPlatformInfraCommand(readConfig(), args.slice(1));
const ok = (result as { ok?: unknown }).ok !== false;
if (isRenderedCliResult(result)) {
emitText(result.renderedText);
if (!ok) process.exitCode = 1;
return;
}
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;