fix: CLI缺少参数友好提示、config.yaml注释模板、skill目录结构规范

This commit is contained in:
2026-06-08 23:06:31 +08:00
parent c924e17253
commit 03b0c60fb6
5 changed files with 69 additions and 14 deletions

View File

@@ -26,7 +26,8 @@ describe("runInit", () => {
join(TMP_DIR, ".rune", "config.yaml"),
"utf-8",
);
expect(content.trim()).toBe("stages: {}");
expect(content).toContain("# Rune 配置文件");
expect(content).toContain("stages:");
});
it("创建 .rune/changes 和 .rune/archive 目录", async () => {
@@ -40,7 +41,7 @@ describe("runInit", () => {
await runInit(TMP_DIR, ["opencode"]);
expect(existsSync(join(TMP_DIR, ".opencode", "commands", "rune-discuss.md"))).toBe(true);
expect(existsSync(join(TMP_DIR, ".opencode", "skills", "rune-discuss.md"))).toBe(true);
expect(existsSync(join(TMP_DIR, ".opencode", "skills", "rune-discuss", "SKILL.md"))).toBe(true);
});
it("重复 init 不覆盖 config.yaml", async () => {