conductor-oss 0.61.21 → 0.61.22

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 (343) hide show
  1. package/node_modules/@conductor-oss/core/package.json +1 -1
  2. package/package.json +6 -6
  3. package/web/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +46 -0
  4. package/web/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +219 -0
  5. package/web/.next/standalone/node_modules/@img/{sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 → sharp-libvips-linux-x64/lib/libvips-cpp.so.8.18.3} +0 -0
  6. package/web/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +2 -2
  7. package/web/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/versions.json +20 -20
  8. package/web/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
  9. package/web/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +219 -0
  10. package/web/.next/standalone/node_modules/@img/{sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 → sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.18.3} +0 -0
  11. package/web/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +2 -2
  12. package/web/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +20 -20
  13. package/web/.next/standalone/node_modules/@img/sharp-linux-x64/index.cjs +1 -0
  14. package/web/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64-0.35.0.node +0 -0
  15. package/web/.next/standalone/node_modules/@img/sharp-linux-x64/package.json +6 -5
  16. package/web/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/index.cjs +1 -0
  17. package/web/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64-0.35.0.node +0 -0
  18. package/web/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +6 -5
  19. package/web/.next/standalone/node_modules/@next/env/package.json +8 -9
  20. package/web/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
  21. package/web/.next/standalone/node_modules/next/dist/build/webpack-config.js +3 -3
  22. package/web/.next/standalone/node_modules/next/dist/client/dev/debug-channel.js +102 -2
  23. package/web/.next/standalone/node_modules/next/dist/compiled/http-proxy/index.js +5 -5
  24. package/web/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +11 -10
  25. package/web/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +12 -11
  26. package/web/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +14 -13
  27. package/web/.next/standalone/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +11 -10
  28. package/web/.next/standalone/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +2 -2
  29. package/web/.next/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +9 -9
  30. package/web/.next/standalone/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +9 -9
  31. package/web/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
  32. package/web/.next/standalone/node_modules/next/dist/server/app-render/action-handler.js +147 -42
  33. package/web/.next/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +52 -4
  34. package/web/.next/standalone/node_modules/next/dist/server/config-schema.js +1 -1
  35. package/web/.next/standalone/node_modules/next/dist/server/config-shared.js +0 -2
  36. package/web/.next/standalone/node_modules/next/dist/server/config.js +1 -1
  37. package/web/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
  38. package/web/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
  39. package/web/.next/standalone/node_modules/next/dist/server/image-optimizer.js +8 -27
  40. package/web/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
  41. package/web/.next/standalone/node_modules/next/dist/server/lib/encode-cache-tag.js +45 -0
  42. package/web/.next/standalone/node_modules/next/dist/server/lib/implicit-tags.js +6 -3
  43. package/web/.next/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +90 -53
  44. package/web/.next/standalone/node_modules/next/dist/server/lib/patch-fetch.js +20 -3
  45. package/web/.next/standalone/node_modules/next/dist/server/lib/router-utils/proxy-request.js +4 -0
  46. package/web/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
  47. package/web/.next/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  48. package/web/.next/standalone/node_modules/next/dist/shared/lib/router/router.js +8 -1
  49. package/web/.next/standalone/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +2 -1
  50. package/web/.next/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +12 -0
  51. package/web/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  52. package/web/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
  53. package/web/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
  54. package/web/.next/standalone/node_modules/next/package.json +10 -252
  55. package/web/.next/standalone/node_modules/postcss/lib/container.js +81 -34
  56. package/web/.next/standalone/node_modules/postcss/lib/fromJSON.js +76 -23
  57. package/web/.next/standalone/node_modules/postcss/lib/input.js +13 -4
  58. package/web/.next/standalone/node_modules/postcss/lib/lazy-result.js +55 -13
  59. package/web/.next/standalone/node_modules/postcss/lib/node.js +105 -60
  60. package/web/.next/standalone/node_modules/postcss/lib/previous-map.js +11 -2
  61. package/web/.next/standalone/node_modules/postcss/lib/processor.js +1 -1
  62. package/web/.next/standalone/node_modules/postcss/lib/stringifier.js +90 -25
  63. package/web/.next/standalone/node_modules/postcss/package.json +1 -1
  64. package/web/.next/standalone/node_modules/sharp/{lib/channel.js → dist/channel.cjs} +1 -1
  65. package/web/.next/standalone/node_modules/sharp/{lib/colour.js → dist/colour.cjs} +1 -1
  66. package/web/.next/standalone/node_modules/sharp/{lib/composite.js → dist/composite.cjs} +2 -1
  67. package/web/.next/standalone/node_modules/sharp/{lib/constructor.js → dist/constructor.cjs} +41 -29
  68. package/web/.next/standalone/node_modules/sharp/dist/index.cjs +25 -0
  69. package/web/.next/standalone/node_modules/sharp/{lib/input.js → dist/input.cjs} +19 -14
  70. package/web/.next/standalone/node_modules/sharp/{lib/libvips.js → dist/libvips.cjs} +35 -30
  71. package/web/.next/standalone/node_modules/sharp/{lib/operation.js → dist/operation.cjs} +6 -35
  72. package/web/.next/standalone/node_modules/sharp/{lib/output.js → dist/output.cjs} +142 -14
  73. package/web/.next/standalone/node_modules/sharp/{lib/resize.js → dist/resize.cjs} +19 -1
  74. package/web/.next/standalone/node_modules/sharp/dist/sharp.cjs +164 -0
  75. package/web/.next/standalone/node_modules/sharp/{lib/utility.js → dist/utility.cjs} +11 -7
  76. package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/range.js +24 -4
  77. package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/semver.js +19 -2
  78. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/clean.js +8 -0
  79. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/compare-build.js +9 -0
  80. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/compare-loose.js +5 -0
  81. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/diff.js +60 -0
  82. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/inc.js +21 -0
  83. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/major.js +5 -0
  84. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/minor.js +5 -0
  85. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/patch.js +5 -0
  86. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/prerelease.js +8 -0
  87. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/rcompare.js +5 -0
  88. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/rsort.js +5 -0
  89. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/sort.js +5 -0
  90. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/truncate.js +48 -0
  91. package/web/.next/standalone/node_modules/sharp/node_modules/semver/functions/valid.js +8 -0
  92. package/web/.next/standalone/node_modules/sharp/node_modules/semver/index.js +93 -0
  93. package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/re.js +1 -1
  94. package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/package.json +4 -4
  95. package/web/.next/standalone/node_modules/sharp/node_modules/semver/preload.js +4 -0
  96. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/gtr.js +6 -0
  97. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/intersects.js +9 -0
  98. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/ltr.js +6 -0
  99. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/max-satisfying.js +27 -0
  100. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/min-satisfying.js +26 -0
  101. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/min-version.js +63 -0
  102. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/outside.js +82 -0
  103. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/simplify.js +49 -0
  104. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/subset.js +249 -0
  105. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/to-comparators.js +10 -0
  106. package/web/.next/standalone/node_modules/sharp/node_modules/semver/ranges/valid.js +13 -0
  107. package/web/.next/standalone/node_modules/sharp/package.json +60 -49
  108. package/web/.next/standalone/package.json +3 -2
  109. package/web/.next/standalone/packages/web/.next/BUILD_ID +1 -1
  110. package/web/.next/standalone/packages/web/.next/app-path-routes-manifest.json +7 -7
  111. package/web/.next/standalone/packages/web/.next/build-manifest.json +4 -4
  112. package/web/.next/standalone/packages/web/.next/prerender-manifest.json +3 -3
  113. package/web/.next/standalone/packages/web/.next/react-loadable-manifest.json +5 -5
  114. package/web/.next/standalone/packages/web/.next/required-server-files.json +6 -1
  115. package/web/.next/standalone/packages/web/.next/server/app/__clerk/[[...path]]/route.js.nft.json +1 -1
  116. package/web/.next/standalone/packages/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  117. package/web/.next/standalone/packages/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  118. package/web/.next/standalone/packages/web/.next/server/app/_global-error.html +1 -1
  119. package/web/.next/standalone/packages/web/.next/server/app/_global-error.rsc +1 -1
  120. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  121. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  122. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  123. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  124. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  125. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  126. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js +1 -1
  127. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  128. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  129. package/web/.next/standalone/packages/web/.next/server/app/api/access/route.js.nft.json +1 -1
  130. package/web/.next/standalone/packages/web/.next/server/app/api/agents/route.js.nft.json +1 -1
  131. package/web/.next/standalone/packages/web/.next/server/app/api/app-update/route.js.nft.json +1 -1
  132. package/web/.next/standalone/packages/web/.next/server/app/api/attachments/route.js.nft.json +1 -1
  133. package/web/.next/standalone/packages/web/.next/server/app/api/auth/profile/route.js.nft.json +1 -1
  134. package/web/.next/standalone/packages/web/.next/server/app/api/boards/comments/route.js.nft.json +1 -1
  135. package/web/.next/standalone/packages/web/.next/server/app/api/boards/route.js.nft.json +1 -1
  136. package/web/.next/standalone/packages/web/.next/server/app/api/bridge/bridges/[bridgeId]/route.js.nft.json +1 -1
  137. package/web/.next/standalone/packages/web/.next/server/app/api/bridge/bridges/route.js.nft.json +1 -1
  138. package/web/.next/standalone/packages/web/.next/server/app/api/bridge/devices/[deviceId]/app-update/route.js.nft.json +1 -1
  139. package/web/.next/standalone/packages/web/.next/server/app/api/bridge/devices/[deviceId]/repair/route.js.nft.json +1 -1
  140. package/web/.next/standalone/packages/web/.next/server/app/api/bridge/devices/[deviceId]/route.js.nft.json +1 -1
  141. package/web/.next/standalone/packages/web/.next/server/app/api/bridge/devices/[deviceId]/service-restart/route.js.nft.json +1 -1
  142. package/web/.next/standalone/packages/web/.next/server/app/api/bridge/devices/claims/complete/route.js.nft.json +1 -1
  143. package/web/.next/standalone/packages/web/.next/server/app/api/bridge/devices/code/route.js.nft.json +1 -1
  144. package/web/.next/standalone/packages/web/.next/server/app/api/bridge/devices/route.js.nft.json +1 -1
  145. package/web/.next/standalone/packages/web/.next/server/app/api/bridges/route.js.nft.json +1 -1
  146. package/web/.next/standalone/packages/web/.next/server/app/api/config/route.js.nft.json +1 -1
  147. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/open/route.js.nft.json +1 -1
  148. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/route.js.nft.json +1 -1
  149. package/web/.next/standalone/packages/web/.next/server/app/api/events/route.js.nft.json +1 -1
  150. package/web/.next/standalone/packages/web/.next/server/app/api/executor/health/route.js.nft.json +1 -1
  151. package/web/.next/standalone/packages/web/.next/server/app/api/filesystem/directory/route.js.nft.json +1 -1
  152. package/web/.next/standalone/packages/web/.next/server/app/api/filesystem/pick-directory/route.js.nft.json +1 -1
  153. package/web/.next/standalone/packages/web/.next/server/app/api/github/projects/route.js.nft.json +1 -1
  154. package/web/.next/standalone/packages/web/.next/server/app/api/github/projects/sync/route.js.nft.json +1 -1
  155. package/web/.next/standalone/packages/web/.next/server/app/api/github/repos/route.js.nft.json +1 -1
  156. package/web/.next/standalone/packages/web/.next/server/app/api/github/webhook/route.js.nft.json +1 -1
  157. package/web/.next/standalone/packages/web/.next/server/app/api/health/boards/route.js.nft.json +1 -1
  158. package/web/.next/standalone/packages/web/.next/server/app/api/health/sessions/route.js.nft.json +1 -1
  159. package/web/.next/standalone/packages/web/.next/server/app/api/notifications/route.js.nft.json +1 -1
  160. package/web/.next/standalone/packages/web/.next/server/app/api/preferences/route.js.nft.json +1 -1
  161. package/web/.next/standalone/packages/web/.next/server/app/api/project-notes/backlinks/route.js.nft.json +1 -1
  162. package/web/.next/standalone/packages/web/.next/server/app/api/project-notes/daily/route.js.nft.json +1 -1
  163. package/web/.next/standalone/packages/web/.next/server/app/api/project-notes/file/route.js.nft.json +1 -1
  164. package/web/.next/standalone/packages/web/.next/server/app/api/project-notes/graph/route.js.nft.json +1 -1
  165. package/web/.next/standalone/packages/web/.next/server/app/api/project-notes/open/route.js.nft.json +1 -1
  166. package/web/.next/standalone/packages/web/.next/server/app/api/project-notes/route.js.nft.json +1 -1
  167. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/approve/route.js.nft.json +1 -1
  168. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/bindings/route.js.nft.json +1 -1
  169. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/feed/route.js.nft.json +1 -1
  170. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/feed/stream/route.js.nft.json +1 -1
  171. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/integration/route.js.nft.json +1 -1
  172. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/interrupt/route.js.nft.json +1 -1
  173. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/preferences/route.js.nft.json +1 -1
  174. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/reject/route.js.nft.json +1 -1
  175. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/route.js.nft.json +1 -1
  176. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/send/route.js.nft.json +1 -1
  177. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/tasks/[task]/handoff/route.js.nft.json +1 -1
  178. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/tasks/[task]/route.js.nft.json +1 -1
  179. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatcher/tasks/route.js.nft.json +1 -1
  180. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/dispatchers/route.js.nft.json +1 -1
  181. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/open/route.js.nft.json +1 -1
  182. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  183. package/web/.next/standalone/packages/web/.next/server/app/api/projects/[id]/setup/route.js.nft.json +1 -1
  184. package/web/.next/standalone/packages/web/.next/server/app/api/projects/route.js.nft.json +1 -1
  185. package/web/.next/standalone/packages/web/.next/server/app/api/repositories/[id]/route.js.nft.json +1 -1
  186. package/web/.next/standalone/packages/web/.next/server/app/api/repositories/route.js.nft.json +1 -1
  187. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/actions/route.js.nft.json +1 -1
  188. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/archive/route.js.nft.json +1 -1
  189. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/checks/route.js.nft.json +1 -1
  190. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/diff/route.js.nft.json +1 -1
  191. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/files/route.js.nft.json +1 -1
  192. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/keys/route.js.nft.json +1 -1
  193. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/kill/route.js.nft.json +1 -1
  194. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/output/route.js.nft.json +1 -1
  195. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/output/stream/route.js.nft.json +1 -1
  196. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/dom/route.js.nft.json +1 -1
  197. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/route.js.nft.json +1 -1
  198. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/screenshot/route.js.nft.json +1 -1
  199. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/restore/route.js.nft.json +1 -1
  200. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  201. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/send/route.js.nft.json +1 -1
  202. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/terminal/relay/route.js.nft.json +1 -1
  203. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/terminal/snapshot/route.js.nft.json +1 -1
  204. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/terminal/token/route.js.nft.json +1 -1
  205. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/terminal/ttyd/route.js.nft.json +1 -1
  206. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/terminal/ttyd/token/route.js.nft.json +1 -1
  207. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/terminal/ttyd/ws/route.js.nft.json +1 -1
  208. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/route.js.nft.json +1 -1
  209. package/web/.next/standalone/packages/web/.next/server/app/api/skills/activate/route.js.nft.json +1 -1
  210. package/web/.next/standalone/packages/web/.next/server/app/api/skills/catalog/route.js.nft.json +1 -1
  211. package/web/.next/standalone/packages/web/.next/server/app/api/skills/deactivate/route.js.nft.json +1 -1
  212. package/web/.next/standalone/packages/web/.next/server/app/api/skills/install/route.js.nft.json +1 -1
  213. package/web/.next/standalone/packages/web/.next/server/app/api/skills/installed/route.js.nft.json +1 -1
  214. package/web/.next/standalone/packages/web/.next/server/app/api/skills/session-active/route.js.nft.json +1 -1
  215. package/web/.next/standalone/packages/web/.next/server/app/api/skills/uninstall/route.js.nft.json +1 -1
  216. package/web/.next/standalone/packages/web/.next/server/app/api/spawn/route.js.nft.json +1 -1
  217. package/web/.next/standalone/packages/web/.next/server/app/api/workspaces/branches/route.js.nft.json +1 -1
  218. package/web/.next/standalone/packages/web/.next/server/app/api/workspaces/route.js.nft.json +1 -1
  219. package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js +1 -1
  220. package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js.nft.json +1 -1
  221. package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page_client-reference-manifest.js +1 -1
  222. package/web/.next/standalone/packages/web/.next/server/app/bridge/install.ps1/route.js.nft.json +1 -1
  223. package/web/.next/standalone/packages/web/.next/server/app/bridge/install.sh/route.js.nft.json +1 -1
  224. package/web/.next/standalone/packages/web/.next/server/app/embed/terminal/[id]/page.js +1 -1
  225. package/web/.next/standalone/packages/web/.next/server/app/embed/terminal/[id]/page.js.nft.json +1 -1
  226. package/web/.next/standalone/packages/web/.next/server/app/embed/terminal/[id]/page_client-reference-manifest.js +1 -1
  227. package/web/.next/standalone/packages/web/.next/server/app/icon.svg/route.js.nft.json +1 -1
  228. package/web/.next/standalone/packages/web/.next/server/app/page.js +1 -1
  229. package/web/.next/standalone/packages/web/.next/server/app/page.js.nft.json +1 -1
  230. package/web/.next/standalone/packages/web/.next/server/app/page_client-reference-manifest.js +1 -1
  231. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js +2 -2
  232. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
  233. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
  234. package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js +1 -1
  235. package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js.nft.json +1 -1
  236. package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page_client-reference-manifest.js +1 -1
  237. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js +1 -1
  238. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js.nft.json +1 -1
  239. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page_client-reference-manifest.js +1 -1
  240. package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js +1 -1
  241. package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js.nft.json +1 -1
  242. package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page_client-reference-manifest.js +1 -1
  243. package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js +1 -1
  244. package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js.nft.json +1 -1
  245. package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page_client-reference-manifest.js +1 -1
  246. package/web/.next/standalone/packages/web/.next/server/app/sign-up/[[...sign-up]]/page.js +1 -1
  247. package/web/.next/standalone/packages/web/.next/server/app/sign-up/[[...sign-up]]/page.js.nft.json +1 -1
  248. package/web/.next/standalone/packages/web/.next/server/app/sign-up/[[...sign-up]]/page_client-reference-manifest.js +1 -1
  249. package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js +1 -1
  250. package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js.nft.json +1 -1
  251. package/web/.next/standalone/packages/web/.next/server/app/unlock/page_client-reference-manifest.js +1 -1
  252. package/web/.next/standalone/packages/web/.next/server/app-paths-manifest.json +7 -7
  253. package/web/.next/standalone/packages/web/.next/server/chunks/2512.js +3 -3
  254. package/web/.next/standalone/packages/web/.next/server/chunks/3303.js +1 -1
  255. package/web/.next/standalone/packages/web/.next/server/chunks/3698.js +5 -3
  256. package/web/.next/standalone/packages/web/.next/server/chunks/3786.js +2 -2
  257. package/web/.next/standalone/packages/web/.next/server/chunks/4135.js +1 -0
  258. package/web/.next/standalone/packages/web/.next/server/chunks/6108.js +1 -0
  259. package/web/.next/standalone/packages/web/.next/server/chunks/6472.js +1 -1
  260. package/web/.next/standalone/packages/web/.next/server/chunks/7776.js +1 -1
  261. package/web/.next/standalone/packages/web/.next/server/chunks/9455.js +1 -1
  262. package/web/.next/standalone/packages/web/.next/server/chunks/9672.js +1 -0
  263. package/web/.next/standalone/packages/web/.next/server/middleware-build-manifest.js +1 -1
  264. package/web/.next/standalone/packages/web/.next/server/middleware-react-loadable-manifest.js +1 -1
  265. package/web/.next/standalone/packages/web/.next/server/middleware.js +4 -4
  266. package/web/.next/standalone/packages/web/.next/server/next-font-manifest.js +1 -1
  267. package/web/.next/standalone/packages/web/.next/server/next-font-manifest.json +1 -1
  268. package/web/.next/standalone/packages/web/.next/server/pages/500.html +1 -1
  269. package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.js +1 -1
  270. package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.json +1 -1
  271. package/web/.next/standalone/packages/web/.next/static/chunks/{34443.c71c524d5fcc197f.js → 34443.564640d49e48dac8.js} +1 -1
  272. package/web/.next/standalone/packages/web/.next/static/chunks/41696.3e691c667c1e7b81.js +1 -0
  273. package/web/.next/standalone/packages/web/.next/static/chunks/49829.b59a66a75b0144d4.js +1 -0
  274. package/web/.next/standalone/packages/web/.next/static/chunks/{61968-84de5fd1d154571d.js → 61968-1d55f423ea1ad7fb.js} +1 -1
  275. package/web/.next/standalone/packages/web/.next/static/chunks/76892-83c29ea9e142a212.js +1 -0
  276. package/web/.next/{static/chunks/79593-c8c8ed0f8829c660.js → standalone/packages/web/.next/static/chunks/79593-7e4d5cc53d59e150.js} +2 -2
  277. package/web/.next/standalone/packages/web/.next/static/chunks/9016-c4fa23038e6de72b.js +1 -0
  278. package/web/.next/standalone/packages/web/.next/static/chunks/app/{layout-1d6034a5d57a2849.js → layout-e2267e076be36fa0.js} +1 -1
  279. package/web/.next/standalone/packages/web/.next/static/chunks/app/page-f3925343b6c5eaa9.js +1 -0
  280. package/web/.next/standalone/packages/web/.next/static/chunks/app/sessions/[id]/page-b1d7e1d41fba2817.js +1 -0
  281. package/web/.next/standalone/packages/web/.next/static/chunks/{main-e776ff7a08a61c77.js → main-0a70c45f3b60fdcf.js} +1 -1
  282. package/web/.next/{static/chunks/webpack-c447583f01d6313b.js → standalone/packages/web/.next/static/chunks/webpack-44f612e7df6dfe22.js} +1 -1
  283. package/web/.next/standalone/packages/web/.next/static/css/07568bac52bbf79f.css +1 -0
  284. package/web/.next/standalone/packages/web/package.json +2 -1
  285. package/web/.next/standalone/packages/web/server.js +1 -1
  286. package/web/.next/static/chunks/{34443.c71c524d5fcc197f.js → 34443.564640d49e48dac8.js} +1 -1
  287. package/web/.next/static/chunks/41696.3e691c667c1e7b81.js +1 -0
  288. package/web/.next/static/chunks/49829.b59a66a75b0144d4.js +1 -0
  289. package/web/.next/static/chunks/{61968-84de5fd1d154571d.js → 61968-1d55f423ea1ad7fb.js} +1 -1
  290. package/web/.next/static/chunks/76892-83c29ea9e142a212.js +1 -0
  291. package/web/.next/{standalone/packages/web/.next/static/chunks/79593-c8c8ed0f8829c660.js → static/chunks/79593-7e4d5cc53d59e150.js} +2 -2
  292. package/web/.next/static/chunks/9016-c4fa23038e6de72b.js +1 -0
  293. package/web/.next/static/chunks/app/{layout-1d6034a5d57a2849.js → layout-e2267e076be36fa0.js} +1 -1
  294. package/web/.next/static/chunks/app/page-f3925343b6c5eaa9.js +1 -0
  295. package/web/.next/static/chunks/app/sessions/[id]/page-b1d7e1d41fba2817.js +1 -0
  296. package/web/.next/static/chunks/{main-e776ff7a08a61c77.js → main-0a70c45f3b60fdcf.js} +1 -1
  297. package/web/.next/{standalone/packages/web/.next/static/chunks/webpack-c447583f01d6313b.js → static/chunks/webpack-44f612e7df6dfe22.js} +1 -1
  298. package/web/.next/static/css/07568bac52bbf79f.css +1 -0
  299. package/web/.next/standalone/node_modules/@img/sharp-linux-x64/LICENSE +0 -191
  300. package/web/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  301. package/web/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/LICENSE +0 -191
  302. package/web/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  303. package/web/.next/standalone/node_modules/sharp/lib/index.js +0 -16
  304. package/web/.next/standalone/node_modules/sharp/lib/sharp.js +0 -121
  305. package/web/.next/standalone/packages/web/.next/server/chunks/1364.js +0 -1
  306. package/web/.next/standalone/packages/web/.next/server/chunks/4013.js +0 -1
  307. package/web/.next/standalone/packages/web/.next/server/chunks/9398.js +0 -1
  308. package/web/.next/standalone/packages/web/.next/static/chunks/28386-0121205400994756.js +0 -1
  309. package/web/.next/standalone/packages/web/.next/static/chunks/41696.08fe09203aaf1a18.js +0 -1
  310. package/web/.next/standalone/packages/web/.next/static/chunks/84322.a03fd8fc2bb2e8d7.js +0 -1
  311. package/web/.next/standalone/packages/web/.next/static/chunks/9016-2b7d7b8b143a8323.js +0 -1
  312. package/web/.next/standalone/packages/web/.next/static/chunks/app/page-0ba7acf47a6b3ac6.js +0 -1
  313. package/web/.next/standalone/packages/web/.next/static/chunks/app/sessions/[id]/page-aeb1ccc1a89248d5.js +0 -1
  314. package/web/.next/standalone/packages/web/.next/static/css/895fa8ff3c08143e.css +0 -1
  315. package/web/.next/static/chunks/28386-0121205400994756.js +0 -1
  316. package/web/.next/static/chunks/41696.08fe09203aaf1a18.js +0 -1
  317. package/web/.next/static/chunks/84322.a03fd8fc2bb2e8d7.js +0 -1
  318. package/web/.next/static/chunks/9016-2b7d7b8b143a8323.js +0 -1
  319. package/web/.next/static/chunks/app/page-0ba7acf47a6b3ac6.js +0 -1
  320. package/web/.next/static/chunks/app/sessions/[id]/page-aeb1ccc1a89248d5.js +0 -1
  321. package/web/.next/static/css/895fa8ff3c08143e.css +0 -1
  322. /package/web/.next/standalone/node_modules/sharp/{lib/is.js → dist/is.cjs} +0 -0
  323. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/comparator.js +0 -0
  324. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/cmp.js +0 -0
  325. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/coerce.js +0 -0
  326. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/compare.js +0 -0
  327. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/eq.js +0 -0
  328. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gt.js +0 -0
  329. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gte.js +0 -0
  330. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lt.js +0 -0
  331. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lte.js +0 -0
  332. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/neq.js +0 -0
  333. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/parse.js +0 -0
  334. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/satisfies.js +0 -0
  335. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/constants.js +0 -0
  336. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/debug.js +0 -0
  337. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/identifiers.js +0 -0
  338. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/lrucache.js +0 -0
  339. /package/web/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/parse-options.js +0 -0
  340. /package/web/.next/standalone/packages/web/.next/static/{bUZhqJ_eDpMX4oqHwonGR → 2imqEtZncw17IjW1PZEh4}/_buildManifest.js +0 -0
  341. /package/web/.next/standalone/packages/web/.next/static/{bUZhqJ_eDpMX4oqHwonGR → 2imqEtZncw17IjW1PZEh4}/_ssgManifest.js +0 -0
  342. /package/web/.next/static/{bUZhqJ_eDpMX4oqHwonGR → 2imqEtZncw17IjW1PZEh4}/_buildManifest.js +0 -0
  343. /package/web/.next/static/{bUZhqJ_eDpMX4oqHwonGR → 2imqEtZncw17IjW1PZEh4}/_ssgManifest.js +0 -0
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Percent-encode every character outside printable ASCII so a tag value can be
3
+ * safely serialized as part of the `x-next-cache-tags` HTTP header.
4
+ *
5
+ * Node's `validateHeaderValue` rejects any code unit outside `\t\x20-\x7e`, so
6
+ * a matched route path or user-supplied tag containing a non-ASCII character
7
+ * (Hebrew, Arabic, Chinese, emoji, …) would otherwise throw `ERR_INVALID_CHAR`
8
+ * and crash ISR on every affected request.
9
+ *
10
+ * This is applied at the public boundaries — tag construction
11
+ * (`getImplicitTags`, `validateTags`) and invalidation input (`revalidatePath`,
12
+ * `revalidateTag`, `updateTag`) — so storage, comparison, and the wire all see
13
+ * the same canonical ASCII-safe form.
14
+ *
15
+ * The character class `[\t\x20-\x7e]` mirrors Node's `validHdrChars` table —
16
+ * `\t` plus printable ASCII through `~`. Anything outside that is rejected
17
+ * by `validateHeaderValue`, so we encode runs of those characters and leave
18
+ * everything else (`,`, `/`, `%`, `[`, `]`, `_`, `-`, `\t`, …) byte-for-byte
19
+ * unchanged. This preserves the comma-separated header format and the
20
+ * dynamic-segment markers in derived tags (`_N_T_/[slug]/page`).
21
+ *
22
+ * Properties:
23
+ * - Fast-path: input that already fits the validation class is returned
24
+ * unchanged. This makes the encoder idempotent on already-encoded `%xx`
25
+ * sequences.
26
+ * - Matches *runs* of out-of-class code units so surrogate pairs (e.g. an
27
+ * emoji) are handed to `encodeURIComponent` as a complete code point — a
28
+ * per-code-unit regex would split the pair and throw `URIError`.
29
+ */ "use strict";
30
+ Object.defineProperty(exports, "__esModule", {
31
+ value: true
32
+ });
33
+ Object.defineProperty(exports, "encodeCacheTag", {
34
+ enumerable: true,
35
+ get: function() {
36
+ return encodeCacheTag;
37
+ }
38
+ });
39
+ const OUT_OF_CLASS_CHAR = /[^\t\x20-\x7e]/;
40
+ const OUT_OF_CLASS_RUN = /[^\t\x20-\x7e]+/g;
41
+ function encodeCacheTag(tag) {
42
+ return OUT_OF_CLASS_CHAR.test(tag) ? tag.replace(OUT_OF_CLASS_RUN, (run)=>encodeURIComponent(run)) : tag;
43
+ }
44
+
45
+ //# sourceMappingURL=encode-cache-tag.js.map
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "getImplicitTags", {
10
10
  });
