MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / readRemoteAgentMetadata

Function readRemoteAgentMetadata

src/utils/sessionStorage.ts:347–358  ·  view source on GitHub ↗
(
  taskId: string,
)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

readFileFunction · 0.85
isFsInaccessibleFunction · 0.85

Tested by

no test coverage detected