Skip to content

armgit / rea

Public Imported from GitHub
0

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

fix(package): accept expected doctor diagnostics

morluto0f2d01300a4b
diff --git a/scripts/verify-package.mjs b/scripts/verify-package.mjs
index 8c008505a..b9aab355e 100644
--- a/scripts/verify-package.mjs
+++ b/scripts/verify-package.mjs
@@ -692,10 +692,14 @@ try {
(await readFile(siblingSkillPath, "utf8")) !== "unrelated skill\n"
)
throw new Error("packaged stale-skill upgrade was not isolated");
- const alignedDoctor = json(
- await run(cli, ["doctor", "--json"], environment),
+ const alignedDoctorExecution = await runWithStatus(
+ cli,
+ ["doctor", "--json"],
+ environment,
);
+ const alignedDoctor = json(alignedDoctorExecution.stdout);
if (
+ alignedDoctorExecution.status !== (alignedDoctor.healthy ? 0 : 1) ||
alignedDoctor.identity?.skill?.state !== "aligned" ||
alignedDoctor.identity?.skill?.installed_tool_count !==
TOOL_CONTRACTS.length ||