@agent-native/core 0.110.3 → 0.111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/core/CHANGELOG.md +11 -0
  3. package/corpus/core/docs/content/components.mdx +7 -0
  4. package/corpus/core/docs/content/locales/ar-SA/components.mdx +4 -2
  5. package/corpus/core/docs/content/locales/de-DE/components.mdx +4 -2
  6. package/corpus/core/docs/content/locales/es-ES/components.mdx +4 -2
  7. package/corpus/core/docs/content/locales/fr-FR/components.mdx +4 -2
  8. package/corpus/core/docs/content/locales/hi-IN/components.mdx +3 -2
  9. package/corpus/core/docs/content/locales/ja-JP/components.mdx +3 -2
  10. package/corpus/core/docs/content/locales/ko-KR/components.mdx +3 -2
  11. package/corpus/core/docs/content/locales/pt-BR/components.mdx +4 -2
  12. package/corpus/core/docs/content/locales/zh-CN/components.mdx +3 -2
  13. package/corpus/core/docs/content/locales/zh-TW/components.mdx +3 -2
  14. package/corpus/core/docs/content/toolkit-agent-ux.mdx +8 -3
  15. package/corpus/core/migration-manifest.json +133 -266
  16. package/corpus/core/package.json +32 -33
  17. package/corpus/core/scripts/check-dist-imports.mjs +25 -1
  18. package/corpus/core/scripts/finalize-build.mjs +59 -2
  19. package/corpus/core/src/client/AgentAskPopover.tsx +1 -1
  20. package/corpus/core/src/client/AgentPanel.tsx +1 -1
  21. package/corpus/core/src/client/AssistantChat.tsx +12 -14
  22. package/corpus/core/src/client/NewWorkspaceAppFlow.tsx +1 -1
  23. package/corpus/core/src/client/agent-chat-adapter.ts +1 -1
  24. package/corpus/core/src/client/blocks/RegistryBlockDataProvider.tsx +121 -0
  25. package/corpus/core/src/client/blocks/index.ts +6 -0
  26. package/corpus/core/src/client/chat/attachment-adapters.ts +4 -5
  27. package/corpus/core/src/client/chat/index.ts +0 -1
  28. package/corpus/core/src/client/chat/message-components.tsx +2 -2
  29. package/corpus/core/src/client/code-agent-chat-adapter.ts +2 -2
  30. package/corpus/core/src/client/collab/index.ts +0 -22
  31. package/corpus/core/src/client/composer/index.ts +5 -66
  32. package/corpus/core/src/client/composer/runtime-adapters.tsx +123 -0
  33. package/corpus/core/src/client/composer/use-mention-search.ts +2 -79
  34. package/corpus/core/src/client/composer/wired-components.tsx +53 -0
  35. package/corpus/core/src/client/extensions/ExtensionViewer.tsx +1 -1
  36. package/corpus/core/src/client/extensions/ExtensionsListPage.tsx +1 -1
  37. package/corpus/core/src/client/extensions/ExtensionsSidebarSection.tsx +1 -1
  38. package/corpus/core/src/client/index.ts +0 -156
  39. package/corpus/core/src/client/resources/ResourceEditor.tsx +29 -681
  40. package/corpus/core/src/client/resources/ResourcesPanel.tsx +1 -1
  41. package/corpus/core/src/client/settings/AutomationsSection.tsx +1 -1
  42. package/corpus/core/src/client/sharing/index.ts +0 -4
  43. package/corpus/core/src/client/tombstone/agent-presence-chip.ts +17 -0
  44. package/corpus/core/src/client/tombstone/editor.ts +265 -0
  45. package/corpus/core/src/client/tombstone/live-cursor-overlay.ts +21 -0
  46. package/corpus/core/src/client/tombstone/presence-bar.ts +17 -0
  47. package/corpus/core/src/client/tombstone/recent-edit-highlights.ts +17 -0
  48. package/corpus/core/src/client/tombstone/remote-selection-rings.ts +21 -0
  49. package/corpus/core/src/client/tombstone/rich-markdown-editor.ts +265 -0
  50. package/corpus/core/src/client/tombstone/ui-dialog.ts +49 -0
  51. package/corpus/core/src/client/tombstone/ui-dropdown-menu.ts +69 -0
  52. package/corpus/core/src/client/tombstone/ui-hover-card.ts +21 -0
  53. package/corpus/core/src/client/tombstone/ui-popover.ts +25 -0
  54. package/corpus/core/src/client/tombstone/ui-sheet.ts +49 -0
  55. package/corpus/core/src/client/tombstone/ui-tooltip.ts +29 -0
  56. package/corpus/core/src/client/tombstone/visual-style-controls.ts +61 -0
  57. package/corpus/core/src/client/uploads/index.ts +5 -0
  58. package/corpus/core/src/client/{rich-markdown-editor/uploadEditorImage.ts → uploads/upload-editor-image.ts} +11 -4
  59. package/corpus/core/src/package-lifecycle/tombstone.ts +16 -2
  60. package/corpus/core/src/package-lifecycle/upgrade-error.ts +23 -5
  61. package/corpus/core/src/testing.ts +1 -4
  62. package/corpus/core/src/vite/client.ts +62 -22
  63. package/corpus/templates/content/app/components/editor/VisualEditor.tsx +2 -4
  64. package/corpus/templates/content/app/components/editor/extensions/registryBlocks.ts +1 -1
  65. package/corpus/templates/content/app/components/editor/registrySlashItems.ts +53 -52
  66. package/corpus/templates/plan/app/components/editor/PlanBlockNode.tsx +2 -2
  67. package/corpus/templates/plan/app/components/editor/planSlashCommands.ts +1 -1
  68. package/corpus/templates/plan/app/components/plan/DocumentArea.tsx +1 -1
  69. package/corpus/templates/plan/app/components/plan/PlanImageNode.tsx +1 -1
  70. package/corpus/templates/plan/app/components/plan/PlanMarkdownEditor.tsx +1 -1
  71. package/dist/catalog.json +1 -0
  72. package/dist/client/AgentAskPopover.js +1 -1
  73. package/dist/client/AgentAskPopover.js.map +1 -1
  74. package/dist/client/AgentPanel.js +1 -1
  75. package/dist/client/AgentPanel.js.map +1 -1
  76. package/dist/client/AssistantChat.d.ts +2 -2
  77. package/dist/client/AssistantChat.d.ts.map +1 -1
  78. package/dist/client/AssistantChat.js +5 -6
  79. package/dist/client/AssistantChat.js.map +1 -1
  80. package/dist/client/NewWorkspaceAppFlow.js +1 -1
  81. package/dist/client/NewWorkspaceAppFlow.js.map +1 -1
  82. package/dist/client/agent-chat-adapter.d.ts.map +1 -1
  83. package/dist/client/agent-chat-adapter.js +1 -1
  84. package/dist/client/agent-chat-adapter.js.map +1 -1
  85. package/dist/client/blocks/RegistryBlockDataProvider.d.ts +7 -0
  86. package/dist/client/blocks/RegistryBlockDataProvider.d.ts.map +1 -0
  87. package/dist/client/blocks/RegistryBlockDataProvider.js +54 -0
  88. package/dist/client/blocks/RegistryBlockDataProvider.js.map +1 -0
  89. package/dist/client/blocks/index.d.ts +2 -0
  90. package/dist/client/blocks/index.d.ts.map +1 -1
  91. package/dist/client/blocks/index.js +1 -0
  92. package/dist/client/blocks/index.js.map +1 -1
  93. package/dist/client/chat/attachment-adapters.d.ts.map +1 -1
  94. package/dist/client/chat/attachment-adapters.js +1 -1
  95. package/dist/client/chat/attachment-adapters.js.map +1 -1
  96. package/dist/client/chat/index.d.ts +0 -1
  97. package/dist/client/chat/index.d.ts.map +1 -1
  98. package/dist/client/chat/index.js +0 -1
  99. package/dist/client/chat/index.js.map +1 -1
  100. package/dist/client/chat/message-components.d.ts.map +1 -1
  101. package/dist/client/chat/message-components.js +2 -2
  102. package/dist/client/chat/message-components.js.map +1 -1
  103. package/dist/client/code-agent-chat-adapter.d.ts.map +1 -1
  104. package/dist/client/code-agent-chat-adapter.js +1 -1
  105. package/dist/client/code-agent-chat-adapter.js.map +1 -1
  106. package/dist/client/collab/index.d.ts +0 -5
  107. package/dist/client/collab/index.d.ts.map +1 -1
  108. package/dist/client/collab/index.js +0 -5
  109. package/dist/client/collab/index.js.map +1 -1
  110. package/dist/client/composer/index.d.ts +3 -11
  111. package/dist/client/composer/index.d.ts.map +1 -1
  112. package/dist/client/composer/index.js +3 -10
  113. package/dist/client/composer/index.js.map +1 -1
  114. package/dist/client/composer/runtime-adapters.d.ts +5 -0
  115. package/dist/client/composer/runtime-adapters.d.ts.map +1 -0
  116. package/dist/client/composer/runtime-adapters.js +85 -0
  117. package/dist/client/composer/runtime-adapters.js.map +1 -0
  118. package/dist/client/composer/use-mention-search.d.ts +1 -2
  119. package/dist/client/composer/use-mention-search.d.ts.map +1 -1
  120. package/dist/client/composer/use-mention-search.js +2 -69
  121. package/dist/client/composer/use-mention-search.js.map +1 -1
  122. package/dist/client/composer/wired-components.d.ts +10 -0
  123. package/dist/client/composer/wired-components.d.ts.map +1 -0
  124. package/dist/client/composer/wired-components.js +20 -0
  125. package/dist/client/composer/wired-components.js.map +1 -0
  126. package/dist/client/extensions/ExtensionViewer.js +1 -1
  127. package/dist/client/extensions/ExtensionViewer.js.map +1 -1
  128. package/dist/client/extensions/ExtensionsListPage.js +1 -1
  129. package/dist/client/extensions/ExtensionsListPage.js.map +1 -1
  130. package/dist/client/extensions/ExtensionsSidebarSection.js +1 -1
  131. package/dist/client/extensions/ExtensionsSidebarSection.js.map +1 -1
  132. package/dist/client/index.d.ts +0 -10
  133. package/dist/client/index.d.ts.map +1 -1
  134. package/dist/client/index.js +0 -26
  135. package/dist/client/index.js.map +1 -1
  136. package/dist/client/resources/ResourceEditor.d.ts.map +1 -1
  137. package/dist/client/resources/ResourceEditor.js +14 -532
  138. package/dist/client/resources/ResourceEditor.js.map +1 -1
  139. package/dist/client/resources/ResourcesPanel.js +1 -1
  140. package/dist/client/resources/ResourcesPanel.js.map +1 -1
  141. package/dist/client/settings/AutomationsSection.js +1 -1
  142. package/dist/client/settings/AutomationsSection.js.map +1 -1
  143. package/dist/client/sharing/index.d.ts +0 -1
  144. package/dist/client/sharing/index.d.ts.map +1 -1
  145. package/dist/client/sharing/index.js +0 -1
  146. package/dist/client/sharing/index.js.map +1 -1
  147. package/dist/client/tombstone/agent-presence-chip.d.ts +6 -0
  148. package/dist/client/tombstone/agent-presence-chip.d.ts.map +1 -0
  149. package/dist/client/tombstone/agent-presence-chip.js +5 -0
  150. package/dist/client/tombstone/agent-presence-chip.js.map +1 -0
  151. package/dist/client/tombstone/editor.d.ts +128 -0
  152. package/dist/client/tombstone/editor.d.ts.map +1 -0
  153. package/dist/client/tombstone/editor.js +76 -0
  154. package/dist/client/tombstone/editor.js.map +1 -0
  155. package/dist/client/tombstone/live-cursor-overlay.d.ts +8 -0
  156. package/dist/client/tombstone/live-cursor-overlay.d.ts.map +1 -0
  157. package/dist/client/tombstone/live-cursor-overlay.js +5 -0
  158. package/dist/client/tombstone/live-cursor-overlay.js.map +1 -0
  159. package/dist/client/tombstone/presence-bar.d.ts +6 -0
  160. package/dist/client/tombstone/presence-bar.d.ts.map +1 -0
  161. package/dist/client/tombstone/presence-bar.js +5 -0
  162. package/dist/client/tombstone/presence-bar.js.map +1 -0
  163. package/dist/client/tombstone/recent-edit-highlights.d.ts +6 -0
  164. package/dist/client/tombstone/recent-edit-highlights.d.ts.map +1 -0
  165. package/dist/client/tombstone/recent-edit-highlights.js +5 -0
  166. package/dist/client/tombstone/recent-edit-highlights.js.map +1 -0
  167. package/dist/client/tombstone/remote-selection-rings.d.ts +8 -0
  168. package/dist/client/tombstone/remote-selection-rings.d.ts.map +1 -0
  169. package/dist/client/tombstone/remote-selection-rings.js +5 -0
  170. package/dist/client/tombstone/remote-selection-rings.js.map +1 -0
  171. package/dist/client/tombstone/rich-markdown-editor.d.ts +128 -0
  172. package/dist/client/tombstone/rich-markdown-editor.d.ts.map +1 -0
  173. package/dist/client/tombstone/rich-markdown-editor.js +76 -0
  174. package/dist/client/tombstone/rich-markdown-editor.js.map +1 -0
  175. package/dist/client/tombstone/ui-dialog.d.ts +22 -0
  176. package/dist/client/tombstone/ui-dialog.d.ts.map +1 -0
  177. package/dist/client/tombstone/ui-dialog.js +23 -0
  178. package/dist/client/tombstone/ui-dialog.js.map +1 -0
  179. package/dist/client/tombstone/ui-dropdown-menu.d.ts +32 -0
  180. package/dist/client/tombstone/ui-dropdown-menu.d.ts.map +1 -0
  181. package/dist/client/tombstone/ui-dropdown-menu.js +33 -0
  182. package/dist/client/tombstone/ui-dropdown-menu.js.map +1 -0
  183. package/dist/client/tombstone/ui-hover-card.d.ts +8 -0
  184. package/dist/client/tombstone/ui-hover-card.d.ts.map +1 -0
  185. package/dist/client/tombstone/ui-hover-card.js +9 -0
  186. package/dist/client/tombstone/ui-hover-card.js.map +1 -0
  187. package/dist/client/tombstone/ui-popover.d.ts +10 -0
  188. package/dist/client/tombstone/ui-popover.d.ts.map +1 -0
  189. package/dist/client/tombstone/ui-popover.js +11 -0
  190. package/dist/client/tombstone/ui-popover.js.map +1 -0
  191. package/dist/client/tombstone/ui-sheet.d.ts +22 -0
  192. package/dist/client/tombstone/ui-sheet.d.ts.map +1 -0
  193. package/dist/client/tombstone/ui-sheet.js +23 -0
  194. package/dist/client/tombstone/ui-sheet.js.map +1 -0
  195. package/dist/client/tombstone/ui-tooltip.d.ts +12 -0
  196. package/dist/client/tombstone/ui-tooltip.d.ts.map +1 -0
  197. package/dist/client/tombstone/ui-tooltip.js +13 -0
  198. package/dist/client/tombstone/ui-tooltip.js.map +1 -0
  199. package/dist/client/tombstone/visual-style-controls.d.ts +28 -0
  200. package/dist/client/tombstone/visual-style-controls.d.ts.map +1 -0
  201. package/dist/client/tombstone/visual-style-controls.js +23 -0
  202. package/dist/client/tombstone/visual-style-controls.js.map +1 -0
  203. package/dist/client/uploads/index.d.ts +1 -0
  204. package/dist/client/uploads/index.d.ts.map +1 -1
  205. package/dist/client/uploads/index.js +1 -0
  206. package/dist/client/uploads/index.js.map +1 -1
  207. package/dist/client/{rich-markdown-editor/uploadEditorImage.d.ts → uploads/upload-editor-image.d.ts} +8 -4
  208. package/dist/client/uploads/upload-editor-image.d.ts.map +1 -0
  209. package/dist/client/{rich-markdown-editor/uploadEditorImage.js → uploads/upload-editor-image.js} +2 -2
  210. package/dist/client/uploads/upload-editor-image.js.map +1 -0
  211. package/dist/collab/awareness.d.ts +2 -2
  212. package/dist/collab/awareness.d.ts.map +1 -1
  213. package/dist/notifications/routes.d.ts +3 -3
  214. package/dist/package-lifecycle/tombstone.d.ts.map +1 -1
  215. package/dist/package-lifecycle/tombstone.js +13 -3
  216. package/dist/package-lifecycle/tombstone.js.map +1 -1
  217. package/dist/package-lifecycle/upgrade-error.d.ts +2 -2
  218. package/dist/package-lifecycle/upgrade-error.d.ts.map +1 -1
  219. package/dist/package-lifecycle/upgrade-error.js +8 -5
  220. package/dist/package-lifecycle/upgrade-error.js.map +1 -1
  221. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  222. package/dist/server/transcribe-voice.d.ts +1 -1
  223. package/dist/testing.d.ts +1 -3
  224. package/dist/testing.d.ts.map +1 -1
  225. package/dist/testing.js +1 -3
  226. package/dist/testing.js.map +1 -1
  227. package/dist/vite/client.d.ts.map +1 -1
  228. package/dist/vite/client.js +26 -22
  229. package/dist/vite/client.js.map +1 -1
  230. package/docs/content/components.mdx +7 -0
  231. package/docs/content/locales/ar-SA/components.mdx +4 -2
  232. package/docs/content/locales/de-DE/components.mdx +4 -2
  233. package/docs/content/locales/es-ES/components.mdx +4 -2
  234. package/docs/content/locales/fr-FR/components.mdx +4 -2
  235. package/docs/content/locales/hi-IN/components.mdx +3 -2
  236. package/docs/content/locales/ja-JP/components.mdx +3 -2
  237. package/docs/content/locales/ko-KR/components.mdx +3 -2
  238. package/docs/content/locales/pt-BR/components.mdx +4 -2
  239. package/docs/content/locales/zh-CN/components.mdx +3 -2
  240. package/docs/content/locales/zh-TW/components.mdx +3 -2
  241. package/docs/content/toolkit-agent-ux.mdx +8 -3
  242. package/migration-manifest.json +133 -266
  243. package/package.json +31 -32
  244. package/corpus/core/src/client/composer/AgentComposerFrame.tsx +0 -59
  245. package/corpus/core/src/client/composer/ComposerPlusMenu.tsx +0 -988
  246. package/corpus/core/src/client/composer/MentionPopover.tsx +0 -412
  247. package/corpus/core/src/client/composer/PastedTextChip.tsx +0 -150
  248. package/corpus/core/src/client/composer/PromptComposer.tsx +0 -714
  249. package/corpus/core/src/client/composer/RealtimeVoiceMode.tsx +0 -860
  250. package/corpus/core/src/client/composer/TiptapComposer.tsx +0 -2928
  251. package/corpus/core/src/client/composer/VoiceButton.tsx +0 -262
  252. package/corpus/core/src/client/composer/asset-picker-url.ts +0 -80
  253. package/corpus/core/src/client/composer/attachment-accept.ts +0 -71
  254. package/corpus/core/src/client/composer/draft-key.ts +0 -7
  255. package/corpus/core/src/client/composer/extensions/FileReference.tsx +0 -55
  256. package/corpus/core/src/client/composer/extensions/MentionReference.tsx +0 -93
  257. package/corpus/core/src/client/composer/extensions/SkillReference.tsx +0 -56
  258. package/corpus/core/src/client/composer/pasted-text.ts +0 -160
  259. package/corpus/core/src/client/composer/prompt-attachments.ts +0 -70
  260. package/corpus/core/src/client/composer/realtime-voice-audio-level.ts +0 -64
  261. package/corpus/core/src/client/composer/realtime-voice-transcript.ts +0 -134
  262. package/corpus/core/src/client/composer/types.ts +0 -66
  263. package/corpus/core/src/client/composer/use-file-search.ts +0 -63
  264. package/corpus/core/src/client/composer/use-skills.ts +0 -44
  265. package/corpus/core/src/client/composer/useRealtimeVoiceMode.tsx +0 -2095
  266. package/corpus/core/src/client/composer/useVoiceDictation.ts +0 -1155
  267. package/corpus/core/src/client/editor/index.ts +0 -1
  268. package/corpus/core/src/client/rich-markdown-editor/RegistryBlockNode.tsx +0 -799
  269. package/corpus/core/src/client/rich-markdown-editor/index.ts +0 -70
  270. package/corpus/core/src/client/rich-markdown-editor/registrySlashCommands.ts +0 -112
  271. package/dist/client/composer/AgentComposerFrame.d.ts +0 -19
  272. package/dist/client/composer/AgentComposerFrame.d.ts.map +0 -1
  273. package/dist/client/composer/AgentComposerFrame.js +0 -14
  274. package/dist/client/composer/AgentComposerFrame.js.map +0 -1
  275. package/dist/client/composer/ComposerPlusMenu.d.ts +0 -17
  276. package/dist/client/composer/ComposerPlusMenu.d.ts.map +0 -1
  277. package/dist/client/composer/ComposerPlusMenu.js +0 -501
  278. package/dist/client/composer/ComposerPlusMenu.js.map +0 -1
  279. package/dist/client/composer/MentionPopover.d.ts +0 -29
  280. package/dist/client/composer/MentionPopover.d.ts.map +0 -1
  281. package/dist/client/composer/MentionPopover.js +0 -180
  282. package/dist/client/composer/MentionPopover.js.map +0 -1
  283. package/dist/client/composer/PastedTextChip.d.ts +0 -9
  284. package/dist/client/composer/PastedTextChip.d.ts.map +0 -1
  285. package/dist/client/composer/PastedTextChip.js +0 -47
  286. package/dist/client/composer/PastedTextChip.js.map +0 -1
  287. package/dist/client/composer/PromptComposer.d.ts +0 -115
  288. package/dist/client/composer/PromptComposer.d.ts.map +0 -1
  289. package/dist/client/composer/PromptComposer.js +0 -299
  290. package/dist/client/composer/PromptComposer.js.map +0 -1
  291. package/dist/client/composer/RealtimeVoiceMode.d.ts +0 -104
  292. package/dist/client/composer/RealtimeVoiceMode.d.ts.map +0 -1
  293. package/dist/client/composer/RealtimeVoiceMode.js +0 -245
  294. package/dist/client/composer/RealtimeVoiceMode.js.map +0 -1
  295. package/dist/client/composer/TiptapComposer.d.ts +0 -222
  296. package/dist/client/composer/TiptapComposer.d.ts.map +0 -1
  297. package/dist/client/composer/TiptapComposer.js +0 -1834
  298. package/dist/client/composer/TiptapComposer.js.map +0 -1
  299. package/dist/client/composer/VoiceButton.d.ts +0 -23
  300. package/dist/client/composer/VoiceButton.d.ts.map +0 -1
  301. package/dist/client/composer/VoiceButton.js +0 -100
  302. package/dist/client/composer/VoiceButton.js.map +0 -1
  303. package/dist/client/composer/asset-picker-url.d.ts +0 -16
  304. package/dist/client/composer/asset-picker-url.d.ts.map +0 -1
  305. package/dist/client/composer/asset-picker-url.js +0 -64
  306. package/dist/client/composer/asset-picker-url.js.map +0 -1
  307. package/dist/client/composer/attachment-accept.d.ts +0 -9
  308. package/dist/client/composer/attachment-accept.d.ts.map +0 -1
  309. package/dist/client/composer/attachment-accept.js +0 -65
  310. package/dist/client/composer/attachment-accept.js.map +0 -1
  311. package/dist/client/composer/draft-key.d.ts +0 -2
  312. package/dist/client/composer/draft-key.d.ts.map +0 -1
  313. package/dist/client/composer/draft-key.js +0 -8
  314. package/dist/client/composer/draft-key.js.map +0 -1
  315. package/dist/client/composer/extensions/FileReference.d.ts +0 -3
  316. package/dist/client/composer/extensions/FileReference.d.ts.map +0 -1
  317. package/dist/client/composer/extensions/FileReference.js +0 -36
  318. package/dist/client/composer/extensions/FileReference.js.map +0 -1
  319. package/dist/client/composer/extensions/MentionReference.d.ts +0 -3
  320. package/dist/client/composer/extensions/MentionReference.d.ts.map +0 -1
  321. package/dist/client/composer/extensions/MentionReference.js +0 -66
  322. package/dist/client/composer/extensions/MentionReference.js.map +0 -1
  323. package/dist/client/composer/extensions/SkillReference.d.ts +0 -3
  324. package/dist/client/composer/extensions/SkillReference.d.ts.map +0 -1
  325. package/dist/client/composer/extensions/SkillReference.js +0 -40
  326. package/dist/client/composer/extensions/SkillReference.js.map +0 -1
  327. package/dist/client/composer/pasted-text.d.ts +0 -31
  328. package/dist/client/composer/pasted-text.d.ts.map +0 -1
  329. package/dist/client/composer/pasted-text.js +0 -130
  330. package/dist/client/composer/pasted-text.js.map +0 -1
  331. package/dist/client/composer/prompt-attachments.d.ts +0 -11
  332. package/dist/client/composer/prompt-attachments.d.ts.map +0 -1
  333. package/dist/client/composer/prompt-attachments.js +0 -45
  334. package/dist/client/composer/prompt-attachments.js.map +0 -1
  335. package/dist/client/composer/realtime-voice-audio-level.d.ts +0 -14
  336. package/dist/client/composer/realtime-voice-audio-level.d.ts.map +0 -1
  337. package/dist/client/composer/realtime-voice-audio-level.js +0 -47
  338. package/dist/client/composer/realtime-voice-audio-level.js.map +0 -1
  339. package/dist/client/composer/realtime-voice-transcript.d.ts +0 -26
  340. package/dist/client/composer/realtime-voice-transcript.d.ts.map +0 -1
  341. package/dist/client/composer/realtime-voice-transcript.js +0 -103
  342. package/dist/client/composer/realtime-voice-transcript.js.map +0 -1
  343. package/dist/client/composer/types.d.ts +0 -60
  344. package/dist/client/composer/types.d.ts.map +0 -1
  345. package/dist/client/composer/types.js +0 -2
  346. package/dist/client/composer/types.js.map +0 -1
  347. package/dist/client/composer/use-file-search.d.ts +0 -6
  348. package/dist/client/composer/use-file-search.d.ts.map +0 -1
  349. package/dist/client/composer/use-file-search.js +0 -52
  350. package/dist/client/composer/use-file-search.js.map +0 -1
  351. package/dist/client/composer/use-skills.d.ts +0 -7
  352. package/dist/client/composer/use-skills.d.ts.map +0 -1
  353. package/dist/client/composer/use-skills.js +0 -39
  354. package/dist/client/composer/use-skills.js.map +0 -1
  355. package/dist/client/composer/useRealtimeVoiceMode.d.ts +0 -172
  356. package/dist/client/composer/useRealtimeVoiceMode.d.ts.map +0 -1
  357. package/dist/client/composer/useRealtimeVoiceMode.js +0 -1648
  358. package/dist/client/composer/useRealtimeVoiceMode.js.map +0 -1
  359. package/dist/client/composer/useVoiceDictation.d.ts +0 -57
  360. package/dist/client/composer/useVoiceDictation.d.ts.map +0 -1
  361. package/dist/client/composer/useVoiceDictation.js +0 -975
  362. package/dist/client/composer/useVoiceDictation.js.map +0 -1
  363. package/dist/client/editor/index.d.ts +0 -2
  364. package/dist/client/editor/index.d.ts.map +0 -1
  365. package/dist/client/editor/index.js +0 -2
  366. package/dist/client/editor/index.js.map +0 -1
  367. package/dist/client/rich-markdown-editor/RegistryBlockNode.d.ts +0 -130
  368. package/dist/client/rich-markdown-editor/RegistryBlockNode.d.ts.map +0 -1
  369. package/dist/client/rich-markdown-editor/RegistryBlockNode.js +0 -426
  370. package/dist/client/rich-markdown-editor/RegistryBlockNode.js.map +0 -1
  371. package/dist/client/rich-markdown-editor/index.d.ts +0 -5
  372. package/dist/client/rich-markdown-editor/index.d.ts.map +0 -1
  373. package/dist/client/rich-markdown-editor/index.js +0 -5
  374. package/dist/client/rich-markdown-editor/index.js.map +0 -1
  375. package/dist/client/rich-markdown-editor/registrySlashCommands.d.ts +0 -60
  376. package/dist/client/rich-markdown-editor/registrySlashCommands.d.ts.map +0 -1
  377. package/dist/client/rich-markdown-editor/registrySlashCommands.js +0 -51
  378. package/dist/client/rich-markdown-editor/registrySlashCommands.js.map +0 -1
  379. package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts.map +0 -1
  380. package/dist/client/rich-markdown-editor/uploadEditorImage.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.110.3",
