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

Function writeRemoteAgentMetadata

src/utils/sessionStorage.ts:365–372  ·  view source on GitHub ↗
(
  taskId: string,
  metadata: RemoteAgentMetadata,
)

Source from the content-addressed store, hash-verified

363 * from CCR on restore — only identity is persisted locally.
364 */
365export async function writeRemoteAgentMetadata(
366 taskId: string,
367 metadata: RemoteAgentMetadata,
368): Promise<void> {
369 const path = getRemoteAgentMetadataPath(taskId)
370 await mkdir(dirname(path), { recursive: true })
371 await writeFile(path, JSON.stringify(metadata))
372}
373
374export async function readRemoteAgentMetadata(
375 taskId: string,

Callers 1

Calls 2

mkdirFunction · 0.85

Tested by

no test coverage detected