Files

27 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

# Implementation: Hook Installation in Onboarding and Upgrade
## Changes
### 1. prompts/onboarding.md — Step 2c: Pre-Commit Hook Installation
- Added Step 2c between VRAM config and Output sections
- Checks for `.git/hooks/` directory
- Creates symlink from `.git/hooks/pre-commit` to `~/.automaton/scripts/git-hooks/pre-commit`
- Warns if existing hook is not our symlink
- Verifies hook works with `status.py --can-edit`
### 2. scripts/upgrade.sh — Hook installation during upgrade
- Added after the "Upgrade Complete" message
- Detects `.git/hooks/` directory
- If hook doesn't exist: creates symlink
- If hook is already our symlink: reports "already linked"
- If hook exists but is not our symlink: warns user, prints manual install command
- If no `.git/hooks/`: prints note with manual install command
### 3. scripts/install.sh — Post-install next steps
- Replaced single "Next step" with numbered list
- Added hook installation as step 2
- Added explanation of what the hook does
## Tests
- All 200 tests pass
- Shell syntax checks pass for install.sh and upgrade.sh