veryfront 0.1.1047 → 0.1.1049

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 (910) hide show
  1. package/esm/cli/auth/login.d.ts +5 -5
  2. package/esm/cli/auth/login.d.ts.map +1 -1
  3. package/esm/cli/auth/login.js +28 -28
  4. package/esm/cli/auth/provider-store.d.ts +5 -4
  5. package/esm/cli/auth/provider-store.d.ts.map +1 -1
  6. package/esm/cli/auth/provider-store.js +17 -13
  7. package/esm/cli/commands/build/command.d.ts +2 -0
  8. package/esm/cli/commands/build/command.d.ts.map +1 -1
  9. package/esm/cli/commands/build/command.js +46 -20
  10. package/esm/cli/commands/build/handler.d.ts +6 -0
  11. package/esm/cli/commands/build/handler.d.ts.map +1 -1
  12. package/esm/cli/commands/build/handler.js +9 -5
  13. package/esm/cli/commands/deploy/command-help.d.ts.map +1 -1
  14. package/esm/cli/commands/deploy/command-help.js +2 -1
  15. package/esm/cli/commands/deploy/command.d.ts +83 -14
  16. package/esm/cli/commands/deploy/command.d.ts.map +1 -1
  17. package/esm/cli/commands/deploy/command.js +317 -23
  18. package/esm/cli/commands/deploy/index.d.ts +2 -2
  19. package/esm/cli/commands/deploy/index.d.ts.map +1 -1
  20. package/esm/cli/commands/deploy/index.js +1 -1
  21. package/esm/cli/commands/dev/command.d.ts +1 -0
  22. package/esm/cli/commands/dev/command.d.ts.map +1 -1
  23. package/esm/cli/commands/dev/command.js +10 -1
  24. package/esm/cli/commands/dev/handler.d.ts +2 -0
  25. package/esm/cli/commands/dev/handler.d.ts.map +1 -1
  26. package/esm/cli/commands/dev/handler.js +6 -1
  27. package/esm/cli/commands/doctor/command-help.d.ts.map +1 -1
  28. package/esm/cli/commands/doctor/command-help.js +5 -1
  29. package/esm/cli/commands/doctor/handler.d.ts +1 -0
  30. package/esm/cli/commands/doctor/handler.d.ts.map +1 -1
  31. package/esm/cli/commands/doctor/handler.js +2 -0
  32. package/esm/cli/commands/doctor/index.d.ts +7 -0
  33. package/esm/cli/commands/doctor/index.d.ts.map +1 -1
  34. package/esm/cli/commands/doctor/index.js +67 -15
  35. package/esm/cli/commands/doctor/server-checks.d.ts +2 -2
  36. package/esm/cli/commands/doctor/server-checks.d.ts.map +1 -1
  37. package/esm/cli/commands/doctor/server-checks.js +5 -4
  38. package/esm/cli/commands/init/init-command.js +4 -4
  39. package/esm/cli/commands/init/types.d.ts +2 -0
  40. package/esm/cli/commands/init/types.d.ts.map +1 -1
  41. package/esm/cli/commands/push/command.d.ts +10 -1
  42. package/esm/cli/commands/push/command.d.ts.map +1 -1
  43. package/esm/cli/commands/push/command.js +135 -14
  44. package/esm/cli/commands/skills/create.d.ts +1 -1
  45. package/esm/cli/commands/skills/create.d.ts.map +1 -1
  46. package/esm/cli/commands/skills/create.js +1 -2
  47. package/esm/cli/mcp/server.d.ts.map +1 -1
  48. package/esm/cli/mcp/server.js +33 -7
  49. package/esm/cli/mcp/tools/catalog-tools.d.ts +6 -1
  50. package/esm/cli/mcp/tools/catalog-tools.d.ts.map +1 -1
  51. package/esm/cli/mcp/tools/catalog-tools.js +9 -5
  52. package/esm/cli/mcp/tools/deploy-tool.d.ts +11 -1
  53. package/esm/cli/mcp/tools/deploy-tool.d.ts.map +1 -1
  54. package/esm/cli/mcp/tools/deploy-tool.js +55 -10
  55. package/esm/cli/shared/args.d.ts.map +1 -1
  56. package/esm/cli/shared/args.js +29 -2
  57. package/esm/cli/shared/config.d.ts +24 -0
  58. package/esm/cli/shared/config.d.ts.map +1 -1
  59. package/esm/cli/shared/config.js +62 -16
  60. package/esm/cli/shared/deployment-provenance.d.ts +47 -0
  61. package/esm/cli/shared/deployment-provenance.d.ts.map +1 -0
  62. package/esm/cli/shared/deployment-provenance.js +214 -0
  63. package/esm/cli/shared/json-output.d.ts.map +1 -1
  64. package/esm/cli/shared/json-output.js +16 -0
  65. package/esm/cli/shared/reserve-slug.d.ts +8 -1
  66. package/esm/cli/shared/reserve-slug.d.ts.map +1 -1
  67. package/esm/cli/shared/reserve-slug.js +15 -4
  68. package/esm/cli/skills/core-skills.d.ts.map +1 -1
  69. package/esm/cli/skills/core-skills.js +6 -3
  70. package/esm/cli/templates/manifest.js +3 -3
  71. package/esm/cli/utils/index.d.ts.map +1 -1
  72. package/esm/cli/utils/index.js +3 -0
  73. package/esm/deno.d.ts +3 -0
  74. package/esm/deno.js +11 -7
  75. package/esm/src/agent/react/use-agent-metadata.js +1 -1
  76. package/esm/src/agent/react/use-agent.js +1 -1
  77. package/esm/src/agent/react/use-agents.js +1 -1
  78. package/esm/src/agent/react/use-chat/types.d.ts +0 -6
  79. package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
  80. package/esm/src/agent/react/use-chat/use-chat.d.ts +5 -0
  81. package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
  82. package/esm/src/agent/react/use-chat/use-chat.js +87 -34
  83. package/esm/src/agent/react/use-completion.js +1 -1
  84. package/esm/src/agent/react/use-streaming.js +1 -1
  85. package/esm/src/agent/react/use-voice-input.js +1 -1
  86. package/esm/src/build/bundler/code-splitter/splitter.d.ts +3 -0
  87. package/esm/src/build/bundler/code-splitter/splitter.d.ts.map +1 -1
  88. package/esm/src/build/bundler/code-splitter/splitter.js +21 -2
  89. package/esm/src/build/embedded/preset.d.ts +3 -2
  90. package/esm/src/build/embedded/preset.d.ts.map +1 -1
  91. package/esm/src/build/embedded/preset.js +120 -97
  92. package/esm/src/build/production-build/build/build-cleanup.d.ts.map +1 -1
  93. package/esm/src/build/production-build/build/build-cleanup.js +6 -1
  94. package/esm/src/build/production-build/build/build-orchestrator.d.ts.map +1 -1
  95. package/esm/src/build/production-build/build/build-orchestrator.js +55 -49
  96. package/esm/src/build/production-build/build/output-generator.d.ts +2 -0
  97. package/esm/src/build/production-build/build/output-generator.d.ts.map +1 -1
  98. package/esm/src/build/production-build/build/output-generator.js +2 -1
  99. package/esm/src/build/production-build/build/route-collector.d.ts +2 -1
  100. package/esm/src/build/production-build/build/route-collector.d.ts.map +1 -1
  101. package/esm/src/build/production-build/build/route-collector.js +3 -3
  102. package/esm/src/build/production-build/client-runtime.d.ts +4 -0
  103. package/esm/src/build/production-build/client-runtime.d.ts.map +1 -1
  104. package/esm/src/build/production-build/client-runtime.js +5 -8
  105. package/esm/src/build/production-build/local-release-assets.d.ts +2 -0
  106. package/esm/src/build/production-build/local-release-assets.d.ts.map +1 -1
  107. package/esm/src/build/production-build/local-release-assets.js +4 -1
  108. package/esm/src/build/production-build/manifest.d.ts.map +1 -1
  109. package/esm/src/build/production-build/manifest.js +9 -2
  110. package/esm/src/build/production-build/static-generation.d.ts.map +1 -1
  111. package/esm/src/build/production-build/static-generation.js +15 -3
  112. package/esm/src/build/production-build/templates.d.ts.map +1 -1
  113. package/esm/src/build/production-build/templates.js +1 -1
  114. package/esm/src/cache/backends/api.d.ts.map +1 -1
  115. package/esm/src/cache/backends/api.js +10 -7
  116. package/esm/src/chat/index.d.ts +8 -15
  117. package/esm/src/chat/index.d.ts.map +1 -1
  118. package/esm/src/chat/index.js +7 -16
  119. package/esm/src/config/config-files.d.ts +3 -0
  120. package/esm/src/config/config-files.d.ts.map +1 -0
  121. package/esm/src/config/config-files.js +6 -0
  122. package/esm/src/config/loader.d.ts.map +1 -1
  123. package/esm/src/config/loader.js +12 -9
  124. package/esm/src/extensions/parser/code-parser.d.ts +14 -0
  125. package/esm/src/extensions/parser/code-parser.d.ts.map +1 -1
  126. package/esm/src/extensions/parser/index.d.ts +1 -1
  127. package/esm/src/extensions/parser/index.d.ts.map +1 -1
  128. package/esm/src/html/html-injection.d.ts.map +1 -1
  129. package/esm/src/html/html-injection.js +2 -2
  130. package/esm/src/html/html-shell-generator.d.ts.map +1 -1
  131. package/esm/src/html/html-shell-generator.js +16 -9
  132. package/esm/src/html/hydration-script-builder/dev-component-manifest.d.ts.map +1 -1
  133. package/esm/src/html/hydration-script-builder/dev-component-manifest.js +2 -1
  134. package/esm/src/html/hydration-script-builder/hydration-data-generator.d.ts.map +1 -1
  135. package/esm/src/html/hydration-script-builder/hydration-data-generator.js +15 -4
  136. package/esm/src/html/hydration-script-builder/prod-hydration.d.ts.map +1 -1
  137. package/esm/src/html/hydration-script-builder/prod-hydration.js +4 -2
  138. package/esm/src/html/hydration-script-builder/templates/renderer.d.ts.map +1 -1
  139. package/esm/src/html/hydration-script-builder/templates/renderer.js +37 -7
  140. package/esm/src/html/hydration-script-builder/templates/router.d.ts.map +1 -1
  141. package/esm/src/html/hydration-script-builder/templates/router.js +22 -4
  142. package/esm/src/html/hydration-script-builder/types.d.ts +4 -0
  143. package/esm/src/html/hydration-script-builder/types.d.ts.map +1 -1
  144. package/esm/src/html/schemas/html.schema.d.ts +10 -0
  145. package/esm/src/html/schemas/html.schema.d.ts.map +1 -1
  146. package/esm/src/html/schemas/html.schema.js +5 -0
  147. package/esm/src/html/utils.d.ts.map +1 -1
  148. package/esm/src/html/utils.js +10 -10
  149. package/esm/src/modules/component-registry/registry.d.ts +1 -1
  150. package/esm/src/modules/component-registry/registry.d.ts.map +1 -1
  151. package/esm/src/modules/react-loader/component-loader.d.ts +1 -1
  152. package/esm/src/modules/react-loader/component-loader.d.ts.map +1 -1
  153. package/esm/src/modules/react-loader/extract-component.d.ts +1 -1
  154. package/esm/src/modules/react-loader/extract-component.d.ts.map +1 -1
  155. package/esm/src/modules/react-loader/ssr-module-loader/http-bundle-helpers.d.ts.map +1 -1
  156. package/esm/src/modules/react-loader/ssr-module-loader/http-bundle-helpers.js +2 -3
  157. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts +1 -1
  158. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
  159. package/esm/src/modules/react-loader/types.d.ts +1 -1
  160. package/esm/src/modules/react-loader/types.d.ts.map +1 -1
  161. package/esm/src/modules/server/module-batch-handler.d.ts.map +1 -1
  162. package/esm/src/modules/server/module-batch-handler.js +3 -10
  163. package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts +1 -0
  164. package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts.map +1 -1
  165. package/esm/src/platform/adapters/fs/veryfront/adapter.js +4 -0
  166. package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts +4 -1
  167. package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts.map +1 -1
  168. package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.js +6 -0
  169. package/esm/src/platform/adapters/fs/veryfront/read-operations.d.ts +1 -0
  170. package/esm/src/platform/adapters/fs/veryfront/read-operations.d.ts.map +1 -1
  171. package/esm/src/platform/adapters/fs/veryfront/read-operations.js +8 -0
  172. package/esm/src/platform/adapters/fs/veryfront/request-context.d.ts +4 -0
  173. package/esm/src/platform/adapters/fs/veryfront/request-context.d.ts.map +1 -1
  174. package/esm/src/platform/adapters/fs/veryfront/request-context.js +1 -0
  175. package/esm/src/platform/adapters/mock.d.ts.map +1 -1
  176. package/esm/src/platform/adapters/mock.js +3 -2
  177. package/esm/src/platform/adapters/veryfront-api-client/client.d.ts +4 -1
  178. package/esm/src/platform/adapters/veryfront-api-client/client.d.ts.map +1 -1
  179. package/esm/src/platform/adapters/veryfront-api-client/client.js +8 -4
  180. package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts +7 -3
  181. package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts.map +1 -1
  182. package/esm/src/platform/adapters/veryfront-api-client/operations.js +6 -6
  183. package/esm/src/platform/adapters/veryfront-api-client/retry-handler.d.ts +2 -0
  184. package/esm/src/platform/adapters/veryfront-api-client/retry-handler.d.ts.map +1 -1
  185. package/esm/src/platform/adapters/veryfront-api-client/retry-handler.js +4 -1
  186. package/esm/src/platform/compat/framework-source-resolver.d.ts +7 -1
  187. package/esm/src/platform/compat/framework-source-resolver.d.ts.map +1 -1
  188. package/esm/src/platform/compat/framework-source-resolver.js +32 -13
  189. package/esm/src/platform/compat/fs.d.ts +4 -0
  190. package/esm/src/platform/compat/fs.d.ts.map +1 -1
  191. package/esm/src/platform/compat/fs.js +34 -2
  192. package/esm/src/platform/compat/http/request-adapter.js +18 -1
  193. package/esm/src/platform/compat/path/runtime.d.ts.map +1 -1
  194. package/esm/src/platform/compat/path/runtime.js +1 -1
  195. package/esm/src/platform/compat/process/command.d.ts +2 -0
  196. package/esm/src/platform/compat/process/command.d.ts.map +1 -1
  197. package/esm/src/platform/compat/process/command.js +4 -3
  198. package/esm/src/platform/compat/runtime.d.ts +1 -1
  199. package/esm/src/platform/compat/runtime.d.ts.map +1 -1
  200. package/esm/src/platform/compat/runtime.js +5 -2
  201. package/esm/src/platform/index.d.ts +1 -1
  202. package/esm/src/platform/index.d.ts.map +1 -1
  203. package/esm/src/platform/index.js +1 -1
  204. package/esm/src/proxy/local-project-resolver.d.ts.map +1 -1
  205. package/esm/src/proxy/local-project-resolver.js +4 -2
  206. package/esm/src/proxy/main.js +17 -15
  207. package/esm/src/proxy/retry.d.ts +18 -0
  208. package/esm/src/proxy/retry.d.ts.map +1 -1
  209. package/esm/src/proxy/retry.js +89 -0
  210. package/esm/src/proxy/websocket-bridge.d.ts +10 -0
  211. package/esm/src/proxy/websocket-bridge.d.ts.map +1 -1
  212. package/esm/src/proxy/websocket-bridge.js +4 -0
  213. package/esm/src/react/compat/hooks-adapter.d.ts +1 -1
  214. package/esm/src/react/compat/hooks-adapter.d.ts.map +1 -1
  215. package/esm/src/react/compat/hooks-adapter.js +1 -1
  216. package/esm/src/react/compat/ssr-adapter/response-builder.d.ts +1 -1
  217. package/esm/src/react/compat/ssr-adapter/response-builder.d.ts.map +1 -1
  218. package/esm/src/react/compat/ssr-adapter/response-builder.js +1 -1
  219. package/esm/src/react/compat/ssr-adapter/server-loader.d.ts +10 -7
  220. package/esm/src/react/compat/ssr-adapter/server-loader.d.ts.map +1 -1
  221. package/esm/src/react/compat/ssr-adapter/server-loader.js +49 -32
  222. package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts +1 -1
  223. package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts.map +1 -1
  224. package/esm/src/react/compat/ssr-adapter/stream-renderer.js +5 -5
  225. package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts +1 -1
  226. package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts.map +1 -1
  227. package/esm/src/react/compat/ssr-adapter/string-renderer.js +2 -2
  228. package/esm/src/react/compat/ssr-adapter/types.d.ts +2 -0
  229. package/esm/src/react/compat/ssr-adapter/types.d.ts.map +1 -1
  230. package/esm/src/react/compat/version-detector/feature-detector.js +1 -1
  231. package/esm/src/react/components/AppWrapper.d.ts +1 -1
  232. package/esm/src/react/components/AppWrapper.d.ts.map +1 -1
  233. package/esm/src/react/components/AppWrapper.js +1 -1
  234. package/esm/src/react/components/LayoutComponent.d.ts +1 -1
  235. package/esm/src/react/components/LayoutComponent.d.ts.map +1 -1
  236. package/esm/src/react/components/LayoutComponent.js +1 -1
  237. package/esm/src/react/components/MDXProvider.d.ts +1 -1
  238. package/esm/src/react/components/MDXProvider.d.ts.map +1 -1
  239. package/esm/src/react/components/MDXProvider.js +1 -1
  240. package/esm/src/react/components/ProviderComponent.d.ts +1 -1
  241. package/esm/src/react/components/ProviderComponent.d.ts.map +1 -1
  242. package/esm/src/react/components/ProviderComponent.js +1 -1
  243. package/esm/src/react/components/chat/agent-card.d.ts +15 -7
  244. package/esm/src/react/components/chat/agent-card.d.ts.map +1 -1
  245. package/esm/src/react/components/chat/agent-card.js +9 -10
  246. package/esm/src/react/components/chat/agent-picker-actions.d.ts +20 -0
  247. package/esm/src/react/components/chat/agent-picker-actions.d.ts.map +1 -0
  248. package/esm/src/react/components/chat/agent-picker-actions.js +24 -0
  249. package/esm/src/react/components/chat/agent-picker-context.d.ts +19 -0
  250. package/esm/src/react/components/chat/agent-picker-context.d.ts.map +1 -0
  251. package/esm/src/react/components/chat/agent-picker-context.js +13 -0
  252. package/esm/src/react/components/chat/agent-picker.d.ts +35 -42
  253. package/esm/src/react/components/chat/agent-picker.d.ts.map +1 -1
  254. package/esm/src/react/components/chat/agent-picker.js +59 -50
  255. package/esm/src/react/components/chat/chat/app-mode-chat.d.ts +14 -0
  256. package/esm/src/react/components/chat/chat/app-mode-chat.d.ts.map +1 -0
  257. package/esm/src/react/components/chat/chat/app-mode-chat.js +137 -0
  258. package/esm/src/react/components/chat/chat/chat-attachments.d.ts +7 -0
  259. package/esm/src/react/components/chat/chat/chat-attachments.d.ts.map +1 -0
  260. package/esm/src/react/components/chat/chat/chat-attachments.js +16 -0
  261. package/esm/src/react/components/chat/chat/chat-component.d.ts +21 -0
  262. package/esm/src/react/components/chat/chat/chat-component.d.ts.map +1 -0
  263. package/esm/src/react/components/chat/chat/chat-component.js +1 -0
  264. package/esm/src/react/components/chat/chat/chat-props.d.ts +114 -0
  265. package/esm/src/react/components/chat/chat/chat-props.d.ts.map +1 -0
  266. package/esm/src/react/components/chat/chat/chat-props.js +1 -0
  267. package/esm/src/react/components/chat/chat/components/animations.d.ts +1 -1
  268. package/esm/src/react/components/chat/chat/components/animations.d.ts.map +1 -1
  269. package/esm/src/react/components/chat/chat/components/animations.js +1 -1
  270. package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts +18 -18
  271. package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts.map +1 -1
  272. package/esm/src/react/components/chat/chat/components/attachment-pill.js +11 -15
  273. package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts +14 -3
  274. package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts.map +1 -1
  275. package/esm/src/react/components/chat/chat/components/attachments-panel.js +3 -3
  276. package/esm/src/react/components/chat/chat/components/branch-picker.d.ts +44 -14
  277. package/esm/src/react/components/chat/chat/components/branch-picker.d.ts.map +1 -1
  278. package/esm/src/react/components/chat/chat/components/branch-picker.js +55 -12
  279. package/esm/src/react/components/chat/chat/components/chat-messages-skeleton.d.ts +1 -1
  280. package/esm/src/react/components/chat/chat/components/chat-messages-skeleton.d.ts.map +1 -1
  281. package/esm/src/react/components/chat/chat/components/chat-messages-skeleton.js +1 -1
  282. package/esm/src/react/components/chat/chat/components/code-block.d.ts +7 -2
  283. package/esm/src/react/components/chat/chat/components/code-block.d.ts.map +1 -1
  284. package/esm/src/react/components/chat/chat/components/code-block.js +3 -3
  285. package/esm/src/react/components/chat/chat/components/drop-zone.d.ts +1 -1
  286. package/esm/src/react/components/chat/chat/components/drop-zone.d.ts.map +1 -1
  287. package/esm/src/react/components/chat/chat/components/drop-zone.js +1 -1
  288. package/esm/src/react/components/chat/chat/components/empty-state.d.ts +1 -1
  289. package/esm/src/react/components/chat/chat/components/empty-state.d.ts.map +1 -1
  290. package/esm/src/react/components/chat/chat/components/empty-state.js +1 -1
  291. package/esm/src/react/components/chat/chat/components/inference-badge.d.ts +1 -1
  292. package/esm/src/react/components/chat/chat/components/inference-badge.d.ts.map +1 -1
  293. package/esm/src/react/components/chat/chat/components/inference-badge.js +1 -1
  294. package/esm/src/react/components/chat/chat/components/inline-citation.d.ts +33 -10
  295. package/esm/src/react/components/chat/chat/components/inline-citation.d.ts.map +1 -1
  296. package/esm/src/react/components/chat/chat/components/inline-citation.js +145 -51
  297. package/esm/src/react/components/chat/chat/components/message-actions.d.ts +49 -20
  298. package/esm/src/react/components/chat/chat/components/message-actions.d.ts.map +1 -1
  299. package/esm/src/react/components/chat/chat/components/message-actions.js +72 -18
  300. package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts +1 -1
  301. package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts.map +1 -1
  302. package/esm/src/react/components/chat/chat/components/message-edit-form.js +1 -1
  303. package/esm/src/react/components/chat/chat/components/message-feedback.d.ts +34 -14
  304. package/esm/src/react/components/chat/chat/components/message-feedback.d.ts.map +1 -1
  305. package/esm/src/react/components/chat/chat/components/message-feedback.js +54 -15
  306. package/esm/src/react/components/chat/chat/components/quick-actions.d.ts +1 -1
  307. package/esm/src/react/components/chat/chat/components/quick-actions.d.ts.map +1 -1
  308. package/esm/src/react/components/chat/chat/components/quick-actions.js +1 -1
  309. package/esm/src/react/components/chat/chat/components/reasoning.d.ts +14 -6
  310. package/esm/src/react/components/chat/chat/components/reasoning.d.ts.map +1 -1
  311. package/esm/src/react/components/chat/chat/components/reasoning.js +3 -5
  312. package/esm/src/react/components/chat/chat/components/sidebar.d.ts +70 -16
  313. package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -1
  314. package/esm/src/react/components/chat/chat/components/sidebar.js +72 -23
  315. package/esm/src/react/components/chat/chat/components/skill-badge.d.ts +1 -1
  316. package/esm/src/react/components/chat/chat/components/skill-badge.d.ts.map +1 -1
  317. package/esm/src/react/components/chat/chat/components/skill-badge.js +1 -1
  318. package/esm/src/react/components/chat/chat/components/skill-tool.d.ts +1 -1
  319. package/esm/src/react/components/chat/chat/components/skill-tool.d.ts.map +1 -1
  320. package/esm/src/react/components/chat/chat/components/skill-tool.js +1 -1
  321. package/esm/src/react/components/chat/chat/components/sources.d.ts +25 -15
  322. package/esm/src/react/components/chat/chat/components/sources.d.ts.map +1 -1
  323. package/esm/src/react/components/chat/chat/components/sources.js +7 -7
  324. package/esm/src/react/components/chat/chat/components/step-indicator.d.ts +14 -3
  325. package/esm/src/react/components/chat/chat/components/step-indicator.d.ts.map +1 -1
  326. package/esm/src/react/components/chat/chat/components/step-indicator.js +3 -3
  327. package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts +1 -1
  328. package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts.map +1 -1
  329. package/esm/src/react/components/chat/chat/components/tab-switcher.js +1 -1
  330. package/esm/src/react/components/chat/chat/components/tool-ui.d.ts +16 -9
  331. package/esm/src/react/components/chat/chat/components/tool-ui.d.ts.map +1 -1
  332. package/esm/src/react/components/chat/chat/components/tool-ui.js +10 -14
  333. package/esm/src/react/components/chat/chat/composition/agent-avatar.d.ts +1 -1
  334. package/esm/src/react/components/chat/chat/composition/agent-avatar.d.ts.map +1 -1
  335. package/esm/src/react/components/chat/chat/composition/agent-avatar.js +1 -1
  336. package/esm/src/react/components/chat/chat/composition/api.d.ts +3 -3
  337. package/esm/src/react/components/chat/chat/composition/api.d.ts.map +1 -1
  338. package/esm/src/react/components/chat/chat/composition/api.js +2 -2
  339. package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts +72 -29
  340. package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -1
  341. package/esm/src/react/components/chat/chat/composition/chat-composer.js +92 -82
  342. package/esm/src/react/components/chat/chat/composition/chat-empty-state.d.ts +1 -1
  343. package/esm/src/react/components/chat/chat/composition/chat-empty-state.d.ts.map +1 -1
  344. package/esm/src/react/components/chat/chat/composition/chat-empty-state.js +1 -1
  345. package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts +7 -2
  346. package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts.map +1 -1
  347. package/esm/src/react/components/chat/chat/composition/chat-empty.js +3 -3
  348. package/esm/src/react/components/chat/chat/composition/chat-if.d.ts +1 -1
  349. package/esm/src/react/components/chat/chat/composition/chat-if.d.ts.map +1 -1
  350. package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts +25 -11
  351. package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts.map +1 -1
  352. package/esm/src/react/components/chat/chat/composition/chat-message-list.js +67 -29
  353. package/esm/src/react/components/chat/chat/composition/chat-root.d.ts +7 -3
  354. package/esm/src/react/components/chat/chat/composition/chat-root.d.ts.map +1 -1
  355. package/esm/src/react/components/chat/chat/composition/chat-root.js +3 -5
  356. package/esm/src/react/components/chat/chat/composition/error-banner.d.ts +7 -2
  357. package/esm/src/react/components/chat/chat/composition/error-banner.d.ts.map +1 -1
  358. package/esm/src/react/components/chat/chat/composition/error-banner.js +3 -3
  359. package/esm/src/react/components/chat/chat/composition/message.d.ts +85 -34
  360. package/esm/src/react/components/chat/chat/composition/message.d.ts.map +1 -1
  361. package/esm/src/react/components/chat/chat/composition/message.js +146 -122
  362. package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts +1 -1
  363. package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts.map +1 -1
  364. package/esm/src/react/components/chat/chat/composition/model-avatar.js +1 -1
  365. package/esm/src/react/components/chat/chat/composition/pending-message.d.ts +1 -1
  366. package/esm/src/react/components/chat/chat/composition/pending-message.d.ts.map +1 -1
  367. package/esm/src/react/components/chat/chat/composition/pending-message.js +1 -1
  368. package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts +2 -3
  369. package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts.map +1 -1
  370. package/esm/src/react/components/chat/chat/contexts/chat-context.js +1 -1
  371. package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts +2 -2
  372. package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts.map +1 -1
  373. package/esm/src/react/components/chat/chat/contexts/composer-context.js +1 -1
  374. package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts +2 -2
  375. package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts.map +1 -1
  376. package/esm/src/react/components/chat/chat/contexts/conversations-context.js +1 -1
  377. package/esm/src/react/components/chat/chat/contexts/index.d.ts +1 -1
  378. package/esm/src/react/components/chat/chat/contexts/index.d.ts.map +1 -1
  379. package/esm/src/react/components/chat/chat/contexts/index.js +1 -1
  380. package/esm/src/react/components/chat/chat/contexts/message-context.d.ts +15 -2
  381. package/esm/src/react/components/chat/chat/contexts/message-context.d.ts.map +1 -1
  382. package/esm/src/react/components/chat/chat/contexts/message-context.js +11 -1
  383. package/esm/src/react/components/chat/chat/controlled-chat.d.ts +15 -0
  384. package/esm/src/react/components/chat/chat/controlled-chat.d.ts.map +1 -0
  385. package/esm/src/react/components/chat/chat/controlled-chat.js +97 -0
  386. package/esm/src/react/components/chat/chat/hooks/use-clipboard.js +1 -1
  387. package/esm/src/react/components/chat/chat/hooks/use-conversation-chat.d.ts +54 -0
  388. package/esm/src/react/components/chat/chat/hooks/use-conversation-chat.d.ts.map +1 -0
  389. package/esm/src/react/components/chat/chat/hooks/use-conversation-chat.js +179 -0
  390. package/esm/src/react/components/chat/chat/hooks/use-conversation.js +1 -1
  391. package/esm/src/react/components/chat/chat/hooks/use-conversations.d.ts.map +1 -1
  392. package/esm/src/react/components/chat/chat/hooks/use-conversations.js +3 -6
  393. package/esm/src/react/components/chat/chat/hooks/use-drop-zone.d.ts +8 -5
  394. package/esm/src/react/components/chat/chat/hooks/use-drop-zone.d.ts.map +1 -1
  395. package/esm/src/react/components/chat/chat/hooks/use-drop-zone.js +6 -6
  396. package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.d.ts +1 -1
  397. package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.d.ts.map +1 -1
  398. package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.js +1 -1
  399. package/esm/src/react/components/chat/chat/hooks/use-upload.js +1 -1
  400. package/esm/src/react/components/chat/chat/hooks/use-uploads-registry.js +1 -1
  401. package/esm/src/react/components/chat/chat/index.d.ts +13 -230
  402. package/esm/src/react/components/chat/chat/index.d.ts.map +1 -1
  403. package/esm/src/react/components/chat/chat/index.js +27 -383
  404. package/esm/src/react/components/chat/chat-actions.d.ts +1 -1
  405. package/esm/src/react/components/chat/chat-actions.d.ts.map +1 -1
  406. package/esm/src/react/components/chat/chat-actions.js +1 -1
  407. package/esm/src/react/components/chat/chat-agent-picker.d.ts +1 -1
  408. package/esm/src/react/components/chat/chat-agent-picker.d.ts.map +1 -1
  409. package/esm/src/react/components/chat/chat-agent-picker.js +1 -1
  410. package/esm/src/react/components/chat/chat-theme-scope.d.ts +1 -1
  411. package/esm/src/react/components/chat/chat-theme-scope.d.ts.map +1 -1
  412. package/esm/src/react/components/chat/chat-theme-scope.js +1 -1
  413. package/esm/src/react/components/chat/chat.d.ts +6 -6
  414. package/esm/src/react/components/chat/chat.d.ts.map +1 -1
  415. package/esm/src/react/components/chat/chat.js +4 -4
  416. package/esm/src/react/components/chat/error-boundary.d.ts +1 -1
  417. package/esm/src/react/components/chat/error-boundary.d.ts.map +1 -1
  418. package/esm/src/react/components/chat/error-boundary.js +1 -1
  419. package/esm/src/react/components/chat/markdown.d.ts +3 -4
  420. package/esm/src/react/components/chat/markdown.d.ts.map +1 -1
  421. package/esm/src/react/components/chat/markdown.js +8 -74
  422. package/esm/src/react/components/chat/model-selector.d.ts +21 -27
  423. package/esm/src/react/components/chat/model-selector.d.ts.map +1 -1
  424. package/esm/src/react/components/chat/model-selector.js +26 -31
  425. package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts +1 -1
  426. package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts.map +1 -1
  427. package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.js +1 -1
  428. package/esm/src/react/components/optimized-image/OptimizedImage.d.ts +1 -1
  429. package/esm/src/react/components/optimized-image/OptimizedImage.d.ts.map +1 -1
  430. package/esm/src/react/components/optimized-image/OptimizedImage.js +1 -1
  431. package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts +1 -1
  432. package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts.map +1 -1
  433. package/esm/src/react/components/optimized-image/utils.d.ts +1 -1
  434. package/esm/src/react/components/optimized-image/utils.d.ts.map +1 -1
  435. package/esm/src/react/components/optimized-image/utils.js +1 -1
  436. package/esm/src/react/components/ui/alert.d.ts +1 -1
  437. package/esm/src/react/components/ui/alert.d.ts.map +1 -1
  438. package/esm/src/react/components/ui/alert.js +1 -1
  439. package/esm/src/react/components/ui/app-shell.d.ts +1 -1
  440. package/esm/src/react/components/ui/app-shell.d.ts.map +1 -1
  441. package/esm/src/react/components/ui/app-shell.js +1 -1
  442. package/esm/src/react/components/ui/avatar.d.ts +1 -1
  443. package/esm/src/react/components/ui/avatar.d.ts.map +1 -1
  444. package/esm/src/react/components/ui/avatar.js +1 -1
  445. package/esm/src/react/components/ui/badge.d.ts +1 -1
  446. package/esm/src/react/components/ui/badge.d.ts.map +1 -1
  447. package/esm/src/react/components/ui/badge.js +1 -1
  448. package/esm/src/react/components/ui/button.d.ts +1 -1
  449. package/esm/src/react/components/ui/button.d.ts.map +1 -1
  450. package/esm/src/react/components/ui/button.js +1 -1
  451. package/esm/src/react/components/ui/card.d.ts +1 -1
  452. package/esm/src/react/components/ui/card.d.ts.map +1 -1
  453. package/esm/src/react/components/ui/card.js +1 -1
  454. package/esm/src/react/components/ui/checkbox.d.ts +1 -1
  455. package/esm/src/react/components/ui/checkbox.d.ts.map +1 -1
  456. package/esm/src/react/components/ui/checkbox.js +1 -1
  457. package/esm/src/react/components/ui/code-block.d.ts +1 -1
  458. package/esm/src/react/components/ui/code-block.d.ts.map +1 -1
  459. package/esm/src/react/components/ui/code-block.js +1 -1
  460. package/esm/src/react/components/ui/collapsible.d.ts +1 -1
  461. package/esm/src/react/components/ui/collapsible.d.ts.map +1 -1
  462. package/esm/src/react/components/ui/collapsible.js +1 -1
  463. package/esm/src/react/components/ui/color-mode.d.ts +2 -2
  464. package/esm/src/react/components/ui/color-mode.d.ts.map +1 -1
  465. package/esm/src/react/components/ui/color-mode.js +1 -1
  466. package/esm/src/react/components/ui/command.d.ts +1 -1
  467. package/esm/src/react/components/ui/command.d.ts.map +1 -1
  468. package/esm/src/react/components/ui/command.js +1 -1
  469. package/esm/src/react/components/ui/dialog.d.ts +1 -1
  470. package/esm/src/react/components/ui/dialog.d.ts.map +1 -1
  471. package/esm/src/react/components/ui/dialog.js +1 -1
  472. package/esm/src/react/components/ui/drawer.d.ts +1 -1
  473. package/esm/src/react/components/ui/drawer.d.ts.map +1 -1
  474. package/esm/src/react/components/ui/drawer.js +1 -1
  475. package/esm/src/react/components/ui/dropdown-menu.d.ts +1 -1
  476. package/esm/src/react/components/ui/dropdown-menu.d.ts.map +1 -1
  477. package/esm/src/react/components/ui/dropdown-menu.js +1 -1
  478. package/esm/src/react/components/ui/file-type.d.ts +1 -1
  479. package/esm/src/react/components/ui/file-type.d.ts.map +1 -1
  480. package/esm/src/react/components/ui/file-type.js +1 -1
  481. package/esm/src/react/components/ui/floating.d.ts +1 -1
  482. package/esm/src/react/components/ui/floating.d.ts.map +1 -1
  483. package/esm/src/react/components/ui/floating.js +2 -2
  484. package/esm/src/react/components/ui/icon-button.d.ts +1 -1
  485. package/esm/src/react/components/ui/icon-button.d.ts.map +1 -1
  486. package/esm/src/react/components/ui/icon-button.js +1 -1
  487. package/esm/src/react/components/ui/icons/index.d.ts +1 -1
  488. package/esm/src/react/components/ui/icons/index.d.ts.map +1 -1
  489. package/esm/src/react/components/ui/icons/index.js +1 -1
  490. package/esm/src/react/components/ui/input.d.ts +1 -1
  491. package/esm/src/react/components/ui/input.d.ts.map +1 -1
  492. package/esm/src/react/components/ui/input.js +1 -1
  493. package/esm/src/react/components/ui/label.d.ts +1 -1
  494. package/esm/src/react/components/ui/label.d.ts.map +1 -1
  495. package/esm/src/react/components/ui/label.js +1 -1
  496. package/esm/src/react/components/ui/list.d.ts +1 -1
  497. package/esm/src/react/components/ui/list.d.ts.map +1 -1
  498. package/esm/src/react/components/ui/list.js +1 -1
  499. package/esm/src/react/components/ui/pill.d.ts +1 -1
  500. package/esm/src/react/components/ui/pill.d.ts.map +1 -1
  501. package/esm/src/react/components/ui/pill.js +1 -1
  502. package/esm/src/react/components/ui/popover.d.ts +1 -1
  503. package/esm/src/react/components/ui/popover.d.ts.map +1 -1
  504. package/esm/src/react/components/ui/popover.js +1 -1
  505. package/esm/src/react/components/ui/progress-bar.d.ts +1 -1
  506. package/esm/src/react/components/ui/progress-bar.d.ts.map +1 -1
  507. package/esm/src/react/components/ui/progress-bar.js +1 -1
  508. package/esm/src/react/components/ui/radio.d.ts +1 -1
  509. package/esm/src/react/components/ui/radio.d.ts.map +1 -1
  510. package/esm/src/react/components/ui/radio.js +1 -1
  511. package/esm/src/react/components/ui/scroll-fade.d.ts +1 -1
  512. package/esm/src/react/components/ui/scroll-fade.d.ts.map +1 -1
  513. package/esm/src/react/components/ui/scroll-fade.js +1 -1
  514. package/esm/src/react/components/ui/select.d.ts +1 -1
  515. package/esm/src/react/components/ui/select.d.ts.map +1 -1
  516. package/esm/src/react/components/ui/select.js +1 -1
  517. package/esm/src/react/components/ui/shimmer.d.ts +1 -1
  518. package/esm/src/react/components/ui/shimmer.d.ts.map +1 -1
  519. package/esm/src/react/components/ui/shimmer.js +1 -1
  520. package/esm/src/react/components/ui/skeleton.d.ts +1 -1
  521. package/esm/src/react/components/ui/skeleton.d.ts.map +1 -1
  522. package/esm/src/react/components/ui/skeleton.js +1 -1
  523. package/esm/src/react/components/ui/slot.d.ts +1 -1
  524. package/esm/src/react/components/ui/slot.d.ts.map +1 -1
  525. package/esm/src/react/components/ui/slot.js +1 -1
  526. package/esm/src/react/components/ui/status.d.ts +1 -1
  527. package/esm/src/react/components/ui/status.d.ts.map +1 -1
  528. package/esm/src/react/components/ui/status.js +1 -1
  529. package/esm/src/react/components/ui/switch.d.ts +1 -1
  530. package/esm/src/react/components/ui/switch.d.ts.map +1 -1
  531. package/esm/src/react/components/ui/switch.js +1 -1
  532. package/esm/src/react/components/ui/tabs.d.ts +3 -3
  533. package/esm/src/react/components/ui/tabs.d.ts.map +1 -1
  534. package/esm/src/react/components/ui/tabs.js +1 -1
  535. package/esm/src/react/components/ui/tag.d.ts +1 -1
  536. package/esm/src/react/components/ui/tag.d.ts.map +1 -1
  537. package/esm/src/react/components/ui/tag.js +1 -1
  538. package/esm/src/react/components/ui/textarea.d.ts +1 -1
  539. package/esm/src/react/components/ui/textarea.d.ts.map +1 -1
  540. package/esm/src/react/components/ui/textarea.js +1 -1
  541. package/esm/src/react/components/ui/tokens.d.ts +1 -1
  542. package/esm/src/react/components/ui/tokens.d.ts.map +1 -1
  543. package/esm/src/react/components/ui/tokens.js +1 -1
  544. package/esm/src/react/components/ui/tooltip.d.ts +1 -1
  545. package/esm/src/react/components/ui/tooltip.d.ts.map +1 -1
  546. package/esm/src/react/components/ui/tooltip.js +2 -2
  547. package/esm/src/react/fonts/index.d.ts +1 -1
  548. package/esm/src/react/fonts/index.d.ts.map +1 -1
  549. package/esm/src/react/fonts/index.js +1 -1
  550. package/esm/src/react/primitives/agent-primitives.d.ts +4 -4
  551. package/esm/src/react/primitives/agent-primitives.d.ts.map +1 -1
  552. package/esm/src/react/primitives/agent-primitives.js +1 -1
  553. package/esm/src/react/primitives/chat-container.d.ts +2 -2
  554. package/esm/src/react/primitives/chat-container.d.ts.map +1 -1
  555. package/esm/src/react/primitives/chat-container.js +1 -1
  556. package/esm/src/react/primitives/input-box.d.ts +4 -4
  557. package/esm/src/react/primitives/input-box.d.ts.map +1 -1
  558. package/esm/src/react/primitives/input-box.js +1 -1
  559. package/esm/src/react/primitives/message-list.d.ts +5 -5
  560. package/esm/src/react/primitives/message-list.d.ts.map +1 -1
  561. package/esm/src/react/primitives/message-list.js +1 -1
  562. package/esm/src/react/primitives/tool-primitives.d.ts +4 -4
  563. package/esm/src/react/primitives/tool-primitives.d.ts.map +1 -1
  564. package/esm/src/react/primitives/tool-primitives.js +1 -1
  565. package/esm/src/react/runtime/core.d.ts +1 -1
  566. package/esm/src/react/runtime/core.d.ts.map +1 -1
  567. package/esm/src/react/runtime/core.js +1 -1
  568. package/esm/src/rendering/app-reserved.d.ts +2 -2
  569. package/esm/src/rendering/app-reserved.d.ts.map +1 -1
  570. package/esm/src/rendering/app-reserved.js +3 -2
  571. package/esm/src/rendering/component-handling.d.ts +1 -1
  572. package/esm/src/rendering/component-handling.d.ts.map +1 -1
  573. package/esm/src/rendering/component-handling.js +1 -1
  574. package/esm/src/rendering/context/render-context.d.ts +2 -0
  575. package/esm/src/rendering/context/render-context.d.ts.map +1 -1
  576. package/esm/src/rendering/context/render-context.js +2 -0
  577. package/esm/src/rendering/element-validator/element-normalizer.d.ts +1 -1
  578. package/esm/src/rendering/element-validator/element-normalizer.d.ts.map +1 -1
  579. package/esm/src/rendering/element-validator/element-normalizer.js +1 -1
  580. package/esm/src/rendering/element-validator/primitive-checks.d.ts +1 -1
  581. package/esm/src/rendering/element-validator/primitive-checks.d.ts.map +1 -1
  582. package/esm/src/rendering/element-validator/primitive-checks.js +1 -1
  583. package/esm/src/rendering/element-validator/validator-core.d.ts +1 -1
  584. package/esm/src/rendering/element-validator/validator-core.d.ts.map +1 -1
  585. package/esm/src/rendering/factories/service-factories.js +1 -1
  586. package/esm/src/rendering/layouts/layout-applicator.d.ts +8 -2
  587. package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
  588. package/esm/src/rendering/layouts/layout-applicator.js +39 -11
  589. package/esm/src/rendering/layouts/layout-collector.d.ts +1 -0
  590. package/esm/src/rendering/layouts/layout-collector.d.ts.map +1 -1
  591. package/esm/src/rendering/layouts/layout-collector.js +7 -1
  592. package/esm/src/rendering/layouts/utils/applicator.d.ts +3 -3
  593. package/esm/src/rendering/layouts/utils/applicator.d.ts.map +1 -1
  594. package/esm/src/rendering/layouts/utils/applicator.js +7 -7
  595. package/esm/src/rendering/layouts/utils/component-loader.d.ts +7 -7
  596. package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
  597. package/esm/src/rendering/layouts/utils/component-loader.js +21 -14
  598. package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts +1 -1
  599. package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts.map +1 -1
  600. package/esm/src/rendering/orchestrator/html-types.d.ts +2 -0
  601. package/esm/src/rendering/orchestrator/html-types.d.ts.map +1 -1
  602. package/esm/src/rendering/orchestrator/html.d.ts.map +1 -1
  603. package/esm/src/rendering/orchestrator/html.js +16 -5
  604. package/esm/src/rendering/orchestrator/layout.d.ts +6 -2
  605. package/esm/src/rendering/orchestrator/layout.d.ts.map +1 -1
  606. package/esm/src/rendering/orchestrator/layout.js +16 -4
  607. package/esm/src/rendering/orchestrator/lifecycle.js +1 -1
  608. package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
  609. package/esm/src/rendering/orchestrator/module-loader/index.js +2 -2
  610. package/esm/src/rendering/orchestrator/module-loader/module-cache-lookup.d.ts +1 -1
  611. package/esm/src/rendering/orchestrator/module-loader/module-cache-lookup.d.ts.map +1 -1
  612. package/esm/src/rendering/orchestrator/module-loader/module-cache-lookup.js +9 -2
  613. package/esm/src/rendering/orchestrator/module-loader/module-transform-cache.d.ts.map +1 -1
  614. package/esm/src/rendering/orchestrator/module-loader/module-transform-cache.js +9 -2
  615. package/esm/src/rendering/orchestrator/pipeline-helpers.d.ts +1 -1
  616. package/esm/src/rendering/orchestrator/pipeline-helpers.d.ts.map +1 -1
  617. package/esm/src/rendering/orchestrator/pipeline-helpers.js +3 -2
  618. package/esm/src/rendering/orchestrator/pipeline.d.ts +21 -0
  619. package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
  620. package/esm/src/rendering/orchestrator/pipeline.js +88 -22
  621. package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts +1 -1
  622. package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts.map +1 -1
  623. package/esm/src/rendering/orchestrator/ssr.d.ts +1 -0
  624. package/esm/src/rendering/orchestrator/ssr.d.ts.map +1 -1
  625. package/esm/src/rendering/orchestrator/ssr.js +8 -0
  626. package/esm/src/rendering/orchestrator/types.d.ts +13 -0
  627. package/esm/src/rendering/orchestrator/types.d.ts.map +1 -1
  628. package/esm/src/rendering/page-renderer.d.ts +3 -1
  629. package/esm/src/rendering/page-renderer.d.ts.map +1 -1
  630. package/esm/src/rendering/page-renderer.js +13 -1
  631. package/esm/src/rendering/page-rendering.d.ts +3 -1
  632. package/esm/src/rendering/page-rendering.d.ts.map +1 -1
  633. package/esm/src/rendering/page-rendering.js +2 -2
  634. package/esm/src/rendering/page-resolution/page-resolver.d.ts.map +1 -1
  635. package/esm/src/rendering/page-resolution/page-resolver.js +4 -3
  636. package/esm/src/rendering/renderer.d.ts.map +1 -1
  637. package/esm/src/rendering/renderer.js +6 -0
  638. package/esm/src/rendering/rsc/client-boot.ts +5 -1
  639. package/esm/src/rendering/rsc/client-boundary-payload.d.ts +10 -0
  640. package/esm/src/rendering/rsc/client-boundary-payload.d.ts.map +1 -0
  641. package/esm/src/rendering/rsc/client-boundary-payload.js +71 -0
  642. package/esm/src/rendering/rsc/client-module-strategy.d.ts +5 -1
  643. package/esm/src/rendering/rsc/client-module-strategy.d.ts.map +1 -1
  644. package/esm/src/rendering/rsc/client-module-strategy.js +9 -3
  645. package/esm/src/rendering/rsc/component-analyzer.d.ts.map +1 -1
  646. package/esm/src/rendering/rsc/component-analyzer.js +18 -7
  647. package/esm/src/rendering/rsc/hydrate-client.ts +133 -26
  648. package/esm/src/rendering/rsc/page-island.d.ts +32 -0
  649. package/esm/src/rendering/rsc/page-island.d.ts.map +1 -0
  650. package/esm/src/rendering/rsc/page-island.js +191 -0
  651. package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts +1 -1
  652. package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts.map +1 -1
  653. package/esm/src/rendering/rsc/server-renderer/html-generator.d.ts +2 -2
  654. package/esm/src/rendering/rsc/server-renderer/html-generator.d.ts.map +1 -1
  655. package/esm/src/rendering/rsc/server-renderer/html-generator.js +34 -6
  656. package/esm/src/rendering/rsc/server-renderer/prop-serializer.d.ts +1 -0
  657. package/esm/src/rendering/rsc/server-renderer/prop-serializer.d.ts.map +1 -1
  658. package/esm/src/rendering/rsc/server-renderer/prop-serializer.js +17 -0
  659. package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts +4 -2
  660. package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts.map +1 -1
  661. package/esm/src/rendering/rsc/server-renderer/rsc-renderer.js +41 -6
  662. package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts +4 -4
  663. package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts.map +1 -1
  664. package/esm/src/rendering/rsc/server-renderer/tree-processor.js +65 -14
  665. package/esm/src/rendering/rsc/types.d.ts +1 -1
  666. package/esm/src/rendering/rsc/types.d.ts.map +1 -1
  667. package/esm/src/rendering/snippet-renderer.js +2 -2
  668. package/esm/src/rendering/ssr/component-registry.d.ts +1 -1
  669. package/esm/src/rendering/ssr/component-registry.d.ts.map +1 -1
  670. package/esm/src/rendering/ssr/component-registry.js +1 -1
  671. package/esm/src/rendering/ssr/mdx-renderer.d.ts +1 -1
  672. package/esm/src/rendering/ssr/mdx-renderer.d.ts.map +1 -1
  673. package/esm/src/rendering/ssr/mdx-renderer.js +1 -1
  674. package/esm/src/rendering/ssr/types.d.ts +1 -1
  675. package/esm/src/rendering/ssr/types.d.ts.map +1 -1
  676. package/esm/src/rendering/ssr-renderer.d.ts +7 -6
  677. package/esm/src/rendering/ssr-renderer.d.ts.map +1 -1
  678. package/esm/src/rendering/ssr-renderer.js +37 -30
  679. package/esm/src/rendering/utils/react-helpers.d.ts +1 -1
  680. package/esm/src/rendering/utils/react-helpers.d.ts.map +1 -1
  681. package/esm/src/rendering/utils/react-helpers.js +1 -1
  682. package/esm/src/routing/api/api-route-matcher.d.ts.map +1 -1
  683. package/esm/src/routing/api/api-route-matcher.js +6 -33
  684. package/esm/src/routing/api/module-loader/esbuild-plugin.d.ts.map +1 -1
  685. package/esm/src/routing/api/module-loader/esbuild-plugin.js +5 -1
  686. package/esm/src/routing/client/navigation-handlers.d.ts.map +1 -1
  687. package/esm/src/routing/client/navigation-handlers.js +2 -1
  688. package/esm/src/routing/client/page-loader.d.ts.map +1 -1
  689. package/esm/src/routing/client/page-loader.js +8 -3
  690. package/esm/src/routing/matchers/route-parser.d.ts.map +1 -1
  691. package/esm/src/routing/matchers/route-parser.js +27 -13
  692. package/esm/src/security/client/html-sanitizer.d.ts +1 -0
  693. package/esm/src/security/client/html-sanitizer.d.ts.map +1 -1
  694. package/esm/src/security/client/html-sanitizer.js +5 -2
  695. package/esm/src/security/http/base-handler.d.ts +2 -0
  696. package/esm/src/security/http/base-handler.d.ts.map +1 -1
  697. package/esm/src/security/http/base-handler.js +1 -0
  698. package/esm/src/security/http/config.d.ts.map +1 -1
  699. package/esm/src/security/http/config.js +12 -13
  700. package/esm/src/server/build-app-route-renderer.d.ts +2 -0
  701. package/esm/src/server/build-app-route-renderer.d.ts.map +1 -1
  702. package/esm/src/server/build-app-route-renderer.js +99 -39
  703. package/esm/src/server/build-routes.d.ts +2 -2
  704. package/esm/src/server/build-routes.d.ts.map +1 -1
  705. package/esm/src/server/build-routes.js +45 -54
  706. package/esm/src/server/dev-server/request-handler.d.ts.map +1 -1
  707. package/esm/src/server/dev-server/request-handler.js +2 -0
  708. package/esm/src/server/dev-server/route-discovery.d.ts.map +1 -1
  709. package/esm/src/server/dev-server/route-discovery.js +16 -11
  710. package/esm/src/server/handlers/dev/files/esbuild-plugins.d.ts +6 -1
  711. package/esm/src/server/handlers/dev/files/esbuild-plugins.d.ts.map +1 -1
  712. package/esm/src/server/handlers/dev/files/esbuild-plugins.js +138 -16
  713. package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
  714. package/esm/src/server/handlers/dev/framework-candidates.generated.js +845 -599
  715. package/esm/src/server/handlers/request/agent-stream.handler.d.ts.map +1 -1
  716. package/esm/src/server/handlers/request/agent-stream.handler.js +4 -1
  717. package/esm/src/server/handlers/request/api/app-router-resolver.js +1 -1
  718. package/esm/src/server/handlers/request/project-run-execute.handler.d.ts.map +1 -1
  719. package/esm/src/server/handlers/request/project-run-execute.handler.js +17 -2
  720. package/esm/src/server/handlers/request/rsc/index.d.ts.map +1 -1
  721. package/esm/src/server/handlers/request/rsc/index.js +9 -0
  722. package/esm/src/server/handlers/request/ssr/error-page-fallback.d.ts.map +1 -1
  723. package/esm/src/server/handlers/request/ssr/error-page-fallback.js +23 -15
  724. package/esm/src/server/handlers/request/ssr/not-found-fallback.d.ts.map +1 -1
  725. package/esm/src/server/handlers/request/ssr/not-found-fallback.js +10 -5
  726. package/esm/src/server/runtime-handler/local-project-discovery.d.ts.map +1 -1
  727. package/esm/src/server/runtime-handler/local-project-discovery.js +13 -2
  728. package/esm/src/server/services/rsc/endpoints/action-handler.d.ts +11 -1
  729. package/esm/src/server/services/rsc/endpoints/action-handler.d.ts.map +1 -1
  730. package/esm/src/server/services/rsc/endpoints/action-handler.js +83 -16
  731. package/esm/src/server/services/rsc/endpoints/endpoint-router.d.ts +9 -1
  732. package/esm/src/server/services/rsc/endpoints/endpoint-router.d.ts.map +1 -1
  733. package/esm/src/server/services/rsc/endpoints/endpoint-router.js +244 -73
  734. package/esm/src/server/services/rsc/endpoints/handler-registry.d.ts +4 -1
  735. package/esm/src/server/services/rsc/endpoints/handler-registry.d.ts.map +1 -1
  736. package/esm/src/server/services/rsc/endpoints/handler-registry.js +33 -3
  737. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
  738. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +1 -1
  739. package/esm/src/server/services/rsc/endpoints/script-handlers.d.ts.map +1 -1
  740. package/esm/src/server/services/rsc/endpoints/script-handlers.js +5 -11
  741. package/esm/src/server/services/rsc/endpoints/types.d.ts +9 -0
  742. package/esm/src/server/services/rsc/endpoints/types.d.ts.map +1 -1
  743. package/esm/src/server/services/rsc/orchestrators/component-resolver.d.ts +1 -1
  744. package/esm/src/server/services/rsc/orchestrators/component-resolver.d.ts.map +1 -1
  745. package/esm/src/server/services/rsc/orchestrators/component-resolver.js +9 -25
  746. package/esm/src/server/services/rsc/orchestrators/handler.d.ts +25 -3
  747. package/esm/src/server/services/rsc/orchestrators/handler.d.ts.map +1 -1
  748. package/esm/src/server/services/rsc/orchestrators/handler.js +74 -9
  749. package/esm/src/server/services/rsc/orchestrators/manifest-handler.d.ts +16 -0
  750. package/esm/src/server/services/rsc/orchestrators/manifest-handler.d.ts.map +1 -1
  751. package/esm/src/server/services/rsc/orchestrators/manifest-handler.js +124 -14
  752. package/esm/src/server/services/rsc/orchestrators/page-handler.d.ts +5 -0
  753. package/esm/src/server/services/rsc/orchestrators/page-handler.d.ts.map +1 -1
  754. package/esm/src/server/services/rsc/orchestrators/page-handler.js +16 -2
  755. package/esm/src/server/services/rsc/orchestrators/render-handler.d.ts +14 -2
  756. package/esm/src/server/services/rsc/orchestrators/render-handler.d.ts.map +1 -1
  757. package/esm/src/server/services/rsc/orchestrators/render-handler.js +42 -7
  758. package/esm/src/server/services/rsc/orchestrators/types.d.ts +19 -0
  759. package/esm/src/server/services/rsc/orchestrators/types.d.ts.map +1 -1
  760. package/esm/src/server/shared/browser-module-availability.d.ts +38 -0
  761. package/esm/src/server/shared/browser-module-availability.d.ts.map +1 -0
  762. package/esm/src/server/shared/browser-module-availability.js +140 -0
  763. package/esm/src/server/shared/browser-module-boundary.d.ts +18 -0
  764. package/esm/src/server/shared/browser-module-boundary.d.ts.map +1 -0
  765. package/esm/src/server/shared/browser-module-boundary.js +43 -0
  766. package/esm/src/server/shared/browser-module-bundler.d.ts +19 -0
  767. package/esm/src/server/shared/browser-module-bundler.d.ts.map +1 -1
  768. package/esm/src/server/shared/browser-module-bundler.js +123 -8
  769. package/esm/src/server/utils/domain-lookup.d.ts.map +1 -1
  770. package/esm/src/testing/bdd.d.ts.map +1 -1
  771. package/esm/src/testing/bdd.js +43 -10
  772. package/esm/src/transforms/esm/bundle-deps-validator.js +3 -3
  773. package/esm/src/transforms/esm/bundle-recovery.d.ts +3 -3
  774. package/esm/src/transforms/esm/bundle-recovery.d.ts.map +1 -1
  775. package/esm/src/transforms/esm/bundle-recovery.js +68 -29
  776. package/esm/src/transforms/esm/http-cache-helpers.d.ts +40 -0
  777. package/esm/src/transforms/esm/http-cache-helpers.d.ts.map +1 -1
  778. package/esm/src/transforms/esm/http-cache-helpers.js +143 -0
  779. package/esm/src/transforms/esm/http-cache-invariants.d.ts.map +1 -1
  780. package/esm/src/transforms/esm/http-cache-invariants.js +4 -3
  781. package/esm/src/transforms/esm/http-cache-wrapper.d.ts +4 -1
  782. package/esm/src/transforms/esm/http-cache-wrapper.d.ts.map +1 -1
  783. package/esm/src/transforms/esm/http-cache-wrapper.js +111 -3
  784. package/esm/src/transforms/esm/http-cache.d.ts +4 -4
  785. package/esm/src/transforms/esm/http-cache.d.ts.map +1 -1
  786. package/esm/src/transforms/esm/http-cache.js +24 -19
  787. package/esm/src/transforms/esm/in-flight-manager.d.ts +3 -3
  788. package/esm/src/transforms/esm/in-flight-manager.d.ts.map +1 -1
  789. package/esm/src/transforms/esm/in-flight-manager.js +2 -2
  790. package/esm/src/transforms/esm/package-registry.d.ts +4 -3
  791. package/esm/src/transforms/esm/package-registry.d.ts.map +1 -1
  792. package/esm/src/transforms/esm/package-registry.js +12 -6
  793. package/esm/src/transforms/esm/specifier-resolver.d.ts.map +1 -1
  794. package/esm/src/transforms/esm/specifier-resolver.js +7 -2
  795. package/esm/src/transforms/mdx/esm-module-loader/components/resolver.d.ts +1 -1
  796. package/esm/src/transforms/mdx/esm-module-loader/components/resolver.d.ts.map +1 -1
  797. package/esm/src/transforms/mdx/esm-module-loader/jsx/runtime-loader.js +1 -1
  798. package/esm/src/transforms/mdx/esm-module-loader/module-writer.d.ts.map +1 -1
  799. package/esm/src/transforms/mdx/esm-module-loader/module-writer.js +9 -5
  800. package/esm/src/transforms/mdx/index.d.ts +2 -2
  801. package/esm/src/transforms/mdx/index.d.ts.map +1 -1
  802. package/esm/src/transforms/mdx/index.js +3 -2
  803. package/esm/src/transforms/mdx/mdx-cache-adapter.js +1 -1
  804. package/esm/src/transforms/mdx/module-loader/types.d.ts +1 -1
  805. package/esm/src/transforms/mdx/module-loader/types.d.ts.map +1 -1
  806. package/esm/src/transforms/mdx/types.d.ts +2 -2
  807. package/esm/src/transforms/mdx/types.d.ts.map +1 -1
  808. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/constants.d.ts +22 -1
  809. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/constants.d.ts.map +1 -1
  810. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/constants.js +36 -13
  811. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/index.d.ts +1 -1
  812. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/index.d.ts.map +1 -1
  813. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/index.js +6 -4
  814. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.d.ts +2 -3
  815. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.d.ts.map +1 -1
  816. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.js +14 -12
  817. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.d.ts.map +1 -1
  818. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.js +73 -63
  819. package/esm/src/types/app.d.ts +1 -1
  820. package/esm/src/types/app.d.ts.map +1 -1
  821. package/esm/src/types/entities/getEntityInfo.d.ts +1 -1
  822. package/esm/src/types/entities/getEntityInfo.d.ts.map +1 -1
  823. package/esm/src/types/entities/getEntityInfo.js +25 -16
  824. package/esm/src/types/entities.js +1 -1
  825. package/esm/src/types/global-guards.d.ts +1 -1
  826. package/esm/src/types/global-guards.d.ts.map +1 -1
  827. package/esm/src/types/index.d.ts +2 -2
  828. package/esm/src/types/index.d.ts.map +1 -1
  829. package/esm/src/types/rsc.d.ts +16 -0
  830. package/esm/src/types/rsc.d.ts.map +1 -1
  831. package/esm/src/utils/id.d.ts +7 -0
  832. package/esm/src/utils/id.d.ts.map +1 -1
  833. package/esm/src/utils/id.js +22 -0
  834. package/esm/src/utils/platform.d.ts.map +1 -1
  835. package/esm/src/utils/platform.js +2 -11
  836. package/esm/src/utils/route-path-utils.d.ts +6 -2
  837. package/esm/src/utils/route-path-utils.d.ts.map +1 -1
  838. package/esm/src/utils/route-path-utils.js +18 -9
  839. package/esm/src/utils/version-constant.d.ts +1 -1
  840. package/esm/src/utils/version-constant.js +1 -1
  841. package/esm/src/workflow/claude-code/react/use-claude-code-stream.js +1 -1
  842. package/esm/src/workflow/claude-code/react/use-claude-code-websocket.js +1 -1
  843. package/esm/src/workflow/executor/dag/composite-node-execution.d.ts +11 -0
  844. package/esm/src/workflow/executor/dag/composite-node-execution.d.ts.map +1 -0
  845. package/esm/src/workflow/executor/dag/composite-node-execution.js +147 -0
  846. package/esm/src/workflow/executor/dag/graph.js +1 -1
  847. package/esm/src/workflow/executor/dag/index.d.ts +1 -1
  848. package/esm/src/workflow/executor/dag/index.d.ts.map +1 -1
  849. package/esm/src/workflow/executor/dag/index.js +78 -34
  850. package/esm/src/workflow/executor/dag/loop-node-strategy.d.ts.map +1 -1
  851. package/esm/src/workflow/executor/dag/loop-node-strategy.js +10 -2
  852. package/esm/src/workflow/executor/dag/map-node-strategy.d.ts.map +1 -1
  853. package/esm/src/workflow/executor/dag/map-node-strategy.js +3 -0
  854. package/esm/src/workflow/executor/dag/node-strategy-types.d.ts +1 -0
  855. package/esm/src/workflow/executor/dag/node-strategy-types.d.ts.map +1 -1
  856. package/esm/src/workflow/executor/dag/types.d.ts +2 -0
  857. package/esm/src/workflow/executor/dag/types.d.ts.map +1 -1
  858. package/esm/src/workflow/executor/dag/utils.d.ts +1 -1
  859. package/esm/src/workflow/executor/dag/utils.d.ts.map +1 -1
  860. package/esm/src/workflow/executor/dag/utils.js +13 -3
  861. package/esm/src/workflow/executor/step-executor.d.ts +5 -1
  862. package/esm/src/workflow/executor/step-executor.d.ts.map +1 -1
  863. package/esm/src/workflow/executor/step-executor.js +71 -16
  864. package/esm/src/workflow/executor/workflow-executor.d.ts +7 -4
  865. package/esm/src/workflow/executor/workflow-executor.d.ts.map +1 -1
  866. package/esm/src/workflow/executor/workflow-executor.js +181 -100
  867. package/esm/src/workflow/react/use-approval.js +1 -1
  868. package/esm/src/workflow/react/use-workflow-list.js +1 -1
  869. package/esm/src/workflow/react/use-workflow-start.js +1 -1
  870. package/esm/src/workflow/react/use-workflow.js +1 -1
  871. package/package.json +4 -5
  872. package/esm/deps/esm.sh/react-dom@19.2.4/client.d.ts +0 -3
  873. package/esm/deps/esm.sh/react-dom@19.2.4/client.d.ts.map +0 -1
  874. package/esm/deps/esm.sh/react-dom@19.2.4/client.js +0 -3
  875. package/esm/deps/esm.sh/react-dom@19.2.4/server.d.ts +0 -3
  876. package/esm/deps/esm.sh/react-dom@19.2.4/server.d.ts.map +0 -1
  877. package/esm/deps/esm.sh/react-dom@19.2.4/server.js +0 -3
  878. package/esm/deps/esm.sh/react-dom@19.2.4.d.ts +0 -3
  879. package/esm/deps/esm.sh/react-dom@19.2.4.d.ts.map +0 -1
  880. package/esm/deps/esm.sh/react-dom@19.2.4.js +0 -3
  881. package/esm/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts +0 -3
  882. package/esm/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts.map +0 -1
  883. package/esm/deps/esm.sh/react@19.2.4/jsx-dev-runtime.js +0 -3
  884. package/esm/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts +0 -3
  885. package/esm/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts.map +0 -1
  886. package/esm/deps/esm.sh/react@19.2.4/jsx-runtime.js +0 -3
  887. package/esm/deps/esm.sh/react@19.2.4.d.ts +0 -3
  888. package/esm/deps/esm.sh/react@19.2.4.d.ts.map +0 -1
  889. package/esm/deps/esm.sh/react@19.2.4.js +0 -3
  890. package/esm/deps/esm.sh/scheduler@^0.27.0.d.ts +0 -3
  891. package/esm/deps/esm.sh/scheduler@^0.27.0.d.ts.map +0 -1
  892. package/esm/deps/esm.sh/scheduler@^0.27.0.js +0 -3
  893. package/esm/react/jsx-dev-runtime.d.ts +0 -2
  894. package/esm/react/jsx-dev-runtime.d.ts.map +0 -1
  895. package/esm/react/jsx-dev-runtime.js +0 -1
  896. package/esm/react/jsx-runtime.d.ts +0 -2
  897. package/esm/react/jsx-runtime.d.ts.map +0 -1
  898. package/esm/react/jsx-runtime.js +0 -1
  899. package/esm/react/react-dom-client.d.ts +0 -3
  900. package/esm/react/react-dom-client.d.ts.map +0 -1
  901. package/esm/react/react-dom-client.js +0 -2
  902. package/esm/react/react-dom-server.d.ts +0 -3
  903. package/esm/react/react-dom-server.d.ts.map +0 -1
  904. package/esm/react/react-dom-server.js +0 -2
  905. package/esm/react/react-dom.d.ts +0 -3
  906. package/esm/react/react-dom.d.ts.map +0 -1
  907. package/esm/react/react-dom.js +0 -2
  908. package/esm/react/react.d.ts +0 -6
  909. package/esm/react/react.d.ts.map +0 -1
  910. package/esm/react/react.js +0 -7
