vibedoc 1.8.0 → 1.10.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 (716) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +6 -0
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +4 -4
  5. package/.next/routes-manifest.json +36 -0
  6. package/.next/server/app/(app)/activity/page.js +2 -2
  7. package/.next/server/app/(app)/activity/page.js.nft.json +1 -1
  8. package/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/(app)/board/page.js +2 -2
  10. package/.next/server/app/(app)/board/page.js.nft.json +1 -1
  11. package/.next/server/app/(app)/board/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/(app)/chat/page.js +2 -2
  13. package/.next/server/app/(app)/chat/page.js.nft.json +1 -1
  14. package/.next/server/app/(app)/chat/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/(app)/docs/page.js +2 -2
  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.js +2 -2
  19. package/.next/server/app/(app)/explorer/page.js.nft.json +1 -1
  20. package/.next/server/app/(app)/explorer/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/(app)/manual-tests/page.js +2 -2
  22. package/.next/server/app/(app)/manual-tests/page.js.nft.json +1 -1
  23. package/.next/server/app/(app)/manual-tests/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/(app)/memory/page.js +2 -2
  25. package/.next/server/app/(app)/memory/page.js.nft.json +1 -1
  26. package/.next/server/app/(app)/memory/page_client-reference-manifest.js +1 -1
  27. package/.next/server/app/(app)/roadmap/page.js +2 -2
  28. package/.next/server/app/(app)/roadmap/page.js.nft.json +1 -1
  29. package/.next/server/app/(app)/roadmap/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/(app)/settings/page.js +2 -2
  31. package/.next/server/app/(app)/settings/page.js.nft.json +1 -1
  32. package/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -1
  33. package/.next/server/app/(app)/setup/page.js +2 -2
  34. package/.next/server/app/(app)/setup/page.js.nft.json +1 -1
  35. package/.next/server/app/(app)/setup/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/_global-error/page.js +2 -2
  37. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  38. package/.next/server/app/_global-error.html +1 -1
  39. package/.next/server/app/_global-error.rsc +1 -1
  40. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  41. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  42. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  43. package/.next/server/app/_not-found/page.js +2 -2
  44. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  45. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  46. package/.next/server/app/_not-found.html +1 -1
  47. package/.next/server/app/_not-found.rsc +2 -2
  48. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  49. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  50. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  51. package/.next/server/app/activity.html +1 -1
  52. package/.next/server/app/activity.rsc +7 -7
  53. package/.next/server/app/activity.segments/!KGFwcCk/activity/__PAGE__.segment.rsc +5 -5
  54. package/.next/server/app/activity.segments/_full.segment.rsc +7 -7
  55. package/.next/server/app/activity.segments/_tree.segment.rsc +2 -2
  56. package/.next/server/app/api/activity/route.js +2 -2
  57. package/.next/server/app/api/activity/route.js.nft.json +1 -1
  58. package/.next/server/app/api/backlinks/route.js +2 -2
  59. package/.next/server/app/api/backlinks/route.js.nft.json +1 -1
  60. package/.next/server/app/api/chat/route.js +3 -3
  61. package/.next/server/app/api/chat/route.js.nft.json +1 -1
  62. package/.next/server/app/api/context/route.js +2 -2
  63. package/.next/server/app/api/context/route.js.nft.json +1 -1
  64. package/.next/server/app/api/conversations/route.js +3 -3
  65. package/.next/server/app/api/conversations/route.js.nft.json +1 -1
  66. package/.next/server/app/api/decisions/route.js +2 -2
  67. package/.next/server/app/api/decisions/route.js.nft.json +1 -1
  68. package/.next/server/app/api/docs/route.js +3 -3
  69. package/.next/server/app/api/docs/route.js.nft.json +1 -1
  70. package/.next/server/app/api/explorer/route.js +3 -3
  71. package/.next/server/app/api/explorer/route.js.nft.json +1 -1
  72. package/.next/server/app/api/mcp/route.js +3 -3
  73. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  74. package/.next/server/app/api/memory/entries/delete/route/app-paths-manifest.json +3 -0
  75. package/.next/server/app/api/memory/entries/delete/route/build-manifest.json +12 -0
  76. package/.next/server/app/api/memory/entries/delete/route/server-reference-manifest.json +4 -0
  77. package/.next/server/app/api/memory/entries/delete/route.js +9 -0
  78. package/.next/server/app/api/memory/entries/delete/route.js.map +5 -0
  79. package/.next/server/app/api/memory/entries/delete/route.js.nft.json +1 -0
  80. package/.next/server/app/api/memory/entries/delete/route_client-reference-manifest.js +3 -0
  81. package/.next/server/app/api/memory/entries/restore/route/app-paths-manifest.json +3 -0
  82. package/.next/server/app/api/memory/entries/restore/route/build-manifest.json +12 -0
  83. package/.next/server/app/api/memory/entries/restore/route/server-reference-manifest.json +4 -0
  84. package/.next/server/app/api/memory/entries/restore/route.js +9 -0
  85. package/.next/server/app/api/memory/entries/restore/route.js.map +5 -0
  86. package/.next/server/app/api/memory/entries/restore/route.js.nft.json +1 -0
  87. package/.next/server/app/api/memory/entries/restore/route_client-reference-manifest.js +3 -0
  88. package/.next/server/app/api/memory/entries/route/app-paths-manifest.json +3 -0
  89. package/.next/server/app/api/memory/entries/route/build-manifest.json +12 -0
  90. package/.next/server/app/api/memory/entries/route/server-reference-manifest.json +4 -0
  91. package/.next/server/app/api/memory/entries/route.js +8 -0
  92. package/.next/server/app/api/memory/entries/route.js.map +5 -0
  93. package/.next/server/app/api/memory/entries/route.js.nft.json +1 -0
  94. package/.next/server/app/api/memory/entries/route_client-reference-manifest.js +3 -0
  95. package/.next/server/app/api/memory/entries/save/route/app-paths-manifest.json +3 -0
  96. package/.next/server/app/api/memory/entries/save/route/build-manifest.json +12 -0
  97. package/.next/server/app/api/memory/entries/save/route/server-reference-manifest.json +4 -0
  98. package/.next/server/app/api/memory/entries/save/route.js +9 -0
  99. package/.next/server/app/api/memory/entries/save/route.js.map +5 -0
  100. package/.next/server/app/api/memory/entries/save/route.js.nft.json +1 -0
  101. package/.next/server/app/api/memory/entries/save/route_client-reference-manifest.js +3 -0
  102. package/.next/server/app/api/memory/graph/route/app-paths-manifest.json +3 -0
  103. package/.next/server/app/api/memory/graph/route/build-manifest.json +12 -0
  104. package/.next/server/app/api/memory/graph/route/server-reference-manifest.json +4 -0
  105. package/.next/server/app/api/memory/graph/route.js +9 -0
  106. package/.next/server/app/api/memory/graph/route.js.map +5 -0
  107. package/.next/server/app/api/memory/graph/route.js.nft.json +1 -0
  108. package/.next/server/app/api/memory/graph/route_client-reference-manifest.js +3 -0
  109. package/.next/server/app/api/memory/history/route/app-paths-manifest.json +3 -0
  110. package/.next/server/app/api/memory/history/route/build-manifest.json +12 -0
  111. package/.next/server/app/api/memory/history/route/server-reference-manifest.json +4 -0
  112. package/.next/server/app/api/memory/history/route.js +9 -0
  113. package/.next/server/app/api/memory/history/route.js.map +5 -0
  114. package/.next/server/app/api/memory/history/route.js.nft.json +1 -0
  115. package/.next/server/app/api/memory/history/route_client-reference-manifest.js +3 -0
  116. package/.next/server/app/api/memory/route.js +2 -2
  117. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  118. package/.next/server/app/api/plan/apply/route.js +3 -3
  119. package/.next/server/app/api/plan/apply/route.js.nft.json +1 -1
  120. package/.next/server/app/api/projects/route.js +2 -2
  121. package/.next/server/app/api/projects/route.js.nft.json +1 -1
  122. package/.next/server/app/api/registry/route.js +2 -2
  123. package/.next/server/app/api/registry/route.js.nft.json +1 -1
  124. package/.next/server/app/api/roadmap/create/route.js +3 -3
  125. package/.next/server/app/api/roadmap/create/route.js.nft.json +1 -1
  126. package/.next/server/app/api/roadmap/delete/route.js +3 -3
  127. package/.next/server/app/api/roadmap/delete/route.js.nft.json +1 -1
  128. package/.next/server/app/api/roadmap/generate/route.js +3 -3
  129. package/.next/server/app/api/roadmap/generate/route.js.nft.json +1 -1
  130. package/.next/server/app/api/roadmap/layout/route.js +3 -3
  131. package/.next/server/app/api/roadmap/layout/route.js.nft.json +1 -1
  132. package/.next/server/app/api/roadmap/restore/route.js +3 -3
  133. package/.next/server/app/api/roadmap/restore/route.js.nft.json +1 -1
  134. package/.next/server/app/api/roadmap/route.js +2 -2
  135. package/.next/server/app/api/roadmap/route.js.nft.json +1 -1
  136. package/.next/server/app/api/roadmap/update/route.js +3 -3
  137. package/.next/server/app/api/roadmap/update/route.js.nft.json +1 -1
  138. package/.next/server/app/api/sessions/route.js +2 -2
  139. package/.next/server/app/api/sessions/route.js.nft.json +1 -1
  140. package/.next/server/app/api/settings/route.js +2 -2
  141. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  142. package/.next/server/app/api/setup/generate/route.js +4 -4
  143. package/.next/server/app/api/setup/generate/route.js.nft.json +1 -1
  144. package/.next/server/app/api/setup/write/route.js +2 -2
  145. package/.next/server/app/api/setup/write/route.js.nft.json +1 -1
  146. package/.next/server/app/api/summary/route.js +2 -2
  147. package/.next/server/app/api/summary/route.js.nft.json +1 -1
  148. package/.next/server/app/api/tasks/bulk/route.js +3 -3
  149. package/.next/server/app/api/tasks/bulk/route.js.nft.json +1 -1
  150. package/.next/server/app/api/tasks/create/route.js +2 -2
  151. package/.next/server/app/api/tasks/create/route.js.nft.json +1 -1
  152. package/.next/server/app/api/tasks/delete/route.js +3 -3
  153. package/.next/server/app/api/tasks/delete/route.js.nft.json +1 -1
  154. package/.next/server/app/api/tasks/manual-tests/route.js +2 -2
  155. package/.next/server/app/api/tasks/manual-tests/route.js.nft.json +1 -1
  156. package/.next/server/app/api/tasks/restore/route.js +3 -3
  157. package/.next/server/app/api/tasks/restore/route.js.nft.json +1 -1
  158. package/.next/server/app/api/tasks/review/route.js +3 -3
  159. package/.next/server/app/api/tasks/review/route.js.nft.json +1 -1
  160. package/.next/server/app/api/tasks/route.js +2 -2
  161. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  162. package/.next/server/app/api/tasks/update/route.js +3 -3
  163. package/.next/server/app/api/tasks/update/route.js.nft.json +1 -1
  164. package/.next/server/app/api/views/route.js +3 -3
  165. package/.next/server/app/api/views/route.js.nft.json +1 -1
  166. package/.next/server/app/board.html +1 -1
  167. package/.next/server/app/board.rsc +7 -7
  168. package/.next/server/app/board.segments/!KGFwcCk/board/__PAGE__.segment.rsc +5 -5
  169. package/.next/server/app/board.segments/_full.segment.rsc +7 -7
  170. package/.next/server/app/board.segments/_tree.segment.rsc +2 -2
  171. package/.next/server/app/chat.html +1 -1
  172. package/.next/server/app/chat.rsc +7 -7
  173. package/.next/server/app/chat.segments/!KGFwcCk/chat/__PAGE__.segment.rsc +5 -5
  174. package/.next/server/app/chat.segments/_full.segment.rsc +7 -7
  175. package/.next/server/app/chat.segments/_tree.segment.rsc +2 -2
  176. package/.next/server/app/docs.html +1 -1
  177. package/.next/server/app/docs.rsc +7 -7
  178. package/.next/server/app/docs.segments/!KGFwcCk/docs/__PAGE__.segment.rsc +5 -5
  179. package/.next/server/app/docs.segments/_full.segment.rsc +7 -7
  180. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  181. package/.next/server/app/explorer.html +1 -1
  182. package/.next/server/app/explorer.rsc +6 -6
  183. package/.next/server/app/explorer.segments/!KGFwcCk/explorer/__PAGE__.segment.rsc +5 -5
  184. package/.next/server/app/explorer.segments/_full.segment.rsc +6 -6
  185. package/.next/server/app/explorer.segments/_tree.segment.rsc +2 -2
  186. package/.next/server/app/index.html +1 -1
  187. package/.next/server/app/index.rsc +2 -2
  188. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  189. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  190. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  191. package/.next/server/app/manual-tests.html +1 -1
  192. package/.next/server/app/manual-tests.rsc +6 -6
  193. package/.next/server/app/manual-tests.segments/!KGFwcCk/manual-tests/__PAGE__.segment.rsc +5 -5
  194. package/.next/server/app/manual-tests.segments/_full.segment.rsc +6 -6
  195. package/.next/server/app/manual-tests.segments/_tree.segment.rsc +2 -2
  196. package/.next/server/app/memory.html +1 -1
  197. package/.next/server/app/memory.rsc +8 -7
  198. package/.next/server/app/memory.segments/!KGFwcCk/memory/__PAGE__.segment.rsc +10 -10
  199. package/.next/server/app/memory.segments/_full.segment.rsc +8 -7
  200. package/.next/server/app/memory.segments/_tree.segment.rsc +3 -2
  201. package/.next/server/app/page.js +2 -2
  202. package/.next/server/app/page.js.nft.json +1 -1
  203. package/.next/server/app/page_client-reference-manifest.js +1 -1
  204. package/.next/server/app/roadmap.html +1 -1
  205. package/.next/server/app/roadmap.rsc +7 -7
  206. package/.next/server/app/roadmap.segments/!KGFwcCk/roadmap/__PAGE__.segment.rsc +5 -5
  207. package/.next/server/app/roadmap.segments/_full.segment.rsc +7 -7
  208. package/.next/server/app/roadmap.segments/_tree.segment.rsc +2 -2
  209. package/.next/server/app/settings.html +1 -1
  210. package/.next/server/app/settings.rsc +7 -7
  211. package/.next/server/app/settings.segments/!KGFwcCk/settings/__PAGE__.segment.rsc +5 -5
  212. package/.next/server/app/settings.segments/_full.segment.rsc +7 -7
  213. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  214. package/.next/server/app/setup.html +1 -1
  215. package/.next/server/app/setup.rsc +7 -7
  216. package/.next/server/app/setup.segments/!KGFwcCk/setup/__PAGE__.segment.rsc +5 -5
  217. package/.next/server/app/setup.segments/_full.segment.rsc +7 -7
  218. package/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
  219. package/.next/server/app-paths-manifest.json +6 -0
  220. package/.next/server/chunks/{11mp_@anthropic-ai_sdk_00p3fu1._.js → 11mp_@anthropic-ai_sdk_053zt3c._.js} +1 -1
  221. package/.next/server/chunks/{11mp_@anthropic-ai_sdk_01jjl08._.js → 11mp_@anthropic-ai_sdk_0_zx69c._.js} +1 -1
  222. package/.next/server/chunks/{11mp_@anthropic-ai_sdk_01amtux._.js → 11mp_@anthropic-ai_sdk_0gvxfg3._.js} +1 -1
  223. package/.next/server/chunks/{11mp_@anthropic-ai_sdk_071zfm8._.js → 11mp_@anthropic-ai_sdk_0gx5t2l._.js} +1 -1
  224. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0krkw4y._.js +3 -0
  225. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0l0xzie._.js +3 -0
  226. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0pgjvhr._.js +3 -0
  227. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0r-keh6._.js +3 -0
  228. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0tvfbjt._.js +3 -0
  229. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0u4b8_f._.js +3 -0
  230. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0ud37xh._.js +3 -0
  231. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0v3ar-t._.js +3 -0
  232. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0wk0b65._.js +3 -0
  233. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0wqkd2r._.js +3 -0
  234. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0wypotx._.js +3 -0
  235. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0yuq-9s._.js +3 -0
  236. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0z-e57x._.js +3 -0
  237. package/.next/server/chunks/11mp_@anthropic-ai_sdk_108ltz4._.js +3 -0
  238. package/.next/server/chunks/11mp_@anthropic-ai_sdk_10c_i6_._.js +3 -0
  239. package/.next/server/chunks/11mp_@anthropic-ai_sdk_14jogs8._.js +3 -0
  240. package/.next/server/chunks/11mp_@anthropic-ai_sdk_15u-n39._.js +3 -0
  241. package/.next/server/chunks/11mp_@anthropic-ai_sdk_194ahxu._.js +3 -0
  242. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1ahph2t._.js +3 -0
  243. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1ajy77y._.js +3 -0
  244. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1b57s9p._.js +3 -0
  245. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1brf2xn._.js +3 -0
  246. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1btfw2x._.js +3 -0
  247. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1cyy_q6._.js +3 -0
  248. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1fz9fev._.js +3 -0
  249. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1i_rz7h._.js +3 -0
  250. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1it8zsv._.js +3 -0
  251. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1jzusvd._.js +3 -0
  252. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1lfknr2._.js +3 -0
  253. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1mewd-3._.js +3 -0
  254. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1mkm4u_._.js +3 -0
  255. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1mkm4u_._.js.map +1 -0
  256. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1rggqq3._.js +3 -0
  257. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1rggqq3._.js.map +1 -0
  258. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1rhjf1m._.js +3 -0
  259. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1rhjf1m._.js.map +1 -0
  260. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1s6ks8c._.js +3 -0
  261. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1s6ks8c._.js.map +1 -0
  262. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1u8z4hp._.js +3 -0
  263. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1u8z4hp._.js.map +1 -0
  264. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1vyy3_4._.js +3 -0
  265. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1vyy3_4._.js.map +1 -0
  266. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_036bvwf._.js +3 -0
  267. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_046taqd._.js +3 -0
  268. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0bxad5f._.js +3 -0
  269. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0g65abt._.js +3 -0
  270. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0pb9bu1._.js +3 -0
  271. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_120-cio._.js +3 -0
  272. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_13uyu_v._.js +3 -0
  273. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_13x2ww0._.js +3 -0
  274. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_17og64d._.js +3 -0
  275. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1e_sh4o._.js +3 -0
  276. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1ecuo9i._.js +3 -0
  277. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1go8d0m._.js +3 -0
  278. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1i13ryx._.js +3 -0
  279. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1jv_hid._.js +3 -0
  280. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1mh5mqk._.js +3 -0
  281. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1oq7e8u._.js +3 -0
  282. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1p-cq-p._.js +3 -0
  283. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1the3g0._.js +3 -0
  284. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1xubh-w._.js +3 -0
  285. package/.next/server/chunks/{[root-of-the-server]__1mrmaf9._.js → [root-of-the-server]__00o3mbd._.js} +2 -2
  286. package/.next/server/chunks/[root-of-the-server]__01n_hoh._.js +3 -0
  287. package/.next/server/chunks/{[root-of-the-server]__1-ic3af._.js.map → [root-of-the-server]__01n_hoh._.js.map} +1 -1
  288. package/.next/server/chunks/[root-of-the-server]__05tx02j._.js +3 -0
  289. package/.next/server/chunks/{[root-of-the-server]__1ezzeji._.js.map → [root-of-the-server]__05tx02j._.js.map} +1 -1
  290. package/.next/server/chunks/[root-of-the-server]__05us508._.js +3 -0
  291. package/.next/server/chunks/{[root-of-the-server]__0vcsqzd._.js.map → [root-of-the-server]__05us508._.js.map} +1 -1
  292. package/.next/server/chunks/[root-of-the-server]__06dfvb0._.js +3 -0
  293. package/.next/server/chunks/{[root-of-the-server]__0b5pwze._.js.map → [root-of-the-server]__06dfvb0._.js.map} +1 -1
  294. package/.next/server/chunks/[root-of-the-server]__06z8i6e._.js +3 -0
  295. package/.next/server/chunks/[root-of-the-server]__076d4xm._.js +3 -0
  296. package/.next/server/chunks/{[root-of-the-server]__1vq38ov._.js.map → [root-of-the-server]__076d4xm._.js.map} +1 -1
  297. package/.next/server/chunks/[root-of-the-server]__09j_-hj._.js +3 -0
  298. package/.next/server/chunks/{[root-of-the-server]__1mrmaf9._.js.map → [root-of-the-server]__09j_-hj._.js.map} +1 -1
  299. package/.next/server/chunks/{[root-of-the-server]__11s-8eg._.js → [root-of-the-server]__09oyvwa._.js} +2 -2
  300. package/.next/server/chunks/{[root-of-the-server]__1wr0m-s._.js.map → [root-of-the-server]__09oyvwa._.js.map} +1 -1
  301. package/.next/server/chunks/[root-of-the-server]__0b6w_wb._.js +3 -0
  302. package/.next/server/chunks/[root-of-the-server]__0b6w_wb._.js.map +1 -0
  303. package/.next/server/chunks/[root-of-the-server]__0exzf-v._.js +3 -0
  304. package/.next/server/chunks/{[root-of-the-server]__1qusy4g._.js.map → [root-of-the-server]__0exzf-v._.js.map} +1 -1
  305. package/.next/server/chunks/[root-of-the-server]__0gnil0m._.js +3 -0
  306. package/.next/server/chunks/{[root-of-the-server]__18kxo4a._.js.map → [root-of-the-server]__0gnil0m._.js.map} +1 -1
  307. package/.next/server/chunks/[root-of-the-server]__0hg1r2b._.js +3 -0
  308. package/.next/server/chunks/{[root-of-the-server]__0q3-t8a._.js.map → [root-of-the-server]__0hg1r2b._.js.map} +1 -1
  309. package/.next/server/chunks/[root-of-the-server]__0jr_5eq._.js +110 -0
  310. package/.next/server/chunks/[root-of-the-server]__0jr_5eq._.js.map +1 -0
  311. package/.next/server/chunks/[root-of-the-server]__0khz7sy._.js +3 -0
  312. package/.next/server/chunks/{[root-of-the-server]__1jxu2x9._.js.map → [root-of-the-server]__0khz7sy._.js.map} +1 -1
  313. package/.next/server/chunks/[root-of-the-server]__0kuhhna._.js +3 -0
  314. package/.next/server/chunks/{[root-of-the-server]__04tibmn._.js.map → [root-of-the-server]__0kuhhna._.js.map} +1 -1
  315. package/.next/server/chunks/[root-of-the-server]__0lf11mz._.js +3 -0
  316. package/.next/server/chunks/{[root-of-the-server]__1lj_2cv._.js.map → [root-of-the-server]__0lf11mz._.js.map} +1 -1
  317. package/.next/server/chunks/[root-of-the-server]__0p4w_o-._.js +3 -0
  318. package/.next/server/chunks/{[root-of-the-server]__1vh9g2o._.js.map → [root-of-the-server]__0p4w_o-._.js.map} +1 -1
  319. package/.next/server/chunks/[root-of-the-server]__0uu9pgg._.js +3 -0
  320. package/.next/server/chunks/{[root-of-the-server]__1n68akx._.js.map → [root-of-the-server]__0uu9pgg._.js.map} +1 -1
  321. package/.next/server/chunks/[root-of-the-server]__0vf-0gp._.js +3 -0
  322. package/.next/server/chunks/[root-of-the-server]__0vf-0gp._.js.map +1 -0
  323. package/.next/server/chunks/[root-of-the-server]__1-1hfrj._.js +3 -0
  324. package/.next/server/chunks/{[root-of-the-server]__197vw9g._.js.map → [root-of-the-server]__1-1hfrj._.js.map} +1 -1
  325. package/.next/server/chunks/[root-of-the-server]__15c5snv._.js +3 -0
  326. package/.next/server/chunks/{[root-of-the-server]__05l6129._.js.map → [root-of-the-server]__15c5snv._.js.map} +1 -1
  327. package/.next/server/chunks/[root-of-the-server]__15jhpgl._.js +3 -0
  328. package/.next/server/chunks/{[root-of-the-server]__19k8t87._.js.map → [root-of-the-server]__15jhpgl._.js.map} +1 -1
  329. package/.next/server/chunks/[root-of-the-server]__18dt3sr._.js +3 -0
  330. package/.next/server/chunks/{[root-of-the-server]__14aeqoi._.js.map → [root-of-the-server]__18dt3sr._.js.map} +1 -1
  331. package/.next/server/chunks/[root-of-the-server]__19rxcu4._.js +110 -0
  332. package/.next/server/chunks/[root-of-the-server]__19rxcu4._.js.map +1 -0
  333. package/.next/server/chunks/[root-of-the-server]__19w-7h9._.js +3 -0
  334. package/.next/server/chunks/{[root-of-the-server]__1umrorf._.js.map → [root-of-the-server]__19w-7h9._.js.map} +1 -1
  335. package/.next/server/chunks/[root-of-the-server]__1_qenei._.js +3 -0
  336. package/.next/server/chunks/[root-of-the-server]__1_qenei._.js.map +1 -0
  337. package/.next/server/chunks/[root-of-the-server]__1a7d63a._.js +3 -0
  338. package/.next/server/chunks/{[root-of-the-server]__11a4ptn._.js.map → [root-of-the-server]__1a7d63a._.js.map} +1 -1
  339. package/.next/server/chunks/[root-of-the-server]__1af-wfk._.js +3 -0
  340. package/.next/server/chunks/{[root-of-the-server]__1-e3i_5._.js.map → [root-of-the-server]__1af-wfk._.js.map} +1 -1
  341. package/.next/server/chunks/[root-of-the-server]__1e68zmx._.js +3 -0
  342. package/.next/server/chunks/{[root-of-the-server]__15ck1wv._.js.map → [root-of-the-server]__1e68zmx._.js.map} +1 -1
  343. package/.next/server/chunks/{[root-of-the-server]__04tibmn._.js → [root-of-the-server]__1e_o8h4._.js} +2 -2
  344. package/.next/server/chunks/{[root-of-the-server]__02co2yq._.js.map → [root-of-the-server]__1e_o8h4._.js.map} +1 -1
  345. package/.next/server/chunks/[root-of-the-server]__1gr4e22._.js +3 -0
  346. package/.next/server/chunks/{[root-of-the-server]__0druay_._.js.map → [root-of-the-server]__1gr4e22._.js.map} +1 -1
  347. package/.next/server/chunks/[root-of-the-server]__1h5hb6u._.js +3 -0
  348. package/.next/server/chunks/{[root-of-the-server]__0p6ja6l._.js.map → [root-of-the-server]__1h5hb6u._.js.map} +1 -1
  349. package/.next/server/chunks/[root-of-the-server]__1jel07j._.js +3 -0
  350. package/.next/server/chunks/{[root-of-the-server]__12nzy_6._.js.map → [root-of-the-server]__1jel07j._.js.map} +1 -1
  351. package/.next/server/chunks/[root-of-the-server]__1kw2vct._.js +3 -0
  352. package/.next/server/chunks/[root-of-the-server]__1la-6xe._.js +3 -0
  353. package/.next/server/chunks/[root-of-the-server]__1la-6xe._.js.map +1 -0
  354. package/.next/server/chunks/[root-of-the-server]__1lt5cds._.js +3 -0
  355. package/.next/server/chunks/{[root-of-the-server]__0-pmfg2._.js.map → [root-of-the-server]__1lt5cds._.js.map} +1 -1
  356. package/.next/server/chunks/[root-of-the-server]__1p6-0l0._.js +3 -0
  357. package/.next/server/chunks/{[root-of-the-server]__1xb0fmp._.js.map → [root-of-the-server]__1p6-0l0._.js.map} +1 -1
  358. package/.next/server/chunks/[root-of-the-server]__1qd-ecl._.js +110 -0
  359. package/.next/server/chunks/[root-of-the-server]__1qd-ecl._.js.map +1 -0
  360. package/.next/server/chunks/[root-of-the-server]__1r_0uma._.js +3 -0
  361. package/.next/server/chunks/{[root-of-the-server]__11s-8eg._.js.map → [root-of-the-server]__1r_0uma._.js.map} +1 -1
  362. package/.next/server/chunks/[root-of-the-server]__1rjgpbm._.js +3 -0
  363. package/.next/server/chunks/[root-of-the-server]__1rjgpbm._.js.map +1 -0
  364. package/.next/server/chunks/[root-of-the-server]__1spley9._.js +3 -0
  365. package/.next/server/chunks/{[root-of-the-server]__05g5cgo._.js.map → [root-of-the-server]__1spley9._.js.map} +1 -1
  366. package/.next/server/chunks/[root-of-the-server]__1wcd2x9._.js +3 -0
  367. package/.next/server/chunks/[root-of-the-server]__1wcd2x9._.js.map +1 -0
  368. package/.next/server/chunks/_04byth9._.js +33 -23
  369. package/.next/server/chunks/_04byth9._.js.map +1 -1
  370. package/.next/server/chunks/_0safx0g._.js +10 -0
  371. package/.next/server/chunks/_0safx0g._.js.map +1 -0
  372. package/.next/server/chunks/_1au4syj._.js +1 -1
  373. package/.next/server/chunks/_1au4syj._.js.map +1 -1
  374. package/.next/server/chunks/_next-internal_server_app_api_memory_entries_delete_route_actions_1a4-ad5.js +3 -0
  375. package/.next/server/chunks/_next-internal_server_app_api_memory_entries_restore_route_actions_07637mh.js +3 -0
  376. package/.next/server/chunks/_next-internal_server_app_api_memory_entries_restore_route_actions_07637mh.js.map +1 -0
  377. package/.next/server/chunks/_next-internal_server_app_api_memory_entries_route_actions_0bxuv92.js +3 -0
  378. package/.next/server/chunks/_next-internal_server_app_api_memory_entries_route_actions_0bxuv92.js.map +1 -0
  379. package/.next/server/chunks/_next-internal_server_app_api_memory_entries_save_route_actions_0bwga-2.js +3 -0
  380. package/.next/server/chunks/_next-internal_server_app_api_memory_entries_save_route_actions_0bwga-2.js.map +1 -0
  381. package/.next/server/chunks/_next-internal_server_app_api_memory_graph_route_actions_0pca9et.js +3 -0
  382. package/.next/server/chunks/_next-internal_server_app_api_memory_graph_route_actions_0pca9et.js.map +1 -0
  383. package/.next/server/chunks/_next-internal_server_app_api_memory_history_route_actions_0w5pu5p.js +3 -0
  384. package/.next/server/chunks/_next-internal_server_app_api_memory_history_route_actions_0w5pu5p.js.map +1 -0
  385. package/.next/server/chunks/ssr/{0_nd_mermaid_dist_mermaid_core_mjs_027n2yl._.js → 0_nd_mermaid_dist_mermaid_core_mjs_0itmgkm._.js} +2 -2
  386. package/.next/server/chunks/ssr/0_nd_mermaid_dist_mermaid_core_mjs_0itmgkm._.js.map +1 -0
  387. package/.next/server/chunks/ssr/{1u84_katex_dist_katex_mjs_1kb5xea._.js → 1u84_katex_dist_katex_mjs_08jn-sj._.js} +1 -1
  388. package/.next/server/chunks/ssr/1u84_katex_dist_katex_mjs_08jn-sj._.js.map +1 -0
  389. package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_1tcci-3._.js +3 -0
  390. package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_1tcci-3._.js.map +1 -0
  391. package/.next/server/chunks/ssr/{1x05_lucide-react_dist_esm_icons_14hl50o._.js → 1x05_lucide-react_dist_esm_icons_1uybmua._.js} +2 -2
  392. package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_1uybmua._.js.map +1 -0
  393. package/.next/server/chunks/ssr/[root-of-the-server]__0opgo3t._.js +14 -0
  394. package/.next/server/chunks/ssr/{[root-of-the-server]__0noc5ay._.js.map → [root-of-the-server]__0opgo3t._.js.map} +1 -1
  395. package/.next/server/chunks/ssr/[root-of-the-server]__1jv5ug1._.js +3 -0
  396. package/.next/server/chunks/ssr/{[root-of-the-server]__1pk-w2i._.js.map → [root-of-the-server]__1jv5ug1._.js.map} +1 -1
  397. package/.next/server/chunks/ssr/_04xff_2._.js +1 -1
  398. package/.next/server/chunks/ssr/_04xff_2._.js.map +1 -1
  399. package/.next/server/chunks/ssr/_0h91h9n._.js +3 -0
  400. package/.next/server/chunks/ssr/_0h91h9n._.js.map +1 -0
  401. package/.next/server/chunks/ssr/_0idb-vo._.js.map +1 -1
  402. package/.next/server/chunks/ssr/_0ip7sg0._.js +3 -0
  403. package/.next/server/chunks/ssr/_0ip7sg0._.js.map +1 -0
  404. package/.next/server/chunks/ssr/_0ks_bep._.js +3 -0
  405. package/.next/server/chunks/ssr/_0ks_bep._.js.map +1 -0
  406. package/.next/server/chunks/ssr/_0lqrpim._.js +3 -0
  407. package/.next/server/chunks/ssr/_0lqrpim._.js.map +1 -0
  408. package/.next/server/chunks/ssr/_0qp3gu7._.js +1 -1
  409. package/.next/server/chunks/ssr/_0qp3gu7._.js.map +1 -1
  410. package/.next/server/chunks/ssr/_0rmo9r-._.js +4 -0
  411. package/.next/server/chunks/ssr/_0rmo9r-._.js.map +1 -0
  412. package/.next/server/chunks/ssr/_0ust7tw._.js +4 -0
  413. package/.next/server/chunks/ssr/_0ust7tw._.js.map +1 -0
  414. package/.next/server/chunks/ssr/_197jl3g._.js +3 -0
  415. package/.next/server/chunks/ssr/_197jl3g._.js.map +1 -0
  416. package/.next/server/chunks/ssr/{src_components_docs_MarkdownRenderer_tsx_1kshaz1._.js → _19k2iz0._.js} +21 -21
  417. package/.next/server/chunks/ssr/_19k2iz0._.js.map +1 -0
  418. package/.next/server/chunks/ssr/_1el478k._.js +3 -0
  419. package/.next/server/chunks/ssr/_1el478k._.js.map +1 -0
  420. package/.next/server/chunks/ssr/_1s2ya35._.js +3 -0
  421. package/.next/server/chunks/ssr/_1s2ya35._.js.map +1 -0
  422. package/.next/server/chunks/ssr/_1t76zdx._.js +1 -1
  423. package/.next/server/chunks/ssr/_1t76zdx._.js.map +1 -1
  424. package/.next/server/chunks/ssr/{node_modules__pnpm_1qp_jvj._.js → node_modules__pnpm_00lsytc._.js} +2 -2
  425. package/.next/server/chunks/ssr/{node_modules__pnpm_1ygal0c._.js → node_modules__pnpm_02p2rqs._.js} +1 -1
  426. package/.next/server/chunks/ssr/{node_modules__pnpm_1-76qxg._.js → node_modules__pnpm_05-p8zy._.js} +1 -1
  427. package/.next/server/chunks/ssr/{node_modules__pnpm_1qmkxyo._.js → node_modules__pnpm_060kz-j._.js} +1 -1
  428. package/.next/server/chunks/ssr/{node_modules__pnpm_0ctisl0._.js → node_modules__pnpm_0_83tv8._.js} +1 -1
  429. package/.next/server/chunks/ssr/{node_modules__pnpm_0ycbjbd._.js → node_modules__pnpm_0_ajzll._.js} +2 -2
  430. package/.next/server/chunks/ssr/{node_modules__pnpm_0kpu0-2._.js → node_modules__pnpm_0abf_e9._.js} +1 -1
  431. package/.next/server/chunks/ssr/node_modules__pnpm_0al3nfy._.js +3 -0
  432. package/.next/server/chunks/ssr/node_modules__pnpm_0al3nfy._.js.map +1 -0
  433. package/.next/server/chunks/ssr/{_1ftruw6._.js → node_modules__pnpm_0aoa6rg._.js} +2 -2
  434. package/.next/server/chunks/ssr/node_modules__pnpm_0aoa6rg._.js.map +1 -0
  435. package/.next/server/chunks/ssr/{node_modules__pnpm_0fwp8jm._.js → node_modules__pnpm_0e55e7-._.js} +1 -1
  436. package/.next/server/chunks/ssr/{node_modules__pnpm_1q_hhr3._.js → node_modules__pnpm_0eub17j._.js} +2 -2
  437. package/.next/server/chunks/ssr/{node_modules__pnpm_1-r94f7._.js → node_modules__pnpm_0gp90ei._.js} +1 -1
  438. package/.next/server/chunks/ssr/{node_modules__pnpm_16u1vfb._.js → node_modules__pnpm_0iqb0_x._.js} +2 -2
  439. package/.next/server/chunks/ssr/node_modules__pnpm_0iqb0_x._.js.map +1 -0
  440. package/.next/server/chunks/ssr/{node_modules__pnpm_1uwkcin._.js → node_modules__pnpm_0j7asqf._.js} +1 -1
  441. package/.next/server/chunks/ssr/{node_modules__pnpm_1f440kx._.js → node_modules__pnpm_0jlzk5z._.js} +1 -1
  442. package/.next/server/chunks/ssr/{node_modules__pnpm_14piqi4._.js → node_modules__pnpm_0rsfj9v._.js} +1 -1
  443. package/.next/server/chunks/ssr/node_modules__pnpm_0rsfj9v._.js.map +1 -0
  444. package/.next/server/chunks/ssr/{node_modules__pnpm_01bjcv9._.js → node_modules__pnpm_0s63lee._.js} +1 -1
  445. package/.next/server/chunks/ssr/{node_modules__pnpm_189m48n._.js → node_modules__pnpm_0s7j-tv._.js} +1 -1
  446. package/.next/server/chunks/ssr/node_modules__pnpm_0s7j-tv._.js.map +1 -0
  447. package/.next/server/chunks/ssr/{node_modules__pnpm_1ssjj4u._.js → node_modules__pnpm_0up4z7m._.js} +1 -1
  448. package/.next/server/chunks/ssr/{node_modules__pnpm_06d-fdo._.js → node_modules__pnpm_0v_mhl7._.js} +2 -2
  449. package/.next/server/chunks/ssr/{node_modules__pnpm_1a48_nl._.js → node_modules__pnpm_0vuao3_._.js} +1 -1
  450. package/.next/server/chunks/ssr/{node_modules__pnpm_0vry74x._.js → node_modules__pnpm_14j18h7._.js} +2 -2
  451. package/.next/server/chunks/ssr/{node_modules__pnpm_17i6z2d._.js → node_modules__pnpm_16bj927._.js} +1 -1
  452. package/.next/server/chunks/ssr/{node_modules__pnpm_192f222._.js → node_modules__pnpm_1ch46nl._.js} +1 -1
  453. package/.next/server/chunks/ssr/{node_modules__pnpm_1txccoj._.js → node_modules__pnpm_1dc-yxd._.js} +1 -1
  454. package/.next/server/chunks/ssr/{node_modules__pnpm_1min2jl._.js → node_modules__pnpm_1fry8_2._.js} +1 -1
  455. package/.next/server/chunks/ssr/{node_modules__pnpm_1fn3ejy._.js → node_modules__pnpm_1gpkxns._.js} +1 -1
  456. package/.next/server/chunks/ssr/{node_modules__pnpm_1aa37e1._.js → node_modules__pnpm_1hqh95z._.js} +1 -1
  457. package/.next/server/chunks/ssr/{node_modules__pnpm_03qrzdb._.js → node_modules__pnpm_1oaf50x._.js} +1 -1
  458. package/.next/server/chunks/ssr/src_app_(app)_board_page_tsx_0gpfc77._.js +1 -1
  459. package/.next/server/chunks/ssr/src_app_(app)_board_page_tsx_0gpfc77._.js.map +1 -1
  460. package/.next/server/chunks/ssr/src_app_(app)_layout_tsx_1yu5hom._.js +1 -1
  461. package/.next/server/chunks/ssr/src_app_(app)_layout_tsx_1yu5hom._.js.map +1 -1
  462. package/.next/server/chunks/ssr/src_app_(app)_memory_page_tsx_19jhb1c._.js +13 -0
  463. package/.next/server/chunks/ssr/src_app_(app)_memory_page_tsx_19jhb1c._.js.map +1 -0
  464. package/.next/server/chunks/ssr/src_app_(app)_roadmap_page_tsx_0vcq3jr._.js +2 -2
  465. package/.next/server/chunks/ssr/src_app_(app)_roadmap_page_tsx_0vcq3jr._.js.map +1 -1
  466. package/.next/server/chunks/ssr/src_app_(app)_settings_page_tsx_0zevtee._.js +2 -2
  467. package/.next/server/chunks/ssr/src_app_(app)_settings_page_tsx_0zevtee._.js.map +1 -1
  468. package/.next/server/chunks/ssr/src_app_(app)_setup_page_tsx_1yids_n._.js +1 -1
  469. package/.next/server/chunks/ssr/src_app_(app)_setup_page_tsx_1yids_n._.js.map +1 -1
  470. package/.next/server/chunks/ssr/src_components_0eyr_zi._.js +3 -0
  471. package/.next/server/chunks/ssr/src_components_0eyr_zi._.js.map +1 -0
  472. package/.next/server/chunks/ssr/src_components_1s861m8._.js +3 -0
  473. package/.next/server/chunks/ssr/src_components_1s861m8._.js.map +1 -0
  474. package/.next/server/chunks/ssr/src_components_docs_editor-theme_ts_0ji4rd5._.js +3 -0
  475. package/.next/server/chunks/ssr/src_components_docs_editor-theme_ts_0ji4rd5._.js.map +1 -0
  476. package/.next/server/middleware-build-manifest.js +3 -3
  477. package/.next/server/pages/404.html +1 -1
  478. package/.next/server/pages/500.html +1 -1
  479. package/.next/server/server-reference-manifest.js +1 -1
  480. package/.next/server/server-reference-manifest.json +1 -1
  481. package/.next/static/chunks/05qw7-fs1exlt.js +1 -0
  482. package/.next/static/chunks/{16k196zyl-n9q.js → 08sqjdq-43nbt.js} +1 -1
  483. package/.next/static/chunks/09r4_4wr0aga3.js +1 -0
  484. package/.next/static/chunks/0xw_sa58zqv5s.js +1 -0
  485. package/.next/static/chunks/{3ruw8lu2_re-h.js → 1-a3-6c_nce84.js} +1 -1
  486. package/.next/static/chunks/13cz-8lvre7gj.js +1 -0
  487. package/.next/static/chunks/149fj-mseo8q3.css +1 -0
  488. package/.next/static/chunks/1c11k-snzp541.js +1 -0
  489. package/.next/static/chunks/1c459q7xpgq6r.js +3 -0
  490. package/.next/static/chunks/{40jaenrnspnlh.js → 1hh2cxd9ndxf-.js} +20 -20
  491. package/.next/static/chunks/1huu1nljqois-.js +1 -0
  492. package/.next/static/chunks/{1xyepk9227yej.js → 1n4_u3om7ye4z.js} +6 -6
  493. package/.next/static/chunks/1qhndyi2gdbkf.js +1 -0
  494. package/.next/static/chunks/1s64z5c36fv-4.js +21 -0
  495. package/.next/static/chunks/1x40-5s54wd5m.js +11 -0
  496. package/.next/static/chunks/2-0lpccy0f8bk.js +2 -0
  497. package/.next/static/chunks/24u_rc2tbkhai.js +3 -0
  498. package/.next/static/chunks/2x6eh3w-u8lk4.js +1 -0
  499. package/.next/static/chunks/30s090l71e1gs.js +1 -0
  500. package/.next/static/chunks/37u2gjz5dzhep.js +1 -0
  501. package/.next/static/chunks/3t8px4aygy1s9.js +1 -0
  502. package/.next/static/chunks/{2_xpm7qhr69n8.js → 3xqcluqa32mjv.js} +2 -2
  503. package/.next/static/chunks/44gr_v5092gwh.js +1 -0
  504. package/README.md +11 -4
  505. package/package.json +3 -2
  506. package/.next/server/chunks/11mp_@anthropic-ai_sdk_07v3boe._.js +0 -3
  507. package/.next/server/chunks/11mp_@anthropic-ai_sdk_09iva72._.js +0 -3
  508. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0bom1b1._.js +0 -3
  509. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0dvji7p._.js +0 -3
  510. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0dzo8jn._.js +0 -3
  511. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0hvqsqq._.js +0 -3
  512. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0i7i-jw._.js +0 -3
  513. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0k0iop5._.js +0 -3
  514. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0l3-6aq._.js +0 -3
  515. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0oegm3y._.js +0 -3
  516. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0p5cyes._.js +0 -3
  517. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0qw8i6_._.js +0 -3
  518. package/.next/server/chunks/11mp_@anthropic-ai_sdk_0yk-a7v._.js +0 -3
  519. package/.next/server/chunks/11mp_@anthropic-ai_sdk_11fsqvb._.js +0 -3
  520. package/.next/server/chunks/11mp_@anthropic-ai_sdk_143_7ez._.js +0 -3
  521. package/.next/server/chunks/11mp_@anthropic-ai_sdk_14a4-64._.js +0 -3
  522. package/.next/server/chunks/11mp_@anthropic-ai_sdk_17d_oma._.js +0 -3
  523. package/.next/server/chunks/11mp_@anthropic-ai_sdk_18qwuyb._.js +0 -3
  524. package/.next/server/chunks/11mp_@anthropic-ai_sdk_19au8y6._.js +0 -3
  525. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1ak_hy5._.js +0 -3
  526. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1cqa0nq._.js +0 -3
  527. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1i-x_q0._.js +0 -3
  528. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1jmtliz._.js +0 -3
  529. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1jouwlj._.js +0 -3
  530. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1r_q5um._.js +0 -3
  531. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1t959xd._.js +0 -3
  532. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1vkprw9._.js +0 -3
  533. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1y95ax9._.js +0 -3
  534. package/.next/server/chunks/11mp_@anthropic-ai_sdk_1y9misr._.js +0 -3
  535. package/.next/server/chunks/11mp_@anthropic-ai_sdk_21b8wwy._.js +0 -3
  536. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_08ecfgc._.js +0 -3
  537. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_09--sd6._.js +0 -3
  538. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0e3mwc6._.js +0 -3
  539. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0go4301._.js +0 -3
  540. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0iq9dmt._.js +0 -3
  541. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0n9ijke._.js +0 -3
  542. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0szcyrx._.js +0 -3
  543. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0xy2s3x._.js +0 -3
  544. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0yaujn7._.js +0 -3
  545. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_0z9ly74._.js +0 -3
  546. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1hmq3al._.js +0 -3
  547. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1tqk4bp._.js +0 -3
  548. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1x-hr6f._.js +0 -3
  549. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_1zsdhg0._.js +0 -3
  550. package/.next/server/chunks/11mp_@anthropic-ai_sdk_index_mjs_20t__fe._.js +0 -3
  551. package/.next/server/chunks/[root-of-the-server]__0-pmfg2._.js +0 -3
  552. package/.next/server/chunks/[root-of-the-server]__02co2yq._.js +0 -3
  553. package/.next/server/chunks/[root-of-the-server]__05g5cgo._.js +0 -3
  554. package/.next/server/chunks/[root-of-the-server]__05l6129._.js +0 -3
  555. package/.next/server/chunks/[root-of-the-server]__0b5pwze._.js +0 -3
  556. package/.next/server/chunks/[root-of-the-server]__0druay_._.js +0 -3
  557. package/.next/server/chunks/[root-of-the-server]__0p6ja6l._.js +0 -3
  558. package/.next/server/chunks/[root-of-the-server]__0q3-t8a._.js +0 -3
  559. package/.next/server/chunks/[root-of-the-server]__0vcsqzd._.js +0 -3
  560. package/.next/server/chunks/[root-of-the-server]__1-e3i_5._.js +0 -3
  561. package/.next/server/chunks/[root-of-the-server]__1-ic3af._.js +0 -3
  562. package/.next/server/chunks/[root-of-the-server]__11a4ptn._.js +0 -3
  563. package/.next/server/chunks/[root-of-the-server]__11c8641._.js +0 -3
  564. package/.next/server/chunks/[root-of-the-server]__12nzy_6._.js +0 -3
  565. package/.next/server/chunks/[root-of-the-server]__14aeqoi._.js +0 -3
  566. package/.next/server/chunks/[root-of-the-server]__15ck1wv._.js +0 -3
  567. package/.next/server/chunks/[root-of-the-server]__1613hjb._.js +0 -99
  568. package/.next/server/chunks/[root-of-the-server]__1613hjb._.js.map +0 -1
  569. package/.next/server/chunks/[root-of-the-server]__169hmq_._.js +0 -10
  570. package/.next/server/chunks/[root-of-the-server]__169hmq_._.js.map +0 -1
  571. package/.next/server/chunks/[root-of-the-server]__18kxo4a._.js +0 -3
  572. package/.next/server/chunks/[root-of-the-server]__197vw9g._.js +0 -3
  573. package/.next/server/chunks/[root-of-the-server]__19k8t87._.js +0 -3
  574. package/.next/server/chunks/[root-of-the-server]__1ezzeji._.js +0 -3
  575. package/.next/server/chunks/[root-of-the-server]__1jxu2x9._.js +0 -3
  576. package/.next/server/chunks/[root-of-the-server]__1lj_2cv._.js +0 -3
  577. package/.next/server/chunks/[root-of-the-server]__1n68akx._.js +0 -3
  578. package/.next/server/chunks/[root-of-the-server]__1npya5q._.js +0 -3
  579. package/.next/server/chunks/[root-of-the-server]__1qusy4g._.js +0 -3
  580. package/.next/server/chunks/[root-of-the-server]__1umrorf._.js +0 -3
  581. package/.next/server/chunks/[root-of-the-server]__1vh9g2o._.js +0 -3
  582. package/.next/server/chunks/[root-of-the-server]__1vq38ov._.js +0 -3
  583. package/.next/server/chunks/[root-of-the-server]__1wr0m-s._.js +0 -3
  584. package/.next/server/chunks/[root-of-the-server]__1xb0fmp._.js +0 -3
  585. package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_0wurouw._.js +0 -3
  586. package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_0wurouw._.js.map +0 -1
  587. package/.next/server/chunks/ssr/1x05_lucide-react_dist_esm_icons_14hl50o._.js.map +0 -1
  588. package/.next/server/chunks/ssr/[root-of-the-server]__0noc5ay._.js +0 -14
  589. package/.next/server/chunks/ssr/[root-of-the-server]__1pk-w2i._.js +0 -3
  590. package/.next/server/chunks/ssr/_071j6mr._.js +0 -4
  591. package/.next/server/chunks/ssr/_071j6mr._.js.map +0 -1
  592. package/.next/server/chunks/ssr/_09b02z-._.js +0 -3
  593. package/.next/server/chunks/ssr/_09b02z-._.js.map +0 -1
  594. package/.next/server/chunks/ssr/_0d0f1s1._.js +0 -3
  595. package/.next/server/chunks/ssr/_0d0f1s1._.js.map +0 -1
  596. package/.next/server/chunks/ssr/_0lnt_va._.js +0 -4
  597. package/.next/server/chunks/ssr/_0lnt_va._.js.map +0 -1
  598. package/.next/server/chunks/ssr/_0qlymco._.js +0 -3
  599. package/.next/server/chunks/ssr/_0qlymco._.js.map +0 -1
  600. package/.next/server/chunks/ssr/_0sg1oeq._.js +0 -3
  601. package/.next/server/chunks/ssr/_0sg1oeq._.js.map +0 -1
  602. package/.next/server/chunks/ssr/_14emfpq._.js +0 -3
  603. package/.next/server/chunks/ssr/_14emfpq._.js.map +0 -1
  604. package/.next/server/chunks/ssr/_1ftruw6._.js.map +0 -1
  605. package/.next/server/chunks/ssr/_1ncdakv._.js +0 -4
  606. package/.next/server/chunks/ssr/_1ncdakv._.js.map +0 -1
  607. package/.next/server/chunks/ssr/_1x7ggg5._.js +0 -4
  608. package/.next/server/chunks/ssr/_1x7ggg5._.js.map +0 -1
  609. package/.next/server/chunks/ssr/node_modules__pnpm_1q89l7p._.js +0 -3
  610. package/.next/server/chunks/ssr/node_modules__pnpm_1q89l7p._.js.map +0 -1
  611. package/.next/server/chunks/ssr/node_modules__pnpm_1xeothw._.js +0 -3
  612. package/.next/server/chunks/ssr/src_1lkod9y._.js +0 -8
  613. package/.next/server/chunks/ssr/src_1lkod9y._.js.map +0 -1
  614. package/.next/server/chunks/ssr/src_components_docs_MarkdownRenderer_tsx_1kshaz1._.js.map +0 -1
  615. package/.next/static/chunks/02cj5_i9np4sg.js +0 -3
  616. package/.next/static/chunks/0p1-hkgnm2ll2.js +0 -1
  617. package/.next/static/chunks/0pgu5q5vodev6.js +0 -1
  618. package/.next/static/chunks/0rqzvayflendx.js +0 -2
  619. package/.next/static/chunks/0vcfs7dii85tw.js +0 -21
  620. package/.next/static/chunks/13l4l-boqg8fx.js +0 -1
  621. package/.next/static/chunks/14hxe1qiaram9.js +0 -1
  622. package/.next/static/chunks/150y5rwg6gwvx.css +0 -1
  623. package/.next/static/chunks/18b5l8p0vd9f8.js +0 -1
  624. package/.next/static/chunks/1fd43t9y42wd3.js +0 -1
  625. package/.next/static/chunks/1q50zh5z-fq2k.js +0 -2
  626. package/.next/static/chunks/1tu8lforstp1o.js +0 -1
  627. package/.next/static/chunks/23-xknrz6o748.js +0 -1
  628. package/.next/static/chunks/2ls_yp4-qgb42.js +0 -1
  629. package/.next/static/chunks/2zz0ip2l_29c3.js +0 -3
  630. package/.next/static/chunks/3h4ehgq7i44wb.js +0 -6
  631. package/.next/static/chunks/3vf5nnd4xjo5_.js +0 -1
  632. package/.next/static/chunks/41oxcdcw-pcwt.js +0 -1
  633. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_00p3fu1._.js.map → 11mp_@anthropic-ai_sdk_053zt3c._.js.map} +0 -0
  634. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_01amtux._.js.map → 11mp_@anthropic-ai_sdk_0_zx69c._.js.map} +0 -0
  635. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_01jjl08._.js.map → 11mp_@anthropic-ai_sdk_0gvxfg3._.js.map} +0 -0
  636. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_071zfm8._.js.map → 11mp_@anthropic-ai_sdk_0gx5t2l._.js.map} +0 -0
  637. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_07v3boe._.js.map → 11mp_@anthropic-ai_sdk_0krkw4y._.js.map} +0 -0
  638. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_09iva72._.js.map → 11mp_@anthropic-ai_sdk_0l0xzie._.js.map} +0 -0
  639. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0bom1b1._.js.map → 11mp_@anthropic-ai_sdk_0pgjvhr._.js.map} +0 -0
  640. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0dvji7p._.js.map → 11mp_@anthropic-ai_sdk_0r-keh6._.js.map} +0 -0
  641. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0dzo8jn._.js.map → 11mp_@anthropic-ai_sdk_0tvfbjt._.js.map} +0 -0
  642. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0hvqsqq._.js.map → 11mp_@anthropic-ai_sdk_0u4b8_f._.js.map} +0 -0
  643. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0i7i-jw._.js.map → 11mp_@anthropic-ai_sdk_0ud37xh._.js.map} +0 -0
  644. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0k0iop5._.js.map → 11mp_@anthropic-ai_sdk_0v3ar-t._.js.map} +0 -0
  645. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0l3-6aq._.js.map → 11mp_@anthropic-ai_sdk_0wk0b65._.js.map} +0 -0
  646. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0oegm3y._.js.map → 11mp_@anthropic-ai_sdk_0wqkd2r._.js.map} +0 -0
  647. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0p5cyes._.js.map → 11mp_@anthropic-ai_sdk_0wypotx._.js.map} +0 -0
  648. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0qw8i6_._.js.map → 11mp_@anthropic-ai_sdk_0yuq-9s._.js.map} +0 -0
  649. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_0yk-a7v._.js.map → 11mp_@anthropic-ai_sdk_0z-e57x._.js.map} +0 -0
  650. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_11fsqvb._.js.map → 11mp_@anthropic-ai_sdk_108ltz4._.js.map} +0 -0
  651. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_143_7ez._.js.map → 11mp_@anthropic-ai_sdk_10c_i6_._.js.map} +0 -0
  652. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_14a4-64._.js.map → 11mp_@anthropic-ai_sdk_14jogs8._.js.map} +0 -0
  653. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_17d_oma._.js.map → 11mp_@anthropic-ai_sdk_15u-n39._.js.map} +0 -0
  654. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_18qwuyb._.js.map → 11mp_@anthropic-ai_sdk_194ahxu._.js.map} +0 -0
  655. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_19au8y6._.js.map → 11mp_@anthropic-ai_sdk_1ahph2t._.js.map} +0 -0
  656. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1ak_hy5._.js.map → 11mp_@anthropic-ai_sdk_1ajy77y._.js.map} +0 -0
  657. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1cqa0nq._.js.map → 11mp_@anthropic-ai_sdk_1b57s9p._.js.map} +0 -0
  658. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1i-x_q0._.js.map → 11mp_@anthropic-ai_sdk_1brf2xn._.js.map} +0 -0
  659. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1jmtliz._.js.map → 11mp_@anthropic-ai_sdk_1btfw2x._.js.map} +0 -0
  660. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1jouwlj._.js.map → 11mp_@anthropic-ai_sdk_1cyy_q6._.js.map} +0 -0
  661. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1r_q5um._.js.map → 11mp_@anthropic-ai_sdk_1fz9fev._.js.map} +0 -0
  662. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1t959xd._.js.map → 11mp_@anthropic-ai_sdk_1i_rz7h._.js.map} +0 -0
  663. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1vkprw9._.js.map → 11mp_@anthropic-ai_sdk_1it8zsv._.js.map} +0 -0
  664. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1y95ax9._.js.map → 11mp_@anthropic-ai_sdk_1jzusvd._.js.map} +0 -0
  665. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_1y9misr._.js.map → 11mp_@anthropic-ai_sdk_1lfknr2._.js.map} +0 -0
  666. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_21b8wwy._.js.map → 11mp_@anthropic-ai_sdk_1mewd-3._.js.map} +0 -0
  667. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_08ecfgc._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_036bvwf._.js.map} +0 -0
  668. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_09--sd6._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_046taqd._.js.map} +0 -0
  669. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0e3mwc6._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0bxad5f._.js.map} +0 -0
  670. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0go4301._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0g65abt._.js.map} +0 -0
  671. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0iq9dmt._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_0pb9bu1._.js.map} +0 -0
  672. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0n9ijke._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_120-cio._.js.map} +0 -0
  673. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0szcyrx._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_13uyu_v._.js.map} +0 -0
  674. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0xy2s3x._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_13x2ww0._.js.map} +0 -0
  675. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0yaujn7._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_17og64d._.js.map} +0 -0
  676. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_0z9ly74._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1e_sh4o._.js.map} +0 -0
  677. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1hmq3al._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1ecuo9i._.js.map} +0 -0
  678. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1tqk4bp._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1go8d0m._.js.map} +0 -0
  679. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1x-hr6f._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1i13ryx._.js.map} +0 -0
  680. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_1zsdhg0._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1jv_hid._.js.map} +0 -0
  681. /package/.next/server/chunks/{11mp_@anthropic-ai_sdk_index_mjs_20t__fe._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1mh5mqk._.js.map} +0 -0
  682. /package/.next/server/chunks/{[root-of-the-server]__11c8641._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1oq7e8u._.js.map} +0 -0
  683. /package/.next/server/chunks/{[root-of-the-server]__1npya5q._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1p-cq-p._.js.map} +0 -0
  684. /package/.next/server/chunks/{ssr/0_nd_mermaid_dist_mermaid_core_mjs_027n2yl._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1the3g0._.js.map} +0 -0
  685. /package/.next/server/chunks/{ssr/1u84_katex_dist_katex_mjs_1kb5xea._.js.map → 11mp_@anthropic-ai_sdk_index_mjs_1xubh-w._.js.map} +0 -0
  686. /package/.next/server/chunks/{ssr/node_modules__pnpm_14piqi4._.js.map → [root-of-the-server]__00o3mbd._.js.map} +0 -0
  687. /package/.next/server/chunks/{ssr/node_modules__pnpm_16u1vfb._.js.map → [root-of-the-server]__06z8i6e._.js.map} +0 -0
  688. /package/.next/server/chunks/{ssr/node_modules__pnpm_189m48n._.js.map → [root-of-the-server]__1kw2vct._.js.map} +0 -0
  689. /package/.next/server/chunks/{ssr/node_modules__pnpm_1xeothw._.js.map → _next-internal_server_app_api_memory_entries_delete_route_actions_1a4-ad5.js.map} +0 -0
  690. /package/.next/server/chunks/ssr/{node_modules__pnpm_1qp_jvj._.js.map → node_modules__pnpm_00lsytc._.js.map} +0 -0
  691. /package/.next/server/chunks/ssr/{node_modules__pnpm_1ygal0c._.js.map → node_modules__pnpm_02p2rqs._.js.map} +0 -0
  692. /package/.next/server/chunks/ssr/{node_modules__pnpm_1-76qxg._.js.map → node_modules__pnpm_05-p8zy._.js.map} +0 -0
  693. /package/.next/server/chunks/ssr/{node_modules__pnpm_1qmkxyo._.js.map → node_modules__pnpm_060kz-j._.js.map} +0 -0
  694. /package/.next/server/chunks/ssr/{node_modules__pnpm_0ctisl0._.js.map → node_modules__pnpm_0_83tv8._.js.map} +0 -0
  695. /package/.next/server/chunks/ssr/{node_modules__pnpm_0ycbjbd._.js.map → node_modules__pnpm_0_ajzll._.js.map} +0 -0
  696. /package/.next/server/chunks/ssr/{node_modules__pnpm_0kpu0-2._.js.map → node_modules__pnpm_0abf_e9._.js.map} +0 -0
  697. /package/.next/server/chunks/ssr/{node_modules__pnpm_0fwp8jm._.js.map → node_modules__pnpm_0e55e7-._.js.map} +0 -0
  698. /package/.next/server/chunks/ssr/{node_modules__pnpm_1q_hhr3._.js.map → node_modules__pnpm_0eub17j._.js.map} +0 -0
  699. /package/.next/server/chunks/ssr/{node_modules__pnpm_1-r94f7._.js.map → node_modules__pnpm_0gp90ei._.js.map} +0 -0
  700. /package/.next/server/chunks/ssr/{node_modules__pnpm_1uwkcin._.js.map → node_modules__pnpm_0j7asqf._.js.map} +0 -0
  701. /package/.next/server/chunks/ssr/{node_modules__pnpm_1f440kx._.js.map → node_modules__pnpm_0jlzk5z._.js.map} +0 -0
  702. /package/.next/server/chunks/ssr/{node_modules__pnpm_01bjcv9._.js.map → node_modules__pnpm_0s63lee._.js.map} +0 -0
  703. /package/.next/server/chunks/ssr/{node_modules__pnpm_1ssjj4u._.js.map → node_modules__pnpm_0up4z7m._.js.map} +0 -0
  704. /package/.next/server/chunks/ssr/{node_modules__pnpm_06d-fdo._.js.map → node_modules__pnpm_0v_mhl7._.js.map} +0 -0
  705. /package/.next/server/chunks/ssr/{node_modules__pnpm_1a48_nl._.js.map → node_modules__pnpm_0vuao3_._.js.map} +0 -0
  706. /package/.next/server/chunks/ssr/{node_modules__pnpm_0vry74x._.js.map → node_modules__pnpm_14j18h7._.js.map} +0 -0
  707. /package/.next/server/chunks/ssr/{node_modules__pnpm_17i6z2d._.js.map → node_modules__pnpm_16bj927._.js.map} +0 -0
  708. /package/.next/server/chunks/ssr/{node_modules__pnpm_192f222._.js.map → node_modules__pnpm_1ch46nl._.js.map} +0 -0
  709. /package/.next/server/chunks/ssr/{node_modules__pnpm_1txccoj._.js.map → node_modules__pnpm_1dc-yxd._.js.map} +0 -0
  710. /package/.next/server/chunks/ssr/{node_modules__pnpm_1min2jl._.js.map → node_modules__pnpm_1fry8_2._.js.map} +0 -0
  711. /package/.next/server/chunks/ssr/{node_modules__pnpm_1fn3ejy._.js.map → node_modules__pnpm_1gpkxns._.js.map} +0 -0
  712. /package/.next/server/chunks/ssr/{node_modules__pnpm_1aa37e1._.js.map → node_modules__pnpm_1hqh95z._.js.map} +0 -0
  713. /package/.next/server/chunks/ssr/{node_modules__pnpm_03qrzdb._.js.map → node_modules__pnpm_1oaf50x._.js.map} +0 -0
  714. /package/.next/static/{fGPda81_8-K4GmaNUE6KA → qCiKQ9_g49vaoQ-Fewybk}/_buildManifest.js +0 -0
  715. /package/.next/static/{fGPda81_8-K4GmaNUE6KA → qCiKQ9_g49vaoQ-Fewybk}/_clientMiddlewareManifest.js +0 -0
  716. /package/.next/static/{fGPda81_8-K4GmaNUE6KA → qCiKQ9_g49vaoQ-Fewybk}/_ssgManifest.js +0 -0
