viba-cli 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +2 -2
  3. package/.next/fallback-build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/server/app/_global-error.html +2 -2
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/_not-found.html +1 -1
  14. package/.next/server/app/_not-found.rsc +2 -2
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  21. package/.next/server/app/index.html +1 -1
  22. package/.next/server/app/index.rsc +3 -3
  23. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  24. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  25. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  26. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  27. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  28. package/.next/server/app/new/page/server-reference-manifest.json +23 -23
  29. package/.next/server/app/new/page.js +2 -2
  30. package/.next/server/app/new/page.js.nft.json +1 -1
  31. package/.next/server/app/new/page_client-reference-manifest.js +1 -1
  32. package/.next/server/app/page/server-reference-manifest.json +23 -23
  33. package/.next/server/app/page.js +2 -2
  34. package/.next/server/app/page.js.nft.json +1 -1
  35. package/.next/server/app/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/session/[sessionId]/page/server-reference-manifest.json +18 -18
  37. package/.next/server/app/session/[sessionId]/page.js +2 -2
  38. package/.next/server/app/session/[sessionId]/page.js.nft.json +1 -1
  39. package/.next/server/app/session/[sessionId]/page_client-reference-manifest.js +1 -1
  40. package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_14850b56.js +1 -1
  41. package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_14850b56.js.map +1 -1
  42. package/.next/server/chunks/ssr/[root-of-the-server]__14040f84._.js +4 -0
  43. package/.next/server/chunks/ssr/[root-of-the-server]__14040f84._.js.map +1 -0
  44. package/.next/server/chunks/ssr/[root-of-the-server]__7bf94cba._.js +1 -1
  45. package/.next/server/chunks/ssr/{[root-of-the-server]__528f3aa4._.js → [root-of-the-server]__7cb77b2c._.js} +2 -2
  46. package/.next/server/chunks/ssr/{[root-of-the-server]__528f3aa4._.js.map → [root-of-the-server]__7cb77b2c._.js.map} +1 -1
  47. package/.next/server/chunks/ssr/{[root-of-the-server]__f1bfaf02._.js → [root-of-the-server]__90433455._.js} +2 -2
  48. package/.next/server/chunks/ssr/{[root-of-the-server]__f1bfaf02._.js.map → [root-of-the-server]__90433455._.js.map} +1 -1
  49. package/.next/server/chunks/ssr/[root-of-the-server]__997d0abe._.js +4 -0
  50. package/.next/server/chunks/ssr/[root-of-the-server]__997d0abe._.js.map +1 -0
  51. package/.next/server/chunks/ssr/[root-of-the-server]__fc21e97b._.js +3 -0
  52. package/.next/server/chunks/ssr/[root-of-the-server]__fc21e97b._.js.map +1 -0
  53. package/.next/server/chunks/ssr/{_ba2d64df._.js → _1829e846._.js} +2 -2
  54. package/.next/server/chunks/ssr/_1829e846._.js.map +1 -0
  55. package/.next/server/chunks/ssr/{_697cd855._.js → _e09bad05._.js} +3 -3
  56. package/.next/server/chunks/ssr/{_697cd855._.js.map → _e09bad05._.js.map} +1 -1
  57. package/.next/server/chunks/ssr/{_882b1ba1._.js → _e3756017._.js} +2 -2
  58. package/.next/server/chunks/ssr/_e3756017._.js.map +1 -0
  59. package/.next/server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js +2 -2
  60. package/.next/server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js.map +1 -1
  61. package/.next/server/chunks/ssr/src_components_GitRepoSelector_tsx_05c81afa._.js +1 -1
  62. package/.next/server/chunks/ssr/src_components_GitRepoSelector_tsx_05c81afa._.js.map +1 -1
  63. package/.next/server/pages/404.html +1 -1
  64. package/.next/server/pages/500.html +2 -2
  65. package/.next/server/server-reference-manifest.js +1 -1
  66. package/.next/server/server-reference-manifest.json +37 -37
  67. package/.next/static/chunks/{3b2fc6f8626b2dc7.js → 07663e1466069250.js} +2 -2
  68. package/.next/static/chunks/{778b889339dff253.js → 4bc3241fd93daad5.js} +3 -3
  69. package/.next/static/chunks/7f97d710f0f65591.css +3 -0
  70. package/.next/static/chunks/{676a1b46e77486f6.js → 80a56e570af5e3fa.js} +3 -3
  71. package/.next/static/chunks/8c091f994c272480.js +3 -0
  72. package/.next/static/chunks/{70331540018ec138.js → d49217d08d7bcba3.js} +3 -3
  73. package/bin/viba.mjs +15 -45
  74. package/package.json +3 -1
  75. package/src/lib/cli-args.mjs +41 -0
  76. package/.next/server/chunks/ssr/[root-of-the-server]__41b2f23a._.js +0 -4
  77. package/.next/server/chunks/ssr/[root-of-the-server]__41b2f23a._.js.map +0 -1
  78. package/.next/server/chunks/ssr/[root-of-the-server]__58bd04dc._.js +0 -3
  79. package/.next/server/chunks/ssr/[root-of-the-server]__58bd04dc._.js.map +0 -1
  80. package/.next/server/chunks/ssr/[root-of-the-server]__8174ed94._.js +0 -4
  81. package/.next/server/chunks/ssr/[root-of-the-server]__8174ed94._.js.map +0 -1
  82. package/.next/server/chunks/ssr/_882b1ba1._.js.map +0 -1
  83. package/.next/server/chunks/ssr/_ba2d64df._.js.map +0 -1
  84. package/.next/static/chunks/698df8f74455c688.js +0 -3
  85. package/.next/static/chunks/dc895d87368362da.css +0 -3
  86. /package/.next/static/{L4lIRTTjSR0iyGlL2zta7 → 9VBYUJ9aJzXgsmqGhAxYu}/_buildManifest.js +0 -0
  87. /package/.next/static/{L4lIRTTjSR0iyGlL2zta7 → 9VBYUJ9aJzXgsmqGhAxYu}/_clientMiddlewareManifest.json +0 -0
  88. /package/.next/static/{L4lIRTTjSR0iyGlL2zta7 → 9VBYUJ9aJzXgsmqGhAxYu}/_ssgManifest.js +0 -0
@@ -1,2 +1,2 @@
1
1
  globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
