refactor: compact generated protocol metadata

This commit is contained in:
Peter Steinberger
2026-05-05 20:47:29 +01:00
parent 9abf01faf0
commit 782963ae66
15 changed files with 821 additions and 21167 deletions

View File

@@ -20,7 +20,11 @@ try {
for (const schema of selectedCodexAppServerJsonSchemas) {
await fs.mkdir(path.dirname(path.join(targetRoot, "json", schema)), { recursive: true });
await fs.copyFile(path.join(source.jsonRoot, schema), path.join(targetRoot, "json", schema));
const schemaSource = await fs.readFile(path.join(source.jsonRoot, schema), "utf8");
await fs.writeFile(
path.join(targetRoot, "json", schema),
`${JSON.stringify(JSON.parse(schemaSource))}\n`,
);
}
} finally {
await source.cleanup();