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>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
-- load_travel_return_info(in_player_controller_id bigint) -> TABLE(map text, transform dune.transform)
|
||||
-- oid: 58465 kind: FUNCTION category: travel
|
||||
|
||||
CREATE OR REPLACE FUNCTION dune.load_travel_return_info(in_player_controller_id bigint)
|
||||
RETURNS TABLE(map text, transform dune.transform)
|
||||
LANGUAGE plpgsql
|
||||
AS $function$
|
||||
begin
|
||||
return query
|
||||
select travel_return_info.map, travel_return_info.transform
|
||||
from travel_return_info
|
||||
where player_controller_id = in_player_controller_id;
|
||||
end
|
||||
$function$
|
||||
@@ -0,0 +1,16 @@
|
||||
-- load_travel_to_player_info(in_player_controller_id bigint) -> TABLE(map text, transform dune.transform, partition_id bigint, dimension_index integer)
|
||||
-- oid: 58466 kind: FUNCTION category: travel
|
||||
|
||||
CREATE OR REPLACE FUNCTION dune.load_travel_to_player_info(in_player_controller_id bigint)
|
||||
RETURNS TABLE(map text, transform dune.transform, partition_id bigint, dimension_index integer)
|
||||
LANGUAGE plpgsql
|
||||
AS $function$
|
||||
begin
|
||||
return query
|
||||
select actors.map, actors.transform, actors.partition_id, actors.dimension_index
|
||||
from player_state
|
||||
join actors on player_state.player_pawn_id = actors.id
|
||||
where player_state.player_controller_id = in_player_controller_id
|
||||
and player_state.online_status = 'Online';
|
||||
end
|
||||
$function$
|
||||
@@ -0,0 +1,20 @@
|
||||
-- save_travel_return_info(in_player_controller_id bigint, in_map text, in_transform dune.transform) -> void
|
||||
-- oid: 58573 kind: FUNCTION category: travel
|
||||
|
||||
CREATE OR REPLACE FUNCTION dune.save_travel_return_info(in_player_controller_id bigint, in_map text, in_transform dune.transform)
|
||||
RETURNS void
|
||||
LANGUAGE plpgsql
|
||||
AS $function$
|
||||
begin
|
||||
insert into travel_return_info(
|
||||
"player_controller_id", "map", "transform"
|
||||
)
|
||||
values(
|
||||
in_player_controller_id, in_map, in_transform
|
||||
)
|
||||
on conflict (player_controller_id) do update
|
||||
set
|
||||
"map" = EXCLUDED.map,
|
||||
"transform" = EXCLUDED.transform;
|
||||
end
|
||||
$function$
|
||||
Reference in New Issue
Block a user