feat(workspace): point planning guardrails at omo

This commit is contained in:
YeonGyu-Kim
2026-05-16 17:41:35 +09:00
parent a86221b1a9
commit 36e373cdbb
48 changed files with 244 additions and 244 deletions
@@ -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,
})