MCPcopy Create free account
hub / github.com/Noumena-Network/code / readRemoteAgentMetadata

Function readRemoteAgentMetadata

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

Source from the content-addressed store, hash-verified

372}
373
374export async function readRemoteAgentMetadata(
375 taskId: string,
376): Promise<RemoteAgentMetadata | null> {
377 const path = getRemoteAgentMetadataPath(taskId)
378 try {
379 const raw = await readFile(path, 'utf-8')
380 return JSON.parse(raw) as RemoteAgentMetadata
381 } catch (e) {
382 if (isFsInaccessible(e)) return null
383 throw e
384 }
385}
386
387export async function deleteRemoteAgentMetadata(taskId: string): Promise<void> {
388 const path = getRemoteAgentMetadataPath(taskId)

Callers

nothing calls this directly

Calls 3

readFileFunction · 0.85
isFsInaccessibleFunction · 0.85

Tested by

no test coverage detected