feat: plan skill 引导 AI 先通过 rune status 获取文档列表
This commit is contained in:
@@ -75,6 +75,24 @@ describe("injectOpenCode", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("plan skill 包含运行 status 的引导", async () => {
|
||||
await injectOpenCode(TMP_DIR);
|
||||
const content = await readFile(
|
||||
join(TMP_DIR, ".opencode", "skills", "rune-plan", "SKILL.md"),
|
||||
"utf-8",
|
||||
);
|
||||
expect(content).toContain("rune status");
|
||||
});
|
||||
|
||||
it("discuss skill 不包含 status 引导", async () => {
|
||||
await injectOpenCode(TMP_DIR);
|
||||
const content = await readFile(
|
||||
join(TMP_DIR, ".opencode", "skills", "rune-discuss", "SKILL.md"),
|
||||
"utf-8",
|
||||
);
|
||||
expect(content).not.toContain("rune status");
|
||||
});
|
||||
|
||||
it("重复注入时不覆盖已存在的文件", async () => {
|
||||
await injectOpenCode(TMP_DIR);
|
||||
const originalContent = await readFile(
|
||||
|
||||
Reference in New Issue
Block a user