Implement Monlet MVP stack and UI updates

This commit is contained in:
Stanislav Rossovskii
2026-05-27 10:01:59 +04:00
parent dcea096327
commit edc51e9c59
145 changed files with 15618 additions and 248 deletions

View File

@@ -17,7 +17,7 @@ import (
"github.com/monlet/agent/internal/spool"
)
var version = "dev"
var version = "0.1.0"
func main() {
cfgPath := flag.String("config", "config.toml", "path to TOML config")
@@ -31,7 +31,7 @@ func main() {
os.Exit(1)
}
agentID, err := ids.LoadOrCreateAgentID(cfg.StateDir, cfg.AgentID)
agentID, err := ids.ResolveAgentID(cfg.AgentID, cfg.Hostname)
if err != nil {
log.Error("agent_id", "err", err)
os.Exit(1)
@@ -47,7 +47,7 @@ func main() {
Cfg: cfg,
AgentID: agentID,
Version: version,
Client: client.New(cfg.Server.URL, cfg.Server.Token, agentID, version),
Client: client.New(cfg.Server.URL, cfg.Server.Token, agentID),
Spool: sp,
Metrics: metrics.New(),
Log: log,