MCPcopy Create free account
hub / github.com/experdot/pointer / groupTasksByStatus

Function groupTasksByStatus

src/renderer/src/utils/taskHelpers.ts:3–9  ·  view source on GitHub ↗
(tasks: AITask[])

Source from the content-addressed store, hash-verified

1import { AITask, AITaskStatus } from '../types/type'
2
3export const groupTasksByStatus = (tasks: AITask[]) => {
4 const running = tasks.filter((t) => t.status === 'running')
5 const completed = tasks.filter((t) => t.status === 'completed')
6 const failed = tasks.filter((t) => t.status === 'failed' || t.status === 'cancelled')
7
8 return { running, completed, failed }
9}
10
11export const getModelNameFromTask = (
12 task: AITask,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected