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