(params: {
lockedScope: LockedRequestScope;
logPath: string;
sessionStore: SessionStore;
})
| 259 | } |
| 260 | |
| 261 | async function dispatchGenericForLockedScope(params: { |
| 262 | lockedScope: LockedRequestScope; |
| 263 | logPath: string; |
| 264 | sessionStore: SessionStore; |
| 265 | }): Promise<DaemonResponse> { |
| 266 | const { lockedScope, logPath, sessionStore } = params; |
| 267 | const session = sessionStore.get(lockedScope.sessionName); |
| 268 | if (!session) { |
| 269 | return lockedScope.finalize(noActiveSessionError()); |
| 270 | } |
| 271 | |
| 272 | const dispatchResponse = await dispatchGenericCommand({ |
| 273 | req: lockedScope.req, |
| 274 | session, |
| 275 | sessionName: lockedScope.sessionName, |
| 276 | logPath, |
| 277 | sessionStore, |
| 278 | contextFromFlags: lockedScope.contextFromFlags, |
| 279 | }); |
| 280 | return lockedScope.finalize(dispatchResponse); |
| 281 | } |
| 282 | |
| 283 | function canRunReplayActionInCurrentScope( |
| 284 | req: DaemonRequest, |
no test coverage detected