pub async fn install_hooks(
lockfile: &LockFile,
project_root: &Path,
cache: &Cache,
) -> Result<()>
Expand description
Configure hooks from source files into .claude/settings.local.json
This function:
- Reads hook JSON files directly from source locations (no file copying)
- Converts them to Claude Code format
- Updates .claude/settings.local.json with proper event-based structure
- Can be called from both
add
andinstall
commands