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