(stateRoot: string)
| 853 | } |
| 854 | |
| 855 | async 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 | |
| 869 | async function readProcessStdin(): Promise<string> { |
| 870 | const chunks: Buffer[] = []; |
nothing calls this directly
no test coverage detected