@superinterface/server 1.5.1 → 1.7.0
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/app-path-routes-manifest.json +2 -0
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.previewinfo +1 -1
- package/.next/cache/.rscinfo +1 -1
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_btwyo7 +1 -1
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +17 -0
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/api/assistants/[assistantId]/tools/[toolId]/route/app-build-manifest.json +10 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/[toolId]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/[toolId]/route/build-manifest.json +16 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/[toolId]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/[toolId]/route.js +8 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/[toolId]/route.js.map +5 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/[toolId]/route.js.nft.json +1 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/[toolId]/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/route/app-build-manifest.json +10 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/route/build-manifest.json +16 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/route.js +8 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/route.js.map +5 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/route.js.nft.json +1 -0
- package/.next/server/app/api/assistants/[assistantId]/tools/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/files/[fileId]/contents/route.js +1 -1
- package/.next/server/app/api/files/[fileId]/contents/route.js.nft.json +1 -1
- package/.next/server/app/api/files/route.js +1 -1
- package/.next/server/app/api/files/route.js.nft.json +1 -1
- package/.next/server/app/api/messages/route.js +1 -1
- package/.next/server/app/api/messages/route.js.nft.json +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/assistants/route.js +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/assistants/route.js.nft.json +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/models/route.js +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/models/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/callback/route.js +1 -1
- package/.next/server/app/api/tasks/callback/route.js.nft.json +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/app-paths-manifest.json +2 -0
- package/.next/server/chunks/[root-of-the-server]__181844d8._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__181844d8._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__37a3ac4f._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__37a3ac4f._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__4e536bc0._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__4e536bc0._.js.map +1 -1
- package/.next/server/chunks/{[root-of-the-server]__157cba54._.js → [root-of-the-server]__5715dd1a._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__157cba54._.js.map → [root-of-the-server]__5715dd1a._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__621f572e._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__621f572e._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__76635a77._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__76635a77._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__8b8c4831._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__8b8c4831._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__bcdbc64b._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__bcdbc64b._.js.map +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0dd082e7._.js → [root-of-the-server]__e45dec0a._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0dd082e7._.js.map → [root-of-the-server]__e45dec0a._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__b9d6eedd._.js → [root-of-the-server]__faa0774f._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__b9d6eedd._.js.map → [root-of-the-server]__faa0774f._.js.map} +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_828c7f3d.js +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_828c7f3d.js.map +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/trace +1 -1
- package/.next/types/routes.d.ts +3 -1
- package/.next/types/validator.ts +18 -0
- package/dist/app/api/assistants/[assistantId]/buildRoute.d.ts +6 -0
- package/dist/app/api/assistants/[assistantId]/buildRoute.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/buildRoute.js +8 -4
- package/dist/app/api/assistants/[assistantId]/route.d.ts +6 -0
- package/dist/app/api/assistants/[assistantId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/tools/[toolId]/buildRoute.d.ts +107 -0
- package/dist/app/api/assistants/[assistantId]/tools/[toolId]/buildRoute.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/tools/[toolId]/buildRoute.js +165 -0
- package/dist/app/api/assistants/[assistantId]/tools/[toolId]/route.d.ts +107 -0
- package/dist/app/api/assistants/[assistantId]/tools/[toolId]/route.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/tools/[toolId]/route.js +6 -0
- package/dist/app/api/assistants/[assistantId]/tools/buildRoute.d.ts +74 -0
- package/dist/app/api/assistants/[assistantId]/tools/buildRoute.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/tools/buildRoute.js +121 -0
- package/dist/app/api/assistants/[assistantId]/tools/route.d.ts +70 -0
- package/dist/app/api/assistants/[assistantId]/tools/route.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/tools/route.js +5 -0
- package/dist/app/api/assistants/buildRoute.d.ts +34 -16
- package/dist/app/api/assistants/buildRoute.d.ts.map +1 -1
- package/dist/app/api/assistants/buildRoute.js +8 -4
- package/dist/app/api/assistants/route.d.ts +4 -0
- package/dist/app/api/assistants/route.d.ts.map +1 -1
- package/dist/lib/assistants/serializeApiAssistant.d.ts +2 -0
- package/dist/lib/assistants/serializeApiAssistant.d.ts.map +1 -1
- package/dist/lib/assistants/serializeApiAssistant.js +2 -0
- package/dist/lib/tools/isToolConfigAvailable.d.ts +16 -0
- package/dist/lib/tools/isToolConfigAvailable.d.ts.map +1 -0
- package/dist/lib/tools/isToolConfigAvailable.js +111 -0
- package/dist/lib/tools/serializeApiTool.d.ts +39 -0
- package/dist/lib/tools/serializeApiTool.d.ts.map +1 -0
- package/dist/lib/tools/serializeApiTool.js +35 -0
- package/dist/lib/tools/toolSchema.d.ts +311 -0
- package/dist/lib/tools/toolSchema.d.ts.map +1 -0
- package/dist/lib/tools/toolSchema.js +74 -0
- package/package.json +16 -1
- package/.next/server/chunks/[root-of-the-server]__80c5437f._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__80c5437f._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__aa7dab38._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__aa7dab38._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__aacdf247._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__aacdf247._.js.map +0 -1
- /package/.next/static/{sAHFK0SESk212SK8DFgrB → RTUY1MMVeKHU4_TIxAC_f}/_buildManifest.js +0 -0
- /package/.next/static/{sAHFK0SESk212SK8DFgrB → RTUY1MMVeKHU4_TIxAC_f}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{sAHFK0SESk212SK8DFgrB → RTUY1MMVeKHU4_TIxAC_f}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--RTUY1MMVeKHU4_TIxAC_f--><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/22375ab8b973caf2.js" async=""></script><script src="/_next/static/chunks/f1fd2298c8f33610.js" async=""></script><script src="/_next/static/chunks/turbopack-ecd75a8101638a7b.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\":\"RTUY1MMVeKHU4_TIxAC_f\",\"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/3afeabcaad450e6e.js" defer=""></script><script src="/_next/static/chunks/turbopack-77830c375ad53a98.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-cf3460fb5ef0876f.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/3afeabcaad450e6e.js" defer=""></script><script src="/_next/static/chunks/turbopack-77830c375ad53a98.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-cf3460fb5ef0876f.js" defer=""></script><script src="/_next/static/RTUY1MMVeKHU4_TIxAC_f/_ssgManifest.js" defer=""></script><script src="/_next/static/RTUY1MMVeKHU4_TIxAC_f/_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":"RTUY1MMVeKHU4_TIxAC_f","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"KFzmkFRthyRFAOCdHfwEFl6E5AsGjDJWXhy5gB+f2t0=\"\n}"
|
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":129,"timestamp":420208077051,"id":4,"parentId":1,"tags":{},"startTime":1767660407887,"traceId":"aca1ce3d8201a6ba"},{"name":"load-custom-routes","duration":164,"timestamp":420208077225,"id":5,"parentId":1,"tags":{},"startTime":1767660407888,"traceId":"aca1ce3d8201a6ba"},{"name":"create-dist-dir","duration":1994,"timestamp":420208168525,"id":6,"parentId":1,"tags":{},"startTime":1767660407979,"traceId":"aca1ce3d8201a6ba"},{"name":"create-pages-mapping","duration":107,"timestamp":420208247124,"id":7,"parentId":1,"tags":{},"startTime":1767660408057,"traceId":"aca1ce3d8201a6ba"},{"name":"collect-app-files","duration":2380,"timestamp":420208247250,"id":8,"parentId":1,"tags":{},"startTime":1767660408058,"traceId":"aca1ce3d8201a6ba"},{"name":"create-app-mapping","duration":759,"timestamp":420208249641,"id":9,"parentId":1,"tags":{},"startTime":1767660408060,"traceId":"aca1ce3d8201a6ba"},{"name":"create-app-layouts","duration":167,"timestamp":420208250413,"id":10,"parentId":1,"tags":{},"startTime":1767660408061,"traceId":"aca1ce3d8201a6ba"},{"name":"collect-default-files","duration":1002,"timestamp":420208251296,"id":12,"parentId":1,"tags":{},"startTime":1767660408062,"traceId":"aca1ce3d8201a6ba"},{"name":"generate-route-types","duration":12384,"timestamp":420208250847,"id":11,"parentId":1,"tags":{},"startTime":1767660408061,"traceId":"aca1ce3d8201a6ba"},{"name":"public-dir-conflict-check","duration":381,"timestamp":420208263269,"id":13,"parentId":1,"tags":{},"startTime":1767660408074,"traceId":"aca1ce3d8201a6ba"},{"name":"generate-routes-manifest","duration":1185,"timestamp":420208263730,"id":14,"parentId":1,"tags":{},"startTime":1767660408074,"traceId":"aca1ce3d8201a6ba"},{"name":"run-turbopack-compiler","duration":10159235,"timestamp":420208267313,"id":16,"parentId":1,"tags":{},"startTime":1767660408078,"traceId":"aca1ce3d8201a6ba"},{"name":"verify-and-lint","duration":1444937,"timestamp":420218444480,"id":19,"parentId":1,"tags":{},"startTime":1767660418255,"traceId":"aca1ce3d8201a6ba"},{"name":"verify-typescript-setup","duration":5477077,"timestamp":420218442369,"id":18,"parentId":1,"tags":{},"startTime":1767660418253,"traceId":"aca1ce3d8201a6ba"},{"name":"check-static-error-page","duration":2630,"timestamp":420223931829,"id":22,"parentId":21,"tags":{},"startTime":1767660423742,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":2705,"timestamp":420223952265,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1767660423763,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":2046,"timestamp":420223952936,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1767660423763,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":2118,"timestamp":420223952865,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1767660423763,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":302857,"timestamp":420223962384,"id":54,"parentId":41,"tags":{},"startTime":1767660423773,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":312051,"timestamp":420223953250,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":303008,"timestamp":420223962353,"id":53,"parentId":34,"tags":{},"startTime":1767660423773,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":312162,"timestamp":420223953206,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":303965,"timestamp":420223962268,"id":52,"parentId":32,"tags":{},"startTime":1767660423773,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":313090,"timestamp":420223953180,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":304133,"timestamp":420223962236,"id":51,"parentId":29,"tags":{},"startTime":1767660423773,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":313336,"timestamp":420223953076,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1767660423763,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":304399,"timestamp":420223962083,"id":50,"parentId":27,"tags":{},"startTime":1767660423772,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":313451,"timestamp":420223953044,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1767660423763,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":335229,"timestamp":420223962406,"id":55,"parentId":43,"tags":{},"startTime":1767660423773,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":344421,"timestamp":420223953262,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":339096,"timestamp":420223962515,"id":56,"parentId":35,"tags":{},"startTime":1767660423773,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":348437,"timestamp":420223953212,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":351552,"timestamp":420223963343,"id":62,"parentId":31,"tags":{},"startTime":1767660423774,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":361827,"timestamp":420223953095,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1767660423763,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":357000,"timestamp":420223963419,"id":64,"parentId":47,"tags":{},"startTime":1767660423774,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":367152,"timestamp":420223953294,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":359888,"timestamp":420223964135,"id":65,"parentId":48,"tags":{},"startTime":1767660423775,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":370742,"timestamp":420223953299,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":363531,"timestamp":420223964540,"id":66,"parentId":30,"tags":{},"startTime":1767660423775,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":375040,"timestamp":420223953083,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1767660423763,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":367841,"timestamp":420223963378,"id":63,"parentId":46,"tags":{},"startTime":1767660423774,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":377975,"timestamp":420223953287,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":368707,"timestamp":420223964557,"id":67,"parentId":33,"tags":{},"startTime":1767660423775,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":380105,"timestamp":420223953195,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":377691,"timestamp":420223964585,"id":69,"parentId":42,"tags":{},"startTime":1767660423775,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":389050,"timestamp":420223953255,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":394071,"timestamp":420223964560,"id":68,"parentId":45,"tags":{},"startTime":1767660423775,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":405378,"timestamp":420223953282,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":396729,"timestamp":420223964908,"id":71,"parentId":28,"tags":{},"startTime":1767660423775,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":408597,"timestamp":420223953066,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1767660423763,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":403834,"timestamp":420223964739,"id":70,"parentId":26,"tags":{},"startTime":1767660423775,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":415655,"timestamp":420223952954,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1767660423763,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":401939,"timestamp":420223972292,"id":73,"parentId":49,"tags":{},"startTime":1767660423783,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":420946,"timestamp":420223953305,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":501453,"timestamp":420223962863,"id":59,"parentId":40,"tags":{},"startTime":1767660423773,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":511107,"timestamp":420223953245,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":512372,"timestamp":420223962855,"id":58,"parentId":39,"tags":{},"startTime":1767660423773,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":522017,"timestamp":420223953239,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":519175,"timestamp":420223963298,"id":61,"parentId":37,"tags":{},"startTime":1767660423774,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":529273,"timestamp":420223953226,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":539676,"timestamp":420223962843,"id":57,"parentId":36,"tags":{},"startTime":1767660423773,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":549326,"timestamp":420223953221,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":567670,"timestamp":420223963236,"id":60,"parentId":38,"tags":{},"startTime":1767660423774,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":577703,"timestamp":420223953233,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"is-page-static","duration":612263,"timestamp":420223969397,"id":72,"parentId":44,"tags":{},"startTime":1767660423780,"traceId":"aca1ce3d8201a6ba"},{"name":"check-page","duration":628420,"timestamp":420223953267,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1767660423764,"traceId":"aca1ce3d8201a6ba"},{"name":"static-check","duration":650923,"timestamp":420223930779,"id":21,"parentId":1,"tags":{},"startTime":1767660423741,"traceId":"aca1ce3d8201a6ba"},{"name":"generate-required-server-files","duration":462,"timestamp":420224582233,"id":75,"parentId":1,"tags":{},"startTime":1767660424393,"traceId":"aca1ce3d8201a6ba"},{"name":"write-routes-manifest","duration":2915,"timestamp":420224589439,"id":77,"parentId":1,"tags":{},"startTime":1767660424400,"traceId":"aca1ce3d8201a6ba"},{"name":"load-dotenv","duration":26,"timestamp":420224612548,"id":80,"parentId":79,"tags":{},"startTime":1767660424423,"traceId":"aca1ce3d8201a6ba"},{"name":"run-export-path-map","duration":302,"timestamp":420224738999,"id":81,"parentId":79,"tags":{},"startTime":1767660424549,"traceId":"aca1ce3d8201a6ba"},{"name":"next-export","duration":1250938,"timestamp":420224612007,"id":79,"parentId":1,"tags":{},"startTime":1767660424422,"traceId":"aca1ce3d8201a6ba"},{"name":"move-exported-app-not-found-","duration":52944,"timestamp":420225863990,"id":82,"parentId":78,"tags":{},"startTime":1767660425674,"traceId":"aca1ce3d8201a6ba"},{"name":"move-exported-page","duration":95201,"timestamp":420225917060,"id":83,"parentId":78,"tags":{},"startTime":1767660425727,"traceId":"aca1ce3d8201a6ba"},{"name":"static-generation","duration":1630893,"timestamp":420224606240,"id":78,"parentId":1,"tags":{},"startTime":1767660424417,"traceId":"aca1ce3d8201a6ba"},{"name":"write-routes-manifest","duration":8949,"timestamp":420226237404,"id":84,"parentId":1,"tags":{},"startTime":1767660426048,"traceId":"aca1ce3d8201a6ba"},{"name":"node-file-trace-build","duration":3479357,"timestamp":420224585106,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1767660424395,"traceId":"aca1ce3d8201a6ba"},{"name":"apply-include-excludes","duration":266,"timestamp":420228064477,"id":85,"parentId":1,"tags":{},"startTime":1767660427875,"traceId":"aca1ce3d8201a6ba"},{"name":"print-tree-view","duration":3145,"timestamp":420228065088,"id":86,"parentId":1,"tags":{},"startTime":1767660427875,"traceId":"aca1ce3d8201a6ba"},{"name":"telemetry-flush","duration":35,"timestamp":420228068244,"id":87,"parentId":1,"tags":{},"startTime":1767660427879,"traceId":"aca1ce3d8201a6ba"},{"name":"next-build","duration":20488741,"timestamp":420207579540,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.9","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1767660407390,"traceId":"aca1ce3d8201a6ba"}]
|
|
1
|
+
[{"name":"generate-buildid","duration":258,"timestamp":292177934148,"id":4,"parentId":1,"tags":{},"startTime":1770452672810,"traceId":"9f1bb6d27c9c7fef"},{"name":"load-custom-routes","duration":257,"timestamp":292177934795,"id":5,"parentId":1,"tags":{},"startTime":1770452672811,"traceId":"9f1bb6d27c9c7fef"},{"name":"create-dist-dir","duration":2860,"timestamp":292177992334,"id":6,"parentId":1,"tags":{},"startTime":1770452672868,"traceId":"9f1bb6d27c9c7fef"},{"name":"create-pages-mapping","duration":311,"timestamp":292178238756,"id":7,"parentId":1,"tags":{},"startTime":1770452673115,"traceId":"9f1bb6d27c9c7fef"},{"name":"collect-app-files","duration":32169,"timestamp":292178239104,"id":8,"parentId":1,"tags":{},"startTime":1770452673115,"traceId":"9f1bb6d27c9c7fef"},{"name":"create-app-mapping","duration":5798,"timestamp":292178271300,"id":9,"parentId":1,"tags":{},"startTime":1770452673147,"traceId":"9f1bb6d27c9c7fef"},{"name":"create-app-layouts","duration":606,"timestamp":292178277130,"id":10,"parentId":1,"tags":{},"startTime":1770452673153,"traceId":"9f1bb6d27c9c7fef"},{"name":"collect-default-files","duration":13688,"timestamp":292178281549,"id":12,"parentId":1,"tags":{},"startTime":1770452673158,"traceId":"9f1bb6d27c9c7fef"},{"name":"generate-route-types","duration":40014,"timestamp":292178278783,"id":11,"parentId":1,"tags":{},"startTime":1770452673155,"traceId":"9f1bb6d27c9c7fef"},{"name":"public-dir-conflict-check","duration":5295,"timestamp":292178318987,"id":13,"parentId":1,"tags":{},"startTime":1770452673195,"traceId":"9f1bb6d27c9c7fef"},{"name":"generate-routes-manifest","duration":1817,"timestamp":292178324535,"id":14,"parentId":1,"tags":{},"startTime":1770452673201,"traceId":"9f1bb6d27c9c7fef"},{"name":"run-turbopack-compiler","duration":14851334,"timestamp":292178341383,"id":16,"parentId":1,"tags":{},"startTime":1770452673217,"traceId":"9f1bb6d27c9c7fef"},{"name":"verify-and-lint","duration":1998653,"timestamp":292193287338,"id":19,"parentId":1,"tags":{},"startTime":1770452688163,"traceId":"9f1bb6d27c9c7fef"},{"name":"verify-typescript-setup","duration":6030101,"timestamp":292193254999,"id":18,"parentId":1,"tags":{},"startTime":1770452688131,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-static-error-page","duration":13188,"timestamp":292199316378,"id":22,"parentId":21,"tags":{},"startTime":1770452694192,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":26138,"timestamp":292199397108,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1770452694273,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":17889,"timestamp":292199405367,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1770452694281,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":17981,"timestamp":292199405276,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1770452694281,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":673151,"timestamp":292199483671,"id":52,"parentId":28,"tags":{},"startTime":1770452694360,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":751423,"timestamp":292199405493,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":676381,"timestamp":292199484624,"id":56,"parentId":44,"tags":{},"startTime":1770452694361,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":755301,"timestamp":292199405732,"id":44,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":696811,"timestamp":292199484523,"id":55,"parentId":36,"tags":{},"startTime":1770452694361,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":775677,"timestamp":292199405688,"id":36,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/tools"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":697079,"timestamp":292199484330,"id":53,"parentId":30,"tags":{},"startTime":1770452694360,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":775901,"timestamp":292199405514,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":697076,"timestamp":292199484369,"id":54,"parentId":33,"tags":{},"startTime":1770452694360,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":775787,"timestamp":292199405663,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":710946,"timestamp":292199485231,"id":62,"parentId":37,"tags":{},"startTime":1770452694361,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":790514,"timestamp":292199405694,"id":37,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":764244,"timestamp":292199484794,"id":58,"parentId":31,"tags":{},"startTime":1770452694361,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":843676,"timestamp":292199405587,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":776612,"timestamp":292199484651,"id":57,"parentId":47,"tags":{},"startTime":1770452694361,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":855546,"timestamp":292199405748,"id":47,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":784888,"timestamp":292199489073,"id":66,"parentId":49,"tags":{},"startTime":1770452694365,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":868291,"timestamp":292199405759,"id":49,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":807106,"timestamp":292199489137,"id":67,"parentId":48,"tags":{},"startTime":1770452694365,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":890516,"timestamp":292199405754,"id":48,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":811328,"timestamp":292199489185,"id":68,"parentId":50,"tags":{},"startTime":1770452694365,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":894835,"timestamp":292199405764,"id":50,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":835683,"timestamp":292199489218,"id":69,"parentId":26,"tags":{},"startTime":1770452694365,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":919553,"timestamp":292199405383,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1770452694281,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":839993,"timestamp":292199489409,"id":70,"parentId":27,"tags":{},"startTime":1770452694365,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":923953,"timestamp":292199405477,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":843728,"timestamp":292199489412,"id":71,"parentId":29,"tags":{},"startTime":1770452694365,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":927671,"timestamp":292199405501,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":847413,"timestamp":292199489414,"id":72,"parentId":32,"tags":{},"startTime":1770452694365,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":931294,"timestamp":292199405636,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":854170,"timestamp":292199489417,"id":73,"parentId":34,"tags":{},"startTime":1770452694365,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":938036,"timestamp":292199405673,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":858941,"timestamp":292199489420,"id":74,"parentId":35,"tags":{},"startTime":1770452694366,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":942708,"timestamp":292199405682,"id":35,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/tools/[toolId]"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":863867,"timestamp":292199489422,"id":75,"parentId":43,"tags":{},"startTime":1770452694366,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":947676,"timestamp":292199405726,"id":43,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":868962,"timestamp":292199489425,"id":76,"parentId":45,"tags":{},"startTime":1770452694366,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":952677,"timestamp":292199405737,"id":45,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":874624,"timestamp":292199489658,"id":77,"parentId":51,"tags":{},"startTime":1770452694366,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":958537,"timestamp":292199405769,"id":51,"parentId":21,"tags":{"page":"/"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":1039259,"timestamp":292199485155,"id":61,"parentId":42,"tags":{},"startTime":1770452694361,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":1118801,"timestamp":292199405721,"id":42,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":1046930,"timestamp":292199485147,"id":60,"parentId":41,"tags":{},"startTime":1770452694361,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":1126395,"timestamp":292199405716,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":1068426,"timestamp":292199485273,"id":63,"parentId":39,"tags":{},"startTime":1770452694361,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":1148027,"timestamp":292199405705,"id":39,"parentId":21,"tags":{"page":"/api/files"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":1068638,"timestamp":292199485135,"id":59,"parentId":38,"tags":{},"startTime":1770452694361,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":1148087,"timestamp":292199405699,"id":38,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":1108595,"timestamp":292199486241,"id":64,"parentId":46,"tags":{},"startTime":1770452694362,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":1189131,"timestamp":292199405743,"id":46,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"is-page-static","duration":1111917,"timestamp":292199488913,"id":65,"parentId":40,"tags":{},"startTime":1770452694365,"traceId":"9f1bb6d27c9c7fef"},{"name":"check-page","duration":1195147,"timestamp":292199405710,"id":40,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1770452694282,"traceId":"9f1bb6d27c9c7fef"},{"name":"static-check","duration":1288355,"timestamp":292199312540,"id":21,"parentId":1,"tags":{},"startTime":1770452694189,"traceId":"9f1bb6d27c9c7fef"},{"name":"generate-required-server-files","duration":368,"timestamp":292200603495,"id":79,"parentId":1,"tags":{},"startTime":1770452695480,"traceId":"9f1bb6d27c9c7fef"},{"name":"write-routes-manifest","duration":1782,"timestamp":292200616801,"id":81,"parentId":1,"tags":{},"startTime":1770452695493,"traceId":"9f1bb6d27c9c7fef"},{"name":"load-dotenv","duration":15,"timestamp":292200785148,"id":84,"parentId":83,"tags":{},"startTime":1770452695661,"traceId":"9f1bb6d27c9c7fef"},{"name":"run-export-path-map","duration":286,"timestamp":292200817334,"id":85,"parentId":83,"tags":{},"startTime":1770452695693,"traceId":"9f1bb6d27c9c7fef"},{"name":"next-export","duration":1272384,"timestamp":292200784619,"id":83,"parentId":1,"tags":{},"startTime":1770452695661,"traceId":"9f1bb6d27c9c7fef"},{"name":"move-exported-app-not-found-","duration":37902,"timestamp":292202058164,"id":86,"parentId":82,"tags":{},"startTime":1770452696934,"traceId":"9f1bb6d27c9c7fef"},{"name":"move-exported-page","duration":35798,"timestamp":292202096192,"id":87,"parentId":82,"tags":{},"startTime":1770452696972,"traceId":"9f1bb6d27c9c7fef"},{"name":"static-generation","duration":1675001,"timestamp":292200779596,"id":82,"parentId":1,"tags":{},"startTime":1770452695656,"traceId":"9f1bb6d27c9c7fef"},{"name":"write-routes-manifest","duration":23904,"timestamp":292202454816,"id":88,"parentId":1,"tags":{},"startTime":1770452697331,"traceId":"9f1bb6d27c9c7fef"},{"name":"node-file-trace-build","duration":3698338,"timestamp":292200608025,"id":80,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1770452695484,"traceId":"9f1bb6d27c9c7fef"},{"name":"apply-include-excludes","duration":448,"timestamp":292204306415,"id":89,"parentId":1,"tags":{},"startTime":1770452699183,"traceId":"9f1bb6d27c9c7fef"},{"name":"print-tree-view","duration":2444,"timestamp":292204307392,"id":90,"parentId":1,"tags":{},"startTime":1770452699183,"traceId":"9f1bb6d27c9c7fef"},{"name":"telemetry-flush","duration":49,"timestamp":292204309846,"id":91,"parentId":1,"tags":{},"startTime":1770452699186,"traceId":"9f1bb6d27c9c7fef"},{"name":"next-build","duration":26683420,"timestamp":292177626481,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.9","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1770452672502,"traceId":"9f1bb6d27c9c7fef"}]
|
package/.next/types/routes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Do not edit this file manually
|
|
3
3
|
|
|
4
4
|
type AppRoutes = "/"
|
|
5
|
-
type AppRouteHandlerRoutes = "/api/api-keys" | "/api/api-keys/[apiKeyId]" | "/api/assistants" | "/api/assistants/[assistantId]" | "/api/assistants/[assistantId]/functions" | "/api/assistants/[assistantId]/functions/[functionId]" | "/api/assistants/[assistantId]/initial-messages" | "/api/assistants/[assistantId]/mcp-servers" | "/api/assistants/[assistantId]/mcp-servers/[mcpServerId]" | "/api/files" | "/api/files/[fileId]/contents" | "/api/messages" | "/api/providers" | "/api/providers/[modelProviderId]" | "/api/providers/[modelProviderId]/assistants" | "/api/providers/[modelProviderId]/models" | "/api/tasks" | "/api/tasks/[taskId]" | "/api/tasks/callback" | "/api/threads/runs/submit-client-tool-outputs" | "/api/workspaces" | "/api/workspaces/[workspaceId]"
|
|
5
|
+
type AppRouteHandlerRoutes = "/api/api-keys" | "/api/api-keys/[apiKeyId]" | "/api/assistants" | "/api/assistants/[assistantId]" | "/api/assistants/[assistantId]/functions" | "/api/assistants/[assistantId]/functions/[functionId]" | "/api/assistants/[assistantId]/initial-messages" | "/api/assistants/[assistantId]/mcp-servers" | "/api/assistants/[assistantId]/mcp-servers/[mcpServerId]" | "/api/assistants/[assistantId]/tools" | "/api/assistants/[assistantId]/tools/[toolId]" | "/api/files" | "/api/files/[fileId]/contents" | "/api/messages" | "/api/providers" | "/api/providers/[modelProviderId]" | "/api/providers/[modelProviderId]/assistants" | "/api/providers/[modelProviderId]/models" | "/api/tasks" | "/api/tasks/[taskId]" | "/api/tasks/callback" | "/api/threads/runs/submit-client-tool-outputs" | "/api/workspaces" | "/api/workspaces/[workspaceId]"
|
|
6
6
|
type PageRoutes = never
|
|
7
7
|
type LayoutRoutes = "/"
|
|
8
8
|
type RedirectRoutes = never
|
|
@@ -21,6 +21,8 @@ interface ParamMap {
|
|
|
21
21
|
"/api/assistants/[assistantId]/initial-messages": { "assistantId": string; }
|
|
22
22
|
"/api/assistants/[assistantId]/mcp-servers": { "assistantId": string; }
|
|
23
23
|
"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]": { "assistantId": string; "mcpServerId": string; }
|
|
24
|
+
"/api/assistants/[assistantId]/tools": { "assistantId": string; }
|
|
25
|
+
"/api/assistants/[assistantId]/tools/[toolId]": { "assistantId": string; "toolId": string; }
|
|
24
26
|
"/api/files": {}
|
|
25
27
|
"/api/files/[fileId]/contents": { "fileId": string; }
|
|
26
28
|
"/api/messages": {}
|
package/.next/types/validator.ts
CHANGED
|
@@ -128,6 +128,24 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
128
128
|
type __Unused = __Check
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
// Validate ../../src/app/api/assistants/[assistantId]/tools/[toolId]/route.ts
|
|
132
|
+
{
|
|
133
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/assistants/[assistantId]/tools/[toolId]">> = Specific
|
|
134
|
+
const handler = {} as typeof import("../../src/app/api/assistants/[assistantId]/tools/[toolId]/route.js")
|
|
135
|
+
type __Check = __IsExpected<typeof handler>
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
type __Unused = __Check
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Validate ../../src/app/api/assistants/[assistantId]/tools/route.ts
|
|
141
|
+
{
|
|
142
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/assistants/[assistantId]/tools">> = Specific
|
|
143
|
+
const handler = {} as typeof import("../../src/app/api/assistants/[assistantId]/tools/route.js")
|
|
144
|
+
type __Check = __IsExpected<typeof handler>
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
type __Unused = __Check
|
|
147
|
+
}
|
|
148
|
+
|
|
131
149
|
// Validate ../../src/app/api/assistants/route.ts
|
|
132
150
|
{
|
|
133
151
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/assistants">> = Specific
|
|
@@ -21,6 +21,8 @@ export declare const buildGET: ({ prisma }: {
|
|
|
21
21
|
instructions: string;
|
|
22
22
|
codeInterpreterEnabled: boolean;
|
|
23
23
|
fileSearchEnabled: boolean;
|
|
24
|
+
truncationType: import("@prisma/client").$Enums.TruncationType;
|
|
25
|
+
truncationLastMessagesCount: number | null;
|
|
24
26
|
createdAt: string;
|
|
25
27
|
updatedAt: string;
|
|
26
28
|
avatar: {
|
|
@@ -73,6 +75,8 @@ export declare const buildPATCH: ({ prisma }: {
|
|
|
73
75
|
instructions: string;
|
|
74
76
|
codeInterpreterEnabled: boolean;
|
|
75
77
|
fileSearchEnabled: boolean;
|
|
78
|
+
truncationType: import("@prisma/client").$Enums.TruncationType;
|
|
79
|
+
truncationLastMessagesCount: number | null;
|
|
76
80
|
createdAt: string;
|
|
77
81
|
updatedAt: string;
|
|
78
82
|
avatar: {
|
|
@@ -102,6 +106,8 @@ export declare const buildDELETE: ({ prisma }: {
|
|
|
102
106
|
instructions: string;
|
|
103
107
|
codeInterpreterEnabled: boolean;
|
|
104
108
|
fileSearchEnabled: boolean;
|
|
109
|
+
truncationType: import("@prisma/client").$Enums.TruncationType;
|
|
110
|
+
truncationLastMessagesCount: number | null;
|
|
105
111
|
createdAt: string;
|
|
106
112
|
updatedAt: string;
|
|
107
113
|
avatar: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildRoute.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/assistants/[assistantId]/buildRoute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"buildRoute.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/assistants/[assistantId]/buildRoute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAML,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AASvB,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;QACd,WAAW,EAAE,MAAM,CAAA;KACpB,CAAC,CAAA;CACH,CAAA;AAED,eAAO,MAAM,QAAQ,GAClB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,SAAS,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2F7C,CAAA;AAEH,eAAO,MAAM,UAAU,GACpB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,SAAS,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8L7C,CAAA;AAEH,eAAO,MAAM,WAAW,GACrB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,UAAU,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuD9C,CAAA;AAEH,eAAO,MAAM,YAAY,8BAMtB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextResponse } from 'next/server';
|
|
2
|
-
import { StorageProviderType, ApiKeyType, ToolType, } from '@prisma/client';
|
|
2
|
+
import { StorageProviderType, TruncationType, ApiKeyType, ToolType, } from '@prisma/client';
|
|
3
3
|
import { cacheHeaders } from '../../../../lib/cache/cacheHeaders';
|
|
4
4
|
import { workspaceAccessWhere as getWorkspaceAccessWhere } from '../../../../lib/apiKeys/workspaceAccessWhere';
|
|
5
5
|
import { serializeAssistant } from '../../../../lib/assistants/serializeAssistant';
|
|
@@ -101,6 +101,8 @@ export const buildPATCH = ({ prisma }) => async (request, props) => {
|
|
|
101
101
|
instructions: z.string().optional(),
|
|
102
102
|
codeInterpreterEnabled: z.boolean().optional(),
|
|
103
103
|
fileSearchEnabled: z.boolean().optional(),
|
|
104
|
+
truncationType: z.nativeEnum(TruncationType).optional(),
|
|
105
|
+
truncationLastMessagesCount: z.number().int().nullable().optional(),
|
|
104
106
|
})
|
|
105
107
|
.superRefine((data, ctx) => {
|
|
106
108
|
if (!data.storageProviderType)
|
|
@@ -130,7 +132,7 @@ export const buildPATCH = ({ prisma }) => async (request, props) => {
|
|
|
130
132
|
error: 'Invalid body: ' + parseResult.error.message,
|
|
131
133
|
}, { status: 400 });
|
|
132
134
|
}
|
|
133
|
-
const { storageProviderType, storageProviderAssistantId, modelProviderId, model, name, description, instructions, codeInterpreterEnabled, fileSearchEnabled, } = parseResult.data;
|
|
135
|
+
const { storageProviderType, storageProviderAssistantId, modelProviderId, model, name, description, instructions, codeInterpreterEnabled, fileSearchEnabled, truncationType, truncationLastMessagesCount, } = parseResult.data;
|
|
134
136
|
// Fetch existing assistant to determine storage provider type if not provided in update
|
|
135
137
|
const existingAssistant = await prisma.assistant.findUnique({
|
|
136
138
|
where: {
|
|
@@ -145,7 +147,7 @@ export const buildPATCH = ({ prisma }) => async (request, props) => {
|
|
|
145
147
|
return NextResponse.json({ error: 'No assistant found' }, { status: 400 });
|
|
146
148
|
}
|
|
147
149
|
const effectiveStorageProviderType = storageProviderType !== null && storageProviderType !== void 0 ? storageProviderType : existingAssistant.storageProviderType;
|
|
148
|
-
const data = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (storageProviderType !== undefined && { storageProviderType })), (storageProviderAssistantId !== undefined &&
|
|
150
|
+
const data = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (storageProviderType !== undefined && { storageProviderType })), (storageProviderAssistantId !== undefined &&
|
|
149
151
|
(effectiveStorageProviderType === StorageProviderType.AZURE_AGENTS
|
|
150
152
|
? {
|
|
151
153
|
azureAgentsAgentId: storageProviderAssistantId,
|
|
@@ -164,7 +166,9 @@ export const buildPATCH = ({ prisma }) => async (request, props) => {
|
|
|
164
166
|
azureResponsesAgentName: null,
|
|
165
167
|
}))), (modelProviderId !== undefined && {
|
|
166
168
|
modelProvider: { connect: { id: modelProviderId } },
|
|
167
|
-
})), (model !== undefined && { modelSlug: model })), (name !== undefined && { name })), (description !== undefined && { description })), (instructions !== undefined && { instructions })), {
|
|
169
|
+
})), (model !== undefined && { modelSlug: model })), (name !== undefined && { name })), (description !== undefined && { description })), (instructions !== undefined && { instructions })), (truncationType !== undefined && { truncationType })), (truncationLastMessagesCount !== undefined && {
|
|
170
|
+
truncationLastMessagesCount,
|
|
171
|
+
})), { tools: {
|
|
168
172
|
create: [
|
|
169
173
|
...(codeInterpreterEnabled === true
|
|
170
174
|
? [
|
|
@@ -16,6 +16,8 @@ export declare const GET: (request: import("next/server").NextRequest, props: {
|
|
|
16
16
|
instructions: string;
|
|
17
17
|
codeInterpreterEnabled: boolean;
|
|
18
18
|
fileSearchEnabled: boolean;
|
|
19
|
+
truncationType: import("@prisma/client").$Enums.TruncationType;
|
|
20
|
+
truncationLastMessagesCount: number | null;
|
|
19
21
|
createdAt: string;
|
|
20
22
|
updatedAt: string;
|
|
21
23
|
avatar: {
|
|
@@ -70,6 +72,8 @@ export declare const PATCH: (request: import("next/server").NextRequest, props:
|
|
|
70
72
|
instructions: string;
|
|
71
73
|
codeInterpreterEnabled: boolean;
|
|
72
74
|
fileSearchEnabled: boolean;
|
|
75
|
+
truncationType: import("@prisma/client").$Enums.TruncationType;
|
|
76
|
+
truncationLastMessagesCount: number | null;
|
|
73
77
|
createdAt: string;
|
|
74
78
|
updatedAt: string;
|
|
75
79
|
avatar: {
|
|
@@ -101,6 +105,8 @@ export declare const DELETE: (_request: import("next/server").NextRequest, props
|
|
|
101
105
|
instructions: string;
|
|
102
106
|
codeInterpreterEnabled: boolean;
|
|
103
107
|
fileSearchEnabled: boolean;
|
|
108
|
+
truncationType: import("@prisma/client").$Enums.TruncationType;
|
|
109
|
+
truncationLastMessagesCount: number | null;
|
|
104
110
|
createdAt: string;
|
|
105
111
|
updatedAt: string;
|
|
106
112
|
avatar: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/assistants/[assistantId]/route.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/assistants/[assistantId]/route.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuB,CAAA;AAEvC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyB,CAAA;AAE3C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0B,CAAA;AAE7C,eAAO,MAAM,OAAO,8CAAiB,CAAA"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { type PrismaClient } from '@prisma/client';
|
|
2
|
+
import { NextResponse, type NextRequest } from 'next/server';
|
|
3
|
+
type RouteProps = {
|
|
4
|
+
params: Promise<{
|
|
5
|
+
assistantId: string;
|
|
6
|
+
toolId: string;
|
|
7
|
+
}>;
|
|
8
|
+
};
|
|
9
|
+
export declare const buildGET: ({ prisma }: {
|
|
10
|
+
prisma: PrismaClient;
|
|
11
|
+
}) => (_request: NextRequest, props: RouteProps) => Promise<NextResponse<{
|
|
12
|
+
error: string;
|
|
13
|
+
}> | NextResponse<{
|
|
14
|
+
tool: {
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
computerUseTool?: {
|
|
18
|
+
displayWidth: number;
|
|
19
|
+
displayHeight: number;
|
|
20
|
+
environment: import("@prisma/client").$Enums.ComputerUseToolEnvironment;
|
|
21
|
+
mcpServerId: string | null;
|
|
22
|
+
} | undefined;
|
|
23
|
+
imageGenerationTool?: {
|
|
24
|
+
model: string;
|
|
25
|
+
quality: import("@prisma/client").$Enums.ImageGenerationToolQuality;
|
|
26
|
+
size: import("@prisma/client").$Enums.ImageGenerationToolSize;
|
|
27
|
+
outputFormat: import("@prisma/client").$Enums.ImageGenerationToolOutputFormat;
|
|
28
|
+
background: import("@prisma/client").$Enums.ImageGenerationToolBackground;
|
|
29
|
+
partialImages: number;
|
|
30
|
+
} | undefined;
|
|
31
|
+
codeInterpreterTool?: {} | undefined;
|
|
32
|
+
webSearchTool?: {} | undefined;
|
|
33
|
+
fileSearchTool?: {
|
|
34
|
+
vectorStoreIds: string[];
|
|
35
|
+
maxNumResults: number;
|
|
36
|
+
} | undefined;
|
|
37
|
+
id: string;
|
|
38
|
+
type: import("@prisma/client").$Enums.ToolType;
|
|
39
|
+
};
|
|
40
|
+
}>>;
|
|
41
|
+
export declare const buildPATCH: ({ prisma }: {
|
|
42
|
+
prisma: PrismaClient;
|
|
43
|
+
}) => (request: NextRequest, props: RouteProps) => Promise<NextResponse<{
|
|
44
|
+
error: string;
|
|
45
|
+
}> | NextResponse<{
|
|
46
|
+
tool: {
|
|
47
|
+
createdAt: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
computerUseTool?: {
|
|
50
|
+
displayWidth: number;
|
|
51
|
+
displayHeight: number;
|
|
52
|
+
environment: import("@prisma/client").$Enums.ComputerUseToolEnvironment;
|
|
53
|
+
mcpServerId: string | null;
|
|
54
|
+
} | undefined;
|
|
55
|
+
imageGenerationTool?: {
|
|
56
|
+
model: string;
|
|
57
|
+
quality: import("@prisma/client").$Enums.ImageGenerationToolQuality;
|
|
58
|
+
size: import("@prisma/client").$Enums.ImageGenerationToolSize;
|
|
59
|
+
outputFormat: import("@prisma/client").$Enums.ImageGenerationToolOutputFormat;
|
|
60
|
+
background: import("@prisma/client").$Enums.ImageGenerationToolBackground;
|
|
61
|
+
partialImages: number;
|
|
62
|
+
} | undefined;
|
|
63
|
+
codeInterpreterTool?: {} | undefined;
|
|
64
|
+
webSearchTool?: {} | undefined;
|
|
65
|
+
fileSearchTool?: {
|
|
66
|
+
vectorStoreIds: string[];
|
|
67
|
+
maxNumResults: number;
|
|
68
|
+
} | undefined;
|
|
69
|
+
id: string;
|
|
70
|
+
type: import("@prisma/client").$Enums.ToolType;
|
|
71
|
+
};
|
|
72
|
+
}>>;
|
|
73
|
+
export declare const buildDELETE: ({ prisma }: {
|
|
74
|
+
prisma: PrismaClient;
|
|
75
|
+
}) => (_request: NextRequest, props: RouteProps) => Promise<NextResponse<{
|
|
76
|
+
error: string;
|
|
77
|
+
}> | NextResponse<{
|
|
78
|
+
tool: {
|
|
79
|
+
createdAt: string;
|
|
80
|
+
updatedAt: string;
|
|
81
|
+
computerUseTool?: {
|
|
82
|
+
displayWidth: number;
|
|
83
|
+
displayHeight: number;
|
|
84
|
+
environment: import("@prisma/client").$Enums.ComputerUseToolEnvironment;
|
|
85
|
+
mcpServerId: string | null;
|
|
86
|
+
} | undefined;
|
|
87
|
+
imageGenerationTool?: {
|
|
88
|
+
model: string;
|
|
89
|
+
quality: import("@prisma/client").$Enums.ImageGenerationToolQuality;
|
|
90
|
+
size: import("@prisma/client").$Enums.ImageGenerationToolSize;
|
|
91
|
+
outputFormat: import("@prisma/client").$Enums.ImageGenerationToolOutputFormat;
|
|
92
|
+
background: import("@prisma/client").$Enums.ImageGenerationToolBackground;
|
|
93
|
+
partialImages: number;
|
|
94
|
+
} | undefined;
|
|
95
|
+
codeInterpreterTool?: {} | undefined;
|
|
96
|
+
webSearchTool?: {} | undefined;
|
|
97
|
+
fileSearchTool?: {
|
|
98
|
+
vectorStoreIds: string[];
|
|
99
|
+
maxNumResults: number;
|
|
100
|
+
} | undefined;
|
|
101
|
+
id: string;
|
|
102
|
+
type: import("@prisma/client").$Enums.ToolType;
|
|
103
|
+
};
|
|
104
|
+
}>>;
|
|
105
|
+
export declare const buildOPTIONS: () => () => NextResponse<{}>;
|
|
106
|
+
export {};
|
|
107
|
+
//# sourceMappingURL=buildRoute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildRoute.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/api/assistants/[assistantId]/tools/[toolId]/buildRoute.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAU5D,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACzD,CAAA;AAuBD,eAAO,MAAM,QAAQ,GAClB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,UAAU,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8C9C,CAAA;AAEH,eAAO,MAAM,UAAU,GACpB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,SAAS,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4F7C,CAAA;AAEH,eAAO,MAAM,WAAW,GACrB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,UAAU,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkD9C,CAAA;AAEH,eAAO,MAAM,YAAY,8BAMtB,CAAA"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { headers } from 'next/headers';
|
|
2
|
+
import { ApiKeyType, ToolType } from '@prisma/client';
|
|
3
|
+
import { NextResponse } from 'next/server';
|
|
4
|
+
import { cacheHeaders } from '../../../../../../lib/cache/cacheHeaders';
|
|
5
|
+
import { getApiKey } from '../../../../../../lib/apiKeys/getApiKey';
|
|
6
|
+
import { validate } from 'uuid';
|
|
7
|
+
import { serializeApiTool, toolInclude, } from '../../../../../../lib/tools/serializeApiTool';
|
|
8
|
+
import { updateToolSchema } from '../../../../../../lib/tools/toolSchema';
|
|
9
|
+
const ensureIdsValid = ({ assistantId, toolId, }) => {
|
|
10
|
+
if (!validate(assistantId)) {
|
|
11
|
+
return NextResponse.json({ error: 'Invalid assistant id' }, { status: 400 });
|
|
12
|
+
}
|
|
13
|
+
if (!validate(toolId)) {
|
|
14
|
+
return NextResponse.json({ error: 'Invalid tool id' }, { status: 400 });
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
};
|
|
18
|
+
export const buildGET = ({ prisma }) => async (_request, props) => {
|
|
19
|
+
const { assistantId, toolId } = await props.params;
|
|
20
|
+
const headersList = await headers();
|
|
21
|
+
const authorization = headersList.get('authorization');
|
|
22
|
+
if (!authorization) {
|
|
23
|
+
return NextResponse.json({ error: 'No authorization header found' }, { status: 400 });
|
|
24
|
+
}
|
|
25
|
+
const privateApiKey = await getApiKey({
|
|
26
|
+
type: ApiKeyType.PRIVATE,
|
|
27
|
+
authorization,
|
|
28
|
+
prisma,
|
|
29
|
+
});
|
|
30
|
+
if (!privateApiKey) {
|
|
31
|
+
return NextResponse.json({ error: 'Invalid api key' }, { status: 400 });
|
|
32
|
+
}
|
|
33
|
+
const validationError = ensureIdsValid({ assistantId, toolId });
|
|
34
|
+
if (validationError)
|
|
35
|
+
return validationError;
|
|
36
|
+
const tool = await prisma.tool.findFirst({
|
|
37
|
+
where: {
|
|
38
|
+
id: toolId,
|
|
39
|
+
assistant: {
|
|
40
|
+
id: assistantId,
|
|
41
|
+
workspaceId: privateApiKey.workspaceId,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
include: toolInclude,
|
|
45
|
+
});
|
|
46
|
+
if (!tool) {
|
|
47
|
+
return NextResponse.json({ error: 'No tool found' }, { status: 400 });
|
|
48
|
+
}
|
|
49
|
+
return NextResponse.json({
|
|
50
|
+
tool: serializeApiTool({ tool }),
|
|
51
|
+
}, { headers: cacheHeaders });
|
|
52
|
+
};
|
|
53
|
+
export const buildPATCH = ({ prisma }) => async (request, props) => {
|
|
54
|
+
const { assistantId, toolId } = await props.params;
|
|
55
|
+
const headersList = await headers();
|
|
56
|
+
const authorization = headersList.get('authorization');
|
|
57
|
+
if (!authorization) {
|
|
58
|
+
return NextResponse.json({ error: 'No authorization header found' }, { status: 400 });
|
|
59
|
+
}
|
|
60
|
+
const privateApiKey = await getApiKey({
|
|
61
|
+
authorization,
|
|
62
|
+
type: ApiKeyType.PRIVATE,
|
|
63
|
+
prisma,
|
|
64
|
+
});
|
|
65
|
+
if (!privateApiKey) {
|
|
66
|
+
return NextResponse.json({ error: 'Invalid api key' }, { status: 400 });
|
|
67
|
+
}
|
|
68
|
+
const validationError = ensureIdsValid({ assistantId, toolId });
|
|
69
|
+
if (validationError)
|
|
70
|
+
return validationError;
|
|
71
|
+
const body = await request.json();
|
|
72
|
+
const parsed = updateToolSchema.safeParse(body);
|
|
73
|
+
if (!parsed.success) {
|
|
74
|
+
return NextResponse.json({ error: 'Invalid payload' }, { status: 400 });
|
|
75
|
+
}
|
|
76
|
+
const tool = await prisma.tool.findFirst({
|
|
77
|
+
where: {
|
|
78
|
+
id: toolId,
|
|
79
|
+
assistant: {
|
|
80
|
+
id: assistantId,
|
|
81
|
+
workspaceId: privateApiKey.workspaceId,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
if (!tool) {
|
|
86
|
+
return NextResponse.json({ error: 'No tool found' }, { status: 400 });
|
|
87
|
+
}
|
|
88
|
+
const typeSpecificUpdate = {};
|
|
89
|
+
if (tool.type === ToolType.FILE_SEARCH &&
|
|
90
|
+
parsed.data.fileSearchTool) {
|
|
91
|
+
typeSpecificUpdate.fileSearchTool = {
|
|
92
|
+
upsert: {
|
|
93
|
+
create: parsed.data.fileSearchTool,
|
|
94
|
+
update: parsed.data.fileSearchTool,
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
else if (tool.type === ToolType.IMAGE_GENERATION &&
|
|
99
|
+
parsed.data.imageGenerationTool) {
|
|
100
|
+
typeSpecificUpdate.imageGenerationTool = {
|
|
101
|
+
upsert: {
|
|
102
|
+
create: parsed.data.imageGenerationTool,
|
|
103
|
+
update: parsed.data.imageGenerationTool,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
else if (tool.type === ToolType.COMPUTER_USE &&
|
|
108
|
+
parsed.data.computerUseTool) {
|
|
109
|
+
typeSpecificUpdate.computerUseTool = {
|
|
110
|
+
upsert: {
|
|
111
|
+
create: parsed.data.computerUseTool,
|
|
112
|
+
update: parsed.data.computerUseTool,
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
const updatedTool = await prisma.tool.update({
|
|
117
|
+
where: { id: tool.id },
|
|
118
|
+
data: typeSpecificUpdate,
|
|
119
|
+
include: toolInclude,
|
|
120
|
+
});
|
|
121
|
+
return NextResponse.json({
|
|
122
|
+
tool: serializeApiTool({ tool: updatedTool }),
|
|
123
|
+
}, { headers: cacheHeaders });
|
|
124
|
+
};
|
|
125
|
+
export const buildDELETE = ({ prisma }) => async (_request, props) => {
|
|
126
|
+
const { assistantId, toolId } = await props.params;
|
|
127
|
+
const headersList = await headers();
|
|
128
|
+
const authorization = headersList.get('authorization');
|
|
129
|
+
if (!authorization) {
|
|
130
|
+
return NextResponse.json({ error: 'No authorization header found' }, { status: 400 });
|
|
131
|
+
}
|
|
132
|
+
const privateApiKey = await getApiKey({
|
|
133
|
+
authorization,
|
|
134
|
+
type: ApiKeyType.PRIVATE,
|
|
135
|
+
prisma,
|
|
136
|
+
});
|
|
137
|
+
if (!privateApiKey) {
|
|
138
|
+
return NextResponse.json({ error: 'Invalid api key' }, { status: 400 });
|
|
139
|
+
}
|
|
140
|
+
const validationError = ensureIdsValid({ assistantId, toolId });
|
|
141
|
+
if (validationError)
|
|
142
|
+
return validationError;
|
|
143
|
+
const tool = await prisma.tool.findFirst({
|
|
144
|
+
where: {
|
|
145
|
+
id: toolId,
|
|
146
|
+
assistant: {
|
|
147
|
+
id: assistantId,
|
|
148
|
+
workspaceId: privateApiKey.workspaceId,
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
if (!tool) {
|
|
153
|
+
return NextResponse.json({ error: 'No tool found' }, { status: 400 });
|
|
154
|
+
}
|
|
155
|
+
const deletedTool = await prisma.tool.delete({
|
|
156
|
+
where: { id: tool.id },
|
|
157
|
+
include: toolInclude,
|
|
158
|
+
});
|
|
159
|
+
return NextResponse.json({
|
|
160
|
+
tool: serializeApiTool({ tool: deletedTool }),
|
|
161
|
+
}, { headers: cacheHeaders });
|
|
162
|
+
};
|
|
163
|
+
export const buildOPTIONS = () => () => NextResponse.json({}, {
|
|
164
|
+
headers: cacheHeaders,
|
|
165
|
+
});
|