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

Function initializeNextJsProject

lib/services/cli/codex.ts:1011–1027  ·  view source on GitHub ↗
(
  projectId: string,
  projectPath: string,
  initialPrompt: string,
  model: string = CODEX_DEFAULT_MODEL,
  requestId?: string,
)

Source from the content-addressed store, hash-verified

1009}
1010
1011export async function initializeNextJsProject(
1012 projectId: string,
1013 projectPath: string,
1014 initialPrompt: string,
1015 model: string = CODEX_DEFAULT_MODEL,
1016 requestId?: string,
1017): Promise<void> {
1018 const fullPrompt = `
1019Create a new Next.js 15 application with the following requirements:
1020${initialPrompt}
1021
1022Use App Router, TypeScript, and Tailwind CSS.
1023Set up the basic project structure and implement the requested features.
1024`.trim();
1025
1026 await executeCodex(projectId, projectPath, fullPrompt, model ?? getDefaultModelForCli('codex'), requestId, true);
1027}
1028
1029export async function applyChanges(
1030 projectId: string,

Callers

nothing calls this directly

Calls 2

getDefaultModelForCliFunction · 0.90
executeCodexFunction · 0.85

Tested by

no test coverage detected