agent/cmd/core-agent/main.go
Virgil 364007d424 fix(ax): add missing examples and helper coverage
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-29 21:44:22 +00:00

44 lines
958 B
Go

// SPDX-License-Identifier: EUPL-1.2
package main
import (
"dappco.re/go/core"
"dappco.re/go/agent/pkg/agentic"
"dappco.re/go/agent/pkg/brain"
"dappco.re/go/agent/pkg/monitor"
"dappco.re/go/agent/pkg/runner"
)
func main() {
c := core.New(
core.WithOption("name", "core-agent"),
core.WithService(agentic.ProcessRegister),
core.WithService(agentic.Register),
core.WithService(runner.Register),
core.WithService(monitor.Register),
core.WithService(brain.Register),
core.WithName("mcp", registerMCPService),
)
c.App().Version = appVersion()
c.Cli().SetBanner(func(_ *core.Cli) string {
return core.Concat("core-agent ", c.App().Version, " — agentic orchestration for the Core ecosystem")
})
registerAppCommands(c)
c.Run()
}
// appVersion resolves the build version injected at link time.
//
// version = "0.15.0"
// appVersion() // "0.15.0"
func appVersion() string {
if version != "" {
return version
}
return "dev"
}