Improve portable launch, forge persistence, and operator auth UX.

Persist build extra_files for Build Manager history, print dashboard login on every start, add libp2p for Mesh P2P forge, defer WebSocket until login, and split devrun.bat from LAUNCH.bat with USB deck auto-detection.
This commit is contained in:
AetherForge
2026-05-31 18:56:43 -07:00
parent 2f528229f2
commit feba06e008
80 changed files with 2897 additions and 675 deletions

View File

@@ -1,6 +1,7 @@
package deploy
import (
"os"
"path/filepath"
"runtime"
"strings"
@@ -118,3 +119,18 @@ func TestResolveInstallDirWithFallback(t *testing.T) {
t.Fatal("empty dir")
}
}
func TestWantsSpreadInstall(t *testing.T) {
orig := os.Args
t.Cleanup(func() { os.Args = orig })
os.Args = []string{"agent"}
if WantsSpreadInstall() {
t.Fatal("expected false without flag")
}
os.Args = []string{"agent", "--spread-install"}
if !WantsSpreadInstall() {
t.Fatal("expected true with --spread-install")
}
}