fix: canonicalize codex protocol JSON assets (#91507)

This commit is contained in:
Dallin Romney
2026-06-08 18:59:51 -07:00
committed by GitHub
parent 27189b3e74
commit 5097749de3
9 changed files with 290 additions and 131 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
import fs from "node:fs/promises";
import path from "node:path";
import {
formatCodexAppServerProtocolJsonText,
generateExperimentalCodexAppServerProtocolSource,
selectedCodexAppServerJsonSchemas,
} from "./lib/codex-app-server-protocol-source.js";
@@ -27,7 +28,7 @@ async function main(): Promise<void> {
const schemaSource = await fs.readFile(path.join(source.jsonRoot, schema), "utf8");
await fs.writeFile(
path.join(targetRoot, "json", schema),
`${JSON.stringify(JSON.parse(schemaSource), null, 2)}\n`,
formatCodexAppServerProtocolJsonText(schemaSource),
);
}
} finally {