{ "user_input": "please review the project in the app_factory directory and create an api middleware to sit between the app_factory and the ui. if the core app does not have the required features, they will be added according to the middleware spec. the middleware should support sending + receiving data (start/stop jobs, respond to pm questions, etc), tracking progress, errors, logs, etc. visualizing the graph, tracking multiple projects running at a time", "prd": "", "tasks": [], "active_tasks": {}, "completed_tasks": [], "blocked_tasks": {}, "clarification_requests": [], "global_architecture": "", "iteration_count": 0, "max_iterations": 50, "errors": [ "PM agent error: Claude SDK query failed: Command failed with exit code -9 (exit code: -9)\nError output: Check stderr output for details\nHint: verify Claude auth is available (ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN, or a valid Claude Code OAuth session) and that the process can write ~/.claude and ~/.claude.json." ] }