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

Function isDefaultSpawnModel

cli/src/cursor/utils/cursorAcpBackend.ts:13–17  ·  view source on GitHub ↗
(model: string | null | undefined)

Source from the content-addressed store, hash-verified

11}
12
13function isDefaultSpawnModel(model: string | null | undefined): boolean {
14 if (!model) return true;
15 const normalized = model.trim().toLowerCase();
16 return normalized === 'auto' || normalized === 'default' || normalized === 'default[]';
17}
18
19export function createCursorAcpBackend(opts: { cwd: string; model?: string | null }): AcpSdkBackend {
20 const args = ['acp'];

Callers 1

createCursorAcpBackendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected