@superinterface/server 1.0.6 → 1.0.8
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/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_btwyo7 +1 -1
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/trace +1 -1
- package/dist/lib/prismaClient.d.ts +5 -0
- package/dist/lib/prismaClient.d.ts.map +1 -0
- package/dist/lib/prismaClient.js +4 -0
- package/package.json +1 -1
- package/scripts/utils/loadPrisma.ts +131 -55
- /package/.next/static/{eIqLpUWXibF0G0ipW0IC- → awGXOPyNtPI8LaLfTEQAh}/_buildManifest.js +0 -0
- /package/.next/static/{eIqLpUWXibF0G0ipW0IC- → awGXOPyNtPI8LaLfTEQAh}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{eIqLpUWXibF0G0ipW0IC- → awGXOPyNtPI8LaLfTEQAh}/_ssgManifest.js +0 -0
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"ampDevFiles": [],
|
|
16
16
|
"polyfillFiles": [],
|
|
17
17
|
"lowPriorityFiles": [
|
|
18
|
-
"static/
|
|
19
|
-
"static/
|
|
18
|
+
"static/awGXOPyNtPI8LaLfTEQAh/_ssgManifest.js",
|
|
19
|
+
"static/awGXOPyNtPI8LaLfTEQAh/_buildManifest.js"
|
|
20
20
|
],
|
|
21
21
|
"rootMainFiles": [],
|
|
22
22
|
"ampFirstPages": []
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--awGXOPyNtPI8LaLfTEQAh--><html lang="en"><head><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/76a8a50dbf44f000.js"/><script src="/_next/static/chunks/079ce3572ffa07f6.js" async=""></script><script src="/_next/static/chunks/4649e58e35bcde4b.js" async=""></script><script src="/_next/static/chunks/turbopack-11882cf18a9eb231.js" async=""></script><script src="/_next/static/chunks/03d938d038bc30e3.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/76a8a50dbf44f000.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[96352,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n3:I[17753,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n4:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"OutletBoundary\"]\n6:I[33159,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"AsyncMetadataOutlet\"]\n8:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"ViewportBoundary\"]\na:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"MetadataBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[25098,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"awGXOPyNtPI8LaLfTEQAh\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/03d938d038bc30e3.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$L5\",[\"$\",\"$L6\",null,{\"promise\":\"$@7\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],null],[\"$\",\"$La\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"fallback\":null,\"children\":\"$Lc\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,"7:{\"metadata\":[],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"c:\"$7:metadata\"\n"])</script></body></html>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
a:I[51035,["/_next/static/chunks/03d938d038bc30e3.js"],"MetadataBoundary"]
|
|
8
8
|
b:"$Sreact.suspense"
|
|
9
9
|
d:I[25098,["/_next/static/chunks/03d938d038bc30e3.js"],"default"]
|
|
10
|
-
0:{"P":null,"b":"
|
|
10
|
+
0:{"P":null,"b":"awGXOPyNtPI8LaLfTEQAh","p":"","c":["","_not-found"],"i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/03d938d038bc30e3.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":["/_not-found",["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$L5",["$","$L6",null,{"promise":"$@7"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],[["$","$L8",null,{"children":"$L9"}],null],["$","$La",null,{"children":["$","div",null,{"hidden":true,"children":["$","$b",null,{"fallback":null,"children":"$Lc"}]}]}]]}],false]],"m":"$undefined","G":["$d","$undefined"],"s":false,"S":true}
|
|
11
11
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
12
12
|
5:null
|
|
13
13
|
7:{"metadata":[],"error":null,"digest":"$undefined"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--awGXOPyNtPI8LaLfTEQAh--><html lang="en"><head><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/76a8a50dbf44f000.js"/><script src="/_next/static/chunks/079ce3572ffa07f6.js" async=""></script><script src="/_next/static/chunks/4649e58e35bcde4b.js" async=""></script><script src="/_next/static/chunks/turbopack-11882cf18a9eb231.js" async=""></script><script src="/_next/static/chunks/03d938d038bc30e3.js" async=""></script><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div>@superinterface/server is running.</div><!--$--><!--/$--><script src="/_next/static/chunks/76a8a50dbf44f000.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[96352,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n3:I[17753,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n4:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"OutletBoundary\"]\n6:I[33159,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"AsyncMetadataOutlet\"]\n8:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"ViewportBoundary\"]\na:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"MetadataBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[25098,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"awGXOPyNtPI8LaLfTEQAh\",\"p\":\"\",\"c\":[\"\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/03d938d038bc30e3.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"div\",null,{\"children\":\"@superinterface/server is running.\"}],null,[\"$\",\"$L4\",null,{\"children\":[\"$L5\",[\"$\",\"$L6\",null,{\"promise\":\"$@7\"}]]}]]}],{},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],null],[\"$\",\"$La\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"fallback\":null,\"children\":\"$Lc\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,"7:{\"metadata\":[],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"c:\"$7:metadata\"\n"])</script></body></html>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
a:I[51035,["/_next/static/chunks/03d938d038bc30e3.js"],"MetadataBoundary"]
|
|
8
8
|
b:"$Sreact.suspense"
|
|
9
9
|
d:I[25098,["/_next/static/chunks/03d938d038bc30e3.js"],"default"]
|
|
10
|
-
0:{"P":null,"b":"
|
|
10
|
+
0:{"P":null,"b":"awGXOPyNtPI8LaLfTEQAh","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/03d938d038bc30e3.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"children":"@superinterface/server is running."}],null,["$","$L4",null,{"children":["$L5",["$","$L6",null,{"promise":"$@7"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L8",null,{"children":"$L9"}],null],["$","$La",null,{"children":["$","div",null,{"hidden":true,"children":["$","$b",null,{"fallback":null,"children":"$Lc"}]}]}]]}],false]],"m":"$undefined","G":["$d",[]],"s":false,"S":true}
|
|
11
11
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
12
12
|
5:null
|
|
13
13
|
7:{"metadata":[],"error":null,"digest":"$undefined"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--awGXOPyNtPI8LaLfTEQAh--><html lang="en"><head><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/76a8a50dbf44f000.js"/><script src="/_next/static/chunks/079ce3572ffa07f6.js" async=""></script><script src="/_next/static/chunks/4649e58e35bcde4b.js" async=""></script><script src="/_next/static/chunks/turbopack-11882cf18a9eb231.js" async=""></script><script src="/_next/static/chunks/03d938d038bc30e3.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/76a8a50dbf44f000.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[96352,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n3:I[17753,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n4:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"OutletBoundary\"]\n6:I[33159,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"AsyncMetadataOutlet\"]\n8:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"ViewportBoundary\"]\na:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"MetadataBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[25098,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"awGXOPyNtPI8LaLfTEQAh\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/03d938d038bc30e3.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$L5\",[\"$\",\"$L6\",null,{\"promise\":\"$@7\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],null],[\"$\",\"$La\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"fallback\":null,\"children\":\"$Lc\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,"7:{\"metadata\":[],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"c:\"$7:metadata\"\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/a6dad97d9634a72d.js"></script><script src="/_next/static/chunks/22bca0be24d1dbb3.js" defer=""></script><script src="/_next/static/chunks/bd1a5816a611d718.js" defer=""></script><script src="/_next/static/chunks/turbopack-3bdbb570d8566903.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-67ff8c1c5b1ad9a8.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/a6dad97d9634a72d.js"></script><script src="/_next/static/chunks/22bca0be24d1dbb3.js" defer=""></script><script src="/_next/static/chunks/bd1a5816a611d718.js" defer=""></script><script src="/_next/static/chunks/turbopack-3bdbb570d8566903.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-67ff8c1c5b1ad9a8.js" defer=""></script><script src="/_next/static/awGXOPyNtPI8LaLfTEQAh/_ssgManifest.js" defer=""></script><script src="/_next/static/awGXOPyNtPI8LaLfTEQAh/_buildManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"awGXOPyNtPI8LaLfTEQAh","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":137,"timestamp":5535771480,"id":4,"parentId":1,"tags":{},"startTime":1759897048085,"traceId":"44044ed658d1c9cb"},{"name":"load-custom-routes","duration":183,"timestamp":5535771667,"id":5,"parentId":1,"tags":{},"startTime":1759897048085,"traceId":"44044ed658d1c9cb"},{"name":"create-dist-dir","duration":1034,"timestamp":5535836611,"id":6,"parentId":1,"tags":{},"startTime":1759897048150,"traceId":"44044ed658d1c9cb"},{"name":"create-pages-mapping","duration":221,"timestamp":5535933509,"id":7,"parentId":1,"tags":{},"startTime":1759897048247,"traceId":"44044ed658d1c9cb"},{"name":"collect-app-files","duration":11302,"timestamp":5535933808,"id":8,"parentId":1,"tags":{},"startTime":1759897048247,"traceId":"44044ed658d1c9cb"},{"name":"create-app-mapping","duration":946,"timestamp":5535945136,"id":9,"parentId":1,"tags":{},"startTime":1759897048259,"traceId":"44044ed658d1c9cb"},{"name":"create-app-layouts","duration":180,"timestamp":5535946097,"id":10,"parentId":1,"tags":{},"startTime":1759897048260,"traceId":"44044ed658d1c9cb"},{"name":"collect-default-files","duration":5954,"timestamp":5535949401,"id":12,"parentId":1,"tags":{},"startTime":1759897048263,"traceId":"44044ed658d1c9cb"},{"name":"generate-route-types","duration":98300,"timestamp":5535946588,"id":11,"parentId":1,"tags":{},"startTime":1759897048260,"traceId":"44044ed658d1c9cb"},{"name":"public-dir-conflict-check","duration":1051,"timestamp":5536045214,"id":13,"parentId":1,"tags":{},"startTime":1759897048359,"traceId":"44044ed658d1c9cb"},{"name":"generate-routes-manifest","duration":4734,"timestamp":5536046522,"id":14,"parentId":1,"tags":{},"startTime":1759897048360,"traceId":"44044ed658d1c9cb"},{"name":"run-turbopack-compiler","duration":5876013,"timestamp":5536061613,"id":16,"parentId":1,"tags":{},"startTime":1759897048375,"traceId":"44044ed658d1c9cb"},{"name":"verify-and-lint","duration":2189578,"timestamp":5541961423,"id":19,"parentId":1,"tags":{},"startTime":1759897054275,"traceId":"44044ed658d1c9cb"},{"name":"verify-typescript-setup","duration":5302632,"timestamp":5541959034,"id":18,"parentId":1,"tags":{},"startTime":1759897054273,"traceId":"44044ed658d1c9cb"},{"name":"check-static-error-page","duration":3421,"timestamp":5547313605,"id":22,"parentId":21,"tags":{},"startTime":1759897059627,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":2400,"timestamp":5547430215,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1759897059744,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":1592,"timestamp":5547431036,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":1716,"timestamp":5547430913,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":490375,"timestamp":5547434943,"id":50,"parentId":46,"tags":{},"startTime":1759897059749,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":494078,"timestamp":5547431340,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":491552,"timestamp":5547441131,"id":51,"parentId":30,"tags":{},"startTime":1759897059755,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":501569,"timestamp":5547431155,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":484812,"timestamp":5547448015,"id":55,"parentId":29,"tags":{},"startTime":1759897059762,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":501686,"timestamp":5547431148,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":490577,"timestamp":5547443290,"id":53,"parentId":31,"tags":{},"startTime":1759897059757,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":502636,"timestamp":5547431243,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":509052,"timestamp":5547442270,"id":52,"parentId":28,"tags":{},"startTime":1759897059756,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":520213,"timestamp":5547431139,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":538102,"timestamp":5547445448,"id":54,"parentId":33,"tags":{},"startTime":1759897059759,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":552303,"timestamp":5547431272,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":549938,"timestamp":5547450515,"id":62,"parentId":42,"tags":{},"startTime":1759897059764,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":569159,"timestamp":5547431321,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":559772,"timestamp":5547449225,"id":57,"parentId":34,"tags":{},"startTime":1759897059763,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":577775,"timestamp":5547431279,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":560384,"timestamp":5547450879,"id":63,"parentId":27,"tags":{},"startTime":1759897059765,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":580191,"timestamp":5547431122,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":580549,"timestamp":5547451242,"id":64,"parentId":35,"tags":{},"startTime":1759897059765,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":600531,"timestamp":5547431286,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":602225,"timestamp":5547451629,"id":65,"parentId":45,"tags":{},"startTime":1759897059765,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":622581,"timestamp":5547431335,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":640964,"timestamp":5547448539,"id":56,"parentId":32,"tags":{},"startTime":1759897059762,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":658301,"timestamp":5547431257,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":656148,"timestamp":5547453139,"id":68,"parentId":48,"tags":{},"startTime":1759897059767,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":677975,"timestamp":5547431350,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":691792,"timestamp":5547452159,"id":66,"parentId":43,"tags":{},"startTime":1759897059766,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":712733,"timestamp":5547431325,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":691190,"timestamp":5547453212,"id":69,"parentId":26,"tags":{},"startTime":1759897059767,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":713363,"timestamp":5547431054,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":694330,"timestamp":5547453617,"id":70,"parentId":41,"tags":{},"startTime":1759897059767,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":716663,"timestamp":5547431316,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":694154,"timestamp":5547453878,"id":71,"parentId":47,"tags":{},"startTime":1759897059768,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":716696,"timestamp":5547431345,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":680874,"timestamp":5547494995,"id":73,"parentId":49,"tags":{},"startTime":1759897059809,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":744562,"timestamp":5547431354,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":760774,"timestamp":5547450164,"id":60,"parentId":39,"tags":{},"startTime":1759897059764,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":779726,"timestamp":5547431306,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":826244,"timestamp":5547450298,"id":61,"parentId":40,"tags":{},"startTime":1759897059764,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":845292,"timestamp":5547431311,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":872103,"timestamp":5547449997,"id":59,"parentId":37,"tags":{},"startTime":1759897059764,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":890862,"timestamp":5547431296,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":877137,"timestamp":5547449666,"id":58,"parentId":36,"tags":{},"startTime":1759897059763,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":895565,"timestamp":5547431291,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":903685,"timestamp":5547452884,"id":67,"parentId":44,"tags":{},"startTime":1759897059767,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":925269,"timestamp":5547431331,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"is-page-static","duration":914247,"timestamp":5547454997,"id":72,"parentId":38,"tags":{},"startTime":1759897059769,"traceId":"44044ed658d1c9cb"},{"name":"check-page","duration":938012,"timestamp":5547431301,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1759897059745,"traceId":"44044ed658d1c9cb"},{"name":"static-check","duration":1056918,"timestamp":5547312445,"id":21,"parentId":1,"tags":{},"startTime":1759897059626,"traceId":"44044ed658d1c9cb"},{"name":"generate-required-server-files","duration":251,"timestamp":5548369815,"id":75,"parentId":1,"tags":{},"startTime":1759897060684,"traceId":"44044ed658d1c9cb"},{"name":"write-routes-manifest","duration":1033,"timestamp":5548376703,"id":77,"parentId":1,"tags":{},"startTime":1759897060690,"traceId":"44044ed658d1c9cb"},{"name":"load-dotenv","duration":21,"timestamp":5548437543,"id":80,"parentId":79,"tags":{},"startTime":1759897060751,"traceId":"44044ed658d1c9cb"},{"name":"run-export-path-map","duration":274,"timestamp":5548531016,"id":81,"parentId":79,"tags":{},"startTime":1759897060845,"traceId":"44044ed658d1c9cb"},{"name":"next-export","duration":1135689,"timestamp":5548436910,"id":79,"parentId":1,"tags":{},"startTime":1759897060751,"traceId":"44044ed658d1c9cb"},{"name":"move-exported-app-not-found-","duration":8375,"timestamp":5549573719,"id":82,"parentId":78,"tags":{},"startTime":1759897061887,"traceId":"44044ed658d1c9cb"},{"name":"move-exported-page","duration":89793,"timestamp":5549582213,"id":83,"parentId":78,"tags":{},"startTime":1759897061896,"traceId":"44044ed658d1c9cb"},{"name":"static-generation","duration":1527497,"timestamp":5548432201,"id":78,"parentId":1,"tags":{},"startTime":1759897060746,"traceId":"44044ed658d1c9cb"},{"name":"write-routes-manifest","duration":25826,"timestamp":5549960018,"id":84,"parentId":1,"tags":{},"startTime":1759897062274,"traceId":"44044ed658d1c9cb"},{"name":"node-file-trace-build","duration":4043565,"timestamp":5548372555,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1759897060686,"traceId":"44044ed658d1c9cb"},{"name":"apply-include-excludes","duration":357,"timestamp":5552416146,"id":85,"parentId":1,"tags":{},"startTime":1759897064730,"traceId":"44044ed658d1c9cb"},{"name":"print-tree-view","duration":2264,"timestamp":5552416984,"id":86,"parentId":1,"tags":{},"startTime":1759897064731,"traceId":"44044ed658d1c9cb"},{"name":"telemetry-flush","duration":32,"timestamp":5552419257,"id":87,"parentId":1,"tags":{},"startTime":1759897064733,"traceId":"44044ed658d1c9cb"},{"name":"next-build","duration":16963213,"timestamp":5535456079,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1759897047770,"traceId":"44044ed658d1c9cb"}]
|
|
1
|
+
[{"name":"generate-buildid","duration":122,"timestamp":7289455892,"id":4,"parentId":1,"tags":{},"startTime":1759898801779,"traceId":"84968b8ae2e5e629"},{"name":"load-custom-routes","duration":175,"timestamp":7289456065,"id":5,"parentId":1,"tags":{},"startTime":1759898801779,"traceId":"84968b8ae2e5e629"},{"name":"create-dist-dir","duration":805,"timestamp":7289503706,"id":6,"parentId":1,"tags":{},"startTime":1759898801827,"traceId":"84968b8ae2e5e629"},{"name":"create-pages-mapping","duration":131,"timestamp":7289551035,"id":7,"parentId":1,"tags":{},"startTime":1759898801874,"traceId":"84968b8ae2e5e629"},{"name":"collect-app-files","duration":6524,"timestamp":7289551192,"id":8,"parentId":1,"tags":{},"startTime":1759898801874,"traceId":"84968b8ae2e5e629"},{"name":"create-app-mapping","duration":1345,"timestamp":7289557740,"id":9,"parentId":1,"tags":{},"startTime":1759898801881,"traceId":"84968b8ae2e5e629"},{"name":"create-app-layouts","duration":266,"timestamp":7289559105,"id":10,"parentId":1,"tags":{},"startTime":1759898801882,"traceId":"84968b8ae2e5e629"},{"name":"collect-default-files","duration":6605,"timestamp":7289563466,"id":12,"parentId":1,"tags":{},"startTime":1759898801887,"traceId":"84968b8ae2e5e629"},{"name":"generate-route-types","duration":32497,"timestamp":7289559736,"id":11,"parentId":1,"tags":{},"startTime":1759898801883,"traceId":"84968b8ae2e5e629"},{"name":"public-dir-conflict-check","duration":2780,"timestamp":7289592332,"id":13,"parentId":1,"tags":{},"startTime":1759898801915,"traceId":"84968b8ae2e5e629"},{"name":"generate-routes-manifest","duration":2306,"timestamp":7289595613,"id":14,"parentId":1,"tags":{},"startTime":1759898801919,"traceId":"84968b8ae2e5e629"},{"name":"run-turbopack-compiler","duration":9153803,"timestamp":7289608642,"id":16,"parentId":1,"tags":{},"startTime":1759898801932,"traceId":"84968b8ae2e5e629"},{"name":"verify-and-lint","duration":2049825,"timestamp":7298798754,"id":19,"parentId":1,"tags":{},"startTime":1759898811122,"traceId":"84968b8ae2e5e629"},{"name":"verify-typescript-setup","duration":4723499,"timestamp":7298795747,"id":18,"parentId":1,"tags":{},"startTime":1759898811119,"traceId":"84968b8ae2e5e629"},{"name":"check-static-error-page","duration":1874,"timestamp":7303539446,"id":22,"parentId":21,"tags":{},"startTime":1759898815863,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":2015,"timestamp":7303588932,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1759898815912,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":1481,"timestamp":7303589477,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":1545,"timestamp":7303589414,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":302620,"timestamp":7303607349,"id":53,"parentId":31,"tags":{},"startTime":1759898815931,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":320301,"timestamp":7303589701,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":303030,"timestamp":7303607017,"id":52,"parentId":34,"tags":{},"startTime":1759898815930,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":320319,"timestamp":7303589737,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":302387,"timestamp":7303607754,"id":54,"parentId":33,"tags":{},"startTime":1759898815931,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":320418,"timestamp":7303589727,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":327648,"timestamp":7303599368,"id":50,"parentId":46,"tags":{},"startTime":1759898815923,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":337319,"timestamp":7303589798,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":318049,"timestamp":7303609184,"id":58,"parentId":27,"tags":{},"startTime":1759898815932,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":337653,"timestamp":7303589596,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":335145,"timestamp":7303606310,"id":51,"parentId":30,"tags":{},"startTime":1759898815930,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":351860,"timestamp":7303589627,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":344017,"timestamp":7303609803,"id":60,"parentId":41,"tags":{},"startTime":1759898815933,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":364076,"timestamp":7303589774,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":357628,"timestamp":7303610439,"id":62,"parentId":42,"tags":{},"startTime":1759898815934,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":378317,"timestamp":7303589779,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":357926,"timestamp":7303610231,"id":61,"parentId":43,"tags":{},"startTime":1759898815933,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":378381,"timestamp":7303589784,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":366487,"timestamp":7303613176,"id":65,"parentId":48,"tags":{},"startTime":1759898815936,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":389882,"timestamp":7303589808,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":369103,"timestamp":7303612804,"id":64,"parentId":45,"tags":{},"startTime":1759898815936,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":392134,"timestamp":7303589794,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":378399,"timestamp":7303613473,"id":67,"parentId":47,"tags":{},"startTime":1759898815937,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":402121,"timestamp":7303589803,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":380541,"timestamp":7303613769,"id":68,"parentId":28,"tags":{},"startTime":1759898815937,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":404716,"timestamp":7303589611,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":387892,"timestamp":7303613210,"id":66,"parentId":26,"tags":{},"startTime":1759898815936,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":411664,"timestamp":7303589492,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":400767,"timestamp":7303614198,"id":70,"parentId":35,"tags":{},"startTime":1759898815937,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":425248,"timestamp":7303589744,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":403607,"timestamp":7303614650,"id":71,"parentId":29,"tags":{},"startTime":1759898815938,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":428660,"timestamp":7303589619,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":416478,"timestamp":7303608453,"id":56,"parentId":32,"tags":{},"startTime":1759898815932,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":435292,"timestamp":7303589714,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":431074,"timestamp":7303618373,"id":73,"parentId":49,"tags":{},"startTime":1759898815942,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":459680,"timestamp":7303589812,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":477714,"timestamp":7303608745,"id":57,"parentId":37,"tags":{},"startTime":1759898815932,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":496774,"timestamp":7303589754,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":520529,"timestamp":7303609392,"id":59,"parentId":40,"tags":{},"startTime":1759898815933,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":540607,"timestamp":7303589769,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":541141,"timestamp":7303608044,"id":55,"parentId":36,"tags":{},"startTime":1759898815931,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":559464,"timestamp":7303589749,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":546722,"timestamp":7303613898,"id":69,"parentId":39,"tags":{},"startTime":1759898815937,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":570885,"timestamp":7303589764,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":565252,"timestamp":7303612524,"id":63,"parentId":44,"tags":{},"startTime":1759898815936,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":588015,"timestamp":7303589789,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"is-page-static","duration":579180,"timestamp":7303615795,"id":72,"parentId":38,"tags":{},"startTime":1759898815939,"traceId":"84968b8ae2e5e629"},{"name":"check-page","duration":605239,"timestamp":7303589759,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1759898815913,"traceId":"84968b8ae2e5e629"},{"name":"static-check","duration":656091,"timestamp":7303538922,"id":21,"parentId":1,"tags":{},"startTime":1759898815862,"traceId":"84968b8ae2e5e629"},{"name":"generate-required-server-files","duration":250,"timestamp":7304195262,"id":75,"parentId":1,"tags":{},"startTime":1759898816518,"traceId":"84968b8ae2e5e629"},{"name":"write-routes-manifest","duration":558,"timestamp":7304200335,"id":77,"parentId":1,"tags":{},"startTime":1759898816524,"traceId":"84968b8ae2e5e629"},{"name":"load-dotenv","duration":13,"timestamp":7304212629,"id":80,"parentId":79,"tags":{},"startTime":1759898816536,"traceId":"84968b8ae2e5e629"},{"name":"run-export-path-map","duration":238,"timestamp":7304329853,"id":81,"parentId":79,"tags":{},"startTime":1759898816653,"traceId":"84968b8ae2e5e629"},{"name":"next-export","duration":1178757,"timestamp":7304212122,"id":79,"parentId":1,"tags":{},"startTime":1759898816535,"traceId":"84968b8ae2e5e629"},{"name":"move-exported-app-not-found-","duration":7779,"timestamp":7305392064,"id":82,"parentId":78,"tags":{},"startTime":1759898817715,"traceId":"84968b8ae2e5e629"},{"name":"move-exported-page","duration":140081,"timestamp":7305399975,"id":83,"parentId":78,"tags":{},"startTime":1759898817723,"traceId":"84968b8ae2e5e629"},{"name":"static-generation","duration":1617162,"timestamp":7304209084,"id":78,"parentId":1,"tags":{},"startTime":1759898816532,"traceId":"84968b8ae2e5e629"},{"name":"write-routes-manifest","duration":23137,"timestamp":7305826504,"id":84,"parentId":1,"tags":{},"startTime":1759898818150,"traceId":"84968b8ae2e5e629"},{"name":"node-file-trace-build","duration":3939512,"timestamp":7304196787,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1759898816520,"traceId":"84968b8ae2e5e629"},{"name":"apply-include-excludes","duration":271,"timestamp":7308136316,"id":85,"parentId":1,"tags":{},"startTime":1759898820460,"traceId":"84968b8ae2e5e629"},{"name":"print-tree-view","duration":2248,"timestamp":7308136831,"id":86,"parentId":1,"tags":{},"startTime":1759898820460,"traceId":"84968b8ae2e5e629"},{"name":"telemetry-flush","duration":26,"timestamp":7308139088,"id":87,"parentId":1,"tags":{},"startTime":1759898820462,"traceId":"84968b8ae2e5e629"},{"name":"next-build","duration":19143158,"timestamp":7288995959,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1759898801319,"traceId":"84968b8ae2e5e629"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prismaClient.d.ts","sourceRoot":"","sources":["../../src/lib/prismaClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,cAAc,8BAA8B,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,CAAA;AACvB,eAAe,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -7,37 +7,41 @@ import { CliError } from './errors'
|
|
|
7
7
|
|
|
8
8
|
const prismaModuleCandidates = [
|
|
9
9
|
'../../dist/lib/prisma/index.js',
|
|
10
|
-
'../../src/lib/prisma',
|
|
10
|
+
'../../src/lib/prisma/index.ts',
|
|
11
11
|
] as const
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
prisma
|
|
15
|
-
|
|
13
|
+
const prismaClientCacheKeys = [
|
|
14
|
+
'@prisma/client',
|
|
15
|
+
'@prisma/client/index.js',
|
|
16
|
+
'.prisma/client/index.js',
|
|
17
|
+
'.prisma/client/default.js',
|
|
18
|
+
] as const
|
|
16
19
|
|
|
17
|
-
const packageRoot = fileURLToPath(new URL('../..', import.meta.url))
|
|
18
|
-
const schemaPath = fileURLToPath(
|
|
19
|
-
new URL('../../prisma/schema.prisma', import.meta.url),
|
|
20
|
-
)
|
|
21
20
|
const nodeRequire = createRequire(import.meta.url)
|
|
21
|
+
const packageRoot = fileURLToPath(new URL('../..', import.meta.url))
|
|
22
|
+
const prismaSchemaPath = fileURLToPath(new URL('../../prisma/schema.prisma', import.meta.url))
|
|
23
|
+
|
|
24
|
+
class PrismaClientNeedsGenerateError extends Error {
|
|
25
|
+
constructor(cause?: unknown) {
|
|
26
|
+
super('Prisma client needs to be generated.')
|
|
27
|
+
this.name = 'PrismaClientNeedsGenerateError'
|
|
28
|
+
if (cause) {
|
|
29
|
+
this.cause = cause
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
22
33
|
|
|
23
|
-
const isModuleNotFoundError = (error: unknown
|
|
34
|
+
const isModuleNotFoundError = (error: unknown) => {
|
|
24
35
|
if (!(error instanceof Error)) return false
|
|
25
|
-
|
|
26
36
|
const err = error as NodeJS.ErrnoException & { code?: string }
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
err.code !== 'MODULE_NOT_FOUND' &&
|
|
30
|
-
err.code !== 'ERR_MODULE_NOT_FOUND'
|
|
31
|
-
) {
|
|
32
|
-
return false
|
|
33
|
-
}
|
|
37
|
+
return err.code === 'MODULE_NOT_FOUND' || err.code === 'ERR_MODULE_NOT_FOUND'
|
|
38
|
+
}
|
|
34
39
|
|
|
35
|
-
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
)
|
|
40
|
+
const isModuleNotFoundForCandidate = (error: unknown, candidate: string) => {
|
|
41
|
+
if (!isModuleNotFoundError(error)) return false
|
|
42
|
+
const absolutePath = fileURLToPath(new URL(candidate, import.meta.url))
|
|
43
|
+
const message = (error as Error).message ?? ''
|
|
44
|
+
return message.includes(candidate) || message.includes(absolutePath)
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
const isPrismaClientNotGeneratedError = (error: unknown) => {
|
|
@@ -55,18 +59,15 @@ const generatePrismaClient = async () => {
|
|
|
55
59
|
paths: [packageRoot],
|
|
56
60
|
})
|
|
57
61
|
} catch (error) {
|
|
58
|
-
throw new CliError(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
cause: error,
|
|
62
|
-
},
|
|
63
|
-
)
|
|
62
|
+
throw new CliError('Unable to resolve Prisma CLI. Install `prisma` dependency.', {
|
|
63
|
+
cause: error,
|
|
64
|
+
})
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
await new Promise<void>((resolve, reject) => {
|
|
67
68
|
const child = spawn(
|
|
68
69
|
process.execPath,
|
|
69
|
-
[prismaCliPath, 'generate', '--schema',
|
|
70
|
+
[prismaCliPath, 'generate', '--schema', prismaSchemaPath],
|
|
70
71
|
{
|
|
71
72
|
cwd: packageRoot,
|
|
72
73
|
stdio: 'inherit',
|
|
@@ -89,46 +90,121 @@ const generatePrismaClient = async () => {
|
|
|
89
90
|
})
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
const clearModuleCache = (absolutePath: string) => {
|
|
94
|
+
delete nodeRequire.cache[absolutePath]
|
|
95
|
+
try {
|
|
96
|
+
const resolved = nodeRequire.resolve(absolutePath)
|
|
97
|
+
delete nodeRequire.cache[resolved]
|
|
98
|
+
} catch {
|
|
99
|
+
// ignore
|
|
100
|
+
}
|
|
101
|
+
}
|
|
95
102
|
|
|
96
|
-
|
|
97
|
-
|
|
103
|
+
const clearPrismaModuleCache = () => {
|
|
104
|
+
for (const candidate of prismaModuleCandidates) {
|
|
98
105
|
try {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
106
|
+
const absolute = fileURLToPath(new URL(candidate, import.meta.url))
|
|
107
|
+
clearModuleCache(absolute)
|
|
108
|
+
} catch {
|
|
109
|
+
// ignore resolution failures
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const clearPrismaClientCache = () => {
|
|
115
|
+
for (const request of prismaClientCacheKeys) {
|
|
116
|
+
try {
|
|
117
|
+
const resolved = nodeRequire.resolve(request, { paths: [packageRoot] })
|
|
118
|
+
delete nodeRequire.cache[resolved]
|
|
119
|
+
} catch {
|
|
120
|
+
// ignore cache misses
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const resetGlobalPrismaSingleton = () => {
|
|
126
|
+
if ('prisma' in globalThis) {
|
|
127
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
128
|
+
delete (globalThis as any).prisma
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const importPrismaModule = async (
|
|
133
|
+
candidate: string,
|
|
134
|
+
forceReload: boolean,
|
|
135
|
+
): Promise<Record<string, unknown>> => {
|
|
136
|
+
const url = new URL(candidate, import.meta.url)
|
|
137
|
+
|
|
138
|
+
if (forceReload) {
|
|
139
|
+
url.searchParams.set('ts', Date.now().toString())
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return import(url.href)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const loadFromCandidates = async (forceReload: boolean): Promise<PrismaClient> => {
|
|
146
|
+
let lastNotFoundError: unknown
|
|
147
|
+
|
|
148
|
+
for (const candidate of prismaModuleCandidates) {
|
|
149
|
+
try {
|
|
150
|
+
const module = await importPrismaModule(candidate, forceReload)
|
|
151
|
+
const prisma = module?.prisma as PrismaClient | undefined
|
|
152
|
+
|
|
153
|
+
if (!prisma) {
|
|
154
|
+
throw new CliError(`Module "${candidate}" does not export a Prisma client.`)
|
|
102
155
|
}
|
|
103
156
|
|
|
104
|
-
|
|
105
|
-
`Module "${candidate}" does not export a prisma client.`,
|
|
106
|
-
)
|
|
157
|
+
return prisma
|
|
107
158
|
} catch (error) {
|
|
108
159
|
if (isPrismaClientNotGeneratedError(error)) {
|
|
109
|
-
|
|
110
|
-
throw new CliError('Prisma client failed to initialize.', {
|
|
111
|
-
cause: error,
|
|
112
|
-
})
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
await generatePrismaClient()
|
|
116
|
-
attemptedGenerate = true
|
|
117
|
-
index -= 1
|
|
118
|
-
continue
|
|
160
|
+
throw new PrismaClientNeedsGenerateError(error)
|
|
119
161
|
}
|
|
120
162
|
|
|
121
|
-
if (
|
|
122
|
-
|
|
163
|
+
if (isModuleNotFoundForCandidate(error, candidate)) {
|
|
164
|
+
lastNotFoundError = error
|
|
123
165
|
continue
|
|
124
166
|
}
|
|
125
167
|
|
|
168
|
+
if (error instanceof CliError) {
|
|
169
|
+
throw error
|
|
170
|
+
}
|
|
171
|
+
|
|
126
172
|
throw new CliError('Failed to load Prisma client.', { cause: error })
|
|
127
173
|
}
|
|
128
174
|
}
|
|
129
175
|
|
|
130
176
|
throw new CliError(
|
|
131
|
-
'Prisma client module not found. Run `
|
|
132
|
-
{ cause:
|
|
177
|
+
'Prisma client module not found. Run `npm run build:lib` before using this command.',
|
|
178
|
+
{ cause: lastNotFoundError },
|
|
133
179
|
)
|
|
134
180
|
}
|
|
181
|
+
|
|
182
|
+
const regeneratePrismaClient = async () => {
|
|
183
|
+
await generatePrismaClient()
|
|
184
|
+
clearPrismaClientCache()
|
|
185
|
+
clearPrismaModuleCache()
|
|
186
|
+
resetGlobalPrismaSingleton()
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export const loadPrismaClient = async (): Promise<PrismaClient> => {
|
|
190
|
+
for (let attempt = 0; attempt < 2; attempt += 1) {
|
|
191
|
+
try {
|
|
192
|
+
return await loadFromCandidates(attempt > 0)
|
|
193
|
+
} catch (error) {
|
|
194
|
+
if (error instanceof PrismaClientNeedsGenerateError) {
|
|
195
|
+
await regeneratePrismaClient()
|
|
196
|
+
continue
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (error instanceof CliError) {
|
|
200
|
+
throw error
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
throw new CliError('Failed to load Prisma client.', { cause: error })
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
throw new CliError('Prisma client failed to initialize.', {
|
|
208
|
+
cause: new Error('Exceeded regeneration attempts.'),
|
|
209
|
+
})
|
|
210
|
+
}
|
|
File without changes
|
/package/.next/static/{eIqLpUWXibF0G0ipW0IC- → awGXOPyNtPI8LaLfTEQAh}/_clientMiddlewareManifest.json
RENAMED
|
File without changes
|
|
File without changes
|