feat(omo-codex): block budgeted create_goal calls

This commit is contained in:
YeonGyu-Kim
2026-05-28 14:19:14 +09:00
parent 68848233c4
commit 1d3847a6d3
7 changed files with 219 additions and 1 deletions
@@ -54,6 +54,14 @@ describe("hooks/hooks.json", () => {
expect(command).toContain("dist/cli.js");
expect(command).toContain("hook user-prompt-submit");
});
it("#given ultragoal component is enabled #when hooks are inspected #then create_goal PreToolUse guard is registered", async () => {
const text = await readText("hooks/hooks.json");
expect(text).toContain('"PreToolUse"');
expect(text).toContain('"matcher": "^create_goal$"');
expect(text).toContain("hook pre-tool-use");
});
});
describe("src/cli.ts", () => {