@superinterface/server 1.0.37 → 1.0.39
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/chunks/[root-of-the-server]__29b43490._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__29b43490._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__376a26a2._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__376a26a2._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__a12c1ae4._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__a12c1ae4._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__a7254ba0._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__a7254ba0._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__dd176cb5._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__dd176cb5._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__dfab3dc1._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__dfab3dc1._.js.map +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/functions/handleFunction/handleRequest.d.ts.map +1 -1
- package/dist/lib/functions/handleFunction/handleRequest.js +21 -8
- package/package.json +2 -2
- package/scripts/cleanupTaskConflicts.ts +51 -6
- /package/.next/static/{a3KG4O2A5sJO2AvvW4J1L → KSqaVkql-hTCPJn2akzn5}/_buildManifest.js +0 -0
- /package/.next/static/{a3KG4O2A5sJO2AvvW4J1L → KSqaVkql-hTCPJn2akzn5}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{a3KG4O2A5sJO2AvvW4J1L → KSqaVkql-hTCPJn2akzn5}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--KSqaVkql_hTCPJn2akzn5--><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\":\"KSqaVkql-hTCPJn2akzn5\",\"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/KSqaVkql-hTCPJn2akzn5/_ssgManifest.js" defer=""></script><script src="/_next/static/KSqaVkql-hTCPJn2akzn5/_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":"KSqaVkql-hTCPJn2akzn5","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":124,"timestamp":560760140202,"id":4,"parentId":1,"tags":{},"startTime":1760452274038,"traceId":"6f58f81ae21fde51"},{"name":"load-custom-routes","duration":160,"timestamp":560760140374,"id":5,"parentId":1,"tags":{},"startTime":1760452274038,"traceId":"6f58f81ae21fde51"},{"name":"create-dist-dir","duration":679,"timestamp":560760186080,"id":6,"parentId":1,"tags":{},"startTime":1760452274084,"traceId":"6f58f81ae21fde51"},{"name":"create-pages-mapping","duration":127,"timestamp":560760259606,"id":7,"parentId":1,"tags":{},"startTime":1760452274157,"traceId":"6f58f81ae21fde51"},{"name":"collect-app-files","duration":2735,"timestamp":560760259755,"id":8,"parentId":1,"tags":{},"startTime":1760452274158,"traceId":"6f58f81ae21fde51"},{"name":"create-app-mapping","duration":889,"timestamp":560760262506,"id":9,"parentId":1,"tags":{},"startTime":1760452274160,"traceId":"6f58f81ae21fde51"},{"name":"create-app-layouts","duration":199,"timestamp":560760263416,"id":10,"parentId":1,"tags":{},"startTime":1760452274161,"traceId":"6f58f81ae21fde51"},{"name":"collect-default-files","duration":1708,"timestamp":560760264762,"id":12,"parentId":1,"tags":{},"startTime":1760452274163,"traceId":"6f58f81ae21fde51"},{"name":"generate-route-types","duration":13761,"timestamp":560760263912,"id":11,"parentId":1,"tags":{},"startTime":1760452274162,"traceId":"6f58f81ae21fde51"},{"name":"public-dir-conflict-check","duration":356,"timestamp":560760277738,"id":13,"parentId":1,"tags":{},"startTime":1760452274176,"traceId":"6f58f81ae21fde51"},{"name":"generate-routes-manifest","duration":1405,"timestamp":560760278216,"id":14,"parentId":1,"tags":{},"startTime":1760452274176,"traceId":"6f58f81ae21fde51"},{"name":"run-turbopack-compiler","duration":10712781,"timestamp":560760282806,"id":16,"parentId":1,"tags":{},"startTime":1760452274181,"traceId":"6f58f81ae21fde51"},{"name":"verify-and-lint","duration":2293963,"timestamp":560771038660,"id":19,"parentId":1,"tags":{},"startTime":1760452284937,"traceId":"6f58f81ae21fde51"},{"name":"verify-typescript-setup","duration":7871455,"timestamp":560771034608,"id":18,"parentId":1,"tags":{},"startTime":1760452284933,"traceId":"6f58f81ae21fde51"},{"name":"check-static-error-page","duration":7206,"timestamp":560778925402,"id":22,"parentId":21,"tags":{},"startTime":1760452292823,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":2039,"timestamp":560779036009,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1760452292934,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":1344,"timestamp":560779036715,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":1415,"timestamp":560779036645,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":389986,"timestamp":560779043979,"id":55,"parentId":35,"tags":{},"startTime":1760452292942,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":397077,"timestamp":560779036935,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":395445,"timestamp":560779043821,"id":53,"parentId":42,"tags":{},"startTime":1760452292942,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":402361,"timestamp":560779036978,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":399519,"timestamp":560779043861,"id":54,"parentId":45,"tags":{},"startTime":1760452292942,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":406407,"timestamp":560779036996,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":434024,"timestamp":560779043715,"id":52,"parentId":33,"tags":{},"startTime":1760452292942,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":440854,"timestamp":560779036921,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":434250,"timestamp":560779043564,"id":51,"parentId":30,"tags":{},"startTime":1760452292941,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":441002,"timestamp":560779036820,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":435429,"timestamp":560779042433,"id":50,"parentId":31,"tags":{},"startTime":1760452292940,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":440974,"timestamp":560779036893,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":435611,"timestamp":560779056587,"id":62,"parentId":48,"tags":{},"startTime":1760452292955,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":455209,"timestamp":560779037013,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":439672,"timestamp":560779056716,"id":63,"parentId":47,"tags":{},"startTime":1760452292955,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":459434,"timestamp":560779037008,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":458968,"timestamp":560779045080,"id":60,"parentId":46,"tags":{},"startTime":1760452292943,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":467072,"timestamp":560779037003,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":458473,"timestamp":560779060360,"id":65,"parentId":27,"tags":{},"startTime":1760452292958,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":482070,"timestamp":560779036788,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":475607,"timestamp":560779060056,"id":64,"parentId":26,"tags":{},"startTime":1760452292958,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":499013,"timestamp":560779036730,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":486814,"timestamp":560779060367,"id":66,"parentId":29,"tags":{},"startTime":1760452292958,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":510396,"timestamp":560779036813,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":489620,"timestamp":560779060372,"id":68,"parentId":32,"tags":{},"startTime":1760452292958,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":513102,"timestamp":560779036907,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":500269,"timestamp":560779060370,"id":67,"parentId":34,"tags":{},"startTime":1760452292958,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":523738,"timestamp":560779036928,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":505901,"timestamp":560779060376,"id":70,"parentId":41,"tags":{},"startTime":1760452292958,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":529331,"timestamp":560779036973,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":510853,"timestamp":560779060426,"id":71,"parentId":28,"tags":{},"startTime":1760452292958,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":534854,"timestamp":560779036804,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":536964,"timestamp":560779060374,"id":69,"parentId":43,"tags":{},"startTime":1760452292958,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":560385,"timestamp":560779036984,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":545362,"timestamp":560779086687,"id":73,"parentId":49,"tags":{},"startTime":1760452292985,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":595057,"timestamp":560779037018,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":682340,"timestamp":560779045003,"id":59,"parentId":40,"tags":{},"startTime":1760452292943,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":690408,"timestamp":560779036965,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":693092,"timestamp":560779044039,"id":56,"parentId":37,"tags":{},"startTime":1760452292942,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":700214,"timestamp":560779036946,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":703500,"timestamp":560779044993,"id":58,"parentId":39,"tags":{},"startTime":1760452292943,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":711562,"timestamp":560779036959,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":734101,"timestamp":560779044972,"id":57,"parentId":36,"tags":{},"startTime":1760452292943,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":742161,"timestamp":560779036940,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":747087,"timestamp":560779055680,"id":61,"parentId":38,"tags":{},"startTime":1760452292954,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":765843,"timestamp":560779036951,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"is-page-static","duration":762878,"timestamp":560779078251,"id":72,"parentId":44,"tags":{},"startTime":1760452292976,"traceId":"6f58f81ae21fde51"},{"name":"check-page","duration":804165,"timestamp":560779036991,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1760452292935,"traceId":"6f58f81ae21fde51"},{"name":"static-check","duration":919830,"timestamp":560778921354,"id":21,"parentId":1,"tags":{},"startTime":1760452292819,"traceId":"6f58f81ae21fde51"},{"name":"generate-required-server-files","duration":759,"timestamp":560779841524,"id":75,"parentId":1,"tags":{},"startTime":1760452293739,"traceId":"6f58f81ae21fde51"},{"name":"write-routes-manifest","duration":3282,"timestamp":560779859213,"id":77,"parentId":1,"tags":{},"startTime":1760452293757,"traceId":"6f58f81ae21fde51"},{"name":"load-dotenv","duration":15,"timestamp":560780058984,"id":80,"parentId":79,"tags":{},"startTime":1760452293957,"traceId":"6f58f81ae21fde51"},{"name":"run-export-path-map","duration":273,"timestamp":560780077819,"id":81,"parentId":79,"tags":{},"startTime":1760452293976,"traceId":"6f58f81ae21fde51"},{"name":"next-export","duration":704169,"timestamp":560780058472,"id":79,"parentId":1,"tags":{},"startTime":1760452293956,"traceId":"6f58f81ae21fde51"},{"name":"move-exported-app-not-found-","duration":2743,"timestamp":560780763718,"id":82,"parentId":78,"tags":{},"startTime":1760452294662,"traceId":"6f58f81ae21fde51"},{"name":"move-exported-page","duration":6303,"timestamp":560780766568,"id":83,"parentId":78,"tags":{},"startTime":1760452294665,"traceId":"6f58f81ae21fde51"},{"name":"static-generation","duration":765657,"timestamp":560780052702,"id":78,"parentId":1,"tags":{},"startTime":1760452293951,"traceId":"6f58f81ae21fde51"},{"name":"write-routes-manifest","duration":6974,"timestamp":560780818573,"id":84,"parentId":1,"tags":{},"startTime":1760452294717,"traceId":"6f58f81ae21fde51"},{"name":"node-file-trace-build","duration":4545522,"timestamp":560779854987,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1760452293753,"traceId":"6f58f81ae21fde51"},{"name":"apply-include-excludes","duration":355,"timestamp":560784400583,"id":85,"parentId":1,"tags":{},"startTime":1760452298299,"traceId":"6f58f81ae21fde51"},{"name":"print-tree-view","duration":3200,"timestamp":560784401624,"id":86,"parentId":1,"tags":{},"startTime":1760452298300,"traceId":"6f58f81ae21fde51"},{"name":"telemetry-flush","duration":80,"timestamp":560784404838,"id":87,"parentId":1,"tags":{},"startTime":1760452298303,"traceId":"6f58f81ae21fde51"},{"name":"next-build","duration":24688403,"timestamp":560759716522,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1760452273614,"traceId":"6f58f81ae21fde51"}]
|
|
1
|
+
[{"name":"generate-buildid","duration":285,"timestamp":677954354190,"id":4,"parentId":1,"tags":{},"startTime":1760569468607,"traceId":"bfaa57a6523e8fd3"},{"name":"load-custom-routes","duration":176,"timestamp":677954354534,"id":5,"parentId":1,"tags":{},"startTime":1760569468607,"traceId":"bfaa57a6523e8fd3"},{"name":"create-dist-dir","duration":1646,"timestamp":677954410953,"id":6,"parentId":1,"tags":{},"startTime":1760569468663,"traceId":"bfaa57a6523e8fd3"},{"name":"create-pages-mapping","duration":171,"timestamp":677954679559,"id":7,"parentId":1,"tags":{},"startTime":1760569468932,"traceId":"bfaa57a6523e8fd3"},{"name":"collect-app-files","duration":3026,"timestamp":677954679756,"id":8,"parentId":1,"tags":{},"startTime":1760569468932,"traceId":"bfaa57a6523e8fd3"},{"name":"create-app-mapping","duration":872,"timestamp":677954682805,"id":9,"parentId":1,"tags":{},"startTime":1760569468935,"traceId":"bfaa57a6523e8fd3"},{"name":"create-app-layouts","duration":182,"timestamp":677954683692,"id":10,"parentId":1,"tags":{},"startTime":1760569468936,"traceId":"bfaa57a6523e8fd3"},{"name":"collect-default-files","duration":2058,"timestamp":677954685044,"id":12,"parentId":1,"tags":{},"startTime":1760569468938,"traceId":"bfaa57a6523e8fd3"},{"name":"generate-route-types","duration":16344,"timestamp":677954684205,"id":11,"parentId":1,"tags":{},"startTime":1760569468937,"traceId":"bfaa57a6523e8fd3"},{"name":"public-dir-conflict-check","duration":392,"timestamp":677954700630,"id":13,"parentId":1,"tags":{},"startTime":1760569468953,"traceId":"bfaa57a6523e8fd3"},{"name":"generate-routes-manifest","duration":1452,"timestamp":677954701174,"id":14,"parentId":1,"tags":{},"startTime":1760569468954,"traceId":"bfaa57a6523e8fd3"},{"name":"run-turbopack-compiler","duration":7502231,"timestamp":677954705615,"id":16,"parentId":1,"tags":{},"startTime":1760569468958,"traceId":"bfaa57a6523e8fd3"},{"name":"verify-and-lint","duration":1899720,"timestamp":677962234204,"id":19,"parentId":1,"tags":{},"startTime":1760569476487,"traceId":"bfaa57a6523e8fd3"},{"name":"verify-typescript-setup","duration":5173168,"timestamp":677962227498,"id":18,"parentId":1,"tags":{},"startTime":1760569476480,"traceId":"bfaa57a6523e8fd3"},{"name":"check-static-error-page","duration":2074,"timestamp":677967419862,"id":22,"parentId":21,"tags":{},"startTime":1760569481672,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":2171,"timestamp":677967480888,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1760569481733,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":1704,"timestamp":677967481369,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":1755,"timestamp":677967481319,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":319266,"timestamp":677967487150,"id":50,"parentId":29,"tags":{},"startTime":1760569481740,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":324993,"timestamp":677967481457,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":319227,"timestamp":677967487302,"id":52,"parentId":34,"tags":{},"startTime":1760569481740,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":324971,"timestamp":677967481565,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":322382,"timestamp":677967487425,"id":54,"parentId":41,"tags":{},"startTime":1760569481740,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":328267,"timestamp":677967481599,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":322590,"timestamp":677967487390,"id":53,"parentId":27,"tags":{},"startTime":1760569481740,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":328560,"timestamp":677967481435,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":325409,"timestamp":677967488240,"id":58,"parentId":33,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":332113,"timestamp":677967481558,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":329504,"timestamp":677967488249,"id":59,"parentId":42,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":336229,"timestamp":677967481604,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":335398,"timestamp":677967488227,"id":57,"parentId":30,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":342208,"timestamp":677967481467,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":336314,"timestamp":677967487446,"id":55,"parentId":43,"tags":{},"startTime":1760569481740,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":342165,"timestamp":677967481608,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":336312,"timestamp":677967487523,"id":56,"parentId":31,"tags":{},"startTime":1760569481740,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":342316,"timestamp":677967481533,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":346911,"timestamp":677967488262,"id":60,"parentId":45,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":353606,"timestamp":677967481618,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":348024,"timestamp":677967487272,"id":51,"parentId":32,"tags":{},"startTime":1760569481740,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":353776,"timestamp":677967481546,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":355604,"timestamp":677967488552,"id":66,"parentId":35,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":362612,"timestamp":677967481571,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":361673,"timestamp":677967494884,"id":68,"parentId":46,"tags":{},"startTime":1760569481747,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":375025,"timestamp":677967481622,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":368463,"timestamp":677967488320,"id":61,"parentId":28,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":375354,"timestamp":677967481449,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":369678,"timestamp":677967494958,"id":70,"parentId":47,"tags":{},"startTime":1760569481748,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":383035,"timestamp":677967481627,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":373522,"timestamp":677967495002,"id":71,"parentId":48,"tags":{},"startTime":1760569481748,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":386938,"timestamp":677967481631,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":387510,"timestamp":677967494905,"id":69,"parentId":26,"tags":{},"startTime":1760569481747,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":401076,"timestamp":677967481383,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":395335,"timestamp":677967503457,"id":73,"parentId":49,"tags":{},"startTime":1760569481756,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":417178,"timestamp":677967481636,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":500079,"timestamp":677967488391,"id":63,"parentId":39,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":506948,"timestamp":677967481590,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":517436,"timestamp":677967488388,"id":62,"parentId":36,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":524275,"timestamp":677967481576,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":535696,"timestamp":677967488394,"id":64,"parentId":40,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":542523,"timestamp":677967481595,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":548395,"timestamp":677967488504,"id":65,"parentId":37,"tags":{},"startTime":1760569481741,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":555346,"timestamp":677967481581,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":567140,"timestamp":677967494636,"id":67,"parentId":44,"tags":{},"startTime":1760569481747,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":580190,"timestamp":677967481613,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"is-page-static","duration":574047,"timestamp":677967500571,"id":72,"parentId":38,"tags":{},"startTime":1760569481753,"traceId":"bfaa57a6523e8fd3"},{"name":"check-page","duration":593060,"timestamp":677967481585,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1760569481734,"traceId":"bfaa57a6523e8fd3"},{"name":"static-check","duration":655383,"timestamp":677967419278,"id":21,"parentId":1,"tags":{},"startTime":1760569481672,"traceId":"bfaa57a6523e8fd3"},{"name":"generate-required-server-files","duration":214,"timestamp":677968074998,"id":75,"parentId":1,"tags":{},"startTime":1760569482328,"traceId":"bfaa57a6523e8fd3"},{"name":"write-routes-manifest","duration":6248,"timestamp":677968082523,"id":77,"parentId":1,"tags":{},"startTime":1760569482335,"traceId":"bfaa57a6523e8fd3"},{"name":"load-dotenv","duration":14,"timestamp":677968102024,"id":80,"parentId":79,"tags":{},"startTime":1760569482355,"traceId":"bfaa57a6523e8fd3"},{"name":"run-export-path-map","duration":312,"timestamp":677968204207,"id":81,"parentId":79,"tags":{},"startTime":1760569482457,"traceId":"bfaa57a6523e8fd3"},{"name":"next-export","duration":913574,"timestamp":677968101537,"id":79,"parentId":1,"tags":{},"startTime":1760569482354,"traceId":"bfaa57a6523e8fd3"},{"name":"move-exported-app-not-found-","duration":155474,"timestamp":677969016143,"id":82,"parentId":78,"tags":{},"startTime":1760569483269,"traceId":"bfaa57a6523e8fd3"},{"name":"move-exported-page","duration":10252,"timestamp":677969171699,"id":83,"parentId":78,"tags":{},"startTime":1760569483424,"traceId":"bfaa57a6523e8fd3"},{"name":"static-generation","duration":1392465,"timestamp":677968098358,"id":78,"parentId":1,"tags":{},"startTime":1760569482351,"traceId":"bfaa57a6523e8fd3"},{"name":"write-routes-manifest","duration":96746,"timestamp":677969491052,"id":84,"parentId":1,"tags":{},"startTime":1760569483744,"traceId":"bfaa57a6523e8fd3"},{"name":"node-file-trace-build","duration":3883496,"timestamp":677968078777,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1760569482331,"traceId":"bfaa57a6523e8fd3"},{"name":"apply-include-excludes","duration":378,"timestamp":677971962323,"id":85,"parentId":1,"tags":{},"startTime":1760569486215,"traceId":"bfaa57a6523e8fd3"},{"name":"print-tree-view","duration":2550,"timestamp":677971963202,"id":86,"parentId":1,"tags":{},"startTime":1760569486216,"traceId":"bfaa57a6523e8fd3"},{"name":"telemetry-flush","duration":45,"timestamp":677971965763,"id":87,"parentId":1,"tags":{},"startTime":1760569486218,"traceId":"bfaa57a6523e8fd3"},{"name":"next-build","duration":18383072,"timestamp":677953582739,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1760569467835,"traceId":"bfaa57a6523e8fd3"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/functions/handleFunction/handleRequest.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EACL,cAAc,EACd,SAAS,EACT,MAAM,EAIN,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"handleRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/functions/handleFunction/handleRequest.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EACL,cAAc,EACd,SAAS,EACT,MAAM,EAIN,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AA4GvB,eAAO,MAAM,aAAa,GAAU,0DAMjC;IACD,cAAc,EAAE,cAAc,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAA;IACjE,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAA;CACrB;;;EAkKA,CAAA"}
|
|
@@ -8,15 +8,28 @@ const url = ({ requestHandler, args, thread, assistant, }) => {
|
|
|
8
8
|
thread,
|
|
9
9
|
assistant,
|
|
10
10
|
});
|
|
11
|
-
if (requestHandler.method
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
if (requestHandler.method !== 'GET') {
|
|
12
|
+
return { url: value, missing };
|
|
13
|
+
}
|
|
14
|
+
if (!args || !Object.keys(args).length) {
|
|
15
|
+
return { url: value, missing };
|
|
16
|
+
}
|
|
17
|
+
const [path, existingQuery = ''] = String(value).split('?');
|
|
18
|
+
const params = new URLSearchParams(existingQuery);
|
|
19
|
+
for (const [k, v] of Object.entries(args)) {
|
|
20
|
+
if (Array.isArray(v)) {
|
|
21
|
+
// Replace existing key with multiple values
|
|
22
|
+
params.delete(k);
|
|
23
|
+
for (const item of v) {
|
|
24
|
+
params.append(k, String(item));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
params.set(k, String(v));
|
|
29
|
+
}
|
|
18
30
|
}
|
|
19
|
-
|
|
31
|
+
const qs = params.toString();
|
|
32
|
+
return { url: qs ? `${path}?${qs}` : path, missing };
|
|
20
33
|
};
|
|
21
34
|
const body = ({ requestHandler, args, thread, assistant, }) => {
|
|
22
35
|
if (requestHandler.method === 'GET') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superinterface/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superinterface-server": "./bin/index.cjs"
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"prisma": "^6.16.3",
|
|
166
166
|
"prisma-json-types-generator": "^3.6.2",
|
|
167
167
|
"replicate": "^1.2.0",
|
|
168
|
-
"supercompat": "^3.9.
|
|
168
|
+
"supercompat": "^3.9.5",
|
|
169
169
|
"tsx": "^4.11.0",
|
|
170
170
|
"uuid": "^13.0.0",
|
|
171
171
|
"zod": "^3.23.8"
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import dayjs from 'dayjs'
|
|
2
2
|
import utc from 'dayjs/plugin/utc'
|
|
3
3
|
import { PrismaClient } from '@prisma/client'
|
|
4
|
-
import {
|
|
4
|
+
import { qstash } from '@/lib/upstash/qstash'
|
|
5
5
|
import { FIFTEEN_MINUTES_IN_MS } from '@/lib/tasks/getTaskScheduleConflict'
|
|
6
6
|
import { TaskScheduleConflictError } from '@/lib/errors'
|
|
7
|
+
import { loadPrismaClient } from './utils/loadPrisma'
|
|
7
8
|
|
|
8
9
|
dayjs.extend(utc)
|
|
9
10
|
|
|
@@ -37,8 +38,50 @@ const getLastTouchedAt = (task: TaskWithDates) => {
|
|
|
37
38
|
return updated.isAfter(created) ? updated : created
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
const cancelScheduledMessage = async ({
|
|
42
|
+
task,
|
|
43
|
+
dryRunLabel,
|
|
44
|
+
}: {
|
|
45
|
+
task: TaskWithDates
|
|
46
|
+
dryRunLabel: string
|
|
47
|
+
}) => {
|
|
48
|
+
const messageId = task.qstashMessageId
|
|
49
|
+
if (!messageId) {
|
|
50
|
+
console.log(
|
|
51
|
+
`${dryRunLabel} No scheduled message to cancel for task ${task.id}`,
|
|
52
|
+
)
|
|
53
|
+
return { status: 'none' as const }
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (process.env.NODE_ENV === 'test') {
|
|
57
|
+
return { status: 'skipped_in_test' as const }
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
try {
|
|
61
|
+
await qstash.messages.delete(messageId)
|
|
62
|
+
console.log(
|
|
63
|
+
`${dryRunLabel} Cancelled scheduled message ${messageId} for task ${task.id}`,
|
|
64
|
+
)
|
|
65
|
+
return { status: 'success' as const }
|
|
66
|
+
} catch (error) {
|
|
67
|
+
const status = (error as { status?: number }).status
|
|
68
|
+
const message = (error as { message?: string }).message ?? String(error)
|
|
69
|
+
if (status === 404 || message.includes('not found')) {
|
|
70
|
+
console.warn(
|
|
71
|
+
`${dryRunLabel} Scheduled message already absent (id=${messageId})`,
|
|
72
|
+
)
|
|
73
|
+
return { status: 'not_found' as const }
|
|
74
|
+
}
|
|
75
|
+
console.error(
|
|
76
|
+
`${dryRunLabel} Failed to cancel scheduled message ${messageId}:`,
|
|
77
|
+
message,
|
|
78
|
+
)
|
|
79
|
+
return { status: 'error' as const, error }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
40
83
|
const main = async () => {
|
|
41
|
-
const prisma =
|
|
84
|
+
const prisma = await loadPrismaClient()
|
|
42
85
|
const options = parseCliOptions()
|
|
43
86
|
const dryRunLabel = options.dryRun ? '[DRY RUN]' : '[APPLY]'
|
|
44
87
|
|
|
@@ -170,12 +213,14 @@ const main = async () => {
|
|
|
170
213
|
if (!options.dryRun) {
|
|
171
214
|
for (const candidate of toDelete) {
|
|
172
215
|
try {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
216
|
+
const cancelResult = await cancelScheduledMessage({
|
|
217
|
+
task: candidate.task,
|
|
218
|
+
dryRunLabel,
|
|
219
|
+
})
|
|
220
|
+
|
|
176
221
|
await prisma.task.delete({ where: { id: candidate.task.id } })
|
|
177
222
|
console.log(
|
|
178
|
-
` Deleted: ${candidate.task.id} (qstash: ${candidate.task.qstashMessageId ?? 'none'})`,
|
|
223
|
+
` Deleted: ${candidate.task.id} (qstash: ${candidate.task.qstashMessageId ?? 'none'} | cancel=${cancelResult.status})`,
|
|
179
224
|
)
|
|
180
225
|
} catch (error) {
|
|
181
226
|
console.error(
|
|
File without changes
|
/package/.next/static/{a3KG4O2A5sJO2AvvW4J1L → KSqaVkql-hTCPJn2akzn5}/_clientMiddlewareManifest.json
RENAMED
|
File without changes
|
|
File without changes
|