(id: string, isJson: boolean)
| 112 | * Get the filepath where a tool result would be persisted. |
| 113 | */ |
| 114 | export function getToolResultPath(id: string, isJson: boolean): string { |
| 115 | const ext = isJson ? 'json' : 'txt' |
| 116 | return join(getToolResultsDir(), `${id}.${ext}`) |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Ensure the session-specific tool results directory exists |
no test coverage detected