sqlbot 0.0.1 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +2 -2
  3. package/.next/standalone/.next/server/app/(chat)/ai-providers/page_client-reference-manifest.js +1 -1
  4. package/.next/standalone/.next/server/app/(chat)/chat/[threadId]/page.js +2 -2
  5. package/.next/standalone/.next/server/app/(chat)/chat/[threadId]/page.js.nft.json +1 -1
  6. package/.next/standalone/.next/server/app/(chat)/chat/[threadId]/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/.next/server/app/(chat)/connections/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/.next/server/app/(chat)/knowledge-base/page.js +1 -1
  9. package/.next/standalone/.next/server/app/(chat)/knowledge-base/page.js.nft.json +1 -1
  10. package/.next/standalone/.next/server/app/(chat)/knowledge-base/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/(chat)/page.js +1 -1
  12. package/.next/standalone/.next/server/app/(chat)/page.js.nft.json +1 -1
  13. package/.next/standalone/.next/server/app/(chat)/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  15. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  16. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  17. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  18. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  19. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  20. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  21. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  22. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  23. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  24. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  25. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  26. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  27. package/.next/standalone/.next/server/app/ai-providers.html +1 -1
  28. package/.next/standalone/.next/server/app/ai-providers.rsc +3 -3
  29. package/.next/standalone/.next/server/app/ai-providers.segments/!KGNoYXQp/ai-providers/__PAGE__.segment.rsc +2 -2
  30. package/.next/standalone/.next/server/app/ai-providers.segments/!KGNoYXQp/ai-providers.segment.rsc +1 -1
  31. package/.next/standalone/.next/server/app/ai-providers.segments/!KGNoYXQp.segment.rsc +1 -1
  32. package/.next/standalone/.next/server/app/ai-providers.segments/_full.segment.rsc +3 -3
  33. package/.next/standalone/.next/server/app/ai-providers.segments/_index.segment.rsc +1 -1
  34. package/.next/standalone/.next/server/app/ai-providers.segments/_tree.segment.rsc +2 -2
  35. package/.next/standalone/.next/server/app/api/chat/route.js +1 -1
  36. package/.next/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
  37. package/.next/standalone/.next/server/app/api/health/route.js +1 -1
  38. package/.next/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/api/knowledge/auto-generate/route.js +1 -1
  40. package/.next/standalone/.next/server/app/api/knowledge/auto-generate/route.js.nft.json +1 -1
  41. package/.next/standalone/.next/server/app/api/knowledge/generate/route.js +1 -1
  42. package/.next/standalone/.next/server/app/api/knowledge/generate/route.js.nft.json +1 -1
  43. package/.next/standalone/.next/server/app/api/trpc/[trpc]/route.js +3 -3
  44. package/.next/standalone/.next/server/app/api/trpc/[trpc]/route.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/connections.html +1 -1
  46. package/.next/standalone/.next/server/app/connections.rsc +3 -3
  47. package/.next/standalone/.next/server/app/connections.segments/!KGNoYXQp/connections/__PAGE__.segment.rsc +2 -2
  48. package/.next/standalone/.next/server/app/connections.segments/!KGNoYXQp/connections.segment.rsc +1 -1
  49. package/.next/standalone/.next/server/app/connections.segments/!KGNoYXQp.segment.rsc +1 -1
  50. package/.next/standalone/.next/server/app/connections.segments/_full.segment.rsc +3 -3
  51. package/.next/standalone/.next/server/app/connections.segments/_index.segment.rsc +1 -1
  52. package/.next/standalone/.next/server/app/connections.segments/_tree.segment.rsc +2 -2
  53. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1f49434f._.js +3 -0
  54. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__51b79d66._.js → [root-of-the-server]__3a1fb665._.js} +6 -6
  55. package/.next/standalone/.next/server/chunks/[root-of-the-server]__73947e32._.js +3 -0
  56. package/.next/standalone/.next/server/chunks/[root-of-the-server]__747722f0._.js +85 -0
  57. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ca89cb1f._.js +85 -0
  58. package/.next/standalone/.next/server/chunks/_26ec1867._.js +13 -13
  59. package/.next/standalone/.next/server/chunks/_430c5305._.js +13 -13
  60. package/.next/standalone/.next/server/chunks/_44fa1f03._.js +1 -1
  61. package/.next/standalone/.next/server/chunks/_75b542e9._.js +1 -1
  62. package/.next/standalone/.next/server/chunks/_82e2d86b._.js +11 -11
  63. package/.next/standalone/.next/server/chunks/_c49f2a1f._.js +13 -13
  64. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__d8a3f2e3._.js → [root-of-the-server]__1ad22765._.js} +2 -2
  65. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__2534236b._.js +1 -1
  66. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__77c3448a._.js +1 -1
  67. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__85abb029._.js +3 -0
  68. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__d2e81be0._.js +3 -0
  69. package/.next/standalone/.next/server/chunks/ssr/_119ae296._.js +12 -12
  70. package/.next/standalone/.next/server/chunks/ssr/_37f7f89d._.js +1 -1
  71. package/.next/standalone/.next/server/chunks/ssr/src_components_connections_connections-page_tsx_a8fa3df0._.js +1 -1
  72. package/.next/standalone/.next/server/chunks/ssr/src_components_knowledge-base_knowledge-base-page_tsx_10bf7f9a._.js +1 -1
  73. package/.next/standalone/.next/server/pages/404.html +1 -1
  74. package/.next/standalone/.next/server/pages/500.html +2 -2
  75. package/.next/{static/chunks/b90a78e2d36034ff.js → standalone/.next/static/chunks/00f68930e8af39f1.js} +1 -1
  76. package/.next/standalone/.next/static/chunks/3bd88f74116ecf0b.js +1 -0
  77. package/.next/standalone/.next/static/chunks/89e492a83a4b53e3.js +1 -0
  78. package/.next/standalone/.next/static/chunks/{842e82429bd01d96.js → a3a8f6ede99c1c63.js} +1 -1
  79. package/.next/standalone/README.md +1 -1
  80. package/.next/standalone/package.json +1 -1
  81. package/.next/{standalone/.next/static/chunks/b90a78e2d36034ff.js → static/chunks/00f68930e8af39f1.js} +1 -1
  82. package/.next/static/chunks/3bd88f74116ecf0b.js +1 -0
  83. package/.next/static/chunks/89e492a83a4b53e3.js +1 -0
  84. package/.next/static/chunks/{842e82429bd01d96.js → a3a8f6ede99c1c63.js} +1 -1
  85. package/README.md +1 -1
  86. package/package.json +1 -1
  87. package/.next/standalone/.next/server/chunks/[root-of-the-server]__26852352._.js +0 -85
  88. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5dc46bc4._.js +0 -3
  89. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8992d6da._.js +0 -3
  90. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e474c328._.js +0 -85
  91. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0e727499._.js +0 -3
  92. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4451526a._.js +0 -3
  93. package/.next/standalone/.next/static/chunks/000ce5d236847e14.js +0 -1
  94. package/.next/standalone/.next/static/chunks/7c8dab1a077d98e9.js +0 -1
  95. package/.next/static/chunks/000ce5d236847e14.js +0 -1
  96. package/.next/static/chunks/7c8dab1a077d98e9.js +0 -1
  97. /package/.next/standalone/.next/static/{H1e0tcZUy-dcOaNBJh3iW → MtWdFBWYBrNNpdc-evjbH}/_buildManifest.js +0 -0
  98. /package/.next/standalone/.next/static/{H1e0tcZUy-dcOaNBJh3iW → MtWdFBWYBrNNpdc-evjbH}/_clientMiddlewareManifest.json +0 -0
  99. /package/.next/standalone/.next/static/{H1e0tcZUy-dcOaNBJh3iW → MtWdFBWYBrNNpdc-evjbH}/_ssgManifest.js +0 -0
  100. /package/.next/static/{H1e0tcZUy-dcOaNBJh3iW → MtWdFBWYBrNNpdc-evjbH}/_buildManifest.js +0 -0
  101. /package/.next/static/{H1e0tcZUy-dcOaNBJh3iW → MtWdFBWYBrNNpdc-evjbH}/_clientMiddlewareManifest.json +0 -0
  102. /package/.next/static/{H1e0tcZUy-dcOaNBJh3iW → MtWdFBWYBrNNpdc-evjbH}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><!--H1e0tcZUy_dcOaNBJh3iW--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/chunks/2473c16c0c2f6b5f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/3799f4ad1dc31445.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/124bc670aadbcaaa.js"/><script src="/_next/static/chunks/e49035715a3b468c.js" async=""></script><script src="/_next/static/chunks/8b181cdae656a3a3.js" async=""></script><script src="/_next/static/chunks/ee4ef5db2df5a4d4.js" async=""></script><script src="/_next/static/chunks/3d40e553ae400c39.js" async=""></script><script src="/_next/static/chunks/turbopack-e0f8f63596dbdf82.js" async=""></script><script src="/_next/static/chunks/8d7447b91a6a2b1d.js" async=""></script><script src="/_next/static/chunks/44306e436a72cf18.js" async=""></script><script src="/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/_next/static/chunks/d80b3790a119a285.js" async=""></script><script src="/_next/static/chunks/052b769781f179fb.js" async=""></script><script src="/_next/static/chunks/d3d6e96c79ecf7ff.js" async=""></script><script src="/_next/static/chunks/7c8dab1a077d98e9.js" async=""></script><script src="/_next/static/chunks/395473ba68358e71.js" async=""></script><script src="/_next/static/chunks/27f1f589cc35ce7f.js" async=""></script><meta name="next-size-adjust" content=""/><title>CLAY</title><meta name="description" content="Ask questions about your database in natural language"/><link rel="icon" href="/favicon.ico?favicon.0b3bf435.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased"><div hidden=""><!--$--><!--/$--></div><style>#nprogress{pointer-events:none}#nprogress .bar{background:var(--primary);position:fixed;z-index:1600;top: 0;left:0;width:100%;height:3px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px var(--primary),0 0 5px var(--primary);opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translate(0px,-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1600;top: 15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:2px solid transparent;border-top-color:var(--primary);border-left-color:var(--primary);border-radius:50%;-webkit-animation:nprogress-spinner 400ms linear infinite;animation:nprogress-spinner 400ms linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style><noscript><div class="fixed top-0 left-0 w-full bg-orange-500 text-foreground p-4 text-center z-1000">JavaScript is disabled in your browser. Please enable JavaScript to use all features of this application.</div></noscript><!--$--><!--/$--><div class="min-h-screen bg-background overflow-x-hidden"><header class="border-b border-border/40 bg-background/80 backdrop-blur sticky top-0 z-10"><div class="max-w-5xl mx-auto flex items-center gap-4 px-4 sm:px-6 py-4"><button data-slot="button" class="inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_svg]:shrink-0 outline-none focus-visible:ring-ring/30 focus-visible:ring-2 aria-invalid:ring-destructive/30 aria-invalid:ring-2 cursor-pointer hover:bg-accent hover:text-accent-foreground h-8 rounded-lg px-3 has-[&gt;svg]:px-2.5 gap-1.5"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left h-4 w-4" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg><span class="hidden sm:inline">Back to Chat</span></button><div class="flex-1"></div><h1 class="text-sm font-semibold">CLAY</h1></div></header><div class="max-w-5xl mx-auto px-4 sm:px-6 py-5 sm:py-8"><div class="space-y-3 sm:space-y-0 sm:flex sm:items-start sm:justify-between sm:gap-4 mb-6 sm:mb-8"><div class="min-w-0"><h2 class="text-xl sm:text-2xl font-bold tracking-tight">Connections</h2><p class="text-sm text-muted-foreground mt-1 hidden sm:block">Manage your database connections. Supports PostgreSQL, Redshift, MySQL, SQLite, and CSV imports.</p></div><div class="flex items-center gap-2 shrink-0"><a data-slot="button" class="inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 [&amp;_svg]:shrink-0 outline-none focus-visible:ring-ring/30 focus-visible:ring-2 aria-invalid:ring-destructive/30 aria-invalid:ring-2 cursor-pointer bg-elevated hover:bg-muted/50 shadow-sm h-8 rounded-lg px-3 has-[&gt;svg]:px-2.5 gap-1.5 shrink-0" href="/ai-providers"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles h-4 w-4" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg><span class="hidden sm:inline">AI Providers</span></a><a data-slot="button" class="inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 [&amp;_svg]:shrink-0 outline-none focus-visible:ring-ring/30 focus-visible:ring-2 aria-invalid:ring-destructive/30 aria-invalid:ring-2 cursor-pointer bg-elevated hover:bg-muted/50 shadow-sm h-8 rounded-lg px-3 has-[&gt;svg]:px-2.5 gap-1.5 shrink-0" href="/knowledge-base"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open h-4 w-4" aria-hidden="true"><path d="M12 7v14"></path><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"></path></svg><span class="hidden sm:inline">Knowledge Base</span></a><button data-slot="button" class="inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 [&amp;_svg]:shrink-0 outline-none focus-visible:ring-ring/30 focus-visible:ring-2 aria-invalid:ring-destructive/30 aria-invalid:ring-2 cursor-pointer bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm h-8 rounded-lg px-3 has-[&gt;svg]:px-2.5 gap-1.5 shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus h-4 w-4" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg><span class="sm:hidden">Add</span><span class="hidden sm:inline">Add Connection</span></button></div></div></div><div class="max-w-5xl mx-auto px-4 sm:px-6 -mt-4 sm:-mt-8 pb-8 sm:pb-12"><div class="flex items-center justify-center py-20"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle h-6 w-6 animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/124bc670aadbcaaa.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[818421,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"default\"]\n4:I[12985,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"NuqsAdapter\"]\n5:I[289062,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"JotaiProvider\"]\n6:I[874998,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"TRPCProvider\"]\n7:I[339756,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"default\"]\n8:I[837457,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"default\"]\n9:I[846696,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"Toaster\"]\na:I[775258,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\",\"/_next/static/chunks/052b769781f179fb.js\",\"/_next/static/chunks/d3d6e96c79ecf7ff.js\",\"/_next/static/chunks/7c8dab1a077d98e9.js\",\"/_next/static/chunks/395473ba68358e71.js\",\"/_next/static/chunks/27f1f589cc35ce7f.js\"],\"ConnectionsPage\"]\nb:I[897367,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"OutletBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[897367,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"ViewportBoundary\"]\n10:I[897367,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"MetadataBoundary\"]\n12:I[168027,[],\"default\"]\n:HL[\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"style\"]\n:HL[\"/_next/static/chunks/3799f4ad1dc31445.css\",\"style\"]\n:HL[\"/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n3:[\"$\",\"div\",null,{\"className\":\"fixed top-0 left-0 w-full bg-orange-500 text-foreground p-4 text-center z-1000\",\"children\":\"JavaScript is disabled in your browser. Please enable JavaScript to use all features of this application.\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"H1e0tcZUy-dcOaNBJh3iW\",\"c\":[\"\",\"connections\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"(chat)\",{\"children\":[\"connections\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3799f4ad1dc31445.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/44306e436a72cf18.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased\",\"children\":[[\"$\",\"$L2\",null,{\"showSpinner\":false,\"color\":\"var(--primary)\"}],[\"$\",\"noscript\",null,{\"children\":\"$3\"}],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}],[\"$\",\"$L9\",null,{\"richColors\":true,\"position\":\"top-center\"}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$La\",null,{}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/052b769781f179fb.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/d3d6e96c79ecf7ff.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/7c8dab1a077d98e9.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/395473ba68358e71.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/_next/static/chunks/27f1f589cc35ce7f.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@d\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Le\",null,{\"children\":\"$@f\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L10\",null,{\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.Metadata\",\"children\":\"$@11\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$12\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"13:I[27201,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"IconMark\"]\n11:[[\"$\",\"title\",\"0\",{\"children\":\"CLAY\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Ask questions about your database in natural language\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0b3bf435.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L13\",\"3\",{}]]\nd:null\n"])</script></body></html>
