MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / shareTask

Method shareTask

packages/cloud/src/CloudAPI.ts:111–122  ·  view source on GitHub ↗
(taskId: string, visibility: ShareVisibility = "organization")

Source from the content-addressed store, hash-verified

109 }
110
111 async shareTask(taskId: string, visibility: ShareVisibility = "organization"): Promise<ShareResponse> {
112 this.log(`[CloudAPI] Sharing task ${taskId} with visibility: ${visibility}`)
113
114 const response = await this.request("/api/extension/share", {
115 method: "POST",
116 body: JSON.stringify({ taskId, visibility }),
117 parseResponse: (data) => shareResponseSchema.parse(data),
118 })
119
120 this.log("[CloudAPI] Share response:", response)
121 return response
122 }
123
124 async bridgeConfig() {
125 return this.request("/api/extension/bridge/config", {

Callers 2

Calls 3

requestMethod · 0.95
parseMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected