fix(ax): clarify version usage and channel guard

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-03-30 18:19:49 +00:00
parent 3769af2513
commit f7830371a2
2 changed files with 2 additions and 1 deletions

View file

@ -12,7 +12,7 @@ func updateChannel() string {
switch {
case agentpkg.Version == "" || agentpkg.Version == "dev":
return "dev"
case len(agentpkg.Version) > 0 && (agentpkg.Version[len(agentpkg.Version)-1] >= 'a'):
case agentpkg.Version != "" && (agentpkg.Version[len(agentpkg.Version)-1] >= 'a'):
return "prerelease"
default:
return "stable"

View file

@ -5,4 +5,5 @@ package agent
// Version is injected at build time via ldflags.
//
// go build -ldflags "-X 'dappco.re/go/agent.Version=0.15.0'" ./cmd/core-agent/
// core.Println(Version) // "0.15.0"
var Version string