Commit graph

9 commits

Author SHA1 Message Date
Virgil
520312b708 feat(sdk): validate OpenAPI specs 2026-04-01 13:17:59 +00:00
Snider
febe858942 fix(ax): replace banned os imports and add usage example comments
- Remove `os` import from internal/ax/ax.go; replace os.Getwd() with
  syscall.Getwd(), os.MkdirAll() with coreio.Local.EnsureDir(), and
  os.Chmod() with syscall.Chmod()
- Remove `os` import from pkg/sdk/generators/typescript_test.go;
  replace os.PathListSeparator and os.Getenv() with core.Env("PS")
  and core.Env("PATH")
- Replace all "Usage example: call/declare ... from integrating code"
  placeholder comments with concrete code examples across 45 files
  covering build, release, sdk, signing, publishers, builders, and cmd

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 18:33:36 +01:00
Virgil
7aa4e5486d chore(ax): finish v0.8.0 polish pass
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-26 17:41:53 +00:00
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
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
356e5315b9 fix: defer i18n.T() for package-level command vars
Move i18n.T() calls out of package-level var declarations (which run
at import time, before i18n is initialised) into setXxxI18n() functions
called from AddXxxCommands at registration time.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 02:31:47 +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
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
Snider
e8afb8b41d feat: extract build/, release/, sdk/ from go-devops
Build system (8 builders, signing, archiving), release pipeline
(7 publishers, versioning, changelog), and SDK generation
(OpenAPI diff, code gen). 18K LOC, all tests pass except Go
builder workspace isolation (pre-existing).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-09 12:37:36 +00:00