(params: RequestHandlerChainParams)
| 152 | } |
| 153 | |
| 154 | async function runInteractionHandler(params: RequestHandlerChainParams): Promise<DaemonResponse> { |
| 155 | const { handleInteractionCommands } = await loadInteractionHandlerModule(); |
| 156 | return expectHandlerResponse( |
| 157 | params.req.command, |
| 158 | 'interaction', |
| 159 | await handleInteractionCommands({ |
| 160 | req: params.req, |
| 161 | sessionName: params.sessionName, |
| 162 | logPath: params.logPath, |
| 163 | sessionStore: params.sessionStore, |
| 164 | contextFromFlags: params.contextFromFlags, |
| 165 | }), |
| 166 | ); |
| 167 | } |
| 168 | |
| 169 | function lazyImport<T>(load: () => Promise<T>): () => Promise<T> { |
| 170 | let modulePromise: Promise<T> | undefined; |
no test coverage detected
searching dependent graphs…