@dxos/plugin-assistant 0.8.4-main.67995b8 → 0.8.4-main.69d29f4

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 (563) hide show
  1. package/dist/lib/browser/BlueprintArticle-WP3G5GLG.mjs +31 -0
  2. package/dist/lib/browser/BlueprintArticle-WP3G5GLG.mjs.map +7 -0
  3. package/dist/lib/browser/ChatCompanion-ECQYUQ2B.mjs +153 -0
  4. package/dist/lib/browser/ChatCompanion-ECQYUQ2B.mjs.map +7 -0
  5. package/dist/lib/browser/ChatContainer-QCCOFBUX.mjs +73 -0
  6. package/dist/lib/browser/ChatContainer-QCCOFBUX.mjs.map +7 -0
  7. package/dist/lib/browser/ChatDialog-SMK4RSZU.mjs +85 -0
  8. package/dist/lib/browser/ChatDialog-SMK4RSZU.mjs.map +7 -0
  9. package/dist/lib/browser/PromptArticle-K362ZPAE.mjs +53 -0
  10. package/dist/lib/browser/PromptArticle-K362ZPAE.mjs.map +7 -0
  11. package/dist/lib/browser/ai-service-5GUDOEWF.mjs +21 -0
  12. package/dist/lib/browser/ai-service-5GUDOEWF.mjs.map +7 -0
  13. package/dist/lib/browser/app-graph-builder-DSNH2OMY.mjs +212 -0
  14. package/dist/lib/browser/app-graph-builder-DSNH2OMY.mjs.map +7 -0
  15. package/dist/lib/browser/blueprint-definition-DGHH7MUU.mjs +14 -0
  16. package/dist/lib/browser/blueprint-definition-DGHH7MUU.mjs.map +7 -0
  17. package/dist/lib/browser/blueprints/index.mjs +12 -0
  18. package/dist/lib/browser/blueprints/index.mjs.map +7 -0
  19. package/dist/lib/browser/chunk-3JYPE2MM.mjs +1832 -0
  20. package/dist/lib/browser/chunk-3JYPE2MM.mjs.map +7 -0
  21. package/dist/lib/browser/chunk-DKQMSMBN.mjs +326 -0
  22. package/dist/lib/browser/chunk-DKQMSMBN.mjs.map +7 -0
  23. package/dist/lib/browser/chunk-EXVT7D4B.mjs +23 -0
  24. package/dist/lib/browser/chunk-EXVT7D4B.mjs.map +7 -0
  25. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  26. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  27. package/dist/lib/browser/chunk-ML3QCFKA.mjs +265 -0
  28. package/dist/lib/browser/chunk-ML3QCFKA.mjs.map +7 -0
  29. package/dist/lib/browser/chunk-MRJVYGLU.mjs +208 -0
  30. package/dist/lib/browser/chunk-MRJVYGLU.mjs.map +7 -0
  31. package/dist/lib/browser/chunk-V772AMZM.mjs +250 -0
  32. package/dist/lib/browser/chunk-V772AMZM.mjs.map +7 -0
  33. package/dist/lib/browser/chunk-WGQTU6UJ.mjs +41 -0
  34. package/dist/lib/browser/chunk-WGQTU6UJ.mjs.map +7 -0
  35. package/dist/lib/browser/edge-model-resolver-26BOY6HY.mjs +20 -0
  36. package/dist/lib/browser/edge-model-resolver-26BOY6HY.mjs.map +7 -0
  37. package/dist/lib/browser/index.mjs +264 -168
  38. package/dist/lib/browser/index.mjs.map +4 -4
  39. package/dist/lib/browser/local-model-resolver-ZFIM6GGV.mjs +19 -0
  40. package/dist/lib/browser/local-model-resolver-ZFIM6GGV.mjs.map +7 -0
  41. package/dist/lib/browser/meta.json +1 -1
  42. package/dist/lib/browser/operation-resolver-7XJLBRQY.mjs +132 -0
  43. package/dist/lib/browser/operation-resolver-7XJLBRQY.mjs.map +7 -0
  44. package/dist/lib/browser/react-surface-NCITRSJJ.mjs +109 -0
  45. package/dist/lib/browser/react-surface-NCITRSJJ.mjs.map +7 -0
  46. package/dist/lib/browser/repair-6QGAKOVM.mjs +54 -0
  47. package/dist/lib/browser/repair-6QGAKOVM.mjs.map +7 -0
  48. package/dist/lib/browser/settings-4ZDLUMYE.mjs +32 -0
  49. package/dist/lib/browser/settings-4ZDLUMYE.mjs.map +7 -0
  50. package/dist/lib/browser/state-AN6336ZX.mjs +26 -0
  51. package/dist/lib/browser/state-AN6336ZX.mjs.map +7 -0
  52. package/dist/lib/browser/toolkit-7AVTEPMA.mjs +18 -0
  53. package/dist/lib/browser/toolkit-7AVTEPMA.mjs.map +7 -0
  54. package/dist/lib/browser/types/index.mjs +11 -4
  55. package/dist/lib/node-esm/BlueprintArticle-WZ76E2C4.mjs +32 -0
  56. package/dist/lib/node-esm/BlueprintArticle-WZ76E2C4.mjs.map +7 -0
  57. package/dist/lib/node-esm/ChatCompanion-Q4FUZ2MW.mjs +154 -0
  58. package/dist/lib/node-esm/ChatCompanion-Q4FUZ2MW.mjs.map +7 -0
  59. package/dist/lib/node-esm/ChatContainer-AKI33HIB.mjs +74 -0
  60. package/dist/lib/node-esm/ChatContainer-AKI33HIB.mjs.map +7 -0
  61. package/dist/lib/node-esm/ChatDialog-AP45PVZR.mjs +86 -0
  62. package/dist/lib/node-esm/ChatDialog-AP45PVZR.mjs.map +7 -0
  63. package/dist/lib/node-esm/PromptArticle-D4HAIIC6.mjs +54 -0
  64. package/dist/lib/node-esm/PromptArticle-D4HAIIC6.mjs.map +7 -0
  65. package/dist/lib/node-esm/ai-service-PXKKCFIF.mjs +22 -0
  66. package/dist/lib/node-esm/ai-service-PXKKCFIF.mjs.map +7 -0
  67. package/dist/lib/node-esm/app-graph-builder-TJCUEXW5.mjs +213 -0
  68. package/dist/lib/node-esm/app-graph-builder-TJCUEXW5.mjs.map +7 -0
  69. package/dist/lib/node-esm/blueprint-definition-SEMDEIYG.mjs +15 -0
  70. package/dist/lib/node-esm/blueprint-definition-SEMDEIYG.mjs.map +7 -0
  71. package/dist/lib/node-esm/blueprints/index.mjs +13 -0
  72. package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
  73. package/dist/lib/node-esm/chunk-355W5B27.mjs +251 -0
  74. package/dist/lib/node-esm/chunk-355W5B27.mjs.map +7 -0
  75. package/dist/lib/node-esm/chunk-75PHXBN3.mjs +327 -0
  76. package/dist/lib/node-esm/chunk-75PHXBN3.mjs.map +7 -0
  77. package/dist/lib/node-esm/chunk-DCA5QWQT.mjs +209 -0
  78. package/dist/lib/node-esm/chunk-DCA5QWQT.mjs.map +7 -0
  79. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  80. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  81. package/dist/lib/node-esm/chunk-MSBPC4RJ.mjs +42 -0
  82. package/dist/lib/node-esm/chunk-MSBPC4RJ.mjs.map +7 -0
  83. package/dist/lib/node-esm/chunk-POWB2BPC.mjs +25 -0
  84. package/dist/lib/node-esm/chunk-POWB2BPC.mjs.map +7 -0
  85. package/dist/lib/node-esm/chunk-XI5T3MJC.mjs +1833 -0
  86. package/dist/lib/node-esm/chunk-XI5T3MJC.mjs.map +7 -0
  87. package/dist/lib/node-esm/chunk-ZRIPP7YF.mjs +267 -0
  88. package/dist/lib/node-esm/chunk-ZRIPP7YF.mjs.map +7 -0
  89. package/dist/lib/node-esm/edge-model-resolver-G5KMODPO.mjs +21 -0
  90. package/dist/lib/node-esm/edge-model-resolver-G5KMODPO.mjs.map +7 -0
  91. package/dist/lib/node-esm/index.mjs +264 -168
  92. package/dist/lib/node-esm/index.mjs.map +4 -4
  93. package/dist/lib/node-esm/local-model-resolver-KDZLYI7Y.mjs +20 -0
  94. package/dist/lib/node-esm/local-model-resolver-KDZLYI7Y.mjs.map +7 -0
  95. package/dist/lib/node-esm/meta.json +1 -1
  96. package/dist/lib/node-esm/operation-resolver-SX4WMNA7.mjs +133 -0
  97. package/dist/lib/node-esm/operation-resolver-SX4WMNA7.mjs.map +7 -0
  98. package/dist/lib/node-esm/react-surface-ST6V7LPE.mjs +110 -0
  99. package/dist/lib/node-esm/react-surface-ST6V7LPE.mjs.map +7 -0
  100. package/dist/lib/node-esm/repair-QJ7CQDKU.mjs +55 -0
  101. package/dist/lib/node-esm/repair-QJ7CQDKU.mjs.map +7 -0
  102. package/dist/lib/node-esm/settings-CQEOHR3R.mjs +33 -0
  103. package/dist/lib/node-esm/settings-CQEOHR3R.mjs.map +7 -0
  104. package/dist/lib/node-esm/state-HDON4REW.mjs +27 -0
  105. package/dist/lib/node-esm/state-HDON4REW.mjs.map +7 -0
  106. package/dist/lib/node-esm/toolkit-OWGCEKOO.mjs +19 -0
  107. package/dist/lib/node-esm/toolkit-OWGCEKOO.mjs.map +7 -0
  108. package/dist/lib/node-esm/types/index.mjs +11 -4
  109. package/dist/types/src/AssistantPlugin.d.ts +2 -1
  110. package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
  111. package/dist/types/src/blueprints/assistant-blueprint.d.ts +209 -0
  112. package/dist/types/src/blueprints/assistant-blueprint.d.ts.map +1 -0
  113. package/dist/types/src/blueprints/index.d.ts +7 -0
  114. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  115. package/dist/types/src/capabilities/ai-service/ai-service.d.ts +5 -0
  116. package/dist/types/src/capabilities/ai-service/ai-service.d.ts.map +1 -0
  117. package/dist/types/src/capabilities/ai-service/index.d.ts +3 -0
  118. package/dist/types/src/capabilities/ai-service/index.d.ts.map +1 -0
  119. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  120. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  121. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  122. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  123. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +21 -0
  124. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
  125. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +4 -0
  126. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
  127. package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts +6 -0
  128. package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts.map +1 -0
  129. package/dist/types/src/capabilities/edge-model-resolver/index.d.ts +3 -0
  130. package/dist/types/src/capabilities/edge-model-resolver/index.d.ts.map +1 -0
  131. package/dist/types/src/capabilities/index.d.ts +11 -4
  132. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  133. package/dist/types/src/capabilities/local-model-resolver/index.d.ts +3 -0
  134. package/dist/types/src/capabilities/local-model-resolver/index.d.ts.map +1 -0
  135. package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts +12 -0
  136. package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts.map +1 -0
  137. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  138. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  139. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  140. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  141. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  142. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  143. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  144. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  145. package/dist/types/src/capabilities/repair/index.d.ts +3 -0
  146. package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
  147. package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
  148. package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
  149. package/dist/types/src/capabilities/settings/index.d.ts +15 -0
  150. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  151. package/dist/types/src/capabilities/settings/settings.d.ts +17 -0
  152. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  153. package/dist/types/src/capabilities/state/index.d.ts +11 -0
  154. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  155. package/dist/types/src/capabilities/state/state.d.ts +13 -0
  156. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  157. package/dist/types/src/capabilities/toolkit/index.d.ts +3 -0
  158. package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -0
  159. package/dist/types/src/capabilities/toolkit/toolkit.d.ts +5 -0
  160. package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -0
  161. package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts +4 -2
  162. package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -1
  163. package/dist/types/src/components/BlueprintArticle.d.ts +7 -0
  164. package/dist/types/src/components/BlueprintArticle.d.ts.map +1 -0
  165. package/dist/types/src/components/Chat/Chat.d.ts +33 -20
  166. package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
  167. package/dist/types/src/components/Chat/events.d.ts +10 -1
  168. package/dist/types/src/components/Chat/events.d.ts.map +1 -1
  169. package/dist/types/src/components/ChatCompanion.d.ts +13 -0
  170. package/dist/types/src/components/ChatCompanion.d.ts.map +1 -0
  171. package/dist/types/src/components/ChatContainer.d.ts +15 -7
  172. package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
  173. package/dist/types/src/components/ChatDialog.d.ts.map +1 -1
  174. package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +7 -0
  175. package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +1 -0
  176. package/dist/types/src/components/ChatProgress/index.d.ts +2 -0
  177. package/dist/types/src/components/ChatProgress/index.d.ts.map +1 -0
  178. package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
  179. package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +20 -0
  180. package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -0
  181. package/dist/types/src/components/ChatPrompt/ChatPresets.d.ts.map +1 -1
  182. package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +5 -6
  183. package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
  184. package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts +6 -4
  185. package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts.map +1 -1
  186. package/dist/types/src/components/ChatPrompt/index.d.ts +1 -1
  187. package/dist/types/src/components/ChatPrompt/index.d.ts.map +1 -1
  188. package/dist/types/src/components/ChatThread/ChatThread.d.ts +13 -11
  189. package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
  190. package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +198 -56
  191. package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
  192. package/dist/types/src/components/ChatThread/Link.d.ts +9 -0
  193. package/dist/types/src/components/ChatThread/Link.d.ts.map +1 -0
  194. package/dist/types/src/components/ChatThread/registry.d.ts +11 -0
  195. package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -0
  196. package/dist/types/src/components/ChatThread/sync.d.ts +42 -0
  197. package/dist/types/src/components/ChatThread/sync.d.ts.map +1 -0
  198. package/dist/types/src/components/ChatThread/sync.test.d.ts +2 -0
  199. package/dist/types/src/components/ChatThread/sync.test.d.ts.map +1 -0
  200. package/dist/types/src/components/PromptArticle.d.ts +7 -0
  201. package/dist/types/src/components/PromptArticle.d.ts.map +1 -0
  202. package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +2 -6
  203. package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
  204. package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +317 -7
  205. package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
  206. package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +12 -2
  207. package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
  208. package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +314 -2
  209. package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
  210. package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts +12 -0
  211. package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +1 -0
  212. package/dist/types/src/components/TemplateEditor/extensions/index.d.ts +3 -0
  213. package/dist/types/src/components/TemplateEditor/extensions/index.d.ts.map +1 -0
  214. package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts +8 -0
  215. package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts.map +1 -0
  216. package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +21 -0
  217. package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -0
  218. package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts +2 -0
  219. package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts.map +1 -0
  220. package/dist/types/src/components/ToolBlock/index.d.ts +3 -0
  221. package/dist/types/src/components/ToolBlock/index.d.ts.map +1 -0
  222. package/dist/types/src/components/Toolbox/Toolbox.d.ts +9 -15
  223. package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
  224. package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +318 -5
  225. package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
  226. package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts +12 -0
  227. package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts.map +1 -0
  228. package/dist/types/src/components/Typewriter/Typewriter.d.ts +11 -0
  229. package/dist/types/src/components/Typewriter/Typewriter.d.ts.map +1 -0
  230. package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts +7 -0
  231. package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts.map +1 -0
  232. package/dist/types/src/components/Typewriter/assistant-extension.d.ts +5 -0
  233. package/dist/types/src/components/Typewriter/assistant-extension.d.ts.map +1 -0
  234. package/dist/types/src/components/Typewriter/index.d.ts +2 -0
  235. package/dist/types/src/components/Typewriter/index.d.ts.map +1 -0
  236. package/dist/types/src/components/index.d.ts +10 -6
  237. package/dist/types/src/components/index.d.ts.map +1 -1
  238. package/dist/types/src/functions/index.d.ts +4 -0
  239. package/dist/types/src/functions/index.d.ts.map +1 -0
  240. package/dist/types/src/functions/object-list.d.ts +10 -0
  241. package/dist/types/src/functions/object-list.d.ts.map +1 -0
  242. package/dist/types/src/functions/object-load.d.ts +8 -0
  243. package/dist/types/src/functions/object-load.d.ts.map +1 -0
  244. package/dist/types/src/functions/object-search.d.ts +10 -0
  245. package/dist/types/src/functions/object-search.d.ts.map +1 -0
  246. package/dist/types/src/hooks/index.d.ts +8 -3
  247. package/dist/types/src/hooks/index.d.ts.map +1 -1
  248. package/dist/types/src/hooks/useBlueprintRegistry.d.ts +25 -0
  249. package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -0
  250. package/dist/types/src/hooks/useChatProcessor.d.ts +8 -19
  251. package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
  252. package/dist/types/src/hooks/useChatServices.d.ts +7 -8
  253. package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
  254. package/dist/types/src/hooks/useChatToolbarActions.d.ts +8 -0
  255. package/dist/types/src/hooks/useChatToolbarActions.d.ts.map +1 -0
  256. package/dist/types/src/hooks/useContextBinder.d.ts +4 -0
  257. package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -0
  258. package/dist/types/src/hooks/useContextObjects.d.ts +15 -0
  259. package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -0
  260. package/dist/types/src/hooks/useFilteredTypes.d.ts +3 -0
  261. package/dist/types/src/hooks/useFilteredTypes.d.ts.map +1 -0
  262. package/dist/types/src/hooks/useFlush.d.ts +6 -0
  263. package/dist/types/src/hooks/useFlush.d.ts.map +1 -0
  264. package/dist/types/src/hooks/useOnline.d.ts +3 -0
  265. package/dist/types/src/hooks/useOnline.d.ts.map +1 -0
  266. package/dist/types/src/hooks/usePresets.d.ts +7 -0
  267. package/dist/types/src/hooks/usePresets.d.ts.map +1 -0
  268. package/dist/types/src/hooks/useReferencesProvider.d.ts.map +1 -1
  269. package/dist/types/src/index.d.ts +2 -1
  270. package/dist/types/src/index.d.ts.map +1 -1
  271. package/dist/types/src/meta.d.ts +3 -4
  272. package/dist/types/src/meta.d.ts.map +1 -1
  273. package/dist/types/src/processor/index.d.ts +4 -0
  274. package/dist/types/src/processor/index.d.ts.map +1 -0
  275. package/dist/types/src/{hooks → processor}/presets.d.ts +3 -3
  276. package/dist/types/src/processor/presets.d.ts.map +1 -0
  277. package/dist/types/src/processor/processor.d.ts +75 -0
  278. package/dist/types/src/processor/processor.d.ts.map +1 -0
  279. package/dist/types/src/processor/processor.test.d.ts +2 -0
  280. package/dist/types/src/processor/processor.test.d.ts.map +1 -0
  281. package/dist/types/src/processor/update-name.d.ts +10 -0
  282. package/dist/types/src/processor/update-name.d.ts.map +1 -0
  283. package/dist/types/src/queue-logger.d.ts.map +1 -1
  284. package/dist/types/src/testing/index.d.ts +1 -1
  285. package/dist/types/src/testing/index.d.ts.map +1 -1
  286. package/dist/types/src/testing/test-generator.d.ts +8 -0
  287. package/dist/types/src/testing/test-generator.d.ts.map +1 -0
  288. package/dist/types/src/testing/test-sequence.d.ts +0 -4
  289. package/dist/types/src/testing/test-sequence.d.ts.map +1 -1
  290. package/dist/types/src/testing/test-services.d.ts +2 -2
  291. package/dist/types/src/testing/test-services.d.ts.map +1 -1
  292. package/dist/types/src/translations.d.ts +262 -28
  293. package/dist/types/src/translations.d.ts.map +1 -1
  294. package/dist/types/src/types/Assistant.d.ts +42 -0
  295. package/dist/types/src/types/Assistant.d.ts.map +1 -0
  296. package/dist/types/src/types/AssistantAction.d.ts +95 -0
  297. package/dist/types/src/types/AssistantAction.d.ts.map +1 -0
  298. package/dist/types/src/types/capabilities.d.ts +33 -0
  299. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  300. package/dist/types/src/types/defs.d.ts +2 -0
  301. package/dist/types/src/types/defs.d.ts.map +1 -0
  302. package/dist/types/src/types/events.d.ts +5 -0
  303. package/dist/types/src/types/events.d.ts.map +1 -0
  304. package/dist/types/src/types/index.d.ts +5 -1
  305. package/dist/types/src/types/index.d.ts.map +1 -1
  306. package/dist/types/src/types/service.d.ts +14 -213
  307. package/dist/types/src/types/service.d.ts.map +1 -1
  308. package/dist/types/tsconfig.tsbuildinfo +1 -1
  309. package/package.json +124 -100
  310. package/src/AssistantPlugin.tsx +125 -113
  311. package/src/blueprints/assistant-blueprint.ts +62 -0
  312. package/src/blueprints/index.ts +12 -0
  313. package/src/capabilities/ai-service/ai-service.ts +29 -0
  314. package/src/capabilities/ai-service/index.ts +7 -0
  315. package/src/capabilities/app-graph-builder/app-graph-builder.ts +180 -0
  316. package/src/capabilities/app-graph-builder/index.ts +7 -0
  317. package/src/capabilities/blueprint-definition/blueprint-definition.ts +60 -0
  318. package/src/capabilities/blueprint-definition/index.ts +8 -0
  319. package/src/capabilities/edge-model-resolver/edge-model-resolver.ts +32 -0
  320. package/src/capabilities/edge-model-resolver/index.ts +7 -0
  321. package/src/capabilities/index.ts +11 -6
  322. package/src/capabilities/local-model-resolver/index.ts +7 -0
  323. package/src/capabilities/local-model-resolver/local-model-resolver.ts +37 -0
  324. package/src/capabilities/operation-resolver/index.ts +7 -0
  325. package/src/capabilities/operation-resolver/operation-resolver.ts +110 -0
  326. package/src/capabilities/react-surface/index.ts +7 -0
  327. package/src/capabilities/react-surface/react-surface.tsx +95 -0
  328. package/src/capabilities/repair/index.ts +7 -0
  329. package/src/capabilities/repair/repair.ts +63 -0
  330. package/src/capabilities/settings/index.ts +7 -0
  331. package/src/capabilities/settings/settings.ts +30 -0
  332. package/src/capabilities/state/index.ts +7 -0
  333. package/src/capabilities/state/state.ts +27 -0
  334. package/src/capabilities/toolkit/index.ts +7 -0
  335. package/src/capabilities/toolkit/toolkit.ts +26 -0
  336. package/src/components/AssistantSettings/AssistantSettings.tsx +92 -77
  337. package/src/components/BlueprintArticle.tsx +29 -0
  338. package/src/components/Chat/Chat.tsx +237 -194
  339. package/src/components/Chat/events.ts +14 -1
  340. package/src/components/ChatCompanion.tsx +163 -0
  341. package/src/components/ChatContainer.tsx +48 -32
  342. package/src/components/ChatDialog.tsx +28 -18
  343. package/src/components/ChatProgress/ChatProgress.tsx +54 -0
  344. package/src/components/{SequenceEditor → ChatProgress}/index.ts +1 -1
  345. package/src/components/ChatPrompt/ChatActions.tsx +11 -27
  346. package/src/components/ChatPrompt/ChatOptions.tsx +238 -0
  347. package/src/components/ChatPrompt/ChatPresets.tsx +1 -0
  348. package/src/components/ChatPrompt/ChatReferences.tsx +32 -38
  349. package/src/components/ChatPrompt/ChatStatusIndicator.tsx +25 -22
  350. package/src/components/ChatPrompt/index.ts +1 -1
  351. package/src/components/ChatThread/ChatThread.stories.tsx +123 -116
  352. package/src/components/ChatThread/ChatThread.tsx +66 -36
  353. package/src/components/ChatThread/Link.tsx +26 -0
  354. package/src/components/ChatThread/registry.tsx +174 -0
  355. package/src/components/ChatThread/sync.test.ts +97 -0
  356. package/src/components/ChatThread/sync.ts +154 -0
  357. package/src/components/ChatThread/testing/thread.md +37 -0
  358. package/src/components/PromptArticle.tsx +50 -0
  359. package/src/components/TemplateEditor/TemplateEditor.stories.tsx +38 -17
  360. package/src/components/TemplateEditor/TemplateEditor.tsx +33 -54
  361. package/src/components/TemplateEditor/TemplateForm.stories.tsx +28 -15
  362. package/src/components/TemplateEditor/TemplateForm.tsx +80 -31
  363. package/src/components/TemplateEditor/extensions/handlebars-extension.ts +274 -0
  364. package/src/components/TemplateEditor/extensions/index.ts +6 -0
  365. package/src/components/TemplateEditor/extensions/xml-extension.ts +64 -0
  366. package/src/components/ToolBlock/ToolBlock.tsx +143 -0
  367. package/src/components/ToolBlock/ToolBlockWidget.tsx +5 -0
  368. package/src/components/ToolBlock/index.ts +6 -0
  369. package/src/components/Toolbox/Toolbox.stories.tsx +18 -28
  370. package/src/components/Toolbox/Toolbox.tsx +37 -68
  371. package/src/components/Typewriter/AssistantToolbar.tsx +161 -0
  372. package/src/components/Typewriter/Typewriter.stories.tsx +83 -0
  373. package/src/components/Typewriter/Typewriter.tsx +54 -0
  374. package/src/components/Typewriter/assistant-extension.tsx +144 -0
  375. package/src/components/Typewriter/index.ts +5 -0
  376. package/src/components/index.ts +3 -7
  377. package/src/functions/index.ts +7 -0
  378. package/src/functions/object-list.ts +49 -0
  379. package/src/functions/object-load.ts +47 -0
  380. package/src/functions/object-search.ts +46 -0
  381. package/src/hooks/index.ts +8 -4
  382. package/src/hooks/useBlueprintRegistry.ts +105 -0
  383. package/src/hooks/useChatProcessor.ts +38 -104
  384. package/src/hooks/useChatServices.ts +31 -51
  385. package/src/hooks/useChatToolbarActions.ts +121 -0
  386. package/src/hooks/useContextBinder.ts +32 -0
  387. package/src/hooks/useContextObjects.ts +46 -0
  388. package/src/hooks/useFilteredTypes.ts +37 -0
  389. package/src/hooks/useFlush.ts +35 -0
  390. package/src/hooks/useOnline.ts +10 -0
  391. package/src/hooks/usePresets.ts +44 -0
  392. package/src/hooks/useReferencesProvider.ts +15 -12
  393. package/src/index.ts +2 -1
  394. package/src/meta.ts +11 -8
  395. package/src/processor/index.ts +7 -0
  396. package/src/{hooks → processor}/presets.ts +16 -8
  397. package/src/processor/processor.test.ts +72 -0
  398. package/src/processor/processor.ts +275 -0
  399. package/src/processor/update-name.ts +59 -0
  400. package/src/queue-logger.ts +17 -18
  401. package/src/testing/index.ts +1 -1
  402. package/src/testing/test-generator.ts +262 -0
  403. package/src/testing/test-sequence.ts +2 -27
  404. package/src/testing/test-services.ts +10 -14
  405. package/src/translations.ts +49 -18
  406. package/src/types/Assistant.ts +62 -0
  407. package/src/types/AssistantAction.ts +75 -0
  408. package/src/types/capabilities.ts +27 -0
  409. package/src/types/defs.ts +5 -0
  410. package/src/types/events.ts +11 -0
  411. package/src/types/index.ts +6 -1
  412. package/src/types/service.ts +25 -14
  413. package/src/vite-env.d.ts +30 -0
  414. package/dist/lib/browser/BlueprintContainer-IZ4AK5EO.mjs +0 -28
  415. package/dist/lib/browser/BlueprintContainer-IZ4AK5EO.mjs.map +0 -7
  416. package/dist/lib/browser/ChatContainer-RP3QEXYX.mjs +0 -54
  417. package/dist/lib/browser/ChatContainer-RP3QEXYX.mjs.map +0 -7
  418. package/dist/lib/browser/ChatDialog-ZVLXFHEY.mjs +0 -72
  419. package/dist/lib/browser/ChatDialog-ZVLXFHEY.mjs.map +0 -7
  420. package/dist/lib/browser/SequenceContainer-3UDVKWPA.mjs +0 -162
  421. package/dist/lib/browser/SequenceContainer-3UDVKWPA.mjs.map +0 -7
  422. package/dist/lib/browser/app-graph-builder-XSEOKJLG.mjs +0 -164
  423. package/dist/lib/browser/app-graph-builder-XSEOKJLG.mjs.map +0 -7
  424. package/dist/lib/browser/chunk-63GG6U6D.mjs +0 -2226
  425. package/dist/lib/browser/chunk-63GG6U6D.mjs.map +0 -7
  426. package/dist/lib/browser/chunk-7W7LHTRH.mjs +0 -171
  427. package/dist/lib/browser/chunk-7W7LHTRH.mjs.map +0 -7
  428. package/dist/lib/browser/chunk-FDCJSQYF.mjs +0 -40
  429. package/dist/lib/browser/chunk-FDCJSQYF.mjs.map +0 -7
  430. package/dist/lib/browser/chunk-KFXSBNZR.mjs +0 -89
  431. package/dist/lib/browser/chunk-KFXSBNZR.mjs.map +0 -7
  432. package/dist/lib/browser/chunk-LERGF5YG.mjs +0 -108
  433. package/dist/lib/browser/chunk-LERGF5YG.mjs.map +0 -7
  434. package/dist/lib/browser/intent-resolver-MV3VSZLS.mjs +0 -75
  435. package/dist/lib/browser/intent-resolver-MV3VSZLS.mjs.map +0 -7
  436. package/dist/lib/browser/react-surface-3GYEHQRP.mjs +0 -150
  437. package/dist/lib/browser/react-surface-3GYEHQRP.mjs.map +0 -7
  438. package/dist/lib/browser/settings-5GTTCVGD.mjs +0 -22
  439. package/dist/lib/browser/settings-5GTTCVGD.mjs.map +0 -7
  440. package/dist/lib/node-esm/BlueprintContainer-RGTMNLNX.mjs +0 -29
  441. package/dist/lib/node-esm/BlueprintContainer-RGTMNLNX.mjs.map +0 -7
  442. package/dist/lib/node-esm/ChatContainer-W3W6FWV3.mjs +0 -55
  443. package/dist/lib/node-esm/ChatContainer-W3W6FWV3.mjs.map +0 -7
  444. package/dist/lib/node-esm/ChatDialog-QW4JRKVO.mjs +0 -73
  445. package/dist/lib/node-esm/ChatDialog-QW4JRKVO.mjs.map +0 -7
  446. package/dist/lib/node-esm/SequenceContainer-RQQH5XOC.mjs +0 -163
  447. package/dist/lib/node-esm/SequenceContainer-RQQH5XOC.mjs.map +0 -7
  448. package/dist/lib/node-esm/app-graph-builder-PANCJUHV.mjs +0 -165
  449. package/dist/lib/node-esm/app-graph-builder-PANCJUHV.mjs.map +0 -7
  450. package/dist/lib/node-esm/chunk-BFO3KHYL.mjs +0 -2227
  451. package/dist/lib/node-esm/chunk-BFO3KHYL.mjs.map +0 -7
  452. package/dist/lib/node-esm/chunk-MS3PJARN.mjs +0 -109
  453. package/dist/lib/node-esm/chunk-MS3PJARN.mjs.map +0 -7
  454. package/dist/lib/node-esm/chunk-QN2H2EHV.mjs +0 -41
  455. package/dist/lib/node-esm/chunk-QN2H2EHV.mjs.map +0 -7
  456. package/dist/lib/node-esm/chunk-VIIMA3XQ.mjs +0 -90
  457. package/dist/lib/node-esm/chunk-VIIMA3XQ.mjs.map +0 -7
  458. package/dist/lib/node-esm/chunk-Z7PUODRT.mjs +0 -172
  459. package/dist/lib/node-esm/chunk-Z7PUODRT.mjs.map +0 -7
  460. package/dist/lib/node-esm/intent-resolver-3FMC3GHC.mjs +0 -76
  461. package/dist/lib/node-esm/intent-resolver-3FMC3GHC.mjs.map +0 -7
  462. package/dist/lib/node-esm/react-surface-QDQWJ7FZ.mjs +0 -151
  463. package/dist/lib/node-esm/react-surface-QDQWJ7FZ.mjs.map +0 -7
  464. package/dist/lib/node-esm/settings-J2EXEM5H.mjs +0 -23
  465. package/dist/lib/node-esm/settings-J2EXEM5H.mjs.map +0 -7
  466. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  467. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  468. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  469. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  470. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  471. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  472. package/dist/types/src/capabilities/settings.d.ts +0 -4
  473. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  474. package/dist/types/src/capability-definitions.d.ts +0 -7
  475. package/dist/types/src/capability-definitions.d.ts.map +0 -1
  476. package/dist/types/src/components/BlueprintContainer.d.ts +0 -8
  477. package/dist/types/src/components/BlueprintContainer.d.ts.map +0 -1
  478. package/dist/types/src/components/ChatPrompt/ChatOptionsMenu.d.ts +0 -9
  479. package/dist/types/src/components/ChatPrompt/ChatOptionsMenu.d.ts.map +0 -1
  480. package/dist/types/src/components/ChatThread/ChatMessage.d.ts +0 -17
  481. package/dist/types/src/components/ChatThread/ChatMessage.d.ts.map +0 -1
  482. package/dist/types/src/components/ChatThread/ToolBlock.d.ts +0 -19
  483. package/dist/types/src/components/ChatThread/ToolBlock.d.ts.map +0 -1
  484. package/dist/types/src/components/ChatThread/reducer.d.ts +0 -12
  485. package/dist/types/src/components/ChatThread/reducer.d.ts.map +0 -1
  486. package/dist/types/src/components/PromptSettings.d.ts +0 -6
  487. package/dist/types/src/components/PromptSettings.d.ts.map +0 -1
  488. package/dist/types/src/components/SequenceContainer.d.ts +0 -8
  489. package/dist/types/src/components/SequenceContainer.d.ts.map +0 -1
  490. package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts +0 -13
  491. package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts.map +0 -1
  492. package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts +0 -8
  493. package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts.map +0 -1
  494. package/dist/types/src/components/SequenceEditor/index.d.ts +0 -2
  495. package/dist/types/src/components/SequenceEditor/index.d.ts.map +0 -1
  496. package/dist/types/src/events.d.ts +0 -4
  497. package/dist/types/src/events.d.ts.map +0 -1
  498. package/dist/types/src/hooks/chat-processor.d.ts +0 -86
  499. package/dist/types/src/hooks/chat-processor.d.ts.map +0 -1
  500. package/dist/types/src/hooks/chat-processor.test.d.ts +0 -2
  501. package/dist/types/src/hooks/chat-processor.test.d.ts.map +0 -1
  502. package/dist/types/src/hooks/presets.d.ts.map +0 -1
  503. package/dist/types/src/hooks/useBlueprints.d.ts +0 -9
  504. package/dist/types/src/hooks/useBlueprints.d.ts.map +0 -1
  505. package/dist/types/src/parser/filter-generator.d.ts +0 -4
  506. package/dist/types/src/parser/filter-generator.d.ts.map +0 -1
  507. package/dist/types/src/parser/filter-generator.test.d.ts +0 -2
  508. package/dist/types/src/parser/filter-generator.test.d.ts.map +0 -1
  509. package/dist/types/src/parser/index.d.ts +0 -4
  510. package/dist/types/src/parser/index.d.ts.map +0 -1
  511. package/dist/types/src/parser/query-parser.d.ts +0 -15
  512. package/dist/types/src/parser/query-parser.d.ts.map +0 -1
  513. package/dist/types/src/parser/query-parser.test.d.ts +0 -2
  514. package/dist/types/src/parser/query-parser.test.d.ts.map +0 -1
  515. package/dist/types/src/parser/types.d.ts +0 -24
  516. package/dist/types/src/parser/types.d.ts.map +0 -1
  517. package/dist/types/src/stories/Chat.stories.d.ts +0 -207
  518. package/dist/types/src/stories/Chat.stories.d.ts.map +0 -1
  519. package/dist/types/src/testing/test-functions.d.ts +0 -3
  520. package/dist/types/src/testing/test-functions.d.ts.map +0 -1
  521. package/dist/types/src/tools/function.d.ts +0 -5
  522. package/dist/types/src/tools/function.d.ts.map +0 -1
  523. package/dist/types/src/tools/index.d.ts +0 -3
  524. package/dist/types/src/tools/index.d.ts.map +0 -1
  525. package/dist/types/src/tools/openapi.d.ts +0 -10
  526. package/dist/types/src/tools/openapi.d.ts.map +0 -1
  527. package/dist/types/src/tools/openapi.test.d.ts +0 -2
  528. package/dist/types/src/tools/openapi.test.d.ts.map +0 -1
  529. package/dist/types/src/types/schema.d.ts +0 -120
  530. package/dist/types/src/types/schema.d.ts.map +0 -1
  531. package/src/capabilities/app-graph-builder.ts +0 -169
  532. package/src/capabilities/intent-resolver.ts +0 -72
  533. package/src/capabilities/react-surface.tsx +0 -138
  534. package/src/capabilities/settings.ts +0 -19
  535. package/src/capability-definitions.ts +0 -15
  536. package/src/components/BlueprintContainer.tsx +0 -24
  537. package/src/components/ChatPrompt/ChatOptionsMenu.tsx +0 -52
  538. package/src/components/ChatThread/ChatMessage.tsx +0 -268
  539. package/src/components/ChatThread/ToolBlock.tsx +0 -121
  540. package/src/components/ChatThread/reducer.ts +0 -52
  541. package/src/components/PromptSettings.tsx +0 -89
  542. package/src/components/SequenceContainer.tsx +0 -132
  543. package/src/components/SequenceEditor/SequenceEditor.stories.tsx +0 -32
  544. package/src/components/SequenceEditor/SequenceEditor.tsx +0 -50
  545. package/src/events.ts +0 -11
  546. package/src/hooks/chat-processor.test.ts +0 -16
  547. package/src/hooks/chat-processor.ts +0 -314
  548. package/src/hooks/useBlueprints.ts +0 -57
  549. package/src/parser/filter-generator.test.ts +0 -32
  550. package/src/parser/filter-generator.ts +0 -81
  551. package/src/parser/index.ts +0 -7
  552. package/src/parser/query-parser.test.ts +0 -139
  553. package/src/parser/query-parser.ts +0 -199
  554. package/src/parser/types.ts +0 -34
  555. package/src/shims.d.ts +0 -8
  556. package/src/stories/Chat.stories.tsx +0 -371
  557. package/src/testing/test-functions.ts +0 -11
  558. package/src/tools/function.ts +0 -46
  559. package/src/tools/index.ts +0 -6
  560. package/src/tools/openapi.test.ts +0 -217
  561. package/src/tools/openapi.ts +0 -338
  562. package/src/types/schema.ts +0 -108
  563. package/src/typings.d.ts +0 -9
