MCPcopy Create free account
hub / github.com/tiann/hapi / cursorRemoteLauncher

Function cursorRemoteLauncher

cli/src/cursor/cursorRemoteLauncher.ts:7–16  ·  view source on GitHub ↗
(
    session: CursorSession,
    metadata?: Metadata | null
)

Source from the content-addressed store, hash-verified

5import { resolveCursorRemoteProtocol } from './utils/cursorProtocol';
6
7export async function cursorRemoteLauncher(
8 session: CursorSession,
9 metadata?: Metadata | null
10): Promise<'switch' | 'exit'> {
11 const protocol = resolveCursorRemoteProtocol(metadata);
12 if (protocol === 'stream-json') {
13 return cursorLegacyRemoteLauncher(session);
14 }
15 return cursorAcpRemoteLauncher(session);
16}

Callers 2

loopFunction · 0.90

Calls 3

cursorAcpRemoteLauncherFunction · 0.90

Tested by

no test coverage detected