fix(package): accept expected doctor diagnostics
This commit is contained in:
@@ -692,10 +692,14 @@ try {
|
|||||||
(await readFile(siblingSkillPath, "utf8")) !== "unrelated skill\n"
|
(await readFile(siblingSkillPath, "utf8")) !== "unrelated skill\n"
|
||||||
)
|
)
|
||||||
throw new Error("packaged stale-skill upgrade was not isolated");
|
throw new Error("packaged stale-skill upgrade was not isolated");
|
||||||
const alignedDoctor = json(
|
const alignedDoctorExecution = await runWithStatus(
|
||||||
await run(cli, ["doctor", "--json"], environment),
|
cli,
|
||||||
|
["doctor", "--json"],
|
||||||
|
environment,
|
||||||
);
|
);
|
||||||
|
const alignedDoctor = json(alignedDoctorExecution.stdout);
|
||||||
if (
|
if (
|
||||||
|
alignedDoctorExecution.status !== (alignedDoctor.healthy ? 0 : 1) ||
|
||||||
alignedDoctor.identity?.skill?.state !== "aligned" ||
|
alignedDoctor.identity?.skill?.state !== "aligned" ||
|
||||||
alignedDoctor.identity?.skill?.installed_tool_count !==
|
alignedDoctor.identity?.skill?.installed_tool_count !==
|
||||||
TOOL_CONTRACTS.length ||
|
TOOL_CONTRACTS.length ||
|
||||||
|
|||||||
Reference in New Issue
Block a user