MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / readRemoteAgentMetadata

Function readRemoteAgentMetadata

source code/utils/sessionStorage.ts:348–359  ·  view source on GitHub ↗
(
  taskId: string,
)

Source from the content-addressed store, hash-verified

346}
347
348export async function readRemoteAgentMetadata(
349 taskId: string,
350): Promise<RemoteAgentMetadata | null> {
351 const path = getRemoteAgentMetadataPath(taskId)
352 try {
353 const raw = await readFile(path, 'utf-8')
354 return JSON.parse(raw) as RemoteAgentMetadata
355 } catch (e) {
356 if (isFsInaccessible(e)) return null
357 throw e
358 }
359}
360
361export async function deleteRemoteAgentMetadata(taskId: string): Promise<void> {
362 const path = getRemoteAgentMetadataPath(taskId)

Callers

nothing calls this directly

Calls 3

readFileFunction · 0.85
isFsInaccessibleFunction · 0.85

Tested by

no test coverage detected