vibedoc 1.0.5 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +2 -0
- package/.next/build-manifest.json +6 -6
- package/.next/prerender-manifest.json +27 -3
- package/.next/routes-manifest.json +12 -0
- package/.next/server/app/(app)/activity/page/build-manifest.json +4 -4
- package/.next/server/app/(app)/activity/page.js +1 -1
- package/.next/server/app/(app)/activity/page.js.nft.json +1 -1
- package/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/board/page/build-manifest.json +4 -4
- package/.next/server/app/(app)/board/page.js +1 -1
- package/.next/server/app/(app)/board/page.js.nft.json +1 -1
- package/.next/server/app/(app)/board/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/docs/page/build-manifest.json +4 -4
- package/.next/server/app/(app)/docs/page.js +1 -1
- package/.next/server/app/(app)/docs/page.js.nft.json +1 -1
- package/.next/server/app/(app)/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/explorer/page/app-paths-manifest.json +3 -0
- package/.next/server/app/(app)/explorer/page/build-manifest.json +17 -0
- package/.next/server/app/(app)/explorer/page/next-font-manifest.json +6 -0
- package/.next/server/app/(app)/explorer/page/react-loadable-manifest.json +9 -0
- package/.next/server/app/(app)/explorer/page/server-reference-manifest.json +4 -0
- package/.next/server/app/(app)/explorer/page.js +16 -0
- package/.next/server/app/(app)/explorer/page.js.map +5 -0
- package/.next/server/app/(app)/explorer/page.js.nft.json +1 -0
- package/.next/server/app/(app)/explorer/page_client-reference-manifest.js +2 -0
- package/.next/server/app/(app)/memory/page/build-manifest.json +4 -4
- package/.next/server/app/(app)/memory/page.js +1 -1
- package/.next/server/app/(app)/memory/page.js.nft.json +1 -1
- package/.next/server/app/(app)/memory/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/settings/page/build-manifest.json +4 -4
- package/.next/server/app/(app)/settings/page.js +1 -1
- package/.next/server/app/(app)/settings/page.js.nft.json +1 -1
- package/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/(app)/setup/page/build-manifest.json +4 -4
- package/.next/server/app/(app)/setup/page.js +1 -1
- package/.next/server/app/(app)/setup/page.js.nft.json +1 -1
- package/.next/server/app/(app)/setup/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error/page/build-manifest.json +4 -4
- package/.next/server/app/_global-error/page.js +1 -1
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +2 -2
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page/build-manifest.json +4 -4
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/activity.html +1 -1
- package/.next/server/app/activity.rsc +4 -4
- package/.next/server/app/activity.segments/!KGFwcCk/activity/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/activity.segments/!KGFwcCk/activity.segment.rsc +1 -1
- package/.next/server/app/activity.segments/!KGFwcCk.segment.rsc +2 -2
- package/.next/server/app/activity.segments/_full.segment.rsc +4 -4
- package/.next/server/app/activity.segments/_head.segment.rsc +1 -1
- package/.next/server/app/activity.segments/_index.segment.rsc +2 -2
- package/.next/server/app/activity.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/activity/route.js +1 -1
- package/.next/server/app/api/activity/route.js.nft.json +1 -1
- package/.next/server/app/api/backlinks/route.js +1 -1
- package/.next/server/app/api/backlinks/route.js.nft.json +1 -1
- package/.next/server/app/api/context/route.js +1 -1
- package/.next/server/app/api/context/route.js.nft.json +1 -1
- package/.next/server/app/api/decisions/route.js +1 -1
- package/.next/server/app/api/decisions/route.js.nft.json +1 -1
- package/.next/server/app/api/docs/route.js +1 -1
- package/.next/server/app/api/docs/route.js.nft.json +1 -1
- package/.next/server/app/api/explorer/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/explorer/route/build-manifest.json +11 -0
- package/.next/server/app/api/explorer/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/explorer/route.js +7 -0
- package/.next/server/app/api/explorer/route.js.map +5 -0
- package/.next/server/app/api/explorer/route.js.nft.json +1 -0
- package/.next/server/app/api/explorer/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/mcp/route.js +1 -1
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/projects/route.js +1 -1
- package/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js +1 -1
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/generate/route.js +1 -1
- package/.next/server/app/api/setup/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/write/route.js +1 -1
- package/.next/server/app/api/setup/write/route.js.nft.json +1 -1
- package/.next/server/app/api/summary/route.js +1 -1
- package/.next/server/app/api/summary/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/route.js +1 -1
- package/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/.next/server/app/board.html +1 -1
- package/.next/server/app/board.rsc +4 -4
- package/.next/server/app/board.segments/!KGFwcCk/board/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/board.segments/!KGFwcCk/board.segment.rsc +1 -1
- package/.next/server/app/board.segments/!KGFwcCk.segment.rsc +2 -2
- package/.next/server/app/board.segments/_full.segment.rsc +4 -4
- package/.next/server/app/board.segments/_head.segment.rsc +1 -1
- package/.next/server/app/board.segments/_index.segment.rsc +2 -2
- package/.next/server/app/board.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/docs.html +1 -1
- package/.next/server/app/docs.rsc +4 -4
- package/.next/server/app/docs.segments/!KGFwcCk/docs/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/docs.segments/!KGFwcCk/docs.segment.rsc +1 -1
- package/.next/server/app/docs.segments/!KGFwcCk.segment.rsc +2 -2
- package/.next/server/app/docs.segments/_full.segment.rsc +4 -4
- package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/docs.segments/_index.segment.rsc +2 -2
- package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/explorer.html +1 -0
- package/.next/server/app/explorer.meta +16 -0
- package/.next/server/app/explorer.rsc +20 -0
- package/.next/server/app/explorer.segments/!KGFwcCk/explorer/__PAGE__.segment.rsc +9 -0
- package/.next/server/app/explorer.segments/!KGFwcCk/explorer.segment.rsc +4 -0
- package/.next/server/app/explorer.segments/!KGFwcCk.segment.rsc +7 -0
- package/.next/server/app/explorer.segments/_full.segment.rsc +20 -0
- package/.next/server/app/explorer.segments/_head.segment.rsc +5 -0
- package/.next/server/app/explorer.segments/_index.segment.rsc +5 -0
- package/.next/server/app/explorer.segments/_tree.segment.rsc +2 -0
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/memory.html +1 -1
- package/.next/server/app/memory.rsc +4 -4
- package/.next/server/app/memory.segments/!KGFwcCk/memory/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/memory.segments/!KGFwcCk/memory.segment.rsc +1 -1
- package/.next/server/app/memory.segments/!KGFwcCk.segment.rsc +2 -2
- package/.next/server/app/memory.segments/_full.segment.rsc +4 -4
- package/.next/server/app/memory.segments/_head.segment.rsc +1 -1
- package/.next/server/app/memory.segments/_index.segment.rsc +2 -2
- package/.next/server/app/memory.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/page/build-manifest.json +4 -4
- package/.next/server/app/page.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings.html +1 -1
- package/.next/server/app/settings.rsc +4 -4
- package/.next/server/app/settings.segments/!KGFwcCk/settings/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings.segments/!KGFwcCk/settings.segment.rsc +1 -1
- package/.next/server/app/settings.segments/!KGFwcCk.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_full.segment.rsc +4 -4
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/setup.html +1 -1
- package/.next/server/app/setup.rsc +4 -4
- package/.next/server/app/setup.segments/!KGFwcCk/setup/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/setup.segments/!KGFwcCk/setup.segment.rsc +1 -1
- package/.next/server/app/setup.segments/!KGFwcCk.segment.rsc +2 -2
- package/.next/server/app/setup.segments/_full.segment.rsc +4 -4
- package/.next/server/app/setup.segments/_head.segment.rsc +1 -1
- package/.next/server/app/setup.segments/_index.segment.rsc +2 -2
- package/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
- package/.next/server/app-paths-manifest.json +2 -0
- package/.next/server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js +30 -0
- package/.next/server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0e51ee32._.js +2 -2
- package/.next/server/chunks/{[root-of-the-server]__4c3dfb3f._.js → [root-of-the-server]__1453b4c1._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__4c3dfb3f._.js.map → [root-of-the-server]__1453b4c1._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__2bbe3bdc._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__2d66d57b._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__2d66d57b._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__6e3e5106._.js → [root-of-the-server]__54666fd5._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__6e3e5106._.js.map → [root-of-the-server]__54666fd5._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__73d016a0._.js +10 -8
- package/.next/server/chunks/[root-of-the-server]__73d016a0._.js.map +1 -1
- package/.next/server/chunks/{[root-of-the-server]__e613d0e1._.js → [root-of-the-server]__7a7e1eb1._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__e613d0e1._.js.map → [root-of-the-server]__7a7e1eb1._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__8bc3c77f._.js → [root-of-the-server]__8e790c7b._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__8bc3c77f._.js.map → [root-of-the-server]__8e790c7b._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__87ac3243._.js → [root-of-the-server]__9d1f6722._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__87ac3243._.js.map → [root-of-the-server]__9d1f6722._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__4a7ee700._.js → [root-of-the-server]__a0a8fb65._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__4a7ee700._.js.map → [root-of-the-server]__a0a8fb65._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__296062eb._.js → [root-of-the-server]__a7d932af._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__296062eb._.js.map → [root-of-the-server]__a7d932af._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0e70f066._.js → [root-of-the-server]__a9dbcc03._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0e70f066._.js.map → [root-of-the-server]__a9dbcc03._.js.map} +1 -1
- package/.next/server/chunks/[root-of-the-server]__aa7a40ec._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__aa7a40ec._.js.map +1 -0
- package/.next/server/chunks/{[root-of-the-server]__50ed178b._.js → [root-of-the-server]__bacbf09e._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__50ed178b._.js.map → [root-of-the-server]__bacbf09e._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1bb30fa4._.js → [root-of-the-server]__bd44b8e4._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1bb30fa4._.js.map → [root-of-the-server]__bd44b8e4._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__2127a831._.js → [root-of-the-server]__dfd36dc0._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__d35c92a2._.js → [root-of-the-server]__e27393ea._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__d35c92a2._.js.map → [root-of-the-server]__e27393ea._.js.map} +1 -1
- package/.next/server/chunks/_75927d0c._.js +2 -2
- package/.next/server/chunks/_75927d0c._.js.map +1 -1
- package/.next/server/chunks/_next-internal_server_app_api_explorer_route_actions_bca0ca55.js +3 -0
- package/.next/server/chunks/ssr/1ce3b_dagre-d3-es_src_dagre_index_f9cad90b.js +1 -1
- package/.next/server/chunks/ssr/4bd2e_mermaid_dist_chunks_mermaid_core_chunk-S3R3BYOJ_mjs_dfc77fcf._.js +1 -1
- package/.next/server/chunks/ssr/78921_y-codemirror_next_src_index_7664c743.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__eccfba1b._.js → [root-of-the-server]__0310d64d._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__992608ee._.js → [root-of-the-server]__599128b8._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__7ccd69b2._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__7ccd69b2._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__7de63c62._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__68227521._.js → [root-of-the-server]__85b679c6._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__76f6d4b1._.js → [root-of-the-server]__8bc686d2._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__93c50d95._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__93c50d95._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__93f88b5d._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__c441b191._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__cb200ebe._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__95e9adf4._.js → [root-of-the-server]__e44bed76._.js} +2 -2
- package/.next/server/chunks/ssr/_0324be5b._.js +1 -1
- package/.next/server/chunks/ssr/_04bd0614._.js +1 -1
- package/.next/server/chunks/ssr/_07ff42fd._.js +1 -1
- package/.next/server/chunks/ssr/_0ee1f47f._.js +3 -0
- package/.next/server/chunks/ssr/_0ee1f47f._.js.map +1 -0
- package/.next/server/chunks/ssr/{_bd5a319c._.js → _102fd465._.js} +2 -2
- package/.next/server/chunks/ssr/_189227ea._.js +3 -0
- package/.next/server/chunks/ssr/_189227ea._.js.map +1 -0
- package/.next/server/chunks/ssr/_39d9968d._.js +1 -1
- package/.next/server/chunks/ssr/{_ae7d00da._.js → _42809286._.js} +2 -2
- package/.next/server/chunks/ssr/_42809286._.js.map +1 -0
- package/.next/server/chunks/ssr/_692c5bbf._.js +3 -0
- package/.next/server/chunks/ssr/_692c5bbf._.js.map +1 -0
- package/.next/server/chunks/ssr/_7b129868._.js +4 -0
- package/.next/server/chunks/ssr/_7b129868._.js.map +1 -0
- package/.next/server/chunks/ssr/_83c6a2ff._.js +1 -1
- package/.next/server/chunks/ssr/_85e5ab03._.js +1 -1
- package/.next/server/chunks/ssr/{_76a7817e._.js → _9f1b4c51._.js} +2 -2
- package/.next/server/chunks/ssr/_b4c946f7._.js +7 -0
- package/.next/server/chunks/ssr/_b4c946f7._.js.map +1 -0
- package/.next/server/chunks/ssr/_c4b742c5._.js +1 -1
- package/.next/server/chunks/ssr/_d411515a._.js +1 -1
- package/.next/server/chunks/ssr/_d411515a._.js.map +1 -1
- package/.next/server/chunks/ssr/_next-internal_server_app_(app)_explorer_page_actions_ab677b48.js +3 -0
- package/.next/server/chunks/ssr/a41dc_lucide-react_dist_esm_icons_folder_de463b3c.js +3 -0
- package/.next/server/chunks/ssr/a41dc_lucide-react_dist_esm_icons_folder_de463b3c.js.map +1 -0
- package/.next/server/chunks/ssr/a5dda_next_dist_bc8c0e5f._.js +1 -1
- package/.next/server/chunks/ssr/a5dda_next_dist_c6de1535._.js +1 -1
- package/.next/server/chunks/ssr/a5dda_next_dist_esm_build_templates_app-page_d9140d2d.js +1 -1
- package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_3288b441._.js → ec1cc_katex_dist_katex_mjs_9f7bcf4a._.js} +1 -1
- package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_425a6061._.js → ec1cc_katex_dist_katex_mjs_a9aca746._.js} +1 -1
- package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_4ad1d407._.js → ec1cc_katex_dist_katex_mjs_e7b66387._.js} +1 -1
- package/.next/server/chunks/ssr/ec1cc_katex_dist_katex_mjs_e7b66387._.js.map +1 -0
- package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_a5decdbd._.js → ec1cc_katex_dist_katex_mjs_e93914b8._.js} +1 -1
- package/.next/server/chunks/ssr/ec1cc_katex_dist_katex_mjs_e93914b8._.js.map +1 -0
- package/.next/server/chunks/ssr/fe4dd_lodash-es_092245b0._.js +1 -1
- package/.next/server/chunks/ssr/fe4dd_lodash-es_1a0ea541._.js +1 -1
- package/.next/server/chunks/ssr/fe4dd_lodash-es_2f02253e._.js +1 -1
- package/.next/server/chunks/ssr/fe4dd_lodash-es_59ba66ec._.js +1 -1
- package/.next/server/chunks/ssr/fe4dd_lodash-es_6dfac36d._.js +1 -1
- package/.next/server/chunks/ssr/fe4dd_lodash-es_dba464ad._.js +1 -1
- package/.next/server/chunks/ssr/fe4dd_lodash-es_fe91028b._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_36589973._.js → node_modules__pnpm_00962046._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_18a6956f._.js → node_modules__pnpm_016e62a5._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_1f5ea152._.js → node_modules__pnpm_0322e068._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_64d93795._.js → node_modules__pnpm_05da39c7._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_0824d495._.js → node_modules__pnpm_0631ec86._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_53deb29a._.js → node_modules__pnpm_06db4ba2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_ed02d5fd._.js → node_modules__pnpm_076b3258._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_26ef6e45._.js → node_modules__pnpm_07f377f7._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_35bad3db._.js → node_modules__pnpm_08922392._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_92e09662._.js → node_modules__pnpm_08cf1858._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_91229d13._.js → node_modules__pnpm_0c377643._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_7236b70e._.js → node_modules__pnpm_0d80282c._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_8f54a47b._.js → node_modules__pnpm_135db8bc._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_6401925d._.js → node_modules__pnpm_140ed2b5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_654e9f55._.js → node_modules__pnpm_1790069e._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_7776e75c._.js → node_modules__pnpm_19e8c8a7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_00d5d273._.js → node_modules__pnpm_1c623592._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_65f639a6._.js → node_modules__pnpm_1dce0d3b._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_9fc73610._.js → node_modules__pnpm_227802dc._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_69ce79eb._.js → node_modules__pnpm_240c58bb._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_56f72f59._.js → node_modules__pnpm_2871fff4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_49266b7a._.js → node_modules__pnpm_2b6ac74b._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_b3313177._.js → node_modules__pnpm_2e011da0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_f51396ca._.js → node_modules__pnpm_33344533._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_2cb73c16._.js → node_modules__pnpm_337eaf96._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_ce246e92._.js → node_modules__pnpm_3394b2c5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_5d0fe991._.js → node_modules__pnpm_3601c997._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_2843ef27._.js → node_modules__pnpm_36b5c2af._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_74b18e05._.js → node_modules__pnpm_39f460e8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_e3ff2006._.js → node_modules__pnpm_3d378674._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_ddf26095._.js → node_modules__pnpm_3dd8e608._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_9a0807cb._.js → node_modules__pnpm_3f2cce74._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_3f505455._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_f07d4655._.js → node_modules__pnpm_423baddc._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_783da796._.js → node_modules__pnpm_42d2c2d2._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules__pnpm_44b70609._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_44b70609._.js.map +1 -0
- package/.next/server/chunks/ssr/{node_modules__pnpm_a1c07e23._.js → node_modules__pnpm_45bf67c8._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_9475a5cd._.js → node_modules__pnpm_474a3a70._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_fe5653a5._.js → node_modules__pnpm_4cc41a2c._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_46929561._.js → node_modules__pnpm_4d03e476._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_8a892ffe._.js → node_modules__pnpm_4edcc2cf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1ee22148._.js → node_modules__pnpm_55b7a1cf._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_80943308._.js → node_modules__pnpm_5768848c._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_e935c4b3._.js → node_modules__pnpm_5c59b1ad._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_9809673a._.js → node_modules__pnpm_60fef38e._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_63673d29._.js → node_modules__pnpm_63a4a328._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_73162680._.js → node_modules__pnpm_67f40799._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_04663715._.js → node_modules__pnpm_688ab9b4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_f3ce4f57._.js → node_modules__pnpm_6947736b._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_ba4c8074._.js → node_modules__pnpm_6a7ed592._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_fc5a6422._.js → node_modules__pnpm_6c9a5a96._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_fb007933._.js → node_modules__pnpm_70a08cdf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_f443637f._.js → node_modules__pnpm_72235a6a._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_3bca6321._.js → node_modules__pnpm_754137d0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_590ecf69._.js → node_modules__pnpm_75690281._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_b91727a9._.js → node_modules__pnpm_75846ac9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_178f3e64._.js → node_modules__pnpm_76204895._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_36cec4c0._.js → node_modules__pnpm_790c3b2e._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_c7820c3e._.js → node_modules__pnpm_7a101d07._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_e7e5a8a1._.js → node_modules__pnpm_7ca85e0d._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_80210e53._.js → node_modules__pnpm_7de47ba7._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_1d5914b6._.js → node_modules__pnpm_7e98d14b._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_e174e2e8._.js → node_modules__pnpm_8036c25f._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_4ca42aad._.js → node_modules__pnpm_85de6da6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_91da4efe._.js → node_modules__pnpm_87d282d9._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_f36ad4ee._.js → node_modules__pnpm_8a0f76d5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_acf470f2._.js → node_modules__pnpm_8b3ed63a._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_1ee08ad7._.js → node_modules__pnpm_8ba721df._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_2997113c._.js → node_modules__pnpm_8c13bdb7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_f9f710c6._.js → node_modules__pnpm_8f8943af._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_293bea2a._.js → node_modules__pnpm_91a9fe44._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_6f25e5fd._.js → node_modules__pnpm_928932b1._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_12d18ed0._.js → node_modules__pnpm_93144bce._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_c6c36138._.js → node_modules__pnpm_96c7344a._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_aeaaa130._.js → node_modules__pnpm_9927b752._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_2003b884._.js → node_modules__pnpm_9cdea683._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_d0000990._.js → node_modules__pnpm_9ce450a4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_83e28ce4._.js → node_modules__pnpm_9e807a6c._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_8ab73142._.js → node_modules__pnpm_a23a1417._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_ab058528._.js → node_modules__pnpm_a4a74805._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_9a0d7b74._.js → node_modules__pnpm_a714825b._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_845c2200._.js → node_modules__pnpm_aec9b3d2._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_060aaf47._.js → node_modules__pnpm_b18e7d84._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_3e3b1d5c._.js → node_modules__pnpm_b2c6ca72._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_e1568f72._.js → node_modules__pnpm_b50ae8f6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_daf0ef2f._.js → node_modules__pnpm_b6b9de46._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_f67832c7._.js → node_modules__pnpm_ba838a36._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_6ee95c66._.js → node_modules__pnpm_c278eaac._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_c82324ae._.js → node_modules__pnpm_c39c9496._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_cce8cd76._.js → node_modules__pnpm_c402a901._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_37e82b68._.js → node_modules__pnpm_c7ca55c9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_e8b810b3._.js → node_modules__pnpm_cd59b8c6._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_37c400e7._.js → node_modules__pnpm_d1c050d4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_390f259c._.js → node_modules__pnpm_d6cd0cb1._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_3c2d8fca._.js → node_modules__pnpm_d75e5d41._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_3f847f2e._.js → node_modules__pnpm_db2dceff._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_546559ff._.js → node_modules__pnpm_df7dcb26._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_f3196af3._.js → node_modules__pnpm_e70a06f1._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules__pnpm_dc31ca88._.js → node_modules__pnpm_ebfee6f4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_1cc7c453._.js → node_modules__pnpm_f505d304._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_589ffaf2._.js → node_modules__pnpm_f6f51e7a._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_7774ae26._.js → node_modules__pnpm_f77bb209._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules__pnpm_2a8998cb._.js → node_modules__pnpm_fa1f464c._.js} +2 -2
- package/.next/server/middleware-build-manifest.js +4 -4
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +2 -2
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/0b640fa39aac2219.js +1 -0
- package/.next/static/chunks/0ef3e14dc942367c.js +1 -0
- package/.next/static/chunks/13bdd4e22dd90816.js +1 -0
- package/.next/static/chunks/{1ed5d145167d8eb4.js → 1ef8bf79adc2568f.js} +5 -5
- package/.next/static/chunks/{12a5f59c97d227db.js → 25d2e746e06b38ba.js} +1 -1
- package/.next/static/chunks/{811bb9b4cd1b0f6c.js → 316cd4755f253783.js} +1 -1
- package/.next/static/chunks/31fae4c58073753b.js +1 -0
- package/.next/static/chunks/351fac2d373f6f38.js +1 -0
- package/.next/static/chunks/429961c8e82cfbcb.css +1 -0
- package/.next/static/chunks/{f4c865657080088e.js → 452e1bb12e7f0b85.js} +3 -3
- package/.next/static/chunks/4a40b1a0e0d1d36e.js +29 -0
- package/.next/static/chunks/{b0aaf0c52bbe6d4b.js → 5066c1dec89e3cb6.js} +1 -1
- package/.next/static/chunks/{70d2c49686d63e40.js → 519aa8080f20453e.js} +1 -1
- package/.next/static/chunks/{02e429858f990849.js → 55ab99ffa8724197.js} +1 -1
- package/.next/static/chunks/55fe2639abb9cd1a.js +2 -0
- package/.next/static/chunks/63e6313e09a72507.js +43 -0
- package/.next/static/chunks/6f01f5fee0eb2f66.js +1 -0
- package/.next/static/chunks/6fc607e12ff4f9cc.js +215 -0
- package/.next/static/chunks/752c6435ac86719d.js +2 -0
- package/.next/static/chunks/8034834601bf13d7.js +1 -0
- package/.next/static/chunks/825ae09010d35407.js +5 -0
- package/.next/static/chunks/8b98ae3ee4dbcfd1.js +2 -0
- package/.next/static/chunks/a8d5f5dc2688fe30.js +1 -0
- package/.next/static/chunks/aad224af68aad5fb.js +4 -0
- package/.next/static/chunks/b32c8cafb0f99121.js +24 -0
- package/.next/static/chunks/c224fce458bb43f9.js +1 -0
- package/.next/static/chunks/c6c6b3aa4797a144.js +1 -0
- package/.next/static/chunks/c7596c95b8f7f059.js +1 -0
- package/.next/static/chunks/cf9345359d04d2e9.js +63 -0
- package/.next/static/chunks/{ceda9387e8da4ba3.js → db20ec18c9fde107.js} +4 -4
- package/.next/static/chunks/e6164bb2a2fa9b00.js +1 -0
- package/.next/static/chunks/e7aa622fd3384345.js +2 -0
- package/.next/static/chunks/ed565e62e468fa30.js +24 -0
- package/.next/static/chunks/{0bbe3dc32a2a7822.js → fcc2b1530d73e61e.js} +1 -1
- package/.next/static/chunks/{turbopack-525ea573490deca2.js → turbopack-2835ad6e71df73d8.js} +1 -1
- package/package.json +4 -1
- package/.next/server/chunks/[root-of-the-server]__bab47fec._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__bab47fec._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__868f1e91._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__868f1e91._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__ac9646b5._.js +0 -3
- package/.next/server/chunks/ssr/_ae7d00da._.js.map +0 -1
- package/.next/server/chunks/ssr/_c022dd84._.js +0 -7
- package/.next/server/chunks/ssr/_c022dd84._.js.map +0 -1
- package/.next/server/chunks/ssr/_e18b7893._.js +0 -3
- package/.next/server/chunks/ssr/_e18b7893._.js.map +0 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_b1ee847f._.js +0 -3
- package/.next/server/chunks/ssr/node_modules__pnpm_b1ee847f._.js.map +0 -1
- package/.next/static/chunks/06f9a2970e917f08.css +0 -1
- package/.next/static/chunks/0bf088d94c6c3d7f.js +0 -1
- package/.next/static/chunks/12cf98019a766d56.js +0 -2
- package/.next/static/chunks/37bedd3bd7f576a5.js +0 -1
- package/.next/static/chunks/5051111686a30794.js +0 -24
- package/.next/static/chunks/575ff595808bef08.js +0 -29
- package/.next/static/chunks/57eb6d643a88d201.js +0 -1
- package/.next/static/chunks/70a4b574c7f36373.js +0 -1
- package/.next/static/chunks/733b3612e3f34157.js +0 -5
- package/.next/static/chunks/73ecac2771f5a28f.js +0 -2
- package/.next/static/chunks/7cdf6785100b30b4.js +0 -1
- package/.next/static/chunks/962586ff4bc6af4f.js +0 -1
- package/.next/static/chunks/aaa492e282370bc6.js +0 -43
- package/.next/static/chunks/b07c7aa5dcbca335.js +0 -2
- package/.next/static/chunks/b43b33637f3f9958.js +0 -215
- package/.next/static/chunks/c1ea939eac9e0ef7.js +0 -2
- package/.next/static/chunks/c855ae74bfce8619.js +0 -63
- package/.next/static/chunks/d449b90c60422759.js +0 -1
- package/.next/static/chunks/d4eb6ab4605bef88.js +0 -4
- package/.next/static/chunks/d6bceca87929c840.js +0 -24
- package/.next/static/chunks/eeb1ca1094488ae7.js +0 -1
- /package/.next/server/chunks/{[root-of-the-server]__2127a831._.js.map → [root-of-the-server]__dfd36dc0._.js.map} +0 -0
- /package/.next/server/chunks/{ssr/ec1cc_katex_dist_katex_mjs_3288b441._.js.map → _next-internal_server_app_api_explorer_route_actions_bca0ca55.js.map} +0 -0
- /package/.next/server/chunks/ssr/{[root-of-the-server]__68227521._.js.map → [root-of-the-server]__0310d64d._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{[root-of-the-server]__992608ee._.js.map → [root-of-the-server]__599128b8._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{[root-of-the-server]__ac9646b5._.js.map → [root-of-the-server]__7de63c62._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{[root-of-the-server]__76f6d4b1._.js.map → [root-of-the-server]__85b679c6._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{[root-of-the-server]__95e9adf4._.js.map → [root-of-the-server]__8bc686d2._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{[root-of-the-server]__eccfba1b._.js.map → [root-of-the-server]__e44bed76._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{_bd5a319c._.js.map → _102fd465._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{_76a7817e._.js.map → _9f1b4c51._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_425a6061._.js.map → _next-internal_server_app_(app)_explorer_page_actions_ab677b48.js.map} +0 -0
- /package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_4ad1d407._.js.map → ec1cc_katex_dist_katex_mjs_9f7bcf4a._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{ec1cc_katex_dist_katex_mjs_a5decdbd._.js.map → ec1cc_katex_dist_katex_mjs_a9aca746._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_2a8998cb._.js.map → node_modules__pnpm_00962046._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_18a6956f._.js.map → node_modules__pnpm_016e62a5._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1f5ea152._.js.map → node_modules__pnpm_0322e068._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_3c2d8fca._.js.map → node_modules__pnpm_05da39c7._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_0824d495._.js.map → node_modules__pnpm_0631ec86._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_53deb29a._.js.map → node_modules__pnpm_06db4ba2._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_46929561._.js.map → node_modules__pnpm_076b3258._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_26ef6e45._.js.map → node_modules__pnpm_07f377f7._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_35bad3db._.js.map → node_modules__pnpm_08922392._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1d5914b6._.js.map → node_modules__pnpm_08cf1858._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_060aaf47._.js.map → node_modules__pnpm_0c377643._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_590ecf69._.js.map → node_modules__pnpm_0d80282c._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_8f54a47b._.js.map → node_modules__pnpm_135db8bc._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_3f847f2e._.js.map → node_modules__pnpm_140ed2b5._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_12d18ed0._.js.map → node_modules__pnpm_1790069e._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_7776e75c._.js.map → node_modules__pnpm_19e8c8a7._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_00d5d273._.js.map → node_modules__pnpm_1c623592._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1cc7c453._.js.map → node_modules__pnpm_1dce0d3b._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_589ffaf2._.js.map → node_modules__pnpm_227802dc._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_64d93795._.js.map → node_modules__pnpm_240c58bb._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_56f72f59._.js.map → node_modules__pnpm_2871fff4._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_2997113c._.js.map → node_modules__pnpm_2b6ac74b._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_b3313177._.js.map → node_modules__pnpm_2e011da0._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_69ce79eb._.js.map → node_modules__pnpm_33344533._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_2cb73c16._.js.map → node_modules__pnpm_337eaf96._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_ce246e92._.js.map → node_modules__pnpm_3394b2c5._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_546559ff._.js.map → node_modules__pnpm_3601c997._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_04663715._.js.map → node_modules__pnpm_36b5c2af._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_2003b884._.js.map → node_modules__pnpm_39f460e8._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_e3ff2006._.js.map → node_modules__pnpm_3d378674._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_74b18e05._.js.map → node_modules__pnpm_3dd8e608._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_65f639a6._.js.map → node_modules__pnpm_3f2cce74._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_3bca6321._.js.map → node_modules__pnpm_423baddc._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1ee08ad7._.js.map → node_modules__pnpm_42d2c2d2._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_783da796._.js.map → node_modules__pnpm_45bf67c8._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_390f259c._.js.map → node_modules__pnpm_474a3a70._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_fe5653a5._.js.map → node_modules__pnpm_4cc41a2c._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_7236b70e._.js.map → node_modules__pnpm_4d03e476._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_178f3e64._.js.map → node_modules__pnpm_4edcc2cf._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_1ee22148._.js.map → node_modules__pnpm_55b7a1cf._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_293bea2a._.js.map → node_modules__pnpm_5768848c._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_3e3b1d5c._.js.map → node_modules__pnpm_5c59b1ad._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_9809673a._.js.map → node_modules__pnpm_60fef38e._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_37e82b68._.js.map → node_modules__pnpm_63a4a328._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_2843ef27._.js.map → node_modules__pnpm_67f40799._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_73162680._.js.map → node_modules__pnpm_688ab9b4._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_f3ce4f57._.js.map → node_modules__pnpm_6947736b._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_63673d29._.js.map → node_modules__pnpm_6a7ed592._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_fc5a6422._.js.map → node_modules__pnpm_6c9a5a96._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_ba4c8074._.js.map → node_modules__pnpm_70a08cdf._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_e935c4b3._.js.map → node_modules__pnpm_72235a6a._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_aeaaa130._.js.map → node_modules__pnpm_754137d0._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_ed02d5fd._.js.map → node_modules__pnpm_75690281._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_654e9f55._.js.map → node_modules__pnpm_75846ac9._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_4ca42aad._.js.map → node_modules__pnpm_76204895._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_36cec4c0._.js.map → node_modules__pnpm_790c3b2e._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_7774ae26._.js.map → node_modules__pnpm_7a101d07._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_e7e5a8a1._.js.map → node_modules__pnpm_7ca85e0d._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_5d0fe991._.js.map → node_modules__pnpm_7de47ba7._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_92e09662._.js.map → node_modules__pnpm_7e98d14b._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_8ab73142._.js.map → node_modules__pnpm_8036c25f._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_8a892ffe._.js.map → node_modules__pnpm_85de6da6._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_91da4efe._.js.map → node_modules__pnpm_87d282d9._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_b91727a9._.js.map → node_modules__pnpm_8a0f76d5._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_acf470f2._.js.map → node_modules__pnpm_8b3ed63a._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_a1c07e23._.js.map → node_modules__pnpm_8ba721df._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_37c400e7._.js.map → node_modules__pnpm_8c13bdb7._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_f9f710c6._.js.map → node_modules__pnpm_8f8943af._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_80943308._.js.map → node_modules__pnpm_91a9fe44._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_36589973._.js.map → node_modules__pnpm_928932b1._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_f36ad4ee._.js.map → node_modules__pnpm_93144bce._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_c6c36138._.js.map → node_modules__pnpm_96c7344a._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_f07d4655._.js.map → node_modules__pnpm_9927b752._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_ddf26095._.js.map → node_modules__pnpm_9cdea683._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_91229d13._.js.map → node_modules__pnpm_9ce450a4._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_83e28ce4._.js.map → node_modules__pnpm_9e807a6c._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_e174e2e8._.js.map → node_modules__pnpm_a23a1417._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_ab058528._.js.map → node_modules__pnpm_a4a74805._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_9a0d7b74._.js.map → node_modules__pnpm_a714825b._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_845c2200._.js.map → node_modules__pnpm_aec9b3d2._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_d0000990._.js.map → node_modules__pnpm_b18e7d84._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_f443637f._.js.map → node_modules__pnpm_b2c6ca72._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_c7820c3e._.js.map → node_modules__pnpm_b50ae8f6._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_49266b7a._.js.map → node_modules__pnpm_b6b9de46._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_f67832c7._.js.map → node_modules__pnpm_ba838a36._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_6ee95c66._.js.map → node_modules__pnpm_c278eaac._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_6401925d._.js.map → node_modules__pnpm_c39c9496._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_9a0807cb._.js.map → node_modules__pnpm_c402a901._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_fb007933._.js.map → node_modules__pnpm_c7ca55c9._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_e8b810b3._.js.map → node_modules__pnpm_cd59b8c6._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_daf0ef2f._.js.map → node_modules__pnpm_d1c050d4._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_9475a5cd._.js.map → node_modules__pnpm_d6cd0cb1._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_f51396ca._.js.map → node_modules__pnpm_d75e5d41._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_c82324ae._.js.map → node_modules__pnpm_db2dceff._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_80210e53._.js.map → node_modules__pnpm_df7dcb26._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_f3196af3._.js.map → node_modules__pnpm_e70a06f1._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_dc31ca88._.js.map → node_modules__pnpm_ebfee6f4._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_cce8cd76._.js.map → node_modules__pnpm_f505d304._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_9fc73610._.js.map → node_modules__pnpm_f6f51e7a._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_e1568f72._.js.map → node_modules__pnpm_f77bb209._.js.map} +0 -0
- /package/.next/server/chunks/ssr/{node_modules__pnpm_6f25e5fd._.js.map → node_modules__pnpm_fa1f464c._.js.map} +0 -0
- /package/.next/static/{byIy1XPPF_OGj4sBayLnJ → T1s0QXbWFmXxNEuUL4myK}/_buildManifest.js +0 -0
- /package/.next/static/{byIy1XPPF_OGj4sBayLnJ → T1s0QXbWFmXxNEuUL4myK}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{byIy1XPPF_OGj4sBayLnJ → T1s0QXbWFmXxNEuUL4myK}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},82104,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function o(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{paths:r}=await e.json();if(!Array.isArray(r))return a.NextResponse.json({error:"paths must be an array"},{status:400});let s=await (0,n.getContext)(r,t);return a.NextResponse.json({context:s})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}[n]=s.then?(await s)():s,e.s(["POST",()=>o]),r()}catch(e){r(e)}},!1),76027,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),o=e.i(58e3),i=e.i(
|
|
1
|
+
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},82104,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function o(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{paths:r}=await e.json();if(!Array.isArray(r))return a.NextResponse.json({error:"paths must be an array"},{status:400});let s=await (0,n.getContext)(r,t);return a.NextResponse.json({context:s})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}[n]=s.then?(await s)():s,e.s(["POST",()=>o]),r()}catch(e){r(e)}},!1),76027,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),o=e.i(58e3),i=e.i(89292),l=e.i(22218),d=e.i(70540),u=e.i(9350),p=e.i(69462),c=e.i(13673),h=e.i(59429),x=e.i(41690),R=e.i(55318),v=e.i(99382),g=e.i(20606),f=e.i(93695);e.i(75436);var m=e.i(39468),w=e.i(82104),y=t([w]);[w]=y.then?(await y)():y;let A=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/context/route",pathname:"/api/context",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/context/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:b,workUnitAsyncStorage:N,serverHooks:P}=A;function E(){return(0,s.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:N})}async function C(e,t,r){A.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/context/route";a=a.replace(/\/index$/,"")||"/";let s=await A.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:y,nextConfig:E,parsedUrl:C,isDraftMode:b,prerenderManifest:N,routerServerContext:P,isOnDemandRevalidate:_,revalidateOnlyGenerated:T,resolvedPathname:j,clientReferenceManifest:k,serverActionsManifest:O}=s,q=(0,d.normalizeAppPath)(a),S=!!(N.dynamicRoutes[q]||N.routes[j]),H=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!b){let e=!!N.routes[j],t=N.dynamicRoutes[q];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await H();throw new f.NoFallbackError}}let U=null;!S||A.isDev||b||(U=j,U="/index"===U?"/":U);let I=!0===A.isDev||!S,D=S&&!I;O&&k&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:k,serverActionsManifest:O});let M=e.method||"GET",$=(0,i.getTracer)(),F=$.getActiveScopeSpan(),K={params:y,prerenderManifest:N,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,o.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>A.onRequestError(e,t,a,n,P)},sharedContext:{buildId:w}},B=new u.NodeNextRequest(e),L=new u.NodeNextResponse(t),G=p.NextRequestAdapter.fromNodeNextRequest(B,(0,p.signalFromNodeResponse)(t));try{let s=async e=>A.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,o.getRequestMeta)(e,"minimalMode"),d=async o=>{var i,d;let u=async({previousCacheEntry:n})=>{try{if(!l&&_&&T&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(o);e.fetchMetrics=K.renderOpts.fetchMetrics;let i=K.renderOpts.pendingWaitUntil;i&&r.waitUntil&&(r.waitUntil(i),i=void 0);let d=K.renderOpts.collectedTags;if(!S)return await (0,x.sendResponse)(B,L,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,R.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[g.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,P),t}},p=await A.handleResponse({req:e,nextConfig:E,cacheKey:U,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:T,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!S)return null;if((null==p||null==(i=p.value)?void 0:i.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",_?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,R.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&S||c.delete(g.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,v.getCacheControlHeader)(p.cacheControl)),await (0,x.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:i.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof f.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:q,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,P),S)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>E,"routeModule",()=>A,"serverHooks",()=>P,"workAsyncStorage",()=>b,"workUnitAsyncStorage",()=>N]),r()}catch(e){r(e)}},!1),60830,e=>{e.v(t=>Promise.all(["server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js"].map(t=>e.l(t))).then(()=>t(48394)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__a9dbcc03._.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/app/api/context/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["import { NextRequest, NextResponse } from 'next/server'\r\nimport { getContext, getConfiguredRoot } from '@/lib/core'\r\n\r\nexport async function POST(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { paths } = await req.json()\r\n if (!Array.isArray(paths)) return NextResponse.json({ error: 'paths must be an array' }, { status: 400 })\r\n const context = await getContext(paths as string[], root)\r\n return NextResponse.json({ context })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"qjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,gBAEO,eAAe,EAAK,CAAgB,EACzC,GAAI,CACF,IAAM,EAAO,EAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,IAChE,OAAE,CAAK,CAAE,CAAG,MAAM,EAAI,IAAI,GAChC,GAAI,CAAC,MAAM,OAAO,CAAC,GAAQ,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,wBAAyB,EAAG,CAAE,OAAQ,GAAI,GACvG,IAAM,EAAU,MAAM,CAAA,EAAA,EAAA,UAAA,AAAU,EAAC,EAAmB,GACpD,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,SAAQ,EACrC,CAAE,MAAO,EAAG,CACV,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAQ,EAAY,OAAO,AAAC,EAAG,CAAE,OAAQ,GAAI,EAC1E,CAC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,CAFqC,KAE/BG,EAAYqF,cAAc,CAC9BjE,EACAgH,EACA,CACEE,WAAY,aACZC,UAAWrF,EACXsF,UAAW,QACXC,iBAAAA,CAAAA,EAAkBnJ,EAAAA,mBAAAA,EAAoB,CACpCyE,0CACAlB,CACF,EACF,GAZiB,AAajBuC,EACAxC,GAOAO,EAAO,MAAMiF,EAQjB,OALA,MAAA,CAAA,EAAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[1]}
|
|
1
|
+
{"version":3,"sources":["../../../src/app/api/context/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["import { NextRequest, NextResponse } from 'next/server'\r\nimport { getContext, getConfiguredRoot } from '@/lib/core'\r\n\r\nexport async function POST(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { paths } = await req.json()\r\n if (!Array.isArray(paths)) return NextResponse.json({ error: 'paths must be an array' }, { status: 400 })\r\n const context = await getContext(paths as string[], root)\r\n return NextResponse.json({ context })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"qjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,gBAEO,eAAe,EAAK,CAAgB,EACzC,GAAI,CACF,IAAM,EAAO,EAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,IAChE,OAAE,CAAK,CAAE,CAAG,MAAM,EAAI,IAAI,GAChC,GAAI,CAAC,MAAM,OAAO,CAAC,GAAQ,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,wBAAyB,EAAG,CAAE,OAAQ,GAAI,GACvG,IAAM,EAAU,MAAM,CAAA,EAAA,EAAA,UAAA,AAAU,EAAC,EAAmB,GACpD,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,SAAQ,EACrC,CAAE,MAAO,EAAG,CACV,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAQ,EAAY,OAAO,AAAC,EAAG,CAAE,OAAQ,GAAI,EAC1E,CACF,oGCbA,IAAA,EAIO,EAAA,CAHLA,AAGK,CAAA,OACP,EAA0B,EAAyB,CAA1CC,AAA0C,CAAA,GAAA,EAJ9B,EAKrB,CADkB,CACwB,AAFmB,EAEnB,CAAjCC,AAAiC,CAAA,AAFnC,GACmB,CAC8C,GAExE,EAAuC,EAAQ,CAAtCE,AAAsC,CAFxBD,AAEwB,MAA2B,AAC1E,EAA+C,EAAA,CAHb,AAG4C,AAArEG,CAAqE,CADvD,EAAED,IAFiB,AAI1C,CADkB,CACoB,CADPE,CACO,CAA7BC,AAA6B,CAAA,IAFC,CACA,EAEvC,EAAiC,EAAA,CAAxBC,AAAwB,CAFc,AAEd,EADkD,IACT,CAC1E,AAF8B,EAEY,EAAQ,CAAzCC,AAAyC,CAAA,EAAA,AADzB,AADa,IAGtC,EAEEG,EAC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ACdzB,EAAD,AAASrB,GAAG,CAAC,kBACb,AACAqB,EAAQ0B,GAAG,CACT,gBAAA,CAAA,EACAvJ,EAAAA,qBAAAA,EAAsBmH,EAAWsB,YAAY,GAIjD,MAAA,CAAA,EAAM5I,EAAAA,YAAAA,EACJgG,EACAC,EAEA,IAAI0D,SAASrC,EAAWgB,KAAK,CAACE,IAAI,CAAE,SAClCR,EACAO,OAAQjB,EAAWgB,KAAK,CAACC,MAAM,EAAI,GACrC,IAEK,IACT,EAII5D,EACF,MAAMyC,EAAezC,EADP,CAGd,MAAMD,EAAOkF,qBAAqB,CAAC/H,EAAImG,MAdiG,CAc1F,CAAE,IAC9CtD,EAAOmF,KAAK,CACV/J,EAAAA,cAAAA,CAAe8G,aAAa,CAC5B,CACEkD,SAAU,CAAA,EAAGrF,EAAO,CAAC,EAAEtC,EAAAA,CAAS,CAChCxB,KAAMpB,EAAAA,QAAAA,CAASwK,MAAM,CACrBC,WAAY,CACV,cAAevF,EACf,cAAe5C,EAAIoI,GAAG,AACxB,CACF,EACA7C,GAIR,CAAE,MAAOyB,EAAK,CAuBZ,GAtBMA,aAAevI,EAAAA,eAAc,EAEjC,CAFqC,KAE/BG,EAAYqF,cAAc,CAC9BjE,EACAgH,EACA,CACEE,WAAY,aACZC,UAAWrF,EACXsF,UAAW,QACXC,iBAAAA,CAAAA,EAAkBnJ,EAAAA,mBAAAA,EAAoB,CACpCyE,qBACAlB,sBACF,EACF,GAZiB,AAajBuC,EACAxC,GAOAO,EAAO,MAAMiF,EAQjB,OALA,MAAA,CAAA,EAAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[1]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},98768,e=>{"use strict";class t{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emit(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}}let r=globalThis,a=r.vibedocBus??(r.vibedocBus=new t);function n(e,t){a.emit({type:e,payload:t,ts:new Date().toISOString()})}e.s(["bus",0,a,"emitUpdate",()=>n])},92848,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=e.i(98768),o=t([n]);async function i(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("q"),s=e.nextUrl.searchParams.get("read");if(s){let e=await (0,n.readDoc)(s,t);return a.NextResponse.json(e)}if(r){let e=await (0,n.searchDocs)(r,t);return a.NextResponse.json({results:e})}let o=await (0,n.listDocs)(t);return a.NextResponse.json(o)}async function l(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{path:r,content:o}=await e.json();return await (0,n.writeDoc)(r,o,t),(0,s.emitUpdate)("doc_updated",{path:r}),a.NextResponse.json({ok:!0})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}async function d(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{path:r,content:o}=await e.json();return await (0,n.createDoc)(r,o,t),(0,s.emitUpdate)("doc_created",{path:r}),process.env.ANTHROPIC_API_KEY&&(0,n.enrichDescription)(r,t).catch(()=>{}),a.NextResponse.json({ok:!0,path:r},{status:201})}catch(e){if("EEXIST"===e.code)return a.NextResponse.json({error:"File already exists"},{status:409});return a.NextResponse.json({error:e.message},{status:400})}}async function c(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{oldPath:r,newPath:o}=await e.json();return await (0,n.renameDoc)(r,o,t),(0,s.emitUpdate)("doc_renamed",{oldPath:r,newPath:o}),a.NextResponse.json({ok:!0})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}async function u(e){try{let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{path:r}=await e.json();return await (0,n.deleteDoc)(r,t),(0,s.emitUpdate)("doc_deleted",{path:r}),a.NextResponse.json({ok:!0})}catch(e){return a.NextResponse.json({error:e.message},{status:400})}}[n]=o.then?(await o)():o,e.s(["DELETE",()=>u,"GET",()=>i,"PATCH",()=>c,"POST",()=>d,"PUT",()=>l]),r()}catch(e){r(e)}},!1),16402,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),o=e.i(58e3),i=e.i(89292),l=e.i(22218),d=e.i(70540),c=e.i(9350),u=e.i(69462),p=e.i(13673),h=e.i(59429),x=e.i(41690),R=e.i(55318),g=e.i(99382),m=e.i(20606),f=e.i(93695);e.i(75436);var v=e.i(39468),w=e.i(92848),y=t([w]);[w]=y.then?(await y)():y;let N=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/docs/route",pathname:"/api/docs",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/docs/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:P,workUnitAsyncStorage:j,serverHooks:b}=N;function E(){return(0,s.patchFetch)({workAsyncStorage:P,workUnitAsyncStorage:j})}async function C(e,t,r){N.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/docs/route";a=a.replace(/\/index$/,"")||"/";let s=await N.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:y,nextConfig:E,parsedUrl:C,isDraftMode:P,prerenderManifest:j,routerServerContext:b,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,resolvedPathname:_,clientReferenceManifest:U,serverActionsManifest:k}=s,O=(0,d.normalizeAppPath)(a),S=!!(j.dynamicRoutes[O]||j.routes[_]),D=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!P){let e=!!j.routes[_],t=j.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await D();throw new f.NoFallbackError}}let q=null;!S||N.isDev||P||(q=_,q="/index"===q?"/":q);let H=!0===N.isDev||!S,I=S&&!H;k&&U&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:U,serverActionsManifest:k});let M=e.method||"GET",F=(0,i.getTracer)(),K=F.getActiveScopeSpan(),$={params:y,prerenderManifest:j,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:H,incrementalCache:(0,o.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>N.onRequestError(e,t,a,n,b)},sharedContext:{buildId:w}},B=new c.NodeNextRequest(e),L=new c.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(B,(0,u.signalFromNodeResponse)(t));try{let s=async e=>N.handle(G,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,o.getRequestMeta)(e,"minimalMode"),d=async o=>{var i,d;let c=async({previousCacheEntry:n})=>{try{if(!l&&A&&T&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(o);e.fetchMetrics=$.renderOpts.fetchMetrics;let i=$.renderOpts.pendingWaitUntil;i&&r.waitUntil&&(r.waitUntil(i),i=void 0);let d=$.renderOpts.collectedTags;if(!S)return await (0,x.sendResponse)(B,L,a,$.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,R.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[m.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,n=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:A})},!1,b),t}},u=await N.handleResponse({req:e,nextConfig:E,cacheKey:q,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:j,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:l});if(!S)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(d=u.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",A?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),P&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,R.fromNodeOutgoingHttpHeaders)(u.value.headers);return l&&S||p.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,g.getCacheControlHeader)(u.cacheControl)),await (0,x.sendResponse)(B,L,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};K?await d(K):await F.withPropagatedContext(e.headers,()=>F.trace(p.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:i.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof f.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:A})},!1,b),S)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>E,"routeModule",()=>N,"serverHooks",()=>b,"workAsyncStorage",()=>P,"workUnitAsyncStorage",()=>j]),r()}catch(e){r(e)}},!1),60830,e=>{e.v(t=>Promise.all(["server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js"].map(t=>e.l(t))).then(()=>t(48394)))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__aa7a40ec._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/events.ts","../../../src/app/api/docs/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["/**\r\n * src/lib/events.ts\r\n * In-process SSE event bus.\r\n * API routes push events here; /api/events streams them to the browser.\r\n */\r\n\r\ntype Listener = (data: unknown) => void\r\n\r\nclass EventBus {\r\n private listeners = new Set<Listener>()\r\n\r\n subscribe(fn: Listener) {\r\n this.listeners.add(fn)\r\n return () => this.listeners.delete(fn)\r\n }\r\n\r\n emit(event: unknown) {\r\n this.listeners.forEach(fn => {\r\n try { fn(event) } catch {}\r\n })\r\n }\r\n}\r\n\r\n// Singleton — shared across all API routes in the same process\r\nconst globalForBus = globalThis as unknown as { vibedocBus?: EventBus }\r\nexport const bus = globalForBus.vibedocBus ?? (globalForBus.vibedocBus = new EventBus())\r\n\r\nexport function emitUpdate(type: string, payload: unknown) {\r\n bus.emit({ type, payload, ts: new Date().toISOString() })\r\n}\r\n","import { NextRequest, NextResponse } from 'next/server'\r\nimport { listDocs, readDoc, searchDocs, writeDoc, createDoc, renameDoc, deleteDoc, getConfiguredRoot, enrichDescription } from '@/lib/core'\r\nimport { emitUpdate } from '@/lib/events'\r\n\r\nexport async function GET(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const query = req.nextUrl.searchParams.get('q')\r\n const read = req.nextUrl.searchParams.get('read')\r\n\r\n if (read) {\r\n const doc = await readDoc(read, root)\r\n return NextResponse.json(doc)\r\n }\r\n if (query) {\r\n const results = await searchDocs(query, root)\r\n return NextResponse.json({ results })\r\n }\r\n const docs = await listDocs(root)\r\n return NextResponse.json(docs)\r\n}\r\n\r\nexport async function PUT(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { path: docPath, content } = await req.json()\r\n await writeDoc(docPath, content, root)\r\n emitUpdate('doc_updated', { path: docPath })\r\n return NextResponse.json({ ok: true })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n\r\nexport async function POST(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { path: docPath, content } = await req.json()\r\n await createDoc(docPath, content, root)\r\n emitUpdate('doc_created', { path: docPath })\r\n // Fire-and-forget: enrich description asynchronously (doesn't block response)\r\n if (process.env.ANTHROPIC_API_KEY) {\r\n enrichDescription(docPath, root).catch(() => { /* ignore enrichment failures */ })\r\n }\r\n return NextResponse.json({ ok: true, path: docPath }, { status: 201 })\r\n } catch (e) {\r\n const nodeErr = e as NodeJS.ErrnoException\r\n if (nodeErr.code === 'EEXIST') return NextResponse.json({ error: 'File already exists' }, { status: 409 })\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n\r\nexport async function PATCH(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { oldPath, newPath } = await req.json()\r\n await renameDoc(oldPath, newPath, root)\r\n emitUpdate('doc_renamed', { oldPath, newPath })\r\n return NextResponse.json({ ok: true })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n\r\nexport async function DELETE(req: NextRequest) {\r\n try {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { path: docPath } = await req.json()\r\n await deleteDoc(docPath, root)\r\n emitUpdate('doc_deleted', { path: docPath })\r\n return NextResponse.json({ ok: true })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 400 })\r\n }\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"6iCAQA,OAAM,EACI,UAAY,IAAI,GAAe,CAEvC,UAAU,CAAY,CAAE,CAEtB,OADA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GACZ,IAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EACrC,CAEA,KAAK,CAAc,CAAE,CACnB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IACrB,GAAI,CAAE,EAAG,EAAO,CAAE,KAAM,CAAC,CAC3B,EACF,CACF,CAGA,IAAM,EAAe,WACR,EAAM,EAAa,UAAU,GAAK,CAAD,CAAc,UAAU,CAAG,IAAI,CAAA,CAAU,CAEhF,SAAS,EAAW,CAAY,CAAE,CAAgB,EACvD,EAAI,IAAI,CAAC,MAAE,UAAM,EAAS,GAAI,IAAI,OAAO,WAAW,EAAG,EACzD,oEC7BA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,gBAEO,eAAe,EAAI,CAAgB,EACxC,IAAM,EAAO,EAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,IAChE,EAAQ,EAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,KACrC,EAAO,EAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,QAE1C,GAAI,EAAM,CACR,IAAM,EAAM,MAAM,CAAA,EAAA,EAAA,OAAA,AAAO,EAAC,EAAM,GAChC,OAAO,EAA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CAAS,CAChCxB,KAAMpB,EAAAA,QAAAA,CAASwK,MAAM,CACrBC,WAAY,CACV,cAAevF,EACf,cAAe5C,EAAIoI,GAAG,AACxB,CACF,EACA7C,GAIR,CAAE,MAAOyB,EAAK,CAuBZ,GAtBMA,aAAevI,EAAAA,eAAc,EAEjC,CAFqC,KAE/BG,EAAYqF,cAAc,CAC9BjE,EACAgH,EACA,CACEE,WAAY,aACZC,UAAWrF,EACXsF,UAAW,QACXC,iBAAAA,CAAAA,EAAkBnJ,EAAAA,mBAAAA,EAAoB,oBACpCyE,uBACAlB,CACF,EACF,GACAuC,AAbiB,EAcjBxC,GAOAO,EAAO,MAAMiF,EAQjB,OALA,MAAA,CAAA,EAAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[2]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},98768,e=>{"use strict";class t{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emit(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}}let r=globalThis,a=r.vibedocBus??(r.vibedocBus=new t);function n(e,t){a.emit({type:e,payload:t,ts:new Date().toISOString()})}e.s(["bus",0,a,"emitUpdate",()=>n])},77805,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=e.i(98768),
|
|
1
|
+
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},98768,e=>{"use strict";class t{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emit(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}}let r=globalThis,a=r.vibedocBus??(r.vibedocBus=new t);function n(e,t){a.emit({type:e,payload:t,ts:new Date().toISOString()})}e.s(["bus",0,a,"emitUpdate",()=>n])},77805,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=e.i(98768),i=t([n]);async function o(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=await (0,n.readMemory)(t);return a.NextResponse.json(r)}async function l(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),{actor:r,...i}=await e.json();return await (0,n.updateMemory)(i,t,r||"human"),(0,s.emitUpdate)("memory_updated",{root:t}),a.NextResponse.json({ok:!0})}[n]=i.then?(await i)():i,e.s(["GET",()=>o,"POST",()=>l]),r()}catch(e){r(e)}},!1),36661,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),i=e.i(58e3),o=e.i(89292),l=e.i(22218),d=e.i(70540),u=e.i(9350),p=e.i(69462),c=e.i(13673),h=e.i(59429),x=e.i(41690),m=e.i(55318),R=e.i(99382),v=e.i(20606),g=e.i(93695);e.i(75436);var f=e.i(39468),w=e.i(77805),y=t([w]);[w]=y.then?(await y)():y;let b=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/memory/route",pathname:"/api/memory",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/memory/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:A,workUnitAsyncStorage:P,serverHooks:T}=b;function E(){return(0,s.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:P})}async function C(e,t,r){b.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/memory/route";a=a.replace(/\/index$/,"")||"/";let s=await b.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:y,nextConfig:E,parsedUrl:C,isDraftMode:A,prerenderManifest:P,routerServerContext:T,isOnDemandRevalidate:_,revalidateOnlyGenerated:N,resolvedPathname:k,clientReferenceManifest:O,serverActionsManifest:S}=s,j=(0,d.normalizeAppPath)(a),q=!!(P.dynamicRoutes[j]||P.routes[k]),U=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,C,!1):t.end("This page could not be found"),null);if(q&&!A){let e=!!P.routes[k],t=P.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await U();throw new g.NoFallbackError}}let H=null;!q||b.isDev||A||(H=k,H="/index"===H?"/":H);let I=!0===b.isDev||!q,D=q&&!I;S&&O&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:O,serverActionsManifest:S});let M=e.method||"GET",$=(0,o.getTracer)(),F=$.getActiveScopeSpan(),K={params:y,prerenderManifest:P,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,T)},sharedContext:{buildId:w}},B=new u.NodeNextRequest(e),L=new u.NodeNextResponse(t),G=p.NextRequestAdapter.fromNodeNextRequest(B,(0,p.signalFromNodeResponse)(t));try{let s=async e=>b.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),d=async i=>{var o,d;let u=async({previousCacheEntry:n})=>{try{if(!l&&_&&N&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let o=K.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let d=K.renderOpts.collectedTags;if(!q)return await (0,x.sendResponse)(B,L,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[v.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,T),t}},p=await b.handleResponse({req:e,nextConfig:E,cacheKey:H,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:N,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!q)return null;if((null==p||null==(o=p.value)?void 0:o.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",_?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,m.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&q||c.delete(v.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,R.getCacheControlHeader)(p.cacheControl)),await (0,x.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof g.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,T),q)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>E,"routeModule",()=>b,"serverHooks",()=>T,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>P]),r()}catch(e){r(e)}},!1),60830,e=>{e.v(t=>Promise.all(["server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js"].map(t=>e.l(t))).then(()=>t(48394)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__bacbf09e._.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/events.ts","../../../src/app/api/memory/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["/**\r\n * src/lib/events.ts\r\n * In-process SSE event bus.\r\n * API routes push events here; /api/events streams them to the browser.\r\n */\r\n\r\ntype Listener = (data: unknown) => void\r\n\r\nclass EventBus {\r\n private listeners = new Set<Listener>()\r\n\r\n subscribe(fn: Listener) {\r\n this.listeners.add(fn)\r\n return () => this.listeners.delete(fn)\r\n }\r\n\r\n emit(event: unknown) {\r\n this.listeners.forEach(fn => {\r\n try { fn(event) } catch {}\r\n })\r\n }\r\n}\r\n\r\n// Singleton — shared across all API routes in the same process\r\nconst globalForBus = globalThis as unknown as { vibedocBus?: EventBus }\r\nexport const bus = globalForBus.vibedocBus ?? (globalForBus.vibedocBus = new EventBus())\r\n\r\nexport function emitUpdate(type: string, payload: unknown) {\r\n bus.emit({ type, payload, ts: new Date().toISOString() })\r\n}\r\n","import { NextRequest, NextResponse } from 'next/server'\r\nimport { readMemory, updateMemory, getConfiguredRoot } from '@/lib/core'\r\nimport { emitUpdate } from '@/lib/events'\r\n\r\nexport async function GET(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const memory = await readMemory(root)\r\n return NextResponse.json(memory)\r\n}\r\n\r\nexport async function POST(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { actor, ...params } = await req.json()\r\n await updateMemory(params, root, actor || 'human')\r\n emitUpdate('memory_updated', { root })\r\n return NextResponse.json({ ok: true })\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"6iCAQA,OAAM,EACI,UAAY,IAAI,GAAe,CAEvC,UAAU,CAAY,CAAE,CAEtB,OADA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GACZ,IAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EACrC,CAEA,KAAK,CAAc,CAAE,CACnB,I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,MAAMiF,EAQjB,OALA,MAAA,CAAA,EAAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[2]}
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/events.ts","../../../src/app/api/memory/route.ts","../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/templates/app-route.ts"],"sourcesContent":["/**\r\n * src/lib/events.ts\r\n * In-process SSE event bus.\r\n * API routes push events here; /api/events streams them to the browser.\r\n */\r\n\r\ntype Listener = (data: unknown) => void\r\n\r\nclass EventBus {\r\n private listeners = new Set<Listener>()\r\n\r\n subscribe(fn: Listener) {\r\n this.listeners.add(fn)\r\n return () => this.listeners.delete(fn)\r\n }\r\n\r\n emit(event: unknown) {\r\n this.listeners.forEach(fn => {\r\n try { fn(event) } catch {}\r\n })\r\n }\r\n}\r\n\r\n// Singleton — shared across all API routes in the same process\r\nconst globalForBus = globalThis as unknown as { vibedocBus?: EventBus }\r\nexport const bus = globalForBus.vibedocBus ?? (globalForBus.vibedocBus = new EventBus())\r\n\r\nexport function emitUpdate(type: string, payload: unknown) {\r\n bus.emit({ type, payload, ts: new Date().toISOString() })\r\n}\r\n","import { NextRequest, NextResponse } from 'next/server'\r\nimport { readMemory, updateMemory, getConfiguredRoot } from '@/lib/core'\r\nimport { emitUpdate } from '@/lib/events'\r\n\r\nexport async function GET(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const memory = await readMemory(root)\r\n return NextResponse.json(memory)\r\n}\r\n\r\nexport async function POST(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const { actor, ...params } = await req.json()\r\n await updateMemory(params, root, actor || 'human')\r\n emitUpdate('memory_updated', { root })\r\n return NextResponse.json({ ok: true })\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { addRequestMeta, getRequestMeta } from '../../server/request-meta'\nimport { getTracer, type Span, SpanKind } from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\nimport * as userland from 'VAR_USERLAND'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n userland,\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil: (prom: Promise<void>) => void\n }\n) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n\n const context: AppRouteRouteHandlerContext = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n try {\n const invokeRouteModule = async (span?: Span) => {\n return routeModule.handle(nextReq, context).finally(() => {\n if (!span) return\n\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false,\n })\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route')\n if (route) {\n const name = `${method} ${route}`\n\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n span.updateName(name)\n } else {\n span.updateName(`${method} ${srcPage}`)\n }\n })\n }\n const isMinimalMode = Boolean(\n process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode')\n )\n\n const handleResponse = async (currentSpan?: Span) => {\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await invokeRouteModule(currentSpan)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n response,\n context.renderOpts.pendingWaitUntil\n )\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return null\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan)\n } else {\n await tracer.withPropagatedContext(req.headers, () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n handleResponse\n )\n )\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return null\n }\n}\n"],"names":["AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","getTracer","SpanKind","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","userland","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","isDev","hrtime","bigint","srcPage","TURBOPACK","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","experimental","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","context","renderOpts","authInterrupts","cacheComponents","incrementalCache","cacheLifeProfiles","cacheLife","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","invokeRouteModule","span","handle","finally","setAttributes","rootSpanAttributes","getRootSpanAttributes","get","handleRequest","console","warn","route","name","updateName","isMinimalMode","MINIMAL_MODE","handleResponse","currentSpan","cacheEntry","responseGenerator","previousCacheEntry","setHeader","response","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","value","status","body","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","routeKind","isFallback","isRoutePPREnabled","Error","isMiss","delete","getHeader","set","Response","withPropagatedContext","trace","spanName","SERVER","attributes","url"],"mappings":"6iCAQA,OAAM,EACI,UAAY,IAAI,GAAe,CAEvC,UAAU,CAAY,CAAE,CAEtB,OADA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GACZ,IAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EACrC,CAEA,KAAK,CAAc,CAAE,CACnB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IACrB,GAAI,CAAE,EAAG,EAAO,CAAE,KAAM,CAAC,CAC3B,EACF,CACF,CAGA,IAAM,EAAe,WACR,EAAM,EAAa,UAAU,GAAK,CAAD,CAAc,UAAU,CAAG,IAAI,CAAA,CAAU,CAEhF,SAAS,EAAW,CAAY,CAAE,CAAgB,EACvD,EAAI,IAAI,CAAC,CAAE,eAAM,EAAS,GAAI,IAAI,OAAO,WAAW,EAAG,EACzD,oEC7BA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,gBAEO,eAAe,EAAI,CAAgB,EACxC,IAAM,EAAO,EAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,SAAW,CAAA,EAAA,EAAA,iBAAA,AAAiB,IAChE,EAAS,MAAM,CAAA,EAAA,EAAA,UAAA,A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AM,EAAI,GACrC,IAEK,IACT,EAII5D,EACF,MAAMyC,EAAezC,EADP,CAGd,MAAMD,EAAOkF,qBAAqB,CAAC/H,EAAImG,MAdiG,CAc1F,CAAE,IAC9CtD,EAAOmF,KAAK,CACV/J,EAAAA,cAAAA,CAAe8G,aAAa,CAC5B,CACEkD,SAAU,CAAA,EAAGrF,EAAO,CAAC,EAAEtC,EAAAA,CAAS,CAChCxB,KAAMpB,EAAAA,QAAAA,CAASwK,MAAM,CACrBC,WAAY,CACV,cAAevF,EACf,cAAe5C,EAAIoI,GAAG,AACxB,CACF,EACA7C,GAIR,CAAE,MAAOyB,EAAK,CAuBZ,GAtBMA,aAAevI,EAAAA,eAAc,EAEjC,CAFqC,KAE/BG,EAAYqF,cAAc,CAC9BjE,EACAgH,EACA,CACEE,WAAY,aACZC,UAAWrF,EACXsF,UAAW,QACXC,iBAAAA,CAAAA,EAAkBnJ,EAAAA,mBAAAA,EAAoB,CACpCyE,0CACAlB,CACF,EACF,GACAuC,AAbiB,EAcjBxC,GAOAO,EAAO,MAAMiF,EAQjB,OALA,MAAA,CAAA,EAAM7I,EAAAA,YAAAA,EACJgG,EACAC,EACA,IAAI0D,SAAS,KAAM,CAAEpB,OAAQ,GAAI,IAE5B,IACT,CACF","ignoreList":[2]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},77314,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function i(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("path");if(!r)return a.NextResponse.json({error:"path required"},{status:400});let s=await (0,n.findBacklinks)(r,t);return a.NextResponse.json({links:s})}[n]=s.then?(await s)():s,e.s(["GET",()=>i]),r()}catch(e){r(e)}},!1),57016,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),i=e.i(58e3),o=e.i(
|
|
1
|
+
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},77314,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function i(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("path");if(!r)return a.NextResponse.json({error:"path required"},{status:400});let s=await (0,n.findBacklinks)(r,t);return a.NextResponse.json({links:s})}[n]=s.then?(await s)():s,e.s(["GET",()=>i]),r()}catch(e){r(e)}},!1),57016,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),i=e.i(58e3),o=e.i(89292),l=e.i(22218),d=e.i(70540),u=e.i(9350),p=e.i(69462),c=e.i(13673),h=e.i(59429),x=e.i(41690),R=e.i(55318),v=e.i(99382),f=e.i(20606),g=e.i(93695);e.i(75436);var m=e.i(39468),w=e.i(77314),E=t([w]);[w]=E.then?(await E)():E;let k=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/backlinks/route",pathname:"/api/backlinks",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/backlinks/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:b,workUnitAsyncStorage:A,serverHooks:P}=k;function y(){return(0,s.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:A})}async function C(e,t,r){k.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/backlinks/route";a=a.replace(/\/index$/,"")||"/";let s=await k.prepare(e,t,{srcPage:a,multiZoneDraftMode:!1});if(!s)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:y,parsedUrl:C,isDraftMode:b,prerenderManifest:A,routerServerContext:P,isOnDemandRevalidate:_,revalidateOnlyGenerated:N,resolvedPathname:T,clientReferenceManifest:q,serverActionsManifest:j}=s,O=(0,d.normalizeAppPath)(a),S=!!(A.dynamicRoutes[O]||A.routes[T]),U=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!b){let e=!!A.routes[T],t=A.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(y.experimental.adapterPath)return await U();throw new g.NoFallbackError}}let H=null;!S||k.isDev||b||(H=T,H="/index"===H?"/":H);let I=!0===k.isDev||!S,D=S&&!I;j&&q&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:q,serverActionsManifest:j});let M=e.method||"GET",$=(0,o.getTracer)(),F=$.getActiveScopeSpan(),K={params:E,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:y.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>k.onRequestError(e,t,a,n,P)},sharedContext:{buildId:w}},B=new u.NodeNextRequest(e),L=new u.NodeNextResponse(t),G=p.NextRequestAdapter.fromNodeNextRequest(B,(0,p.signalFromNodeResponse)(t));try{let s=async e=>k.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${a}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),d=async i=>{var o,d;let u=async({previousCacheEntry:n})=>{try{if(!l&&_&&N&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let o=K.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let d=K.renderOpts.collectedTags;if(!S)return await (0,x.sendResponse)(B,L,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,R.toNodeOutgoingHttpHeaders)(a.headers);d&&(t[f.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await k.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,P),t}},p=await k.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:N,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!S)return null;if((null==p||null==(o=p.value)?void 0:o.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",_?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,R.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&S||c.delete(f.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,v.getCacheControlHeader)(p.cacheControl)),await (0,x.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof g.NoFallbackError||await k.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,P),S)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>y,"routeModule",()=>k,"serverHooks",()=>P,"workAsyncStorage",()=>b,"workUnitAsyncStorage",()=>A]),r()}catch(e){r(e)}},!1),60830,e=>{e.v(t=>Promise.all(["server/chunks/39977_@anthropic-ai_sdk_index_mjs_b0ee562f._.js"].map(t=>e.l(t))).then(()=>t(48394)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__bd44b8e4._.js.map
|