()
| 120 | * Ensure the session-specific tool results directory exists |
| 121 | */ |
| 122 | export async function ensureToolResultsDir(): Promise<void> { |
| 123 | try { |
| 124 | await mkdir(getToolResultsDir(), { recursive: true }) |
| 125 | } catch { |
| 126 | // Directory may already exist |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Persist a tool result to disk and return information about the persisted file |
no test coverage detected