@sapienx/agentos 0.1.8 → 0.1.9

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 (527) hide show
  1. package/bundle/.next/BUILD_ID +1 -1
  2. package/bundle/.next/app-path-routes-manifest.json +14 -12
  3. package/bundle/.next/build-manifest.json +6 -6
  4. package/bundle/.next/prerender-manifest.json +3 -3
  5. package/bundle/.next/required-server-files.json +18 -6
  6. package/bundle/.next/routes-manifest.json +17 -0
  7. package/bundle/.next/server/app/_global-error/page.js +32 -3
  8. package/bundle/.next/server/app/_global-error/page.js.nft.json +1 -1
  9. package/bundle/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/bundle/.next/server/app/_global-error.html +1 -2
  11. package/bundle/.next/server/app/_global-error.rsc +15 -11
  12. package/bundle/.next/server/app/_global-error.segments/_full.segment.rsc +15 -11
  13. package/bundle/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +2 -2
  14. package/bundle/.next/server/app/_global-error.segments/_global-error.segment.rsc +4 -3
  15. package/bundle/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
  16. package/bundle/.next/server/app/_global-error.segments/_index.segment.rsc +4 -3
  17. package/bundle/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/bundle/.next/server/app/_not-found/page.js +2 -2
  19. package/bundle/.next/server/app/_not-found/page.js.nft.json +1 -1
  20. package/bundle/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  21. package/bundle/.next/server/app/_not-found.html +1 -1
  22. package/bundle/.next/server/app/_not-found.rsc +14 -12
  23. package/bundle/.next/server/app/_not-found.segments/_full.segment.rsc +14 -12
  24. package/bundle/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  25. package/bundle/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
  26. package/bundle/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  27. package/bundle/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -3
  28. package/bundle/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  29. package/bundle/.next/server/app/api/agents/route.js +1 -1
  30. package/bundle/.next/server/app/api/agents/route.js.nft.json +1 -1
  31. package/bundle/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
  32. package/bundle/.next/server/app/api/diagnostics/route.js +1 -1
  33. package/bundle/.next/server/app/api/diagnostics/route.js.nft.json +1 -1
  34. package/bundle/.next/server/app/api/diagnostics/route_client-reference-manifest.js +1 -1
  35. package/bundle/.next/server/app/api/files/reveal/route.js +1 -1
  36. package/bundle/.next/server/app/api/files/reveal/route.js.nft.json +1 -1
  37. package/bundle/.next/server/app/api/files/reveal/route_client-reference-manifest.js +1 -1
  38. package/bundle/.next/server/app/api/gateway/control/route.js +1 -1
  39. package/bundle/.next/server/app/api/gateway/control/route.js.nft.json +1 -1
  40. package/bundle/.next/server/app/api/gateway/control/route_client-reference-manifest.js +1 -1
  41. package/bundle/.next/server/app/api/mission/route.js +1 -1
  42. package/bundle/.next/server/app/api/mission/route.js.nft.json +1 -1
  43. package/bundle/.next/server/app/api/mission/route_client-reference-manifest.js +1 -1
  44. package/bundle/.next/server/app/api/models/providers/route.js +2 -2
  45. package/bundle/.next/server/app/api/models/providers/route.js.nft.json +1 -1
  46. package/bundle/.next/server/app/api/models/providers/route_client-reference-manifest.js +1 -1
  47. package/bundle/.next/server/app/api/onboarding/models/route.js +2 -2
  48. package/bundle/.next/server/app/api/onboarding/models/route.js.nft.json +1 -1
  49. package/bundle/.next/server/app/api/onboarding/models/route_client-reference-manifest.js +1 -1
  50. package/bundle/.next/server/app/api/onboarding/route.js +2 -2
  51. package/bundle/.next/server/app/api/onboarding/route.js.nft.json +1 -1
  52. package/bundle/.next/server/app/api/onboarding/route_client-reference-manifest.js +1 -1
  53. package/bundle/.next/server/app/api/planner/[planId]/deploy/route.js +2 -2
  54. package/bundle/.next/server/app/api/planner/[planId]/deploy/route.js.nft.json +1 -1
  55. package/bundle/.next/server/app/api/planner/[planId]/deploy/route_client-reference-manifest.js +1 -1
  56. package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route.js +1 -0
  57. package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route.js.nft.json +1 -0
  58. package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route_client-reference-manifest.js +1 -0
  59. package/bundle/.next/server/app/api/planner/[planId]/route.js +1 -1
  60. package/bundle/.next/server/app/api/planner/[planId]/route.js.nft.json +1 -1
  61. package/bundle/.next/server/app/api/planner/[planId]/route_client-reference-manifest.js +1 -1
  62. package/bundle/.next/server/app/api/planner/[planId]/simulate/route.js +1 -1
  63. package/bundle/.next/server/app/api/planner/[planId]/simulate/route.js.nft.json +1 -1
  64. package/bundle/.next/server/app/api/planner/[planId]/simulate/route_client-reference-manifest.js +1 -1
  65. package/bundle/.next/server/app/api/planner/[planId]/turn/route.js +1 -1
  66. package/bundle/.next/server/app/api/planner/[planId]/turn/route.js.nft.json +1 -1
  67. package/bundle/.next/server/app/api/planner/[planId]/turn/route_client-reference-manifest.js +1 -1
  68. package/bundle/.next/server/app/api/planner/route.js +1 -1
  69. package/bundle/.next/server/app/api/planner/route.js.nft.json +1 -1
  70. package/bundle/.next/server/app/api/planner/route_client-reference-manifest.js +1 -1
  71. package/bundle/.next/server/app/api/reset/route.js +2 -2
  72. package/bundle/.next/server/app/api/reset/route.js.nft.json +1 -1
  73. package/bundle/.next/server/app/api/reset/route_client-reference-manifest.js +1 -1
  74. package/bundle/.next/server/app/api/runtimes/[runtimeId]/route.js +1 -1
  75. package/bundle/.next/server/app/api/runtimes/[runtimeId]/route.js.nft.json +1 -1
  76. package/bundle/.next/server/app/api/runtimes/[runtimeId]/route_client-reference-manifest.js +1 -1
  77. package/bundle/.next/server/app/api/settings/gateway/route.js +1 -1
  78. package/bundle/.next/server/app/api/settings/gateway/route.js.nft.json +1 -1
  79. package/bundle/.next/server/app/api/settings/gateway/route_client-reference-manifest.js +1 -1
  80. package/bundle/.next/server/app/api/settings/workspace-root/route.js +1 -1
  81. package/bundle/.next/server/app/api/settings/workspace-root/route.js.nft.json +1 -1
  82. package/bundle/.next/server/app/api/settings/workspace-root/route_client-reference-manifest.js +1 -1
  83. package/bundle/.next/server/app/api/snapshot/route.js +1 -1
  84. package/bundle/.next/server/app/api/snapshot/route.js.nft.json +1 -1
  85. package/bundle/.next/server/app/api/snapshot/route_client-reference-manifest.js +1 -1
  86. package/bundle/.next/server/app/api/stream/route.js +2 -2
  87. package/bundle/.next/server/app/api/stream/route.js.nft.json +1 -1
  88. package/bundle/.next/server/app/api/stream/route_client-reference-manifest.js +1 -1
  89. package/bundle/.next/server/app/api/system/open-terminal/route.js +1 -1
  90. package/bundle/.next/server/app/api/system/open-terminal/route.js.nft.json +1 -1
  91. package/bundle/.next/server/app/api/system/open-terminal/route_client-reference-manifest.js +1 -1
  92. package/bundle/.next/server/app/api/tasks/[taskId]/abort/route.js +1 -1
  93. package/bundle/.next/server/app/api/tasks/[taskId]/abort/route.js.nft.json +1 -1
  94. package/bundle/.next/server/app/api/tasks/[taskId]/abort/route_client-reference-manifest.js +1 -1
  95. package/bundle/.next/server/app/api/tasks/[taskId]/stream/route.js +2 -2
  96. package/bundle/.next/server/app/api/tasks/[taskId]/stream/route.js.nft.json +1 -1
  97. package/bundle/.next/server/app/api/tasks/[taskId]/stream/route_client-reference-manifest.js +1 -1
  98. package/bundle/.next/server/app/api/update/route.js +2 -2
  99. package/bundle/.next/server/app/api/update/route.js.nft.json +1 -1
  100. package/bundle/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
  101. package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route.js +1 -0
  102. package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route.js.nft.json +1 -0
  103. package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route_client-reference-manifest.js +1 -0
  104. package/bundle/.next/server/app/api/workspaces/route.js +2 -2
  105. package/bundle/.next/server/app/api/workspaces/route.js.nft.json +1 -1
  106. package/bundle/.next/server/app/api/workspaces/route_client-reference-manifest.js +1 -1
  107. package/bundle/.next/server/app/page.js +163 -12
  108. package/bundle/.next/server/app/page.js.nft.json +1 -1
  109. package/bundle/.next/server/app/page_client-reference-manifest.js +1 -1
  110. package/bundle/.next/server/app-paths-manifest.json +14 -12
  111. package/bundle/.next/server/chunks/212.js +98 -0
  112. package/bundle/.next/server/chunks/35.js +45 -0
  113. package/bundle/.next/server/chunks/408.js +18 -0
  114. package/bundle/.next/server/chunks/49.js +250 -0
  115. package/bundle/.next/server/chunks/{350.js → 661.js} +1 -1
  116. package/bundle/.next/server/chunks/678.js +1 -0
  117. package/bundle/.next/server/chunks/825.js +1 -0
  118. package/bundle/.next/server/functions-config-manifest.json +3 -1
  119. package/bundle/.next/server/middleware-build-manifest.js +1 -1
  120. package/bundle/.next/server/pages/404.html +1 -1
  121. package/bundle/.next/server/pages/500.html +1 -2
  122. package/bundle/.next/server/prefetch-hints.json +1 -0
  123. package/bundle/.next/server/server-reference-manifest.json +1 -1
  124. package/bundle/.next/static/GiI1KbaEnOWQ2uB6c5S7l/_buildManifest.js +1 -0
  125. package/bundle/.next/static/chunks/424-90a1df1753670aa3.js +32 -0
  126. package/bundle/.next/static/chunks/4a846800-6992bfdb6d680e8c.js +1 -0
  127. package/bundle/.next/static/chunks/583-20f3363124499c5d.js +1 -0
  128. package/bundle/.next/static/chunks/805-27fb5cc3e5bbb716.js +15 -0
  129. package/bundle/.next/static/chunks/app/_global-error/{page-75723f28c245a30d.js → page-e372189c79e963a1.js} +1 -1
  130. package/bundle/.next/static/chunks/app/_not-found/{page-75723f28c245a30d.js → page-e372189c79e963a1.js} +1 -1
  131. package/bundle/.next/static/chunks/app/api/agents/{route-75723f28c245a30d.js → route-e372189c79e963a1.js} +1 -1
  132. package/bundle/.next/static/chunks/app/api/diagnostics/{route-75723f28c245a30d.js → route-e372189c79e963a1.js} +1 -1
  133. package/bundle/.next/static/chunks/app/api/files/reveal/route-e372189c79e963a1.js +1 -0
  134. package/bundle/.next/static/chunks/app/api/gateway/control/route-e372189c79e963a1.js +1 -0
  135. package/bundle/.next/static/chunks/app/api/mission/route-e372189c79e963a1.js +1 -0
  136. package/bundle/.next/static/chunks/app/api/models/providers/route-e372189c79e963a1.js +1 -0
  137. package/bundle/.next/static/chunks/app/api/onboarding/models/route-e372189c79e963a1.js +1 -0
  138. package/bundle/.next/static/chunks/app/api/onboarding/route-e372189c79e963a1.js +1 -0
  139. package/bundle/.next/static/chunks/app/api/planner/[planId]/deploy/route-e372189c79e963a1.js +1 -0
  140. package/bundle/.next/static/chunks/app/api/planner/[planId]/document-rewrite/route-e372189c79e963a1.js +1 -0
  141. package/bundle/.next/static/chunks/app/api/planner/[planId]/route-e372189c79e963a1.js +1 -0
  142. package/bundle/.next/static/chunks/app/api/planner/[planId]/simulate/route-e372189c79e963a1.js +1 -0
  143. package/bundle/.next/static/chunks/app/api/planner/[planId]/turn/route-e372189c79e963a1.js +1 -0
  144. package/bundle/.next/static/chunks/app/api/planner/route-e372189c79e963a1.js +1 -0
  145. package/bundle/.next/static/chunks/app/api/reset/route-e372189c79e963a1.js +1 -0
  146. package/bundle/.next/static/chunks/app/api/runtimes/[runtimeId]/route-e372189c79e963a1.js +1 -0
  147. package/bundle/.next/static/chunks/app/api/settings/gateway/route-e372189c79e963a1.js +1 -0
  148. package/bundle/.next/static/chunks/app/api/settings/workspace-root/route-e372189c79e963a1.js +1 -0
  149. package/bundle/.next/static/chunks/app/api/snapshot/route-e372189c79e963a1.js +1 -0
  150. package/bundle/.next/static/chunks/app/api/stream/route-e372189c79e963a1.js +1 -0
  151. package/bundle/.next/static/chunks/app/api/system/open-terminal/route-e372189c79e963a1.js +1 -0
  152. package/bundle/.next/static/chunks/app/api/tasks/[taskId]/abort/route-e372189c79e963a1.js +1 -0
  153. package/bundle/.next/static/chunks/app/api/tasks/[taskId]/stream/route-e372189c79e963a1.js +1 -0
  154. package/bundle/.next/static/chunks/app/api/update/route-e372189c79e963a1.js +1 -0
  155. package/bundle/.next/static/chunks/app/api/workspaces/[workspaceId]/edit-draft/route-e372189c79e963a1.js +1 -0
  156. package/bundle/.next/static/chunks/app/api/workspaces/route-e372189c79e963a1.js +1 -0
  157. package/bundle/.next/static/chunks/app/layout-f64f74d82381e703.js +1 -0
  158. package/bundle/.next/static/chunks/app/not-found-e372189c79e963a1.js +1 -0
  159. package/bundle/.next/static/chunks/app/page-f4845e91032a411f.js +163 -0
  160. package/bundle/.next/static/chunks/f6503f1c-76bd524eece75922.js +1 -0
  161. package/bundle/.next/static/chunks/framework-3804ea39af33aa2e.js +1 -0
  162. package/bundle/.next/static/chunks/main-28f7be32434a5aa2.js +5 -0
  163. package/bundle/.next/static/chunks/main-app-5eca1027f109d5af.js +1 -0
  164. package/bundle/.next/static/chunks/next/dist/client/components/builtin/app-error-e372189c79e963a1.js +1 -0
  165. package/bundle/.next/static/chunks/next/dist/client/components/builtin/forbidden-e372189c79e963a1.js +1 -0
  166. package/bundle/.next/static/chunks/next/dist/client/components/builtin/global-error-e382d739d625239d.js +1 -0
  167. package/bundle/.next/static/chunks/next/dist/client/components/builtin/unauthorized-e372189c79e963a1.js +1 -0
  168. package/bundle/.next/static/chunks/webpack-5bdc2ea2996939e4.js +1 -0
  169. package/bundle/.next/static/css/de551c93149758e0.css +3 -0
  170. package/bundle/node_modules/@next/env/package.json +1 -1
  171. package/bundle/node_modules/next/dist/build/adapter/setup-node-env.external.js +15 -0
  172. package/bundle/node_modules/next/dist/build/analysis/extract-const-value.js +78 -63
  173. package/bundle/node_modules/next/dist/build/analysis/get-page-static-info.js +64 -40
  174. package/bundle/node_modules/next/dist/build/create-compiler-aliases.js +2 -0
  175. package/bundle/node_modules/next/dist/build/define-env.js +29 -11
  176. package/bundle/node_modules/next/dist/build/duration-to-string.js +1 -1
  177. package/bundle/node_modules/next/dist/build/entries.js +55 -295
  178. package/bundle/node_modules/next/dist/build/file-classifier.js +76 -0
  179. package/bundle/node_modules/next/dist/build/get-supported-browsers.js +38 -0
  180. package/bundle/node_modules/next/dist/build/load-jsconfig.js +7 -7
  181. package/bundle/node_modules/next/dist/build/lockfile.js +90 -9
  182. package/bundle/node_modules/next/dist/build/next-config-ts/transpile-config.js +128 -49
  183. package/bundle/node_modules/next/dist/build/print-build-errors.js +72 -0
  184. package/bundle/node_modules/next/dist/build/route-discovery.js +353 -0
  185. package/bundle/node_modules/next/dist/build/segment-config/app/app-segment-config.js +34 -17
  186. package/bundle/node_modules/next/dist/build/static-paths/app.js +68 -15
  187. package/bundle/node_modules/next/dist/build/static-paths/pages.js +3 -3
  188. package/bundle/node_modules/next/dist/build/swc/index.js +125 -48
  189. package/bundle/node_modules/next/dist/build/swc/loaderWorkerPool.js +40 -0
  190. package/bundle/node_modules/next/dist/build/swc/options.js +23 -6
  191. package/bundle/node_modules/next/dist/build/utils.js +48 -94
  192. package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/index.js +14 -3
  193. package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +4 -2
  194. package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +4 -2
  195. package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +1 -0
  196. package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +5 -5
  197. package/bundle/node_modules/next/dist/build/webpack/config/index.js +3 -2
  198. package/bundle/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +2 -1
  199. package/bundle/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +8 -1
  200. package/bundle/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +13 -4
  201. package/bundle/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +3 -1
  202. package/bundle/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +2 -16
  203. package/bundle/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +2 -2
  204. package/bundle/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +106 -0
  205. package/bundle/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +16 -8
  206. package/bundle/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +24 -11
  207. package/bundle/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +21 -2
  208. package/bundle/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +6 -5
  209. package/bundle/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +10 -14
  210. package/bundle/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +18 -4
  211. package/bundle/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +5 -4
  212. package/bundle/node_modules/next/dist/build/webpack-config.js +18 -8
  213. package/bundle/node_modules/next/dist/cli/next-test.js +4 -3
  214. package/bundle/node_modules/next/dist/client/app-find-source-map-url.js +2 -1
  215. package/bundle/node_modules/next/dist/client/components/app-router-headers.js +10 -0
  216. package/bundle/node_modules/next/dist/client/components/app-router-instance.js +82 -4
  217. package/bundle/node_modules/next/dist/client/components/app-router.js +39 -20
  218. package/bundle/node_modules/next/dist/client/components/builtin/app-error.js +29 -65
  219. package/bundle/node_modules/next/dist/client/components/builtin/error-styles.js +165 -0
  220. package/bundle/node_modules/next/dist/client/components/builtin/global-error.js +56 -38
  221. package/bundle/node_modules/next/dist/client/components/error-boundary.js +16 -6
  222. package/bundle/node_modules/next/dist/client/components/forbidden.js +1 -1
  223. package/bundle/node_modules/next/dist/client/components/handle-isr-error.js +3 -4
  224. package/bundle/node_modules/next/dist/client/components/links.js +7 -0
  225. package/bundle/node_modules/next/dist/client/components/navigation-untracked.js +2 -0
  226. package/bundle/node_modules/next/dist/client/components/navigation.js +27 -0
  227. package/bundle/node_modules/next/dist/client/components/navigation.react-server.js +5 -2
  228. package/bundle/node_modules/next/dist/client/components/not-found.js +1 -1
  229. package/bundle/node_modules/next/dist/client/components/redirect-boundary.js +1 -1
  230. package/bundle/node_modules/next/dist/client/components/redirect-error.js +0 -9
  231. package/bundle/node_modules/next/dist/client/components/redirect.js +2 -2
  232. package/bundle/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +73 -0
  233. package/bundle/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +102 -8
  234. package/bundle/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +165 -48
  235. package/bundle/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +19 -11
  236. package/bundle/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +669 -457
  237. package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +49 -0
  238. package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +19 -20
  239. package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +5 -117
  240. package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +34 -19
  241. package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +16 -32
  242. package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +85 -57
  243. package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +12 -10
  244. package/bundle/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +10 -1
  245. package/bundle/node_modules/next/dist/client/components/router-reducer/router-reducer.js +1 -1
  246. package/bundle/node_modules/next/dist/client/components/segment-cache/bfcache.js +128 -0
  247. package/bundle/node_modules/next/dist/client/components/segment-cache/cache.js +732 -231
  248. package/bundle/node_modules/next/dist/client/components/segment-cache/lru.js +13 -6
  249. package/bundle/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +194 -0
  250. package/bundle/node_modules/next/dist/client/components/segment-cache/navigation.js +388 -250
  251. package/bundle/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +543 -0
  252. package/bundle/node_modules/next/dist/client/components/segment-cache/scheduler.js +154 -55
  253. package/bundle/node_modules/next/dist/client/components/segment-cache/vary-path.js +63 -1
  254. package/bundle/node_modules/next/dist/client/components/unauthorized.js +1 -1
  255. package/bundle/node_modules/next/dist/client/components/use-action-queue.js +49 -3
  256. package/bundle/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +9 -1
  257. package/bundle/node_modules/next/dist/client/flight-data-helpers.js +42 -29
  258. package/bundle/node_modules/next/dist/client/lib/javascript-url.js +32 -0
  259. package/bundle/node_modules/next/dist/client/lib/promise.js +53 -0
  260. package/bundle/node_modules/next/dist/client/{app-build-id.js → navigation-build-id.js} +17 -13
  261. package/bundle/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js +14 -0
  262. package/bundle/node_modules/next/dist/client/route-loader.js +9 -46
  263. package/bundle/node_modules/next/dist/client/router.js +1 -1
  264. package/bundle/node_modules/next/dist/compiled/@next/font/dist/google/font-data.json +74 -3
  265. package/bundle/node_modules/next/dist/compiled/babel/bundle.js +1 -1
  266. package/bundle/node_modules/next/dist/compiled/babel-packages/packages-bundle.js +4 -4
  267. package/bundle/node_modules/next/dist/compiled/browserslist/index.js +1 -1
  268. package/bundle/node_modules/next/dist/compiled/http-proxy/index.js +5 -5
  269. package/bundle/node_modules/next/dist/compiled/next-devtools/index.js +2209 -23
  270. package/bundle/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +42 -12
  271. package/bundle/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +42 -12
  272. package/bundle/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +42 -12
  273. package/bundle/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +42 -12
  274. package/bundle/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +2 -2
  275. package/bundle/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
  276. package/bundle/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +10 -10
  277. package/bundle/node_modules/next/dist/compiled/react-is/package.json +1 -1
  278. package/bundle/node_modules/next/dist/compiled/tar/index.min.js +1 -0
  279. package/bundle/node_modules/next/dist/compiled/tar/package.json +1 -1
  280. package/bundle/node_modules/next/dist/compiled/unistore/unistore.js +1 -1
  281. package/bundle/node_modules/next/dist/lib/bundler.js +97 -0
  282. package/bundle/node_modules/next/dist/lib/constants.js +19 -4
  283. package/bundle/node_modules/next/dist/lib/download-swc.js +2 -2
  284. package/bundle/node_modules/next/dist/lib/find-root.js +11 -7
  285. package/bundle/node_modules/next/dist/lib/format-server-error.js +1 -0
  286. package/bundle/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +3 -20
  287. package/bundle/node_modules/next/dist/lib/interop-default.js +1 -0
  288. package/bundle/node_modules/next/dist/lib/is-interception-route-rewrite.js +18 -0
  289. package/bundle/node_modules/next/dist/lib/load-custom-routes.js +49 -5
  290. package/bundle/node_modules/next/dist/lib/memory/trace.js +109 -0
  291. package/bundle/node_modules/next/dist/lib/metadata/get-metadata-route.js +11 -2
  292. package/bundle/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
  293. package/bundle/node_modules/next/dist/lib/patch-incorrect-lockfile.js +5 -5
  294. package/bundle/node_modules/next/dist/lib/try-to-parse-path.js +1 -2
  295. package/bundle/node_modules/next/dist/lib/turbopack-warning.js +0 -1
  296. package/bundle/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +6 -3
  297. package/bundle/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +1 -1
  298. package/bundle/node_modules/next/dist/lib/typescript/missingDependencyError.js +1 -1
  299. package/bundle/node_modules/next/dist/lib/typescript/runTypeCheck.js +6 -8
  300. package/bundle/node_modules/next/dist/lib/typescript/type-paths.js +7 -12
  301. package/bundle/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +17 -7
  302. package/bundle/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +9 -12
  303. package/bundle/node_modules/next/dist/lib/verify-typescript-setup.js +66 -16
  304. package/bundle/node_modules/next/dist/next-devtools/server/shared.js +6 -10
  305. package/bundle/node_modules/next/dist/next-devtools/shared/webpack-module-path.js +4 -4
  306. package/bundle/node_modules/next/dist/next-devtools/userspace/app/app-dev-overlay-error-boundary.js +22 -4
  307. package/bundle/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +7 -1
  308. package/bundle/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js +18 -13
  309. package/bundle/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +7 -4
  310. package/bundle/node_modules/next/dist/server/app-render/action-handler.js +83 -15
  311. package/bundle/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +0 -82
  312. package/bundle/node_modules/next/dist/server/app-render/app-render-render-utils.js +45 -81
  313. package/bundle/node_modules/next/dist/server/app-render/app-render.js +1746 -803
  314. package/bundle/node_modules/next/dist/server/app-render/create-component-tree.js +136 -50
  315. package/bundle/node_modules/next/dist/server/app-render/create-error-handler.js +6 -4
  316. package/bundle/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +52 -26
  317. package/bundle/node_modules/next/dist/server/app-render/csrf-protection.js +14 -3
  318. package/bundle/node_modules/next/dist/server/app-render/debug-channel-server.js +30 -0
  319. package/bundle/node_modules/next/dist/server/app-render/debug-channel-server.web.js +71 -0
  320. package/bundle/node_modules/next/dist/server/app-render/dynamic-rendering.js +353 -37
  321. package/bundle/node_modules/next/dist/server/app-render/get-asset-query-string.js +2 -2
  322. package/bundle/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
  323. package/bundle/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +13 -0
  324. package/bundle/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +18 -0
  325. package/bundle/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +181 -0
  326. package/bundle/node_modules/next/dist/server/app-render/instant-validation/instant-samples-client.js +128 -0
  327. package/bundle/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +432 -0
  328. package/bundle/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +33 -0
  329. package/bundle/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +96 -0
  330. package/bundle/node_modules/next/dist/server/app-render/manifests-singleton.js +8 -1
  331. package/bundle/node_modules/next/dist/server/app-render/postponed-state.js +2 -1
  332. package/bundle/node_modules/next/dist/server/app-render/prospective-render-utils.js +1 -0
  333. package/bundle/node_modules/next/dist/server/app-render/segment-explorer-path.js +35 -10
  334. package/bundle/node_modules/next/dist/server/app-render/staged-rendering.js +142 -72
  335. package/bundle/node_modules/next/dist/server/app-render/stale-time.js +111 -0
  336. package/bundle/node_modules/next/dist/server/app-render/stream-ops.js +106 -0
  337. package/bundle/node_modules/next/dist/server/app-render/stream-ops.web.js +163 -0
  338. package/bundle/node_modules/next/dist/server/app-render/types.js +10 -4
  339. package/bundle/node_modules/next/dist/server/app-render/use-flight-response.js +3 -1
  340. package/bundle/node_modules/next/dist/server/app-render/vary-params.js +336 -0
  341. package/bundle/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +59 -12
  342. package/bundle/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +54 -26
  343. package/bundle/node_modules/next/dist/server/async-storage/request-store.js +4 -4
  344. package/bundle/node_modules/next/dist/server/async-storage/work-store.js +2 -5
  345. package/bundle/node_modules/next/dist/server/base-server.js +65 -53
  346. package/bundle/node_modules/next/dist/server/config-schema.js +93 -8
  347. package/bundle/node_modules/next/dist/server/config-shared.js +57 -7
  348. package/bundle/node_modules/next/dist/server/config.js +96 -25
  349. package/bundle/node_modules/next/dist/server/dev/browser-logs/file-logger.js +9 -6
  350. package/bundle/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +46 -0
  351. package/bundle/node_modules/next/dist/server/dev/browser-logs/source-map.js +1 -4
  352. package/bundle/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +264 -33
  353. package/bundle/node_modules/next/dist/server/dev/hot-reloader-webpack.js +8 -4
  354. package/bundle/node_modules/next/dist/server/dev/log-requests.js +10 -2
  355. package/bundle/node_modules/next/dist/server/dev/middleware-turbopack.js +20 -10
  356. package/bundle/node_modules/next/dist/server/dev/middleware-webpack.js +13 -3
  357. package/bundle/node_modules/next/dist/server/dev/next-dev-server.js +19 -6
  358. package/bundle/node_modules/next/dist/server/dev/on-demand-entry-handler.js +69 -0
  359. package/bundle/node_modules/next/dist/server/dev/require-cache.js +51 -21
  360. package/bundle/node_modules/next/dist/server/dev/server-action-logger.js +37 -0
  361. package/bundle/node_modules/next/dist/server/dev/static-paths-worker.js +1 -0
  362. package/bundle/node_modules/next/dist/server/dev/turbopack-utils.js +6 -15
  363. package/bundle/node_modules/next/dist/server/dynamic-rendering-utils.js +22 -0
  364. package/bundle/node_modules/next/dist/server/image-optimizer.js +157 -27
  365. package/bundle/node_modules/next/dist/server/lib/app-info-log.js +16 -38
  366. package/bundle/node_modules/next/dist/server/lib/cache-control.js +1 -1
  367. package/bundle/node_modules/next/dist/server/lib/clone-response.js +16 -16
  368. package/bundle/node_modules/next/dist/server/lib/cpu-profile.js +47 -16
  369. package/bundle/node_modules/next/dist/server/lib/dev-bundler-service.js +2 -2
  370. package/bundle/node_modules/next/dist/server/lib/disk-lru-cache.external.js +57 -0
  371. package/bundle/node_modules/next/dist/server/lib/find-page-file.js +27 -7
  372. package/bundle/node_modules/next/dist/server/lib/implicit-tags.js +3 -3
  373. package/bundle/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +5 -3
  374. package/bundle/node_modules/next/dist/server/lib/incremental-cache/index.js +32 -10
  375. package/bundle/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +18 -1
  376. package/bundle/node_modules/next/dist/server/lib/install-code-frame.js +22 -0
  377. package/bundle/node_modules/next/dist/server/lib/lru-cache.js +9 -1
  378. package/bundle/node_modules/next/dist/server/lib/patch-fetch.js +40 -7
  379. package/bundle/node_modules/next/dist/server/lib/postponed-request-body.js +64 -0
  380. package/bundle/node_modules/next/dist/server/lib/render-server.js +4 -1
  381. package/bundle/node_modules/next/dist/server/lib/router-server.js +24 -13
  382. package/bundle/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +110 -0
  383. package/bundle/node_modules/next/dist/server/lib/router-utils/filesystem.js +16 -15
  384. package/bundle/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +32 -11
  385. package/bundle/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +3 -3
  386. package/bundle/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +71 -71
  387. package/bundle/node_modules/next/dist/server/lib/router-utils/typegen.js +247 -2
  388. package/bundle/node_modules/next/dist/server/lib/server-ipc/utils.js +2 -1
  389. package/bundle/node_modules/next/dist/server/lib/start-server.js +73 -39
  390. package/bundle/node_modules/next/dist/server/lib/trace/tracer.js +11 -1
  391. package/bundle/node_modules/next/dist/server/lib/utils.js +40 -11
  392. package/bundle/node_modules/next/dist/server/load-components.js +2 -0
  393. package/bundle/node_modules/next/dist/server/load-manifest.external.js +37 -17
  394. package/bundle/node_modules/next/dist/server/mcp/tools/get-errors.js +11 -4
  395. package/bundle/node_modules/next/dist/server/mcp/tools/get-logs.js +9 -3
  396. package/bundle/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +52 -44
  397. package/bundle/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +6 -2
  398. package/bundle/node_modules/next/dist/server/mcp/tools/get-routes.js +44 -79
  399. package/bundle/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +12 -4
  400. package/bundle/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +62 -72
  401. package/bundle/node_modules/next/dist/server/next-server.js +69 -99
  402. package/bundle/node_modules/next/dist/server/next.js +3 -0
  403. package/bundle/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +61 -6
  404. package/bundle/node_modules/next/dist/server/node-environment-extensions/date.js +4 -4
  405. package/bundle/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +13 -6
  406. package/bundle/node_modules/next/dist/server/node-environment-extensions/{utils.js → io-utils.js} +14 -5
  407. package/bundle/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +8 -8
  408. package/bundle/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +91 -0
  409. package/bundle/node_modules/next/dist/server/node-environment-extensions/random.js +2 -2
  410. package/bundle/node_modules/next/dist/server/node-environment-extensions/{unhandled-rejection.js → unhandled-rejection.external.js} +23 -4
  411. package/bundle/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +3 -3
  412. package/bundle/node_modules/next/dist/server/node-environment.js +1 -1
  413. package/bundle/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +2 -1
  414. package/bundle/node_modules/next/dist/server/patch-error-inspect.js +37 -20
  415. package/bundle/node_modules/next/dist/server/render-result.js +9 -0
  416. package/bundle/node_modules/next/dist/server/render.js +27 -25
  417. package/bundle/node_modules/next/dist/server/require-hook.js +19 -8
  418. package/bundle/node_modules/next/dist/server/response-cache/utils.js +1 -0
  419. package/bundle/node_modules/next/dist/server/resume-data-cache/cache-store.js +35 -23
  420. package/bundle/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +16 -7
  421. package/bundle/node_modules/next/dist/server/revalidation-utils.js +12 -7
  422. package/bundle/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +2 -1
  423. package/bundle/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +4 -1
  424. package/bundle/node_modules/next/dist/server/route-modules/app-page/module.js +31 -1
  425. package/bundle/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +25 -0
  426. package/bundle/node_modules/next/dist/server/route-modules/pages/pages-handler.js +31 -8
  427. package/bundle/node_modules/next/dist/server/route-modules/route-module.js +71 -18
  428. package/bundle/node_modules/next/dist/server/stream-utils/encoded-tags.js +8 -0
  429. package/bundle/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +239 -58
  430. package/bundle/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +7 -2
  431. package/bundle/node_modules/next/dist/server/typescript/constant.js +1 -0
  432. package/bundle/node_modules/next/dist/server/typescript/rules/config.js +14 -3
  433. package/bundle/node_modules/next/dist/server/web/adapter.js +7 -3
  434. package/bundle/node_modules/next/dist/server/web/next-url.js +6 -2
  435. package/bundle/node_modules/next/dist/server/web/sandbox/sandbox.js +3 -0
  436. package/bundle/node_modules/next/dist/shared/lib/app-router-types.js +30 -11
  437. package/bundle/node_modules/next/dist/shared/lib/constants.js +7 -7
  438. package/bundle/node_modules/next/dist/shared/lib/deployment-id.js +37 -10
  439. package/bundle/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  440. package/bundle/node_modules/next/dist/shared/lib/errors/code-frame.js +20 -0
  441. package/bundle/node_modules/next/dist/shared/lib/format-webpack-messages.js +22 -2
  442. package/bundle/node_modules/next/dist/shared/lib/image-config.js +3 -1
  443. package/bundle/node_modules/next/dist/shared/lib/is-internal.js +2 -0
  444. package/bundle/node_modules/next/dist/shared/lib/magic-identifier.js +6 -6
  445. package/bundle/node_modules/next/dist/shared/lib/router/router.js +32 -0
  446. package/bundle/node_modules/next/dist/shared/lib/router/utils/app-paths.js +11 -0
  447. package/bundle/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +11 -4
  448. package/bundle/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +3 -2
  449. package/bundle/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +9 -2
  450. package/bundle/node_modules/next/dist/shared/lib/router/utils/parse-url.js +8 -2
  451. package/bundle/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +32 -0
  452. package/bundle/node_modules/next/dist/shared/lib/server-reference-info.js +4 -0
  453. package/bundle/node_modules/next/dist/shared/lib/size-limit.js +6 -1
  454. package/bundle/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +47 -10
  455. package/bundle/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +90 -116
  456. package/bundle/node_modules/next/dist/shared/lib/turbopack/utils.js +14 -26
  457. package/bundle/node_modules/next/dist/shared/lib/utils/reflect-utils.js +69 -0
  458. package/bundle/node_modules/next/dist/shared/lib/utils.js +2 -2
  459. package/bundle/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  460. package/bundle/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
  461. package/bundle/node_modules/next/dist/telemetry/events/version.js +2 -2
  462. package/bundle/node_modules/next/dist/trace/index.js +4 -0
  463. package/bundle/node_modules/next/dist/trace/report/to-json-build.js +11 -108
  464. package/bundle/node_modules/next/dist/trace/report/to-json.js +52 -38
  465. package/bundle/node_modules/next/dist/trace/trace.js +15 -1
  466. package/bundle/node_modules/next/package.json +21 -23
  467. package/bundle/node_modules/react/cjs/react.development.js +1284 -0
  468. package/bundle/package.json +2 -2
  469. package/bundle/server.js +1 -1
  470. package/package.json +1 -1
  471. package/bundle/.next/server/chunks/31.js +0 -1
  472. package/bundle/.next/server/chunks/419.js +0 -249
  473. package/bundle/.next/server/chunks/463.js +0 -13
  474. package/bundle/.next/server/chunks/603.js +0 -91
  475. package/bundle/.next/server/chunks/709.js +0 -22
  476. package/bundle/.next/server/chunks/957.js +0 -1
  477. package/bundle/.next/static/chunks/26-8f7c2b7e8773b4cb.js +0 -2
  478. package/bundle/.next/static/chunks/273-31916bcd40e3f381.js +0 -1
  479. package/bundle/.next/static/chunks/474f1956-ebf51c0dd00ff236.js +0 -1
  480. package/bundle/.next/static/chunks/4a846800-817e4d43c6c4047f.js +0 -1
  481. package/bundle/.next/static/chunks/878-919c758aa9e87b6d.js +0 -13
  482. package/bundle/.next/static/chunks/app/api/files/reveal/route-75723f28c245a30d.js +0 -1
  483. package/bundle/.next/static/chunks/app/api/gateway/control/route-75723f28c245a30d.js +0 -1
  484. package/bundle/.next/static/chunks/app/api/mission/route-75723f28c245a30d.js +0 -1
  485. package/bundle/.next/static/chunks/app/api/models/providers/route-75723f28c245a30d.js +0 -1
  486. package/bundle/.next/static/chunks/app/api/onboarding/models/route-75723f28c245a30d.js +0 -1
  487. package/bundle/.next/static/chunks/app/api/onboarding/route-75723f28c245a30d.js +0 -1
  488. package/bundle/.next/static/chunks/app/api/planner/[planId]/deploy/route-75723f28c245a30d.js +0 -1
  489. package/bundle/.next/static/chunks/app/api/planner/[planId]/route-75723f28c245a30d.js +0 -1
  490. package/bundle/.next/static/chunks/app/api/planner/[planId]/simulate/route-75723f28c245a30d.js +0 -1
  491. package/bundle/.next/static/chunks/app/api/planner/[planId]/turn/route-75723f28c245a30d.js +0 -1
  492. package/bundle/.next/static/chunks/app/api/planner/route-75723f28c245a30d.js +0 -1
  493. package/bundle/.next/static/chunks/app/api/reset/route-75723f28c245a30d.js +0 -1
  494. package/bundle/.next/static/chunks/app/api/runtimes/[runtimeId]/route-75723f28c245a30d.js +0 -1
  495. package/bundle/.next/static/chunks/app/api/settings/gateway/route-75723f28c245a30d.js +0 -1
  496. package/bundle/.next/static/chunks/app/api/settings/workspace-root/route-75723f28c245a30d.js +0 -1
  497. package/bundle/.next/static/chunks/app/api/snapshot/route-75723f28c245a30d.js +0 -1
  498. package/bundle/.next/static/chunks/app/api/stream/route-75723f28c245a30d.js +0 -1
  499. package/bundle/.next/static/chunks/app/api/system/open-terminal/route-75723f28c245a30d.js +0 -1
  500. package/bundle/.next/static/chunks/app/api/tasks/[taskId]/abort/route-75723f28c245a30d.js +0 -1
  501. package/bundle/.next/static/chunks/app/api/tasks/[taskId]/stream/route-75723f28c245a30d.js +0 -1
  502. package/bundle/.next/static/chunks/app/api/update/route-75723f28c245a30d.js +0 -1
  503. package/bundle/.next/static/chunks/app/api/workspaces/route-75723f28c245a30d.js +0 -1
  504. package/bundle/.next/static/chunks/app/layout-6c2c9cd9b518452f.js +0 -1
  505. package/bundle/.next/static/chunks/app/not-found-75723f28c245a30d.js +0 -1
  506. package/bundle/.next/static/chunks/app/page-dee040e8fa0bfe5c.js +0 -14
  507. package/bundle/.next/static/chunks/framework-56f40d86ebc2172f.js +0 -1
  508. package/bundle/.next/static/chunks/main-app-245e6e74e3ad1df9.js +0 -1
  509. package/bundle/.next/static/chunks/main-f015e68ea54ff136.js +0 -5
  510. package/bundle/.next/static/chunks/next/dist/client/components/builtin/app-error-75723f28c245a30d.js +0 -1
  511. package/bundle/.next/static/chunks/next/dist/client/components/builtin/forbidden-75723f28c245a30d.js +0 -1
  512. package/bundle/.next/static/chunks/next/dist/client/components/builtin/global-error-62eeb2b37b76f847.js +0 -1
  513. package/bundle/.next/static/chunks/next/dist/client/components/builtin/unauthorized-75723f28c245a30d.js +0 -1
  514. package/bundle/.next/static/chunks/webpack-032b5b42e067a790.js +0 -1
  515. package/bundle/.next/static/css/665b6d1d1e231c6e.css +0 -3
  516. package/bundle/.next/static/dMZieB6mihw477BgExG8r/_buildManifest.js +0 -1
  517. package/bundle/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +0 -66
  518. package/bundle/node_modules/next/dist/compiled/babel/code-frame.js +0 -1
  519. package/bundle/node_modules/next/dist/compiled/babel-code-frame/index.js +0 -1
  520. package/bundle/node_modules/next/dist/compiled/babel-code-frame/package.json +0 -1
  521. package/bundle/node_modules/next/dist/compiled/tar/index.js +0 -1
  522. package/bundle/node_modules/next/dist/server/app-render/staged-validation.js +0 -32
  523. package/bundle/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +0 -76
  524. package/bundle/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +0 -52
  525. package/bundle/node_modules/typescript/lib/typescript.js +0 -200276
  526. package/bundle/node_modules/typescript/package.json +0 -120
  527. /package/bundle/.next/static/{dMZieB6mihw477BgExG8r → GiI1KbaEnOWQ2uB6c5S7l}/_ssgManifest.js +0 -0
