| 1274 | } |
| 1275 | |
| 1276 | function generateEnvExample(args: CLIArgs): string { |
| 1277 | const lines = [ |
| 1278 | "# API Keys (shared across integrations)", |
| 1279 | "OPENAI_API_KEY=sk-...", |
| 1280 | "ANTHROPIC_API_KEY=sk-ant-...", |
| 1281 | "", |
| 1282 | ]; |
| 1283 | |
| 1284 | if (args.language !== "typescript") { |
| 1285 | lines.push("# Agent backend URL (for the CopilotKit runtime proxy)"); |
| 1286 | lines.push("AGENT_URL=http://localhost:8000"); |
| 1287 | lines.push(""); |
| 1288 | } |
| 1289 | |
| 1290 | lines.push("# Showcase"); |
| 1291 | lines.push("NEXT_PUBLIC_BASE_URL=http://localhost:3000"); |
| 1292 | |
| 1293 | return lines.join("\n") + "\n"; |
| 1294 | } |
| 1295 | |
| 1296 | function generateAgentServer(args: CLIArgs): string { |
| 1297 | if (args.language === "typescript") { |