Commit graph

2 commits

Author SHA1 Message Date
Snider
e1024744a4 fix(ide): replace fmt.Errorf with coreerr.E(), add unit tests
Some checks failed
Security Scan / security (pull_request) Successful in 11s
Test / test (pull_request) Failing after 1m56s
Replace all fmt.Errorf calls in runtime.go with structured errors via
coreerr.E() from go-log, ensuring every error carries operation context
for structured logging and tracing.

Add unit tests for runtime utilities (findFreePort, waitForHealth,
defaultProvidersDir), RuntimeManager (List, StopAll, StartAll),
ProvidersAPI (Name, BasePath, list endpoint), guiEnabled, and
staticAssetGroup. Coverage: 27.1%.

No os.ReadFile/os.WriteFile violations found. CLAUDE.md reviewed —
no outdated commands.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 09:00:18 +00:00
Snider
2d55600bb2 feat(runtime): add RuntimeManager for provider loading
Some checks failed
Security Scan / security (push) Successful in 9s
Test / test (push) Failing after 54s
RuntimeManager discovers providers in ~/.core/providers/, starts their
binaries via os/exec, waits for health checks, and registers ProxyProviders
in the API engine. Wired into all three IDE modes (MCP stdio, headless,
GUI) with proper startup/shutdown lifecycle. Includes implementation plan.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-14 12:22:46 +00:00