ruvector/crates/ruvector-cli/.claude/settings.json
Claude 13bfc09351 feat(hooks): Complete feature parity and add PostgreSQL support
- 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
2025-12-27 02:11:42 +00:00

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"
}
]
}
]
}
}