MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / done

Method done

packages/wl-sdk/src/client.ts:280–294  ·  view source on GitHub ↗
(wantedId: string, evidenceOrInput: string | DoneInput)

Source from the content-addressed store, hash-verified

278 }
279
280 async done(wantedId: string, evidenceOrInput: string | DoneInput): Promise<DoneOutcome> {
281 const input: DoneInput =
282 typeof evidenceOrInput === 'string' ? { evidence: evidenceOrInput } : evidenceOrInput;
283 const completionId = input.completionId ?? makeCompletionId(wantedId, this.#config.rigHandle);
284 return unwrap(
285 await done({
286 ctx: this.#ctx(),
287 wantedId,
288 evidence: input.evidence,
289 hopUri: input.hopUri,
290 completionId,
291 }),
292 this.#config.onError
293 );
294 }
295
296 async accept(wantedId: string, input: AcceptInput): Promise<AcceptOutcome> {
297 return unwrap(await accept({ ...input, ctx: this.#ctx(), wantedId }), this.#config.onError);

Callers 1

client.test.tsFile · 0.45

Calls 4

#ctxMethod · 0.95
doneFunction · 0.90
makeCompletionIdFunction · 0.85
unwrapFunction · 0.70

Tested by

no test coverage detected