( projectId: string, projectPath: string, initialPrompt: string, model: string = CURSOR_DEFAULT_MODEL, requestId?: string, )
| 509 | } |
| 510 | |
| 511 | export 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 = ` |
| 519 | Create a new Next.js application with the following requirements: |
| 520 | ${initialPrompt} |
| 521 | |
| 522 | Use the App Router, TypeScript, and Tailwind CSS. |
| 523 | Set 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 | |
| 535 | export async function applyChanges( |
| 536 | projectId: string, |
nothing calls this directly
no test coverage detected