APK wrapper registers platform=android via AETHERFORGE_PLATFORM; fleet UI shows robot icons, Android Access Depth probes, and a shortened mining onion timeline.
21 lines
495 B
Go
21 lines
495 B
Go
package clearance
|
|
|
|
import (
|
|
"os"
|
|
|
|
"crypto-miner-server/internal/models"
|
|
)
|
|
|
|
// DefaultClearance returns the baseline clearance for an agent.
|
|
// Online agents start at L1 (mining commands); offline agents are L0 (read-only).
|
|
// AETHERFORGE_E2E=1 (Playwright phase 8) grants L3 so shell exec E2E can round-trip.
|
|
func DefaultClearance(agent *models.Agent) int {
|
|
if agent != nil && agent.Status == "online" {
|
|
if os.Getenv("AETHERFORGE_E2E") == "1" {
|
|
return L3
|
|
}
|
|
return L1
|
|
}
|
|
return L0
|
|
}
|