MCPcopy
hub / github.com/coder/mux / getHandlePath

Method getHandlePath

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

Source from the content-addressed store, hash-verified

222 }
223
224 private getHandlePath(ownerWorkspaceId: string, handleId: string): string {
225 assert(handleId.trim().length > 0, "handleId must be non-empty");
226 assertValidWorkspaceTurnTaskId(handleId);
227 return path.join(this.getOwnerHandleDir(ownerWorkspaceId), `${handleId}.json`);
228 }
229
230 private assertValidRecord(record: WorkspaceTurnTaskHandleRecord): void {
231 const parsed = WorkspaceTurnTaskHandleRecordSchema.safeParse(record);

Callers 2

upsertWorkspaceTurnMethod · 0.95
readWorkspaceTurnFileMethod · 0.95

Calls 3

getOwnerHandleDirMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected