MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / listTasks

Function listTasks

source code/utils/tasks.ts:445–458  ·  view source on GitHub ↗
(taskListId: string)

Source from the content-addressed store, hash-verified

443}
444
445export async function listTasks(taskListId: string): Promise<Task[]> {
446 const dir = getTasksDir(taskListId)
447 let files: string[]
448 try {
449 files = await readdir(dir)
450 } catch {
451 return []
452 }
453 const taskIds = files
454 .filter(f => f.endsWith('.json'))
455 .map(f => f.replace('.json', ''))
456 const results = await Promise.all(taskIds.map(id => getTask(taskListId, id)))
457 return results.filter((t): t is Task => t !== null)
458}
459
460export async function blockTask(
461 taskListId: string,

Callers 14

callFunction · 0.85
callFunction · 0.85
TeammateDetailViewFunction · 0.85
deleteTaskFunction · 0.85
claimTaskFunction · 0.85
claimTaskWithBusyCheckFunction · 0.85
getAgentStatusesFunction · 0.85
unassignTeammateTasksFunction · 0.85
tryClaimNextTaskFunction · 0.85
handleStopHooksFunction · 0.85
TasksV2StoreClass · 0.85

Calls 3

getTasksDirFunction · 0.85
readdirFunction · 0.85
getTaskFunction · 0.85

Tested by

no test coverage detected