feat: add decision center document contract

This commit is contained in:
Codex
2026-05-21 07:40:35 +00:00
parent f1e5f21caf
commit 9911a9e736
11 changed files with 1259 additions and 87 deletions
+5 -3
View File
@@ -758,11 +758,13 @@ async function runRemoteCliOverFrontend(options: RemoteCliOptions, config: UniDe
: {
method: init.method,
body: init.body === undefined ? undefined : JSON.stringify(init.body),
};
};
return frontendJson(session, path, requestInit, 30_000);
};
emitRemoteJson(name, await runDecisionCenterCommandAsync(config, args.slice(1), fetcher));
return 0;
const result = await runDecisionCenterCommandAsync(config, args.slice(1), fetcher);
const ok = typeof result !== "object" || result === null || !("ok" in result) || (result as { ok?: unknown }).ok !== false;
emitRemoteJson(name, result, ok);
return ok ? 0 : 1;
}
if (top === "codex") {
emitRemoteJson(name, await remoteCodeQueue(session, args));