(filePath: string)
| 310 | } |
| 311 | |
| 312 | function readFileIfExists(filePath: string): string | null { |
| 313 | if (!existsSync(filePath)) { |
| 314 | return null |
| 315 | } |
| 316 | |
| 317 | try { |
| 318 | return readFileSync(filePath, "utf-8") |
| 319 | } catch { |
| 320 | return null |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | export class PromptStore { |
| 325 | private readonly logger: Logger |
no outgoing calls
no test coverage detected