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

Function useUpdateTask

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

Source from the content-addressed store, hash-verified

165
166export function useTaskBoard(options?: TaskBoardParams) {
167 const params: Record<string, string> = {}
168 if (options?.projectId) params.projectId = options.projectId
169 if (options?.status != null) params.status = options.status
170 if (options?.page != null) params.page = String(options.page)
171 if (options?.limit != null) params.limit = String(options.limit)
172
173 return useQuery({
174 queryKey: queryKeys.tasks.board(options as Record<string, unknown> | undefined),
175 queryFn: () => apiClient.get<TaskBoardResponse>('/task-board', { params }),
176 })
177}
178
179/**
180 * 获取任务详情
181 * GET /api/tasks/:id
182 */
183export function useTask(id: string) {
184 return useQuery({
185 queryKey: queryKeys.tasks.detail(id),
186 queryFn: () => apiClient.get<Task>(`/tasks/${id}`),

Callers

nothing calls this directly

Calls 1

putMethod · 0.80

Tested by

no test coverage detected