Commit 1b2f114
fix(hooks): replace lib symlinks with real file copies (#82)
## Summary
- Replace `lib` symlinks in all 4 editor plugin `hooks/prevent/`
directories with real file copies
- The relative symlink (`../../../shared/prevent/lib`) breaks when the
plugin cache is rebuilt on `/clear` or `/reload-plugins` — the flat
cache directory structure can't resolve it, causing
`ModuleNotFoundError: No module named 'lib'`
- `plugins/shared/prevent/lib/` remains as the canonical source;
`bump-version.sh` now syncs it to all plugins at release time
- Updated docs (CONTRIBUTING.md, architecture guide, cursor README) and
codex install script to reflect the new approach
Fixes: Zendesk #27286
## Test plan
- [ ] Install plugin fresh via marketplace — hooks should work
- [ ] Run `/clear` — hooks should still work (no `ModuleNotFoundError`)
- [ ] Run `/reload-plugins` — hooks should still work
- [ ] Verify `bump-version.sh --dry-run` shows the new sync step
- [ ] Verify codex `install.sh` still works with updated `SHARED_LIB`
path
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 39c4dd6 commit 1b2f114
29 files changed
Lines changed: 3406 additions & 11 deletions
File tree
- docs
- plugins
- claude-code/hooks/prevent
- lib
- codex
- hooks/prevent
- lib
- scripts
- copilot/hooks/prevent
- lib
- cursor
- hooks/prevent
- lib
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
This file was deleted.
Whitespace-only changes.
0 commit comments