MCPcopy Create free account
hub / github.com/apache/maka / invokeProjectedSessionRuntimeHost

Function invokeProjectedSessionRuntimeHost

apps/desktop/src/preload/preload.ts:441–454  ·  view source on GitHub ↗
(
  channel: string,
  sessionId: string,
  ...args: unknown[]
)

Source from the content-addressed store, hash-verified

439}
440
441async function invokeProjectedSessionRuntimeHost<T>(
442 channel: string,
443 sessionId: string,
444 ...args: unknown[]
445): Promise<T> {
446 const session = await runtimeHostSessionRef(sessionId);
447 const value = await ipcRenderer.invoke(
448 channel,
449 session.scope,
450 session.sessionId,
451 ...args,
452 ) as T;
453 return projectProtocolSessionIds(session.scope.hostId, value);
454}
455
456async function invokeSessionSummary(
457 channel: string,

Callers 7

listFunction · 0.85
getFunction · 0.85
listTurnLandmarksFunction · 0.85
getPlanStateFunction · 0.85
requestPlanRevisionFunction · 0.85
abandonPlanProposalFunction · 0.85
abandonPlanExecutionFunction · 0.85

Calls 3

runtimeHostSessionRefFunction · 0.85
invokeMethod · 0.80

Tested by

no test coverage detected