feat: init 创建空配置文件,内置策略走代码默认值

This commit is contained in:
2026-06-08 18:40:29 +08:00
parent 4ea60f7679
commit bbf77ae2b1
2 changed files with 3 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ afterEach(async () => {
});
describe("runInit", () => {
it("创建 .rune 目录和默认 config.yaml", async () => {
it("创建 .rune 目录和 config.yaml", async () => {
await runInit(TMP_DIR, ["opencode"]);
expect(existsSync(join(TMP_DIR, ".rune"))).toBe(true);
@@ -25,10 +25,7 @@ describe("runInit", () => {
join(TMP_DIR, ".rune", "config.yaml"),
"utf-8",
);
expect(content).toContain("discuss");
expect(content).toContain("plan");
expect(content).toContain("build");
expect(content).toContain("archive");
expect(content.trim()).toBe("stages: {}");
});
it("创建 .rune/changes 和 .rune/archive 目录", async () => {