( taskId: string, )
| 344 | } |
| 345 | |
| 346 | export async function readRemoteAgentMetadata( |
| 347 | taskId: string, |
| 348 | ): Promise<RemoteAgentMetadata | null> { |
| 349 | const path = getRemoteAgentMetadataPath(taskId) |
| 350 | try { |
| 351 | const raw = await readFile(path, 'utf-8') |
| 352 | return JSON.parse(raw) as RemoteAgentMetadata |
| 353 | } catch (e) { |
| 354 | if (isFsInaccessible(e)) return null |
| 355 | throw e |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | export async function deleteRemoteAgentMetadata(taskId: string): Promise<void> { |
| 360 | const path = getRemoteAgentMetadataPath(taskId) |
nothing calls this directly
no test coverage detected