4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 1 | { lib, roundabout }: |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 2 | |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 3 | let |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 4 | hook = event: { |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 5 | type = "command"; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 6 | command = "${lib.getExe roundabout} hook codex-${event}"; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 7 | }; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 8 | in |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 9 | { |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 10 | PreToolUse = [ |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 11 | { |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 12 | matcher = "Bash"; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 13 | hooks = [ (hook "pre-tool-use") ]; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 14 | } |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 15 | ]; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 16 | PostToolUse = [ { hooks = [ (hook "post-tool-use") ]; } ]; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 17 | UserPromptSubmit = [ { hooks = [ (hook "prompt-submit") ]; } ]; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 18 | Stop = [ { hooks = [ (hook "stop") ]; } ]; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 19 | SubagentStop = [ { hooks = [ (hook "subagent-stop") ]; } ]; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 20 | SessionEnd = [ { hooks = [ (hook "session-end") ]; } ]; |
4e5ca2e20401 | atagen | 2026-09-28 11:42 UTC | 21 | } |