@@ -3,14 +3,7 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  0 && (module.exports = {
6
- collectAppFiles: null,
7
- collectPagesFiles: null,
8
- combineSlots: null,
9
6
  createEntrypoints: null,
10
- createPagesMapping: null,
11
- createRelativeFilePath: null,
12
- extractSlotsFromAppRoutes: null,
13
- extractSlotsFromDefaultFiles: null,
14
7
  finalizeEntrypoint: null,
15
8
  getAppEntry: null,
16
9
  getAppLoader: null,
@@ -18,10 +11,7 @@ Object.defineProperty(exports, "__esModule", {
18
11
  getEdgeServerEntry: null,
19
12
  getInstrumentationEntry: null,
20
13
  getPageFilePath: null,
21
- getPageFromPath: null,
22
- processAppRoutes: null,
23
- processLayoutRoutes: null,
24
- processPageRoutes: null,
14
+ isDeferredEntry: null,
25
15
  runDependingOnPageType: null
26
16
  });
27
17
  function _export(target, all) {
@@ -31,30 +21,9 @@ function _export(target, all) {
31
21
  });
32
22
  }
33
23
  _export(exports, {
34
- collectAppFiles: function() {
35
- return collectAppFiles;
36
- },
37
- collectPagesFiles: function() {
38
- return collectPagesFiles;
39
- },
40
- combineSlots: function() {
41
- return combineSlots;
42
- },
43
24
  createEntrypoints: function() {
44
25
  return createEntrypoints;
45
26
  },
46
- createPagesMapping: function() {
47
- return createPagesMapping;
48
- },
49
- createRelativeFilePath: function() {
50
- return createRelativeFilePath;
51
- },
52
- extractSlotsFromAppRoutes: function() {
53
- return extractSlotsFromAppRoutes;
54
- },
55
- extractSlotsFromDefaultFiles: function() {
56
- return extractSlotsFromDefaultFiles;
57
- },
58
27
  finalizeEntrypoint: function() {
59
28
  return finalizeEntrypoint;
60
29
  },
@@ -76,17 +45,8 @@ _export(exports, {
76
45
  getPageFilePath: function() {
77
46
  return getPageFilePath;
78
47
  },
79
- getPageFromPath: function() {
80
- return getPageFromPath;
81
- },
82
- processAppRoutes: function() {
83
- return processAppRoutes;
84
- },
85
- processLayoutRoutes: function() {
86
- return processLayoutRoutes;
87
- },
88
- processPageRoutes: function() {
89
- return processPageRoutes;
48
+ isDeferredEntry: function() {
49
+ return isDeferredEntry;
90
50
  },
91
51
  runDependingOnPageType: function() {
92
52
  return runDependingOnPageType;
@@ -99,175 +59,18 @@ const _isapiroute = require("../lib/is-api-route");
99
59
  const _isedgeruntime = require("../lib/is-edge-runtime");
100
60
  const _constants1 = require("../shared/lib/constants");
101
61
  const _utils = require("./utils");
102
- const _getpagestaticinfo = require("./analysis/get-page-static-info");
103
- const _normalizepathsep = require("../shared/lib/page-path/normalize-path-sep");
104
62
  const _normalizepagepath = require("../shared/lib/page-path/normalize-page-path");
105
63
  const _apppaths = require("../shared/lib/router/utils/app-paths");
106
64
  const _nextmiddlewareloader = require("./webpack/loaders/next-middleware-loader");
107
65
  const _isapprouteroute = require("../lib/is-app-route-route");
108
- const _getmetadataroute = require("../lib/metadata/get-metadata-route");
109
66
  const _nextrouteloader = require("./webpack/loaders/next-route-loader");
110
67
  const _isinternalcomponent = require("../lib/is-internal-component");
111
- const _ismetadataroute = require("../lib/metadata/is-metadata-route");
112
68
  const _routekind = require("../server/route-kind");
113
69
  const _utils1 = require("./webpack/loaders/utils");
114
70
  const _normalizecatchallroutes = require("./normalize-catchall-routes");
115
71
  const _pagetypes = require("../lib/page-types");
116
- const _recursivereaddir = require("../lib/recursive-readdir");
117
- const _segment = require("../shared/lib/segment");
118
- const _ensureleadingslash = require("../shared/lib/page-path/ensure-leading-slash");
119
- const _entryconstants = require("../shared/lib/entry-constants");
120
72
  const _getstaticinfoincludinglayouts = require("./get-static-info-including-layouts");
121
- async function collectAppFiles(appDir, validFileMatcher) {
122
- // Collect app pages, layouts, and default files in a single directory traversal
123
- const allAppFiles = await (0, _recursivereaddir.recursiveReadDir)(appDir, {
124
- pathnameFilter: (absolutePath)=>validFileMatcher.isAppRouterPage(absolutePath) || validFileMatcher.isRootNotFound(absolutePath) || validFileMatcher.isAppLayoutPage(absolutePath) || validFileMatcher.isAppDefaultPage(absolutePath),
125
- ignorePartFilter: (part)=>part.startsWith('_')
126
- });
127
- // Separate app pages, layouts, and defaults
128
- const appPaths = allAppFiles.filter((absolutePath)=>validFileMatcher.isAppRouterPage(absolutePath) || validFileMatcher.isRootNotFound(absolutePath));
129
- const layoutPaths = allAppFiles.filter((absolutePath)=>validFileMatcher.isAppLayoutPage(absolutePath));
130
- const defaultPaths = allAppFiles.filter((absolutePath)=>validFileMatcher.isAppDefaultPage(absolutePath));
131
- return {
132
- appPaths,
133
- layoutPaths,
134
- defaultPaths
135
- };
136
- }
137
- async function collectPagesFiles(pagesDir, validFileMatcher) {
138
- return (0, _recursivereaddir.recursiveReadDir)(pagesDir, {
139
- pathnameFilter: validFileMatcher.isPageFile
140
- });
141
- }
142
- function createRelativeFilePath(baseDir, filePath, prefix, isSrcDir) {
143
- const privatePrefix = prefix === 'pages' ? 'private-next-pages' : 'private-next-app-dir';
144
- const srcPrefix = isSrcDir ? 'src/' : '';
145
- return (0, _path.join)(baseDir, filePath.replace(new RegExp(`^${privatePrefix}/`), `${srcPrefix}${prefix}/`));
146
- }
147
- function processPageRoutes(mappedPages, baseDir, isSrcDir) {
148
- const pageRoutes = [];
149
- const pageApiRoutes = [];
150
- for (const [route, filePath] of Object.entries(mappedPages)){
151
- const relativeFilePath = createRelativeFilePath(baseDir, filePath, 'pages', isSrcDir);
152
- if (route.startsWith('/api/')) {
153
- pageApiRoutes.push({
154
- route: (0, _normalizepathsep.normalizePathSep)(route),
155
- filePath: relativeFilePath
156
- });
157
- } else {
158
- // Filter out _app, _error, _document
159
- if ((0, _utils.isReservedPage)(route)) continue;
160
- pageRoutes.push({
161
- route: (0, _normalizepathsep.normalizePathSep)(route),
162
- filePath: relativeFilePath
163
- });
164
- }
165
- }
166
- return {
167
- pageRoutes,
168
- pageApiRoutes
169
- };
170
- }
171
- function extractSlotsFromAppRoutes(mappedAppPages) {
172
- const slots = [];
173
- for (const [page] of Object.entries(mappedAppPages)){
174
- if (page === _entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY || page === _entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY) {
175
- continue;
176
- }
177
- const segments = page.split('/');
178
- for(let i = segments.length - 1; i >= 0; i--){
179
- const segment = segments[i];
180
- if ((0, _segment.isParallelRouteSegment)(segment)) {
181
- const parentPath = (0, _apppaths.normalizeAppPath)(segments.slice(0, i).join('/'));
182
- const slotName = segment.slice(1);
183
- // Check if the slot already exists
184
- if (slots.some((s)=>s.name === slotName && s.parent === parentPath)) continue;
185
- slots.push({
186
- name: slotName,
187
- parent: parentPath
188
- });
189
- break;
190
- }
191
- }
192
- }
193
- return slots;
194
- }
195
- function extractSlotsFromDefaultFiles(mappedDefaultFiles) {
196
- const slots = [];
197
- for (const [route] of Object.entries(mappedDefaultFiles)){
198
- const segments = route.split('/');
199
- for(let i = segments.length - 1; i >= 0; i--){
200
- const segment = segments[i];
201
- if ((0, _segment.isParallelRouteSegment)(segment)) {
202
- const parentPath = (0, _apppaths.normalizeAppPath)(segments.slice(0, i).join('/'));
203
- const slotName = segment.slice(1);
204
- // Check if the slot already exists
205
- if (slots.some((s)=>s.name === slotName && s.parent === parentPath)) continue;
206
- slots.push({
207
- name: slotName,
208
- parent: parentPath
209
- });
210
- break;
211
- }
212
- }
213
- }
214
- return slots;
215
- }
216
- function combineSlots(...slotArrays) {
217
- const slotSet = new Set();
218
- const result = [];
219
- for (const slots of slotArrays){
220
- for (const slot of slots){
221
- const key = `${slot.name}:${slot.parent}`;
222
- if (!slotSet.has(key)) {
223
- slotSet.add(key);
224
- result.push(slot);
225
- }
226
- }
227
- }
228
- return result;
229
- }
230
- function processAppRoutes(mappedAppPages, validFileMatcher, baseDir, isSrcDir) {
231
- const appRoutes = [];
232
- const appRouteHandlers = [];
233
- for (const [page, filePath] of Object.entries(mappedAppPages)){
234
- if (page === _entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY || page === _entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY) {
235
- continue;
236
- }
237
- const relativeFilePath = createRelativeFilePath(baseDir, filePath, 'app', isSrcDir);
238
- if (validFileMatcher.isAppRouterRoute(filePath)) {
239
- appRouteHandlers.push({
240
- route: (0, _apppaths.normalizeAppPath)((0, _normalizepathsep.normalizePathSep)(page)),
241
- filePath: relativeFilePath
242
- });
243
- } else {
244
- appRoutes.push({
245
- route: (0, _apppaths.normalizeAppPath)((0, _normalizepathsep.normalizePathSep)(page)),
246
- filePath: relativeFilePath
247
- });
248
- }
249
- }
250
- return {
251
- appRoutes,
252
- appRouteHandlers
253
- };
254
- }
255
- function processLayoutRoutes(mappedAppLayouts, baseDir, isSrcDir) {
256
- const layoutRoutes = [];
257
- for (const [route, filePath] of Object.entries(mappedAppLayouts)){
258
- const relativeFilePath = createRelativeFilePath(baseDir, filePath, 'app', isSrcDir);
259
- layoutRoutes.push({
260
- route: (0, _ensureleadingslash.ensureLeadingSlash)((0, _apppaths.normalizeAppPath)((0, _normalizepathsep.normalizePathSep)(route)).replace(/\/layout$/, '')),
261
- filePath: relativeFilePath
262
- });
263
- }
264
- return layoutRoutes;
265
- }
266
- function getPageFromPath(pagePath, pageExtensions) {
267
- let page = (0, _normalizepathsep.normalizePathSep)(pagePath.replace(new RegExp(`\\.+(${pageExtensions.join('|')})$`), ''));
268
- page = page.replace(/\/index$/, '');
269
- return page === '' ? '/' : page;
270
- }
73
+ const _routediscovery = require("./route-discovery");
271
74
  function getPageFilePath({ absolutePagePath, pagesDir, appDir, rootDir }) {
272
75
  if (absolutePagePath.startsWith(_constants.PAGES_DIR_ALIAS) && pagesDir) {
273
76
  return absolutePagePath.replace(_constants.PAGES_DIR_ALIAS, pagesDir);
@@ -280,98 +83,29 @@ function getPageFilePath({ absolutePagePath, pagesDir, appDir, rootDir }) {
280
83
  }
281
84
  return require.resolve(absolutePagePath);
282
85
  }
283
- async function createPagesMapping({ isDev, pageExtensions, pagePaths, pagesType, pagesDir, appDir, appDirOnly }) {
284
- const isAppRoute = pagesType === 'app';
285
- const promises = pagePaths.map(async (pagePath)=>{
286
- // Do not process .d.ts files as routes
287
- if (pagePath.endsWith('.d.ts') && pageExtensions.includes('ts')) {
288
- return;
289
- }
290
- let pageKey = getPageFromPath(pagePath, pageExtensions);
291
- if (isAppRoute) {
292
- pageKey = pageKey.replace(/%5F/g, '_');
293
- if (pageKey === _constants1.UNDERSCORE_NOT_FOUND_ROUTE) {
294
- pageKey = _entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY;
295
- }
296
- if (pageKey === _entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE) {
297
- pageKey = _entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY;
298
- }
86
+ function isDeferredEntry(page, deferredEntries) {
87
+ if (!deferredEntries || deferredEntries.length === 0) {
88
+ return false;
89
+ }
90
+ // Normalize the page path
91
+ const normalizedPage = page.startsWith('/') ? page : `/${page}`;
92
+ for (const pattern of deferredEntries){
93
+ // Normalize the pattern
94
+ const normalizedPattern = pattern.startsWith('/') ? pattern : `/${pattern}`;
95
+ // Check for exact match or prefix match for directories
96
+ if (normalizedPage === normalizedPattern) {
97
+ return true;
299
98
  }
300
- const normalizedPath = (0, _normalizepathsep.normalizePathSep)((0, _path.join)(pagesType === 'pages' ? _constants.PAGES_DIR_ALIAS : pagesType === 'app' ? _constants.APP_DIR_ALIAS : _constants.ROOT_DIR_ALIAS, pagePath));
301
- let route = pagesType === 'app' ? (0, _getmetadataroute.normalizeMetadataRoute)(pageKey) : pageKey;
302
- if (pagesType === 'app' && (0, _ismetadataroute.isMetadataRouteFile)(pagePath, pageExtensions, true)) {
303
- const filePath = (0, _path.join)(appDir, pagePath);
304
- const staticInfo = await (0, _getpagestaticinfo.getPageStaticInfo)({
305
- nextConfig: {},
306
- pageFilePath: filePath,
307
- isDev,
308
- page: pageKey,
309
- pageType: pagesType
310
- });
311
- route = (0, _getmetadataroute.normalizeMetadataPageToRoute)(route, !!(staticInfo.generateImageMetadata || staticInfo.generateSitemaps));
99
+ // Check if the page is under the deferred directory
100
+ if (normalizedPage.startsWith(normalizedPattern + '/')) {
101
+ return true;
312
102
  }
313
- return [
314
- route,
315
- normalizedPath
316
- ];
317
- });
318
- const pages = Object.fromEntries((await Promise.all(promises)).filter((entry)=>entry != null));
319
- switch(pagesType){
320
- case _pagetypes.PAGE_TYPES.ROOT:
321
- {
322
- return pages;
323
- }
324
- case _pagetypes.PAGE_TYPES.APP:
325
- {
326
- const hasAppPages = Object.keys(pages).length > 0;
327
- // Whether to emit App router 500.html entry, which only presents in production and only app router presents
328
- const hasAppGlobalError = !isDev && appDirOnly;
329
- return {
330
- // If there's any app pages existed, add a default /_not-found route as 404.
331
- // If there's any custom /_not-found page, it will override the default one.
332
- ...hasAppPages && {
333
- [_entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY]: require.resolve('next/dist/client/components/builtin/global-not-found')
334
- },
335
- ...hasAppGlobalError && {
336
- [_entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY]: require.resolve('next/dist/client/components/builtin/app-error')
337
- },
338
- ...pages
339
- };
340
- }
341
- case _pagetypes.PAGE_TYPES.PAGES:
342
- {
343
- if (isDev) {
344
- delete pages['/_app'];
345
- delete pages['/_error'];
346
- delete pages['/_document'];
347
- }
348
- // In development we always alias these to allow Webpack to fallback to
349
- // the correct source file so that HMR can work properly when a file is
350
- // added or removed.
351
- const root = isDev && pagesDir ? _constants.PAGES_DIR_ALIAS : 'next/dist/pages';
352
- // If there are no user pages routes, treat this as app-dir-only mode.
353
- // The pages/ folder could be present and the initial appDirOnly is treated as false, but no valid routes are found.
354
- if (Object.keys(pages).length === 0 && !appDirOnly) {
355
- appDirOnly = true;
356
- }
357
- return {
358
- // Don't add default pages entries if this is an app-router-only build
359
- ...(isDev || !appDirOnly) && {
360
- '/_app': `${root}/_app`,
361
- '/_error': `${root}/_error`,
362
- '/_document': `${root}/_document`,
363
- ...pages
364
- }
365
- };
366
- }
367
- default:
368
- {
369
- return {};
370
- }
371
103
  }
104
+ return false;
372
105
  }
373
106
  function getEdgeServerEntry(opts) {
374
107
  var _opts_config_experimental_sri;
108
+ const cacheHandler = opts.config.cacheHandler || undefined;
375
109
  if (opts.pagesType === 'app' && (0, _isapprouteroute.isAppRouteRoute)(opts.page) && opts.appDirLoader) {
376
110
  const loaderParams = {
377
111
  absolutePagePath: opts.absolutePagePath,
@@ -379,7 +113,10 @@ function getEdgeServerEntry(opts) {
379
113
  appDirLoader: Buffer.from(opts.appDirLoader || '').toString('base64'),
380
114
  preferredRegion: opts.preferredRegion,
381
115
  middlewareConfig: Buffer.from(JSON.stringify(opts.middlewareConfig || {})).toString('base64'),
382
- cacheHandlers: JSON.stringify(opts.config.cacheHandlers || {})
116
+ cacheHandlers: JSON.stringify(opts.config.cacheHandlers || {}),
117
+ ...cacheHandler ? {
118
+ cacheHandler
119
+ } : {}
383
120
  };
384
121
  return {
385
122
  import: `next-edge-app-route-loader?${(0, _querystring.stringify)(loaderParams)}!`,
@@ -394,7 +131,10 @@ function getEdgeServerEntry(opts) {
394
131
  rootDir: opts.rootDir,
395
132
  matchers: ((_opts_middleware = opts.middleware) == null ? void 0 : _opts_middleware.matchers) ? (0, _nextmiddlewareloader.encodeMatchers)(opts.middleware.matchers) : '',
396
133
  preferredRegion: opts.preferredRegion,
397
- middlewareConfig: Buffer.from(JSON.stringify(opts.middlewareConfig || {})).toString('base64')
134
+ middlewareConfig: Buffer.from(JSON.stringify(opts.middlewareConfig || {})).toString('base64'),
135
+ ...cacheHandler ? {
136
+ cacheHandler
137
+ } : {}
398
138
  };
399
139
  return {
400
140
  import: `next-middleware-loader?${(0, _querystring.stringify)(loaderParams)}!`,
@@ -408,7 +148,10 @@ function getEdgeServerEntry(opts) {
408
148
  page: opts.page,
409
149
  rootDir: opts.rootDir,
410
150
  preferredRegion: opts.preferredRegion,
411
- middlewareConfig: Buffer.from(JSON.stringify(opts.middlewareConfig || {})).toString('base64')
151
+ middlewareConfig: Buffer.from(JSON.stringify(opts.middlewareConfig || {})).toString('base64'),
152
+ ...cacheHandler ? {
153
+ cacheHandler
154
+ } : {}
412
155
  };
413
156
  return {
414
157
  import: `next-edge-function-loader?${(0, _querystring.stringify)(loaderParams)}!`,
@@ -427,11 +170,13 @@ function getEdgeServerEntry(opts) {
427
170
  pagesType: opts.pagesType,
428
171
  appDirLoader: Buffer.from(opts.appDirLoader || '').toString('base64'),
429
172
  sriEnabled: !opts.isDev && !!((_opts_config_experimental_sri = opts.config.experimental.sri) == null ? void 0 : _opts_config_experimental_sri.algorithm),
430
- cacheHandler: opts.config.cacheHandler,
431
173
  preferredRegion: opts.preferredRegion,
432
174
  middlewareConfig: Buffer.from(JSON.stringify(opts.middlewareConfig || {})).toString('base64'),
433
175
  serverActions: opts.config.experimental.serverActions,
434
- cacheHandlers: JSON.stringify(opts.config.cacheHandlers || {})
176
+ cacheHandlers: JSON.stringify(opts.config.cacheHandlers || {}),
177
+ ...cacheHandler ? {
178
+ cacheHandler
179
+ } : {}
435
180
  };
436
181
  return {
437
182
  import: `next-edge-ssr-loader?${JSON.stringify(loaderParams)}!`,
@@ -523,7 +268,8 @@ function runDependingOnPageType(params) {
523
268
  return;
524
269
  }
525
270
  async function createEntrypoints(params) {
526
- const { config, pages, pagesDir, isDev, rootDir, rootPaths, appDir, appPaths, pageExtensions } = params;
271
+ const { config, pages, pagesDir, isDev, rootDir, rootPaths, appDir, appPaths, pageExtensions, deferredEntriesFilter } = params;
272
+ const deferredEntries = config.experimental.deferredEntries;
527
273
  const edgeServer = {};
528
274
  const server = {};
529
275
  const client = {};
@@ -537,17 +283,29 @@ async function createEntrypoints(params) {
537
283
  appPathsPerRoute[normalizedPath] = [];
538
284
  }
539
285
  appPathsPerRoute[normalizedPath].push(// TODO-APP: refactor to pass the page path from createPagesMapping instead.
540
- getPageFromPath(actualPath, pageExtensions).replace(_constants.APP_DIR_ALIAS, ''));
286
+ (0, _routediscovery.getPageFromPath)(actualPath, pageExtensions).replace(_constants.APP_DIR_ALIAS, ''));
541
287
  }
542
288
  // TODO: find a better place to do this
543
289
  (0, _normalizecatchallroutes.normalizeCatchAllRoutes)(appPathsPerRoute);
544
290
  // Make sure to sort parallel routes to make the result deterministic.
545
291
  appPathsPerRoute = Object.fromEntries(Object.entries(appPathsPerRoute).map(([k, v])=>[
546
292
  k,
547
- v.sort()
293
+ v.sort(_apppaths.compareAppPaths)
548
294
  ]));
549
295
  }
550
296
  const getEntryHandler = (mappings, pagesType)=>async (page)=>{
297
+ // Apply deferred entries filter if specified
298
+ if (deferredEntriesFilter) {
299
+ const isDeferred = isDeferredEntry(page, deferredEntries);
300
+ if (deferredEntriesFilter === 'exclude' && isDeferred) {
301
+ // Skip deferred entries when excluding them
302
+ return;
303
+ }
304
+ if (deferredEntriesFilter === 'only' && !isDeferred) {
305
+ // Skip non-deferred entries when only including deferred ones
306
+ return;
307
+ }
308
+ }
551
309
  const bundleFile = (0, _normalizepagepath.normalizePagePath)(page);
552
310
  const clientBundlePath = _path.posix.join(pagesType, bundleFile);
553
311
  const serverBundlePath = pagesType === _pagetypes.PAGE_TYPES.PAGES ? _path.posix.join('pages', bundleFile) : pagesType === _pagetypes.PAGE_TYPES.APP ? _path.posix.join('app', bundleFile) : bundleFile.slice(1);
@@ -605,6 +363,7 @@ async function createEntrypoints(params) {
605
363
  pagePath: absolutePagePath,
606
364
  appDir,
607
365
  appPaths: matchedAppPaths,
366
+ allNormalizedAppPaths: Object.keys(appPathsPerRoute),
608
367
  pageExtensions,
609
368
  basePath: config.basePath,
610
369
  assetPrefix: config.assetPrefix,
@@ -677,6 +436,7 @@ async function createEntrypoints(params) {
677
436
  pagePath: absolutePagePath,
678
437
  appDir: appDir,
679
438
  appPaths: matchedAppPaths,
439
+ allNormalizedAppPaths: Object.keys(appPathsPerRoute),
680
440
  pageExtensions,
681
441
  basePath: config.basePath,
682
442
  assetPrefix: config.assetPrefix,
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ 0 && (module.exports = {
6
+ addSlotIfNew: null,
7
+ combineSlots: null,
8
+ extractSlotFromPath: null,
9
+ extractSlotsFromRoutes: null
10
+ });
11
+ function _export(target, all) {
12
+ for(var name in all)Object.defineProperty(target, name, {
13
+ enumerable: true,
14
+ get: all[name]
15
+ });
16
+ }
17
+ _export(exports, {
18
+ addSlotIfNew: function() {
19
+ return addSlotIfNew;
20
+ },
21
+ combineSlots: function() {
22
+ return combineSlots;
23
+ },
24
+ extractSlotFromPath: function() {
25
+ return extractSlotFromPath;
26
+ },
27
+ extractSlotsFromRoutes: function() {
28
+ return extractSlotsFromRoutes;
29
+ }
30
+ });
31
+ const _apppaths = require("../shared/lib/router/utils/app-paths");
32
+ const _segment = require("../shared/lib/segment");
33
+ function extractSlotFromPath(pagePath) {
34
+ const segments = pagePath.split('/');
35
+ for(let i = segments.length - 1; i >= 0; i--){
36
+ const segment = segments[i];
37
+ if ((0, _segment.isParallelRouteSegment)(segment)) {
38
+ return {
39
+ name: segment.slice(1),
40
+ parent: (0, _apppaths.normalizeAppPath)(segments.slice(0, i).join('/'))
41
+ };
42
+ }
43
+ }
44
+ return undefined;
45
+ }
46
+ function addSlotIfNew(slots, pagePath) {
47
+ const slot = extractSlotFromPath(pagePath);
48
+ if (!slot) return false;
49
+ if (slots.some((s)=>s.name === slot.name && s.parent === slot.parent)) return false;
50
+ slots.push(slot);
51
+ return true;
52
+ }
53
+ function extractSlotsFromRoutes(routes, skipRoutes) {
54
+ const slots = [];
55
+ for (const [route] of Object.entries(routes)){
56
+ if (skipRoutes == null ? void 0 : skipRoutes.has(route)) continue;
57
+ addSlotIfNew(slots, route);
58
+ }
59
+ return slots;
60
+ }
61
+ function combineSlots(...slotArrays) {
62
+ const slotSet = new Set();
63
+ const result = [];
64
+ for (const slots of slotArrays){
65
+ for (const slot of slots){
66
+ const key = `${slot.name}:${slot.parent}`;
67
+ if (!slotSet.has(key)) {
68
+ slotSet.add(key);
69
+ result.push(slot);
70
+ }
71
+ }
72
+ }
73
+ return result;
74
+ }
75
+
76
+ //# sourceMappingURL=file-classifier.js.map
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "getSupportedBrowsers", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return getSupportedBrowsers;
9
+ }
10
+ });
11
+ const _browserslist = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/browserslist"));
12
+ const _constants = require("../shared/lib/constants");
13
+ function _interop_require_default(obj) {
14
+ return obj && obj.__esModule ? obj : {
15
+ default: obj
16
+ };
17
+ }
18
+ function getSupportedBrowsers(dir, isDevelopment) {
19
+ let browsers;
20
+ try {
21
+ const browsersListConfig = _browserslist.default.loadConfig({
22
+ path: dir,
23
+ env: isDevelopment ? 'development' : 'production'
24
+ });
25
+ // Running `browserslist` resolves `extends` and other config features into a list of browsers
26
+ if (browsersListConfig && browsersListConfig.length > 0) {
27
+ browsers = (0, _browserslist.default)(browsersListConfig);
28
+ }
29
+ } catch {}
30
+ // When user has browserslist use that target
31
+ if (browsers && browsers.length > 0) {
32
+ return browsers;
33
+ }
34
+ // Uses modern browsers as the default.
35
+ return _constants.MODERN_BROWSERSLIST_TARGET;
36
+ }
37
+
38
+ //# sourceMappingURL=get-supported-browsers.js.map
@@ -26,6 +26,7 @@ const _log = /*#__PURE__*/ _interop_require_wildcard(require("./output/log"));
26
26
  const _getTypeScriptConfiguration = require("../lib/typescript/getTypeScriptConfiguration");
27
27
  const _iserror = /*#__PURE__*/ _interop_require_default(require("../lib/is-error"));
28
28
  const _hasnecessarydependencies = require("../lib/has-necessary-dependencies");
29
+ const _codeframe = require("../shared/lib/errors/code-frame");
29
30
  function _interop_require_default(obj) {
30
31
  return obj && obj.__esModule ? obj : {
31
32
  default: obj
@@ -84,18 +85,17 @@ function parseJsonFile(filePath) {
84
85
  return JSON5.parse(contents);
85
86
  } catch (err) {
86
87
  if (!(0, _iserror.default)(err)) throw err;
87
- const { codeFrameColumns } = require('next/dist/compiled/babel/code-frame');
88
- const codeFrame = codeFrameColumns(String(contents), {
88
+ const codeFrame = (0, _codeframe.codeFrameColumns)(String(contents), {
89
89
  start: {
90
- line: err.lineNumber || 0,
91
- column: err.columnNumber || 0
90
+ line: err.lineNumber || 1,
91
+ column: err.columnNumber || undefined
92
92
  }
93
93
  }, {
94
94
  message: err.message,
95
- highlightCode: true
95
+ color: true
96
96
  });
97
- throw Object.defineProperty(new Error(`Failed to parse "${filePath}":\n${codeFrame}`), "__NEXT_ERROR_CODE", {
98
- value: "E232",
97
+ throw Object.defineProperty(new Error(`Failed to parse "${filePath}":\n${codeFrame ?? err.message}`), "__NEXT_ERROR_CODE", {
98
+ value: "E1087",
99
99
  enumerable: false,
100
100
  configurable: true
101
101
  });