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,15 @@
|
||||
-- delete_dialogue_data(in_player_controller_id bigint) -> void
|
||||
-- oid: 58212 kind: FUNCTION category: dialogue
|
||||
|
||||
CREATE OR REPLACE FUNCTION dune.delete_dialogue_data(in_player_controller_id bigint)
|
||||
RETURNS void
|
||||
LANGUAGE plpgsql
|
||||
AS $function$
|
||||
BEGIN
|
||||
DELETE FROM dialogue_met_npcs
|
||||
WHERE player_id = in_player_controller_id;
|
||||
|
||||
DELETE FROM dialogue_taken_nodes
|
||||
WHERE player_id = in_player_controller_id;
|
||||
END
|
||||
$function$
|
||||
@@ -0,0 +1,19 @@
|
||||
-- load_dialogue_data(in_player_controller_id bigint, OUT met_npcs text[], OUT taken_nodes integer[]) -> record
|
||||
-- oid: 58451 kind: FUNCTION category: dialogue
|
||||
|
||||
CREATE OR REPLACE FUNCTION dune.load_dialogue_data(in_player_controller_id bigint, OUT met_npcs text[], OUT taken_nodes integer[])
|
||||
RETURNS record
|
||||
LANGUAGE plpgsql
|
||||
AS $function$
|
||||
BEGIN
|
||||
SELECT ARRAY_AGG(npc_name)
|
||||
INTO met_npcs
|
||||
FROM dialogue_met_npcs
|
||||
WHERE player_id = in_player_controller_id;
|
||||
|
||||
SELECT ARRAY_AGG(node_id)
|
||||
INTO taken_nodes
|
||||
FROM dialogue_taken_nodes
|
||||
WHERE player_id = in_player_controller_id;
|
||||
END
|
||||
$function$
|
||||
@@ -0,0 +1,15 @@
|
||||
-- save_dialogue_data(in_player_controller_id bigint, in_met_npcs text[], in_taken_nodes integer[]) -> void
|
||||
-- oid: 58546 kind: FUNCTION category: dialogue
|
||||
|
||||
CREATE OR REPLACE FUNCTION dune.save_dialogue_data(in_player_controller_id bigint, in_met_npcs text[], in_taken_nodes integer[])
|
||||
RETURNS void
|
||||
LANGUAGE plpgsql
|
||||
AS $function$
|
||||
BEGIN
|
||||
INSERT INTO dialogue_met_npcs(player_id, npc_name) SELECT in_player_controller_id, unnest(in_met_npcs)
|
||||
ON CONFLICT DO NOTHING;
|
||||
|
||||
INSERT INTO dialogue_taken_nodes(player_id, node_id) SELECT in_player_controller_id, unnest(in_taken_nodes)
|
||||
ON CONFLICT DO NOTHING;
|
||||
END
|
||||
$function$
|
||||
Reference in New Issue
Block a user