3
+ "version": "0.111.0",
4
4
  "description": "Framework for agent-native application development — where AI agents and UI share SQL state, actions, and context",
5
5
  "homepage": "https://github.com/BuilderIO/agent-native#readme",
6
6
  "bugs": {
@@ -32,7 +32,21 @@
32
32
  "type": "module",
33
33
  "sideEffects": [
34
34
  "*.css",
35
- "dist/client/dev-overlay/builtins.js"
35
+ "dist/client/dev-overlay/builtins.js",
36
+ "dist/client/tombstone/agent-presence-chip.js",
37
+ "dist/client/tombstone/editor.js",
38
+ "dist/client/tombstone/live-cursor-overlay.js",
39
+ "dist/client/tombstone/presence-bar.js",
40
+ "dist/client/tombstone/recent-edit-highlights.js",
41
+ "dist/client/tombstone/remote-selection-rings.js",
42
+ "dist/client/tombstone/rich-markdown-editor.js",
43
+ "dist/client/tombstone/ui-dialog.js",
44
+ "dist/client/tombstone/ui-dropdown-menu.js",
45
+ "dist/client/tombstone/ui-hover-card.js",
46
+ "dist/client/tombstone/ui-popover.js",
47
+ "dist/client/tombstone/ui-sheet.js",
48
+ "dist/client/tombstone/ui-tooltip.js",
49
+ "dist/client/tombstone/visual-style-controls.js"
36
50
  ],
37
51
  "exports": {
38
52
  ".": {
@@ -81,8 +95,8 @@
81
95
  "./client/composer": "./dist/client/composer/index.js",
82
96
  "./client/conversation": "./dist/client/conversation/index.js",
83
97
  "./client/dev-overlay": "./dist/client/dev-overlay/index.js",
84
- "./client/editor": "./dist/client/editor/index.js",
85
- "./client/rich-markdown-editor": "./dist/client/rich-markdown-editor/index.js",
98
+ "./client/editor": "./dist/client/tombstone/editor.js",
99
+ "./client/rich-markdown-editor": "./dist/client/tombstone/rich-markdown-editor.js",
86
100
  "./client/feature-flags": "./dist/client/feature-flags/index.js",
87
101
  "./client/hooks": "./dist/client/hooks/index.js",
88
102
  "./client/host": "./dist/client/host/index.js",
@@ -94,12 +108,18 @@
94
108
  "./client/ui": "./dist/client/ui/index.js",
95
109
  "./client/uploads": "./dist/client/uploads/index.js",
96
110
  "./client/widgets": "./dist/client/widgets/index.js",
97
- "./client/components/ui/dialog": "./dist/client/components/ui/dialog.js",
98
- "./client/components/ui/dropdown-menu": "./dist/client/components/ui/dropdown-menu.js",
99
- "./client/components/ui/hover-card": "./dist/client/components/ui/hover-card.js",
100
- "./client/components/ui/popover": "./dist/client/components/ui/popover.js",
101
- "./client/components/ui/sheet": "./dist/client/components/ui/sheet.js",
102
- "./client/components/ui/tooltip": "./dist/client/components/ui/tooltip.js",
111
+ "./client/components/ui/dialog": "./dist/client/tombstone/ui-dialog.js",
112
+ "./client/components/ui/dropdown-menu": "./dist/client/tombstone/ui-dropdown-menu.js",
113
+ "./client/components/ui/hover-card": "./dist/client/tombstone/ui-hover-card.js",
114
+ "./client/components/ui/popover": "./dist/client/tombstone/ui-popover.js",
115
+ "./client/components/ui/sheet": "./dist/client/tombstone/ui-sheet.js",
116
+ "./client/components/ui/tooltip": "./dist/client/tombstone/ui-tooltip.js",
117
+ "./client/components/AgentPresenceChip": "./dist/client/tombstone/agent-presence-chip.js",
118
+ "./client/components/LiveCursorOverlay": "./dist/client/tombstone/live-cursor-overlay.js",
119
+ "./client/components/PresenceBar": "./dist/client/tombstone/presence-bar.js",
120
+ "./client/components/RecentEditHighlights": "./dist/client/tombstone/recent-edit-highlights.js",
121
+ "./client/components/RemoteSelectionRings": "./dist/client/tombstone/remote-selection-rings.js",
122
+ "./client/visual-style-controls": "./dist/client/tombstone/visual-style-controls.js",
103
123
  "./blocks": "./dist/client/blocks/index.js",
104
124
  "./blocks/server": "./dist/client/blocks/server.js",
105
125
  "./client/AgentPanel": "./dist/client/AgentPanel.js",
@@ -283,7 +303,7 @@
283
303
  "@amplitude/analytics-browser": "^2.41.1",
284
304
  "@anthropic-ai/sdk": "^0.90.0",
285
305
  "@anthropic-ai/tokenizer": "0.0.4",
286
- "@assistant-ui/react": "^0.12.19",
306
+ "@assistant-ui/react": "catalog:",
287
307
  "@assistant-ui/react-markdown": "^0.12.6",
288
308
  "@assistant-ui/store": ">=0.2.9 <0.2.14",
289
309
  "@assistant-ui/tap": "^0.5.14",
@@ -297,9 +317,6 @@
297
317
  "@mozilla/readability": "0.6.0",
298
318
  "@neondatabase/serverless": "^1.1.0",
299
319
  "@opentelemetry/sdk-trace-base": "^2.8.0",
300
- "@radix-ui/react-dialog": "catalog:",
301
- "@radix-ui/react-dropdown-menu": "catalog:",
302
- "@radix-ui/react-hover-card": "catalog:",
303
320
  "@radix-ui/react-popover": "catalog:",
304
321
  "@radix-ui/react-select": "catalog:",
305
322
  "@radix-ui/react-tooltip": "catalog:",
@@ -312,23 +329,6 @@
312
329
  "@shadcn/react": "^0.2.0",
313
330
  "@standard-schema/spec": "^1.1.0",
314
331
  "@tanstack/react-table": "^8.21.3",
315
- "@tiptap/core": "catalog:",
316
- "@tiptap/extension-code-block-lowlight": "catalog:",
317
- "@tiptap/extension-collaboration": "catalog:",
318
- "@tiptap/extension-collaboration-caret": "catalog:",
319
- "@tiptap/extension-image": "catalog:",
320
- "@tiptap/extension-link": "catalog:",
321
- "@tiptap/extension-placeholder": "catalog:",
322
- "@tiptap/extension-table": "catalog:",
323
- "@tiptap/extension-table-cell": "catalog:",
324
- "@tiptap/extension-table-header": "catalog:",
325
- "@tiptap/extension-table-row": "catalog:",
326
- "@tiptap/extension-task-item": "catalog:",
327
- "@tiptap/extension-task-list": "catalog:",
328
- "@tiptap/pm": "catalog:",
329
- "@tiptap/react": "catalog:",
330
- "@tiptap/starter-kit": "catalog:",
331
- "@tiptap/y-tiptap": "catalog:",
332
332
  "@uiw/react-codemirror": "^4.25.10",
333
333
  "ajv": "^8.20.0",
334
334
  "better-auth": "1.6.16",
@@ -363,7 +363,6 @@
363
363
  "shiki": "^4.0.2",
364
364
  "sonner": "catalog:",
365
365
  "tailwind-merge": "catalog:",
366
- "tiptap-markdown": "catalog:",
367
366
  "ts-morph": "^28.0.0",
368
367
  "turndown": "7.2.4",
369
368
  "tw-animate-css": "1.4.0",
@@ -377,7 +376,7 @@
377
376
  "@ai-sdk/google": "^3.0.64",
378
377
  "@ai-sdk/groq": "^3.0.35",
379
378
  "@ai-sdk/openai": "^3.0.53",
380
- "@assistant-ui/react": "^0.12.19",
379
+ "@assistant-ui/react": "catalog:",
381
380
  "@assistant-ui/react-markdown": "^0.12.6",
382
381
  "@assistant-ui/store": ">=0.2.9 <0.2.14",
383
382
  "@assistant-ui/tap": "^0.5.14",
@@ -8,7 +8,8 @@
8
8
  // A static scan can't tell a real broken import from a JSDoc example, a codegen
9
9
  // string literal, or a dynamic import of a consumer-generated file, so we run
10
10
  // the real resolver instead.
11
- import { existsSync } from "node:fs";
11
+ import { existsSync, readFileSync, readdirSync } from "node:fs";
12
+ import { join } from "node:path";
12
13
  import { pathToFileURL } from "node:url";
13
14
 
14
15
  const ENTRY_POINTS = ["dist/client/i18n.js"];
@@ -29,6 +30,29 @@ for (const entry of ENTRY_POINTS) {
29
30
  }
30
31
  }
31
32
 
33
+ const tiptapImports = [];
34
+ function findTiptapImports(dir) {
35
+ if (!existsSync(dir)) return;
36
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
37
+ const full = join(dir, entry.name);
38
+ if (entry.isDirectory()) {
39
+ findTiptapImports(full);
40
+ } else if (
41
+ entry.name.endsWith(".js") &&
42
+ /["'](?:@tiptap\/|tiptap-markdown["'/])/.test(readFileSync(full, "utf8"))
43
+ ) {
44
+ tiptapImports.push(full);
45
+ }
46
+ }
47
+ }
48
+ findTiptapImports("dist/client");
49
+ if (tiptapImports.length > 0) {
50
+ failed = true;
51
+ console.error(
52
+ `[check-dist-imports] Core client output must not retain Tiptap imports:\n${tiptapImports.map((file) => ` ${file}`).join("\n")}`,
53
+ );
54
+ }
55
+
32
56
  if (failed) process.exit(1);
33
57
  console.log(
34
58
  `[check-dist-imports] SSR entry points import cleanly (${ENTRY_POINTS.join(", ")})`,
@@ -14,7 +14,7 @@ import {
14
14
  writeFileSync,
15
15
  existsSync,
16
16
  } from "node:fs";
17
- import { join } from "node:path";
17
+ import { join, relative } from "node:path";
18
18
 
19
19
  import { materializeSourceCorpus } from "./materialize-source-corpus.mjs";
20
20
 
@@ -34,7 +34,64 @@ function pruneSpecArtifacts(dir) {
34
34
  }
35
35
  }
36
36
  }
37
- if (existsSync("dist")) pruneSpecArtifacts("dist");
37
+
38
+ function collectSourceStems(dir, root = dir, stems = new Set()) {
39
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
40
+ const full = join(dir, entry.name);
41
+ if (entry.isDirectory()) {
42
+ collectSourceStems(full, root, stems);
43
+ } else if (/\.[cm]?[jt]sx?$/.test(entry.name)) {
44
+ stems.add(
45
+ relative(root, full)
46
+ .replace(/\.[cm]?[jt]sx?$/, "")
47
+ .replaceAll("\\", "/"),
48
+ );
49
+ }
50
+ }
51
+ return stems;
52
+ }
53
+
54
+ function compiledArtifactStem(file) {
55
+ for (const suffix of [".d.ts.map", ".d.ts", ".js.map", ".js"]) {
56
+ if (file.endsWith(suffix)) return file.slice(0, -suffix.length);
57
+ }
58
+ return null;
59
+ }
60
+
61
+ function pruneStaleCompiledArtifacts(sourceDir, compiledDir) {
62
+ if (!existsSync(compiledDir)) return;
63
+ if (!existsSync(sourceDir)) {
64
+ rmSync(compiledDir, { recursive: true, force: true });
65
+ return;
66
+ }
67
+
68
+ const sourceStems = collectSourceStems(sourceDir);
69
+ const visit = (dir) => {
70
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
71
+ const full = join(dir, entry.name);
72
+ if (entry.isDirectory()) {
73
+ visit(full);
74
+ if (readdirSync(full).length === 0) rmSync(full, { recursive: true });
75
+ continue;
76
+ }
77
+ const stem = compiledArtifactStem(
78
+ relative(compiledDir, full).replaceAll("\\", "/"),
79
+ );
80
+ if (stem && !sourceStems.has(stem)) rmSync(full, { force: true });
81
+ }
82
+ };
83
+ visit(compiledDir);
84
+ }
85
+
86
+ if (existsSync("dist")) {
87
+ pruneSpecArtifacts("dist");
88
+ for (const entry of ["editor", "composer", "rich-markdown-editor"]) {
89
+ pruneStaleCompiledArtifacts(
90
+ join("src", "client", entry),
91
+ join("dist", "client", entry),
92
+ );
93
+ }
94
+ }
38
95
 
