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

Function initializeNextJsProject

lib/services/cli/cursor.ts:511–533  ·  view source on GitHub ↗
(
  projectId: string,
  projectPath: string,
  initialPrompt: string,
  model: string = CURSOR_DEFAULT_MODEL,
  requestId?: string,
)

Source from the content-addressed store, hash-verified

509}
510
511export async function initializeNextJsProject(
512 projectId: string,
513 projectPath: string,
514 initialPrompt: string,
515 model: string = CURSOR_DEFAULT_MODEL,
516 requestId?: string,
517): Promise<void> {
518 const fullPrompt = `
519Create a new Next.js application with the following requirements:
520${initialPrompt}
521
522Use the App Router, TypeScript, and Tailwind CSS.
523Set up the project structure and implement the requested features.`.trim();
524
525 await executeCursor(
526 projectId,
527 projectPath,
528 fullPrompt,
529 model ?? getDefaultModelForCli('cursor'),
530 undefined,
531 requestId,
532 );
533}
534
535export async function applyChanges(
536 projectId: string,

Callers

nothing calls this directly

Calls 2

getDefaultModelForCliFunction · 0.90
executeCursorFunction · 0.85

Tested by

no test coverage detected