mirror of
https://github.com/NickCrew/Claude-Cortex.git
synced 2026-09-14 20:17:11 +08:00
99d6e8c04b
Build Configuration: - Update pyproject.toml with new dependencies and entry points - Update pytest.ini with improved test configuration - Update justfile with new development tasks - Update Makefile with build improvements Scripts: - Add generate-manpages.py for automatic manpage generation - Update install.sh with new installation steps Git Hooks: - Add .githooks/pre-commit for automatic manpage regeneration Hooks Examples: - Add memory_auto_capture.py for automatic memory capture - Enhance skill_auto_suggester.py with improved recommendations Project Files: - Update README.md with new features documentation - Update CONTRIBUTING.md with updated guidelines - Update .gitignore with new exclusions - Add modes/Amphetamine.md behavioral mode - Update community skills registry
25 lines
610 B
Bash
Executable File
25 lines
610 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Pre-commit hook to auto-generate manpages
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(dirname "${SCRIPT_DIR}")"
|
|
|
|
# Check if CLI files have been modified
|
|
if git diff --cached --name-only | grep -q "claude_ctx_py/cli.py"; then
|
|
echo "🔄 CLI changed, regenerating manpages..."
|
|
|
|
python3 "${PROJECT_ROOT}/scripts/generate-manpages.py" || {
|
|
echo "❌ Failed to generate manpages"
|
|
exit 1
|
|
}
|
|
|
|
# Stage the updated manpages
|
|
git add docs/reference/*.1
|
|
|
|
echo "✓ Manpages regenerated and staged"
|
|
fi
|
|
|
|
exit 0
|