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