veryfront 0.1.1239 → 0.1.1241

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 (611) hide show
  1. package/esm/cli/commands/build/command-help.d.ts.map +1 -1
  2. package/esm/cli/commands/build/command-help.js +4 -0
  3. package/esm/cli/commands/build/command.d.ts +3 -1
  4. package/esm/cli/commands/build/command.d.ts.map +1 -1
  5. package/esm/cli/commands/build/command.js +13 -5
  6. package/esm/cli/commands/build/handler.d.ts +17 -0
  7. package/esm/cli/commands/build/handler.d.ts.map +1 -1
  8. package/esm/cli/commands/build/handler.js +188 -9
  9. package/esm/cli/commands/generate/command.d.ts.map +1 -1
  10. package/esm/cli/commands/generate/command.js +40 -0
  11. package/esm/cli/commands/push/command.d.ts.map +1 -1
  12. package/esm/cli/commands/push/command.js +24 -16
  13. package/esm/cli/shared/ensure-content-processor.d.ts +16 -1
  14. package/esm/cli/shared/ensure-content-processor.d.ts.map +1 -1
  15. package/esm/cli/shared/ensure-content-processor.js +39 -5
  16. package/esm/cli/shared/project-creation.d.ts.map +1 -1
  17. package/esm/cli/shared/project-creation.js +29 -1
  18. package/esm/deno.d.ts +14 -5
  19. package/esm/deno.js +23 -7
  20. package/esm/extensions/ext-llm-openai/src/openai-chat-stream.d.ts.map +1 -1
  21. package/esm/extensions/ext-llm-openai/src/openai-chat-stream.js +16 -6
  22. package/esm/extensions/ext-llm-openai/src/openai-provider.d.ts.map +1 -1
  23. package/esm/extensions/ext-llm-openai/src/openai-provider.js +11 -2
  24. package/esm/extensions/ext-llm-openai/src/openai-reasoning-models.d.ts +2 -14
  25. package/esm/extensions/ext-llm-openai/src/openai-reasoning-models.d.ts.map +1 -1
  26. package/esm/extensions/ext-llm-openai/src/openai-reasoning-models.js +1 -72
  27. package/esm/extensions/ext-schema-zod/src/adapter.d.ts.map +1 -1
  28. package/esm/src/agent/ag-ui/browser-aliases.d.ts +164 -0
  29. package/esm/src/agent/ag-ui/browser-aliases.d.ts.map +1 -0
  30. package/esm/src/agent/ag-ui/browser-aliases.js +68 -0
  31. package/esm/src/agent/ag-ui/chat-ui-chunk-encoder.d.ts +35 -0
  32. package/esm/src/agent/ag-ui/chat-ui-chunk-encoder.d.ts.map +1 -0
  33. package/esm/src/agent/ag-ui/{chat-ui-chunk-browser-encoder.js → chat-ui-chunk-encoder.js} +11 -11
  34. package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts +8 -6
  35. package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts.map +1 -1
  36. package/esm/src/agent/ag-ui/chunk-encoder-bridge.js +5 -4
  37. package/esm/src/agent/ag-ui/chunk-encoder.d.ts +26 -0
  38. package/esm/src/agent/ag-ui/chunk-encoder.d.ts.map +1 -0
  39. package/esm/src/agent/ag-ui/{browser-chunk-encoder.js → chunk-encoder.js} +3 -2
  40. package/esm/src/agent/ag-ui/{browser-encoder.d.ts → encoder.d.ts} +33 -19
  41. package/esm/src/agent/ag-ui/encoder.d.ts.map +1 -0
  42. package/esm/src/agent/ag-ui/{browser-encoder.js → encoder.js} +81 -27
  43. package/esm/src/agent/ag-ui/finalize-tracker.d.ts +15 -0
  44. package/esm/src/agent/ag-ui/finalize-tracker.d.ts.map +1 -0
  45. package/esm/src/agent/ag-ui/{browser-finalize-tracker.js → finalize-tracker.js} +4 -4
  46. package/esm/src/agent/ag-ui/response-stream.d.ts +36 -0
  47. package/esm/src/agent/ag-ui/response-stream.d.ts.map +1 -0
  48. package/esm/src/agent/ag-ui/{browser-response-stream.js → response-stream.js} +6 -3
  49. package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts +1 -1
  50. package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts.map +1 -1
  51. package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts +7 -7
  52. package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts.map +1 -1
  53. package/esm/src/agent/ag-ui/runtime-event-encoder.js +4 -4
  54. package/esm/src/agent/ag-ui/runtime-response.d.ts +20 -0
  55. package/esm/src/agent/ag-ui/runtime-response.d.ts.map +1 -0
  56. package/esm/src/agent/ag-ui/runtime-response.js +16 -0
  57. package/esm/src/agent/ag-ui/sse-parser.d.ts +1 -1
  58. package/esm/src/agent/ag-ui/sse-parser.d.ts.map +1 -1
  59. package/esm/src/agent/ag-ui/sse-parser.js +3 -3
  60. package/esm/src/agent/ag-ui/tracked-response.d.ts +11 -0
  61. package/esm/src/agent/ag-ui/tracked-response.d.ts.map +1 -0
  62. package/esm/src/agent/ag-ui/{tracked-browser-response.js → tracked-response.js} +6 -4
  63. package/esm/src/agent/conversation/hosted-lifecycle.d.ts.map +1 -1
  64. package/esm/src/agent/conversation/hosted-lifecycle.js +2 -1
  65. package/esm/src/agent/conversation/lifecycle-run-event-adapter.d.ts.map +1 -1
  66. package/esm/src/agent/conversation/lifecycle-run-event-adapter.js +2 -0
  67. package/esm/src/agent/conversation/private-run-event.d.ts.map +1 -1
  68. package/esm/src/agent/conversation/private-run-event.js +174 -3
  69. package/esm/src/agent/conversation/run-chunk-mirror.d.ts +2 -0
  70. package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -1
  71. package/esm/src/agent/conversation/run-chunk-mirror.js +13 -6
  72. package/esm/src/agent/conversation/run-events.d.ts +8 -0
  73. package/esm/src/agent/conversation/run-events.d.ts.map +1 -1
  74. package/esm/src/agent/conversation/run-events.js +54 -4
  75. package/esm/src/agent/conversation/run-stream-mirror.d.ts.map +1 -1
  76. package/esm/src/agent/conversation/run-stream-mirror.js +5 -2
  77. package/esm/src/agent/hosted/durable-run-event-sink.d.ts +2 -1
  78. package/esm/src/agent/hosted/durable-run-event-sink.d.ts.map +1 -1
  79. package/esm/src/agent/hosted/durable-run-event-sink.js +9 -7
  80. package/esm/src/agent/hosted/prepared-chat-execution.js +2 -2
  81. package/esm/src/agent/index.d.ts +9 -8
  82. package/esm/src/agent/index.d.ts.map +1 -1
  83. package/esm/src/agent/index.js +9 -8
  84. package/esm/src/agent/memory/memory.d.ts.map +1 -1
  85. package/esm/src/agent/memory/memory.js +7 -6
  86. package/esm/src/agent/react/use-chat/types.d.ts +2 -0
  87. package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
  88. package/esm/src/agent/react/use-chat/use-chat.js +3 -2
  89. package/esm/src/agent/runtime/ag-ui-contract.d.ts +2 -2
  90. package/esm/src/agent/runtime/ag-ui-contract.d.ts.map +1 -1
  91. package/esm/src/agent/runtime/ag-ui-contract.js +2 -2
  92. package/esm/src/agent/runtime/chat-stream-handler.d.ts.map +1 -1
  93. package/esm/src/agent/runtime/chat-stream-handler.js +34 -4
  94. package/esm/src/agent/runtime/index.d.ts.map +1 -1
  95. package/esm/src/agent/runtime/index.js +15 -6
  96. package/esm/src/agent/streaming/data-stream.d.ts +1 -1
  97. package/esm/src/agent/streaming/data-stream.d.ts.map +1 -1
  98. package/esm/src/agent/streaming/fork-runtime-part-mapper.d.ts +1 -1
  99. package/esm/src/agent/streaming/fork-runtime-part-mapper.d.ts.map +1 -1
  100. package/esm/src/agent/streaming/lifecycle/live-adapter.d.ts.map +1 -1
  101. package/esm/src/agent/streaming/lifecycle/live-adapter.js +2 -0
  102. package/esm/src/agent/streaming/lifecycle/reducer.d.ts.map +1 -1
  103. package/esm/src/agent/streaming/lifecycle/reducer.js +7 -0
  104. package/esm/src/agent/streaming/lifecycle/runtime-provider-adapter.js +4 -0
  105. package/esm/src/build/production-build/templates.d.ts.map +1 -1
  106. package/esm/src/build/production-build/templates.js +1 -1
  107. package/esm/src/cache/request-cache-batcher.d.ts +1 -0
  108. package/esm/src/cache/request-cache-batcher.d.ts.map +1 -1
  109. package/esm/src/cache/request-cache-batcher.js +21 -7
  110. package/esm/src/chat/ag-ui.d.ts +1 -1
  111. package/esm/src/chat/index.d.ts +2 -2
  112. package/esm/src/chat/index.d.ts.map +1 -1
  113. package/esm/src/chat/index.js +1 -1
  114. package/esm/src/config/config-shim.d.ts +1 -1
  115. package/esm/src/config/config-shim.d.ts.map +1 -1
  116. package/esm/src/config/config-shim.js +1 -1
  117. package/esm/src/config/declarative-evaluator-worker-protocol.d.ts.map +1 -1
  118. package/esm/src/config/env.js +1 -1
  119. package/esm/src/config/environment-config.js +1 -1
  120. package/esm/src/config/loader.d.ts.map +1 -1
  121. package/esm/src/config/loader.js +4 -4
  122. package/esm/src/config/schemas/config.schema.d.ts +20 -0
  123. package/esm/src/config/schemas/config.schema.d.ts.map +1 -1
  124. package/esm/src/config/schemas/config.schema.js +27 -0
  125. package/esm/src/config/server-external-packages.d.ts +11 -0
  126. package/esm/src/config/server-external-packages.d.ts.map +1 -0
  127. package/esm/src/config/server-external-packages.js +53 -0
  128. package/esm/src/data/data-fetcher.d.ts.map +1 -1
  129. package/esm/src/data/data-fetcher.js +9 -4
  130. package/esm/src/data/data-result-validation.d.ts +5 -0
  131. package/esm/src/data/data-result-validation.d.ts.map +1 -0
  132. package/esm/src/data/data-result-validation.js +56 -0
  133. package/esm/src/data/helpers.d.ts +5 -5
  134. package/esm/src/data/helpers.d.ts.map +1 -1
  135. package/esm/src/data/helpers.js +22 -68
  136. package/esm/src/data/index.d.ts +1 -1
  137. package/esm/src/data/index.d.ts.map +1 -1
  138. package/esm/src/data/response-metadata.d.ts +23 -0
  139. package/esm/src/data/response-metadata.d.ts.map +1 -0
  140. package/esm/src/data/response-metadata.js +311 -0
  141. package/esm/src/data/schemas/data.schema.d.ts +95 -6
  142. package/esm/src/data/schemas/data.schema.d.ts.map +1 -1
  143. package/esm/src/data/schemas/data.schema.js +57 -3
  144. package/esm/src/data/schemas/index.d.ts +1 -1
  145. package/esm/src/data/schemas/index.d.ts.map +1 -1
  146. package/esm/src/data/schemas/index.js +1 -1
  147. package/esm/src/data/server-data-fetcher.d.ts.map +1 -1
  148. package/esm/src/data/server-data-fetcher.js +5 -5
  149. package/esm/src/data/static-data-fetcher.d.ts +2 -2
  150. package/esm/src/data/static-data-fetcher.d.ts.map +1 -1
  151. package/esm/src/data/static-data-fetcher.js +6 -3
  152. package/esm/src/data/types.d.ts +1 -1
  153. package/esm/src/data/types.d.ts.map +1 -1
  154. package/esm/src/discovery/discovery-engine.d.ts.map +1 -1
  155. package/esm/src/discovery/discovery-engine.js +81 -26
  156. package/esm/src/discovery/handlers/task-handler.d.ts +1 -1
  157. package/esm/src/discovery/handlers/task-handler.d.ts.map +1 -1
  158. package/esm/src/discovery/handlers/task-handler.js +6 -3
  159. package/esm/src/discovery/types.d.ts +6 -4
  160. package/esm/src/discovery/types.d.ts.map +1 -1
  161. package/esm/src/errors/error-registry/runtime.d.ts +2 -0
  162. package/esm/src/errors/error-registry/runtime.d.ts.map +1 -1
  163. package/esm/src/errors/error-registry/runtime.js +8 -0
  164. package/esm/src/errors/error-registry.d.ts +1 -0
  165. package/esm/src/errors/error-registry.d.ts.map +1 -1
  166. package/esm/src/errors/index.d.ts +1 -1
  167. package/esm/src/errors/index.d.ts.map +1 -1
  168. package/esm/src/errors/index.js +1 -1
  169. package/esm/src/errors/user-friendly/error-wrapper.js +1 -1
  170. package/esm/src/errors/veryfront-error.d.ts.map +1 -1
  171. package/esm/src/extensions/index.d.ts +2 -0
  172. package/esm/src/extensions/index.d.ts.map +1 -1
  173. package/esm/src/extensions/index.js +1 -0
  174. package/esm/src/extensions/parser/code-parser.d.ts +9 -0
  175. package/esm/src/extensions/parser/code-parser.d.ts.map +1 -1
  176. package/esm/src/extensions/parser/defaults.d.ts +5 -0
  177. package/esm/src/extensions/parser/defaults.d.ts.map +1 -1
  178. package/esm/src/extensions/parser/defaults.js +23 -11
  179. package/esm/src/fs/index.d.ts +50 -1
  180. package/esm/src/fs/index.d.ts.map +1 -1
  181. package/esm/src/fs/index.js +50 -1
  182. package/esm/src/html/html-injection.d.ts +2 -0
  183. package/esm/src/html/html-injection.d.ts.map +1 -1
  184. package/esm/src/html/html-injection.js +4 -1
  185. package/esm/src/html/html-shell-generator.d.ts.map +1 -1
  186. package/esm/src/html/html-shell-generator.js +11 -3
  187. package/esm/src/html/hydration-script-builder/hydration-runtime.generated.d.ts.map +1 -1
  188. package/esm/src/html/hydration-script-builder/hydration-runtime.generated.js +1 -1
  189. package/esm/src/html/hydration-script-builder/prod-runtime-selection.d.ts +23 -0
  190. package/esm/src/html/hydration-script-builder/prod-runtime-selection.d.ts.map +1 -0
  191. package/esm/src/html/hydration-script-builder/prod-runtime-selection.js +55 -0
  192. package/esm/src/html/hydration-script-builder/prod-scripts.d.ts +2 -0
  193. package/esm/src/html/hydration-script-builder/prod-scripts.d.ts.map +1 -1
  194. package/esm/src/html/hydration-script-builder/prod-scripts.js +12 -3
  195. package/esm/src/html/schemas/html.schema.d.ts +2 -0
  196. package/esm/src/html/schemas/html.schema.d.ts.map +1 -1
  197. package/esm/src/html/schemas/html.schema.js +2 -0
  198. package/esm/src/html/styles-builder/css-hash-cache.d.ts +1 -1
  199. package/esm/src/html/styles-builder/css-hash-cache.d.ts.map +1 -1
  200. package/esm/src/html/styles-builder/css-hash-cache.js +1 -1
  201. package/esm/src/index.client.d.ts +2 -2
  202. package/esm/src/index.client.d.ts.map +1 -1
  203. package/esm/src/index.client.js +3 -1
  204. package/esm/src/index.d.ts +1 -1
  205. package/esm/src/index.d.ts.map +1 -1
  206. package/esm/src/internal-agents/ag-ui-sse.d.ts +7 -7
  207. package/esm/src/internal-agents/ag-ui-sse.d.ts.map +1 -1
  208. package/esm/src/internal-agents/ag-ui-sse.js +17 -9
  209. package/esm/src/internal-agents/control-plane-auth.js +1 -1
  210. package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
  211. package/esm/src/internal-agents/run-stream.js +15 -9
  212. package/esm/src/modules/import-map/loader.d.ts.map +1 -1
  213. package/esm/src/modules/import-map/loader.js +2 -2
  214. package/esm/src/modules/import-map/merger.js +2 -2
  215. package/esm/src/modules/import-map/preloader.js +2 -2
  216. package/esm/src/modules/react-loader/component-loader.d.ts.map +1 -1
  217. package/esm/src/modules/react-loader/component-loader.js +2 -0
  218. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts +1 -1
  219. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
  220. package/esm/src/modules/react-loader/ssr-module-loader/loader.js +3 -2
  221. package/esm/src/modules/react-loader/ssr-module-loader/ssr-cache-manager.d.ts.map +1 -1
  222. package/esm/src/modules/react-loader/ssr-module-loader/ssr-cache-manager.js +7 -1
  223. package/esm/src/modules/react-loader/ssr-module-loader/types.d.ts +2 -0
  224. package/esm/src/modules/react-loader/ssr-module-loader/types.d.ts.map +1 -1
  225. package/esm/src/modules/react-loader/transformed-module-coordinator.d.ts.map +1 -1
  226. package/esm/src/modules/react-loader/transformed-module-coordinator.js +2 -1
  227. package/esm/src/modules/react-loader/types.d.ts +2 -0
  228. package/esm/src/modules/react-loader/types.d.ts.map +1 -1
  229. package/esm/src/modules/server/module-response-cache.d.ts +1 -0
  230. package/esm/src/modules/server/module-response-cache.d.ts.map +1 -1
  231. package/esm/src/modules/server/module-response-cache.js +5 -0
  232. package/esm/src/modules/server/module-server.d.ts.map +1 -1
  233. package/esm/src/modules/server/module-server.js +4 -0
  234. package/esm/src/modules/server/module-transform.d.ts.map +1 -1
  235. package/esm/src/modules/server/module-transform.js +2 -0
  236. package/esm/src/observability/metrics/config.js +1 -1
  237. package/esm/src/observability/request-profiler.js +1 -1
  238. package/esm/src/observability/telemetry-error.js +2 -2
  239. package/esm/src/observability/tracing/telemetry-env.js +1 -1
  240. package/esm/src/platform/adapters/fs/cache/file-cache.d.ts.map +1 -1
  241. package/esm/src/platform/adapters/fs/cache/file-cache.js +5 -0
  242. package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts +39 -0
  243. package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts.map +1 -1
  244. package/esm/src/platform/adapters/fs/veryfront/adapter.js +209 -40
  245. package/esm/src/platform/adapters/fs/veryfront/file-list-index.d.ts.map +1 -1
  246. package/esm/src/platform/adapters/fs/veryfront/file-list-index.js +0 -14
  247. package/esm/src/platform/adapters/fs/veryfront/read-operations-helpers.d.ts +0 -1
  248. package/esm/src/platform/adapters/fs/veryfront/read-operations-helpers.d.ts.map +1 -1
  249. package/esm/src/platform/adapters/fs/veryfront/read-operations-helpers.js +0 -3
  250. package/esm/src/platform/adapters/fs/veryfront/read-operations.d.ts.map +1 -1
  251. package/esm/src/platform/adapters/fs/veryfront/read-operations.js +1 -4
  252. package/esm/src/platform/adapters/fs/veryfront/request-context.d.ts.map +1 -1
  253. package/esm/src/platform/adapters/fs/veryfront/request-context.js +4 -0
  254. package/esm/src/platform/adapters/fs/veryfront/stat-operations.d.ts.map +1 -1
  255. package/esm/src/platform/adapters/fs/veryfront/stat-operations.js +9 -1
  256. package/esm/src/platform/adapters/fs/veryfront/websocket-manager-helpers.js +1 -1
  257. package/esm/src/platform/adapters/fs/veryfront/websocket-manager.d.ts +2 -1
  258. package/esm/src/platform/adapters/fs/veryfront/websocket-manager.d.ts.map +1 -1
  259. package/esm/src/platform/adapters/fs/veryfront/websocket-manager.js +97 -66
  260. package/esm/src/platform/compat/dns.d.ts +10 -0
  261. package/esm/src/platform/compat/dns.d.ts.map +1 -1
  262. package/esm/src/platform/compat/dns.js +50 -0
  263. package/esm/src/platform/compat/http/pinned-fetch.d.ts +1 -1
  264. package/esm/src/platform/compat/process/lifecycle.d.ts +10 -0
  265. package/esm/src/platform/compat/process/lifecycle.d.ts.map +1 -1
  266. package/esm/src/platform/compat/process/lifecycle.js +23 -0
  267. package/esm/src/platform/compat/process.d.ts +1 -1
  268. package/esm/src/platform/compat/process.d.ts.map +1 -1
  269. package/esm/src/platform/compat/process.js +1 -1
  270. package/esm/src/platform/compat/proxy-topology.js +1 -1
  271. package/esm/src/platform/request-context-access.d.ts +24 -0
  272. package/esm/src/platform/request-context-access.d.ts.map +1 -0
  273. package/esm/src/platform/request-context-access.js +26 -0
  274. package/esm/src/provider/shared/openai-reasoning.d.ts +16 -0
  275. package/esm/src/provider/shared/openai-reasoning.d.ts.map +1 -0
  276. package/esm/src/provider/shared/openai-reasoning.js +73 -0
  277. package/esm/src/provider/types.d.ts +2 -0
  278. package/esm/src/provider/types.d.ts.map +1 -1
  279. package/esm/src/provider/veryfront-cloud/provider.d.ts.map +1 -1
  280. package/esm/src/provider/veryfront-cloud/provider.js +45 -18
  281. package/esm/src/proxy/handler.d.ts +1 -0
  282. package/esm/src/proxy/handler.d.ts.map +1 -1
  283. package/esm/src/proxy/handler.js +17 -4
  284. package/esm/src/proxy/proxy-error-context.d.ts +1 -0
  285. package/esm/src/proxy/proxy-error-context.d.ts.map +1 -1
  286. package/esm/src/proxy/proxy-error-context.js +1 -0
  287. package/esm/src/proxy/request-host.d.ts +3 -0
  288. package/esm/src/proxy/request-host.d.ts.map +1 -1
  289. package/esm/src/proxy/request-host.js +28 -8
  290. package/esm/src/proxy/routing-invalidation-redis.d.ts.map +1 -1
  291. package/esm/src/proxy/routing-invalidation-redis.js +38 -4
  292. package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts +27 -3
  293. package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts.map +1 -1
  294. package/esm/src/react/components/chat/chat/components/attachments-panel.js +29 -7
  295. package/esm/src/react/components/chat/chat/components/sidebar.d.ts +15 -6
  296. package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -1
  297. package/esm/src/react/components/chat/chat/components/sidebar.js +37 -4
  298. package/esm/src/react/components/chat/chat/components/sidebar.types.d.ts +12 -1
  299. package/esm/src/react/components/chat/chat/components/sidebar.types.d.ts.map +1 -1
  300. package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts +3 -1
  301. package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -1
  302. package/esm/src/react/components/chat/chat/composition/chat-composer.js +17 -6
  303. package/esm/src/react/components/chat/chat/composition/chat-composer.types.d.ts +12 -5
  304. package/esm/src/react/components/chat/chat/composition/chat-composer.types.d.ts.map +1 -1
  305. package/esm/src/react/components/chat/chat/composition/chat-root.d.ts +18 -5
  306. package/esm/src/react/components/chat/chat/composition/chat-root.d.ts.map +1 -1
  307. package/esm/src/react/components/chat/chat/composition/chat-root.js +65 -1
  308. package/esm/src/react/components/chat/chat/composition/use-composer-value.d.ts +6 -3
  309. package/esm/src/react/components/chat/chat/composition/use-composer-value.d.ts.map +1 -1
  310. package/esm/src/react/components/chat/chat/composition/use-composer-value.js +56 -5
  311. package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts +7 -1
  312. package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts.map +1 -1
  313. package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts +14 -4
  314. package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts.map +1 -1
  315. package/esm/src/react/components/chat/chat/contexts/conversations-context.js +10 -1
  316. package/esm/src/react/components/chat/chat/index.d.ts +1 -1
  317. package/esm/src/react/components/chat/chat/index.d.ts.map +1 -1
  318. package/esm/src/react/components/chat/chat/persistence/conversation-codec.d.ts.map +1 -1
  319. package/esm/src/react/components/chat/chat.d.ts +1 -1
  320. package/esm/src/react/components/chat/chat.d.ts.map +1 -1
  321. package/esm/src/react/server-render-context.d.ts.map +1 -1
  322. package/esm/src/release-assets/dependency-artifact-builder.d.ts.map +1 -1
  323. package/esm/src/rendering/app-reserved.d.ts +2 -2
  324. package/esm/src/rendering/app-reserved.d.ts.map +1 -1
  325. package/esm/src/rendering/app-reserved.js +4 -3
  326. package/esm/src/rendering/cache/cache-coordinator.d.ts.map +1 -1
  327. package/esm/src/rendering/cache/cache-coordinator.js +1 -0
  328. package/esm/src/rendering/cache/cache-payload.d.ts.map +1 -1
  329. package/esm/src/rendering/cache/cache-payload.js +44 -0
  330. package/esm/src/rendering/component-handling.d.ts +4 -1
  331. package/esm/src/rendering/component-handling.d.ts.map +1 -1
  332. package/esm/src/rendering/component-handling.js +13 -6
  333. package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
  334. package/esm/src/rendering/layouts/layout-applicator.js +3 -1
  335. package/esm/src/rendering/layouts/layout-collector.d.ts +1 -0
  336. package/esm/src/rendering/layouts/layout-collector.d.ts.map +1 -1
  337. package/esm/src/rendering/layouts/layout-collector.js +201 -4
  338. package/esm/src/rendering/layouts/utils/applicator.d.ts +1 -1
  339. package/esm/src/rendering/layouts/utils/applicator.d.ts.map +1 -1
  340. package/esm/src/rendering/layouts/utils/applicator.js +3 -3
  341. package/esm/src/rendering/layouts/utils/component-loader.d.ts +2 -2
  342. package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
  343. package/esm/src/rendering/layouts/utils/component-loader.js +12 -4
  344. package/esm/src/rendering/orchestrator/file-resolver/index.d.ts +3 -1
  345. package/esm/src/rendering/orchestrator/file-resolver/index.d.ts.map +1 -1
  346. package/esm/src/rendering/orchestrator/file-resolver/index.js +13 -5
  347. package/esm/src/rendering/orchestrator/html.d.ts.map +1 -1
  348. package/esm/src/rendering/orchestrator/html.js +26 -10
  349. package/esm/src/rendering/orchestrator/layout.d.ts.map +1 -1
  350. package/esm/src/rendering/orchestrator/layout.js +2 -2
  351. package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.d.ts.map +1 -1
  352. package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.js +20 -2
  353. package/esm/src/rendering/orchestrator/module-loader/index.d.ts +2 -0
  354. package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
  355. package/esm/src/rendering/orchestrator/module-loader/index.js +6 -3
  356. package/esm/src/rendering/orchestrator/module-loader/module-cache-lookup.d.ts +3 -2
  357. package/esm/src/rendering/orchestrator/module-loader/module-cache-lookup.d.ts.map +1 -1
  358. package/esm/src/rendering/orchestrator/module-loader/module-cache-lookup.js +6 -6
  359. package/esm/src/rendering/orchestrator/module-loader/module-persistence.d.ts +1 -0
  360. package/esm/src/rendering/orchestrator/module-loader/module-persistence.d.ts.map +1 -1
  361. package/esm/src/rendering/orchestrator/module-loader/module-persistence.js +2 -2
  362. package/esm/src/rendering/orchestrator/module-loader/module-transform-cache.d.ts +2 -0
  363. package/esm/src/rendering/orchestrator/module-loader/module-transform-cache.d.ts.map +1 -1
  364. package/esm/src/rendering/orchestrator/module-loader/module-transform-cache.js +7 -1
  365. package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
  366. package/esm/src/rendering/orchestrator/pipeline.js +58 -10
  367. package/esm/src/rendering/orchestrator/render-result-assembly.d.ts +3 -0
  368. package/esm/src/rendering/orchestrator/render-result-assembly.d.ts.map +1 -1
  369. package/esm/src/rendering/orchestrator/render-result-assembly.js +3 -1
  370. package/esm/src/rendering/page-renderer.d.ts +2 -0
  371. package/esm/src/rendering/page-renderer.d.ts.map +1 -1
  372. package/esm/src/rendering/page-renderer.js +4 -1
  373. package/esm/src/rendering/page-rendering.d.ts +2 -0
  374. package/esm/src/rendering/page-rendering.d.ts.map +1 -1
  375. package/esm/src/rendering/page-rendering.js +1 -0
  376. package/esm/src/rendering/renderer.d.ts.map +1 -1
  377. package/esm/src/rendering/renderer.js +31 -1
  378. package/esm/src/rendering/script-page-handling.d.ts +2 -0
  379. package/esm/src/rendering/script-page-handling.d.ts.map +1 -1
  380. package/esm/src/rendering/script-page-handling.js +17 -1
  381. package/esm/src/rendering/shared/context-aware-cache.d.ts.map +1 -1
  382. package/esm/src/rendering/shared/context-aware-cache.js +3 -0
  383. package/esm/src/rendering/snippet-renderer.d.ts +10 -0
  384. package/esm/src/rendering/snippet-renderer.d.ts.map +1 -1
  385. package/esm/src/rendering/snippet-renderer.js +40 -18
  386. package/esm/src/rendering/ssr/component-registry.d.ts +1 -1
  387. package/esm/src/rendering/ssr/component-registry.d.ts.map +1 -1
  388. package/esm/src/rendering/ssr/component-registry.js +13 -6
  389. package/esm/src/rendering/ssr-outcome.d.ts +4 -3
  390. package/esm/src/rendering/ssr-outcome.d.ts.map +1 -1
  391. package/esm/src/rendering/ssr-outcome.js +25 -8
  392. package/esm/src/routing/api/handler.d.ts +1 -1
  393. package/esm/src/routing/api/handler.d.ts.map +1 -1
  394. package/esm/src/routing/api/handler.js +6 -1
  395. package/esm/src/runtime/model-call-context.d.ts +37 -2
  396. package/esm/src/runtime/model-call-context.d.ts.map +1 -1
  397. package/esm/src/runtime/model-call-context.js +42 -1
  398. package/esm/src/runtime/runtime-bridge.d.ts.map +1 -1
  399. package/esm/src/runtime/runtime-bridge.js +108 -8
  400. package/esm/src/sandbox/shell-tools.d.ts.map +1 -1
  401. package/esm/src/sandbox/shell-tools.js +16 -6
  402. package/esm/src/schedule/validation.d.ts +9 -1
  403. package/esm/src/schedule/validation.d.ts.map +1 -1
  404. package/esm/src/schedule/validation.js +167 -80
  405. package/esm/src/schemas/json-value.d.ts.map +1 -1
  406. package/esm/src/schemas/json-value.js +81 -37
  407. package/esm/src/security/http/base-handler.js +1 -1
  408. package/esm/src/security/sandbox/project-worker.d.ts +1 -0
  409. package/esm/src/security/sandbox/project-worker.d.ts.map +1 -1
  410. package/esm/src/security/sandbox/project-worker.js +6 -0
  411. package/esm/src/security/sandbox/worker-read-scope.d.ts +20 -0
  412. package/esm/src/security/sandbox/worker-read-scope.d.ts.map +1 -0
  413. package/esm/src/security/sandbox/worker-read-scope.js +127 -0
  414. package/esm/src/security/sandbox/worker-types.d.ts +12 -0
  415. package/esm/src/security/sandbox/worker-types.d.ts.map +1 -1
  416. package/esm/src/server/handlers/dev/dashboard/api.d.ts.map +1 -1
  417. package/esm/src/server/handlers/dev/dashboard/api.js +70 -3
  418. package/esm/src/server/handlers/dev/files/esbuild-plugins.d.ts +5 -0
  419. package/esm/src/server/handlers/dev/files/esbuild-plugins.d.ts.map +1 -1
  420. package/esm/src/server/handlers/dev/files/esbuild-plugins.js +61 -3
  421. package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
  422. package/esm/src/server/handlers/dev/framework-candidates.generated.js +227 -29
  423. package/esm/src/server/handlers/request/api/pages-api-handler.d.ts.map +1 -1
  424. package/esm/src/server/handlers/request/api/pages-api-handler.js +20 -2
  425. package/esm/src/server/handlers/request/module/page-data-endpoint-handler.d.ts.map +1 -1
  426. package/esm/src/server/handlers/request/module/page-data-endpoint-handler.js +32 -15
  427. package/esm/src/server/handlers/request/prod-hydration-module.handler.d.ts.map +1 -1
  428. package/esm/src/server/handlers/request/prod-hydration-module.handler.js +10 -3
  429. package/esm/src/server/handlers/request/project-run-execute.handler.d.ts.map +1 -1
  430. package/esm/src/server/handlers/request/project-run-execute.handler.js +1 -0
  431. package/esm/src/server/handlers/request/snippet.handler.d.ts +6 -0
  432. package/esm/src/server/handlers/request/snippet.handler.d.ts.map +1 -1
  433. package/esm/src/server/handlers/request/snippet.handler.js +8 -1
  434. package/esm/src/server/handlers/request/ssr/error-page-fallback.js +1 -0
  435. package/esm/src/server/handlers/request/ssr/ssr-response-builder.d.ts.map +1 -1
  436. package/esm/src/server/handlers/request/ssr/ssr-response-builder.js +10 -6
  437. package/esm/src/server/handlers/request/ssr/ssr.handler.d.ts.map +1 -1
  438. package/esm/src/server/handlers/request/ssr/ssr.handler.js +22 -10
  439. package/esm/src/server/handlers/request/static.handler.d.ts.map +1 -1
  440. package/esm/src/server/handlers/request/static.handler.js +1 -0
  441. package/esm/src/server/runtime-handler/handler-context-builder.d.ts +2 -0
  442. package/esm/src/server/runtime-handler/handler-context-builder.d.ts.map +1 -1
  443. package/esm/src/server/runtime-handler/handler-context-builder.js +1 -0
  444. package/esm/src/server/runtime-handler/project-runtime-context.d.ts.map +1 -1
  445. package/esm/src/server/runtime-handler/project-runtime-context.js +6 -2
  446. package/esm/src/server/runtime-handler/request-tracker.d.ts.map +1 -1
  447. package/esm/src/server/runtime-handler/request-tracker.js +10 -3
  448. package/esm/src/server/services/rendering/ssr.service.d.ts +5 -0
  449. package/esm/src/server/services/rendering/ssr.service.d.ts.map +1 -1
  450. package/esm/src/server/services/rendering/ssr.service.js +71 -16
  451. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
  452. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
  453. package/esm/src/server/services/rsc/orchestrators/handler.d.ts.map +1 -1
  454. package/esm/src/server/services/rsc/orchestrators/handler.js +1 -0
  455. package/esm/src/server/services/rsc/orchestrators/render-handler.d.ts +1 -0
  456. package/esm/src/server/services/rsc/orchestrators/render-handler.d.ts.map +1 -1
  457. package/esm/src/server/services/rsc/orchestrators/render-handler.js +2 -0
  458. package/esm/src/server/services/static/static-file.service.d.ts +4 -1
  459. package/esm/src/server/services/static/static-file.service.d.ts.map +1 -1
  460. package/esm/src/server/services/static/static-file.service.js +48 -22
  461. package/esm/src/server/shared/browser-module-bundler.d.ts.map +1 -1
  462. package/esm/src/server/shared/browser-module-bundler.js +10 -0
  463. package/esm/src/server/utils/request-host.d.ts +6 -0
  464. package/esm/src/server/utils/request-host.d.ts.map +1 -1
  465. package/esm/src/server/utils/request-host.js +42 -1
  466. package/esm/src/skill/tools.d.ts.map +1 -1
  467. package/esm/src/task/definition-snapshot.d.ts +8 -0
  468. package/esm/src/task/definition-snapshot.d.ts.map +1 -0
  469. package/esm/src/task/definition-snapshot.js +154 -0
  470. package/esm/src/task/discovery.d.ts.map +1 -1
  471. package/esm/src/task/discovery.js +47 -21
  472. package/esm/src/task/types.d.ts +3 -0
  473. package/esm/src/task/types.d.ts.map +1 -1
  474. package/esm/src/task/types.js +7 -16
  475. package/esm/src/tool/remote-mcp.d.ts.map +1 -1
  476. package/esm/src/tool/remote-mcp.js +86 -5
  477. package/esm/src/transforms/esm/bundle-recovery.d.ts.map +1 -1
  478. package/esm/src/transforms/esm/bundle-recovery.js +1 -0
  479. package/esm/src/transforms/esm/http-cache-helpers.d.ts +3 -1
  480. package/esm/src/transforms/esm/http-cache-helpers.d.ts.map +1 -1
  481. package/esm/src/transforms/esm/http-cache-helpers.js +18 -2
  482. package/esm/src/transforms/esm/http-cache-wrapper.d.ts.map +1 -1
  483. package/esm/src/transforms/esm/http-cache-wrapper.js +23 -0
  484. package/esm/src/transforms/esm/specifier-resolver.d.ts.map +1 -1
  485. package/esm/src/transforms/esm/specifier-resolver.js +2 -1
  486. package/esm/src/transforms/esm/types.d.ts +2 -0
  487. package/esm/src/transforms/esm/types.d.ts.map +1 -1
  488. package/esm/src/transforms/import-rewriter/commonjs-policy.d.ts +22 -0
  489. package/esm/src/transforms/import-rewriter/commonjs-policy.d.ts.map +1 -0
  490. package/esm/src/transforms/import-rewriter/commonjs-policy.js +75 -0
  491. package/esm/src/transforms/import-rewriter/core.d.ts.map +1 -1
  492. package/esm/src/transforms/import-rewriter/core.js +29 -1
  493. package/esm/src/transforms/import-rewriter/ssr-adapter.d.ts +2 -0
  494. package/esm/src/transforms/import-rewriter/ssr-adapter.d.ts.map +1 -1
  495. package/esm/src/transforms/import-rewriter/ssr-adapter.js +79 -10
  496. package/esm/src/transforms/import-rewriter/strategies/bare-strategy.d.ts.map +1 -1
  497. package/esm/src/transforms/import-rewriter/strategies/bare-strategy.js +14 -4
  498. package/esm/src/transforms/import-rewriter/types.d.ts +2 -0
  499. package/esm/src/transforms/import-rewriter/types.d.ts.map +1 -1
  500. package/esm/src/transforms/import-rewriter/url-builder.d.ts +2 -19
  501. package/esm/src/transforms/import-rewriter/url-builder.d.ts.map +1 -1
  502. package/esm/src/transforms/import-rewriter/url-builder.js +2 -67
  503. package/esm/src/transforms/mdx/esm-module-loader/import-transformer.d.ts +3 -2
  504. package/esm/src/transforms/mdx/esm-module-loader/import-transformer.d.ts.map +1 -1
  505. package/esm/src/transforms/mdx/esm-module-loader/import-transformer.js +39 -8
  506. package/esm/src/transforms/mdx/esm-module-loader/jsx/runtime-loader.d.ts.map +1 -1
  507. package/esm/src/transforms/mdx/esm-module-loader/jsx/runtime-loader.js +1 -1
  508. package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.d.ts.map +1 -1
  509. package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.js +1 -0
  510. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/cache-keys.d.ts +3 -3
  511. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/cache-keys.d.ts.map +1 -1
  512. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/cache-keys.js +14 -6
  513. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/distributed-cache.d.ts +1 -1
  514. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/distributed-cache.d.ts.map +1 -1
  515. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/distributed-cache.js +2 -1
  516. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fallback.d.ts +1 -0
  517. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fallback.d.ts.map +1 -1
  518. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fallback.js +1 -1
  519. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts +1 -0
  520. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts.map +1 -1
  521. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.js +6 -3
  522. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/module-cache.d.ts +1 -1
  523. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/module-cache.d.ts.map +1 -1
  524. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/module-cache.js +2 -2
  525. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/persistence.d.ts +1 -0
  526. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/persistence.d.ts.map +1 -1
  527. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/persistence.js +1 -1
  528. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/source-transform.d.ts +1 -0
  529. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/source-transform.d.ts.map +1 -1
  530. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/source-transform.js +2 -0
  531. package/esm/src/transforms/mdx/esm-module-loader/module-writer.d.ts +2 -2
  532. package/esm/src/transforms/mdx/esm-module-loader/module-writer.d.ts.map +1 -1
  533. package/esm/src/transforms/mdx/esm-module-loader/module-writer.js +15 -7
  534. package/esm/src/transforms/mdx/esm-module-loader/types.d.ts +4 -0
  535. package/esm/src/transforms/mdx/esm-module-loader/types.d.ts.map +1 -1
  536. package/esm/src/transforms/mdx/index.d.ts +1 -0
  537. package/esm/src/transforms/mdx/index.d.ts.map +1 -1
  538. package/esm/src/transforms/mdx/index.js +2 -1
  539. package/esm/src/transforms/pipeline/cache-identity.d.ts +1 -0
  540. package/esm/src/transforms/pipeline/cache-identity.d.ts.map +1 -1
  541. package/esm/src/transforms/pipeline/cache-identity.js +15 -0
  542. package/esm/src/transforms/pipeline/context.d.ts.map +1 -1
  543. package/esm/src/transforms/pipeline/context.js +2 -0
  544. package/esm/src/transforms/pipeline/index.d.ts.map +1 -1
  545. package/esm/src/transforms/pipeline/index.js +1 -0
  546. package/esm/src/transforms/pipeline/stages/resolve-imports.d.ts.map +1 -1
  547. package/esm/src/transforms/pipeline/stages/resolve-imports.js +1 -0
  548. package/esm/src/transforms/pipeline/stages/ssr-http-cache.d.ts.map +1 -1
  549. package/esm/src/transforms/pipeline/stages/ssr-http-cache.js +1 -0
  550. package/esm/src/transforms/pipeline/types.d.ts +4 -0
  551. package/esm/src/transforms/pipeline/types.d.ts.map +1 -1
  552. package/esm/src/transforms/shared/esm-sh-specifier.d.ts +18 -0
  553. package/esm/src/transforms/shared/esm-sh-specifier.d.ts.map +1 -0
  554. package/esm/src/transforms/shared/esm-sh-specifier.js +253 -0
  555. package/esm/src/transforms/shared/package-specifier.d.ts.map +1 -1
  556. package/esm/src/transforms/shared/package-specifier.js +9 -2
  557. package/esm/src/transforms/shared/server-only-packages.d.ts +25 -1
  558. package/esm/src/transforms/shared/server-only-packages.d.ts.map +1 -1
  559. package/esm/src/transforms/shared/server-only-packages.js +176 -4
  560. package/esm/src/types/entities/getEntityInfo.d.ts.map +1 -1
  561. package/esm/src/types/index.d.ts +5 -0
  562. package/esm/src/types/index.d.ts.map +1 -1
  563. package/esm/src/types/server.d.ts +6 -0
  564. package/esm/src/types/server.d.ts.map +1 -1
  565. package/esm/src/utils/env-loader.d.ts.map +1 -1
  566. package/esm/src/utils/env-loader.js +2 -1
  567. package/esm/src/utils/feature-flags.js +1 -1
  568. package/esm/src/utils/lru-wrapper.js +2 -2
  569. package/esm/src/utils/memory/profiler.d.ts +20 -0
  570. package/esm/src/utils/memory/profiler.d.ts.map +1 -1
  571. package/esm/src/utils/memory/profiler.js +43 -5
  572. package/esm/src/utils/perf-timer.js +1 -1
  573. package/esm/src/utils/redirect-policy.d.ts +18 -0
  574. package/esm/src/utils/redirect-policy.d.ts.map +1 -0
  575. package/esm/src/utils/redirect-policy.js +92 -0
  576. package/esm/src/utils/redis-client.d.ts.map +1 -1
  577. package/esm/src/utils/redis-client.js +6 -3
  578. package/esm/src/utils/version-constant.d.ts +1 -1
  579. package/esm/src/utils/version-constant.js +1 -1
  580. package/esm/src/workflow/claude-code/tool.d.ts +27 -27
  581. package/esm/src/workflow/claude-code/tool.d.ts.map +1 -1
  582. package/esm/src/workflow/claude-code/wire-protocol.d.ts.map +1 -1
  583. package/esm/src/workflow/dsl/workflow.d.ts +3 -0
  584. package/esm/src/workflow/dsl/workflow.d.ts.map +1 -1
  585. package/esm/src/workflow/dsl/workflow.js +2 -1
  586. package/esm/src/workflow/executor/workflow-definition-snapshot.d.ts.map +1 -1
  587. package/esm/src/workflow/executor/workflow-definition-snapshot.js +88 -39
  588. package/esm/src/workflow/registry.d.ts +4 -1
  589. package/esm/src/workflow/registry.d.ts.map +1 -1
  590. package/esm/src/workflow/registry.js +10 -8
  591. package/esm/src/workflow/types.d.ts +3 -0
  592. package/esm/src/workflow/types.d.ts.map +1 -1
  593. package/esm/templates/index.d.ts.map +1 -1
  594. package/esm/templates/index.js +7 -0
  595. package/esm/templates/manifest.generated.d.ts.map +1 -1
  596. package/esm/templates/manifest.generated.js +1 -1
  597. package/package.json +16 -9
  598. package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts +0 -24
  599. package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts.map +0 -1
  600. package/esm/src/agent/ag-ui/browser-encoder.d.ts.map +0 -1
  601. package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts +0 -15
  602. package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts.map +0 -1
  603. package/esm/src/agent/ag-ui/browser-response-stream.d.ts +0 -33
  604. package/esm/src/agent/ag-ui/browser-response-stream.d.ts.map +0 -1
  605. package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts +0 -35
  606. package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts.map +0 -1
  607. package/esm/src/agent/ag-ui/runtime-browser-response.d.ts +0 -20
  608. package/esm/src/agent/ag-ui/runtime-browser-response.d.ts.map +0 -1
  609. package/esm/src/agent/ag-ui/runtime-browser-response.js +0 -16
  610. package/esm/src/agent/ag-ui/tracked-browser-response.d.ts +0 -11
  611. package/esm/src/agent/ag-ui/tracked-browser-response.d.ts.map +0 -1
