mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix: canonicalize codex protocol JSON assets (#91507)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user