[claude] Derive agentStates from AGENT_DEFS (#59) #73

Merged
claude merged 1 commits from claude/issue-59 into main 2026-03-23 01:41:14 +00:00

View File

@@ -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';