MCPcopy Index your code
hub / github.com/coder/mux / getWorkspaceTurnSnapshot

Method getWorkspaceTurnSnapshot

src/node/services/taskService.ts:5733–5745  ·  view source on GitHub ↗
(
    ownerWorkspaceId: string,
    handleId: string
  )

Source from the content-addressed store, hash-verified

5731 }
5732
5733 async getWorkspaceTurnSnapshot(
5734 ownerWorkspaceId: string,
5735 handleId: string
5736 ): Promise<WorkspaceTurnTaskHandleRecord | null> {
5737 if (!isWorkspaceTurnTaskId(handleId)) {
5738 return null;
5739 }
5740 const record = await this.taskHandleStore.getWorkspaceTurn(ownerWorkspaceId, handleId);
5741 if (record == null) {
5742 return null;
5743 }
5744 return await this.normalizeWorkspaceTurnRecord(record);
5745 }
5746
5747 async listWorkspaceTurnTasks(
5748 ownerWorkspaceId: string,

Callers 2

awaitOneFunction · 0.80

Calls 3

isWorkspaceTurnTaskIdFunction · 0.90
getWorkspaceTurnMethod · 0.80

Tested by

no test coverage detected