cli/pkg/framework
Snider 04e70d9cda fix(core): add thread-safety to global Core instance (#95)
Protect the global `instance` variable with sync.RWMutex to prevent
data races when SetInstance/App() are called concurrently (especially
in tests).

Changes:
- Add instanceMu mutex to protect instance variable
- Update App() to use RLock for reading
- Update SetInstance() to use Lock for writing
- Add GetInstance() for non-panicking access
- Add ClearInstance() for test cleanup
- Update tests to use new thread-safe functions
- Add concurrent access test with race detector

Closes #84

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-01 16:03:44 +00:00
..
core fix(core): add thread-safety to global Core instance (#95) 2026-02-01 16:03:44 +00:00
framework.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00