larkup 0.2.13 → 0.2.14
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.
- package/.next/standalone/apps/web/.next/BUILD_ID +1 -1
- package/.next/standalone/apps/web/.next/app-path-routes-manifest.json +20 -20
- package/.next/standalone/apps/web/.next/build-manifest.json +2 -2
- package/.next/standalone/apps/web/.next/required-server-files.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/_not-found.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_full.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/add/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/add.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/add.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/add.segments/_full.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/add.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/add.segments/add/__PAGE__.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/api/chat/route.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/chat/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/chat/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/chat.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/chat.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/chat.segments/_full.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/chat.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/chat.segments/chat/__PAGE__.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/data/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/data.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/data.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/data.segments/_full.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/data.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/data.segments/data/__PAGE__.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/index.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/index.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/index.segments/__PAGE__.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/index.segments/_full.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/settings.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/settings.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/settings.segments/_full.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/widget-demo/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/widget-demo.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/widget-demo.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/widget-demo.segments/_full.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app/widget-demo.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/widget-demo.segments/widget-demo/__PAGE__.segment.rsc +10 -10
- package/.next/standalone/apps/web/.next/server/app-paths-manifest.json +20 -20
- package/.next/standalone/apps/web/.next/server/chunks/2683.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/4188.js +1 -1
- package/.next/standalone/apps/web/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/pages/404.html +1 -1
- package/.next/standalone/apps/web/.next/server/pages/500.html +1 -1
- package/.next/standalone/apps/web/.next/static/chunks/app/{layout-b915f8aecbb6e586.js → layout-eea33807e2757122.js} +1 -1
- package/.next/standalone/apps/web/package.json +1 -1
- package/.next/standalone/apps/web/server.js +1 -1
- package/package.json +1 -1
- /package/.next/standalone/apps/web/.next/static/{3a-Yp8Tao7I-rZrHO2nhQ → 2agjdRRH7rqG82mu-A6B0}/_buildManifest.js +0 -0
- /package/.next/standalone/apps/web/.next/static/{3a-Yp8Tao7I-rZrHO2nhQ → 2agjdRRH7rqG82mu-A6B0}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/
|
|
1
|
+
globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/2agjdRRH7rqG82mu-A6B0/_buildManifest.js","static/2agjdRRH7rqG82mu-A6B0/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-891a344c81b3d134.js","static/chunks/4b97ec65-3ab9696003c4f8b0.js","static/chunks/1440-d049f19b3236f8e2.js","static/chunks/main-app-ec2a9ce427a6896e.js"],rootMainFilesTree:{},pages:{"/_app":[]}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="bg-transparent"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/57f229fa33881fb4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-891a344c81b3d134.js"/><script src="/_next/static/chunks/4b97ec65-3ab9696003c4f8b0.js" async=""></script><script src="/_next/static/chunks/1440-d049f19b3236f8e2.js" async=""></script><script src="/_next/static/chunks/main-app-ec2a9ce427a6896e.js" async=""></script><script src="/_next/static/chunks/4787-537f93b73c817c4d.js" async=""></script><script src="/_next/static/chunks/8009-b4d084cb6463d2ee.js" async=""></script><script src="/_next/static/chunks/2386-f156e690dc7d8cdd.js" async=""></script><script src="/_next/static/chunks/3498-9ad996c24a2c3e41.js" async=""></script><script src="/_next/static/chunks/8001-0a22222a653cc4a5.js" async=""></script><script src="/_next/static/chunks/1603-890510b608ed0859.js" async=""></script><script src="/_next/static/chunks/8271-e51245f74f204e92.js" async=""></script><script src="/_next/static/chunks/app/layout-b915f8aecbb6e586.js" async=""></script><script src="/_next/static/chunks/9904-bdf8cf9cc593803f.js" async=""></script><script src="/_next/static/chunks/app/template-24c15931bd9c49dc.js" async=""></script><meta name="robots" content="noindex"/><title>larkup</title><meta name="description" content="larkup — a toolkit to build, index, and serve your own AI model and knowledge base."/><link rel="icon" href="/favicon.ico?f418db460f797530" type="image/x-icon" sizes="16x16"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="theme-gaia font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>(function(){try{var t=localStorage.getItem('app-theme');var d=document.body;if(!t)return;d.classList.remove('theme-larkup','theme-gaia','theme-linear');if(t!=='default')d.classList.add(t);}catch(e){}})();</script><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","light",null,["light","dark"],null,true,true)</script><div class="flex h-screen items-center justify-center"><div class="size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"></div></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false" data-react-aria-top-layer="true"></section><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/webpack-891a344c81b3d134.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[60469,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-b915f8aecbb6e586.js\"],\"ThemeProvider\"]\n3:I[29843,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-b915f8aecbb6e586.js\"],\"UpdateBanner\"]\n4:I[84844,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-b915f8aecbb6e586.js\"],\"ThemeCustomizerProvider\"]\n5:I[47443,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-b915f8aecbb6e586.js\"],\"ProjectProvider\"]\n6:I[97837,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-b915f8aecbb6e586.js\"],\"ClientLayoutWrapper\"]\n7:I[8944,[],\"\"]\n8:I[22542,[\"9904\",\"static/chunks/9904-bdf8cf9cc593803f.js\",\"6397\",\"static/chunks/app/template-24c15931bd9c49dc.js\"],\"default\"]\n9:I[8118,[],\"\"]\na:I[95835,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-b915f8aecbb6e586.js\"],\"Toaster\"]\nb:I[46321,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-b915f8aecbb6e586.js\"],\"GlobalIndexProgress\"]\nc:I[42268,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-b915f8aecbb6e586.js\"],\"GpuActivityIndicator\"]\nd:I[1087,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-b915f8aecbb6e586.js\"],\"Analytics\"]\ne:I[83421,[],\"OutletBoundary\"]\nf:\"$Sreact.suspense\"\n12:I[83421,[],\"ViewportBoundary\"]\n14:I[83421,[],\"MetadataBoundary\"]\n16:I[56844,[],\"default\",1]\n:HL[\"/_next/static/css/57f229fa33881fb4.css\",\"style\"]\n11:X\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/57f229fa33881fb4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"bg-transparent\",\"children\":[\"$\",\"body\",null,{\"suppressHydrationWarning\":true,\"className\":\"theme-gaia font-sans antialiased\",\"children\":[[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var t=localStorage.getItem('app-theme');var d=document.body;if(!t)return;d.classList.remove('theme-larkup','theme-gaia','theme-linear');if(t!=='default')d.classList.add(t);}catch(e){}})();\"}}],[\"$\",\"$L2\",null,{\"attribute\":\"class\",\"defaultTheme\":\"light\",\"enableSystem\":true,\"disableTransitionOnChange\":true,\"children\":[[\"$\",\"$L3\",null,{}],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"children\":[[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$L9\",null,{}]}],\"templateStyles\":[],\"templateScripts\":null,\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$La\",null,{\"position\":\"bottom-right\"}],[\"$\",\"$Lb\",null,{}],[\"$\",\"$Lc\",null,{}]]}]}]]}],[\"$\",\"$Ld\",null,{}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"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.\"}]}]]}]}]],null,[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@10\"}]}]]}],{},null,false,null]},null,false,\"$11\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L14\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L15\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$16\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"3a-Yp8Tao7I-rZrHO2nhQ\"}\n11:C\n13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n17:I[91048,[],\"IconMark\"]\n10:null\n15:[[\"$\",\"title\",\"0\",{\"children\":\"larkup\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"larkup — a toolkit to build, index, and serve your own AI model and knowledge base.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?f418db460f797530\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"$L17\",\"3\",{}]]\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="bg-transparent"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/57f229fa33881fb4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-891a344c81b3d134.js"/><script src="/_next/static/chunks/4b97ec65-3ab9696003c4f8b0.js" async=""></script><script src="/_next/static/chunks/1440-d049f19b3236f8e2.js" async=""></script><script src="/_next/static/chunks/main-app-ec2a9ce427a6896e.js" async=""></script><script src="/_next/static/chunks/4787-537f93b73c817c4d.js" async=""></script><script src="/_next/static/chunks/8009-b4d084cb6463d2ee.js" async=""></script><script src="/_next/static/chunks/2386-f156e690dc7d8cdd.js" async=""></script><script src="/_next/static/chunks/3498-9ad996c24a2c3e41.js" async=""></script><script src="/_next/static/chunks/8001-0a22222a653cc4a5.js" async=""></script><script src="/_next/static/chunks/1603-890510b608ed0859.js" async=""></script><script src="/_next/static/chunks/8271-e51245f74f204e92.js" async=""></script><script src="/_next/static/chunks/app/layout-eea33807e2757122.js" async=""></script><script src="/_next/static/chunks/9904-bdf8cf9cc593803f.js" async=""></script><script src="/_next/static/chunks/app/template-24c15931bd9c49dc.js" async=""></script><meta name="robots" content="noindex"/><title>larkup</title><meta name="description" content="larkup — a toolkit to build, index, and serve your own AI model and knowledge base."/><link rel="icon" href="/favicon.ico?f418db460f797530" type="image/x-icon" sizes="16x16"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="theme-gaia font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>(function(){try{var t=localStorage.getItem('app-theme');var d=document.body;if(!t)return;d.classList.remove('theme-larkup','theme-gaia','theme-linear');if(t!=='default')d.classList.add(t);}catch(e){}})();</script><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","light",null,["light","dark"],null,true,true)</script><div class="flex h-screen items-center justify-center"><div class="size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"></div></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false" data-react-aria-top-layer="true"></section><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/webpack-891a344c81b3d134.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[60469,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-eea33807e2757122.js\"],\"ThemeProvider\"]\n3:I[29843,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-eea33807e2757122.js\"],\"UpdateBanner\"]\n4:I[84844,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-eea33807e2757122.js\"],\"ThemeCustomizerProvider\"]\n5:I[47443,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-eea33807e2757122.js\"],\"ProjectProvider\"]\n6:I[97837,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-eea33807e2757122.js\"],\"ClientLayoutWrapper\"]\n7:I[8944,[],\"\"]\n8:I[22542,[\"9904\",\"static/chunks/9904-bdf8cf9cc593803f.js\",\"6397\",\"static/chunks/app/template-24c15931bd9c49dc.js\"],\"default\"]\n9:I[8118,[],\"\"]\na:I[95835,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-eea33807e2757122.js\"],\"Toaster\"]\nb:I[46321,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-eea33807e2757122.js\"],\"GlobalIndexProgress\"]\nc:I[42268,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-eea33807e2757122.js\"],\"GpuActivityIndicator\"]\nd:I[1087,[\"4787\",\"static/chunks/4787-537f93b73c817c4d.js\",\"8009\",\"static/chunks/8009-b4d084cb6463d2ee.js\",\"2386\",\"static/chunks/2386-f156e690dc7d8cdd.js\",\"3498\",\"static/chunks/3498-9ad996c24a2c3e41.js\",\"8001\",\"static/chunks/8001-0a22222a653cc4a5.js\",\"1603\",\"static/chunks/1603-890510b608ed0859.js\",\"8271\",\"static/chunks/8271-e51245f74f204e92.js\",\"7177\",\"static/chunks/app/layout-eea33807e2757122.js\"],\"Analytics\"]\ne:I[83421,[],\"OutletBoundary\"]\nf:\"$Sreact.suspense\"\n12:I[83421,[],\"ViewportBoundary\"]\n14:I[83421,[],\"MetadataBoundary\"]\n16:I[56844,[],\"default\",1]\n:HL[\"/_next/static/css/57f229fa33881fb4.css\",\"style\"]\n11:X\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/57f229fa33881fb4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"bg-transparent\",\"children\":[\"$\",\"body\",null,{\"suppressHydrationWarning\":true,\"className\":\"theme-gaia font-sans antialiased\",\"children\":[[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var t=localStorage.getItem('app-theme');var d=document.body;if(!t)return;d.classList.remove('theme-larkup','theme-gaia','theme-linear');if(t!=='default')d.classList.add(t);}catch(e){}})();\"}}],[\"$\",\"$L2\",null,{\"attribute\":\"class\",\"defaultTheme\":\"light\",\"enableSystem\":true,\"disableTransitionOnChange\":true,\"children\":[[\"$\",\"$L3\",null,{}],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"children\":[[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$L9\",null,{}]}],\"templateStyles\":[],\"templateScripts\":null,\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$La\",null,{\"position\":\"bottom-right\"}],[\"$\",\"$Lb\",null,{}],[\"$\",\"$Lc\",null,{}]]}]}]]}],[\"$\",\"$Ld\",null,{}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"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.\"}]}]]}]}]],null,[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@10\"}]}]]}],{},null,false,null]},null,false,\"$11\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L14\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L15\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$16\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"2agjdRRH7rqG82mu-A6B0\"}\n11:C\n13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n17:I[91048,[],\"IconMark\"]\n10:null\n15:[[\"$\",\"title\",\"0\",{\"children\":\"larkup\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"larkup — a toolkit to build, index, and serve your own AI model and knowledge base.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?f418db460f797530\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"$L17\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-891a344c81b3d134.js"/><script src="/_next/static/chunks/4b97ec65-3ab9696003c4f8b0.js" async=""></script><script src="/_next/static/chunks/1440-d049f19b3236f8e2.js" async=""></script><script src="/_next/static/chunks/main-app-ec2a9ce427a6896e.js" async=""></script><script src="/_next/static/chunks/9904-bdf8cf9cc593803f.js" async=""></script><script src="/_next/static/chunks/app/template-24c15931bd9c49dc.js" async=""></script><title>500: This page couldn’t load</title><div hidden=""><!--$--><!--/$--></div><div class="h-full w-full" style="opacity:0;transform:translateY(15px)"><html id="__next_error__"><head><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--></div><script src="/_next/static/chunks/webpack-891a344c81b3d134.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[8944,[],\"\"]\n3:I[22542,[\"9904\",\"static/chunks/9904-bdf8cf9cc593803f.js\",\"6397\",\"static/chunks/app/template-24c15931bd9c49dc.js\"],\"default\"]\n4:I[8118,[],\"\"]\n5:I[83421,[],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n9:I[83421,[],\"ViewportBoundary\"]\nb:I[83421,[],\"MetadataBoundary\"]\nd:I[56844,[],\"default\",1]\n8:X\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_global-error\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4624]},\"$undefined\",\"$undefined\",4624]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{}]}],\"templateStyles\":[],\"templateScripts\":null,\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,\"$8\"]},null,false,\"$8\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-891a344c81b3d134.js"/><script src="/_next/static/chunks/4b97ec65-3ab9696003c4f8b0.js" async=""></script><script src="/_next/static/chunks/1440-d049f19b3236f8e2.js" async=""></script><script src="/_next/static/chunks/main-app-ec2a9ce427a6896e.js" async=""></script><script src="/_next/static/chunks/9904-bdf8cf9cc593803f.js" async=""></script><script src="/_next/static/chunks/app/template-24c15931bd9c49dc.js" async=""></script><title>500: This page couldn’t load</title><div hidden=""><!--$--><!--/$--></div><div class="h-full w-full" style="opacity:0;transform:translateY(15px)"><html id="__next_error__"><head><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--></div><script src="/_next/static/chunks/webpack-891a344c81b3d134.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[8944,[],\"\"]\n3:I[22542,[\"9904\",\"static/chunks/9904-bdf8cf9cc593803f.js\",\"6397\",\"static/chunks/app/template-24c15931bd9c49dc.js\"],\"default\"]\n4:I[8118,[],\"\"]\n5:I[83421,[],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n9:I[83421,[],\"ViewportBoundary\"]\nb:I[83421,[],\"MetadataBoundary\"]\nd:I[56844,[],\"default\",1]\n8:X\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_global-error\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4624]},\"$undefined\",\"$undefined\",4624]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{}]}],\"templateStyles\":[],\"templateScripts\":null,\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,\"$8\"]},null,false,\"$8\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"2agjdRRH7rqG82mu-A6B0\"}\n8:C\na:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n7:null\nc:[]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{2753:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,79260,23)),Promise.resolve().then(t.bind(t,42268)),Promise.resolve().then(t.bind(t,97837)),Promise.resolve().then(t.bind(t,46321)),Promise.resolve().then(t.bind(t,47443)),Promise.resolve().then(t.bind(t,84844)),Promise.resolve().then(t.bind(t,95835)),Promise.resolve().then(t.bind(t,29843)),Promise.resolve().then(t.bind(t,1087)),Promise.resolve().then(t.bind(t,60469))},29843:(e,s,t)=>{"use strict";t.d(s,{UpdateBanner:()=>m});var n=t(55662),r=t(19326),a=t(89258),l=t(65853),i=t(94374),d=t(45793),o=t(33139),c=t(20502);let u="larkup-update-dismissed",x={docker:"docker compose pull && docker compose up -d",npm:"larkup update"};function m(){let[e,s]=(0,r.useState)(null),[m,h]=(0,r.useState)(!1),[g,p]=(0,r.useState)(!1),[f,j]=(0,r.useState)(!1),b="0.2.13",v="__TAURI__"in window?"desktop":"true"===c.env.NEXT_PUBLIC_DOCKER_ENV||"true"===c.env.NEXT_PUBLIC_RUNNING_IN_DOCKER?"docker":"npm";(0,r.useEffect)(()=>{if(function(){try{let e=localStorage.getItem(u);if(!e)return!1;let{timestamp:s}=JSON.parse(e);return Date.now()-s<864e5}catch{return!1}}())return;let e=new AbortController;return fetch("https://www.larkup.de/api/version",{signal:e.signal,cache:"no-store"}).then(e=>e.json()).then(e=>{e.version&&function(e,s){let t=e.replace(/^v/,"").split(".").map(Number),n=s.replace(/^v/,"").split(".").map(Number);for(let e=0;e<3;e++){let s=t[e]||0,r=n[e]||0;if(s>r)return 1;if(s<r)return -1}return 0}(e.version,b)>0&&(s(e.version),h(!0))}).catch(()=>{}),()=>e.abort()},[b]);let N=async()=>{if("desktop"===v){p(!0);try{let{check:e}=await t.e(8970).then(t.bind(t,8970)),{relaunch:s}=await t.e(5734).then(t.bind(t,85734)),n=await e();n?(await n.downloadAndInstall(),await s()):p(!1)}catch(e){console.error("Auto-update failed:",e),p(!1),window.open("https://www.larkup.de/download","_blank")}}else try{await navigator.clipboard.writeText(x[v]),j(!0),window.setTimeout(()=>j(!1),2e3)}catch(e){console.error("Could not copy update command:",e)}};return m&&e?(0,n.jsx)("div",{role:"status","aria-live":"polite",className:"relative z-50 border-b border-border bg-background px-3 py-2 text-foreground sm:px-4",children:(0,n.jsxs)("div",{className:"mx-auto flex min-h-7 max-w-screen-2xl items-center gap-2.5",children:[(0,n.jsx)("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-foreground text-background",children:(0,n.jsx)(a.A,{className:"size-3.5","aria-hidden":"true"})}),(0,n.jsxs)("p",{className:"min-w-0 text-xs sm:text-sm",children:[(0,n.jsxs)("span",{className:"font-medium",children:["Larkup v",e," is available."]})," ",(0,n.jsxs)("span",{className:"hidden text-muted-foreground sm:inline",children:["You're using v",b,"."]})]}),"desktop"!==v&&(0,n.jsx)("code",{className:"ml-auto hidden max-w-152 truncate rounded-[5px] border border-border bg-muted/40 px-2 py-1 font-mono text-[11px] text-muted-foreground lg:block",children:x[v]}),(0,n.jsx)(o.$,{type:"button",variant:"desktop"===v?"default":"outline",size:"xs",onClick:N,disabled:g,"aria-label":"desktop"===v?"Update Larkup now":"Copy update command",className:"desktop"===v?"ml-auto":"ml-auto lg:ml-0",children:"desktop"===v?g?"Updating...":"Update now":f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.A,{"aria-hidden":"true"}),"Copied"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.A,{"aria-hidden":"true"}),"Copy command"]})}),(0,n.jsx)(o.$,{type:"button",variant:"ghost",size:"icon-xs",onClick:()=>{try{localStorage.setItem(u,JSON.stringify({timestamp:Date.now()}))}catch{}h(!1)},"aria-label":"Dismiss update notification",title:"Remind me tomorrow",children:(0,n.jsx)(d.A,{"aria-hidden":"true"})})]})}):null}},42268:(e,s,t)=>{"use strict";t.d(s,{GpuActivityIndicator:()=>d});var n=t(55662),r=t(87464),a=t(23479);let l=e=>fetch(e).then(e=>e.json());function i({percent:e}){let s=2*Math.PI*14,t=Math.max(0,Math.min(100,e));return(0,n.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",className:"shrink-0 -rotate-90",children:[(0,n.jsx)("circle",{cx:"16",cy:"16",r:14,className:"stroke-emerald-500/20",strokeWidth:"3",fill:"none"}),(0,n.jsx)("circle",{cx:"16",cy:"16",r:14,className:"stroke-emerald-500 transition-[stroke-dashoffset] duration-500",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeDasharray:s,strokeDashoffset:s-t/100*s})]})}function d(){let{data:e}=(0,a.u)("/api/gpu-activity",l,{refreshInterval:e=>e?.activity?.phase==="waking-up"?1e3:4e3}),s=e?.activity;return!s||"waking-up"!==s.phase||s.toolCallId?null:(0,n.jsx)("div",{className:"fixed bottom-24 right-6 z-50",children:(0,n.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border bg-white dark:bg-background px-3 py-2 text-sm font-medium shadow-xs",children:[(0,n.jsx)(i,{percent:s.percent}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 pr-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(r.A,{className:"size-4"}),(0,n.jsx)("span",{className:"text-xs leading-none text-muted-foreground",children:s.label})]}),(0,n.jsx)("span",{className:"larkup-shimmer-text leading-none",children:s.message}),(0,n.jsxs)("span",{className:"text-[11px] tabular-nums text-muted-foreground",children:[Math.round(s.percent),"%"]})]})]})})}},46321:(e,s,t)=>{"use strict";t.d(s,{GlobalIndexProgress:()=>E});var n=t(55662),r=t(23479),a=t(78311),l=t(19326),i=t(35750),d=t(77495),o=t(76952),c=t(57685),u=t(93615),x=t(70505),m=t(15102);t(9758),t(86210);var h=t(33139),g=t(50661),p=t(37825),f=t(88946),j=t(29727);function b({className:e,...s}){return(0,n.jsx)("div",{"data-slot":"skeleton",className:(0,j.cn)("animate-pulse rounded-md bg-muted",e),...s})}var v=t(86746),N=t(75167),y=t(52048);let w=e=>fetch(e).then(e=>e.json()),k=["chunking","embedding","upserting"];function C({open:e,onOpenChange:s,trigger:t}){let[x,m]=(0,l.useState)(!1),[g,p]=(0,l.useState)(!1),j=void 0!==e,z=j?e:g,S=j&&s?s:p,{data:I,isLoading:P,mutate:_}=(0,r.u)("/api/index",w,{refreshInterval:e=>e?.run&&k.includes(e.run.status)?1e3:0}),E=(0,l.useRef)(void 0);(0,l.useEffect)(()=>{let e=I?.run?.warning;e&&e!==E.current?v.oR.warning(e,{id:"rate-limit-warning",duration:7e4}):!e&&E.current&&(v.oR.dismiss("rate-limit-warning"),v.oR.success("Rate limit resolved — resuming indexing.",{duration:3e3})),E.current=e},[I?.run?.warning]);let[F,O]=(0,l.useState)(!1);async function R(e=!1){m(!0);try{let s=await fetch("/api/index",{method:"POST",body:JSON.stringify({incremental:e}),headers:{"Content-Type":"application/json"}}),t=await s.json();if(!s.ok)return void v.oR.error(t.error??"Could not start indexing.");v.oR.success("Indexing started."),_()}catch{v.oR.error("Could not start indexing.")}finally{m(!1)}}async function L(){m(!0);try{if(!(await fetch("/api/index",{method:"DELETE"})).ok)return void v.oR.error("Could not cancel indexing.");v.oR.success("Indexing cancelled."),_()}catch{v.oR.error("Could not cancel indexing.")}finally{m(!1)}}return(0,l.useEffect)(()=>{let e=I?.run?.status;e&&k.includes(e)?O(!0):F&&"completed"===e&&(O(!1),S(!1),v.oR.success("Indexing completed successfully!"))},[I?.run?.status,F,S]),(0,n.jsxs)(y.lG,{open:z,onOpenChange:S,children:[t?(0,n.jsx)(y.zM,{render:(0,l.isValidElement)(t)?t:(0,n.jsx)("button",{children:t})}):(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[I?.run?.status==="completed"&&(0,n.jsxs)(N.Lt,{children:[(0,n.jsx)(N.tv,{render:(0,n.jsxs)(h.$,{disabled:!I.ready||!!(I.run&&k.includes(I.run.status))||x,variant:"outline",children:[(0,n.jsx)(i.A,{className:"size-4 mr-2"}),"Re-Index Data"]})}),(0,n.jsxs)(N.EO,{children:[(0,n.jsxs)(N.wd,{children:[(0,n.jsx)(N.r7,{children:"Are you sure you want to re-index data?"}),(0,n.jsx)(N.$v,{children:"This will rebuild the entire index from scratch. All documents will be re-processed."})]}),(0,n.jsxs)(N.ck,{children:[(0,n.jsx)(N.Zr,{children:"Cancel"}),(0,n.jsx)(N.Rx,{onClick:()=>{S(!0),R(!1)},children:"Continue"})]})]})]}),(0,n.jsx)(y.zM,{render:(0,n.jsxs)(h.$,{disabled:!I?.ready||I?.unindexedCount===0,children:[(0,n.jsx)(d.A,{className:"size-4 mr-2"}),"Index Data"]})})]}),(0,n.jsxs)(y.Cf,{className:"max-w-2xl max-h-[90vh] overflow-y-auto ",children:[(0,n.jsxs)(y.c7,{children:[(0,n.jsx)(y.L3,{children:"Index Data"}),(0,n.jsx)(y.rr,{children:"Chunk, embed, and index into your selected vector database."})]}),P||!I?(0,n.jsx)("div",{className:"py-6",children:(0,n.jsx)(b,{className:"h-40 w-full"})}):(0,n.jsxs)("div",{className:"space-y-6 py-4",children:[!I.ready&&(0,n.jsxs)(f.Fc,{variant:"default",children:[(0,n.jsx)(o.A,{className:"size-4 text-orange-500!"}),(0,n.jsx)(f.XL,{className:"text-orange-500!",children:"Not ready to index"}),(0,n.jsx)(f.TN,{children:(0,n.jsx)("ul",{className:"list-disc pl-4",children:I.blockers.map(e=>(0,n.jsx)("li",{children:e},e))})})]}),(0,n.jsx)(A,{run:I.run,running:!!(I.run&&k.includes(I.run.status))}),I.ready&&!I.run&&(0,n.jsxs)(f.Fc,{children:[(0,n.jsx)(c.A,{className:"size-4 text-blue-500!"}),(0,n.jsx)(f.XL,{className:"text-blue-600 dark:text-blue-400",children:"Before you start indexing"}),(0,n.jsxs)(f.TN,{className:"text-muted-foreground space-y-1",children:[(0,n.jsxs)("p",{children:["Once indexing begins, two settings become"," ",(0,n.jsx)("span",{className:"font-medium text-foreground",children:"locked"})," to the existing index:"]}),(0,n.jsxs)("ul",{className:"list-disc pl-4 space-y-0.5",children:[(0,n.jsxs)("li",{children:[(0,n.jsx)("span",{className:"font-medium text-foreground",children:"Embedding model"})," — you can swap to any model with the"," ",(0,n.jsx)("span",{className:"font-medium text-foreground",children:"same vector dimensions"}),", but switching to a model with different dimensions will require a full re-index."]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("span",{className:"font-medium text-foreground",children:"Vector store"})," — changing the store after indexing requires starting fresh."]})]})]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between pt-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsxs)(h.$,{onClick:()=>R(I.run?.status==="completed"),disabled:!I.ready||!!(I.run&&k.includes(I.run.status))||x||I.run?.status==="completed"&&0===I.unindexedCount,size:"lg",children:[I.run&&k.includes(I.run.status)||x?(0,n.jsx)(a.A,{className:"size-4 animate-spin mr-2"}):(0,n.jsx)(u.A,{className:"size-4 mr-2"}),I.run&&k.includes(I.run.status)?"Indexing…":x?"Starting…":I.run?.status==="completed"?`Index new documents (${I.unindexedCount})`:`Start indexing (${I.unindexedCount})`]}),I.run?.status==="completed"&&!(I.run&&k.includes(I.run.status))&&(0,n.jsxs)(N.Lt,{children:[(0,n.jsx)(N.tv,{render:(0,n.jsxs)(h.$,{variant:"outline",size:"lg",disabled:x,children:[(0,n.jsx)(i.A,{className:"size-4 mr-2"}),"Re-Index All"]})}),(0,n.jsxs)(N.EO,{children:[(0,n.jsxs)(N.wd,{children:[(0,n.jsx)(N.r7,{children:"Are you sure you want to re-index data?"}),(0,n.jsx)(N.$v,{children:"This will rebuild the entire index from scratch. All documents will be re-processed."})]}),(0,n.jsxs)(N.ck,{children:[(0,n.jsx)(N.Zr,{children:"Cancel"}),(0,n.jsx)(N.Rx,{onClick:()=>{S(!0),R(!1)},children:"Continue"})]})]})]}),!!(I.run&&k.includes(I.run.status))&&(0,n.jsx)(h.$,{onClick:L,disabled:x,size:"lg",variant:"destructive",children:"Cancel"})]}),(0,n.jsx)(h.$,{variant:"ghost",size:"lg",onClick:()=>S(!1),children:"Close"})]})]})]})]})}let z={idle:{label:"Idle"},chunking:{label:"Chunking",phase:"Splitting documents into chunks"},embedding:{label:"Embedding",phase:"Generating vector embeddings"},upserting:{label:"Storing",phase:"Writing vectors to the store"},completed:{label:"Completed"},failed:{label:"Failed"}};function A({run:e,running:s}){if(!e)return(0,n.jsxs)("div",{className:"rounded-xl border bg-card text-card-foreground flex flex-col items-center justify-center gap-1 py-8 text-center",children:[(0,n.jsx)(x.A,{className:"mb-1 size-6 text-muted-foreground/60"}),(0,n.jsx)("p",{className:"text-sm font-medium",children:"No index built yet"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"Build a Larkup index to embed your corpus and make it searchable."})]});let t=z[e.status],r=e.totalChunks>0?Math.round(e.processedChunks/e.totalChunks*100):5*!!s;return(0,n.jsxs)("div",{className:"rounded-xl border bg-card text-card-foreground p-4 space-y-4",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 text-base font-semibold",children:["completed"===e.status?(0,n.jsx)(m.A,{className:"size-4 text-primary"}):"failed"===e.status?(0,n.jsx)(o.A,{className:"size-4 text-destructive"}):(0,n.jsx)(a.A,{className:"size-4 animate-spin text-primary"}),t.label]}),(0,n.jsx)(I,{status:e.status})]}),"failed"===e.status?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:t.phase??"Done"}),(0,n.jsxs)("span",{className:"font-mono tabular-nums",children:[e.processedChunks.toLocaleString(),e.totalChunks>0&&` / ${e.totalChunks.toLocaleString()}`," chunks"]})]}),(0,n.jsx)(g.ke,{value:r,className:"**:data-[slot=progress-indicator]:bg-green-600"})]}),(0,n.jsxs)("dl",{className:"grid grid-cols-2 gap-4 pt-1 sm:grid-cols-4",children:[(0,n.jsx)(S,{label:"Documents",value:e.docCount.toLocaleString()}),(0,n.jsx)(S,{label:"Chunks",value:e.totalChunks.toLocaleString()}),(0,n.jsx)(S,{label:"Dimensions",value:e.dimensions?e.dimensions.toLocaleString():"—"}),(0,n.jsx)(S,{label:"Duration",value:e.durationMs?`${(e.durationMs/1e3).toFixed(1)}s`:s?"running…":"—"})]})]})]})}function S({label:e,value:s}){return(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,n.jsx)("dd",{className:"font-mono text-sm tabular-nums",children:s})]})}function I({status:e}){return"completed"===e?(0,n.jsx)(p.E,{className:"bg-primary/12 text-primary hover:bg-primary/12",children:"Ready"}):"failed"===e?(0,n.jsx)(p.E,{variant:"destructive",children:"Failed"}):k.includes(e)?(0,n.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-medium text-green-600",children:[(0,n.jsxs)("span",{className:"relative flex size-2",children:[(0,n.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-600 opacity-75"}),(0,n.jsx)("span",{className:"relative inline-flex size-2 rounded-full bg-green-600"})]}),"Live"]}):null}let P=e=>fetch(e).then(e=>e.json()),_=["chunking","embedding","upserting"];function E(){let{data:e}=(0,r.u)("/api/index",P,{refreshInterval:e=>e?.run&&_.includes(e.run.status)?1e3:0});if(!(e?.run&&_.includes(e.run.status))||!e?.run)return null;let{run:s}=e,t=s.totalChunks>0?Math.round(s.processedChunks/s.totalChunks*100):5;return(0,n.jsx)("div",{className:"fixed bottom-6 right-6 z-50",children:(0,n.jsx)(C,{trigger:(0,n.jsxs)("button",{className:"flex items-center gap-3 rounded-full border bg-background px-4 py-2 text-sm font-medium transition-all hover:bg-muted/50 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[(0,n.jsx)(a.A,{className:"size-4 animate-spin text-primary"}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,n.jsx)("span",{className:"text-xs leading-none text-muted-foreground",children:"Storing..."}),(0,n.jsxs)("span",{className:"leading-none",children:[t,"%"]})]})]})})})}},50661:(e,s,t)=>{"use strict";t.d(s,{ke:()=>d});var n=t(55662),r=t(48239),a=t(16183),l=t(17347),i=t(29727);function d({className:e,children:s,value:t,...a}){return(0,n.jsxs)(r.w,{value:t,"data-slot":"progress",className:(0,i.cn)("flex flex-wrap gap-3",e),...a,children:[s,(0,n.jsx)(o,{children:(0,n.jsx)(c,{})})]})}function o({className:e,...s}){return(0,n.jsx)(a.X,{className:(0,i.cn)("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),"data-slot":"progress-track",...s})}function c({className:e,...s}){return(0,n.jsx)(l.Z,{"data-slot":"progress-indicator",className:(0,i.cn)("h-full bg-primary transition-all",e),...s})}},79260:()=>{},95835:(e,s,t)=>{"use strict";t.d(s,{Toaster:()=>u});var n=t(55662),r=t(60469),a=t(86746),l=t(15102),i=t(57685),d=t(79736),o=t(68334),c=t(78311);let u=({...e})=>{let{theme:s="system"}=(0,r.D)();return(0,n.jsx)(a.l$,{closeButton:!0,theme:s,className:"toaster group z-9999999! ",icons:{success:(0,n.jsx)(l.A,{className:"size-5 text-white",fill:"#10b981"}),info:(0,n.jsx)(i.A,{className:"size-5 text-white",fill:"#3b82f6"}),warning:(0,n.jsx)(d.A,{className:"size-5 text-white",fill:"#f59e0b"}),error:(0,n.jsx)(o.A,{className:"size-5 text-white",fill:"#ef4444"}),loading:(0,n.jsx)(c.A,{className:"size-5 animate-spin text-muted-foreground"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)",zIndex:999999},toastOptions:{classNames:{toast:"group toast items-start group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900 group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:",icon:"mt-0.5",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",success:"group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900",error:"group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900",warning:"group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900",info:"group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900"}},...e})}},97837:(e,s,t)=>{"use strict";t.d(s,{ClientLayoutWrapper:()=>V});var n=t(55662),r=t(84844),a=t(19326),l=t(33601),i=t.n(l),d=t(5666),o=t(23659),c=t(50361),u=t(42886),x=t(71582),m=t(18288),h=t(72081),g=t(29727),p=t(16353),f=t(50626),j=t(65853),b=t(7102),v=t(95358),N=t(80941),y=t(47443),w=t(67523),k=t(86746),C=t(78311),z=t(33139),A=t(52048);function S({target:e,open:s,onOpenChange:t}){let{deleteProject:r}=(0,y.B)(),[l,i]=(0,a.useState)(!1);async function d(){if(e){i(!0);try{await r(e.id),k.oR.success(`Deleted "${e.name}".`),t(!1)}catch{k.oR.error("Could not delete the Project.")}finally{i(!1)}}}return(0,n.jsx)(A.lG,{open:s,onOpenChange:t,children:(0,n.jsxs)(A.Cf,{className:"sm:max-w-md",children:[(0,n.jsxs)(A.c7,{children:[(0,n.jsxs)(A.L3,{children:["Delete “",e?.name,"”?"]}),(0,n.jsx)(A.rr,{children:"This permanently removes the Project's documents, index, vector data, and generated files. This cannot be undone."})]}),(0,n.jsxs)(A.Es,{children:[(0,n.jsx)(z.$,{variant:"outline",onClick:()=>t(!1),disabled:l,children:"Cancel"}),(0,n.jsxs)(z.$,{variant:"destructive",onClick:()=>void d(),disabled:l,children:[l&&(0,n.jsx)(C.A,{className:"size-4 animate-spin"}),"Delete Project"]})]})]})})}function I(){let{projects:e,activeProject:s,activateProject:t}=(0,y.B)(),[r,l]=(0,a.useState)(!1),[i,d]=(0,a.useState)(null),[o,u]=(0,a.useState)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(N.rI,{children:[(0,n.jsxs)(N.ty,{render:(0,n.jsx)("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg border border-border bg-card px-2 py-1.5 text-left transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}),children:[(0,n.jsx)("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-md bg-primary/12 text-primary",children:(0,n.jsx)(h.A,{className:"size-3.5"})}),(0,n.jsx)("span",{className:"flex min-w-0 flex-1 flex-col",children:(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:"truncate text-sm font-medium text-foreground",children:s?.name??"No project"}),s?.running&&(0,n.jsx)(P,{})]})}),(0,n.jsx)(f.A,{className:"size-4 shrink-0 text-muted-foreground"})]}),(0,n.jsxs)(N.SQ,{align:"start",sideOffset:6,className:"w-(--anchor-width) min-w-65",children:[(0,n.jsxs)(N.I,{children:[(0,n.jsx)(N.lp,{children:"Your projects"}),e.map(e=>{let r=e.id===s?.id;return(0,n.jsxs)(N._2,{onClick:()=>{r||t(e.id)},className:"gap-2",children:[(0,n.jsx)("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",children:(0,n.jsx)(h.A,{className:"size-3.5"})}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,n.jsx)("span",{className:"truncate font-medium",children:e.name}),(0,n.jsxs)("span",{className:"flex items-center gap-2 text-[11px] text-muted-foreground tabular-nums",children:[(0,n.jsxs)("span",{children:[e.sourceCount," sources"]}),e.indexed&&(0,n.jsx)("span",{children:"\xb7 indexed"}),e.running&&(0,n.jsxs)("span",{className:"flex items-center gap-1 text-green-500",children:[(0,n.jsx)(P,{}),"live"]})]})]}),r&&(0,n.jsx)(j.A,{className:"size-4 shrink-0 text-primary"})]},e.id)})]}),(0,n.jsx)(N.mB,{}),(0,n.jsxs)(N._2,{onClick:()=>l(!0),className:"gap-2 h-9",children:[(0,n.jsx)(c.A,{className:"size-4"}),"New project"]}),s&&(0,n.jsxs)(N._2,{onClick:()=>d(s),className:"gap-2 h-9",children:[(0,n.jsx)(b.A,{className:"size-4"}),"Rename current"]}),s&&e.length>1&&(0,n.jsxs)(N._2,{variant:"destructive",onClick:()=>u(s),className:"gap-2",children:[(0,n.jsx)(v.A,{className:"size-4"}),"Delete current project"]})]})]}),(0,n.jsx)(w.S,{mode:"create",open:r,onOpenChange:l}),(0,n.jsx)(w.S,{mode:"rename",target:i,open:null!==i,onOpenChange:e=>!e&&d(null)}),(0,n.jsx)(S,{target:o,open:null!==o,onOpenChange:e=>!e&&u(null)})]})}function P(){return(0,n.jsxs)("span",{className:"relative flex size-2",children:[(0,n.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-75"}),(0,n.jsx)("span",{className:"relative inline-flex size-2 rounded-full bg-green-500"})]})}let _=[{id:"chat",label:"Chat",href:"/chat",icon:o.A},{id:"add",label:"Add",href:"/add",icon:c.A},{id:"data",label:"Data",href:"/data",icon:u.A},{id:"settings",label:"Settings",href:"/settings",icon:x.A}];function E(){let e=(0,d.usePathname)(),{activeProject:s}=(0,y.B)(),[t,r]=(0,a.useState)(!0);(0,a.useEffect)(()=>{"false"===localStorage.getItem("sidebar-collapsed")&&r(!1)},[]);let l=()=>{let e=!t;r(e),localStorage.setItem("sidebar-collapsed",String(e))};return(0,n.jsx)(p.Bc,{delay:150,children:(0,n.jsxs)("aside",{className:(0,g.cn)("sticky top-0 hidden h-screen shrink-0 flex-col self-start py-4 md:flex transition-all duration-300 ease-in-out bg-sidebar",t?"w-18":"w-60"),children:[(0,n.jsx)("div",{className:(0,g.cn)("flex w-full items-center mb-6",t?"justify-center px-3":"justify-between px-4"),children:t?(0,n.jsxs)(p.m_,{children:[(0,n.jsxs)(p.k$,{render:(0,n.jsx)("button",{onClick:l,"aria-label":"Expand sidebar",className:"flex size-10 items-center justify-center rounded-xl bg-primary text-primary-foreground transition-transform hover:scale-105"}),children:[(0,n.jsx)("img",{src:"/logo9.png",className:"size-5 dark:hidden",alt:"logo"}),(0,n.jsx)("img",{src:"/logo.png",className:"size-5 hidden dark:block",alt:"logo"})]}),(0,n.jsx)(p.ZI,{side:"right",sideOffset:10,children:"Expand sidebar"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{href:"/chat",className:"flex items-center gap-2.5",children:[(0,n.jsxs)("span",{className:"flex size-9 items-center justify-center rounded-xl bg-primary text-primary-foreground transition-transform hover:scale-105",children:[(0,n.jsx)("img",{src:"/logo9.png",className:"size-5 dark:hidden",alt:"logo"}),(0,n.jsx)("img",{src:"/logo.png",className:"size-5 hidden dark:block",alt:"logo"})]}),(0,n.jsx)("span",{className:"text-sm font-semibold tracking-tight text-foreground",children:"Larkup"})]}),(0,n.jsx)("button",{onClick:l,className:"flex size-7 items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors","aria-label":"Collapse sidebar",children:(0,n.jsx)(m.A,{className:"size-3.5"})})]})}),(0,n.jsx)("nav",{className:(0,g.cn)("flex flex-1 flex-col w-full",t?"items-center px-3 gap-3":"px-3 gap-1.5"),children:_.map(s=>{let r=s.icon,a=e===s.href||"/"!==s.href&&e?.startsWith(s.href);return t?(0,n.jsxs)(p.m_,{children:[(0,n.jsx)(p.k$,{className:"",render:(0,n.jsx)(i(),{href:s.href,"aria-current":a?"page":void 0,onClick:t=>{"chat"===s.id&&"/chat"===e&&(t.preventDefault(),window.dispatchEvent(new CustomEvent("new-chat")))},className:(0,g.cn)("group relative flex size-10 items-center justify-center rounded-xl transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring",a?"bg-sidebar-accent/60 text-sidebar-accent-foreground hover:bg-sidebar-accent":"text-muted-foreground hover:bg-white/65 hover:text-foreground")}),children:(0,n.jsx)(r,{className:"size-4.5",strokeWidth:a?2.25:1.75})}),(0,n.jsx)(p.ZI,{side:"right",sideOffset:10,children:s.label})]},s.id):(0,n.jsxs)(i(),{href:s.href,"aria-current":a?"page":void 0,onClick:t=>{"chat"===s.id&&"/chat"===e&&(t.preventDefault(),window.dispatchEvent(new CustomEvent("new-chat")))},className:(0,g.cn)("group relative flex items-center gap-3 rounded-xl px-3 py-2.5 text-[13px] font-medium transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring",a?"bg-sidebar-accent/70 text-sidebar-accent-foreground hover:bg-sidebar-accent/70":"text-muted-foreground hover:bg-white/65 hover:text-foreground"),children:[(0,n.jsx)(r,{className:"size-4.5 shrink-0",strokeWidth:a?2.25:1.75}),(0,n.jsx)("span",{className:"truncate",children:s.label})]},s.id)})}),(0,n.jsx)("div",{className:(0,g.cn)("w-full pt-3",t?"px-2":"px-3"),children:t?(0,n.jsxs)(p.m_,{children:[(0,n.jsx)(p.k$,{render:(0,n.jsx)("button",{onClick:l,className:"flex w-full items-center justify-center py-1.5 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors"}),children:(0,n.jsxs)("div",{className:"relative size-8 rounded-lg border border-border bg-card flex items-center justify-center text-muted-foreground transition-colors group-hover:text-foreground",children:[(0,n.jsx)(h.A,{className:"size-4"}),(0,n.jsx)("span",{className:"absolute -bottom-0.5 -right-0.5 flex size-2.5",children:s?.running?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-75"}),(0,n.jsx)("span",{className:"relative inline-flex size-full rounded-full bg-green-500 border border-card"})]}):(0,n.jsx)("span",{className:"relative inline-flex size-full rounded-full bg-gray-500 border border-card"})})]})}),(0,n.jsxs)(p.ZI,{side:"right",sideOffset:10,children:[s?.name??"No project"," (",s?.running?"Live":"Offline",")"]})]}):(0,n.jsx)(I,{})})]})})}let F=[{id:"chat",label:"Chat",href:"/chat",icon:o.A},{id:"add",label:"Add",href:"/add",icon:c.A},{id:"data",label:"Data",href:"/data",icon:u.A},{id:"settings",label:"Settings",href:"/settings",icon:x.A}];function O(){let e=(0,d.usePathname)();return(0,n.jsx)(p.Bc,{delay:150,children:(0,n.jsxs)("header",{className:(0,g.cn)("sticky top-0 z-50 flex h-14 shrink-0 items-center gap-6 border-b border-border px-4 md:px-6 bg-sidebar"),children:[(0,n.jsxs)(i(),{href:"/chat","aria-label":"larkup home",className:"flex items-center gap-2.5 shrink-0",children:[(0,n.jsxs)("span",{className:"flex size-9 items-center justify-center rounded-xl bg-primary text-primary-foreground transition-transform hover:scale-105",children:[(0,n.jsx)("img",{src:"/logo9.png",className:"size-5 dark:hidden",alt:"logo"}),(0,n.jsx)("img",{src:"/logo.png",className:"size-5 hidden dark:block",alt:"logo"})]}),(0,n.jsx)("span",{className:"font-semibold tracking-tight text-foreground hidden sm:inline-block",children:"Larkup"})]}),(0,n.jsx)("nav",{className:"flex h-full items-center gap-1",children:F.map(s=>{let t=s.icon,r=e===s.href||"/"!==s.href&&e?.startsWith(s.href);return(0,n.jsxs)(i(),{href:s.href,"aria-current":r?"page":void 0,className:(0,g.cn)("group relative flex items-center gap-2 h-full px-3 text-[13px] font-medium transition-colors outline-none",r?"text-primary":"text-muted-foreground hover:text-foreground"),children:[(0,n.jsx)(t,{className:"size-4",strokeWidth:r?2.25:1.75}),(0,n.jsx)("span",{className:"hidden md:inline",children:s.label}),(0,n.jsx)("span",{className:(0,g.cn)("absolute bottom-0 left-2 right-2 h-0.5 rounded-full bg-primary transition-opacity",r?"opacity-100":"opacity-0")})]},s.id)})}),(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(I,{}),""]})]})})}var R=t(89182),L=t(99058),B=t(404),M=t(40767),$=t(96511),D=t(91340),K=t(45240),T=t(57487),Q=t(57041);let U=["vercel_ai_gateway","openai","google","mistral","custom"];function W(){let{createProject:e,refresh:s}=(0,y.B)(),t=(0,d.useRouter)(),[r,l]=(0,a.useState)(""),[i,o]=(0,a.useState)("vercel_ai_gateway"),[c,u]=(0,a.useState)(""),[x,m]=(0,a.useState)(null),[h,g]=(0,a.useState)("vercel_ai_gateway"),[p,f]=(0,a.useState)(""),[j,v]=(0,a.useState)(null),[N,w]=(0,a.useState)(!1),[S,I]=(0,a.useState)(!1),[P,_]=(0,a.useState)(!1),[E,F]=(0,a.useState)("vercel_ai_gateway"),[O,W]=(0,a.useState)(""),[V,G]=(0,a.useState)(!1),[Z,J]=(0,a.useState)(!1),[X,q]=(0,a.useState)(!1),[H,Y]=(0,a.useState)(null),ee="custom"===i,es="custom"===h,et=S||ee||i!==h?p:c,en=async()=>{w(!0);try{let n=await fetch("/api/config"),{config:a}=await n.json(),l={...a};ee&&x?(l.embeddingProvider="custom",l.embeddingModelId=`custom:${x.modelName}`,l.embeddingApiKey=x.apiKey||void 0,l.customEmbeddings=[x]):(l.embeddingProvider=i,l.embeddingApiKey=c),S?es&&j?(l.chatProvider="custom",l.chatModelId=`custom:${j.modelName}`,l.chatApiKey=j.apiKey||void 0,l.customChatModels=[j]):(l.chatProvider=h,l.chatApiKey=et):ee&&x||(l.chatProvider=i,l.chatApiKey=c),l.visionProvider=P?E:l.chatProvider,l.visionApiKey=P?O:l.chatApiKey,l.visionModelId="";let d=await fetch("/api/config/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({embeddingProvider:l.embeddingProvider,embeddingApiKey:l.embeddingApiKey,embeddingModelId:l.embeddingModelId,customEmbeddings:l.customEmbeddings,chatProvider:l.chatProvider,chatApiKey:l.chatApiKey,chatModelId:l.chatModelId,customChatModels:l.customChatModels,visionProvider:l.visionProvider,visionApiKey:l.visionApiKey,visionModelId:l.visionModelId})});if(!d.ok){let e=await d.json();k.oR.error(e.error||"Verification failed — please check your API key.",{duration:8e3}),w(!1);return}await e(r.trim()||"my-larkup"),await fetch("/api/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}),s(),t.push("/chat")}catch(e){k.oR.error("Failed to complete setup")}finally{w(!1)}},er=async()=>{w(!0);try{await e(r.trim()||"my-larkup"),s(),t.push("/chat")}catch(e){k.oR.error("Failed to complete setup")}finally{w(!1)}},ea=(e,s)=>(0,n.jsxs)(K.l6,{value:e,onValueChange:e=>{var t;"custom"===(t=e??"")?("embedding"===s?o("custom"):g("custom"),Y(s)):"embedding"===s?(o(t),m(null),!S&&g(t),!P&&F(t)):(g(t),v(null))},children:[(0,n.jsx)(K.bq,{className:"w-full bg-white/90 hover:bg-white",children:(0,n.jsx)("span",{className:"flex items-center gap-2",children:T.Qd[e]?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T.rb,{src:T.Qd[e].iconSrc,alt:T.Qd[e].label,pillBg:T.Qd[e].pillBg,size:16}),T.Qd[e].label]}):"Select provider"})}),(0,n.jsx)(K.gC,{children:U.map(e=>{let s=T.Qd[e];return s?(0,n.jsx)(K.eb,{value:e,children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(T.rb,{src:s.iconSrc,alt:s.label,pillBg:s.pillBg,size:16}),(0,n.jsxs)("span",{children:[s.label,"vercel_ai_gateway"===e&&" (Recommended)","custom"===e&&" (OpenAI-compatible)"]})]})},e):null})})]}),el=(e,s)=>(0,n.jsxs)("div",{className:"mt-1.5 flex items-center gap-2 rounded-lg border border-green-200 bg-green-50/50 px-3 py-2",children:[(0,n.jsx)("span",{className:"text-green-600 text-xs",children:"✓"}),(0,n.jsx)("span",{className:"flex-1 truncate text-xs font-medium text-foreground",children:e.modelName}),(0,n.jsx)("button",{type:"button",onClick:()=>Y(s),className:"text-muted-foreground hover:text-foreground transition-colors",children:(0,n.jsx)(b.A,{className:"size-3"})})]});return(0,n.jsxs)("div",{className:"fixed inset-0 z-50 overflow-y-auto bg-background",children:[(0,n.jsxs)("div",{className:"pointer-events-none fixed inset-0 overflow-hidden",children:[(0,n.jsx)("div",{className:"absolute -left-20 -top-20 h-125 w-125 rounded-full bg-stone-200/40 blur-3xl animate-pulse"}),(0,n.jsx)("div",{className:"absolute -bottom-32 -right-32 h-150 w-150 rounded-full bg-amber-100/30 blur-3xl animate-pulse [animation-delay:1s]"})]}),(0,n.jsx)("div",{className:"relative z-10 flex min-h-full w-full flex-col items-center justify-center px-6 py-12",children:(0,n.jsxs)("div",{className:"flex w-full max-w-lg flex-col items-center gap-8 animate-fade-up",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,n.jsx)("div",{className:"flex size-14 items-center justify-center rounded-xl bg-primary text-primary-foreground ",children:(0,n.jsx)("img",{src:"/logo9.png",className:"size-8",alt:"Larkup"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text-2xl font-bold tracking-tight text-foreground",children:"Welcome to Larkup"}),(0,n.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Let's set up your AI models. You can change these later in Settings."})]})]}),(0,n.jsxs)("div",{className:"w-full space-y-5 rounded-2xl p-6 backdrop-blur-xl",children:[(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Your Name (Optional)"}),(0,n.jsx)(D.p,{value:r,onChange:e=>l(e.target.value),placeholder:"How should we call you?",className:"bg-white"})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Embedding Provider"}),ea(i,"embedding"),ee&&x&&el(x,"embedding"),ee&&!x&&(0,n.jsx)("p",{className:"text-[11px] text-amber-600 mt-1",children:"Please configure and test your custom model to continue."})]}),!ee&&(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsxs)("label",{className:"text-xs font-medium text-foreground",children:["API Key",!S&&(0,n.jsxs)("span",{className:"text-muted-foreground font-normal",children:[" ","(used for both embedding & chat)"]})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(D.p,{type:V?"text":"password",value:c,onChange:e=>u(e.target.value),placeholder:"sk-...",className:"bg-white pr-10"}),(0,n.jsx)("button",{type:"button","aria-label":V?"Hide API key":"Show API key",onClick:()=>G(e=>!e),className:"absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground",children:V?(0,n.jsx)(R.A,{className:"size-4"}):(0,n.jsx)(L.A,{className:"size-4"})})]})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>I(!S),className:"flex w-full items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[S?(0,n.jsx)(B.A,{className:"size-3.5"}):(0,n.jsx)(M.A,{className:"size-3.5"}),"Use a different chat model"]}),S&&(0,n.jsxs)("div",{className:"space-y-3 rounded-xl border border-border/40 bg-muted/20 p-4",children:[(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Chat Provider"}),ea(h,"chat"),es&&j&&el(j,"chat"),es&&!j&&(0,n.jsx)("p",{className:"text-[11px] text-amber-600 mt-1",children:"Please configure and test your custom model to continue."})]}),!es&&(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Chat API Key"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(D.p,{type:Z?"text":"password",value:p,onChange:e=>f(e.target.value),placeholder:"sk-...",className:"bg-background/50 pr-10"}),(0,n.jsx)("button",{type:"button","aria-label":Z?"Hide chat API key":"Show chat API key",onClick:()=>J(e=>!e),className:"absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground",children:Z?(0,n.jsx)(R.A,{className:"size-4"}):(0,n.jsx)(L.A,{className:"size-4"})})]})]})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>_(!P),className:"flex w-full items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[P?(0,n.jsx)(B.A,{className:"size-3.5"}):(0,n.jsx)(M.A,{className:"size-3.5"}),"Use a dedicated vision model for video and images"]}),P&&(0,n.jsxs)("div",{className:"space-y-3 rounded-xl border border-border/40 bg-muted/20 p-4",children:[(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Vision Provider"}),(0,n.jsxs)(K.l6,{value:E,onValueChange:e=>F(e??""),children:[(0,n.jsx)(K.bq,{className:"w-full bg-white/90 hover:bg-white",children:(0,n.jsx)("span",{className:"flex items-center gap-2",children:T.Qd[E]?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T.rb,{src:T.Qd[E].iconSrc,alt:T.Qd[E].label,pillBg:T.Qd[E].pillBg,size:16}),T.Qd[E].label]}):"Select provider"})}),(0,n.jsx)(K.gC,{children:U.filter(e=>"custom"!==e).map(e=>{let s=T.Qd[e];return s?(0,n.jsx)(K.eb,{value:e,children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(T.rb,{src:s.iconSrc,alt:s.label,pillBg:s.pillBg,size:16}),(0,n.jsx)("span",{children:s.label})]})},e):null})})]}),(0,n.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"Only vision-capable models are used; the default is selected automatically."})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Vision API Key"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(D.p,{type:X?"text":"password",value:O,onChange:e=>W(e.target.value),placeholder:"sk-...",className:"bg-background/50 pr-10"}),(0,n.jsx)("button",{type:"button","aria-label":X?"Hide vision API key":"Show vision API key",onClick:()=>q(e=>!e),className:"absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground",children:X?(0,n.jsx)(R.A,{className:"size-4"}):(0,n.jsx)(L.A,{className:"size-4"})})]})]})]}),(0,n.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"More providers and fine-grained model selection available in Settings → AI Models."}),(0,n.jsxs)("div",{className:"pt-2 flex gap-3",children:[(0,n.jsx)(z.$,{variant:"outline",className:"flex-1 h-10",onClick:er,disabled:N,children:"Skip for now"}),(0,n.jsx)(z.$,{className:"flex-1 h-10",onClick:en,disabled:N||!(()=>{if(ee){if(!x)return!1}else if(!c)return!1;if(S){if(es){if(!j)return!1}else if(!et)return!1}return!P||!!O})(),children:N?(0,n.jsx)(C.A,{className:"size-4 animate-spin"}):(0,n.jsxs)(n.Fragment,{children:["Continue ",(0,n.jsx)($.A,{className:"ml-1.5 size-4"})]})})]})]})]})}),(0,n.jsx)(A.lG,{open:null!==H,onOpenChange:e=>{e||("embedding"!==H||x||o("vercel_ai_gateway"),"chat"!==H||j||g("vercel_ai_gateway"),Y(null))},children:(0,n.jsxs)(A.Cf,{className:"max-w-xl",children:[(0,n.jsxs)(A.c7,{children:[(0,n.jsxs)(A.L3,{children:["Custom ","embedding"===H?"Embedding":"Chat"," Model"]}),(0,n.jsxs)(A.rr,{children:["Connect an OpenAI-compatible ","embedding"===H?"embedding":"chat"," ","model. Test the connection before adding."]})]}),H&&(0,n.jsx)(Q.B,{type:H,onSave:e=>{"embedding"===H?(m(e),o("custom")):"chat"===H&&(v(e),g("custom")),Y(null)},onCancel:()=>{"embedding"!==H||x||o("vercel_ai_gateway"),"chat"!==H||j||g("vercel_ai_gateway"),Y(null)}})]})})]})}function V({children:e}){let{layout:s}=(0,r.y)(),t=(0,d.usePathname)(),a=t?.includes("/chat"),{isFirstRun:l,isLoading:i}=(0,y.B)();return!i&&l?(0,n.jsx)(W,{}):i?(0,n.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,n.jsx)("div",{className:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):"topnav"===s?(0,n.jsxs)("div",{className:"flex flex-col h-screen overflow-hidden",children:[(0,n.jsx)(O,{}),(0,n.jsx)("main",{className:"min-w-0 flex-1 overflow-hidden",children:(0,n.jsx)("div",{className:"h-full flex flex-col bg-background text-foreground",children:(0,n.jsx)("div",{className:(0,g.cn)("flex-1 min-h-0",a||t?.includes("/settings")||t?.includes("/analytics")?"overflow-hidden flex flex-col":"overflow-auto"),children:(0,n.jsx)("div",{className:(0,g.cn)("h-full w-full",a||t?.includes("/settings")||t?.includes("/analytics")?"flex-1 min-h-0 flex flex-col":"container mx-auto pb-8"),children:e})})})})]}):(0,n.jsxs)("div",{className:"flex h-screen overflow-hidden",children:[(0,n.jsx)(E,{}),(0,n.jsx)("main",{className:"min-w-0 flex-1 overflow-hidden",children:(0,n.jsx)("div",{className:"h-screen flex flex-col border-l border-border/90 bg-background text-foreground overflow-hidden",children:(0,n.jsx)("div",{className:(0,g.cn)("flex-1 min-h-0",a||t?.includes("/settings")||t?.includes("/analytics")?"overflow-hidden flex flex-col":"overflow-auto"),children:(0,n.jsx)("div",{className:(0,g.cn)("h-full w-full",a||t?.includes("/settings")||t?.includes("/analytics")?"flex-1 min-h-0 flex flex-col":"container mx-auto pb-8"),children:e})})})})]})}}},e=>{e.O(0,[9457,4787,8009,2386,3498,8001,1603,8271,2882,1440,7358],()=>e(e.s=2753)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{2753:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,79260,23)),Promise.resolve().then(t.bind(t,42268)),Promise.resolve().then(t.bind(t,97837)),Promise.resolve().then(t.bind(t,46321)),Promise.resolve().then(t.bind(t,47443)),Promise.resolve().then(t.bind(t,84844)),Promise.resolve().then(t.bind(t,95835)),Promise.resolve().then(t.bind(t,29843)),Promise.resolve().then(t.bind(t,1087)),Promise.resolve().then(t.bind(t,60469))},29843:(e,s,t)=>{"use strict";t.d(s,{UpdateBanner:()=>m});var n=t(55662),r=t(19326),a=t(89258),l=t(65853),i=t(94374),d=t(45793),o=t(33139),c=t(20502);let u="larkup-update-dismissed",x={docker:"docker compose pull && docker compose up -d",npm:"larkup update"};function m(){let[e,s]=(0,r.useState)(null),[m,h]=(0,r.useState)(!1),[g,p]=(0,r.useState)(!1),[f,j]=(0,r.useState)(!1),b="0.2.14",v="__TAURI__"in window?"desktop":"true"===c.env.NEXT_PUBLIC_DOCKER_ENV||"true"===c.env.NEXT_PUBLIC_RUNNING_IN_DOCKER?"docker":"npm";(0,r.useEffect)(()=>{if(function(){try{let e=localStorage.getItem(u);if(!e)return!1;let{timestamp:s}=JSON.parse(e);return Date.now()-s<864e5}catch{return!1}}())return;let e=new AbortController;return fetch("https://www.larkup.de/api/version",{signal:e.signal,cache:"no-store"}).then(e=>e.json()).then(e=>{e.version&&function(e,s){let t=e.replace(/^v/,"").split(".").map(Number),n=s.replace(/^v/,"").split(".").map(Number);for(let e=0;e<3;e++){let s=t[e]||0,r=n[e]||0;if(s>r)return 1;if(s<r)return -1}return 0}(e.version,b)>0&&(s(e.version),h(!0))}).catch(()=>{}),()=>e.abort()},[b]);let N=async()=>{if("desktop"===v){p(!0);try{let{check:e}=await t.e(8970).then(t.bind(t,8970)),{relaunch:s}=await t.e(5734).then(t.bind(t,85734)),n=await e();n?(await n.downloadAndInstall(),await s()):p(!1)}catch(e){console.error("Auto-update failed:",e),p(!1),window.open("https://www.larkup.de/download","_blank")}}else try{await navigator.clipboard.writeText(x[v]),j(!0),window.setTimeout(()=>j(!1),2e3)}catch(e){console.error("Could not copy update command:",e)}};return m&&e?(0,n.jsx)("div",{role:"status","aria-live":"polite",className:"relative z-50 border-b border-border bg-background px-3 py-2 text-foreground sm:px-4",children:(0,n.jsxs)("div",{className:"mx-auto flex min-h-7 max-w-screen-2xl items-center gap-2.5",children:[(0,n.jsx)("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-foreground text-background",children:(0,n.jsx)(a.A,{className:"size-3.5","aria-hidden":"true"})}),(0,n.jsxs)("p",{className:"min-w-0 text-xs sm:text-sm",children:[(0,n.jsxs)("span",{className:"font-medium",children:["Larkup v",e," is available."]})," ",(0,n.jsxs)("span",{className:"hidden text-muted-foreground sm:inline",children:["You're using v",b,"."]})]}),"desktop"!==v&&(0,n.jsx)("code",{className:"ml-auto hidden max-w-152 truncate rounded-[5px] border border-border bg-muted/40 px-2 py-1 font-mono text-[11px] text-muted-foreground lg:block",children:x[v]}),(0,n.jsx)(o.$,{type:"button",variant:"desktop"===v?"default":"outline",size:"xs",onClick:N,disabled:g,"aria-label":"desktop"===v?"Update Larkup now":"Copy update command",className:"desktop"===v?"ml-auto":"ml-auto lg:ml-0",children:"desktop"===v?g?"Updating...":"Update now":f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.A,{"aria-hidden":"true"}),"Copied"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.A,{"aria-hidden":"true"}),"Copy command"]})}),(0,n.jsx)(o.$,{type:"button",variant:"ghost",size:"icon-xs",onClick:()=>{try{localStorage.setItem(u,JSON.stringify({timestamp:Date.now()}))}catch{}h(!1)},"aria-label":"Dismiss update notification",title:"Remind me tomorrow",children:(0,n.jsx)(d.A,{"aria-hidden":"true"})})]})}):null}},42268:(e,s,t)=>{"use strict";t.d(s,{GpuActivityIndicator:()=>d});var n=t(55662),r=t(87464),a=t(23479);let l=e=>fetch(e).then(e=>e.json());function i({percent:e}){let s=2*Math.PI*14,t=Math.max(0,Math.min(100,e));return(0,n.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",className:"shrink-0 -rotate-90",children:[(0,n.jsx)("circle",{cx:"16",cy:"16",r:14,className:"stroke-emerald-500/20",strokeWidth:"3",fill:"none"}),(0,n.jsx)("circle",{cx:"16",cy:"16",r:14,className:"stroke-emerald-500 transition-[stroke-dashoffset] duration-500",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeDasharray:s,strokeDashoffset:s-t/100*s})]})}function d(){let{data:e}=(0,a.u)("/api/gpu-activity",l,{refreshInterval:e=>e?.activity?.phase==="waking-up"?1e3:4e3}),s=e?.activity;return!s||"waking-up"!==s.phase||s.toolCallId?null:(0,n.jsx)("div",{className:"fixed bottom-24 right-6 z-50",children:(0,n.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border bg-white dark:bg-background px-3 py-2 text-sm font-medium shadow-xs",children:[(0,n.jsx)(i,{percent:s.percent}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 pr-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(r.A,{className:"size-4"}),(0,n.jsx)("span",{className:"text-xs leading-none text-muted-foreground",children:s.label})]}),(0,n.jsx)("span",{className:"larkup-shimmer-text leading-none",children:s.message}),(0,n.jsxs)("span",{className:"text-[11px] tabular-nums text-muted-foreground",children:[Math.round(s.percent),"%"]})]})]})})}},46321:(e,s,t)=>{"use strict";t.d(s,{GlobalIndexProgress:()=>E});var n=t(55662),r=t(23479),a=t(78311),l=t(19326),i=t(35750),d=t(77495),o=t(76952),c=t(57685),u=t(93615),x=t(70505),m=t(15102);t(9758),t(86210);var h=t(33139),g=t(50661),p=t(37825),f=t(88946),j=t(29727);function b({className:e,...s}){return(0,n.jsx)("div",{"data-slot":"skeleton",className:(0,j.cn)("animate-pulse rounded-md bg-muted",e),...s})}var v=t(86746),N=t(75167),y=t(52048);let w=e=>fetch(e).then(e=>e.json()),k=["chunking","embedding","upserting"];function C({open:e,onOpenChange:s,trigger:t}){let[x,m]=(0,l.useState)(!1),[g,p]=(0,l.useState)(!1),j=void 0!==e,z=j?e:g,S=j&&s?s:p,{data:I,isLoading:P,mutate:_}=(0,r.u)("/api/index",w,{refreshInterval:e=>e?.run&&k.includes(e.run.status)?1e3:0}),E=(0,l.useRef)(void 0);(0,l.useEffect)(()=>{let e=I?.run?.warning;e&&e!==E.current?v.oR.warning(e,{id:"rate-limit-warning",duration:7e4}):!e&&E.current&&(v.oR.dismiss("rate-limit-warning"),v.oR.success("Rate limit resolved — resuming indexing.",{duration:3e3})),E.current=e},[I?.run?.warning]);let[F,O]=(0,l.useState)(!1);async function R(e=!1){m(!0);try{let s=await fetch("/api/index",{method:"POST",body:JSON.stringify({incremental:e}),headers:{"Content-Type":"application/json"}}),t=await s.json();if(!s.ok)return void v.oR.error(t.error??"Could not start indexing.");v.oR.success("Indexing started."),_()}catch{v.oR.error("Could not start indexing.")}finally{m(!1)}}async function L(){m(!0);try{if(!(await fetch("/api/index",{method:"DELETE"})).ok)return void v.oR.error("Could not cancel indexing.");v.oR.success("Indexing cancelled."),_()}catch{v.oR.error("Could not cancel indexing.")}finally{m(!1)}}return(0,l.useEffect)(()=>{let e=I?.run?.status;e&&k.includes(e)?O(!0):F&&"completed"===e&&(O(!1),S(!1),v.oR.success("Indexing completed successfully!"))},[I?.run?.status,F,S]),(0,n.jsxs)(y.lG,{open:z,onOpenChange:S,children:[t?(0,n.jsx)(y.zM,{render:(0,l.isValidElement)(t)?t:(0,n.jsx)("button",{children:t})}):(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[I?.run?.status==="completed"&&(0,n.jsxs)(N.Lt,{children:[(0,n.jsx)(N.tv,{render:(0,n.jsxs)(h.$,{disabled:!I.ready||!!(I.run&&k.includes(I.run.status))||x,variant:"outline",children:[(0,n.jsx)(i.A,{className:"size-4 mr-2"}),"Re-Index Data"]})}),(0,n.jsxs)(N.EO,{children:[(0,n.jsxs)(N.wd,{children:[(0,n.jsx)(N.r7,{children:"Are you sure you want to re-index data?"}),(0,n.jsx)(N.$v,{children:"This will rebuild the entire index from scratch. All documents will be re-processed."})]}),(0,n.jsxs)(N.ck,{children:[(0,n.jsx)(N.Zr,{children:"Cancel"}),(0,n.jsx)(N.Rx,{onClick:()=>{S(!0),R(!1)},children:"Continue"})]})]})]}),(0,n.jsx)(y.zM,{render:(0,n.jsxs)(h.$,{disabled:!I?.ready||I?.unindexedCount===0,children:[(0,n.jsx)(d.A,{className:"size-4 mr-2"}),"Index Data"]})})]}),(0,n.jsxs)(y.Cf,{className:"max-w-2xl max-h-[90vh] overflow-y-auto ",children:[(0,n.jsxs)(y.c7,{children:[(0,n.jsx)(y.L3,{children:"Index Data"}),(0,n.jsx)(y.rr,{children:"Chunk, embed, and index into your selected vector database."})]}),P||!I?(0,n.jsx)("div",{className:"py-6",children:(0,n.jsx)(b,{className:"h-40 w-full"})}):(0,n.jsxs)("div",{className:"space-y-6 py-4",children:[!I.ready&&(0,n.jsxs)(f.Fc,{variant:"default",children:[(0,n.jsx)(o.A,{className:"size-4 text-orange-500!"}),(0,n.jsx)(f.XL,{className:"text-orange-500!",children:"Not ready to index"}),(0,n.jsx)(f.TN,{children:(0,n.jsx)("ul",{className:"list-disc pl-4",children:I.blockers.map(e=>(0,n.jsx)("li",{children:e},e))})})]}),(0,n.jsx)(A,{run:I.run,running:!!(I.run&&k.includes(I.run.status))}),I.ready&&!I.run&&(0,n.jsxs)(f.Fc,{children:[(0,n.jsx)(c.A,{className:"size-4 text-blue-500!"}),(0,n.jsx)(f.XL,{className:"text-blue-600 dark:text-blue-400",children:"Before you start indexing"}),(0,n.jsxs)(f.TN,{className:"text-muted-foreground space-y-1",children:[(0,n.jsxs)("p",{children:["Once indexing begins, two settings become"," ",(0,n.jsx)("span",{className:"font-medium text-foreground",children:"locked"})," to the existing index:"]}),(0,n.jsxs)("ul",{className:"list-disc pl-4 space-y-0.5",children:[(0,n.jsxs)("li",{children:[(0,n.jsx)("span",{className:"font-medium text-foreground",children:"Embedding model"})," — you can swap to any model with the"," ",(0,n.jsx)("span",{className:"font-medium text-foreground",children:"same vector dimensions"}),", but switching to a model with different dimensions will require a full re-index."]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("span",{className:"font-medium text-foreground",children:"Vector store"})," — changing the store after indexing requires starting fresh."]})]})]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between pt-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsxs)(h.$,{onClick:()=>R(I.run?.status==="completed"),disabled:!I.ready||!!(I.run&&k.includes(I.run.status))||x||I.run?.status==="completed"&&0===I.unindexedCount,size:"lg",children:[I.run&&k.includes(I.run.status)||x?(0,n.jsx)(a.A,{className:"size-4 animate-spin mr-2"}):(0,n.jsx)(u.A,{className:"size-4 mr-2"}),I.run&&k.includes(I.run.status)?"Indexing…":x?"Starting…":I.run?.status==="completed"?`Index new documents (${I.unindexedCount})`:`Start indexing (${I.unindexedCount})`]}),I.run?.status==="completed"&&!(I.run&&k.includes(I.run.status))&&(0,n.jsxs)(N.Lt,{children:[(0,n.jsx)(N.tv,{render:(0,n.jsxs)(h.$,{variant:"outline",size:"lg",disabled:x,children:[(0,n.jsx)(i.A,{className:"size-4 mr-2"}),"Re-Index All"]})}),(0,n.jsxs)(N.EO,{children:[(0,n.jsxs)(N.wd,{children:[(0,n.jsx)(N.r7,{children:"Are you sure you want to re-index data?"}),(0,n.jsx)(N.$v,{children:"This will rebuild the entire index from scratch. All documents will be re-processed."})]}),(0,n.jsxs)(N.ck,{children:[(0,n.jsx)(N.Zr,{children:"Cancel"}),(0,n.jsx)(N.Rx,{onClick:()=>{S(!0),R(!1)},children:"Continue"})]})]})]}),!!(I.run&&k.includes(I.run.status))&&(0,n.jsx)(h.$,{onClick:L,disabled:x,size:"lg",variant:"destructive",children:"Cancel"})]}),(0,n.jsx)(h.$,{variant:"ghost",size:"lg",onClick:()=>S(!1),children:"Close"})]})]})]})]})}let z={idle:{label:"Idle"},chunking:{label:"Chunking",phase:"Splitting documents into chunks"},embedding:{label:"Embedding",phase:"Generating vector embeddings"},upserting:{label:"Storing",phase:"Writing vectors to the store"},completed:{label:"Completed"},failed:{label:"Failed"}};function A({run:e,running:s}){if(!e)return(0,n.jsxs)("div",{className:"rounded-xl border bg-card text-card-foreground flex flex-col items-center justify-center gap-1 py-8 text-center",children:[(0,n.jsx)(x.A,{className:"mb-1 size-6 text-muted-foreground/60"}),(0,n.jsx)("p",{className:"text-sm font-medium",children:"No index built yet"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"Build a Larkup index to embed your corpus and make it searchable."})]});let t=z[e.status],r=e.totalChunks>0?Math.round(e.processedChunks/e.totalChunks*100):5*!!s;return(0,n.jsxs)("div",{className:"rounded-xl border bg-card text-card-foreground p-4 space-y-4",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 text-base font-semibold",children:["completed"===e.status?(0,n.jsx)(m.A,{className:"size-4 text-primary"}):"failed"===e.status?(0,n.jsx)(o.A,{className:"size-4 text-destructive"}):(0,n.jsx)(a.A,{className:"size-4 animate-spin text-primary"}),t.label]}),(0,n.jsx)(I,{status:e.status})]}),"failed"===e.status?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:t.phase??"Done"}),(0,n.jsxs)("span",{className:"font-mono tabular-nums",children:[e.processedChunks.toLocaleString(),e.totalChunks>0&&` / ${e.totalChunks.toLocaleString()}`," chunks"]})]}),(0,n.jsx)(g.ke,{value:r,className:"**:data-[slot=progress-indicator]:bg-green-600"})]}),(0,n.jsxs)("dl",{className:"grid grid-cols-2 gap-4 pt-1 sm:grid-cols-4",children:[(0,n.jsx)(S,{label:"Documents",value:e.docCount.toLocaleString()}),(0,n.jsx)(S,{label:"Chunks",value:e.totalChunks.toLocaleString()}),(0,n.jsx)(S,{label:"Dimensions",value:e.dimensions?e.dimensions.toLocaleString():"—"}),(0,n.jsx)(S,{label:"Duration",value:e.durationMs?`${(e.durationMs/1e3).toFixed(1)}s`:s?"running…":"—"})]})]})]})}function S({label:e,value:s}){return(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,n.jsx)("dd",{className:"font-mono text-sm tabular-nums",children:s})]})}function I({status:e}){return"completed"===e?(0,n.jsx)(p.E,{className:"bg-primary/12 text-primary hover:bg-primary/12",children:"Ready"}):"failed"===e?(0,n.jsx)(p.E,{variant:"destructive",children:"Failed"}):k.includes(e)?(0,n.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-medium text-green-600",children:[(0,n.jsxs)("span",{className:"relative flex size-2",children:[(0,n.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-600 opacity-75"}),(0,n.jsx)("span",{className:"relative inline-flex size-2 rounded-full bg-green-600"})]}),"Live"]}):null}let P=e=>fetch(e).then(e=>e.json()),_=["chunking","embedding","upserting"];function E(){let{data:e}=(0,r.u)("/api/index",P,{refreshInterval:e=>e?.run&&_.includes(e.run.status)?1e3:0});if(!(e?.run&&_.includes(e.run.status))||!e?.run)return null;let{run:s}=e,t=s.totalChunks>0?Math.round(s.processedChunks/s.totalChunks*100):5;return(0,n.jsx)("div",{className:"fixed bottom-6 right-6 z-50",children:(0,n.jsx)(C,{trigger:(0,n.jsxs)("button",{className:"flex items-center gap-3 rounded-full border bg-background px-4 py-2 text-sm font-medium transition-all hover:bg-muted/50 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[(0,n.jsx)(a.A,{className:"size-4 animate-spin text-primary"}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,n.jsx)("span",{className:"text-xs leading-none text-muted-foreground",children:"Storing..."}),(0,n.jsxs)("span",{className:"leading-none",children:[t,"%"]})]})]})})})}},50661:(e,s,t)=>{"use strict";t.d(s,{ke:()=>d});var n=t(55662),r=t(48239),a=t(16183),l=t(17347),i=t(29727);function d({className:e,children:s,value:t,...a}){return(0,n.jsxs)(r.w,{value:t,"data-slot":"progress",className:(0,i.cn)("flex flex-wrap gap-3",e),...a,children:[s,(0,n.jsx)(o,{children:(0,n.jsx)(c,{})})]})}function o({className:e,...s}){return(0,n.jsx)(a.X,{className:(0,i.cn)("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),"data-slot":"progress-track",...s})}function c({className:e,...s}){return(0,n.jsx)(l.Z,{"data-slot":"progress-indicator",className:(0,i.cn)("h-full bg-primary transition-all",e),...s})}},79260:()=>{},95835:(e,s,t)=>{"use strict";t.d(s,{Toaster:()=>u});var n=t(55662),r=t(60469),a=t(86746),l=t(15102),i=t(57685),d=t(79736),o=t(68334),c=t(78311);let u=({...e})=>{let{theme:s="system"}=(0,r.D)();return(0,n.jsx)(a.l$,{closeButton:!0,theme:s,className:"toaster group z-9999999! ",icons:{success:(0,n.jsx)(l.A,{className:"size-5 text-white",fill:"#10b981"}),info:(0,n.jsx)(i.A,{className:"size-5 text-white",fill:"#3b82f6"}),warning:(0,n.jsx)(d.A,{className:"size-5 text-white",fill:"#f59e0b"}),error:(0,n.jsx)(o.A,{className:"size-5 text-white",fill:"#ef4444"}),loading:(0,n.jsx)(c.A,{className:"size-5 animate-spin text-muted-foreground"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)",zIndex:999999},toastOptions:{classNames:{toast:"group toast items-start group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900 group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:",icon:"mt-0.5",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",success:"group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900",error:"group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900",warning:"group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900",info:"group-[.toaster]:!bg-[#F9F9F7] dark:group-[.toaster]:!bg-zinc-900"}},...e})}},97837:(e,s,t)=>{"use strict";t.d(s,{ClientLayoutWrapper:()=>V});var n=t(55662),r=t(84844),a=t(19326),l=t(33601),i=t.n(l),d=t(5666),o=t(23659),c=t(50361),u=t(42886),x=t(71582),m=t(18288),h=t(72081),g=t(29727),p=t(16353),f=t(50626),j=t(65853),b=t(7102),v=t(95358),N=t(80941),y=t(47443),w=t(67523),k=t(86746),C=t(78311),z=t(33139),A=t(52048);function S({target:e,open:s,onOpenChange:t}){let{deleteProject:r}=(0,y.B)(),[l,i]=(0,a.useState)(!1);async function d(){if(e){i(!0);try{await r(e.id),k.oR.success(`Deleted "${e.name}".`),t(!1)}catch{k.oR.error("Could not delete the Project.")}finally{i(!1)}}}return(0,n.jsx)(A.lG,{open:s,onOpenChange:t,children:(0,n.jsxs)(A.Cf,{className:"sm:max-w-md",children:[(0,n.jsxs)(A.c7,{children:[(0,n.jsxs)(A.L3,{children:["Delete “",e?.name,"”?"]}),(0,n.jsx)(A.rr,{children:"This permanently removes the Project's documents, index, vector data, and generated files. This cannot be undone."})]}),(0,n.jsxs)(A.Es,{children:[(0,n.jsx)(z.$,{variant:"outline",onClick:()=>t(!1),disabled:l,children:"Cancel"}),(0,n.jsxs)(z.$,{variant:"destructive",onClick:()=>void d(),disabled:l,children:[l&&(0,n.jsx)(C.A,{className:"size-4 animate-spin"}),"Delete Project"]})]})]})})}function I(){let{projects:e,activeProject:s,activateProject:t}=(0,y.B)(),[r,l]=(0,a.useState)(!1),[i,d]=(0,a.useState)(null),[o,u]=(0,a.useState)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(N.rI,{children:[(0,n.jsxs)(N.ty,{render:(0,n.jsx)("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg border border-border bg-card px-2 py-1.5 text-left transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}),children:[(0,n.jsx)("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-md bg-primary/12 text-primary",children:(0,n.jsx)(h.A,{className:"size-3.5"})}),(0,n.jsx)("span",{className:"flex min-w-0 flex-1 flex-col",children:(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:"truncate text-sm font-medium text-foreground",children:s?.name??"No project"}),s?.running&&(0,n.jsx)(P,{})]})}),(0,n.jsx)(f.A,{className:"size-4 shrink-0 text-muted-foreground"})]}),(0,n.jsxs)(N.SQ,{align:"start",sideOffset:6,className:"w-(--anchor-width) min-w-65",children:[(0,n.jsxs)(N.I,{children:[(0,n.jsx)(N.lp,{children:"Your projects"}),e.map(e=>{let r=e.id===s?.id;return(0,n.jsxs)(N._2,{onClick:()=>{r||t(e.id)},className:"gap-2",children:[(0,n.jsx)("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",children:(0,n.jsx)(h.A,{className:"size-3.5"})}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,n.jsx)("span",{className:"truncate font-medium",children:e.name}),(0,n.jsxs)("span",{className:"flex items-center gap-2 text-[11px] text-muted-foreground tabular-nums",children:[(0,n.jsxs)("span",{children:[e.sourceCount," sources"]}),e.indexed&&(0,n.jsx)("span",{children:"\xb7 indexed"}),e.running&&(0,n.jsxs)("span",{className:"flex items-center gap-1 text-green-500",children:[(0,n.jsx)(P,{}),"live"]})]})]}),r&&(0,n.jsx)(j.A,{className:"size-4 shrink-0 text-primary"})]},e.id)})]}),(0,n.jsx)(N.mB,{}),(0,n.jsxs)(N._2,{onClick:()=>l(!0),className:"gap-2 h-9",children:[(0,n.jsx)(c.A,{className:"size-4"}),"New project"]}),s&&(0,n.jsxs)(N._2,{onClick:()=>d(s),className:"gap-2 h-9",children:[(0,n.jsx)(b.A,{className:"size-4"}),"Rename current"]}),s&&e.length>1&&(0,n.jsxs)(N._2,{variant:"destructive",onClick:()=>u(s),className:"gap-2",children:[(0,n.jsx)(v.A,{className:"size-4"}),"Delete current project"]})]})]}),(0,n.jsx)(w.S,{mode:"create",open:r,onOpenChange:l}),(0,n.jsx)(w.S,{mode:"rename",target:i,open:null!==i,onOpenChange:e=>!e&&d(null)}),(0,n.jsx)(S,{target:o,open:null!==o,onOpenChange:e=>!e&&u(null)})]})}function P(){return(0,n.jsxs)("span",{className:"relative flex size-2",children:[(0,n.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-75"}),(0,n.jsx)("span",{className:"relative inline-flex size-2 rounded-full bg-green-500"})]})}let _=[{id:"chat",label:"Chat",href:"/chat",icon:o.A},{id:"add",label:"Add",href:"/add",icon:c.A},{id:"data",label:"Data",href:"/data",icon:u.A},{id:"settings",label:"Settings",href:"/settings",icon:x.A}];function E(){let e=(0,d.usePathname)(),{activeProject:s}=(0,y.B)(),[t,r]=(0,a.useState)(!0);(0,a.useEffect)(()=>{"false"===localStorage.getItem("sidebar-collapsed")&&r(!1)},[]);let l=()=>{let e=!t;r(e),localStorage.setItem("sidebar-collapsed",String(e))};return(0,n.jsx)(p.Bc,{delay:150,children:(0,n.jsxs)("aside",{className:(0,g.cn)("sticky top-0 hidden h-screen shrink-0 flex-col self-start py-4 md:flex transition-all duration-300 ease-in-out bg-sidebar",t?"w-18":"w-60"),children:[(0,n.jsx)("div",{className:(0,g.cn)("flex w-full items-center mb-6",t?"justify-center px-3":"justify-between px-4"),children:t?(0,n.jsxs)(p.m_,{children:[(0,n.jsxs)(p.k$,{render:(0,n.jsx)("button",{onClick:l,"aria-label":"Expand sidebar",className:"flex size-10 items-center justify-center rounded-xl bg-primary text-primary-foreground transition-transform hover:scale-105"}),children:[(0,n.jsx)("img",{src:"/logo9.png",className:"size-5 dark:hidden",alt:"logo"}),(0,n.jsx)("img",{src:"/logo.png",className:"size-5 hidden dark:block",alt:"logo"})]}),(0,n.jsx)(p.ZI,{side:"right",sideOffset:10,children:"Expand sidebar"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{href:"/chat",className:"flex items-center gap-2.5",children:[(0,n.jsxs)("span",{className:"flex size-9 items-center justify-center rounded-xl bg-primary text-primary-foreground transition-transform hover:scale-105",children:[(0,n.jsx)("img",{src:"/logo9.png",className:"size-5 dark:hidden",alt:"logo"}),(0,n.jsx)("img",{src:"/logo.png",className:"size-5 hidden dark:block",alt:"logo"})]}),(0,n.jsx)("span",{className:"text-sm font-semibold tracking-tight text-foreground",children:"Larkup"})]}),(0,n.jsx)("button",{onClick:l,className:"flex size-7 items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors","aria-label":"Collapse sidebar",children:(0,n.jsx)(m.A,{className:"size-3.5"})})]})}),(0,n.jsx)("nav",{className:(0,g.cn)("flex flex-1 flex-col w-full",t?"items-center px-3 gap-3":"px-3 gap-1.5"),children:_.map(s=>{let r=s.icon,a=e===s.href||"/"!==s.href&&e?.startsWith(s.href);return t?(0,n.jsxs)(p.m_,{children:[(0,n.jsx)(p.k$,{className:"",render:(0,n.jsx)(i(),{href:s.href,"aria-current":a?"page":void 0,onClick:t=>{"chat"===s.id&&"/chat"===e&&(t.preventDefault(),window.dispatchEvent(new CustomEvent("new-chat")))},className:(0,g.cn)("group relative flex size-10 items-center justify-center rounded-xl transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring",a?"bg-sidebar-accent/60 text-sidebar-accent-foreground hover:bg-sidebar-accent":"text-muted-foreground hover:bg-white/65 hover:text-foreground")}),children:(0,n.jsx)(r,{className:"size-4.5",strokeWidth:a?2.25:1.75})}),(0,n.jsx)(p.ZI,{side:"right",sideOffset:10,children:s.label})]},s.id):(0,n.jsxs)(i(),{href:s.href,"aria-current":a?"page":void 0,onClick:t=>{"chat"===s.id&&"/chat"===e&&(t.preventDefault(),window.dispatchEvent(new CustomEvent("new-chat")))},className:(0,g.cn)("group relative flex items-center gap-3 rounded-xl px-3 py-2.5 text-[13px] font-medium transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring",a?"bg-sidebar-accent/70 text-sidebar-accent-foreground hover:bg-sidebar-accent/70":"text-muted-foreground hover:bg-white/65 hover:text-foreground"),children:[(0,n.jsx)(r,{className:"size-4.5 shrink-0",strokeWidth:a?2.25:1.75}),(0,n.jsx)("span",{className:"truncate",children:s.label})]},s.id)})}),(0,n.jsx)("div",{className:(0,g.cn)("w-full pt-3",t?"px-2":"px-3"),children:t?(0,n.jsxs)(p.m_,{children:[(0,n.jsx)(p.k$,{render:(0,n.jsx)("button",{onClick:l,className:"flex w-full items-center justify-center py-1.5 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors"}),children:(0,n.jsxs)("div",{className:"relative size-8 rounded-lg border border-border bg-card flex items-center justify-center text-muted-foreground transition-colors group-hover:text-foreground",children:[(0,n.jsx)(h.A,{className:"size-4"}),(0,n.jsx)("span",{className:"absolute -bottom-0.5 -right-0.5 flex size-2.5",children:s?.running?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-75"}),(0,n.jsx)("span",{className:"relative inline-flex size-full rounded-full bg-green-500 border border-card"})]}):(0,n.jsx)("span",{className:"relative inline-flex size-full rounded-full bg-gray-500 border border-card"})})]})}),(0,n.jsxs)(p.ZI,{side:"right",sideOffset:10,children:[s?.name??"No project"," (",s?.running?"Live":"Offline",")"]})]}):(0,n.jsx)(I,{})})]})})}let F=[{id:"chat",label:"Chat",href:"/chat",icon:o.A},{id:"add",label:"Add",href:"/add",icon:c.A},{id:"data",label:"Data",href:"/data",icon:u.A},{id:"settings",label:"Settings",href:"/settings",icon:x.A}];function O(){let e=(0,d.usePathname)();return(0,n.jsx)(p.Bc,{delay:150,children:(0,n.jsxs)("header",{className:(0,g.cn)("sticky top-0 z-50 flex h-14 shrink-0 items-center gap-6 border-b border-border px-4 md:px-6 bg-sidebar"),children:[(0,n.jsxs)(i(),{href:"/chat","aria-label":"larkup home",className:"flex items-center gap-2.5 shrink-0",children:[(0,n.jsxs)("span",{className:"flex size-9 items-center justify-center rounded-xl bg-primary text-primary-foreground transition-transform hover:scale-105",children:[(0,n.jsx)("img",{src:"/logo9.png",className:"size-5 dark:hidden",alt:"logo"}),(0,n.jsx)("img",{src:"/logo.png",className:"size-5 hidden dark:block",alt:"logo"})]}),(0,n.jsx)("span",{className:"font-semibold tracking-tight text-foreground hidden sm:inline-block",children:"Larkup"})]}),(0,n.jsx)("nav",{className:"flex h-full items-center gap-1",children:F.map(s=>{let t=s.icon,r=e===s.href||"/"!==s.href&&e?.startsWith(s.href);return(0,n.jsxs)(i(),{href:s.href,"aria-current":r?"page":void 0,className:(0,g.cn)("group relative flex items-center gap-2 h-full px-3 text-[13px] font-medium transition-colors outline-none",r?"text-primary":"text-muted-foreground hover:text-foreground"),children:[(0,n.jsx)(t,{className:"size-4",strokeWidth:r?2.25:1.75}),(0,n.jsx)("span",{className:"hidden md:inline",children:s.label}),(0,n.jsx)("span",{className:(0,g.cn)("absolute bottom-0 left-2 right-2 h-0.5 rounded-full bg-primary transition-opacity",r?"opacity-100":"opacity-0")})]},s.id)})}),(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(I,{}),""]})]})})}var R=t(89182),L=t(99058),B=t(404),M=t(40767),$=t(96511),D=t(91340),K=t(45240),T=t(57487),Q=t(57041);let U=["vercel_ai_gateway","openai","google","mistral","custom"];function W(){let{createProject:e,refresh:s}=(0,y.B)(),t=(0,d.useRouter)(),[r,l]=(0,a.useState)(""),[i,o]=(0,a.useState)("vercel_ai_gateway"),[c,u]=(0,a.useState)(""),[x,m]=(0,a.useState)(null),[h,g]=(0,a.useState)("vercel_ai_gateway"),[p,f]=(0,a.useState)(""),[j,v]=(0,a.useState)(null),[N,w]=(0,a.useState)(!1),[S,I]=(0,a.useState)(!1),[P,_]=(0,a.useState)(!1),[E,F]=(0,a.useState)("vercel_ai_gateway"),[O,W]=(0,a.useState)(""),[V,G]=(0,a.useState)(!1),[Z,J]=(0,a.useState)(!1),[X,q]=(0,a.useState)(!1),[H,Y]=(0,a.useState)(null),ee="custom"===i,es="custom"===h,et=S||ee||i!==h?p:c,en=async()=>{w(!0);try{let n=await fetch("/api/config"),{config:a}=await n.json(),l={...a};ee&&x?(l.embeddingProvider="custom",l.embeddingModelId=`custom:${x.modelName}`,l.embeddingApiKey=x.apiKey||void 0,l.customEmbeddings=[x]):(l.embeddingProvider=i,l.embeddingApiKey=c),S?es&&j?(l.chatProvider="custom",l.chatModelId=`custom:${j.modelName}`,l.chatApiKey=j.apiKey||void 0,l.customChatModels=[j]):(l.chatProvider=h,l.chatApiKey=et):ee&&x||(l.chatProvider=i,l.chatApiKey=c),l.visionProvider=P?E:l.chatProvider,l.visionApiKey=P?O:l.chatApiKey,l.visionModelId="";let d=await fetch("/api/config/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({embeddingProvider:l.embeddingProvider,embeddingApiKey:l.embeddingApiKey,embeddingModelId:l.embeddingModelId,customEmbeddings:l.customEmbeddings,chatProvider:l.chatProvider,chatApiKey:l.chatApiKey,chatModelId:l.chatModelId,customChatModels:l.customChatModels,visionProvider:l.visionProvider,visionApiKey:l.visionApiKey,visionModelId:l.visionModelId})});if(!d.ok){let e=await d.json();k.oR.error(e.error||"Verification failed — please check your API key.",{duration:8e3}),w(!1);return}await e(r.trim()||"my-larkup"),await fetch("/api/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}),s(),t.push("/chat")}catch(e){k.oR.error("Failed to complete setup")}finally{w(!1)}},er=async()=>{w(!0);try{await e(r.trim()||"my-larkup"),s(),t.push("/chat")}catch(e){k.oR.error("Failed to complete setup")}finally{w(!1)}},ea=(e,s)=>(0,n.jsxs)(K.l6,{value:e,onValueChange:e=>{var t;"custom"===(t=e??"")?("embedding"===s?o("custom"):g("custom"),Y(s)):"embedding"===s?(o(t),m(null),!S&&g(t),!P&&F(t)):(g(t),v(null))},children:[(0,n.jsx)(K.bq,{className:"w-full bg-white/90 hover:bg-white",children:(0,n.jsx)("span",{className:"flex items-center gap-2",children:T.Qd[e]?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T.rb,{src:T.Qd[e].iconSrc,alt:T.Qd[e].label,pillBg:T.Qd[e].pillBg,size:16}),T.Qd[e].label]}):"Select provider"})}),(0,n.jsx)(K.gC,{children:U.map(e=>{let s=T.Qd[e];return s?(0,n.jsx)(K.eb,{value:e,children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(T.rb,{src:s.iconSrc,alt:s.label,pillBg:s.pillBg,size:16}),(0,n.jsxs)("span",{children:[s.label,"vercel_ai_gateway"===e&&" (Recommended)","custom"===e&&" (OpenAI-compatible)"]})]})},e):null})})]}),el=(e,s)=>(0,n.jsxs)("div",{className:"mt-1.5 flex items-center gap-2 rounded-lg border border-green-200 bg-green-50/50 px-3 py-2",children:[(0,n.jsx)("span",{className:"text-green-600 text-xs",children:"✓"}),(0,n.jsx)("span",{className:"flex-1 truncate text-xs font-medium text-foreground",children:e.modelName}),(0,n.jsx)("button",{type:"button",onClick:()=>Y(s),className:"text-muted-foreground hover:text-foreground transition-colors",children:(0,n.jsx)(b.A,{className:"size-3"})})]});return(0,n.jsxs)("div",{className:"fixed inset-0 z-50 overflow-y-auto bg-background",children:[(0,n.jsxs)("div",{className:"pointer-events-none fixed inset-0 overflow-hidden",children:[(0,n.jsx)("div",{className:"absolute -left-20 -top-20 h-125 w-125 rounded-full bg-stone-200/40 blur-3xl animate-pulse"}),(0,n.jsx)("div",{className:"absolute -bottom-32 -right-32 h-150 w-150 rounded-full bg-amber-100/30 blur-3xl animate-pulse [animation-delay:1s]"})]}),(0,n.jsx)("div",{className:"relative z-10 flex min-h-full w-full flex-col items-center justify-center px-6 py-12",children:(0,n.jsxs)("div",{className:"flex w-full max-w-lg flex-col items-center gap-8 animate-fade-up",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,n.jsx)("div",{className:"flex size-14 items-center justify-center rounded-xl bg-primary text-primary-foreground ",children:(0,n.jsx)("img",{src:"/logo9.png",className:"size-8",alt:"Larkup"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text-2xl font-bold tracking-tight text-foreground",children:"Welcome to Larkup"}),(0,n.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Let's set up your AI models. You can change these later in Settings."})]})]}),(0,n.jsxs)("div",{className:"w-full space-y-5 rounded-2xl p-6 backdrop-blur-xl",children:[(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Your Name (Optional)"}),(0,n.jsx)(D.p,{value:r,onChange:e=>l(e.target.value),placeholder:"How should we call you?",className:"bg-white"})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Embedding Provider"}),ea(i,"embedding"),ee&&x&&el(x,"embedding"),ee&&!x&&(0,n.jsx)("p",{className:"text-[11px] text-amber-600 mt-1",children:"Please configure and test your custom model to continue."})]}),!ee&&(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsxs)("label",{className:"text-xs font-medium text-foreground",children:["API Key",!S&&(0,n.jsxs)("span",{className:"text-muted-foreground font-normal",children:[" ","(used for both embedding & chat)"]})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(D.p,{type:V?"text":"password",value:c,onChange:e=>u(e.target.value),placeholder:"sk-...",className:"bg-white pr-10"}),(0,n.jsx)("button",{type:"button","aria-label":V?"Hide API key":"Show API key",onClick:()=>G(e=>!e),className:"absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground",children:V?(0,n.jsx)(R.A,{className:"size-4"}):(0,n.jsx)(L.A,{className:"size-4"})})]})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>I(!S),className:"flex w-full items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[S?(0,n.jsx)(B.A,{className:"size-3.5"}):(0,n.jsx)(M.A,{className:"size-3.5"}),"Use a different chat model"]}),S&&(0,n.jsxs)("div",{className:"space-y-3 rounded-xl border border-border/40 bg-muted/20 p-4",children:[(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Chat Provider"}),ea(h,"chat"),es&&j&&el(j,"chat"),es&&!j&&(0,n.jsx)("p",{className:"text-[11px] text-amber-600 mt-1",children:"Please configure and test your custom model to continue."})]}),!es&&(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Chat API Key"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(D.p,{type:Z?"text":"password",value:p,onChange:e=>f(e.target.value),placeholder:"sk-...",className:"bg-background/50 pr-10"}),(0,n.jsx)("button",{type:"button","aria-label":Z?"Hide chat API key":"Show chat API key",onClick:()=>J(e=>!e),className:"absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground",children:Z?(0,n.jsx)(R.A,{className:"size-4"}):(0,n.jsx)(L.A,{className:"size-4"})})]})]})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>_(!P),className:"flex w-full items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[P?(0,n.jsx)(B.A,{className:"size-3.5"}):(0,n.jsx)(M.A,{className:"size-3.5"}),"Use a dedicated vision model for video and images"]}),P&&(0,n.jsxs)("div",{className:"space-y-3 rounded-xl border border-border/40 bg-muted/20 p-4",children:[(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Vision Provider"}),(0,n.jsxs)(K.l6,{value:E,onValueChange:e=>F(e??""),children:[(0,n.jsx)(K.bq,{className:"w-full bg-white/90 hover:bg-white",children:(0,n.jsx)("span",{className:"flex items-center gap-2",children:T.Qd[E]?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T.rb,{src:T.Qd[E].iconSrc,alt:T.Qd[E].label,pillBg:T.Qd[E].pillBg,size:16}),T.Qd[E].label]}):"Select provider"})}),(0,n.jsx)(K.gC,{children:U.filter(e=>"custom"!==e).map(e=>{let s=T.Qd[e];return s?(0,n.jsx)(K.eb,{value:e,children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(T.rb,{src:s.iconSrc,alt:s.label,pillBg:s.pillBg,size:16}),(0,n.jsx)("span",{children:s.label})]})},e):null})})]}),(0,n.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"Only vision-capable models are used; the default is selected automatically."})]}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Vision API Key"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(D.p,{type:X?"text":"password",value:O,onChange:e=>W(e.target.value),placeholder:"sk-...",className:"bg-background/50 pr-10"}),(0,n.jsx)("button",{type:"button","aria-label":X?"Hide vision API key":"Show vision API key",onClick:()=>q(e=>!e),className:"absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground",children:X?(0,n.jsx)(R.A,{className:"size-4"}):(0,n.jsx)(L.A,{className:"size-4"})})]})]})]}),(0,n.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"More providers and fine-grained model selection available in Settings → AI Models."}),(0,n.jsxs)("div",{className:"pt-2 flex gap-3",children:[(0,n.jsx)(z.$,{variant:"outline",className:"flex-1 h-10",onClick:er,disabled:N,children:"Skip for now"}),(0,n.jsx)(z.$,{className:"flex-1 h-10",onClick:en,disabled:N||!(()=>{if(ee){if(!x)return!1}else if(!c)return!1;if(S){if(es){if(!j)return!1}else if(!et)return!1}return!P||!!O})(),children:N?(0,n.jsx)(C.A,{className:"size-4 animate-spin"}):(0,n.jsxs)(n.Fragment,{children:["Continue ",(0,n.jsx)($.A,{className:"ml-1.5 size-4"})]})})]})]})]})}),(0,n.jsx)(A.lG,{open:null!==H,onOpenChange:e=>{e||("embedding"!==H||x||o("vercel_ai_gateway"),"chat"!==H||j||g("vercel_ai_gateway"),Y(null))},children:(0,n.jsxs)(A.Cf,{className:"max-w-xl",children:[(0,n.jsxs)(A.c7,{children:[(0,n.jsxs)(A.L3,{children:["Custom ","embedding"===H?"Embedding":"Chat"," Model"]}),(0,n.jsxs)(A.rr,{children:["Connect an OpenAI-compatible ","embedding"===H?"embedding":"chat"," ","model. Test the connection before adding."]})]}),H&&(0,n.jsx)(Q.B,{type:H,onSave:e=>{"embedding"===H?(m(e),o("custom")):"chat"===H&&(v(e),g("custom")),Y(null)},onCancel:()=>{"embedding"!==H||x||o("vercel_ai_gateway"),"chat"!==H||j||g("vercel_ai_gateway"),Y(null)}})]})})]})}function V({children:e}){let{layout:s}=(0,r.y)(),t=(0,d.usePathname)(),a=t?.includes("/chat"),{isFirstRun:l,isLoading:i}=(0,y.B)();return!i&&l?(0,n.jsx)(W,{}):i?(0,n.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,n.jsx)("div",{className:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):"topnav"===s?(0,n.jsxs)("div",{className:"flex flex-col h-screen overflow-hidden",children:[(0,n.jsx)(O,{}),(0,n.jsx)("main",{className:"min-w-0 flex-1 overflow-hidden",children:(0,n.jsx)("div",{className:"h-full flex flex-col bg-background text-foreground",children:(0,n.jsx)("div",{className:(0,g.cn)("flex-1 min-h-0",a||t?.includes("/settings")||t?.includes("/analytics")?"overflow-hidden flex flex-col":"overflow-auto"),children:(0,n.jsx)("div",{className:(0,g.cn)("h-full w-full",a||t?.includes("/settings")||t?.includes("/analytics")?"flex-1 min-h-0 flex flex-col":"container mx-auto pb-8"),children:e})})})})]}):(0,n.jsxs)("div",{className:"flex h-screen overflow-hidden",children:[(0,n.jsx)(E,{}),(0,n.jsx)("main",{className:"min-w-0 flex-1 overflow-hidden",children:(0,n.jsx)("div",{className:"h-screen flex flex-col border-l border-border/90 bg-background text-foreground overflow-hidden",children:(0,n.jsx)("div",{className:(0,g.cn)("flex-1 min-h-0",a||t?.includes("/settings")||t?.includes("/analytics")?"overflow-hidden flex flex-col":"overflow-auto"),children:(0,n.jsx)("div",{className:(0,g.cn)("h-full w-full",a||t?.includes("/settings")||t?.includes("/analytics")?"flex-1 min-h-0 flex flex-col":"container mx-auto pb-8"),children:e})})})})]})}}},e=>{e.O(0,[9457,4787,8009,2386,3498,8001,1603,8271,2882,1440,7358],()=>e(e.s=2753)),_N_E=e.O()}]);
|
|
@@ -15,7 +15,7 @@ const currentPort = parseInt(process.env.PORT, 10) || 3000
|
|
|
15
15
|
const hostname = process.env.HOSTNAME || '0.0.0.0'
|
|
16
16
|
|
|
17
17
|
let keepAliveTimeout = parseInt(process.env.KEEP_ALIVE_TIMEOUT, 10)
|
|
18
|
-
const nextConfig = {"env":{"NEXT_PUBLIC_APP_VERSION":"0.2.
|
|
18
|
+
const nextConfig = {"env":{"NEXT_PUBLIC_APP_VERSION":"0.2.14"},"typescript":{"ignoreBuildErrors":true},"typedRoutes":false,"distDir":"./.next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.mjs","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"instrumentationClientInject":[],"poweredByHeader":true,"compress":true,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":14400,"formats":["image/webp"],"maximumRedirects":3,"maximumResponseBody":50000000,"dangerouslyAllowLocalIP":false,"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","localPatterns":[{"pathname":"**","search":""}],"remotePatterns":[],"qualities":[75],"unoptimized":true,"customCacheHandler":false},"devIndicators":{"position":"bottom-left"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"excludeDefaultMomentLocales":true,"reactProductionProfiling":false,"reactStrictMode":null,"reactMaxHeadersLength":6000,"httpAgentOptions":{"keepAlive":true},"logging":{"serverFunctions":true,"browserToTerminal":"warn"},"compiler":{},"expireTime":31536000,"staticPageGenerationTimeout":60,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"outputFileTracingRoot":"/Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup","enablePrerenderSourceMaps":true,"cacheComponents":false,"cacheLife":{"default":{"stale":300,"revalidate":900,"expire":4294967294},"seconds":{"stale":30,"revalidate":1,"expire":60},"minutes":{"stale":300,"revalidate":60,"expire":3600},"hours":{"stale":300,"revalidate":3600,"expire":86400},"days":{"stale":300,"revalidate":86400,"expire":604800},"weeks":{"stale":300,"revalidate":604800,"expire":2592000},"max":{"stale":300,"revalidate":2592000,"expire":31536000}},"cacheHandlers":{},"experimental":{"appNewScrollHandler":true,"coldCacheBadge":false,"devValidationWorker":true,"useSkewCookie":false,"cssChunking":true,"multiZoneDraftMode":false,"appNavFailHandling":false,"prerenderEarlyExit":true,"serverMinification":true,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"cachedNavigations":false,"dynamicOnHover":false,"useOffline":false,"varyParams":true,"optimisticRouting":true,"instrumentationClientRouterTransitionEvents":false,"prefetchInlining":{"maxSize":2048,"maxBundleSize":10240},"preloadEntriesOnStart":true,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","proxyPrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":9,"memoryBasedWorkersCount":false,"imgOptConcurrency":null,"imgOptOperationCache":null,"imgOptTimeoutInSeconds":7,"imgOptMaxInputPixels":268402689,"imgOptSequentialRead":null,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"devMemoryThresholdRestart":true,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"swcTraceProfiling":false,"forceSwcTransforms":false,"requestInsights":false,"largePageDataBytes":128000,"typedEnv":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"authInterrupts":false,"webpackMemoryOptimizations":false,"optimizeServerReact":true,"strictRouteTypes":false,"useTypeScriptCli":true,"removeUncaughtErrorAndRejectionListeners":false,"validateRSCRequestHeaders":true,"staleTimes":{"dynamic":0,"static":300},"reactDebugChannel":true,"serverComponentsHmrCache":true,"serverComponentsHmrCancellation":false,"staticGenerationMaxConcurrency":8,"staticGenerationMinPagesPerWorker":25,"transitionIndicator":false,"gestureTransition":false,"inlineCss":false,"useCache":false,"globalNotFound":false,"browserDebugInfoInTerminal":"warn","lockDistDir":true,"proxyClientMaxBodySize":10485760,"hideLogsAfterAbort":false,"mcpServer":true,"turbopackFileSystemCacheForDev":true,"turbopackFileSystemCacheForBuild":true,"turbopackInferModuleSideEffects":true,"turbopackPluginRuntimeStrategy":"childProcesses","turbopackMemoryEvictionMode":"auto","optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","effect","@effect/schema","@effect/platform","@effect/platform-node","@effect/platform-browser","@effect/platform-bun","@effect/sql","@effect/sql-mssql","@effect/sql-mysql2","@effect/sql-pg","@effect/sql-sqlite-node","@effect/sql-sqlite-bun","@effect/sql-sqlite-wasm","@effect/sql-sqlite-react-native","@effect/rpc","@effect/rpc-http","@effect/typeclass","@effect/experimental","@effect/opentelemetry","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"useCacheTimeout":54,"instantInsights":{"validationLevel":"warning"},"trustHostHeader":false,"isExperimentalCompile":false},"htmlLimitedBots":"[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight","bundlePagesRouterDependencies":false,"configFileName":"next.config.mjs","transpilePackages":["@larkup/connections","@larkup/core","@larkup/vector-stores","@larkup/scraper","@larkup/marketplace","@larkup/sandbox"],"serverExternalPackages":["@lancedb/lancedb","@ffmpeg-installer/ffmpeg","@ffprobe-installer/ffprobe","chromadb","@chroma-core/default-embed","dockerode","node-ssh","nodejs-whisper","@napi-rs/canvas","pdf-parse"],"outputFileTracingExcludes":{"/*":[".next/dev/**/*",".next/standalone/**/*","../desktop/src-tauri/target/**/*"]},"turbopack":{"ignoreIssue":[{"path":"**/ffmpeg-spawn.js","title":"Module not found"}],"root":"/Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup"},"repoRoot":"/Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup","distDirRoot":".next","supportsImmutableAssets":false,"_originalRewrites":{"beforeFiles":[],"afterFiles":[{"source":"/uploads/:path*","destination":"/api/uploads/:path*"}],"fallback":[]}}
|
|
19
19
|
|
|
20
20
|
process.env.__NEXT_PRIVATE_STANDALONE_CONFIG = JSON.stringify(nextConfig)
|
|
21
21
|
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|