refactor(install): prefer native plugin install across targets (#609)
Some checks failed
CI / pr-title (push) Has been cancelled
CI / test (push) Has been cancelled
Release PR / release-pr (push) Has been cancelled
Release PR / publish-cli (push) Has been cancelled

Co-authored-by: John Cavanaugh <cavanaug@users.noreply.github.com>
This commit is contained in:
Trevin Chow
2026-04-20 18:47:07 -07:00
committed by GitHub
parent 9497a00d90
commit c2d60b47be
104 changed files with 7073 additions and 7068 deletions

View File

@@ -135,6 +135,38 @@ describe("cleanupStaleSkillDirs", () => {
expect(await exists(path.join(root, "ce-document-review"))).toBe(false)
})
test("removes raw colon workflow skill directories", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "cleanup-colon-workflows-"))
await createDir(
path.join(root, "ce:plan"),
skillContent(
"ce:plan",
await pluginDescription("plugins/compound-engineering/skills/ce-plan/SKILL.md"),
),
)
await createDir(
path.join(root, "workflows:review"),
skillContent(
"workflows:review",
await pluginDescription("plugins/compound-engineering/skills/ce-code-review/SKILL.md"),
),
)
await createDir(
path.join(root, "ce:plan-beta"),
skillContent(
"ce:plan-beta",
"[BETA] Transform feature descriptions or requirements into structured implementation plans grounded in repo patterns and research. Use when the user says 'plan this', 'create a plan', 'write a tech plan', 'plan the implementation', 'how should we build', 'what's the approach for', 'break this down', or when a brainstorm/requirements document is ready for technical planning. Best when requirements are at least roughly defined; for exploratory or ambiguous requests, prefer ce:brainstorm first.",
),
)
const removed = await cleanupStaleSkillDirs(root)
expect(removed).toBe(3)
expect(await exists(path.join(root, "ce:plan"))).toBe(false)
expect(await exists(path.join(root, "workflows:review"))).toBe(false)
expect(await exists(path.join(root, "ce:plan-beta"))).toBe(false)
})
test("returns 0 when directory does not exist", async () => {
const removed = await cleanupStaleSkillDirs("/tmp/nonexistent-cleanup-dir-12345")
expect(removed).toBe(0)