( id: string, type: TaskType, description: string, toolUseId?: string, )
| 108 | } |
| 109 | |
| 110 | export function createTaskStateBase( |
| 111 | id: string, |
| 112 | type: TaskType, |
| 113 | description: string, |
| 114 | toolUseId?: string, |
| 115 | ): TaskStateBase { |
| 116 | return { |
| 117 | id, |
| 118 | type, |
| 119 | status: 'pending', |
| 120 | description, |
| 121 | toolUseId, |
| 122 | startTime: Date.now(), |
| 123 | outputFile: getTaskOutputPath(id), |
| 124 | outputOffset: 0, |
| 125 | notified: false, |
| 126 | } |
| 127 | } |
no test coverage detected