1
+ <!DOCTYPE html><!--MtWdFBWYBrNNpdc_evjbH--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/chunks/2473c16c0c2f6b5f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/3799f4ad1dc31445.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/124bc670aadbcaaa.js"/><script src="/_next/static/chunks/e49035715a3b468c.js" async=""></script><script src="/_next/static/chunks/8b181cdae656a3a3.js" async=""></script><script src="/_next/static/chunks/ee4ef5db2df5a4d4.js" async=""></script><script src="/_next/static/chunks/3d40e553ae400c39.js" async=""></script><script src="/_next/static/chunks/turbopack-e0f8f63596dbdf82.js" async=""></script><script src="/_next/static/chunks/8d7447b91a6a2b1d.js" async=""></script><script src="/_next/static/chunks/44306e436a72cf18.js" async=""></script><script src="/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/_next/static/chunks/d80b3790a119a285.js" async=""></script><script src="/_next/static/chunks/052b769781f179fb.js" async=""></script><script src="/_next/static/chunks/d3d6e96c79ecf7ff.js" async=""></script><script src="/_next/static/chunks/3bd88f74116ecf0b.js" async=""></script><script src="/_next/static/chunks/395473ba68358e71.js" async=""></script><script src="/_next/static/chunks/27f1f589cc35ce7f.js" async=""></script><meta name="next-size-adjust" content=""/><title>SQLBOT</title><meta name="description" content="Ask questions about your database in natural language"/><link rel="icon" href="/favicon.ico?favicon.0b3bf435.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased"><div hidden=""><!--$--><!--/$--></div><style>#nprogress{pointer-events:none}#nprogress .bar{background:var(--primary);position:fixed;z-index:1600;top: 0;left:0;width:100%;height:3px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px var(--primary),0 0 5px var(--primary);opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translate(0px,-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1600;top: 15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:2px solid transparent;border-top-color:var(--primary);border-left-color:var(--primary);border-radius:50%;-webkit-animation:nprogress-spinner 400ms linear infinite;animation:nprogress-spinner 400ms linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style><noscript><div class="fixed top-0 left-0 w-full bg-orange-500 text-foreground p-4 text-center z-1000">JavaScript is disabled in your browser. Please enable JavaScript to use all features of this application.</div></noscript><!--$--><!--/$--><div class="min-h-screen bg-background overflow-x-hidden"><header class="border-b border-border/40 bg-background/80 backdrop-blur sticky top-0 z-10"><div class="max-w-5xl mx-auto flex items-center gap-4 px-4 sm:px-6 py-4"><button data-slot="button" class="inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_svg]:shrink-0 outline-none focus-visible:ring-ring/30 focus-visible:ring-2 aria-invalid:ring-destructive/30 aria-invalid:ring-2 cursor-pointer hover:bg-accent hover:text-accent-foreground h-8 rounded-lg px-3 has-[&gt;svg]:px-2.5 gap-1.5"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left h-4 w-4" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg><span class="hidden sm:inline">Back to Chat</span></button><div class="flex-1"></div><h1 class="text-sm font-semibold uppercase tracking-wider">SQLBOT</h1></div></header><div class="max-w-5xl mx-auto px-4 sm:px-6 py-5 sm:py-8"><div class="space-y-3 sm:space-y-0 sm:flex sm:items-start sm:justify-between sm:gap-4 mb-6 sm:mb-8"><div class="min-w-0"><h2 class="text-xl sm:text-2xl font-bold tracking-tight">Connections</h2><p class="text-sm text-muted-foreground mt-1 hidden sm:block">Manage your database connections. Supports PostgreSQL, Redshift, MySQL, SQLite, and CSV imports.</p></div><div class="flex items-center gap-2 shrink-0"><a data-slot="button" class="inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 [&amp;_svg]:shrink-0 outline-none focus-visible:ring-ring/30 focus-visible:ring-2 aria-invalid:ring-destructive/30 aria-invalid:ring-2 cursor-pointer bg-elevated hover:bg-muted/50 shadow-sm h-8 rounded-lg px-3 has-[&gt;svg]:px-2.5 gap-1.5 shrink-0" href="/ai-providers"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles h-4 w-4" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg><span class="hidden sm:inline">AI Providers</span></a><a data-slot="button" class="inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 [&amp;_svg]:shrink-0 outline-none focus-visible:ring-ring/30 focus-visible:ring-2 aria-invalid:ring-destructive/30 aria-invalid:ring-2 cursor-pointer bg-elevated hover:bg-muted/50 shadow-sm h-8 rounded-lg px-3 has-[&gt;svg]:px-2.5 gap-1.5 shrink-0" href="/knowledge-base"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open h-4 w-4" aria-hidden="true"><path d="M12 7v14"></path><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"></path></svg><span class="hidden sm:inline">Knowledge Base</span></a><button data-slot="button" class="inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 [&amp;_svg]:shrink-0 outline-none focus-visible:ring-ring/30 focus-visible:ring-2 aria-invalid:ring-destructive/30 aria-invalid:ring-2 cursor-pointer bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm h-8 rounded-lg px-3 has-[&gt;svg]:px-2.5 gap-1.5 shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus h-4 w-4" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg><span class="sm:hidden">Add</span><span class="hidden sm:inline">Add Connection</span></button></div></div></div><div class="max-w-5xl mx-auto px-4 sm:px-6 -mt-4 sm:-mt-8 pb-8 sm:pb-12"><div class="flex items-center justify-center py-20"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle h-6 w-6 animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/124bc670aadbcaaa.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[818421,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"default\"]\n4:I[12985,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"NuqsAdapter\"]\n5:I[289062,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"JotaiProvider\"]\n6:I[874998,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"TRPCProvider\"]\n7:I[339756,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"default\"]\n8:I[837457,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"default\"]\n9:I[846696,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\"],\"Toaster\"]\na:I[775258,[\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"/_next/static/chunks/44306e436a72cf18.js\",\"/_next/static/chunks/052b769781f179fb.js\",\"/_next/static/chunks/d3d6e96c79ecf7ff.js\",\"/_next/static/chunks/3bd88f74116ecf0b.js\",\"/_next/static/chunks/395473ba68358e71.js\",\"/_next/static/chunks/27f1f589cc35ce7f.js\"],\"ConnectionsPage\"]\nb:I[897367,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"OutletBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[897367,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"ViewportBoundary\"]\n10:I[897367,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"MetadataBoundary\"]\n12:I[168027,[],\"default\"]\n:HL[\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"style\"]\n:HL[\"/_next/static/chunks/3799f4ad1dc31445.css\",\"style\"]\n:HL[\"/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n3:[\"$\",\"div\",null,{\"className\":\"fixed top-0 left-0 w-full bg-orange-500 text-foreground p-4 text-center z-1000\",\"children\":\"JavaScript is disabled in your browser. Please enable JavaScript to use all features of this application.\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"MtWdFBWYBrNNpdc-evjbH\",\"c\":[\"\",\"connections\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"(chat)\",{\"children\":[\"connections\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2473c16c0c2f6b5f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3799f4ad1dc31445.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/8d7447b91a6a2b1d.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/44306e436a72cf18.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased\",\"children\":[[\"$\",\"$L2\",null,{\"showSpinner\":false,\"color\":\"var(--primary)\"}],[\"$\",\"noscript\",null,{\"children\":\"$3\"}],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}],[\"$\",\"$L9\",null,{\"richColors\":true,\"position\":\"top-center\"}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$La\",null,{}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/052b769781f179fb.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/d3d6e96c79ecf7ff.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/3bd88f74116ecf0b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/395473ba68358e71.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/_next/static/chunks/27f1f589cc35ce7f.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@d\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Le\",null,{\"children\":\"$@f\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L10\",null,{\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.Metadata\",\"children\":\"$@11\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$12\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"13:I[27201,[\"/_next/static/chunks/d96012bcfc98706a.js\",\"/_next/static/chunks/d80b3790a119a285.js\"],\"IconMark\"]\n11:[[\"$\",\"title\",\"0\",{\"children\":\"SQLBOT\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Ask questions about your database in natural language\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0b3bf435.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L13\",\"3\",{}]]\nd:null\n"])</script></body></html>
@@ -6,7 +6,7 @@
6
6
  7:I[339756,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"default"]
7
7
  8:I[837457,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"default"]
8
8
  9:I[846696,["/_next/static/chunks/8d7447b91a6a2b1d.js","/_next/static/chunks/44306e436a72cf18.js"],"Toaster"]
9
- a:I[775258,["/_next/static/chunks/8d7447b91a6a2b1d.js","/_next/static/chunks/44306e436a72cf18.js","/_next/static/chunks/052b769781f179fb.js","/_next/static/chunks/d3d6e96c79ecf7ff.js","/_next/static/chunks/7c8dab1a077d98e9.js","/_next/static/chunks/395473ba68358e71.js","/_next/static/chunks/27f1f589cc35ce7f.js"],"ConnectionsPage"]
9
+ a:I[775258,["/_next/static/chunks/8d7447b91a6a2b1d.js","/_next/static/chunks/44306e436a72cf18.js","/_next/static/chunks/052b769781f179fb.js","/_next/static/chunks/d3d6e96c79ecf7ff.js","/_next/static/chunks/3bd88f74116ecf0b.js","/_next/static/chunks/395473ba68358e71.js","/_next/static/chunks/27f1f589cc35ce7f.js"],"ConnectionsPage"]
10
10
  b:I[897367,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"OutletBoundary"]
11
11
  c:"$Sreact.suspense"
12
12
  e:I[897367,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"ViewportBoundary"]
@@ -17,8 +17,8 @@ e:I[897367,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80
17
17
  :HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
18
18
  :HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
19
19
  3:["$","div",null,{"className":"fixed top-0 left-0 w-full bg-orange-500 text-foreground p-4 text-center z-1000","children":"JavaScript is disabled in your browser. Please enable JavaScript to use all features of this application."}]
20
- 0:{"P":null,"b":"H1e0tcZUy-dcOaNBJh3iW","c":["","connections"],"q":"","i":false,"f":[[["",{"children":["(chat)",{"children":["connections",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/3799f4ad1dc31445.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/8d7447b91a6a2b1d.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/44306e436a72cf18.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{"showSpinner":false,"color":"var(--primary)"}],["$","noscript",null,{"children":"$3"}],["$","$L4",null,{"children":["$","$L5",null,{"children":["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}],["$","$L9",null,{"richColors":true,"position":"top-center"}]]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$La",null,{}],[["$","script","script-0",{"src":"/_next/static/chunks/052b769781f179fb.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/d3d6e96c79ecf7ff.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/7c8dab1a077d98e9.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/395473ba68358e71.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/27f1f589cc35ce7f.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,false]},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$@f"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$@11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[]],"s":false,"S":true}
20
+ 0:{"P":null,"b":"MtWdFBWYBrNNpdc-evjbH","c":["","connections"],"q":"","i":false,"f":[[["",{"children":["(chat)",{"children":["connections",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/3799f4ad1dc31445.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/8d7447b91a6a2b1d.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/44306e436a72cf18.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{"showSpinner":false,"color":"var(--primary)"}],["$","noscript",null,{"children":"$3"}],["$","$L4",null,{"children":["$","$L5",null,{"children":["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}],["$","$L9",null,{"richColors":true,"position":"top-center"}]]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$La",null,{}],[["$","script","script-0",{"src":"/_next/static/chunks/052b769781f179fb.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/d3d6e96c79ecf7ff.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/3bd88f74116ecf0b.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/395473ba68358e71.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/27f1f589cc35ce7f.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,false]},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$@f"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$@11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[]],"s":false,"S":true}
21
21
  f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
22
22
  13:I[27201,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"IconMark"]
23
- 11:[["$","title","0",{"children":"CLAY"}],["$","meta","1",{"name":"description","content":"Ask questions about your database in natural language"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0b3bf435.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L13","3",{}]]
23
+ 11:[["$","title","0",{"children":"SQLBOT"}],["$","meta","1",{"name":"description","content":"Ask questions about your database in natural language"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0b3bf435.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L13","3",{}]]
24
24
  d:null
@@ -1,6 +1,6 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[775258,["/_next/static/chunks/8d7447b91a6a2b1d.js","/_next/static/chunks/44306e436a72cf18.js","/_next/static/chunks/052b769781f179fb.js","/_next/static/chunks/d3d6e96c79ecf7ff.js","/_next/static/chunks/7c8dab1a077d98e9.js","/_next/static/chunks/395473ba68358e71.js","/_next/static/chunks/27f1f589cc35ce7f.js"],"ConnectionsPage"]
2
+ 2:I[775258,["/_next/static/chunks/8d7447b91a6a2b1d.js","/_next/static/chunks/44306e436a72cf18.js","/_next/static/chunks/052b769781f179fb.js","/_next/static/chunks/d3d6e96c79ecf7ff.js","/_next/static/chunks/3bd88f74116ecf0b.js","/_next/static/chunks/395473ba68358e71.js","/_next/static/chunks/27f1f589cc35ce7f.js"],"ConnectionsPage"]
3
3
  3:I[897367,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"OutletBoundary"]
4
4
  4:"$Sreact.suspense"
5
- 0:{"buildId":"H1e0tcZUy-dcOaNBJh3iW","rsc":["$","$1","c",{"children":[["$","$L2",null,{}],[["$","script","script-0",{"src":"/_next/static/chunks/052b769781f179fb.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/d3d6e96c79ecf7ff.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/7c8dab1a077d98e9.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/395473ba68358e71.js","async":true}],["$","script","script-4",{"src":"/_next/static/chunks/27f1f589cc35ce7f.js","async":true}]],["$","$L3",null,{"children":["$","$4",null,{"name":"Next.MetadataOutlet","children":"$@5"}]}]]}],"loading":null,"isPartial":false}
5
+ 0:{"buildId":"MtWdFBWYBrNNpdc-evjbH","rsc":["$","$1","c",{"children":[["$","$L2",null,{}],[["$","script","script-0",{"src":"/_next/static/chunks/052b769781f179fb.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/d3d6e96c79ecf7ff.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/3bd88f74116ecf0b.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/395473ba68358e71.js","async":true}],["$","script","script-4",{"src":"/_next/static/chunks/27f1f589cc35ce7f.js","async":true}]],["$","$L3",null,{"children":["$","$4",null,{"name":"Next.MetadataOutlet","children":"$@5"}]}]]}],"loading":null,"isPartial":false}
6
6
  5:null
@@ -1,4 +1,4 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[339756,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"default"]
3
3
  3:I[837457,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"default"]
4
- 0:{"buildId":"H1e0tcZUy-dcOaNBJh3iW","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
4
+ 0:{"buildId":"MtWdFBWYBrNNpdc-evjbH","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
@@ -1,4 +1,4 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[339756,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"default"]
3
3
  3:I[837457,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"default"]
4
- 0:{"buildId":"H1e0tcZUy-dcOaNBJh3iW","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]]}],"loading":null,"isPartial":false}
4
+ 0:{"buildId":"MtWdFBWYBrNNpdc-evjbH","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]]}],"loading":null,"isPartial":false}
@@ -6,7 +6,7 @@
6
6
  7:I[339756,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"default"]
7
7
  8:I[837457,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"default"]
8
8
  9:I[846696,["/_next/static/chunks/8d7447b91a6a2b1d.js","/_next/static/chunks/44306e436a72cf18.js"],"Toaster"]
9
- a:I[775258,["/_next/static/chunks/8d7447b91a6a2b1d.js","/_next/static/chunks/44306e436a72cf18.js","/_next/static/chunks/052b769781f179fb.js","/_next/static/chunks/d3d6e96c79ecf7ff.js","/_next/static/chunks/7c8dab1a077d98e9.js","/_next/static/chunks/395473ba68358e71.js","/_next/static/chunks/27f1f589cc35ce7f.js"],"ConnectionsPage"]
9
+ a:I[775258,["/_next/static/chunks/8d7447b91a6a2b1d.js","/_next/static/chunks/44306e436a72cf18.js","/_next/static/chunks/052b769781f179fb.js","/_next/static/chunks/d3d6e96c79ecf7ff.js","/_next/static/chunks/3bd88f74116ecf0b.js","/_next/static/chunks/395473ba68358e71.js","/_next/static/chunks/27f1f589cc35ce7f.js"],"ConnectionsPage"]
10
10
  b:I[897367,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"OutletBoundary"]
11
11
  c:"$Sreact.suspense"
12
12
  e:I[897367,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"ViewportBoundary"]
@@ -17,8 +17,8 @@ e:I[897367,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80
17
17
  :HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
18
18
  :HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
19
19
  3:["$","div",null,{"className":"fixed top-0 left-0 w-full bg-orange-500 text-foreground p-4 text-center z-1000","children":"JavaScript is disabled in your browser. Please enable JavaScript to use all features of this application."}]
20
- 0:{"P":null,"b":"H1e0tcZUy-dcOaNBJh3iW","c":["","connections"],"q":"","i":false,"f":[[["",{"children":["(chat)",{"children":["connections",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/3799f4ad1dc31445.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/8d7447b91a6a2b1d.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/44306e436a72cf18.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{"showSpinner":false,"color":"var(--primary)"}],["$","noscript",null,{"children":"$3"}],["$","$L4",null,{"children":["$","$L5",null,{"children":["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}],["$","$L9",null,{"richColors":true,"position":"top-center"}]]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$La",null,{}],[["$","script","script-0",{"src":"/_next/static/chunks/052b769781f179fb.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/d3d6e96c79ecf7ff.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/7c8dab1a077d98e9.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/395473ba68358e71.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/27f1f589cc35ce7f.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,false]},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$@f"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$@11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[]],"s":false,"S":true}
20
+ 0:{"P":null,"b":"MtWdFBWYBrNNpdc-evjbH","c":["","connections"],"q":"","i":false,"f":[[["",{"children":["(chat)",{"children":["connections",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/3799f4ad1dc31445.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/8d7447b91a6a2b1d.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/44306e436a72cf18.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{"showSpinner":false,"color":"var(--primary)"}],["$","noscript",null,{"children":"$3"}],["$","$L4",null,{"children":["$","$L5",null,{"children":["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}],["$","$L9",null,{"richColors":true,"position":"top-center"}]]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:2:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$La",null,{}],[["$","script","script-0",{"src":"/_next/static/chunks/052b769781f179fb.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/d3d6e96c79ecf7ff.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/3bd88f74116ecf0b.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/395473ba68358e71.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/27f1f589cc35ce7f.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,false]},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$@f"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$@11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[]],"s":false,"S":true}
21
21
  f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
22
22
  13:I[27201,["/_next/static/chunks/d96012bcfc98706a.js","/_next/static/chunks/d80b3790a119a285.js"],"IconMark"]
23
- 11:[["$","title","0",{"children":"CLAY"}],["$","meta","1",{"name":"description","content":"Ask questions about your database in natural language"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0b3bf435.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L13","3",{}]]
23
+ 11:[["$","title","0",{"children":"SQLBOT"}],["$","meta","1",{"name":"description","content":"Ask questions about your database in natural language"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0b3bf435.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L13","3",{}]]
24
24
  d:null
@@ -9,4 +9,4 @@
9
9
  :HL["/_next/static/chunks/2473c16c0c2f6b5f.css","style"]
10
10
  :HL["/_next/static/chunks/3799f4ad1dc31445.css","style"]
11
11
  3:["$","div",null,{"className":"fixed top-0 left-0 w-full bg-orange-500 text-foreground p-4 text-center z-1000","children":"JavaScript is disabled in your browser. Please enable JavaScript to use all features of this application."}]
12
- 0:{"buildId":"H1e0tcZUy-dcOaNBJh3iW","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/3799f4ad1dc31445.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/8d7447b91a6a2b1d.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/44306e436a72cf18.js","async":true}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{"showSpinner":false,"color":"var(--primary)"}],["$","noscript",null,{"children":"$3"}],["$","$L4",null,{"children":["$","$L5",null,{"children":["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","template":["$","$L8",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}],["$","$L9",null,{"richColors":true,"position":"top-center"}]]}]}]]}],"loading":null,"isPartial":false}
12
+ 0:{"buildId":"MtWdFBWYBrNNpdc-evjbH","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2473c16c0c2f6b5f.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/3799f4ad1dc31445.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/8d7447b91a6a2b1d.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/44306e436a72cf18.js","async":true}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased","children":[["$","$L2",null,{"showSpinner":false,"color":"var(--primary)"}],["$","noscript",null,{"children":"$3"}],["$","$L4",null,{"children":["$","$L5",null,{"children":["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","template":["$","$L8",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}],["$","$L9",null,{"richColors":true,"position":"top-center"}]]}]}]]}],"loading":null,"isPartial":false}
@@ -7,6 +7,6 @@
7
7
  :HL["/_next/static/chunks/3799f4ad1dc31445.css","style"]
8
8
  :HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
9
9
  :HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
10
- 0:{"buildId":"H1e0tcZUy-dcOaNBJh3iW","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"(chat)","paramType":null,"paramKey":"(chat)","hasRuntimePrefetch":false,"slots":{"children":{"name":"connections","paramType":null,"paramKey":"connections","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"head":["$","$1","h",{"children":[null,["$","$L2",null,{"children":"$@3"}],["$","div",null,{"hidden":true,"children":["$","$L4",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$@6"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isHeadPartial":false,"staleTime":300}
10
+ 0:{"buildId":"MtWdFBWYBrNNpdc-evjbH","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"(chat)","paramType":null,"paramKey":"(chat)","hasRuntimePrefetch":false,"slots":{"children":{"name":"connections","paramType":null,"paramKey":"connections","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"head":["$","$1","h",{"children":[null,["$","$L2",null,{"children":"$@3"}],["$","div",null,{"hidden":true,"children":["$","$L4",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$@6"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isHeadPartial":false,"staleTime":300}
11
11
  3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
12
- 6:[["$","title","0",{"children":"CLAY"}],["$","meta","1",{"name":"description","content":"Ask questions about your database in natural language"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0b3bf435.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L7","3",{}]]
12
+ 6:[["$","title","0",{"children":"SQLBOT"}],["$","meta","1",{"name":"description","content":"Ask questions about your database in natural language"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0b3bf435.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L7","3",{}]]
@@ -0,0 +1,3 @@
1
+ module.exports=[918622,(e,t,n)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},193695,(e,t,n)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},814747,(e,t,n)=>{t.exports=e.x("path",()=>require("path"))},522734,(e,t,n)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,n)=>{t.exports=e.x("os",()=>require("os"))},666680,(e,t,n)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},581988,e=>e.a(async(t,n)=>{try{let t=await e.y("@libsql/client");e.n(t),n()}catch(e){n(e)}},!0),316733,e=>{"use strict";var t=e.i(814747),n=e.i(446786);function r(){let e=(0,n.homedir)();return(0,t.join)(e,".sqlbot")}function a(){return(0,t.join)(r(),"sqlbot.db")}function o(){return(0,t.join)(r(),"ai-providers.json")}function i(){return(0,t.join)(r(),"config.json")}function s(){return(0,t.join)(r(),"csv-dbs")}function l(e){let t=(0,n.homedir)();return e.startsWith(t)?e.replace(t,"~"):e}e.s(["getConfigDir",()=>r,"getConfigFilePath",()=>i,"getCsvDbsDir",()=>s,"getDbPath",()=>a,"getDisplayPath",()=>l,"getProvidersFilePath",()=>o])},875398,e=>{"use strict";var t=e.i(666680);let n=new Uint8Array(256),r=n.length;function a(){return r>n.length-16&&((0,t.randomFillSync)(n),r=0),n.slice(r,r+=16)}let o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let i={};function s(e,t,n,r,a=0){if(e.length<16)throw Error("Random bytes length must be >= 16");if(r){if(a<0||a+16>r.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else r=new Uint8Array(16),a=0;return t??=Date.now(),n??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],r[a++]=t/0x10000000000&255,r[a++]=t/0x100000000&255,r[a++]=t/0x1000000&255,r[a++]=t/65536&255,r[a++]=t/256&255,r[a++]=255&t,r[a++]=112|n>>>28&15,r[a++]=n>>>20&255,r[a++]=128|n>>>14&63,r[a++]=n>>>6&255,r[a++]=n<<2&255|3&e[10],r[a++]=e[11],r[a++]=e[12],r[a++]=e[13],r[a++]=e[14],r[a++]=e[15],r}e.s(["v7",0,function(e,t,n){let r;if(e)r=s(e.random??e.rng?.()??a(),e.msecs,e.seq,t,n);else{var l,c,u;let e=Date.now(),o=a();l=i,c=e,u=o,l.msecs??=-1/0,l.seq??=0,c>l.msecs?(l.seq=u[6]<<23|u[7]<<16|u[8]<<8|u[9],l.msecs=c):(l.seq=l.seq+1|0,0===l.seq&&l.msecs++),r=s(o,i.msecs,i.seq,t,n)}return t??function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(r)}],875398)},230056,e=>e.a(async(t,n)=>{try{let t=await e.y("pg");e.n(t),n()}catch(e){n(e)}},!0),600177,e=>{"use strict";var t=e.i(522734),n=e.i(814747),r=e.i(875398),a=e.i(316733);let o=(0,a.getConfigDir)(),i=(0,a.getConfigFilePath)();function s(){(0,t.mkdirSync)(o,{recursive:!0})}function l(){if(s(),!(0,t.existsSync)(i)){let e={connections:[],activeConnectionId:null};return(0,t.writeFileSync)(i,JSON.stringify(e,null,2)),e}try{let e=(0,t.readFileSync)(i,"utf-8");return JSON.parse(e)}catch{let e={connections:[],activeConnectionId:null};return(0,t.writeFileSync)(i,JSON.stringify(e,null,2)),e}}function c(e){s(),(0,t.writeFileSync)(i,JSON.stringify(e,null,2))}function u(){return l().connections}function d(e){return l().connections.find(t=>t.id===e)}function p(){let e=l();return e.activeConnectionId?e.connections.find(t=>t.id===e.activeConnectionId)??null:null}function h(){return l().activeConnectionId}function f(e){let t=l(),n=new Date().toISOString(),a={...e,id:(0,r.v7)(),createdAt:n,updatedAt:n};return t.connections.push(a),1===t.connections.length&&(t.activeConnectionId=a.id),c(t),a}function w(e,t){let n=l(),r=n.connections.findIndex(t=>t.id===e);return -1===r?null:(n.connections[r]={...n.connections[r],...t,updatedAt:new Date().toISOString()},c(n),n.connections[r])}function g(e){let t=l(),n=t.connections.findIndex(t=>t.id===e);return -1!==n&&(t.connections.splice(n,1),t.activeConnectionId===e&&(t.activeConnectionId=t.connections.length>0?t.connections[0].id:null),c(t),!0)}function v(e){let t=l();return!!t.connections.find(t=>t.id===e)&&(t.activeConnectionId=e,c(t),!0)}function y(e){return(0,n.join)((0,a.getCsvDbsDir)(),`${e}.db`)}function m(e,t){let n=l(),r=n.connections.findIndex(t=>t.id===e);return -1===r?null:(n.connections[r]={...n.connections[r],csvFiles:t,updatedAt:new Date().toISOString()},c(n),n.connections[r])}e.s(["addConnection",()=>f,"deleteConnection",()=>g,"getActiveConnection",()=>p,"getActiveConnectionId",()=>h,"getConnection",()=>d,"getConnections",()=>u,"getCsvDbPath",()=>y,"setActiveConnection",()=>v,"updateConnection",()=>w,"updateCsvFiles",()=>m])},393207,(e,t,n)=>{t.exports=e.x("@libsql/client",()=>require("@libsql/client"))},381165,e=>e.a(async(t,n)=>{try{var r=e.i(230056),a=e.i(600177),o=e.i(522734),i=t([r]);[r]=i.then?(await i)():i;let f=new Map;async function s(t){let n=(await e.A(959021)).createPool({host:t.host,port:t.port,user:t.user,password:t.password,database:t.database,ssl:t.ssl?{rejectUnauthorized:!1}:void 0,connectionLimit:5,waitForConnections:!0});return{warehouse:{async execute(e){let[t,r]=await n.execute(e);return{rows:t,fields:(r||[]).map(e=>({name:e.name,dataTypeID:e.columnType}))}}},cleanup:async()=>{await n.end()}}}async function l(t){let n,o;if(!(n=t?(0,a.getConnection)(t):(0,a.getActiveConnection)()))throw Error("No database connection configured. Please add a connection in the Connections page.");let i="sqlite"===n.type||"csv"===n.type?`${n.type}:${n.filePath||n.database||n.id}`:`${n.type}:${n.host}:${n.port}:${n.user}:${n.database}:${n.ssl}:${n.password}`,l=f.get(n.id);if(l&&l.connectionHash===i)return l.lastUsed=Date.now(),{db:l.warehouse,connection:n};if(l){try{await l.cleanup()}catch{}f.delete(n.id)}if("mysql"===n.type)o=await s(n);else if("sqlite"===n.type||"csv"===n.type)o=function(t){let n="csv"===t.type?(0,a.getCsvDbPath)(t.id):t.filePath||t.database;if(!n)throw Error("No database file path specified for SQLite connection.");let r=null;return{warehouse:{async execute(t){let a=(()=>{if(!r){let{createClient:t}=e.r(393207);r=t({url:`file:${n}`})}return r})(),o=await a.execute(t);return{rows:o.rows.map(e=>{let t={};for(let n of o.columns)t[n]=e[n];return t}),fields:o.columns.map(e=>({name:e}))}}},cleanup:async()=>{r&&(r.close?.(),r=null)}}}(n);else{let e;e=new r.Pool({host:n.host,port:n.port,user:n.user,password:n.password,database:n.database,ssl:n.ssl?{rejectUnauthorized:!1}:void 0,max:5,idleTimeoutMillis:3e5}),o={warehouse:{async execute(t){let n=await e.query(t);return{rows:n.rows,fields:n.fields.map(e=>({name:e.name,dataTypeID:e.dataTypeID}))}}},cleanup:async()=>{await e.end()}}}return f.set(n.id,{warehouse:o.warehouse,cleanup:o.cleanup,connectionHash:i,lastUsed:Date.now()}),{db:o.warehouse,connection:n}}async function c(t){let n=Date.now();try{if("sqlite"===t.type){let n=t.filePath||t.database;if(!n)throw Error("No file path specified");if(!(0,o.existsSync)(n))throw Error(`File not found: ${n}`);let{createClient:r}=e.r(393207),a=r({url:`file:${n}`});await a.execute("SELECT 1"),a.close()}else if("csv"===t.type){let n=t.id?(0,a.getCsvDbPath)(t.id):null;if(n&&(0,o.existsSync)(n)){let{createClient:t}=e.r(393207),r=t({url:`file:${n}`});await r.execute("SELECT 1"),r.close()}}else if("mysql"===t.type){let n=await e.A(959021),r=await n.createConnection({host:t.host,port:t.port,user:t.user,password:t.password,database:t.database,ssl:t.ssl?{rejectUnauthorized:!1}:void 0,connectTimeout:1e4});await r.execute("SELECT 1"),await r.end()}else{let e=new r.Pool({host:t.host,port:t.port,user:t.user,password:t.password,database:t.database,ssl:t.ssl?{rejectUnauthorized:!1}:void 0,max:1,connectionTimeoutMillis:1e4}),n=await e.connect();await n.query("SELECT 1"),n.release(),await e.end()}return{success:!0,latencyMs:Date.now()-n}}catch(e){return{success:!1,error:e instanceof Error?e.message:String(e),latencyMs:Date.now()-n}}}function u(e){switch(e){case"redshift":return"Amazon Redshift SQL";case"postgresql":return"PostgreSQL";case"mysql":return"MySQL";case"sqlite":case"csv":return"SQLite"}}async function d(t,n,r){let o=(0,a.getCsvDbPath)(t),{mkdirSync:i}=e.r(522734),{dirname:s}=e.r(814747);i(s(o),{recursive:!0});let{createClient:l}=e.r(393207),c=l({url:`file:${o}`});try{let e=function(e){let t=[],n=[],r="",a=!1,o=0;for(;o<e.length;){let i=e[o];a?'"'===i?o+1<e.length&&'"'===e[o+1]?(r+='"',o+=2):(a=!1,o++):(r+=i,o++):'"'===i?(a=!0,o++):","===i?(n.push(r.trim()),r="",o++):"\r"===i||"\n"===i?(n.push(r.trim()),r="",n.some(e=>""!==e)&&t.push(n),n=[],"\r"===i&&o+1<e.length&&"\n"===e[o+1]?o+=2:o++):(r+=i,o++)}return(r||n.length>0)&&(n.push(r.trim()),n.some(e=>""!==e)&&t.push(n)),t}(n);if(e.length<2)throw Error("CSV must have a header row and at least one data row");let t=e[0],a=e.slice(1),o=h(r),i=t.map(h);await c.execute(`DROP TABLE IF EXISTS "${o}"`);let s=i.map((e,t)=>{var n;let r=(n=a.slice(0,20).map(e=>e[t]).filter(Boolean),0===n.length?"TEXT":n.every(e=>/^-?\d+$/.test(e))?"INTEGER":n.every(e=>/^-?\d+(\.\d+)?$/.test(e))?"REAL":"TEXT");return`"${e}" ${r}`});await c.execute(`CREATE TABLE "${o}" (${s.join(", ")})`);let l=0;for(let e=0;e<a.length;e+=500){let t=a.slice(e,e+500),n=t.map(()=>`(${i.map(()=>"?").join(", ")})`).join(", "),r=t.flatMap(e=>i.map((t,n)=>{let r=e[n];return null==r||""===r?null:r}));await c.execute({sql:`INSERT INTO "${o}" (${i.map(e=>`"${e}"`).join(", ")}) VALUES ${n}`,args:r}),l+=t.length}return c.close(),{rowCount:l,columns:i}}catch(e){throw c.close(),e}}async function p(t,n){let r=(0,a.getCsvDbPath)(t);if(!(0,o.existsSync)(r))return;let{createClient:i}=e.r(393207),s=i({url:`file:${r}`});await s.execute(`DROP TABLE IF EXISTS "${h(n)}"`),s.close()}function h(e){return e.replace(/[^\w\s]/g,"").replace(/\s+/g,"_").replace(/^(\d)/,"_$1").toLowerCase().slice(0,64)||"column"}e.s(["getDbDialect",()=>u,"getWarehouseDB",()=>l,"importCsvToSqlite",()=>d,"removeCsvTable",()=>p,"testConnection",()=>c]),n()}catch(e){n(e)}},!1),531233,e=>e.a(async(t,n)=>{try{var r=e.i(679371),a=e.i(381165),o=t([r,a]);async function i(){let e=new Date().toISOString(),t=process.uptime(),n="ok",o="ok";try{await r.rawClient.execute("SELECT 1")}catch(e){console.error("Database health check failed:",e),n="error"}try{let{db:e}=await (0,a.getWarehouseDB)();await e.execute("SELECT 1")}catch(e){console.error("Warehouse health check failed:",e),o="error"}let i="ok"===n&&"ok"===o?"ok":"error";return new Response(JSON.stringify({status:i,timestamp:e,uptime:`${Math.floor(t)}s`,checks:{database:n,warehouse:o}}),{status:"ok"===i?200:503,headers:{"Content-Type":"application/json"}})}[r,a]=o.then?(await o)():o,e.s(["GET",()=>i]),n()}catch(e){n(e)}},!1),243007,e=>e.a(async(t,n)=>{try{var r=e.i(747909),a=e.i(174017),o=e.i(996250),i=e.i(759756),s=e.i(561916),l=e.i(114444),c=e.i(837092),u=e.i(869741),d=e.i(316795),p=e.i(487718),h=e.i(995169),f=e.i(47587),w=e.i(666012),g=e.i(570101),v=e.i(626937),y=e.i(10372),m=e.i(193695);e.i(52474);var x=e.i(600220),C=e.i(531233),E=t([C]);[C]=E.then?(await E)():E;let S=new r.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/health/route",pathname:"/api/health",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/health/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:T,workUnitAsyncStorage:A,serverHooks:D}=S;function b(){return(0,o.patchFetch)({workAsyncStorage:T,workUnitAsyncStorage:A})}async function R(e,t,n){S.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let r="/api/health/route";r=r.replace(/\/index$/,"")||"/";let o=await S.prepare(e,t,{srcPage:r,multiZoneDraftMode:!1});if(!o)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:C,params:E,nextConfig:b,parsedUrl:R,isDraftMode:T,prerenderManifest:A,routerServerContext:D,isOnDemandRevalidate:q,revalidateOnlyGenerated:P,resolvedPathname:I,clientReferenceManifest:$,serverActionsManifest:j}=o,N=(0,u.normalizeAppPath)(r),O=!!(A.dynamicRoutes[N]||A.routes[I]),k=async()=>((null==D?void 0:D.render404)?await D.render404(e,t,R,!1):t.end("This page could not be found"),null);if(O&&!T){let e=!!A.routes[I],t=A.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(b.experimental.adapterPath)return await k();throw new m.NoFallbackError}}let _=null;!O||S.isDev||T||(_=I,_="/index"===_?"/":_);let U=!0===S.isDev||!O,L=O&&!U;j&&$&&(0,l.setReferenceManifestsSingleton)({page:r,clientReferenceManifest:$,serverActionsManifest:j,serverModuleMap:(0,c.createServerModuleMap)({serverActionsManifest:j})});let M=e.method||"GET",F=(0,s.getTracer)(),H=F.getActiveScopeSpan(),B={params:E,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts},cacheComponents:!!b.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:b.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,n,r)=>S.onRequestError(e,t,r,D)},sharedContext:{buildId:C}},K=new d.NodeNextRequest(e),X=new d.NodeNextResponse(t),z=p.NextRequestAdapter.fromNodeNextRequest(K,(0,p.signalFromNodeResponse)(t));try{let o=async e=>S.handle(z,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let n=F.getRootSpanAttributes();if(!n)return;if(n.get("next.span_type")!==h.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${n.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=n.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${r}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),c=async i=>{var s,c;let u=async({previousCacheEntry:a})=>{try{if(!l&&q&&P&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let r=await o(i);e.fetchMetrics=B.renderOpts.fetchMetrics;let s=B.renderOpts.pendingWaitUntil;s&&n.waitUntil&&(n.waitUntil(s),s=void 0);let c=B.renderOpts.collectedTags;if(!O)return await (0,w.sendResponse)(K,X,r,B.renderOpts.pendingWaitUntil),null;{let e=await r.blob(),t=(0,g.toNodeOutgoingHttpHeaders)(r.headers);c&&(t[y.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let n=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=y.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,a=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=y.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:r.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:n,expire:a}}}}catch(t){throw(null==a?void 0:a.isStale)&&await S.onRequestError(e,t,{routerKind:"App Router",routePath:r,routeType:"route",revalidateReason:(0,f.getRevalidateReason)({isStaticGeneration:L,isOnDemandRevalidate:q})},D),t}},d=await S.handleResponse({req:e,nextConfig:b,cacheKey:_,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:q,revalidateOnlyGenerated:P,responseGenerator:u,waitUntil:n.waitUntil,isMinimalMode:l});if(!O)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(c=d.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",q?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),T&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,g.fromNodeOutgoingHttpHeaders)(d.value.headers);return l&&O||p.delete(y.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,v.getCacheControlHeader)(d.cacheControl)),await (0,w.sendResponse)(K,X,new Response(d.value.body,{headers:p,status:d.value.status||200})),null};H?await c(H):await F.withPropagatedContext(e.headers,()=>F.trace(h.BaseServerSpan.handleRequest,{spanName:`${M} ${r}`,kind:s.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},c))}catch(t){if(t instanceof m.NoFallbackError||await S.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,f.getRevalidateReason)({isStaticGeneration:L,isOnDemandRevalidate:q})}),O)throw t;return await (0,w.sendResponse)(K,X,new Response(null,{status:500})),null}}e.s(["handler",()=>R,"patchFetch",()=>b,"routeModule",()=>S,"serverHooks",()=>D,"workAsyncStorage",()=>T,"workUnitAsyncStorage",()=>A]),n()}catch(e){n(e)}},!1),959021,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__d85d916d._.js","server/chunks/[root-of-the-server]__e0f10449._.js"].map(t=>e.l(t))).then(()=>t(822244)))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__1f49434f._.js.map
@@ -1,16 +1,16 @@
1
- module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},484199,(e,t,r)=>{"use strict";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i={},l={VercelOidcTokenError:()=>d};for(var u in l)n(i,u,{get:l[u],enumerable:!0});t.exports=((e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))o.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(i=a(t,r))||i.enumerable});return e})(n({},"__esModule",{value:!0}),i);class d extends Error{constructor(e,t){super(e),this.name="VercelOidcTokenError",this.cause=t}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},666680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},875398,e=>{"use strict";var t=e.i(666680);let r=new Uint8Array(256),n=r.length;function a(){return n>r.length-16&&((0,t.randomFillSync)(r),n=0),r.slice(n,n+=16)}let s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));let o={};function i(e,t,r,n,a=0){if(e.length<16)throw Error("Random bytes length must be >= 16");if(n){if(a<0||a+16>n.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else n=new Uint8Array(16),a=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[a++]=t/0x10000000000&255,n[a++]=t/0x100000000&255,n[a++]=t/0x1000000&255,n[a++]=t/65536&255,n[a++]=t/256&255,n[a++]=255&t,n[a++]=112|r>>>28&15,n[a++]=r>>>20&255,n[a++]=128|r>>>14&63,n[a++]=r>>>6&255,n[a++]=r<<2&255|3&e[10],n[a++]=e[11],n[a++]=e[12],n[a++]=e[13],n[a++]=e[14],n[a++]=e[15],n}e.s(["v7",0,function(e,t,r){let n;if(e)n=i(e.random??e.rng?.()??a(),e.msecs,e.seq,t,r);else{var l,u,d;let e=Date.now(),s=a();l=o,u=e,d=s,l.msecs??=-1/0,l.seq??=0,u>l.msecs?(l.seq=d[6]<<23|d[7]<<16|d[8]<<8|d[9],l.msecs=u):(l.seq=l.seq+1|0,0===l.seq&&l.msecs++),n=i(s,o.msecs,o.seq,t,r)}return t??function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(n)}],875398)},644082,e=>{"use strict";var t=e.i(747909),r=e.i(174017),n=e.i(996250),a=e.i(759756),s=e.i(561916),o=e.i(114444),i=e.i(837092),l=e.i(869741),u=e.i(316795),d=e.i(487718),c=e.i(995169),p=e.i(47587),h=e.i(666012),g=e.i(570101),f=e.i(626937),m=e.i(10372),x=e.i(193695);e.i(52474);var v=e.i(600220),w=e.i(608056),R=e.i(712075),y=e.i(469719);async function b(e){try{let t=await e.json(),r=t.text,n=t.modelId;if(!r?.trim())return new Response("Text is required",{status:400});let a=(0,w.getModel)(n||"google-gemini-2.0-flash-001"),s=y.z.object({entries:y.z.array(y.z.object({title:y.z.string(),content:y.z.string()}))}),o=function(e){let t=e.trim();if(t.length<=5e3)return[t];let r=[],n=0;for(;n<t.length;){let e=Math.min(n+5e3,t.length);if(e<t.length){let r=t.slice(n,e),a=r.lastIndexOf("\n\n");if(a>2500)e=n+a+2;else{let t=r.lastIndexOf("\n");t>2500&&(e=n+t+1)}}r.push(t.slice(n,e).trim());let a=e-n-600;n+=Math.max(a,1)}return r}(r),i=o.length,l=new ReadableStream({async start(e){let t=new TextEncoder,n=r=>{e.enqueue(t.encode(`data: ${JSON.stringify(r)}
1
+ module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},484199,(e,t,r)=>{"use strict";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i={},l={VercelOidcTokenError:()=>c};for(var u in l)n(i,u,{get:l[u],enumerable:!0});t.exports=((e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of o(t))s.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(i=a(t,r))||i.enumerable});return e})(n({},"__esModule",{value:!0}),i);class c extends Error{constructor(e,t){super(e),this.name="VercelOidcTokenError",this.cause=t}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},666680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},875398,e=>{"use strict";var t=e.i(666680);let r=new Uint8Array(256),n=r.length;function a(){return n>r.length-16&&((0,t.randomFillSync)(r),n=0),r.slice(n,n+=16)}let o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let s={};function i(e,t,r,n,a=0){if(e.length<16)throw Error("Random bytes length must be >= 16");if(n){if(a<0||a+16>n.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else n=new Uint8Array(16),a=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[a++]=t/0x10000000000&255,n[a++]=t/0x100000000&255,n[a++]=t/0x1000000&255,n[a++]=t/65536&255,n[a++]=t/256&255,n[a++]=255&t,n[a++]=112|r>>>28&15,n[a++]=r>>>20&255,n[a++]=128|r>>>14&63,n[a++]=r>>>6&255,n[a++]=r<<2&255|3&e[10],n[a++]=e[11],n[a++]=e[12],n[a++]=e[13],n[a++]=e[14],n[a++]=e[15],n}e.s(["v7",0,function(e,t,r){let n;if(e)n=i(e.random??e.rng?.()??a(),e.msecs,e.seq,t,r);else{var l,u,c;let e=Date.now(),o=a();l=s,u=e,c=o,l.msecs??=-1/0,l.seq??=0,u>l.msecs?(l.seq=c[6]<<23|c[7]<<16|c[8]<<8|c[9],l.msecs=u):(l.seq=l.seq+1|0,0===l.seq&&l.msecs++),n=i(o,s.msecs,s.seq,t,r)}return t??function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(n)}],875398)},316733,e=>{"use strict";var t=e.i(814747),r=e.i(446786);function n(){let e=(0,r.homedir)();return(0,t.join)(e,".sqlbot")}function a(){return(0,t.join)(n(),"sqlbot.db")}function o(){return(0,t.join)(n(),"ai-providers.json")}function s(){return(0,t.join)(n(),"config.json")}function i(){return(0,t.join)(n(),"csv-dbs")}function l(e){let t=(0,r.homedir)();return e.startsWith(t)?e.replace(t,"~"):e}e.s(["getConfigDir",()=>n,"getConfigFilePath",()=>s,"getCsvDbsDir",()=>i,"getDbPath",()=>a,"getDisplayPath",()=>l,"getProvidersFilePath",()=>o])},644082,e=>{"use strict";var t=e.i(747909),r=e.i(174017),n=e.i(996250),a=e.i(759756),o=e.i(561916),s=e.i(114444),i=e.i(837092),l=e.i(869741),u=e.i(316795),c=e.i(487718),d=e.i(995169),p=e.i(47587),h=e.i(666012),g=e.i(570101),f=e.i(626937),m=e.i(10372),x=e.i(193695);e.i(52474);var v=e.i(600220),w=e.i(608056),R=e.i(712075),y=e.i(469719);async function b(e){try{let t=await e.json(),r=t.text,n=t.modelId;if(!r?.trim())return new Response("Text is required",{status:400});let a=(0,w.getModel)(n||"google-gemini-2.0-flash-001"),o=y.z.object({entries:y.z.array(y.z.object({title:y.z.string(),content:y.z.string()}))}),s=function(e){let t=e.trim();if(t.length<=5e3)return[t];let r=[],n=0;for(;n<t.length;){let e=Math.min(n+5e3,t.length);if(e<t.length){let r=t.slice(n,e),a=r.lastIndexOf("\n\n");if(a>2500)e=n+a+2;else{let t=r.lastIndexOf("\n");t>2500&&(e=n+t+1)}}r.push(t.slice(n,e).trim());let a=e-n-600;n+=Math.max(a,1)}return r}(r),i=s.length,l=new ReadableStream({async start(e){let t=new TextEncoder,n=r=>{e.enqueue(t.encode(`data: ${JSON.stringify(r)}
2
2
 
3
- `))};try{n({type:"start",totalChunks:i,textLength:r.length});let e=[];for(let t=0;t<o.length;t+=3){let r=o.slice(t,t+3),l=t;for(let e=0;e<r.length;e++)n({type:"chunk_start",chunk:l+e+1,totalChunks:i});let u=await Promise.all(r.map((e,r)=>{let n=t+r+1,o=i>1?`
3
+ `))};try{n({type:"start",totalChunks:i,textLength:r.length});let e=[];for(let t=0;t<s.length;t+=3){let r=s.slice(t,t+3),l=t;for(let e=0;e<r.length;e++)n({type:"chunk_start",chunk:l+e+1,totalChunks:i});let u=await Promise.all(r.map((e,r)=>{let n=t+r+1,s=i>1?`
4
4
 
5
- Note: This is chunk ${n} of ${i} from a larger document. Avoid creating duplicate entries for the same topic.`:"";return(0,R.generateObject)({model:a,schema:s,prompt:`Analyze the following text and extract useful knowledge base entries for a database assistant.
5
+ Note: This is chunk ${n} of ${i} from a larger document. Avoid creating duplicate entries for the same topic.`:"";return(0,R.generateObject)({model:a,schema:o,prompt:`Analyze the following text and extract useful knowledge base entries for a database assistant.
6
6
 
7
7
  The goal is to create structured knowledge that helps an AI understand the database schema, business logic, and conventions.
8
8
 
9
9
  For each distinct topic or rule found in the text, create an entry.
10
10
  - Each entry should be self-contained with enough context to be useful on its own.
11
- - Focus on business rules, column meanings, relationships, data patterns, enum values, and important conventions.${o}
11
+ - Focus on business rules, column meanings, relationships, data patterns, enum values, and important conventions.${s}
12
12
 
13
13
  Text to analyze:
14
- ${e}`})}));for(let t=0;t<u.length;t++){let r=u[t].object.entries;e.push(...r),n({type:"chunk_done",chunk:l+t+1,totalChunks:i,entriesFound:r.length,totalEntries:e.length})}}let t=i>1?function(e){let t=new Map;for(let r of e){let e=r.title.toLowerCase().trim(),n=t.get(e);(!n||r.content.length>n.content.length)&&t.set(e,r)}return Array.from(t.values())}(e):e;n({type:"done",entries:t,totalChunks:i,totalRawEntries:e.length})}catch(e){n({type:"error",message:e.message||"Failed to generate"})}finally{e.close()}}});return new Response(l,{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}catch(e){return console.error("Generate knowledge error:",e),new Response("Internal server error",{status:500})}}e.s(["POST",()=>b],394709);var E=e.i(394709);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/knowledge/generate/route",pathname:"/api/knowledge/generate",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/knowledge/generate/route.ts",nextConfigOutput:"standalone",userland:E}),{workAsyncStorage:k,workUnitAsyncStorage:_,serverHooks:A}=C;function O(){return(0,n.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:_})}async function T(e,t,n){C.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/knowledge/generate/route";w=w.replace(/\/index$/,"")||"/";let R=await C.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:y,params:b,nextConfig:E,parsedUrl:k,isDraftMode:_,prerenderManifest:A,routerServerContext:O,isOnDemandRevalidate:T,revalidateOnlyGenerated:q,resolvedPathname:P,clientReferenceManifest:j,serverActionsManifest:N}=R,S=(0,l.normalizeAppPath)(w),I=!!(A.dynamicRoutes[S]||A.routes[P]),M=async()=>((null==O?void 0:O.render404)?await O.render404(e,t,k,!1):t.end("This page could not be found"),null);if(I&&!_){let e=!!A.routes[P],t=A.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await M();throw new x.NoFallbackError}}let $=null;!I||C.isDev||_||($="/index"===($=P)?"/":$);let U=!0===C.isDev||!I,D=I&&!U;N&&j&&(0,o.setReferenceManifestsSingleton)({page:w,clientReferenceManifest:j,serverActionsManifest:N,serverModuleMap:(0,i.createServerModuleMap)({serverActionsManifest:N})});let H=e.method||"GET",F=(0,s.getTracer)(),z=F.getActiveScopeSpan(),K={params:b,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n)=>C.onRequestError(e,t,n,O)},sharedContext:{buildId:y}},L=new u.NodeNextRequest(e),B=new u.NodeNextResponse(t),V=d.NextRequestAdapter.fromNodeNextRequest(L,(0,d.signalFromNodeResponse)(t));try{let o=async e=>C.handle(V,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${H} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${w}`)}),i=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var s,l;let u=async({previousCacheEntry:r})=>{try{if(!i&&T&&q&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(a);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let u=K.renderOpts.collectedTags;if(!I)return await (0,h.sendResponse)(L,B,s,K.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,g.toNodeOutgoingHttpHeaders)(s.headers);u&&(t[m.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},O),t}},d=await C.handleResponse({req:e,nextConfig:E,cacheKey:$,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:q,responseGenerator:u,waitUntil:n.waitUntil,isMinimalMode:i});if(!I)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});i||t.setHeader("x-nextjs-cache",T?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,g.fromNodeOutgoingHttpHeaders)(d.value.headers);return i&&I||c.delete(m.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,f.getCacheControlHeader)(d.cacheControl)),await (0,h.sendResponse)(L,B,new Response(d.value.body,{headers:c,status:d.value.status||200})),null};z?await l(z):await F.withPropagatedContext(e.headers,()=>F.trace(c.BaseServerSpan.handleRequest,{spanName:`${H} ${w}`,kind:s.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})}),I)throw t;return await (0,h.sendResponse)(L,B,new Response(null,{status:500})),null}}e.s(["handler",()=>T,"patchFetch",()=>O,"routeModule",()=>C,"serverHooks",()=>A,"workAsyncStorage",()=>k,"workUnitAsyncStorage",()=>_],644082)},967030,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_@vercel_oidc_dist_7c2bef69._.js"].map(t=>e.l(t))).then(()=>t(783697)))},683671,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_@vercel_oidc_dist_7fd3d757._.js"].map(t=>e.l(t))).then(()=>t(390391)))}];
14
+ ${e}`})}));for(let t=0;t<u.length;t++){let r=u[t].object.entries;e.push(...r),n({type:"chunk_done",chunk:l+t+1,totalChunks:i,entriesFound:r.length,totalEntries:e.length})}}let t=i>1?function(e){let t=new Map;for(let r of e){let e=r.title.toLowerCase().trim(),n=t.get(e);(!n||r.content.length>n.content.length)&&t.set(e,r)}return Array.from(t.values())}(e):e;n({type:"done",entries:t,totalChunks:i,totalRawEntries:e.length})}catch(e){n({type:"error",message:e.message||"Failed to generate"})}finally{e.close()}}});return new Response(l,{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}catch(e){return console.error("Generate knowledge error:",e),new Response("Internal server error",{status:500})}}e.s(["POST",()=>b],394709);var E=e.i(394709);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/knowledge/generate/route",pathname:"/api/knowledge/generate",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/knowledge/generate/route.ts",nextConfigOutput:"standalone",userland:E}),{workAsyncStorage:k,workUnitAsyncStorage:P,serverHooks:_}=C;function A(){return(0,n.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:P})}async function O(e,t,n){C.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/knowledge/generate/route";w=w.replace(/\/index$/,"")||"/";let R=await C.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:y,params:b,nextConfig:E,parsedUrl:k,isDraftMode:P,prerenderManifest:_,routerServerContext:A,isOnDemandRevalidate:O,revalidateOnlyGenerated:j,resolvedPathname:q,clientReferenceManifest:T,serverActionsManifest:N}=R,S=(0,l.normalizeAppPath)(w),D=!!(_.dynamicRoutes[S]||_.routes[q]),I=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,k,!1):t.end("This page could not be found"),null);if(D&&!P){let e=!!_.routes[q],t=_.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await I();throw new x.NoFallbackError}}let M=null;!D||C.isDev||P||(M="/index"===(M=q)?"/":M);let $=!0===C.isDev||!D,U=D&&!$;N&&T&&(0,s.setReferenceManifestsSingleton)({page:w,clientReferenceManifest:T,serverActionsManifest:N,serverModuleMap:(0,i.createServerModuleMap)({serverActionsManifest:N})});let H=e.method||"GET",F=(0,o.getTracer)(),z=F.getActiveScopeSpan(),K={params:b,prerenderManifest:_,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:$,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n)=>C.onRequestError(e,t,n,A)},sharedContext:{buildId:y}},L=new u.NodeNextRequest(e),B=new u.NodeNextResponse(t),V=c.NextRequestAdapter.fromNodeNextRequest(L,(0,c.signalFromNodeResponse)(t));try{let s=async e=>C.handle(V,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${H} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${w}`)}),i=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var o,l;let u=async({previousCacheEntry:r})=>{try{if(!i&&O&&j&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(a);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let u=K.renderOpts.collectedTags;if(!D)return await (0,h.sendResponse)(L,B,o,K.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,g.toNodeOutgoingHttpHeaders)(o.headers);u&&(t[m.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:O})},A),t}},c=await C.handleResponse({req:e,nextConfig:E,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:_,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:j,responseGenerator:u,waitUntil:n.waitUntil,isMinimalMode:i});if(!D)return null;if((null==c||null==(o=c.value)?void 0:o.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==c||null==(l=c.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});i||t.setHeader("x-nextjs-cache",O?"REVALIDATED":c.isMiss?"MISS":c.isStale?"STALE":"HIT"),P&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,g.fromNodeOutgoingHttpHeaders)(c.value.headers);return i&&D||d.delete(m.NEXT_CACHE_TAGS_HEADER),!c.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,f.getCacheControlHeader)(c.cacheControl)),await (0,h.sendResponse)(L,B,new Response(c.value.body,{headers:d,status:c.value.status||200})),null};z?await l(z):await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${w}`,kind:o.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:O})}),D)throw t;return await (0,h.sendResponse)(L,B,new Response(null,{status:500})),null}}e.s(["handler",()=>O,"patchFetch",()=>A,"routeModule",()=>C,"serverHooks",()=>_,"workAsyncStorage",()=>k,"workUnitAsyncStorage",()=>P],644082)},967030,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_@vercel_oidc_dist_7c2bef69._.js"].map(t=>e.l(t))).then(()=>t(783697)))},683671,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_@vercel_oidc_dist_7fd3d757._.js"].map(t=>e.l(t))).then(()=>t(390391)))}];
15
15
 
16
- //# sourceMappingURL=%5Broot-of-the-server%5D__51b79d66._.js.map
16
+ //# sourceMappingURL=%5Broot-of-the-server%5D__3a1fb665._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[918622,(e,t,n)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},193695,(e,t,n)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},814747,(e,t,n)=>{t.exports=e.x("path",()=>require("path"))},522734,(e,t,n)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,n)=>{t.exports=e.x("os",()=>require("os"))},666680,(e,t,n)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},581988,e=>e.a(async(t,n)=>{try{let t=await e.y("@libsql/client");e.n(t),n()}catch(e){n(e)}},!0),484199,(e,t,n)=>{"use strict";var r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={},c={VercelOidcTokenError:()=>u};for(var l in c)r(a,l,{get:c[l],enumerable:!0});t.exports=((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))i.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(a=s(t,n))||a.enumerable});return e})(r({},"__esModule",{value:!0}),a);class u extends Error{constructor(e,t){super(e),this.name="VercelOidcTokenError",this.cause=t}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}},875398,e=>{"use strict";var t=e.i(666680);let n=new Uint8Array(256),r=n.length;function s(){return r>n.length-16&&((0,t.randomFillSync)(n),r=0),n.slice(r,r+=16)}let o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let i={};function a(e,t,n,r,s=0){if(e.length<16)throw Error("Random bytes length must be >= 16");if(r){if(s<0||s+16>r.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`)}else r=new Uint8Array(16),s=0;return t??=Date.now(),n??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],r[s++]=t/0x10000000000&255,r[s++]=t/0x100000000&255,r[s++]=t/0x1000000&255,r[s++]=t/65536&255,r[s++]=t/256&255,r[s++]=255&t,r[s++]=112|n>>>28&15,r[s++]=n>>>20&255,r[s++]=128|n>>>14&63,r[s++]=n>>>6&255,r[s++]=n<<2&255|3&e[10],r[s++]=e[11],r[s++]=e[12],r[s++]=e[13],r[s++]=e[14],r[s++]=e[15],r}e.s(["v7",0,function(e,t,n){let r;if(e)r=a(e.random??e.rng?.()??s(),e.msecs,e.seq,t,n);else{var c,l,u;let e=Date.now(),o=s();c=i,l=e,u=o,c.msecs??=-1/0,c.seq??=0,l>c.msecs?(c.seq=u[6]<<23|u[7]<<16|u[8]<<8|u[9],c.msecs=l):(c.seq=c.seq+1|0,0===c.seq&&c.msecs++),r=a(o,i.msecs,i.seq,t,n)}return t??function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(r)}],875398)},316733,e=>{"use strict";var t=e.i(814747),n=e.i(446786);function r(){let e=(0,n.homedir)();return(0,t.join)(e,".sqlbot")}function s(){return(0,t.join)(r(),"sqlbot.db")}function o(){return(0,t.join)(r(),"ai-providers.json")}function i(){return(0,t.join)(r(),"config.json")}function a(){return(0,t.join)(r(),"csv-dbs")}function c(e){let t=(0,n.homedir)();return e.startsWith(t)?e.replace(t,"~"):e}e.s(["getConfigDir",()=>r,"getConfigFilePath",()=>i,"getCsvDbsDir",()=>a,"getDbPath",()=>s,"getDisplayPath",()=>c,"getProvidersFilePath",()=>o])},230056,e=>e.a(async(t,n)=>{try{let t=await e.y("pg");e.n(t),n()}catch(e){n(e)}},!0),600177,e=>{"use strict";var t=e.i(522734),n=e.i(814747),r=e.i(875398),s=e.i(316733);let o=(0,s.getConfigDir)(),i=(0,s.getConfigFilePath)();function a(){(0,t.mkdirSync)(o,{recursive:!0})}function c(){if(a(),!(0,t.existsSync)(i)){let e={connections:[],activeConnectionId:null};return(0,t.writeFileSync)(i,JSON.stringify(e,null,2)),e}try{let e=(0,t.readFileSync)(i,"utf-8");return JSON.parse(e)}catch{let e={connections:[],activeConnectionId:null};return(0,t.writeFileSync)(i,JSON.stringify(e,null,2)),e}}function l(e){a(),(0,t.writeFileSync)(i,JSON.stringify(e,null,2))}function u(){return c().connections}function d(e){return c().connections.find(t=>t.id===e)}function p(){let e=c();return e.activeConnectionId?e.connections.find(t=>t.id===e.activeConnectionId)??null:null}function f(){return c().activeConnectionId}function h(e){let t=c(),n=new Date().toISOString(),s={...e,id:(0,r.v7)(),createdAt:n,updatedAt:n};return t.connections.push(s),1===t.connections.length&&(t.activeConnectionId=s.id),l(t),s}function w(e,t){let n=c(),r=n.connections.findIndex(t=>t.id===e);return -1===r?null:(n.connections[r]={...n.connections[r],...t,updatedAt:new Date().toISOString()},l(n),n.connections[r])}function y(e){let t=c(),n=t.connections.findIndex(t=>t.id===e);return -1!==n&&(t.connections.splice(n,1),t.activeConnectionId===e&&(t.activeConnectionId=t.connections.length>0?t.connections[0].id:null),l(t),!0)}function g(e){let t=c();return!!t.connections.find(t=>t.id===e)&&(t.activeConnectionId=e,l(t),!0)}function m(e){return(0,n.join)((0,s.getCsvDbsDir)(),`${e}.db`)}function v(e,t){let n=c(),r=n.connections.findIndex(t=>t.id===e);return -1===r?null:(n.connections[r]={...n.connections[r],csvFiles:t,updatedAt:new Date().toISOString()},l(n),n.connections[r])}e.s(["addConnection",()=>h,"deleteConnection",()=>y,"getActiveConnection",()=>p,"getActiveConnectionId",()=>f,"getConnection",()=>d,"getConnections",()=>u,"getCsvDbPath",()=>m,"setActiveConnection",()=>g,"updateConnection",()=>w,"updateCsvFiles",()=>v])},393207,(e,t,n)=>{t.exports=e.x("@libsql/client",()=>require("@libsql/client"))},381165,e=>e.a(async(t,n)=>{try{var r=e.i(230056),s=e.i(600177),o=e.i(522734),i=t([r]);[r]=i.then?(await i)():i;let h=new Map;async function a(t){let n=(await e.A(959021)).createPool({host:t.host,port:t.port,user:t.user,password:t.password,database:t.database,ssl:t.ssl?{rejectUnauthorized:!1}:void 0,connectionLimit:5,waitForConnections:!0});return{warehouse:{async execute(e){let[t,r]=await n.execute(e);return{rows:t,fields:(r||[]).map(e=>({name:e.name,dataTypeID:e.columnType}))}}},cleanup:async()=>{await n.end()}}}async function c(t){let n,o;if(!(n=t?(0,s.getConnection)(t):(0,s.getActiveConnection)()))throw Error("No database connection configured. Please add a connection in the Connections page.");let i="sqlite"===n.type||"csv"===n.type?`${n.type}:${n.filePath||n.database||n.id}`:`${n.type}:${n.host}:${n.port}:${n.user}:${n.database}:${n.ssl}:${n.password}`,c=h.get(n.id);if(c&&c.connectionHash===i)return c.lastUsed=Date.now(),{db:c.warehouse,connection:n};if(c){try{await c.cleanup()}catch{}h.delete(n.id)}if("mysql"===n.type)o=await a(n);else if("sqlite"===n.type||"csv"===n.type)o=function(t){let n="csv"===t.type?(0,s.getCsvDbPath)(t.id):t.filePath||t.database;if(!n)throw Error("No database file path specified for SQLite connection.");let r=null;return{warehouse:{async execute(t){let s=(()=>{if(!r){let{createClient:t}=e.r(393207);r=t({url:`file:${n}`})}return r})(),o=await s.execute(t);return{rows:o.rows.map(e=>{let t={};for(let n of o.columns)t[n]=e[n];return t}),fields:o.columns.map(e=>({name:e}))}}},cleanup:async()=>{r&&(r.close?.(),r=null)}}}(n);else{let e;e=new r.Pool({host:n.host,port:n.port,user:n.user,password:n.password,database:n.database,ssl:n.ssl?{rejectUnauthorized:!1}:void 0,max:5,idleTimeoutMillis:3e5}),o={warehouse:{async execute(t){let n=await e.query(t);return{rows:n.rows,fields:n.fields.map(e=>({name:e.name,dataTypeID:e.dataTypeID}))}}},cleanup:async()=>{await e.end()}}}return h.set(n.id,{warehouse:o.warehouse,cleanup:o.cleanup,connectionHash:i,lastUsed:Date.now()}),{db:o.warehouse,connection:n}}async function l(t){let n=Date.now();try{if("sqlite"===t.type){let n=t.filePath||t.database;if(!n)throw Error("No file path specified");if(!(0,o.existsSync)(n))throw Error(`File not found: ${n}`);let{createClient:r}=e.r(393207),s=r({url:`file:${n}`});await s.execute("SELECT 1"),s.close()}else if("csv"===t.type){let n=t.id?(0,s.getCsvDbPath)(t.id):null;if(n&&(0,o.existsSync)(n)){let{createClient:t}=e.r(393207),r=t({url:`file:${n}`});await r.execute("SELECT 1"),r.close()}}else if("mysql"===t.type){let n=await e.A(959021),r=await n.createConnection({host:t.host,port:t.port,user:t.user,password:t.password,database:t.database,ssl:t.ssl?{rejectUnauthorized:!1}:void 0,connectTimeout:1e4});await r.execute("SELECT 1"),await r.end()}else{let e=new r.Pool({host:t.host,port:t.port,user:t.user,password:t.password,database:t.database,ssl:t.ssl?{rejectUnauthorized:!1}:void 0,max:1,connectionTimeoutMillis:1e4}),n=await e.connect();await n.query("SELECT 1"),n.release(),await e.end()}return{success:!0,latencyMs:Date.now()-n}}catch(e){return{success:!1,error:e instanceof Error?e.message:String(e),latencyMs:Date.now()-n}}}function u(e){switch(e){case"redshift":return"Amazon Redshift SQL";case"postgresql":return"PostgreSQL";case"mysql":return"MySQL";case"sqlite":case"csv":return"SQLite"}}async function d(t,n,r){let o=(0,s.getCsvDbPath)(t),{mkdirSync:i}=e.r(522734),{dirname:a}=e.r(814747);i(a(o),{recursive:!0});let{createClient:c}=e.r(393207),l=c({url:`file:${o}`});try{let e=function(e){let t=[],n=[],r="",s=!1,o=0;for(;o<e.length;){let i=e[o];s?'"'===i?o+1<e.length&&'"'===e[o+1]?(r+='"',o+=2):(s=!1,o++):(r+=i,o++):'"'===i?(s=!0,o++):","===i?(n.push(r.trim()),r="",o++):"\r"===i||"\n"===i?(n.push(r.trim()),r="",n.some(e=>""!==e)&&t.push(n),n=[],"\r"===i&&o+1<e.length&&"\n"===e[o+1]?o+=2:o++):(r+=i,o++)}return(r||n.length>0)&&(n.push(r.trim()),n.some(e=>""!==e)&&t.push(n)),t}(n);if(e.length<2)throw Error("CSV must have a header row and at least one data row");let t=e[0],s=e.slice(1),o=f(r),i=t.map(f);await l.execute(`DROP TABLE IF EXISTS "${o}"`);let a=i.map((e,t)=>{var n;let r=(n=s.slice(0,20).map(e=>e[t]).filter(Boolean),0===n.length?"TEXT":n.every(e=>/^-?\d+$/.test(e))?"INTEGER":n.every(e=>/^-?\d+(\.\d+)?$/.test(e))?"REAL":"TEXT");return`"${e}" ${r}`});await l.execute(`CREATE TABLE "${o}" (${a.join(", ")})`);let c=0;for(let e=0;e<s.length;e+=500){let t=s.slice(e,e+500),n=t.map(()=>`(${i.map(()=>"?").join(", ")})`).join(", "),r=t.flatMap(e=>i.map((t,n)=>{let r=e[n];return null==r||""===r?null:r}));await l.execute({sql:`INSERT INTO "${o}" (${i.map(e=>`"${e}"`).join(", ")}) VALUES ${n}`,args:r}),c+=t.length}return l.close(),{rowCount:c,columns:i}}catch(e){throw l.close(),e}}async function p(t,n){let r=(0,s.getCsvDbPath)(t);if(!(0,o.existsSync)(r))return;let{createClient:i}=e.r(393207),a=i({url:`file:${r}`});await a.execute(`DROP TABLE IF EXISTS "${f(n)}"`),a.close()}function f(e){return e.replace(/[^\w\s]/g,"").replace(/\s+/g,"_").replace(/^(\d)/,"_$1").toLowerCase().slice(0,64)||"column"}e.s(["getDbDialect",()=>u,"getWarehouseDB",()=>c,"importCsvToSqlite",()=>d,"removeCsvTable",()=>p,"testConnection",()=>l]),n()}catch(e){n(e)}},!1),967030,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_@vercel_oidc_dist_7c2bef69._.js"].map(t=>e.l(t))).then(()=>t(783697)))},683671,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_@vercel_oidc_dist_7fd3d757._.js"].map(t=>e.l(t))).then(()=>t(390391)))},959021,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__d85d916d._.js","server/chunks/[root-of-the-server]__e0f10449._.js"].map(t=>e.l(t))).then(()=>t(822244)))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__73947e32._.js.map