fix(skill): disclose retired skill cleanup
This commit is contained in:
@@ -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' ||
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user