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

Function writeRemoteAgentMetadata

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

mkdirFunction · 0.85

Tested by

no test coverage detected