MCPcopy Create free account
hub / github.com/callstack/agent-device / runInteractionHandler

Function runInteractionHandler

src/daemon/request-handler-chain.ts:154–167  ·  view source on GitHub ↗
(params: RequestHandlerChainParams)

Source from the content-addressed store, hash-verified

152}
153
154async 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
169function lazyImport<T>(load: () => Promise<T>): () => Promise<T> {
170 let modulePromise: Promise<T> | undefined;

Callers 1

runRequestHandlerChainFunction · 0.85

Calls 2

expectHandlerResponseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…