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,11 @@
|
||||
-- get_battlegroup_close_date() -> timestamp without time zone
|
||||
-- oid: 58286 kind: FUNCTION category: battlegroup
|
||||
|
||||
CREATE OR REPLACE FUNCTION dune.get_battlegroup_close_date()
|
||||
RETURNS timestamp without time zone
|
||||
LANGUAGE plpgsql
|
||||
AS $function$
|
||||
BEGIN
|
||||
RETURN (SELECT farm_variables.battlegroup_close_date from farm_variables);
|
||||
END
|
||||
$function$
|
||||
@@ -0,0 +1,13 @@
|
||||
-- set_battlegroup_close_date(in_close_date timestamp without time zone) -> timestamp without time zone
|
||||
-- oid: 58589 kind: FUNCTION category: battlegroup
|
||||
|
||||
CREATE OR REPLACE FUNCTION dune.set_battlegroup_close_date(in_close_date timestamp without time zone)
|
||||
RETURNS timestamp without time zone
|
||||
LANGUAGE plpgsql
|
||||
AS $function$
|
||||
BEGIN
|
||||
INSERT INTO farm_variables (one_row, battlegroup_close_date) VALUES (true,in_close_date)
|
||||
ON CONFLICT (one_row) DO UPDATE SET battlegroup_close_date = in_close_date;
|
||||
RETURN (select * from get_battlegroup_close_date());
|
||||
END
|
||||
$function$
|
||||
Reference in New Issue
Block a user