2
- globalThis.__RSC_MANIFEST["/session/[sessionId]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/src/app/session/[sessionId]/SessionPageClient.tsx <module evaluation>":{"id":36438,"name":"*","chunks":["/_next/static/chunks/70331540018ec138.js","/_next/static/chunks/698df8f74455c688.js"],"async":false},"[project]/src/app/session/[sessionId]/SessionPageClient.tsx":{"id":36438,"name":"*","chunks":["/_next/static/chunks/70331540018ec138.js","/_next/static/chunks/698df8f74455c688.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68027":{"*":{"id":40622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__a457c799._.js"],"async":false}},"36438":{"*":{"id":96614,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__f56dd853._.js","server/chunks/ssr/_697cd855._.js","server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"36438":{"*":{"id":59431,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/icon.png":[],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/src/app/layout":[{"path":"static/chunks/dc895d87368362da.css","inlined":false}],"[project]/src/app/session/[sessionId]/page":[{"path":"static/chunks/dc895d87368362da.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/icon.png":["static/chunks/ff1a16fafef87110.js","static/chunks/d2be314c3ece3fbe.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/src/app/layout":[],"[project]/src/app/session/[sessionId]/page":["static/chunks/70331540018ec138.js","static/chunks/698df8f74455c688.js"]}}
2
+ globalThis.__RSC_MANIFEST["/session/[sessionId]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/src/app/session/[sessionId]/SessionPageClient.tsx <module evaluation>":{"id":36438,"name":"*","chunks":["/_next/static/chunks/d49217d08d7bcba3.js","/_next/static/chunks/8c091f994c272480.js"],"async":false},"[project]/src/app/session/[sessionId]/SessionPageClient.tsx":{"id":36438,"name":"*","chunks":["/_next/static/chunks/d49217d08d7bcba3.js","/_next/static/chunks/8c091f994c272480.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0f584432._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68027":{"*":{"id":40622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__a457c799._.js"],"async":false}},"36438":{"*":{"id":96614,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__f56dd853._.js","server/chunks/ssr/_e09bad05._.js","server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"36438":{"*":{"id":59431,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/icon.png":[],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/src/app/layout":[{"path":"static/chunks/7f97d710f0f65591.css","inlined":false}],"[project]/src/app/session/[sessionId]/page":[{"path":"static/chunks/7f97d710f0f65591.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/icon.png":["static/chunks/ff1a16fafef87110.js","static/chunks/d2be314c3ece3fbe.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/src/app/layout":[],"[project]/src/app/session/[sessionId]/page":["static/chunks/d49217d08d7bcba3.js","static/chunks/8c091f994c272480.js"]}}
@@ -1,3 +1,3 @@
1
- module.exports=[67404,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),o=e.i(74677),l=e.i(69741),i=e.i(16795),u=e.i(87718),c=e.i(95169),d=e.i(47587),p=e.i(66012),f=e.i(70101),h=e.i(26937),m=e.i(10372),g=e.i(93695);e.i(52474);var R=e.i(220),w=e.i(24868),v=e.i(14747),x=e.i(33405),y=e.i(24361),E=e.i(89171);let b=(0,y.promisify)(x.execFile),C=["!**/node_modules/**","!**/.git/**","!**/.next/**","!**/dist/**","!**/build/**","!**/coverage/**","*.{ts,tsx,js,jsx,mjs,cjs}"],N=[".tsx",".ts",".jsx",".js",".mjs",".cjs"],A=new Set(["node_modules",".git",".next","dist","build","coverage",".turbo",".cache"]),$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),j=e=>Array.from(new Set(e)),_=e=>{let t=e.trim();if(!t)return"";let r=t.match(/[A-Za-z_$][\w$]*/);return r?r[0]:""},P=e=>{let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return[`\\bexport\\s+(?:default\\s+)?(?:async\\s+)?function\\s+${t}\\b`,`\\b(?:async\\s+)?function\\s+${t}\\b`,`\\b(?:export\\s+)?(?:const|let|var)\\s+${t}\\s*=\\s*(?:async\\s*)?\\([^)]*\\)\\s*=>`,`\\b(?:export\\s+)?(?:const|let|var)\\s+${t}\\s*=\\s*(?:async\\s*)?[A-Za-z_$][\\w$]*\\s*=>`,`\\b(?:export\\s+)?(?:const|let|var)\\s+${t}\\s*=\\s*(?:memo|forwardRef)\\s*\\(`,`\\bexport\\s+default\\s+${t}\\b`,`\\bclass\\s+${t}\\b`]},T=async e=>{try{return(await w.default.stat(e)).isFile()}catch{return!1}},S=async(e,t)=>{try{let{stdout:r}=await b("rg",(e=>{let t=["-l","--no-messages","--pcre2"];for(let e of C)t.push("--glob",e);return t.push(e,"."),t})(t),{cwd:e,maxBuffer:2097152,timeout:2e4});return r.split("\n").map(e=>e.trim()).filter(Boolean)}catch{try{let{stdout:r}=await b("git",["grep","-l","-P",t],{cwd:e,maxBuffer:2097152,timeout:2e4});return r.split("\n").map(e=>e.trim()).filter(Boolean)}catch{return[]}}},O=async e=>{try{let{stdout:t}=await b("git",["ls-files","--cached","--others","--exclude-standard"],{cwd:e,maxBuffer:0xa00000,timeout:1e4}),r=t.split("\n").map(e=>e.trim()).filter(e=>e&&N.some(t=>e.endsWith(t))).map(t=>v.default.join(e,t));if(r.length>0)return r}catch{}let t=[],r=[e];for(;r.length>0&&t.length<1e4;){let e,a=r.shift();if(a){try{e=await w.default.readdir(a,{withFileTypes:!0})}catch{continue}for(let n of e){let e=v.default.join(a,n.name);if(n.isDirectory()){A.has(n.name)||r.push(e);continue}if(n.isFile()&&N.some(e=>n.name.endsWith(e))&&(t.push(e),t.length>=1e4))break}}}return t},k=async(e,t)=>{let r=await O(e);if(0===r.length)return new Map;let a=new Map;for(let e of t){let t=P(e).map(e=>{try{return RegExp(e,"m")}catch{return null}}).filter(e=>e instanceof RegExp);t.length>0&&a.set(e,t)}let n=new Map;if(0===a.size)return n;for(let t=0;t<r.length;t+=100){let s=r.slice(t,t+100);await Promise.all(s.map(async t=>{try{let r=await w.default.stat(t);if(!r.isFile()||r.size>524288)return;let s=await w.default.readFile(t,"utf-8"),o=v.default.relative(e,t);for(let[e,t]of a.entries())if(t.some(e=>e.test(s))){let t=n.get(e)||[];t.push(o),n.set(e,t)}}catch{}}))}return n},H=(e,t)=>{let r=e.replace(/\\/g,"/").toLowerCase(),a=$(t),n=v.default.basename(r),s=0;return r.includes("/src/components/")&&(s+=100),r.includes("/components/")&&(s+=80),r.includes("/src/")&&(s+=60),/\.(tsx|jsx)$/.test(r)&&(s+=20),n.includes(a)&&(s+=15),n.includes(t.toLowerCase())&&(s+=10),r.includes("/node_modules/")&&(s-=1e3),s},U=(e,t,r)=>{let a=j(r).map(t=>v.default.resolve(e,t)).filter(Boolean);return 0===a.length?null:a.sort((e,r)=>{let a=H(r,t)-H(e,t);return 0!==a?a:e.length-r.length})[0]||null},q=async(e,t)=>{for(let r of(e=>{let t=j([$(e),e.split(/[-_\s]+/).filter(Boolean).map(e=>e[0]?e[0].toUpperCase()+e.slice(1):"").join(""),e.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/[\s-]+/g,"_").toLowerCase(),e]),r=[];for(let e of["src/components","components","src"])for(let a of t)for(let t of N)r.push(`${e}/${a}${t}`);return r})(t)){let t=v.default.resolve(e,r);if(await T(t))return t}let r=P(t),a=[];for(let t of r){let r=await S(e,t);if(r.length>0){a=r;break}}return a.length>0?U(e,t,a):null};async function I(e){let t;try{t=await e.json()}catch{return E.NextResponse.json({error:"Invalid request payload"},{status:400})}let r=Array.isArray(t.componentNames)?t.componentNames.map(e=>"string"==typeof e?_(e):"").filter(Boolean):[],a="string"==typeof t.componentName?_(t.componentName):"",n=r.length>0?r:a?[a]:[],s="string"==typeof t.workspaceRoot?t.workspaceRoot.trim():"";if(0===n.length)return E.NextResponse.json({error:"componentName or componentNames is required"},{status:400});if(!s||!v.default.isAbsolute(s))return E.NextResponse.json({error:"workspaceRoot must be an absolute path"},{status:400});try{if(!(await w.default.stat(s)).isDirectory())return E.NextResponse.json({error:"workspaceRoot must be a directory"},{status:400});let e=[];for(let t of n){let r=await q(s,t);if(r)return E.NextResponse.json({sourcePath:r,resolvedName:t});e.push(t)}if(e.length>0){let t=await k(s,e);for(let r of e){let e=t.get(r);if(e&&e.length>0){let t=U(s,r,e);if(t)return E.NextResponse.json({sourcePath:t,resolvedName:r})}}}return E.NextResponse.json({error:"Source file not found"},{status:404})}catch(t){let e=t instanceof Error?t.message:"Failed to resolve component source";return E.NextResponse.json({error:e},{status:500})}}e.s(["POST",()=>I,"runtime",0,"nodejs"],68091);var D=e.i(68091);let F=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/component-source/resolve/route",pathname:"/api/component-source/resolve",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/component-source/resolve/route.ts",nextConfigOutput:"",userland:D}),{workAsyncStorage:M,workUnitAsyncStorage:B,serverHooks:L}=F;function K(){return(0,a.patchFetch)({workAsyncStorage:M,workUnitAsyncStorage:B})}async function z(e,t,a){F.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/component-source/resolve/route";w=w.replace(/\/index$/,"")||"/";let v=await F.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:x,params:y,nextConfig:E,parsedUrl:b,isDraftMode:C,prerenderManifest:N,routerServerContext:A,isOnDemandRevalidate:$,revalidateOnlyGenerated:j,resolvedPathname:_,clientReferenceManifest:P,serverActionsManifest:T}=v,S=(0,l.normalizeAppPath)(w),O=!!(N.dynamicRoutes[S]||N.routes[_]),k=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,b,!1):t.end("This page could not be found"),null);if(O&&!C){let e=!!N.routes[_],t=N.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await k();throw new g.NoFallbackError}}let H=null;!O||F.isDev||C||(H="/index"===(H=_)?"/":H);let U=!0===F.isDev||!O,q=O&&!U;T&&P&&(0,o.setManifestsSingleton)({page:w,clientReferenceManifest:P,serverActionsManifest:T});let I=e.method||"GET",D=(0,s.getTracer)(),M=D.getActiveScopeSpan(),B={params:y,prerenderManifest:N,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>F.onRequestError(e,t,a,n,A)},sharedContext:{buildId:x}},L=new i.NodeNextRequest(e),K=new i.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(L,(0,u.signalFromNodeResponse)(t));try{let o=async e=>F.handle(z,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=D.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${I} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${I} ${w}`)}),l=!!(0,n.getRequestMeta)(e,"minimalMode"),i=async n=>{var s,i;let u=async({previousCacheEntry:r})=>{try{if(!l&&$&&j&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=B.renderOpts.fetchMetrics;let i=B.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let u=B.renderOpts.collectedTags;if(!O)return await (0,p.sendResponse)(L,K,s,B.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(s.headers);u&&(t[m.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,a=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await F.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:$})},!1,A),t}},c=await F.handleResponse({req:e,nextConfig:E,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:$,revalidateOnlyGenerated:j,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:l});if(!O)return null;if((null==c||null==(s=c.value)?void 0:s.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==c||null==(i=c.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",$?"REVALIDATED":c.isMiss?"MISS":c.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let g=(0,f.fromNodeOutgoingHttpHeaders)(c.value.headers);return l&&O||g.delete(m.NEXT_CACHE_TAGS_HEADER),!c.cacheControl||t.getHeader("Cache-Control")||g.get("Cache-Control")||g.set("Cache-Control",(0,h.getCacheControlHeader)(c.cacheControl)),await (0,p.sendResponse)(L,K,new Response(c.value.body,{headers:g,status:c.value.status||200})),null};M?await i(M):await D.withPropagatedContext(e.headers,()=>D.trace(c.BaseServerSpan.handleRequest,{spanName:`${I} ${w}`,kind:s.SpanKind.SERVER,attributes:{"http.method":I,"http.target":e.url}},i))}catch(t){if(t instanceof g.NoFallbackError||await F.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:$})},!1,A),O)throw t;return await (0,p.sendResponse)(L,K,new Response(null,{status:500})),null}}e.s(["handler",()=>z,"patchFetch",()=>K,"routeModule",()=>F,"serverHooks",()=>L,"workAsyncStorage",()=>M,"workUnitAsyncStorage",()=>B],67404)}];
1
+ module.exports=[67404,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),o=e.i(74677),l=e.i(69741),i=e.i(16795),u=e.i(87718),c=e.i(95169),d=e.i(47587),p=e.i(66012),f=e.i(70101),h=e.i(26937),m=e.i(10372),g=e.i(93695);e.i(52474);var w=e.i(220),R=e.i(24868),v=e.i(14747),x=e.i(33405),y=e.i(24361),E=e.i(89171);let b=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),C=e=>Array.from(new Set(e)),N=(0,y.promisify)(x.execFile),A=["!**/node_modules/**","!**/.git/**","!**/.next/**","!**/dist/**","!**/build/**","!**/coverage/**","*.{ts,tsx,js,jsx,mjs,cjs}"],P=[".tsx",".ts",".jsx",".js",".mjs",".cjs"],$=new Set(["node_modules",".git",".next","dist","build","coverage",".turbo",".cache"]),j=e=>{let t=e.trim();if(!t)return"";let r=t.match(/[A-Za-z_$][\w$]*/);return r?r[0]:""},_=e=>{let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return[`\\bexport\\s+(?:default\\s+)?(?:async\\s+)?function\\s+${t}\\b`,`\\b(?:async\\s+)?function\\s+${t}\\b`,`\\b(?:export\\s+)?(?:const|let|var)\\s+${t}\\s*=\\s*(?:async\\s*)?\\([^)]*\\)\\s*=>`,`\\b(?:export\\s+)?(?:const|let|var)\\s+${t}\\s*=\\s*(?:async\\s*)?[A-Za-z_$][\\w$]*\\s*=>`,`\\b(?:export\\s+)?(?:const|let|var)\\s+${t}\\s*=\\s*(?:memo|forwardRef)\\s*\\(`,`\\bexport\\s+default\\s+${t}\\b`,`\\bclass\\s+${t}\\b`]},T=async e=>{try{return(await R.default.stat(e)).isFile()}catch{return!1}},O=async(e,t)=>{try{let{stdout:r}=await N("rg",(e=>{let t=["-l","--no-messages","--pcre2"];for(let e of A)t.push("--glob",e);return t.push(e,"."),t})(t),{cwd:e,maxBuffer:2097152,timeout:2e4});return r.split("\n").map(e=>e.trim()).filter(Boolean)}catch{try{let{stdout:r}=await N("git",["grep","-l","-P",t],{cwd:e,maxBuffer:2097152,timeout:2e4});return r.split("\n").map(e=>e.trim()).filter(Boolean)}catch{return[]}}},S=async e=>{try{let{stdout:t}=await N("git",["ls-files","--cached","--others","--exclude-standard"],{cwd:e,maxBuffer:0xa00000,timeout:1e4}),r=t.split("\n").map(e=>e.trim()).filter(e=>e&&P.some(t=>e.endsWith(t))).map(t=>v.default.join(e,t));if(r.length>0)return r}catch{}let t=[],r=[e];for(;r.length>0&&t.length<1e4;){let e,a=r.shift();if(a){try{e=await R.default.readdir(a,{withFileTypes:!0})}catch{continue}for(let n of e){let e=v.default.join(a,n.name);if(n.isDirectory()){$.has(n.name)||r.push(e);continue}if(n.isFile()&&P.some(e=>n.name.endsWith(e))&&(t.push(e),t.length>=1e4))break}}}return t},k=async(e,t,r)=>{let a=[],n=[];for(let s of e){let o=Promise.resolve().then(()=>r(s));if(a.push(o),t<=e.length){let e=o.then(()=>{n.splice(n.indexOf(e),1)});n.push(e),n.length>=t&&await Promise.race(n)}}await Promise.all(a)},H=async(e,t)=>{let r=await S(e);if(0===r.length)return new Map;let a=new Map;for(let e of t){let t=_(e).map(e=>{try{return RegExp(e,"m")}catch{return null}}).filter(e=>e instanceof RegExp);t.length>0&&a.set(e,t)}let n=new Map;return 0===a.size||await k(r,100,async t=>{try{let r=await R.default.stat(t);if(!r.isFile()||r.size>524288)return;let s=await R.default.readFile(t,"utf-8"),o=v.default.relative(e,t);for(let[e,t]of a.entries())if(t.some(e=>e.test(s))){let t=n.get(e)||[];t.push(o),n.set(e,t)}}catch{}}),n},U=(e,t)=>{let r=e.replace(/\\/g,"/").toLowerCase(),a=b(t),n=v.default.basename(r),s=0;return r.includes("/src/components/")&&(s+=100),r.includes("/components/")&&(s+=80),r.includes("/src/")&&(s+=60),/\.(tsx|jsx)$/.test(r)&&(s+=20),n.includes(a)&&(s+=15),n.includes(t.toLowerCase())&&(s+=10),r.includes("/node_modules/")&&(s-=1e3),s},q=(e,t,r)=>{let a=C(r).map(t=>v.default.resolve(e,t)).filter(Boolean);return 0===a.length?null:a.sort((e,r)=>{let a=U(r,t)-U(e,t);return 0!==a?a:e.length-r.length})[0]||null},I=async(e,t)=>{let r=(e=>{let t=C([b(e),e.split(/[-_\s]+/).filter(Boolean).map(e=>e[0]?e[0].toUpperCase()+e.slice(1):"").join(""),e.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/[\s-]+/g,"_").toLowerCase(),e]),r=[];for(let e of["src/components","components","src"])for(let a of t)for(let t of P)r.push(`${e}/${a}${t}`);return r})(t).map(async t=>{let r=v.default.resolve(e,t);return await T(r)?r:null}),a=(await Promise.all(r)).find(e=>null!==e);if(a)return a;let n=_(t),s=[];for(let t of n){let r=await O(e,t);if(r.length>0){s=r;break}}return s.length>0?q(e,t,s):null};async function D(e){let t;try{t=await e.json()}catch{return E.NextResponse.json({error:"Invalid request payload"},{status:400})}let r=Array.isArray(t.componentNames)?t.componentNames.map(e=>"string"==typeof e?j(e):"").filter(Boolean):[],a="string"==typeof t.componentName?j(t.componentName):"",n=r.length>0?r:a?[a]:[],s="string"==typeof t.workspaceRoot?t.workspaceRoot.trim():"";if(0===n.length)return E.NextResponse.json({error:"componentName or componentNames is required"},{status:400});if(!s||!v.default.isAbsolute(s))return E.NextResponse.json({error:"workspaceRoot must be an absolute path"},{status:400});try{if(!(await R.default.stat(s)).isDirectory())return E.NextResponse.json({error:"workspaceRoot must be a directory"},{status:400});let e=[];for(let t of n){let r=await I(s,t);if(r)return E.NextResponse.json({sourcePath:r,resolvedName:t});e.push(t)}if(e.length>0){let t=await H(s,e);for(let r of e){let e=t.get(r);if(e&&e.length>0){let t=q(s,r,e);if(t)return E.NextResponse.json({sourcePath:t,resolvedName:r})}}}return E.NextResponse.json({error:"Source file not found"},{status:404})}catch(t){let e=t instanceof Error?t.message:"Failed to resolve component source";return E.NextResponse.json({error:e},{status:500})}}e.s(["POST",()=>D,"runtime",0,"nodejs"],68091);var F=e.i(68091);let M=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/component-source/resolve/route",pathname:"/api/component-source/resolve",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/component-source/resolve/route.ts",nextConfigOutput:"",userland:F}),{workAsyncStorage:B,workUnitAsyncStorage:L,serverHooks:K}=M;function z(){return(0,a.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:L})}async function Z(e,t,a){M.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/component-source/resolve/route";R=R.replace(/\/index$/,"")||"/";let v=await M.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:x,params:y,nextConfig:E,parsedUrl:b,isDraftMode:C,prerenderManifest:N,routerServerContext:A,isOnDemandRevalidate:P,revalidateOnlyGenerated:$,resolvedPathname:j,clientReferenceManifest:_,serverActionsManifest:T}=v,O=(0,l.normalizeAppPath)(R),S=!!(N.dynamicRoutes[O]||N.routes[j]),k=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,b,!1):t.end("This page could not be found"),null);if(S&&!C){let e=!!N.routes[j],t=N.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await k();throw new g.NoFallbackError}}let H=null;!S||M.isDev||C||(H="/index"===(H=j)?"/":H);let U=!0===M.isDev||!S,q=S&&!U;T&&_&&(0,o.setManifestsSingleton)({page:R,clientReferenceManifest:_,serverActionsManifest:T});let I=e.method||"GET",D=(0,s.getTracer)(),F=D.getActiveScopeSpan(),B={params:y,prerenderManifest:N,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>M.onRequestError(e,t,a,n,A)},sharedContext:{buildId:x}},L=new i.NodeNextRequest(e),K=new i.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(L,(0,u.signalFromNodeResponse)(t));try{let o=async e=>M.handle(z,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=D.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${I} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${I} ${R}`)}),l=!!(0,n.getRequestMeta)(e,"minimalMode"),i=async n=>{var s,i;let u=async({previousCacheEntry:r})=>{try{if(!l&&P&&$&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=B.renderOpts.fetchMetrics;let i=B.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let u=B.renderOpts.collectedTags;if(!S)return await (0,p.sendResponse)(L,K,s,B.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(s.headers);u&&(t[m.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,a=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await M.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,A),t}},c=await M.handleResponse({req:e,nextConfig:E,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:$,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:l});if(!S)return null;if((null==c||null==(s=c.value)?void 0:s.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==c||null==(i=c.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",P?"REVALIDATED":c.isMiss?"MISS":c.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let g=(0,f.fromNodeOutgoingHttpHeaders)(c.value.headers);return l&&S||g.delete(m.NEXT_CACHE_TAGS_HEADER),!c.cacheControl||t.getHeader("Cache-Control")||g.get("Cache-Control")||g.set("Cache-Control",(0,h.getCacheControlHeader)(c.cacheControl)),await (0,p.sendResponse)(L,K,new Response(c.value.body,{headers:g,status:c.value.status||200})),null};F?await i(F):await D.withPropagatedContext(e.headers,()=>D.trace(c.BaseServerSpan.handleRequest,{spanName:`${I} ${R}`,kind:s.SpanKind.SERVER,attributes:{"http.method":I,"http.target":e.url}},i))}catch(t){if(t instanceof g.NoFallbackError||await M.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,A),S)throw t;return await (0,p.sendResponse)(L,K,new Response(null,{status:500})),null}}e.s(["handler",()=>Z,"patchFetch",()=>z,"routeModule",()=>M,"serverHooks",()=>K,"workAsyncStorage",()=>B,"workUnitAsyncStorage",()=>L],67404)}];
2
2
 
