Commit 5b69f3b
authored
Centralize agent hook runner packaging (#1557)
## Summary
- moved the shared hook runner wrapper to
`packages/agent/policy/hook-runner.nix`
- updated Claude Code and Codex wrappers to import hook runner packaging
from the shared policy location
- updated hook docs to point at the new shared location
## Verification
- `nix fmt packages/agent/policy/hook-runner.nix
packages/agent/claude-code/default.nix packages/agent/codex/default.nix`
- `nix-instantiate --parse packages/agent/policy/hook-runner.nix`
- `nix-instantiate --parse packages/agent/claude-code/default.nix`
- `nix-instantiate --parse packages/agent/codex/default.nix`
- `nix-instantiate --parse packages/agent/policy/hooks.nix`
- `nix build .#codex --no-link`
- `nix build .#claude-code --no-link`
Fixes #1556
(sent by an AI agent via Codex)
<!-- Macroscope's pull request summary starts here -->
<!-- Macroscope will only edit the content between these invisible
markers, and the markers themselves will not be visible in the GitHub
rendered markdown. -->
<!-- If you delete either of the start / end markers from your PR's
description, Macroscope will append its summary at the bottom of the
description. -->
> [!NOTE]
> ### Move hook runner to shared location at
`packages/agent/policy/hook-runner.nix`
> Relocates the hook runner Nix package from
`packages/agent/claude-code/hooks.nix` to
`packages/agent/policy/hook-runner.nix` so it can be shared between the
Claude Code and Codex agents. Both
`packages/agent/claude-code/default.nix` and
`packages/agent/codex/default.nix` are updated to import from the new
path, and documentation is updated to match.
>
> <!-- Macroscope's review summary starts here -->
>
> <sup><a href="https://app.macroscope.com">Macroscope</a> summarized
182404a.</sup>
> <!-- Macroscope's review summary ends here -->
>
<!-- macroscope-ui-refresh -->
<!-- Macroscope's pull request summary ends here -->1 parent 13f8e3c commit 5b69f3b
5 files changed
Lines changed: 12 additions & 11 deletions
File tree
- doc
- claude-code
- claude-hooks
- packages/agent
- claude-code
- codex
- policy
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments