MCPcopy
hub / github.com/codeaashu/claude-code / writeRemoteAgentMetadata

Function writeRemoteAgentMetadata

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

Source from the content-addressed store, hash-verified

335 * from CCR on restore — only identity is persisted locally.
336 */
337export async function writeRemoteAgentMetadata(
338 taskId: string,
339 metadata: RemoteAgentMetadata,
340): Promise<void> {
341 const path = getRemoteAgentMetadataPath(taskId)
342 await mkdir(dirname(path), { recursive: true })
343 await writeFile(path, JSON.stringify(metadata))
344}
345
346export async function readRemoteAgentMetadata(
347 taskId: string,

Callers 1

Calls 2

mkdirFunction · 0.85

Tested by

no test coverage detected