Commit graph

7 commits

Author SHA1 Message Date
Virgil
ee154a2c15 chore(ax): add agent-aware HTTP identity and timeouts 2026-03-29 23:06:29 +00:00
e605041fa8 Merge pull request '[agent/claude:opus] DX audit and fix. 1) Review CLAUDE.md — update any outdate...' (#1) from agent/dx-audit-and-fix--1--review-claude-md into main 2026-03-17 08:54:13 +00:00
Snider
0efc1ebc80 fix(dx): audit error handling, file I/O, and test coverage
- Create CLAUDE.md with package-specific conventions and commands
- Replace fmt.Errorf with coreerr.E() in test mock (updater_test.go)
- Replace os.ReadFile/os.WriteFile with go-io in build/main.go
- Add unit tests for filterReleases, determineChannel, GetDownloadURL,
  formatVersionForDisplay, formatVersionForComparison, and default
  cases in startGitHubCheck/startHTTPCheck
- All targeted functions now at 100% coverage

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 08:53:58 +00:00
Snider
63e50757e9 chore: sync dependencies for v0.0.1
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 22:20:47 +00:00
Snider
3b328137db fix: replace fmt.Errorf and errors.New with coreerr.E() from go-log
Replace all remaining fmt.Errorf and errors.New calls in production code
with coreerr.E() for consistent error handling with context information.
This improves error messages by including the function context where
errors occur.

Modified files:
- github.go: 6 fmt.Errorf calls
- generic_http.go: 5 fmt.Errorf calls
- updater.go: 6 fmt.Errorf calls
- service.go: 4 fmt.Errorf calls
- github_test.go: Updated test expectation for new error format

All tests pass with the new error format.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 21:49:04 +00:00
Snider
06c7c45740 fix: update stale imports, sync dependencies
core/go/pkg/cli → core/cli/pkg/cli
Updated to cli v0.3.5, go-crypt v0.1.8, go-i18n v0.1.5

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 19:24:00 +00:00
Snider
32867f2d97 feat: go-update self-updater package
Extracted from core/cli cmd/updater. Provides GitHub/Forgejo release
checking, binary self-update, and CLI command registration.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 21:38:20 +00:00