Commit graph

6 commits

Author SHA1 Message Date
rUv
b59356ea4d fix(ci): use --memory-type flag for hooks remember command
The Rust CLI uses --memory-type, not --type.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 17:58:38 +00:00
rUv
414ebbfc94 fix(ci): install CLI deps in /tmp to escape workspace
- Copy CLI package to /tmp before npm install
- This prevents npm from finding the parent workspace lockfile
- Copy back node_modules and dist after build

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 17:50:24 +00:00
rUv
39e22cbc1b fix(ci): install CLI deps independently from workspace
- Remove workspace package-lock.json for CLI tests
- Install only CLI's own dependencies to avoid platform-specific packages
- Update paths to work from npm/packages/cli directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 17:47:58 +00:00
rUv
30b8c7fd7b fix(ci): use npm workspaces correctly for hooks-ci
- Run npm install from workspace root with --omit=optional
- Build using workspace flag -w @ruvector/cli
- Update test paths to packages/cli/dist/cli.js

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 17:35:36 +00:00
rUv
9fb4338aab fix(ci): correct rust-toolchain action and npm install flags
- Change dtolnay/rust-action to dtolnay/rust-toolchain
- Add --ignore-scripts --no-optional to npm install to avoid platform issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 17:31:47 +00:00
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