()
| 126 | * Clear message history from file system |
| 127 | */ |
| 128 | export const clearMessageHistory = (): void => { |
| 129 | const historyPath = getMessageHistoryPath() |
| 130 | |
| 131 | try { |
| 132 | if (fs.existsSync(historyPath)) { |
| 133 | fs.unlinkSync(historyPath) |
| 134 | } |
| 135 | } catch (error) { |
| 136 | logger.error( |
| 137 | { |
| 138 | error: error instanceof Error ? error.message : String(error), |
| 139 | }, |
| 140 | 'Error clearing message history', |
| 141 | ) |
| 142 | } |
| 143 | } |
nothing calls this directly
no test coverage detected