Updates ExportState to track Dolt commits (not git commits) for accurate change detection. This prevents polecats sharing a Dolt DB from exporting each others uncommitted work. Changes: - ExportState now tracks Dolt commit hash via VersionedStorage.GetCurrentCommit() - Added WorktreeHash and Actor fields for debugging and future filtering - hookPreCommitDolt uses Diff() to detect changes since last export - Added hookPreCommitDoltFallback for graceful degradation - Added exportIncrementalDolt and exportFullDolt helper functions - Removed unused exportToJSONLFromStore function Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 KiB
29 KiB