({ taskId })
| 71 | return null |
| 72 | }, |
| 73 | async call({ taskId }) { |
| 74 | const taskListId = getTaskListId() |
| 75 | |
| 76 | const task = await getTask(taskListId, taskId) |
| 77 | |
| 78 | if (!task) { |
| 79 | return { |
| 80 | data: { |
| 81 | task: null, |
| 82 | }, |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | return { |
| 87 | data: { |
| 88 | task: { |
| 89 | id: task.id, |
| 90 | subject: task.subject, |
| 91 | description: task.description, |
| 92 | status: task.status, |
| 93 | blocks: task.blocks, |
| 94 | blockedBy: task.blockedBy, |
| 95 | }, |
| 96 | }, |
| 97 | } |
| 98 | }, |
| 99 | mapToolResultToToolResultBlockParam(content, toolUseID) { |
| 100 | const { task } = content as Output |
| 101 | if (!task) { |
nothing calls this directly
no test coverage detected