@@ -1,4 +1,3 @@
1
- import * as dntShim from "../../../_dnt.shims.js";
2
1
  import { bundlerLogger as logger } from "../../utils/index.js";
3
2
  import { createError, toError } from "../../errors/veryfront-error.js";
4
3
  import * as esbuild from "../../extensions/bundler/index.js";
@@ -6,6 +5,7 @@ import { join } from "../../platform/compat/path/index.js";
6
5
  import { compileMDXToJS } from "../compiler/index.js";
7
6
  import { runtime } from "../../platform/adapters/detect.js";
8
7
  import { createFileSystem } from "../../platform/compat/fs.js";
8
+ import { getConfig } from "../../config/index.js";
9
9
  /**
10
10
  * Build the embedded preset bundle.
11
11
  * Outputs:
@@ -14,99 +14,122 @@ import { createFileSystem } from "../../platform/compat/fs.js";
14
14
  * - outDir/embedded/rsc/*.js (RSC support)
15
15
  */
16
16
  export async function buildEmbeddedPreset(options) {
17
- const { projectDir, outDir } = options;
18
- const embeddedDir = join(outDir, "embedded");
19
- const fs = createFileSystem();
20
- const adapter = await runtime.get();
21
- await fs.mkdir(embeddedDir, { recursive: true });
22
- await fs.mkdir(join(embeddedDir, "rsc"), { recursive: true });
23
- const entryPath = await findOrCreateEntryPath(fs, projectDir);
24
- const appOut = join(embeddedDir, "app.js");
25
- const bundledAppCode = await bundleEmbeddedApp({
26
- fs,
27
- entryPath,
28
- projectDir,
29
- adapter: adapter,
30
- });
31
- await fs.writeTextFile(appOut, bundledAppCode);
32
- const routes = [];
33
- const discovered = [
34
- ...(await discoverAppRoutes(fs, projectDir, embeddedDir)),
35
- ...(await discoverPagesRoutes(fs, projectDir, embeddedDir)),
36
- ];
37
- for (const r of discovered) {
38
- try {
39
- const mdxContent = await fs.readTextFile(r.sourcePath);
40
- const compiled = await compileMDXToJS(r.sourcePath, mdxContent, {
41
- projectDir,
42
- mode: "production",
43
- adapter,
44
- });
45
- await fs.mkdir(presetDirname(r.filePath), { recursive: true });
46
- await fs.writeTextFile(r.filePath, compiled.code);
47
- const fileRel = r.filePath.slice(embeddedDir.length + 1).replace(/\\/g, "/");
48
- routes.push({
49
- path: r.routePath,
50
- file: `embedded/${fileRel}`,
51
- type: "page",
52
- });
17
+ let buildResult;
18
+ let buildFailed = false;
19
+ let buildError;
20
+ try {
21
+ const { projectDir, outDir } = options;
22
+ const embeddedDir = join(outDir, "embedded");
23
+ const fs = createFileSystem();
24
+ const adapter = await runtime.get();
25
+ const config = options.config ?? await getConfig(projectDir, adapter);
26
+ const appDirectory = config.directories?.app ?? "app";
27
+ const pagesDirectory = config.directories?.pages ?? "pages";
28
+ await fs.mkdir(embeddedDir, { recursive: true });
29
+ await fs.mkdir(join(embeddedDir, "rsc"), { recursive: true });
30
+ const entryPath = await findOrCreateEntryPath(fs, projectDir, appDirectory, pagesDirectory);
31
+ const appOut = join(embeddedDir, "app.js");
32
+ const bundledAppCode = await bundleEmbeddedApp({
33
+ fs,
34
+ entryPath,
35
+ projectDir,
36
+ adapter: adapter,
37
+ });
38
+ await fs.writeTextFile(appOut, bundledAppCode);
39
+ const routes = [];
40
+ const discovered = [
41
+ ...(await discoverAppRoutes(fs, projectDir, embeddedDir, appDirectory)),
42
+ ...(await discoverPagesRoutes(fs, projectDir, embeddedDir, pagesDirectory)),
43
+ ];
44
+ for (const r of discovered) {
45
+ try {
46
+ const mdxContent = await fs.readTextFile(r.sourcePath);
47
+ const compiled = await compileMDXToJS(r.sourcePath, mdxContent, {
48
+ projectDir,
49
+ mode: "production",
50
+ adapter,
51
+ });
52
+ await fs.mkdir(presetDirname(r.filePath), { recursive: true });
53
+ await fs.writeTextFile(r.filePath, compiled.code);
54
+ const fileRel = r.filePath.slice(embeddedDir.length + 1).replace(/\\/g, "/");
55
+ routes.push({
56
+ path: r.routePath,
57
+ file: `embedded/${fileRel}`,
58
+ type: "page",
59
+ });
60
+ }
61
+ catch (e) {
62
+ logger.warn("embedded: failed to compile route MDX", {
63
+ route: r.routePath,
64
+ error: String(e),
65
+ });
66
+ }
53
67
  }
54
- catch (e) {
55
- logger.warn("embedded: failed to compile route MDX", {
56
- route: r.routePath,
57
- error: String(e),
58
- });
68
+ routes.unshift({ path: "/", file: "embedded/app.js", type: "page" });
69
+ const rscFiles = [
70
+ new URL("../../rendering/rsc/client-dom.ts", globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url),
71
+ new URL("../../rendering/rsc/hydrate-client.ts", globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url),
72
+ ];
73
+ for (const url of rscFiles) {
74
+ try {
75
+ const srcPath = url.pathname;
76
+ const src = await fs.readTextFile(srcPath);
77
+ const res = await esbuild.transform(src, {
78
+ loader: "ts",
79
+ target: "es2020",
80
+ format: "esm",
81
+ });
82
+ const name = presetBasename(srcPath).replace(/\.tsx?$/, ".js");
83
+ await fs.writeTextFile(join(embeddedDir, "rsc", name), res.code);
84
+ }
85
+ catch (e) {
86
+ logger.warn("embedded: failed to process RSC file", { error: String(e) });
87
+ }
59
88
  }
89
+ const manifest = {
90
+ version: 1,
91
+ routes,
92
+ assets: [
93
+ {
94
+ path: "/_veryfront/rsc/dom.js",
95
+ file: "embedded/rsc/client-dom.js",
96
+ contentType: "application/javascript",
97
+ },
98
+ {
99
+ path: "/_veryfront/rsc/hydrate-client.js",
100
+ file: "embedded/rsc/hydrate-client.js",
101
+ contentType: "application/javascript",
102
+ },
103
+ ],
104
+ };
105
+ await fs.writeTextFile(join(embeddedDir, "manifest.json"), JSON.stringify(manifest, null, 2));
106
+ logger.info("Embedded preset built", { outDir: embeddedDir });
107
+ buildResult = { manifest };
60
108
  }
61
- routes.unshift({ path: "/", file: "embedded/app.js", type: "page" });
62
- const rscFiles = [
63
- new URL("../../rendering/rsc/client-dom.ts", globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url),
64
- new URL("../../rendering/rsc/hydrate-client.ts", globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url),
65
- ];
66
- for (const url of rscFiles) {
67
- try {
68
- const srcPath = url.pathname;
69
- const src = await fs.readTextFile(srcPath);
70
- const res = await esbuild.transform(src, {
71
- loader: "ts",
72
- target: "es2020",
73
- format: "esm",
74
- });
75
- const name = presetBasename(srcPath).replace(/\.tsx?$/, ".js");
76
- await fs.writeTextFile(join(embeddedDir, "rsc", name), res.code);
77
- }
78
- catch (e) {
79
- logger.warn("embedded: failed to process RSC file", { error: String(e) });
80
- }
109
+ catch (error) {
110
+ buildFailed = true;
111
+ buildError = error;
81
112
  }
82
- const manifest = {
83
- version: 1,
84
- routes,
85
- assets: [
86
- {
87
- path: "/_veryfront/rsc/dom.js",
88
- file: "embedded/rsc/client-dom.js",
89
- contentType: "application/javascript",
90
- },
91
- {
92
- path: "/_veryfront/rsc/hydrate-client.js",
93
- file: "embedded/rsc/hydrate-client.js",
94
- contentType: "application/javascript",
95
- },
96
- ],
97
- };
98
- await fs.writeTextFile(join(embeddedDir, "manifest.json"), JSON.stringify(manifest, null, 2));
99
- logger.info("Embedded preset built", { outDir: embeddedDir });
100
- // Only stop esbuild if not in test mode with global initialization
101
- if (!dntShim.dntGlobalThis.__vfTestPreserveEsbuild) {
102
- try {
103
- esbuild.stop();
104
- }
105
- catch (_) {
106
- /* expected: esbuild service may not be running */
113
+ let stopFailed = false;
114
+ let stopError;
115
+ try {
116
+ await esbuild.stop();
117
+ }
118
+ catch (error) {
119
+ stopFailed = true;
120
+ stopError = error;
121
+ }
122
+ if (buildFailed) {
123
+ if (stopFailed) {
124
+ logger.warn("Failed to stop esbuild after embedded preset build error", {
125
+ error: String(stopError),
126
+ });
107
127
  }
128
+ throw buildError;
108
129
  }
109
- return { manifest };
130
+ if (stopFailed)
131
+ throw stopError;
132
+ return buildResult;
110
133
  }
111
134
  /** @internal — exported for testing */
112
135
  export function presetDirname(path) {
@@ -132,12 +155,12 @@ export function normalizePageRoutePath(relPath) {
132
155
  export function isPageFile(name) {
133
156
  return (name.endsWith(".mdx") || name.endsWith(".md")) && !name.startsWith("_");
134
157
  }
135
- async function findOrCreateEntryPath(fs, projectDir) {
158
+ async function findOrCreateEntryPath(fs, projectDir, appDirectory, pagesDirectory) {
136
159
  const candidates = [
137
- join(projectDir, "app", "page.mdx"),
138
- join(projectDir, "app", "page.md"),
139
- join(projectDir, "pages", "index.mdx"),
140
- join(projectDir, "pages", "index.md"),
160
+ join(projectDir, appDirectory, "page.mdx"),
161
+ join(projectDir, appDirectory, "page.md"),
162
+ join(projectDir, pagesDirectory, "index.mdx"),
163
+ join(projectDir, pagesDirectory, "index.md"),
141
164
  ];
142
165
  for (const c of candidates) {
143
166
  try {
@@ -198,9 +221,9 @@ async function bundleEmbeddedApp(params) {
198
221
  }));
199
222
  }
200
223
  }
201
- async function discoverAppRoutes(fs, projectDir, embeddedDir) {
224
+ async function discoverAppRoutes(fs, projectDir, embeddedDir, appDirectory) {
202
225
  const results = [];
203
- const base = join(projectDir, "app");
226
+ const base = join(projectDir, appDirectory);
204
227
  async function walk(dir, rel = "") {
205
228
  for await (const ent of fs.readDir(dir)) {
206
229
  const abs = join(dir, ent.name);
@@ -225,9 +248,9 @@ async function discoverAppRoutes(fs, projectDir, embeddedDir) {
225
248
  }
226
249
  return results;
227
250
  }
228
- async function discoverPagesRoutes(fs, projectDir, embeddedDir) {
251
+ async function discoverPagesRoutes(fs, projectDir, embeddedDir, pagesDirectory) {
229
252
  const results = [];
230
- const base = join(projectDir, "pages");
253
+ const base = join(projectDir, pagesDirectory);
231
254
  async function walk(dir, rel = "") {
232
255
  for await (const ent of fs.readDir(dir)) {
233
256
  const abs = join(dir, ent.name);
@@ -1 +1 @@
1
- {"version":3,"file":"build-cleanup.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/build-cleanup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,wBAAsB,eAAe,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhF;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAOnD;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAG/E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAQ1D"}
1
+ {"version":3,"file":"build-cleanup.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/build-cleanup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,wBAAsB,eAAe,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhF;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAOnD;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAO/E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAQ1D"}
@@ -12,7 +12,12 @@ export async function cleanupCaches() {
12
12
  }
13
13
  }
14
14
  export async function performCleanup(renderer) {
15
- await cleanupRenderer(renderer);
15
+ try {
16
+ await cleanupRenderer(renderer);
17
+ }
18
+ catch (_) {
19
+ logger.warn("Renderer cleanup failed");
20
+ }
16
21
  await cleanupCaches();
17
22
  }
18
23
  export function logBuildCompletion(stats) {
@@ -1 +1 @@
1
- {"version":3,"file":"build-orchestrator.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/build-orchestrator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAG/E,OAAO,EACL,aAAa,EACb,eAAe,EACf,kBAAkB,EAEnB,MAAM,oBAAoB,CAAC;AAU5B,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAqI1E;AAED,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"build-orchestrator.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/build-orchestrator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAG/E,OAAO,EACL,aAAa,EACb,eAAe,EACf,kBAAkB,EAEnB,MAAM,oBAAoB,CAAC;AAU5B,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAyI1E;AAED,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAC"}
@@ -29,55 +29,61 @@ export function buildProduction(options) {
29
29
  }
30
30
  logger.info("Starting production build", options);
31
31
  const context = await withSpan("build.initializeContext", () => initializeBuildContext(options), {});
32
- const outputDir = normalizedOptions.outputDir ?? "";
33
- const dryRun = normalizedOptions.dryRun ?? false;
34
- const enableSplitting = normalizedOptions.enableSplitting ?? true;
35
- const enablePrefetch = normalizedOptions.enablePrefetch ?? true;
36
- const enableCompression = normalizedOptions.enableCompression ?? true;
37
- const ssg = normalizedOptions.ssg ?? false;
38
- await withSpan("build.setupDirectories", () => setupBuildDirectories(context.adapter, outputDir, dryRun), {});
39
- const releaseAssetManifest = await withSpan("build.localReleaseAssets", () => generateLocalReleaseAssetManifest({
40
- adapter: context.adapter,
41
- projectDir: normalizedOptions.projectDir,
42
- outputDir,
43
- dryRun,
44
- }), {});
45
- const routes = await withSpan("build.collectRoutes", () => collectAllRoutes(context.adapter, normalizedOptions.projectDir, ssg, normalizedOptions.include, normalizedOptions.exclude), {});
46
- const splitResult = await withSpan("build.codeSplitting", () => runCodeSplitting(normalizedOptions.projectDir, outputDir, routes.pages, enableSplitting, dryRun), {});
47
- context.stats.chunks = splitResult.chunks;
48
- const buildResult = await withSpan("build.execute", () => executeBuild(routes.pages, routes.app, {
49
- adapter: context.adapter,
50
- projectDir: normalizedOptions.projectDir,
51
- outputDir,
52
- renderer: context.renderer,
53
- config: context.config,
54
- enablePrefetch,
55
- chunkManifest: splitResult.manifest,
56
- baseUrl: "",
57
- dryRun,
58
- releaseAssetManifest,
59
- }), {});
60
- context.stats.pages = buildResult.pages;
61
- context.stats.totalSize = buildResult.totalSize;
62
- await withSpan("build.generateOutputs", () => generateAllOutputs({
63
- adapter: context.adapter,
64
- projectDir: normalizedOptions.projectDir,
65
- outputDir,
66
- routes: routes.pages,
67
- appRoutes: routes.app,
68
- stats: context.stats,
69
- enableSplitting,
70
- enablePrefetch,
71
- enableCompression,
72
- chunkManifest: splitResult.manifest,
73
- dryRun,
74
- releaseAssetManifest,
75
- }), {});
76
- context.stats.duration = Date.now() - startTime;
77
- logBuildCompletion(context.stats);
78
- await performCleanup(context.renderer);
79
- context.stats.ssgPaths = buildResult.ssgPaths;
80
- return context.stats;
32
+ try {
33
+ const outputDir = normalizedOptions.outputDir ?? "";
34
+ const dryRun = normalizedOptions.dryRun ?? false;
35
+ const enableSplitting = normalizedOptions.enableSplitting ?? true;
36
+ const enablePrefetch = normalizedOptions.enablePrefetch ?? true;
37
+ const enableCompression = normalizedOptions.enableCompression ?? true;
38
+ const ssg = normalizedOptions.ssg ?? false;
39
+ await withSpan("build.setupDirectories", () => setupBuildDirectories(context.adapter, outputDir, dryRun), {});
40
+ const releaseAssetManifest = await withSpan("build.localReleaseAssets", () => generateLocalReleaseAssetManifest({
41
+ adapter: context.adapter,
42
+ projectDir: normalizedOptions.projectDir,
43
+ outputDir,
44
+ dryRun,
45
+ config: context.config,
46
+ }), {});
47
+ const routes = await withSpan("build.collectRoutes", () => collectAllRoutes(context.adapter, normalizedOptions.projectDir, ssg, normalizedOptions.include, normalizedOptions.exclude, context.config), {});
48
+ const splitResult = await withSpan("build.codeSplitting", () => runCodeSplitting(normalizedOptions.projectDir, outputDir, routes.pages, enableSplitting, dryRun), {});
49
+ context.stats.chunks = splitResult.chunks;
50
+ const buildResult = await withSpan("build.execute", () => executeBuild(routes.pages, routes.app, {
51
+ adapter: context.adapter,
52
+ projectDir: normalizedOptions.projectDir,
53
+ outputDir,
54
+ renderer: context.renderer,
55
+ config: context.config,
56
+ enablePrefetch,
57
+ chunkManifest: splitResult.manifest,
58
+ baseUrl: "",
59
+ dryRun,
60
+ releaseAssetManifest,
61
+ }), {});
62
+ context.stats.pages = buildResult.pages;
63
+ context.stats.totalSize = buildResult.totalSize;
64
+ context.stats.ssgPaths = buildResult.ssgPaths;
65
+ await withSpan("build.generateOutputs", () => generateAllOutputs({
66
+ adapter: context.adapter,
67
+ projectDir: normalizedOptions.projectDir,
68
+ outputDir,
69
+ routes: routes.pages,
70
+ appRoutes: routes.app,
71
+ stats: context.stats,
72
+ enableSplitting,
73
+ enablePrefetch,
74
+ enableCompression,
75
+ chunkManifest: splitResult.manifest,
76
+ dryRun,
77
+ config: context.config,
78
+ releaseAssetManifest,
79
+ }), {});
80
+ context.stats.duration = Date.now() - startTime;
81
+ logBuildCompletion(context.stats);
82
+ return context.stats;
83
+ }
84
+ finally {
85
+ await performCleanup(context.renderer);
86
+ }
81
87
  }, { "build.projectDir": options.projectDir });
82
88
  }
83
89
  export { cleanupCaches, cleanupRenderer, logBuildCompletion };
@@ -12,6 +12,7 @@ import type { RuntimeAdapter } from "../../../platform/adapters/base.js";
12
12
  import type { ChunkManifest } from "../../bundler/index.js";
13
13
  import type { AppRouteInfo, BuildStats, RouteInfo } from "../../../server/build-types.js";
14
14
  import type { ReleaseAssetManifest } from "../../../release-assets/manifest-schema.js";
15
+ import type { VeryfrontConfig } from "../../../config/index.js";
15
16
  export interface OutputGeneratorOptions {
16
17
  adapter: RuntimeAdapter;
17
18
  projectDir: string;
@@ -24,6 +25,7 @@ export interface OutputGeneratorOptions {
24
25
  enableCompression: boolean;
25
26
  chunkManifest: ChunkManifest | null;
26
27
  dryRun: boolean;
28
+ config?: VeryfrontConfig;
27
29
  releaseAssetManifest?: ReleaseAssetManifest | null;
28
30
  }
29
31
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"output-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/output-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAe1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpD;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAgCf;AAWD;;GAEG;AACH,wBAAsB,gCAAgC,CACpD,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAgCf;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;GAEG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAEhD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBvF"}
1
+ {"version":3,"file":"output-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/output-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAe1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpD;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAgCf;AAWD;;GAEG;AACH,wBAAsB,gCAAgC,CACpD,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAgCf;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;GAEG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAEhD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBvF"}
@@ -72,7 +72,7 @@ export function copyAssets(adapter, projectDir, outputDir, dryRun) {
72
72
  * Generate all output files
73
73
  */
74
74
  export async function generateAllOutputs(options) {
75
- const { adapter, projectDir, outputDir, dryRun, stats, releaseAssetManifest } = options;
75
+ const { adapter, projectDir, outputDir, dryRun, stats, config, releaseAssetManifest } = options;
76
76
  await generateClientScripts(adapter, outputDir, dryRun);
77
77
  if (releaseAssetManifest === undefined) {
78
78
  await generateLocalReleaseAssetManifest({
@@ -80,6 +80,7 @@ export async function generateAllOutputs(options) {
80
80
  projectDir,
81
81
  outputDir,
82
82
  dryRun,
83
+ config,
83
84
  });
84
85
  }
85
86
  const assetStats = await copyAssets(adapter, projectDir, outputDir, dryRun);
@@ -8,9 +8,10 @@
8
8
  */
9
9
  import type { RuntimeAdapter } from "../../../platform/adapters/base.js";
10
10
  import type { AppRouteInfo, RouteInfo } from "../../../server/build-types.js";
11
+ import type { VeryfrontConfig } from "../../../config/index.js";
11
12
  export interface CollectedRoutes {
12
13
  pages: RouteInfo[];
13
14
  app: AppRouteInfo[];
14
15
  }
15
- export declare function collectAllRoutes(adapter: RuntimeAdapter, projectDir: string, ssg: boolean, include?: string[], exclude?: string[]): Promise<CollectedRoutes>;
16
+ export declare function collectAllRoutes(adapter: RuntimeAdapter, projectDir: string, ssg: boolean, include?: string[], exclude?: string[], config?: VeryfrontConfig): Promise<CollectedRoutes>;
16
17
  //# sourceMappingURL=route-collector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"route-collector.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/route-collector.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAI9E,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,GAAG,EAAE,YAAY,EAAE,CAAC;CACrB;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,OAAO,EACZ,OAAO,CAAC,EAAE,MAAM,EAAE,EAClB,OAAO,CAAC,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,eAAe,CAAC,CAkB1B"}
1
+ {"version":3,"file":"route-collector.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/route-collector.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAIhE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,GAAG,EAAE,YAAY,EAAE,CAAC;CACrB;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,OAAO,EACZ,OAAO,CAAC,EAAE,MAAM,EAAE,EAClB,OAAO,CAAC,EAAE,MAAM,EAAE,EAClB,MAAM,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,eAAe,CAAC,CA8B1B"}
@@ -9,14 +9,14 @@
9
9
  import { serverLogger } from "../../../utils/index.js";
10
10
  import { collectAppRoutes, collectPagesRoutes } from "../../../server/build-routes.js";
11
11
  const logger = serverLogger.component("build");
12
- export async function collectAllRoutes(adapter, projectDir, ssg, include, exclude) {
12
+ export async function collectAllRoutes(adapter, projectDir, ssg, include, exclude, config) {
13
13
  if (!ssg) {
14
14
  logger.info("SSG disabled, skipping route collection");
15
15
  return { pages: [], app: [] };
16
16
  }
17
17
  const [pages, app] = await Promise.all([
18
- collectPagesRoutes(adapter, projectDir, include, exclude),
19
- collectAppRoutes(adapter, projectDir, include, exclude),
18
+ collectPagesRoutes(adapter, projectDir, include, exclude, config?.directories?.pages ?? "pages"),
19
+ collectAppRoutes(adapter, projectDir, include, exclude, config?.directories?.app ?? "app"),
20
20
  ]);
21
21
  logger.info(`Collected routes: ${pages.length} pages, ${app.length} app`);
22
22
  if (app.length > 0) {
@@ -1,3 +1,7 @@
1
+ /**************************
2
+ * Client Runtime Generation for Build
3
+ * Handles generation of client-side router and prefetch scripts
4
+ **************************/
1
5
  import type { RuntimeAdapter } from "../../platform/adapters/base.js";
2
6
  interface ClientScriptGenerationOptions {
3
7
  forceSourceBundle?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"client-runtime.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/client-runtime.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAiBtE,UAAU,6BAA6B;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAqCD;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CA4B1C;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,MAAM,CAAC,CAYjB;AAoBD;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,MAAM,CAAC,CAOjB;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,QAAQ,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,MAAM,CAAC,CAOjB;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAYzD"}
1
+ {"version":3,"file":"client-runtime.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/client-runtime.ts"],"names":[],"mappings":"AAAA;;;4BAG4B;AAY5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAiBtE,UAAU,6BAA6B;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAqCD;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CA4B1C;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,MAAM,CAAC,CAYjB;AAoBD;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,MAAM,CAAC,CAOjB;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,QAAQ,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,MAAM,CAAC,CAOjB;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAYzD"}
@@ -2,7 +2,6 @@
2
2
  * Client Runtime Generation for Build
3
3
  * Handles generation of client-side router and prefetch scripts
4
4
  **************************/
5
- import * as dntShim from "../../../_dnt.shims.js";
6
5
  import { dirname, extname, fromFileUrl, isAbsolute, join, resolve, } from "../../platform/compat/path/index.js";
7
6
  import { serverLogger as logger } from "../../utils/index.js";
8
7
  import { createError, toError } from "../../errors/veryfront-error.js";
@@ -292,13 +291,11 @@ async function bundleClientEntry(entryRelative) {
292
291
  });
293
292
  }
294
293
  finally {
295
- if (!dntShim.dntGlobalThis.__vfTestPreserveEsbuild) {
296
- try {
297
- await Promise.resolve(stop());
298
- }
299
- catch (error) {
300
- logger.warn("Failed to stop esbuild service cleanly", error);
301
- }
294
+ try {
295
+ await stop();
296
+ }
297
+ catch (error) {
298
+ logger.warn("Failed to stop esbuild service cleanly", error);
302
299
  }
303
300
  }
304
301
  const output = result.outputFiles?.[0]?.text;
@@ -1,12 +1,14 @@
1
1
  import type { RuntimeAdapter } from "../../platform/adapters/base.js";
2
2
  import { type ReleaseAssetHttpDependencyVendor, type ReleaseAssetTransform } from "../../release-assets/build-executor.js";
3
3
  import type { ReleaseAssetManifest } from "../../release-assets/manifest-schema.js";
4
+ import type { VeryfrontConfig } from "../../config/index.js";
4
5
  export declare const LOCAL_RELEASE_ASSET_MANIFEST_PATH = "_veryfront/release-asset-manifest.json";
5
6
  export interface LocalReleaseAssetOptions {
6
7
  adapter: RuntimeAdapter;
7
8
  projectDir: string;
8
9
  outputDir: string;
9
10
  dryRun: boolean;
11
+ config?: VeryfrontConfig;
10
12
  projectId?: string;
11
13
  releaseId?: string;
12
14
  vendorHttpImports?: ReleaseAssetHttpDependencyVendor;
@@ -1 +1 @@
1
- {"version":3,"file":"local-release-assets.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/local-release-assets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAOtE,OAAO,EAML,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC3B,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAKpF,eAAO,MAAM,iCAAiC,2CAA2C,CAAC;AAE1F,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,gCAAgC,CAAC;IACrD,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;CAC5C;AAoBD,wBAAsB,iCAAiC,CACrD,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAwFtC"}
1
+ {"version":3,"file":"local-release-assets.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/local-release-assets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAOtE,OAAO,EAML,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC3B,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAIpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,eAAO,MAAM,iCAAiC,2CAA2C,CAAC;AAE1F,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,gCAAgC,CAAC;IACrD,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;CAC5C;AAoBD,wBAAsB,iCAAiC,CACrD,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CA2FtC"}
@@ -23,7 +23,10 @@ export async function generateLocalReleaseAssetManifest(options) {
23
23
  const tempDir = await options.adapter.fs.makeTempDir("vf-local-release-assets-");
24
24
  try {
25
25
  try {
26
- const reactVersion = await resolveProjectReactVersion({ projectDir: options.projectDir });
26
+ const reactVersion = await resolveProjectReactVersion({
27
+ projectDir: options.projectDir,
28
+ config: options.config,
29
+ });
27
30
  const built = await buildReactImportMapDependencyAssets({
28
31
  tempDir,
29
32
  reactVersion,
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAGvF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAC7C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC1C,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE;QACR,SAAS,EAAE,OAAO,CAAC;QACnB,aAAa,EAAE,OAAO,CAAC;QACvB,aAAa,EAAE,OAAO,CAAC;QACvB,WAAW,EAAE,OAAO,CAAC;QACrB,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,MAAM,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC,CAAC;IACH,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;CACrC;AAgBD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAsDxE;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAK1C"}
1
+ {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAGvF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAC7C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC1C,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE;QACR,SAAS,EAAE,OAAO,CAAC;QACnB,aAAa,EAAE,OAAO,CAAC;QACvB,aAAa,EAAE,OAAO,CAAC;QACvB,WAAW,EAAE,OAAO,CAAC;QACrB,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,MAAM,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC,CAAC;IACH,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;CACrC;AAgBD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CA6DxE;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAK1C"}
@@ -15,6 +15,13 @@ export function generateManifest(options) {
15
15
  const validatedManifest = chunkManifest && isValidChunkManifest(chunkManifest)
16
16
  ? chunkManifest
17
17
  : null;
18
+ const generatedPaths = stats.ssgPaths ? new Set(stats.ssgPaths) : null;
19
+ const generatedRoutes = generatedPaths
20
+ ? routes.filter((route) => generatedPaths.has(route.path))
21
+ : routes;
22
+ const generatedAppRoutes = generatedPaths
23
+ ? appRoutes.filter((route) => generatedPaths.has(route.path))
24
+ : appRoutes;
18
25
  if (chunkManifest && !validatedManifest) {
19
26
  bundlerLogger.warn("Invalid chunk manifest structure, chunks will be disabled");
20
27
  }
@@ -34,12 +41,12 @@ export function generateManifest(options) {
34
41
  compression: enableCompression,
35
42
  },
36
43
  routes: [
37
- ...routes.map((r) => ({
44
+ ...generatedRoutes.map((r) => ({
38
45
  path: r.path,
39
46
  slug: r.slug,
40
47
  chunks: getChunksForRoute(r.path),
41
48
  })),
42
- ...appRoutes.map((r) => ({
49
+ ...generatedAppRoutes.map((r) => ({
43
50
  path: r.path,
44
51
  slug: r.path === "/" ? "index" : r.path.slice(1),
45
52
  chunks: [],
@@ -1 +1 @@
1
- {"version":3,"file":"static-generation.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/static-generation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAWpF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,KAAK,GAAG,WAAW,CAAC;KAC3B,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,mGAAmG;IACnG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAClE,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpD;AAwID,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,SAAS,EAAE,EACnB,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,QAAQ,CAAC,CA4HnB;AAED,wBAAsB,cAAc,CAClC,SAAS,EAAE,YAAY,EAAE,EACzB,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,QAAQ,CAAC,CAmDnB"}
1
+ {"version":3,"file":"static-generation.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/static-generation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAYpF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,KAAK,GAAG,WAAW,CAAC;KAC3B,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,mGAAmG;IACnG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAClE,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpD;AAwID,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,SAAS,EAAE,EACnB,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,QAAQ,CAAC,CAgInB;AAED,wBAAsB,cAAc,CAClC,SAAS,EAAE,YAAY,EAAE,EACzB,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,QAAQ,CAAC,CAyDnB"}