()
| 268 | let sdkTaskStore: InMemoryTaskStore | PostgresTaskStore | null = null; |
| 269 | |
| 270 | function getTaskStore(): InMemoryTaskStore | PostgresTaskStore { |
| 271 | if (!sdkTaskStore) { |
| 272 | sdkTaskStore = isDatabaseInitialized() |
| 273 | ? new PostgresTaskStore(getPool()) |
| 274 | : new InMemoryTaskStore(); |
| 275 | } |
| 276 | return sdkTaskStore; |
| 277 | } |
| 278 | |
| 279 | /** Look up which tools allow task augmentation. */ |
| 280 | function toolSupportsTask(toolName: string): boolean { |
no test coverage detected