@@ -0,0 +1,3 @@
1
+ module.exports=[270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},918622,(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"))},120635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},324725,(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"))},556704,(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"))},832319,(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"))},559043,(e,t,r)=>{t.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},193695,(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"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},224361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},915069,e=>{"use strict";var t=e.i(192258),r=e.i(799501);async function a(e){let t;try{t=await e.json()}catch{throw new r.RoadmapError("Invalid JSON body")}if(!t||"object"!=typeof t||Array.isArray(t))throw new r.RoadmapError("Body must be a JSON object");return t}e.s(["errorResponse",0,function(e){let a=e instanceof r.RoadmapError?e.status:500;return t.NextResponse.json({error:e instanceof Error?e.message:String(e)},{status:a})},"jsonBody",0,a,"rootOf",0,function(e){return e.nextUrl.searchParams.get("root")||(0,r.getConfiguredRoot)()}])},194892,e=>{"use strict";var t=e.i(192258),r=e.i(799501),a=e.i(498768),n=e.i(915069);async function s(e){try{let{id:s,patch:o}=await (0,n.jsonBody)(e);if(!o||"object"!=typeof o||Array.isArray(o))throw new r.RoadmapError("patch must be an object");let i=await (0,r.updateRoadmapItem)(String(s??""),o,(0,n.rootOf)(e));return(0,a.emitUpdate)("roadmap_updated",{kind:"update",id:i.id}),t.NextResponse.json({item:i})}catch(e){return(0,n.errorResponse)(e)}}e.s(["POST",0,s])},859009,e=>{"use strict";var t=e.i(440807),r=e.i(381144),a=e.i(522639),n=e.i(165892),s=e.i(781831),o=e.i(740095),i=e.i(931106),d=e.i(253258),l=e.i(488026),u=e.i(571998),p=e.i(666314),c=e.i(598783),h=e.i(759703),x=e.i(163677),m=e.i(450859),R=e.i(193695);e.i(582432);var v=e.i(274687);let f=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/roadmap/update/route",pathname:"/api/roadmap/update",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/roadmap/update/route.ts",nextConfigOutput:"",userland:()=>e.r(194892),...{}}),{workAsyncStorage:g,workUnitAsyncStorage:w,serverHooks:y}=f;async function E(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),f.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/roadmap/update/route";g=g.replace(/\/index$/,"")||"/";let w=await f.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:y,deploymentId:E,params:b,nextConfig:C,parsedUrl:A,isDraftMode:S,prerenderManifest:q,routerServerContext:T,isOnDemandRevalidate:j,revalidateOnlyGenerated:N,resolvedPathname:P,clientReferenceManifest:O,serverActionsManifest:_}=w,k=(0,i.normalizeAppPath)(g),I=!!(q.dynamicRoutes[k]||q.routes[P]),H=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,A,!1):t.end("This page could not be found"),null);if(I&&!S){let e=!!q.routes[P],t=q.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await H();throw new R.NoFallbackError}}let U=null;!I||f.isDev||S||(U="/index"===(U=P)?"/":U);let M=!0===f.isDev||!I,D=I&&!M;_&&O&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:O,serverActionsManifest:_});let B=e.method||"GET",F=(0,s.getTracer)(),K=F.getActiveScopeSpan(),L=!!(null==T?void 0:T.isWrappedByNextServer),$=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await f.getIncrementalCache(e,C,q,$);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let V={params:b,previewProps:q.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:G,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>f.onRequestError(e,t,a,n,T)},sharedContext:{buildId:y,deploymentId:E}},X=new d.NodeNextRequest(e),J=new d.NodeNextResponse(t),W=l.NextRequestAdapter.fromNodeNextRequest(X,(0,l.signalFromNodeResponse)(t)),z=async({previousCacheEntry:r})=>{try{if(!$&&j&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await f.handle(W,V);e.fetchMetrics=V.renderOpts.fetchMetrics;let s=V.renderOpts.pendingWaitUntil;s&&a.waitUntil&&(a.waitUntil(s),s=void 0);let o=V.renderOpts.collectedTags;if(!I)return await (0,c.sendResponse)(X,J,n,s),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);o&&(t[m.NEXT_CACHE_TAGS_HEADER]=o),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,a=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=m.INFINITE_CACHE?!1!==r&&r>0?C.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await f.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:j})},!1,T),t}},Z=async(n,o)=>{try{var i,d;let n=await f.handleResponse({req:e,nextConfig:C,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:q,isRoutePPREnabled:!1,isOnDemandRevalidate:j,revalidateOnlyGenerated:N,responseGenerator:z,waitUntil:a.waitUntil,isMinimalMode:$});if(!I)return;if((null==n||null==(i=n.value)?void 0:i.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(d=n.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});$||t.setHeader("x-nextjs-cache",j?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),S&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,h.fromNodeOutgoingHttpHeaders)(n.value.headers);$&&I||s.delete(m.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,x.getCacheControlHeader)(n.cacheControl)),await (0,c.sendResponse)(X,J,new Response(n.value.body,{headers:s,status:n.value.status||200}));return}catch(t){if(t instanceof R.NoFallbackError||await f.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:j})},!1,T),I)throw t;await (0,c.sendResponse)(X,J,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:s.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route")||k,i=`${B} ${a}`;n.setAttributes({"next.route":a,"http.route":a,"next.span_name":i}),n.updateName(i),o&&o!==n&&(o.setAttribute("http.route",a),o.updateName(i))})()}};if(L&&K)await Z(K,void 0);else{let t=F.getActiveScopeSpan();await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${B} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":B,"http.target":e.url}},e=>Z(e,t)),void 0,!L)}}e.s(["handler",0,E,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:g,workUnitAsyncStorage:w})},"routeModule",0,f,"serverHooks",0,y,"workAsyncStorage",0,g,"workUnitAsyncStorage",0,w])},498768,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);e.s(["bus",0,a,"emitUpdate",0,function(e,t){a.emit({type:e,payload:t,ts:new Date().toISOString()})}])}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__1r_0uma._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/app/api/roadmap/_shared.ts","../../../src/app/api/roadmap/update/route.ts","../../../node_modules/.pnpm/next%4016.3.6_%40babel%2Bcore%407.29.7_%40types%2Bnode%4022.20.4_react-dom%4019.3.0_react%4019.3.0__react%4019.3.0/node_modules/next/src/build/templates/app-route.ts","../../../src/lib/events.ts"],"sourcesContent":["import { NextRequest, NextResponse } from 'next/server'\nimport { RoadmapError, getConfiguredRoot } from '@/lib/core'\n\nexport function rootOf(req: NextRequest): string {\n return req.nextUrl.searchParams.get('root') || getConfiguredRoot()\n}\n\n/** Parse a JSON object body; throws RoadmapError (400) on malformed input. */\nexport async function jsonBody(req: NextRequest): Promise<Record<string, unknown>> {\n let body: unknown\n try {\n body = await req.json()\n } catch {\n throw new RoadmapError('Invalid JSON body')\n }\n if (!body || typeof body !== 'object' || Array.isArray(body)) throw new RoadmapError('Body must be a JSON object')\n return body as Record<string, unknown>\n}\n\nexport function errorResponse(e: unknown) {\n const status = e instanceof RoadmapError ? e.status : 500\n return NextResponse.json({ error: e instanceof Error ? e.message : String(e) }, { status })\n}\n","import { NextRequest, NextResponse } from 'next/server'\nimport { RoadmapError, updateRoadmapItem, type UpdateRoadmapItemPatch } from '@/lib/core'\nimport { emitUpdate } from '@/lib/events'\nimport { errorResponse, jsonBody, rootOf } from '../_shared'\n\nexport async function POST(req: NextRequest) {\n try {\n const { id, patch } = await jsonBody(req)\n if (!patch || typeof patch !== 'object' || Array.isArray(patch)) throw new RoadmapError('patch must be an object')\n const item = await updateRoadmapItem(String(id ?? ''), patch as UpdateRoadmapItemPatch, rootOf(req))\n emitUpdate('roadmap_updated', { kind: 'update', id: item.id })\n return NextResponse.json({ item })\n } catch (e) {\n return errorResponse(e)\n }\n}\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 {\n addRequestMeta,\n getRequestMeta,\n setRequestMeta,\n type RequestMeta,\n} from '../../server/request-meta'\nimport {\n getTracer,\n type Span,\n SpanKind,\n SpanStatusCode,\n} 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\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 // The lazy require factory ensures that:\n // - In dev: devRequestTimingInternalsEnd is set before userland executes,\n // correctly attributing module load time to application-code rather than\n // framework internals.\n // - In all modes: async modules (route files with top-level await) are\n // handled correctly — require() returns a Promise for such modules, which\n // ensureUserland() awaits before the first request is handled.\n userland: () => require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n // In Turbopack dev mode, also provide a synchronous per-request getter so\n // server HMR updates are picked up without re-executing the entry chunk.\n // Using require() (synchronous) avoids adding async overhead that would be\n // incorrectly attributed to application-code time in devRequestTiming.\n ...(process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER\n ? {\n getUserland: () =>\n require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n }\n : {}),\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 requestMeta?: RequestMeta\n }\n) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta)\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 deploymentId,\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.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 const isWrappedByNextServer = Boolean(\n routerServerContext?.isWrappedByNextServer\n )\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'))\n\n const incrementalCache =\n getRequestMeta(req, 'incrementalCache') ||\n (await routeModule.getIncrementalCache(\n req,\n nextConfig,\n prerenderManifest,\n isMinimalMode\n ))\n\n incrementalCache?.resetRequestCache()\n ;(globalThis as any).__incrementalCache = incrementalCache\n\n const context: AppRouteRouteHandlerContext = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n useCacheTimeout: nextConfig.experimental.useCacheTimeout,\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n validationLevel: nextConfig.experimental.instantInsights.validationLevel,\n supportsDynamicResponse,\n incrementalCache,\n hmrRefreshHash: getRequestMeta(req, 'hmrRefreshHash'),\n cacheLifeProfiles: nextConfig.cacheLife,\n staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,\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 deploymentId,\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 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 routeModule.handle(nextReq, context)\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 ? // Fall back to the global `expireTime` config when the\n // route has a numeric `revalidate` but didn't declare an\n // explicit `expire` (e.g. via `cacheLife`). This mirrors the\n // build-time fallback in `build/index.ts` so cache entries\n // and the response Cache-Control header agree on the route's\n // effective expire. Routes that opt out of revalidation\n // (`revalidate: false`) or that are dynamic (`revalidate: 0`)\n // keep `expire: undefined`.\n revalidate !== false && revalidate > 0\n ? nextConfig.expireTime\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(nodeNextReq, nodeNextRes, response, pendingWaitUntil)\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 handleResponse = async (\n currentSpan: Span | undefined,\n parentSpan: Span | undefined\n ) => {\n try {\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\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\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\n } finally {\n ;(() => {\n if (!currentSpan) {\n return\n }\n\n let statusCode = res.statusCode\n\n currentSpan.setAttributes({\n 'http.status_code': statusCode,\n 'next.rsc': false,\n })\n\n if (statusCode && statusCode >= 500) {\n // For 5xx status codes: SHOULD be set to 'Error' span status.\n // x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status\n currentSpan.setStatus({\n code: SpanStatusCode.ERROR,\n })\n // For span status 'Error', SHOULD set 'error.type' attribute.\n currentSpan.setAttribute('error.type', statusCode.toString())\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') || normalizedSrcPage\n const name = `${method} ${route}`\n\n currentSpan.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n currentSpan.updateName(name)\n\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== currentSpan) {\n parentSpan.setAttribute('http.route', route)\n parentSpan.updateName(name)\n }\n })()\n }\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 (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan, undefined)\n } else {\n let parentSpan = tracer.getActiveScopeSpan()\n await tracer.withPropagatedContext(\n req.headers,\n () =>\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 (span) => handleResponse(span, parentSpan)\n ),\n undefined,\n !isWrappedByNextServer\n )\n }\n}\n","/**\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"],"names":["rootOf","req","nextUrl","searchParams","get","jsonBody","body","json","Array","isArray","errorResponse","e","status","error","Error","message","String","POST","id","patch","item","kind","AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","setRequestMeta","getTracer","SpanKind","SpanStatusCode","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","routeModule","definition","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","userland","require","TURBOPACK","__NEXT_DEV_SERVER","getUserland","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","res","ctx","requestMeta","isDev","hrtime","bigint","srcPage","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","deploymentId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","isWrappedByNextServer","isMinimalMode","incrementalCache","getIncrementalCache","resetRequestCache","globalThis","__incrementalCache","context","previewProps","preview","renderOpts","experimental","authInterrupts","useCacheTimeout","cacheComponents","validationLevel","instantInsights","hmrRefreshHash","cacheLifeProfiles","cacheLife","staticPageGenerationTimeout","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","responseGenerator","previousCacheEntry","setHeader","response","handle","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","expireTime","cacheEntry","value","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","handleResponse","currentSpan","parentSpan","routeKind","isFallback","isRoutePPREnabled","isMiss","delete","getHeader","set","Response","setAttributes","setStatus","code","ERROR","setAttribute","toString","rootSpanAttributes","getRootSpanAttributes","handleRequest","console","warn","route","name","updateName","withPropagatedContext","trace","spanName","SERVER","attributes","url","span","EventBus","listeners","Set","subscribe","fn","add","emit","event","forEach","globalForBus","bus","vibedocBus","emitUpdate","payload","ts","Date","toISOString"],"mappings":"ipDAAA,IAAA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QAOO,eAAeK,EAASJ,CAAgB,EAC7C,IAAIK,EACJ,GAAI,CACFA,EAAO,MAAML,EAAIM,IAAI,EACvB,CAAE,KAAM,CACN,MAAM,IAAI,EAAA,YAAY,CAAC,oBACzB,CACA,GAAI,CAACD,GAAwB,UAAhB,OAAOA,GAAqBE,MAAMC,OAAO,CAACH,GAAO,MAAM,IAAI,EAAA,YAAY,CAAC,8BACrF,OAAOA,CACT,wBAEO,SAAuBK,AAAdD,CAAwB,EACtC,IAAME,EAASD,aAAa,EAAA,YAAY,CAAGA,EAAEC,MAAM,CAAG,IACtD,OAAO,EAAA,YAAY,CAACL,IAAI,CAAC,CAAEM,MAAOF,aAAaG,MAAQH,EAAEI,OAAO,CAAGC,OAAOL,EAAG,EAAG,QAAEC,CAAO,EAC3F,4BAnBO,SAASZ,AAAOC,CAAgB,EACrC,OAAOA,EAAIC,OAAO,CAACC,YAAY,CAACC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,GAClE,6BCLA,IAAA,EAAA,EAAA,CAAA,CAAA,QACA,EAA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AAgB,EACvDH,EAAIJ,IAAI,CAAC,MAAExD,UAAM+D,EAASC,GAAI,IAAIC,OAAOC,WAAW,EAAG,EACzD","ignoreList":[2]}
1
+ {"version":3,"sources":["../../../src/app/api/roadmap/_shared.ts","../../../src/app/api/roadmap/update/route.ts","../../../node_modules/.pnpm/next%4016.3.6_%40babel%2Bcore%407.29.7_%40types%2Bnode%4022.20.4_react-dom%4019.3.0_react%4019.3.0__react%4019.3.0/node_modules/next/src/build/templates/app-route.ts","../../../src/lib/events.ts"],"sourcesContent":["import { NextRequest, NextResponse } from 'next/server'\nimport { RoadmapError, getConfiguredRoot } from '@/lib/core'\n\nexport function rootOf(req: NextRequest): string {\n return req.nextUrl.searchParams.get('root') || getConfiguredRoot()\n}\n\n/** Parse a JSON object body; throws RoadmapError (400) on malformed input. */\nexport async function jsonBody(req: NextRequest): Promise<Record<string, unknown>> {\n let body: unknown\n try {\n body = await req.json()\n } catch {\n throw new RoadmapError('Invalid JSON body')\n }\n if (!body || typeof body !== 'object' || Array.isArray(body)) throw new RoadmapError('Body must be a JSON object')\n return body as Record<string, unknown>\n}\n\nexport function errorResponse(e: unknown) {\n const status = e instanceof RoadmapError ? e.status : 500\n return NextResponse.json({ error: e instanceof Error ? e.message : String(e) }, { status })\n}\n","import { NextRequest, NextResponse } from 'next/server'\nimport { RoadmapError, updateRoadmapItem, type UpdateRoadmapItemPatch } from '@/lib/core'\nimport { emitUpdate } from '@/lib/events'\nimport { errorResponse, jsonBody, rootOf } from '../_shared'\n\nexport async function POST(req: NextRequest) {\n try {\n const { id, patch } = await jsonBody(req)\n if (!patch || typeof patch !== 'object' || Array.isArray(patch)) throw new RoadmapError('patch must be an object')\n const item = await updateRoadmapItem(String(id ?? ''), patch as UpdateRoadmapItemPatch, rootOf(req))\n emitUpdate('roadmap_updated', { kind: 'update', id: item.id })\n return NextResponse.json({ item })\n } catch (e) {\n return errorResponse(e)\n }\n}\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 {\n addRequestMeta,\n getRequestMeta,\n setRequestMeta,\n type RequestMeta,\n} from '../../server/request-meta'\nimport {\n getTracer,\n type Span,\n SpanKind,\n SpanStatusCode,\n} 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\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 // The lazy require factory ensures that:\n // - In dev: devRequestTimingInternalsEnd is set before userland executes,\n // correctly attributing module load time to application-code rather than\n // framework internals.\n // - In all modes: async modules (route files with top-level await) are\n // handled correctly — require() returns a Promise for such modules, which\n // ensureUserland() awaits before the first request is handled.\n userland: () => require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n // In Turbopack dev mode, also provide a synchronous per-request getter so\n // server HMR updates are picked up without re-executing the entry chunk.\n // Using require() (synchronous) avoids adding async overhead that would be\n // incorrectly attributed to application-code time in devRequestTiming.\n ...(process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER\n ? {\n getUserland: () =>\n require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n }\n : {}),\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 requestMeta?: RequestMeta\n }\n) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta)\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 deploymentId,\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.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 const isWrappedByNextServer = Boolean(\n routerServerContext?.isWrappedByNextServer\n )\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'))\n\n const incrementalCache =\n getRequestMeta(req, 'incrementalCache') ||\n (await routeModule.getIncrementalCache(\n req,\n nextConfig,\n prerenderManifest,\n isMinimalMode\n ))\n\n incrementalCache?.resetRequestCache()\n ;(globalThis as any).__incrementalCache = incrementalCache\n\n const context: AppRouteRouteHandlerContext = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n useCacheTimeout: nextConfig.experimental.useCacheTimeout,\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n validationLevel: nextConfig.experimental.instantInsights.validationLevel,\n supportsDynamicResponse,\n incrementalCache,\n hmrRefreshHash: getRequestMeta(req, 'hmrRefreshHash'),\n cacheLifeProfiles: nextConfig.cacheLife,\n staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,\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 deploymentId,\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 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 routeModule.handle(nextReq, context)\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 ? // Fall back to the global `expireTime` config when the\n // route has a numeric `revalidate` but didn't declare an\n // explicit `expire` (e.g. via `cacheLife`). This mirrors the\n // build-time fallback in `build/index.ts` so cache entries\n // and the response Cache-Control header agree on the route's\n // effective expire. Routes that opt out of revalidation\n // (`revalidate: false`) or that are dynamic (`revalidate: 0`)\n // keep `expire: undefined`.\n revalidate !== false && revalidate > 0\n ? nextConfig.expireTime\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(nodeNextReq, nodeNextRes, response, pendingWaitUntil)\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 handleResponse = async (\n currentSpan: Span | undefined,\n parentSpan: Span | undefined\n ) => {\n try {\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\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\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\n } finally {\n ;(() => {\n if (!currentSpan) {\n return\n }\n\n let statusCode = res.statusCode\n\n currentSpan.setAttributes({\n 'http.status_code': statusCode,\n 'next.rsc': false,\n })\n\n if (statusCode && statusCode >= 500) {\n // For 5xx status codes: SHOULD be set to 'Error' span status.\n // x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status\n currentSpan.setStatus({\n code: SpanStatusCode.ERROR,\n })\n // For span status 'Error', SHOULD set 'error.type' attribute.\n currentSpan.setAttribute('error.type', statusCode.toString())\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') || normalizedSrcPage\n const name = `${method} ${route}`\n\n currentSpan.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n currentSpan.updateName(name)\n\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== currentSpan) {\n parentSpan.setAttribute('http.route', route)\n parentSpan.updateName(name)\n }\n })()\n }\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 (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan, undefined)\n } else {\n let parentSpan = tracer.getActiveScopeSpan()\n await tracer.withPropagatedContext(\n req.headers,\n () =>\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 (span) => handleResponse(span, parentSpan)\n ),\n undefined,\n !isWrappedByNextServer\n )\n }\n}\n","/**\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"],"names":["rootOf","req","nextUrl","searchParams","get","jsonBody","body","json","Array","isArray","errorResponse","e","status","error","Error","message","String","POST","id","patch","item","kind","AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","setRequestMeta","getTracer","SpanKind","SpanStatusCode","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","routeModule","definition","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","userland","require","TURBOPACK","__NEXT_DEV_SERVER","getUserland","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","res","ctx","requestMeta","isDev","hrtime","bigint","srcPage","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","deploymentId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","isWrappedByNextServer","isMinimalMode","incrementalCache","getIncrementalCache","resetRequestCache","globalThis","__incrementalCache","context","previewProps","preview","renderOpts","experimental","authInterrupts","useCacheTimeout","cacheComponents","validationLevel","instantInsights","hmrRefreshHash","cacheLifeProfiles","cacheLife","staticPageGenerationTimeout","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","responseGenerator","previousCacheEntry","setHeader","response","handle","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","expireTime","cacheEntry","value","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","handleResponse","currentSpan","parentSpan","routeKind","isFallback","isRoutePPREnabled","isMiss","delete","getHeader","set","Response","setAttributes","setStatus","code","ERROR","setAttribute","toString","rootSpanAttributes","getRootSpanAttributes","handleRequest","console","warn","route","name","updateName","withPropagatedContext","trace","spanName","SERVER","attributes","url","span","EventBus","listeners","Set","subscribe","fn","add","emit","event","forEach","globalForBus","bus","vibedocBus","emitUpdate","payload","ts","Date","toISOString"],"mappings":"6sDAAA,IAAA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QAOO,eAAeK,EAASJ,CAAgB,EAC7C,IAAIK,EACJ,GAAI,CACFA,EAAO,MAAML,EAAIM,IAAI,EACvB,CAAE,KAAM,CACN,MAAM,IAAI,EAAA,YAAY,CAAC,oBACzB,CACA,GAAI,CAACD,GAAwB,UAAhB,OAAOA,GAAqBE,MAAMC,OAAO,CAACH,GAAO,MAAM,IAAI,EAAA,YAAY,CAAC,8BACrF,OAAOA,CACT,wBAEO,SAAuBK,AAAdD,CAAwB,EACtC,IAAME,EAASD,aAAa,EAAA,YAAY,CAAGA,EAAEC,MAAM,CAAG,IACtD,OAAO,EAAA,YAAY,CAACL,IAAI,CAAC,CAAEM,MAAOF,aAAaG,MAAQH,EAAEI,OAAO,CAAGC,OAAOL,EAAG,EAAG,QAAEC,CAAO,EAC3F,4BAnBO,SAASZ,AAAOC,CAAgB,EACrC,OAAOA,EAAIC,OAAO,CAACC,YAAY,CAACC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,GAClE,6BCLA,IAAA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QAEO,eAAea,EAAKhB,CAAgB,EACzC,GAAI,CACF,GAAM,CAAEiB,IAAE,OAAEC,CAAK,CAAE,C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iled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},918622,(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"))},120635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},324725,(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"))},556704,(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"))},832319,(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"))},559043,(e,t,r)=>{t.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},193695,(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"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},224361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},400829,e=>{e.v(t=>Promise.all(["server/chunks/11mp_@anthropic-ai_sdk_0v3ar-t._.js","server/chunks/node_modules__pnpm_01mvudn._.js"].map(t=>e.l(t))).then(()=>t(292987)))},930631,e=>{"use strict";var t=e.i(192258),r=e.i(799501),a=e.i(915069);async function n(e){try{return t.NextResponse.json({entries:await (0,r.listEntries)((0,a.rootOf)(e))})}catch(e){return(0,a.errorResponse)(e)}}e.s(["GET",0,n])},126991,e=>{"use strict";var t=e.i(440807),r=e.i(381144),a=e.i(522639),n=e.i(165892),s=e.i(781831),o=e.i(740095),i=e.i(931106),l=e.i(253258),d=e.i(488026),u=e.i(571998),p=e.i(666314),c=e.i(598783),x=e.i(759703),h=e.i(163677),m=e.i(450859),v=e.i(193695);e.i(582432);var R=e.i(274687);let f=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/memory/entries/route",pathname:"/api/memory/entries",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/memory/entries/route.ts",nextConfigOutput:"",userland:()=>e.r(930631),...{}}),{workAsyncStorage:g,workUnitAsyncStorage:y,serverHooks:w}=f;async function E(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),f.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/memory/entries/route";g=g.replace(/\/index$/,"")||"/";let y=await f.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!y)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,deploymentId:E,params:C,nextConfig:b,parsedUrl:A,isDraftMode:q,prerenderManifest:T,routerServerContext:_,isOnDemandRevalidate:j,revalidateOnlyGenerated:S,resolvedPathname:N,clientReferenceManifest:P,serverActionsManifest:O}=y,k=(0,i.normalizeAppPath)(g),H=!!(T.dynamicRoutes[k]||T.routes[N]),I=async()=>((null==_?void 0:_.render404)?await _.render404(e,t,A,!1):t.end("This page could not be found"),null);if(H&&!q){let e=!!T.routes[N],t=T.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(b.adapterPath)return await I();throw new v.NoFallbackError}}let M=null;!H||f.isDev||q||(M="/index"===(M=N)?"/":M);let U=!0===f.isDev||!H,D=H&&!U;O&&P&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:P,serverActionsManifest:O});let B=e.method||"GET",F=(0,s.getTracer)(),K=F.getActiveScopeSpan(),L=!!(null==_?void 0:_.isWrappedByNextServer),$=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await f.getIncrementalCache(e,b,T,$);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let V={params:C,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts,useCacheTimeout:b.experimental.useCacheTimeout},cacheComponents:!!b.cacheComponents,validationLevel:b.experimental.instantInsights.validationLevel,supportsDynamicResponse:U,incrementalCache:G,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:b.cacheLife,staticPageGenerationTimeout:b.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>f.onRequestError(e,t,a,n,_)},sharedContext:{buildId:w,deploymentId:E}},X=new l.NodeNextRequest(e),J=new l.NodeNextResponse(t),W=d.NextRequestAdapter.fromNodeNextRequest(X,(0,d.signalFromNodeResponse)(t)),z=async({previousCacheEntry:r})=>{try{if(!$&&j&&S&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await f.handle(W,V);e.fetchMetrics=V.renderOpts.fetchMetrics;let s=V.renderOpts.pendingWaitUntil;s&&a.waitUntil&&(a.waitUntil(s),s=void 0);let o=V.renderOpts.collectedTags;if(!H)return await (0,c.sendResponse)(X,J,n,s),null;{let e=await n.blob(),t=(0,x.toNodeOutgoingHttpHeaders)(n.headers);o&&(t[m.NEXT_CACHE_TAGS_HEADER]=o),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,a=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=m.INFINITE_CACHE?!1!==r&&r>0?b.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await f.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:j})},!1,_),t}},Z=async(n,o)=>{try{var i,l;let n=await f.handleResponse({req:e,nextConfig:b,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:j,revalidateOnlyGenerated:S,responseGenerator:z,waitUntil:a.waitUntil,isMinimalMode:$});if(!H)return;if((null==n||null==(i=n.value)?void 0:i.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(l=n.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});$||t.setHeader("x-nextjs-cache",j?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),q&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,x.fromNodeOutgoingHttpHeaders)(n.value.headers);$&&H||s.delete(m.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,h.getCacheControlHeader)(n.cacheControl)),await (0,c.sendResponse)(X,J,new Response(n.value.body,{headers:s,status:n.value.status||200}));return}catch(t){if(t instanceof v.NoFallbackError||await f.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:j})},!1,_),H)throw t;await (0,c.sendResponse)(X,J,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:s.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route")||k,i=`${B} ${a}`;n.setAttributes({"next.route":a,"http.route":a,"next.span_name":i}),n.updateName(i),o&&o!==n&&(o.setAttribute("http.route",a),o.updateName(i))})()}};if(L&&K)await Z(K,void 0);else{let t=F.getActiveScopeSpan();await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${B} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":B,"http.target":e.url}},e=>Z(e,t)),void 0,!L)}}e.s(["handler",0,E,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:g,workUnitAsyncStorage:y})},"routeModule",0,f,"serverHooks",0,w,"workAsyncStorage",0,g,"workUnitAsyncStorage",0,y])},915069,e=>{"use strict";var t=e.i(192258),r=e.i(799501);async function a(e){let t;try{t=await e.json()}catch{throw new r.RoadmapError("Invalid JSON body")}if(!t||"object"!=typeof t||Array.isArray(t))throw new r.RoadmapError("Body must be a JSON object");return t}e.s(["errorResponse",0,function(e){let a=e instanceof r.RoadmapError?e.status:500;return t.NextResponse.json({error:e instanceof Error?e.message:String(e)},{status:a})},"jsonBody",0,a,"rootOf",0,function(e){return e.nextUrl.searchParams.get("root")||(0,r.getConfiguredRoot)()}])}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__1rjgpbm._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/app/api/memory/entries/route.ts","../../../node_modules/.pnpm/next%4016.3.6_%40babel%2Bcore%407.29.7_%40types%2Bnode%4022.20.4_react-dom%4019.3.0_react%4019.3.0__react%4019.3.0/node_modules/next/src/build/templates/app-route.ts","../../../src/app/api/roadmap/_shared.ts"],"sourcesContent":["import { NextRequest, NextResponse } from 'next/server'\nimport { listEntries } from '@/lib/core'\nimport { errorResponse, rootOf } from '../../roadmap/_shared'\n\n/** Every knowledge entry (R046) with its body, for the Memory tab. */\nexport async function GET(req: NextRequest) {\n try {\n return NextResponse.json({ entries: await listEntries(rootOf(req)) })\n } catch (e) {\n return errorResponse(e)\n }\n}\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 {\n addRequestMeta,\n getRequestMeta,\n setRequestMeta,\n type RequestMeta,\n} from '../../server/request-meta'\nimport {\n getTracer,\n type Span,\n SpanKind,\n SpanStatusCode,\n} 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\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 // The lazy require factory ensures that:\n // - In dev: devRequestTimingInternalsEnd is set before userland executes,\n // correctly attributing module load time to application-code rather than\n // framework internals.\n // - In all modes: async modules (route files with top-level await) are\n // handled correctly — require() returns a Promise for such modules, which\n // ensureUserland() awaits before the first request is handled.\n userland: () => require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n // In Turbopack dev mode, also provide a synchronous per-request getter so\n // server HMR updates are picked up without re-executing the entry chunk.\n // Using require() (synchronous) avoids adding async overhead that would be\n // incorrectly attributed to application-code time in devRequestTiming.\n ...(process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER\n ? {\n getUserland: () =>\n require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n }\n : {}),\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 requestMeta?: RequestMeta\n }\n) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta)\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 deploymentId,\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.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 const isWrappedByNextServer = Boolean(\n routerServerContext?.isWrappedByNextServer\n )\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'))\n\n const incrementalCache =\n getRequestMeta(req, 'incrementalCache') ||\n (await routeModule.getIncrementalCache(\n req,\n nextConfig,\n prerenderManifest,\n isMinimalMode\n ))\n\n incrementalCache?.resetRequestCache()\n ;(globalThis as any).__incrementalCache = incrementalCache\n\n const context: AppRouteRouteHandlerContext = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n useCacheTimeout: nextConfig.experimental.useCacheTimeout,\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n validationLevel: nextConfig.experimental.instantInsights.validationLevel,\n supportsDynamicResponse,\n incrementalCache,\n hmrRefreshHash: getRequestMeta(req, 'hmrRefreshHash'),\n cacheLifeProfiles: nextConfig.cacheLife,\n staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,\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 deploymentId,\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 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 routeModule.handle(nextReq, context)\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 ? // Fall back to the global `expireTime` config when the\n // route has a numeric `revalidate` but didn't declare an\n // explicit `expire` (e.g. via `cacheLife`). This mirrors the\n // build-time fallback in `build/index.ts` so cache entries\n // and the response Cache-Control header agree on the route's\n // effective expire. Routes that opt out of revalidation\n // (`revalidate: false`) or that are dynamic (`revalidate: 0`)\n // keep `expire: undefined`.\n revalidate !== false && revalidate > 0\n ? nextConfig.expireTime\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(nodeNextReq, nodeNextRes, response, pendingWaitUntil)\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 handleResponse = async (\n currentSpan: Span | undefined,\n parentSpan: Span | undefined\n ) => {\n try {\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\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\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\n } finally {\n ;(() => {\n if (!currentSpan) {\n return\n }\n\n let statusCode = res.statusCode\n\n currentSpan.setAttributes({\n 'http.status_code': statusCode,\n 'next.rsc': false,\n })\n\n if (statusCode && statusCode >= 500) {\n // For 5xx status codes: SHOULD be set to 'Error' span status.\n // x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status\n currentSpan.setStatus({\n code: SpanStatusCode.ERROR,\n })\n // For span status 'Error', SHOULD set 'error.type' attribute.\n currentSpan.setAttribute('error.type', statusCode.toString())\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') || normalizedSrcPage\n const name = `${method} ${route}`\n\n currentSpan.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n currentSpan.updateName(name)\n\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== currentSpan) {\n parentSpan.setAttribute('http.route', route)\n parentSpan.updateName(name)\n }\n })()\n }\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 (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan, undefined)\n } else {\n let parentSpan = tracer.getActiveScopeSpan()\n await tracer.withPropagatedContext(\n req.headers,\n () =>\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 (span) => handleResponse(span, parentSpan)\n ),\n undefined,\n !isWrappedByNextServer\n )\n }\n}\n","import { NextRequest, NextResponse } from 'next/server'\nimport { RoadmapError, getConfiguredRoot } from '@/lib/core'\n\nexport function rootOf(req: NextRequest): string {\n return req.nextUrl.searchParams.get('root') || getConfiguredRoot()\n}\n\n/** Parse a JSON object body; throws RoadmapError (400) on malformed input. */\nexport async function jsonBody(req: NextRequest): Promise<Record<string, unknown>> {\n let body: unknown\n try {\n body = await req.json()\n } catch {\n throw new RoadmapError('Invalid JSON body')\n }\n if (!body || typeof body !== 'object' || Array.isArray(body)) throw new RoadmapError('Body must be a JSON object')\n return body as Record<string, unknown>\n}\n\nexport function errorResponse(e: unknown) {\n const status = e instanceof RoadmapError ? e.status : 500\n return NextResponse.json({ error: e instanceof Error ? e.message : String(e) }, { status })\n}\n"],"names":["GET","req","json","entries","e","AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","setRequestMeta","getTracer","SpanKind","SpanStatusCode","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","userland","require","TURBOPACK","__NEXT_DEV_SERVER","getUserland","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","res","ctx","requestMeta","isDev","hrtime","bigint","srcPage","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","deploymentId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","isWrappedByNextServer","isMinimalMode","incrementalCache","getIncrementalCache","resetRequestCache","globalThis","__incrementalCache","context","previewProps","preview","renderOpts","experimental","authInterrupts","useCacheTimeout","cacheComponents","validationLevel","instantInsights","hmrRefreshHash","cacheLifeProfiles","cacheLife","staticPageGenerationTimeout","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","responseGenerator","previousCacheEntry","setHeader","response","handle","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","expireTime","cacheEntry","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","handleResponse","currentSpan","parentSpan","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","get","set","Response","setAttributes","setStatus","code","ERROR","setAttribute","toString","rootSpanAttributes","getRootSpanAttributes","handleRequest","console","warn","route","name","updateName","withPropagatedContext","trace","spanName","SERVER","attributes","url","span","rootOf","nextUrl","searchParams","jsonBody","Array","isArray","errorResponse","message","String"],"mappings":"u3DAAA,IAAA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QAGO,eAAeA,EAAIC,CAAgB,EACxC,GAAI,CACF,OAAO,EAAA,YAAY,CAACC,IAAI,CAAC,CAAEC,QAAS,MAAM,CAAA,EAAA,EAAA,WAAW,AAAX,EAAY,CAAA,EAAA,EAAA,MAAA,AAAM,EAACF,GAAM,EACrE,CAAE,MAAOG,EAAG,CACV,MAAO,CAAA,EAAA,EAAA,aAAa,AAAb,EAAcA,EACvB,CACF,2CCXA,IAAA,EAIO,EAAA,CAHLC,AAGK,CAAA,QACP,EAA0B,EAAyB,CAAA,AAA1CC,CAA0C,EAAA,EAJ9B,GAGwC,CAE7D,AADkB,EACwB,EAAA,AAFnC,CAEEC,AAAiC,CAAA,EADhB,CAC8C,KAExE,EAGEI,EAEK,CAPgBH,AAGrBC,AAIK,CAAA,KAFS,GAGhB,EAIgB,AAZkB,EAa3B,CANA,AAELG,AAIK,AAVS,CAUT,CATLF,CASK,EAbmC,GAOR,CAOlC,AALW,EAK2B,AAHpCG,EAGoC,CAA7BE,AAA6B,CADA,AACA,CAVtB,EACdJ,CAMQ,EACRG,E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mD,AAAc/M,CAAU,EACtC,IAAM2J,EAAS3J,aAAa,EAAA,YAAY,CAAGA,EAAE2J,MAAM,CAAG,IACtD,OAAO,EAAA,YAAY,CAAC7J,IAAI,CAAC,CAAEgI,MAAO9H,aAAa6K,MAAQ7K,EAAEgN,OAAO,CAAGC,OAAOjN,EAAG,EAAG,QAAE2J,CAAO,EAC3F,4BAnBO,SAAS8C,AAAO5M,CAAgB,EACrC,OAAOA,EAAI6M,OAAO,CAACC,YAAY,CAAC1B,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,GAClE","ignoreList":[1]}
@@ -0,0 +1,3 @@
1
+ module.exports=[270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},918622,(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"))},120635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},324725,(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"))},556704,(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"))},832319,(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"))},559043,(e,t,r)=>{t.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},193695,(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"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},224361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},400829,e=>{e.v(t=>Promise.all(["server/chunks/11mp_@anthropic-ai_sdk_14jogs8._.js","server/chunks/node_modules__pnpm_01mvudn._.js"].map(t=>e.l(t))).then(()=>t(292987)))},509318,e=>{"use strict";var t=e.i(192258),r=e.i(799501),a=e.i(498768);async function s(e){try{let s=e.nextUrl.searchParams.get("root")||(0,r.getConfiguredRoot)(),{files:n}=await e.json(),i=[];for(let e of n)if(!e.skipped)try{await (0,r.createDoc)(e.path,e.content,s),(0,a.emitUpdate)("doc_created",{path:e.path}),i.push({path:e.path,success:!0})}catch(t){"EEXIST"===t.code?i.push({path:e.path,success:!1,error:"already exists"}):i.push({path:e.path,success:!1,error:t.message})}return t.NextResponse.json({results:i})}catch(e){return t.NextResponse.json({error:e.message},{status:500})}}e.s(["POST",0,s])},683651,e=>{"use strict";var t=e.i(440807),r=e.i(381144),a=e.i(522639),s=e.i(165892),n=e.i(781831),i=e.i(740095),o=e.i(931106),l=e.i(253258),u=e.i(488026),d=e.i(571998),p=e.i(666314),c=e.i(598783),h=e.i(759703),x=e.i(163677),v=e.i(450859),m=e.i(193695);e.i(582432);var R=e.i(274687);let g=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/setup/write/route",pathname:"/api/setup/write",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/setup/write/route.ts",nextConfigOutput:"",userland:()=>e.r(509318),...{}}),{workAsyncStorage:f,workUnitAsyncStorage:w,serverHooks:E}=g;async function y(e,t,a){a.requestMeta&&(0,s.setRequestMeta)(e,a.requestMeta),g.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/setup/write/route";f=f.replace(/\/index$/,"")||"/";let w=await g.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,deploymentId:y,params:C,nextConfig:b,parsedUrl:q,isDraftMode:T,prerenderManifest:A,routerServerContext:_,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,resolvedPathname:j,clientReferenceManifest:N,serverActionsManifest:k}=w,O=(0,o.normalizeAppPath)(f),H=!!(A.dynamicRoutes[O]||A.routes[j]),I=async()=>((null==_?void 0:_.render404)?await _.render404(e,t,q,!1):t.end("This page could not be found"),null);if(H&&!T){let e=!!A.routes[j],t=A.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(b.adapterPath)return await I();throw new m.NoFallbackError}}let U=null;!H||g.isDev||T||(U="/index"===(U=j)?"/":U);let M=!0===g.isDev||!H,D=H&&!M;k&&N&&(0,i.setManifestsSingleton)({page:f,clientReferenceManifest:N,serverActionsManifest:k});let B=e.method||"GET",F=(0,n.getTracer)(),K=F.getActiveScopeSpan(),L=!!(null==_?void 0:_.isWrappedByNextServer),$=!!(0,s.getRequestMeta)(e,"minimalMode"),G=(0,s.getRequestMeta)(e,"incrementalCache")||await g.getIncrementalCache(e,b,A,$);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let X={params:C,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts,useCacheTimeout:b.experimental.useCacheTimeout},cacheComponents:!!b.cacheComponents,validationLevel:b.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:G,hmrRefreshHash:(0,s.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:b.cacheLife,staticPageGenerationTimeout:b.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,s)=>g.onRequestError(e,t,a,s,_)},sharedContext:{buildId:E,deploymentId:y}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t)),Z=async({previousCacheEntry:r})=>{try{if(!$&&S&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await g.handle(z,X);e.fetchMetrics=X.renderOpts.fetchMetrics;let n=X.renderOpts.pendingWaitUntil;n&&a.waitUntil&&(a.waitUntil(n),n=void 0);let i=X.renderOpts.collectedTags;if(!H)return await (0,c.sendResponse)(V,W,s,n),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);i&&(t[v.NEXT_CACHE_TAGS_HEADER]=i),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,a=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=v.INFINITE_CACHE?!1!==r&&r>0?b.expireTime:void 0:X.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await g.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:S})},!1,_),t}},J=async(s,i)=>{try{var o,l;let s=await g.handleResponse({req:e,nextConfig:b,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,responseGenerator:Z,waitUntil:a.waitUntil,isMinimalMode:$});if(!H)return;if((null==s||null==(o=s.value)?void 0:o.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==s||null==(l=s.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});$||t.setHeader("x-nextjs-cache",S?"REVALIDATED":s.isMiss?"MISS":s.isStale?"STALE":"HIT"),T&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let n=(0,h.fromNodeOutgoingHttpHeaders)(s.value.headers);$&&H||n.delete(v.NEXT_CACHE_TAGS_HEADER),!s.cacheControl||t.getHeader("Cache-Control")||n.get("Cache-Control")||n.set("Cache-Control",(0,x.getCacheControlHeader)(s.cacheControl)),await (0,c.sendResponse)(V,W,new Response(s.value.body,{headers:n,status:s.value.status||200}));return}catch(t){if(t instanceof m.NoFallbackError||await g.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:S})},!1,_),H)throw t;await (0,c.sendResponse)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!s)return;let e=t.statusCode;s.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(s.setStatus({code:n.SpanStatusCode.ERROR}),s.setAttribute("error.type",e.toString()));let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route")||O,o=`${B} ${a}`;s.setAttributes({"next.route":a,"http.route":a,"next.span_name":o}),s.updateName(o),i&&i!==s&&(i.setAttribute("http.route",a),i.updateName(o))})()}};if(L&&K)await J(K,void 0);else{let t=F.getActiveScopeSpan();await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${B} ${f}`,kind:n.SpanKind.SERVER,attributes:{"http.method":B,"http.target":e.url}},e=>J(e,t)),void 0,!L)}}e.s(["handler",0,y,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:f,workUnitAsyncStorage:w})},"routeModule",0,g,"serverHooks",0,E,"workAsyncStorage",0,f,"workUnitAsyncStorage",0,w])},498768,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);e.s(["bus",0,a,"emitUpdate",0,function(e,t){a.emit({type:e,payload:t,ts:new Date().toISOString()})}])}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__1spley9._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/app/api/setup/write/route.ts","../../../node_modules/.pnpm/next%4016.3.6_%40babel%2Bcore%407.29.7_%40types%2Bnode%4022.20.4_react-dom%4019.3.0_react%4019.3.0__react%4019.3.0/node_modules/next/src/build/templates/app-route.ts","../../../src/lib/events.ts"],"sourcesContent":["import { NextRequest, NextResponse } from 'next/server'\r\nimport { createDoc, getConfiguredRoot } from '@/lib/core'\r\nimport { emitUpdate } from '@/lib/events'\r\n\r\ninterface FileToWrite {\r\n path: string\r\n content: string\r\n skipped?: boolean\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 { files } = await req.json() as { files: FileToWrite[] }\r\n\r\n const results: { path: string; success: boolean; error?: string }[] = []\r\n\r\n for (const file of files) {\r\n if (file.skipped) continue\r\n\r\n try {\r\n await createDoc(file.path, file.content, root)\r\n emitUpdate('doc_created', { path: file.path })\r\n results.push({ path: file.path, success: true })\r\n } catch (e) {\r\n const err = e as NodeJS.ErrnoException\r\n if (err.code === 'EEXIST') {\r\n results.push({ path: file.path, success: false, error: 'already exists' })\r\n } else {\r\n results.push({ path: file.path, success: false, error: (e as Error).message })\r\n }\r\n }\r\n }\r\n\r\n return NextResponse.json({ results })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 500 })\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 {\n addRequestMeta,\n getRequestMeta,\n setRequestMeta,\n type RequestMeta,\n} from '../../server/request-meta'\nimport {\n getTracer,\n type Span,\n SpanKind,\n SpanStatusCode,\n} 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\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 // The lazy require factory ensures that:\n // - In dev: devRequestTimingInternalsEnd is set before userland executes,\n // correctly attributing module load time to application-code rather than\n // framework internals.\n // - In all modes: async modules (route files with top-level await) are\n // handled correctly — require() returns a Promise for such modules, which\n // ensureUserland() awaits before the first request is handled.\n userland: () => require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n // In Turbopack dev mode, also provide a synchronous per-request getter so\n // server HMR updates are picked up without re-executing the entry chunk.\n // Using require() (synchronous) avoids adding async overhead that would be\n // incorrectly attributed to application-code time in devRequestTiming.\n ...(process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER\n ? {\n getUserland: () =>\n require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n }\n : {}),\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 requestMeta?: RequestMeta\n }\n) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta)\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 deploymentId,\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.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 const isWrappedByNextServer = Boolean(\n routerServerContext?.isWrappedByNextServer\n )\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'))\n\n const incrementalCache =\n getRequestMeta(req, 'incrementalCache') ||\n (await routeModule.getIncrementalCache(\n req,\n nextConfig,\n prerenderManifest,\n isMinimalMode\n ))\n\n incrementalCache?.resetRequestCache()\n ;(globalThis as any).__incrementalCache = incrementalCache\n\n const context: AppRouteRouteHandlerContext = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n useCacheTimeout: nextConfig.experimental.useCacheTimeout,\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n validationLevel: nextConfig.experimental.instantInsights.validationLevel,\n supportsDynamicResponse,\n incrementalCache,\n hmrRefreshHash: getRequestMeta(req, 'hmrRefreshHash'),\n cacheLifeProfiles: nextConfig.cacheLife,\n staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,\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 deploymentId,\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 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 routeModule.handle(nextReq, context)\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 ? // Fall back to the global `expireTime` config when the\n // route has a numeric `revalidate` but didn't declare an\n // explicit `expire` (e.g. via `cacheLife`). This mirrors the\n // build-time fallback in `build/index.ts` so cache entries\n // and the response Cache-Control header agree on the route's\n // effective expire. Routes that opt out of revalidation\n // (`revalidate: false`) or that are dynamic (`revalidate: 0`)\n // keep `expire: undefined`.\n revalidate !== false && revalidate > 0\n ? nextConfig.expireTime\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(nodeNextReq, nodeNextRes, response, pendingWaitUntil)\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 handleResponse = async (\n currentSpan: Span | undefined,\n parentSpan: Span | undefined\n ) => {\n try {\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\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\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\n } finally {\n ;(() => {\n if (!currentSpan) {\n return\n }\n\n let statusCode = res.statusCode\n\n currentSpan.setAttributes({\n 'http.status_code': statusCode,\n 'next.rsc': false,\n })\n\n if (statusCode && statusCode >= 500) {\n // For 5xx status codes: SHOULD be set to 'Error' span status.\n // x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status\n currentSpan.setStatus({\n code: SpanStatusCode.ERROR,\n })\n // For span status 'Error', SHOULD set 'error.type' attribute.\n currentSpan.setAttribute('error.type', statusCode.toString())\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') || normalizedSrcPage\n const name = `${method} ${route}`\n\n currentSpan.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n currentSpan.updateName(name)\n\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== currentSpan) {\n parentSpan.setAttribute('http.route', route)\n parentSpan.updateName(name)\n }\n })()\n }\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 (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan, undefined)\n } else {\n let parentSpan = tracer.getActiveScopeSpan()\n await tracer.withPropagatedContext(\n req.headers,\n () =>\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 (span) => handleResponse(span, parentSpan)\n ),\n undefined,\n !isWrappedByNextServer\n )\n }\n}\n","/**\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"],"names":["POST","req","root","nextUrl","searchParams","get","files","json","results","file","skipped","path","content","push","success","e","err","code","error","message","status","AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","setRequestMeta","getTracer","SpanKind","SpanStatusCode","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","userland","require","TURBOPACK","__NEXT_DEV_SERVER","getUserland","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","res","ctx","requestMeta","isDev","hrtime","bigint","srcPage","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","deploymentId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","isWrappedByNextServer","isMinimalMode","incrementalCache","getIncrementalCache","resetRequestCache","globalThis","__incrementalCache","context","previewProps","preview","renderOpts","experimental","authInterrupts","useCacheTimeout","cacheComponents","validationLevel","instantInsights","hmrRefreshHash","cacheLifeProfiles","cacheLife","staticPageGenerationTimeout","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","responseGenerator","previousCacheEntry","setHeader","response","handle","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","expireTime","cacheEntry","value","body","Buffer","from","arrayBuffer","cacheControl","isStale","routerKind","routePath","routeType","revalidateReason","handleResponse","currentSpan","parentSpan","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","setAttributes","setStatus","ERROR","setAttribute","toString","rootSpanAttributes","getRootSpanAttributes","handleRequest","console","warn","route","name","updateName","withPropagatedContext","trace","spanName","SERVER","attributes","url","span","EventBus","listeners","Set","subscribe","fn","add","emit","event","forEach","globalForBus","bus","vibedocBus","emitUpdate","payload","ts","Date","toISOString"],"mappings":"2zDAAA,IAAA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QAQO,eAAeA,EAAKC,CAAgB,EACzC,GAAI,CACF,IAAMC,EAAOD,EAAIE,OAAO,CAACC,YAAY,CAACC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,IAChE,OAAEC,CAAK,CAAE,CAAG,MAAML,EAAIM,IAAI,GAE1BC,EAAgE,EAAE,CAExE,IAAK,IAAMC,KAAQH,EACjB,IADwB,AACpBG,EAAKC,OAAO,CAEhB,CAFkB,EAEd,CACF,MAAM,CAAA,EAAA,EAAA,SAAA,AAAS,EAACD,EAAKE,IAAI,CAAEF,EAAKG,OAAO,CAAEV,GACzC,CAAA,EAAA,EAAA,UAAA,AAAU,EAAC,cAAe,CAAES,KAAMF,EAAKE,IAAI,AAAC,GAC5CH,EAAQK,IAAI,CAAC,CAAEF,KAAMF,EAAKE,IAAI,CAAEG,SAAS,CAAK,EAChD,CAAE,MAAOC,EAAG,CAEO,UAAU,CADfA,AACRC,EAAIC,IAAI,CACVT,EAAQK,IAAI,CAAC,CAAEF,KAAMF,EAAKE,IAAI,CAAEG,SAAS,EAAOI,MAAO,gBAAiB,GAExEV,EAAQK,IAAI,CAAC,CAAEF,KAAMF,EAAKE,IAAI,CAAEG,SAAS,EAAOI,MAAQH,EAAYI,OAAO,AAA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,KAAMpB,EAAAA,QAAAA,CAASuL,MAAM,CACrBC,WAAY,CACV,cAAelG,EACf,cAAelH,EAAIqN,GACrB,AADwB,CAE1B,EACA,AAACC,GAAS/B,EAAe+B,EAAM7B,SAEnC1C,EACA,CAACzB,EAEL,CACF,mCAhgBA,SAAShG,EACP,MAAA,CAAA,EAAOC,EAAAA,UAAAA,EAAY,kBACjB4C,uBACAC,CACF,EACF,kHCtFA,OAAMmJ,EACIC,UAAY,IAAIC,GAAe,CAEvCC,UAAUC,CAAY,CAAE,CAEtB,OADA,IAAI,CAACH,SAAS,CAACI,GAAG,CAACD,GACZ,IAAM,IAAI,CAACH,SAAS,CAACzB,MAAM,CAAC4B,EACrC,CAEAE,KAAKC,CAAc,CAAE,CACnB,IAAI,CAACN,SAAS,CAACO,OAAO,CAACJ,IACrB,GAAI,CAAEA,EAAGG,EAAO,CAAE,KAAM,CAAC,CAC3B,EACF,CACF,CAGA,IAAME,EAAerG,WACRsG,EAAMD,EAAaE,UAAU,GAAKF,CAAD,CAAcE,UAAU,CAAG,IAAIX,CAAAA,CAAU,+BAEhF,SAASY,AAAW9D,CAAY,CAAE+D,CAAgB,EACvDH,EAAIJ,IAAI,CAAC,MAAExD,UAAM+D,EAASC,GAAI,IAAIC,OAAOC,WAAW,EAAG,EACzD","ignoreList":[1]}
1
+ {"version":3,"sources":["../../../src/app/api/setup/write/route.ts","../../../node_modules/.pnpm/next%4016.3.6_%40babel%2Bcore%407.29.7_%40types%2Bnode%4022.20.4_react-dom%4019.3.0_react%4019.3.0__react%4019.3.0/node_modules/next/src/build/templates/app-route.ts","../../../src/lib/events.ts"],"sourcesContent":["import { NextRequest, NextResponse } from 'next/server'\r\nimport { createDoc, getConfiguredRoot } from '@/lib/core'\r\nimport { emitUpdate } from '@/lib/events'\r\n\r\ninterface FileToWrite {\r\n path: string\r\n content: string\r\n skipped?: boolean\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 { files } = await req.json() as { files: FileToWrite[] }\r\n\r\n const results: { path: string; success: boolean; error?: string }[] = []\r\n\r\n for (const file of files) {\r\n if (file.skipped) continue\r\n\r\n try {\r\n await createDoc(file.path, file.content, root)\r\n emitUpdate('doc_created', { path: file.path })\r\n results.push({ path: file.path, success: true })\r\n } catch (e) {\r\n const err = e as NodeJS.ErrnoException\r\n if (err.code === 'EEXIST') {\r\n results.push({ path: file.path, success: false, error: 'already exists' })\r\n } else {\r\n results.push({ path: file.path, success: false, error: (e as Error).message })\r\n }\r\n }\r\n }\r\n\r\n return NextResponse.json({ results })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 500 })\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 {\n addRequestMeta,\n getRequestMeta,\n setRequestMeta,\n type RequestMeta,\n} from '../../server/request-meta'\nimport {\n getTracer,\n type Span,\n SpanKind,\n SpanStatusCode,\n} 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\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 // The lazy require factory ensures that:\n // - In dev: devRequestTimingInternalsEnd is set before userland executes,\n // correctly attributing module load time to application-code rather than\n // framework internals.\n // - In all modes: async modules (route files with top-level await) are\n // handled correctly — require() returns a Promise for such modules, which\n // ensureUserland() awaits before the first request is handled.\n userland: () => require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n // In Turbopack dev mode, also provide a synchronous per-request getter so\n // server HMR updates are picked up without re-executing the entry chunk.\n // Using require() (synchronous) avoids adding async overhead that would be\n // incorrectly attributed to application-code time in devRequestTiming.\n ...(process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER\n ? {\n getUserland: () =>\n require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n }\n : {}),\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 requestMeta?: RequestMeta\n }\n) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta)\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 deploymentId,\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.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 const isWrappedByNextServer = Boolean(\n routerServerContext?.isWrappedByNextServer\n )\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'))\n\n const incrementalCache =\n getRequestMeta(req, 'incrementalCache') ||\n (await routeModule.getIncrementalCache(\n req,\n nextConfig,\n prerenderManifest,\n isMinimalMode\n ))\n\n incrementalCache?.resetRequestCache()\n ;(globalThis as any).__incrementalCache = incrementalCache\n\n const context: AppRouteRouteHandlerContext = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n useCacheTimeout: nextConfig.experimental.useCacheTimeout,\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n validationLevel: nextConfig.experimental.instantInsights.validationLevel,\n supportsDynamicResponse,\n incrementalCache,\n hmrRefreshHash: getRequestMeta(req, 'hmrRefreshHash'),\n cacheLifeProfiles: nextConfig.cacheLife,\n staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,\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 deploymentId,\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 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 routeModule.handle(nextReq, context)\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 ? // Fall back to the global `expireTime` config when the\n // route has a numeric `revalidate` but didn't declare an\n // explicit `expire` (e.g. via `cacheLife`). This mirrors the\n // build-time fallback in `build/index.ts` so cache entries\n // and the response Cache-Control header agree on the route's\n // effective expire. Routes that opt out of revalidation\n // (`revalidate: false`) or that are dynamic (`revalidate: 0`)\n // keep `expire: undefined`.\n revalidate !== false && revalidate > 0\n ? nextConfig.expireTime\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(nodeNextReq, nodeNextRes, response, pendingWaitUntil)\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 handleResponse = async (\n currentSpan: Span | undefined,\n parentSpan: Span | undefined\n ) => {\n try {\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\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\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\n } finally {\n ;(() => {\n if (!currentSpan) {\n return\n }\n\n let statusCode = res.statusCode\n\n currentSpan.setAttributes({\n 'http.status_code': statusCode,\n 'next.rsc': false,\n })\n\n if (statusCode && statusCode >= 500) {\n // For 5xx status codes: SHOULD be set to 'Error' span status.\n // x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status\n currentSpan.setStatus({\n code: SpanStatusCode.ERROR,\n })\n // For span status 'Error', SHOULD set 'error.type' attribute.\n currentSpan.setAttribute('error.type', statusCode.toString())\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') || normalizedSrcPage\n const name = `${method} ${route}`\n\n currentSpan.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n currentSpan.updateName(name)\n\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== currentSpan) {\n parentSpan.setAttribute('http.route', route)\n parentSpan.updateName(name)\n }\n })()\n }\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 (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan, undefined)\n } else {\n let parentSpan = tracer.getActiveScopeSpan()\n await tracer.withPropagatedContext(\n req.headers,\n () =>\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 (span) => handleResponse(span, parentSpan)\n ),\n undefined,\n !isWrappedByNextServer\n )\n }\n}\n","/**\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"],"names":["POST","req","root","nextUrl","searchParams","get","files","json","results","file","skipped","path","content","push","success","e","err","code","error","message","status","AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","setRequestMeta","getTracer","SpanKind","SpanStatusCode","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","userland","require","TURBOPACK","__NEXT_DEV_SERVER","getUserland","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","res","ctx","requestMeta","isDev","hrtime","bigint","srcPage","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","deploymentId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","isWrappedByNextServer","isMinimalMode","incrementalCache","getIncrementalCache","resetRequestCache","globalThis","__incrementalCache","context","previewProps","preview","renderOpts","experimental","authInterrupts","useCacheTimeout","cacheComponents","validationLevel","instantInsights","hmrRefreshHash","cacheLifeProfiles","cacheLife","staticPageGenerationTimeout","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","responseGenerator","previousCacheEntry","setHeader","response","handle","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","expireTime","cacheEntry","value","body","Buffer","from","arrayBuffer","cacheControl","isStale","routerKind","routePath","routeType","revalidateReason","handleResponse","currentSpan","parentSpan","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","setAttributes","setStatus","ERROR","setAttribute","toString","rootSpanAttributes","getRootSpanAttributes","handleRequest","console","warn","route","name","updateName","withPropagatedContext","trace","spanName","SERVER","attributes","url","span","EventBus","listeners","Set","subscribe","fn","add","emit","event","forEach","globalForBus","bus","vibedocBus","emitUpdate","payload","ts","Date","toISOString"],"mappings":"u3DAAA,IAAA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QACA,EAAA,EAAA,CAAA,CAAA,QAQO,eAAeA,EAAKC,CAAgB,EACzC,GAAI,CACF,IAAMC,EAAOD,EAAIE,OAAO,CAACC,YAAY,CAACC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,IAChE,OAAEC,CAAK,CAAE,CAAG,MAAML,EAAIM,IAAI,GAE1BC,EAAgE,EAAE,CAExE,IAAK,IAAMC,KAAQH,EACjB,IADwB,AACpBG,EAAKC,OAAO,CAEhB,CAFkB,EAEd,CACF,MAAM,CAAA,EAAA,EAAA,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AM+D,UAASC,GAAI,IAAIC,OAAOC,WAAW,EAAG,EACzD","ignoreList":[1]}
@@ -0,0 +1,3 @@
1
+ module.exports=[270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},918622,(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"))},120635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},324725,(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"))},556704,(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"))},832319,(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"))},559043,(e,t,r)=>{t.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},193695,(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"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},224361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},492144,e=>{"use strict";var t=e.i(192258),r=e.i(799501),a=e.i(915069);async function n(e){try{let n=(0,a.rootOf)(e),s=e.nextUrl.searchParams.get("entry")??"",o=await (0,r.getEntry)(s,n);if(!o)throw new r.RoadmapError(`Entry ${s||"(none)"} not found`,404);let i=e.nextUrl.searchParams.get("sha");if(null!==i)return t.NextResponse.json({text:await (0,r.getFileAtCommit)(o.file,i,n)});return t.NextResponse.json(await (0,r.getFileHistory)(o.file,n))}catch(e){return(0,a.errorResponse)(e)}}e.s(["GET",0,n])},640958,e=>{"use strict";var t=e.i(440807),r=e.i(381144),a=e.i(522639),n=e.i(165892),s=e.i(781831),o=e.i(740095),i=e.i(931106),l=e.i(253258),u=e.i(488026),d=e.i(571998),p=e.i(666314),c=e.i(598783),x=e.i(759703),h=e.i(163677),m=e.i(450859),R=e.i(193695);e.i(582432);var v=e.i(274687);let f=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/memory/history/route",pathname:"/api/memory/history",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/memory/history/route.ts",nextConfigOutput:"",userland:()=>e.r(492144),...{}}),{workAsyncStorage:g,workUnitAsyncStorage:y,serverHooks:w}=f;async function E(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),f.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/memory/history/route";g=g.replace(/\/index$/,"")||"/";let y=await f.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!y)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,deploymentId:E,params:C,nextConfig:A,parsedUrl:b,isDraftMode:q,prerenderManifest:T,routerServerContext:N,isOnDemandRevalidate:P,revalidateOnlyGenerated:S,resolvedPathname:j,clientReferenceManifest:O,serverActionsManifest:_}=y,k=(0,i.normalizeAppPath)(g),H=!!(T.dynamicRoutes[k]||T.routes[j]),I=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,b,!1):t.end("This page could not be found"),null);if(H&&!q){let e=!!T.routes[j],t=T.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(A.adapterPath)return await I();throw new R.NoFallbackError}}let U=null;!H||f.isDev||q||(U="/index"===(U=j)?"/":U);let M=!0===f.isDev||!H,D=H&&!M;_&&O&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:O,serverActionsManifest:_});let F=e.method||"GET",B=(0,s.getTracer)(),K=B.getActiveScopeSpan(),$=!!(null==N?void 0:N.isWrappedByNextServer),L=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await f.getIncrementalCache(e,A,T,L);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let V={params:C,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts,useCacheTimeout:A.experimental.useCacheTimeout},cacheComponents:!!A.cacheComponents,validationLevel:A.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:G,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:A.cacheLife,staticPageGenerationTimeout:A.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>f.onRequestError(e,t,a,n,N)},sharedContext:{buildId:w,deploymentId:E}},X=new l.NodeNextRequest(e),J=new l.NodeNextResponse(t),W=u.NextRequestAdapter.fromNodeNextRequest(X,(0,u.signalFromNodeResponse)(t)),z=async({previousCacheEntry:r})=>{try{if(!L&&P&&S&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await f.handle(W,V);e.fetchMetrics=V.renderOpts.fetchMetrics;let s=V.renderOpts.pendingWaitUntil;s&&a.waitUntil&&(a.waitUntil(s),s=void 0);let o=V.renderOpts.collectedTags;if(!H)return await (0,c.sendResponse)(X,J,n,s),null;{let e=await n.blob(),t=(0,x.toNodeOutgoingHttpHeaders)(n.headers);o&&(t[m.NEXT_CACHE_TAGS_HEADER]=o),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,a=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=m.INFINITE_CACHE?!1!==r&&r>0?A.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await f.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,N),t}},Z=async(n,o)=>{try{var i,l;let n=await f.handleResponse({req:e,nextConfig:A,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:S,responseGenerator:z,waitUntil:a.waitUntil,isMinimalMode:L});if(!H)return;if((null==n||null==(i=n.value)?void 0:i.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(l=n.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",P?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),q&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,x.fromNodeOutgoingHttpHeaders)(n.value.headers);L&&H||s.delete(m.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,h.getCacheControlHeader)(n.cacheControl)),await (0,c.sendResponse)(X,J,new Response(n.value.body,{headers:s,status:n.value.status||200}));return}catch(t){if(t instanceof R.NoFallbackError||await f.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,N),H)throw t;await (0,c.sendResponse)(X,J,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:s.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let r=B.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route")||k,i=`${F} ${a}`;n.setAttributes({"next.route":a,"http.route":a,"next.span_name":i}),n.updateName(i),o&&o!==n&&(o.setAttribute("http.route",a),o.updateName(i))})()}};if($&&K)await Z(K,void 0);else{let t=B.getActiveScopeSpan();await B.withPropagatedContext(e.headers,()=>B.trace(d.BaseServerSpan.handleRequest,{spanName:`${F} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":F,"http.target":e.url}},e=>Z(e,t)),void 0,!$)}}e.s(["handler",0,E,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:g,workUnitAsyncStorage:y})},"routeModule",0,f,"serverHooks",0,w,"workAsyncStorage",0,g,"workUnitAsyncStorage",0,y])},915069,e=>{"use strict";var t=e.i(192258),r=e.i(799501);async function a(e){let t;try{t=await e.json()}catch{throw new r.RoadmapError("Invalid JSON body")}if(!t||"object"!=typeof t||Array.isArray(t))throw new r.RoadmapError("Body must be a JSON object");return t}e.s(["errorResponse",0,function(e){let a=e instanceof r.RoadmapError?e.status:500;return t.NextResponse.json({error:e instanceof Error?e.message:String(e)},{status:a})},"jsonBody",0,a,"rootOf",0,function(e){return e.nextUrl.searchParams.get("root")||(0,r.getConfiguredRoot)()}])}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__1wcd2x9._.js.map