3
3
  //# sourceMappingURL=node_modules_next_dist_esm_build_templates_app-route_14850b56.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/app/api/component-source/resolve/route.ts","../../../node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import fs from 'fs/promises';\nimport path from 'path';\nimport { execFile } from 'child_process';\nimport { promisify } from 'util';\nimport { NextRequest, NextResponse } from 'next/server';\n\nexport const runtime = 'nodejs';\n\nconst execFileAsync = promisify(execFile);\n\ntype ResolveComponentSourceRequestBody = {\n componentName?: string;\n componentNames?: string[];\n workspaceRoot?: string;\n};\n\nconst SEARCH_GLOBS = [\n '!**/node_modules/**',\n '!**/.git/**',\n '!**/.next/**',\n '!**/dist/**',\n '!**/build/**',\n '!**/coverage/**',\n '*.{ts,tsx,js,jsx,mjs,cjs}',\n];\nconst SOURCE_EXTENSIONS = ['.tsx', '.ts', '.jsx', '.js', '.mjs', '.cjs'] as const;\nconst IGNORED_DIR_NAMES = new Set([\n 'node_modules',\n '.git',\n '.next',\n 'dist',\n 'build',\n 'coverage',\n '.turbo',\n '.cache',\n]);\nconst MAX_WALKED_FILES = 10000;\nconst MAX_FILE_BYTES = 512 * 1024;\n\nconst escapeRegex = (value: string): string => value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\nconst toKebabCase = (value: string): string =>\n value\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/[\\s_]+/g, '-')\n .toLowerCase();\n\nconst unique = (items: string[]): string[] => Array.from(new Set(items));\n\nconst normalizeComponentLookupName = (value: string): string => {\n const trimmed = value.trim();\n if (!trimmed) return '';\n\n const match = trimmed.match(/[A-Za-z_$][\\w$]*/);\n return match ? match[0] : '';\n};\n\nconst toPascalCase = (value: string): string =>\n value\n .split(/[-_\\s]+/)\n .filter(Boolean)\n .map((segment) => segment[0] ? segment[0].toUpperCase() + segment.slice(1) : '')\n .join('');\n\nconst buildSearchPatterns = (componentName: string): string[] => {\n const escaped = escapeRegex(componentName);\n\n return [\n `\\\\bexport\\\\s+(?:default\\\\s+)?(?:async\\\\s+)?function\\\\s+${escaped}\\\\b`,\n `\\\\b(?:async\\\\s+)?function\\\\s+${escaped}\\\\b`,\n `\\\\b(?:export\\\\s+)?(?:const|let|var)\\\\s+${escaped}\\\\s*=\\\\s*(?:async\\\\s*)?\\\\([^)]*\\\\)\\\\s*=>`,\n `\\\\b(?:export\\\\s+)?(?:const|let|var)\\\\s+${escaped}\\\\s*=\\\\s*(?:async\\\\s*)?[A-Za-z_$][\\\\w$]*\\\\s*=>`,\n `\\\\b(?:export\\\\s+)?(?:const|let|var)\\\\s+${escaped}\\\\s*=\\\\s*(?:memo|forwardRef)\\\\s*\\\\(`,\n `\\\\bexport\\\\s+default\\\\s+${escaped}\\\\b`,\n `\\\\bclass\\\\s+${escaped}\\\\b`,\n ];\n};\n\nconst buildRgArgs = (pattern: string): string[] => {\n const args = [\n '-l',\n '--no-messages',\n '--pcre2',\n ];\n\n for (const glob of SEARCH_GLOBS) {\n args.push('--glob', glob);\n }\n\n args.push(pattern, '.');\n return args;\n};\n\nconst buildDirectCandidates = (componentName: string): string[] => {\n const kebab = toKebabCase(componentName);\n const pascal = toPascalCase(componentName);\n const snake = componentName\n .replace(/([a-z0-9])([A-Z])/g, '$1_$2')\n .replace(/[\\s-]+/g, '_')\n .toLowerCase();\n\n const baseDirs = [\n 'src/components',\n 'components',\n 'src',\n ];\n const baseNames = unique([kebab, pascal, snake, componentName]);\n const candidates: string[] = [];\n\n for (const dir of baseDirs) {\n for (const base of baseNames) {\n for (const ext of SOURCE_EXTENSIONS) {\n candidates.push(`${dir}/${base}${ext}`);\n }\n }\n }\n\n return candidates;\n};\n\nconst fileExists = async (absolutePath: string): Promise<boolean> => {\n try {\n const stat = await fs.stat(absolutePath);\n return stat.isFile();\n } catch {\n return false;\n }\n};\n\nconst runPatternSearch = async (workspaceRoot: string, pattern: string): Promise<string[]> => {\n try {\n const { stdout } = await execFileAsync('rg', buildRgArgs(pattern), {\n cwd: workspaceRoot,\n maxBuffer: 2 * 1024 * 1024,\n timeout: 20000,\n });\n\n return stdout\n .split('\\n')\n .map((line) => line.trim())\n .filter(Boolean);\n } catch {\n try {\n const { stdout } = await execFileAsync('git', ['grep', '-l', '-P', pattern], {\n cwd: workspaceRoot,\n maxBuffer: 2 * 1024 * 1024,\n timeout: 20000,\n });\n\n return stdout\n .split('\\n')\n .map((line) => line.trim())\n .filter(Boolean);\n } catch {\n return [];\n }\n }\n};\n\nconst walkSourceFiles = async (workspaceRoot: string): Promise<string[]> => {\n try {\n const { stdout } = await execFileAsync('git', ['ls-files', '--cached', '--others', '--exclude-standard'], {\n cwd: workspaceRoot,\n maxBuffer: 10 * 1024 * 1024,\n timeout: 10000,\n });\n \n const gitFiles = stdout\n .split('\\n')\n .map((line) => line.trim())\n .filter((line) => line && SOURCE_EXTENSIONS.some((ext) => line.endsWith(ext)))\n .map((line) => path.join(workspaceRoot, line));\n \n if (gitFiles.length > 0) {\n return gitFiles;\n }\n } catch {\n // Ignore git error and fallback to manual walk\n }\n\n const files: string[] = [];\n const queue: string[] = [workspaceRoot];\n\n while (queue.length > 0 && files.length < MAX_WALKED_FILES) {\n const currentDir = queue.shift();\n if (!currentDir) continue;\n\n let entries: Array<{ isDirectory: () => boolean; isFile: () => boolean; name: string }>;\n try {\n entries = await fs.readdir(currentDir, { withFileTypes: true });\n } catch {\n continue;\n }\n\n for (const entry of entries) {\n const fullPath = path.join(currentDir, entry.name);\n if (entry.isDirectory()) {\n if (!IGNORED_DIR_NAMES.has(entry.name)) {\n queue.push(fullPath);\n }\n continue;\n }\n\n if (!entry.isFile()) continue;\n if (!SOURCE_EXTENSIONS.some((ext) => entry.name.endsWith(ext))) continue;\n\n files.push(fullPath);\n if (files.length >= MAX_WALKED_FILES) break;\n }\n }\n\n return files;\n};\n\nconst searchByScanningFilesForNames = async (workspaceRoot: string, componentNames: string[]): Promise<Map<string, string[]>> => {\n const files = await walkSourceFiles(workspaceRoot);\n if (files.length === 0) return new Map();\n\n const nameToRegexes = new Map<string, RegExp[]>();\n for (const name of componentNames) {\n const regexes = buildSearchPatterns(name).map((pattern) => {\n try {\n return new RegExp(pattern, 'm');\n } catch {\n return null;\n }\n }).filter((entry): entry is RegExp => entry instanceof RegExp);\n if (regexes.length > 0) {\n nameToRegexes.set(name, regexes);\n }\n }\n\n const results = new Map<string, string[]>();\n if (nameToRegexes.size === 0) return results;\n\n const BATCH_SIZE = 100;\n for (let i = 0; i < files.length; i += BATCH_SIZE) {\n const batch = files.slice(i, i + BATCH_SIZE);\n await Promise.all(\n batch.map(async (absolutePath) => {\n try {\n const stat = await fs.stat(absolutePath);\n if (!stat.isFile() || stat.size > MAX_FILE_BYTES) return;\n const content = await fs.readFile(absolutePath, 'utf-8');\n \n const relativePath = path.relative(workspaceRoot, absolutePath);\n \n for (const [name, regexes] of nameToRegexes.entries()) {\n if (regexes.some((regex) => regex.test(content))) {\n const currentMatches = results.get(name) || [];\n currentMatches.push(relativePath);\n results.set(name, currentMatches);\n }\n }\n } catch {\n // Ignore unreadable files\n }\n })\n );\n }\n\n return results;\n};\n\nconst scoreCandidate = (candidatePath: string, componentName: string): number => {\n const normalized = candidatePath.replace(/\\\\/g, '/').toLowerCase();\n const kebabName = toKebabCase(componentName);\n const fileName = path.basename(normalized);\n\n let score = 0;\n if (normalized.includes('/src/components/')) score += 100;\n if (normalized.includes('/components/')) score += 80;\n if (normalized.includes('/src/')) score += 60;\n if (/\\.(tsx|jsx)$/.test(normalized)) score += 20;\n if (fileName.includes(kebabName)) score += 15;\n if (fileName.includes(componentName.toLowerCase())) score += 10;\n if (normalized.includes('/node_modules/')) score -= 1000;\n\n return score;\n};\n\nconst pickBestCandidate = (workspaceRoot: string, componentName: string, relativePaths: string[]): string | null => {\n const absoluteCandidates = unique(relativePaths)\n .map((relativePath) => path.resolve(workspaceRoot, relativePath))\n .filter(Boolean);\n\n if (absoluteCandidates.length === 0) return null;\n\n const sorted = absoluteCandidates.sort((a, b) => {\n const scoreDiff = scoreCandidate(b, componentName) - scoreCandidate(a, componentName);\n if (scoreDiff !== 0) return scoreDiff;\n return a.length - b.length;\n });\n\n return sorted[0] || null;\n};\n\nconst resolveSourcePathByComponentNameFast = async (\n workspaceRoot: string,\n componentName: string\n): Promise<string | null> => {\n const directCandidates = buildDirectCandidates(componentName);\n for (const candidate of directCandidates) {\n const absolute = path.resolve(workspaceRoot, candidate);\n if (await fileExists(absolute)) {\n return absolute;\n }\n }\n\n const patterns = buildSearchPatterns(componentName);\n let candidates: string[] = [];\n\n for (const pattern of patterns) {\n const matches = await runPatternSearch(workspaceRoot, pattern);\n if (matches.length > 0) {\n candidates = matches;\n break;\n }\n }\n\n if (candidates.length > 0) {\n return pickBestCandidate(workspaceRoot, componentName, candidates);\n }\n\n return null;\n};\n\nexport async function POST(request: NextRequest) {\n let body: ResolveComponentSourceRequestBody;\n\n try {\n body = await request.json();\n } catch {\n return NextResponse.json({ error: 'Invalid request payload' }, { status: 400 });\n }\n\n const componentNames = Array.isArray(body.componentNames)\n ? body.componentNames.map((n) => typeof n === 'string' ? normalizeComponentLookupName(n) : '').filter(Boolean)\n : [];\n\n const componentName = typeof body.componentName === 'string'\n ? normalizeComponentLookupName(body.componentName)\n : '';\n\n const namesToResolve = componentNames.length > 0 ? componentNames : (componentName ? [componentName] : []);\n const workspaceRoot = typeof body.workspaceRoot === 'string' ? body.workspaceRoot.trim() : '';\n\n if (namesToResolve.length === 0) {\n return NextResponse.json({ error: 'componentName or componentNames is required' }, { status: 400 });\n }\n\n if (!workspaceRoot || !path.isAbsolute(workspaceRoot)) {\n return NextResponse.json({ error: 'workspaceRoot must be an absolute path' }, { status: 400 });\n }\n\n try {\n const stat = await fs.stat(workspaceRoot);\n if (!stat.isDirectory()) {\n return NextResponse.json({ error: 'workspaceRoot must be a directory' }, { status: 400 });\n }\n\n // Step 1: Try fast resolution (direct candidates + ripgrep) for all names sequentially\n const unresolvedNames: string[] = [];\n for (const name of namesToResolve) {\n const sourcePath = await resolveSourcePathByComponentNameFast(workspaceRoot, name);\n if (sourcePath) {\n return NextResponse.json({ sourcePath, resolvedName: name });\n }\n unresolvedNames.push(name);\n }\n\n // Step 2: If we reach here, neither direct matches nor ripgrep found anything for any of the names.\n // We do ONE filesystem scan for ALL unresolved names.\n if (unresolvedNames.length > 0) {\n const scanResults = await searchByScanningFilesForNames(workspaceRoot, unresolvedNames);\n \n // We process them in order of namesToResolve to keep the precedence\n for (const name of unresolvedNames) {\n const candidates = scanResults.get(name);\n if (candidates && candidates.length > 0) {\n const best = pickBestCandidate(workspaceRoot, name, candidates);\n if (best) {\n return NextResponse.json({ sourcePath: best, resolvedName: name });\n }\n }\n }\n }\n\n return NextResponse.json({ error: 'Source file not found' }, { status: 404 });\n } catch (error) {\n const message = error instanceof Error ? error.message : 'Failed to resolve component source';\n return NextResponse.json({ error: message }, { 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 { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\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/component-source/resolve/route\",\n pathname: \"/api/component-source/resolve\",\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]/src/app/api/component-source/resolve/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 if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/component-source/resolve/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, parsedUrl, 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 const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n 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 if (nextConfig.experimental.adapterPath) {\n return await render404();\n }\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 setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\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 authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, 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 isMinimalMode = Boolean(process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode'));\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && 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 const silenceLog = false;\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 }, silenceLog, 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 isMinimalMode\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 (!isMinimalMode) {\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 (!(isMinimalMode && 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 const silenceLog = false;\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 }, silenceLog, routerServerContext);\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":"uCCAA,IAAA,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,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,CAAA,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA,CAAA,KDhBA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAA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AK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,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
