MCPcopy
hub / github.com/msgbyte/tianji / upsertWorker

Method upsertWorker

packages/cli/src/utils/api.ts:75–82  ·  view source on GitHub ↗

* Upsert worker (create or update) * Uses the OpenAPI SDK WorkerService

(input: WorkerUpsertInput)

Source from the content-addressed store, hash-verified

73 * Uses the OpenAPI SDK WorkerService
74 */
75 async upsertWorker(input: WorkerUpsertInput): Promise<WorkerInfo> {
76 const result = await openApiClient.WorkerService.workerUpsert({
77 workspaceId: this.config.workspaceId,
78 requestBody: input,
79 });
80
81 return result as WorkerInfo;
82 }
83
84 /**
85 * Get worker by ID

Callers 1

handlerFunction · 0.80

Calls 1

workerUpsertMethod · 0.80

Tested by

no test coverage detected