fix(prompt): render skills without pi shape casts
This commit is contained in:
1 parent
9f35dc7446
commit
dca148a125
2 files changed
+46
-19
No files matched your search
@@ -79,4 +79,20 @@ describe("buildSystemPrompt leadership classification", () => {
|
||||
expect(prompt).toContain("New hires for your team should report to you by default");
|
||||
expect(prompt).not.toContain("Operating Instructions (Individual Contributor)");
|
||||
});
|
||||
|
||||
it("renders projected skills without pi skill shape casts", () => {
|
||||
const prompt = buildSystemPrompt(buildCtx({
|
||||
skills: [{
|
||||
name: "ui<review>&qa",
|
||||
description: "Use for A&B \"checks\" and 'snapshots'.",
|
||||
filePath: "/tmp/skills/ui<review>&qa/SKILL.md",
|
||||
baseDir: "/tmp/skills/ui<review>&qa",
|
||||
}],
|
||||
}));
|
||||
|
||||
expect(prompt).toContain("<available_skills>");
|
||||
expect(prompt).toContain("<name>ui<review>&qa</name>");
|
||||
expect(prompt).toContain("<description>Use for A&B "checks" and 'snapshots'.</description>");
|
||||
expect(prompt).toContain("<location>/tmp/skills/ui<review>&qa/SKILL.md</location>");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user