mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Add a Claude Code SessionStart hook (matcher: startup) that runs `corepack yarn install` when node_modules is missing, so worktrees Claude creates internally are immediately usable. Also extend create-task-worktree.sh to install deps after the worktree is created, covering Codex/Cursor/manual flows that share that script.
17 lines
287 B
JSON
17 lines
287 B
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "startup",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/session-start.sh",
|
|
"timeout": 600
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|