mirror of
https://github.com/morluto/rea
synced 2026-10-28 23:11:11 -04:00
fix(package): accept expected doctor diagnostics
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user