atagen

roundabout

public
Star0
Watch0
caac091f257ad8d53409925aac0d377b716994f8
1
ssh://brewery@pls.lobotomise.me:33/atagen/roundabout.git
nix/hooks.nixNix21 lines525 B
1
{ lib, roundabout }:
2
3
let
4
  hook = event: {
5
    type = "command";
6
    command = "${lib.getExe roundabout} hook ${event}";
7
  };
8
in
9
{
10
  PreToolUse = [
11
    {
12
      matcher = "Bash";
13
      hooks = [ (hook "pre-tool-use") ];
14
    }
15
  ];
16
  PostToolUse = [ { hooks = [ (hook "post-tool-use") ]; } ];
17
  UserPromptSubmit = [ { hooks = [ (hook "prompt-submit") ]; } ];
18
  Stop = [ { hooks = [ (hook "stop") ]; } ];
19
  SubagentStop = [ { hooks = [ (hook "subagent-stop") ]; } ];
20
  SessionEnd = [ { hooks = [ (hook "session-end") ]; } ];
21
}