Skip to content

v3.1.0 — Centralized Data Directory

Choose a tag to compare

@brian-lai brian-lai released this 18 Feb 04:41
· 61 commits to main since this release
0604077

Centralized Data Directory

Index data now lives at ~/.codetect/projects/<name>-<hash>/ instead of per-project .codetect/ directories. Projects no longer need .gitignore modifications.

What's new

  • Centralized storage — all index data (SQLite databases, merkle trees, eval artifacts) stored under ~/.codetect/projects/
  • Auto-migration — existing .codetect/ directories are automatically migrated on first use
  • Stable keys — git remote URL hash ensures the same data directory survives repo moves/renames
  • codetect version — new command to check installed version
  • Quieter updates — codetect update no longer shows beta tag warnings

Upgrade

codetect update
codetect index   # re-indexes; auto-migrates existing .codetect/ data

No manual migration needed — codetect index handles it automatically.

Details

  • New internal/datadir package with 31 tests (unit + integration)
  • Updated all CLI tools, eval system, shell scripts, and docs
  • Key derivation: SHA-256 of git remote URL (first 8 hex chars), with absolute path fallback for non-git dirs