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

Function readRemoteAgentMetadata

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

readFileFunction · 0.85
isFsInaccessibleFunction · 0.85

Tested by

no test coverage detected