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