()
| 61 | return buildCronListPrompt(isDurableCronEnabled()) |
| 62 | }, |
| 63 | async call() { |
| 64 | const allTasks = await listAllCronTasks() |
| 65 | // Teammates only see their own crons; team lead (no ctx) sees all. |
| 66 | const ctx = getTeammateContext() |
| 67 | const tasks = ctx |
| 68 | ? allTasks.filter(t => t.agentId === ctx.agentId) |
| 69 | : allTasks |
| 70 | const jobs = tasks.map(t => ({ |
| 71 | id: t.id, |
| 72 | cron: t.cron, |
| 73 | humanSchedule: cronToHuman(t.cron), |
| 74 | prompt: t.prompt, |
| 75 | ...(t.recurring ? { recurring: true } : {}), |
| 76 | ...(t.durable === false ? { durable: false } : {}), |
| 77 | })) |
| 78 | return { data: { jobs } } |
| 79 | }, |
| 80 | mapToolResultToToolResultBlockParam(output, toolUseID) { |
| 81 | return { |
| 82 | tool_use_id: toolUseID, |
nothing calls this directly
no test coverage detected