@@ -11,8 +11,10 @@ import type { ModelOption } from "../../model-selector.js";
11
11
  import type { AttachmentInfo } from "../components/attachment-pill.js";
12
12
  /** State shared by controlled and composer-owned submit modes. */
13
13
  interface ComposerStateBaseProps {
14
- input: string;
15
- onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
14
+ /** Falls back to the surrounding `ChatContext` input when omitted. */
15
+ input?: string;
16
+ /** Falls back to `ChatContext.setInput` when omitted. */
17
+ onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
16
18
  /** Clear pending attachments after a composer-owned submit sends. */
17
19
  onClearAttachments?: () => void;
18
20
  isLoading?: boolean;
@@ -48,12 +50,13 @@ interface ComposerSubmitProps {
48
50
  sendMessage?: (message: {
49
51
  text: string;
50
52
  files?: ChatFilePart[];
53
+ model?: string;
51
54
  }) => void;
52
55
  /** Update the controlled input value for headless context consumers. */
53
56
  setInput?: (value: string) => void;
54
57
  }
55
58
  /** Composer state the context is built from (shared by `ChatInput` + `ChatInput.Root`). */
56
59
  export type ComposerStateProps = ComposerStateBaseProps & ComposerSubmitProps;
57
- export declare function useComposerValue(p: ComposerStateProps): ChatInputContextValue;
60
+ export declare function useComposerValue(props: ComposerStateProps): ChatInputContextValue;
58
61
  export {};
59
62
  //# sourceMappingURL=use-composer-value.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-composer-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/use-composer-value.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGvE,kEAAkE;AAClE,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CACR,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,KACzD,IAAI,CAAC;IACV,qEAAqE;IACrE,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED;;;;;;GAMG;AACH,UAAU,mBAAmB;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1E,wEAAwE;IACxE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,2FAA2F;AAC3F,MAAM,MAAM,kBAAkB,GAC1B,sBAAsB,GACtB,mBAAmB,CAAC;AAUxB,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,GAAG,qBAAqB,CAsE7E"}
1
+ {"version":3,"file":"use-composer-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/use-composer-value.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGvE,kEAAkE;AAClE,UAAU,sBAAsB;IAC9B,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,QAAQ,CAAC,EAAE,CACT,CAAC,EAA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BAAgB,gBAAgB,CAAC,KAAK,EAAE,kBAAkB,GAAG,qBAAqB,CA0HjF"}
@@ -5,13 +5,42 @@
5
5
  * @module react/components/chat/composition/use-composer-value
6
6
  */
7
7
  import * as React from "react";
8
+ import { useChatContextOptional } from "../contexts/chat-context.js";
8
9
  import { attachmentsToFileParts, hasPendingAttachments } from "../chat-attachments.js";
9
10
  /** Build the ChatInputContext value from composer state props. */
10
11
  function missingSetInput() {
11
12
  throw new Error("ChatInput cannot update its controlled value because setInput was not provided. " +
12
13
  "Pass setInput to <ChatInput> or <ChatInput.Root>.");
13
14
  }
14
- export function useComposerValue(p) {
15
+ export function useComposerValue(props) {
16
+ // One shared chat context (issue #69): when a `<Chat.Root>` is above,
17
+ // omitted props fall back to its `ChatContext` (the shared session), so a
18
+ // propless `<ChatInput.Root>` wires itself. Explicit props always win, and a
19
+ // standalone composer (no ChatContext) keeps the props-only behavior.
20
+ const chat = useChatContextOptional();
21
+ const resolvedSetInput = props.setInput ?? chat?.setInput;
22
+ const fallbackOnChange = React.useCallback((e) => resolvedSetInput?.(e.target.value), [resolvedSetInput]);
23
+ const hasExplicitSubmitState = props.input !== undefined ||
24
+ props.setInput !== undefined || props.attachments !== undefined ||
25
+ props.onRemoveAttachment !== undefined || props.onClearAttachments !== undefined ||
26
+ props.isLoading !== undefined || props.model !== undefined;
27
+ const p = {
28
+ ...props,
29
+ input: props.input ?? chat?.input ?? "",
30
+ onChange: props.onChange ?? fallbackOnChange,
31
+ setInput: resolvedSetInput,
32
+ onSubmit: props.onSubmit ?? chat?.onSubmit,
33
+ sendMessage: props.sendMessage ??
34
+ (props.onSubmit === undefined && hasExplicitSubmitState ? chat?.sendMessage : undefined),
35
+ isLoading: props.isLoading ?? chat?.isLoading,
36
+ stop: props.stop ?? chat?.onStop,
37
+ model: props.model ?? chat?.model,
38
+ models: props.models ?? chat?.models,
39
+ onModelChange: props.onModelChange ?? chat?.onModelChange,
40
+ attachments: props.attachments ?? chat?.attachments,
41
+ onAttach: props.onAttach ?? chat?.onAttach,
42
+ onRemoveAttachment: props.onRemoveAttachment ?? chat?.onRemoveAttachment,
43
+ };
15
44
  const hasResolvedAttachment = p.attachments?.some((attachment) => Boolean(attachment.url) &&
16
45
  attachment.state !== "uploading" &&
17
46
  attachment.state !== "processing" &&
@@ -22,7 +51,7 @@ export function useComposerValue(p) {
22
51
  // When `sendMessage` is supplied the composer owns submit: trim, wait for
23
52
  // in-flight uploads, fold resolved attachments into file parts, send, clear.
24
53
  // Otherwise fall back to the caller's explicit `onSubmit` (controlled mode).
25
- const { sendMessage, setInput, onClearAttachments, onSubmit } = p;
54
+ const { sendMessage, setInput, onClearAttachments, onSubmit, onRemoveAttachment } = p;
26
55
  const onSubmitEffective = React.useCallback((e) => {
27
56
  if (!sendMessage) {
28
57
  onSubmit?.(e);
@@ -36,10 +65,32 @@ export function useComposerValue(p) {
36
65
  const files = attachmentsToFileParts(attachments);
37
66
  if (!text && files.length === 0)
38
67
  return;
39
- sendMessage({ text, ...(files.length > 0 ? { files } : {}) });
68
+ sendMessage({
69
+ text,
70
+ ...(files.length > 0 ? { files } : {}),
71
+ ...(p.model !== undefined ? { model: p.model } : {}),
72
+ });
40
73
  setInput?.("");
41
- onClearAttachments?.();
42
- }, [canSubmit, sendMessage, onSubmit, setInput, onClearAttachments, p.input, p.attachments]);
74
+ if (onClearAttachments) {
75
+ onClearAttachments();
76
+ }
77
+ else {
78
+ for (const attachment of attachments) {
79
+ if (attachment.url)
80
+ onRemoveAttachment?.(attachment.id);
81
+ }
82
+ }
83
+ }, [
84
+ canSubmit,
85
+ sendMessage,
86
+ onSubmit,
87
+ setInput,
88
+ onClearAttachments,
89
+ onRemoveAttachment,
90
+ p.input,
91
+ p.attachments,
92
+ p.model,
93
+ ]);
43
94
  return React.useMemo(() => ({
44
95
  input: p.input,
45
96
  setInput: p.setInput ?? missingSetInput,
@@ -6,7 +6,7 @@
6
6
  * @module react/components/chat/contexts/chat-context
7
7
  */
8
8
  import * as React from "react";
9
- import type { ChatMessage, ChatStatus } from "../../../../../agent/react/index.js";
9
+ import type { ChatFilePart, ChatMessage, ChatStatus } from "../../../../../agent/react/index.js";
10
10
  import type { ChatTheme } from "../../theme.js";
11
11
  import type { ModelOption } from "../../model-selector.js";
12
12
  import type { AttachmentInfo } from "../components/attachment-pill.js";
@@ -29,6 +29,12 @@ export interface ChatContextValue {
29
29
  input: string;
30
30
  setInput: (value: string) => void;
31
31
  onSubmit: (e?: React.FormEvent) => void | Promise<void>;
32
+ /** Send resolved composer text, attachments, and an optional request model through the session. */
33
+ sendMessage?: (message: {
34
+ text: string;
35
+ files?: ChatFilePart[];
36
+ model?: string;
37
+ }) => void | Promise<void>;
32
38
  onStop?: () => void;
33
39
  onReload?: () => void;
34
40
  model?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"chat-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/contexts/chat-context.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEtE,kDAAkD;AAClD,MAAM,WAAW,gBAAgB;IAE/B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,mFA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E,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAGxD,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,IAAI,CAAC;IAG3B,KAAK,EAAE,SAAS,CAAC;CAClB;AAOD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,wBAAuB,CAAC;AAEnD,4CAA4C;AAC5C,wBAAgB,sBAAsB,IAAI,gBAAgB,GAAG,IAAI,CAEhE;AAED,oCAAoC;AACpC,eAAO,MAAM,mBAAmB,KAAuB,CAAC"}
1
+ {"version":3,"file":"chat-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/contexts/chat-context.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEtE,kDAAkD;AAClD,MAAM,WAAW,gBAAgB;IAE/B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,mFAAmF;IACnF,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAGpB,KAAK,EAA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AE,MAAM,EAAE,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IAGlE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAGxD,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,IAAI,CAAC;IAG3B,KAAK,EAAE,SAAS,CAAC;CAClB;AAOD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,wBAAuB,CAAC;AAEnD,4CAA4C;AAC5C,wBAAgB,sBAAsB,IAAI,gBAAgB,GAAG,IAAI,CAEhE;AAED,oCAAoC;AACpC,eAAO,MAAM,mBAAmB,KAAuB,CAAC"}
@@ -10,11 +10,21 @@
10
10
  import * as React from "react";
11
11
  import { type UseConversationsActiveLoadState, type UseConversationsOptions, type UseConversationsPersistenceState, type UseConversationsResult } from "../hooks/use-conversations.js";
12
12
  /**
13
- * Value accepted by the low-level context provider. Persistence state is
14
- * optional here so existing caller-supplied structural fixtures remain
15
- * compatible; {@link ConversationsProvider} always supplies it.
13
+ * Value accepted by the low-level context provider. Persistence state and
14
+ * `activeReady` are optional here so existing caller-supplied structural
15
+ * fixtures remain compatible; {@link ConversationsProvider} always supplies
16
+ * them.
16
17
  */
17
- export type ConversationsContextValue = UseConversationsResult & Partial<UseConversationsPersistenceState & UseConversationsActiveLoadState>;
18
+ export type ConversationsContextValue = UseConversationsResult & Partial<UseConversationsPersistenceState & UseConversationsActiveLoadState> & {
19
+ /**
20
+ * True once the full active record has resolved for the current
21
+ * `activeConversationId` (`activeConversationId != null &&
22
+ * activeConversation?.id === activeConversationId`) from the current
23
+ * store; false while it is loading or mismatched, and false when there is
24
+ * no active id.
25
+ */
26
+ activeReady?: boolean;
27
+ };
18
28
  declare const useConversationsContext: () => ConversationsContextValue;
19
29
  /** Read the shared conversations state, or `null` when there is no provider. */
20
30
  export declare function useConversationsContextOptional(): ConversationsContextValue | null;
@@ -1 +1 @@
1
- {"version":3,"file":"conversations-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/contexts/conversations-context.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC5B,MAAM,+BAA+B,CAAC;AAEvC;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GACjC,sBAAsB,GACtB,OAAO,CAAC,gCAAgC,GAAG,+BAA+B,CAAC,CAAC;AAEhF,QAAA,MAA6B,uBAAuB,iCAKnD,CAAC;AAEF,gFAAgF;AAChF,wBAAgB,+BAA+B,IAAI,yBAAyB,GAAG,IAAI,CAElF;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,iEAAiE;AACjE,eAAO,MAAM,4BAA4B,KAAgC,CAAC;AAE1E,uDAAuD;AACvD,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,0BAA0B,GACnD,KAAK,CAAC,YAAY,CAOpB"}
1
+ {"version":3,"file":"conversations-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/contexts/conversations-context.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC5B,MAAM,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GACjC,sBAAsB,GACtB,OAAO,CAAC,gCAAgC,GAAG,+BAA+B,CAAC,GAC3E;IACA;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEJ,QAAA,MAA6B,uBAAuB,iCAKnD,CAAC;AAEF,gFAAgF;AAChF,wBAAgB,+BAA+B,IAAI,yBAAyB,GAAG,IAAI,CAElF;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,iEAAiE;AACjE,eAAO,MAAM,4BAA4B,KAAgC,CAAC;AAE1E,uDAAuD;AACvD,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,0BAA0B,GACnD,KAAK,CAAC,YAAY,CAmBpB"}
@@ -26,5 +26,14 @@ export const ConversationsContextProvider = ConversationsContext.Provider;
26
26
  */
27
27
  export function ConversationsProvider({ children, ...options }) {
28
28
  const conversations = useConversations(options);
29
- return (React.createElement(ConversationsContextProvider, { value: conversations }, children));
29
+ const storeScope = options.store ?? options.storageKey ?? null;
30
+ const committedStoreScope = React.useRef(storeScope);
31
+ const storeScopeReady = Object.is(committedStoreScope.current, storeScope);
32
+ React.useEffect(() => {
33
+ committedStoreScope.current = storeScope;
34
+ }, [storeScope]);
35
+ const activeReady = storeScopeReady && conversations.activeConversationId != null &&
36
+ conversations.activeConversation?.id === conversations.activeConversationId;
37
+ const value = React.useMemo(() => ({ ...conversations, activeReady }), [conversations, activeReady]);
38
+ return (React.createElement(ConversationsContextProvider, { value: value }, children));
30
39
  }
@@ -58,7 +58,7 @@ export { type FeedbackValue, MessageFeedback, type MessageFeedbackActionProps, t
58
58
  export { type AttachmentInfo, AttachmentPill, type AttachmentPillContextValue, type AttachmentPillProps, useAttachmentPill, } from "./components/attachment-pill.js";
59
59
  export { type CodeBlockProps, RichCodeBlock } from "./components/code-block.js";
60
60
  export { StepIndicator, type StepIndicatorContextValue, type StepIndicatorProps, useStepIndicator, } from "./components/step-indicator.js";
61
- export { ChatSidebar, type ChatSidebarComponent, type ChatSidebarEmptyProps, type ChatSidebarGroupProps, type ChatSidebarItemActionProps, type ChatSidebarItemComponent, type ChatSidebarItemContextValue, type ChatSidebarItemMenuProps, type ChatSidebarItemProps, type ChatSidebarItemRenderOptions, type ChatSidebarListProps, type ChatSidebarNewButtonProps, type ChatSidebarProps, type ChatSidebarRootProps, useChatSidebarItem, } from "./components/sidebar.js";
61
+ export { ChatSidebar, type ChatSidebarComponent, type ChatSidebarEmptyProps, type ChatSidebarGroupProps, type ChatSidebarItemActionProps, type ChatSidebarItemComponent, type ChatSidebarItemContextValue, type ChatSidebarItemMenuProps, type ChatSidebarItemProps, type ChatSidebarItemRenderOptions, type ChatSidebarItemTitleProps, type ChatSidebarListProps, type ChatSidebarNewButtonProps, type ChatSidebarProps, type ChatSidebarRootProps, useChatSidebarItem, } from "./components/sidebar.js";
62
62
  export { type ChatTab, TabSwitcher, type TabSwitcherProps } from "./components/tab-switcher.js";
63
63
  export { type QuickAction, QuickActions, type QuickActionsProps, } from "./components/quick-actions.js";
64
64
  export { AttachmentsPanel, type AttachmentsPanelActionProps, type AttachmentsPanelContextValue, type AttachmentsPanelEmptyProps, type AttachmentsPanelHeaderProps, type AttachmentsPanelItemProps, type AttachmentsPanelListProps, type AttachmentsPanelLoadingProps, type AttachmentsPanelProps, type UploadedFile, useAttachmentsPanel, } from "./components/attachments-panel.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/src/react/components/chat/chat/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,cAAc,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,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,MAAM,EACN,KAAK,WAAW,EAChB,SAAS,EACT,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,QAAQ,EACR,KAAK,aAAa,EAClB,WAAW,EACX,KAAK,gBAAgB,EACrB,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,MAAM,sBAAsB,CAAC;AAC9B,mBAAmB,sCAAsC,CAAC;AAE1D,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,wBAAwB,EACxB,KAAK,qBAAqB,EAC1B,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,sBAAsB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,yBAAyB,EACzB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/src/react/components/chat/chat/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,YAAY,GACb,MAAM,2BAA2B,CAAC;AACnC,O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6BAA6B,EAClC,KAAK,8BAA8B,EACnC,MAAM,EACN,KAAK,WAAW,EAChB,SAAS,EACT,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,QAAQ,EACR,KAAK,aAAa,EAClB,WAAW,EACX,KAAK,gBAAgB,EACrB,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,MAAM,sBAAsB,CAAC;AAC9B,mBAAmB,sCAAsC,CAAC;AAE1D,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,wBAAwB,EACxB,KAAK,qBAAqB,EAC1B,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,sBAAsB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,yBAAyB,EACzB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-codec.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/persistence/conversation-codec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,iCAAiC,CAAC;AAE1E,yDAAyD;AACzD,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,4EAA4E;AAC5E,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,QAAQ,CAAC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C,MAAM,EAAE,OAAO,CAAC;CAC1B;AA+3BD,kEAAkE;AAClE,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAQtE;AAED,gFAAgF;AAChF,wBAAgB,wCAAwC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAOnF;AAED,+DAA+D;AAC/D,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAUjF;AAED,wEAAwE;AACxE,wBAAgB,iCAAiC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED,iFAAiF;AACjF,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAIvF;AAED,+EAA+E;AAC/E,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,YAAY,GAAG,yBAAyB,CAgB9F;AAED,+EAA+E;AAC/E,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAiB/E;AAED,2EAA2E;AAC3E,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,SAAS,mBAAmB,EAAE,GACxC,wBAAwB,CAkB1B;AAED,8EAA8E;AAC9E,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAmB7E"}
1
+ {"version":3,"file":"conversation-codec.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/persistence/conversation-codec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,iCAAiC,CAAC;AAE1E,yDAAyD;AACzD,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,4EAA4E;AAC5E,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,QAAQ,CAAC,aAAa,EAAE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E,OAAO,CAAC;CAC1B;AAm4BD,kEAAkE;AAClE,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAQtE;AAED,gFAAgF;AAChF,wBAAgB,wCAAwC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAOnF;AAED,+DAA+D;AAC/D,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAUjF;AAED,wEAAwE;AACxE,wBAAgB,iCAAiC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED,iFAAiF;AACjF,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAIvF;AAED,+EAA+E;AAC/E,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,YAAY,GAAG,yBAAyB,CAgB9F;AAED,+EAA+E;AAC/E,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAiB/E;AAED,2EAA2E;AAC3E,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,SAAS,mBAAmB,EAAE,GACxC,wBAAwB,CAgB1B;AAED,8EAA8E;AAC9E,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAiB7E"}
@@ -8,7 +8,7 @@ export { AgentAvatar, type AgentAvatarProps, ChatEmpty, type ChatEmptyProps, Cha
8
8
  export { ChatInputAttach, ChatInputExport, ChatInputField, ChatInputModel, ChatInputRoot, ChatInputSend, ChatInputStop, ChatInputSubmit, ChatInputToolbar, ChatInputVoice, } from "./chat/composition/api.js";
9
9
  export { type ActiveConversationLoadFailure, type Conversation, CONVERSATION_STORAGE_LIMITS, type ConversationPatch, ConversationsContextProvider, type ConversationsContextValue, ConversationsProvider, type ConversationsProviderProps, type ConversationStorageLimits, type ConversationStore, ConversationStoreError, type ConversationStoreOperation, type ConversationSummary, localConversationStore, memoryConversationStore, type StorageLike, useConversation, useConversationChat, type UseConversationChatOptions, type UseConversationChatResult, type UseConversationOptions, type UseConversationPersistenceState, type UseConversationResult, useConversations, type UseConversationsActiveLoadState, useConversationsContext, useConversationsContextOptional, type UseConversationsOptions, type UseConversationsPersistenceState, type UseConversationsResult, } from "./chat/index.js";
10
10
  export { ChatContextProvider, type ChatContextValue, ChatInputContextProvider, type ChatInputContextValue, ComposerContextProvider, type ComposerContextValue, MessageContextProvider, type MessageContextValue, type MessagePartsData, useChatContext, useChatContextOptional, useChatInputContext, useChatInputContextOptional, useComposerContext, useComposerContextOptional, useMessageBranches, type UseMessageBranchesResult, useMessageContext, useMessageContextOptional, useMessageParts, } from "./chat/index.js";
11
- export { type AttachmentInfo, AttachmentPill, type AttachmentPillContextValue, type AttachmentPillProps, AttachmentsPanel, type AttachmentsPanelActionProps, type AttachmentsPanelContextValue, type AttachmentsPanelEmptyProps, type AttachmentsPanelHeaderProps, type AttachmentsPanelItemProps, type AttachmentsPanelListProps, type AttachmentsPanelLoadingProps, type AttachmentsPanelProps, BranchPicker, type BranchPickerActionProps, type BranchPickerCountProps, type BranchPickerProps, ChatMessagesSkeleton, type ChatMessagesSkeletonProps, ChatSidebar, type ChatSidebarComponent, type ChatSidebarEmptyProps, type ChatSidebarGroupProps, type ChatSidebarItemProps, type ChatSidebarListProps, type ChatSidebarNewButtonProps, type ChatSidebarProps, type ChatSidebarRootProps, type ChatTab, type CodeBlockProps, ConversationEmptyState, type ConversationEmptyStateProps, ConversationScrollButton, type ConversationScrollButtonProps, downloadMarkdown, DropZoneOverlay, type DropZoneOverlayProps, exportAsMarkdown, extractSourcesFromParts, FadeIn, type FeedbackValue, getTextContent, groupPartsInOrder, InferenceBadge, type InferenceBadgeProps, InlineCitation, type InlineCitationCardProps, type InlineCitationProps, type InlineCitationTriggerProps, isReasoningPart, isSkillToolPart, isToolPart, Loader, MessageActionBar, type MessageActionBarActionProps, type MessageActionBarProps, MessageEditForm, type MessageEditFormProps, MessageFeedback, type MessageFeedbackActionProps, type MessageFeedbackProps, type PartGroup, type QuickAction, QuickActions, type QuickActionsProps, Reasoning, type ReasoningContextValue, type ReasoningProps, type ReasoningTriggerProps, RichCodeBlock, Shimmer, SkillBadge, type SkillBadgeProps, type Source, SourcePill, type SourcePillProps, Sources, type SourcesContextValue, type SourcesListProps, type SourcesProps, StepIndicator, type StepIndicatorContextValue, type StepIndicatorProps, Suggestion, type SuggestionProps, Suggestions, type SuggestionsProps, TabSwitcher, type TabSwitcherProps, ToolCall, type ToolCallContextValue, type ToolCallProps, type ToolCallTriggerProps, ToolStatusBadge, type UploadedFile, useAttachmentPill, useAttachments, useAttachments as useUploadsRegistry, type UseAttachmentsOptions, type UseAttachmentsOptions as UseUploadsRegistryOptions, useAttachmentsPanel, type UseAttachmentsRequestState, type UseAttachmentsResult, type UseAttachmentsResult as UseUploadsRegistryResult, type UseAttachmentsStorageState, useChatSidebarItem, useReasoning, useSources, useStepIndicator, useToolCall, useUpload, type UseUploadOptions, type UseUploadResult, } from "./chat/index.js";
11
+ export { type AttachmentInfo, AttachmentPill, type AttachmentPillContextValue, type AttachmentPillProps, AttachmentsPanel, type AttachmentsPanelActionProps, type AttachmentsPanelContextValue, type AttachmentsPanelEmptyProps, type AttachmentsPanelHeaderProps, type AttachmentsPanelItemProps, type AttachmentsPanelListProps, type AttachmentsPanelLoadingProps, type AttachmentsPanelProps, BranchPicker, type BranchPickerActionProps, type BranchPickerCountProps, type BranchPickerProps, ChatMessagesSkeleton, type ChatMessagesSkeletonProps, ChatSidebar, type ChatSidebarComponent, type ChatSidebarEmptyProps, type ChatSidebarGroupProps, type ChatSidebarItemProps, type ChatSidebarItemTitleProps, type ChatSidebarListProps, type ChatSidebarNewButtonProps, type ChatSidebarProps, type ChatSidebarRootProps, type ChatTab, type CodeBlockProps, ConversationEmptyState, type ConversationEmptyStateProps, ConversationScrollButton, type ConversationScrollButtonProps, downloadMarkdown, DropZoneOverlay, type DropZoneOverlayProps, exportAsMarkdown, extractSourcesFromParts, FadeIn, type FeedbackValue, getTextContent, groupPartsInOrder, InferenceBadge, type InferenceBadgeProps, InlineCitation, type InlineCitationCardProps, type InlineCitationProps, type InlineCitationTriggerProps, isReasoningPart, isSkillToolPart, isToolPart, Loader, MessageActionBar, type MessageActionBarActionProps, type MessageActionBarProps, MessageEditForm, type MessageEditFormProps, MessageFeedback, type MessageFeedbackActionProps, type MessageFeedbackProps, type PartGroup, type QuickAction, QuickActions, type QuickActionsProps, Reasoning, type ReasoningContextValue, type ReasoningProps, type ReasoningTriggerProps, RichCodeBlock, Shimmer, SkillBadge, type SkillBadgeProps, type Source, SourcePill, type SourcePillProps, Sources, type SourcesContextValue, type SourcesListProps, type SourcesProps, StepIndicator, type StepIndicatorContextValue, type StepIndicatorProps, Suggestion, type SuggestionProps, Suggestions, type SuggestionsProps, TabSwitcher, type TabSwitcherProps, ToolCall, type ToolCallContextValue, type ToolCallProps, type ToolCallTriggerProps, ToolStatusBadge, type UploadedFile, useAttachmentPill, useAttachments, useAttachments as useUploadsRegistry, type UseAttachmentsOptions, type UseAttachmentsOptions as UseUploadsRegistryOptions, useAttachmentsPanel, type UseAttachmentsRequestState, type UseAttachmentsResult, type UseAttachmentsResult as UseUploadsRegistryResult, type UseAttachmentsStorageState, useChatSidebarItem, useReasoning, useSources, useStepIndicator, useToolCall, useUpload, type UseUploadOptions, type UseUploadResult, } from "./chat/index.js";
12
12
  export { mergeProps, useChatInput, type UseChatInputResult } from "./chat/hooks/use-chat-input.js";
13
13
  export { useChatScroll, type UseChatScrollOptions, type UseChatScrollResult, useStickToBottom, type UseStickToBottomOptions, type UseStickToBottomResult, } from "./chat/hooks/use-stick-to-bottom.js";
14
14
  export { type ModelOption, ModelSelector, type ModelSelectorContentProps, type ModelSelectorContextValue, type ModelSelectorItemProps, type ModelSelectorProps, type ModelSelectorSearchProps, type ModelSelectorTriggerProps, useModelSelector, } from "./model-selector.js";
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources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kBAAkB,EACpC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,mBAAmB,EACnB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,IAAI,wBAAwB,EACrD,KAAK,0BAA0B,EAC/B,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACnG,OAAO,EACL,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,gBAAgB,EAChB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,GAC5B,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EACL,KAAK,WAAW,EAChB,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,gBAAgB,GACjB,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/chat/chat.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK3E,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,EACrB,SAAS,EACT,KAAK,cAAc,EACnB,cAAc,EACd,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,MAAM,EACN,KAAK,WAAW,EAChB,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBA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O,EACL,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,gBAAgB,EAChB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,GAC5B,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EACL,KAAK,WAAW,EAChB,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,gBAAgB,GACjB,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"server-render-context.d.ts","sourceRoot":"","sources":["../../../src/src/react/server-render-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,mBAAmB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3D;AAMD,KAAK,mBAAmB,GAAG,IAAI,CAC7B,OAAO,KAAK,EACZ,eAAe,GAAG,eAAe,GAAG,YAAY,CACjD,CAAC;AAoDF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,GAAE,mBAA6D,GACnE,OAAO,CAET;AAED,wBAAgB,sBAAsB,IAAI,wBAAwB,GAAG,IAAI,CAKxE;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,KAAK,EAAE,wBAAwB,GAAG,SAAS,EAC3C,KAAK,GAAE,mBAAkD,GACxD,KAAK,CAAC,SAAS,CASjB"}
1
+ {"version":3,"file":"server-render-context.d.ts","sourceRoot":"","sources":["../../../src/src/react/server-render-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,mBAAmB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3D;AAMD,KAAK,mBAAmB,GAAG,IAAI,CAC7B,OAAO,KAAK,EACZ,eAAe,GAAG,eAAe,GAAG,YAAY,CACjD,CAAC;AAoDF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,GAAE,mBAAkD,GACxD,OAAO,CAET;AAED,wBAAgB,sBAAsB,IAAI,wBAAwB,GAAG,IAAI,CAKxE;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,KAAK,EAAE,wBAAwB,GAAG,SAAS,EAC3C,KAAK,GAAE,mBAAkD,GACxD,KAAK,CAAC,SAAS,CASjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"dependency-artifact-builder.d.ts","sourceRoot":"","sources":["../../../src/src/release-assets/dependency-artifact-builder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,iCAAiC,EACjC,gCAAgC,EAChC,6BAA6B,EAC7B,0BAA0B,EAE3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,uBAAuB,EAM7B,MAAM,gCAAgC,CAAC;AAExC,YAAY,EACV,iCAAiC,EACjC,gCAAgC,EAChC,6BAA6B,EAC7B,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAW1F,MAAM,WAAW,6BAA6B;IAC5C,WAAW,CAAC,KAAK,EAAE;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,6BAA6B,CAAC;QAC3C,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;KAChC,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,IAA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Q,EAAE,0BAA0B,GAAG,MAAM,CAM1F;AA+bD,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,0BAA0B,EACpC,IAAI,GAAE,6BAAkC,GACvC,OAAO,CAAC;IACT,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B,EAAE,MAAM,CAAC;CACtC,CAAC,CAeD;AA+BD,wBAAsB,0BAA0B,CAC9C,KAAK,EAAE,gCAAgC,EACvC,MAAM,EAAE,6BAA6B,EACrC,IAAI,GAAE,6BAAkC,GACvC,OAAO,CACN;IACA,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B,EAAE,MAAM,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;CACpB,GACC;IACA,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB,CACF,CAiHA"}
1
+ {"version":3,"file":"dependency-artifact-builder.d.ts","sourceRoot":"","sources":["../../../src/src/release-assets/dependency-artifact-builder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,iCAAiC,EACjC,gCAAgC,EAChC,6BAA6B,EAC7B,0BAA0B,EAE3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,uBAAuB,EAM7B,MAAM,gCAAgC,CAAC;AAExC,YAAY,EACV,iCAAiC,EACjC,gCAAgC,EAChC,6BAA6B,EAC7B,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAW1F,MAAM,WAAW,6BAA6B;IAC5C,WAAW,CAAC,KAAK,EAAE;QACjB,UAAU,E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,KAAK;IAEnD,QAAQ,CAAC,WAAW,EAAE,MAAM;gBAAnB,WAAW,EAAE,MAAM,EAC5B,OAAO,EAAE,MAAM;CAKlB;AAED,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,OAAO,GACb,gCAAgC,CAgClC;AAuGD,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,0BAA0B,GAAG,MAAM,CAM1F;AA+bD,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,0BAA0B,EACpC,IAAI,GAAE,6BAAkC,GACvC,OAAO,CAAC;IACT,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B,EAAE,MAAM,CAAC;CACtC,CAAC,CAeD;AA+BD,wBAAsB,0BAA0B,CAC9C,KAAK,EAAE,gCAAgC,EACvC,MAAM,EAAE,6BAA6B,EACrC,IAAI,GAAE,6BAAkC,GACvC,OAAO,CACN;IACA,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B,EAAE,MAAM,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;CACpB,GACC;IACA,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB,CACF,CAiHA"}
@@ -27,10 +27,10 @@ export declare function createErrorBoundary(ErrorComponent: ReservedComponent, R
27
27
  * of the file that was loaded — the client hydration bundle needs the path (in
28
28
  * the same absolute form as `appPath`) to load the same component in the browser.
29
29
  */
30
- export declare function loadReservedWithPath(dirs: string[], which: keyof typeof RESERVED_COMPONENTS, projectDir: string, _mode: "development" | "production", adapter: RuntimeAdapter, projectId?: string, contentSourceId?: string, reactVersion?: string, dependencyPinningCacheKey?: string, dependencyPinningDependencies?: Readonly<Record<string, string>>, dependencyPinningSource?: DependencyPinningSourceInput, moduleServerOrigin?: string): Promise<{
30
+ export declare function loadReservedWithPath(dirs: string[], which: keyof typeof RESERVED_COMPONENTS, projectDir: string, _mode: "development" | "production", adapter: RuntimeAdapter, projectId?: string, contentSourceId?: string, reactVersion?: string, dependencyPinningCacheKey?: string, dependencyPinningDependencies?: Readonly<Record<string, string>>, dependencyPinningSource?: DependencyPinningSourceInput, moduleServerOrigin?: string, serverExternalPackages?: readonly string[]): Promise<{
31
31
  component: ReservedComponent;
32
32
  filePath: string;
33
33
  } | null>;
34
- export declare function tryLoadReservedInDirs(dirs: string[], which: keyof typeof RESERVED_COMPONENTS, projectDir: string, mode: "development" | "production", adapter: RuntimeAdapter, projectId?: string, contentSourceId?: string, reactVersion?: string, dependencyPinningCacheKey?: string, dependencyPinningDependencies?: Readonly<Record<string, string>>, dependencyPinningSource?: DependencyPinningSourceInput, moduleServerOrigin?: string): Promise<ReservedComponent | null>;
34
+ export declare function tryLoadReservedInDirs(dirs: string[], which: keyof typeof RESERVED_COMPONENTS, projectDir: string, mode: "development" | "production", adapter: RuntimeAdapter, projectId?: string, contentSourceId?: string, reactVersion?: string, dependencyPinningCacheKey?: string, dependencyPinningDependencies?: Readonly<Record<string, string>>, dependencyPinningSource?: DependencyPinningSourceInput, moduleServerOrigin?: string, serverExternalPackages?: readonly string[]): Promise<ReservedComponent | null>;
35
35
  export {};
36
36
  //# sourceMappingURL=app-reserved.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-reserved.d.ts","sourceRoot":"","sources":["../../../src/src/rendering/app-reserved.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,OAAO,CAAC;AAGtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAE1F,KAAK,iBAAiB,GAAG,YAAY,CAAC,aAAa,CAAC;IA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,EAAE,MAAM,EAC3B,sBAAsB,CAAC,EAAE,SAAS,MAAM,EAAE,GACzC,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAiBnC"}
@@ -47,7 +47,7 @@ export function createErrorBoundary(ErrorComponent, ReactLib = BundledReact) {
47
47
  * of the file that was loaded — the client hydration bundle needs the path (in
48
48
  * the same absolute form as `appPath`) to load the same component in the browser.
49
49
  */
50
- export async function loadReservedWithPath(dirs, which, projectDir, _mode, adapter, projectId, contentSourceId, reactVersion, dependencyPinningCacheKey, dependencyPinningDependencies, dependencyPinningSource, moduleServerOrigin) {
50
+ export async function loadReservedWithPath(dirs, which, projectDir, _mode, adapter, projectId, contentSourceId, reactVersion, dependencyPinningCacheKey, dependencyPinningDependencies, dependencyPinningSource, moduleServerOrigin, serverExternalPackages) {
51
51
  const join = (a, b) => `${a.replace(/\/$/, "")}/${b.replace(/^\//, "")}`;
52
52
  const candidateName = RESERVED_COMPONENTS[which];
53
53
  const { loadComponentFromSource } = await import("../modules/react-loader/component-loader.js");
@@ -61,6 +61,7 @@ export async function loadReservedWithPath(dirs, which, projectDir, _mode, adapt
61
61
  dev: true,
62
62
  contentSourceId,
63
63
  reactVersion,
64
+ serverExternalPackages,
64
65
  moduleServerOrigin,
65
66
  dependencyPinningCacheKey,
66
67
  dependencyPinningDependencies,
@@ -77,7 +78,7 @@ export async function loadReservedWithPath(dirs, which, projectDir, _mode, adapt
77
78
  }
78
79
  return null;
79
80
  }
80
- export async function tryLoadReservedInDirs(dirs, which, projectDir, mode, adapter, projectId, contentSourceId, reactVersion, dependencyPinningCacheKey, dependencyPinningDependencies, dependencyPinningSource, moduleServerOrigin) {
81
- const loaded = await loadReservedWithPath(dirs, which, projectDir, mode, adapter, projectId, contentSourceId, reactVersion, dependencyPinningCacheKey, dependencyPinningDependencies, dependencyPinningSource, moduleServerOrigin);
81
+ export async function tryLoadReservedInDirs(dirs, which, projectDir, mode, adapter, projectId, contentSourceId, reactVersion, dependencyPinningCacheKey, dependencyPinningDependencies, dependencyPinningSource, moduleServerOrigin, serverExternalPackages) {
82
+ const loaded = await loadReservedWithPath(dirs, which, projectDir, mode, adapter, projectId, contentSourceId, reactVersion, dependencyPinningCacheKey, dependencyPinningDependencies, dependencyPinningSource, moduleServerOrigin, serverExternalPackages);
82
83
  return loaded?.component ?? null;
83
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cache-coordinator.d.ts","sourceRoot":"","sources":["../../../../src/src/rendering/cache/cache-coordinator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAgB,UAAU,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAoB,KAAK,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAyBnF,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;OAUG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IAC1C,WAAW,EAAE,iBAAiB,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAA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,EAAE,YAAY,EACpB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAgDV,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU5C;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAShC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,gBAAgB;IA6BxB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,aAAa;CAuBtB"}
@@ -136,6 +136,7 @@ export class CacheCoordinator {
136
136
  stream: null,
137
137
  ssrHash: result.ssrHash,
138
138
  pageModule: result.pageModule,
139
+ ...(result.headers ? { headers: result.headers } : {}),
139
140
  },
140
141
  ...(sealedHtml.placeholder === undefined
141
142
  ? {}
@@ -1 +1 @@
1
- {"version":3,"file":"cache-payload.d.ts","sourceRoot":"","sources":["../../../../src/src/rendering/cache/cache-payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAu6B/C,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAEnE;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAwDjE;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAO1E;AAED,wFAAwF;AACxF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAanF"}
1
+ {"version":3,"file":"cache-payload.d.ts","sourceRoot":"","sources":["../../../../src/src/rendering/cache/cache-payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA89B/C,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAEnE;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAyDjE;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAO1E;AAED,wFAAwF;AACxF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAanF"}
@@ -1,4 +1,5 @@
1
1
  import { isHtmlNonceCachePlaceholder } from "../../html/nonce-injection.js";
2
+ import { normalizeDataResponseMetadata } from "../../data/response-metadata.js";
2
3
  const MAX_CACHE_VALUE_DEPTH = 64;
3
4
  const MAX_CACHE_VALUE_NODES = 100_000;
4
5
  const MAX_CACHE_PAYLOAD_UTF8_BYTES = 32 * 1024 * 1024;
@@ -139,6 +140,46 @@ function optionalTimestamp(record, key) {
139
140
  }
140
141
  return value;
141
142
  }
143
+ function cloneResponseHeaders(value, state) {
144
+ if (value === undefined)
145
+ return undefined;
146
+ if (!isPlainRecord(value))
147
+ fail("result.headers must be an object");
148
+ const detached = {};
149
+ for (const key of Object.keys(value)) {
150
+ const entry = ownDataValue(value, key);
151
+ if (typeof entry !== "string")
152
+ fail("result.headers must contain only strings");
153
+ Object.defineProperty(detached, key, {
154
+ value: entry,
155
+ enumerable: true,
156
+ configurable: true,
157
+ writable: true,
158
+ });
159
+ }
160
+ let normalized;
161
+ try {
162
+ normalized = normalizeDataResponseMetadata({ headers: detached }).headers;
163
+ }
164
+ catch {
165
+ fail("result.headers is invalid");
166
+ }
167
+ if (!normalized)
168
+ return undefined;
169
+ countNode(state, 0);
170
+ const cloned = {};
171
+ for (const [name, headerValue] of Object.entries(normalized)) {
172
+ const clonedName = cloneBoundedString(name, state, "result.headers name", MAX_METADATA_STRING_UTF8_BYTES);
173
+ const clonedValue = cloneBoundedString(headerValue, state, "result.headers value", MAX_METADATA_STRING_UTF8_BYTES);
174
+ Object.defineProperty(cloned, clonedName, {
175
+ value: clonedValue,
176
+ enumerable: true,
177
+ configurable: true,
178
+ writable: true,
179
+ });
180
+ }
181
+ return cloned;
182
+ }
142
183
  function cloneNodeMapEntries(result, payload, state) {
143
184
  const normalize = (entries) => {
144
185
  if (entries.length > MAX_NODE_MAP_ENTRIES)
@@ -697,6 +738,7 @@ function buildCachePayload(value) {
697
738
  const htmlNoncePlaceholder = rawHtmlNoncePlaceholder === undefined
698
739
  ? undefined
699
740
  : cloneBoundedString(rawHtmlNoncePlaceholder, state, "htmlNoncePlaceholder", MAX_METADATA_STRING_UTF8_BYTES);
741
+ const headers = cloneResponseHeaders(ownDataValue(result, "headers"), state);
700
742
  const frontmatter = cloneJsonValue(rawFrontmatter, state);
701
743
  if (!isPlainRecord(frontmatter))
702
744
  fail("result.frontmatter must be an object");
@@ -730,6 +772,7 @@ function buildCachePayload(value) {
730
772
  stream: null,
731
773
  ...(pageModule === undefined ? {} : { pageModule }),
732
774
  ...(clonedSsrHash === undefined ? {} : { ssrHash: clonedSsrHash }),
775
+ ...(headers === undefined ? {} : { headers }),
733
776
  },
734
777
  ...(htmlNoncePlaceholder === undefined ? {} : { htmlNoncePlaceholder }),
735
778
  storedAt,
@@ -776,6 +819,7 @@ export function serializeCachePayload(value) {
776
819
  ? {}
777
820
  : { pageModule: snapshot.result.pageModule }),
778
821
  ...(snapshot.result.ssrHash === undefined ? {} : { ssrHash: snapshot.result.ssrHash }),
822
+ ...(snapshot.result.headers === undefined ? {} : { headers: snapshot.result.headers }),
779
823
  },
780
824
  ...(snapshot.htmlNoncePlaceholder === undefined
781
825
  ? {}
@@ -17,6 +17,7 @@ interface BundleComponentForClientDeps {
17
17
  moduleServerUrl?: string;
18
18
  moduleServerOrigin?: string;
19
19
  reactVersion?: string;
20
+ serverExternalPackages?: readonly string[];
20
21
  dependencyPinningCacheKey?: string;
21
22
  dependencyPinningDependencies?: Readonly<Record<string, string>>;
22
23
  dependencyPinningSource?: DependencyPinningSourceInput;
@@ -47,7 +48,9 @@ export declare function handleComponentPage(pageInfo: EntityInfo, slug: string,
47
48
  dependencyPinningDependencies?: Readonly<Record<string, string>>;
48
49
  /** Exact package source namespace paired with the immutable snapshot. */
49
50
  dependencyPinningSource?: DependencyPinningSourceInput;
51
+ /** Bare npm package roots that the runtime resolves without bundling. */
52
+ serverExternalPackages?: readonly string[];
50
53
  }): Promise<ComponentPageResult>;
51
- export declare function bundleComponentForClient(source: string, filePath: string, projectDir: string, adapter: RuntimeAdapter, moduleServerUrl?: string, projectId?: string, reactVersion?: string, injectedDeps?: BundleComponentForClientDeps, moduleServerOrigin?: string, dependencyPinningCacheKey?: string, dependencyPinningDependencies?: Readonly<Record<string, string>>, dependencyPinningSource?: DependencyPinningSourceInput): Promise<string>;
54
+ export declare function bundleComponentForClient(source: string, filePath: string, projectDir: string, adapter: RuntimeAdapter, moduleServerUrl?: string, projectId?: string, reactVersion?: string, injectedDeps?: BundleComponentForClientDeps, moduleServerOrigin?: string, dependencyPinningCacheKey?: string, dependencyPinningDependencies?: Readonly<Record<string, string>>, dependencyPinningSource?: DependencyPinningSourceInput, serverExternalPackages?: readonly string[]): Promise<string>;
52
55
  export {};
53
56
  //# sourceMappingURL=component-handling.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-handling.d.ts","sourceRoot":"","sources":["../../../src/src/rendering/component-handling.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,KAAK,YAAY,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAMhE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAI1F,UAAU,mB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;IACzB,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,mEAAmE;IACnE,6BAA6B,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjE,yEAAyE;IACzE,uBAAuB,CAAC,EAAE,4BAA4B,CAAC;CACxD,GACA,OAAO,CAAC,mBAAmB,CAAC,CAmF9B;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,eAAe,CAAC,EAAE,MAAM,EACxB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,YAAY,CAAC,EAAE,4BAA4B,EAC3C,kBAAkB,CAAC,EAAE,MAAM,EAC3B,yBAAyB,SAAQ,EACjC,6BAA6B,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAChE,uBAAuB,CAAC,EAAE,4BAA4B,GACrD,OAAO,CAAC,MAAM,CAAC,CA+DjB"}
1
+ {"version":3,"file":"component-handling.d.ts","sourceRoot":"","sources":["../../../src/src/rendering/component-handling.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,KAAK,YAAY,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAMhE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAK1F,UAAU,mBAAmB;IAC3B,WAAW,EAAE,YAAY,CAAC,YAAY,CAAC;IACvC,UAAU,EAAE,UAAU,CAAC;CACxB;AAeD,UAAU,4BAA4B;IACpC,cAAc,EAAE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,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,mEAAmE;IACnE,6BAA6B,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjE,yEAAyE;IACzE,uBAAuB,CAAC,EAAE,4BAA4B,CAAC;IACvD,yEAAyE;IACzE,sBAAsB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5C,GACA,OAAO,CAAC,mBAAmB,CAAC,CAqF9B;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,eAAe,CAAC,EAAE,MAAM,EACxB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,YAAY,CAAC,EAAE,4BAA4B,EAC3C,kBAAkB,CAAC,EAAE,MAAM,EAC3B,yBAAyB,SAAQ,EACjC,6BAA6B,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAChE,uBAAuB,CAAC,EAAE,4BAA4B,EACtD,sBAAsB,CAAC,EAAE,SAAS,MAAM,EAAE,GACzC,OAAO,CAAC,MAAM,CAAC,CAiEjB"}
@@ -10,6 +10,7 @@ import { registerLRUCache } from "../cache/index.js";
10
10
  import { getDependencyPinningCacheKey } from "../transforms/esm/package-registry.js";
11
11
  import { Singleflight } from "../utils/singleflight.js";
12
12
  import { DEFAULT_REACT_VERSION } from "../transforms/import-rewriter/url-builder.js";
13
+ import { buildServerExternalPackagesIdentity } from "../config/server-external-packages.js";
13
14
  /**
14
15
  * Cache for transformed component hydration bundles.
15
16
  * Keys are content-addressed and scoped to transform-affecting inputs.
@@ -28,14 +29,18 @@ async function getBundleComponentForClientDeps() {
28
29
  }
29
30
  // Register cache for monitoring
30
31
  registerLRUCache("component-hydration-cache", componentHydrationCache);
31
- async function buildComponentHydrationCacheHash(source, moduleServerUrl, reactVersion) {
32
+ async function buildComponentHydrationCacheHash(source, moduleServerUrl, reactVersion, serverExternalPackages) {
32
33
  const sourceHash = await computeHash(source);
33
34
  const effectiveReactVersion = reactVersion ?? DEFAULT_REACT_VERSION;
34
- const cacheIdentity = JSON.stringify([
35
+ const legacyCacheIdentity = [
35
36
  sourceHash,
36
37
  moduleServerUrl ?? null,
37
38
  effectiveReactVersion,
38
- ]);
39
+ ];
40
+ const serverExternalPackagesIdentity = buildServerExternalPackagesIdentity(serverExternalPackages);
41
+ const cacheIdentity = JSON.stringify(serverExternalPackagesIdentity
42
+ ? [...legacyCacheIdentity, serverExternalPackagesIdentity]
43
+ : legacyCacheIdentity);
39
44
  return (await computeHash(cacheIdentity)).slice(0, 16);
40
45
  }
41
46
  /**
@@ -51,7 +56,7 @@ export async function handleComponentPage(pageInfo, slug, projectDir, _component
51
56
  const dependencyPinningCacheKey = options?.dependencyPinningCacheKey ??
52
57
  await getDependencyPinningCacheKey(projectDir);
53
58
  const clientModuleCode = options?.cachedClientModule ??
54
- (await bundleComponentForClient(fileContent, pageInfo.entity.path, projectDir, adapter, options?.moduleServerUrl, options?.projectId, options?.reactVersion, undefined, options?.moduleServerOrigin, dependencyPinningCacheKey, options?.dependencyPinningDependencies, options?.dependencyPinningSource));
59
+ (await bundleComponentForClient(fileContent, pageInfo.entity.path, projectDir, adapter, options?.moduleServerUrl, options?.projectId, options?.reactVersion, undefined, options?.moduleServerOrigin, dependencyPinningCacheKey, options?.dependencyPinningDependencies, options?.dependencyPinningSource, options?.serverExternalPackages));
55
60
  const { loadComponentFromSource } = await import("../modules/react-loader/index.js");
56
61
  const dev = options?.mode === "development";
57
62
  const PageComponent = await loadComponentFromSource(fileContent, pageInfo.entity.path, projectDir, adapter, {
@@ -62,6 +67,7 @@ export async function handleComponentPage(pageInfo, slug, projectDir, _component
62
67
  ssr: true,
63
68
  contentSourceId: options?.contentSourceId,
64
69
  reactVersion: options?.reactVersion,
70
+ serverExternalPackages: options?.serverExternalPackages,
65
71
  dependencyPinningCacheKey,
66
72
  dependencyPinningDependencies: options?.dependencyPinningDependencies,
67
73
  dependencyPinningSource: options?.dependencyPinningSource,
@@ -95,9 +101,9 @@ export async function handleComponentPage(pageInfo, slug, projectDir, _component
95
101
  });
96
102
  }
97
103
  }
98
- export async function bundleComponentForClient(source, filePath, projectDir, adapter, moduleServerUrl, projectId, reactVersion, injectedDeps, moduleServerOrigin, dependencyPinningCacheKey = "off", dependencyPinningDependencies, dependencyPinningSource) {
104
+ export async function bundleComponentForClient(source, filePath, projectDir, adapter, moduleServerUrl, projectId, reactVersion, injectedDeps, moduleServerOrigin, dependencyPinningCacheKey = "off", dependencyPinningDependencies, dependencyPinningSource, serverExternalPackages) {
99
105
  try {
100
- const cacheHash = await buildComponentHydrationCacheHash(source, moduleServerUrl, reactVersion);
106
+ const cacheHash = await buildComponentHydrationCacheHash(source, moduleServerUrl, reactVersion, serverExternalPackages);
101
107
  const cacheKey = buildComponentCacheKey(projectId ?? projectDir, filePath, cacheHash, dependencyPinningCacheKey, moduleServerOrigin);
102
108
  const cached = componentHydrationCache.get(cacheKey);
103
109
  if (cached)
@@ -114,6 +120,7 @@ export async function bundleComponentForClient(source, filePath, projectDir, ada
114
120
  moduleServerUrl,
115
121
  moduleServerOrigin,
116
122
  reactVersion,
123
+ serverExternalPackages,
117
124
  dependencyPinningCacheKey,
118
125
  dependencyPinningDependencies,
119
126
  dependencyPinningSource,