MCPcopy Index your code
hub / github.com/codeaashu/claude-code / acknowledgeWork

Function acknowledgeWork

src/bridge/bridgeApi.ts:249–271  ·  view source on GitHub ↗
(
      environmentId: string,
      workId: string,
      sessionToken: string,
    )

Source from the content-addressed store, hash-verified

247 },
248
249 async acknowledgeWork(
250 environmentId: string,
251 workId: string,
252 sessionToken: string,
253 ): Promise<void> {
254 validateBridgeId(environmentId, 'environmentId')
255 validateBridgeId(workId, 'workId')
256
257 debug(`[bridge:api] POST .../work/${workId}/ack`)
258
259 const response = await axios.post(
260 `${deps.baseUrl}/v1/environments/${environmentId}/work/${workId}/ack`,
261 {},
262 {
263 headers: getHeaders(sessionToken),
264 timeout: 10_000,
265 validateStatus: s => s < 500,
266 },
267 )
268
269 handleErrorStatus(response.status, response.data, 'Acknowledge')
270 debug(`[bridge:api] POST .../work/${workId}/ack -> ${response.status}`)
271 },
272
273 async stopWork(
274 environmentId: string,

Callers

nothing calls this directly

Calls 5

validateBridgeIdFunction · 0.85
getHeadersFunction · 0.85
handleErrorStatusFunction · 0.85
postMethod · 0.80
debugFunction · 0.70

Tested by

no test coverage detected