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.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"updated_at": "2026-05-14T05:29:32.781Z",
|
||||
"updated_at": "2026-05-14T05:36:46.176Z",
|
||||
"epics": {
|
||||
"2026-05-13-binder-wrap-helper": {
|
||||
"status": "done",
|
||||
@@ -65,10 +65,10 @@
|
||||
]
|
||||
},
|
||||
"03-claude-hooks": {
|
||||
"status": "todo",
|
||||
"status": "done",
|
||||
"title": "Claude PreToolUse / PostToolUse hooks for library-policy nudge",
|
||||
"ac_total": 1,
|
||||
"ac_completed": 0,
|
||||
"ac_completed": 1,
|
||||
"depends_on": [],
|
||||
"blocks": []
|
||||
},
|
||||
@@ -155,11 +155,6 @@
|
||||
}
|
||||
},
|
||||
"ready": [
|
||||
{
|
||||
"epic": "2026-05-14-library-evaluation-policy",
|
||||
"story": "03-claude-hooks",
|
||||
"title": "Claude PreToolUse / PostToolUse hooks for library-policy nudge"
|
||||
},
|
||||
{
|
||||
"epic": "2026-05-14-library-evaluation-policy",
|
||||
"story": "04-evaluate-library-skill",
|
||||
|
||||
Reference in New Issue
Block a user