dev3000 0.0.96 → 0.0.97
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/dist/dev-environment.d.ts +1 -0
- package/dist/dev-environment.d.ts.map +1 -1
- package/dist/dev-environment.js +24 -0
- package/dist/dev-environment.js.map +1 -1
- package/mcp-server/.next/BUILD_ID +1 -1
- package/mcp-server/.next/build-manifest.json +10 -8
- package/mcp-server/.next/fallback-build-manifest.json +5 -3
- package/mcp-server/.next/images-manifest.json +2 -8
- package/mcp-server/.next/next-minimal-server.js.nft.json +1 -1
- package/mcp-server/.next/next-server.js.nft.json +1 -1
- package/mcp-server/.next/prerender-manifest.json +3 -3
- package/mcp-server/.next/required-server-files.json +18 -19
- package/mcp-server/.next/server/app/_global-error/page/build-manifest.json +5 -5
- package/mcp-server/.next/server/app/_global-error/page.js +8 -8
- package/mcp-server/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/mcp-server/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/mcp-server/.next/server/app/_global-error.html +2 -2
- package/mcp-server/.next/server/app/_global-error.meta +1 -6
- package/mcp-server/.next/server/app/_global-error.rsc +13 -11
- package/mcp-server/.next/server/app/_not-found/page/build-manifest.json +5 -5
- package/mcp-server/.next/server/app/_not-found/page.js +10 -10
- package/mcp-server/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/mcp-server/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/mcp-server/.next/server/app/_not-found.html +1 -1
- package/mcp-server/.next/server/app/_not-found.meta +1 -7
- package/mcp-server/.next/server/app/_not-found.rsc +14 -12
- package/mcp-server/.next/server/app/api/jank/[session]/route.js +6 -6
- package/mcp-server/.next/server/app/api/jank/[session]/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/logs/append/route.js +4 -4
- package/mcp-server/.next/server/app/api/logs/append/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/logs/head/route.js +4 -4
- package/mcp-server/.next/server/app/api/logs/head/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/logs/list/route.js +4 -4
- package/mcp-server/.next/server/app/api/logs/list/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/logs/rotate/route.js +5 -5
- package/mcp-server/.next/server/app/api/logs/rotate/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/logs/stream/route.js +4 -4
- package/mcp-server/.next/server/app/api/logs/stream/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/logs/tail/route.js +4 -4
- package/mcp-server/.next/server/app/api/logs/tail/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/orchestrator/route.js +5 -5
- package/mcp-server/.next/server/app/api/orchestrator/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/screenshots/[filename]/route.js +5 -5
- package/mcp-server/.next/server/app/api/screenshots/[filename]/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/screenshots/list/route.js +5 -5
- package/mcp-server/.next/server/app/api/screenshots/list/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/api/tools/route.js +5 -5
- package/mcp-server/.next/server/app/api/tools/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/index.html +1 -1
- package/mcp-server/.next/server/app/index.meta +2 -7
- package/mcp-server/.next/server/app/index.rsc +16 -14
- package/mcp-server/.next/server/app/logs/page/build-manifest.json +5 -5
- package/mcp-server/.next/server/app/logs/page.js +13 -13
- package/mcp-server/.next/server/app/logs/page.js.nft.json +1 -1
- package/mcp-server/.next/server/app/logs/page_client-reference-manifest.js +1 -1
- package/mcp-server/.next/server/app/mcp/route.js +4 -4
- package/mcp-server/.next/server/app/mcp/route.js.nft.json +1 -1
- package/mcp-server/.next/server/app/page/build-manifest.json +5 -5
- package/mcp-server/.next/server/app/page.js +12 -12
- package/mcp-server/.next/server/app/page.js.nft.json +1 -1
- package/mcp-server/.next/server/app/page_client-reference-manifest.js +1 -1
- package/mcp-server/.next/server/app/video/[session]/page/build-manifest.json +5 -5
- package/mcp-server/.next/server/app/video/[session]/page.js +12 -12
- package/mcp-server/.next/server/app/video/[session]/page.js.nft.json +1 -1
- package/mcp-server/.next/server/app/video/[session]/page_client-reference-manifest.js +1 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__013bbeea._.js +7 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__013bbeea._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__05e38acd._.js +3 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__05e38acd._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__2056c8b5._.js +3 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__2056c8b5._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__3130ceec._.js +3 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__3130ceec._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__5114419d._.js +3 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__5114419d._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__5248c9ff._.js +3 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__73645708._.js +11 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__73645708._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__8fc8f497._.js +4 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__8fc8f497._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__94037b23._.js +2 -2
- package/mcp-server/.next/server/chunks/[root-of-the-server]__94037b23._.js.map +1 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__9a45c8f9._.js +1 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__9a45c8f9._.js.map +1 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__9c489027._.js +3 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__9c489027._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__a004a307._.js +3 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__a004a307._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__ae49815f._.js +2 -2
- package/mcp-server/.next/server/chunks/[root-of-the-server]__ae49815f._.js.map +1 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__cc74dbef._.js +2 -2
- package/mcp-server/.next/server/chunks/[root-of-the-server]__cc74dbef._.js.map +1 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__cc81580c._.js +3 -0
- package/mcp-server/.next/server/chunks/{[root-of-the-server]__3899cb0e._.js.map → [root-of-the-server]__cc81580c._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__d200fe4a._.js +3 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__d200fe4a._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__dc0b0022._.js +17 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__dc0b0022._.js.map +1 -0
- package/mcp-server/.next/server/chunks/[root-of-the-server]__e1a64519._.js +1 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__e1a64519._.js.map +1 -1
- package/mcp-server/.next/server/chunks/[turbopack]_runtime.js +1 -1
- package/mcp-server/.next/server/chunks/[turbopack]_runtime.js.map +1 -1
- package/mcp-server/.next/server/chunks/d1d76_next_09a9e080._.js +17 -0
- package/mcp-server/.next/server/chunks/d1d76_next_09a9e080._.js.map +1 -0
- package/mcp-server/.next/server/chunks/d1d76_next_dist_esm_build_templates_app-route_820fc951.js +3 -0
- package/mcp-server/.next/server/chunks/d1d76_next_dist_esm_build_templates_app-route_820fc951.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__02a8c992._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__05689c01._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__9fa75557._.js.map → [root-of-the-server]__05689c01._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__61c905ce._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__00b0a236._.js.map → [root-of-the-server]__61c905ce._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__8863b0f6._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__8863b0f6._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__9bc632fa._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__7a510847._.js.map → [root-of-the-server]__9bc632fa._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__9f07837d._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__1c9d4256._.js.map → [root-of-the-server]__9f07837d._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__295a5dca._.js → [root-of-the-server]__a4bb31a6._.js} +2 -2
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__295a5dca._.js.map → [root-of-the-server]__a4bb31a6._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__aed64cd3._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__d545d815._.js.map → [root-of-the-server]__aed64cd3._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__cf030fda._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__28056c4f._.js.map → [root-of-the-server]__cf030fda._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__db74836a._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__712e3fd9._.js.map → [root-of-the-server]__db74836a._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__fc10c8f1._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__93844002._.js.map → [root-of-the-server]__fc10c8f1._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/[turbopack]_runtime.js +1 -1
- package/mcp-server/.next/server/chunks/ssr/[turbopack]_runtime.js.map +1 -1
- package/mcp-server/.next/server/chunks/ssr/_0b8335fc._.js +8 -0
- package/mcp-server/.next/server/chunks/ssr/_0b8335fc._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/_6129d8ec._.js +4 -0
- package/mcp-server/.next/server/chunks/ssr/_6129d8ec._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/_74bf5366._.js +8 -0
- package/mcp-server/.next/server/chunks/ssr/_74bf5366._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/_7d3d2f5f._.js +4 -0
- package/mcp-server/.next/server/chunks/ssr/_7d3d2f5f._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/_e4aa8f16._.js +4 -0
- package/mcp-server/.next/server/chunks/ssr/_e4aa8f16._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_032c5c2e._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_032c5c2e._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_08b22e19._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_08b22e19._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_369453b3._.js +6 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_369453b3._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_ad253fdc._.js +4 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_ad253fdc._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_b9509b36._.js +6 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_b9509b36._.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_client_components_6557bb14._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{962f0_next_dist_client_components_0633a613._.js.map → d1d76_next_dist_client_components_6557bb14._.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/{962f0_next_dist_client_components_builtin_forbidden_828a4c7b.js → d1d76_next_dist_client_components_builtin_forbidden_c162dd05.js} +2 -2
- package/mcp-server/.next/server/chunks/ssr/{962f0_next_dist_client_components_builtin_forbidden_828a4c7b.js.map → d1d76_next_dist_client_components_builtin_forbidden_c162dd05.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_client_components_builtin_global-error_3d982957.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/{962f0_next_dist_client_components_builtin_global-error_c9f9f74f.js.map → d1d76_next_dist_client_components_builtin_global-error_3d982957.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/{962f0_next_dist_client_components_builtin_unauthorized_0a08bab6.js → d1d76_next_dist_client_components_builtin_unauthorized_e4f02ffd.js} +2 -2
- package/mcp-server/.next/server/chunks/ssr/{962f0_next_dist_client_components_builtin_unauthorized_0a08bab6.js.map → d1d76_next_dist_client_components_builtin_unauthorized_e4f02ffd.js.map} +1 -1
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_esm_build_templates_app-page_134a93a5.js +4 -0
- package/mcp-server/.next/server/chunks/ssr/d1d76_next_dist_esm_build_templates_app-page_134a93a5.js.map +1 -0
- package/mcp-server/.next/server/chunks/ssr/mcp-server_app_layout_tsx_afa41767._.js +1 -1
- package/mcp-server/.next/server/chunks/ssr/mcp-server_app_page_tsx_9fc46577._.js +1 -1
- package/mcp-server/.next/server/chunks/ssr/mcp-server_app_page_tsx_9fc46577._.js.map +1 -1
- package/mcp-server/.next/server/chunks/ssr/mcp-server_components_dark-mode-toggle_tsx_f31dd15d._.js +1 -1
- package/mcp-server/.next/server/chunks/ssr/mcp-server_components_dark-mode-toggle_tsx_f31dd15d._.js.map +1 -1
- package/mcp-server/.next/server/chunks/ssr/node_modules__pnpm_3d10aa72._.js +3 -0
- package/mcp-server/.next/server/chunks/ssr/node_modules__pnpm_3d10aa72._.js.map +1 -0
- package/mcp-server/.next/server/middleware-build-manifest.js +8 -6
- package/mcp-server/.next/server/server-reference-manifest.js +1 -1
- package/mcp-server/.next/server/server-reference-manifest.json +1 -1
- package/mcp-server/.next/static/chunks/02f9434392c7ca30.js +1 -0
- package/mcp-server/.next/static/chunks/189ddffb3a8cbfbd.js +1 -0
- package/mcp-server/.next/static/chunks/1d2676338b51bbcf.js +1 -0
- package/mcp-server/.next/static/chunks/526448e84b58822c.js +1 -0
- package/mcp-server/.next/static/chunks/{e161f5ca5017b065.js → 711519b5a2e53fc8.js} +1 -1
- package/mcp-server/.next/static/chunks/7abbb9a17b62c1fa.js +1 -0
- package/mcp-server/.next/static/chunks/8364b81221aabb64.js +1 -0
- package/mcp-server/.next/static/chunks/98f7307a4a4d67d3.js +1 -0
- package/mcp-server/.next/static/chunks/a0ba80c585f94c7d.js +1 -0
- package/mcp-server/.next/static/chunks/addab50e23821c6c.js +1 -0
- package/mcp-server/.next/static/chunks/b5c56c55f894681d.js +1 -0
- package/mcp-server/.next/static/chunks/bb2e6ac36794beea.css +1 -0
- package/mcp-server/.next/static/chunks/turbopack-22a9e2c19fd12b04.js +3 -0
- package/mcp-server/next.config.mjs +0 -4
- package/package.json +1 -1
- package/mcp-server/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +0 -5
- package/mcp-server/.next/server/app/_global-error.segments/_index.segment.rsc +0 -4
- package/mcp-server/.next/server/app/_global-error.segments/_tree.segment.rsc +0 -7
- package/mcp-server/.next/server/app/_not-found.segments/_index.segment.rsc +0 -5
- package/mcp-server/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +0 -5
- package/mcp-server/.next/server/app/_not-found.segments/_not-found.segment.rsc +0 -4
- package/mcp-server/.next/server/app/_not-found.segments/_tree.segment.rsc +0 -8
- package/mcp-server/.next/server/app/index.segments/__PAGE__.segment.rsc +0 -9
- package/mcp-server/.next/server/app/index.segments/_index.segment.rsc +0 -5
- package/mcp-server/.next/server/app/index.segments/_tree.segment.rsc +0 -8
- package/mcp-server/.next/server/chunks/962f0_next_80b90dc3._.js +0 -17
- package/mcp-server/.next/server/chunks/962f0_next_80b90dc3._.js.map +0 -1
- package/mcp-server/.next/server/chunks/962f0_next_dist_esm_build_templates_app-route_fbcab413.js +0 -3
- package/mcp-server/.next/server/chunks/962f0_next_dist_esm_build_templates_app-route_fbcab413.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__05e1e17a._.js +0 -11
- package/mcp-server/.next/server/chunks/[root-of-the-server]__05e1e17a._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__0f1f904c._.js +0 -4
- package/mcp-server/.next/server/chunks/[root-of-the-server]__0f1f904c._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__37cbcfad._.js +0 -3
- package/mcp-server/.next/server/chunks/[root-of-the-server]__3899cb0e._.js +0 -3
- package/mcp-server/.next/server/chunks/[root-of-the-server]__40003a13._.js +0 -3
- package/mcp-server/.next/server/chunks/[root-of-the-server]__40003a13._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__4e52a647._.js +0 -3
- package/mcp-server/.next/server/chunks/[root-of-the-server]__4e52a647._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__746ebd24._.js +0 -3
- package/mcp-server/.next/server/chunks/[root-of-the-server]__746ebd24._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__7820f710._.js +0 -7
- package/mcp-server/.next/server/chunks/[root-of-the-server]__7820f710._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__8caade4f._.js +0 -17
- package/mcp-server/.next/server/chunks/[root-of-the-server]__8caade4f._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__be04c8ec._.js +0 -3
- package/mcp-server/.next/server/chunks/[root-of-the-server]__be04c8ec._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__d8c4b7af._.js +0 -3
- package/mcp-server/.next/server/chunks/[root-of-the-server]__d8c4b7af._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__db4dce5b._.js +0 -3
- package/mcp-server/.next/server/chunks/[root-of-the-server]__db4dce5b._.js.map +0 -1
- package/mcp-server/.next/server/chunks/[root-of-the-server]__e305b486._.js +0 -3
- package/mcp-server/.next/server/chunks/[root-of-the-server]__e305b486._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_0ff128f8._.js +0 -6
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_0ff128f8._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_431de271._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_431de271._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_7f9577da._.js +0 -24
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_7f9577da._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_a28dc041._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_a28dc041._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_a8de8a6b._.js +0 -4
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_a8de8a6b._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_client_components_0633a613._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_client_components_builtin_global-error_c9f9f74f.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_esm_build_templates_app-page_077a704a.js +0 -4
- package/mcp-server/.next/server/chunks/ssr/962f0_next_dist_esm_build_templates_app-page_077a704a.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__00b0a236._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__1c9d4256._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__28056c4f._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__2c3254f5._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__4e8e802a._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__4e8e802a._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__712e3fd9._.js +0 -4
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__7a510847._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__93844002._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__9fa75557._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__d545d815._.js +0 -3
- package/mcp-server/.next/server/chunks/ssr/_2485ac42._.js +0 -4
- package/mcp-server/.next/server/chunks/ssr/_2485ac42._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/_7665d4b6._.js +0 -8
- package/mcp-server/.next/server/chunks/ssr/_7665d4b6._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/_85b0bb0e._.js +0 -4
- package/mcp-server/.next/server/chunks/ssr/_85b0bb0e._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/_ab0d4e66._.js +0 -4
- package/mcp-server/.next/server/chunks/ssr/_ab0d4e66._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/_f8d18179._.js +0 -8
- package/mcp-server/.next/server/chunks/ssr/_f8d18179._.js.map +0 -1
- package/mcp-server/.next/server/chunks/ssr/node_modules__pnpm_c4e917e2._.js +0 -5
- package/mcp-server/.next/server/chunks/ssr/node_modules__pnpm_c4e917e2._.js.map +0 -1
- package/mcp-server/.next/static/chunks/05266f8dc7f39515.js +0 -1
- package/mcp-server/.next/static/chunks/254fc038b458fc24.js +0 -1
- package/mcp-server/.next/static/chunks/47dfa4a59a973c81.js +0 -3
- package/mcp-server/.next/static/chunks/523922d638939c73.js +0 -3
- package/mcp-server/.next/static/chunks/65304580f587f083.js +0 -4
- package/mcp-server/.next/static/chunks/6ceb8223d9b0e885.js +0 -1
- package/mcp-server/.next/static/chunks/8ed7fe711322c4f9.css +0 -1
- package/mcp-server/.next/static/chunks/9d92c8368f54bcf4.js +0 -1
- package/mcp-server/.next/static/chunks/c5e14dcc4f8e1b05.js +0 -20
- package/mcp-server/.next/static/chunks/cf974972e06aaa61.js +0 -3
- package/mcp-server/.next/static/chunks/f4943fd29d67839f.js +0 -1
- package/mcp-server/.next/static/chunks/turbopack-d86fbc741b623284.js +0 -3
- /package/mcp-server/.next/server/chunks/{[root-of-the-server]__37cbcfad._.js.map → [root-of-the-server]__5248c9ff._.js.map} +0 -0
- /package/mcp-server/.next/server/chunks/ssr/{[root-of-the-server]__2c3254f5._.js.map → [root-of-the-server]__02a8c992._.js.map} +0 -0
- /package/mcp-server/.next/static/{IjjcEdBSrakBEegq2HWWk → iHaJzn8QVjhj88-nJSwHJ}/_buildManifest.js +0 -0
- /package/mcp-server/.next/static/{IjjcEdBSrakBEegq2HWWk → iHaJzn8QVjhj88-nJSwHJ}/_clientMiddlewareManifest.json +0 -0
- /package/mcp-server/.next/static/{IjjcEdBSrakBEegq2HWWk → iHaJzn8QVjhj88-nJSwHJ}/_ssgManifest.js +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},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"))},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"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},39765,e=>{"use strict";var t=e.i(12e3),r=e.i(32560),a=e.i(76834),n=e.i(74423),o=e.i(39932),s=e.i(18271),i=e.i(39350),l=e.i(69635),d=e.i(58154),u=e.i(98378),p=e.i(2818),c=e.i(65015),x=e.i(62177),h=e.i(46523),R=e.i(96843),v=e.i(97497),g=e.i(93695);e.i(2239);var f=e.i(13167),m=e.i(22734),w=e.i(37859),E=e.i(14747);async function y(e){try{let{currentLogPath:t}=await e.json();if(!t)return w.NextResponse.json({error:"currentLogPath is required"},{status:400});if(!(0,m.existsSync)(t))return w.NextResponse.json({error:"Current log file not found"},{status:404});let r=(0,E.dirname)(t),a=new Date().toISOString().replace(/[:.]/g,"-"),n=(t.split("/").pop()||"").match(/^dev3000-([^-]+)-/),o=n?n[1]:"unknown",s=(0,E.join)(r,`dev3000-${o}-${a}.log`);return(0,m.renameSync)(t,s),(0,m.writeFileSync)(t,""),w.NextResponse.json({success:!0,archivedLogPath:s,currentLogPath:t,timestamp:a})}catch(e){return console.error("Log rotation error:",e),w.NextResponse.json({error:"Failed to rotate log file"},{status:500})}}e.s(["POST",()=>y],16550);var C=e.i(16550);let A=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/logs/rotate/route",pathname:"/api/logs/rotate",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/mcp-server/app/api/logs/rotate/route.ts",nextConfigOutput:"",userland:C}),{workAsyncStorage:N,workUnitAsyncStorage:b,serverHooks:S}=A;function q(){return(0,a.patchFetch)({workAsyncStorage:N,workUnitAsyncStorage:b})}async function P(e,t,a){var m;A.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/logs/rotate/route";w=w.replace(/\/index$/,"")||"/";let E=await A.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!E)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:y,params:C,nextConfig:N,isDraftMode:b,prerenderManifest:S,routerServerContext:q,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,resolvedPathname:j,clientReferenceManifest:O,serverActionsManifest:k}=E,M=(0,l.normalizeAppPath)(w),_=!!(S.dynamicRoutes[M]||S.routes[j]);if(_&&!b){let e=!!S.routes[j],t=S.dynamicRoutes[M];if(t&&!1===t.fallback&&!e)throw new g.NoFallbackError}let H=null;!_||A.isDev||b||(H="/index"===(H=j)?"/":H);let I=!0===A.isDev||!_,U=_&&!I;k&&O&&(0,s.setReferenceManifestsSingleton)({page:w,clientReferenceManifest:O,serverActionsManifest:k,serverModuleMap:(0,i.createServerModuleMap)({serverActionsManifest:k})});let D=e.method||"GET",$=(0,o.getTracer)(),F=$.getActiveScopeSpan(),K={params:C,prerenderManifest:S,renderOpts:{experimental:{cacheComponents:!!N.experimental.cacheComponents,authInterrupts:!!N.experimental.authInterrupts},supportsDynamicResponse:I,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:null==(m=N.experimental)?void 0:m.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a)=>A.onRequestError(e,t,a,q)},sharedContext:{buildId:y}},L=new d.NodeNextRequest(e),B=new d.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(L,(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")!==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 a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${D} ${w}`)}),i=async o=>{var i,l;let d=async({previousCacheEntry:r})=>{try{if(!(0,n.getRequestMeta)(e,"minimalMode")&&P&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await s(o);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let d=K.renderOpts.collectedTags;if(!_)return await (0,x.sendResponse)(L,B,i,K.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(i.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,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:P})},q),t}},u=await A.handleResponse({req:e,nextConfig:N,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,responseGenerator:d,waitUntil:a.waitUntil});if(!_)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,n.getRequestMeta)(e,"minimalMode")||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 p=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return(0,n.getRequestMeta)(e,"minimalMode")&&_||p.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,R.getCacheControlHeader)(u.cacheControl)),await (0,x.sendResponse)(L,B,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};F?await i(F):await $.withPropagatedContext(e.headers,()=>$.trace(p.BaseServerSpan.handleRequest,{spanName:`${D} ${w}`,kind:o.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i))}catch(t){if(t instanceof g.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:P})}),_)throw t;return await (0,x.sendResponse)(L,B,new Response(null,{status:500})),null}}e.s(["handler",()=>P,"patchFetch",()=>q,"routeModule",()=>A,"serverHooks",()=>S,"workAsyncStorage",()=>N,"workUnitAsyncStorage",()=>b],39765)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__be04c8ec._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["turbopack:///[project]/node_modules/.pnpm/next@16.0.0-canary.10_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/build/templates/app-route.js","turbopack:///[project]/mcp-server/app/api/logs/rotate/route.ts"],"sourcesContent":["import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setReferenceManifestsSingleton } from \"next/dist/esm/server/app-render/encryption-utils\";\nimport { createServerModuleMap } from \"next/dist/esm/server/app-render/action-utils\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/logs/rotate/route\",\n pathname: \"/api/logs/rotate\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/mcp-server/app/api/logs/rotate/route.ts\",\n nextConfigOutput,\n userland\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;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n var _nextConfig_experimental;\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/logs/rotate/route\";\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.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\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 const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\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 // 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 setReferenceManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n serverModuleMap: createServerModuleMap({\n serverActionsManifest\n })\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const context = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n cacheComponents: Boolean(nextConfig.experimental.cacheComponents),\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: (_nextConfig_experimental = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext)=>routeModule.onRequestError(req, error, errorContext, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\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 if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\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 handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!getRequestMeta(req, 'minimalMode') && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\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 const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\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 // 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 // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, routerServerContext);\n }\n throw err;\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 });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!getRequestMeta(req, 'minimalMode')) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(getRequestMeta(req, 'minimalMode') && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\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 (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @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 return null;\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, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse));\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n });\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","import { existsSync, renameSync, writeFileSync } from \"fs\"\nimport { type NextRequest, NextResponse } from \"next/server\"\nimport { dirname, join } from \"path\"\n\nexport async function POST(request: NextRequest) {\n try {\n const body = await request.json()\n const { currentLogPath } = body\n\n if (!currentLogPath) {\n return NextResponse.json({ error: \"currentLogPath is required\" }, { status: 400 })\n }\n\n // Check if the current log file exists\n if (!existsSync(currentLogPath)) {\n return NextResponse.json({ error: \"Current log file not found\" }, { status: 404 })\n }\n\n const logDir = dirname(currentLogPath)\n const timestamp = new Date().toISOString().replace(/[:.]/g, \"-\")\n\n // Extract project name from current log path if it follows dev3000 pattern\n const currentFileName = currentLogPath.split(\"/\").pop() || \"\"\n const projectMatch = currentFileName.match(/^dev3000-([^-]+)-/)\n const projectName = projectMatch ? projectMatch[1] : \"unknown\"\n\n // Create new timestamped filename matching dev3000 pattern\n const archivedLogPath = join(logDir, `dev3000-${projectName}-${timestamp}.log`)\n\n // Rename current log to archived name\n renameSync(currentLogPath, archivedLogPath)\n\n // Create new empty log file\n writeFileSync(currentLogPath, \"\")\n\n // No symlink update needed - each instance uses its own log file\n\n return NextResponse.json({\n success: true,\n archivedLogPath,\n currentLogPath,\n timestamp\n })\n } catch (error) {\n console.error(\"Log rotation error:\", error)\n return NextResponse.json({ error: \"Failed to rotate log file\" }, { status: 500 })\n }\n}\n"],"names":[],"mappings":"qmCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EA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AAa,EAChC,IAAI,SAAS,EAAW,KAAK,CAAC,IAAI,CAAE,SAChC,EACA,OAAQ,EAAW,KAAK,CAAC,MAAM,EAAI,GACvC,IACO,IACX,EAGI,EACA,MAAM,EAAe,EADT,CAGZ,MAAM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,GAEf,CAAE,MAAO,EAAK,CAcV,GAbI,AAAE,CAAD,YAAgB,EAAA,eAAe,EAChC,CADmC,KAC7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAIA,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,EAEA,qCAAqC","ignoreList":[0]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},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"))},22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},32518,e=>{"use strict";var t=e.i(12e3),r=e.i(32560),n=e.i(76834),a=e.i(74423),s=e.i(39932),o=e.i(18271),i=e.i(39350),l=e.i(69635),d=e.i(58154),u=e.i(98378),p=e.i(2818),c=e.i(65015),h=e.i(62177),m=e.i(46523),x=e.i(96843),R=e.i(97497),v=e.i(93695);e.i(2239);var g=e.i(13167),f=e.i(22734),E=e.i(14747);async function w(e){try{let e=process.env.LOG_FILE_PATH||"/var/log/dev3000/dev3000.log";if(!(0,f.existsSync)(e))return Response.json({error:"Current log file not found"},{status:404});let t=(0,E.dirname)(e),r=(0,E.basename)(e),n=r.match(/^dev3000-(.+?)-\d{4}-\d{2}-\d{2}T/),a=n?n[1]:"unknown",s=[];try{let e=(0,f.readdirSync)(t).filter(e=>e.startsWith(`dev3000-${a}-`)&&e.endsWith(".log")).map(e=>{let n=(0,E.join)(t,e),a=(0,f.statSync)(n),s=e.match(/(\d{4}-\d{2}-\d{2}T[\d-]+Z)/),o=s?s[1].replace(/-/g,":"):"";return{name:e,path:n,timestamp:o,size:a.size,mtime:a.mtime,isCurrent:e===r}}).sort((e,t)=>t.mtime.getTime()-e.mtime.getTime());s.push(...e)}catch(e){console.warn("Could not read log directory:",e)}return Response.json({files:s,currentFile:e,projectName:a})}catch(t){let e={error:t instanceof Error?t.message:"Unknown error"};return Response.json(e,{status:500})}}e.s(["GET",()=>w],15e3);var y=e.i(15e3);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/logs/list/route",pathname:"/api/logs/list",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/mcp-server/app/api/logs/list/route.ts",nextConfigOutput:"",userland:y}),{workAsyncStorage:A,workUnitAsyncStorage:T,serverHooks:b}=C;function q(){return(0,n.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:T})}async function N(e,t,n){var f;C.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/logs/list/route";E=E.replace(/\/index$/,"")||"/";let w=await C.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:y,params:A,nextConfig:T,isDraftMode:b,prerenderManifest:q,routerServerContext:N,isOnDemandRevalidate:P,revalidateOnlyGenerated:S,resolvedPathname:O,clientReferenceManifest:_,serverActionsManifest:k}=w,M=(0,l.normalizeAppPath)(E),j=!!(q.dynamicRoutes[M]||q.routes[O]);if(j&&!b){let e=!!q.routes[O],t=q.dynamicRoutes[M];if(t&&!1===t.fallback&&!e)throw new v.NoFallbackError}let H=null;!j||C.isDev||b||(H="/index"===(H=O)?"/":H);let U=!0===C.isDev||!j,I=j&&!U;k&&_&&(0,o.setReferenceManifestsSingleton)({page:E,clientReferenceManifest:_,serverActionsManifest:k,serverModuleMap:(0,i.createServerModuleMap)({serverActionsManifest:k})});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K={params:A,prerenderManifest:q,renderOpts:{experimental:{cacheComponents:!!T.experimental.cacheComponents,authInterrupts:!!T.experimental.authInterrupts},supportsDynamicResponse:U,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:null==(f=T.experimental)?void 0:f.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n)=>C.onRequestError(e,t,n,N)},sharedContext:{buildId:y}},L=new d.NodeNextRequest(e),B=new d.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(L,(0,u.signalFromNodeResponse)(t));try{let o=async e=>C.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${D} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${D} ${E}`)}),i=async s=>{var i,l;let d=async({previousCacheEntry:r})=>{try{if(!(0,a.getRequestMeta)(e,"minimalMode")&&P&&S&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await o(s);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let d=K.renderOpts.collectedTags;if(!j)return await (0,h.sendResponse)(L,B,i,K.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(i.headers);d&&(t[R.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>=R.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:P})},N),t}},u=await C.handleResponse({req:e,nextConfig:T,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:q,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:S,responseGenerator:d,waitUntil:n.waitUntil});if(!j)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,a.getRequestMeta)(e,"minimalMode")||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 p=(0,m.fromNodeOutgoingHttpHeaders)(u.value.headers);return(0,a.getRequestMeta)(e,"minimalMode")&&j||p.delete(R.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,h.sendResponse)(L,B,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};$?await i($):await F.withPropagatedContext(e.headers,()=>F.trace(p.BaseServerSpan.handleRequest,{spanName:`${D} ${E}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i))}catch(t){if(t instanceof v.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:P})}),j)throw t;return await (0,h.sendResponse)(L,B,new Response(null,{status:500})),null}}e.s(["handler",()=>N,"patchFetch",()=>q,"routeModule",()=>C,"serverHooks",()=>b,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>T],32518)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__d8c4b7af._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["turbopack:///[project]/mcp-server/app/api/logs/list/route.ts","turbopack:///[project]/node_modules/.pnpm/next@16.0.0-canary.10_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { existsSync, readdirSync, statSync } from \"fs\"\nimport type { NextRequest } from \"next/server\"\nimport { basename, dirname, join } from \"path\"\nimport type { LogFile, LogListError, LogListResponse } from \"@/types\"\n\nexport async function GET(_request: NextRequest): Promise<Response> {\n try {\n const currentLogPath = process.env.LOG_FILE_PATH || \"/var/log/dev3000/dev3000.log\"\n\n if (!existsSync(currentLogPath)) {\n const errorResponse: LogListError = { error: \"Current log file not found\" }\n return Response.json(errorResponse, { status: 404 })\n }\n\n // Get the directory containing the current log\n const logDir = dirname(currentLogPath)\n const currentLogName = basename(currentLogPath)\n\n // Extract project name from current log filename\n // Format: dev3000-{projectName}-{timestamp}.log\n const projectMatch = currentLogName.match(/^dev3000-(.+?)-\\d{4}-\\d{2}-\\d{2}T/)\n const projectName = projectMatch ? projectMatch[1] : \"unknown\"\n\n // Find all log files for this project\n const files: LogFile[] = []\n\n try {\n const dirContents = readdirSync(logDir)\n const logFiles = dirContents\n .filter((file) => file.startsWith(`dev3000-${projectName}-`) && file.endsWith(\".log\"))\n .map((file) => {\n const filePath = join(logDir, file)\n const stats = statSync(filePath)\n\n // Extract timestamp from filename\n const timestampMatch = file.match(/(\\d{4}-\\d{2}-\\d{2}T[\\d-]+Z)/)\n const timestamp = timestampMatch ? timestampMatch[1].replace(/-/g, \":\") : \"\"\n\n return {\n name: file,\n path: filePath,\n timestamp,\n size: stats.size,\n mtime: stats.mtime,\n isCurrent: file === currentLogName\n }\n })\n .sort((a, b) => b.mtime.getTime() - a.mtime.getTime()) // Most recent first\n\n files.push(...logFiles)\n } catch (error) {\n console.warn(\"Could not read log directory:\", error)\n }\n\n const response: LogListResponse = {\n files,\n currentFile: currentLogPath,\n projectName\n }\n\n return Response.json(response)\n } catch (error) {\n const errorResponse: LogListError = {\n error: error instanceof Error ? error.message : \"Unknown error\"\n }\n return Response.json(errorResponse, { status: 500 })\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setReferenceManifestsSingleton } from \"next/dist/esm/server/app-render/encryption-utils\";\nimport { createServerModuleMap } from \"next/dist/esm/server/app-render/action-utils\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/logs/list/route\",\n pathname: \"/api/logs/list\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/mcp-server/app/api/logs/list/route.ts\",\n nextConfigOutput,\n userland\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;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n var _nextConfig_experimental;\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/logs/list/route\";\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.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\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 const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\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 // 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 setReferenceManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n serverModuleMap: createServerModuleMap({\n serverActionsManifest\n })\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const context = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n cacheComponents: Boolean(nextConfig.experimental.cacheComponents),\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: (_nextConfig_experimental = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext)=>routeModule.onRequestError(req, error, errorContext, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\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 if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\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 handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!getRequestMeta(req, 'minimalMode') && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\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 const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\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 // 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 // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, routerServerContext);\n }\n throw err;\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 });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!getRequestMeta(req, 'minimalMode')) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(getRequestMeta(req, 'minimalMode') && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\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 (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @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 return null;\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, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse));\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n });\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":[],"mappings":"k7BCAA,IAAA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,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AAC,oBAClC,uBACA,CACJ,EACJ,GAIA,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,EAEA,qCAAqC","ignoreList":[1]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},66500,e=>{"use strict";var t=e.i(12e3),r=e.i(32560),n=e.i(76834),a=e.i(74423),o=e.i(39932),i=e.i(18271),s=e.i(39350),l=e.i(69635),p=e.i(58154),u=e.i(98378),d=e.i(2818),c=e.i(65015),m=e.i(62177),f=e.i(46523),x=e.i(96843),h=e.i(97497),R=e.i(93695);e.i(2239);var g=e.i(13167),E=e.i(37859);async function v(){try{let e=[{name:"fix_my_app",description:"🔧 **THE ULTIMATE FIND→FIX→VERIFY MACHINE!** This isn't just debugging—it's MAGICAL problem-solving that FIXES your app! 🪄\n\n🔥 **INSTANT FIX POWERS:**\n• FINDS: Server errors, browser crashes, build failures, API issues, performance problems—EVERYTHING\n• FIXES: Provides EXACT code fixes with file locations and line numbers\n• GUIDES: Step-by-step implementation of fixes\n• VERIFIES: Ensures fixes actually resolve the issues\n\n🚀 **3 ACTION MODES:**\n• **FIX NOW** (default): \"What's broken RIGHT NOW?\" → Find and fix immediately\n• **FIX REGRESSION**: \"What broke during testing?\" → Compare before/after and fix\n• **FIX CONTINUOUSLY**: \"Fix issues as they appear\" → Monitor and fix proactively\n\n⚡ **THE FIX-IT WORKFLOW:**\n1️⃣ I FIND all issues instantly\n2️⃣ I provide EXACT FIXES with code\n3️⃣ You implement the fixes\n4️⃣ We VERIFY everything works\n\n🎪 **WHY THIS TOOL IS MAGIC:**\n• Goes beyond debugging to actual fixing\n• Provides copy-paste fix code\n• Works with 'fix my app' or 'debug my app'\n• Makes broken apps work again!\n• You become the fix-it hero!\n\n💡 **PRO TIPS:**\n• Say 'fix my app' for instant error resolution\n• Use execute_browser_action to verify fixes\n• This tool doesn't just find problems—it SOLVES them!",category:"Error Fixing",parameters:[{name:"focusArea",type:"string",optional:!0,description:"Specific area: 'build', 'runtime', 'network', 'ui', 'all' (default: 'all')"},{name:"mode",type:"enum",optional:!0,description:"Fix mode: 'snapshot' (fix now), 'bisect' (fix regression), 'monitor' (fix continuously)"},{name:"waitForUserInteraction",type:"boolean",optional:!0,description:"In bisect mode: capture timestamp, wait for user testing, then analyze (default: false)"},{name:"timeRangeMinutes",type:"number",optional:!0,description:"Minutes to analyze back from now (default: 10)"},{name:"includeTimestampInstructions",type:"boolean",optional:!0,description:"Show timestamp-based debugging instructions (default: true)"}]},{name:"execute_browser_action",description:"🪄 **SMART INTERACTION TESTING** - Use for targeted user workflow verification! 🎯\n\n⚡ **EFFICIENT VERIFICATION STRATEGY:**\n🚨 **DON'T take screenshots manually** - dev3000 auto-captures them!\n✅ **DO use this for:** click, navigate, scroll, type to reproduce user interactions\n✅ **DO verify fixes by:** reproducing the original error scenario, then check fix_my_app for verification\n\n🔥 **BROWSER ACTIONS:**\n• CLICK buttons/links → Test specific user interactions\n• NAVIGATE to pages → Reproduce user journeys \n• SCROLL & TYPE → Simulate user workflows\n• EVALUATE JavaScript → Check app state (read-only)\n\n⚡ **OPTIMAL FIX VERIFICATION WORKFLOW:**\n1️⃣ fix_my_app finds issues + provides exact fixes\n2️⃣ You implement the fix code\n3️⃣ Use execute_browser_action to REPRODUCE the original interaction\n4️⃣ Run fix_my_app again to verify the fix worked\n\n🎯 **PERFECT FOR:**\n• Verifying fixes actually resolve the errors\n• Testing interactions after implementing fixes\n• Confirming forms work, buttons respond, etc.\n• Ensuring the app works correctly after fixes\n\n🚫 **AVOID:** Manual screenshot action (dev3000 auto-captures)\n✅ **USE:** Interaction reproduction + fix_my_app for verification\n\n🛡️ **SAFETY:** Safe operations only, read-only JS evaluation",category:"Browser Automation",parameters:[{name:"action",type:"enum",description:"Action to perform: 'click', 'navigate', 'screenshot', 'evaluate', 'scroll', 'type'"},{name:"params",type:"object",description:"Parameters for the action (coordinates, URL, selector, text, expression, etc.)"}]}];return E.NextResponse.json({tools:e,endpoint:`http://localhost:${process.env.PORT||"3684"}/mcp`,totalTools:e.length,categories:[...new Set(e.map(e=>e.category))]})}catch(e){return E.NextResponse.json({error:"Failed to extract tools documentation"},{status:500})}}e.s(["GET",()=>v],40004);var y=e.i(40004);let I=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/tools/route",pathname:"/api/tools",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/mcp-server/app/api/tools/route.ts",nextConfigOutput:"",userland:y}),{workAsyncStorage:T,workUnitAsyncStorage:w,serverHooks:b}=I;function A(){return(0,n.patchFetch)({workAsyncStorage:T,workUnitAsyncStorage:w})}async function C(e,t,n){var E;I.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/tools/route";v=v.replace(/\/index$/,"")||"/";let y=await I.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!y)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:T,params:w,nextConfig:b,isDraftMode:A,prerenderManifest:C,routerServerContext:S,isOnDemandRevalidate:O,revalidateOnlyGenerated:N,resolvedPathname:k,clientReferenceManifest:F,serverActionsManifest:_}=y,P=(0,l.normalizeAppPath)(v),M=!!(C.dynamicRoutes[P]||C.routes[k]);if(M&&!A){let e=!!C.routes[k],t=C.dynamicRoutes[P];if(t&&!1===t.fallback&&!e)throw new R.NoFallbackError}let U=null;!M||I.isDev||A||(U="/index"===(U=k)?"/":U);let H=!0===I.isDev||!M,j=M&&!H;_&&F&&(0,i.setReferenceManifestsSingleton)({page:v,clientReferenceManifest:F,serverActionsManifest:_,serverModuleMap:(0,s.createServerModuleMap)({serverActionsManifest:_})});let D=e.method||"GET",q=(0,o.getTracer)(),L=q.getActiveScopeSpan(),W={params:w,prerenderManifest:C,renderOpts:{experimental:{cacheComponents:!!b.experimental.cacheComponents,authInterrupts:!!b.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:null==(E=b.experimental)?void 0:E.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n)=>I.onRequestError(e,t,n,S)},sharedContext:{buildId:T}},X=new p.NodeNextRequest(e),G=new p.NodeNextResponse(t),V=u.NextRequestAdapter.fromNodeNextRequest(X,(0,u.signalFromNodeResponse)(t));try{let i=async e=>I.handle(V,W).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=q.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.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=`${D} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${D} ${v}`)}),s=async o=>{var s,l;let p=async({previousCacheEntry:r})=>{try{if(!(0,a.getRequestMeta)(e,"minimalMode")&&O&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(o);e.fetchMetrics=W.renderOpts.fetchMetrics;let l=W.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let p=W.renderOpts.collectedTags;if(!M)return await (0,m.sendResponse)(X,G,s,W.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(s.headers);p&&(t[h.NEXT_CACHE_TAGS_HEADER]=p),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=h.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,n=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=h.INFINITE_CACHE?void 0:W.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await I.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:j,isOnDemandRevalidate:O})},S),t}},u=await I.handleResponse({req:e,nextConfig:b,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:N,responseGenerator:p,waitUntil:n.waitUntil});if(!M)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,a.getRequestMeta)(e,"minimalMode")||t.setHeader("x-nextjs-cache",O?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,f.fromNodeOutgoingHttpHeaders)(u.value.headers);return(0,a.getRequestMeta)(e,"minimalMode")&&M||d.delete(h.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,m.sendResponse)(X,G,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};L?await s(L):await q.withPropagatedContext(e.headers,()=>q.trace(d.BaseServerSpan.handleRequest,{spanName:`${D} ${v}`,kind:o.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},s))}catch(t){if(t instanceof R.NoFallbackError||await I.onRequestError(e,t,{routerKind:"App Router",routePath:P,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:j,isOnDemandRevalidate:O})}),M)throw t;return await (0,m.sendResponse)(X,G,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>A,"routeModule",()=>I,"serverHooks",()=>b,"workAsyncStorage",()=>T,"workUnitAsyncStorage",()=>w],66500)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__db4dce5b._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["turbopack:///[project]/mcp-server/app/api/tools/route.ts","turbopack:///[project]/node_modules/.pnpm/next@16.0.0-canary.10_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { NextResponse } from \"next/server\"\n\n// This endpoint extracts MCP tools documentation by parsing the route handler\nexport async function GET() {\n try {\n // Streamlined tool set - reduced from 10 tools to 2 for zero authorization friction!\n const tools = [\n {\n name: \"fix_my_app\",\n description:\n \"🔧 **THE ULTIMATE FIND→FIX→VERIFY MACHINE!** This isn't just debugging—it's MAGICAL problem-solving that FIXES your app! 🪄\\n\\n🔥 **INSTANT FIX POWERS:**\\n• FINDS: Server errors, browser crashes, build failures, API issues, performance problems—EVERYTHING\\n• FIXES: Provides EXACT code fixes with file locations and line numbers\\n• GUIDES: Step-by-step implementation of fixes\\n• VERIFIES: Ensures fixes actually resolve the issues\\n\\n🚀 **3 ACTION MODES:**\\n• **FIX NOW** (default): \\\"What's broken RIGHT NOW?\\\" → Find and fix immediately\\n• **FIX REGRESSION**: \\\"What broke during testing?\\\" → Compare before/after and fix\\n• **FIX CONTINUOUSLY**: \\\"Fix issues as they appear\\\" → Monitor and fix proactively\\n\\n⚡ **THE FIX-IT WORKFLOW:**\\n1️⃣ I FIND all issues instantly\\n2️⃣ I provide EXACT FIXES with code\\n3️⃣ You implement the fixes\\n4️⃣ We VERIFY everything works\\n\\n🎪 **WHY THIS TOOL IS MAGIC:**\\n• Goes beyond debugging to actual fixing\\n• Provides copy-paste fix code\\n• Works with 'fix my app' or 'debug my app'\\n• Makes broken apps work again!\\n• You become the fix-it hero!\\n\\n💡 **PRO TIPS:**\\n• Say 'fix my app' for instant error resolution\\n• Use execute_browser_action to verify fixes\\n• This tool doesn't just find problems—it SOLVES them!\",\n category: \"Error Fixing\",\n parameters: [\n {\n name: \"focusArea\",\n type: \"string\",\n optional: true,\n description: \"Specific area: 'build', 'runtime', 'network', 'ui', 'all' (default: 'all')\"\n },\n {\n name: \"mode\",\n type: \"enum\",\n optional: true,\n description: \"Fix mode: 'snapshot' (fix now), 'bisect' (fix regression), 'monitor' (fix continuously)\"\n },\n {\n name: \"waitForUserInteraction\",\n type: \"boolean\",\n optional: true,\n description: \"In bisect mode: capture timestamp, wait for user testing, then analyze (default: false)\"\n },\n {\n name: \"timeRangeMinutes\",\n type: \"number\",\n optional: true,\n description: \"Minutes to analyze back from now (default: 10)\"\n },\n {\n name: \"includeTimestampInstructions\",\n type: \"boolean\",\n optional: true,\n description: \"Show timestamp-based debugging instructions (default: true)\"\n }\n ]\n },\n {\n name: \"execute_browser_action\",\n description:\n \"🪄 **SMART INTERACTION TESTING** - Use for targeted user workflow verification! 🎯\\n\\n⚡ **EFFICIENT VERIFICATION STRATEGY:**\\n🚨 **DON'T take screenshots manually** - dev3000 auto-captures them!\\n✅ **DO use this for:** click, navigate, scroll, type to reproduce user interactions\\n✅ **DO verify fixes by:** reproducing the original error scenario, then check fix_my_app for verification\\n\\n🔥 **BROWSER ACTIONS:**\\n• CLICK buttons/links → Test specific user interactions\\n• NAVIGATE to pages → Reproduce user journeys \\n• SCROLL & TYPE → Simulate user workflows\\n• EVALUATE JavaScript → Check app state (read-only)\\n\\n⚡ **OPTIMAL FIX VERIFICATION WORKFLOW:**\\n1️⃣ fix_my_app finds issues + provides exact fixes\\n2️⃣ You implement the fix code\\n3️⃣ Use execute_browser_action to REPRODUCE the original interaction\\n4️⃣ Run fix_my_app again to verify the fix worked\\n\\n🎯 **PERFECT FOR:**\\n• Verifying fixes actually resolve the errors\\n• Testing interactions after implementing fixes\\n• Confirming forms work, buttons respond, etc.\\n• Ensuring the app works correctly after fixes\\n\\n🚫 **AVOID:** Manual screenshot action (dev3000 auto-captures)\\n✅ **USE:** Interaction reproduction + fix_my_app for verification\\n\\n🛡️ **SAFETY:** Safe operations only, read-only JS evaluation\",\n category: \"Browser Automation\",\n parameters: [\n {\n name: \"action\",\n type: \"enum\",\n description: \"Action to perform: 'click', 'navigate', 'screenshot', 'evaluate', 'scroll', 'type'\"\n },\n {\n name: \"params\",\n type: \"object\",\n description: \"Parameters for the action (coordinates, URL, selector, text, expression, etc.)\"\n }\n ]\n }\n // TODO: Commenting out for now - need to figure out the right approach for proactive monitoring\n /*\n ,{\n name: \"start_error_monitoring\",\n description:\n \"🔍 **SIMPLE ERROR MONITORING** - Starts a lightweight background process that watches your app for errors and alerts you in real-time.\\n\\n⚡ **INSTANT ACTIVATION:**\\n• Claude offers to run the monitoring script immediately\\n• Just say 'yes' or 'monitor my app' to start\\n• Simple 15-line Python script that just works\\n• Real-time alerts when errors occur\\n\\n💡 **WHAT IT DOES:**\\n• Watches for ERROR, FAIL, Exception, TypeError, CRASH keywords\\n• Shows the error line when detected\\n• Prompts you to let Claude debug\\n• That's it - simple and effective!\\n\\n🎯 **USAGE FLOW:**\\n1. User: 'monitor my app'\\n2. Claude: 'Should I start monitoring now?'\\n3. User: 'yes'\\n4. Claude runs the script → monitoring active\\n5. When errors appear → 'Tell me: debug my app'\\n\\n✨ **THE BEAUTY:**\\n• No complex features - just works\\n• Lightweight and fast\\n• Perfect for quick error detection\",\n category: \"Monitoring\",\n parameters: [\n {\n name: \"projectName\",\n type: \"string\",\n optional: true,\n description: \"Project name to monitor (if multiple dev3000 instances are running)\"\n }\n ]\n }\n */\n ]\n\n return NextResponse.json({\n tools,\n endpoint: `http://localhost:${process.env.PORT || \"3684\"}/mcp`,\n totalTools: tools.length,\n categories: [...new Set(tools.map((t) => t.category))]\n })\n } catch (_error) {\n return NextResponse.json({ error: \"Failed to extract tools documentation\" }, { status: 500 })\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setReferenceManifestsSingleton } from \"next/dist/esm/server/app-render/encryption-utils\";\nimport { createServerModuleMap } from \"next/dist/esm/server/app-render/action-utils\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/tools/route\",\n pathname: \"/api/tools\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/mcp-server/app/api/tools/route.ts\",\n nextConfigOutput,\n userland\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;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n var _nextConfig_experimental;\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/tools/route\";\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.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\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 const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\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 // 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 setReferenceManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n serverModuleMap: createServerModuleMap({\n serverActionsManifest\n })\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const context = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n cacheComponents: Boolean(nextConfig.experimental.cacheComponents),\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: (_nextConfig_experimental = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext)=>routeModule.onRequestError(req, error, errorContext, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\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 if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\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 handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!getRequestMeta(req, 'minimalMode') && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\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 const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\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 // 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 // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, routerServerContext);\n }\n throw err;\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 });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!getRequestMeta(req, 'minimalMode')) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(getRequestMeta(req, 'minimalMode') && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\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 (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @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 return null;\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, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse));\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n });\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":[],"mappings":"m/BCAA,IAAA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,CAAA,CAAA,MAAA,IAAA,EAAA,EAAA,CAAA,CAAA,ODjBA,EAAA,EAAA,CAAA,CAAA,OAGO,eAAe,IACpB,GAAI,CAEF,IAAM,EAAQ,CACZ,CACE,KAAM,aACN,YACE,6uCACF,SAAU,eACV,WAAY,CACV,CACE,KAAM,YACN,KAAM,SACN,SAAU,GACV,YAAa,4EACf,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CADmC,KAC7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAIA,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,EAEA,qCAAqC","ignoreList":[1]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},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"))},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"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},65305,e=>{"use strict";var t=e.i(12e3),r=e.i(32560),n=e.i(76834),a=e.i(74423),o=e.i(39932),s=e.i(18271),i=e.i(39350),l=e.i(69635),d=e.i(58154),u=e.i(98378),p=e.i(2818),c=e.i(65015),h=e.i(62177),R=e.i(46523),x=e.i(96843),v=e.i(97497),g=e.i(93695);e.i(2239);var f=e.i(13167),m=e.i(22734);async function E(e){try{let{searchParams:t}=new URL(e.url),r=parseInt(t.get("lines")||"50",10),n=t.get("logPath")||process.env.LOG_FILE_PATH||"./ai-dev-tools/consolidated.log";if(!(0,m.existsSync)(n))return Response.json({error:"Log file not found"},{status:404});let a=(0,m.readFileSync)(n,"utf-8").split("\n").filter(e=>e.trim()),o={logs:a.slice(0,r).join("\n"),total:a.length};return Response.json(o)}catch(t){let e={error:t instanceof Error?t.message:"Unknown error"};return Response.json(e,{status:500})}}e.s(["GET",()=>E],9421);var w=e.i(9421);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/logs/head/route",pathname:"/api/logs/head",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/mcp-server/app/api/logs/head/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:C,workUnitAsyncStorage:A,serverHooks:b}=y;function T(){return(0,n.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:A})}async function P(e,t,n){var m;y.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/logs/head/route";E=E.replace(/\/index$/,"")||"/";let w=await y.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:C,params:A,nextConfig:b,isDraftMode:T,prerenderManifest:P,routerServerContext:N,isOnDemandRevalidate:q,revalidateOnlyGenerated:O,resolvedPathname:S,clientReferenceManifest:_,serverActionsManifest:k}=w,M=(0,l.normalizeAppPath)(E),j=!!(P.dynamicRoutes[M]||P.routes[S]);if(j&&!T){let e=!!P.routes[S],t=P.dynamicRoutes[M];if(t&&!1===t.fallback&&!e)throw new g.NoFallbackError}let H=null;!j||y.isDev||T||(H="/index"===(H=S)?"/":H);let U=!0===y.isDev||!j,I=j&&!U;k&&_&&(0,s.setReferenceManifestsSingleton)({page:E,clientReferenceManifest:_,serverActionsManifest:k,serverModuleMap:(0,i.createServerModuleMap)({serverActionsManifest:k})});let D=e.method||"GET",F=(0,o.getTracer)(),L=F.getActiveScopeSpan(),$={params:A,prerenderManifest:P,renderOpts:{experimental:{cacheComponents:!!b.experimental.cacheComponents,authInterrupts:!!b.experimental.authInterrupts},supportsDynamicResponse:U,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:null==(m=b.experimental)?void 0:m.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n)=>y.onRequestError(e,t,n,N)},sharedContext:{buildId:C}},K=new d.NodeNextRequest(e),B=new d.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let s=async e=>y.handle(G,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${D} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${D} ${E}`)}),i=async o=>{var i,l;let d=async({previousCacheEntry:r})=>{try{if(!(0,a.getRequestMeta)(e,"minimalMode")&&q&&O&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await s(o);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let d=$.renderOpts.collectedTags;if(!j)return await (0,h.sendResponse)(K,B,i,$.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,R.toNodeOutgoingHttpHeaders)(i.headers);d&&(t[v.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,n=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:q})},N),t}},u=await y.handleResponse({req:e,nextConfig:b,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:q,revalidateOnlyGenerated:O,responseGenerator:d,waitUntil:n.waitUntil});if(!j)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,a.getRequestMeta)(e,"minimalMode")||t.setHeader("x-nextjs-cache",q?"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,R.fromNodeOutgoingHttpHeaders)(u.value.headers);return(0,a.getRequestMeta)(e,"minimalMode")&&j||p.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,h.sendResponse)(K,B,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};L?await i(L):await F.withPropagatedContext(e.headers,()=>F.trace(p.BaseServerSpan.handleRequest,{spanName:`${D} ${E}`,kind:o.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i))}catch(t){if(t instanceof g.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:q})}),j)throw t;return await (0,h.sendResponse)(K,B,new Response(null,{status:500})),null}}e.s(["handler",()=>P,"patchFetch",()=>T,"routeModule",()=>y,"serverHooks",()=>b,"workAsyncStorage",()=>C,"workUnitAsyncStorage",()=>A],65305)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__e305b486._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["turbopack:///[project]/node_modules/.pnpm/next@16.0.0-canary.10_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/build/templates/app-route.js","turbopack:///[project]/mcp-server/app/api/logs/head/route.ts"],"sourcesContent":["import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setReferenceManifestsSingleton } from \"next/dist/esm/server/app-render/encryption-utils\";\nimport { createServerModuleMap } from \"next/dist/esm/server/app-render/action-utils\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/logs/head/route\",\n pathname: \"/api/logs/head\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/mcp-server/app/api/logs/head/route.ts\",\n nextConfigOutput,\n userland\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;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n var _nextConfig_experimental;\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/logs/head/route\";\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.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\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 const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\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 // 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 setReferenceManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n serverModuleMap: createServerModuleMap({\n serverActionsManifest\n })\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const context = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n cacheComponents: Boolean(nextConfig.experimental.cacheComponents),\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: (_nextConfig_experimental = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext)=>routeModule.onRequestError(req, error, errorContext, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\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 if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\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 handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!getRequestMeta(req, 'minimalMode') && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\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 const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\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 // 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 // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, routerServerContext);\n }\n throw err;\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 });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!getRequestMeta(req, 'minimalMode')) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(getRequestMeta(req, 'minimalMode') && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\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 (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @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 return null;\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, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse));\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n });\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","import { existsSync, readFileSync } from \"fs\"\nimport type { NextRequest } from \"next/server\"\nimport type { LogsApiError, LogsApiResponse } from \"@/types\"\n\nexport async function GET(request: NextRequest): Promise<Response> {\n try {\n const { searchParams } = new URL(request.url)\n const lines = parseInt(searchParams.get(\"lines\") || \"50\", 10)\n const logPath = searchParams.get(\"logPath\") || process.env.LOG_FILE_PATH || \"./ai-dev-tools/consolidated.log\"\n\n if (!existsSync(logPath)) {\n const errorResponse: LogsApiError = { error: \"Log file not found\" }\n return Response.json(errorResponse, { status: 404 })\n }\n\n const logContent = readFileSync(logPath, \"utf-8\")\n const allLines = logContent.split(\"\\n\").filter((line) => line.trim())\n const headLines = allLines.slice(0, lines)\n\n const response: LogsApiResponse = {\n logs: headLines.join(\"\\n\"),\n total: allLines.length\n }\n\n return Response.json(response)\n } catch (error) {\n const errorResponse: LogsApiError = {\n error: error instanceof Error ? error.message : \"Unknown error\"\n }\n return Response.json(errorResponse, { status: 500 })\n }\n}\n"],"names":[],"mappings":"u3BAAA,IAAA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,C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AM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,GAEf,CAAE,MAAO,EAAK,CAcV,GAbI,AAAE,CAAD,YAAgB,EAAA,eAAe,EAChC,CADmC,KAC7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAIA,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,EAEA,qCAAqC","ignoreList":[0]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
module.exports=[19349,(a,b,c)=>{"use strict";b.exports=a.r(83704).vendored["react-ssr"].ReactServerDOMTurbopackClient},47503,a=>{"use strict";let b={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},c=new Set(Object.values(b)),d="NEXT_HTTP_ERROR_FALLBACK";function e(a){if("object"!=typeof a||null===a||!("digest"in a)||"string"!=typeof a.digest)return!1;let[b,e]=a.digest.split(";");return b===d&&c.has(Number(e))}function f(a){return Number(a.digest.split(";")[1])}function g(a){switch(a){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}a.s(["HTTPAccessErrorStatus",0,b,"HTTP_ERROR_FALLBACK_ERROR_CODE",0,d,"getAccessFallbackErrorTypeByStatus",()=>g,"getAccessFallbackHTTPStatus",()=>f,"isHTTPAccessFallbackError",()=>e])},15568,84049,40809,a=>{"use strict";var b,c,d=a.i(47503),e=((b={})[b.SeeOther=303]="SeeOther",b[b.TemporaryRedirect=307]="TemporaryRedirect",b[b.PermanentRedirect=308]="PermanentRedirect",b);a.s(["RedirectStatusCode",()=>e],84049);let f="NEXT_REDIRECT";var g=((c={}).push="push",c.replace="replace",c);function h(a){if("object"!=typeof a||null===a||!("digest"in a)||"string"!=typeof a.digest)return!1;let b=a.digest.split(";"),[c,d]=b,g=b.slice(2,-2).join(";"),h=Number(b.at(-2));return c===f&&("replace"===d||"push"===d)&&"string"==typeof g&&!isNaN(h)&&h in e}function i(a){return h(a)||(0,d.isHTTPAccessFallbackError)(a)}a.s(["REDIRECT_ERROR_CODE",0,f,"RedirectType",()=>g,"isRedirectError",()=>h],40809),a.s(["isNextRouterError",()=>i],15568)},87031,a=>{"use strict";a.s(["METADATA_BOUNDARY_NAME",0,"__next_metadata_boundary__","OUTLET_BOUNDARY_NAME",0,"__next_outlet_boundary__","ROOT_LAYOUT_BOUNDARY_NAME",0,"__next_root_layout_boundary__","VIEWPORT_BOUNDARY_NAME",0,"__next_viewport_boundary__"])},95081,a=>{"use strict";class b extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}a.s(["InvariantError",()=>b])},75654,47840,85741,35321,26513,32799,a=>{"use strict";function b(a){return"object"==typeof a&&null!==a&&"digest"in a&&a.digest===c}let c="HANGING_PROMISE_REJECTION";class d extends Error{constructor(a,b){super(`During prerendering, ${b} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${b} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${a}".`),this.route=a,this.expression=b,this.digest=c}}let e=new WeakMap;function f(a,b,c){if(a.aborted)return Promise.reject(new d(b,c));{let f=new Promise((f,g)=>{let h=g.bind(null,new d(b,c)),i=e.get(a);if(i)i.push(h);else{let b=[h];e.set(a,b),a.addEventListener("abort",()=>{for(let a=0;a<b.length;a++)b[a]()},{once:!0})}});return f.catch(g),f}}function g(){}function h(a,b,c){return b.stagedRendering?b.stagedRendering.delayUntilStage(c,a):new Promise(b=>{setTimeout(()=>{b(a)},0)})}a.s(["isHangingPromiseRejectionError",()=>b,"makeDevtoolsIOAwarePromise",()=>h,"makeHangingPromise",()=>f],75654);let i="BAILOUT_TO_CLIENT_SIDE_RENDERING";class j extends Error{constructor(a){super(`Bail out to client-side rendering: ${a}`),this.reason=a,this.digest=i}}function k(a){return"object"==typeof a&&null!==a&&"digest"in a&&a.digest===i}a.s(["BailoutToCSRError",()=>j,"isBailoutToCSRError",()=>k],47840);var l,m,n=a.i(58112);let o="DYNAMIC_SERVER_USAGE";class p extends Error{constructor(a){super(`Dynamic server usage: ${a}`),this.description=a,this.digest=o}}function q(a){return"object"==typeof a&&null!==a&&"digest"in a&&"string"==typeof a.digest&&a.digest===o}a.s(["DynamicServerError",()=>p,"isDynamicServerError",()=>q],85741);class r extends Error{constructor(...a){super(...a),this.code="NEXT_STATIC_GEN_BAILOUT"}}a.s(["StaticGenBailoutError",()=>r],35321);var s=a.i(32319),t=a.i(56704),u=a.i(87031);let v=a=>{Promise.resolve().then(()=>{process.nextTick(a)})};var w=a.i(95081),x=((l={})[l.Static=1]="Static",l[l.Runtime=2]="Runtime",l[l.Dynamic=3]="Dynamic",l);a.s(["RenderStage",()=>x],26513);let y="function"==typeof n.default.unstable_postpone;function z(a){return{isDebugDynamicAccesses:a,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function A(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function B(a){var b;return null==(b=a.dynamicAccesses[0])?void 0:b.expression}function C(a,b,c){if(b)switch(b.type){case"cache":case"unstable-cache":case"private-cache":return}if(!a.forceDynamic&&!a.forceStatic){if(a.dynamicShouldError)throw Object.defineProperty(new r(`Route ${a.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${c}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(b)switch(b.type){case"prerender-ppr":return K(a.route,c,b.dynamicTracking);case"prerender-legacy":b.revalidate=0;let d=Object.defineProperty(new p(`Route ${a.route} couldn't be rendered statically because it used ${c}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw a.dynamicUsageDescription=c,a.dynamicUsageStack=d.stack,d}}}function D(a,b,c){let d=Object.defineProperty(new p(`Route ${b.route} couldn't be rendered statically because it used \`${a}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw c.revalidate=0,b.dynamicUsageDescription=a,b.dynamicUsageStack=d.stack,d}function E(a){switch(a.type){case"cache":case"unstable-cache":case"private-cache":return}}function F(a,b,c){let d=P(`Route ${a} needs to bail out of prerendering at this point because it used ${b}.`);c.controller.abort(d);let e=c.dynamicTracking;e&&e.dynamicAccesses.push({stack:e.isDebugDynamicAccesses?Error().stack:void 0,expression:b})}function G(a,b,c,d){let e=d.dynamicTracking;F(a,b,d),e&&null===e.syncDynamicErrorWithStack&&(e.syncDynamicErrorWithStack=c)}function H(a){a.stagedRendering&&a.stagedRendering.advanceStage(x.Dynamic)}function I(a,b,c,d){if(!1===d.controller.signal.aborted){F(a,b,d);let e=d.dynamicTracking;e&&null===e.syncDynamicErrorWithStack&&(e.syncDynamicErrorWithStack=c)}throw P(`Route ${a} needs to bail out of prerendering at this point because it used ${b}.`)}function J({reason:a,route:b}){let c=s.workUnitAsyncStorage.getStore();K(b,a,c&&"prerender-ppr"===c.type?c.dynamicTracking:null)}function K(a,b,c){(function(){if(!y)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})})(),c&&c.dynamicAccesses.push({stack:c.isDebugDynamicAccesses?Error().stack:void 0,expression:b}),n.default.unstable_postpone(L(a,b))}function L(a,b){return`Route ${a} needs to bail out of prerendering at this point because it used ${b}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function M(a){return"object"==typeof a&&null!==a&&"string"==typeof a.message&&N(a.message)}function N(a){return a.includes("needs to bail out of prerendering at this point because it used")&&a.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===N(L("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let O="NEXT_PRERENDER_INTERRUPTED";function P(a){let b=Object.defineProperty(Error(a),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return b.digest=O,b}function Q(a){return"object"==typeof a&&null!==a&&a.digest===O&&"name"in a&&"message"in a&&a instanceof Error}function R(a){return a.length>0}function S(a,b){return a.dynamicAccesses.push(...b.dynamicAccesses),a.dynamicAccesses}function T(a){return a.filter(a=>"string"==typeof a.stack&&a.stack.length>0).map(({expression:a,stack:b})=>(b=b.split("\n").slice(4).filter(a=>!(a.includes("node_modules/next/")||a.includes(" (<anonymous>)")||a.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${a}:
|
|
2
|
-
${b}`))}function U(){let a=new AbortController;return a.abort(Object.defineProperty(new j("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),a.signal}function V(a){switch(a.type){case"prerender":case"prerender-runtime":let b=new AbortController;if(a.cacheSignal)a.cacheSignal.inputReady().then(()=>{b.abort()});else{let c=(0,s.getRuntimeStagePromise)(a);c?c.then(()=>v(()=>b.abort())):v(()=>b.abort())}return b.signal;case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return}}function W(a,b){let c=b.dynamicTracking;c&&c.dynamicAccesses.push({stack:c.isDebugDynamicAccesses?Error().stack:void 0,expression:a})}function X(a){let b=t.workAsyncStorage.getStore(),c=s.workUnitAsyncStorage.getStore();if(b&&c)switch(c.type){case"prerender-client":case"prerender":{let d=c.fallbackRouteParams;d&&d.size>0&&n.default.use(f(c.renderSignal,b.route,a));break}case"prerender-ppr":{let d=c.fallbackRouteParams;if(d&&d.size>0)return K(b.route,a,c.dynamicTracking);break}case"prerender-runtime":throw Object.defineProperty(new w.InvariantError(`\`${a}\` was called during a runtime prerender. Next.js should be preventing ${a} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new w.InvariantError(`\`${a}\` was called inside a cache scope. Next.js should be preventing ${a} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0})}}function Y(a){let b=t.workAsyncStorage.getStore(),c=s.workUnitAsyncStorage.getStore();if(b)switch(!c&&(0,s.throwForMissingRequestStore)(a),c.type){case"prerender-client":n.default.use(f(c.renderSignal,b.route,a));break;case"prerender-legacy":case"prerender-ppr":if(b.forceStatic)return;throw Object.defineProperty(new j(a),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new w.InvariantError(`\`${a}\` was called from a Server Component. Next.js should be preventing ${a} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new w.InvariantError(`\`${a}\` was called inside a cache scope. Next.js should be preventing ${a} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"request":return}}let Z=/\n\s+at Suspense \(<anonymous>\)/,$=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${u.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),_=RegExp(`\\n\\s+at ${u.METADATA_BOUNDARY_NAME}[\\n\\s]`),aa=RegExp(`\\n\\s+at ${u.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),ab=RegExp(`\\n\\s+at ${u.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function ac(a,b,c,d){if(!ab.test(b)){if(_.test(b)){c.hasDynamicMetadata=!0;return}if(aa.test(b)){c.hasDynamicViewport=!0;return}if($.test(b)){c.hasAllowedDynamic=!0,c.hasSuspenseAboveBody=!0;return}else if(Z.test(b)){c.hasAllowedDynamic=!0;return}else{var e,f;let g;if(d.syncDynamicErrorWithStack)return void c.dynamicErrors.push(d.syncDynamicErrorWithStack);let h=(e=`Route "${a.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`,f=b,(g=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})).stack=g.name+": "+e+f,g);return void c.dynamicErrors.push(h)}}}var ad=((m={})[m.Full=0]="Full",m[m.Empty=1]="Empty",m[m.Errored=2]="Errored",m);function ae(a,b){console.error(b),a.dev||(a.hasReadableErrorStacks?console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${a.route}" in your browser to investigate the error.`):console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
3
|
-
- Start the app in development mode by running \`next dev\`, then open "${a.route}" in your browser to investigate the error.
|
|
4
|
-
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`))}function af(a,b,c,d){if(d.syncDynamicErrorWithStack)throw ae(a,d.syncDynamicErrorWithStack),new r;if(0!==b){if(c.hasSuspenseAboveBody)return;let d=c.dynamicErrors;if(d.length>0){for(let b=0;b<d.length;b++)ae(a,d[b]);throw new r}if(c.hasDynamicViewport)throw console.error(`Route "${a.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new r;if(1===b)throw console.error(`Route "${a.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new r}else if(!1===c.hasAllowedDynamic&&c.hasDynamicMetadata)throw console.error(`Route "${a.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new r}function ag(a,b){return a.runtimeStagePromise?a.runtimeStagePromise.then(()=>b):b}a.s(["Postpone",()=>J,"PreludeState",()=>ad,"abortAndThrowOnSynchronousRequestDataAccess",()=>I,"abortOnSynchronousPlatformIOAccess",()=>G,"accessedDynamicData",()=>R,"annotateDynamicAccess",()=>W,"consumeDynamicAccess",()=>S,"createDynamicTrackingState",()=>z,"createDynamicValidationState",()=>A,"createHangingInputAbortSignal",()=>V,"createRenderInBrowserAbortSignal",()=>U,"delayUntilRuntimeStage",()=>ag,"formatDynamicAPIAccesses",()=>T,"getFirstDynamicReason",()=>B,"isDynamicPostpone",()=>M,"isPrerenderInterruptedError",()=>Q,"logDisallowedDynamicError",()=>ae,"markCurrentScopeAsDynamic",()=>C,"postponeWithTracking",()=>K,"throwIfDisallowedDynamic",()=>af,"throwToInterruptStaticGeneration",()=>D,"trackAllowedDynamicAccess",()=>ac,"trackDynamicDataInDynamicRender",()=>E,"trackSynchronousPlatformIOAccessInDev",()=>H,"useDynamicRouteParams",()=>X,"useDynamicSearchParams",()=>Y],32799)},37649,a=>{"use strict";var b=a.i(75654);let c=Symbol.for("react.postpone");var d=a.i(47840),e=a.i(15568),f=a.i(32799),g=a.i(85741);a.s(["unstable_rethrow",()=>function a(h){if((0,e.isNextRouterError)(h)||(0,d.isBailoutToCSRError)(h)||(0,g.isDynamicServerError)(h)||(0,f.isDynamicPostpone)(h)||"object"==typeof h&&null!==h&&h.$$typeof===c||(0,b.isHangingPromiseRejectionError)(h)||(0,f.isPrerenderInterruptedError)(h))throw h;h instanceof Error&&"cause"in h&&a(h.cause)}],37649)},73272,41227,18705,a=>{"use strict";var b=a.i(58112),c=a.i(47754);function d(){return!function(){{let{workUnitAsyncStorage:b}=a.r(32319),c=b.getStore();if(!c)return!1;switch(c.type){case"prerender":case"prerender-client":case"prerender-ppr":let d=c.fallbackRouteParams;return!!d&&d.size>0}return!1}}()?(0,b.useContext)(c.PathnameContext):null}a.s(["useUntrackedPathname",()=>d],73272),a.s([],41227);var e=a.i(83876),f=b,g=a.i(47503),h=a.i(60049);class i extends f.default.Component{constructor(a){super(a),this.state={triggeredStatus:void 0,previousPathname:a.pathname}}componentDidCatch(){}static getDerivedStateFromError(a){if((0,g.isHTTPAccessFallbackError)(a))return{triggeredStatus:(0,g.getAccessFallbackHTTPStatus)(a)};throw a}static getDerivedStateFromProps(a,b){return a.pathname!==b.previousPathname&&b.triggeredStatus?{triggeredStatus:void 0,previousPathname:a.pathname}:{triggeredStatus:b.triggeredStatus,previousPathname:a.pathname}}render(){let{notFound:a,forbidden:b,unauthorized:c,children:d}=this.props,{triggeredStatus:f}=this.state,h={[g.HTTPAccessErrorStatus.NOT_FOUND]:a,[g.HTTPAccessErrorStatus.FORBIDDEN]:b,[g.HTTPAccessErrorStatus.UNAUTHORIZED]:c};if(f){let i=f===g.HTTPAccessErrorStatus.NOT_FOUND&&a,j=f===g.HTTPAccessErrorStatus.FORBIDDEN&&b,k=f===g.HTTPAccessErrorStatus.UNAUTHORIZED&&c;return i||j||k?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("meta",{name:"robots",content:"noindex"}),!1,h[f]]}):d}return d}}function j({notFound:a,forbidden:b,unauthorized:c,children:g}){let j=d(),k=(0,f.useContext)(h.MissingSlotContext);return a||b||c?(0,e.jsx)(i,{pathname:j,notFound:a,forbidden:b,unauthorized:c,missingSlots:k,children:g}):(0,e.jsx)(e.Fragment,{children:g})}a.s(["HTTPAccessFallbackBoundary",()=>j],18705)},24552,a=>{"use strict";let b;var c,d=a.i(83876),e=((c={}).AUTO="auto",c.FULL="full",c.TEMPORARY="temporary",c),f=a.i(58112),g=a.i(29781),h=a.i(60049),i=a.i(19349);let j="next-router-state-tree",k="next-router-prefetch",l="next-url",m="_rsc";function n(a){throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0})}async function o(a,b){return new Promise((c,d)=>{(0,f.startTransition)(()=>{n({type:"server-action",actionId:a,actionArgs:b,resolve:c,reject:d})})})}let p,q="__PAGE__",r=(a,b)=>{var c,d,e,f;s(a,(c=b[k],d=b["next-router-segment-prefetch"],e=b[j],f=b[l],(void 0===c||"0"===c)&&void 0===d&&void 0===e&&void 0===f?"":(function(a){let b=5381;for(let c=0;c<a.length;c++)b=(b<<5)+b+a.charCodeAt(c)|0;return b>>>0})([c||"0",d||"0",e||"0",f||"0"].join(",")).toString(36).slice(0,5)))},s=(a,b)=>{let c=a.search,d=(c.startsWith("?")?c.slice(1):c).split("&").filter(a=>a&&!a.startsWith(`${m}=`));b.length>0?d.push(`${m}=${b}`):d.push(`${m}`),a.search=d.length?`?${d.join("&")}`:""};function t(a){let b=new URL(a);return b.searchParams.delete(m),b}let u=i.createFromReadableStream,v=i.createFromFetch;function w(a){return{flightData:t(new URL(a,location.origin)).toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1,debugInfo:null}}let x=new AbortController;async function y(a,c){var d,f,g;let{flightRouterState:h,nextUrl:i,prefetchKind:m}=c,n={rsc:"1",[j]:c.isHmrRefresh?encodeURIComponent(JSON.stringify(h)):encodeURIComponent(JSON.stringify(function a(b){var c,d;let[e,f,g,h,i,j]=b,k="string"==typeof(c=e)&&c.startsWith(q+"?")?q:c,l={};for(let[b,c]of Object.entries(f))l[b]=a(c);let m=[k,l,null,(d=h)&&"refresh"!==d?h:null];return void 0!==i&&(m[4]=i),void 0!==j&&(m[5]=j),m}(h)))};m===e.AUTO&&(n[k]="1"),i&&(n[l]=i);try{let c=m?m===e.TEMPORARY?"high":"low":"auto",h=await z(a,n,c,!0,x.signal),i=t(new URL(h.url)),j=h.redirected?i:void 0,k=h.headers.get("content-type")||"",q=!!h.headers.get("vary")?.includes(l),r=!!h.headers.get("x-nextjs-postponed"),s=h.headers.get("x-nextjs-stale-time"),v=null!==s?1e3*parseInt(s,10):-1;if(!k.startsWith("text/x-component")||!h.ok||!h.body)return a.hash&&(i.hash=a.hash),w(i.toString());let y=h.flightResponse;if(null===y){let a;f=r?(a=h.body.getReader(),new ReadableStream({async pull(b){for(;;){let{done:c,value:d}=await a.read();if(!c){b.enqueue(d);continue}return}}})):h.body,g=n,y=u(f,{callServer:o,findSourceMapURL:p,debugChannel:b&&b(g)})}let A=await y;if(""!==A.b)return w(h.url);return{flightData:(d=A.f,"string"==typeof d?d:d.map(a=>(function(a){let[b,c,d,e]=a.slice(-4),f=a.slice(0,-4);return{pathToSegment:f.slice(0,-1),segmentPath:f,segment:f[f.length-1]??"",tree:b,seedData:c,head:d,isHeadPartial:e,isRootRender:4===a.length}})(a))),canonicalUrl:j,couldBeIntercepted:q,prerendered:A.S,postponed:r,staleTime:v,debugInfo:y._debugInfo??null}}catch(b){return x.signal.aborted||console.error(`Failed to fetch RSC payload for ${a}. Falling back to browser navigation.`,b),{flightData:a.toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1,debugInfo:null}}}async function z(a,b,c,d,e){let f={credentials:"same-origin",headers:b,priority:c||void 0,signal:e},g=new URL(a);r(g,b);let h=fetch(g,f),i=d?A(h,b):null,j=await h,k=j.redirected;for(let a=0;a<20&&j.redirected;a++){let a=new URL(j.url,g);if(a.origin!==g.origin||a.searchParams.get(m)===g.searchParams.get(m))break;r(g=new URL(a),b),h=fetch(g,f),i=d?A(h,b):null,j=await h,k=!0}let l=new URL(j.url,g);return l.searchParams.delete(m),{url:l.href,redirected:k,ok:j.ok,headers:j.headers,body:j.body,status:j.status,flightResponse:i}}function A(a,c){return v(a,{callServer:o,findSourceMapURL:p,debugChannel:b&&b(c)})}let B={then:()=>{}};var C=f,D=a.i(73272),E=a.i(15568);let F=a.r(56704).workAsyncStorage;function G({error:a}){if(F){let b=F.getStore();if(b?.isStaticGeneration)throw a&&console.error(a),a}return null}/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i.source;class H extends C.default.Component{constructor(a){super(a),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}static getDerivedStateFromError(a){if((0,E.isNextRouterError)(a))throw a;return{error:a}}static getDerivedStateFromProps(a,b){let{error:c}=b;return a.pathname!==b.previousPathname&&b.error?{error:null,previousPathname:a.pathname}:{error:b.error,previousPathname:a.pathname}}render(){return this.state.error&&1?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(G,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,d.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}}function I({errorComponent:a,errorStyles:b,errorScripts:c,children:e}){let f=(0,D.useUntrackedPathname)();return a?(0,d.jsx)(H,{pathname:f,errorComponent:a,errorStyles:b,errorScripts:c,children:e}):(0,d.jsx)(d.Fragment,{children:e})}let J=(a,b)=>"string"==typeof a?"string"==typeof b&&a===b:"string"!=typeof b&&a[0]===b[0]&&a[1]===b[1];a.i(41227);var K=f;a.i(47754),a.i(84049);var L=a.i(40809);a.r(20635).actionAsyncStorage;var M=a.i(47503);M.HTTP_ERROR_FALLBACK_ERROR_CODE,M.HTTP_ERROR_FALLBACK_ERROR_CODE,M.HTTP_ERROR_FALLBACK_ERROR_CODE,a.r(37649).unstable_rethrow;function N(){let a=(0,f.useContext)(h.AppRouterContext);if(null===a)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return a}function O({redirect:a,reset:b,redirectType:c}){let d=N();return(0,K.useEffect)(()=>{K.default.startTransition(()=>{c===L.RedirectType.push?d.push(a,{}):d.replace(a,{}),b()})},[a,c,b,d]),null}URLSearchParams,a.i(73679),a.r(32799).useDynamicRouteParams,a.r(32799).useDynamicSearchParams;class P extends K.default.Component{constructor(a){super(a),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(a){if((0,L.isRedirectError)(a))return{redirect:(0,L.isRedirectError)(a)?a.digest.split(";").slice(2,-2).join(";"):null,redirectType:function(a){if(!(0,L.isRedirectError)(a))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return a.digest.split(";",2)[1]}(a)};throw a}render(){let{redirect:a,redirectType:b}=this.state;return null!==a&&null!==b?(0,d.jsx)(O,{redirect:a,redirectType:b,reset:()=>this.setState({redirect:null})}):this.props.children}}function Q({children:a}){let b=N();return(0,d.jsx)(P,{router:b,children:a})}var R=a.i(18705);function S(a,b=!1){return Array.isArray(a)?`${a[0]}|${a[1]}|${a[2]}`:b&&a.startsWith(q)?q:a}let T=["(..)(..)","(.)","(..)","(...)"];g.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;let U=["bottom","height","left","right","top","width","x","y"];function V(a,b){let c=a.getBoundingClientRect();return c.top>=0&&c.top<=b}class W extends f.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...a){super(...a),this.handlePotentialScroll=()=>{let{focusAndScrollRef:a,segmentPath:b}=this.props;if(a.apply){if(0!==a.segmentPaths.length&&!a.segmentPaths.some(a=>b.every((b,c)=>J(b,a[c]))))return;let c=null,d=a.hashFragment;if(d&&(c="top"===d?document.body:document.getElementById(d)??document.getElementsByName(d)[0]),c||(c=null),!(c instanceof Element))return;for(;!(c instanceof HTMLElement)||function(a){if(["sticky","fixed"].includes(getComputedStyle(a).position))return!0;let b=a.getBoundingClientRect();return U.every(a=>0===b[a])}(c);){if(null===c.nextElementSibling)return;c=c.nextElementSibling}a.apply=!1,a.hashFragment=null,a.segmentPaths=[],function(a,b={}){if(b.onlyHashChange)return a();let c=document.documentElement;if("smooth"!==c.dataset.scrollBehavior)return a();let d=c.style.scrollBehavior;c.style.scrollBehavior="auto",b.dontForceLayout||c.getClientRects(),a(),c.style.scrollBehavior=d}(()=>{if(d)return void c.scrollIntoView();let a=document.documentElement,b=a.clientHeight;!V(c,b)&&(a.scrollTop=0,V(c,b)||c.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:a.onlyHashChange}),a.onlyHashChange=!1,c.focus()}}}}function X({segmentPath:a,children:b}){let c=(0,f.useContext)(h.GlobalLayoutRouterContext);if(!c)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,d.jsx)(W,{segmentPath:a,focusAndScrollRef:c.focusAndScrollRef,children:b})}function Y({tree:a,segmentPath:b,cacheNode:c,url:e}){let g=(0,f.useContext)(h.GlobalLayoutRouterContext);if(!g)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let{tree:i}=g,j=null!==c.prefetchRsc?c.prefetchRsc:c.rsc,k=(0,f.useDeferredValue)(c.rsc,j),l="object"==typeof k&&null!==k&&"function"==typeof k.then?(0,f.use)(k):k;if(!l){let a=c.lazyData;if(null===a){let d=function a(b,c){if(b){let[d,e]=b,f=2===b.length;if(J(c[0],d)&&c[1].hasOwnProperty(e)){if(f){let b=a(void 0,c[1][e]);return[c[0],{...c[1],[e]:[b[0],b[1],b[2],"refetch"]}]}return[c[0],{...c[1],[e]:a(b.slice(2),c[1][e])}]}}return c}(["",...b],i),h=function a([b,c]){if(Array.isArray(b)&&("di"===b[2]||"ci"===b[2])||"string"==typeof b&&void 0!==b.split("/").find(a=>T.find(b=>a.startsWith(b))))return!0;if(c){for(let b in c)if(a(c[b]))return!0}return!1}(i),j=Date.now();c.lazyData=a=y(new URL(e,location.origin),{flightRouterState:d,nextUrl:h?g.previousNextUrl||g.nextUrl:null}).then(a=>((0,f.startTransition)(()=>{n({type:"server-patch",previousTree:i,serverResponse:a,navigatedAt:j})}),a)),(0,f.use)(a)}(0,f.use)(B)}return(0,d.jsx)(h.LayoutRouterContext.Provider,{value:{parentTree:a,parentCacheNode:c,parentSegmentPath:b,url:e},children:l})}function Z({loading:a,children:b}){let c;if(c="object"==typeof a&&null!==a&&"function"==typeof a.then?(0,f.use)(a):a){let a=c[0],e=c[1],g=c[2];return(0,d.jsx)(f.Suspense,{fallback:(0,d.jsxs)(d.Fragment,{children:[e,g,a]}),children:b})}return(0,d.jsx)(d.Fragment,{children:b})}function $({parallelRouterKey:a,error:b,errorStyles:c,errorScripts:e,templateStyles:g,templateScripts:i,template:j,notFound:k,forbidden:l,unauthorized:m,segmentViewBoundaries:n}){let o=(0,f.useContext)(h.LayoutRouterContext);if(!o)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:p,parentCacheNode:q,parentSegmentPath:r,url:s}=o,t=q.parallelRoutes,u=t.get(a);u||(u=new Map,t.set(a,u));let v=p[0],w=null===r?[a]:r.concat([v,a]),x=p[1][a],y=S(x[0],!0),z=function(a,b){let[c,d]=(0,f.useState)(()=>({tree:a,stateKey:b,next:null}));if(c.tree===a)return c;let e={tree:a,stateKey:b,next:null},g=1,h=c,i=e;for(;null!==h&&g<1;){if(h.stateKey===b){i.next=h.next;break}{g++;let a={tree:h.tree,stateKey:h.stateKey,next:null};i.next=a,i=a}h=h.next}return d(e),e}(x,y),A=[];do{let a=z.tree,f=z.stateKey,n=S(a[0]),o=u.get(n);if(void 0===o){let a={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1};o=a,u.set(n,a)}let p=q.loading,r=(0,d.jsxs)(h.TemplateContext.Provider,{value:(0,d.jsxs)(X,{segmentPath:w,children:[(0,d.jsx)(I,{errorComponent:b,errorStyles:c,errorScripts:e,children:(0,d.jsx)(Z,{loading:p,children:(0,d.jsx)(R.HTTPAccessFallbackBoundary,{notFound:k,forbidden:l,unauthorized:m,children:(0,d.jsxs)(Q,{children:[(0,d.jsx)(Y,{url:s,tree:a,cacheNode:o,segmentPath:w}),null]})})})}),null]}),children:[g,i,j]},f);A.push(r),z=z.next}while(null!==z)return A}a.s(["default",()=>$],24552)},30020,a=>{"use strict";var b=a.i(83876),c=a.i(58112),d=a.i(60049);function e(){let a=(0,c.useContext)(d.TemplateContext);return(0,b.jsx)(b.Fragment,{children:a})}a.s(["default",()=>e])},93262,83691,30012,a=>{"use strict";class b{static get(a,b,c){let d=Reflect.get(a,b,c);return"function"==typeof d?d.bind(a):d}static set(a,b,c,d){return Reflect.set(a,b,c,d)}static has(a,b){return Reflect.has(a,b)}static deleteProperty(a,b){return Reflect.deleteProperty(a,b)}}a.s(["ReflectAdapter",()=>b],93262);var c=a.i(58112);let d={current:null},e="function"==typeof c.cache?c.cache:a=>a,f=console.warn;function g(a){return function(...b){f(a(...b))}}e(a=>{try{f(d.current)}finally{d.current=null}}),a.s(["createDedupedByCallsiteServerErrorLoggerDev",()=>g],83691);let h=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function i(a,b){return h.test(b)?`\`${a}.${b}\``:`\`${a}[${JSON.stringify(b)}]\``}function j(a,b){let c=JSON.stringify(b);return`\`Reflect.has(${a}, ${c})\`, \`${c} in ${a}\`, or similar`}let k=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule"]);a.s(["describeHasCheckingStringProperty",()=>j,"describeStringPropertyAccess",()=>i,"wellKnownProperties",0,k],30012)},89359,a=>{"use strict";var b=a.i(93262),c=a.i(32799),d=a.i(32319),e=a.i(95081),f=a.i(75654),g=a.i(83691),h=a.i(30012),i=a.i(35321);function j(a,b){let c=d.workUnitAsyncStorage.getStore();if(c)switch(c.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return m(b,c);case"prerender-runtime":throw Object.defineProperty(new e.InvariantError("createSearchParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E769",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new e.InvariantError("createSearchParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E739",enumerable:!1,configurable:!0});case"request":return n(a,b,c)}(0,d.throwInvariantForMissingStore)()}function k(a,b){let f=d.workUnitAsyncStorage.getStore();if(f)switch(f.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return m(b,f);case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new e.InvariantError("createServerSearchParamsForServerPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E747",enumerable:!1,configurable:!0});case"prerender-runtime":var g,h;return g=a,h=f,(0,c.delayUntilRuntimeStage)(h,r(g));case"request":return n(a,b,f)}(0,d.throwInvariantForMissingStore)()}function l(a){if(a.forceStatic)return Promise.resolve({});let b=d.workUnitAsyncStorage.getStore();if(b)switch(b.type){case"prerender":case"prerender-client":return(0,f.makeHangingPromise)(b.renderSignal,a.route,"`searchParams`");case"prerender-runtime":throw Object.defineProperty(new e.InvariantError("createPrerenderSearchParamsForClientPage should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E768",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new e.InvariantError("createPrerenderSearchParamsForClientPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E746",enumerable:!1,configurable:!0});case"prerender-ppr":case"prerender-legacy":case"request":return Promise.resolve({})}(0,d.throwInvariantForMissingStore)()}function m(a,d){if(a.forceStatic)return Promise.resolve({});switch(d.type){case"prerender":case"prerender-client":var e=a,g=d;let h=o.get(g);if(h)return h;let j=(0,f.makeHangingPromise)(g.renderSignal,e.route,"`searchParams`"),k=new Proxy(j,{get(a,d,e){if(Object.hasOwn(j,d))return b.ReflectAdapter.get(a,d,e);switch(d){case"then":return(0,c.annotateDynamicAccess)("`await searchParams`, `searchParams.then`, or similar",g),b.ReflectAdapter.get(a,d,e);case"status":return(0,c.annotateDynamicAccess)("`use(searchParams)`, `searchParams.status`, or similar",g),b.ReflectAdapter.get(a,d,e);default:return b.ReflectAdapter.get(a,d,e)}}});return o.set(g,k),k;case"prerender-ppr":case"prerender-legacy":var l=a,m=d;let n=o.get(l);if(n)return n;let p=Promise.resolve({}),q=new Proxy(p,{get(a,d,e){if(Object.hasOwn(p,d))return b.ReflectAdapter.get(a,d,e);if("string"==typeof d&&"then"===d){let a="`await searchParams`, `searchParams.then`, or similar";if(l.dynamicShouldError){var f=l.route;throw Object.defineProperty(new i.StaticGenBailoutError(`Route ${f} with \`dynamic = "error"\` couldn't be rendered statically because it used ${a}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}"prerender-ppr"===m.type?(0,c.postponeWithTracking)(l.route,a,m.dynamicTracking):(0,c.throwToInterruptStaticGeneration)(a,l,m)}return b.ReflectAdapter.get(a,d,e)}});return o.set(l,q),q;default:return d}}function n(a,b,c){return b.forceStatic?Promise.resolve({}):r(a)}a.i(24725),a.i(26513);let o=new WeakMap,p=new WeakMap;function q(a){let c=p.get(a);if(c)return c;let d=Promise.resolve({}),e=new Proxy(d,{get:function c(e,f,g){return Object.hasOwn(d,f)||"string"!=typeof f||"then"!==f&&h.wellKnownProperties.has(f)||function(a,b){let c=Object.defineProperty(Error(`Route ${a.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(c,b),a.invalidDynamicUsageError??=c,c}(a,c),b.ReflectAdapter.get(e,f,g)}});return p.set(a,e),e}function r(a){let b=o.get(a);if(b)return b;let c=Promise.resolve(a);return o.set(a,c),c}(0,g.createDedupedByCallsiteServerErrorLoggerDev)(function(a,b){let c=a?`Route "${a}" `:"This route ";return Object.defineProperty(Error(`${c}used ${b}. \`searchParams\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E848",enumerable:!1,configurable:!0})}),a.s(["createPrerenderSearchParamsForClientPage",()=>l,"createSearchParamsFromClient",()=>j,"createServerSearchParamsForMetadata",0,k,"createServerSearchParamsForServerPage",()=>k,"makeErroringSearchParamsForUseCache",()=>q],89359)},16819,a=>{"use strict";var b=a.i(56704),c=a.i(93262),d=a.i(32799),e=a.i(32319),f=a.i(95081),g=a.i(30012),h=a.i(75654),i=a.i(83691),j=a.i(43285);function k(a,b){let c=e.workUnitAsyncStorage.getStore();if(c)switch(c.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return o(a,b,c);case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new f.InvariantError("createParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E736",enumerable:!1,configurable:!0});case"prerender-runtime":throw Object.defineProperty(new f.InvariantError("createParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E770",enumerable:!1,configurable:!0});case"request":return s(a)}(0,e.throwInvariantForMissingStore)()}function l(a,b){let c=e.workUnitAsyncStorage.getStore();if(c)switch(c.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return o(a,b,c);case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new f.InvariantError("createServerParamsForRoute should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E738",enumerable:!1,configurable:!0});case"prerender-runtime":return p(a,c);case"request":return s(a)}(0,e.throwInvariantForMissingStore)()}function m(a,b){let c=e.workUnitAsyncStorage.getStore();if(c)switch(c.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return o(a,b,c);case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new f.InvariantError("createServerParamsForServerSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E743",enumerable:!1,configurable:!0});case"prerender-runtime":return p(a,c);case"request":return s(a)}(0,e.throwInvariantForMissingStore)()}function n(a){let c=b.workAsyncStorage.getStore();if(!c)throw Object.defineProperty(new f.InvariantError("Missing workStore in createPrerenderParamsForClientSegment"),"__NEXT_ERROR_CODE",{value:"E773",enumerable:!1,configurable:!0});let d=e.workUnitAsyncStorage.getStore();if(d)switch(d.type){case"prerender":case"prerender-client":let g=d.fallbackRouteParams;if(g){for(let b in a)if(g.has(b))return(0,h.makeHangingPromise)(d.renderSignal,c.route,"`params`")}break;case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new f.InvariantError("createPrerenderParamsForClientSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E734",enumerable:!1,configurable:!0})}return Promise.resolve(a)}function o(a,b,c){switch(c.type){case"prerender":case"prerender-client":{let d=c.fallbackRouteParams;if(d){for(let e in a)if(d.has(e))return function(a,b,c){let d=q.get(a);if(d)return d;let e=new Proxy((0,h.makeHangingPromise)(c.renderSignal,b.route,"`params`"),r);return q.set(a,e),e}(a,b,c)}break}case"prerender-ppr":{let e=c.fallbackRouteParams;if(e){for(let f in a)if(e.has(f))return function(a,b,c,e){let f=q.get(a);if(f)return f;let h={...a},i=Promise.resolve(h);return q.set(a,i),Object.keys(a).forEach(a=>{g.wellKnownProperties.has(a)||b.has(a)&&Object.defineProperty(h,a,{get(){let b=(0,g.describeStringPropertyAccess)("params",a);"prerender-ppr"===e.type?(0,d.postponeWithTracking)(c.route,b,e.dynamicTracking):(0,d.throwToInterruptStaticGeneration)(b,c,e)},enumerable:!0})}),i}(a,e,b,c)}}}return s(a)}function p(a,b){return(0,d.delayUntilRuntimeStage)(b,s(a))}a.i(26513);let q=new WeakMap,r={get:function(a,b,d){if("then"===b||"catch"===b||"finally"===b){let e=c.ReflectAdapter.get(a,b,d);return({[b]:(...b)=>{let c=j.dynamicAccessAsyncStorage.getStore();return c&&c.abortController.abort(Object.defineProperty(Error("Accessed fallback `params` during prerendering."),"__NEXT_ERROR_CODE",{value:"E691",enumerable:!1,configurable:!0})),new Proxy(e.apply(a,b),r)}})[b]}return c.ReflectAdapter.get(a,b,d)}};function s(a){let b=q.get(a);if(b)return b;let c=Promise.resolve(a);return q.set(a,c),c}(0,i.createDedupedByCallsiteServerErrorLoggerDev)(function(a,b){let c=a?`Route "${a}" `:"This route ";return Object.defineProperty(Error(`${c}used ${b}. \`params\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E834",enumerable:!1,configurable:!0})}),a.s(["createParamsFromClient",()=>k,"createPrerenderParamsForClientSegment",()=>n,"createServerParamsForMetadata",0,m,"createServerParamsForRoute",()=>l,"createServerParamsForServerSegment",()=>m])},2891,a=>{"use strict";var b=a.i(83876),c=a.i(95081);function d({Component:d,searchParams:e,params:f,promises:g}){{let g,h,{workAsyncStorage:i}=a.r(56704),j=i.getStore();if(!j)throw Object.defineProperty(new c.InvariantError("Expected workStore to exist when handling searchParams in a client Page."),"__NEXT_ERROR_CODE",{value:"E564",enumerable:!1,configurable:!0});let{createSearchParamsFromClient:k}=a.r(89359);g=k(e,j);let{createParamsFromClient:l}=a.r(16819);return h=l(f,j),(0,b.jsx)(d,{params:h,searchParams:g})}}a.s(["ClientPageRoot",()=>d])},51175,a=>{"use strict";var b=a.i(83876),c=a.i(95081);function d({Component:d,slots:e,params:f,promise:g}){{let g,{workAsyncStorage:h}=a.r(56704),i=h.getStore();if(!i)throw Object.defineProperty(new c.InvariantError("Expected workStore to exist when handling params in a client segment such as a Layout or Template."),"__NEXT_ERROR_CODE",{value:"E600",enumerable:!1,configurable:!0});let{createParamsFromClient:j}=a.r(16819);return g=j(f,i),(0,b.jsx)(d,{...e,params:g})}}a.s(["ClientSegmentRoot",()=>d])},78580,a=>{"use strict";var b=a.i(83876);a.s(["IconMark",0,()=>(0,b.jsx)("meta",{name:"«nxt-icon»"})])},79674,a=>{"use strict";var b=a.i(87031);let c={[b.METADATA_BOUNDARY_NAME]:function({children:a}){return a},[b.VIEWPORT_BOUNDARY_NAME]:function({children:a}){return a},[b.OUTLET_BOUNDARY_NAME]:function({children:a}){return a},[b.ROOT_LAYOUT_BOUNDARY_NAME]:function({children:a}){return a}},d=c[b.METADATA_BOUNDARY_NAME.slice(0)],e=c[b.VIEWPORT_BOUNDARY_NAME.slice(0)],f=c[b.OUTLET_BOUNDARY_NAME.slice(0)],g=c[b.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)];a.s(["MetadataBoundary",0,d,"OutletBoundary",0,f,"RootLayoutBoundary",0,g,"ViewportBoundary",0,e])}];
|
|
5
|
-
|
|
6
|
-
//# sourceMappingURL=962f0_next_dist_0ff128f8._.js.map
|