mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
Three new modules completing the server-side functionality: 1. ConversationService: spawns CLI as subprocess with --input-format stream-json, forwards WebSocket messages to CLI stdin/stdout. CLI handles all AI communication, tool execution, and permissions. Graceful fallback to echo mode when CLI unavailable. 2. Agent Teams API: GET/DELETE /api/teams, member listing with status derivation (running/idle/completed), transcript reading from CLI-generated JSONL files. Teams created by CLI, API is read-only. 3. TaskService: replaces placeholder with real task file scanning from ~/.claude/tasks/, supports nested team directories. 229 tests passing (49 new: 12 conversations + 27 teams + 10 tasks). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>