Commit graph

10 commits

Author SHA1 Message Date
Snider
bb64608120 refactor(module): migrate module path to dappco.re/go/core/build
Update go.mod module declaration, all require lines, and .go import
paths from forge.lthn.ai to dappco.re. Dependencies updated: core
v0.5.0, log v0.1.0, io v0.2.0. Replace directives added for local
module resolution. forge.lthn.ai/core/cli and go-inference retained
at old paths (not yet migrated).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 01:53:16 +00:00
2ea54f4300 Merge pull request '[agent/claude:opus] Fix CodeRabbit findings. Verify each against current code, f...' (#2) from agent/fix-coderabbit-findings--verify-each-aga into main 2026-03-17 14:13:16 +00:00
Snider
49fb446739 fix(coderabbit): address review findings
- chocolatey: pass API key via env var instead of CLI arg
- npm: remove unused cfg parameter from dryRunPublish
- signing: include checksums file path in error message
- codesign: provide specific reason when codesign unavailable
- scoop: handle error from custom template read
- wails: wrap Read/Write errors with coreerr.E
- github: include actual error in validateGhCli coreerr.E calls
- docker: include actual error in validate/buildx coreerr.E calls

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 13:46:48 +00:00
Snider
11050c1a31 fix(dx): audit and fix conventions, broken build, and test coverage
- CLAUDE.md: update error wrapping convention from fmt.Errorf to coreerr.E()
- cmd/build: fix RegisterCommands API mismatch (cli v0.3.5 compat)
- locales: self-register translations via i18n.RegisterLocales in init()
- cmd/sdk: replace fmt.Printf with cli.Print for consistent output
- cmd/build/cmd_pwa: replace os.Stat with coreio.Local.IsDir
- pkg/build/builders: replace os.Stat with io.Local.IsFile for CLI checks
- pkg/release/publishers/scoop: replace os.Stat with coreio.Local.IsDir
- pkg/api: add tests for getBuilder, resolveDir, and medium initialisation

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 07:54:19 +00:00
Snider
4c63d30a24 fix: switch to oasdiff/kin-openapi, restore embed import
SDK diff.go used getkin/kin-openapi but oasdiff v1.12+ uses its own
fork. Switched import to match. Restores full CLI binary compilation.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 02:28:07 +00:00
Snider
d0e22f76e1 refactor: replace remaining fmt.Errorf/errors.New with coreerr.E()
Replace all fmt.Errorf and errors.New calls across 32 production files
with coreerr.E("caller.Method", "message", err) from go-log, matching
the convention already established in publishers/scoop.go and
publishers/homebrew.go.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 21:03:21 +00:00
Snider
6448624590 refactor: replace os.* and fmt.Errorf with go-io/go-log conventions
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 20:07:58 +00:00
Snider
9d6ae7f300 fix(i18n): use UK English spellings across codebase
- aur.go: initialize → initialise in comment and error string
- ci.go: already_initialized → already_initialised i18n key
- diff.go: add comment noting GetUncolorizedText is upstream oasdiff API

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 17:43:17 +00:00
Snider
77e4c06599 feat(api): add build service provider with Lit custom elements
Wraps the existing build, release, and SDK subsystems as REST endpoints
via a BuildProvider that implements Provider, Streamable, Describable,
and Renderable. Includes 6 Lit custom elements for GUI display within
the Core IDE, following the same pattern established in go-scm.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-14 12:29:45 +00:00
Snider
b2edc2d26d refactor: restructure build/release/sdk into pkg/ layout
Moves build/, release/, sdk/ into pkg/ following Go convention.
Updates import paths in cmd/ci and cmd/sdk.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-13 09:30:02 +00:00