fix(skill): disclose retired skill cleanup

This commit is contained in:
morluto
2026-07-17 00:49:48 +00:00
parent 2d22731ebb
commit 4c69e6120a
3 changed files with 9 additions and 2 deletions
+4 -1
View File
@@ -786,7 +786,10 @@ try {
plannedExecution.status !== 1 ||
planned.appliedActions.length !== 0 ||
!planned.plannedActions.some(({ kind }) => kind === "configure_client") ||
!planned.plannedActions.some(({ kind }) => kind === "install_skill") ||
!planned.plannedActions.some(
({ kind, detail }) =>
kind === "install_skill" && detail.includes("back up its SKILL.md"),
) ||
plannedClaudeConfig !== '{"existing":true}\n' ||
plannedCodexConfig !== 'model = "gpt-5"\n' ||
plannedCursorConfig !== '{"existing":true}\n' ||
+1 -1
View File
@@ -45,7 +45,7 @@ export const setupPlan = (
kind: "install_skill" as const,
target: `~/.agents/skills/${PRODUCT_IDENTITY.skillName}/SKILL.md`,
detail:
"Install or update the bundled REA reverse-engineering skill.",
"Install or update the bundled REA reverse-engineering skill. If the retired rea-analysis skill exists, back up its SKILL.md beside the retired path, then remove that legacy entry.",
external: false,
},
]
+4
View File
@@ -152,6 +152,10 @@ describe("setup workflow", () => {
"configure_client",
"install_skill",
]);
expect(
result.plannedActions.find(({ kind }) => kind === "install_skill")
?.detail,
).toContain("back up its SKILL.md");
expect(host.hopperInstalls).toBe(0);
expect(host.configurations).toBe(0);
expect(result.remediation).toBe(