Files
corrosion-admin-panel/docs/reference-repos/the4rchangel/start_as_admin.bat
Vantz Stockwell 651a35d4be
All checks were successful
CI / backend-types (push) Successful in 10s
CI / frontend-build (push) Successful in 15s
CI / agent-tests (push) Successful in 39s
CI / integration (push) Successful in 22s
docs(reference): import Dune: Awakening server-manager references
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>
2026-06-11 21:08:05 -04:00

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