( taskId: string, )
| 372 | } |
| 373 | |
| 374 | export async function readRemoteAgentMetadata( |
| 375 | taskId: string, |
| 376 | ): Promise<RemoteAgentMetadata | null> { |
| 377 | const path = getRemoteAgentMetadataPath(taskId) |
| 378 | try { |
| 379 | const raw = await readFile(path, 'utf-8') |
| 380 | return JSON.parse(raw) as RemoteAgentMetadata |
| 381 | } catch (e) { |
| 382 | if (isFsInaccessible(e)) return null |
| 383 | throw e |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | export async function deleteRemoteAgentMetadata(taskId: string): Promise<void> { |
| 388 | const path = getRemoteAgentMetadataPath(taskId) |
nothing calls this directly
no test coverage detected