From 4c747aa33142c2a0aff498415721638caecab591 Mon Sep 17 00:00:00 2001 From: "Claude (Opus 4.6)" Date: Mon, 23 Mar 2026 01:41:13 +0000 Subject: [PATCH] [claude] Derive agentStates from AGENT_DEFS (#59) (#73) --- the-matrix/js/agents.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/the-matrix/js/agents.js b/the-matrix/js/agents.js index c8cba65..92e1fbe 100644 --- a/the-matrix/js/agents.js +++ b/the-matrix/js/agents.js @@ -1,10 +1,11 @@ import * as THREE from 'three'; +import { AGENT_DEFS } from './agent-defs.js'; const TIMMY_POS = new THREE.Vector3(0, 0, -2); export const TIMMY_WORLD_POS = TIMMY_POS.clone(); const CRYSTAL_POS = new THREE.Vector3(0.6, 1.15, -4.1); -const agentStates = { alpha: 'idle', beta: 'idle', gamma: 'idle', delta: 'idle' }; +const agentStates = Object.fromEntries(AGENT_DEFS.map(d => [d.id, 'idle'])); function deriveTimmyState() { if (agentStates.gamma === 'working') return 'working';