Просмотр исходного кода

test: fix plan agent test path from .opencode/plan/* to .opencode/plans/*

Dax Raad 1 месяц назад
Родитель
Сommit
501347cda5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/opencode/test/agent/agent.test.ts

+ 2 - 2
packages/opencode/test/agent/agent.test.ts

@@ -43,7 +43,7 @@ test("build agent has correct default properties", async () => {
   })
   })
 })
 })
 
 
-test("plan agent denies edits except .opencode/plan/*", async () => {
+test("plan agent denies edits except .opencode/plans/*", async () => {
   await using tmp = await tmpdir()
   await using tmp = await tmpdir()
   await Instance.provide({
   await Instance.provide({
     directory: tmp.path,
     directory: tmp.path,
@@ -53,7 +53,7 @@ test("plan agent denies edits except .opencode/plan/*", async () => {
       // Wildcard is denied
       // Wildcard is denied
       expect(evalPerm(plan, "edit")).toBe("deny")
       expect(evalPerm(plan, "edit")).toBe("deny")
       // But specific path is allowed
       // But specific path is allowed
-      expect(PermissionNext.evaluate("edit", ".opencode/plan/foo.md", plan!.permission).action).toBe("allow")
+      expect(PermissionNext.evaluate("edit", ".opencode/plans/foo.md", plan!.permission).action).toBe("allow")
     },
     },
   })
   })
 })
 })