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

Function readAgentMetadata

source code/utils/sessionStorage.ts:294–305  ·  view source on GitHub ↗
(
  agentId: AgentId,
)

Source from the content-addressed store, hash-verified

292}
293
294export async function readAgentMetadata(
295 agentId: AgentId,
296): Promise<AgentMetadata | null> {
297 const path = getAgentMetadataPath(agentId)
298 try {
299 const raw = await readFile(path, 'utf-8')
300 return JSON.parse(raw) as AgentMetadata
301 } catch (e) {
302 if (isFsInaccessible(e)) return null
303 throw e
304 }
305}
306
307export type RemoteAgentMetadata = {
308 taskId: string

Callers 1

resumeAgentBackgroundFunction · 0.85

Calls 3

getAgentMetadataPathFunction · 0.85
readFileFunction · 0.85
isFsInaccessibleFunction · 0.85

Tested by

no test coverage detected