@superinterface/server 1.0.37 → 1.0.38
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]__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]__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/package.json +2 -2
- package/scripts/cleanupTaskConflicts.ts +51 -6
- /package/.next/static/{a3KG4O2A5sJO2AvvW4J1L → TU89T_3Duqf8mLJKcxOWt}/_buildManifest.js +0 -0
- /package/.next/static/{a3KG4O2A5sJO2AvvW4J1L → TU89T_3Duqf8mLJKcxOWt}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{a3KG4O2A5sJO2AvvW4J1L → TU89T_3Duqf8mLJKcxOWt}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--TU89T_3Duqf8mLJKcxOWt--><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\":\"TU89T_3Duqf8mLJKcxOWt\",\"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/TU89T_3Duqf8mLJKcxOWt/_ssgManifest.js" defer=""></script><script src="/_next/static/TU89T_3Duqf8mLJKcxOWt/_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":"TU89T_3Duqf8mLJKcxOWt","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":122,"timestamp":664515786581,"id":4,"parentId":1,"tags":{},"startTime":1760556030017,"traceId":"cbfdb4b0c9b33424"},{"name":"load-custom-routes","duration":163,"timestamp":664515786751,"id":5,"parentId":1,"tags":{},"startTime":1760556030017,"traceId":"cbfdb4b0c9b33424"},{"name":"create-dist-dir","duration":852,"timestamp":664515849357,"id":6,"parentId":1,"tags":{},"startTime":1760556030080,"traceId":"cbfdb4b0c9b33424"},{"name":"create-pages-mapping","duration":112,"timestamp":664515916624,"id":7,"parentId":1,"tags":{},"startTime":1760556030147,"traceId":"cbfdb4b0c9b33424"},{"name":"collect-app-files","duration":8461,"timestamp":664515916786,"id":8,"parentId":1,"tags":{},"startTime":1760556030147,"traceId":"cbfdb4b0c9b33424"},{"name":"create-app-mapping","duration":874,"timestamp":664515925273,"id":9,"parentId":1,"tags":{},"startTime":1760556030156,"traceId":"cbfdb4b0c9b33424"},{"name":"create-app-layouts","duration":186,"timestamp":664515926163,"id":10,"parentId":1,"tags":{},"startTime":1760556030156,"traceId":"cbfdb4b0c9b33424"},{"name":"collect-default-files","duration":3742,"timestamp":664515927655,"id":12,"parentId":1,"tags":{},"startTime":1760556030158,"traceId":"cbfdb4b0c9b33424"},{"name":"generate-route-types","duration":18099,"timestamp":664515926914,"id":11,"parentId":1,"tags":{},"startTime":1760556030157,"traceId":"cbfdb4b0c9b33424"},{"name":"public-dir-conflict-check","duration":684,"timestamp":664515945059,"id":13,"parentId":1,"tags":{},"startTime":1760556030175,"traceId":"cbfdb4b0c9b33424"},{"name":"generate-routes-manifest","duration":1273,"timestamp":664515945863,"id":14,"parentId":1,"tags":{},"startTime":1760556030176,"traceId":"cbfdb4b0c9b33424"},{"name":"run-turbopack-compiler","duration":6244777,"timestamp":664515949742,"id":16,"parentId":1,"tags":{},"startTime":1760556030180,"traceId":"cbfdb4b0c9b33424"},{"name":"verify-and-lint","duration":2031190,"timestamp":664522214383,"id":19,"parentId":1,"tags":{},"startTime":1760556036445,"traceId":"cbfdb4b0c9b33424"},{"name":"verify-typescript-setup","duration":7773133,"timestamp":664522211948,"id":18,"parentId":1,"tags":{},"startTime":1760556036442,"traceId":"cbfdb4b0c9b33424"},{"name":"check-static-error-page","duration":3296,"timestamp":664530010334,"id":22,"parentId":21,"tags":{},"startTime":1760556044241,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":2376,"timestamp":664530105830,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1760556044336,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":1366,"timestamp":664530106851,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":1456,"timestamp":664530106762,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":359893,"timestamp":664530126548,"id":54,"parentId":41,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":379365,"timestamp":664530107110,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":369440,"timestamp":664530117082,"id":51,"parentId":29,"tags":{},"startTime":1760556044348,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":379566,"timestamp":664530106964,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":362049,"timestamp":664530126455,"id":53,"parentId":34,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":381456,"timestamp":664530107074,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":360506,"timestamp":664530134245,"id":57,"parentId":28,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":388117,"timestamp":664530106956,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":369325,"timestamp":664530134598,"id":59,"parentId":33,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":396891,"timestamp":664530107066,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":377383,"timestamp":664530126606,"id":55,"parentId":43,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":396876,"timestamp":664530107120,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":370777,"timestamp":664530134514,"id":58,"parentId":30,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":398356,"timestamp":664530106972,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":386346,"timestamp":664530126095,"id":52,"parentId":32,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":407412,"timestamp":664530107054,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":385464,"timestamp":664530134612,"id":60,"parentId":42,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":412986,"timestamp":664530107115,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":408845,"timestamp":664530134618,"id":61,"parentId":45,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":436564,"timestamp":664530107130,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":410742,"timestamp":664530134802,"id":65,"parentId":35,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":438488,"timestamp":664530107080,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":413312,"timestamp":664530136243,"id":67,"parentId":47,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":442443,"timestamp":664530107139,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":432549,"timestamp":664530136282,"id":68,"parentId":46,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":461753,"timestamp":664530107134,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":437950,"timestamp":664530136333,"id":69,"parentId":48,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":467166,"timestamp":664530107144,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":457107,"timestamp":664530126968,"id":56,"parentId":31,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":477063,"timestamp":664530107041,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":476567,"timestamp":664530113996,"id":50,"parentId":27,"tags":{},"startTime":1760556044345,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":483649,"timestamp":664530106940,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":467656,"timestamp":664530136364,"id":70,"parentId":26,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":497206,"timestamp":664530106868,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":467777,"timestamp":664530157638,"id":73,"parentId":49,"tags":{},"startTime":1760556044388,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":518318,"timestamp":664530107149,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":605379,"timestamp":664530134696,"id":64,"parentId":39,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":635935,"timestamp":664530107100,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":629116,"timestamp":664530134691,"id":62,"parentId":36,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":656758,"timestamp":664530107085,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":659484,"timestamp":664530134694,"id":63,"parentId":40,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":687128,"timestamp":664530107105,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":672030,"timestamp":664530136151,"id":66,"parentId":44,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":701165,"timestamp":664530107125,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":687695,"timestamp":664530136410,"id":71,"parentId":37,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":717041,"timestamp":664530107090,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":722171,"timestamp":664530141271,"id":72,"parentId":38,"tags":{},"startTime":1760556044372,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":756398,"timestamp":664530107095,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"static-check","duration":853762,"timestamp":664530009779,"id":21,"parentId":1,"tags":{},"startTime":1760556044240,"traceId":"cbfdb4b0c9b33424"},{"name":"generate-required-server-files","duration":250,"timestamp":664530864199,"id":75,"parentId":1,"tags":{},"startTime":1760556045095,"traceId":"cbfdb4b0c9b33424"},{"name":"write-routes-manifest","duration":955,"timestamp":664530872191,"id":77,"parentId":1,"tags":{},"startTime":1760556045103,"traceId":"cbfdb4b0c9b33424"},{"name":"load-dotenv","duration":16,"timestamp":664530901424,"id":80,"parentId":79,"tags":{},"startTime":1760556045132,"traceId":"cbfdb4b0c9b33424"},{"name":"run-export-path-map","duration":287,"timestamp":664531046313,"id":81,"parentId":79,"tags":{},"startTime":1760556045277,"traceId":"cbfdb4b0c9b33424"},{"name":"next-export","duration":868338,"timestamp":664530900904,"id":79,"parentId":1,"tags":{},"startTime":1760556045131,"traceId":"cbfdb4b0c9b33424"},{"name":"move-exported-app-not-found-","duration":4835,"timestamp":664531770255,"id":82,"parentId":78,"tags":{},"startTime":1760556046001,"traceId":"cbfdb4b0c9b33424"},{"name":"move-exported-page","duration":14917,"timestamp":664531775198,"id":83,"parentId":78,"tags":{},"startTime":1760556046006,"traceId":"cbfdb4b0c9b33424"},{"name":"static-generation","duration":1153644,"timestamp":664530883583,"id":78,"parentId":1,"tags":{},"startTime":1760556045114,"traceId":"cbfdb4b0c9b33424"},{"name":"write-routes-manifest","duration":876457,"timestamp":664532037525,"id":84,"parentId":1,"tags":{},"startTime":1760556046268,"traceId":"cbfdb4b0c9b33424"},{"name":"node-file-trace-build","duration":4303032,"timestamp":664530868207,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1760556045099,"traceId":"cbfdb4b0c9b33424"},{"name":"apply-include-excludes","duration":314,"timestamp":664535171257,"id":85,"parentId":1,"tags":{},"startTime":1760556049402,"traceId":"cbfdb4b0c9b33424"},{"name":"print-tree-view","duration":1955,"timestamp":664535171929,"id":86,"parentId":1,"tags":{},"startTime":1760556049402,"traceId":"cbfdb4b0c9b33424"},{"name":"telemetry-flush","duration":29,"timestamp":664535173893,"id":87,"parentId":1,"tags":{},"startTime":1760556049404,"traceId":"cbfdb4b0c9b33424"},{"name":"next-build","duration":19726589,"timestamp":664515447336,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1760556029678,"traceId":"cbfdb4b0c9b33424"}]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superinterface/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
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 → TU89T_3Duqf8mLJKcxOWt}/_clientMiddlewareManifest.json
RENAMED
|
File without changes
|
|
File without changes
|