Skip to content

feat: add traul reset command and auto-migration (v0.2.0)#18

Merged
dandaka merged 9 commits intomainfrom
feat/reset-and-auto-migration
Mar 19, 2026
Merged

feat: add traul reset command and auto-migration (v0.2.0)#18
dandaka merged 9 commits intomainfrom
feat/reset-and-auto-migration

Conversation

@dandaka
Copy link
Copy Markdown
Owner

@dandaka dandaka commented Mar 18, 2026

Summary

  • Add traul reset <layer> command for manual data layer resets (sync, chunks, embed, all) with optional --source filter
  • Add auto-migration on startup: detects chunker version, embed model, or embed dims changes and cascading-resets stale data automatically
  • Add traul_meta key-value table for version tracking
  • Deprecate reset-embed in favor of traul reset embed
  • Bump version to 0.2.0

Test plan

  • 175 tests pass (7 new for reset command, 5 for migrations, 4 for DB methods, 1 for schema, 1 for chunker version)
  • Manual: traul reset sync --source markdown clears markdown cursors only
  • Manual: traul reset all clears everything, traul sync && traul embed rebuilds
  • Manual: change CHUNKER_VERSION to "2", run any traul command, verify chunks are auto-cleared

🤖 Generated with Claude Code

dandaka and others added 9 commits March 18, 2026 21:58
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds `traul reset <layer>` (sync, chunks, embed, all) with optional
--source filter for sync layer. Deprecates the old `reset-embed` command.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dandaka dandaka merged commit a3140ec into main Mar 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant