mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
refactor: move canvas to plugin surfaces
This commit is contained in:
@@ -14,16 +14,13 @@ const source = await generateExperimentalCodexAppServerProtocolSource();
|
||||
try {
|
||||
await fs.rm(targetRoot, { recursive: true, force: true });
|
||||
await fs.mkdir(targetRoot, { recursive: true });
|
||||
await fs.cp(source.typescriptRoot, path.join(targetRoot, "typescript"), {
|
||||
recursive: true,
|
||||
});
|
||||
|
||||
for (const schema of selectedCodexAppServerJsonSchemas) {
|
||||
await fs.mkdir(path.dirname(path.join(targetRoot, "json", schema)), { recursive: true });
|
||||
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`,
|
||||
`${JSON.stringify(JSON.parse(schemaSource), null, 2)}\n`,
|
||||
);
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user