(run: () => Promise<PiToolResult>)
| 89 | } |
| 90 | |
| 91 | async function guard(run: () => Promise<PiToolResult>): Promise<PiToolResult> { |
| 92 | try { |
| 93 | return await run() |
| 94 | } catch (error) { |
| 95 | return { text: getErrorMessage(error, 'SSH tool failed'), isError: true } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Best-effort working-tree snapshot of the repo over the run's SSH session, for |
no test coverage detected