Unify workspace state into registry, add userconfig package - #10
Merged
Conversation
Consolidate three storage locations into two following XDG conventions: - ~/.local/state/fr8/repos.json — unified registry with embedded workspaces - ~/.config/fr8/config.json — user preferences (openers) Delete internal/state/ package. Workspace CRUD now lives on registry.Repo. Extract opener config into internal/userconfig/ package. Strip internal/opener/ down to just Run().
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.
What
Consolidates three storage locations into two following XDG conventions, deletes
internal/state/, and extracts opener config into a newinternal/userconfig/package.Why
The previous layout polluted
.git/with per-repo state files, mixed config with state, and required N+1 file reads for global operations (e.g. dashboard, port allocation). This change gives us a single unified file for all repo + workspace state.How
~/.local/state/fr8/repos.json— unified registry with embedded workspaces (was split across~/.config/fr8/repos.json+ per-repo.git/fr8.json)~/.config/fr8/config.json— user preferences like openers (was~/.config/fr8/openers.json)AddWorkspace,RemoveWorkspace,FindWorkspace, etc.) now live onregistry.Repointernal/opener/stripped down to justRun()— config management moved tointernal/userconfig/internal/state/deleted entirelyFR8_STATE_DIRandFR8_CONFIG_DIRenv var overrides supported