MCPcopy Create free account
hub / github.com/agent-tower/core / useUpdateTaskStatus

Function useUpdateTaskStatus

packages/web/src/hooks/use-tasks.ts:189–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 enabled: !!id,
188 })
189}
190
191/**
192 * 按需获取任务完整正文。点击任务/TeamRun 热路径不要默认调用。
193 * GET /api/tasks/:id/body
194 */
195export function useTaskBody(id: string, enabled = true) {
196 return useQuery({
197 queryKey: queryKeys.tasks.body(id),
198 queryFn: () => apiClient.get<TaskBody>(`/tasks/${id}/body`),
199 enabled: !!id && enabled,
200 })
201}
202
203// ============ Mutation Hooks ============
204
205/**

Callers 1

ProjectKanbanPageFunction · 0.90

Calls 1

patchMethod · 0.80

Tested by

no test coverage detected