feat(workspace): point planning guardrails at omo
This commit is contained in:
@@ -244,8 +244,8 @@ describe("createWriteExistingFileGuardHook", () => {
|
||||
).rejects.toThrow(BLOCK_MESSAGE)
|
||||
})
|
||||
|
||||
test("#given existing file under .sisyphus #when write executes #then always allows", async () => {
|
||||
const existingFile = createFile(".sisyphus/plans/plan.txt")
|
||||
test("#given existing file under .omo #when write executes #then always allows", async () => {
|
||||
const existingFile = createFile(".omo/plans/plan.txt")
|
||||
|
||||
await expect(
|
||||
invoke({
|
||||
|
||||
@@ -149,9 +149,9 @@ export async function handleWriteExistingFileGuardToolExecuteBefore(params: {
|
||||
return
|
||||
}
|
||||
|
||||
const isSisyphusPath = canonicalPath.includes("/.sisyphus/")
|
||||
if (isSisyphusPath) {
|
||||
log("[write-existing-file-guard] Allowing .sisyphus/** overwrite", {
|
||||
const isOmoPath = canonicalPath.includes("/.omo/")
|
||||
if (isOmoPath) {
|
||||
log("[write-existing-file-guard] Allowing .omo/** overwrite", {
|
||||
sessionID: input.sessionID,
|
||||
filePath,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user