-
Notifications
You must be signed in to change notification settings - Fork 3
Unified state directory + bbolt settings store #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5be7a77
feat: unified state directory with appstate package
joshuapare a5e5839
refactor: move service wrappers from main.go to their respective pack…
joshuapare 35d7225
fix: restore dist/.gitkeep for go:embed
joshuapare 12e661c
fix: update CI workflows to Wails v3, restore dist/.gitkeep
joshuapare e841b2a
fix: address CodeRabbit review — nil guards, path safety, cache corre…
joshuapare File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Claude Code Guidelines | ||
|
|
||
| ## Wails Bindings | ||
|
|
||
| **Always use the Taskfile task to generate bindings.** Never run `wails3 generate bindings` manually. | ||
|
|
||
| ```bash | ||
| task bindings | ||
| ``` | ||
|
|
||
| This ensures bindings are generated with the correct flags, output directory (`packages/omniviewdev-runtime/src/bindings`), and cleanup. The raw `wails3` command generates to the wrong location. | ||
|
|
||
| ## Build & Test | ||
|
|
||
| ```bash | ||
| GOWORK=off go build . # Build the Go backend | ||
| GOWORK=off go test ./... -count=1 # Run all Go tests | ||
| task dev # Run the full app in dev mode | ||
| ``` | ||
|
|
||
| Use `GOWORK=off` for all Go commands — the module is not in the parent `go.work` file. | ||
|
|
||
| ## Commits | ||
|
|
||
| - Do not add `Co-Authored-By` or any Claude attribution to commits or PRs. |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package plugin | ||
|
|
||
| // PluginRefAdapter adapts plugin.Manager to devserver.PluginRef. | ||
| type PluginRefAdapter struct{ Mgr Manager } | ||
|
|
||
| func (a *PluginRefAdapter) GetDevPluginInfo(pluginID string) (bool, string, error) { | ||
| info, err := a.Mgr.GetPlugin(pluginID) | ||
| if err != nil { | ||
| return false, "", err | ||
| } | ||
| return info.DevMode, info.DevPath, nil | ||
| } | ||
|
|
||
| // PluginReloaderAdapter adapts plugin.Manager to devserver.PluginReloader. | ||
| type PluginReloaderAdapter struct{ Mgr Manager } | ||
|
|
||
| func (a *PluginReloaderAdapter) ReloadPlugin(id string) error { | ||
| _, err := a.Mgr.ReloadPlugin(id) | ||
| return err | ||
| } |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| package data | ||
|
|
||
| import ( | ||
| "context" | ||
|
|
||
| "github.com/wailsapp/wails/v3/pkg/application" | ||
| ) | ||
|
|
||
| // ServiceWrapper is an explicit delegation wrapper around data.Controller. | ||
| type ServiceWrapper struct { | ||
| Ctrl Controller | ||
| } | ||
|
|
||
| func (s *ServiceWrapper) ServiceStartup(ctx context.Context, options application.ServiceOptions) error { | ||
| if ss, ok := s.Ctrl.(interface { | ||
| ServiceStartup(context.Context, application.ServiceOptions) error | ||
| }); ok { | ||
| return ss.ServiceStartup(ctx, options) | ||
| } | ||
| return nil | ||
| } | ||
| func (s *ServiceWrapper) ServiceShutdown() error { | ||
| if ss, ok := s.Ctrl.(interface{ ServiceShutdown() error }); ok { | ||
| return ss.ServiceShutdown() | ||
| } | ||
| return nil | ||
| } | ||
| func (s *ServiceWrapper) Get(pluginID, key string) (any, error) { | ||
| return s.Ctrl.Get(pluginID, key) | ||
| } | ||
| func (s *ServiceWrapper) Set(pluginID, key string, value any) error { | ||
| return s.Ctrl.Set(pluginID, key, value) | ||
| } | ||
| func (s *ServiceWrapper) Delete(pluginID, key string) error { | ||
| return s.Ctrl.Delete(pluginID, key) | ||
| } | ||
| func (s *ServiceWrapper) Keys(pluginID string) ([]string, error) { | ||
| return s.Ctrl.Keys(pluginID) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.