mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-27 08:45:07 +00:00
- Add 13 missing npm CLI commands for full feature parity (26 commands each)
- init, install, pre-command, post-command, session-end, pre-compact
- record-error, suggest-fix, suggest-next
- swarm-coordinate, swarm-optimize, swarm-recommend, swarm-heal
- Add PostgreSQL support to Rust CLI (optional feature flag)
- New hooks_postgres.rs with StorageBackend abstraction
- Connection pooling with deadpool-postgres
- Config from RUVECTOR_POSTGRES_URL or DATABASE_URL
- Add Claude hooks config generation
- `hooks install` generates .claude/settings.json with PreToolUse,
PostToolUse, SessionStart, Stop, and PreCompact hooks
- Add comprehensive unit tests (26 tests, all passing)
- Tests for all hooks commands
- Integration tests for init/install
- Add CI/CD workflow (.github/workflows/hooks-ci.yml)
- Rust CLI tests
- npm CLI tests
- PostgreSQL schema validation
- Feature parity check
45 lines
No EOL
945 B
JSON
45 lines
No EOL
945 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"command": "ruvector hooks post-edit \"$TOOL_INPUT_FILE_PATH\" --success=$TOOL_STATUS",
|
|
"type": "command"
|
|
}
|
|
],
|
|
"matcher": "Edit|Write|MultiEdit"
|
|
},
|
|
{
|
|
"hooks": [
|
|
{
|
|
"command": "ruvector hooks post-command \"$TOOL_INPUT_COMMAND\" --success=$TOOL_STATUS",
|
|
"type": "command"
|
|
}
|
|
],
|
|
"matcher": "Bash"
|
|
}
|
|
],
|
|
"PreToolUse": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"command": "ruvector hooks pre-edit \"$TOOL_INPUT_FILE_PATH\"",
|
|
"type": "command"
|
|
}
|
|
],
|
|
"matcher": "Edit|Write|MultiEdit"
|
|
}
|
|
],
|
|
"SessionStart": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"command": "ruvector hooks session-start",
|
|
"type": "command"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |