( taskId: string, metadata: RemoteAgentMetadata, )
| 336 | * from CCR on restore — only identity is persisted locally. |
| 337 | */ |
| 338 | export 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 | |
| 347 | export async function readRemoteAgentMetadata( |
| 348 | taskId: string, |
no test coverage detected