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

Function useCreateWorkspace

packages/web/src/hooks/use-workspaces.ts:38–50  ·  view source on GitHub ↗
(taskId: string)

Source from the content-addressed store, hash-verified

36 queryKey: queryKeys.workspaces.list(taskId),
37 queryFn: () => apiClient.get<Workspace[]>(`/tasks/${taskId}/workspaces`),
38 enabled: !!taskId,
39 })
40}
41
42/** 获取单个 workspace 详情(含 sessions) */
43export function useWorkspace(id: string) {
44 return useQuery({
45 queryKey: queryKeys.workspaces.detail(id),
46 queryFn: () => apiClient.get<Workspace>(`/workspaces/${id}`),
47 enabled: !!id,
48 })
49}
50
51/** 获取 workspace 的 diff */
52export function useWorkspaceDiff(id: string) {
53 return useQuery({

Callers 2

TaskDetailFunction · 0.90
StartAgentDialogFunction · 0.90

Calls 2

postMethod · 0.80
listMethod · 0.45

Tested by

no test coverage detected