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,11 @@
-- add_actor_audit(in_id bigint, in_class text) -> void
-- oid: 58118 kind: FUNCTION category: anticheat
CREATE OR REPLACE FUNCTION dune.add_actor_audit(in_id bigint, in_class text)
RETURNS void
LANGUAGE plpgsql
AS $function$
BEGIN
INSERT INTO actor_audit("id", "class") VALUES(in_id, in_class) ON CONFLICT(id) DO NOTHING;
END
$function$

View File

@@ -0,0 +1,19 @@
-- flag_player_as_cheater(in_account_id bigint, in_cheat_type dune.cheat_type_enum) -> void
-- oid: 58265 kind: FUNCTION category: anticheat
CREATE OR REPLACE FUNCTION dune.flag_player_as_cheater(in_account_id bigint, in_cheat_type dune.cheat_type_enum)
RETURNS void
LANGUAGE plpgsql
AS $function$
DECLARE
v_FLS_id TEXT;
BEGIN
SELECT acc."user"
INTO v_FLS_id
FROM accounts acc
WHERE acc.id = in_account_id
LIMIT 1;
PERFORM log_cheating(v_FLS_id, in_cheat_type);
END;
$function$

View File

@@ -0,0 +1,21 @@
-- log_cheating(in_fls_id text, in_cheat_type dune.cheat_type_enum, in_event_time timestamp with time zone) -> void
-- oid: 58469 kind: FUNCTION category: anticheat
CREATE OR REPLACE FUNCTION dune.log_cheating(in_fls_id text, in_cheat_type dune.cheat_type_enum, in_event_time timestamp with time zone DEFAULT now())
RETURNS void
LANGUAGE plpgsql
AS $function$
BEGIN
-- Insert into suspicious_be
INSERT INTO cheater_tracking (
event_time,
fls_id,
cheat_type
) VALUES (
in_event_time,
in_fls_id,
in_cheat_type
);
END;
$function$