()
| 20 | * Note: Returns array inline to avoid circular dependency issues with top-level const |
| 21 | */ |
| 22 | export function getAllTasks(): Task[] { |
| 23 | const tasks: Task[] = [ |
| 24 | LocalShellTask, |
| 25 | LocalAgentTask, |
| 26 | RemoteAgentTask, |
| 27 | DreamTask, |
| 28 | ] |
| 29 | if (LocalWorkflowTask) tasks.push(LocalWorkflowTask) |
| 30 | if (MonitorMcpTask) tasks.push(MonitorMcpTask) |
| 31 | return tasks |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Get a task by its type. |