feat: global personal store (lore sync --global) - #41
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a global personal store to
lore sync: the user's cross-tool, cross-repo aggregate of ALL sessions, synced to a private git repo they own (managed at~/.lore/sync), for personal multi-machine backup and search. Complements the per-repo store.lore sync --global setup: configure the store's remote URL + passphrase, init~/.lore/sync, create or join the store.lore sync --global: push all sessions to the global store and pull others' from it.lore sync --global status.global_synced_atcolumn (reset alongsidesynced_aton any local change), so global and per-repo sync states never interfere.SyncStoreparameter; per-repo behavior is unchanged (its SQL and tests are byte-identical for the per-repo track).Not wired into the pre-push hook or daemon (deferred to 29.6). New config:
sync_global_remote.Tests: global create + round-trip between machines; global pushes all sessions regardless of directory; per-repo/global track independence (each does not mark the other); both-track reset on session/child change. Full suite green, clippy
-D warningsclean.