docs(reference): import Dune: Awakening server-manager references
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

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>
This commit is contained in:
Vantz Stockwell
2026-06-11 21:08:05 -04:00
parent 0715492ddf
commit 651a35d4be
1334 changed files with 238971 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
-- cleanup_orphaned_entities() -> trigger
-- oid: 58173 kind: FUNCTION category: cleanup
CREATE OR REPLACE FUNCTION dune.cleanup_orphaned_entities()
RETURNS trigger
LANGUAGE plpgsql
AS $function$
BEGIN
DELETE FROM fgl_entities WHERE fgl_entities.entity_id = OLD.entity_id;
RETURN NULL;
END
$function$

View File

@@ -0,0 +1,12 @@
-- reset_all_players_from_server_ids_grace_period_and_logoff_timer(in_server_id text, in_reset_time timestamp without time zone) -> void
-- oid: 58528 kind: FUNCTION category: cleanup
CREATE OR REPLACE FUNCTION dune.reset_all_players_from_server_ids_grace_period_and_logoff_timer(in_server_id text, in_reset_time timestamp without time zone)
RETURNS void
LANGUAGE plpgsql
AS $function$
BEGIN
UPDATE encrypted_player_state SET reconnect_grace_period_end = in_reset_time WHERE server_id = in_server_id AND reconnect_grace_period_end > in_reset_time;
UPDATE encrypted_player_state SET logoff_persistence_end_time = in_reset_time WHERE server_id = in_server_id AND logoff_persistence_end_time > in_reset_time;
END
$function$

View File

@@ -0,0 +1,13 @@
-- reset_server_all_player_access_codes(in_account_id bigint) -> void
-- oid: 58531 kind: FUNCTION category: cleanup
CREATE OR REPLACE FUNCTION dune.reset_server_all_player_access_codes(in_account_id bigint)
RETURNS void
LANGUAGE plpgsql
AS $function$
BEGIN
DELETE FROM player_access_codes
WHERE account_id = in_account_id
AND is_resettable = true;
END
$function$

View File

@@ -0,0 +1,11 @@
-- wipe_old_events_log(in_days_limit integer) -> void
-- oid: 58650 kind: FUNCTION category: cleanup
CREATE OR REPLACE FUNCTION dune.wipe_old_events_log(in_days_limit integer)
RETURNS void
LANGUAGE plpgsql
AS $function$
BEGIN
DELETE FROM game_events WHERE universe_time < to_timestamp(in_days_limit);
END
$function$