init: ops-assistant codebase

This commit is contained in:
OpenClaw Agent
2026-03-19 21:23:28 +08:00
commit 81deba4766
94 changed files with 10767 additions and 0 deletions

22
version/version.go Normal file
View File

@@ -0,0 +1,22 @@
package version
import (
"fmt"
"runtime"
)
var (
Version = "dev"
GitCommit = "unknown"
BuildTime = "unknown"
GoVersion = runtime.Version()
)
func Info() string {
return fmt.Sprintf("Ops-Assistant %s (commit: %s, built: %s, %s %s/%s)",
Version, GitCommit, BuildTime, GoVersion, runtime.GOOS, runtime.GOARCH)
}
func Short() string {
return fmt.Sprintf("Ops-Assistant %s", Version)
}