export declare const serverTemplate = "import { createApiApp, createMcpApp, loadConfig } from \"ont-run\";\nimport { Hono } from \"hono\";\nimport { serve } from \"@hono/node-server\";\n\nconst { config, configDir, configPath } = await loadConfig();\nconst env = process.env.NODE_ENV === \"production\" ? \"prod\" : \"dev\";\n\nconst api = createApiApp({ config, configDir, configPath, env });\nconst mcp = await createMcpApp({ config, env });\n\n// Create a combined app\nconst app = new Hono();\n\n// Mount API and health routes (api includes /health and /api/*)\n// IMPORTANT: DO NOT ADD ROUTES HERE. YOU MUST EDIT ontology.config.ts\napp.route(\"/\", api);\n\n// Mount MCP endpoint\napp.all(\"/mcp\", (c) => mcp.fetch(c.req.raw));\n\n// In production, serve static files from dist/client\nif (env === \"prod\") {\n const { serveStatic } = await import(\"@hono/node-server/serve-static\");\n \n // Serve static files\n app.use(\"/*\", serveStatic({ root: \"./dist/client\" }));\n \n // Fallback to index.html for client-side routing (SPA)\n app.get(\"*\", serveStatic({ path: \"./dist/client/index.html\" }));\n}\n\n// Start server (both dev and prod)\nconst port = Number(process.env.PORT) || 3000;\nconsole.log(`Starting ${env} server on port ${port}...`);\n\nserve({\n fetch: app.fetch,\n port,\n});\n\nconsole.log(`\u2713 Server running at http://localhost:${port}`);\nconsole.log(`\u2713 API: http://localhost:${port}/api`);\nconsole.log(`\u2713 MCP: http://localhost:${port}/mcp`);\nif (env === \"dev\") {\n console.log(`\u2713 Frontend: Run 'npm run dev:vite' in another terminal`);\n}\n"; export declare const htmlTemplate = "\n\n
\n \n \n