Phase 2 references for the host-agent Dune adapter, moved out of volatile /tmp
into docs/reference-repos/ (per Commander). Three upstream projects, .git +
node_modules + compiled binaries stripped (16MB source). Nested AI-instruction
files (.claude/, CLAUDE.md) removed so they don't pollute Corrosion sessions.
- icehunter/ dune-admin (Go+React) — 4 control planes; SETUP_DOCKER.md is the
closest analog to our agent's Dune docker control plane (compose
lifecycle, docker logs, RabbitMQ-via-exec, dune Postgres schema)
- adainrivers/ Rust/Tauri desktop — SSH+k8s BattleGroup control, maintenance
daemon, in-game admin console (Rust idiom reference)
- the4rchangel/ Node web UI replacing battlegroup.bat — matches the Commander's
Hyper-V self-host path + game-config schema
See docs/reference-repos/README.md for the full index + how we use each.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
71 lines
1.7 KiB
Batchfile
71 lines
1.7 KiB
Batchfile
@echo off
|
|
title Dune: Awakening Server Manager
|
|
|
|
:: Check for admin privileges (required for Hyper-V)
|
|
net session >nul 2>&1
|
|
if %errorLevel% neq 0 (
|
|
echo Requesting administrator privileges...
|
|
powershell -Command "Start-Process cmd -ArgumentList '/c cd /d \"%~dp0\" && \"%~f0\"' -Verb RunAs"
|
|
exit /b
|
|
)
|
|
|
|
cd /d "%~dp0"
|
|
|
|
where node >nul 2>&1
|
|
if %errorLevel% neq 0 (
|
|
echo.
|
|
echo ERROR: Node.js is required but not found.
|
|
echo Download it from https://nodejs.org
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
if not exist node_modules (
|
|
echo Installing dependencies...
|
|
call npm install
|
|
if %errorLevel% neq 0 (
|
|
echo.
|
|
echo npm install failed. If you see a script execution policy error,
|
|
echo open PowerShell as Administrator and run:
|
|
echo.
|
|
echo Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
|
|
echo.
|
|
echo Then try again.
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo.
|
|
)
|
|
|
|
:: Verify express is installed (catches partial installs)
|
|
if not exist "node_modules\express" (
|
|
echo Dependencies missing or incomplete. Reinstalling...
|
|
call npm install
|
|
if %errorLevel% neq 0 (
|
|
echo.
|
|
echo Failed to install dependencies. Check your internet connection
|
|
echo and try running "npm install" manually.
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
echo.
|
|
echo ==========================================
|
|
echo Dune: Awakening Server Manager
|
|
echo http://localhost:3000
|
|
echo ==========================================
|
|
echo.
|
|
|
|
start http://localhost:3000
|
|
node server.js
|
|
if %errorLevel% neq 0 (
|
|
echo.
|
|
echo Server exited with an error. Check the output above.
|
|
echo.
|
|
)
|
|
pause
|