( taskId: string, metadata: RemoteAgentMetadata, )
| 363 | * from CCR on restore — only identity is persisted locally. |
| 364 | */ |
| 365 | export 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 | |
| 374 | export async function readRemoteAgentMetadata( |
| 375 | taskId: string, |
no test coverage detected