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"))},50364,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function o(){let e=await (0,n.discoverProjects)();return a.NextResponse.json(e)}[n]=s.then?(await s)():s,e.s(["GET",()=>o]),r()}catch(e){r(e)}},!1),84584,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"))},50364,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function o(){let e=await (0,n.discoverProjects)();return a.NextResponse.json(e)}[n]=s.then?(await s)():s,e.s(["GET",()=>o]),r()}catch(e){r(e)}},!1),84584,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),p=e.i(9350),u=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(50364),E=t([w]);[w]=E.then?(await E)():E;let A=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/projects/route",pathname:"/api/projects",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/projects/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:b,workUnitAsyncStorage:_,serverHooks:j}=A;function y(){return(0,s.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:_})}async function C(e,t,r){A.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/projects/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:E,nextConfig:y,parsedUrl:C,isDraftMode:b,prerenderManifest:_,routerServerContext:j,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,resolvedPathname:N,clientReferenceManifest:k,serverActionsManifest:q}=s,O=(0,d.normalizeAppPath)(a),S=!!(_.dynamicRoutes[O]||_.routes[N]),H=async()=>((null==j?void 0:j.render404)?await j.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!b){let e=!!_.routes[N],t=_.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(y.experimental.adapterPath)return await H();throw new g.NoFallbackError}}let U=null;!S||A.isDev||b||(U=N,U="/index"===U?"/":U);let I=!0===A.isDev||!S,D=S&&!I;q&&k&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:k,serverActionsManifest:q});let M=e.method||"GET",$=(0,i.getTracer)(),F=$.getActiveScopeSpan(),K={params:E,prerenderManifest:_,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,o.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:y.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>A.onRequestError(e,t,a,n,j)},sharedContext:{buildId:w}},B=new p.NodeNextRequest(e),L=new p.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(B,(0,u.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 p=async({previousCacheEntry:n})=>{try{if(!l&&P&&T&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(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[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 A.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,j),t}},u=await A.handleResponse({req:e,nextConfig:y,cacheKey:U,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:_,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,responseGenerator:p,waitUntil:r.waitUntil,isMinimalMode:l});if(!S)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==m.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",P?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,R.fromNodeOutgoingHttpHeaders)(u.value.headers);return l&&S||c.delete(f.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,v.getCacheControlHeader)(u.cacheControl)),await (0,x.sendResponse)(B,L,new Response(u.value.body,{headers:c,status:u.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:i.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof g.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,j),S)throw t;return await (0,x.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>y,"routeModule",()=>A,"serverHooks",()=>j,"workAsyncStorage",()=>b,"workUnitAsyncStorage",()=>_]),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__7a7e1eb1._.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/app/api/projects/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 { NextResponse } from 'next/server'\r\nimport { discoverProjects } from '@/lib/core'\r\n\r\nexport async function GET() {\r\n const projects = await discoverProjects()\r\n return NextResponse.json(projects)\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,IACpB,IAAM,EAAW,MAAM,CAAA,EAAA,EAAA,gBAAA,AAAgB,IACvC,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,EAC3B,mGCNA,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,CAAA,AAFxBD,MAEmD,AAC1E,EAA+C,EAAA,CAAtCG,AAAqE,AAH5C,CAG4C,CADvD,EAAED,IAEzB,AAJ0C,CAGxB,CACoB,CADPE,CACO,CAA7BC,AAA6B,CAAA,IAFC,CACA,EAEvC,EAAiC,EAAA,CAAxBC,AAAwB,CAAA,AAFc,EACoC,IACT,CAC1E,AAF8B,EAEY,EAAQ,CAAA,AAAzCC,CAAyC,EADzB,AACyB,AAFZ,IAGtC,EAEEG,EAJ+B,AAK1B,CAFLD,AAEK,CAJwE,AAIxE,EADiB,AAHA,EAAED,GAK1B,EAA+B,CADxB,CAC0D,CAAxDG,AAAwD,CAAA,IAH7C,EA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BmH,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,oBACpCyE,EACAlB,sBACF,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":[1]}
|
|
1
|
+
{"version":3,"sources":["../../../src/app/api/projects/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 { NextResponse } from 'next/server'\r\nimport { discoverProjects } from '@/lib/core'\r\n\r\nexport async function GET() {\r\n const projects = await discoverProjects()\r\n return NextResponse.json(projects)\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,IACpB,IAAM,EAAW,MAAM,CAAA,EAAA,EAAA,gBAAA,AAAgB,IACvC,OAAO,EAAA,YAAY,CAAC,IAAI,CAAC,EAC3B,mGCNA,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,CAAA,AAFxBD,MAEmD,AAC1E,EAA+C,EAAA,CAAtCG,AAAqE,AAH5C,CAG4C,CADvD,EAAED,IAEzB,AAJ0C,CAGxB,CACoB,CADPE,CACO,CAA7BC,AAA6B,CAAA,IAFC,CACA,EAEvC,EAAiC,EAAA,CAAxBC,AAAwB,CAAA,AAFc,EACoC,IACT,CAC1E,AAF8B,EAEY,EAAQ,CAAA,AAAzCC,CAAyC,EADzB,AACyB,AAFZ,IAGtC,EAEEG,EAJ+B,AAK1B,CAFLD,AAEK,CAJwE,AAI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C,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,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":[1]}
|
|
@@ -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"))},59776,e=>{"use strict";e.s(["DEFAULT_AGENTS",0,[{id:"code-assistant",name:"Code Assistant",icon:"๐ค",description:"General-purpose coding help",skills:["code-review","test-writer"],prompt:"You are a helpful coding assistant. Help the user with their coding tasks.",active:!0},{id:"doc-bot",name:"Documentation Bot",icon:"๐",description:"Focused on docs and comments",skills:["doc-generator"],prompt:"You are a documentation specialist. Focus on creating and improving documentation.",active:!0}],"DEFAULT_SETTINGS",0,{theme:"dark",accentColor:"blue",fontSize:"medium",editor:{autoSave:10,wordWrap:!0,lineNumbers:!0,previewMode:"split"},project:{autoRefresh:10,showHidden:!1},mcp:{endpoint:"http://localhost:3000/api/mcp"}},"DEFAULT_SKILLS",0,[{id:"code-review",name:"Code Review",description:"Analyzes code for quality, security, and performance issues",trigger:"/review",prompt:"You are an expert code reviewer. Analyze the provided code for:\n- Code quality and best practices\n- Security vulnerabilities\n- Performance issues\n- Maintainability concerns\n\nProvide actionable feedback.",tools:["vibedoc_read_doc","vibedoc_search_docs"],icon:"๐ง"},{id:"doc-generator",name:"Documentation Generator",description:"Creates documentation from code and comments",trigger:"/docs",prompt:"You are a technical documentation writer. Generate clear, comprehensive documentation for the provided code or feature.",tools:["vibedoc_read_doc","vibedoc_write_doc"],icon:"๐"},{id:"test-writer",name:"Test Writer",description:"Generates unit tests for functions and components",trigger:"/test",prompt:"You are a testing expert. Write comprehensive unit tests for the provided code, covering edge cases and ensuring good test coverage.",tools:["vibedoc_read_doc","vibedoc_search_docs"],icon:"๐งช"}]])},36189,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(24868),s=e.i(14747),o=e.i(99501),i=e.i(59776),l=t([o]);[o]=l.then?(await l)():l;let g="settings.json",f="skills.json",m="agents.json";async function d(e){let t=s.default.join(e,".vibedoc");try{await n.default.mkdir(t,{recursive:!0})}catch{}return t}async function c(e,t){try{let r=await n.default.readFile(e,"utf8");return{...t,...JSON.parse(r)}}catch{return t}}async function u(e,t){await n.default.writeFile(e,JSON.stringify(t,null,2),"utf8")}async function p(e){let t=e.nextUrl.searchParams.get("root")||(0,o.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("type")||"all",n=await d(t);try{if("settings"===r||"all"===r){let e=await c(s.default.join(n,g),i.DEFAULT_SETTINGS);if("settings"===r)return a.NextResponse.json(e)}if("skills"===r||"all"===r){let e=await c(s.default.join(n,f),{skills:i.DEFAULT_SKILLS});if("skills"===r)return a.NextResponse.json(e)}if("agents"===r||"all"===r){let e=await c(s.default.join(n,m),{agents:i.DEFAULT_AGENTS});if("agents"===r)return a.NextResponse.json(e)}let[e,t,o]=await Promise.all([c(s.default.join(n,g),i.DEFAULT_SETTINGS),c(s.default.join(n,f),{skills:i.DEFAULT_SKILLS}),c(s.default.join(n,m),{agents:i.DEFAULT_AGENTS})]);return a.NextResponse.json({settings:e,skills:t.skills,agents:o.agents})}catch(e){return a.NextResponse.json({error:e.message},{status:500})}}async function h(e){let t=e.nextUrl.searchParams.get("root")||(0,o.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("type"),n=await d(t);try{let t=await e.json();switch(r){case"settings":await u(s.default.join(n,g),t);break;case"skills":await u(s.default.join(n,f),{skills:t});break;case"agents":await u(s.default.join(n,m),{agents:t});break;default:return a.NextResponse.json({error:"Invalid type"},{status:400})}return a.NextResponse.json({ok:!0})}catch(e){return a.NextResponse.json({error:e.message},{status:500})}}e.s(["GET",()=>p,"PUT",()=>h]),r()}catch(e){r(e)}},!1),52809,e=>e.a(async(t,r)=>{try{var a=e.i(93771),n=e.i(97686),s=e.i(75526),o=e.i(58e3),i=e.i(43835),l=e.i(22218),d=e.i(70540),c=e.i(9350),u=e.i(69462),p=e.i(13673),h=e.i(59429),g=e.i(41690),f=e.i(55318),m=e.i(99382),v=e.i(20606),x=e.i(93695);e.i(75436);var w=e.i(39468),R=e.i(36189),y=t([R]);[R]=y.then?(await y)():y;let T=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/settings/route",pathname:"/api/settings",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/settings/route.ts",nextConfigOutput:"",userland:R}),{workAsyncStorage:A,workUnitAsyncStorage:C,serverHooks:_}=T;function E(){return(0,s.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:C})}async function b(e,t,r){T.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/settings/route";a=a.replace(/\/index$/,"")||"/";let s=await T.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:R,params:y,nextConfig:E,parsedUrl:b,isDraftMode:A,prerenderManifest:C,routerServerContext:_,isOnDemandRevalidate:j,revalidateOnlyGenerated:k,resolvedPathname:N,clientReferenceManifest:S,serverActionsManifest:P}=s,U=(0,d.normalizeAppPath)(a),D=!!(C.dynamicRoutes[U]||C.routes[N]),q=async()=>((null==_?void 0:_.render404)?await _.render404(e,t,b,!1):t.end("This page could not be found"),null);if(D&&!A){let e=!!C.routes[N],t=C.dynamicRoutes[U];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await q();throw new x.NoFallbackError}}let O=null;!D||T.isDev||A||(O=N,O="/index"===O?"/":O);let I=!0===T.isDev||!D,F=D&&!I;P&&S&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:S,serverActionsManifest:P});let L=e.method||"GET",H=(0,i.getTracer)(),G=H.getActiveScopeSpan(),M={params:y,prerenderManifest:C,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)=>T.onRequestError(e,t,a,n,_)},sharedContext:{buildId:R}},K=new c.NodeNextRequest(e),$=new c.NodeNextResponse(t),B=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let s=async e=>T.handle(B,M).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.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=`${L} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${L} ${a}`)}),l=!!(0,o.getRequestMeta)(e,"minimalMode"),d=async o=>{var i,d;let c=async({previousCacheEntry:n})=>{try{if(!l&&j&&k&&!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=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&r.waitUntil&&(r.waitUntil(i),i=void 0);let d=M.renderOpts.collectedTags;if(!D)return await (0,g.sendResponse)(K,$,a,M.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,f.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!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,n=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:w.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 T.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:j})},!1,_),t}},u=await T.handleResponse({req:e,nextConfig:E,cacheKey:O,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:j,revalidateOnlyGenerated:k,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:l});if(!D)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==w.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",j?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,f.fromNodeOutgoingHttpHeaders)(u.value.headers);return l&&D||p.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,m.getCacheControlHeader)(u.cacheControl)),await (0,g.sendResponse)(K,$,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};G?await d(G):await H.withPropagatedContext(e.headers,()=>H.trace(p.BaseServerSpan.handleRequest,{spanName:`${L} ${a}`,kind:i.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},d))}catch(t){if(t instanceof x.NoFallbackError||await T.onRequestError(e,t,{routerKind:"App Router",routePath:U,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:j})},!1,_),D)throw t;return await (0,g.sendResponse)(K,$,new Response(null,{status:500})),null}}e.s(["handler",()=>b,"patchFetch",()=>E,"routeModule",()=>T,"serverHooks",()=>_,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>C]),r()}catch(e){r(e)}},!1)];
|
|
1
|
+
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},59776,e=>{"use strict";e.s(["DEFAULT_AGENTS",0,[{id:"code-assistant",name:"Code Assistant",icon:"๐ค",description:"General-purpose coding help",skills:["code-review","test-writer"],prompt:"You are a helpful coding assistant. Help the user with their coding tasks.",active:!0},{id:"doc-bot",name:"Documentation Bot",icon:"๐",description:"Focused on docs and comments",skills:["doc-generator"],prompt:"You are a documentation specialist. Focus on creating and improving documentation.",active:!0}],"DEFAULT_SETTINGS",0,{theme:"dark",accentColor:"blue",fontSize:"medium",editor:{autoSave:10,wordWrap:!0,lineNumbers:!0,previewMode:"split"},project:{autoRefresh:10,showHidden:!1},mcp:{endpoint:"http://localhost:3000/api/mcp"}},"DEFAULT_SKILLS",0,[{id:"code-review",name:"Code Review",description:"Analyzes code for quality, security, and performance issues",trigger:"/review",prompt:"You are an expert code reviewer. Analyze the provided code for:\n- Code quality and best practices\n- Security vulnerabilities\n- Performance issues\n- Maintainability concerns\n\nProvide actionable feedback.",tools:["vibedoc_read_doc","vibedoc_search_docs"],icon:"๐ง"},{id:"doc-generator",name:"Documentation Generator",description:"Creates documentation from code and comments",trigger:"/docs",prompt:"You are a technical documentation writer. Generate clear, comprehensive documentation for the provided code or feature.",tools:["vibedoc_read_doc","vibedoc_write_doc"],icon:"๐"},{id:"test-writer",name:"Test Writer",description:"Generates unit tests for functions and components",trigger:"/test",prompt:"You are a testing expert. Write comprehensive unit tests for the provided code, covering edge cases and ensuring good test coverage.",tools:["vibedoc_read_doc","vibedoc_search_docs"],icon:"๐งช"}]])},36189,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(24868),s=e.i(14747),i=e.i(99501),o=e.i(59776),l=t([i]);[i]=l.then?(await l)():l;let g="settings.json",f="skills.json",m="agents.json";async function d(e){let t=s.default.join(e,".vibedoc");try{await n.default.mkdir(t,{recursive:!0})}catch{}return t}async function c(e,t){try{let r=await n.default.readFile(e,"utf8");return{...t,...JSON.parse(r)}}catch{return t}}async function u(e,t){await n.default.writeFile(e,JSON.stringify(t,null,2),"utf8")}async function p(e){let t=e.nextUrl.searchParams.get("root")||(0,i.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("type")||"all",n=await d(t);try{if("settings"===r||"all"===r){let e=await c(s.default.join(n,g),o.DEFAULT_SETTINGS);if("settings"===r)return a.NextResponse.json(e)}if("skills"===r||"all"===r){let e=await c(s.default.join(n,f),{skills:o.DEFAULT_SKILLS});if("skills"===r)return a.NextResponse.json(e)}if("agents"===r||"all"===r){let e=await c(s.default.join(n,m),{agents:o.DEFAULT_AGENTS});if("agents"===r)return a.NextResponse.json(e)}let[e,t,i]=await Promise.all([c(s.default.join(n,g),o.DEFAULT_SETTINGS),c(s.default.join(n,f),{skills:o.DEFAULT_SKILLS}),c(s.default.join(n,m),{agents:o.DEFAULT_AGENTS})]);return a.NextResponse.json({settings:e,skills:t.skills,agents:i.agents})}catch(e){return a.NextResponse.json({error:e.message},{status:500})}}async function h(e){let t=e.nextUrl.searchParams.get("root")||(0,i.getConfiguredRoot)(),r=e.nextUrl.searchParams.get("type"),n=await d(t);try{let t=await e.json();switch(r){case"settings":await u(s.default.join(n,g),t);break;case"skills":await u(s.default.join(n,f),{skills:t});break;case"agents":await u(s.default.join(n,m),{agents:t});break;default:return a.NextResponse.json({error:"Invalid type"},{status:400})}return a.NextResponse.json({ok:!0})}catch(e){return a.NextResponse.json({error:e.message},{status:500})}}e.s(["GET",()=>p,"PUT",()=>h]),r()}catch(e){r(e)}},!1),52809,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),c=e.i(9350),u=e.i(69462),p=e.i(13673),h=e.i(59429),g=e.i(41690),f=e.i(55318),m=e.i(99382),v=e.i(20606),x=e.i(93695);e.i(75436);var w=e.i(39468),R=e.i(36189),y=t([R]);[R]=y.then?(await y)():y;let b=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/settings/route",pathname:"/api/settings",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/settings/route.ts",nextConfigOutput:"",userland:R}),{workAsyncStorage:T,workUnitAsyncStorage:A,serverHooks:j}=b;function E(){return(0,s.patchFetch)({workAsyncStorage:T,workUnitAsyncStorage:A})}async function _(e,t,r){b.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/settings/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:R,params:y,nextConfig:E,parsedUrl:_,isDraftMode:T,prerenderManifest:A,routerServerContext:j,isOnDemandRevalidate:k,revalidateOnlyGenerated:C,resolvedPathname:N,clientReferenceManifest:S,serverActionsManifest:P}=s,U=(0,d.normalizeAppPath)(a),D=!!(A.dynamicRoutes[U]||A.routes[N]),q=async()=>((null==j?void 0:j.render404)?await j.render404(e,t,_,!1):t.end("This page could not be found"),null);if(D&&!T){let e=!!A.routes[N],t=A.dynamicRoutes[U];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await q();throw new x.NoFallbackError}}let O=null;!D||b.isDev||T||(O=N,O="/index"===O?"/":O);let I=!0===b.isDev||!D,F=D&&!I;P&&S&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:S,serverActionsManifest:P});let L=e.method||"GET",H=(0,o.getTracer)(),G=H.getActiveScopeSpan(),M={params:y,prerenderManifest:A,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,j)},sharedContext:{buildId:R}},K=new c.NodeNextRequest(e),$=new c.NodeNextResponse(t),B=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let s=async e=>b.handle(B,M).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.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=`${L} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${L} ${a}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),d=async i=>{var o,d;let c=async({previousCacheEntry:n})=>{try{if(!l&&k&&C&&!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=M.renderOpts.fetchMetrics;let o=M.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let d=M.renderOpts.collectedTags;if(!D)return await (0,g.sendResponse)(K,$,a,M.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,f.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!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,n=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:w.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:F,isOnDemandRevalidate:k})},!1,j),t}},u=await b.handleResponse({req:e,nextConfig:E,cacheKey:O,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:k,revalidateOnlyGenerated:C,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:l});if(!D)return null;if((null==u||null==(o=u.value)?void 0:o.kind)!==w.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",k?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),T&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,f.fromNodeOutgoingHttpHeaders)(u.value.headers);return l&&D||p.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,m.getCacheControlHeader)(u.cacheControl)),await (0,g.sendResponse)(K,$,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};G?await d(G):await H.withPropagatedContext(e.headers,()=>H.trace(p.BaseServerSpan.handleRequest,{spanName:`${L} ${a}`,kind:o.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},d))}catch(t){if(t instanceof x.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:U,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:k})},!1,j),D)throw t;return await (0,g.sendResponse)(K,$,new Response(null,{status:500})),null}}e.s(["handler",()=>_,"patchFetch",()=>E,"routeModule",()=>b,"serverHooks",()=>j,"workAsyncStorage",()=>T,"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__8e790c7b._.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/settings.ts","../../../src/app/api/settings/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":["export interface AppSettings {\r\n theme: 'dark' | 'light' | 'system'\r\n accentColor: 'blue' | 'purple' | 'green' | 'orange'\r\n fontSize: 'small' | 'medium' | 'large'\r\n editor: {\r\n autoSave: number // 0 = off, otherwise seconds\r\n wordWrap: boolean\r\n lineNumbers: boolean\r\n previewMode: 'split' | 'tab' | 'preview'\r\n }\r\n project: {\r\n autoRefresh: number // 0 = off, otherwise seconds\r\n showHidden: boolean\r\n }\r\n mcp: {\r\n endpoint: string\r\n }\r\n}\r\n\r\nexport interface Skill {\r\n id: string\r\n name: string\r\n description: string\r\n trigger: string\r\n prompt: string\r\n tools: string[]\r\n icon?: string\r\n}\r\n\r\nexport interface Agent {\r\n id: string\r\n name: string\r\n icon: string\r\n description: string\r\n skills: string[]\r\n prompt: string\r\n active: boolean\r\n}\r\n\r\nexport const DEFAULT_SETTINGS: AppSettings = {\r\n theme: 'dark',\r\n accentColor: 'blue',\r\n fontSize: 'medium',\r\n editor: {\r\n autoSave: 10,\r\n wordWrap: true,\r\n lineNumbers: true,\r\n previewMode: 'split',\r\n },\r\n project: {\r\n autoRefresh: 10,\r\n showHidden: false,\r\n },\r\n mcp: {\r\n endpoint: 'http://localhost:3000/api/mcp',\r\n },\r\n}\r\n\r\nexport const DEFAULT_SKILLS: Skill[] = [\r\n {\r\n id: 'code-review',\r\n name: 'Code Review',\r\n description: 'Analyzes code for quality, security, and performance issues',\r\n trigger: '/review',\r\n prompt: 'You are an expert code reviewer. Analyze the provided code for:\\n- Code quality and best practices\\n- Security vulnerabilities\\n- Performance issues\\n- Maintainability concerns\\n\\nProvide actionable feedback.',\r\n tools: ['vibedoc_read_doc', 'vibedoc_search_docs'],\r\n icon: '๐ง',\r\n },\r\n {\r\n id: 'doc-generator',\r\n name: 'Documentation Generator',\r\n description: 'Creates documentation from code and comments',\r\n trigger: '/docs',\r\n prompt: 'You are a technical documentation writer. Generate clear, comprehensive documentation for the provided code or feature.',\r\n tools: ['vibedoc_read_doc', 'vibedoc_write_doc'],\r\n icon: '๐',\r\n },\r\n {\r\n id: 'test-writer',\r\n name: 'Test Writer',\r\n description: 'Generates unit tests for functions and components',\r\n trigger: '/test',\r\n prompt: 'You are a testing expert. Write comprehensive unit tests for the provided code, covering edge cases and ensuring good test coverage.',\r\n tools: ['vibedoc_read_doc', 'vibedoc_search_docs'],\r\n icon: '๐งช',\r\n },\r\n]\r\n\r\nexport const DEFAULT_AGENTS: Agent[] = [\r\n {\r\n id: 'code-assistant',\r\n name: 'Code Assistant',\r\n icon: '๐ค',\r\n description: 'General-purpose coding help',\r\n skills: ['code-review', 'test-writer'],\r\n prompt: 'You are a helpful coding assistant. Help the user with their coding tasks.',\r\n active: true,\r\n },\r\n {\r\n id: 'doc-bot',\r\n name: 'Documentation Bot',\r\n icon: '๐',\r\n description: 'Focused on docs and comments',\r\n skills: ['doc-generator'],\r\n prompt: 'You are a documentation specialist. Focus on creating and improving documentation.',\r\n active: true,\r\n },\r\n]\r\n","import { NextRequest, NextResponse } from 'next/server'\r\nimport fs from 'fs/promises'\r\nimport path from 'path'\r\nimport { getConfiguredRoot } from '@/lib/core'\r\nimport { DEFAULT_SETTINGS, DEFAULT_SKILLS, DEFAULT_AGENTS, type AppSettings, type Skill, type Agent } from '@/lib/settings'\r\n\r\nconst VIBEDOC_DIR = '.vibedoc'\r\nconst SETTINGS_FILE = 'settings.json'\r\nconst SKILLS_FILE = 'skills.json'\r\nconst AGENTS_FILE = 'agents.json'\r\n\r\nasync function ensureVibedocDir(root: string) {\r\n const dir = path.join(root, VIBEDOC_DIR)\r\n try {\r\n await fs.mkdir(dir, { recursive: true })\r\n } catch {}\r\n return dir\r\n}\r\n\r\nasync function readJsonFile<T>(filePath: string, defaultValue: T): Promise<T> {\r\n try {\r\n const content = await fs.readFile(filePath, 'utf8')\r\n return { ...defaultValue, ...JSON.parse(content) }\r\n } catch {\r\n return defaultValue\r\n }\r\n}\r\n\r\nasync function writeJsonFile(filePath: string, data: unknown): Promise<void> {\r\n await fs.writeFile(filePath, JSON.stringify(data, null, 2), 'utf8')\r\n}\r\n\r\nexport async function GET(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const type = req.nextUrl.searchParams.get('type') || 'all'\r\n const dir = await ensureVibedocDir(root)\r\n\r\n try {\r\n if (type === 'settings' || type === 'all') {\r\n const settings = await readJsonFile<AppSettings>(path.join(dir, SETTINGS_FILE), DEFAULT_SETTINGS)\r\n if (type === 'settings') return NextResponse.json(settings)\r\n }\r\n\r\n if (type === 'skills' || type === 'all') {\r\n const skills = await readJsonFile<{ skills: Skill[] }>(path.join(dir, SKILLS_FILE), { skills: DEFAULT_SKILLS })\r\n if (type === 'skills') return NextResponse.json(skills)\r\n }\r\n\r\n if (type === 'agents' || type === 'all') {\r\n const agents = await readJsonFile<{ agents: Agent[] }>(path.join(dir, AGENTS_FILE), { agents: DEFAULT_AGENTS })\r\n if (type === 'agents') return NextResponse.json(agents)\r\n }\r\n\r\n // Return all\r\n const [settings, skillsData, agentsData] = await Promise.all([\r\n readJsonFile<AppSettings>(path.join(dir, SETTINGS_FILE), DEFAULT_SETTINGS),\r\n readJsonFile<{ skills: Skill[] }>(path.join(dir, SKILLS_FILE), { skills: DEFAULT_SKILLS }),\r\n readJsonFile<{ agents: Agent[] }>(path.join(dir, AGENTS_FILE), { agents: DEFAULT_AGENTS }),\r\n ])\r\n\r\n return NextResponse.json({\r\n settings,\r\n skills: skillsData.skills,\r\n agents: agentsData.agents,\r\n })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 500 })\r\n }\r\n}\r\n\r\nexport async function PUT(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const type = req.nextUrl.searchParams.get('type')\r\n const dir = await ensureVibedocDir(root)\r\n\r\n try {\r\n const data = await req.json()\r\n\r\n switch (type) {\r\n case 'settings':\r\n await writeJsonFile(path.join(dir, SETTINGS_FILE), data)\r\n break\r\n case 'skills':\r\n await writeJsonFile(path.join(dir, SKILLS_FILE), { skills: data })\r\n break\r\n case 'agents':\r\n await writeJsonFile(path.join(dir, AGENTS_FILE), { agents: data })\r\n break\r\n default:\r\n return NextResponse.json({ error: 'Invalid type' }, { status: 400 })\r\n }\r\n\r\n return NextResponse.json({ ok: true })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 500 })\r\n }\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { 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":"skCAwFuC,CACrC,CACE,GAAI,iBACJ,KAAM,iBACN,KAAM,KACN,YAAa,8BACb,OAAQ,CAAC,cAAe,cAAc,CACtC,OAAQ,6EACR,QAAQ,CACV,EACA,CACE,GAAI,UACJ,KAAM,oBACN,KAAM,KACN,YAAa,+BACb,OAAQ,CAAC,gBAAgB,CACzB,OAAQ,qFACR,QAAQ,CACV,EACD,sBApE4C,CAC3C,MAAO,OACP,YAAa,OACb,SAAU,SACV,OAAQ,CACN,SAAU,GACV,UAAU,EACV,aAAa,EACb,YAAa,OACf,EACA,QAAS,CACP,YAAa,GACb,YAAY,CACd,EACA,IAAK,CAC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E5B,IACT,CACF","ignoreList":[2]}
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/settings.ts","../../../src/app/api/settings/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":["export interface AppSettings {\r\n theme: 'dark' | 'light' | 'system'\r\n accentColor: 'blue' | 'purple' | 'green' | 'orange'\r\n fontSize: 'small' | 'medium' | 'large'\r\n editor: {\r\n autoSave: number // 0 = off, otherwise seconds\r\n wordWrap: boolean\r\n lineNumbers: boolean\r\n previewMode: 'split' | 'tab' | 'preview'\r\n }\r\n project: {\r\n autoRefresh: number // 0 = off, otherwise seconds\r\n showHidden: boolean\r\n }\r\n mcp: {\r\n endpoint: string\r\n }\r\n}\r\n\r\nexport interface Skill {\r\n id: string\r\n name: string\r\n description: string\r\n trigger: string\r\n prompt: string\r\n tools: string[]\r\n icon?: string\r\n}\r\n\r\nexport interface Agent {\r\n id: string\r\n name: string\r\n icon: string\r\n description: string\r\n skills: string[]\r\n prompt: string\r\n active: boolean\r\n}\r\n\r\nexport const DEFAULT_SETTINGS: AppSettings = {\r\n theme: 'dark',\r\n accentColor: 'blue',\r\n fontSize: 'medium',\r\n editor: {\r\n autoSave: 10,\r\n wordWrap: true,\r\n lineNumbers: true,\r\n previewMode: 'split',\r\n },\r\n project: {\r\n autoRefresh: 10,\r\n showHidden: false,\r\n },\r\n mcp: {\r\n endpoint: 'http://localhost:3000/api/mcp',\r\n },\r\n}\r\n\r\nexport const DEFAULT_SKILLS: Skill[] = [\r\n {\r\n id: 'code-review',\r\n name: 'Code Review',\r\n description: 'Analyzes code for quality, security, and performance issues',\r\n trigger: '/review',\r\n prompt: 'You are an expert code reviewer. Analyze the provided code for:\\n- Code quality and best practices\\n- Security vulnerabilities\\n- Performance issues\\n- Maintainability concerns\\n\\nProvide actionable feedback.',\r\n tools: ['vibedoc_read_doc', 'vibedoc_search_docs'],\r\n icon: '๐ง',\r\n },\r\n {\r\n id: 'doc-generator',\r\n name: 'Documentation Generator',\r\n description: 'Creates documentation from code and comments',\r\n trigger: '/docs',\r\n prompt: 'You are a technical documentation writer. Generate clear, comprehensive documentation for the provided code or feature.',\r\n tools: ['vibedoc_read_doc', 'vibedoc_write_doc'],\r\n icon: '๐',\r\n },\r\n {\r\n id: 'test-writer',\r\n name: 'Test Writer',\r\n description: 'Generates unit tests for functions and components',\r\n trigger: '/test',\r\n prompt: 'You are a testing expert. Write comprehensive unit tests for the provided code, covering edge cases and ensuring good test coverage.',\r\n tools: ['vibedoc_read_doc', 'vibedoc_search_docs'],\r\n icon: '๐งช',\r\n },\r\n]\r\n\r\nexport const DEFAULT_AGENTS: Agent[] = [\r\n {\r\n id: 'code-assistant',\r\n name: 'Code Assistant',\r\n icon: '๐ค',\r\n description: 'General-purpose coding help',\r\n skills: ['code-review', 'test-writer'],\r\n prompt: 'You are a helpful coding assistant. Help the user with their coding tasks.',\r\n active: true,\r\n },\r\n {\r\n id: 'doc-bot',\r\n name: 'Documentation Bot',\r\n icon: '๐',\r\n description: 'Focused on docs and comments',\r\n skills: ['doc-generator'],\r\n prompt: 'You are a documentation specialist. Focus on creating and improving documentation.',\r\n active: true,\r\n },\r\n]\r\n","import { NextRequest, NextResponse } from 'next/server'\r\nimport fs from 'fs/promises'\r\nimport path from 'path'\r\nimport { getConfiguredRoot } from '@/lib/core'\r\nimport { DEFAULT_SETTINGS, DEFAULT_SKILLS, DEFAULT_AGENTS, type AppSettings, type Skill, type Agent } from '@/lib/settings'\r\n\r\nconst VIBEDOC_DIR = '.vibedoc'\r\nconst SETTINGS_FILE = 'settings.json'\r\nconst SKILLS_FILE = 'skills.json'\r\nconst AGENTS_FILE = 'agents.json'\r\n\r\nasync function ensureVibedocDir(root: string) {\r\n const dir = path.join(root, VIBEDOC_DIR)\r\n try {\r\n await fs.mkdir(dir, { recursive: true })\r\n } catch {}\r\n return dir\r\n}\r\n\r\nasync function readJsonFile<T>(filePath: string, defaultValue: T): Promise<T> {\r\n try {\r\n const content = await fs.readFile(filePath, 'utf8')\r\n return { ...defaultValue, ...JSON.parse(content) }\r\n } catch {\r\n return defaultValue\r\n }\r\n}\r\n\r\nasync function writeJsonFile(filePath: string, data: unknown): Promise<void> {\r\n await fs.writeFile(filePath, JSON.stringify(data, null, 2), 'utf8')\r\n}\r\n\r\nexport async function GET(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const type = req.nextUrl.searchParams.get('type') || 'all'\r\n const dir = await ensureVibedocDir(root)\r\n\r\n try {\r\n if (type === 'settings' || type === 'all') {\r\n const settings = await readJsonFile<AppSettings>(path.join(dir, SETTINGS_FILE), DEFAULT_SETTINGS)\r\n if (type === 'settings') return NextResponse.json(settings)\r\n }\r\n\r\n if (type === 'skills' || type === 'all') {\r\n const skills = await readJsonFile<{ skills: Skill[] }>(path.join(dir, SKILLS_FILE), { skills: DEFAULT_SKILLS })\r\n if (type === 'skills') return NextResponse.json(skills)\r\n }\r\n\r\n if (type === 'agents' || type === 'all') {\r\n const agents = await readJsonFile<{ agents: Agent[] }>(path.join(dir, AGENTS_FILE), { agents: DEFAULT_AGENTS })\r\n if (type === 'agents') return NextResponse.json(agents)\r\n }\r\n\r\n // Return all\r\n const [settings, skillsData, agentsData] = await Promise.all([\r\n readJsonFile<AppSettings>(path.join(dir, SETTINGS_FILE), DEFAULT_SETTINGS),\r\n readJsonFile<{ skills: Skill[] }>(path.join(dir, SKILLS_FILE), { skills: DEFAULT_SKILLS }),\r\n readJsonFile<{ agents: Agent[] }>(path.join(dir, AGENTS_FILE), { agents: DEFAULT_AGENTS }),\r\n ])\r\n\r\n return NextResponse.json({\r\n settings,\r\n skills: skillsData.skills,\r\n agents: agentsData.agents,\r\n })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 500 })\r\n }\r\n}\r\n\r\nexport async function PUT(req: NextRequest) {\r\n const root = req.nextUrl.searchParams.get('root') || getConfiguredRoot()\r\n const type = req.nextUrl.searchParams.get('type')\r\n const dir = await ensureVibedocDir(root)\r\n\r\n try {\r\n const data = await req.json()\r\n\r\n switch (type) {\r\n case 'settings':\r\n await writeJsonFile(path.join(dir, SETTINGS_FILE), data)\r\n break\r\n case 'skills':\r\n await writeJsonFile(path.join(dir, SKILLS_FILE), { skills: data })\r\n break\r\n case 'agents':\r\n await writeJsonFile(path.join(dir, AGENTS_FILE), { agents: data })\r\n break\r\n default:\r\n return NextResponse.json({ error: 'Invalid type' }, { status: 400 })\r\n }\r\n\r\n return NextResponse.json({ ok: true })\r\n } catch (e) {\r\n return NextResponse.json({ error: (e as Error).message }, { status: 500 })\r\n }\r\n}\r\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport { 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":"skCAwFuC,CACrC,CACE,GAAI,iBACJ,KAAM,iBACN,KAAM,KACN,YAAa,8BACb,OAAQ,CAAC,cAAe,cAAc,CACtC,OAAQ,6EACR,QAAQ,CACV,EACA,CACE,GAAI,UACJ,KAAM,oBACN,KAAM,KACN,YAAa,+BACb,OAAQ,CAAC,gBAAgB,CACzB,OAAQ,qFACR,QAAQ,CACV,EACD,sBApE4C,CAC3C,MAAO,OACP,YAAa,OACb,SAAU,SACV,OAAQ,CACN,SAA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A,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"))},32338,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function o(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=await (0,n.getProjectSummary)(t);return a.NextResponse.json(r)}[n]=s.then?(await s)():s,e.s(["GET",()=>o]),r()}catch(e){r(e)}},!1),8743,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"))},32338,e=>e.a(async(t,r)=>{try{var a=e.i(52544),n=e.i(99501),s=t([n]);async function o(e){let t=e.nextUrl.searchParams.get("root")||(0,n.getConfiguredRoot)(),r=await (0,n.getProjectSummary)(t);return a.NextResponse.json(r)}[n]=s.then?(await s)():s,e.s(["GET",()=>o]),r()}catch(e){r(e)}},!1),8743,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),m=e.i(99382),v=e.i(20606),g=e.i(93695);e.i(75436);var f=e.i(39468),y=e.i(32338),w=t([y]);[y]=w.then?(await w)():w;let A=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/summary/route",pathname:"/api/summary",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/summary/route.ts",nextConfigOutput:"",userland:y}),{workAsyncStorage:b,workUnitAsyncStorage:P,serverHooks:_}=A;function E(){return(0,s.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:P})}async function C(e,t,r){A.isDev&&(0,o.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let a="/api/summary/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:y,params:w,nextConfig:E,parsedUrl:C,isDraftMode:b,prerenderManifest:P,routerServerContext:_,isOnDemandRevalidate:T,revalidateOnlyGenerated:N,resolvedPathname:k,clientReferenceManifest:j,serverActionsManifest:q}=s,O=(0,d.normalizeAppPath)(a),S=!!(P.dynamicRoutes[O]||P.routes[k]),H=async()=>((null==_?void 0:_.render404)?await _.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!b){let e=!!P.routes[k],t=P.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await H();throw new g.NoFallbackError}}let U=null;!S||A.isDev||b||(U=k,U="/index"===U?"/":U);let I=!0===A.isDev||!S,D=S&&!I;q&&j&&(0,l.setManifestsSingleton)({page:a,clientReferenceManifest:j,serverActionsManifest:q});let M=e.method||"GET",$=(0,i.getTracer)(),F=$.getActiveScopeSpan(),K={params:w,prerenderManifest:P,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,_)},sharedContext:{buildId:y}},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&&!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[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 A.onRequestError(e,t,{routerKind:"App Router",routePath:a,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,_),t}},p=await A.handleResponse({req:e,nextConfig:E,cacheKey:U,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:N,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:l});if(!S)return null;if((null==p||null==(i=p.value)?void 0:i.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",T?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,R.fromNodeOutgoingHttpHeaders)(p.value.headers);return l&&S||c.delete(v.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,m.getCacheControlHeader)(p.cacheControl)),await (0,x.sendResponse)(B,L,new Response(p.value.body,{headers:c,status:p.value.status||200})),null};F?await d(F):await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${M} ${a}`,kind:i.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},d))}catch(t){if(t instanceof g.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,_),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",()=>_,"workAsyncStorage",()=>b,"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__9d1f6722._.js.map
|