11
11
  const _constants = require("../../lib/constants");
12
12
  const _handlers = require("../use-cache/handlers");
13
+ const _encodecachetag = require("./encode-cache-tag");
13
14
  const _lazyresult = require("./lazy-result");
14
15
  const getDerivedTags = (pathname)=>{
15
16
  const derivedTags = [
@@ -49,16 +50,18 @@ const getDerivedTags = (pathname)=>{
49
50
  }
50
51
  async function getImplicitTags(page, pathname, fallbackRouteParams) {
51
52
  const tags = new Set();
52
- // Add the derived tags from the page.
53
+ // Add the derived tags from the page. Encode each tag so a non-ASCII
54
+ // pathname doesn't trip header validation when written to
55
+ // `x-next-cache-tags`. Idempotent on already-ASCII input.
53
56
  const derivedTags = getDerivedTags(page);
54
57
  for (let tag of derivedTags){
55
- tag = `${_constants.NEXT_CACHE_IMPLICIT_TAG_ID}${tag}`;
58
+ tag = (0, _encodecachetag.encodeCacheTag)(`${_constants.NEXT_CACHE_IMPLICIT_TAG_ID}${tag}`);
56
59
  tags.add(tag);
57
60
  }
58
61
  // Add the tags from the pathname. If the route has unknown params, we don't
59
62
  // want to add the pathname as a tag, as it will be invalid.
60
63
  if (pathname && (!fallbackRouteParams || fallbackRouteParams.size === 0)) {
61
- const tag = `${_constants.NEXT_CACHE_IMPLICIT_TAG_ID}${pathname}`;
64
+ const tag = (0, _encodecachetag.encodeCacheTag)(`${_constants.NEXT_CACHE_IMPLICIT_TAG_ID}${pathname}`);
62
65
  tags.add(tag);
63
66
  }
64
67
  if (tags.has(`${_constants.NEXT_CACHE_IMPLICIT_TAG_ID}/`)) {
@@ -37,6 +37,33 @@ function _interop_require_default(obj) {
37
37
  default: obj
38
38
  };
39
39
  }
40
+ function toHex(buffer) {
41
+ // Hex-encode body bytes losslessly: decoding as UTF-8 would collapse
42
+ // distinct bytes (0xff/0xfe to U+FFFD) and collide; Buffer isn't on edge.
43
+ const bytes = isArrayBuffer(buffer) ? new Uint8Array(buffer) : new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
44
+ let hex = '';
45
+ for (const byte of bytes){
46
+ hex += byte.toString(16).padStart(2, '0');
47
+ }
48
+ return hex;
49
+ }
50
+ // Duck typing to support Edge runtime
51
+ // TODO: Switch to instanceof checks once Edge runtime is removed.
52
+ function isArrayBuffer(buffer) {
53
+ return !('buffer' in buffer);
54
+ }
55
+ function isBodyByteSequence(body) {
56
+ return typeof body === 'object' && 'byteLength' in body;
57
+ }
58
+ function isBodyReadableStream(body) {
59
+ return typeof body.getReader === 'function';
60
+ }
61
+ function isBodyFormDataOrURLSearchParams(body) {
62
+ return typeof body.keys === 'function';
63
+ }
64
+ function isBodyBlob(body) {
65
+ return typeof body.arrayBuffer === 'function';
66
+ }
40
67
  class CacheHandler {
41
68
  // eslint-disable-next-line
42
69
  constructor(_ctx){}
@@ -47,6 +74,19 @@ class CacheHandler {
47
74
  async revalidateTag(_tags, _durations) {}
48
75
  resetRequestCache() {}
49
76
  }
77
+ async function hashString(cacheString) {
78
+ if (process.env.NEXT_RUNTIME === 'edge') {
79
+ const encoder = new TextEncoder();
80
+ const buffer = encoder.encode(cacheString);
81
+ return toHex(await crypto.subtle.digest('SHA-256', buffer));
82
+ } else {
83
+ const crypto1 = require('crypto');
84
+ return crypto1.createHash('sha256').update(cacheString).digest('hex');
85
+ }
86
+ }
87
+ // this should be bumped anytime a fix is made to cache entries
88
+ // that should bust the cache
89
+ const MAIN_KEY_PREFIX = 'v4';
50
90
  class IncrementalCache {
51
91
  static #_ = this.debug = !!process.env.NEXT_PRIVATE_DEBUG_CACHE;
52
92
  constructor({ fs, dev, flushToDisk, minimalMode, serverDistDir, requestHeaders, maxMemoryCacheSize, getPrerenderManifest, fetchCacheKeyPrefix, CurCacheHandler, allowedRevalidateHeaderKeys }){
@@ -161,38 +201,34 @@ class IncrementalCache {
161
201
  var _this_cacheHandler;
162
202
  return (_this_cacheHandler = this.cacheHandler) == null ? void 0 : _this_cacheHandler.revalidateTag(tags, durations);
163
203
  }
204
+ async generateSimpleCacheKey(input) {
205
+ const cacheString = JSON.stringify([
206
+ MAIN_KEY_PREFIX,
207
+ this.fetchCacheKeyPrefix || '',
208
+ input
209
+ ]);
210
+ return hashString(cacheString);
211
+ }
164
212
  // x-ref: https://github.com/facebook/react/blob/2655c9354d8e1c54ba888444220f63e836925caa/packages/react/src/ReactFetch.js#L23
165
213
  async generateCacheKey(url, init = {}) {
166
- // this should be bumped anytime a fix is made to cache entries
167
- // that should bust the cache
168
- const MAIN_KEY_PREFIX = 'v3';
169
214
  const bodyChunks = [];
170
215
  const encoder = new TextEncoder();
171
- const decoder = new TextDecoder();
172
- if (init.body) {
173
- // handle Uint8Array body
174
- if (init.body instanceof Uint8Array) {
175
- bodyChunks.push(decoder.decode(init.body));
176
- init._ogBody = init.body;
177
- } else if (typeof init.body.getReader === 'function') {
178
- const readableBody = init.body;
216
+ // Will be set implementing https://fetch.spec.whatwg.org/#concept-bodyinit-extract
217
+ let bodyType = null;
218
+ const body = init.body;
219
+ if (body) {
220
+ if (isBodyByteSequence(body)) {
221
+ bodyChunks.push(`bytes:${toHex(body)}`);
222
+ init._ogBody = body;
223
+ } else if (isBodyReadableStream(body)) {
224
+ const readableBody = body;
179
225
  const chunks = [];
180
226
  try {
181
227
  await readableBody.pipeTo(new WritableStream({
182
228
  write (chunk) {
183
- if (typeof chunk === 'string') {
184
- chunks.push(encoder.encode(chunk));
185
- bodyChunks.push(chunk);
186
- } else {
187
- chunks.push(chunk);
188
- bodyChunks.push(decoder.decode(chunk, {
189
- stream: true
190
- }));
191
- }
229
+ chunks.push(typeof chunk === 'string' ? encoder.encode(chunk) : chunk);
192
230
  }
193
231
  }));
194
- // Flush the decoder.
195
- bodyChunks.push(decoder.decode());
196
232
  // Create a new buffer with all the chunks.
197
233
  const length = chunks.reduce((total, arr)=>total + arr.length, 0);
198
234
  const arrayBuffer = new Uint8Array(length);
@@ -202,39 +238,46 @@ class IncrementalCache {
202
238
  arrayBuffer.set(chunk, offset);
203
239
  offset += chunk.length;
204
240
  }
205
- ;
241
+ bodyChunks.push(`bytes:${toHex(arrayBuffer)}`);
206
242
  init._ogBody = arrayBuffer;
207
243
  } catch (err) {
208
244
  console.error('Problem reading body', err);
209
245
  }
210
- } else if (typeof init.body.keys === 'function') {
211
- const formData = init.body;
212
- init._ogBody = init.body;
213
- for (const key of new Set([
214
- ...formData.keys()
215
- ])){
216
- const values = formData.getAll(key);
217
- bodyChunks.push(`${key}=${(await Promise.all(values.map(async (val)=>{
218
- if (typeof val === 'string') {
219
- return val;
220
- } else {
221
- return await val.text();
222
- }
223
- }))).join(',')}`);
246
+ } else if (isBodyFormDataOrURLSearchParams(body)) {
247
+ bodyType = String(body) === '[object FormData]' ? 'multipart/form-data; boundary=' : 'application/x-www-form-urlencoded;charset=UTF-8';
248
+ const iterable = body;
249
+ init._ogBody = body;
250
+ // Separate, tagged chunks so `["a","b"]` can't collide with `["a,b"]`.
251
+ for (const [key, val] of iterable.entries()){
252
+ bodyChunks.push(`key:${key}`);
253
+ if (typeof val === 'string') {
254
+ bodyChunks.push(`str:${val}`);
255
+ } else {
256
+ bodyChunks.push('file', val.name, val.type, `bytes:${toHex(await val.arrayBuffer())}`);
257
+ }
224
258
  }
225
259
  // handle blob body
226
- } else if (typeof init.body.arrayBuffer === 'function') {
227
- const blob = init.body;
260
+ } else if (isBodyBlob(body)) {
261
+ const blob = body;
228
262
  const arrayBuffer = await blob.arrayBuffer();
229
- bodyChunks.push(await blob.text());
263
+ bodyChunks.push('blob', blob.type, `bytes:${toHex(arrayBuffer)}`);
230
264
  init._ogBody = new Blob([
231
265
  arrayBuffer
232
266
  ], {
233
267
  type: blob.type
234
268
  });
235
- } else if (typeof init.body === 'string') {
236
- bodyChunks.push(init.body);
237
- init._ogBody = init.body;
269
+ bodyType = blob.type;
270
+ } else if (typeof body === 'string') {
271
+ bodyChunks.push(`str:${body}`);
272
+ init._ogBody = body;
273
+ bodyType = 'text/plain;charset=UTF-8';
274
+ } else {
275
+ body;
276
+ throw Object.defineProperty(new Error(`Unsupported body type: ${typeof body}`), "__NEXT_ERROR_CODE", {
277
+ value: "E1145",
278
+ enumerable: false,
279
+ configurable: true
280
+ });
238
281
  }
239
282
  }
240
283
  const headers = typeof (init.headers || {}).keys === 'function' ? Object.fromEntries(init.headers) : Object.assign({}, init.headers);
@@ -247,6 +290,9 @@ class IncrementalCache {
247
290
  this.fetchCacheKeyPrefix || '',
248
291
  url,
249
292
  init.method,
293
+ // Ensures default Content-Type is part of the cache key
294
+ // TODO: Only necessary when headers are not used from the Request instance
295
+ bodyType,
250
296
  headers,
251
297
  init.mode,
252
298
  init.redirect,
@@ -257,16 +303,7 @@ class IncrementalCache {
257
303
  init.cache,
258
304
  bodyChunks
259
305
  ]);
260
- if (process.env.NEXT_RUNTIME === 'edge') {
261
- function bufferToHex(buffer) {
262
- return Array.prototype.map.call(new Uint8Array(buffer), (b)=>b.toString(16).padStart(2, '0')).join('');
263
- }
264
- const buffer = encoder.encode(cacheString);
265
- return bufferToHex(await crypto.subtle.digest('SHA-256', buffer));
266
- } else {
267
- const crypto1 = require('crypto');
268
- return crypto1.createHash('sha256').update(cacheString).digest('hex');
269
- }
306
+ return hashString(cacheString);
270
307
  }
271
308
  async get(cacheKey, ctx) {
272
309
  var _this_cacheHandler, _cacheData_value;
@@ -42,6 +42,7 @@ const _workunitasyncstorageexternal = require("../app-render/work-unit-async-sto
42
42
  const _responsecache = require("../response-cache");
43
43
  const _cloneresponse = require("./clone-response");
44
44
  const _stagedrendering = require("../app-render/staged-rendering");
45
+ const _encodecachetag = require("./encode-cache-tag");
45
46
  const isEdgeRuntime = process.env.NEXT_RUNTIME === 'edge';
46
47
  const NEXT_PATCH_SYMBOL = Symbol.for('next-patch');
47
48
  function isFetchPatched() {
@@ -86,7 +87,10 @@ function validateTags(tags, description) {
86
87
  reason: `exceeded max length of ${_constants1.NEXT_CACHE_TAG_MAX_LENGTH}`
87
88
  });
88
89
  } else {
89
- validTags.push(tag);
90
+ // Encode so a non-ASCII tag can be safely serialized into the
91
+ // `x-next-cache-tags` HTTP header without tripping Node's header
92
+ // validation. Length is checked on the raw input above.
93
+ validTags.push((0, _encodecachetag.encodeCacheTag)(tag));
90
94
  }
91
95
  if (validTags.length > _constants1.NEXT_CACHE_TAG_MAX_ITEMS) {
92
96
  console.warn(`Warning: exceeded max tag count for ${description}, dropped tags:`, tags.slice(i).join(', '));
@@ -250,6 +254,19 @@ function createPatchedFetcher(originFetch, { workAsyncStorage, workUnitAsyncStor
250
254
  return originFetch(input, init);
251
255
  }
252
256
  const isRequestInput = input && typeof input === 'object' && typeof input.method === 'string';
257
+ // With `fetch(new Request(url), init)`, native fetch lets `init`
258
+ // override the base Request. Merge them into a single effective Request
259
+ // so cacheability, the cache key, and the upstream request all describe
260
+ // the same thing.
261
+ if (isRequestInput && init) {
262
+ // `next` (revalidate/tags) is Next-specific and dropped by
263
+ // `new Request`, so keep it on `init` and move the rest onto input.
264
+ const { next, ...overrides } = init;
265
+ input = new Request(input, overrides);
266
+ init = next ? {
267
+ next
268
+ } : undefined;
269
+ }
253
270
  const getRequestMeta = (field)=>{
254
271
  // If request input is present but init is not, retrieve from input first.
255
272
  const value = init == null ? void 0 : init[field];
@@ -579,8 +596,8 @@ function createPatchedFetcher(originFetch, { workAsyncStorage, workUnitAsyncStor
579
596
  if (incrementalCache && (isCacheableRevalidate || serverComponentsHmrCache)) {
580
597
  try {
581
598
  cacheKey = await incrementalCache.generateCacheKey(fetchUrl, isRequestInput ? input : init);
582
- } catch (err) {
583
- console.error(`Failed to generate cache key for`, input);
599
+ } catch (cause) {
600
+ console.error(`Failed to generate cache key for`, input, cause);
584
601
  }
585
602
  }
586
603
  const fetchIdx = workStore.nextFetchId ?? 1;
@@ -22,6 +22,10 @@ async function proxyRequest(req, res, parsedUrl, upgradeHead, reqBody, proxyTime
22
22
  delete parsedUrl.query;
23
23
  parsedUrl.search = (0, _serverrouteutils.stringifyQuery)(req, query);
24
24
  const target = _url.default.format(parsedUrl);
25
+ // Keep in mind that a WHATWG URL's hostname and the parsedUrl's hostname
26
+ // are not strictly equal due to lowercasing, IDN translation, IPv4 and IPv6 normalization, etc.
27
+ // We just make sure this is a valid URL since http-proxy doesn't validate.
28
+ new URL(target);
25
29
  const HttpProxy = require('next/dist/compiled/http-proxy');
26
30
  const proxy = new HttpProxy({
27
31
  target,
@@ -178,7 +178,7 @@ async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup, server
178
178
  async function startServer(serverOptions) {
179
179
  const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate, serverFastRefresh } = serverOptions;
180
180
  let { port } = serverOptions;
181
- process.title = `next-server (v${"16.2.6"})`;
181
+ process.title = `next-server (v${"16.2.11"})`;
182
182
  let handlersReady = ()=>{};
183
183
  let handlersError = ()=>{};
184
184
  let handlersPromise = new Promise((resolve, reject)=>{
@@ -21,7 +21,7 @@ _export(exports, {
21
21
  }
22
22
  });
23
23
  function isStableBuild() {
24
- return !"16.2.6"?.includes('canary') && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
24
+ return !"16.2.11"?.includes('canary') && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
25
25
  }
26
26
  class CanaryOnlyConfigError extends Error {
27
27
  constructor(arg){
@@ -150,7 +150,14 @@ function getMiddlewareData(source, response, options) {
150
150
  let as = (0, _addlocale.addLocale)(pathnameInfo.pathname, pathnameInfo.locale);
151
151
  if ((0, _isdynamic.isDynamicRoute)(as) || !rewriteHeader && pages.includes((0, _normalizelocalepath.normalizeLocalePath)((0, _removebasepath.removeBasePath)(as), options.router.locales).pathname)) {
152
152
  const parsedSource = (0, _getnextpathnameinfo.getNextPathnameInfo)((0, _parserelativeurl.parseRelativeUrl)(source).pathname, {
153
- nextConfig: process.env.__NEXT_HAS_REWRITES ? undefined : nextConfig,
153
+ // Pass basePath (and trailingSlash) so the basePath prefix is
154
+ // stripped before the `_next/data/` check, but omit `i18n` so the
155
+ // locale prefix is preserved here — the rewrite resolver below
156
+ // handles the locale-prefixed `as`.
157
+ nextConfig: {
158
+ basePath: nextConfig.basePath,
159
+ trailingSlash: nextConfig.trailingSlash
160
+ },
154
161
  parseData: true
155
162
  });
156
163
  as = (0, _addbasepath.addBasePath)(parsedSource.pathname);
@@ -215,7 +215,8 @@ function prepareDestination(args) {
215
215
  let destHostnameCompiler;
216
216
  if (destHostname) {
217
217
  destHostnameCompiler = (0, _routematchutils.safeCompile)(destHostname, {
218
- validate: false
218
+ validate: false,
219
+ encode: encodeURIComponent
219
220
  });
220
221
  }
221
222
  // update any params in query values
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  0 && (module.exports = {
6
+ SERVER_REFERENCE_ID_LENGTH: null,
6
7
  extractInfoFromServerReferenceId: null,
8
+ mightBeServerReferenceId: null,
7
9
  omitUnusedArgs: null
8
10
  });
9
11
  function _export(target, all) {
@@ -13,13 +15,23 @@ function _export(target, all) {
13
15
  });
14
16
  }
15
17
  _export(exports, {
18
+ SERVER_REFERENCE_ID_LENGTH: function() {
19
+ return SERVER_REFERENCE_ID_LENGTH;
20
+ },
16
21
  extractInfoFromServerReferenceId: function() {
17
22
  return extractInfoFromServerReferenceId;
18
23
  },
24
+ mightBeServerReferenceId: function() {
25
+ return mightBeServerReferenceId;
26
+ },
19
27
  omitUnusedArgs: function() {
20
28
  return omitUnusedArgs;
21
29
  }
22
30
  });
31
+ const SERVER_REFERENCE_ID_LENGTH = 42;
32
+ function mightBeServerReferenceId(id) {
33
+ return id.length === SERVER_REFERENCE_ID_LENGTH;
34
+ }
23
35
  function extractInfoFromServerReferenceId(id) {
24
36
  const infoByte = parseInt(id.slice(0, 2), 16);
25
37
  const typeBit = infoByte >> 7 & 0x1;
@@ -81,7 +81,7 @@ function getAnonymousMeta() {
81
81
  isWsl: _iswsl.default,
82
82
  isCI: _ciinfo.isCI,
83
83
  ciName: _ciinfo.isCI && _ciinfo.name || null,
84
- nextVersion: "16.2.6"
84
+ nextVersion: "16.2.11"
85
85
  };
86
86
  return traits;
87
87
  }
@@ -38,7 +38,7 @@ async function eventSwcLoadFailure(event) {
38
38
  telemetry.record({
39
39
  eventName: EVENT_PLUGIN_PRESENT,
40
40
  payload: {
41
- nextVersion: "16.2.6",
41
+ nextVersion: "16.2.11",
42
42
  glibcVersion,
43
43
  installedSwcPackages,
44
44
  arch: process.arch,
@@ -12,12 +12,12 @@ const EVENT_VERSION = 'NEXT_CLI_SESSION_STARTED';
12
12
  function eventCliSession(nextConfig, event) {
13
13
  var _nextConfig_experimental_staleTimes, _nextConfig_experimental_staleTimes1, _nextConfig_reactCompiler, _nextConfig_reactCompiler1;
14
14
  // This should be an invariant, if it fails our build tooling is broken.
15
- if (typeof "16.2.6" !== 'string') {
15
+ if (typeof "16.2.11" !== 'string') {
16
16
  return [];
17
17
  }
18
18
  const { images, i18n } = nextConfig || {};
19
19
  const payload = {
20
- nextVersion: "16.2.6",
20
+ nextVersion: "16.2.11",
21
21
  nodeVersion: process.version,
22
22
  cliCommand: event.cliCommand,
23
23
  isSrcDir: event.isSrcDir,