package/package.json CHANGED
@@ -1,30 +1,44 @@
1
1
  {
2
2
  "name": "@dxos/plugin-assistant",
3
- "version": "0.8.4-main.67995b8",
3
+ "version": "0.8.4-main.69d29f4",
4
4
  "description": "Assistant plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
7
11
  "license": "MIT",
8
12
  "author": "DXOS.org",
9
13
  "sideEffects": true,
10
14
  "type": "module",
11
15
  "exports": {
12
16
  ".": {
17
+ "source": "./src/index.ts",
13
18
  "types": "./dist/types/src/index.d.ts",
14
19
  "browser": "./dist/lib/browser/index.mjs",
15
- "node": "./dist/lib/node-esm/index.mjs",
16
- "source": "./src/index.ts"
20
+ "node": "./dist/lib/node-esm/index.mjs"
21
+ },
22
+ "./blueprints": {
23
+ "source": "./src/blueprints/index.ts",
24
+ "types": "./dist/types/src/blueprints/index.d.ts",
25
+ "browser": "./dist/lib/browser/blueprints/index.mjs",
26
+ "node": "./dist/lib/node-esm/blueprints/index.mjs",
27
+ "default": "./src/blueprints/index.ts"
17
28
  },
18
29
  "./types": {
30
+ "source": "./src/types/index.ts",
19
31
  "types": "./dist/types/src/types/index.d.ts",
20
32
  "browser": "./dist/lib/browser/types/index.mjs",
21
- "node": "./dist/lib/node-esm/types/index.mjs",
22
- "source": "./src/types/index.ts"
33
+ "node": "./dist/lib/node-esm/types/index.mjs"
23
34
  }
24
35
  },
25
36
  "types": "dist/types/src/index.d.ts",
26
37
  "typesVersions": {
27
38
  "*": {
39
+ "blueprints": [
40
+ "dist/types/src/blueprints/index.d.ts"
41
+ ],
28
42
  "types": [
29
43
  "dist/types/src/types/index.d.ts"
30
44
  ]
@@ -36,114 +50,124 @@
36
50
  "src"
37
51
  ],
38
52
  "dependencies": {
39
- "@codemirror/autocomplete": "^6.18.1",
40
- "@codemirror/language": "^6.10.3",
41
- "@codemirror/search": "^6.5.6",
42
- "@codemirror/state": "^6.4.1",
43
- "@codemirror/view": "^6.34.1",
44
- "@effect/ai": "0.23.0",
45
- "@lezer/highlight": "^1.2.1",
46
- "@preact-signals/safe-react": "^0.9.0",
47
- "@preact/signals-core": "^1.9.0",
48
- "@preact/signals-react": "^3.2.0",
53
+ "@codemirror/autocomplete": "^6.19.0",
54
+ "@codemirror/lang-html": "^6.4.11",
55
+ "@codemirror/lang-markdown": "6.3.4",
56
+ "@codemirror/lang-xml": "^6.1.0",
57
+ "@codemirror/language": "^6.11.3",
58
+ "@codemirror/lint": "6.8.5",
59
+ "@codemirror/state": "^6.5.2",
60
+ "@codemirror/view": "^6.38.4",
61
+ "@effect-atom/atom": "^0.4.13",
62
+ "@effect-atom/atom-react": "^0.4.6",
63
+ "@effect/ai": "0.32.1",
64
+ "@effect/ai-anthropic": "0.22.0",
65
+ "@effect/ai-openai": "0.36.0",
66
+ "@effect/experimental": "0.57.11",
67
+ "@effect/platform-browser": "0.73.0",
49
68
  "@radix-ui/react-context": "1.1.1",
50
- "@xiechao/codemirror-lang-handlebars": "1.0.4",
51
- "effect": "3.17.0",
69
+ "effect": "3.19.11",
52
70
  "exa-js": "^1.5.12",
53
71
  "json5": "^2.2.3",
54
72
  "jsonpointer": "^5.0.1",
55
73
  "lodash.defaultsdeep": "^4.6.1",
56
74
  "unified": "^11.0.0",
57
75
  "use-deep-compare-effect": "^1.8.1",
58
- "@dxos/ai": "0.8.4-main.67995b8",
59
- "@dxos/app-framework": "0.8.4-main.67995b8",
60
- "@dxos/assistant": "0.8.4-main.67995b8",
61
- "@dxos/blueprints": "0.8.4-main.67995b8",
62
- "@dxos/client": "0.8.4-main.67995b8",
63
- "@dxos/async": "0.8.4-main.67995b8",
64
- "@dxos/compute": "0.8.4-main.67995b8",
65
- "@dxos/conductor": "0.8.4-main.67995b8",
66
- "@dxos/config": "0.8.4-main.67995b8",
67
- "@dxos/context": "0.8.4-main.67995b8",
68
- "@dxos/devtools": "0.8.4-main.67995b8",
69
- "@dxos/debug": "0.8.4-main.67995b8",
70
- "@dxos/echo": "0.8.4-main.67995b8",
71
- "@dxos/echo-db": "0.8.4-main.67995b8",
72
- "@dxos/echo-protocol": "0.8.4-main.67995b8",
73
- "@dxos/echo-schema": "0.8.4-main.67995b8",
74
- "@dxos/edge-client": "0.8.4-main.67995b8",
75
- "@dxos/effect": "0.8.4-main.67995b8",
76
- "@dxos/functions": "0.8.4-main.67995b8",
77
- "@dxos/graph": "0.8.4-main.67995b8",
78
- "@dxos/invariant": "0.8.4-main.67995b8",
79
- "@dxos/keys": "0.8.4-main.67995b8",
80
- "@dxos/live-object": "0.8.4-main.67995b8",
81
- "@dxos/local-storage": "0.8.4-main.67995b8",
82
- "@dxos/log": "0.8.4-main.67995b8",
83
- "@dxos/plugin-client": "0.8.4-main.67995b8",
84
- "@dxos/plugin-deck": "0.8.4-main.67995b8",
85
- "@dxos/plugin-explorer": "0.8.4-main.67995b8",
86
- "@dxos/plugin-graph": "0.8.4-main.67995b8",
87
- "@dxos/plugin-inbox": "0.8.4-main.67995b8",
88
- "@dxos/plugin-markdown": "0.8.4-main.67995b8",
89
- "@dxos/plugin-preview": "0.8.4-main.67995b8",
90
- "@dxos/plugin-script": "0.8.4-main.67995b8",
91
- "@dxos/plugin-sketch": "0.8.4-main.67995b8",
92
- "@dxos/plugin-space": "0.8.4-main.67995b8",
93
- "@dxos/plugin-stack": "0.8.4-main.67995b8",
94
- "@dxos/plugin-transcription": "0.8.4-main.67995b8",
95
- "@dxos/plugin-wnfs": "0.8.4-main.67995b8",
96
- "@dxos/protocols": "0.8.4-main.67995b8",
97
- "@dxos/react-client": "0.8.4-main.67995b8",
98
- "@dxos/react-ui-attention": "0.8.4-main.67995b8",
99
- "@dxos/react-ui-canvas-editor": "0.8.4-main.67995b8",
100
- "@dxos/react-ui-canvas-compute": "0.8.4-main.67995b8",
101
- "@dxos/react-edge-client": "0.8.4-main.67995b8",
102
- "@dxos/react-ui-chat": "0.8.4-main.67995b8",
103
- "@dxos/react-ui-components": "0.8.4-main.67995b8",
104
- "@dxos/react-ui-editor": "0.8.4-main.67995b8",
105
- "@dxos/react-ui-form": "0.8.4-main.67995b8",
106
- "@dxos/react-ui-list": "0.8.4-main.67995b8",
107
- "@dxos/react-ui-graph": "0.8.4-main.67995b8",
108
- "@dxos/react-ui-sfx": "0.8.4-main.67995b8",
109
- "@dxos/react-ui-stack": "0.8.4-main.67995b8",
110
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.67995b8",
111
- "@dxos/react-ui-tag-picker": "0.8.4-main.67995b8",
112
- "@dxos/util": "0.8.4-main.67995b8",
113
- "@dxos/schema": "0.8.4-main.67995b8"
76
+ "@dxos/ai": "0.8.4-main.69d29f4",
77
+ "@dxos/assistant": "0.8.4-main.69d29f4",
78
+ "@dxos/app-framework": "0.8.4-main.69d29f4",
79
+ "@dxos/blueprints": "0.8.4-main.69d29f4",
80
+ "@dxos/assistant-toolkit": "0.8.4-main.69d29f4",
81
+ "@dxos/client": "0.8.4-main.69d29f4",
82
+ "@dxos/compute": "0.8.4-main.69d29f4",
83
+ "@dxos/conductor": "0.8.4-main.69d29f4",
84
+ "@dxos/async": "0.8.4-main.69d29f4",
85
+ "@dxos/config": "0.8.4-main.69d29f4",
86
+ "@dxos/context": "0.8.4-main.69d29f4",
87
+ "@dxos/devtools": "0.8.4-main.69d29f4",
88
+ "@dxos/echo": "0.8.4-main.69d29f4",
89
+ "@dxos/debug": "0.8.4-main.69d29f4",
90
+ "@dxos/echo-db": "0.8.4-main.69d29f4",
91
+ "@dxos/echo-atom": "0.8.4-main.69d29f4",
92
+ "@dxos/echo-protocol": "0.8.4-main.69d29f4",
93
+ "@dxos/echo-query": "0.8.4-main.69d29f4",
94
+ "@dxos/edge-client": "0.8.4-main.69d29f4",
95
+ "@dxos/effect": "0.8.4-main.69d29f4",
96
+ "@dxos/functions-runtime": "0.8.4-main.69d29f4",
97
+ "@dxos/functions": "0.8.4-main.69d29f4",
98
+ "@dxos/graph": "0.8.4-main.69d29f4",
99
+ "@dxos/keys": "0.8.4-main.69d29f4",
100
+ "@dxos/lit-ui": "0.8.4-main.69d29f4",
101
+ "@dxos/log": "0.8.4-main.69d29f4",
102
+ "@dxos/invariant": "0.8.4-main.69d29f4",
103
+ "@dxos/operation": "0.8.4-main.69d29f4",
104
+ "@dxos/plugin-automation": "0.8.4-main.69d29f4",
105
+ "@dxos/plugin-attention": "0.8.4-main.69d29f4",
106
+ "@dxos/plugin-deck": "0.8.4-main.69d29f4",
107
+ "@dxos/plugin-client": "0.8.4-main.69d29f4",
108
+ "@dxos/plugin-graph": "0.8.4-main.69d29f4",
109
+ "@dxos/plugin-space": "0.8.4-main.69d29f4",
110
+ "@dxos/plugin-map": "0.8.4-main.69d29f4",
111
+ "@dxos/plugin-table": "0.8.4-main.69d29f4",
112
+ "@dxos/protocols": "0.8.4-main.69d29f4",
113
+ "@dxos/plugin-transcription": "0.8.4-main.69d29f4",
114
+ "@dxos/react-edge-client": "0.8.4-main.69d29f4",
115
+ "@dxos/react-client": "0.8.4-main.69d29f4",
116
+ "@dxos/react-ui-attention": "0.8.4-main.69d29f4",
117
+ "@dxos/react-ui-canvas-editor": "0.8.4-main.69d29f4",
118
+ "@dxos/react-ui-canvas-compute": "0.8.4-main.69d29f4",
119
+ "@dxos/react-ui-chat": "0.8.4-main.69d29f4",
120
+ "@dxos/react-ui-components": "0.8.4-main.69d29f4",
121
+ "@dxos/react-ui-editor": "0.8.4-main.69d29f4",
122
+ "@dxos/react-ui-form": "0.8.4-main.69d29f4",
123
+ "@dxos/react-ui-graph": "0.8.4-main.69d29f4",
124
+ "@dxos/react-ui-list": "0.8.4-main.69d29f4",
125
+ "@dxos/react-ui-markdown": "0.8.4-main.69d29f4",
126
+ "@dxos/react-ui-menu": "0.8.4-main.69d29f4",
127
+ "@dxos/react-ui-sfx": "0.8.4-main.69d29f4",
128
+ "@dxos/react-ui-searchlist": "0.8.4-main.69d29f4",
129
+ "@dxos/react-ui-stack": "0.8.4-main.69d29f4",
130
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.69d29f4",
131
+ "@dxos/types": "0.8.4-main.69d29f4",
132
+ "@dxos/react-ui-tabs": "0.8.4-main.69d29f4",
133
+ "@dxos/schema": "0.8.4-main.69d29f4",
134
+ "@dxos/react-ui-mosaic": "0.8.4-main.69d29f4",
135
+ "@dxos/ui": "0.8.4-main.69d29f4",
136
+ "@dxos/ui-editor": "0.8.4-main.69d29f4",
137
+ "@dxos/util": "0.8.4-main.69d29f4"
114
138
  },
115
139
  "devDependencies": {
116
- "@effect-rx/rx-react": "^0.38.0",
117
- "@effect/platform": "0.89.0",
140
+ "@effect/platform": "0.93.6",
118
141
  "@types/lodash.defaultsdeep": "^4.6.6",
119
- "@types/react": "~18.2.0",
120
- "@types/react-dom": "~18.2.0",
121
- "effect": "3.17.0",
142
+ "@types/react": "~19.2.7",
143
+ "@types/react-dom": "~19.2.3",
144
+ "effect": "3.19.11",
122
145
  "openapi-types": "^12.1.3",
123
- "react": "~18.2.0",
124
- "react-dom": "~18.2.0",
125
- "vite": "5.4.7",
126
- "@dxos/assistant-testing": "0.8.4-main.67995b8",
127
- "@dxos/plugin-chess": "0.8.4-main.67995b8",
128
- "@dxos/echo-db": "0.8.4-main.67995b8",
129
- "@dxos/plugin-inbox": "0.8.4-main.67995b8",
130
- "@dxos/plugin-map": "0.8.4-main.67995b8",
131
- "@dxos/plugin-markdown": "0.8.4-main.67995b8",
132
- "@dxos/plugin-table": "0.8.4-main.67995b8",
133
- "@dxos/react-ui": "0.8.4-main.67995b8",
134
- "@dxos/random": "0.8.4-main.67995b8",
135
- "@dxos/react-ui-menu": "0.8.4-main.67995b8",
136
- "@dxos/storybook-utils": "0.8.4-main.67995b8",
137
- "@dxos/react-ui-theme": "0.8.4-main.67995b8"
146
+ "react": "~19.2.3",
147
+ "react-dom": "~19.2.3",
148
+ "vite": "7.1.9",
149
+ "@dxos/assistant-toolkit": "0.8.4-main.69d29f4",
150
+ "@dxos/devtools": "0.8.4-main.69d29f4",
151
+ "@dxos/echo-db": "0.8.4-main.69d29f4",
152
+ "@dxos/plugin-chess": "0.8.4-main.69d29f4",
153
+ "@dxos/plugin-table": "0.8.4-main.69d29f4",
154
+ "@dxos/plugin-map": "0.8.4-main.69d29f4",
155
+ "@dxos/random": "0.8.4-main.69d29f4",
156
+ "@dxos/plugin-testing": "0.8.4-main.69d29f4",
157
+ "@dxos/react-ui": "0.8.4-main.69d29f4",
158
+ "@dxos/react-ui-menu": "0.8.4-main.69d29f4",
159
+ "@dxos/react-ui-table": "0.8.4-main.69d29f4",
160
+ "@dxos/storybook-utils": "0.8.4-main.69d29f4",
161
+ "@dxos/ui-theme": "0.8.4-main.69d29f4"
138
162
  },
139
163
  "peerDependencies": {
140
- "@effect-rx/rx-react": "^0.34.1",
141
- "@effect/platform": "^0.80.12",
142
- "effect": "^3.13.3",
143
- "react": "~18.2.0",
144
- "react-dom": "~18.2.0",
145
- "@dxos/react-ui": "0.8.4-main.67995b8",
146
- "@dxos/react-ui-theme": "0.8.4-main.67995b8"
164
+ "@effect-atom/atom-react": "^0.4.6",
165
+ "@effect/platform": "0.93.6",
166
+ "effect": "3.19.11",
167
+ "react": "~19.2.3",
168
+ "react-dom": "~19.2.3",
169
+ "@dxos/ui-theme": "0.8.4-main.69d29f4",
170
+ "@dxos/react-ui": "0.8.4-main.69d29f4"
147
171
  },
148
172
  "publishConfig": {
149
173
  "access": "public"
@@ -2,123 +2,135 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Layer } from 'effect';
5
+ import * as Effect from 'effect/Effect';
6
6
 
7
- import { AiServiceTestingPreset } from '@dxos/ai/testing';
8
- import { Capabilities, Events, contributes, createIntent, defineModule, definePlugin } from '@dxos/app-framework';
9
- import { Blueprint } from '@dxos/blueprints';
7
+ import { Capability, Common, Plugin } from '@dxos/app-framework';
8
+ import { ResearchGraph } from '@dxos/assistant-toolkit';
9
+ import { Blueprint, Prompt } from '@dxos/blueprints';
10
10
  import { Sequence } from '@dxos/conductor';
11
- import { Type } from '@dxos/echo';
12
- import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
13
- import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
14
- import { defineObjectForm } from '@dxos/plugin-space/types';
11
+ import { Obj, Type } from '@dxos/echo';
12
+ import { Operation } from '@dxos/operation';
13
+ import { ClientEvents } from '@dxos/plugin-client/types';
14
+ import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space/types';
15
+ import { type CreateObject } from '@dxos/plugin-space/types';
16
+ import { HasSubject } from '@dxos/types';
15
17
 
16
- import { AppGraphBuilder, IntentResolver, ReactSurface, Settings } from './capabilities';
17
- import { AssistantCapabilities } from './capability-definitions';
18
+ import {
19
+ AiService,
20
+ AppGraphBuilder,
21
+ AssistantState,
22
+ BlueprintDefinition,
23
+ EdgeModelResolver,
24
+ LocalModelResolver,
25
+ OperationResolver,
26
+ ReactSurface,
27
+ Repair,
28
+ Settings,
29
+ Toolkit,
30
+ } from './capabilities';
18
31
  import { meta } from './meta';
19
32
  import { translations } from './translations';
20
- import { Assistant, ServiceType } from './types';
33
+ import { AssistantEvents } from './types';
34
+ import { Assistant, AssistantOperation } from './types';
21
35
 
22
- export const AssistantPlugin = () =>
23
- definePlugin(meta, [
24
- defineModule({
25
- id: `${meta.id}/module/translations`,
26
- activatesOn: Events.SetupTranslations,
27
- activate: () => contributes(Capabilities.Translations, translations),
28
- }),
29
- defineModule({
30
- id: `${meta.id}/module/settings`,
31
- activatesOn: Events.SetupSettings,
32
- activate: Settings,
33
- }),
34
- defineModule({
35
- id: `${meta.id}/module/metadata`,
36
- activatesOn: Events.SetupMetadata,
37
- activate: () => [
38
- contributes(Capabilities.Metadata, {
39
- id: Type.getTypename(Assistant.Chat),
40
- metadata: {
41
- icon: 'ph--atom--regular',
42
- },
43
- }),
44
- contributes(Capabilities.Metadata, {
45
- id: Type.getTypename(Blueprint.Blueprint),
46
- metadata: {
47
- icon: 'ph--blueprint--regular',
48
- },
49
- }),
50
- contributes(Capabilities.Metadata, {
51
- id: Type.getTypename(Sequence),
52
- metadata: {
53
- icon: 'ph--circuitry--regular',
54
- },
55
- }),
56
- ],
57
- }),
58
- defineModule({
59
- id: `${meta.id}/module/object-form`,
60
- activatesOn: ClientEvents.SetupSchema,
61
- activate: () => [
62
- contributes(
63
- SpaceCapabilities.ObjectForm,
64
- defineObjectForm({
65
- objectSchema: Assistant.Chat,
66
- getIntent: (_, options) => createIntent(Assistant.CreateChat, { space: options.space }),
67
- }),
36
+ export const AssistantPlugin = Plugin.define(meta).pipe(
37
+ Common.Plugin.addTranslationsModule({ translations }),
38
+ Common.Plugin.addSettingsModule({ activate: Settings }),
39
+ Plugin.addModule({
40
+ // TODO(wittjosiah): Does not integrate with settings store.
41
+ // Should this be a different event?
42
+ // Should settings store be renamed to be more generic?
43
+ activatesOn: Common.ActivationEvent.SetupSettings,
44
+ activate: AssistantState,
45
+ }),
46
+ Common.Plugin.addMetadataModule({
47
+ metadata: [
48
+ {
49
+ id: Type.getTypename(Assistant.Chat),
50
+ metadata: {
51
+ icon: 'ph--atom--regular',
52
+ iconHue: 'sky',
53
+ createObject: ((props) => Effect.sync(() => Assistant.make(props))) satisfies CreateObject,
54
+ },
55
+ },
56
+ {
57
+ id: Type.getTypename(Blueprint.Blueprint),
58
+ metadata: {
59
+ icon: 'ph--blueprint--regular',
60
+ iconHue: 'sky',
61
+ inputSchema: AssistantOperation.BlueprintForm,
62
+ createObject: ((props) => Effect.sync(() => Blueprint.make(props))) satisfies CreateObject,
63
+ },
64
+ },
65
+ {
66
+ id: Type.getTypename(Prompt.Prompt),
67
+ metadata: {
68
+ icon: 'ph--scroll--regular',
69
+ iconHue: 'sky',
70
+ createObject: ((props) => Effect.sync(() => Prompt.make(props))) satisfies CreateObject,
71
+ },
72
+ },
73
+ {
74
+ id: Type.getTypename(Sequence),
75
+ metadata: {
76
+ icon: 'ph--circuitry--regular',
77
+ iconHue: 'sky',
78
+ createObject: ((props) => Effect.sync(() => Obj.make(Sequence, props))) satisfies CreateObject,
79
+ addToCollectionOnCreate: true,
80
+ },
81
+ },
82
+ ],
83
+ }),
84
+ Common.Plugin.addSchemaModule({
85
+ schema: [
86
+ Assistant.Chat,
87
+ Assistant.CompanionTo,
88
+ Blueprint.Blueprint,
89
+ HasSubject.HasSubject,
90
+ Prompt.Prompt,
91
+ ResearchGraph,
92
+ Sequence,
93
+ ],
94
+ }),
95
+ Plugin.addModule({
96
+ id: 'on-space-created',
97
+ activatesOn: SpaceEvents.SpaceCreated,
98
+ activate: () =>
99
+ Effect.succeed(
100
+ Capability.contributes(SpaceCapabilities.OnCreateSpace, (params) =>
101
+ Operation.invoke(AssistantOperation.OnCreateSpace, params),
68
102
  ),
69
- contributes(
70
- SpaceCapabilities.ObjectForm,
71
- defineObjectForm({
72
- objectSchema: Blueprint.Blueprint,
73
- formSchema: Assistant.BlueprintForm,
74
- getIntent: (props) => createIntent(Assistant.CreateBlueprint, props),
75
- }),
76
- ),
77
- contributes(
78
- SpaceCapabilities.ObjectForm,
79
- defineObjectForm({
80
- objectSchema: Sequence,
81
- getIntent: () => createIntent(Assistant.CreateSequence),
82
- }),
83
- ),
84
- ],
85
- }),
86
- defineModule({
87
- id: `${meta.id}/module/schema`,
88
- activatesOn: ClientEvents.SetupSchema,
89
- activate: () => contributes(ClientCapabilities.Schema, [ServiceType, Assistant.CompanionTo]),
90
- }),
91
- defineModule({
92
- id: `${meta.id}/module/on-space-created`,
93
- activatesOn: SpaceEvents.SpaceCreated,
94
- activate: () =>
95
- contributes(SpaceCapabilities.OnSpaceCreated, ({ space, rootCollection }) =>
96
- createIntent(Assistant.OnSpaceCreated, { space, rootCollection }),
97
- ),
98
- }),
99
- defineModule({
100
- id: `${meta.id}/module/app-graph-builder`,
101
- activatesOn: Events.SetupAppGraph,
102
- activate: AppGraphBuilder,
103
- }),
104
- defineModule({
105
- id: `${meta.id}/module/intent-resolver`,
106
- activatesOn: Events.SetupIntentResolver,
107
- activate: IntentResolver,
108
- }),
109
- defineModule({
110
- id: `${meta.id}/module/react-surface`,
111
- activatesOn: Events.SetupReactSurface,
112
- // TODO(wittjosiah): Should occur before the chat is loaded when surfaces activation is more granular.
113
- activatesBefore: [Events.SetupArtifactDefinition],
114
- activate: ReactSurface,
115
- }),
116
- defineModule({
117
- id: `${meta.id}/module/ai-service`,
118
- activatesOn: Events.Startup,
119
- activate: () => [
120
- // TODO(dmaretskyi): Read config from settings.
121
- contributes(AssistantCapabilities.AiServiceLayer, AiServiceTestingPreset('edge-remote').pipe(Layer.orDie)),
122
- ],
123
- }),
124
- ]);
103
+ ),
104
+ }),
105
+ Plugin.addModule({
106
+ activatesOn: ClientEvents.SpacesReady,
107
+ activate: Repair,
108
+ }),
109
+ Common.Plugin.addAppGraphModule({ activate: AppGraphBuilder }),
110
+ Common.Plugin.addOperationResolverModule({ activate: OperationResolver }),
111
+ Common.Plugin.addSurfaceModule({
112
+ activate: ReactSurface,
113
+ activatesBefore: [Common.ActivationEvent.SetupArtifactDefinition],
114
+ }),
115
+ Plugin.addModule({
116
+ activatesOn: AssistantEvents.SetupAiServiceProviders,
117
+ activate: EdgeModelResolver,
118
+ }),
119
+ Plugin.addModule({
120
+ activatesOn: AssistantEvents.SetupAiServiceProviders,
121
+ activate: LocalModelResolver,
122
+ }),
123
+ Plugin.addModule({
124
+ activatesBefore: [AssistantEvents.SetupAiServiceProviders],
125
+ // TODO(dmaretskyi): This should activate lazily when the AI chat is used.
126
+ activatesOn: Common.ActivationEvent.Startup,
127
+ activate: AiService,
128
+ }),
129
+ Common.Plugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
130
+ Plugin.addModule({
131
+ // TODO(wittjosiah): Use a different event.
132
+ activatesOn: Common.ActivationEvent.Startup,
133
+ activate: Toolkit,
134
+ }),
135
+ Plugin.make,
136
+ );
@@ -0,0 +1,62 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { templates } from '@dxos/assistant';
6
+ import {
7
+ Agent,
8
+ AssistantToolkit,
9
+ Discord,
10
+ DiscordBlueprint,
11
+ EntityExtraction,
12
+ Linear,
13
+ LinearBlueprint,
14
+ Research,
15
+ ResearchBlueprint,
16
+ SystemToolkit,
17
+ WebSearchBlueprint,
18
+ } from '@dxos/assistant-toolkit';
19
+ import { Blueprint } from '@dxos/blueprints';
20
+ import { type FunctionDefinition } from '@dxos/functions';
21
+
22
+ import { list, load, search } from '../functions';
23
+
24
+ // TODO(burdon): Document plugin structure (blueprint, functions, toolkit.).
25
+ // TODO(burdon): Test framework for developing functions. Error handling.
26
+ // TODO(burdon): Function naming pattern (noun-verb); fully-qualified?
27
+
28
+ export const deckTools = ['open-item'];
29
+
30
+ export const functions$: FunctionDefinition[] = [list, load, search];
31
+ export const functions = [
32
+ ...functions$,
33
+ // Factor out.
34
+ Research.create,
35
+ Research.research,
36
+ Agent.prompt,
37
+ EntityExtraction.extract,
38
+ Discord.fetch,
39
+ Linear.sync,
40
+ ];
41
+ export const tools = [...AssistantToolkit.tools, ...SystemToolkit.tools, ...deckTools];
42
+
43
+ export const Key = 'dxos.org/blueprint/assistant';
44
+
45
+ export const make = (): Blueprint.Blueprint =>
46
+ Blueprint.make({
47
+ key: Key,
48
+ name: 'Assistant',
49
+ tools: Blueprint.toolDefinitions({ functions, tools }),
50
+ instructions: templates.system,
51
+ });
52
+
53
+ export const blueprint = make();
54
+
55
+ export const blueprints = [
56
+ blueprint,
57
+ // Factor out.
58
+ ResearchBlueprint,
59
+ WebSearchBlueprint,
60
+ DiscordBlueprint,
61
+ LinearBlueprint,
62
+ ];
@@ -0,0 +1,12 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { type Blueprint } from '@dxos/blueprints';
6
+ import { type FunctionDefinition } from '@dxos/functions';
7
+
8
+ import * as AssistantBlueprint from './assistant-blueprint';
9
+
10
+ export { AssistantBlueprint };
11
+ export const blueprints: Blueprint.Blueprint[] = AssistantBlueprint.blueprints;
12
+ export const functions: FunctionDefinition[] = AssistantBlueprint.functions;
@@ -0,0 +1,29 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+ import * as Layer from 'effect/Layer';
7
+
8
+ import { AiModelResolver } from '@dxos/ai';
9
+ import { Capability, Common } from '@dxos/app-framework';
10
+
11
+ export default Capability.makeModule(
12
+ Effect.fnUntraced(function* () {
13
+ const resolvers = yield* Capability.getAll(Common.Capability.AiModelResolver);
14
+
15
+ // TODO(dmaretskyi): Extract function to reduce them.
16
+ const combinedLayer = resolvers.reduce(
17
+ (acc, resolver) => resolver.pipe(Layer.provide(acc)),
18
+ AiModelResolver.AiModelResolver.fromModelMap({ name: 'Fallback' }, Effect.succeed({})), // Empty resolver as fallback.
19
+ );
20
+
21
+ return [
22
+ // TODO(dmaretskyi): Read config from settings.
23
+ Capability.contributes(
24
+ Common.Capability.AiServiceLayer,
25
+ AiModelResolver.AiModelResolver.buildAiService.pipe(Layer.provide(combinedLayer)),
26
+ ),
27
+ ];
28
+ }),
29
+ );
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Capability } from '@dxos/app-framework';
6
+
7
+ export const AiService = Capability.lazy('AiService', () => import('./ai-service'));