GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — claude-code-source-code/src/tasks.ts at main · wangwang4git/claude-code-source-code Expand file tree/ Copy pathtasks.tsMore file actions 39 lines (36 loc) · 1.32 KB / Copy pathtasks.tsFile metadata and controls39 lines (36 loc) · 1.32 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 import { feature } from 'bun:bundle' import type { Task, TaskType } from './Task.js' import { DreamTask } from './tasks/DreamTask/DreamTask.js' import { LocalAgentTask } from './tasks/LocalAgentTask/LocalAgentTask.js' import { LocalShellTask } from './tasks/LocalShellTask/LocalShellTask.js' import { RemoteAgentTask } from './tasks/RemoteAgentTask/RemoteAgentTask.js' /* eslint-disable @typescript-eslint/no-require-imports */ const LocalWorkflowTask: Task | null = feature('WORKFLOW_SCRIPTS') ? require('./tasks/LocalWorkflowTask/LocalWorkflowTask.js').LocalWorkflowTask : null const MonitorMcpTask: Task | null = feature('MONITOR_TOOL') ? require('./tasks/MonitorMcpTask/MonitorMcpTask.js').MonitorMcpTask : null /* eslint-enable @typescript-eslint/no-require-imports */ /** * Get all tasks. * Mirrors the pattern from tools.ts * Note: Returns array inline to avoid circular dependency issues with top-level const */ export function getAllTasks(): Task[] { const tasks: Task[] = [ LocalShellTask, LocalAgentTask, RemoteAgentTask, DreamTask, ] if (LocalWorkflowTask) tasks.push(LocalWorkflowTask) if (MonitorMcpTask) tasks.push(MonitorMcpTask) return tasks } /** * Get a task by its type. */ export function getTaskByType(type: TaskType): Task | undefined { return getAllTasks().find(t => t.type === type) } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |