veryfront 0.1.149 → 0.1.151

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 (529) hide show
  1. package/esm/cli/commands/dev/command.js +3 -3
  2. package/esm/cli/commands/workflow/command-help.js +1 -1
  3. package/esm/cli/commands/workflow/command.js +2 -2
  4. package/esm/cli/shared/config.d.ts.map +1 -1
  5. package/esm/cli/shared/config.js +1 -3
  6. package/esm/deno.d.ts +5 -11
  7. package/esm/deno.js +16 -16
  8. package/esm/src/agent/ag-ui-handler.d.ts.map +1 -1
  9. package/esm/src/agent/ag-ui-handler.js +6 -0
  10. package/esm/src/agent/chat-handler.js +1 -1
  11. package/esm/src/agent/composition/composition.d.ts +1 -1
  12. package/esm/src/agent/composition/composition.d.ts.map +1 -1
  13. package/esm/src/agent/composition/composition.js +2 -2
  14. package/esm/src/agent/{ai-defaults.d.ts → defaults.d.ts} +1 -1
  15. package/esm/src/agent/defaults.d.ts.map +1 -0
  16. package/esm/src/agent/factory.js +1 -1
  17. package/esm/src/agent/react/index.d.ts +1 -1
  18. package/esm/src/agent/react/index.d.ts.map +1 -1
  19. package/esm/src/agent/react/use-chat/browser-inference/browser-engine.d.ts +5 -6
  20. package/esm/src/agent/react/use-chat/browser-inference/browser-engine.d.ts.map +1 -1
  21. package/esm/src/agent/react/use-chat/browser-inference/browser-engine.js +1 -1
  22. package/esm/src/agent/react/use-chat/index.d.ts +2 -1
  23. package/esm/src/agent/react/use-chat/index.d.ts.map +1 -1
  24. package/esm/src/agent/react/use-chat/stream-protocol.d.ts +2 -0
  25. package/esm/src/agent/react/use-chat/stream-protocol.d.ts.map +1 -0
  26. package/esm/src/agent/react/use-chat/stream-protocol.js +1 -0
  27. package/esm/src/agent/react/use-chat/streaming/parts-builder.d.ts +2 -2
  28. package/esm/src/agent/react/use-chat/streaming/parts-builder.d.ts.map +1 -1
  29. package/esm/src/agent/react/use-chat/streaming/types.d.ts +4 -4
  30. package/esm/src/agent/react/use-chat/streaming/types.d.ts.map +1 -1
  31. package/esm/src/agent/react/use-chat/types.d.ts +7 -55
  32. package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
  33. package/esm/src/agent/react/use-chat/use-chat.d.ts +4 -4
  34. package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
  35. package/esm/src/agent/react/use-chat/use-chat.js +2 -2
  36. package/esm/src/agent/react/use-chat/utils.d.ts +2 -2
  37. package/esm/src/agent/react/use-chat/utils.d.ts.map +1 -1
  38. package/esm/src/agent/runtime/{ai-stream-handler.d.ts → chat-stream-handler.d.ts} +13 -13
  39. package/esm/src/agent/runtime/chat-stream-handler.d.ts.map +1 -0
  40. package/esm/src/agent/runtime/{ai-stream-handler.js → chat-stream-handler.js} +91 -89
  41. package/esm/src/agent/runtime/constants.js +1 -1
  42. package/esm/src/agent/runtime/index.d.ts +7 -5
  43. package/esm/src/agent/runtime/index.d.ts.map +1 -1
  44. package/esm/src/agent/runtime/index.js +67 -30
  45. package/esm/src/agent/runtime/model-message-converter.d.ts +7 -7
  46. package/esm/src/agent/runtime/model-message-converter.d.ts.map +1 -1
  47. package/esm/src/agent/runtime/model-message-converter.js +8 -6
  48. package/esm/src/agent/runtime/model-runtime-types.d.ts +44 -0
  49. package/esm/src/agent/runtime/model-runtime-types.d.ts.map +1 -0
  50. package/esm/src/agent/runtime/model-runtime-types.js +8 -0
  51. package/esm/src/agent/runtime/model-tool-converter.d.ts +9 -9
  52. package/esm/src/agent/runtime/model-tool-converter.d.ts.map +1 -1
  53. package/esm/src/agent/runtime/model-tool-converter.js +10 -22
  54. package/esm/src/agent/runtime/provider-native-tools.d.ts +3 -0
  55. package/esm/src/agent/runtime/provider-native-tools.d.ts.map +1 -0
  56. package/esm/src/agent/runtime/provider-native-tools.js +56 -0
  57. package/esm/src/agent/runtime/repair-tool-call.d.ts +2 -2
  58. package/esm/src/agent/runtime/repair-tool-call.d.ts.map +1 -1
  59. package/esm/src/agent/runtime/repair-tool-call.js +3 -3
  60. package/esm/src/agent/runtime/runtime-tool-builder.d.ts +48 -0
  61. package/esm/src/agent/runtime/runtime-tool-builder.d.ts.map +1 -0
  62. package/esm/src/agent/runtime/runtime-tool-builder.js +28 -0
  63. package/esm/src/agent/runtime/runtime-tool-errors.d.ts +16 -0
  64. package/esm/src/agent/runtime/runtime-tool-errors.d.ts.map +1 -0
  65. package/esm/src/agent/runtime/runtime-tool-errors.js +28 -0
  66. package/esm/src/agent/runtime/runtime-tool-types.d.ts +104 -0
  67. package/esm/src/agent/runtime/runtime-tool-types.d.ts.map +1 -0
  68. package/esm/src/agent/runtime/runtime-tool-types.js +7 -0
  69. package/esm/src/chat/index.d.ts +9 -9
  70. package/esm/src/chat/index.d.ts.map +1 -1
  71. package/esm/src/chat/index.js +7 -7
  72. package/esm/src/chat/protocol.d.ts +156 -0
  73. package/esm/src/chat/protocol.d.ts.map +1 -0
  74. package/esm/src/chat/protocol.js +7 -0
  75. package/esm/src/discovery/import-rewriter.d.ts.map +1 -1
  76. package/esm/src/discovery/import-rewriter.js +1 -14
  77. package/esm/src/discovery/index.d.ts +1 -1
  78. package/esm/src/discovery/index.d.ts.map +1 -1
  79. package/esm/src/discovery/index.js +2 -2
  80. package/esm/src/discovery/provider-config-validator.d.ts +14 -0
  81. package/esm/src/discovery/provider-config-validator.d.ts.map +1 -0
  82. package/esm/src/discovery/{config-validator.js → provider-config-validator.js} +4 -4
  83. package/esm/src/discovery/transpiler.d.ts.map +1 -1
  84. package/esm/src/discovery/transpiler.js +0 -3
  85. package/esm/src/embedding/embedding.d.ts.map +1 -1
  86. package/esm/src/embedding/embedding.js +1 -1
  87. package/esm/src/embedding/index.d.ts +3 -3
  88. package/esm/src/embedding/index.d.ts.map +1 -1
  89. package/esm/src/embedding/index.js +3 -3
  90. package/esm/src/embedding/rag-store.d.ts.map +1 -1
  91. package/esm/src/embedding/rag-store.js +1 -1
  92. package/esm/src/embedding/resolve.d.ts +5 -7
  93. package/esm/src/embedding/resolve.d.ts.map +1 -1
  94. package/esm/src/embedding/resolve.js +6 -9
  95. package/esm/src/embedding/vector-store.d.ts.map +1 -1
  96. package/esm/src/embedding/vector-store.js +1 -1
  97. package/esm/src/embedding/veryfront-cloud/provider.d.ts +2 -2
  98. package/esm/src/embedding/veryfront-cloud/provider.d.ts.map +1 -1
  99. package/esm/src/embedding/veryfront-cloud/provider.js +5 -6
  100. package/esm/src/internal-agents/ag-ui-sse.d.ts.map +1 -1
  101. package/esm/src/internal-agents/ag-ui-sse.js +12 -0
  102. package/esm/src/markdown/index.d.ts +1 -1
  103. package/esm/src/markdown/index.d.ts.map +1 -1
  104. package/esm/src/markdown/index.js +1 -1
  105. package/esm/src/modules/import-map/default-import-map.js +2 -2
  106. package/esm/src/prompt/registry.d.ts +1 -1
  107. package/esm/src/prompt/registry.d.ts.map +1 -1
  108. package/esm/src/prompt/registry.js +2 -2
  109. package/esm/src/provider/index.d.ts +7 -8
  110. package/esm/src/provider/index.d.ts.map +1 -1
  111. package/esm/src/provider/index.js +6 -8
  112. package/esm/src/provider/local/embedding-runtime-adapter.d.ts +19 -0
  113. package/esm/src/provider/local/embedding-runtime-adapter.d.ts.map +1 -0
  114. package/esm/src/provider/local/{local-embedding-adapter.js → embedding-runtime-adapter.js} +5 -5
  115. package/esm/src/provider/local/model-runtime-adapter.d.ts +18 -0
  116. package/esm/src/provider/local/model-runtime-adapter.d.ts.map +1 -0
  117. package/esm/src/provider/local/{ai-sdk-adapter.js → model-runtime-adapter.js} +10 -12
  118. package/esm/src/provider/model-registry.d.ts +11 -12
  119. package/esm/src/provider/model-registry.d.ts.map +1 -1
  120. package/esm/src/provider/model-registry.js +17 -20
  121. package/esm/src/provider/runtime-inspection.d.ts +6 -0
  122. package/esm/src/provider/runtime-inspection.d.ts.map +1 -0
  123. package/esm/src/provider/runtime-inspection.js +19 -0
  124. package/esm/src/provider/runtime-loader.d.ts +27 -0
  125. package/esm/src/provider/runtime-loader.d.ts.map +1 -0
  126. package/esm/src/provider/runtime-loader.js +1307 -0
  127. package/esm/src/provider/types.d.ts +35 -0
  128. package/esm/src/provider/types.d.ts.map +1 -0
  129. package/esm/src/provider/types.js +1 -0
  130. package/esm/src/provider/veryfront-cloud/provider.d.ts +2 -2
  131. package/esm/src/provider/veryfront-cloud/provider.d.ts.map +1 -1
  132. package/esm/src/provider/veryfront-cloud/provider.js +7 -9
  133. package/esm/src/provider/veryfront-cloud/shared.d.ts +1 -1
  134. package/esm/src/provider/veryfront-cloud/shared.js +1 -1
  135. package/esm/src/react/components/chat/agent-card.d.ts.map +1 -0
  136. package/esm/src/react/components/chat/chat/components/animations.d.ts.map +1 -0
  137. package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts.map +1 -0
  138. package/esm/src/react/components/chat/chat/components/branch-picker.d.ts.map +1 -0
  139. package/esm/src/react/components/chat/chat/components/code-block.d.ts.map +1 -0
  140. package/esm/src/react/components/chat/chat/components/drop-zone.d.ts.map +1 -0
  141. package/esm/src/react/components/chat/chat/components/empty-state.d.ts.map +1 -0
  142. package/esm/src/react/components/chat/chat/components/inference-badge.d.ts.map +1 -0
  143. package/esm/src/react/components/{ai → chat}/chat/components/inference-badge.js +1 -1
  144. package/esm/src/react/components/chat/chat/components/inline-citation.d.ts.map +1 -0
  145. package/esm/src/react/components/chat/chat/components/message-actions.d.ts.map +1 -0
  146. package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts.map +1 -0
  147. package/esm/src/react/components/chat/chat/components/message-feedback.d.ts.map +1 -0
  148. package/esm/src/react/components/chat/chat/components/quick-actions.d.ts.map +1 -0
  149. package/esm/src/react/components/chat/chat/components/reasoning.d.ts.map +1 -0
  150. package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -0
  151. package/esm/src/react/components/{ai → chat}/chat/components/skill-badge.d.ts +3 -3
  152. package/esm/src/react/components/chat/chat/components/skill-badge.d.ts.map +1 -0
  153. package/esm/src/react/components/{ai → chat}/chat/components/skill-badge.js +1 -1
  154. package/esm/src/react/components/chat/chat/components/sources.d.ts.map +1 -0
  155. package/esm/src/react/components/chat/chat/components/step-indicator.d.ts.map +1 -0
  156. package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts.map +1 -0
  157. package/esm/src/react/components/{ai → chat}/chat/components/tool-ui.d.ts +3 -3
  158. package/esm/src/react/components/chat/chat/components/tool-ui.d.ts.map +1 -0
  159. package/esm/src/react/components/{ai → chat}/chat/components/tool-ui.js +1 -1
  160. package/esm/src/react/components/chat/chat/components/upgrade-cta.d.ts.map +1 -0
  161. package/esm/src/react/components/chat/chat/components/uploads-panel.d.ts.map +1 -0
  162. package/esm/src/react/components/{ai → chat}/chat/composition/api.d.ts +1 -1
  163. package/esm/src/react/components/chat/chat/composition/api.d.ts.map +1 -0
  164. package/esm/src/react/components/{ai → chat}/chat/composition/api.js +1 -1
  165. package/esm/src/react/components/{ai → chat}/chat/composition/chat-composer.d.ts +3 -3
  166. package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -0
  167. package/esm/src/react/components/{ai → chat}/chat/composition/chat-composer.js +1 -1
  168. package/esm/src/react/components/{ai → chat}/chat/composition/chat-empty.d.ts +1 -1
  169. package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts.map +1 -0
  170. package/esm/src/react/components/{ai → chat}/chat/composition/chat-empty.js +1 -1
  171. package/esm/src/react/components/{ai → chat}/chat/composition/chat-if.d.ts +1 -1
  172. package/esm/src/react/components/chat/chat/composition/chat-if.d.ts.map +1 -0
  173. package/esm/src/react/components/{ai → chat}/chat/composition/chat-if.js +1 -1
  174. package/esm/src/react/components/{ai → chat}/chat/composition/chat-message-list.d.ts +5 -5
  175. package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts.map +1 -0
  176. package/esm/src/react/components/{ai → chat}/chat/composition/chat-message-list.js +2 -2
  177. package/esm/src/react/components/{ai → chat}/chat/composition/chat-root.d.ts +3 -3
  178. package/esm/src/react/components/chat/chat/composition/chat-root.d.ts.map +1 -0
  179. package/esm/src/react/components/{ai → chat}/chat/composition/chat-root.js +1 -1
  180. package/esm/src/react/components/{ai → chat}/chat/composition/error-banner.d.ts +1 -1
  181. package/esm/src/react/components/chat/chat/composition/error-banner.d.ts.map +1 -0
  182. package/esm/src/react/components/{ai → chat}/chat/composition/error-banner.js +1 -1
  183. package/esm/src/react/components/{ai → chat}/chat/composition/message.d.ts +4 -4
  184. package/esm/src/react/components/chat/chat/composition/message.d.ts.map +1 -0
  185. package/esm/src/react/components/{ai → chat}/chat/composition/message.js +1 -1
  186. package/esm/src/react/components/{ai → chat}/chat/composition/model-avatar.d.ts +1 -1
  187. package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts.map +1 -0
  188. package/esm/src/react/components/{ai → chat}/chat/composition/model-avatar.js +1 -1
  189. package/esm/src/react/components/{ai → chat}/chat/contexts/chat-context.d.ts +3 -3
  190. package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts.map +1 -0
  191. package/esm/src/react/components/{ai → chat}/chat/contexts/chat-context.js +1 -1
  192. package/esm/src/react/components/{ai → chat}/chat/contexts/composer-context.d.ts +1 -1
  193. package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts.map +1 -0
  194. package/esm/src/react/components/{ai → chat}/chat/contexts/composer-context.js +1 -1
  195. package/esm/src/react/components/{ai → chat}/chat/contexts/index.d.ts +1 -1
  196. package/esm/src/react/components/chat/chat/contexts/index.d.ts.map +1 -0
  197. package/esm/src/react/components/{ai → chat}/chat/contexts/index.js +1 -1
  198. package/esm/src/react/components/{ai → chat}/chat/contexts/message-context.d.ts +3 -3
  199. package/esm/src/react/components/chat/chat/contexts/message-context.d.ts.map +1 -0
  200. package/esm/src/react/components/{ai → chat}/chat/contexts/message-context.js +1 -1
  201. package/esm/src/react/components/{ai → chat}/chat/contexts/thread-list-context.d.ts +1 -1
  202. package/esm/src/react/components/chat/chat/contexts/thread-list-context.d.ts.map +1 -0
  203. package/esm/src/react/components/{ai → chat}/chat/contexts/thread-list-context.js +1 -1
  204. package/esm/src/react/components/{ai → chat}/chat/hooks/use-threads.d.ts +2 -2
  205. package/esm/src/react/components/chat/chat/hooks/use-threads.d.ts.map +1 -0
  206. package/esm/src/react/components/{ai → chat}/chat/index.d.ts +5 -5
  207. package/esm/src/react/components/chat/chat/index.d.ts.map +1 -0
  208. package/esm/src/react/components/{ai → chat}/chat/index.js +1 -1
  209. package/esm/src/react/components/chat/chat/utils/export.d.ts +10 -0
  210. package/esm/src/react/components/chat/chat/utils/export.d.ts.map +1 -0
  211. package/esm/src/react/components/{ai → chat}/chat/utils/export.js +1 -1
  212. package/esm/src/react/components/{ai → chat}/chat/utils/message-parts.d.ts +10 -10
  213. package/esm/src/react/components/chat/chat/utils/message-parts.d.ts.map +1 -0
  214. package/esm/src/react/components/{ai → chat}/chat/utils/message-parts.js +2 -2
  215. package/esm/src/react/components/chat/chat-with-sidebar.d.ts.map +1 -0
  216. package/esm/src/react/components/{ai → chat}/chat.d.ts +1 -1
  217. package/esm/src/react/components/chat/chat.d.ts.map +1 -0
  218. package/esm/src/react/components/{ai → chat}/chat.js +1 -1
  219. package/esm/src/react/components/chat/csp-nonce.d.ts.map +1 -0
  220. package/esm/src/react/components/{ai → chat}/error-boundary.d.ts +6 -6
  221. package/esm/src/react/components/chat/error-boundary.d.ts.map +1 -0
  222. package/esm/src/react/components/{ai → chat}/error-boundary.js +5 -5
  223. package/esm/src/react/components/{ai → chat}/icons/index.d.ts +1 -1
  224. package/esm/src/react/components/chat/icons/index.d.ts.map +1 -0
  225. package/esm/src/react/components/{ai → chat}/icons/index.js +1 -1
  226. package/esm/src/react/components/chat/markdown.d.ts.map +1 -0
  227. package/esm/src/react/components/{ai → chat}/message.d.ts +8 -8
  228. package/esm/src/react/components/chat/message.d.ts.map +1 -0
  229. package/esm/src/react/components/chat/model-selector.d.ts.map +1 -0
  230. package/esm/src/react/components/chat/theme.d.ts.map +1 -0
  231. package/esm/src/react/primitives/message-list.d.ts +2 -2
  232. package/esm/src/react/primitives/message-list.d.ts.map +1 -1
  233. package/esm/src/react/primitives/tool-primitives.d.ts +3 -3
  234. package/esm/src/react/primitives/tool-primitives.d.ts.map +1 -1
  235. package/esm/src/{ai/registry-manager.d.ts → registry/project-scoped-registry-manager.d.ts} +5 -4
  236. package/esm/src/registry/project-scoped-registry-manager.d.ts.map +1 -0
  237. package/esm/src/{ai/registry-manager.js → registry/project-scoped-registry-manager.js} +5 -4
  238. package/esm/src/{ai/registry-facade.d.ts → registry/scoped-registry-facade.d.ts} +2 -2
  239. package/esm/src/registry/scoped-registry-facade.d.ts.map +1 -0
  240. package/esm/src/rendering/script-page-handling.d.ts.map +1 -1
  241. package/esm/src/rendering/script-page-handling.js +0 -2
  242. package/esm/src/resource/registry.d.ts +1 -1
  243. package/esm/src/resource/registry.d.ts.map +1 -1
  244. package/esm/src/resource/registry.js +2 -2
  245. package/esm/src/routing/api/module-loader/loader.js +3 -19
  246. package/esm/src/runtime/runtime-bridge.d.ts +82 -0
  247. package/esm/src/runtime/runtime-bridge.d.ts.map +1 -0
  248. package/esm/src/runtime/runtime-bridge.js +367 -0
  249. package/esm/src/server/dev-server/file-watch-setup.d.ts +4 -4
  250. package/esm/src/server/dev-server/file-watch-setup.d.ts.map +1 -1
  251. package/esm/src/server/dev-server/file-watch-setup.js +14 -14
  252. package/esm/src/server/dev-server/server.d.ts +2 -2
  253. package/esm/src/server/dev-server/server.d.ts.map +1 -1
  254. package/esm/src/server/dev-server/server.js +20 -18
  255. package/esm/src/server/dev-ui/manifest.d.ts +1 -1
  256. package/esm/src/server/dev-ui/manifest.js +2 -2
  257. package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
  258. package/esm/src/server/handlers/dev/framework-candidates.generated.js +58 -61
  259. package/esm/src/server/handlers/request/api/api-handler-wrapper.js +1 -1
  260. package/esm/src/server/handlers/request/api/project-discovery.d.ts +1 -1
  261. package/esm/src/server/handlers/request/api/project-discovery.d.ts.map +1 -1
  262. package/esm/src/server/handlers/request/api/project-discovery.js +12 -10
  263. package/esm/src/server/production-server.js +2 -2
  264. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
  265. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
  266. package/esm/src/skill/registry.d.ts +1 -1
  267. package/esm/src/skill/registry.d.ts.map +1 -1
  268. package/esm/src/skill/registry.js +2 -2
  269. package/esm/src/tool/registry.d.ts +1 -1
  270. package/esm/src/tool/registry.d.ts.map +1 -1
  271. package/esm/src/tool/registry.js +2 -2
  272. package/esm/src/transforms/npm-import-rewrites.d.ts +1 -1
  273. package/esm/src/transforms/npm-import-rewrites.d.ts.map +1 -1
  274. package/esm/src/transforms/npm-import-rewrites.js +5 -13
  275. package/esm/src/utils/constants/server.d.ts +4 -4
  276. package/esm/src/utils/constants/server.d.ts.map +1 -1
  277. package/esm/src/utils/constants/server.js +4 -4
  278. package/esm/src/utils/id.js +1 -1
  279. package/esm/src/utils/version-constant.d.ts +1 -1
  280. package/esm/src/utils/version-constant.js +1 -1
  281. package/esm/src/workflow/discovery/workflow-discovery.d.ts +3 -3
  282. package/esm/src/workflow/discovery/workflow-discovery.d.ts.map +1 -1
  283. package/esm/src/workflow/discovery/workflow-discovery.js +3 -3
  284. package/esm/src/workflow/registry.d.ts +1 -1
  285. package/esm/src/workflow/registry.d.ts.map +1 -1
  286. package/esm/src/workflow/registry.js +2 -2
  287. package/package.json +4 -5
  288. package/src/cli/commands/dev/command.ts +3 -3
  289. package/src/cli/commands/workflow/command-help.ts +1 -1
  290. package/src/cli/commands/workflow/command.ts +2 -2
  291. package/src/cli/shared/config.ts +1 -3
  292. package/src/deno.js +16 -16
  293. package/src/src/agent/ag-ui-handler.ts +6 -0
  294. package/src/src/agent/chat-handler.ts +1 -1
  295. package/src/src/agent/composition/composition.ts +2 -2
  296. package/src/src/agent/factory.ts +1 -1
  297. package/src/src/agent/react/index.ts +11 -9
  298. package/src/src/agent/react/use-chat/browser-inference/browser-engine.ts +9 -10
  299. package/src/src/agent/react/use-chat/index.ts +10 -9
  300. package/src/src/agent/react/use-chat/stream-protocol.ts +1 -0
  301. package/src/src/agent/react/use-chat/streaming/handler.ts +17 -17
  302. package/src/src/agent/react/use-chat/streaming/parts-builder.ts +5 -5
  303. package/src/src/agent/react/use-chat/streaming/types.ts +4 -4
  304. package/src/src/agent/react/use-chat/types.ts +27 -73
  305. package/src/src/agent/react/use-chat/use-chat.ts +13 -13
  306. package/src/src/agent/react/use-chat/utils.ts +2 -2
  307. package/src/src/agent/runtime/{ai-stream-handler.ts → chat-stream-handler.ts} +100 -96
  308. package/src/src/agent/runtime/constants.ts +1 -1
  309. package/src/src/agent/runtime/index.ts +88 -40
  310. package/src/src/agent/runtime/model-message-converter.ts +22 -33
  311. package/src/src/agent/runtime/model-runtime-types.ts +55 -0
  312. package/src/src/agent/runtime/model-tool-converter.ts +29 -26
  313. package/src/src/agent/runtime/provider-native-tools.ts +61 -0
  314. package/src/src/agent/runtime/repair-tool-call.ts +6 -9
  315. package/src/src/agent/runtime/runtime-tool-builder.ts +82 -0
  316. package/src/src/agent/runtime/runtime-tool-errors.ts +46 -0
  317. package/src/src/agent/runtime/runtime-tool-types.ts +114 -0
  318. package/src/src/chat/index.ts +22 -20
  319. package/src/src/chat/protocol.ts +210 -0
  320. package/src/src/discovery/import-rewriter.ts +1 -14
  321. package/src/src/discovery/index.ts +2 -2
  322. package/src/src/discovery/{config-validator.ts → provider-config-validator.ts} +4 -4
  323. package/src/src/discovery/transpiler.ts +0 -3
  324. package/src/src/embedding/embedding.ts +1 -1
  325. package/src/src/embedding/index.ts +3 -3
  326. package/src/src/embedding/rag-store.ts +1 -1
  327. package/src/src/embedding/resolve.ts +15 -12
  328. package/src/src/embedding/vector-store.ts +1 -1
  329. package/src/src/embedding/veryfront-cloud/provider.ts +10 -8
  330. package/src/src/internal-agents/ag-ui-sse.ts +12 -0
  331. package/src/src/markdown/index.ts +1 -1
  332. package/src/src/modules/import-map/default-import-map.ts +2 -2
  333. package/src/src/prompt/registry.ts +2 -2
  334. package/src/src/provider/index.ts +7 -8
  335. package/src/src/provider/local/{local-embedding-adapter.ts → embedding-runtime-adapter.ts} +8 -8
  336. package/src/src/provider/local/{ai-sdk-adapter.ts → model-runtime-adapter.ts} +13 -16
  337. package/src/src/provider/model-registry.ts +31 -26
  338. package/src/src/provider/runtime-inspection.ts +25 -0
  339. package/src/src/provider/runtime-loader.ts +1854 -0
  340. package/src/src/provider/types.ts +38 -0
  341. package/src/src/provider/veryfront-cloud/provider.ts +13 -11
  342. package/src/src/provider/veryfront-cloud/shared.ts +1 -1
  343. package/src/src/react/components/{ai → chat}/chat/components/inference-badge.tsx +1 -1
  344. package/src/src/react/components/{ai → chat}/chat/components/skill-badge.tsx +3 -3
  345. package/src/src/react/components/{ai → chat}/chat/components/tool-ui.tsx +3 -3
  346. package/src/src/react/components/{ai → chat}/chat/composition/api.tsx +1 -1
  347. package/src/src/react/components/{ai → chat}/chat/composition/chat-composer.tsx +3 -3
  348. package/src/src/react/components/{ai → chat}/chat/composition/chat-empty.tsx +1 -1
  349. package/src/src/react/components/{ai → chat}/chat/composition/chat-if.tsx +1 -1
  350. package/src/src/react/components/{ai → chat}/chat/composition/chat-message-list.tsx +11 -11
  351. package/src/src/react/components/{ai → chat}/chat/composition/chat-root.tsx +3 -3
  352. package/src/src/react/components/{ai → chat}/chat/composition/error-banner.tsx +1 -1
  353. package/src/src/react/components/{ai → chat}/chat/composition/message.tsx +9 -4
  354. package/src/src/react/components/{ai → chat}/chat/composition/model-avatar.tsx +1 -1
  355. package/src/src/react/components/{ai → chat}/chat/contexts/chat-context.tsx +3 -3
  356. package/src/src/react/components/{ai → chat}/chat/contexts/composer-context.tsx +1 -1
  357. package/src/src/react/components/{ai → chat}/chat/contexts/index.ts +1 -1
  358. package/src/src/react/components/{ai → chat}/chat/contexts/message-context.tsx +3 -3
  359. package/src/src/react/components/{ai → chat}/chat/contexts/thread-list-context.tsx +1 -1
  360. package/src/src/react/components/{ai → chat}/chat/hooks/use-threads.ts +2 -2
  361. package/src/src/react/components/{ai → chat}/chat/index.tsx +7 -7
  362. package/src/src/react/components/{ai → chat}/chat/utils/export.ts +4 -4
  363. package/src/src/react/components/{ai → chat}/chat/utils/message-parts.ts +13 -13
  364. package/src/src/react/components/{ai → chat}/chat.tsx +1 -1
  365. package/src/src/react/components/{ai → chat}/error-boundary.tsx +11 -11
  366. package/src/src/react/components/{ai → chat}/icons/index.ts +1 -1
  367. package/src/src/react/components/{ai → chat}/message.tsx +11 -11
  368. package/src/src/react/primitives/message-list.tsx +2 -2
  369. package/src/src/react/primitives/tool-primitives.tsx +4 -4
  370. package/src/src/{ai/registry-manager.ts → registry/project-scoped-registry-manager.ts} +5 -4
  371. package/src/src/{ai/registry-facade.ts → registry/scoped-registry-facade.ts} +1 -1
  372. package/src/src/rendering/script-page-handling.ts +0 -2
  373. package/src/src/resource/registry.ts +2 -2
  374. package/src/src/routing/api/module-loader/loader.ts +3 -19
  375. package/src/src/runtime/runtime-bridge.ts +608 -0
  376. package/src/src/server/dev-server/file-watch-setup.ts +14 -14
  377. package/src/src/server/dev-server/server.ts +20 -18
  378. package/src/src/server/dev-ui/manifest.js +2 -2
  379. package/src/src/server/handlers/dev/framework-candidates.generated.ts +58 -61
  380. package/src/src/server/handlers/request/api/api-handler-wrapper.ts +1 -1
  381. package/src/src/server/handlers/request/api/project-discovery.ts +12 -10
  382. package/src/src/server/production-server.ts +2 -2
  383. package/src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts +2 -2
  384. package/src/src/skill/registry.ts +2 -2
  385. package/src/src/tool/registry.ts +2 -2
  386. package/src/src/transforms/npm-import-rewrites.ts +5 -13
  387. package/src/src/utils/constants/server.ts +4 -4
  388. package/src/src/utils/id.ts +1 -1
  389. package/src/src/utils/version-constant.ts +1 -1
  390. package/src/src/workflow/discovery/workflow-discovery.ts +4 -4
  391. package/src/src/workflow/registry.ts +2 -2
  392. package/esm/src/agent/ai-defaults.d.ts.map +0 -1
  393. package/esm/src/agent/runtime/ai-stream-handler.d.ts.map +0 -1
  394. package/esm/src/ai/registry-facade.d.ts.map +0 -1
  395. package/esm/src/ai/registry-manager.d.ts.map +0 -1
  396. package/esm/src/discovery/config-validator.d.ts +0 -14
  397. package/esm/src/discovery/config-validator.d.ts.map +0 -1
  398. package/esm/src/provider/local/ai-sdk-adapter.d.ts +0 -19
  399. package/esm/src/provider/local/ai-sdk-adapter.d.ts.map +0 -1
  400. package/esm/src/provider/local/local-embedding-adapter.d.ts +0 -19
  401. package/esm/src/provider/local/local-embedding-adapter.d.ts.map +0 -1
  402. package/esm/src/react/components/ai/agent-card.d.ts.map +0 -1
  403. package/esm/src/react/components/ai/chat/components/animations.d.ts.map +0 -1
  404. package/esm/src/react/components/ai/chat/components/attachment-pill.d.ts.map +0 -1
  405. package/esm/src/react/components/ai/chat/components/branch-picker.d.ts.map +0 -1
  406. package/esm/src/react/components/ai/chat/components/code-block.d.ts.map +0 -1
  407. package/esm/src/react/components/ai/chat/components/drop-zone.d.ts.map +0 -1
  408. package/esm/src/react/components/ai/chat/components/empty-state.d.ts.map +0 -1
  409. package/esm/src/react/components/ai/chat/components/inference-badge.d.ts.map +0 -1
  410. package/esm/src/react/components/ai/chat/components/inline-citation.d.ts.map +0 -1
  411. package/esm/src/react/components/ai/chat/components/message-actions.d.ts.map +0 -1
  412. package/esm/src/react/components/ai/chat/components/message-edit-form.d.ts.map +0 -1
  413. package/esm/src/react/components/ai/chat/components/message-feedback.d.ts.map +0 -1
  414. package/esm/src/react/components/ai/chat/components/quick-actions.d.ts.map +0 -1
  415. package/esm/src/react/components/ai/chat/components/reasoning.d.ts.map +0 -1
  416. package/esm/src/react/components/ai/chat/components/sidebar.d.ts.map +0 -1
  417. package/esm/src/react/components/ai/chat/components/skill-badge.d.ts.map +0 -1
  418. package/esm/src/react/components/ai/chat/components/sources.d.ts.map +0 -1
  419. package/esm/src/react/components/ai/chat/components/step-indicator.d.ts.map +0 -1
  420. package/esm/src/react/components/ai/chat/components/tab-switcher.d.ts.map +0 -1
  421. package/esm/src/react/components/ai/chat/components/tool-ui.d.ts.map +0 -1
  422. package/esm/src/react/components/ai/chat/components/upgrade-cta.d.ts.map +0 -1
  423. package/esm/src/react/components/ai/chat/components/uploads-panel.d.ts.map +0 -1
  424. package/esm/src/react/components/ai/chat/composition/api.d.ts.map +0 -1
  425. package/esm/src/react/components/ai/chat/composition/chat-composer.d.ts.map +0 -1
  426. package/esm/src/react/components/ai/chat/composition/chat-empty.d.ts.map +0 -1
  427. package/esm/src/react/components/ai/chat/composition/chat-if.d.ts.map +0 -1
  428. package/esm/src/react/components/ai/chat/composition/chat-message-list.d.ts.map +0 -1
  429. package/esm/src/react/components/ai/chat/composition/chat-root.d.ts.map +0 -1
  430. package/esm/src/react/components/ai/chat/composition/error-banner.d.ts.map +0 -1
  431. package/esm/src/react/components/ai/chat/composition/message.d.ts.map +0 -1
  432. package/esm/src/react/components/ai/chat/composition/model-avatar.d.ts.map +0 -1
  433. package/esm/src/react/components/ai/chat/contexts/chat-context.d.ts.map +0 -1
  434. package/esm/src/react/components/ai/chat/contexts/composer-context.d.ts.map +0 -1
  435. package/esm/src/react/components/ai/chat/contexts/index.d.ts.map +0 -1
  436. package/esm/src/react/components/ai/chat/contexts/message-context.d.ts.map +0 -1
  437. package/esm/src/react/components/ai/chat/contexts/thread-list-context.d.ts.map +0 -1
  438. package/esm/src/react/components/ai/chat/hooks/use-threads.d.ts.map +0 -1
  439. package/esm/src/react/components/ai/chat/index.d.ts.map +0 -1
  440. package/esm/src/react/components/ai/chat/utils/export.d.ts +0 -10
  441. package/esm/src/react/components/ai/chat/utils/export.d.ts.map +0 -1
  442. package/esm/src/react/components/ai/chat/utils/message-parts.d.ts.map +0 -1
  443. package/esm/src/react/components/ai/chat-with-sidebar.d.ts.map +0 -1
  444. package/esm/src/react/components/ai/chat.d.ts.map +0 -1
  445. package/esm/src/react/components/ai/csp-nonce.d.ts.map +0 -1
  446. package/esm/src/react/components/ai/error-boundary.d.ts.map +0 -1
  447. package/esm/src/react/components/ai/icons/index.d.ts.map +0 -1
  448. package/esm/src/react/components/ai/markdown.d.ts.map +0 -1
  449. package/esm/src/react/components/ai/message.d.ts.map +0 -1
  450. package/esm/src/react/components/ai/model-selector.d.ts.map +0 -1
  451. package/esm/src/react/components/ai/theme.d.ts.map +0 -1
  452. /package/esm/src/agent/{ai-defaults.js → defaults.js} +0 -0
  453. /package/esm/src/react/components/{ai → chat}/agent-card.d.ts +0 -0
  454. /package/esm/src/react/components/{ai → chat}/agent-card.js +0 -0
  455. /package/esm/src/react/components/{ai → chat}/chat/components/animations.d.ts +0 -0
  456. /package/esm/src/react/components/{ai → chat}/chat/components/animations.js +0 -0
  457. /package/esm/src/react/components/{ai → chat}/chat/components/attachment-pill.d.ts +0 -0
  458. /package/esm/src/react/components/{ai → chat}/chat/components/attachment-pill.js +0 -0
  459. /package/esm/src/react/components/{ai → chat}/chat/components/branch-picker.d.ts +0 -0
  460. /package/esm/src/react/components/{ai → chat}/chat/components/branch-picker.js +0 -0
  461. /package/esm/src/react/components/{ai → chat}/chat/components/code-block.d.ts +0 -0
  462. /package/esm/src/react/components/{ai → chat}/chat/components/code-block.js +0 -0
  463. /package/esm/src/react/components/{ai → chat}/chat/components/drop-zone.d.ts +0 -0
  464. /package/esm/src/react/components/{ai → chat}/chat/components/drop-zone.js +0 -0
  465. /package/esm/src/react/components/{ai → chat}/chat/components/empty-state.d.ts +0 -0
  466. /package/esm/src/react/components/{ai → chat}/chat/components/empty-state.js +0 -0
  467. /package/esm/src/react/components/{ai → chat}/chat/components/inference-badge.d.ts +0 -0
  468. /package/esm/src/react/components/{ai → chat}/chat/components/inline-citation.d.ts +0 -0
  469. /package/esm/src/react/components/{ai → chat}/chat/components/inline-citation.js +0 -0
  470. /package/esm/src/react/components/{ai → chat}/chat/components/message-actions.d.ts +0 -0
  471. /package/esm/src/react/components/{ai → chat}/chat/components/message-actions.js +0 -0
  472. /package/esm/src/react/components/{ai → chat}/chat/components/message-edit-form.d.ts +0 -0
  473. /package/esm/src/react/components/{ai → chat}/chat/components/message-edit-form.js +0 -0
  474. /package/esm/src/react/components/{ai → chat}/chat/components/message-feedback.d.ts +0 -0
  475. /package/esm/src/react/components/{ai → chat}/chat/components/message-feedback.js +0 -0
  476. /package/esm/src/react/components/{ai → chat}/chat/components/quick-actions.d.ts +0 -0
  477. /package/esm/src/react/components/{ai → chat}/chat/components/quick-actions.js +0 -0
  478. /package/esm/src/react/components/{ai → chat}/chat/components/reasoning.d.ts +0 -0
  479. /package/esm/src/react/components/{ai → chat}/chat/components/reasoning.js +0 -0
  480. /package/esm/src/react/components/{ai → chat}/chat/components/sidebar.d.ts +0 -0
  481. /package/esm/src/react/components/{ai → chat}/chat/components/sidebar.js +0 -0
  482. /package/esm/src/react/components/{ai → chat}/chat/components/sources.d.ts +0 -0
  483. /package/esm/src/react/components/{ai → chat}/chat/components/sources.js +0 -0
  484. /package/esm/src/react/components/{ai → chat}/chat/components/step-indicator.d.ts +0 -0
  485. /package/esm/src/react/components/{ai → chat}/chat/components/step-indicator.js +0 -0
  486. /package/esm/src/react/components/{ai → chat}/chat/components/tab-switcher.d.ts +0 -0
  487. /package/esm/src/react/components/{ai → chat}/chat/components/tab-switcher.js +0 -0
  488. /package/esm/src/react/components/{ai → chat}/chat/components/upgrade-cta.d.ts +0 -0
  489. /package/esm/src/react/components/{ai → chat}/chat/components/upgrade-cta.js +0 -0
  490. /package/esm/src/react/components/{ai → chat}/chat/components/uploads-panel.d.ts +0 -0
  491. /package/esm/src/react/components/{ai → chat}/chat/components/uploads-panel.js +0 -0
  492. /package/esm/src/react/components/{ai → chat}/chat/hooks/use-threads.js +0 -0
  493. /package/esm/src/react/components/{ai → chat}/chat-with-sidebar.d.ts +0 -0
  494. /package/esm/src/react/components/{ai → chat}/chat-with-sidebar.js +0 -0
  495. /package/esm/src/react/components/{ai → chat}/csp-nonce.d.ts +0 -0
  496. /package/esm/src/react/components/{ai → chat}/csp-nonce.js +0 -0
  497. /package/esm/src/react/components/{ai → chat}/markdown.d.ts +0 -0
  498. /package/esm/src/react/components/{ai → chat}/markdown.js +0 -0
  499. /package/esm/src/react/components/{ai → chat}/message.js +0 -0
  500. /package/esm/src/react/components/{ai → chat}/model-selector.d.ts +0 -0
  501. /package/esm/src/react/components/{ai → chat}/model-selector.js +0 -0
  502. /package/esm/src/react/components/{ai → chat}/theme.d.ts +0 -0
  503. /package/esm/src/react/components/{ai → chat}/theme.js +0 -0
  504. /package/esm/src/{ai/registry-facade.js → registry/scoped-registry-facade.js} +0 -0
  505. /package/src/src/agent/{ai-defaults.ts → defaults.ts} +0 -0
  506. /package/src/src/react/components/{ai → chat}/agent-card.tsx +0 -0
  507. /package/src/src/react/components/{ai → chat}/chat/components/animations.tsx +0 -0
  508. /package/src/src/react/components/{ai → chat}/chat/components/attachment-pill.tsx +0 -0
  509. /package/src/src/react/components/{ai → chat}/chat/components/branch-picker.tsx +0 -0
  510. /package/src/src/react/components/{ai → chat}/chat/components/code-block.tsx +0 -0
  511. /package/src/src/react/components/{ai → chat}/chat/components/drop-zone.tsx +0 -0
  512. /package/src/src/react/components/{ai → chat}/chat/components/empty-state.tsx +0 -0
  513. /package/src/src/react/components/{ai → chat}/chat/components/inline-citation.tsx +0 -0
  514. /package/src/src/react/components/{ai → chat}/chat/components/message-actions.tsx +0 -0
  515. /package/src/src/react/components/{ai → chat}/chat/components/message-edit-form.tsx +0 -0
  516. /package/src/src/react/components/{ai → chat}/chat/components/message-feedback.tsx +0 -0
  517. /package/src/src/react/components/{ai → chat}/chat/components/quick-actions.tsx +0 -0
  518. /package/src/src/react/components/{ai → chat}/chat/components/reasoning.tsx +0 -0
  519. /package/src/src/react/components/{ai → chat}/chat/components/sidebar.tsx +0 -0
  520. /package/src/src/react/components/{ai → chat}/chat/components/sources.tsx +0 -0
  521. /package/src/src/react/components/{ai → chat}/chat/components/step-indicator.tsx +0 -0
  522. /package/src/src/react/components/{ai → chat}/chat/components/tab-switcher.tsx +0 -0
  523. /package/src/src/react/components/{ai → chat}/chat/components/upgrade-cta.tsx +0 -0
  524. /package/src/src/react/components/{ai → chat}/chat/components/uploads-panel.tsx +0 -0
  525. /package/src/src/react/components/{ai → chat}/chat-with-sidebar.tsx +0 -0
  526. /package/src/src/react/components/{ai → chat}/csp-nonce.ts +0 -0
  527. /package/src/src/react/components/{ai → chat}/markdown.tsx +0 -0
  528. /package/src/src/react/components/{ai → chat}/model-selector.tsx +0 -0
  529. /package/src/src/react/components/{ai → chat}/theme.ts +0 -0
@@ -2,7 +2,7 @@
2
2
  * Bare specifiers that should be rewritten to their pinned npm: versions.
3
3
  * Each must have a corresponding entry in deno.json's import map.
4
4
  */
5
- declare const REWRITABLE_PACKAGES: readonly ["ai", "@ai-sdk/anthropic", "@ai-sdk/openai", "@ai-sdk/google", "@ai-sdk/mistral", "@ai-sdk/provider", "@ai-sdk/provider-utils", "zod"];
5
+ declare const REWRITABLE_PACKAGES: readonly ["zod"];
6
6
  interface RewriteRule {
7
7
  pattern: RegExp;
8
8
  replacement: string;
@@ -1 +1 @@
1
- {"version":3,"file":"npm-import-rewrites.d.ts","sourceRoot":"","sources":["../../../src/src/transforms/npm-import-rewrites.ts"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,QAAA,MAAM,mBAAmB,kJASf,CAAC;AAEX,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAQD,iBAAS,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,WAAW,EAAE,CAwBpE;AAcD;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,WAAW,EAAE,CAKlD;AAID;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAOxD;AAED,2BAA2B;AAC3B,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,CAAC;AAE3C,sDAAsD;AACtD,wBAAgB,WAAW,IAAI,IAAI,CAElC"}
1
+ {"version":3,"file":"npm-import-rewrites.d.ts","sourceRoot":"","sources":["../../../src/src/transforms/npm-import-rewrites.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,QAAA,MAAM,mBAAmB,kBAEf,CAAC;AAEX,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAQD,iBAAS,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,WAAW,EAAE,CAwBpE;AAcD;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,WAAW,EAAE,CAKlD;AAID;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAOxD;AAED,2BAA2B;AAC3B,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,CAAC;AAE3C,sDAAsD;AACtD,wBAAgB,WAAW,IAAI,IAAI,CAElC"}
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * NPM Import Rewrites for Deno
3
3
  *
4
- * Generates regex rewrite rules from deno.json's import map so that bare
5
- * specifiers in user code (e.g. `from "ai"`) are rewritten to pinned npm:
6
- * specifiers (e.g. `from "npm:ai@6.0.33"`).
4
+ * Generates regex rewrite rules from deno.json's import map for the small set
5
+ * of framework-managed bare specifiers that still need pinning in Deno.
7
6
  *
8
7
  * Single source of truth: versions come from deno.json — no hardcoded strings.
9
8
  *
@@ -17,13 +16,6 @@ import { join } from "../platform/compat/path/index.js";
17
16
  * Each must have a corresponding entry in deno.json's import map.
18
17
  */
19
18
  const REWRITABLE_PACKAGES = [
20
- "ai",
21
- "@ai-sdk/anthropic",
22
- "@ai-sdk/openai",
23
- "@ai-sdk/google",
24
- "@ai-sdk/mistral",
25
- "@ai-sdk/provider",
26
- "@ai-sdk/provider-utils",
27
19
  "zod",
28
20
  ];
29
21
  let cachedRules;
@@ -36,14 +28,14 @@ function buildRules(importMap) {
36
28
  const mapped = importMap[pkg];
37
29
  if (!mapped)
38
30
  continue;
39
- // deno.json values look like "npm:ai@6.0.33" — use as-is
31
+ // deno.json values look like "npm:zod@4.3.6" — use as-is
40
32
  const escaped = escapeForRegex(pkg);
41
- // Static imports: from "ai"
33
+ // Static imports
42
34
  rules.push({
43
35
  pattern: new RegExp(`from\\s+["']${escaped}["']`, "g"),
44
36
  replacement: `from "${mapped}"`,
45
37
  });
46
- // Dynamic imports: import("ai")
38
+ // Dynamic imports
47
39
  rules.push({
48
40
  pattern: new RegExp(`import\\s*\\(\\s*["']${escaped}["']\\s*\\)`, "g"),
49
41
  replacement: `import("${mapped}")`,
@@ -23,7 +23,7 @@ export declare const INTERNAL_PATH_PREFIXES: {
23
23
  readonly PAGES: "/_veryfront/pages/";
24
24
  /** Data JSON endpoints */
25
25
  readonly DATA: "/_veryfront/data/";
26
- /** Library modules (AI SDK, etc.) */
26
+ /** Library modules and large vendor surfaces */
27
27
  readonly LIB: "/_veryfront/lib/";
28
28
  /** Chunk assets */
29
29
  readonly CHUNKS: "/_veryfront/chunks/";
@@ -55,9 +55,9 @@ export declare const INTERNAL_ENDPOINTS: {
55
55
  readonly RSC_DOM: "/_veryfront/rsc/dom.js";
56
56
  readonly RSC_HYDRATOR: "/_veryfront/rsc/hydrator.js";
57
57
  readonly RSC_HYDRATE_CLIENT: "/_veryfront/rsc/hydrate-client.js";
58
- readonly LIB_AI_REACT: "/_veryfront/lib/ai/react.js";
59
- readonly LIB_AI_COMPONENTS: "/_veryfront/lib/ai/components.js";
60
- readonly LIB_AI_PRIMITIVES: "/_veryfront/lib/ai/primitives.js";
58
+ readonly LIB_CHAT_REACT: "/_veryfront/lib/chat/react.js";
59
+ readonly LIB_CHAT_COMPONENTS: "/_veryfront/lib/chat/components.js";
60
+ readonly LIB_CHAT_PRIMITIVES: "/_veryfront/lib/chat/primitives.js";
61
61
  };
62
62
  /**
63
63
  * Build output directory paths (relative)
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,sDAAsD;AACtD,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,sBAAsB;IACjC,wCAAwC;;IAExC,0DAA0D;;IAE1D,4BAA4B;;IAE5B,6BAA6B;;IAE7B,0BAA0B;;IAE1B,qCAAqC;;IAErC,mBAAmB;;IAEnB,+BAA+B;;CAEvB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAiCrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU;IACrB,kCAAkC;;IAElC,uBAAuB;;IAEvB,qBAAqB;;IAErB,uBAAuB;;CAEf,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,YAAY;IACvB,wCAAwC;;IAExC,4DAA4D;;IAE5D,yBAAyB;;IAEzB,0BAA0B;;IAE1B,gCAAgC;;CAExB,CAAC;AAEX,mCAAmC;AACnC,eAAO,MAAM,iBAAiB,oBAAqB,CAAC;AAEpD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,QAAQ,GAAE,MAAsC,GAC/C,MAAM,CAIR;AAGD,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,sDAAsD;AACtD,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,sBAAsB;IACjC,wCAAwC;;IAExC,0DAA0D;;IAE1D,4BAA4B;;IAE5B,6BAA6B;;IAE7B,0BAA0B;;IAE1B,gDAAgD;;IAEhD,mBAAmB;;IAEnB,+BAA+B;;CAEvB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAiCrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU;IACrB,kCAAkC;;IAElC,uBAAuB;;IAEvB,qBAAqB;;IAErB,uBAAuB;;CAEf,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,YAAY;IACvB,wCAAwC;;IAExC,4DAA4D;;IAE5D,yBAAyB;;IAEzB,0BAA0B;;IAE1B,gCAAgC;;CAExB,CAAC;AAEX,mCAAmC;AACnC,eAAO,MAAM,iBAAiB,oBAAqB,CAAC;AAEpD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,QAAQ,GAAE,MAAsC,GAC/C,MAAM,CAIR;AAGD,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC"}
@@ -23,7 +23,7 @@ export const INTERNAL_PATH_PREFIXES = {
23
23
  PAGES: `${INTERNAL_PREFIX}/pages/`,
24
24
  /** Data JSON endpoints */
25
25
  DATA: `${INTERNAL_PREFIX}/data/`,
26
- /** Library modules (AI SDK, etc.) */
26
+ /** Library modules and large vendor surfaces */
27
27
  LIB: `${INTERNAL_PREFIX}/lib/`,
28
28
  /** Chunk assets */
29
29
  CHUNKS: `${INTERNAL_PREFIX}/chunks/`,
@@ -60,9 +60,9 @@ export const INTERNAL_ENDPOINTS = {
60
60
  RSC_HYDRATOR: `${INTERNAL_PREFIX}/rsc/hydrator.js`,
61
61
  RSC_HYDRATE_CLIENT: `${INTERNAL_PREFIX}/rsc/hydrate-client.js`,
62
62
  // Library module endpoints
63
- LIB_AI_REACT: `${INTERNAL_PREFIX}/lib/ai/react.js`,
64
- LIB_AI_COMPONENTS: `${INTERNAL_PREFIX}/lib/ai/components.js`,
65
- LIB_AI_PRIMITIVES: `${INTERNAL_PREFIX}/lib/ai/primitives.js`,
63
+ LIB_CHAT_REACT: `${INTERNAL_PREFIX}/lib/chat/react.js`,
64
+ LIB_CHAT_COMPONENTS: `${INTERNAL_PREFIX}/lib/chat/components.js`,
65
+ LIB_CHAT_PRIMITIVES: `${INTERNAL_PREFIX}/lib/chat/primitives.js`,
66
66
  };
67
67
  /**
68
68
  * Build output directory paths (relative)
@@ -1,4 +1,4 @@
1
- /** ID generation utilities (AI SDK compatible: 16-char alphanumeric with optional prefix) */
1
+ /** ID generation utilities (16-char alphanumeric with optional prefix) */
2
2
  import * as dntShim from "../../_dnt.shims.js";
3
3
  const ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
4
4
  function randomString(length) {
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.149";
1
+ export declare const VERSION = "0.1.151";
2
2
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.149";
3
+ export const VERSION = "0.1.151";
@@ -5,8 +5,8 @@
5
5
  * Uses the same patterns as API route discovery.
6
6
  *
7
7
  * Scans:
8
- * - app/workflows/*.ts - workflow definition files
9
- * - app/workflows/**\/*.ts - nested workflow files
8
+ * - workflows/*.ts - workflow definition files
9
+ * - workflows/**\/*.ts - nested workflow files
10
10
  *
11
11
  * Workflow files should export a workflow definition:
12
12
  * ```typescript
@@ -47,7 +47,7 @@ export interface WorkflowDiscoveryOptions {
47
47
  adapter: RuntimeAdapter;
48
48
  /** Veryfront config (for import maps, etc.) */
49
49
  config?: VeryfrontConfig;
50
- /** Base directory for workflows (default: "app/workflows") */
50
+ /** Base directory for workflows (default: "workflows") */
51
51
  workflowsDir?: string;
52
52
  /** Enable debug logging */
53
53
  debug?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-discovery.d.ts","sourceRoot":"","sources":["../../../../src/src/workflow/discovery/workflow-discovery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAItD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IAEX,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IAEjB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IAEnB,8BAA8B;IAC9B,UAAU,EAAE,kBAAkB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,wBAAwB;IACxB,UAAU,EAAE,MAAM,CAAC;IAEnB,gDAAgD;IAChD,OAAO,EAAE,cAAc,CAAC;IAExB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAEhC,0CAA0C;IAC1C,MAAM,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD;AAqCD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA2FlC;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAGpC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,kBAAkB,EAAE,GAC9B,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAMjC"}
1
+ {"version":3,"file":"workflow-discovery.d.ts","sourceRoot":"","sources":["../../../../src/src/workflow/discovery/workflow-discovery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAItD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IAEX,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IAEjB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IAEnB,8BAA8B;IAC9B,UAAU,EAAE,kBAAkB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,wBAAwB;IACxB,UAAU,EAAE,MAAM,CAAC;IAEnB,gDAAgD;IAChD,OAAO,EAAE,cAAc,CAAC;IAExB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAEhC,0CAA0C;IAC1C,MAAM,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD;AAqCD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA2FlC;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAGpC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,kBAAkB,EAAE,GAC9B,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAMjC"}
@@ -5,8 +5,8 @@
5
5
  * Uses the same patterns as API route discovery.
6
6
  *
7
7
  * Scans:
8
- * - app/workflows/*.ts - workflow definition files
9
- * - app/workflows/**\/*.ts - nested workflow files
8
+ * - workflows/*.ts - workflow definition files
9
+ * - workflows/**\/*.ts - nested workflow files
10
10
  *
11
11
  * Workflow files should export a workflow definition:
12
12
  * ```typescript
@@ -62,7 +62,7 @@ function extractWorkflowDefinition(value) {
62
62
  * Discover all workflows in a project
63
63
  */
64
64
  export async function discoverWorkflows(options) {
65
- const { projectDir, adapter, config, workflowsDir = "app/workflows", debug = false, } = options;
65
+ const { projectDir, adapter, config, workflowsDir = "workflows", debug = false, } = options;
66
66
  const workflows = [];
67
67
  const errors = [];
68
68
  // For remote adapters, use relative paths
@@ -1,5 +1,5 @@
1
1
  import type { Workflow, WorkflowDefinition } from "./types.js";
2
- import { ScopedRegistryFacade } from "../ai/registry-facade.js";
2
+ import { ScopedRegistryFacade } from "../registry/scoped-registry-facade.js";
3
3
  export interface NodeInfo {
4
4
  id: string;
5
5
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/src/workflow/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAgB,MAAM,YAAY,CAAC;AAI7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,4CAA4C;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,gCAAgC;IAChC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,gEAAgE;IAChE,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;CACtB;AA0JD,QAAA,MAAM,wBAAwB,wCAAoD,CAAC;AAGnF,cAAM,qBAAqB;IACzB,OAAO,CAAC,aAAa;IAcrB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,GAAG,IAAI;IAIvD,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,GAAG,IAAI;IAI7D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAI7C,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIzD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxB,SAAS,IAAI,MAAM,EAAE;IAIrB,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAIvC,aAAa,IAAI,gBAAgB,EAAE;IAInC,QAAQ,IAAI;QACV,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;KAC1B;IAqBD,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAM/B,KAAK,IAAI,IAAI;IAKb,QAAQ,IAAI,IAAI;IAKhB,gBAAgB,IAAI,UAAU,CAAC,OAAO,wBAAwB,CAAC,QAAQ,CAAC;CAGzE;AAED,eAAO,MAAM,gBAAgB,uBAA8B,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,GAAG,IAAI,CAE9E;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAEpE;AAED,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAE5C"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/src/workflow/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAgB,MAAM,YAAY,CAAC;AAG7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAG7E,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,4CAA4C;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,gCAAgC;IAChC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,gEAAgE;IAChE,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;CACtB;AA0JD,QAAA,MAAM,wBAAwB,wCAAoD,CAAC;AAGnF,cAAM,qBAAqB;IACzB,OAAO,CAAC,aAAa;IAcrB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,GAAG,IAAI;IAIvD,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,GAAG,IAAI;IAI7D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAI7C,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIzD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxB,SAAS,IAAI,MAAM,EAAE;IAIrB,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAIvC,aAAa,IAAI,gBAAgB,EAAE;IAInC,QAAQ,IAAI;QACV,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;KAC1B;IAqBD,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAM/B,KAAK,IAAI,IAAI;IAKb,QAAQ,IAAI,IAAI;IAKhB,gBAAgB,IAAI,UAAU,CAAC,OAAO,wBAAwB,CAAC,QAAQ,CAAC;CAGzE;AAED,eAAO,MAAM,gBAAgB,uBAA8B,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,GAAG,IAAI,CAE9E;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAEpE;AAED,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAE5C"}
@@ -1,7 +1,7 @@
1
1
  import { zodToJsonSchema } from "../tool/schema/index.js";
2
2
  import { agentLogger as logger } from "../utils/index.js";
3
- import { ProjectScopedRegistryManager } from "../ai/registry-manager.js";
4
- import { ScopedRegistryFacade } from "../ai/registry-facade.js";
3
+ import { ScopedRegistryFacade } from "../registry/scoped-registry-facade.js";
4
+ import { ProjectScopedRegistryManager } from "../registry/project-scoped-registry-manager.js";
5
5
  function createProxy() {
6
6
  return new Proxy({}, {
7
7
  get: (_target, prop) => (typeof prop === "string" ? createProxy() : undefined),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.149",
3
+ "version": "0.1.151",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
@@ -43,6 +43,9 @@
43
43
  "./chat": {
44
44
  "import": "./esm/src/chat/index.js"
45
45
  },
46
+ "./chat/protocol": {
47
+ "import": "./esm/src/chat/protocol.js"
48
+ },
46
49
  "./markdown": {
47
50
  "import": "./esm/src/markdown/index.js"
48
51
  },
@@ -124,9 +127,6 @@
124
127
  }
125
128
  },
126
129
  "dependencies": {
127
- "@ai-sdk/anthropic": "3.0.63",
128
- "@ai-sdk/google": "3.0.52",
129
- "@ai-sdk/openai": "3.0.47",
130
130
  "@babel/generator": "7.29.1",
131
131
  "@babel/parser": "7.29.2",
132
132
  "@babel/traverse": "7.29.0",
@@ -143,7 +143,6 @@
143
143
  "@types/hast": "3.0.3",
144
144
  "@types/mdast": "4.0.3",
145
145
  "@types/unist": "3.0.2",
146
- "ai": "6.0.134",
147
146
  "class-variance-authority": "0.7.1",
148
147
  "clsx": "2.1.1",
149
148
  "es-module-lexer": "2.0.0",
@@ -11,7 +11,7 @@ import { runtime } from "../../../src/platform/index.js";
11
11
  import { getConfig } from "../../../src/config/index.js";
12
12
  import { getEnvironmentConfig } from "../../../src/config/index.js";
13
13
  import { startDevServer } from "../../../src/server/index.js";
14
- import { validateAIConfig } from "../../../src/discovery/index.js";
14
+ import { validateProviderConfig } from "../../../src/discovery/index.js";
15
15
  import { yellow } from "../../ui/index.js";
16
16
  import { exitProcess, registerTerminationSignals } from "../../utils/index.js";
17
17
  import { banner, brand, dim, error as errorColor, success } from "../../ui/index.js";
@@ -76,8 +76,8 @@ export function devCommand(options: DevOptions): Promise<DevCommandResult> {
76
76
  const isProxyMode = config?.fs?.veryfront?.proxyMode === true;
77
77
  const projectSlug = config?.fs?.veryfront?.projectSlug ?? env.projectSlug;
78
78
 
79
- // Validate AI config and print warnings (framework returns plain text, CLI adds colors)
80
- const aiValidation = validateAIConfig(config);
79
+ // Validate provider config and print warnings (framework returns plain text, CLI adds colors)
80
+ const aiValidation = validateProviderConfig(config);
81
81
  if (aiValidation.warnings.length > 0) {
82
82
  console.log("");
83
83
  for (const warning of aiValidation.warnings) {
@@ -3,7 +3,7 @@ import type { CommandHelp } from "../../help/types.js";
3
3
  export const workflowHelp: CommandHelp = {
4
4
  name: "workflow",
5
5
  category: "ai",
6
- description: "Run a workflow from the app/workflows directory",
6
+ description: "Run a workflow from the workflows directory",
7
7
  usage: "veryfront workflow run <id> [options]",
8
8
  options: [
9
9
  {
@@ -105,7 +105,7 @@ export async function workflowCommand(options: WorkflowOptions): Promise<void> {
105
105
  ? `branch ${proxyContext.branchRef}`
106
106
  : proxyContext
107
107
  ? "main"
108
- : `${dntShim.Deno.cwd()}/app/workflows/...`;
108
+ : `${dntShim.Deno.cwd()}/workflows/...`;
109
109
 
110
110
  cliLogger.info(`Discovering workflows in ${sourceLabel}`);
111
111
 
@@ -131,7 +131,7 @@ export async function workflowCommand(options: WorkflowOptions): Promise<void> {
131
131
  cliLogger.info(` - ${candidate.id}`);
132
132
  }
133
133
  } else {
134
- cliLogger.info("No workflows found. Create a workflow file in app/workflows/.");
134
+ cliLogger.info("No workflows found. Create a workflow file in workflows/.");
135
135
  }
136
136
  exitProcess(1);
137
137
  return;
@@ -9,9 +9,7 @@ import * as dntShim from "../../_dnt.shims.js";
9
9
 
10
10
  import { z } from "zod";
11
11
  import { join } from "../../src/platform/compat/path/index.js";
12
- import { cwd } from "../../src/platform/index.js";
13
- import { createFileSystem } from "../../src/platform/index.js";
14
- import { getEnv } from "../../src/platform/compat/process.js";
12
+ import { createFileSystem, cwd, getEnv } from "../../src/platform/index.js";
15
13
  import { type EnvironmentConfig, getEnvironmentConfig } from "../../src/config/index.js";
16
14
  import { cliLogger } from "../utils/index.js";
17
15
  import { readToken } from "../auth/token-store.js";
package/src/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.149",
3
+ "version": "0.1.151",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -21,6 +21,7 @@ export default {
21
21
  "./context": "./src/react/context/index.tsx",
22
22
  "./fonts": "./src/react/fonts/index.ts",
23
23
  "./chat": "./src/chat/index.ts",
24
+ "./chat/protocol": "./src/chat/protocol.ts",
24
25
  "./markdown": "./src/markdown/index.ts",
25
26
  "./mdx": "./src/mdx/index.ts",
26
27
  "./agent": "./src/agent/index.ts",
@@ -50,6 +51,7 @@ export default {
50
51
  "veryfront/context": "./src/react/runtime/core.ts",
51
52
  "veryfront/fonts": "./src/react/fonts/index.ts",
52
53
  "veryfront/chat": "./src/chat/index.ts",
54
+ "veryfront/chat/protocol": "./src/chat/protocol.ts",
53
55
  "veryfront/markdown": "./src/markdown/index.ts",
54
56
  "veryfront/mdx": "./src/mdx/index.ts",
55
57
  "veryfront/fs": "./src/fs/index.ts",
@@ -58,8 +60,8 @@ export default {
58
60
  "veryfront/react/router": "./src/react/runtime/core.ts",
59
61
  "veryfront/react/context": "./src/react/runtime/core.ts",
60
62
  "veryfront/react/fonts": "./src/react/fonts/index.ts",
61
- "veryfront/react/components/ai": "./src/react/components/ai/index.ts",
62
- "veryfront/components/ai": "./src/react/components/ai/index.ts",
63
+ "veryfront/react/components/chat": "./src/react/components/chat/index.ts",
64
+ "veryfront/components/chat": "./src/react/components/chat/index.ts",
63
65
  "veryfront/sandbox": "./src/sandbox/index.ts",
64
66
  "veryfront/embedding": "./src/embedding/index.ts",
65
67
  "veryfront/jobs": "./src/jobs/index.ts",
@@ -109,6 +111,7 @@ export default {
109
111
  "#veryfront": "./src/index.ts",
110
112
  "#veryfront/agent": "./src/agent/index.ts",
111
113
  "#veryfront/agent/react": "./src/agent/react/index.ts",
114
+ "#veryfront/chat/protocol": "./src/chat/protocol.ts",
112
115
  "#veryfront/build": "./src/build/index.ts",
113
116
  "#veryfront/cache": "./src/cache/index.ts",
114
117
  "#cli/shared/args": "./cli/shared/args.ts",
@@ -248,15 +251,6 @@ export default {
248
251
  "unist": "npm:@types/unist@3.0.2",
249
252
  "unified": "npm:unified@11.0.5",
250
253
  "vfile": "npm:vfile@6.0.3",
251
- "ai": "npm:ai@6.0.134",
252
- "ai/react": "npm:@ai-sdk/react@3.0.136",
253
- "@ai-sdk/react": "npm:@ai-sdk/react@3.0.136",
254
- "@ai-sdk/openai": "npm:@ai-sdk/openai@3.0.47",
255
- "@ai-sdk/anthropic": "npm:@ai-sdk/anthropic@3.0.63",
256
- "@ai-sdk/google": "npm:@ai-sdk/google@3.0.52",
257
- "@ai-sdk/mistral": "npm:@ai-sdk/mistral@3.0.14",
258
- "@ai-sdk/provider": "npm:@ai-sdk/provider@3.0.2",
259
- "@ai-sdk/provider-utils": "npm:@ai-sdk/provider-utils@4.0.5",
260
254
  "tailwindcss": "https://esm.sh/tailwindcss@4.2.2",
261
255
  "tailwindcss/plugin": "https://esm.sh/tailwindcss@4.2.2/plugin",
262
256
  "tailwindcss/defaultTheme": "https://esm.sh/tailwindcss@4.2.2/defaultTheme",
@@ -311,12 +305,12 @@ export default {
311
305
  "build:npm": "deno run -A scripts/build/generate-integrations-module.ts && deno task generate && deno run -A scripts/build/build-npm-dnt.ts",
312
306
  "release": "deno run -A scripts/release.ts",
313
307
  "test": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' --unstable-worker-options --unstable-net",
314
- "test:unit": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 '--ignore=tests,src/ai/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts')",
308
+ "test:unit": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 '--ignore=tests,src/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts')",
315
309
  "test:integration": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net",
316
310
  "test:integration:cli": "VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --unstable-worker-options --unstable-net $(find cli -name '*.integration.test.ts')",
317
311
  "test:record": "VCR=record deno test --no-check --allow-all $(find cli -name '*.integration.test.ts' -path '*/commands/*')",
318
312
  "test:coverage": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests/integration/compiled-binary-e2e.test.ts' --unstable-worker-options --unstable-net || exit 1",
319
- "test:coverage:unit": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests,src/ai/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts') || exit 1",
313
+ "test:coverage:unit": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests,src/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts') || exit 1",
320
314
  "test:coverage:integration": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net || exit 1",
321
315
  "coverage:report": "deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --lcov > coverage/lcov.info && deno run --allow-read scripts/lint/check-coverage.ts 80",
322
316
  "coverage:html": "deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --html",
@@ -424,7 +418,13 @@ export default {
424
418
  "proseWrap": "preserve"
425
419
  },
426
420
  "allowScripts": {
427
- "allow": ["npm:onnxruntime-node@1.21.0", "npm:sharp@0.33.5"],
428
- "deny": ["npm:esbuild@0.27.4", "npm:onnxruntime-node@1.20.1", "npm:protobufjs@7.5.4"]
421
+ "allow": [
422
+ "npm:sharp@0.33.5",
423
+ "npm:onnxruntime-node@1.21.0"
424
+ ],
425
+ "deny": [
426
+ "npm:esbuild@0.27.4",
427
+ "npm:protobufjs@7.5.4"
428
+ ]
429
429
  }
430
430
  };
@@ -288,6 +288,12 @@ async function createAgUiStreamResponse(
288
288
  if (!enqueueEvent(controller, "RunStarted", { runId, threadId, agentId: agent.id })) {
289
289
  return;
290
290
  }
291
+ if (!enqueueEvent(controller, "StateSnapshot", { snapshot: {} })) {
292
+ return;
293
+ }
294
+ if (!enqueueEvent(controller, "MessagesSnapshot", { messages: request.messages })) {
295
+ return;
296
+ }
291
297
 
292
298
  try {
293
299
  if (!upstreamBody) {
@@ -13,7 +13,7 @@ const MAX_TEXT_PART_LENGTH = 10_000;
13
13
  const MAX_MESSAGES_PER_REQUEST = 100;
14
14
 
15
15
  // ---------------------------------------------------------------------------
16
- // Zod schemas for validating AI SDK v5 chat UI messages
16
+ // Zod schemas for validating parts-based chat UI messages
17
17
  // ---------------------------------------------------------------------------
18
18
 
19
19
  const textPartSchema = z.object({
@@ -12,8 +12,8 @@ import * as dntShim from "../../../_dnt.shims.js";
12
12
  import type { Agent } from "../types.js";
13
13
  import type { Tool } from "../../tool/index.js";
14
14
  import { setActiveSpanAttributes, withSpan } from "../../observability/tracing/otlp-setup.js";
15
- import { ProjectScopedRegistryManager } from "../../ai/registry-manager.js";
16
- import { ScopedRegistryFacade } from "../../ai/registry-facade.js";
15
+ import { ScopedRegistryFacade } from "../../registry/scoped-registry-facade.js";
16
+ import { ProjectScopedRegistryManager } from "../../registry/project-scoped-registry-manager.js";
17
17
  import { AgentToolInputSchema } from "../schemas/index.js";
18
18
 
19
19
  export function agentAsTool(agent: Agent, description: string): Tool {
@@ -115,7 +115,7 @@ export function agent(config: AgentConfig): Agent {
115
115
  const basePrompt = typeof originalSystem === "function"
116
116
  ? await originalSystem()
117
117
  : originalSystem;
118
- if (!currentSkills.size) return basePrompt ?? "You are a helpful AI assistant.";
118
+ if (!currentSkills.size) return basePrompt ?? "You are a helpful assistant.";
119
119
  return `${basePrompt}\n\n${buildSkillManifestPrompt(currentSkills)}`;
120
120
  }
121
121
  : originalSystem;
@@ -8,18 +8,20 @@ export { useChat } from "./use-chat/index.js";
8
8
  export type {
9
9
  BranchInfo,
10
10
  BrowserInferenceStatus,
11
- DynamicToolUIPart,
11
+ ChatDynamicToolPart,
12
+ ChatFinishReason,
13
+ ChatMessage,
14
+ ChatMessagePart,
15
+ ChatReasoningPart,
16
+ ChatStepPart,
17
+ ChatStreamEvent,
18
+ ChatTextPart,
19
+ ChatToolPart,
20
+ ChatToolResultPart,
21
+ ChatToolState,
12
22
  InferenceMode,
13
23
  OnToolCallArg,
14
- ReasoningUIPart,
15
- StepUIPart,
16
- TextUIPart,
17
24
  ToolOutput,
18
- ToolResultUIPart,
19
- ToolState,
20
- ToolUIPart,
21
- UIMessage,
22
- UIMessagePart,
23
25
  UseChatOptions,
24
26
  UseChatResult,
25
27
  } from "./use-chat/index.js";
@@ -1,12 +1,11 @@
1
1
  /**
2
2
  * Bridge between BrowserInferenceClient (Worker) and useChat's streaming interface.
3
3
  *
4
- * Converts UIMessage[] to simple {role, content}[] for the Worker,
4
+ * Converts ChatMessage[] to simple {role, content}[] for the Worker,
5
5
  * and synthesizes the same streaming updates that handleStreamingResponse produces.
6
6
  */
7
7
 
8
- import type { BrowserInferenceStatus } from "../types.js";
9
- import type { UIMessage, UIMessagePart } from "../types.js";
8
+ import type { BrowserInferenceStatus, ChatMessage, ChatMessagePart } from "../types.js";
10
9
  import { generateClientId } from "../utils.js";
11
10
  import { BrowserInferenceClient } from "./worker-client.js";
12
11
 
@@ -16,15 +15,15 @@ const DEFAULT_BROWSER_MAX_TOKENS = 512;
16
15
  const DEFAULT_BROWSER_TEMPERATURE = 0.7;
17
16
 
18
17
  interface BrowserInferenceCallbacks {
19
- onUpdate: (parts: UIMessagePart[], messageId: string) => void;
20
- onMessage: (message: UIMessage) => void;
18
+ onUpdate: (parts: ChatMessagePart[], messageId: string) => void;
19
+ onMessage: (message: ChatMessage) => void;
21
20
  onStatusChange: (status: BrowserInferenceStatus) => void;
22
21
  onDownloadProgress?: (progress: number) => void;
23
22
  onError: (error: Error) => void;
24
23
  }
25
24
 
26
25
  function extractTextFromMessages(
27
- messages: UIMessage[],
26
+ messages: ChatMessage[],
28
27
  ): Array<{ role: string; content: string }> {
29
28
  return messages
30
29
  .filter((m) => m.role === "user" || m.role === "assistant")
@@ -37,7 +36,7 @@ function extractTextFromMessages(
37
36
  }
38
37
 
39
38
  export function runBrowserInference(
40
- messages: UIMessage[],
39
+ messages: ChatMessage[],
41
40
  systemPrompt: string,
42
41
  callbacks: BrowserInferenceCallbacks,
43
42
  ): void {
@@ -60,16 +59,16 @@ export function runBrowserInference(
60
59
  onDownloadProgress: (progress) => callbacks.onDownloadProgress?.(progress),
61
60
  onToken: (token) => {
62
61
  accumulated = token; // transformers.js callback_function sends full text each time
63
- const parts: UIMessagePart[] = [
62
+ const parts: ChatMessagePart[] = [
64
63
  { type: "text", text: accumulated, state: "streaming" },
65
64
  ];
66
65
  callbacks.onUpdate(parts, messageId);
67
66
  },
68
67
  onDone: (text) => {
69
- const finalParts: UIMessagePart[] = [
68
+ const finalParts: ChatMessagePart[] = [
70
69
  { type: "text", text: text || accumulated, state: "done" },
71
70
  ];
72
- const assistantMessage: UIMessage = {
71
+ const assistantMessage: ChatMessage = {
73
72
  id: messageId,
74
73
  role: "assistant",
75
74
  parts: finalParts,
@@ -9,18 +9,19 @@ export { useChat } from "./use-chat.js";
9
9
  export type {
10
10
  BranchInfo,
11
11
  BrowserInferenceStatus,
12
- DynamicToolUIPart,
12
+ ChatDynamicToolPart,
13
+ ChatMessage,
14
+ ChatMessagePart,
15
+ ChatReasoningPart,
16
+ ChatStepPart,
17
+ ChatTextPart,
18
+ ChatToolPart,
19
+ ChatToolResultPart,
20
+ ChatToolState,
13
21
  InferenceMode,
14
22
  OnToolCallArg,
15
- ReasoningUIPart,
16
- StepUIPart,
17
- TextUIPart,
18
23
  ToolOutput,
19
- ToolResultUIPart,
20
- ToolState,
21
- ToolUIPart,
22
- UIMessage,
23
- UIMessagePart,
24
24
  UseChatOptions,
25
25
  UseChatResult,
26
26
  } from "./types.js";
27
+ export type { ChatFinishReason, ChatStreamEvent } from "./stream-protocol.js";
@@ -0,0 +1 @@
1
+ export type { ChatFinishReason, ChatStreamEvent } from "../../../chat/protocol.js";