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

Function listRuntimeHostActivationSessions

packages/cli/src/activation-command.ts:855–867  ·  view source on GitHub ↗
(stateRoot: string)

Source from the content-addressed store, hash-verified

853}
854
855async function listRuntimeHostActivationSessions(stateRoot: string): Promise<SessionSummary[]> {
856 const connected = await connectRuntimeHostCli({
857 rootPath: stateRoot,
858 surface: 'activation',
859 });
860 try {
861 return (await readRuntimeHostSessions(connected.connection)).flatMap((session) =>
862 'kind' in session ? [] : [runtimeHostSessionSummary(session)],
863 );
864 } finally {
865 await connected.close();
866 }
867}
868
869async function readProcessStdin(): Promise<string> {
870 const chunks: Buffer[] = [];

Callers

nothing calls this directly

Calls 4

readRuntimeHostSessionsFunction · 0.90
connectRuntimeHostCliFunction · 0.85
closeMethod · 0.65

Tested by

no test coverage detected