fix: sanitize colons in skill/agent names for Windows path compatibility (#398)

This commit is contained in:
Trevin Chow
2026-03-26 16:15:48 -07:00
committed by GitHub
parent 0877b693ce
commit b25480af9e
31 changed files with 356 additions and 61 deletions

View File

@@ -144,7 +144,7 @@ Use /deepen-plan for deeper research.
await writeCodexBundle(tempRoot, bundle)
const installedSkill = await fs.readFile(
path.join(tempRoot, ".codex", "skills", "ce:brainstorm", "SKILL.md"),
path.join(tempRoot, ".codex", "skills", "ce-brainstorm", "SKILL.md"),
"utf8",
)
expect(installedSkill).toContain("/prompts:ce-plan")
@@ -152,7 +152,7 @@ Use /deepen-plan for deeper research.
expect(installedSkill).toContain("/prompts:deepen-plan")
const notes = await fs.readFile(
path.join(tempRoot, ".codex", "skills", "ce:brainstorm", "notes.md"),
path.join(tempRoot, ".codex", "skills", "ce-brainstorm", "notes.md"),
"utf8",
)
expect(notes).toContain("/ce:plan")
@@ -194,7 +194,7 @@ Also run bare agents:
await writeCodexBundle(tempRoot, bundle)
const installedSkill = await fs.readFile(
path.join(tempRoot, ".codex", "skills", "ce:plan", "SKILL.md"),
path.join(tempRoot, ".codex", "skills", "ce-plan", "SKILL.md"),
"utf8",
)