refactor(core): add headless run and auto-restart
- Run without console by default - Log to file once console hidden - Recover panics in background goroutines - Restart agent after unexpected errors - Use shared instance launch helper
This commit is contained in:
@@ -5,12 +5,14 @@ import (
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
Version = "1.0.0"
|
||||
DefaultAddr = "0.0.0.0:5032"
|
||||
MutexName = "win64_mp_Mutex"
|
||||
RestartDelay = 3 * time.Second
|
||||
RequestBodyMax = 1 << 20
|
||||
MaxUploadSize = 100 << 20 // ponytail: 100MB cap; raise via env later if needed
|
||||
MaxListEntries = 10000
|
||||
|
||||
Reference in New Issue
Block a user