Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

fix(verification): reuse shared output schemas in Electron checks

N0zoM1z0c73cf0ab7695
diff --git a/scripts/verify/electron/tool-contracts.mjs b/scripts/verify/electron/tool-contracts.mjs
index c5afa9f1c..0de31cb7b 100644
--- a/scripts/verify/electron/tool-contracts.mjs
+++ b/scripts/verify/electron/tool-contracts.mjs
@@ -88,7 +88,10 @@ window.loadFile("renderer.html");require("node:fs").writeFileSync(${JSON.stringi
ajv.compile(tool.inputSchema);
return [
tool.name,
- tool.outputSchema ? ajv.compile(tool.outputSchema) : undefined,
+ tool.outputSchema
+ ? (tool.outputSchema.$id && ajv.getSchema(tool.outputSchema.$id)) ||
+ ajv.compile(tool.outputSchema)
+ : undefined,
];
}),
);