From a4a5bd9a3ce781876e5563817d8b8db178cd289d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 25 Aug 2026 14:47:11 +0200 Subject: [PATCH] Honor resident swarm state configuration --- scripts/render-voidbot-swarm-dashboard.mjs | 5 ++++- scripts/voidbot-swarm-structured-surface.test.mjs | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/render-voidbot-swarm-dashboard.mjs b/scripts/render-voidbot-swarm-dashboard.mjs index 194f93f..a4d455a 100644 --- a/scripts/render-voidbot-swarm-dashboard.mjs +++ b/scripts/render-voidbot-swarm-dashboard.mjs @@ -34,7 +34,10 @@ const swarmOperatorViewSchemaId = "voidbot.swarm_operator_view.v1"; const args = parseArgs(process.argv.slice(2)); -const env = await readDotEnv(resolve(repoRoot, ".env")); +const env = { + ...(await readDotEnv(resolve(repoRoot, ".env"))), + ...process.env, +}; const swarmCultMeshRudpEndpoint = String( args.rudpEndpoint || args["rudp-endpoint"] || diff --git a/scripts/voidbot-swarm-structured-surface.test.mjs b/scripts/voidbot-swarm-structured-surface.test.mjs index af4cf5e..adbab43 100644 --- a/scripts/voidbot-swarm-structured-surface.test.mjs +++ b/scripts/voidbot-swarm-structured-surface.test.mjs @@ -4,6 +4,8 @@ import test from "node:test"; const source = readFileSync(new URL("./render-voidbot-swarm-dashboard.mjs", import.meta.url), "utf8"); +assert.match(source, /\.\.\.process\.env/, "the resident renderer must honor daemon process configuration"); + test("the operator surface is composed from metrics and typed lists", () => { for (const componentId of [ "voidbot-status-metrics",