UNPKG

claude-code-company

Version:

Multi-agent tmux coordination system for Claude Code with perfect Unicode support

37 lines (31 loc) 876 B
// YAGNI原則適用: 簡素化されたフェーズ管理 const { colors } = require('./config'); // 最小限のフェーズ管理(YAGNI原則) const phaseSystem = { currentPhase: 'active', workerStatus: {} }; // ワーカーステータス更新(必要最小限) function updateWorkerStatus(workerName, status) { if (!workerName || typeof workerName !== 'string') { throw new Error('Invalid worker name'); } if (!status || typeof status !== 'string') { throw new Error('Invalid status'); } phaseSystem.workerStatus[workerName] = { status: status, lastUpdate: new Date().toISOString() }; } // フェーズシステム取得 function getPhaseSystem() { return { currentPhase: phaseSystem.currentPhase, workerStatus: { ...phaseSystem.workerStatus } }; } module.exports = { updateWorkerStatus, getPhaseSystem };