vibedoc 1.0.5 → 1.2.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.
Files changed (558) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +2 -0
  3. package/.next/build-manifest.json +6 -6
  4. package/.next/prerender-manifest.json +27 -3
  5. package/.next/routes-manifest.json +12 -0
  6. package/.next/server/app/(app)/activity/page/build-manifest.json +4 -4
  7. package/.next/server/app/(app)/activity/page.js +1 -1
  8. package/.next/server/app/(app)/activity/page.js.nft.json +1 -1
  9. package/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/(app)/board/page/build-manifest.json +4 -4
  11. package/.next/server/app/(app)/board/page.js +1 -1
  12. package/.next/server/app/(app)/board/page.js.nft.json +1 -1
  13. package/.next/server/app/(app)/board/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/(app)/docs/page/build-manifest.json +4 -4
  15. package/.next/server/app/(app)/docs/page.js +1 -1
  16. package/.next/server/app/(app)/docs/page.js.nft.json +1 -1
  17. package/.next/server/app/(app)/docs/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/(app)/explorer/page/app-paths-manifest.json +3 -0
  19. package/.next/server/app/(app)/explorer/page/build-manifest.json +17 -0
  20. package/.next/server/app/(app)/explorer/page/next-font-manifest.json +6 -0
  21. package/.next/server/app/(app)/explorer/page/react-loadable-manifest.json +9 -0
  22. package/.next/server/app/(app)/explorer/page/server-reference-manifest.json +4 -0
  23. package/.next/server/app/(app)/explorer/page.js +16 -0
  24. package/.next/server/app/(app)/explorer/page.js.map +5 -0
  25. package/.next/server/app/(app)/explorer/page.js.nft.json +1 -0
  26. package/.next/server/app/(app)/explorer/page_client-reference-manifest.js +2 -0
  27. package/.next/server/app/(app)/memory/page/build-manifest.json +4 -4
  28. package/.next/server/app/(app)/memory/page.js +1 -1
  29. package/.next/server/app/(app)/memory/page.js.nft.json +1 -1
  30. package/.next/server/app/(app)/memory/page_client-reference-manifest.js +1 -1
  31. package/.next/server/app/(app)/settings/page/build-manifest.json +4 -4
  32. package/.next/server/app/(app)/settings/page.js +1 -1
  33. package/.next/server/app/(app)/settings/page.js.nft.json +1 -1
  34. package/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -1
  35. package/.next/server/app/(app)/setup/page/build-manifest.json +4 -4
  36. package/.next/server/app/(app)/setup/page.js +1 -1
  37. package/.next/server/app/(app)/setup/page.js.nft.json +1 -1
  38. package/.next/server/app/(app)/setup/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app/_global-error/page/build-manifest.json +4 -4
  40. package/.next/server/app/_global-error/page.js +1 -1
  41. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  42. package/.next/server/app/_global-error.html +2 -2
  43. package/.next/server/app/_global-error.rsc +1 -1
  44. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  45. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  46. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  47. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  48. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  49. package/.next/server/app/_not-found/page/build-manifest.json +4 -4
  50. package/.next/server/app/_not-found/page.js +1 -1
  51. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  52. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  53. package/.next/server/app/_not-found.html +1 -1
  54. package/.next/server/app/_not-found.rsc +2 -2
  55. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  56. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  57. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  58. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  59. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  60. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  61. package/.next/server/app/activity.html +1 -1
  62. package/.next/server/app/activity.rsc +4 -4
  63. package/.next/server/app/activity.segments/!KGFwcCk/activity/__PAGE__.segment.rsc +2 -2
  64. package/.next/server/app/activity.segments/!KGFwcCk/activity.segment.rsc +1 -1
  65. package/.next/server/app/activity.segments/!KGFwcCk.segment.rsc +2 -2
  66. package/.next/server/app/activity.segments/_full.segment.rsc +4 -4
  67. package/.next/server/app/activity.segments/_head.segment.rsc +1 -1
  68. package/.next/server/app/activity.segments/_index.segment.rsc +2 -2
  69. package/.next/server/app/activity.segments/_tree.segment.rsc +2 -2
  70. package/.next/server/app/api/activity/route.js +1 -1
  71. package/.next/server/app/api/activity/route.js.nft.json +1 -1
  72. package/.next/server/app/api/backlinks/route.js +1 -1
  73. package/.next/server/app/api/backlinks/route.js.nft.json +1 -1
  74. package/.next/server/app/api/context/route.js +1 -1
  75. package/.next/server/app/api/context/route.js.nft.json +1 -1
  76. package/.next/server/app/api/decisions/route.js +1 -1
  77. package/.next/server/app/api/decisions/route.js.nft.json +1 -1
  78. package/.next/server/app/api/docs/route.js +1 -1
  79. package/.next/server/app/api/docs/route.js.nft.json +1 -1
  80. package/.next/server/app/api/explorer/route/app-paths-manifest.json +3 -0
  81. package/.next/server/app/api/explorer/route/build-manifest.json +11 -0
  82. package/.next/server/app/api/explorer/route/server-reference-manifest.json +4 -0
  83. package/.next/server/app/api/explorer/route.js +7 -0
  84. package/.next/server/app/api/explorer/route.js.map +5 -0
  85. package/.next/server/app/api/explorer/route.js.nft.json +1 -0
  86. package/.next/server/app/api/explorer/route_client-reference-manifest.js +2 -0
  87. package/.next/server/app/api/mcp/route.js +1 -1
  88. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  89. package/.next/server/app/api/memory/route.js +1 -1
  90. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  91. package/.next/server/app/api/projects/route.js +1 -1
  92. package/.next/server/app/api/projects/route.js.nft.json +1 -1
  93. package/.next/server/app/api/settings/route.js +1 -1
  94. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  95. package/.next/server/app/api/setup/generate/route.js +1 -1
  96. package/.next/server/app/api/setup/generate/route.js.nft.json +1 -1
  97. package/.next/server/app/api/setup/write/route.js +1 -1
  98. package/.next/server/app/api/setup/write/route.js.nft.json +1 -1
  99. package/.next/server/app/api/summary/route.js +1 -1
  100. package/.next/server/app/api/summary/route.js.nft.json +1 -1
  101. package/.next/server/app/api/tasks/route.js +1 -1
  102. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  103. package/.next/server/app/board.html +1 -1
  104. package/.next/server/app/board.rsc +4 -4
  105. package/.next/server/app/board.segments/!KGFwcCk/board/__PAGE__.segment.rsc +2 -2
  106. package/.next/server/app/board.segments/!KGFwcCk/board.segment.rsc +1 -1
  107. package/.next/server/app/board.segments/!KGFwcCk.segment.rsc +2 -2
  108. package/.next/server/app/board.segments/_full.segment.rsc +4 -4
  109. package/.next/server/app/board.segments/_head.segment.rsc +1 -1
  110. package/.next/server/app/board.segments/_index.segment.rsc +2 -2
  111. package/.next/server/app/board.segments/_tree.segment.rsc +2 -2
  112. package/.next/server/app/docs.html +1 -1
  113. package/.next/server/app/docs.rsc +4 -4
  114. package/.next/server/app/docs.segments/!KGFwcCk/docs/__PAGE__.segment.rsc +2 -2
  115. package/.next/server/app/docs.segments/!KGFwcCk/docs.segment.rsc +1 -1
  116. package/.next/server/app/docs.segments/!KGFwcCk.segment.rsc +2 -2
  117. package/.next/server/app/docs.segments/_full.segment.rsc +4 -4
  118. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  119. package/.next/server/app/docs.segments/_index.segment.rsc +2 -2
  120. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  121. package/.next/server/app/explorer.html +1 -0
  122. package/.next/server/app/explorer.meta +16 -0
  123. package/.next/server/app/explorer.rsc +20 -0
  124. package/.next/server/app/explorer.segments/!KGFwcCk/explorer/__PAGE__.segment.rsc +9 -0
  125. package/.next/server/app/explorer.segments/!KGFwcCk/explorer.segment.rsc +4 -0
  126. package/.next/server/app/explorer.segments/!KGFwcCk.segment.rsc +7 -0
  127. package/.next/server/app/explorer.segments/_full.segment.rsc +20 -0
  128. package/.next/server/app/explorer.segments/_head.segment.rsc +5 -0
  129. package/.next/server/app/explorer.segments/_index.segment.rsc +5 -0
  130. package/.next/server/app/explorer.segments/_tree.segment.rsc +2 -0
  131. package/.next/server/app/index.html +1 -1
  132. package/.next/server/app/index.rsc +2 -2
  133. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  134. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  135. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  136. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  137. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  138. package/.next/server/app/memory.html +1 -1
  139. package/.next/server/app/memory.rsc +4 -4
  140. package/.next/server/app/memory.segments/!KGFwcCk/memory/__PAGE__.segment.rsc +2 -2
  141. package/.next/server/app/memory.segments/!KGFwcCk/memory.segment.rsc +1 -1
  142. package/.next/server/app/memory.segments/!KGFwcCk.segment.rsc +2 -2
  143. package/.next/server/app/memory.segments/_full.segment.rsc +4 -4
  144. package/.next/server/app/memory.segments/_head.segment.rsc +1 -1
  145. package/.next/server/app/memory.segments/_index.segment.rsc +2 -2
  146. package/.next/server/app/memory.segments/_tree.segment.rsc +2 -2
  147. package/.next/server/app/page/build-manifest.json +4 -4
  148. package/.next/server/app/page.js +1 -1
  149. package/.next/server/app/page.js.nft.json +1 -1
  150. package/.next/server/app/page_client-reference-manifest.js +1 -1
  151. package/.next/server/app/settings.html +1 -1
  152. package/.next/server/app/settings.rsc +4 -4
  153. package/.next/server/app/settings.segments/!KGFwcCk/settings/__PAGE__.segment.rsc +2 -2
  154. package/.next/server/app/settings.segments/!KGFwcCk/settings.segment.rsc +1 -1
  155. package/.next/server/app/settings.segments/!KGFwcCk.segment.rsc +2 -2
  156. package/.next/server/app/settings.segments/_full.segment.rsc +4 -4
  157. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  158. package/.next/server/app/settings.segments/_index.segment.rsc +2 -2
  159. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  160. package/.next/server/app/setup.html +1 -1
  161. package/.next/server/app/setup.rsc +4 -4
  162. package/.next/server/app/setup.segments/!KGFwcCk/setup/__PAGE__.segment.rsc +2 -2
  163. package/.next/server/app/setup.segments/!KGFwcCk/setup.segment.rsc +1 -1
  164. package/.next/server/app/setup.segments/!KGFwcCk.segment.rsc +2 -2
  165. package/.next/server/app/setup.segments/_full.segment.rsc +4 -4
  166. package/.next/server/app/setup.segments/_head.segment.rsc +1 -1
  167. package/.next/server/app/setup.segments/_index.segment.rsc +2 -2
  168. package/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
  169. package/.next/server/app-paths-manifest.json +2 -0
  170. package/.next/server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js +30 -0
  171. package/.next/server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js.map +1 -0
  172. package/.next/server/chunks/[root-of-the-server]__0e51ee32._.js +2 -2
  173. package/.next/server/chunks/{[root-of-the-server]__4c3dfb3f._.js → [root-of-the-server]__1453b4c1._.js} +2 -2
  174. package/.next/server/chunks/{[root-of-the-server]__4c3dfb3f._.js.map → [root-of-the-server]__1453b4c1._.js.map} +1 -1
  175. package/.next/server/chunks/[root-of-the-server]__2bbe3bdc._.js +1 -1
  176. package/.next/server/chunks/[root-of-the-server]__2d66d57b._.js +3 -0
  177. package/.next/server/chunks/[root-of-the-server]__2d66d57b._.js.map +1 -0
  178. package/.next/server/chunks/{[root-of-the-server]__6e3e5106._.js → [root-of-the-server]__54666fd5._.js} +2 -2
  179. package/.next/server/chunks/{[root-of-the-server]__6e3e5106._.js.map → [root-of-the-server]__54666fd5._.js.map} +1 -1
  180. package/.next/server/chunks/[root-of-the-server]__73d016a0._.js +10 -8
  181. package/.next/server/chunks/[root-of-the-server]__73d016a0._.js.map +1 -1
  182. package/.next/server/chunks/{[root-of-the-server]__e613d0e1._.js → [root-of-the-server]__7a7e1eb1._.js} +2 -2
  183. package/.next/server/chunks/{[root-of-the-server]__e613d0e1._.js.map → [root-of-the-server]__7a7e1eb1._.js.map} +1 -1
  184. package/.next/server/chunks/{[root-of-the-server]__8bc3c77f._.js → [root-of-the-server]__8e790c7b._.js} +2 -2
  185. package/.next/server/chunks/{[root-of-the-server]__8bc3c77f._.js.map → [root-of-the-server]__8e790c7b._.js.map} +1 -1
  186. package/.next/server/chunks/{[root-of-the-server]__87ac3243._.js → [root-of-the-server]__9d1f6722._.js} +2 -2
  187. package/.next/server/chunks/{[root-of-the-server]__87ac3243._.js.map → [root-of-the-server]__9d1f6722._.js.map} +1 -1
  188. package/.next/server/chunks/{[root-of-the-server]__4a7ee700._.js → [root-of-the-server]__a0a8fb65._.js} +2 -2
  189. package/.next/server/chunks/{[root-of-the-server]__4a7ee700._.js.map → [root-of-the-server]__a0a8fb65._.js.map} +1 -1
  190. package/.next/server/chunks/{[root-of-the-server]__296062eb._.js → [root-of-the-server]__a7d932af._.js} +2 -2
  191. package/.next/server/chunks/{[root-of-the-server]__296062eb._.js.map → [root-of-the-server]__a7d932af._.js.map} +1 -1
  192. package/.next/server/chunks/{[root-of-the-server]__0e70f066._.js → [root-of-the-server]__a9dbcc03._.js} +2 -2
  193. package/.next/server/chunks/{[root-of-the-server]__0e70f066._.js.map → [root-of-the-server]__a9dbcc03._.js.map} +1 -1
  194. package/.next/server/chunks/[root-of-the-server]__aa7a40ec._.js +3 -0
  195. package/.next/server/chunks/[root-of-the-server]__aa7a40ec._.js.map +1 -0
  196. package/.next/server/chunks/{[root-of-the-server]__50ed178b._.js → [root-of-the-server]__bacbf09e._.js} +2 -2
  197. package/.next/server/chunks/{[root-of-the-server]__50ed178b._.js.map → [root-of-the-server]__bacbf09e._.js.map} +1 -1
  198. package/.next/server/chunks/{[root-of-the-server]__1bb30fa4._.js → [root-of-the-server]__bd44b8e4._.js} +2 -2
  199. package/.next/server/chunks/{[root-of-the-server]__1bb30fa4._.js.map → [root-of-the-server]__bd44b8e4._.js.map} +1 -1
  200. package/.next/server/chunks/{[root-of-the-server]__2127a831._.js → [root-of-the-server]__dfd36dc0._.js} +2 -2
  201. package/.next/server/chunks/{[root-of-the-server]__d35c92a2._.js → [root-of-the-server]__e27393ea._.js} +2 -2
  202. package/.next/server/chunks/{[root-of-the-server]__d35c92a2._.js.map → [root-of-the-server]__e27393ea._.js.map} +1 -1
  203. package/.next/server/chunks/_75927d0c._.js +2 -2
  204. package/.next/server/chunks/_75927d0c._.js.map +1 -1
  205. package/.next/server/chunks/_next-internal_server_app_api_explorer_route_actions_bca0ca55.js +3 -0
  206. package/.next/server/chunks/ssr/1ce3b_dagre-d3-es_src_dagre_index_f9cad90b.js +1 -1
  207. package/.next/server/chunks/ssr/4bd2e_mermaid_dist_chunks_mermaid_core_chunk-S3R3BYOJ_mjs_dfc77fcf._.js +1 -1
  208. package/.next/server/chunks/ssr/78921_y-codemirror_next_src_index_7664c743.js +1 -1
  209. package/.next/server/chunks/ssr/{[root-of-the-server]__eccfba1b._.js → [root-of-the-server]__0310d64d._.js} +2 -2
  210. package/.next/server/chunks/ssr/{[root-of-the-server]__992608ee._.js → [root-of-the-server]__599128b8._.js} +2 -2
  211. package/.next/server/chunks/ssr/[root-of-the-server]__7ccd69b2._.js +3 -0
  212. package/.next/server/chunks/ssr/[root-of-the-server]__7ccd69b2._.js.map +1 -0
  213. package/.next/server/chunks/ssr/[root-of-the-server]__7de63c62._.js +3 -0
  214. package/.next/server/chunks/ssr/{[root-of-the-server]__68227521._.js → [root-of-the-server]__85b679c6._.js} +2 -2
  215. package/.next/server/chunks/ssr/{[root-of-the-server]__76f6d4b1._.js → [root-of-the-server]__8bc686d2._.js} +2 -2
  216. package/.next/server/chunks/ssr/[root-of-the-server]__93c50d95._.js +3 -0
  217. package/.next/server/chunks/ssr/[root-of-the-server]__93c50d95._.js.map +1 -0
  218. package/.next/server/chunks/ssr/[root-of-the-server]__93f88b5d._.js +1 -1
  219. package/.next/server/chunks/ssr/[root-of-the-server]__c441b191._.js +1 -1
  220. package/.next/server/chunks/ssr/[root-of-the-server]__cb200ebe._.js +1 -1
  221. package/.next/server/chunks/ssr/{[root-of-the-server]__95e9adf4._.js → [root-of-the-server]__e44bed76._.js} +2 -2
  222. package/.next/server/chunks/ssr/_0324be5b._.js +1 -1
  223. package/.next/server/chunks/ssr/_04bd0614._.js +1 -1
  224. package/.next/server/chunks/ssr/_07ff42fd._.js +1 -1
  225. package/.next/server/chunks/ssr/_0ee1f47f._.js +3 -0
  226. package/.next/server/chunks/ssr/_0ee1f47f._.js.map +1 -0
  227. package/.next/server/chunks/ssr/{_bd5a319c._.js → _102fd465._.js} +2 -2
  228. package/.next/server/chunks/ssr/_189227ea._.js +3 -0
  229. package/.next/server/chunks/ssr/_189227ea._.js.map +1 -0
  230. package/.next/server/chunks/ssr/_39d9968d._.js +1 -1
  231. package/.next/server/chunks/ssr/{_ae7d00da._.js → _42809286._.js} +2 -2
  232. package/.next/server/chunks/ssr/_42809286._.js.map +1 -0
  233. package/.next/server/chunks/ssr/_692c5bbf._.js +3 -0
  234. package/.next/server/chunks/ssr/_692c5bbf._.js.map +1 -0
  235. package/.next/server/chunks/ssr/_7b129868._.js +4 -0
  236. package/.next/server/chunks/ssr/_7b129868._.js.map +1 -0
  237. package/.next/server/chunks/ssr/_83c6a2ff._.js +1 -1
  238. package/.next/server/chunks/ssr/_85e5ab03._.js +1 -1
  239. package/.next/server/chunks/ssr/{_76a7817e._.js → _9f1b4c51._.js} +2 -2
  240. package/.next/server/chunks/ssr/_b4c946f7._.js +7 -0
  241. package/.next/server/chunks/ssr/_b4c946f7._.js.map +1 -0
  242. package/.next/server/chunks/ssr/_c4b742c5._.js +1 -1
  243. package/.next/server/chunks/ssr/_d411515a._.js +1 -1
  244. package/.next/server/chunks/ssr/_d411515a._.js.map +1 -1
  245. package/.next/server/chunks/ssr/_next-internal_server_app_(app)_explorer_page_actions_ab677b48.js +3 -0
  246. package/.next/server/chunks/ssr/a41dc_lucide-react_dist_esm_icons_folder_de463b3c.js +3 -0
  247. package/.next/server/chunks/ssr/a41dc_lucide-react_dist_esm_icons_folder_de463b3c.js.map +1 -0
  248. package/.next/server/chunks/ssr/a5dda_next_dist_bc8c0e5f._.js +1 -1
  249. package/.next/server/chunks/ssr/a5dda_next_dist_c6de1535._.js +1 -1
  250. package/.next/server/chunks/ssr/a5dda_next_dist_esm_build_templates_app-page_d9140d2d.js +1 -1
  251. package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_3288b441._.js → ec1cc_katex_dist_katex_mjs_9f7bcf4a._.js} +1 -1
  252. package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_425a6061._.js → ec1cc_katex_dist_katex_mjs_a9aca746._.js} +1 -1
  253. package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_4ad1d407._.js → ec1cc_katex_dist_katex_mjs_e7b66387._.js} +1 -1
  254. package/.next/server/chunks/ssr/ec1cc_katex_dist_katex_mjs_e7b66387._.js.map +1 -0
  255. package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_a5decdbd._.js → ec1cc_katex_dist_katex_mjs_e93914b8._.js} +1 -1
  256. package/.next/server/chunks/ssr/ec1cc_katex_dist_katex_mjs_e93914b8._.js.map +1 -0
  257. package/.next/server/chunks/ssr/fe4dd_lodash-es_092245b0._.js +1 -1
  258. package/.next/server/chunks/ssr/fe4dd_lodash-es_1a0ea541._.js +1 -1
  259. package/.next/server/chunks/ssr/fe4dd_lodash-es_2f02253e._.js +1 -1
  260. package/.next/server/chunks/ssr/fe4dd_lodash-es_59ba66ec._.js +1 -1
  261. package/.next/server/chunks/ssr/fe4dd_lodash-es_6dfac36d._.js +1 -1
  262. package/.next/server/chunks/ssr/fe4dd_lodash-es_dba464ad._.js +1 -1
  263. package/.next/server/chunks/ssr/fe4dd_lodash-es_fe91028b._.js +1 -1
  264. package/.next/server/chunks/ssr/{node_modules__pnpm_36589973._.js → node_modules__pnpm_00962046._.js} +2 -2
  265. package/.next/server/chunks/ssr/{node_modules__pnpm_18a6956f._.js → node_modules__pnpm_016e62a5._.js} +2 -2
  266. package/.next/server/chunks/ssr/{node_modules__pnpm_1f5ea152._.js → node_modules__pnpm_0322e068._.js} +1 -1
  267. package/.next/server/chunks/ssr/{node_modules__pnpm_64d93795._.js → node_modules__pnpm_05da39c7._.js} +2 -2
  268. package/.next/server/chunks/ssr/{node_modules__pnpm_0824d495._.js → node_modules__pnpm_0631ec86._.js} +2 -2
  269. package/.next/server/chunks/ssr/{node_modules__pnpm_53deb29a._.js → node_modules__pnpm_06db4ba2._.js} +1 -1
  270. package/.next/server/chunks/ssr/{node_modules__pnpm_ed02d5fd._.js → node_modules__pnpm_076b3258._.js} +2 -2
  271. package/.next/server/chunks/ssr/{node_modules__pnpm_26ef6e45._.js → node_modules__pnpm_07f377f7._.js} +2 -2
  272. package/.next/server/chunks/ssr/{node_modules__pnpm_35bad3db._.js → node_modules__pnpm_08922392._.js} +2 -2
  273. package/.next/server/chunks/ssr/{node_modules__pnpm_92e09662._.js → node_modules__pnpm_08cf1858._.js} +1 -1
  274. package/.next/server/chunks/ssr/{node_modules__pnpm_91229d13._.js → node_modules__pnpm_0c377643._.js} +1 -1
  275. package/.next/server/chunks/ssr/{node_modules__pnpm_7236b70e._.js → node_modules__pnpm_0d80282c._.js} +2 -2
  276. package/.next/server/chunks/ssr/{node_modules__pnpm_8f54a47b._.js → node_modules__pnpm_135db8bc._.js} +2 -2
  277. package/.next/server/chunks/ssr/{node_modules__pnpm_6401925d._.js → node_modules__pnpm_140ed2b5._.js} +1 -1
  278. package/.next/server/chunks/ssr/{node_modules__pnpm_654e9f55._.js → node_modules__pnpm_1790069e._.js} +1 -1
  279. package/.next/server/chunks/ssr/{node_modules__pnpm_7776e75c._.js → node_modules__pnpm_19e8c8a7._.js} +1 -1
  280. package/.next/server/chunks/ssr/{node_modules__pnpm_00d5d273._.js → node_modules__pnpm_1c623592._.js} +1 -1
  281. package/.next/server/chunks/ssr/{node_modules__pnpm_65f639a6._.js → node_modules__pnpm_1dce0d3b._.js} +1 -1
  282. package/.next/server/chunks/ssr/{node_modules__pnpm_9fc73610._.js → node_modules__pnpm_227802dc._.js} +1 -1
  283. package/.next/server/chunks/ssr/{node_modules__pnpm_69ce79eb._.js → node_modules__pnpm_240c58bb._.js} +2 -2
  284. package/.next/server/chunks/ssr/{node_modules__pnpm_56f72f59._.js → node_modules__pnpm_2871fff4._.js} +1 -1
  285. package/.next/server/chunks/ssr/{node_modules__pnpm_49266b7a._.js → node_modules__pnpm_2b6ac74b._.js} +1 -1
  286. package/.next/server/chunks/ssr/{node_modules__pnpm_b3313177._.js → node_modules__pnpm_2e011da0._.js} +1 -1
  287. package/.next/server/chunks/ssr/{node_modules__pnpm_f51396ca._.js → node_modules__pnpm_33344533._.js} +2 -2
  288. package/.next/server/chunks/ssr/{node_modules__pnpm_2cb73c16._.js → node_modules__pnpm_337eaf96._.js} +2 -2
  289. package/.next/server/chunks/ssr/{node_modules__pnpm_ce246e92._.js → node_modules__pnpm_3394b2c5._.js} +1 -1
  290. package/.next/server/chunks/ssr/{node_modules__pnpm_5d0fe991._.js → node_modules__pnpm_3601c997._.js} +2 -2
  291. package/.next/server/chunks/ssr/{node_modules__pnpm_2843ef27._.js → node_modules__pnpm_36b5c2af._.js} +1 -1
  292. package/.next/server/chunks/ssr/{node_modules__pnpm_74b18e05._.js → node_modules__pnpm_39f460e8._.js} +1 -1
  293. package/.next/server/chunks/ssr/{node_modules__pnpm_e3ff2006._.js → node_modules__pnpm_3d378674._.js} +2 -2
  294. package/.next/server/chunks/ssr/{node_modules__pnpm_ddf26095._.js → node_modules__pnpm_3dd8e608._.js} +1 -1
  295. package/.next/server/chunks/ssr/{node_modules__pnpm_9a0807cb._.js → node_modules__pnpm_3f2cce74._.js} +1 -1
  296. package/.next/server/chunks/ssr/node_modules__pnpm_3f505455._.js +1 -1
  297. package/.next/server/chunks/ssr/{node_modules__pnpm_f07d4655._.js → node_modules__pnpm_423baddc._.js} +1 -1
  298. package/.next/server/chunks/ssr/{node_modules__pnpm_783da796._.js → node_modules__pnpm_42d2c2d2._.js} +2 -2
  299. package/.next/server/chunks/ssr/node_modules__pnpm_44b70609._.js +3 -0
  300. package/.next/server/chunks/ssr/node_modules__pnpm_44b70609._.js.map +1 -0
  301. package/.next/server/chunks/ssr/{node_modules__pnpm_a1c07e23._.js → node_modules__pnpm_45bf67c8._.js} +2 -2
  302. package/.next/server/chunks/ssr/{node_modules__pnpm_9475a5cd._.js → node_modules__pnpm_474a3a70._.js} +2 -2
  303. package/.next/server/chunks/ssr/{node_modules__pnpm_fe5653a5._.js → node_modules__pnpm_4cc41a2c._.js} +1 -1
  304. package/.next/server/chunks/ssr/{node_modules__pnpm_46929561._.js → node_modules__pnpm_4d03e476._.js} +2 -2
  305. package/.next/server/chunks/ssr/{node_modules__pnpm_8a892ffe._.js → node_modules__pnpm_4edcc2cf._.js} +1 -1
  306. package/.next/server/chunks/ssr/{node_modules__pnpm_1ee22148._.js → node_modules__pnpm_55b7a1cf._.js} +2 -2
  307. package/.next/server/chunks/ssr/{node_modules__pnpm_80943308._.js → node_modules__pnpm_5768848c._.js} +2 -2
  308. package/.next/server/chunks/ssr/{node_modules__pnpm_e935c4b3._.js → node_modules__pnpm_5c59b1ad._.js} +1 -1
  309. package/.next/server/chunks/ssr/{node_modules__pnpm_9809673a._.js → node_modules__pnpm_60fef38e._.js} +2 -2
  310. package/.next/server/chunks/ssr/{node_modules__pnpm_63673d29._.js → node_modules__pnpm_63a4a328._.js} +1 -1
  311. package/.next/server/chunks/ssr/{node_modules__pnpm_73162680._.js → node_modules__pnpm_67f40799._.js} +1 -1
  312. package/.next/server/chunks/ssr/{node_modules__pnpm_04663715._.js → node_modules__pnpm_688ab9b4._.js} +1 -1
  313. package/.next/server/chunks/ssr/{node_modules__pnpm_f3ce4f57._.js → node_modules__pnpm_6947736b._.js} +1 -1
  314. package/.next/server/chunks/ssr/{node_modules__pnpm_ba4c8074._.js → node_modules__pnpm_6a7ed592._.js} +1 -1
  315. package/.next/server/chunks/ssr/{node_modules__pnpm_fc5a6422._.js → node_modules__pnpm_6c9a5a96._.js} +2 -2
  316. package/.next/server/chunks/ssr/{node_modules__pnpm_fb007933._.js → node_modules__pnpm_70a08cdf._.js} +1 -1
  317. package/.next/server/chunks/ssr/{node_modules__pnpm_f443637f._.js → node_modules__pnpm_72235a6a._.js} +1 -1
  318. package/.next/server/chunks/ssr/{node_modules__pnpm_3bca6321._.js → node_modules__pnpm_754137d0._.js} +1 -1
  319. package/.next/server/chunks/ssr/{node_modules__pnpm_590ecf69._.js → node_modules__pnpm_75690281._.js} +2 -2
  320. package/.next/server/chunks/ssr/{node_modules__pnpm_b91727a9._.js → node_modules__pnpm_75846ac9._.js} +1 -1
  321. package/.next/server/chunks/ssr/{node_modules__pnpm_178f3e64._.js → node_modules__pnpm_76204895._.js} +1 -1
  322. package/.next/server/chunks/ssr/{node_modules__pnpm_36cec4c0._.js → node_modules__pnpm_790c3b2e._.js} +1 -1
  323. package/.next/server/chunks/ssr/{node_modules__pnpm_c7820c3e._.js → node_modules__pnpm_7a101d07._.js} +1 -1
  324. package/.next/server/chunks/ssr/{node_modules__pnpm_e7e5a8a1._.js → node_modules__pnpm_7ca85e0d._.js} +1 -1
  325. package/.next/server/chunks/ssr/{node_modules__pnpm_80210e53._.js → node_modules__pnpm_7de47ba7._.js} +2 -2
  326. package/.next/server/chunks/ssr/{node_modules__pnpm_1d5914b6._.js → node_modules__pnpm_7e98d14b._.js} +1 -1
  327. package/.next/server/chunks/ssr/{node_modules__pnpm_e174e2e8._.js → node_modules__pnpm_8036c25f._.js} +1 -1
  328. package/.next/server/chunks/ssr/{node_modules__pnpm_4ca42aad._.js → node_modules__pnpm_85de6da6._.js} +1 -1
  329. package/.next/server/chunks/ssr/{node_modules__pnpm_91da4efe._.js → node_modules__pnpm_87d282d9._.js} +2 -2
  330. package/.next/server/chunks/ssr/{node_modules__pnpm_f36ad4ee._.js → node_modules__pnpm_8a0f76d5._.js} +1 -1
  331. package/.next/server/chunks/ssr/{node_modules__pnpm_acf470f2._.js → node_modules__pnpm_8b3ed63a._.js} +2 -2
  332. package/.next/server/chunks/ssr/{node_modules__pnpm_1ee08ad7._.js → node_modules__pnpm_8ba721df._.js} +2 -2
  333. package/.next/server/chunks/ssr/{node_modules__pnpm_2997113c._.js → node_modules__pnpm_8c13bdb7._.js} +1 -1
  334. package/.next/server/chunks/ssr/{node_modules__pnpm_f9f710c6._.js → node_modules__pnpm_8f8943af._.js} +2 -2
  335. package/.next/server/chunks/ssr/{node_modules__pnpm_293bea2a._.js → node_modules__pnpm_91a9fe44._.js} +2 -2
  336. package/.next/server/chunks/ssr/{node_modules__pnpm_6f25e5fd._.js → node_modules__pnpm_928932b1._.js} +2 -2
  337. package/.next/server/chunks/ssr/{node_modules__pnpm_12d18ed0._.js → node_modules__pnpm_93144bce._.js} +1 -1
  338. package/.next/server/chunks/ssr/{node_modules__pnpm_c6c36138._.js → node_modules__pnpm_96c7344a._.js} +2 -2
  339. package/.next/server/chunks/ssr/{node_modules__pnpm_aeaaa130._.js → node_modules__pnpm_9927b752._.js} +1 -1
  340. package/.next/server/chunks/ssr/{node_modules__pnpm_2003b884._.js → node_modules__pnpm_9cdea683._.js} +1 -1
  341. package/.next/server/chunks/ssr/{node_modules__pnpm_d0000990._.js → node_modules__pnpm_9ce450a4._.js} +1 -1
  342. package/.next/server/chunks/ssr/{node_modules__pnpm_83e28ce4._.js → node_modules__pnpm_9e807a6c._.js} +2 -2
  343. package/.next/server/chunks/ssr/{node_modules__pnpm_8ab73142._.js → node_modules__pnpm_a23a1417._.js} +1 -1
  344. package/.next/server/chunks/ssr/{node_modules__pnpm_ab058528._.js → node_modules__pnpm_a4a74805._.js} +2 -2
  345. package/.next/server/chunks/ssr/{node_modules__pnpm_9a0d7b74._.js → node_modules__pnpm_a714825b._.js} +1 -1
  346. package/.next/server/chunks/ssr/{node_modules__pnpm_845c2200._.js → node_modules__pnpm_aec9b3d2._.js} +2 -2
  347. package/.next/server/chunks/ssr/{node_modules__pnpm_060aaf47._.js → node_modules__pnpm_b18e7d84._.js} +1 -1
  348. package/.next/server/chunks/ssr/{node_modules__pnpm_3e3b1d5c._.js → node_modules__pnpm_b2c6ca72._.js} +1 -1
  349. package/.next/server/chunks/ssr/{node_modules__pnpm_e1568f72._.js → node_modules__pnpm_b50ae8f6._.js} +1 -1
  350. package/.next/server/chunks/ssr/{node_modules__pnpm_daf0ef2f._.js → node_modules__pnpm_b6b9de46._.js} +1 -1
  351. package/.next/server/chunks/ssr/{node_modules__pnpm_f67832c7._.js → node_modules__pnpm_ba838a36._.js} +1 -1
  352. package/.next/server/chunks/ssr/{node_modules__pnpm_6ee95c66._.js → node_modules__pnpm_c278eaac._.js} +2 -2
  353. package/.next/server/chunks/ssr/{node_modules__pnpm_c82324ae._.js → node_modules__pnpm_c39c9496._.js} +1 -1
  354. package/.next/server/chunks/ssr/{node_modules__pnpm_cce8cd76._.js → node_modules__pnpm_c402a901._.js} +1 -1
  355. package/.next/server/chunks/ssr/{node_modules__pnpm_37e82b68._.js → node_modules__pnpm_c7ca55c9._.js} +1 -1
  356. package/.next/server/chunks/ssr/{node_modules__pnpm_e8b810b3._.js → node_modules__pnpm_cd59b8c6._.js} +2 -2
  357. package/.next/server/chunks/ssr/{node_modules__pnpm_37c400e7._.js → node_modules__pnpm_d1c050d4._.js} +1 -1
  358. package/.next/server/chunks/ssr/{node_modules__pnpm_390f259c._.js → node_modules__pnpm_d6cd0cb1._.js} +2 -2
  359. package/.next/server/chunks/ssr/{node_modules__pnpm_3c2d8fca._.js → node_modules__pnpm_d75e5d41._.js} +2 -2
  360. package/.next/server/chunks/ssr/{node_modules__pnpm_3f847f2e._.js → node_modules__pnpm_db2dceff._.js} +1 -1
  361. package/.next/server/chunks/ssr/{node_modules__pnpm_546559ff._.js → node_modules__pnpm_df7dcb26._.js} +2 -2
  362. package/.next/server/chunks/ssr/{node_modules__pnpm_f3196af3._.js → node_modules__pnpm_e70a06f1._.js} +2 -2
  363. package/.next/server/chunks/ssr/{node_modules__pnpm_dc31ca88._.js → node_modules__pnpm_ebfee6f4._.js} +1 -1
  364. package/.next/server/chunks/ssr/{node_modules__pnpm_1cc7c453._.js → node_modules__pnpm_f505d304._.js} +1 -1
  365. package/.next/server/chunks/ssr/{node_modules__pnpm_589ffaf2._.js → node_modules__pnpm_f6f51e7a._.js} +1 -1
  366. package/.next/server/chunks/ssr/{node_modules__pnpm_7774ae26._.js → node_modules__pnpm_f77bb209._.js} +1 -1
  367. package/.next/server/chunks/ssr/{node_modules__pnpm_2a8998cb._.js → node_modules__pnpm_fa1f464c._.js} +2 -2
  368. package/.next/server/middleware-build-manifest.js +4 -4
  369. package/.next/server/pages/404.html +1 -1
  370. package/.next/server/pages/500.html +2 -2
  371. package/.next/server/server-reference-manifest.js +1 -1
  372. package/.next/server/server-reference-manifest.json +1 -1
  373. package/.next/static/chunks/0b640fa39aac2219.js +1 -0
  374. package/.next/static/chunks/0ef3e14dc942367c.js +1 -0
  375. package/.next/static/chunks/13bdd4e22dd90816.js +1 -0
  376. package/.next/static/chunks/{1ed5d145167d8eb4.js → 1ef8bf79adc2568f.js} +5 -5
  377. package/.next/static/chunks/{12a5f59c97d227db.js → 25d2e746e06b38ba.js} +1 -1
  378. package/.next/static/chunks/{811bb9b4cd1b0f6c.js → 316cd4755f253783.js} +1 -1
  379. package/.next/static/chunks/31fae4c58073753b.js +1 -0
  380. package/.next/static/chunks/351fac2d373f6f38.js +1 -0
  381. package/.next/static/chunks/429961c8e82cfbcb.css +1 -0
  382. package/.next/static/chunks/{f4c865657080088e.js → 452e1bb12e7f0b85.js} +3 -3
  383. package/.next/static/chunks/4a40b1a0e0d1d36e.js +29 -0
  384. package/.next/static/chunks/{b0aaf0c52bbe6d4b.js → 5066c1dec89e3cb6.js} +1 -1
  385. package/.next/static/chunks/{70d2c49686d63e40.js → 519aa8080f20453e.js} +1 -1
  386. package/.next/static/chunks/{02e429858f990849.js → 55ab99ffa8724197.js} +1 -1
  387. package/.next/static/chunks/55fe2639abb9cd1a.js +2 -0
  388. package/.next/static/chunks/63e6313e09a72507.js +43 -0
  389. package/.next/static/chunks/6f01f5fee0eb2f66.js +1 -0
  390. package/.next/static/chunks/6fc607e12ff4f9cc.js +215 -0
  391. package/.next/static/chunks/752c6435ac86719d.js +2 -0
  392. package/.next/static/chunks/8034834601bf13d7.js +1 -0
  393. package/.next/static/chunks/825ae09010d35407.js +5 -0
  394. package/.next/static/chunks/8b98ae3ee4dbcfd1.js +2 -0
  395. package/.next/static/chunks/a8d5f5dc2688fe30.js +1 -0
  396. package/.next/static/chunks/aad224af68aad5fb.js +4 -0
  397. package/.next/static/chunks/b32c8cafb0f99121.js +24 -0
  398. package/.next/static/chunks/c224fce458bb43f9.js +1 -0
  399. package/.next/static/chunks/c6c6b3aa4797a144.js +1 -0
  400. package/.next/static/chunks/c7596c95b8f7f059.js +1 -0
  401. package/.next/static/chunks/cf9345359d04d2e9.js +63 -0
  402. package/.next/static/chunks/{ceda9387e8da4ba3.js → db20ec18c9fde107.js} +4 -4
  403. package/.next/static/chunks/e6164bb2a2fa9b00.js +1 -0
  404. package/.next/static/chunks/e7aa622fd3384345.js +2 -0
  405. package/.next/static/chunks/ed565e62e468fa30.js +24 -0
  406. package/.next/static/chunks/{0bbe3dc32a2a7822.js → fcc2b1530d73e61e.js} +1 -1
  407. package/.next/static/chunks/{turbopack-525ea573490deca2.js → turbopack-2835ad6e71df73d8.js} +1 -1
  408. package/package.json +4 -1
  409. package/.next/server/chunks/[root-of-the-server]__bab47fec._.js +0 -3
  410. package/.next/server/chunks/[root-of-the-server]__bab47fec._.js.map +0 -1
  411. package/.next/server/chunks/ssr/[root-of-the-server]__868f1e91._.js +0 -3
  412. package/.next/server/chunks/ssr/[root-of-the-server]__868f1e91._.js.map +0 -1
  413. package/.next/server/chunks/ssr/[root-of-the-server]__ac9646b5._.js +0 -3
  414. package/.next/server/chunks/ssr/_ae7d00da._.js.map +0 -1
  415. package/.next/server/chunks/ssr/_c022dd84._.js +0 -7
  416. package/.next/server/chunks/ssr/_c022dd84._.js.map +0 -1
  417. package/.next/server/chunks/ssr/_e18b7893._.js +0 -3
  418. package/.next/server/chunks/ssr/_e18b7893._.js.map +0 -1
  419. package/.next/server/chunks/ssr/node_modules__pnpm_b1ee847f._.js +0 -3
  420. package/.next/server/chunks/ssr/node_modules__pnpm_b1ee847f._.js.map +0 -1
  421. package/.next/static/chunks/06f9a2970e917f08.css +0 -1
  422. package/.next/static/chunks/0bf088d94c6c3d7f.js +0 -1
  423. package/.next/static/chunks/12cf98019a766d56.js +0 -2
  424. package/.next/static/chunks/37bedd3bd7f576a5.js +0 -1
  425. package/.next/static/chunks/5051111686a30794.js +0 -24
  426. package/.next/static/chunks/575ff595808bef08.js +0 -29
  427. package/.next/static/chunks/57eb6d643a88d201.js +0 -1
  428. package/.next/static/chunks/70a4b574c7f36373.js +0 -1
  429. package/.next/static/chunks/733b3612e3f34157.js +0 -5
  430. package/.next/static/chunks/73ecac2771f5a28f.js +0 -2
  431. package/.next/static/chunks/7cdf6785100b30b4.js +0 -1
  432. package/.next/static/chunks/962586ff4bc6af4f.js +0 -1
  433. package/.next/static/chunks/aaa492e282370bc6.js +0 -43
  434. package/.next/static/chunks/b07c7aa5dcbca335.js +0 -2
  435. package/.next/static/chunks/b43b33637f3f9958.js +0 -215
  436. package/.next/static/chunks/c1ea939eac9e0ef7.js +0 -2
  437. package/.next/static/chunks/c855ae74bfce8619.js +0 -63
  438. package/.next/static/chunks/d449b90c60422759.js +0 -1
  439. package/.next/static/chunks/d4eb6ab4605bef88.js +0 -4
  440. package/.next/static/chunks/d6bceca87929c840.js +0 -24
  441. package/.next/static/chunks/eeb1ca1094488ae7.js +0 -1
  442. /package/.next/server/chunks/{[root-of-the-server]__2127a831._.js.map → [root-of-the-server]__dfd36dc0._.js.map} +0 -0
  443. /package/.next/server/chunks/{ssr/ec1cc_katex_dist_katex_mjs_3288b441._.js.map → _next-internal_server_app_api_explorer_route_actions_bca0ca55.js.map} +0 -0
  444. /package/.next/server/chunks/ssr/{[root-of-the-server]__68227521._.js.map → [root-of-the-server]__0310d64d._.js.map} +0 -0
  445. /package/.next/server/chunks/ssr/{[root-of-the-server]__992608ee._.js.map → [root-of-the-server]__599128b8._.js.map} +0 -0
  446. /package/.next/server/chunks/ssr/{[root-of-the-server]__ac9646b5._.js.map → [root-of-the-server]__7de63c62._.js.map} +0 -0
  447. /package/.next/server/chunks/ssr/{[root-of-the-server]__76f6d4b1._.js.map → [root-of-the-server]__85b679c6._.js.map} +0 -0
  448. /package/.next/server/chunks/ssr/{[root-of-the-server]__95e9adf4._.js.map → [root-of-the-server]__8bc686d2._.js.map} +0 -0
  449. /package/.next/server/chunks/ssr/{[root-of-the-server]__eccfba1b._.js.map → [root-of-the-server]__e44bed76._.js.map} +0 -0
  450. /package/.next/server/chunks/ssr/{_bd5a319c._.js.map → _102fd465._.js.map} +0 -0
  451. /package/.next/server/chunks/ssr/{_76a7817e._.js.map → _9f1b4c51._.js.map} +0 -0
  452. /package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_425a6061._.js.map → _next-internal_server_app_(app)_explorer_page_actions_ab677b48.js.map} +0 -0
  453. /package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_4ad1d407._.js.map → ec1cc_katex_dist_katex_mjs_9f7bcf4a._.js.map} +0 -0
  454. /package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_a5decdbd._.js.map → ec1cc_katex_dist_katex_mjs_a9aca746._.js.map} +0 -0
  455. /package/.next/server/chunks/ssr/{node_modules__pnpm_2a8998cb._.js.map → node_modules__pnpm_00962046._.js.map} +0 -0
  456. /package/.next/server/chunks/ssr/{node_modules__pnpm_18a6956f._.js.map → node_modules__pnpm_016e62a5._.js.map} +0 -0
  457. /package/.next/server/chunks/ssr/{node_modules__pnpm_1f5ea152._.js.map → node_modules__pnpm_0322e068._.js.map} +0 -0
  458. /package/.next/server/chunks/ssr/{node_modules__pnpm_3c2d8fca._.js.map → node_modules__pnpm_05da39c7._.js.map} +0 -0
  459. /package/.next/server/chunks/ssr/{node_modules__pnpm_0824d495._.js.map → node_modules__pnpm_0631ec86._.js.map} +0 -0
  460. /package/.next/server/chunks/ssr/{node_modules__pnpm_53deb29a._.js.map → node_modules__pnpm_06db4ba2._.js.map} +0 -0
  461. /package/.next/server/chunks/ssr/{node_modules__pnpm_46929561._.js.map → node_modules__pnpm_076b3258._.js.map} +0 -0
  462. /package/.next/server/chunks/ssr/{node_modules__pnpm_26ef6e45._.js.map → node_modules__pnpm_07f377f7._.js.map} +0 -0
  463. /package/.next/server/chunks/ssr/{node_modules__pnpm_35bad3db._.js.map → node_modules__pnpm_08922392._.js.map} +0 -0
  464. /package/.next/server/chunks/ssr/{node_modules__pnpm_1d5914b6._.js.map → node_modules__pnpm_08cf1858._.js.map} +0 -0
  465. /package/.next/server/chunks/ssr/{node_modules__pnpm_060aaf47._.js.map → node_modules__pnpm_0c377643._.js.map} +0 -0
  466. /package/.next/server/chunks/ssr/{node_modules__pnpm_590ecf69._.js.map → node_modules__pnpm_0d80282c._.js.map} +0 -0
  467. /package/.next/server/chunks/ssr/{node_modules__pnpm_8f54a47b._.js.map → node_modules__pnpm_135db8bc._.js.map} +0 -0
  468. /package/.next/server/chunks/ssr/{node_modules__pnpm_3f847f2e._.js.map → node_modules__pnpm_140ed2b5._.js.map} +0 -0
  469. /package/.next/server/chunks/ssr/{node_modules__pnpm_12d18ed0._.js.map → node_modules__pnpm_1790069e._.js.map} +0 -0
  470. /package/.next/server/chunks/ssr/{node_modules__pnpm_7776e75c._.js.map → node_modules__pnpm_19e8c8a7._.js.map} +0 -0
  471. /package/.next/server/chunks/ssr/{node_modules__pnpm_00d5d273._.js.map → node_modules__pnpm_1c623592._.js.map} +0 -0
  472. /package/.next/server/chunks/ssr/{node_modules__pnpm_1cc7c453._.js.map → node_modules__pnpm_1dce0d3b._.js.map} +0 -0
  473. /package/.next/server/chunks/ssr/{node_modules__pnpm_589ffaf2._.js.map → node_modules__pnpm_227802dc._.js.map} +0 -0
  474. /package/.next/server/chunks/ssr/{node_modules__pnpm_64d93795._.js.map → node_modules__pnpm_240c58bb._.js.map} +0 -0
  475. /package/.next/server/chunks/ssr/{node_modules__pnpm_56f72f59._.js.map → node_modules__pnpm_2871fff4._.js.map} +0 -0
  476. /package/.next/server/chunks/ssr/{node_modules__pnpm_2997113c._.js.map → node_modules__pnpm_2b6ac74b._.js.map} +0 -0
  477. /package/.next/server/chunks/ssr/{node_modules__pnpm_b3313177._.js.map → node_modules__pnpm_2e011da0._.js.map} +0 -0
  478. /package/.next/server/chunks/ssr/{node_modules__pnpm_69ce79eb._.js.map → node_modules__pnpm_33344533._.js.map} +0 -0
  479. /package/.next/server/chunks/ssr/{node_modules__pnpm_2cb73c16._.js.map → node_modules__pnpm_337eaf96._.js.map} +0 -0
  480. /package/.next/server/chunks/ssr/{node_modules__pnpm_ce246e92._.js.map → node_modules__pnpm_3394b2c5._.js.map} +0 -0
  481. /package/.next/server/chunks/ssr/{node_modules__pnpm_546559ff._.js.map → node_modules__pnpm_3601c997._.js.map} +0 -0
  482. /package/.next/server/chunks/ssr/{node_modules__pnpm_04663715._.js.map → node_modules__pnpm_36b5c2af._.js.map} +0 -0
  483. /package/.next/server/chunks/ssr/{node_modules__pnpm_2003b884._.js.map → node_modules__pnpm_39f460e8._.js.map} +0 -0
  484. /package/.next/server/chunks/ssr/{node_modules__pnpm_e3ff2006._.js.map → node_modules__pnpm_3d378674._.js.map} +0 -0
  485. /package/.next/server/chunks/ssr/{node_modules__pnpm_74b18e05._.js.map → node_modules__pnpm_3dd8e608._.js.map} +0 -0
  486. /package/.next/server/chunks/ssr/{node_modules__pnpm_65f639a6._.js.map → node_modules__pnpm_3f2cce74._.js.map} +0 -0
  487. /package/.next/server/chunks/ssr/{node_modules__pnpm_3bca6321._.js.map → node_modules__pnpm_423baddc._.js.map} +0 -0
  488. /package/.next/server/chunks/ssr/{node_modules__pnpm_1ee08ad7._.js.map → node_modules__pnpm_42d2c2d2._.js.map} +0 -0
  489. /package/.next/server/chunks/ssr/{node_modules__pnpm_783da796._.js.map → node_modules__pnpm_45bf67c8._.js.map} +0 -0
  490. /package/.next/server/chunks/ssr/{node_modules__pnpm_390f259c._.js.map → node_modules__pnpm_474a3a70._.js.map} +0 -0
  491. /package/.next/server/chunks/ssr/{node_modules__pnpm_fe5653a5._.js.map → node_modules__pnpm_4cc41a2c._.js.map} +0 -0
  492. /package/.next/server/chunks/ssr/{node_modules__pnpm_7236b70e._.js.map → node_modules__pnpm_4d03e476._.js.map} +0 -0
  493. /package/.next/server/chunks/ssr/{node_modules__pnpm_178f3e64._.js.map → node_modules__pnpm_4edcc2cf._.js.map} +0 -0
  494. /package/.next/server/chunks/ssr/{node_modules__pnpm_1ee22148._.js.map → node_modules__pnpm_55b7a1cf._.js.map} +0 -0
  495. /package/.next/server/chunks/ssr/{node_modules__pnpm_293bea2a._.js.map → node_modules__pnpm_5768848c._.js.map} +0 -0
  496. /package/.next/server/chunks/ssr/{node_modules__pnpm_3e3b1d5c._.js.map → node_modules__pnpm_5c59b1ad._.js.map} +0 -0
  497. /package/.next/server/chunks/ssr/{node_modules__pnpm_9809673a._.js.map → node_modules__pnpm_60fef38e._.js.map} +0 -0
  498. /package/.next/server/chunks/ssr/{node_modules__pnpm_37e82b68._.js.map → node_modules__pnpm_63a4a328._.js.map} +0 -0
  499. /package/.next/server/chunks/ssr/{node_modules__pnpm_2843ef27._.js.map → node_modules__pnpm_67f40799._.js.map} +0 -0
  500. /package/.next/server/chunks/ssr/{node_modules__pnpm_73162680._.js.map → node_modules__pnpm_688ab9b4._.js.map} +0 -0
  501. /package/.next/server/chunks/ssr/{node_modules__pnpm_f3ce4f57._.js.map → node_modules__pnpm_6947736b._.js.map} +0 -0
  502. /package/.next/server/chunks/ssr/{node_modules__pnpm_63673d29._.js.map → node_modules__pnpm_6a7ed592._.js.map} +0 -0
  503. /package/.next/server/chunks/ssr/{node_modules__pnpm_fc5a6422._.js.map → node_modules__pnpm_6c9a5a96._.js.map} +0 -0
  504. /package/.next/server/chunks/ssr/{node_modules__pnpm_ba4c8074._.js.map → node_modules__pnpm_70a08cdf._.js.map} +0 -0
  505. /package/.next/server/chunks/ssr/{node_modules__pnpm_e935c4b3._.js.map → node_modules__pnpm_72235a6a._.js.map} +0 -0
  506. /package/.next/server/chunks/ssr/{node_modules__pnpm_aeaaa130._.js.map → node_modules__pnpm_754137d0._.js.map} +0 -0
  507. /package/.next/server/chunks/ssr/{node_modules__pnpm_ed02d5fd._.js.map → node_modules__pnpm_75690281._.js.map} +0 -0
  508. /package/.next/server/chunks/ssr/{node_modules__pnpm_654e9f55._.js.map → node_modules__pnpm_75846ac9._.js.map} +0 -0
  509. /package/.next/server/chunks/ssr/{node_modules__pnpm_4ca42aad._.js.map → node_modules__pnpm_76204895._.js.map} +0 -0
  510. /package/.next/server/chunks/ssr/{node_modules__pnpm_36cec4c0._.js.map → node_modules__pnpm_790c3b2e._.js.map} +0 -0
  511. /package/.next/server/chunks/ssr/{node_modules__pnpm_7774ae26._.js.map → node_modules__pnpm_7a101d07._.js.map} +0 -0
  512. /package/.next/server/chunks/ssr/{node_modules__pnpm_e7e5a8a1._.js.map → node_modules__pnpm_7ca85e0d._.js.map} +0 -0
  513. /package/.next/server/chunks/ssr/{node_modules__pnpm_5d0fe991._.js.map → node_modules__pnpm_7de47ba7._.js.map} +0 -0
  514. /package/.next/server/chunks/ssr/{node_modules__pnpm_92e09662._.js.map → node_modules__pnpm_7e98d14b._.js.map} +0 -0
  515. /package/.next/server/chunks/ssr/{node_modules__pnpm_8ab73142._.js.map → node_modules__pnpm_8036c25f._.js.map} +0 -0
  516. /package/.next/server/chunks/ssr/{node_modules__pnpm_8a892ffe._.js.map → node_modules__pnpm_85de6da6._.js.map} +0 -0
  517. /package/.next/server/chunks/ssr/{node_modules__pnpm_91da4efe._.js.map → node_modules__pnpm_87d282d9._.js.map} +0 -0
  518. /package/.next/server/chunks/ssr/{node_modules__pnpm_b91727a9._.js.map → node_modules__pnpm_8a0f76d5._.js.map} +0 -0
  519. /package/.next/server/chunks/ssr/{node_modules__pnpm_acf470f2._.js.map → node_modules__pnpm_8b3ed63a._.js.map} +0 -0
  520. /package/.next/server/chunks/ssr/{node_modules__pnpm_a1c07e23._.js.map → node_modules__pnpm_8ba721df._.js.map} +0 -0
  521. /package/.next/server/chunks/ssr/{node_modules__pnpm_37c400e7._.js.map → node_modules__pnpm_8c13bdb7._.js.map} +0 -0
  522. /package/.next/server/chunks/ssr/{node_modules__pnpm_f9f710c6._.js.map → node_modules__pnpm_8f8943af._.js.map} +0 -0
  523. /package/.next/server/chunks/ssr/{node_modules__pnpm_80943308._.js.map → node_modules__pnpm_91a9fe44._.js.map} +0 -0
  524. /package/.next/server/chunks/ssr/{node_modules__pnpm_36589973._.js.map → node_modules__pnpm_928932b1._.js.map} +0 -0
  525. /package/.next/server/chunks/ssr/{node_modules__pnpm_f36ad4ee._.js.map → node_modules__pnpm_93144bce._.js.map} +0 -0
  526. /package/.next/server/chunks/ssr/{node_modules__pnpm_c6c36138._.js.map → node_modules__pnpm_96c7344a._.js.map} +0 -0
  527. /package/.next/server/chunks/ssr/{node_modules__pnpm_f07d4655._.js.map → node_modules__pnpm_9927b752._.js.map} +0 -0
  528. /package/.next/server/chunks/ssr/{node_modules__pnpm_ddf26095._.js.map → node_modules__pnpm_9cdea683._.js.map} +0 -0
  529. /package/.next/server/chunks/ssr/{node_modules__pnpm_91229d13._.js.map → node_modules__pnpm_9ce450a4._.js.map} +0 -0
  530. /package/.next/server/chunks/ssr/{node_modules__pnpm_83e28ce4._.js.map → node_modules__pnpm_9e807a6c._.js.map} +0 -0
  531. /package/.next/server/chunks/ssr/{node_modules__pnpm_e174e2e8._.js.map → node_modules__pnpm_a23a1417._.js.map} +0 -0
  532. /package/.next/server/chunks/ssr/{node_modules__pnpm_ab058528._.js.map → node_modules__pnpm_a4a74805._.js.map} +0 -0
  533. /package/.next/server/chunks/ssr/{node_modules__pnpm_9a0d7b74._.js.map → node_modules__pnpm_a714825b._.js.map} +0 -0
  534. /package/.next/server/chunks/ssr/{node_modules__pnpm_845c2200._.js.map → node_modules__pnpm_aec9b3d2._.js.map} +0 -0
  535. /package/.next/server/chunks/ssr/{node_modules__pnpm_d0000990._.js.map → node_modules__pnpm_b18e7d84._.js.map} +0 -0
  536. /package/.next/server/chunks/ssr/{node_modules__pnpm_f443637f._.js.map → node_modules__pnpm_b2c6ca72._.js.map} +0 -0
  537. /package/.next/server/chunks/ssr/{node_modules__pnpm_c7820c3e._.js.map → node_modules__pnpm_b50ae8f6._.js.map} +0 -0
  538. /package/.next/server/chunks/ssr/{node_modules__pnpm_49266b7a._.js.map → node_modules__pnpm_b6b9de46._.js.map} +0 -0
  539. /package/.next/server/chunks/ssr/{node_modules__pnpm_f67832c7._.js.map → node_modules__pnpm_ba838a36._.js.map} +0 -0
  540. /package/.next/server/chunks/ssr/{node_modules__pnpm_6ee95c66._.js.map → node_modules__pnpm_c278eaac._.js.map} +0 -0
  541. /package/.next/server/chunks/ssr/{node_modules__pnpm_6401925d._.js.map → node_modules__pnpm_c39c9496._.js.map} +0 -0
  542. /package/.next/server/chunks/ssr/{node_modules__pnpm_9a0807cb._.js.map → node_modules__pnpm_c402a901._.js.map} +0 -0
  543. /package/.next/server/chunks/ssr/{node_modules__pnpm_fb007933._.js.map → node_modules__pnpm_c7ca55c9._.js.map} +0 -0
  544. /package/.next/server/chunks/ssr/{node_modules__pnpm_e8b810b3._.js.map → node_modules__pnpm_cd59b8c6._.js.map} +0 -0
  545. /package/.next/server/chunks/ssr/{node_modules__pnpm_daf0ef2f._.js.map → node_modules__pnpm_d1c050d4._.js.map} +0 -0
  546. /package/.next/server/chunks/ssr/{node_modules__pnpm_9475a5cd._.js.map → node_modules__pnpm_d6cd0cb1._.js.map} +0 -0
  547. /package/.next/server/chunks/ssr/{node_modules__pnpm_f51396ca._.js.map → node_modules__pnpm_d75e5d41._.js.map} +0 -0
  548. /package/.next/server/chunks/ssr/{node_modules__pnpm_c82324ae._.js.map → node_modules__pnpm_db2dceff._.js.map} +0 -0
  549. /package/.next/server/chunks/ssr/{node_modules__pnpm_80210e53._.js.map → node_modules__pnpm_df7dcb26._.js.map} +0 -0
  550. /package/.next/server/chunks/ssr/{node_modules__pnpm_f3196af3._.js.map → node_modules__pnpm_e70a06f1._.js.map} +0 -0
  551. /package/.next/server/chunks/ssr/{node_modules__pnpm_dc31ca88._.js.map → node_modules__pnpm_ebfee6f4._.js.map} +0 -0
  552. /package/.next/server/chunks/ssr/{node_modules__pnpm_cce8cd76._.js.map → node_modules__pnpm_f505d304._.js.map} +0 -0
  553. /package/.next/server/chunks/ssr/{node_modules__pnpm_9fc73610._.js.map → node_modules__pnpm_f6f51e7a._.js.map} +0 -0
  554. /package/.next/server/chunks/ssr/{node_modules__pnpm_e1568f72._.js.map → node_modules__pnpm_f77bb209._.js.map} +0 -0
  555. /package/.next/server/chunks/ssr/{node_modules__pnpm_6f25e5fd._.js.map → node_modules__pnpm_fa1f464c._.js.map} +0 -0
  556. /package/.next/static/{byIy1XPPF_OGj4sBayLnJ → T1s0QXbWFmXxNEuUL4myK}/_buildManifest.js +0 -0
  557. /package/.next/static/{byIy1XPPF_OGj4sBayLnJ → T1s0QXbWFmXxNEuUL4myK}/_clientMiddlewareManifest.json +0 -0
  558. /package/.next/static/{byIy1XPPF_OGj4sBayLnJ → T1s0QXbWFmXxNEuUL4myK}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},82104,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function o(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{paths:r}=await e.json();if(!Array.isArray(r))return a.NextResponse.json({error:"paths must be an array"},{status:400});let s=await (0,n.getContext)(r,t);return a.NextResponse.json({context:s})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}[n]=s.then?(await s)():s,e.s(["POST",()=>o]),r()}catch(e){r(e)}},!1),76027,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),o=e.i(58e3),i=e.i(43835),l=e.i(22218),d=e.i(70540),u=e.i(9350),p=e.i(69462),c=e.i(13673),x=e.i(59429),h=e.i(41690),R=e.i(55318),v=e.i(99382),g=e.i(20606),f=e.i(93695);e.i(75436);var m=e.i(39468),w=e.i(82104),y=t([w]);[w]=y.then?(await y)():y;let A=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/context/route",pathname:"/api/context",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/context/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:b,workUnitAsyncStorage:N,serverHooks:P}=A;function E(){return(0,s.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:N})}async function C(e,t,r){A.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/context/route";a=a.replace(/\/index$/,"")||"/";let s=await A.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:y,nextConfig:E,parsedUrl:C,isDraftMode:b,prerenderManifest:N,routerServerContext:P,isOnDemandRevalidate:T,revalidateOnlyGenerated:O,resolvedPathname:j,clientReferenceManifest:k,serverActionsManifest:q}=s,S=(0,d.normalizeAppPath)(a),_=!!(N.dynamicRoutes[S]||N.routes[j]),H=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,C,!1):t.end("This page could not be found"),null);if(_&&!b){let e=!!N.routes[j],t=N.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await H();throw new f.NoFallbackError}}let U=null;!_||A.isDev||b||(U=j,U="/index"===U?"/":U);let I=!0===A.isDev||!_,D=_&&!I;q&&k&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:k,serverActionsManifest:q});let M=e.method||"GET",$=(0,i.getTracer)(),F=$.getActiveScopeSpan(),K={params:y,prerenderManifest:N,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,o.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>A.onRequestError(e,t,a,n,P)},sharedContext:{buildId:w}},B=new u.NodeNextRequest(e),L=new u.NodeNextResponse(t),G=p.NextRequestAdapter.fromNodeNextRequest(B,(0,p.signalFromNodeResponse)(t));try{let s=async e=>A.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,o.getRequestMeta)(e,"minimalMode"),d=async o=>{var i,d;let u=async({previousCacheEntry:n})=>{try{if(!l&&T&&O&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(o);e.fetchMetrics=K.renderOpts.fetchMetrics;let i=K.renderOpts.pendingWaitUntil;i&&r.waitUntil&&(r.waitUntil(i),i=void 0);let d=K.renderOpts.collectedTags;if(!_)return await (0,h.sendResponse)(B,L,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,R.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[g.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,x.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,P),t}},p=await A.handleResponse({req:e,nextConfig:E,cacheKey:U,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:O,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!_)return null;if((null==p||null==(i=p.value)?void 0:i.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",T?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,R.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&_||c.delete(g.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,v.getCacheControlHeader)(p.cacheControl)),await (0,h.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:i.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof f.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,x.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,P),_)throw t;return await (0,h.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>E,"routeModule",()=>A,"serverHooks",()=>P,"workAsyncStorage",()=>b,"workUnitAsyncStorage",()=>N]),r()}catch(e){r(e)}},!1)];
1
+ module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},82104,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function o(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{paths:r}=await e.json();if(!Array.isArray(r))return a.NextResponse.json({error:"paths must be an array"},{status:400});let s=await (0,n.getContext)(r,t);return a.NextResponse.json({context:s})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}[n]=s.then?(await s)():s,e.s(["POST",()=>o]),r()}catch(e){r(e)}},!1),76027,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),o=e.i(58e3),i=e.i(89292),l=e.i(22218),d=e.i(70540),u=e.i(9350),p=e.i(69462),c=e.i(13673),h=e.i(59429),x=e.i(41690),R=e.i(55318),v=e.i(99382),g=e.i(20606),f=e.i(93695);e.i(75436);var m=e.i(39468),w=e.i(82104),y=t([w]);[w]=y.then?(await y)():y;let A=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/context/route",pathname:"/api/context",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/context/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:b,workUnitAsyncStorage:N,serverHooks:P}=A;function E(){return(0,s.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:N})}async function C(e,t,r){A.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/context/route";a=a.replace(/\/index$/,"")||"/";let s=await A.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:y,nextConfig:E,parsedUrl:C,isDraftMode:b,prerenderManifest:N,routerServerContext:P,isOnDemandRevalidate:_,revalidateOnlyGenerated:T,resolvedPathname:j,clientReferenceManifest:k,serverActionsManifest:O}=s,q=(0,d.normalizeAppPath)(a),S=!!(N.dynamicRoutes[q]||N.routes[j]),H=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!b){let e=!!N.routes[j],t=N.dynamicRoutes[q];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await H();throw new f.NoFallbackError}}let U=null;!S||A.isDev||b||(U=j,U="/index"===U?"/":U);let I=!0===A.isDev||!S,D=S&&!I;O&&k&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:k,serverActionsManifest:O});let M=e.method||"GET",$=(0,i.getTracer)(),F=$.getActiveScopeSpan(),K={params:y,prerenderManifest:N,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,o.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>A.onRequestError(e,t,a,n,P)},sharedContext:{buildId:w}},B=new u.NodeNextRequest(e),L=new u.NodeNextResponse(t),G=p.NextRequestAdapter.fromNodeNextRequest(B,(0,p.signalFromNodeResponse)(t));try{let s=async e=>A.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,o.getRequestMeta)(e,"minimalMode"),d=async o=>{var i,d;let u=async({previousCacheEntry:n})=>{try{if(!l&&_&&T&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(o);e.fetchMetrics=K.renderOpts.fetchMetrics;let i=K.renderOpts.pendingWaitUntil;i&&r.waitUntil&&(r.waitUntil(i),i=void 0);let d=K.renderOpts.collectedTags;if(!S)return await (0,x.sendResponse)(B,L,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,R.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[g.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,P),t}},p=await A.handleResponse({req:e,nextConfig:E,cacheKey:U,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:T,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!S)return null;if((null==p||null==(i=p.value)?void 0:i.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",_?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,R.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&S||c.delete(g.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,v.getCacheControlHeader)(p.cacheControl)),await (0,x.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:i.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof f.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:q,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,P),S)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>E,"routeModule",()=>A,"serverHooks",()=>P,"workAsyncStorage",()=>b,"workUnitAsyncStorage",()=>N]),r()}catch(e){r(e)}},!1),60830,e=>{e.v(t=>Promise.all(["server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js"].map(t=>e.l(t))).then(()=>t(48394)))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0e70f066._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__a9dbcc03._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/app/api/context/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["import { NextRequest, NextResponse } from 'next/server'\r\nimport { getContext, getConfiguredRoot } from '@/lib/core'\r\n\r\nexport async function POST(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { paths } = await req.json()\r\n if (!Array.isArray(paths)) return NextResponse.json({ error: 'paths must be an array' }, { status: 400 })\r\n const context = await getContext(paths as string[], root)\r\n return NextResponse.json({ context })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"qjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,gBAEO,eAAe,EAAK,CAAgB,EACzC,GAAI,CACF,IAAM,EAAO,EAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,IAChE,OAAE,CAAK,CAAE,CAAG,MAAM,EAAI,IAAI,GAChC,GAAI,CAAC,MAAM,OAAO,CAAC,GAAQ,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,wBAAyB,EAAG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AAAA,CAAe8G,aAAa,CAC5B,CACEkD,SAAU,CAAA,EAAGrF,EAAO,CAAC,EAAEtC,EAAAA,CAAS,CAChCxB,KAAMpB,EAAAA,QAAAA,CAASwK,MAAM,CACrBC,WAAY,CACV,cAAevF,EACf,cAAe5C,EAAIoI,GAAG,AACxB,CACF,EACA7C,GAIR,CAAE,MAAOyB,EAAK,CAuBZ,GAtBMA,aAAevI,EAAAA,eAAc,EAEjC,CAFqC,KAE/BG,EAAYqF,cAAc,CAC9BjE,EACAgH,EACA,CACEE,WAAY,aACZC,UAAWrF,EACXsF,UAAW,QACXC,iBAAAA,CAAAA,EAAkBnJ,EAAAA,mBAAAA,EAAoB,CACpCyE,0CACAlB,CACF,EACF,GAZiB,AAajBuC,EACAxC,GAOAO,EAAO,MAAMiF,EAQjB,OALA,MAAA,CAAA,EAAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[1]}
1
+ {"version":3,"sources":["../../../src/app/api/context/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["import { NextRequest, NextResponse } from 'next/server'\r\nimport { getContext, getConfiguredRoot } from '@/lib/core'\r\n\r\nexport async function POST(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { paths } = await req.json()\r\n if (!Array.isArray(paths)) return NextResponse.json({ error: 'paths must be an array' }, { status: 400 })\r\n const context = await getContext(paths as string[], root)\r\n return NextResponse.json({ context })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"qjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,gBAEO,eAAe,EAAK,CAAgB,EACzC,GAAI,CACF,IAAM,EAAO,EAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,IAChE,OAAE,CAAK,CAAE,CAAG,MAAM,EAAI,IAAI,GAChC,GAAI,CAAC,MAAM,OAAO,CAAC,GAAQ,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,wBAAyB,EAAG,CAAE,OAAQ,GAAI,GACvG,IAAM,EAAU,MAAM,CAAA,EAAA,EAAA,UAAA,AAAU,EAAC,EAAmB,GACpD,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,SAAQ,EACrC,CAAE,MAAO,EAAG,CACV,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAQ,EAAY,OAAO,AAAC,EAAG,CAAE,OAAQ,GAAI,EAC1E,CACF,oGCbA,IAAA,EAIO,EAAA,CAHLA,AAGK,CAAA,OACP,EAA0B,EAAyB,CAA1CC,AAA0C,CAAA,GAAA,EAJ9B,EAKrB,CADkB,CACwB,AAFmB,EAEnB,CAAjCC,AAAiC,CAAA,AAFnC,GACmB,CAC8C,GAExE,EAAuC,EAAQ,CAAtCE,AAAsC,CAFxBD,AAEwB,MAA2B,AAC1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AAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[1]}
@@ -0,0 +1,3 @@
1
+ module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},98768,e=>{"use strict";class t{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emit(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}}let r=globalThis,a=r.vibedocBus??(r.vibedocBus=new t);function n(e,t){a.emit({type:e,payload:t,ts:new Date().toISOString()})}e.s(["bus",0,a,"emitUpdate",()=>n])},92848,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=e.i(98768),o=t([n]);async function i(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("q"),s=e.nextUrl.searchParams.get("read");if(s){let e=await (0,n.readDoc)(s,t);return a.NextResponse.json(e)}if(r){let e=await (0,n.searchDocs)(r,t);return a.NextResponse.json({results:e})}let o=await (0,n.listDocs)(t);return a.NextResponse.json(o)}async function l(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{path:r,content:o}=await e.json();return await (0,n.writeDoc)(r,o,t),(0,s.emitUpdate)("doc_updated",{path:r}),a.NextResponse.json({ok:!0})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}async function d(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{path:r,content:o}=await e.json();return await (0,n.createDoc)(r,o,t),(0,s.emitUpdate)("doc_created",{path:r}),process.env.ANTHROPIC_API_KEY&&(0,n.enrichDescription)(r,t).catch(()=>{}),a.NextResponse.json({ok:!0,path:r},{status:201})}catch(e){if("EEXIST"===e.code)return a.NextResponse.json({error:"File already exists"},{status:409});return a.NextResponse.json({error:e.message},{status:400})}}async function c(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{oldPath:r,newPath:o}=await e.json();return await (0,n.renameDoc)(r,o,t),(0,s.emitUpdate)("doc_renamed",{oldPath:r,newPath:o}),a.NextResponse.json({ok:!0})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}async function u(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{path:r}=await e.json();return await (0,n.deleteDoc)(r,t),(0,s.emitUpdate)("doc_deleted",{path:r}),a.NextResponse.json({ok:!0})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}[n]=o.then?(await o)():o,e.s(["DELETE",()=>u,"GET",()=>i,"PATCH",()=>c,"POST",()=>d,"PUT",()=>l]),r()}catch(e){r(e)}},!1),16402,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),o=e.i(58e3),i=e.i(89292),l=e.i(22218),d=e.i(70540),c=e.i(9350),u=e.i(69462),p=e.i(13673),h=e.i(59429),x=e.i(41690),R=e.i(55318),g=e.i(99382),m=e.i(20606),f=e.i(93695);e.i(75436);var v=e.i(39468),w=e.i(92848),y=t([w]);[w]=y.then?(await y)():y;let N=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/docs/route",pathname:"/api/docs",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/docs/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:P,workUnitAsyncStorage:j,serverHooks:b}=N;function E(){return(0,s.patchFetch)({workAsyncStorage:P,workUnitAsyncStorage:j})}async function C(e,t,r){N.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/docs/route";a=a.replace(/\/index$/,"")||"/";let s=await N.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:y,nextConfig:E,parsedUrl:C,isDraftMode:P,prerenderManifest:j,routerServerContext:b,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,resolvedPathname:_,clientReferenceManifest:U,serverActionsManifest:k}=s,O=(0,d.normalizeAppPath)(a),S=!!(j.dynamicRoutes[O]||j.routes[_]),D=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!P){let e=!!j.routes[_],t=j.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await D();throw new f.NoFallbackError}}let q=null;!S||N.isDev||P||(q=_,q="/index"===q?"/":q);let H=!0===N.isDev||!S,I=S&&!H;k&&U&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:U,serverActionsManifest:k});let M=e.method||"GET",F=(0,i.getTracer)(),K=F.getActiveScopeSpan(),$={params:y,prerenderManifest:j,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:H,incrementalCache:(0,o.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>N.onRequestError(e,t,a,n,b)},sharedContext:{buildId:w}},B=new c.NodeNextRequest(e),L=new c.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(B,(0,u.signalFromNodeResponse)(t));try{let s=async e=>N.handle(G,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,o.getRequestMeta)(e,"minimalMode"),d=async o=>{var i,d;let c=async({previousCacheEntry:n})=>{try{if(!l&&A&&T&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(o);e.fetchMetrics=$.renderOpts.fetchMetrics;let i=$.renderOpts.pendingWaitUntil;i&&r.waitUntil&&(r.waitUntil(i),i=void 0);let d=$.renderOpts.collectedTags;if(!S)return await (0,x.sendResponse)(B,L,a,$.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,R.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[m.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,n=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:A})},!1,b),t}},u=await N.handleResponse({req:e,nextConfig:E,cacheKey:q,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:j,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:l});if(!S)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(d=u.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",A?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),P&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,R.fromNodeOutgoingHttpHeaders)(u.value.headers);return l&&S||p.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,g.getCacheControlHeader)(u.cacheControl)),await (0,x.sendResponse)(B,L,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};K?await d(K):await F.withPropagatedContext(e.headers,()=>F.trace(p.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:i.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof f.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:A})},!1,b),S)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>E,"routeModule",()=>N,"serverHooks",()=>b,"workAsyncStorage",()=>P,"workUnitAsyncStorage",()=>j]),r()}catch(e){r(e)}},!1),60830,e=>{e.v(t=>Promise.all(["server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js"].map(t=>e.l(t))).then(()=>t(48394)))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__aa7a40ec._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/events.ts","../../../src/app/api/docs/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["/**\r\n * src/lib/events.ts\r\n * In-process SSE event bus.\r\n * API routes push events here; /api/events streams them to the browser.\r\n */\r\n\r\ntype Listener = (data: unknown) => void\r\n\r\nclass EventBus {\r\n private listeners = new Set<Listener>()\r\n\r\n subscribe(fn: Listener) {\r\n this.listeners.add(fn)\r\n return () => this.listeners.delete(fn)\r\n }\r\n\r\n emit(event: unknown) {\r\n this.listeners.forEach(fn => {\r\n try { fn(event) } catch {}\r\n })\r\n }\r\n}\r\n\r\n// Singleton — shared across all API routes in the same process\r\nconst globalForBus = globalThis as unknown as { vibedocBus?: EventBus }\r\nexport const bus = globalForBus.vibedocBus ?? (globalForBus.vibedocBus = new EventBus())\r\n\r\nexport function emitUpdate(type: string, payload: unknown) {\r\n bus.emit({ type, payload, ts: new Date().toISOString() })\r\n}\r\n","import { NextRequest, NextResponse } from 'next/server'\r\nimport { listDocs, readDoc, searchDocs, writeDoc, createDoc, renameDoc, deleteDoc, getConfiguredRoot, enrichDescription } from '@/lib/core'\r\nimport { emitUpdate } from '@/lib/events'\r\n\r\nexport async function GET(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const query = req.nextUrl.searchParams.get('q')\r\n const read = req.nextUrl.searchParams.get('read')\r\n\r\n if (read) {\r\n const doc = await readDoc(read, root)\r\n return NextResponse.json(doc)\r\n }\r\n if (query) {\r\n const results = await searchDocs(query, root)\r\n return NextResponse.json({ results })\r\n }\r\n const docs = await listDocs(root)\r\n return NextResponse.json(docs)\r\n}\r\n\r\nexport async function PUT(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { path: docPath, content } = await req.json()\r\n await writeDoc(docPath, content, root)\r\n emitUpdate('doc_updated', { path: docPath })\r\n return NextResponse.json({ ok: true })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n\r\nexport async function POST(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { path: docPath, content } = await req.json()\r\n await createDoc(docPath, content, root)\r\n emitUpdate('doc_created', { path: docPath })\r\n // Fire-and-forget: enrich description asynchronously (doesn't block response)\r\n if (process.env.ANTHROPIC_API_KEY) {\r\n enrichDescription(docPath, root).catch(() => { /* ignore enrichment failures */ })\r\n }\r\n return NextResponse.json({ ok: true, path: docPath }, { status: 201 })\r\n } catch (e) {\r\n const nodeErr = e as NodeJS.ErrnoException\r\n if (nodeErr.code === 'EEXIST') return NextResponse.json({ error: 'File already exists' }, { status: 409 })\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n\r\nexport async function PATCH(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { oldPath, newPath } = await req.json()\r\n await renameDoc(oldPath, newPath, root)\r\n emitUpdate('doc_renamed', { oldPath, newPath })\r\n return NextResponse.json({ ok: true })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n\r\nexport async function DELETE(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { path: docPath } = await req.json()\r\n await deleteDoc(docPath, root)\r\n emitUpdate('doc_deleted', { path: docPath })\r\n return NextResponse.json({ ok: true })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"6iCAQA,OAAM,EACI,UAAY,IAAI,GAAe,CAEvC,UAAU,CAAY,CAAE,CAEtB,OADA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GACZ,IAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EACrC,CAEA,KAAK,CAAc,CAAE,CACnB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IACrB,GAAI,CAAE,EAAG,EAAO,CAAE,KAAM,CAAC,CAC3B,EACF,CACF,CAGA,IAAM,EAAe,WACR,EAAM,EAAa,UAAU,GAAK,CAAD,CAAc,UAAU,CAAG,IAAI,CAAA,CAAU,CAEhF,SAAS,EAAW,CAAY,CAAE,CAAgB,EACvD,EAAI,IAAI,CAAC,MAAE,UAAM,EAAS,GAAI,IAAI,OAAO,WAAW,EAAG,EACzD,oEC7BA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,gBAEO,eAAe,EAAI,CAAgB,EACxC,IAAM,EAAO,EAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,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T,EAII5D,EACF,MAAMyC,EAAezC,EADP,CAGd,MAAMD,EAAOkF,qBAAqB,CAAC/H,EAAImG,MAdiG,CAc1F,CAAE,IAC9CtD,EAAOmF,KAAK,CACV/J,EAAAA,cAAAA,CAAe8G,aAAa,CAC5B,CACEkD,SAAU,CAAA,EAAGrF,EAAO,CAAC,EAAEtC,EAAAA,CAAS,CAChCxB,KAAMpB,EAAAA,QAAAA,CAASwK,MAAM,CACrBC,WAAY,CACV,cAAevF,EACf,cAAe5C,EAAIoI,GAAG,AACxB,CACF,EACA7C,GAIR,CAAE,MAAOyB,EAAK,CAuBZ,GAtBMA,aAAevI,EAAAA,eAAc,EAEjC,CAFqC,KAE/BG,EAAYqF,cAAc,CAC9BjE,EACAgH,EACA,CACEE,WAAY,aACZC,UAAWrF,EACXsF,UAAW,QACXC,iBAAAA,CAAAA,EAAkBnJ,EAAAA,mBAAAA,EAAoB,oBACpCyE,uBACAlB,CACF,EACF,GACAuC,AAbiB,EAcjBxC,GAOAO,EAAO,MAAMiF,EAQjB,OALA,MAAA,CAAA,EAAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[2]}
@@ -1,3 +1,3 @@
1
- module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},98768,e=>{"use strict";class t{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emit(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}}let r=globalThis,a=r.vibedocBus??(r.vibedocBus=new t);function n(e,t){a.emit({type:e,payload:t,ts:new Date().toISOString()})}e.s(["bus",0,a,"emitUpdate",()=>n])},77805,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=e.i(98768),o=t([n]);async function i(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=await (0,n.readMemory)(t);return a.NextResponse.json(r)}async function l(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{actor:r,...o}=await e.json();return await (0,n.updateMemory)(o,t,r||"human"),(0,s.emitUpdate)("memory_updated",{root:t}),a.NextResponse.json({ok:!0})}[n]=o.then?(await o)():o,e.s(["GET",()=>i,"POST",()=>l]),r()}catch(e){r(e)}},!1),36661,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),o=e.i(58e3),i=e.i(43835),l=e.i(22218),d=e.i(70540),u=e.i(9350),p=e.i(69462),c=e.i(13673),h=e.i(59429),x=e.i(41690),m=e.i(55318),R=e.i(99382),v=e.i(20606),g=e.i(93695);e.i(75436);var f=e.i(39468),w=e.i(77805),y=t([w]);[w]=y.then?(await y)():y;let b=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/memory/route",pathname:"/api/memory",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/memory/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:A,workUnitAsyncStorage:T,serverHooks:P}=b;function E(){return(0,s.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:T})}async function C(e,t,r){b.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/memory/route";a=a.replace(/\/index$/,"")||"/";let s=await b.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:y,nextConfig:E,parsedUrl:C,isDraftMode:A,prerenderManifest:T,routerServerContext:P,isOnDemandRevalidate:N,revalidateOnlyGenerated:O,resolvedPathname:S,clientReferenceManifest:k,serverActionsManifest:q}=s,_=(0,d.normalizeAppPath)(a),j=!!(T.dynamicRoutes[_]||T.routes[S]),U=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,C,!1):t.end("This page could not be found"),null);if(j&&!A){let e=!!T.routes[S],t=T.dynamicRoutes[_];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await U();throw new g.NoFallbackError}}let H=null;!j||b.isDev||A||(H=S,H="/index"===H?"/":H);let I=!0===b.isDev||!j,D=j&&!I;q&&k&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:k,serverActionsManifest:q});let M=e.method||"GET",$=(0,i.getTracer)(),F=$.getActiveScopeSpan(),K={params:y,prerenderManifest:T,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,o.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,P)},sharedContext:{buildId:w}},B=new u.NodeNextRequest(e),L=new u.NodeNextResponse(t),G=p.NextRequestAdapter.fromNodeNextRequest(B,(0,p.signalFromNodeResponse)(t));try{let s=async e=>b.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,o.getRequestMeta)(e,"minimalMode"),d=async o=>{var i,d;let u=async({previousCacheEntry:n})=>{try{if(!l&&N&&O&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(o);e.fetchMetrics=K.renderOpts.fetchMetrics;let i=K.renderOpts.pendingWaitUntil;i&&r.waitUntil&&(r.waitUntil(i),i=void 0);let d=K.renderOpts.collectedTags;if(!j)return await (0,x.sendResponse)(B,L,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[v.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:N})},!1,P),t}},p=await b.handleResponse({req:e,nextConfig:E,cacheKey:H,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:O,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!j)return null;if((null==p||null==(i=p.value)?void 0:i.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",N?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,m.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&j||c.delete(v.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,R.getCacheControlHeader)(p.cacheControl)),await (0,x.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:i.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof g.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:N})},!1,P),j)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>E,"routeModule",()=>b,"serverHooks",()=>P,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>T]),r()}catch(e){r(e)}},!1)];
1
+ module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},98768,e=>{"use strict";class t{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emit(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}}let r=globalThis,a=r.vibedocBus??(r.vibedocBus=new t);function n(e,t){a.emit({type:e,payload:t,ts:new Date().toISOString()})}e.s(["bus",0,a,"emitUpdate",()=>n])},77805,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=e.i(98768),i=t([n]);async function o(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=await (0,n.readMemory)(t);return a.NextResponse.json(r)}async function l(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{actor:r,...i}=await e.json();return await (0,n.updateMemory)(i,t,r||"human"),(0,s.emitUpdate)("memory_updated",{root:t}),a.NextResponse.json({ok:!0})}[n]=i.then?(await i)():i,e.s(["GET",()=>o,"POST",()=>l]),r()}catch(e){r(e)}},!1),36661,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),i=e.i(58e3),o=e.i(89292),l=e.i(22218),d=e.i(70540),u=e.i(9350),p=e.i(69462),c=e.i(13673),h=e.i(59429),x=e.i(41690),m=e.i(55318),R=e.i(99382),v=e.i(20606),g=e.i(93695);e.i(75436);var f=e.i(39468),w=e.i(77805),y=t([w]);[w]=y.then?(await y)():y;let b=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/memory/route",pathname:"/api/memory",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/memory/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:A,workUnitAsyncStorage:P,serverHooks:T}=b;function E(){return(0,s.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:P})}async function C(e,t,r){b.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/memory/route";a=a.replace(/\/index$/,"")||"/";let s=await b.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:y,nextConfig:E,parsedUrl:C,isDraftMode:A,prerenderManifest:P,routerServerContext:T,isOnDemandRevalidate:_,revalidateOnlyGenerated:N,resolvedPathname:k,clientReferenceManifest:O,serverActionsManifest:S}=s,j=(0,d.normalizeAppPath)(a),q=!!(P.dynamicRoutes[j]||P.routes[k]),U=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,C,!1):t.end("This page could not be found"),null);if(q&&!A){let e=!!P.routes[k],t=P.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await U();throw new g.NoFallbackError}}let H=null;!q||b.isDev||A||(H=k,H="/index"===H?"/":H);let I=!0===b.isDev||!q,D=q&&!I;S&&O&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:O,serverActionsManifest:S});let M=e.method||"GET",$=(0,o.getTracer)(),F=$.getActiveScopeSpan(),K={params:y,prerenderManifest:P,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,T)},sharedContext:{buildId:w}},B=new u.NodeNextRequest(e),L=new u.NodeNextResponse(t),G=p.NextRequestAdapter.fromNodeNextRequest(B,(0,p.signalFromNodeResponse)(t));try{let s=async e=>b.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),d=async i=>{var o,d;let u=async({previousCacheEntry:n})=>{try{if(!l&&_&&N&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let o=K.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let d=K.renderOpts.collectedTags;if(!q)return await (0,x.sendResponse)(B,L,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[v.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,T),t}},p=await b.handleResponse({req:e,nextConfig:E,cacheKey:H,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:N,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!q)return null;if((null==p||null==(o=p.value)?void 0:o.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",_?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,m.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&q||c.delete(v.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,R.getCacheControlHeader)(p.cacheControl)),await (0,x.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof g.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,T),q)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>E,"routeModule",()=>b,"serverHooks",()=>T,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>P]),r()}catch(e){r(e)}},!1),60830,e=>{e.v(t=>Promise.all(["server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js"].map(t=>e.l(t))).then(()=>t(48394)))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__50ed178b._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__bacbf09e._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/events.ts","../../../src/app/api/memory/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["/**\r\n * src/lib/events.ts\r\n * In-process SSE event bus.\r\n * API routes push events here; /api/events streams them to the browser.\r\n */\r\n\r\ntype Listener = (data: unknown) => void\r\n\r\nclass EventBus {\r\n private listeners = new Set<Listener>()\r\n\r\n subscribe(fn: Listener) {\r\n this.listeners.add(fn)\r\n return () => this.listeners.delete(fn)\r\n }\r\n\r\n emit(event: unknown) {\r\n this.listeners.forEach(fn => {\r\n try { fn(event) } catch {}\r\n })\r\n }\r\n}\r\n\r\n// Singleton — shared across all API routes in the same process\r\nconst globalForBus = globalThis as unknown as { vibedocBus?: EventBus }\r\nexport const bus = globalForBus.vibedocBus ?? (globalForBus.vibedocBus = new EventBus())\r\n\r\nexport function emitUpdate(type: string, payload: unknown) {\r\n bus.emit({ type, payload, ts: new Date().toISOString() })\r\n}\r\n","import { NextRequest, NextResponse } from 'next/server'\r\nimport { readMemory, updateMemory, getConfiguredRoot } from '@/lib/core'\r\nimport { emitUpdate } from '@/lib/events'\r\n\r\nexport async function GET(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const memory = await readMemory(root)\r\n return NextResponse.json(memory)\r\n}\r\n\r\nexport async function POST(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { actor, ...params } = await req.json()\r\n await updateMemory(params, root, actor || 'human')\r\n emitUpdate('memory_updated', { root })\r\n return NextResponse.json({ ok: true })\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"6iCAQA,OAAM,EACI,UAAY,IAAI,GAAe,CAEvC,UAAU,CAAY,CAAE,CAEtB,OADA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GACZ,IAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EACrC,CAEA,KAAK,CAAc,CAAE,CACnB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IACrB,GAAI,CAAE,EAAG,EAAO,CAAE,KAAM,CAAC,CAC3B,EACF,CACF,CAGA,IAAM,EAAe,WACR,EAAM,EAAa,UAAU,GAAK,CAAD,CAAc,UAAU,CAAG,IAAI,CAAA,CAAU,CAEhF,SAAS,EAAW,CAAY,CAAE,CAAgB,EACvD,EAAI,IAAI,CAAC,MAAE,UAAM,EAAS,GAAI,IAAI,OAAO,WAAW,EAAG,EACzD,oEC7BA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,gBAEO,eAAe,EAAI,CAAgB,EACxC,IAAM,EAAO,EAAI,OAAO,CAAC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AAAA,EACJgG,EACAC,EAEA,IAAI0D,SAASrC,EAAWgB,KAAK,CAACE,IAAI,CAAE,SAClCR,EACAO,OAAQjB,EAAWgB,KAAK,CAACC,MAAM,EAAI,GACrC,IAEK,IACT,EAII5D,EACF,MAAMyC,EAAezC,EADP,CAGd,MAAMD,EAAOkF,qBAAqB,CAAC/H,EAAImG,MAdiG,CAc1F,CAAE,IAC9CtD,EAAOmF,KAAK,CACV/J,EAAAA,cAAAA,CAAe8G,aAAa,CAC5B,CACEkD,SAAU,CAAA,EAAGrF,EAAO,CAAC,EAAEtC,EAAAA,CAAS,CAChCxB,KAAMpB,EAAAA,QAAAA,CAASwK,MAAM,CACrBC,WAAY,CACV,cAAevF,EACf,cAAe5C,EAAIoI,GAAG,AACxB,CACF,EACA7C,GAIR,CAAE,MAAOyB,EAAK,CAuBZ,GAtBMA,aAAevI,EAAAA,eAAc,EAEjC,CAFqC,KAE/BG,EAAYqF,cAAc,CAC9BjE,EACAgH,EACA,CACEE,WAAY,aACZC,UAAWrF,EACXsF,UAAW,QACXC,iBAAAA,CAAAA,EAAkBnJ,EAAAA,mBAAAA,EAAoB,oBACpCyE,uBACAlB,CACF,EACF,GACAuC,AAbiB,EAcjBxC,GAOAO,EAAO,MAAMiF,EAQjB,OALA,MAAA,CAAA,EAAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[2]}
1
+ {"version":3,"sources":["../../../src/lib/events.ts","../../../src/app/api/memory/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["/**\r\n * src/lib/events.ts\r\n * In-process SSE event bus.\r\n * API routes push events here; /api/events streams them to the browser.\r\n */\r\n\r\ntype Listener = (data: unknown) => void\r\n\r\nclass EventBus {\r\n private listeners = new Set<Listener>()\r\n\r\n subscribe(fn: Listener) {\r\n this.listeners.add(fn)\r\n return () => this.listeners.delete(fn)\r\n }\r\n\r\n emit(event: unknown) {\r\n this.listeners.forEach(fn => {\r\n try { fn(event) } catch {}\r\n })\r\n }\r\n}\r\n\r\n// Singleton — shared across all API routes in the same process\r\nconst globalForBus = globalThis as unknown as { vibedocBus?: EventBus }\r\nexport const bus = globalForBus.vibedocBus ?? (globalForBus.vibedocBus = new EventBus())\r\n\r\nexport function emitUpdate(type: string, payload: unknown) {\r\n bus.emit({ type, payload, ts: new Date().toISOString() })\r\n}\r\n","import { NextRequest, NextResponse } from 'next/server'\r\nimport { readMemory, updateMemory, getConfiguredRoot } from '@/lib/core'\r\nimport { emitUpdate } from '@/lib/events'\r\n\r\nexport async function GET(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const memory = await readMemory(root)\r\n return NextResponse.json(memory)\r\n}\r\n\r\nexport async function POST(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { actor, ...params } = await req.json()\r\n await updateMemory(params, root, actor || 'human')\r\n emitUpdate('memory_updated', { root })\r\n return NextResponse.json({ ok: true })\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"6iCA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CAC9BjE,EACAgH,EACA,CACEE,WAAY,aACZC,UAAWrF,EACXsF,UAAW,QACXC,iBAAAA,CAAAA,EAAkBnJ,EAAAA,mBAAAA,EAAoB,CACpCyE,0CACAlB,CACF,EACF,GACAuC,AAbiB,EAcjBxC,GAOAO,EAAO,MAAMiF,EAQjB,OALA,MAAA,CAAA,EAAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[2]}
@@ -1,3 +1,3 @@
1
- module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},77314,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function i(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("path");if(!r)return a.NextResponse.json({error:"path required"},{status:400});let s=await (0,n.findBacklinks)(r,t);return a.NextResponse.json({links:s})}[n]=s.then?(await s)():s,e.s(["GET",()=>i]),r()}catch(e){r(e)}},!1),57016,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),i=e.i(58e3),o=e.i(43835),l=e.i(22218),d=e.i(70540),u=e.i(9350),p=e.i(69462),c=e.i(13673),h=e.i(59429),x=e.i(41690),R=e.i(55318),v=e.i(99382),g=e.i(20606),f=e.i(93695);e.i(75436);var m=e.i(39468),w=e.i(77314),E=t([w]);[w]=E.then?(await E)():E;let b=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/backlinks/route",pathname:"/api/backlinks",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/backlinks/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:k,workUnitAsyncStorage:A,serverHooks:N}=b;function y(){return(0,s.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:A})}async function C(e,t,r){b.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/backlinks/route";a=a.replace(/\/index$/,"")||"/";let s=await b.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:y,parsedUrl:C,isDraftMode:k,prerenderManifest:A,routerServerContext:N,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,resolvedPathname:q,clientReferenceManifest:O,serverActionsManifest:_}=s,j=(0,d.normalizeAppPath)(a),S=!!(A.dynamicRoutes[j]||A.routes[q]),U=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!k){let e=!!A.routes[q],t=A.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.experimental.adapterPath)return await U();throw new f.NoFallbackError}}let H=null;!S||b.isDev||k||(H=q,H="/index"===H?"/":H);let I=!0===b.isDev||!S,D=S&&!I;_&&O&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:O,serverActionsManifest:_});let M=e.method||"GET",$=(0,o.getTracer)(),F=$.getActiveScopeSpan(),K={params:E,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:y.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,N)},sharedContext:{buildId:w}},B=new u.NodeNextRequest(e),L=new u.NodeNextResponse(t),G=p.NextRequestAdapter.fromNodeNextRequest(B,(0,p.signalFromNodeResponse)(t));try{let s=async e=>b.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),d=async i=>{var o,d;let u=async({previousCacheEntry:n})=>{try{if(!l&&P&&T&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let o=K.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let d=K.renderOpts.collectedTags;if(!S)return await (0,x.sendResponse)(B,L,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,R.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[g.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,N),t}},p=await b.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!S)return null;if((null==p||null==(o=p.value)?void 0:o.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",P?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,R.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&S||c.delete(g.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,v.getCacheControlHeader)(p.cacheControl)),await (0,x.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof f.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,N),S)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>y,"routeModule",()=>b,"serverHooks",()=>N,"workAsyncStorage",()=>k,"workUnitAsyncStorage",()=>A]),r()}catch(e){r(e)}},!1)];
1
+ module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},77314,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function i(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("path");if(!r)return a.NextResponse.json({error:"path required"},{status:400});let s=await (0,n.findBacklinks)(r,t);return a.NextResponse.json({links:s})}[n]=s.then?(await s)():s,e.s(["GET",()=>i]),r()}catch(e){r(e)}},!1),57016,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),i=e.i(58e3),o=e.i(89292),l=e.i(22218),d=e.i(70540),u=e.i(9350),p=e.i(69462),c=e.i(13673),h=e.i(59429),x=e.i(41690),R=e.i(55318),v=e.i(99382),f=e.i(20606),g=e.i(93695);e.i(75436);var m=e.i(39468),w=e.i(77314),E=t([w]);[w]=E.then?(await E)():E;let k=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/backlinks/route",pathname:"/api/backlinks",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/backlinks/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:b,workUnitAsyncStorage:A,serverHooks:P}=k;function y(){return(0,s.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:A})}async function C(e,t,r){k.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/backlinks/route";a=a.replace(/\/index$/,"")||"/";let s=await k.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:y,parsedUrl:C,isDraftMode:b,prerenderManifest:A,routerServerContext:P,isOnDemandRevalidate:_,revalidateOnlyGenerated:N,resolvedPathname:T,clientReferenceManifest:q,serverActionsManifest:j}=s,O=(0,d.normalizeAppPath)(a),S=!!(A.dynamicRoutes[O]||A.routes[T]),U=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!b){let e=!!A.routes[T],t=A.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(y.experimental.adapterPath)return await U();throw new g.NoFallbackError}}let H=null;!S||k.isDev||b||(H=T,H="/index"===H?"/":H);let I=!0===k.isDev||!S,D=S&&!I;j&&q&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:q,serverActionsManifest:j});let M=e.method||"GET",$=(0,o.getTracer)(),F=$.getActiveScopeSpan(),K={params:E,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:y.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>k.onRequestError(e,t,a,n,P)},sharedContext:{buildId:w}},B=new u.NodeNextRequest(e),L=new u.NodeNextResponse(t),G=p.NextRequestAdapter.fromNodeNextRequest(B,(0,p.signalFromNodeResponse)(t));try{let s=async e=>k.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),d=async i=>{var o,d;let u=async({previousCacheEntry:n})=>{try{if(!l&&_&&N&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let o=K.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let d=K.renderOpts.collectedTags;if(!S)return await (0,x.sendResponse)(B,L,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,R.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[f.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await k.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,P),t}},p=await k.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:N,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!S)return null;if((null==p||null==(o=p.value)?void 0:o.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",_?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,R.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&S||c.delete(f.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,v.getCacheControlHeader)(p.cacheControl)),await (0,x.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof g.NoFallbackError||await k.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,P),S)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>y,"routeModule",()=>k,"serverHooks",()=>P,"workAsyncStorage",()=>b,"workUnitAsyncStorage",()=>A]),r()}catch(e){r(e)}},!1),60830,e=>{e.v(t=>Promise.all(["server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js"].map(t=>e.l(t))).then(()=>t(48394)))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__1bb30fa4._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__bd44b8e4._.js.map