+ {"version":3,"sources":["../../../src/app/api/component-source/resolve/route.ts","../../../node_modules/next/dist/esm/build/templates/app-route.js","../../../src/lib/string-utils.ts"],"sourcesContent":["import fs from 'fs/promises';\nimport path from 'path';\nimport { execFile } from 'child_process';\nimport { promisify } from 'util';\nimport { NextRequest, NextResponse } from 'next/server';\nimport { escapeRegex, toKebabCase, toPascalCase, uniqueStrings } from '@/lib/string-utils';\n\nexport const runtime = 'nodejs';\n\nconst execFileAsync = promisify(execFile);\n\ntype ResolveComponentSourceRequestBody = {\n componentName?: string;\n componentNames?: string[];\n workspaceRoot?: string;\n};\n\nconst SEARCH_GLOBS = [\n '!**/node_modules/**',\n '!**/.git/**',\n '!**/.next/**',\n '!**/dist/**',\n '!**/build/**',\n '!**/coverage/**',\n '*.{ts,tsx,js,jsx,mjs,cjs}',\n];\nconst SOURCE_EXTENSIONS = ['.tsx', '.ts', '.jsx', '.js', '.mjs', '.cjs'] as const;\nconst IGNORED_DIR_NAMES = new Set([\n 'node_modules',\n '.git',\n '.next',\n 'dist',\n 'build',\n 'coverage',\n '.turbo',\n '.cache',\n]);\nconst MAX_WALKED_FILES = 10000;\nconst MAX_FILE_BYTES = 512 * 1024;\n\nconst normalizeComponentLookupName = (value: string): string => {\n const trimmed = value.trim();\n if (!trimmed) return '';\n\n const match = trimmed.match(/[A-Za-z_$][\\w$]*/);\n return match ? match[0] : '';\n};\n\nconst buildSearchPatterns = (componentName: string): string[] => {\n const escaped = escapeRegex(componentName);\n\n return [\n `\\\\bexport\\\\s+(?:default\\\\s+)?(?:async\\\\s+)?function\\\\s+${escaped}\\\\b`,\n `\\\\b(?:async\\\\s+)?function\\\\s+${escaped}\\\\b`,\n `\\\\b(?:export\\\\s+)?(?:const|let|var)\\\\s+${escaped}\\\\s*=\\\\s*(?:async\\\\s*)?\\\\([^)]*\\\\)\\\\s*=>`,\n `\\\\b(?:export\\\\s+)?(?:const|let|var)\\\\s+${escaped}\\\\s*=\\\\s*(?:async\\\\s*)?[A-Za-z_$][\\\\w$]*\\\\s*=>`,\n `\\\\b(?:export\\\\s+)?(?:const|let|var)\\\\s+${escaped}\\\\s*=\\\\s*(?:memo|forwardRef)\\\\s*\\\\(`,\n `\\\\bexport\\\\s+default\\\\s+${escaped}\\\\b`,\n `\\\\bclass\\\\s+${escaped}\\\\b`,\n ];\n};\n\nconst buildRgArgs = (pattern: string): string[] => {\n const args = [\n '-l',\n '--no-messages',\n '--pcre2',\n ];\n\n for (const glob of SEARCH_GLOBS) {\n args.push('--glob', glob);\n }\n\n args.push(pattern, '.');\n return args;\n};\n\nconst buildDirectCandidates = (componentName: string): string[] => {\n const kebab = toKebabCase(componentName);\n const pascal = toPascalCase(componentName);\n const snake = componentName\n .replace(/([a-z0-9])([A-Z])/g, '$1_$2')\n .replace(/[\\s-]+/g, '_')\n .toLowerCase();\n\n const baseDirs = [\n 'src/components',\n 'components',\n 'src',\n ];\n const baseNames = uniqueStrings([kebab, pascal, snake, componentName]);\n const candidates: string[] = [];\n\n for (const dir of baseDirs) {\n for (const base of baseNames) {\n for (const ext of SOURCE_EXTENSIONS) {\n candidates.push(`${dir}/${base}${ext}`);\n }\n }\n }\n\n return candidates;\n};\n\nconst fileExists = async (absolutePath: string): Promise<boolean> => {\n try {\n const stat = await fs.stat(absolutePath);\n return stat.isFile();\n } catch {\n return false;\n }\n};\n\nconst runPatternSearch = async (workspaceRoot: string, pattern: string): Promise<string[]> => {\n try {\n const { stdout } = await execFileAsync('rg', buildRgArgs(pattern), {\n cwd: workspaceRoot,\n maxBuffer: 2 * 1024 * 1024,\n timeout: 20000,\n });\n\n return stdout\n .split('\\n')\n .map((line) => line.trim())\n .filter(Boolean);\n } catch {\n try {\n const { stdout } = await execFileAsync('git', ['grep', '-l', '-P', pattern], {\n cwd: workspaceRoot,\n maxBuffer: 2 * 1024 * 1024,\n timeout: 20000,\n });\n\n return stdout\n .split('\\n')\n .map((line) => line.trim())\n .filter(Boolean);\n } catch {\n return [];\n }\n }\n};\n\nconst walkSourceFiles = async (workspaceRoot: string): Promise<string[]> => {\n try {\n const { stdout } = await execFileAsync('git', ['ls-files', '--cached', '--others', '--exclude-standard'], {\n cwd: workspaceRoot,\n maxBuffer: 10 * 1024 * 1024,\n timeout: 10000,\n });\n \n const gitFiles = stdout\n .split('\\n')\n .map((line) => line.trim())\n .filter((line) => line && SOURCE_EXTENSIONS.some((ext) => line.endsWith(ext)))\n .map((line) => path.join(workspaceRoot, line));\n \n if (gitFiles.length > 0) {\n return gitFiles;\n }\n } catch {\n // Ignore git error and fallback to manual walk\n }\n\n const files: string[] = [];\n const queue: string[] = [workspaceRoot];\n\n while (queue.length > 0 && files.length < MAX_WALKED_FILES) {\n const currentDir = queue.shift();\n if (!currentDir) continue;\n\n let entries: Array<{ isDirectory: () => boolean; isFile: () => boolean; name: string }>;\n try {\n entries = await fs.readdir(currentDir, { withFileTypes: true });\n } catch {\n continue;\n }\n\n for (const entry of entries) {\n const fullPath = path.join(currentDir, entry.name);\n if (entry.isDirectory()) {\n if (!IGNORED_DIR_NAMES.has(entry.name)) {\n queue.push(fullPath);\n }\n continue;\n }\n\n if (!entry.isFile()) continue;\n if (!SOURCE_EXTENSIONS.some((ext) => entry.name.endsWith(ext))) continue;\n\n files.push(fullPath);\n if (files.length >= MAX_WALKED_FILES) break;\n }\n }\n\n return files;\n};\n\nconst runWithConcurrency = async <T>(\n items: T[],\n limit: number,\n fn: (item: T) => Promise<void>\n): Promise<void> => {\n const ret: Promise<void>[] = [];\n const executing: Promise<void>[] = [];\n\n for (const item of items) {\n const p = Promise.resolve().then(() => fn(item));\n ret.push(p);\n\n if (limit <= items.length) {\n const e: Promise<void> = p.then(() => {\n executing.splice(executing.indexOf(e), 1);\n });\n executing.push(e);\n if (executing.length >= limit) {\n await Promise.race(executing);\n }\n }\n }\n\n await Promise.all(ret);\n};\n\nconst searchByScanningFilesForNames = async (workspaceRoot: string, componentNames: string[]): Promise<Map<string, string[]>> => {\n const files = await walkSourceFiles(workspaceRoot);\n if (files.length === 0) return new Map();\n\n const nameToRegexes = new Map<string, RegExp[]>();\n for (const name of componentNames) {\n const regexes = buildSearchPatterns(name).map((pattern) => {\n try {\n return new RegExp(pattern, 'm');\n } catch {\n return null;\n }\n }).filter((entry): entry is RegExp => entry instanceof RegExp);\n if (regexes.length > 0) {\n nameToRegexes.set(name, regexes);\n }\n }\n\n const results = new Map<string, string[]>();\n if (nameToRegexes.size === 0) return results;\n\n const CONCURRENCY_LIMIT = 100;\n await runWithConcurrency(files, CONCURRENCY_LIMIT, async (absolutePath) => {\n try {\n const stat = await fs.stat(absolutePath);\n if (!stat.isFile() || stat.size > MAX_FILE_BYTES) return;\n const content = await fs.readFile(absolutePath, 'utf-8');\n\n const relativePath = path.relative(workspaceRoot, absolutePath);\n\n for (const [name, regexes] of nameToRegexes.entries()) {\n if (regexes.some((regex) => regex.test(content))) {\n const currentMatches = results.get(name) || [];\n currentMatches.push(relativePath);\n results.set(name, currentMatches);\n }\n }\n } catch {\n // Ignore unreadable files\n }\n });\n\n return results;\n};\n\nconst scoreCandidate = (candidatePath: string, componentName: string): number => {\n const normalized = candidatePath.replace(/\\\\/g, '/').toLowerCase();\n const kebabName = toKebabCase(componentName);\n const fileName = path.basename(normalized);\n\n let score = 0;\n if (normalized.includes('/src/components/')) score += 100;\n if (normalized.includes('/components/')) score += 80;\n if (normalized.includes('/src/')) score += 60;\n if (/\\.(tsx|jsx)$/.test(normalized)) score += 20;\n if (fileName.includes(kebabName)) score += 15;\n if (fileName.includes(componentName.toLowerCase())) score += 10;\n if (normalized.includes('/node_modules/')) score -= 1000;\n\n return score;\n};\n\nconst pickBestCandidate = (workspaceRoot: string, componentName: string, relativePaths: string[]): string | null => {\n const absoluteCandidates = uniqueStrings(relativePaths)\n .map((relativePath) => path.resolve(workspaceRoot, relativePath))\n .filter(Boolean);\n\n if (absoluteCandidates.length === 0) return null;\n\n const sorted = absoluteCandidates.sort((a, b) => {\n const scoreDiff = scoreCandidate(b, componentName) - scoreCandidate(a, componentName);\n if (scoreDiff !== 0) return scoreDiff;\n return a.length - b.length;\n });\n\n return sorted[0] || null;\n};\n\nconst resolveSourcePathByComponentNameFast = async (\n workspaceRoot: string,\n componentName: string\n): Promise<string | null> => {\n const directCandidates = buildDirectCandidates(componentName);\n\n const checks = directCandidates.map(async (candidate) => {\n const absolute = path.resolve(workspaceRoot, candidate);\n const exists = await fileExists(absolute);\n return exists ? absolute : null;\n });\n\n const results = await Promise.all(checks);\n const firstMatch = results.find((result) => result !== null);\n\n if (firstMatch) {\n return firstMatch;\n }\n\n const patterns = buildSearchPatterns(componentName);\n let candidates: string[] = [];\n\n for (const pattern of patterns) {\n const matches = await runPatternSearch(workspaceRoot, pattern);\n if (matches.length > 0) {\n candidates = matches;\n break;\n }\n }\n\n if (candidates.length > 0) {\n return pickBestCandidate(workspaceRoot, componentName, candidates);\n }\n\n return null;\n};\n\nexport async function POST(request: NextRequest) {\n let body: ResolveComponentSourceRequestBody;\n\n try {\n body = await request.json();\n } catch {\n return NextResponse.json({ error: 'Invalid request payload' }, { status: 400 });\n }\n\n const componentNames = Array.isArray(body.componentNames)\n ? body.componentNames.map((n) => typeof n === 'string' ? normalizeComponentLookupName(n) : '').filter(Boolean)\n : [];\n\n const componentName = typeof body.componentName === 'string'\n ? normalizeComponentLookupName(body.componentName)\n : '';\n\n const namesToResolve = componentNames.length > 0 ? componentNames : (componentName ? [componentName] : []);\n const workspaceRoot = typeof body.workspaceRoot === 'string' ? body.workspaceRoot.trim() : '';\n\n if (namesToResolve.length === 0) {\n return NextResponse.json({ error: 'componentName or componentNames is required' }, { status: 400 });\n }\n\n if (!workspaceRoot || !path.isAbsolute(workspaceRoot)) {\n return NextResponse.json({ error: 'workspaceRoot must be an absolute path' }, { status: 400 });\n }\n\n try {\n const stat = await fs.stat(workspaceRoot);\n if (!stat.isDirectory()) {\n return NextResponse.json({ error: 'workspaceRoot must be a directory' }, { status: 400 });\n }\n\n // Step 1: Try fast resolution (direct candidates + ripgrep) for all names sequentially\n const unresolvedNames: string[] = [];\n for (const name of namesToResolve) {\n const sourcePath = await resolveSourcePathByComponentNameFast(workspaceRoot, name);\n if (sourcePath) {\n return NextResponse.json({ sourcePath, resolvedName: name });\n }\n unresolvedNames.push(name);\n }\n\n // Step 2: If we reach here, neither direct matches nor ripgrep found anything for any of the names.\n // We do ONE filesystem scan for ALL unresolved names.\n if (unresolvedNames.length > 0) {\n const scanResults = await searchByScanningFilesForNames(workspaceRoot, unresolvedNames);\n \n // We process them in order of namesToResolve to keep the precedence\n for (const name of unresolvedNames) {\n const candidates = scanResults.get(name);\n if (candidates && candidates.length > 0) {\n const best = pickBestCandidate(workspaceRoot, name, candidates);\n if (best) {\n return NextResponse.json({ sourcePath: best, resolvedName: name });\n }\n }\n }\n }\n\n return NextResponse.json({ error: 'Source file not found' }, { status: 404 });\n } catch (error) {\n const message = error instanceof Error ? error.message : 'Failed to resolve component source';\n return NextResponse.json({ error: message }, { 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 { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\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/component-source/resolve/route\",\n pathname: \"/api/component-source/resolve\",\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]/src/app/api/component-source/resolve/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 if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/component-source/resolve/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, parsedUrl, 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 const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n 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 if (nextConfig.experimental.adapterPath) {\n return await render404();\n }\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 setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\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 authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, 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 isMinimalMode = Boolean(process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode'));\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && 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 const silenceLog = false;\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 }, silenceLog, 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 isMinimalMode\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 (!isMinimalMode) {\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 (!(isMinimalMode && 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 const silenceLog = false;\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 }, silenceLog, routerServerContext);\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","export const escapeRegex = (value: string): string => value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\nexport const toKebabCase = (value: string): string =>\n value\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/[\\s_]+/g, '-')\n .toLowerCase();\n\nexport const toPascalCase = (value: string): string =>\n value\n .split(/[-_\\s]+/)\n .filter(Boolean)\n .map((segment) => (segment[0] ? segment[0].toUpperCase() + segment.slice(1) : ''))\n .join('');\n\nexport const uniqueStrings = (items: string[]): string[] => Array.from(new Set(items));\n"],"names":[],"mappings":"uCCAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,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