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
|
epic: 2026-05-14-library-evaluation-policy
|
||||||
title: Claude PreToolUse / PostToolUse hooks for library-policy nudge
|
title: Claude PreToolUse / PostToolUse hooks for library-policy nudge
|
||||||
type: technical-story
|
type: technical-story
|
||||||
status: todo
|
status: done
|
||||||
feature: tooling
|
feature: tooling
|
||||||
depends-on: []
|
depends-on: []
|
||||||
blocks: []
|
blocks: []
|
||||||
@@ -39,4 +39,4 @@ Agents (and developers) running `pnpm add` by reflex bypass the policy before th
|
|||||||
|
|
||||||
## Tasks
|
## 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": {
|
"epics": {
|
||||||
"2026-05-13-binder-wrap-helper": {
|
"2026-05-13-binder-wrap-helper": {
|
||||||
"status": "done",
|
"status": "done",
|
||||||
@@ -65,10 +65,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"03-claude-hooks": {
|
"03-claude-hooks": {
|
||||||
"status": "todo",
|
"status": "done",
|
||||||
"title": "Claude PreToolUse / PostToolUse hooks for library-policy nudge",
|
"title": "Claude PreToolUse / PostToolUse hooks for library-policy nudge",
|
||||||
"ac_total": 1,
|
"ac_total": 1,
|
||||||
"ac_completed": 0,
|
"ac_completed": 1,
|
||||||
"depends_on": [],
|
"depends_on": [],
|
||||||
"blocks": []
|
"blocks": []
|
||||||
},
|
},
|
||||||
@@ -155,11 +155,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ready": [
|
"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",
|
"epic": "2026-05-14-library-evaluation-policy",
|
||||||
"story": "04-evaluate-library-skill",
|
"story": "04-evaluate-library-skill",
|
||||||
|
|||||||
Reference in New Issue
Block a user