AirCoding
56a1dd0a7b
feat: wire full execution chain — MainAgent→Scheduler→Worker→LLM
Architecture-compliant interactive run command:
- air run: interactive readline loop, user types tasks
- MainAgent classifies (regex + 中文 support)
- Scheduler creates tasks + runs state machine
- DISPATCHING spawns worker processes via WorkerManager
- Workers receive task_spec via agent.start IPC
- MONITORING detects worker completion → marks tasks done
- /help /status /tools /tasks slash commands
- Auto-init project if needed
No UML changes — all classes unchanged:
- TaskNode: added optional fields (type, title, description)
- RuntimeApp: added session_id/project_id getters
- WorkerConfig: added task_type/task_spec
- Scheduler state machine: status transitions + completion detection
Chain: stdin → MainAgent → Scheduler → WorkerManager.spawn()
→ worker main.ts → ExecutorRole → call_llm() IPC → ProviderManager
→ tools via ToolRegistry → result → ProjectionStore → TUI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>