@vectorize-io/hindsight-control-plane 0.2.0 → 0.3.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 (397) hide show
  1. package/package.json +1 -1
  2. package/standalone/.next/BUILD_ID +1 -1
  3. package/standalone/.next/app-path-routes-manifest.json +2 -0
  4. package/standalone/.next/build-manifest.json +7 -8
  5. package/standalone/.next/prerender-manifest.json +3 -7
  6. package/standalone/.next/required-server-files.json +40 -193
  7. package/standalone/.next/routes-manifest.json +17 -1
  8. package/standalone/.next/server/app/_global-error/page/build-manifest.json +5 -6
  9. package/standalone/.next/server/app/_global-error/page.js +2 -2
  10. package/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  11. package/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  12. package/standalone/.next/server/app/_global-error.html +2 -2
  13. package/standalone/.next/server/app/_global-error.rsc +8 -8
  14. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  15. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +8 -8
  16. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +4 -6
  17. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
  18. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  19. package/standalone/.next/server/app/_not-found/page/build-manifest.json +5 -6
  20. package/standalone/.next/server/app/_not-found/page.js +2 -2
  21. package/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  22. package/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  23. package/standalone/.next/server/app/_not-found.html +1 -1
  24. package/standalone/.next/server/app/_not-found.rsc +12 -12
  25. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
  26. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +5 -7
  27. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
  28. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  29. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  30. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  31. package/standalone/.next/server/app/api/banks/[bankId]/route/app-paths-manifest.json +3 -0
  32. package/standalone/.next/server/app/api/banks/[bankId]/route/build-manifest.json +11 -0
  33. package/standalone/.next/server/app/api/banks/[bankId]/route/server-reference-manifest.json +4 -0
  34. package/standalone/.next/server/app/api/banks/[bankId]/route.js +7 -0
  35. package/standalone/.next/server/app/api/banks/[bankId]/route.js.map +5 -0
  36. package/standalone/.next/server/app/api/banks/[bankId]/route.js.nft.json +1 -0
  37. package/standalone/.next/server/app/api/banks/[bankId]/route_client-reference-manifest.js +2 -0
  38. package/standalone/.next/server/app/api/banks/route.js +3 -2
  39. package/standalone/.next/server/app/api/banks/route.js.nft.json +1 -1
  40. package/standalone/.next/server/app/api/chunks/[chunkId]/route.js +3 -2
  41. package/standalone/.next/server/app/api/chunks/[chunkId]/route.js.nft.json +1 -1
  42. package/standalone/.next/server/app/api/documents/[documentId]/route.js +3 -2
  43. package/standalone/.next/server/app/api/documents/[documentId]/route.js.nft.json +1 -1
  44. package/standalone/.next/server/app/api/documents/route.js +3 -2
  45. package/standalone/.next/server/app/api/documents/route.js.nft.json +1 -1
  46. package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route.js +3 -2
  47. package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route.js.nft.json +1 -1
  48. package/standalone/.next/server/app/api/entities/[entityId]/route.js +3 -2
  49. package/standalone/.next/server/app/api/entities/[entityId]/route.js.nft.json +1 -1
  50. package/standalone/.next/server/app/api/entities/route.js +3 -2
  51. package/standalone/.next/server/app/api/entities/route.js.nft.json +1 -1
  52. package/standalone/.next/server/app/api/graph/route.js +3 -2
  53. package/standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
  54. package/standalone/.next/server/app/api/health/route.js +2 -1
  55. package/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
  56. package/standalone/.next/server/app/api/list/route.js +3 -2
  57. package/standalone/.next/server/app/api/list/route.js.nft.json +1 -1
  58. package/standalone/.next/server/app/api/memories/[memoryId]/route/app-paths-manifest.json +3 -0
  59. package/standalone/.next/server/app/api/memories/[memoryId]/route/build-manifest.json +11 -0
  60. package/standalone/.next/server/app/api/memories/[memoryId]/route/server-reference-manifest.json +4 -0
  61. package/standalone/.next/server/app/api/memories/[memoryId]/route.js +6 -0
  62. package/standalone/.next/server/app/api/memories/[memoryId]/route.js.map +5 -0
  63. package/standalone/.next/server/app/api/memories/[memoryId]/route.js.nft.json +1 -0
  64. package/standalone/.next/server/app/api/memories/[memoryId]/route_client-reference-manifest.js +2 -0
  65. package/standalone/.next/server/app/api/memories/retain/route.js +3 -2
  66. package/standalone/.next/server/app/api/memories/retain/route.js.nft.json +1 -1
  67. package/standalone/.next/server/app/api/memories/retain_async/route.js +3 -2
  68. package/standalone/.next/server/app/api/memories/retain_async/route.js.nft.json +1 -1
  69. package/standalone/.next/server/app/api/operations/[agentId]/route.js +3 -2
  70. package/standalone/.next/server/app/api/operations/[agentId]/route.js.nft.json +1 -1
  71. package/standalone/.next/server/app/api/profile/[bankId]/route.js +3 -2
  72. package/standalone/.next/server/app/api/profile/[bankId]/route.js.nft.json +1 -1
  73. package/standalone/.next/server/app/api/recall/route.js +3 -2
  74. package/standalone/.next/server/app/api/recall/route.js.nft.json +1 -1
  75. package/standalone/.next/server/app/api/reflect/route.js +3 -2
  76. package/standalone/.next/server/app/api/reflect/route.js.nft.json +1 -1
  77. package/standalone/.next/server/app/api/stats/[agentId]/route.js +3 -2
  78. package/standalone/.next/server/app/api/stats/[agentId]/route.js.nft.json +1 -1
  79. package/standalone/.next/server/app/banks/[bankId]/page/build-manifest.json +5 -6
  80. package/standalone/.next/server/app/banks/[bankId]/page.js +2 -2
  81. package/standalone/.next/server/app/banks/[bankId]/page.js.nft.json +1 -1
  82. package/standalone/.next/server/app/banks/[bankId]/page_client-reference-manifest.js +1 -1
  83. package/standalone/.next/server/app/dashboard/page/build-manifest.json +5 -6
  84. package/standalone/.next/server/app/dashboard/page.js +2 -2
  85. package/standalone/.next/server/app/dashboard/page.js.nft.json +1 -1
  86. package/standalone/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
  87. package/standalone/.next/server/app/dashboard.html +1 -1
  88. package/standalone/.next/server/app/dashboard.rsc +14 -14
  89. package/standalone/.next/server/app/dashboard.segments/_full.segment.rsc +14 -14
  90. package/standalone/.next/server/app/dashboard.segments/_head.segment.rsc +5 -7
  91. package/standalone/.next/server/app/dashboard.segments/_index.segment.rsc +6 -6
  92. package/standalone/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  93. package/standalone/.next/server/app/dashboard.segments/dashboard/__PAGE__.segment.rsc +4 -4
  94. package/standalone/.next/server/app/dashboard.segments/dashboard.segment.rsc +3 -3
  95. package/standalone/.next/server/app/index.html +1 -1
  96. package/standalone/.next/server/app/index.rsc +12 -12
  97. package/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  98. package/standalone/.next/server/app/index.segments/_full.segment.rsc +12 -12
  99. package/standalone/.next/server/app/index.segments/_head.segment.rsc +5 -7
  100. package/standalone/.next/server/app/index.segments/_index.segment.rsc +6 -6
  101. package/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  102. package/standalone/.next/server/app/page/build-manifest.json +5 -6
  103. package/standalone/.next/server/app/page.js +3 -3
  104. package/standalone/.next/server/app/page.js.nft.json +1 -1
  105. package/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  106. package/standalone/.next/server/app-paths-manifest.json +2 -0
  107. package/standalone/.next/server/chunks/[root-of-the-server]__116b0d31._.js +3 -0
  108. package/standalone/.next/server/chunks/[root-of-the-server]__296b95db._.js +3 -0
  109. package/standalone/.next/server/chunks/[root-of-the-server]__356491b1._.js +3 -0
  110. package/standalone/.next/server/chunks/[root-of-the-server]__37560d9a._.js +3 -0
  111. package/standalone/.next/server/chunks/[root-of-the-server]__478d7304._.js +3 -0
  112. package/standalone/.next/server/chunks/[root-of-the-server]__51072426._.js +3 -0
  113. package/standalone/.next/server/chunks/[root-of-the-server]__517fcb62._.js +3 -0
  114. package/standalone/.next/server/chunks/[root-of-the-server]__57dac9c2._.js +3 -0
  115. package/standalone/.next/server/chunks/[root-of-the-server]__6872cebd._.js +3 -0
  116. package/standalone/.next/server/chunks/[root-of-the-server]__687469c1._.js +3 -0
  117. package/standalone/.next/server/chunks/[root-of-the-server]__71e0e3b9._.js +21 -0
  118. package/standalone/.next/server/chunks/[root-of-the-server]__8241ce67._.js +3 -0
  119. package/standalone/.next/server/chunks/[root-of-the-server]__85fada80._.js +3 -0
  120. package/standalone/.next/server/chunks/[root-of-the-server]__9a7529ab._.js +1 -1
  121. package/standalone/.next/server/chunks/[root-of-the-server]__9af3dcb2._.js +3 -0
  122. package/standalone/.next/server/chunks/[root-of-the-server]__ab5df0f3._.js +3 -0
  123. package/standalone/.next/server/chunks/[root-of-the-server]__b9387f6f._.js +3 -0
  124. package/standalone/.next/server/chunks/[root-of-the-server]__e4e9fd7e._.js +3 -0
  125. package/standalone/.next/server/chunks/[root-of-the-server]__ef34dcbb._.js +3 -0
  126. package/standalone/.next/server/chunks/[root-of-the-server]__fd2d4ac3._.js +3 -0
  127. package/standalone/.next/server/chunks/[turbopack]_runtime.js +32 -7
  128. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_banks_[bankId]_route_actions_e35b026c.js +3 -0
  129. package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_memories_[memoryId]_route_actions_461fd16c.js +3 -0
  130. package/standalone/.next/server/chunks/hindsight-clients_typescript_dist_79330c4c._.js +3 -0
  131. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__3f6f18bb._.js +1 -1
  132. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__655f8d11._.js +6 -2
  133. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__8dd83d7a._.js +1 -1
  134. package/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +32 -7
  135. package/standalone/.next/server/chunks/ssr/_04b70dca._.js +6 -0
  136. package/standalone/.next/server/chunks/ssr/_26df66d0._.js +2 -2
  137. package/standalone/.next/server/chunks/ssr/_407ede86._.js +9 -0
  138. package/standalone/.next/server/chunks/ssr/_53a4aa41._.js +2 -2
  139. package/standalone/.next/server/chunks/ssr/_6f1a7a53._.js +6 -0
  140. package/standalone/.next/server/chunks/ssr/_944e56a6._.js +2 -2
  141. package/standalone/.next/server/chunks/ssr/_e3307836._.js +9 -0
  142. package/standalone/.next/server/chunks/ssr/hindsight-control-plane_src_fe96d618._.js +1 -1
  143. package/standalone/.next/server/chunks/ssr/node_modules_256e9ddd._.js +3 -0
  144. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_08570d7f._.js +2 -2
  145. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_4b9a0874._.js +3 -0
  146. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_89742413.js +2 -2
  147. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js +6 -0
  148. package/standalone/.next/server/middleware-build-manifest.js +5 -6
  149. package/standalone/.next/server/pages/404.html +1 -1
  150. package/standalone/.next/server/pages/500.html +2 -2
  151. package/standalone/.next/server/server-reference-manifest.js +1 -1
  152. package/standalone/.next/server/server-reference-manifest.json +1 -1
  153. package/standalone/.next/static/chunks/068dff78c3e35897.css +2 -0
  154. package/standalone/.next/static/chunks/30ea11065999f7ac.js +1 -0
  155. package/standalone/.next/static/chunks/5777bc08048e2edc.js +4 -0
  156. package/standalone/.next/static/chunks/5d60d221a60086fb.js +1 -0
  157. package/standalone/.next/static/chunks/7340adf74ff47ec0.js +1 -0
  158. package/standalone/.next/static/chunks/8ca05de898c11578.js +1 -0
  159. package/standalone/.next/static/chunks/9b12d8cc6a26cbbc.js +7 -0
  160. package/standalone/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
  161. package/standalone/.next/static/chunks/c1c4c028479eeb7d.js +7 -0
  162. package/standalone/.next/static/chunks/eef1ea5ced749e04.js +2 -0
  163. package/standalone/.next/static/chunks/f37acefc5ba19606.js +1 -0
  164. package/standalone/.next/static/chunks/turbopack-59d7bb1a28984373.js +4 -0
  165. package/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +46 -0
  166. package/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  167. package/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +1 -0
  168. package/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  169. package/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +42 -0
  170. package/standalone/node_modules/@img/sharp-libvips-linux-x64/versions.json +30 -0
  171. package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
  172. package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  173. package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  174. package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  175. package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  176. package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  177. package/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  178. package/standalone/node_modules/@img/sharp-linux-x64/package.json +46 -0
  179. package/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  180. package/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  181. package/standalone/node_modules/@next/env/package.json +4 -4
  182. package/standalone/node_modules/next/dist/build/analyze/index.js +242 -0
  183. package/standalone/node_modules/next/dist/build/define-env.js +22 -13
  184. package/standalone/node_modules/next/dist/build/entries.js +5 -5
  185. package/standalone/node_modules/next/dist/build/generate-routes-manifest.js +91 -0
  186. package/standalone/node_modules/next/dist/build/index.js +172 -223
  187. package/standalone/node_modules/next/dist/build/output/log.js +4 -7
  188. package/standalone/node_modules/next/dist/build/segment-config/app/app-segments.js +23 -99
  189. package/standalone/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +3 -3
  190. package/standalone/node_modules/next/dist/build/spinner.js +3 -3
  191. package/standalone/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
  192. package/standalone/node_modules/next/dist/build/static-paths/app.js +69 -210
  193. package/standalone/node_modules/next/dist/build/static-paths/utils.js +83 -11
  194. package/standalone/node_modules/next/dist/build/swc/index.js +10 -6
  195. package/standalone/node_modules/next/dist/build/templates/app-page.js +21 -14
  196. package/standalone/node_modules/next/dist/build/templates/app-route.js +8 -10
  197. package/standalone/node_modules/next/dist/build/templates/edge-app-route.js +7 -10
  198. package/standalone/node_modules/next/dist/build/templates/edge-ssr-app.js +16 -20
  199. package/standalone/node_modules/next/dist/build/templates/edge-ssr.js +20 -14
  200. package/standalone/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
  201. package/standalone/node_modules/next/dist/build/templates/middleware.js +7 -6
  202. package/standalone/node_modules/next/dist/build/templates/pages-edge-api.js +3 -2
  203. package/standalone/node_modules/next/dist/build/turbopack-analyze/index.js +116 -0
  204. package/standalone/node_modules/next/dist/build/turbopack-build/impl.js +2 -1
  205. package/standalone/node_modules/next/dist/build/type-check.js +7 -8
  206. package/standalone/node_modules/next/dist/build/utils.js +45 -4
  207. package/standalone/node_modules/next/dist/build/validate-app-paths.js +242 -0
  208. package/standalone/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +20 -2
  209. package/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +2 -5
  210. package/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +4 -11
  211. package/standalone/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +1 -1
  212. package/standalone/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +1 -1
  213. package/standalone/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +3 -0
  214. package/standalone/node_modules/next/dist/build/webpack-build/impl.js +1 -0
  215. package/standalone/node_modules/next/dist/build/webpack-config.js +35 -3
  216. package/standalone/node_modules/next/dist/cli/next-test.js +3 -5
  217. package/standalone/node_modules/next/dist/client/components/app-router-headers.js +5 -0
  218. package/standalone/node_modules/next/dist/client/components/app-router-instance.js +3 -11
  219. package/standalone/node_modules/next/dist/client/components/app-router.js +8 -28
  220. package/standalone/node_modules/next/dist/client/components/navigation-devtools.js +5 -7
  221. package/standalone/node_modules/next/dist/client/components/navigation.js +4 -3
  222. package/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +3 -22
  223. package/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +6 -18
  224. package/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +844 -590
  225. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +4 -76
  226. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +21 -18
  227. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +48 -85
  228. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +25 -10
  229. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +126 -113
  230. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +30 -39
  231. package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -1
  232. package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +2 -2
  233. package/standalone/node_modules/next/dist/client/components/segment-cache/cache-map.js +13 -18
  234. package/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +27 -14
  235. package/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +3 -1
  236. package/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +176 -133
  237. package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +12 -12
  238. package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +12 -12
  239. package/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +3 -3
  240. package/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
  241. package/standalone/node_modules/next/dist/compiled/react-is/package.json +1 -1
  242. package/standalone/node_modules/next/dist/lib/build-custom-route.js +4 -4
  243. package/standalone/node_modules/next/dist/lib/constants.js +0 -5
  244. package/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +0 -1
  245. package/standalone/node_modules/next/dist/lib/helpers/get-npx-command.js +3 -3
  246. package/standalone/node_modules/next/dist/lib/inline-static-env.js +1 -1
  247. package/standalone/node_modules/next/dist/lib/metadata/metadata.js +17 -11
  248. package/standalone/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
  249. package/standalone/node_modules/next/dist/lib/resolve-build-paths.js +44 -76
  250. package/standalone/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
  251. package/standalone/node_modules/next/dist/lib/static-env.js +6 -6
  252. package/standalone/node_modules/next/dist/lib/turbopack-warning.js +3 -5
  253. package/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +61 -5
  254. package/standalone/node_modules/next/dist/lib/typescript/type-paths.js +56 -0
  255. package/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +6 -17
  256. package/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +10 -2
  257. package/standalone/node_modules/next/dist/lib/worker.js +17 -9
  258. package/standalone/node_modules/next/dist/server/app-render/action-handler.js +113 -77
  259. package/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +36 -15
  260. package/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +36 -15
  261. package/standalone/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
  262. package/standalone/node_modules/next/dist/server/app-render/app-render.js +804 -748
  263. package/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +8 -2
  264. package/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +1 -1
  265. package/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +42 -75
  266. package/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +127 -14
  267. package/standalone/node_modules/next/dist/server/app-render/encryption-utils.js +3 -108
  268. package/standalone/node_modules/next/dist/server/app-render/encryption.js +4 -3
  269. package/standalone/node_modules/next/dist/server/app-render/flight-render-result.js +3 -2
  270. package/standalone/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +9 -8
  271. package/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
  272. package/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +257 -0
  273. package/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +25 -8
  274. package/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +161 -15
  275. package/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +67 -20
  276. package/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +2 -2
  277. package/standalone/node_modules/next/dist/server/async-storage/work-store.js +2 -1
  278. package/standalone/node_modules/next/dist/server/base-server.js +32 -23
  279. package/standalone/node_modules/next/dist/server/config-schema.js +8 -1
  280. package/standalone/node_modules/next/dist/server/config-shared.js +83 -2
  281. package/standalone/node_modules/next/dist/server/config.js +24 -17
  282. package/standalone/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
  283. package/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +37 -25
  284. package/standalone/node_modules/next/dist/server/dev/hot-reloader-types.js +1 -0
  285. package/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +62 -57
  286. package/standalone/node_modules/next/dist/server/dev/log-requests.js +11 -3
  287. package/standalone/node_modules/next/dist/server/dev/messages.js +10 -0
  288. package/standalone/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
  289. package/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +10 -0
  290. package/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
  291. package/standalone/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +2 -2
  292. package/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +6 -10
  293. package/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +4 -4
  294. package/standalone/node_modules/next/dist/server/lib/lazy-result.js +1 -1
  295. package/standalone/node_modules/next/dist/server/lib/patch-fetch.js +9 -9
  296. package/standalone/node_modules/next/dist/server/lib/router-server.js +43 -29
  297. package/standalone/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +0 -21
  298. package/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +2 -7
  299. package/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +8 -4
  300. package/standalone/node_modules/next/dist/server/lib/start-server.js +3 -3
  301. package/standalone/node_modules/next/dist/server/lib/trace/tracer.js +4 -0
  302. package/standalone/node_modules/next/dist/server/load-components.js +3 -9
  303. package/standalone/node_modules/next/dist/server/next-server.js +19 -18
  304. package/standalone/node_modules/next/dist/server/next.js +1 -1
  305. package/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +570 -0
  306. package/standalone/node_modules/next/dist/server/node-environment-extensions/utils.js +60 -3
  307. package/standalone/node_modules/next/dist/server/node-environment.js +1 -0
  308. package/standalone/node_modules/next/dist/server/patch-error-inspect.js +7 -4
  309. package/standalone/node_modules/next/dist/server/request/fallback-params.js +23 -66
  310. package/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +2 -2
  311. package/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +6 -3
  312. package/standalone/node_modules/next/dist/server/route-modules/route-module.js +79 -18
  313. package/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +28 -4
  314. package/standalone/node_modules/next/dist/server/typescript/rules/config.js +50 -6
  315. package/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +68 -23
  316. package/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +7 -5
  317. package/standalone/node_modules/next/dist/server/web/sandbox/context.js +8 -9
  318. package/standalone/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +2 -1
  319. package/standalone/node_modules/next/dist/server/web/spec-extension/revalidate.js +7 -3
  320. package/standalone/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
  321. package/standalone/node_modules/next/dist/shared/lib/constants.js +6 -1
  322. package/standalone/node_modules/next/dist/shared/lib/deployment-id.js +36 -0
  323. package/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  324. package/standalone/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +5 -0
  325. package/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
  326. package/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +20 -49
  327. package/standalone/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +6 -6
  328. package/standalone/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
  329. package/standalone/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
  330. package/standalone/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +3 -24
  331. package/standalone/node_modules/next/dist/shared/lib/segment.js +5 -0
  332. package/standalone/node_modules/next/dist/shared/lib/turbopack/utils.js +6 -5
  333. package/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  334. package/standalone/node_modules/next/dist/telemetry/events/build.js +11 -0
  335. package/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
  336. package/standalone/node_modules/next/package.json +20 -18
  337. package/standalone/node_modules/react/cjs/react.production.js +1 -1
  338. package/standalone/node_modules/react/package.json +1 -1
  339. package/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +1 -1
  340. package/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +1 -1
  341. package/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +3 -3
  342. package/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +3 -3
  343. package/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +3 -3
  344. package/standalone/node_modules/react-dom/cjs/react-dom.production.js +1 -1
  345. package/standalone/node_modules/react-dom/package.json +2 -2
  346. package/standalone/package.json +1 -1
  347. package/standalone/server.js +1 -1
  348. package/standalone/.next/server/chunks/[root-of-the-server]__02a1e7f7._.js +0 -3
  349. package/standalone/.next/server/chunks/[root-of-the-server]__0f1b189c._.js +0 -3
  350. package/standalone/.next/server/chunks/[root-of-the-server]__228c769f._.js +0 -3
  351. package/standalone/.next/server/chunks/[root-of-the-server]__317b54d0._.js +0 -21
  352. package/standalone/.next/server/chunks/[root-of-the-server]__464d3847._.js +0 -3
  353. package/standalone/.next/server/chunks/[root-of-the-server]__5e1d146d._.js +0 -3
  354. package/standalone/.next/server/chunks/[root-of-the-server]__6ee44ea3._.js +0 -3
  355. package/standalone/.next/server/chunks/[root-of-the-server]__73093267._.js +0 -3
  356. package/standalone/.next/server/chunks/[root-of-the-server]__81c0d784._.js +0 -3
  357. package/standalone/.next/server/chunks/[root-of-the-server]__9c3dd746._.js +0 -3
  358. package/standalone/.next/server/chunks/[root-of-the-server]__bae0f53c._.js +0 -3
  359. package/standalone/.next/server/chunks/[root-of-the-server]__be9afc00._.js +0 -3
  360. package/standalone/.next/server/chunks/[root-of-the-server]__d2485edb._.js +0 -3
  361. package/standalone/.next/server/chunks/[root-of-the-server]__d4b39930._.js +0 -3
  362. package/standalone/.next/server/chunks/[root-of-the-server]__d4f9d631._.js +0 -3
  363. package/standalone/.next/server/chunks/[root-of-the-server]__e5a6b81d._.js +0 -3
  364. package/standalone/.next/server/chunks/[root-of-the-server]__f318615b._.js +0 -3
  365. package/standalone/.next/server/chunks/ssr/_3476210c._.js +0 -6
  366. package/standalone/.next/server/chunks/ssr/_5e906836._.js +0 -9
  367. package/standalone/.next/server/chunks/ssr/_8362f37b._.js +0 -6
  368. package/standalone/.next/server/chunks/ssr/_e8cbc2be._.js +0 -9
  369. package/standalone/.next/server/chunks/ssr/node_modules_5363a9de._.js +0 -3
  370. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_cc88faaa._.js +0 -3
  371. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_3fe9760a._.js +0 -6
  372. package/standalone/.next/static/chunks/023d923a37d494fc.js +0 -1
  373. package/standalone/.next/static/chunks/0e1b9f3295e06ab1.js +0 -1
  374. package/standalone/.next/static/chunks/0e662c07abb2cacd.js +0 -1
  375. package/standalone/.next/static/chunks/247eb132b7f7b574.js +0 -1
  376. package/standalone/.next/static/chunks/497f7b5edc7d3fce.js +0 -1
  377. package/standalone/.next/static/chunks/4a2e6ca9bc162ffe.js +0 -4
  378. package/standalone/.next/static/chunks/9bc5002cc495aadf.js +0 -7
  379. package/standalone/.next/static/chunks/9eef728357965f0b.js +0 -7
  380. package/standalone/.next/static/chunks/c0409be3e0eda16b.js +0 -1
  381. package/standalone/.next/static/chunks/d0cdc56d06040c69.js +0 -2
  382. package/standalone/.next/static/chunks/f3b9062eed4c1661.css +0 -2
  383. package/standalone/.next/static/chunks/turbopack-030018f439265ea0.js +0 -3
  384. package/standalone/node_modules/next/dist/build/deployment-id.js +0 -18
  385. package/standalone/node_modules/next/dist/client/components/router-reducer/apply-flight-data.js +0 -53
  386. package/standalone/node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js +0 -105
  387. package/standalone/node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js +0 -110
  388. package/standalone/node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js +0 -131
  389. package/standalone/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js +0 -25
  390. package/standalone/node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js +0 -32
  391. package/standalone/node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js +0 -104
  392. package/standalone/node_modules/next/dist/lib/server-external-packages.json +0 -75
  393. package/standalone/node_modules/next/dist/server/app-render/action-utils.js +0 -90
  394. package/standalone/node_modules/next/dist/server/normalizers/request/prefetch-rsc.js +0 -31
  395. /package/standalone/.next/static/{49bdaGRmDVYO0WSBsNFA3 → FoyZVJhqn8jToZ2jQdT4e}/_buildManifest.js +0 -0
  396. /package/standalone/.next/static/{49bdaGRmDVYO0WSBsNFA3 → FoyZVJhqn8jToZ2jQdT4e}/_clientMiddlewareManifest.json +0 -0
  397. /package/standalone/.next/static/{49bdaGRmDVYO0WSBsNFA3 → FoyZVJhqn8jToZ2jQdT4e}/_ssgManifest.js +0 -0
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- 0 && (module.exports = {
6
- fillCacheWithNewSubTreeData: null,
7
- fillCacheWithNewSubTreeDataButOnlyLoading: null
8
- });
9
- function _export(target, all) {
10
- for(var name in all)Object.defineProperty(target, name, {
11
- enumerable: true,
12
- get: all[name]
13
- });
14
- }
15
- _export(exports, {
16
- fillCacheWithNewSubTreeData: function() {
17
- return fillCacheWithNewSubTreeData;
18
- },
19
- fillCacheWithNewSubTreeDataButOnlyLoading: function() {
20
- return fillCacheWithNewSubTreeDataButOnlyLoading;
21
- }
22
- });
23
- const _invalidatecachebyrouterstate = require("./invalidate-cache-by-router-state");
24
- const _filllazyitemstillleafwithhead = require("./fill-lazy-items-till-leaf-with-head");
25
- const _createroutercachekey = require("./create-router-cache-key");
26
- const _segment = require("../../../shared/lib/segment");
27
- /**
28
- * Common logic for filling cache with new sub tree data.
29
- */ function fillCacheHelper(navigatedAt, newCache, existingCache, flightData, fillLazyItems) {
30
- const { segmentPath, seedData: cacheNodeSeedData, tree: treePatch, head } = flightData;
31
- let newCacheNode = newCache;
32
- let existingCacheNode = existingCache;
33
- for(let i = 0; i < segmentPath.length; i += 2){
34
- const parallelRouteKey = segmentPath[i];
35
- const segment = segmentPath[i + 1];
36
- // segmentPath is a repeating tuple of parallelRouteKey and segment
37
- // we know we've hit the last entry we've reached our final pair
38
- const isLastEntry = i === segmentPath.length - 2;
39
- const cacheKey = (0, _createroutercachekey.createRouterCacheKey)(segment);
40
- const existingChildSegmentMap = existingCacheNode.parallelRoutes.get(parallelRouteKey);
41
- if (!existingChildSegmentMap) {
42
- continue;
43
- }
44
- let childSegmentMap = newCacheNode.parallelRoutes.get(parallelRouteKey);
45
- if (!childSegmentMap || childSegmentMap === existingChildSegmentMap) {
46
- childSegmentMap = new Map(existingChildSegmentMap);
47
- newCacheNode.parallelRoutes.set(parallelRouteKey, childSegmentMap);
48
- }
49
- const existingChildCacheNode = existingChildSegmentMap.get(cacheKey);
50
- let childCacheNode = childSegmentMap.get(cacheKey);
51
- if (isLastEntry) {
52
- if (cacheNodeSeedData && (!childCacheNode || !childCacheNode.lazyData || childCacheNode === existingChildCacheNode)) {
53
- const rsc = cacheNodeSeedData[0];
54
- const loading = cacheNodeSeedData[2];
55
- childCacheNode = {
56
- lazyData: null,
57
- // When `fillLazyItems` is false, we only want to fill the RSC data for the layout,
58
- // not the page segment.
59
- rsc: fillLazyItems || segment !== _segment.PAGE_SEGMENT_KEY ? rsc : null,
60
- prefetchRsc: null,
61
- head: null,
62
- prefetchHead: null,
63
- loading,
64
- parallelRoutes: fillLazyItems && existingChildCacheNode ? new Map(existingChildCacheNode.parallelRoutes) : new Map(),
65
- navigatedAt
66
- };
67
- if (existingChildCacheNode && fillLazyItems) {
68
- (0, _invalidatecachebyrouterstate.invalidateCacheByRouterState)(childCacheNode, existingChildCacheNode, treePatch);
69
- }
70
- if (fillLazyItems) {
71
- (0, _filllazyitemstillleafwithhead.fillLazyItemsTillLeafWithHead)(navigatedAt, childCacheNode, existingChildCacheNode, treePatch, cacheNodeSeedData, head);
72
- }
73
- childSegmentMap.set(cacheKey, childCacheNode);
74
- }
75
- continue;
76
- }
77
- if (!childCacheNode || !existingChildCacheNode) {
78
- continue;
79
- }
80
- if (childCacheNode === existingChildCacheNode) {
81
- childCacheNode = {
82
- lazyData: childCacheNode.lazyData,
83
- rsc: childCacheNode.rsc,
84
- prefetchRsc: childCacheNode.prefetchRsc,
85
- head: childCacheNode.head,
86
- prefetchHead: childCacheNode.prefetchHead,
87
- parallelRoutes: new Map(childCacheNode.parallelRoutes),
88
- loading: childCacheNode.loading
89
- };
90
- childSegmentMap.set(cacheKey, childCacheNode);
91
- }
92
- // Move deeper into the cache nodes
93
- newCacheNode = childCacheNode;
94
- existingCacheNode = existingChildCacheNode;
95
- }
96
- }
97
- function fillCacheWithNewSubTreeData(navigatedAt, newCache, existingCache, flightData) {
98
- fillCacheHelper(navigatedAt, newCache, existingCache, flightData, true);
99
- }
100
- function fillCacheWithNewSubTreeDataButOnlyLoading(navigatedAt, newCache, existingCache, flightData) {
101
- fillCacheHelper(navigatedAt, newCache, existingCache, flightData, false);
102
- }
103
-
104
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
105
- Object.defineProperty(exports.default, '__esModule', { value: true });
106
- Object.assign(exports.default, exports);
107
- module.exports = exports.default;
108
- }
109
-
110
- //# sourceMappingURL=fill-cache-with-new-subtree-data.js.map
@@ -1,131 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "fillLazyItemsTillLeafWithHead", {
6
- enumerable: true,
7
- get: function() {
8
- return fillLazyItemsTillLeafWithHead;
9
- }
10
- });
11
- const _createroutercachekey = require("./create-router-cache-key");
12
- function fillLazyItemsTillLeafWithHead(navigatedAt, newCache, existingCache, routerState, cacheNodeSeedData, head) {
13
- const isLastSegment = Object.keys(routerState[1]).length === 0;
14
- if (isLastSegment) {
15
- newCache.head = head;
16
- return;
17
- }
18
- // Remove segment that we got data for so that it is filled in during rendering of rsc.
19
- for(const key in routerState[1]){
20
- const parallelRouteState = routerState[1][key];
21
- const segmentForParallelRoute = parallelRouteState[0];
22
- const cacheKey = (0, _createroutercachekey.createRouterCacheKey)(segmentForParallelRoute);
23
- // TODO: We should traverse the cacheNodeSeedData tree instead of the router
24
- // state tree. Ideally, they would always be the same shape, but because of
25
- // the loading.js pattern, cacheNodeSeedData sometimes only represents a
26
- // partial tree. That's why this node is sometimes null. Once PPR lands,
27
- // loading.js will no longer have special behavior and we can traverse the
28
- // data tree instead.
29
- //
30
- // We should also consider merging the router state tree and the data tree
31
- // in the response format, so that we don't have to send the keys twice.
32
- // Then the client can convert them into separate representations.
33
- const parallelSeedData = cacheNodeSeedData !== null && cacheNodeSeedData[1][key] !== undefined ? cacheNodeSeedData[1][key] : null;
34
- if (existingCache) {
35
- const existingParallelRoutesCacheNode = existingCache.parallelRoutes.get(key);
36
- if (existingParallelRoutesCacheNode) {
37
- let parallelRouteCacheNode = new Map(existingParallelRoutesCacheNode);
38
- const existingCacheNode = parallelRouteCacheNode.get(cacheKey);
39
- let newCacheNode;
40
- if (parallelSeedData !== null) {
41
- // New data was sent from the server.
42
- const seedNode = parallelSeedData[0];
43
- const loading = parallelSeedData[2];
44
- newCacheNode = {
45
- lazyData: null,
46
- rsc: seedNode,
47
- // This is a PPR-only field. When PPR is enabled, we shouldn't hit
48
- // this path during a navigation, but until PPR is fully implemented
49
- // yet it's possible the existing node does have a non-null
50
- // `prefetchRsc`. As an incremental step, we'll just de-opt to the
51
- // old behavior — no PPR value.
52
- prefetchRsc: null,
53
- head: null,
54
- prefetchHead: null,
55
- loading,
56
- parallelRoutes: new Map(existingCacheNode?.parallelRoutes),
57
- navigatedAt
58
- };
59
- } else {
60
- // No data available for this node. This will trigger a lazy fetch
61
- // during render.
62
- newCacheNode = {
63
- lazyData: null,
64
- rsc: null,
65
- prefetchRsc: null,
66
- head: null,
67
- prefetchHead: null,
68
- parallelRoutes: new Map(existingCacheNode?.parallelRoutes),
69
- loading: null,
70
- navigatedAt
71
- };
72
- }
73
- // Overrides the cache key with the new cache node.
74
- parallelRouteCacheNode.set(cacheKey, newCacheNode);
75
- // Traverse deeper to apply the head / fill lazy items till the head.
76
- fillLazyItemsTillLeafWithHead(navigatedAt, newCacheNode, existingCacheNode, parallelRouteState, parallelSeedData ? parallelSeedData : null, head);
77
- newCache.parallelRoutes.set(key, parallelRouteCacheNode);
78
- continue;
79
- }
80
- }
81
- let newCacheNode;
82
- if (parallelSeedData !== null) {
83
- // New data was sent from the server.
84
- const seedNode = parallelSeedData[0];
85
- const loading = parallelSeedData[2];
86
- newCacheNode = {
87
- lazyData: null,
88
- rsc: seedNode,
89
- prefetchRsc: null,
90
- head: null,
91
- prefetchHead: null,
92
- parallelRoutes: new Map(),
93
- loading,
94
- navigatedAt
95
- };
96
- } else {
97
- // No data available for this node. This will trigger a lazy fetch
98
- // during render.
99
- newCacheNode = {
100
- lazyData: null,
101
- rsc: null,
102
- prefetchRsc: null,
103
- head: null,
104
- prefetchHead: null,
105
- parallelRoutes: new Map(),
106
- loading: null,
107
- navigatedAt
108
- };
109
- }
110
- const existingParallelRoutes = newCache.parallelRoutes.get(key);
111
- if (existingParallelRoutes) {
112
- existingParallelRoutes.set(cacheKey, newCacheNode);
113
- } else {
114
- newCache.parallelRoutes.set(key, new Map([
115
- [
116
- cacheKey,
117
- newCacheNode
118
- ]
119
- ]));
120
- }
121
- fillLazyItemsTillLeafWithHead(navigatedAt, newCacheNode, undefined, parallelRouteState, parallelSeedData, head);
122
- }
123
- }
124
-
125
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
126
- Object.defineProperty(exports.default, '__esModule', { value: true });
127
- Object.assign(exports.default, exports);
128
- module.exports = exports.default;
129
- }
130
-
131
- //# sourceMappingURL=fill-lazy-items-till-leaf-with-head.js.map
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "handleSegmentMismatch", {
6
- enumerable: true,
7
- get: function() {
8
- return handleSegmentMismatch;
9
- }
10
- });
11
- const _navigatereducer = require("./reducers/navigate-reducer");
12
- function handleSegmentMismatch(state, action, treePatch) {
13
- if (process.env.NODE_ENV === 'development') {
14
- console.warn('Performing hard navigation because your application experienced an unrecoverable error. If this keeps occurring, please file a Next.js issue.\n\n' + 'Reason: Segment mismatch\n' + `Last Action: ${action.type}\n\n` + `Current Tree: ${JSON.stringify(state.tree)}\n\n` + `Tree Patch Payload: ${JSON.stringify(treePatch)}`);
15
- }
16
- return (0, _navigatereducer.handleExternalUrl)(state, {}, state.canonicalUrl, true);
17
- }
18
-
19
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
20
- Object.defineProperty(exports.default, '__esModule', { value: true });
21
- Object.assign(exports.default, exports);
22
- module.exports = exports.default;
23
- }
24
-
25
- //# sourceMappingURL=handle-segment-mismatch.js.map
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "invalidateCacheByRouterState", {
6
- enumerable: true,
7
- get: function() {
8
- return invalidateCacheByRouterState;
9
- }
10
- });
11
- const _createroutercachekey = require("./create-router-cache-key");
12
- function invalidateCacheByRouterState(newCache, existingCache, routerState) {
13
- // Remove segment that we got data for so that it is filled in during rendering of rsc.
14
- for(const key in routerState[1]){
15
- const segmentForParallelRoute = routerState[1][key][0];
16
- const cacheKey = (0, _createroutercachekey.createRouterCacheKey)(segmentForParallelRoute);
17
- const existingParallelRoutesCacheNode = existingCache.parallelRoutes.get(key);
18
- if (existingParallelRoutesCacheNode) {
19
- let parallelRouteCacheNode = new Map(existingParallelRoutesCacheNode);
20
- parallelRouteCacheNode.delete(cacheKey);
21
- newCache.parallelRoutes.set(key, parallelRouteCacheNode);
22
- }
23
- }
24
- }
25
-
26
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
27
- Object.defineProperty(exports.default, '__esModule', { value: true });
28
- Object.assign(exports.default, exports);
29
- module.exports = exports.default;
30
- }
31
-
32
- //# sourceMappingURL=invalidate-cache-by-router-state.js.map
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- 0 && (module.exports = {
6
- addRefreshMarkerToActiveParallelSegments: null,
7
- refreshInactiveParallelSegments: null
8
- });
9
- function _export(target, all) {
10
- for(var name in all)Object.defineProperty(target, name, {
11
- enumerable: true,
12
- get: all[name]
13
- });
14
- }
15
- _export(exports, {
16
- addRefreshMarkerToActiveParallelSegments: function() {
17
- return addRefreshMarkerToActiveParallelSegments;
18
- },
19
- refreshInactiveParallelSegments: function() {
20
- return refreshInactiveParallelSegments;
21
- }
22
- });
23
- const _applyflightdata = require("./apply-flight-data");
24
- const _fetchserverresponse = require("./fetch-server-response");
25
- const _segment = require("../../../shared/lib/segment");
26
- async function refreshInactiveParallelSegments(options) {
27
- const fetchedSegments = new Set();
28
- await refreshInactiveParallelSegmentsImpl({
29
- ...options,
30
- rootTree: options.updatedTree,
31
- fetchedSegments
32
- });
33
- }
34
- async function refreshInactiveParallelSegmentsImpl({ navigatedAt, state, updatedTree, updatedCache, includeNextUrl, fetchedSegments, rootTree = updatedTree, canonicalUrl }) {
35
- const [, parallelRoutes, refetchPath, refetchMarker] = updatedTree;
36
- const fetchPromises = [];
37
- if (refetchPath && refetchPath !== canonicalUrl && refetchMarker === 'refresh' && // it's possible for the tree to contain multiple segments that contain data at the same URL
38
- // we keep track of them so we can dedupe the requests
39
- !fetchedSegments.has(refetchPath)) {
40
- fetchedSegments.add(refetchPath) // Mark this URL as fetched
41
- ;
42
- // Eagerly kick off the fetch for the refetch path & the parallel routes. This should be fine to do as they each operate
43
- // independently on their own cache nodes, and `applyFlightData` will copy anything it doesn't care about from the existing cache.
44
- const fetchPromise = (0, _fetchserverresponse.fetchServerResponse)(new URL(refetchPath, location.origin), {
45
- // refetch from the root of the updated tree, otherwise it will be scoped to the current segment
46
- // and might not contain the data we need to patch in interception route data (such as dynamic params from a previous segment)
47
- flightRouterState: [
48
- rootTree[0],
49
- rootTree[1],
50
- rootTree[2],
51
- 'refetch'
52
- ],
53
- nextUrl: includeNextUrl ? state.nextUrl : null
54
- }).then((result)=>{
55
- if (typeof result !== 'string') {
56
- const { flightData } = result;
57
- for (const flightDataPath of flightData){
58
- // we only pass the new cache as this function is called after clearing the router cache
59
- // and filling in the new page data from the server. Meaning the existing cache is actually the cache that's
60
- // just been created & has been written to, but hasn't been "committed" yet.
61
- (0, _applyflightdata.applyFlightData)(navigatedAt, updatedCache, updatedCache, flightDataPath);
62
- }
63
- } else {
64
- // When result is a string, it suggests that the server response should have triggered an MPA navigation
65
- // I'm not 100% sure of this decision, but it seems unlikely that we'd want to introduce a redirect side effect
66
- // when refreshing on-screen data, so handling this has been ommitted.
67
- }
68
- });
69
- fetchPromises.push(fetchPromise);
70
- }
71
- for(const key in parallelRoutes){
72
- const parallelFetchPromise = refreshInactiveParallelSegmentsImpl({
73
- navigatedAt,
74
- state,
75
- updatedTree: parallelRoutes[key],
76
- updatedCache,
77
- includeNextUrl,
78
- fetchedSegments,
79
- rootTree,
80
- canonicalUrl
81
- });
82
- fetchPromises.push(parallelFetchPromise);
83
- }
84
- await Promise.all(fetchPromises);
85
- }
86
- function addRefreshMarkerToActiveParallelSegments(tree, path) {
87
- const [segment, parallelRoutes, , refetchMarker] = tree;
88
- // a page segment might also contain concatenated search params, so we do a partial match on the key
89
- if (segment.includes(_segment.PAGE_SEGMENT_KEY) && refetchMarker !== 'refresh') {
90
- tree[2] = path;
91
- tree[3] = 'refresh';
92
- }
93
- for(const key in parallelRoutes){
94
- addRefreshMarkerToActiveParallelSegments(parallelRoutes[key], path);
95
- }
96
- }
97
-
98
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
99
- Object.defineProperty(exports.default, '__esModule', { value: true });
100
- Object.assign(exports.default, exports);
101
- module.exports = exports.default;
102
- }
103
-
104
- //# sourceMappingURL=refetch-inactive-parallel-segments.js.map
@@ -1,75 +0,0 @@
1
- [
2
- "@appsignal/nodejs",
3
- "@aws-sdk/client-s3",
4
- "@aws-sdk/s3-presigned-post",
5
- "@blockfrost/blockfrost-js",
6
- "@highlight-run/node",
7
- "@huggingface/transformers",
8
- "@jpg-store/lucid-cardano",
9
- "@libsql/client",
10
- "@mikro-orm/core",
11
- "@mikro-orm/knex",
12
- "@node-rs/argon2",
13
- "@node-rs/bcrypt",
14
- "@prisma/client",
15
- "@react-pdf/renderer",
16
- "@sentry/profiling-node",
17
- "@sparticuz/chromium",
18
- "@sparticuz/chromium-min",
19
- "@statsig/statsig-node-core",
20
- "@swc/core",
21
- "@xenova/transformers",
22
- "argon2",
23
- "autoprefixer",
24
- "aws-crt",
25
- "bcrypt",
26
- "better-sqlite3",
27
- "canvas",
28
- "chromadb-default-embed",
29
- "config",
30
- "cpu-features",
31
- "cypress",
32
- "dd-trace",
33
- "eslint",
34
- "express",
35
- "firebase-admin",
36
- "htmlrewriter",
37
- "import-in-the-middle",
38
- "isolated-vm",
39
- "jest",
40
- "jsdom",
41
- "keyv",
42
- "libsql",
43
- "mdx-bundler",
44
- "mongodb",
45
- "mongoose",
46
- "newrelic",
47
- "next-mdx-remote",
48
- "next-seo",
49
- "node-cron",
50
- "node-pty",
51
- "node-web-audio-api",
52
- "onnxruntime-node",
53
- "oslo",
54
- "pg",
55
- "playwright",
56
- "playwright-core",
57
- "postcss",
58
- "prettier",
59
- "prisma",
60
- "puppeteer",
61
- "puppeteer-core",
62
- "ravendb",
63
- "require-in-the-middle",
64
- "rimraf",
65
- "sharp",
66
- "shiki",
67
- "sqlite3",
68
- "ts-node",
69
- "ts-morph",
70
- "typescript",
71
- "vscode-oniguruma",
72
- "webpack",
73
- "websocket",
74
- "zeromq"
75
- ]
@@ -1,90 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- 0 && (module.exports = {
6
- createServerModuleMap: null,
7
- selectWorkerForForwarding: null
8
- });
9
- function _export(target, all) {
10
- for(var name in all)Object.defineProperty(target, name, {
11
- enumerable: true,
12
- get: all[name]
13
- });
14
- }
15
- _export(exports, {
16
- createServerModuleMap: function() {
17
- return createServerModuleMap;
18
- },
19
- selectWorkerForForwarding: function() {
20
- return selectWorkerForForwarding;
21
- }
22
- });
23
- const _apppaths = require("../../shared/lib/router/utils/app-paths");
24
- const _pathhasprefix = require("../../shared/lib/router/utils/path-has-prefix");
25
- const _removepathprefix = require("../../shared/lib/router/utils/remove-path-prefix");
26
- const _workasyncstorageexternal = require("./work-async-storage.external");
27
- function createServerModuleMap({ serverActionsManifest }) {
28
- return new Proxy({}, {
29
- get: (_, id)=>{
30
- var _serverActionsManifest__id, _serverActionsManifest_;
31
- const workers = (_serverActionsManifest_ = serverActionsManifest[process.env.NEXT_RUNTIME === 'edge' ? 'edge' : 'node']) == null ? void 0 : (_serverActionsManifest__id = _serverActionsManifest_[id]) == null ? void 0 : _serverActionsManifest__id.workers;
32
- if (!workers) {
33
- return undefined;
34
- }
35
- const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
36
- let workerEntry;
37
- if (workStore) {
38
- workerEntry = workers[normalizeWorkerPageName(workStore.page)];
39
- } else {
40
- // If there's no work store defined, we can assume that a server
41
- // module map is needed during module evaluation, e.g. to create a
42
- // server action using a higher-order function. Therefore it should be
43
- // safe to return any entry from the manifest that matches the action
44
- // ID. They all refer to the same module ID, which must also exist in
45
- // the current page bundle. TODO: This is currently not guaranteed in
46
- // Turbopack, and needs to be fixed.
47
- workerEntry = Object.values(workers).at(0);
48
- }
49
- if (!workerEntry) {
50
- return undefined;
51
- }
52
- const { moduleId, async } = workerEntry;
53
- return {
54
- id: moduleId,
55
- name: id,
56
- chunks: [],
57
- async
58
- };
59
- }
60
- });
61
- }
62
- function selectWorkerForForwarding(actionId, pageName, serverActionsManifest) {
63
- var _serverActionsManifest__actionId;
64
- const workers = (_serverActionsManifest__actionId = serverActionsManifest[process.env.NEXT_RUNTIME === 'edge' ? 'edge' : 'node'][actionId]) == null ? void 0 : _serverActionsManifest__actionId.workers;
65
- const workerName = normalizeWorkerPageName(pageName);
66
- // no workers, nothing to forward to
67
- if (!workers) return;
68
- // if there is a worker for this page, no need to forward it.
69
- if (workers[workerName]) {
70
- return;
71
- }
72
- // otherwise, grab the first worker that has a handler for this action id
73
- return denormalizeWorkerPageName(Object.keys(workers)[0]);
74
- }
75
- /**
76
- * The flight entry loader keys actions by bundlePath.
77
- * bundlePath corresponds with the relative path (including 'app') to the page entrypoint.
78
- */ function normalizeWorkerPageName(pageName) {
79
- if ((0, _pathhasprefix.pathHasPrefix)(pageName, 'app')) {
80
- return pageName;
81
- }
82
- return 'app' + pageName;
83
- }
84
- /**
85
- * Converts a bundlePath (relative path to the entrypoint) to a routable page name
86
- */ function denormalizeWorkerPageName(bundlePath) {
87
- return (0, _apppaths.normalizeAppPath)((0, _removepathprefix.removePathPrefix)(bundlePath, 'app'));
88
- }
89
-
90
- //# sourceMappingURL=action-utils.js.map
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "PrefetchRSCPathnameNormalizer", {
6
- enumerable: true,
7
- get: function() {
8
- return PrefetchRSCPathnameNormalizer;
9
- }
10
- });
11
- const _constants = require("../../../lib/constants");
12
- const _suffix = require("./suffix");
13
- class PrefetchRSCPathnameNormalizer extends _suffix.SuffixPathnameNormalizer {
14
- constructor(){
15
- super(_constants.RSC_PREFETCH_SUFFIX);
16
- }
17
- match(pathname) {
18
- if (pathname === '/__index' + _constants.RSC_PREFETCH_SUFFIX) {
19
- return true;
20
- }
21
- return super.match(pathname);
22
- }
23
- normalize(pathname, matched) {
24
- if (pathname === '/__index' + _constants.RSC_PREFETCH_SUFFIX) {
25
- return '/';
26
- }
27
- return super.normalize(pathname, matched);
28
- }
29
- }
30
-
31
- //# sourceMappingURL=prefetch-rsc.js.map