39
96
  // Two overlapping `pnpm --filter @agent-native/core run build` invocations
40
97
  // (e.g. concurrent `scripts/dev-lazy.ts` prebuilds) both land here and used
@@ -7,7 +7,7 @@ import {
7
7
  PopoverContent,
8
8
  PopoverTrigger,
9
9
  } from "./components/ui/popover.js";
10
- import { PromptComposer } from "./composer/PromptComposer.js";
10
+ import { PromptComposer } from "./composer/index.js";
11
11
  import { useT } from "./i18n.js";
12
12
 
13
13
  export interface AgentAskPopoverProps {
@@ -100,7 +100,7 @@ import {
100
100
  AGENT_CHAT_VIEW_TRANSITION_CLASS,
101
101
  getAgentChatViewTransitionStyle,
102
102
  } from "./chat-view-transition.js";
103
- import { RealtimeVoiceModeProvider } from "./composer/useRealtimeVoiceMode.js";
103
+ import { RealtimeVoiceModeProvider } from "./composer/index.js";
104
104
  import {
105
105
  getFramePostMessageTargetOrigin,
106
106
  isTrustedFrameMessage,
@@ -1,3 +1,11 @@
1
+ import { TextAttachmentAdapter } from "@agent-native/toolkit/composer/attachment-accept";
2
+ import { isPastedTextAttachmentName } from "@agent-native/toolkit/composer/pasted-text";
3
+ import { PastedTextChip } from "@agent-native/toolkit/composer/PastedTextChip";
4
+ import {
5
+ appendRealtimeVoiceTranscriptToRepository,
6
+ realtimeVoiceTranscriptRegistry,
7
+ } from "@agent-native/toolkit/composer/realtime-voice-transcript";
8
+ import type { ComposerImageModelMenu } from "@agent-native/toolkit/composer/TiptapComposer";
1
9
  import {
2
10
  AssistantRuntimeProvider,
3
11
  useLocalRuntime,
@@ -146,24 +154,14 @@ import {
146
154
  TooltipProvider,
147
155
  TooltipTrigger,
148
156
  } from "./components/ui/tooltip.js";
149
- import { AgentComposerFrame } from "./composer/AgentComposerFrame.js";
150
- import { TextAttachmentAdapter } from "./composer/attachment-accept.js";
151
- import { isPastedTextAttachmentName } from "./composer/pasted-text.js";
152
- import { PastedTextChip } from "./composer/PastedTextChip.js";
153
- import {
154
- appendRealtimeVoiceTranscriptToRepository,
155
- realtimeVoiceTranscriptRegistry,
156
- } from "./composer/realtime-voice-transcript.js";
157
157
  import {
158
+ AgentComposerFrame,
158
159
  TiptapComposer,
160
+ type AgentComposerLayoutVariant,
159
161
  type ComposerSubmitIntent,
160
- type ComposerImageModelMenu,
162
+ type Reference,
161
163
  type TiptapComposerHandle,
162
- } from "./composer/TiptapComposer.js";
163
- import type {
164
- AgentComposerLayoutVariant,
165
- Reference,
166
- } from "./composer/types.js";
164
+ } from "./composer/index.js";
167
165
  import { ContextMeter } from "./context-xray/ContextMeter.js";
168
166
  import { useNearBottomAutoscroll } from "./conversation/index.js";
169
167
  import {
@@ -12,7 +12,7 @@ import { getWorkspaceAppIdValidationError } from "../shared/workspace-app-id.js"
12
12
  import { sendToAgentChat } from "./agent-chat.js";
13
13
  import { agentNativePath, appBasePath } from "./api-path.js";
14
14
  import { isInBuilderFrame } from "./builder-frame.js";
15
- import { PromptComposer } from "./composer/PromptComposer.js";
15
+ import { PromptComposer } from "./composer/index.js";
16
16
  import { useDevMode } from "./use-dev-mode.js";
17
17
 
18
18
  export interface VaultSecretOption {
@@ -1,3 +1,4 @@
1
+ import { unwrapAttachmentEnvelope } from "@agent-native/toolkit/composer/pasted-text";
1
2
  import type { ChatModelAdapter, ChatModelRunResult } from "@assistant-ui/react";
2
3
 
3
4
  import { actionPreparationContinuationNote } from "../agent/action-continuation-guidance.js";
@@ -19,7 +20,6 @@ import {
19
20
  } from "./active-run-state.js";
20
21
  import { captureError } from "./analytics.js";
21
22
  import { agentNativePath } from "./api-path.js";
22
- import { unwrapAttachmentEnvelope } from "./composer/pasted-text.js";
23
23
  import { formatChatErrorText, normalizeChatError } from "./error-format.js";
24
24
  import {
25
25
  AgentAutoContinueSignal,
@@ -0,0 +1,121 @@
1
+ import {
2
+ RegistryBlockDataProvider as ToolkitRegistryBlockDataProvider,
3
+ type RegistryBlockDataValue,
4
+ type RegistryBlockRenderResult,
5
+ type RegistryBlockSideMapBlock,
6
+ } from "@agent-native/toolkit/editor/RegistryBlockContext";
7
+ import { IconPencil } from "@tabler/icons-react";
8
+ import { useCallback, useMemo, type ReactNode } from "react";
9
+
10
+ import { blockEditSurface } from "./BlockView.js";
11
+ import { useOptionalBlockRegistry } from "./provider.js";
12
+ import { SchemaBlockEditor } from "./SchemaBlockEditor.js";
13
+
14
+ export function RegistryBlockDataProvider<
15
+ TBlock extends RegistryBlockSideMapBlock = RegistryBlockSideMapBlock,
16
+ >({
17
+ value,
18
+ children,
19
+ }: {
20
+ value: RegistryBlockDataValue<TBlock>;
21
+ children: ReactNode;
22
+ }) {
23
+ const registryValue = useOptionalBlockRegistry();
24
+ const renderRegisteredBlock = useCallback(
25
+ (
26
+ block: TBlock,
27
+ options: Parameters<
28
+ NonNullable<RegistryBlockDataValue<TBlock>["renderRegisteredBlock"]>
29
+ >[1],
30
+ ): RegistryBlockRenderResult | null => {
31
+ const spec = registryValue?.registry.get(options.blockType);
32
+ if (!registryValue || !spec) return null;
33
+
34
+ const blockType = options.blockType;
35
+ const blockData = block.data;
36
+ const Read = spec.Read;
37
+ let body: ReactNode = (
38
+ <Read
39
+ data={blockData}
40
+ blockId={block.id}
41
+ title={block.title}
42
+ summary={block.summary}
43
+ ctx={registryValue.ctx}
44
+ />
45
+ );
46
+ let editSurface: ReactNode = null;
47
+ const canEditBlock = options.editable && spec.placement.includes("block");
48
+ if (canEditBlock) {
49
+ const Edit = spec.Edit;
50
+ const editorNode = Edit ? (
51
+ <Edit
52
+ data={blockData}
53
+ onChange={options.onChange}
54
+ editable
55
+ blockId={block.id}
56
+ title={block.title}
57
+ summary={block.summary}
58
+ ctx={registryValue.ctx}
59
+ />
60
+ ) : (
61
+ <SchemaBlockEditor
62
+ data={blockData}
63
+ onChange={(nextData) => options.onChange(nextData)}
64
+ schema={spec.schema}
65
+ editable
66
+ blockId={block.id}
67
+ ctx={registryValue.ctx}
68
+ />
69
+ );
70
+ const surface = blockEditSurface(spec);
71
+ if (surface === "panel" && registryValue.ctx.renderEditSurface) {
72
+ editSurface = registryValue.ctx.renderEditSurface({
73
+ title: spec.label,
74
+ open: options.panelOpen,
75
+ onOpenChange: options.setPanelOpen,
76
+ blockId: block.id,
77
+ blockType,
78
+ blockTitle: block.title,
79
+ blockSummary: block.summary,
80
+ blockData,
81
+ trigger: (
82
+ <button
83
+ type="button"
84
+ data-plan-interactive
85
+ aria-label={`Edit ${spec.label}`}
86
+ onClick={() => options.setPanelOpen(true)}
87
+ className="an-block-edit-trigger flex size-7 items-center justify-center rounded-md border border-border bg-background text-muted-foreground opacity-0 shadow-sm transition-opacity hover:bg-muted hover:text-foreground focus-visible:opacity-100 data-[visible=true]:opacity-100"
88
+ data-visible={options.panelOpen || options.shellHovered}
89
+ >
90
+ <IconPencil className="size-4" />
91
+ </button>
92
+ ),
93
+ children: editorNode,
94
+ });
95
+ } else if (surface === "panel") {
96
+ editSurface = options.selected ? (
97
+ <div className="mt-3">{editorNode}</div>
98
+ ) : null;
99
+ } else if (surface !== "none") {
100
+ body = editorNode;
101
+ }
102
+ }
103
+ return { body, editSurface };
104
+ },
105
+ [registryValue],
106
+ );
107
+
108
+ const resolvedValue = useMemo(
109
+ () => ({
110
+ ...value,
111
+ renderRegisteredBlock,
112
+ renderEditSurface: registryValue?.ctx.renderEditSurface,
113
+ }),
114
+ [registryValue?.ctx.renderEditSurface, renderRegisteredBlock, value],
115
+ );
116
+ return (
117
+ <ToolkitRegistryBlockDataProvider value={resolvedValue}>
118
+ {children}
119
+ </ToolkitRegistryBlockDataProvider>
120
+ );
121
+ }
@@ -44,6 +44,12 @@ export {
44
44
  export { BlockView, blockEditSurface } from "./BlockView.js";
45
45
  export { AiEditableFieldLabel } from "./AiEditableField.js";
46
46
  export { SchemaBlockEditor } from "./SchemaBlockEditor.js";
47
+ export { RegistryBlockDataProvider } from "./RegistryBlockDataProvider.js";
48
+ export type {
49
+ RegistryBlockDataChangeMeta,
50
+ RegistryBlockDataValue,
51
+ RegistryBlockSideMapBlock,
52
+ } from "@agent-native/toolkit/editor/RegistryBlockContext";
47
53
 
48
54
  // Schema-form helpers
49
55
  export {
@@ -1,5 +1,9 @@
1
1
  // Owns: image/document/text attachment adapters and attachment serialization helpers.
2
2
 
3
+ import {
4
+ CHAT_DOCUMENT_ATTACHMENT_ACCEPT,
5
+ IMAGE_ATTACHMENT_ACCEPT,
6
+ } from "@agent-native/toolkit/composer/attachment-accept";
3
7
  import type {
4
8
  AttachmentAdapter,
5
9
  CompleteAttachment,
@@ -7,11 +11,6 @@ import type {
7
11
  Attachment,
8
12
  } from "@assistant-ui/react";
9
13
 
10
- import {
11
- CHAT_DOCUMENT_ATTACHMENT_ACCEPT,
12
- IMAGE_ATTACHMENT_ACCEPT,
13
- } from "../composer/attachment-accept.js";
14
-
15
14
  // Maximum PDF/document size (4 MB). Larger PDFs would bloat the JSON POST
16
15
  // body past Vercel's ~4.5 MB limit after base64 encoding (+33% overhead).
17
16
  export const MAX_PDF_BYTES = 4 * 1024 * 1024;
@@ -157,5 +157,4 @@ export {
157
157
  type ChatHistorySection,
158
158
  type ChatHistoryListProps,
159
159
  } from "./ChatHistoryList.js";
160
- export * from "../composer/index.js";
161
160
  export * from "../conversation/index.js";
@@ -2,6 +2,8 @@
2
2
  // AssistantMessage, MessageBranchPicker, CheckpointContext, MessageActionsContext,
3
3
  // RunningActivityStatus, ThinkingIndicator, and displayableUserMessageText.
4
4
 
5
+ import { isPastedTextAttachmentName } from "@agent-native/toolkit/composer/pasted-text";
6
+ import { PastedTextChip } from "@agent-native/toolkit/composer/PastedTextChip";
5
7
  import {
6
8
  useThread,
7
9
  useMessageRuntime,
@@ -59,8 +61,6 @@ import {
59
61
  TooltipProvider,
60
62
  TooltipTrigger,
61
63
  } from "../components/ui/tooltip.js";
62
- import { isPastedTextAttachmentName } from "../composer/pasted-text.js";
63
- import { PastedTextChip } from "../composer/PastedTextChip.js";
64
64
  import { ThumbsFeedback } from "../observability/ThumbsFeedback.js";
65
65
  import { McpConnectionSuggestion } from "../resources/McpConnectionSuggestion.js";
66
66
  import type { ContentPart } from "../sse-event-processor.js";
@@ -1,3 +1,5 @@
1
+ import type { AgentPromptAttachment } from "@agent-native/toolkit/composer";
2
+ import { unwrapAttachmentEnvelope } from "@agent-native/toolkit/composer/pasted-text";
1
3
  import type {
2
4
  ChatModelAdapter,
3
5
  ChatModelRunOptions,
@@ -18,8 +20,6 @@ import {
18
20
  type CodeAgentRunStateLike,
19
21
  } from "../code-agents/transcript-order.js";
20
22
  import type { ReasoningEffort } from "../shared/reasoning-effort.js";
21
- import { unwrapAttachmentEnvelope } from "./composer/pasted-text.js";
22
- import type { AgentPromptAttachment } from "./composer/prompt-attachments.js";
23
23
  import type { ContentPart } from "./sse-event-processor.js";
24
24
 
25
25
  export type CodeAgentChatFollowUpMode = "immediate" | "queued";
@@ -32,28 +32,6 @@ export {
32
32
  type UseCollaborativeArrayOptions,
33
33
  type UseCollaborativeArrayResult,
34
34
  } from "../../collab/client-struct.js";
35
- export {
36
- PresenceBar,
37
- type PresenceBarProps,
38
- } from "../components/PresenceBar.js";
39
- export {
40
- AgentPresenceChip,
41
- type AgentPresenceChipProps,
42
- } from "../components/AgentPresenceChip.js";
43
- export {
44
- LiveCursorOverlay,
45
- type LiveCursorOverlayProps,
46
- type CursorMapFn,
47
- } from "../components/LiveCursorOverlay.js";
48
- export {
49
- RemoteSelectionRings,
50
- type RemoteSelectionRingsProps,
51
- type SelectionDescriptor,
52
- } from "../components/RemoteSelectionRings.js";
53
- export {
54
- RecentEditHighlights,
55
- type RecentEditHighlightsProps,
56
- } from "../components/RecentEditHighlights.js";
57
35
  export {
58
36
  appendRecentEdit,
59
37
  collectRecentEdits,
@@ -1,72 +1,11 @@
1
- export { FileReference } from "./extensions/FileReference.js";
2
- export { SkillReference } from "./extensions/SkillReference.js";
3
- export { MentionReference } from "./extensions/MentionReference.js";
4
- export {
5
- AgentComposerFrame,
6
- type AgentComposerFrameProps,
7
- } from "./AgentComposerFrame.js";
8
- export {
9
- TiptapComposer,
10
- canSubmitComposerContent,
11
- displayableComposerModeMessage,
12
- getComposerSubmitIntentForEnterKey,
13
- handleComposerFileDrop,
14
- insertComposerHardBreakAndScrollIntoView,
15
- type ComposerSubmitIntent,
16
- type TiptapComposerHandle,
17
- type TiptapComposerProps,
18
- type TiptapComposerSubmitOptions,
19
- } from "./TiptapComposer.js";
1
+ export * from "@agent-native/toolkit/composer";
2
+
20
3
  export {
21
4
  PromptComposer,
22
- type PromptComposerProps,
23
- type PromptComposerFile,
24
- type PromptComposerSubmitOptions,
25
- } from "./PromptComposer.js";
26
- export {
27
- RealtimeVoiceModeDock,
28
- RealtimeVoiceModeEntry,
29
- type RealtimeVoiceModeCopy,
30
- type RealtimeVoiceModeDockProps,
31
- type RealtimeVoiceModeEntryProps,
32
- type RealtimeVoiceModeInlineSettings,
33
- type RealtimeVoiceModeSelectSetting,
34
- type RealtimeVoiceModeSettingOption,
35
- type RealtimeVoiceModeState,
36
- } from "./RealtimeVoiceMode.js";
37
- export {
38
- createRealtimeVoiceSession,
39
- createRealtimeVoiceSessionWithCapability,
40
- executeRealtimeVoiceTool,
41
- extractRealtimeVoiceFunctionCalls,
42
5
  readRealtimeVoiceContext,
43
6
  RealtimeVoiceModeBoundary,
44
7
  RealtimeVoiceModeProvider,
45
- useRealtimeVoiceMode,
46
- useRealtimeVoiceModeCopy,
47
- useRealtimeVoiceModeOptional,
48
- type RealtimeVoiceModeApi,
49
- type RealtimeVoiceModeProviderProps,
50
- type RealtimeVoiceSessionAnswer,
51
- type RealtimeVoiceToolResult,
52
- } from "./useRealtimeVoiceMode.js";
53
- export {
54
- AGENT_PROMPT_MAX_INLINE_IMAGE_BYTES,
55
- AGENT_PROMPT_MAX_INLINE_TEXT_CHARS,
56
- escapePromptAttachmentAttribute,
57
- formatPromptWithAttachments,
58
- isInlineableAgentPromptFile,
59
- readAgentPromptAttachment,
60
- type AgentPromptAttachment,
61
- type ReadAgentPromptAttachmentOptions,
62
- } from "./prompt-attachments.js";
63
- export { MentionPopover } from "./MentionPopover.js";
8
+ TiptapComposer,
9
+ } from "./wired-components.js";
10
+ export { CoreComposerRuntimeProvider } from "./runtime-adapters.js";
64
11
  export { useMentionSearch } from "./use-mention-search.js";
65
- export type {
66
- AgentComposerLayoutVariant,
67
- FileResult,
68
- SkillResult,
69
- MentionItem,
70
- Reference,
71
- SlashCommand,
72
- } from "./types.js";