MCPcopy Create free account
hub / github.com/coder/mux / getWorkspaceTurn

Method getWorkspaceTurn

src/node/services/taskHandleStore.ts:150–161  ·  view source on GitHub ↗
(
    ownerWorkspaceId: string,
    handleId: string
  )

Source from the content-addressed store, hash-verified

148 }
149
150 async getWorkspaceTurn(
151 ownerWorkspaceId: string,
152 handleId: string
153 ): Promise<WorkspaceTurnTaskHandleRecord | null> {
154 assert(ownerWorkspaceId.trim().length > 0, "getWorkspaceTurn requires ownerWorkspaceId");
155 assert(handleId.trim().length > 0, "getWorkspaceTurn requires handleId");
156 if (!isWorkspaceTurnTaskId(handleId)) {
157 return null;
158 }
159 const record = await this.readWorkspaceTurnFile(ownerWorkspaceId, handleId);
160 return record?.ownerWorkspaceId === ownerWorkspaceId ? record : null;
161 }
162
163 async listWorkspaceTurns(
164 ownerWorkspaceId: string,

Calls 3

readWorkspaceTurnFileMethod · 0.95
isWorkspaceTurnTaskIdFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected