[claude] Derive agentStates from AGENT_DEFS (#59) #73
Reference in New Issue
Block a user
Delete Branch "claude/issue-59"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #59
Summary
agents.jsnow importsAGENT_DEFSfromagent-defs.jsand derivesagentStatesdynamically instead of hardcoding{ alpha, beta, gamma, delta }agent-defs.js— no changes needed inagents.jsorwebsocket.jsNotes
The other tasks from the issue were already completed in prior work:
agent-defs.jsalready existed with the canonicalAGENT_DEFSdefinitionwebsocket.jsalready usedcrypto.randomUUID()(nouuid()orMath.random()for IDs)README.mdalready pointed toagent-defs.jsas the single file to editinteraction.js,main.js, andhud-labels.jsalready imported fromagent-defs.jsThis PR closes the last gap:
agents.jswas the only file still hardcoding agent IDs.