chore(work): finish 03-claude-hooks
This commit is contained in:
@@ -3,7 +3,7 @@ id: 03-claude-hooks
|
||||
epic: 2026-05-14-library-evaluation-policy
|
||||
title: Claude PreToolUse / PostToolUse hooks for library-policy nudge
|
||||
type: technical-story
|
||||
status: todo
|
||||
status: done
|
||||
feature: tooling
|
||||
depends-on: []
|
||||
blocks: []
|
||||
@@ -39,4 +39,4 @@ Agents (and developers) running `pnpm add` by reflex bypass the policy before th
|
||||
|
||||
## Tasks
|
||||
|
||||
- [ ] Investigate how `generator-first-nudge.sh` is registered (read `.claude/settings.json` and the existing hook script) to confirm the env-var names, payload shape, and registration keys; then write `.claude/hooks/library-policy-nudge.sh` + register it in the settings file + write bash smoke tests covering `pnpm add <pkg>` (reminder), `pnpm add -D <pkg>` (no reminder), Edit on non-package.json (no reminder), Edit on `package.json` (reminder); all gates pass on this single commit.
|
||||
- [x] Investigate how `generator-first-nudge.sh` is registered (read `.claude/settings.json` and the existing hook script) to confirm the env-var names, payload shape, and registration keys; then write `.claude/hooks/library-policy-nudge.sh` + register it in the settings file + write bash smoke tests covering `pnpm add <pkg>` (reminder), `pnpm add -D <pkg>` (no reminder), Edit on non-package.json (no reminder), Edit on `package.json` (reminder); all gates pass on this single commit.
|
||||
|
||||
Reference in New Issue
Block a user