(taskId: string)
| 385 | } |
| 386 | |
| 387 | export async function deleteRemoteAgentMetadata(taskId: string): Promise<void> { |
| 388 | const path = getRemoteAgentMetadataPath(taskId) |
| 389 | try { |
| 390 | await unlink(path) |
| 391 | } catch (e) { |
| 392 | if (isFsInaccessible(e)) return |
| 393 | throw e |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * Scan the remote-agents/ directory for all persisted metadata files. |
no test coverage detected