MCPcopy
hub / github.com/opactorai/Claudable / applyChanges

Function applyChanges

lib/services/cli/cursor.ts:535–551  ·  view source on GitHub ↗
(
  projectId: string,
  projectPath: string,
  instruction: string,
  model: string = CURSOR_DEFAULT_MODEL,
  sessionId?: string | null,
  requestId?: string,
)

Source from the content-addressed store, hash-verified

533}
534
535export async function applyChanges(
536 projectId: string,
537 projectPath: string,
538 instruction: string,
539 model: string = CURSOR_DEFAULT_MODEL,
540 sessionId?: string | null,
541 requestId?: string,
542): Promise<void> {
543 await executeCursor(
544 projectId,
545 projectPath,
546 instruction,
547 model ?? getDefaultModelForCli('cursor'),
548 sessionId ?? undefined,
549 requestId,
550 );
551}
552
553type CursorRunResult =
554 | {

Callers

nothing calls this directly

Calls 2

getDefaultModelForCliFunction · 0.90
executeCursorFunction · 0.85

Tested by

no test coverage detected