feat(omo-codex): block budgeted create_goal calls
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user