@dxos/plugin-assistant 0.8.4-main.1f223c7 → 0.8.4-main.2244d791bb

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 (646) hide show
  1. package/dist/lib/browser/BlueprintArticle-6SP2ZWJ2.mjs +30 -0
  2. package/dist/lib/browser/BlueprintArticle-6SP2ZWJ2.mjs.map +7 -0
  3. package/dist/lib/browser/ChatCompanion-KGPU4DLI.mjs +200 -0
  4. package/dist/lib/browser/ChatCompanion-KGPU4DLI.mjs.map +7 -0
  5. package/dist/lib/browser/ChatContainer-IHPTKMDK.mjs +73 -0
  6. package/dist/lib/browser/ChatContainer-IHPTKMDK.mjs.map +7 -0
  7. package/dist/lib/browser/ChatDialog-VALCOM3W.mjs +85 -0
  8. package/dist/lib/browser/ChatDialog-VALCOM3W.mjs.map +7 -0
  9. package/dist/lib/browser/InitiativeContainer-LQHJLTPE.mjs +264 -0
  10. package/dist/lib/browser/InitiativeContainer-LQHJLTPE.mjs.map +7 -0
  11. package/dist/lib/browser/PromptArticle-YJ5E2YYE.mjs +65 -0
  12. package/dist/lib/browser/PromptArticle-YJ5E2YYE.mjs.map +7 -0
  13. package/dist/lib/browser/ai-service-CY2BYPH6.mjs +22 -0
  14. package/dist/lib/browser/ai-service-CY2BYPH6.mjs.map +7 -0
  15. package/dist/lib/browser/app-graph-builder-MUZGUQSC.mjs +234 -0
  16. package/dist/lib/browser/app-graph-builder-MUZGUQSC.mjs.map +7 -0
  17. package/dist/lib/browser/blueprint-definition-4D42KBDM.mjs +33 -0
  18. package/dist/lib/browser/blueprint-definition-4D42KBDM.mjs.map +7 -0
  19. package/dist/lib/browser/blueprints/index.mjs +8 -0
  20. package/dist/lib/browser/chunk-6BVCG5SJ.mjs +230 -0
  21. package/dist/lib/browser/chunk-6BVCG5SJ.mjs.map +7 -0
  22. package/dist/lib/browser/chunk-DKQMSMBN.mjs +326 -0
  23. package/dist/lib/browser/chunk-DKQMSMBN.mjs.map +7 -0
  24. package/dist/lib/browser/chunk-EXVT7D4B.mjs +23 -0
  25. package/dist/lib/browser/chunk-EXVT7D4B.mjs.map +7 -0
  26. package/dist/lib/browser/chunk-JYY5AD65.mjs +286 -0
  27. package/dist/lib/browser/chunk-JYY5AD65.mjs.map +7 -0
  28. package/dist/lib/browser/chunk-MEM7ET2A.mjs +174 -0
  29. package/dist/lib/browser/chunk-MEM7ET2A.mjs.map +7 -0
  30. package/dist/lib/browser/chunk-THZPCE3E.mjs +1968 -0
  31. package/dist/lib/browser/chunk-THZPCE3E.mjs.map +7 -0
  32. package/dist/lib/browser/edge-model-resolver-YTMFQEN5.mjs +21 -0
  33. package/dist/lib/browser/edge-model-resolver-YTMFQEN5.mjs.map +7 -0
  34. package/dist/lib/browser/index.mjs +277 -223
  35. package/dist/lib/browser/index.mjs.map +4 -4
  36. package/dist/lib/browser/local-model-resolver-CGRQH37T.mjs +20 -0
  37. package/dist/lib/browser/local-model-resolver-CGRQH37T.mjs.map +7 -0
  38. package/dist/lib/browser/meta.json +1 -1
  39. package/dist/lib/browser/operation-resolver-MB7OQBPT.mjs +130 -0
  40. package/dist/lib/browser/operation-resolver-MB7OQBPT.mjs.map +7 -0
  41. package/dist/lib/browser/react-surface-UHDDX6N3.mjs +125 -0
  42. package/dist/lib/browser/react-surface-UHDDX6N3.mjs.map +7 -0
  43. package/dist/lib/browser/repair-IRXDYF4R.mjs +51 -0
  44. package/dist/lib/browser/repair-IRXDYF4R.mjs.map +7 -0
  45. package/dist/lib/browser/settings-XF6GKHCG.mjs +33 -0
  46. package/dist/lib/browser/settings-XF6GKHCG.mjs.map +7 -0
  47. package/dist/lib/browser/state-OYDPWLKA.mjs +26 -0
  48. package/dist/lib/browser/state-OYDPWLKA.mjs.map +7 -0
  49. package/dist/lib/browser/toolkit-IDXQCSTX.mjs +19 -0
  50. package/dist/lib/browser/toolkit-IDXQCSTX.mjs.map +7 -0
  51. package/dist/lib/browser/types/index.mjs +8 -4
  52. package/dist/lib/node-esm/BlueprintArticle-7LI6UXKZ.mjs +31 -0
  53. package/dist/lib/node-esm/BlueprintArticle-7LI6UXKZ.mjs.map +7 -0
  54. package/dist/lib/node-esm/ChatCompanion-XY3MAAKH.mjs +201 -0
  55. package/dist/lib/node-esm/ChatCompanion-XY3MAAKH.mjs.map +7 -0
  56. package/dist/lib/node-esm/ChatContainer-3YXC4HOK.mjs +74 -0
  57. package/dist/lib/node-esm/ChatContainer-3YXC4HOK.mjs.map +7 -0
  58. package/dist/lib/node-esm/ChatDialog-UAYXP3UM.mjs +86 -0
  59. package/dist/lib/node-esm/ChatDialog-UAYXP3UM.mjs.map +7 -0
  60. package/dist/lib/node-esm/InitiativeContainer-EAUOSH36.mjs +265 -0
  61. package/dist/lib/node-esm/InitiativeContainer-EAUOSH36.mjs.map +7 -0
  62. package/dist/lib/node-esm/PromptArticle-U2IYPLFR.mjs +66 -0
  63. package/dist/lib/node-esm/PromptArticle-U2IYPLFR.mjs.map +7 -0
  64. package/dist/lib/node-esm/ai-service-ZI3A6RVG.mjs +23 -0
  65. package/dist/lib/node-esm/ai-service-ZI3A6RVG.mjs.map +7 -0
  66. package/dist/lib/node-esm/app-graph-builder-4QN5M6PD.mjs +235 -0
  67. package/dist/lib/node-esm/app-graph-builder-4QN5M6PD.mjs.map +7 -0
  68. package/dist/lib/node-esm/blueprint-definition-EJOAZFY5.mjs +34 -0
  69. package/dist/lib/node-esm/blueprint-definition-EJOAZFY5.mjs.map +7 -0
  70. package/dist/lib/node-esm/blueprints/index.mjs +9 -0
  71. package/dist/lib/node-esm/chunk-3DG7AJES.mjs +1969 -0
  72. package/dist/lib/node-esm/chunk-3DG7AJES.mjs.map +7 -0
  73. package/dist/lib/node-esm/chunk-75PHXBN3.mjs +327 -0
  74. package/dist/lib/node-esm/chunk-75PHXBN3.mjs.map +7 -0
  75. package/dist/lib/node-esm/chunk-CTHGEJJA.mjs +176 -0
  76. package/dist/lib/node-esm/chunk-CTHGEJJA.mjs.map +7 -0
  77. package/dist/lib/node-esm/chunk-JMBYVUD6.mjs +288 -0
  78. package/dist/lib/node-esm/chunk-JMBYVUD6.mjs.map +7 -0
  79. package/dist/lib/node-esm/chunk-LB72WG6R.mjs +231 -0
  80. package/dist/lib/node-esm/chunk-LB72WG6R.mjs.map +7 -0
  81. package/dist/lib/node-esm/chunk-POWB2BPC.mjs +25 -0
  82. package/dist/lib/node-esm/chunk-POWB2BPC.mjs.map +7 -0
  83. package/dist/lib/node-esm/edge-model-resolver-CMJ3KNLQ.mjs +22 -0
  84. package/dist/lib/node-esm/edge-model-resolver-CMJ3KNLQ.mjs.map +7 -0
  85. package/dist/lib/node-esm/index.mjs +277 -223
  86. package/dist/lib/node-esm/index.mjs.map +4 -4
  87. package/dist/lib/node-esm/local-model-resolver-FFDAKOXN.mjs +21 -0
  88. package/dist/lib/node-esm/local-model-resolver-FFDAKOXN.mjs.map +7 -0
  89. package/dist/lib/node-esm/meta.json +1 -1
  90. package/dist/lib/node-esm/operation-resolver-VWNTUHQQ.mjs +131 -0
  91. package/dist/lib/node-esm/operation-resolver-VWNTUHQQ.mjs.map +7 -0
  92. package/dist/lib/node-esm/react-surface-DTOXFPWM.mjs +126 -0
  93. package/dist/lib/node-esm/react-surface-DTOXFPWM.mjs.map +7 -0
  94. package/dist/lib/node-esm/repair-DMI55PON.mjs +52 -0
  95. package/dist/lib/node-esm/repair-DMI55PON.mjs.map +7 -0
  96. package/dist/lib/node-esm/settings-NGGZA7S7.mjs +34 -0
  97. package/dist/lib/node-esm/settings-NGGZA7S7.mjs.map +7 -0
  98. package/dist/lib/node-esm/state-VSCPGN7R.mjs +27 -0
  99. package/dist/lib/node-esm/state-VSCPGN7R.mjs.map +7 -0
  100. package/dist/lib/node-esm/toolkit-JPRJRDDB.mjs +20 -0
  101. package/dist/lib/node-esm/toolkit-JPRJRDDB.mjs.map +7 -0
  102. package/dist/lib/node-esm/types/index.mjs +8 -4
  103. package/dist/types/src/AssistantPlugin.d.ts +2 -1
  104. package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
  105. package/dist/types/src/blueprints/assistant/blueprint.d.ts +4 -0
  106. package/dist/types/src/blueprints/assistant/blueprint.d.ts.map +1 -0
  107. package/dist/types/src/blueprints/assistant/functions/index.d.ts +25 -0
  108. package/dist/types/src/blueprints/assistant/functions/index.d.ts.map +1 -0
  109. package/dist/types/src/{functions/list.d.ts → blueprints/assistant/functions/object-list.d.ts} +3 -3
  110. package/dist/types/src/blueprints/assistant/functions/object-list.d.ts.map +1 -0
  111. package/dist/types/src/{functions/load.d.ts → blueprints/assistant/functions/object-load.d.ts} +3 -3
  112. package/dist/types/src/blueprints/assistant/functions/object-load.d.ts.map +1 -0
  113. package/dist/types/src/blueprints/assistant/functions/object-search.d.ts +10 -0
  114. package/dist/types/src/blueprints/assistant/functions/object-search.d.ts.map +1 -0
  115. package/dist/types/src/blueprints/assistant/index.d.ts +2 -0
  116. package/dist/types/src/blueprints/assistant/index.d.ts.map +1 -0
  117. package/dist/types/src/blueprints/index.d.ts +2 -0
  118. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  119. package/dist/types/src/capabilities/ai-service/ai-service.d.ts +6 -0
  120. package/dist/types/src/capabilities/ai-service/ai-service.d.ts.map +1 -0
  121. package/dist/types/src/capabilities/ai-service/index.d.ts +3 -0
  122. package/dist/types/src/capabilities/ai-service/index.d.ts.map +1 -0
  123. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  124. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  125. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  126. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  127. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +6 -0
  128. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
  129. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
  130. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
  131. package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts +7 -0
  132. package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts.map +1 -0
  133. package/dist/types/src/capabilities/edge-model-resolver/index.d.ts +3 -0
  134. package/dist/types/src/capabilities/edge-model-resolver/index.d.ts.map +1 -0
  135. package/dist/types/src/capabilities/index.d.ts +10 -12
  136. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  137. package/dist/types/src/capabilities/local-model-resolver/index.d.ts +3 -0
  138. package/dist/types/src/capabilities/local-model-resolver/index.d.ts.map +1 -0
  139. package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts +13 -0
  140. package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts.map +1 -0
  141. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  142. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  143. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  144. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  145. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  146. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  147. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  148. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  149. package/dist/types/src/capabilities/repair/index.d.ts +3 -0
  150. package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
  151. package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
  152. package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
  153. package/dist/types/src/capabilities/settings/index.d.ts +15 -0
  154. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  155. package/dist/types/src/capabilities/settings/settings.d.ts +18 -0
  156. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  157. package/dist/types/src/capabilities/state/index.d.ts +11 -0
  158. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  159. package/dist/types/src/capabilities/state/state.d.ts +13 -0
  160. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  161. package/dist/types/src/capabilities/toolkit/index.d.ts +3 -0
  162. package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -0
  163. package/dist/types/src/capabilities/toolkit/toolkit.d.ts +6 -0
  164. package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -0
  165. package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts +4 -2
  166. package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -1
  167. package/dist/types/src/components/BlueprintArticle.d.ts +7 -0
  168. package/dist/types/src/components/BlueprintArticle.d.ts.map +1 -0
  169. package/dist/types/src/components/Chat/Chat.d.ts +26 -13
  170. package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
  171. package/dist/types/src/components/Chat/events.d.ts +5 -1
  172. package/dist/types/src/components/Chat/events.d.ts.map +1 -1
  173. package/dist/types/src/components/ChatCompanion.d.ts +4 -4
  174. package/dist/types/src/components/ChatCompanion.d.ts.map +1 -1
  175. package/dist/types/src/components/ChatContainer.d.ts +14 -6
  176. package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
  177. package/dist/types/src/components/ChatDialog.d.ts +2 -2
  178. package/dist/types/src/components/ChatDialog.d.ts.map +1 -1
  179. package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +2 -2
  180. package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +1 -1
  181. package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
  182. package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +3 -3
  183. package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -1
  184. package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +3 -3
  185. package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
  186. package/dist/types/src/components/ChatThread/ChatThread.d.ts +7 -8
  187. package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
  188. package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +247 -74
  189. package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
  190. package/dist/types/src/components/ChatThread/registry.d.ts +1 -1
  191. package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -1
  192. package/dist/types/src/components/ChatThread/sync.d.ts +12 -6
  193. package/dist/types/src/components/ChatThread/sync.d.ts.map +1 -1
  194. package/dist/types/src/components/InitiativeContainer/InitiativeContainer.d.ts +7 -0
  195. package/dist/types/src/components/InitiativeContainer/InitiativeContainer.d.ts.map +1 -0
  196. package/dist/types/src/components/InitiativeContainer/index.d.ts +3 -0
  197. package/dist/types/src/components/InitiativeContainer/index.d.ts.map +1 -0
  198. package/dist/types/src/components/PromptArticle.d.ts +7 -0
  199. package/dist/types/src/components/PromptArticle.d.ts.map +1 -0
  200. package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +2 -1
  201. package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
  202. package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +230 -61
  203. package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
  204. package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +12 -2
  205. package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
  206. package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +231 -62
  207. package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
  208. package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +1 -0
  209. package/dist/types/src/components/TemplateEditor/extensions/index.d.ts +3 -0
  210. package/dist/types/src/components/TemplateEditor/extensions/index.d.ts.map +1 -0
  211. package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts +8 -0
  212. package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts.map +1 -0
  213. package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +10 -8
  214. package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -1
  215. package/dist/types/src/components/Toolbox/Toolbox.d.ts +6 -7
  216. package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
  217. package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +230 -61
  218. package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
  219. package/dist/types/src/components/TriggerStatus/TriggerStatus.d.ts +4 -0
  220. package/dist/types/src/components/TriggerStatus/TriggerStatus.d.ts.map +1 -0
  221. package/dist/types/src/components/TriggerStatus/index.d.ts +2 -0
  222. package/dist/types/src/components/TriggerStatus/index.d.ts.map +1 -0
  223. package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts +12 -0
  224. package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts.map +1 -0
  225. package/dist/types/src/components/Typewriter/Typewriter.d.ts +11 -0
  226. package/dist/types/src/components/Typewriter/Typewriter.d.ts.map +1 -0
  227. package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts +7 -0
  228. package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts.map +1 -0
  229. package/dist/types/src/components/Typewriter/assistant-extension.d.ts +5 -0
  230. package/dist/types/src/components/Typewriter/assistant-extension.d.ts.map +1 -0
  231. package/dist/types/src/components/Typewriter/index.d.ts +2 -0
  232. package/dist/types/src/components/Typewriter/index.d.ts.map +1 -0
  233. package/dist/types/src/components/index.d.ts +10 -10
  234. package/dist/types/src/components/index.d.ts.map +1 -1
  235. package/dist/types/src/hooks/index.d.ts +2 -3
  236. package/dist/types/src/hooks/index.d.ts.map +1 -1
  237. package/dist/types/src/hooks/useBlueprintRegistry.d.ts +5 -4
  238. package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
  239. package/dist/types/src/hooks/useChatProcessor.d.ts +6 -3
  240. package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
  241. package/dist/types/src/hooks/useChatServices.d.ts +6 -6
  242. package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
  243. package/dist/types/src/hooks/useChatToolbarActions.d.ts +8 -0
  244. package/dist/types/src/hooks/useChatToolbarActions.d.ts.map +1 -0
  245. package/dist/types/src/hooks/useContextBinder.d.ts +2 -2
  246. package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -1
  247. package/dist/types/src/hooks/useContextObjects.d.ts +7 -7
  248. package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -1
  249. package/dist/types/src/hooks/useFilteredTypes.d.ts +3 -0
  250. package/dist/types/src/hooks/useFilteredTypes.d.ts.map +1 -0
  251. package/dist/types/src/hooks/useReferencesProvider.d.ts.map +1 -1
  252. package/dist/types/src/index.d.ts +3 -1
  253. package/dist/types/src/index.d.ts.map +1 -1
  254. package/dist/types/src/meta.d.ts +3 -4
  255. package/dist/types/src/meta.d.ts.map +1 -1
  256. package/dist/types/src/processor/index.d.ts +1 -0
  257. package/dist/types/src/processor/index.d.ts.map +1 -1
  258. package/dist/types/src/processor/presets.d.ts +1 -1
  259. package/dist/types/src/processor/presets.d.ts.map +1 -1
  260. package/dist/types/src/processor/processor.d.ts +26 -20
  261. package/dist/types/src/processor/processor.d.ts.map +1 -1
  262. package/dist/types/src/processor/update-name.d.ts +10 -0
  263. package/dist/types/src/processor/update-name.d.ts.map +1 -0
  264. package/dist/types/src/queue-logger.d.ts.map +1 -1
  265. package/dist/types/src/testing/index.d.ts +0 -2
  266. package/dist/types/src/testing/index.d.ts.map +1 -1
  267. package/dist/types/src/testing/test-generator.d.ts +6 -5
  268. package/dist/types/src/testing/test-generator.d.ts.map +1 -1
  269. package/dist/types/src/testing/test-services.d.ts +2 -2
  270. package/dist/types/src/testing/test-services.d.ts.map +1 -1
  271. package/dist/types/src/translations.d.ts +358 -26
  272. package/dist/types/src/translations.d.ts.map +1 -1
  273. package/dist/types/src/types/Assistant.d.ts +8 -30
  274. package/dist/types/src/types/Assistant.d.ts.map +1 -1
  275. package/dist/types/src/types/AssistantAction.d.ts +91 -101
  276. package/dist/types/src/types/AssistantAction.d.ts.map +1 -1
  277. package/dist/types/src/types/capabilities.d.ts +33 -0
  278. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  279. package/dist/types/src/types/events.d.ts +5 -0
  280. package/dist/types/src/types/events.d.ts.map +1 -0
  281. package/dist/types/src/types/index.d.ts +4 -1
  282. package/dist/types/src/types/index.d.ts.map +1 -1
  283. package/dist/types/src/types/service.d.ts +14 -216
  284. package/dist/types/src/types/service.d.ts.map +1 -1
  285. package/dist/types/tsconfig.tsbuildinfo +1 -1
  286. package/package.json +121 -116
  287. package/src/AssistantPlugin.tsx +148 -148
  288. package/src/blueprints/assistant/blueprint.ts +34 -0
  289. package/src/blueprints/assistant/functions/index.ts +13 -0
  290. package/src/{functions/list.ts → blueprints/assistant/functions/object-list.ts} +10 -7
  291. package/src/blueprints/assistant/functions/object-load.ts +44 -0
  292. package/src/blueprints/assistant/functions/object-search.ts +46 -0
  293. package/src/blueprints/assistant/index.ts +5 -0
  294. package/src/{components/Toolbar → blueprints}/index.ts +1 -1
  295. package/src/capabilities/ai-service/ai-service.ts +30 -0
  296. package/src/capabilities/ai-service/index.ts +7 -0
  297. package/src/capabilities/app-graph-builder/app-graph-builder.ts +200 -0
  298. package/src/capabilities/app-graph-builder/index.ts +7 -0
  299. package/src/capabilities/blueprint-definition/blueprint-definition.ts +46 -0
  300. package/src/capabilities/blueprint-definition/index.ts +7 -0
  301. package/src/capabilities/edge-model-resolver/edge-model-resolver.ts +33 -0
  302. package/src/capabilities/edge-model-resolver/index.ts +7 -0
  303. package/src/capabilities/index.ts +10 -15
  304. package/src/capabilities/local-model-resolver/index.ts +7 -0
  305. package/src/capabilities/local-model-resolver/local-model-resolver.ts +38 -0
  306. package/src/capabilities/operation-resolver/index.ts +7 -0
  307. package/src/capabilities/operation-resolver/operation-resolver.ts +112 -0
  308. package/src/capabilities/react-surface/index.ts +7 -0
  309. package/src/capabilities/react-surface/react-surface.tsx +111 -0
  310. package/src/capabilities/repair/index.ts +7 -0
  311. package/src/capabilities/repair/repair.ts +62 -0
  312. package/src/capabilities/settings/index.ts +7 -0
  313. package/src/capabilities/settings/settings.ts +31 -0
  314. package/src/capabilities/state/index.ts +7 -0
  315. package/src/capabilities/state/state.ts +27 -0
  316. package/src/capabilities/toolkit/index.ts +7 -0
  317. package/src/capabilities/toolkit/toolkit.ts +27 -0
  318. package/src/components/AssistantSettings/AssistantSettings.tsx +28 -20
  319. package/src/components/BlueprintArticle.tsx +28 -0
  320. package/src/components/Chat/Chat.tsx +222 -153
  321. package/src/components/Chat/events.ts +7 -1
  322. package/src/components/ChatCompanion.tsx +201 -86
  323. package/src/components/ChatContainer.tsx +48 -31
  324. package/src/components/ChatDialog.tsx +15 -8
  325. package/src/components/ChatProgress/ChatProgress.tsx +6 -21
  326. package/src/components/ChatPrompt/ChatActions.tsx +11 -5
  327. package/src/components/ChatPrompt/ChatOptions.tsx +104 -99
  328. package/src/components/ChatPrompt/ChatReferences.tsx +7 -8
  329. package/src/components/ChatPrompt/ChatStatusIndicator.tsx +1 -1
  330. package/src/components/ChatThread/ChatThread.stories.tsx +63 -43
  331. package/src/components/ChatThread/ChatThread.tsx +38 -35
  332. package/src/components/ChatThread/Link.tsx +4 -4
  333. package/src/components/ChatThread/registry.tsx +43 -41
  334. package/src/components/ChatThread/sync.test.ts +34 -18
  335. package/src/components/ChatThread/sync.ts +61 -14
  336. package/src/components/ChatThread/testing/thread.md +37 -0
  337. package/src/components/InitiativeContainer/InitiativeContainer.tsx +340 -0
  338. package/src/components/InitiativeContainer/index.ts +6 -0
  339. package/src/components/PromptArticle.tsx +58 -0
  340. package/src/components/TemplateEditor/TemplateEditor.stories.tsx +16 -8
  341. package/src/components/TemplateEditor/TemplateEditor.tsx +26 -14
  342. package/src/components/TemplateEditor/TemplateForm.stories.tsx +17 -11
  343. package/src/components/TemplateEditor/TemplateForm.tsx +77 -30
  344. package/src/components/TemplateEditor/extensions/handlebars-extension.ts +274 -0
  345. package/src/components/TemplateEditor/extensions/index.ts +6 -0
  346. package/src/components/TemplateEditor/extensions/xml-extension.ts +64 -0
  347. package/src/components/ToolBlock/ToolBlock.tsx +40 -49
  348. package/src/components/Toolbox/Toolbox.stories.tsx +11 -15
  349. package/src/components/Toolbox/Toolbox.tsx +54 -56
  350. package/src/components/TriggerStatus/TriggerStatus.tsx +142 -0
  351. package/src/components/{SequenceEditor → TriggerStatus}/index.ts +1 -1
  352. package/src/components/Typewriter/AssistantToolbar.tsx +161 -0
  353. package/src/components/Typewriter/Typewriter.stories.tsx +83 -0
  354. package/src/components/Typewriter/Typewriter.tsx +54 -0
  355. package/src/components/Typewriter/assistant-extension.tsx +144 -0
  356. package/src/components/Typewriter/index.ts +5 -0
  357. package/src/components/index.ts +13 -7
  358. package/src/hooks/index.ts +2 -3
  359. package/src/hooks/useBlueprintRegistry.ts +48 -20
  360. package/src/hooks/useChatProcessor.ts +27 -15
  361. package/src/hooks/useChatServices.ts +19 -20
  362. package/src/hooks/useChatToolbarActions.ts +122 -0
  363. package/src/hooks/useContextBinder.ts +21 -7
  364. package/src/hooks/useContextObjects.ts +13 -25
  365. package/src/hooks/useFilteredTypes.ts +37 -0
  366. package/src/hooks/useReferencesProvider.ts +5 -8
  367. package/src/index.ts +3 -1
  368. package/src/meta.ts +11 -8
  369. package/src/processor/index.ts +1 -0
  370. package/src/processor/presets.ts +2 -2
  371. package/src/processor/processor.test.ts +24 -29
  372. package/src/processor/processor.ts +90 -96
  373. package/src/processor/update-name.ts +58 -0
  374. package/src/queue-logger.ts +8 -9
  375. package/src/testing/index.ts +0 -2
  376. package/src/testing/test-generator.ts +19 -14
  377. package/src/testing/test-services.ts +10 -14
  378. package/src/translations.ts +51 -18
  379. package/src/types/Assistant.ts +5 -38
  380. package/src/types/AssistantAction.ts +68 -54
  381. package/src/types/capabilities.ts +27 -0
  382. package/src/types/events.ts +11 -0
  383. package/src/types/index.ts +6 -1
  384. package/src/types/service.ts +25 -14
  385. package/dist/lib/browser/BlueprintContainer-BFNN6K46.mjs +0 -29
  386. package/dist/lib/browser/BlueprintContainer-BFNN6K46.mjs.map +0 -7
  387. package/dist/lib/browser/ChatCompanion-DOVN34C7.mjs +0 -126
  388. package/dist/lib/browser/ChatCompanion-DOVN34C7.mjs.map +0 -7
  389. package/dist/lib/browser/ChatContainer-XIVJTCC2.mjs +0 -75
  390. package/dist/lib/browser/ChatContainer-XIVJTCC2.mjs.map +0 -7
  391. package/dist/lib/browser/ChatDialog-EJJMK3WL.mjs +0 -88
  392. package/dist/lib/browser/ChatDialog-EJJMK3WL.mjs.map +0 -7
  393. package/dist/lib/browser/SequenceContainer-TF5QNXYM.mjs +0 -150
  394. package/dist/lib/browser/SequenceContainer-TF5QNXYM.mjs.map +0 -7
  395. package/dist/lib/browser/ai-service-YC2EQPHA.mjs +0 -22
  396. package/dist/lib/browser/ai-service-YC2EQPHA.mjs.map +0 -7
  397. package/dist/lib/browser/app-graph-builder-3C43MLCD.mjs +0 -153
  398. package/dist/lib/browser/app-graph-builder-3C43MLCD.mjs.map +0 -7
  399. package/dist/lib/browser/blueprint-definition-VHFSRTEJ.mjs +0 -12
  400. package/dist/lib/browser/chunk-C4Q2RYQM.mjs +0 -1974
  401. package/dist/lib/browser/chunk-C4Q2RYQM.mjs.map +0 -7
  402. package/dist/lib/browser/chunk-EZUSNS2J.mjs +0 -19
  403. package/dist/lib/browser/chunk-EZUSNS2J.mjs.map +0 -7
  404. package/dist/lib/browser/chunk-GLWD66TA.mjs +0 -161
  405. package/dist/lib/browser/chunk-GLWD66TA.mjs.map +0 -7
  406. package/dist/lib/browser/chunk-O4LUJEDV.mjs +0 -20
  407. package/dist/lib/browser/chunk-O4LUJEDV.mjs.map +0 -7
  408. package/dist/lib/browser/chunk-PQI3MGDN.mjs +0 -169
  409. package/dist/lib/browser/chunk-PQI3MGDN.mjs.map +0 -7
  410. package/dist/lib/browser/chunk-QD4UUISH.mjs +0 -299
  411. package/dist/lib/browser/chunk-QD4UUISH.mjs.map +0 -7
  412. package/dist/lib/browser/chunk-R6LRGW3I.mjs +0 -216
  413. package/dist/lib/browser/chunk-R6LRGW3I.mjs.map +0 -7
  414. package/dist/lib/browser/chunk-SMIVXXAI.mjs +0 -202
  415. package/dist/lib/browser/chunk-SMIVXXAI.mjs.map +0 -7
  416. package/dist/lib/browser/compute-runtime-X6IREJN3.mjs +0 -155
  417. package/dist/lib/browser/compute-runtime-X6IREJN3.mjs.map +0 -7
  418. package/dist/lib/browser/edge-model-resolver-JNEB355N.mjs +0 -22
  419. package/dist/lib/browser/edge-model-resolver-JNEB355N.mjs.map +0 -7
  420. package/dist/lib/browser/intent-resolver-I6M3ZDAS.mjs +0 -112
  421. package/dist/lib/browser/intent-resolver-I6M3ZDAS.mjs.map +0 -7
  422. package/dist/lib/browser/local-model-resolver-EUXSRZ7X.mjs +0 -21
  423. package/dist/lib/browser/local-model-resolver-EUXSRZ7X.mjs.map +0 -7
  424. package/dist/lib/browser/react-surface-E4NAGB6R.mjs +0 -109
  425. package/dist/lib/browser/react-surface-E4NAGB6R.mjs.map +0 -7
  426. package/dist/lib/browser/settings-36V3VUMW.mjs +0 -23
  427. package/dist/lib/browser/settings-36V3VUMW.mjs.map +0 -7
  428. package/dist/lib/browser/state-AINRYS5W.mjs +0 -21
  429. package/dist/lib/browser/state-AINRYS5W.mjs.map +0 -7
  430. package/dist/lib/browser/toolkit-MPUS3U64.mjs +0 -191
  431. package/dist/lib/browser/toolkit-MPUS3U64.mjs.map +0 -7
  432. package/dist/lib/node-esm/BlueprintContainer-X4MRBKDR.mjs +0 -30
  433. package/dist/lib/node-esm/BlueprintContainer-X4MRBKDR.mjs.map +0 -7
  434. package/dist/lib/node-esm/ChatCompanion-ICWYVPRD.mjs +0 -127
  435. package/dist/lib/node-esm/ChatCompanion-ICWYVPRD.mjs.map +0 -7
  436. package/dist/lib/node-esm/ChatContainer-LMMMQD4K.mjs +0 -76
  437. package/dist/lib/node-esm/ChatContainer-LMMMQD4K.mjs.map +0 -7
  438. package/dist/lib/node-esm/ChatDialog-UUE3F7BT.mjs +0 -89
  439. package/dist/lib/node-esm/ChatDialog-UUE3F7BT.mjs.map +0 -7
  440. package/dist/lib/node-esm/SequenceContainer-UXOVZPZO.mjs +0 -151
  441. package/dist/lib/node-esm/SequenceContainer-UXOVZPZO.mjs.map +0 -7
  442. package/dist/lib/node-esm/ai-service-XUMZVFCK.mjs +0 -23
  443. package/dist/lib/node-esm/ai-service-XUMZVFCK.mjs.map +0 -7
  444. package/dist/lib/node-esm/app-graph-builder-NM3JDLQ2.mjs +0 -154
  445. package/dist/lib/node-esm/app-graph-builder-NM3JDLQ2.mjs.map +0 -7
  446. package/dist/lib/node-esm/blueprint-definition-4E6XTLVN.mjs +0 -13
  447. package/dist/lib/node-esm/chunk-4WLFSXZG.mjs +0 -170
  448. package/dist/lib/node-esm/chunk-4WLFSXZG.mjs.map +0 -7
  449. package/dist/lib/node-esm/chunk-7YOGZI66.mjs +0 -203
  450. package/dist/lib/node-esm/chunk-7YOGZI66.mjs.map +0 -7
  451. package/dist/lib/node-esm/chunk-LVTG5JTW.mjs +0 -217
  452. package/dist/lib/node-esm/chunk-LVTG5JTW.mjs.map +0 -7
  453. package/dist/lib/node-esm/chunk-QG2KT3AT.mjs +0 -163
  454. package/dist/lib/node-esm/chunk-QG2KT3AT.mjs.map +0 -7
  455. package/dist/lib/node-esm/chunk-V44ZG7CU.mjs +0 -1975
  456. package/dist/lib/node-esm/chunk-V44ZG7CU.mjs.map +0 -7
  457. package/dist/lib/node-esm/chunk-VFY2JG62.mjs +0 -22
  458. package/dist/lib/node-esm/chunk-VFY2JG62.mjs.map +0 -7
  459. package/dist/lib/node-esm/chunk-XD4CDA4R.mjs +0 -20
  460. package/dist/lib/node-esm/chunk-XD4CDA4R.mjs.map +0 -7
  461. package/dist/lib/node-esm/chunk-YU62ZWJN.mjs +0 -300
  462. package/dist/lib/node-esm/chunk-YU62ZWJN.mjs.map +0 -7
  463. package/dist/lib/node-esm/compute-runtime-NRHLLTSC.mjs +0 -156
  464. package/dist/lib/node-esm/compute-runtime-NRHLLTSC.mjs.map +0 -7
  465. package/dist/lib/node-esm/edge-model-resolver-UE5TLLJZ.mjs +0 -23
  466. package/dist/lib/node-esm/edge-model-resolver-UE5TLLJZ.mjs.map +0 -7
  467. package/dist/lib/node-esm/intent-resolver-VIINHFMT.mjs +0 -113
  468. package/dist/lib/node-esm/intent-resolver-VIINHFMT.mjs.map +0 -7
  469. package/dist/lib/node-esm/local-model-resolver-JBEFVVZA.mjs +0 -22
  470. package/dist/lib/node-esm/local-model-resolver-JBEFVVZA.mjs.map +0 -7
  471. package/dist/lib/node-esm/react-surface-5WQLRTCH.mjs +0 -110
  472. package/dist/lib/node-esm/react-surface-5WQLRTCH.mjs.map +0 -7
  473. package/dist/lib/node-esm/settings-7ZCZ6AS5.mjs +0 -24
  474. package/dist/lib/node-esm/settings-7ZCZ6AS5.mjs.map +0 -7
  475. package/dist/lib/node-esm/state-EQS5KP6M.mjs +0 -22
  476. package/dist/lib/node-esm/state-EQS5KP6M.mjs.map +0 -7
  477. package/dist/lib/node-esm/toolkit-PKVYDZ4H.mjs +0 -192
  478. package/dist/lib/node-esm/toolkit-PKVYDZ4H.mjs.map +0 -7
  479. package/dist/types/src/capabilities/ai-service.d.ts +0 -5
  480. package/dist/types/src/capabilities/ai-service.d.ts.map +0 -1
  481. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  482. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  483. package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -7
  484. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
  485. package/dist/types/src/capabilities/capabilities.d.ts +0 -32
  486. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  487. package/dist/types/src/capabilities/compute-runtime.d.ts +0 -5
  488. package/dist/types/src/capabilities/compute-runtime.d.ts.map +0 -1
  489. package/dist/types/src/capabilities/edge-model-resolver.d.ts +0 -4
  490. package/dist/types/src/capabilities/edge-model-resolver.d.ts.map +0 -1
  491. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  492. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  493. package/dist/types/src/capabilities/local-model-resolver.d.ts +0 -10
  494. package/dist/types/src/capabilities/local-model-resolver.d.ts.map +0 -1
  495. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  496. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  497. package/dist/types/src/capabilities/settings.d.ts +0 -4
  498. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  499. package/dist/types/src/capabilities/state.d.ts +0 -4
  500. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  501. package/dist/types/src/capabilities/toolkit.d.ts +0 -4
  502. package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
  503. package/dist/types/src/components/BlueprintContainer.d.ts +0 -8
  504. package/dist/types/src/components/BlueprintContainer.d.ts.map +0 -1
  505. package/dist/types/src/components/ChatThread/reducers.d.ts +0 -40
  506. package/dist/types/src/components/ChatThread/reducers.d.ts.map +0 -1
  507. package/dist/types/src/components/PromptSettings.d.ts +0 -6
  508. package/dist/types/src/components/PromptSettings.d.ts.map +0 -1
  509. package/dist/types/src/components/SequenceContainer.d.ts +0 -8
  510. package/dist/types/src/components/SequenceContainer.d.ts.map +0 -1
  511. package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts +0 -13
  512. package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts.map +0 -1
  513. package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts +0 -267
  514. package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts.map +0 -1
  515. package/dist/types/src/components/SequenceEditor/index.d.ts +0 -2
  516. package/dist/types/src/components/SequenceEditor/index.d.ts.map +0 -1
  517. package/dist/types/src/components/TemplateEditor/handlebars-extension.d.ts.map +0 -1
  518. package/dist/types/src/components/Toolbar/Toolbar.d.ts +0 -5
  519. package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +0 -1
  520. package/dist/types/src/components/Toolbar/index.d.ts +0 -2
  521. package/dist/types/src/components/Toolbar/index.d.ts.map +0 -1
  522. package/dist/types/src/components/Toolbar/useChatToolbarActions.d.ts +0 -11
  523. package/dist/types/src/components/Toolbar/useChatToolbarActions.d.ts.map +0 -1
  524. package/dist/types/src/events.d.ts +0 -4
  525. package/dist/types/src/events.d.ts.map +0 -1
  526. package/dist/types/src/execution-graph/execution-graph.d.ts +0 -21
  527. package/dist/types/src/execution-graph/execution-graph.d.ts.map +0 -1
  528. package/dist/types/src/execution-graph/index.d.ts +0 -2
  529. package/dist/types/src/execution-graph/index.d.ts.map +0 -1
  530. package/dist/types/src/functions/analysis.d.ts +0 -5
  531. package/dist/types/src/functions/analysis.d.ts.map +0 -1
  532. package/dist/types/src/functions/index.d.ts +0 -4
  533. package/dist/types/src/functions/index.d.ts.map +0 -1
  534. package/dist/types/src/functions/list.d.ts.map +0 -1
  535. package/dist/types/src/functions/load.d.ts.map +0 -1
  536. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts +0 -8
  537. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +0 -1
  538. package/dist/types/src/hooks/useExecutionGraph.d.ts +0 -6
  539. package/dist/types/src/hooks/useExecutionGraph.d.ts.map +0 -1
  540. package/dist/types/src/hooks/useItemTypes.d.ts +0 -4
  541. package/dist/types/src/hooks/useItemTypes.d.ts.map +0 -1
  542. package/dist/types/src/stories/Chat.stories.d.ts +0 -30
  543. package/dist/types/src/stories/Chat.stories.d.ts.map +0 -1
  544. package/dist/types/src/stories/components/BlueprintContainer.d.ts +0 -4
  545. package/dist/types/src/stories/components/BlueprintContainer.d.ts.map +0 -1
  546. package/dist/types/src/stories/components/ChatContainer.d.ts +0 -4
  547. package/dist/types/src/stories/components/ChatContainer.d.ts.map +0 -1
  548. package/dist/types/src/stories/components/ChessContainer.d.ts +0 -4
  549. package/dist/types/src/stories/components/ChessContainer.d.ts.map +0 -1
  550. package/dist/types/src/stories/components/CommentsContainer.d.ts +0 -4
  551. package/dist/types/src/stories/components/CommentsContainer.d.ts.map +0 -1
  552. package/dist/types/src/stories/components/DebugCard.d.ts +0 -8
  553. package/dist/types/src/stories/components/DebugCard.d.ts.map +0 -1
  554. package/dist/types/src/stories/components/GraphContainer.d.ts +0 -6
  555. package/dist/types/src/stories/components/GraphContainer.d.ts.map +0 -1
  556. package/dist/types/src/stories/components/InvocationsContainer.d.ts +0 -4
  557. package/dist/types/src/stories/components/InvocationsContainer.d.ts.map +0 -1
  558. package/dist/types/src/stories/components/LoggingContainer.d.ts +0 -7
  559. package/dist/types/src/stories/components/LoggingContainer.d.ts.map +0 -1
  560. package/dist/types/src/stories/components/MessageContainer.d.ts +0 -4
  561. package/dist/types/src/stories/components/MessageContainer.d.ts.map +0 -1
  562. package/dist/types/src/stories/components/PromptContainer.d.ts +0 -6
  563. package/dist/types/src/stories/components/PromptContainer.d.ts.map +0 -1
  564. package/dist/types/src/stories/components/ResearchInputStack.d.ts +0 -4
  565. package/dist/types/src/stories/components/ResearchInputStack.d.ts.map +0 -1
  566. package/dist/types/src/stories/components/ResearchOutputStack.d.ts +0 -4
  567. package/dist/types/src/stories/components/ResearchOutputStack.d.ts.map +0 -1
  568. package/dist/types/src/stories/components/TasksContainer.d.ts +0 -4
  569. package/dist/types/src/stories/components/TasksContainer.d.ts.map +0 -1
  570. package/dist/types/src/stories/components/TokenManagerContainer.d.ts +0 -3
  571. package/dist/types/src/stories/components/TokenManagerContainer.d.ts.map +0 -1
  572. package/dist/types/src/stories/components/TriggersContainer.d.ts +0 -14
  573. package/dist/types/src/stories/components/TriggersContainer.d.ts.map +0 -1
  574. package/dist/types/src/stories/components/index.d.ts +0 -16
  575. package/dist/types/src/stories/components/index.d.ts.map +0 -1
  576. package/dist/types/src/stories/components/types.d.ts +0 -7
  577. package/dist/types/src/stories/components/types.d.ts.map +0 -1
  578. package/dist/types/src/stories/testing/data.d.ts +0 -9
  579. package/dist/types/src/stories/testing/data.d.ts.map +0 -1
  580. package/dist/types/src/stories/testing/index.d.ts +0 -3
  581. package/dist/types/src/stories/testing/index.d.ts.map +0 -1
  582. package/dist/types/src/stories/testing/schema.d.ts +0 -7
  583. package/dist/types/src/stories/testing/schema.d.ts.map +0 -1
  584. package/dist/types/src/stories/testing/testing.d.ts +0 -48
  585. package/dist/types/src/stories/testing/testing.d.ts.map +0 -1
  586. package/dist/types/src/testing/test-data.d.ts +0 -14
  587. package/dist/types/src/testing/test-data.d.ts.map +0 -1
  588. package/dist/types/src/testing/test-functions.d.ts +0 -6
  589. package/dist/types/src/testing/test-functions.d.ts.map +0 -1
  590. package/src/capabilities/ai-service.ts +0 -28
  591. package/src/capabilities/app-graph-builder.ts +0 -162
  592. package/src/capabilities/blueprint-definition.ts +0 -58
  593. package/src/capabilities/capabilities.ts +0 -71
  594. package/src/capabilities/compute-runtime.ts +0 -124
  595. package/src/capabilities/edge-model-resolver.ts +0 -27
  596. package/src/capabilities/intent-resolver.ts +0 -94
  597. package/src/capabilities/local-model-resolver.ts +0 -32
  598. package/src/capabilities/react-surface.tsx +0 -91
  599. package/src/capabilities/settings.ts +0 -19
  600. package/src/capabilities/state.ts +0 -20
  601. package/src/capabilities/toolkit.ts +0 -163
  602. package/src/components/BlueprintContainer.tsx +0 -24
  603. package/src/components/ChatThread/reducers.ts +0 -151
  604. package/src/components/PromptSettings.tsx +0 -90
  605. package/src/components/SequenceContainer.tsx +0 -131
  606. package/src/components/SequenceEditor/SequenceEditor.stories.tsx +0 -33
  607. package/src/components/SequenceEditor/SequenceEditor.tsx +0 -50
  608. package/src/components/TemplateEditor/handlebars-extension.ts +0 -165
  609. package/src/components/Toolbar/Toolbar.tsx +0 -21
  610. package/src/components/Toolbar/useChatToolbarActions.ts +0 -126
  611. package/src/events.ts +0 -11
  612. package/src/execution-graph/execution-graph.ts +0 -211
  613. package/src/execution-graph/index.ts +0 -5
  614. package/src/functions/analysis.ts +0 -20
  615. package/src/functions/index.ts +0 -7
  616. package/src/functions/load.ts +0 -42
  617. package/src/hooks/useComputeRuntimeCallback.ts +0 -25
  618. package/src/hooks/useExecutionGraph.ts +0 -20
  619. package/src/hooks/useItemTypes.ts +0 -37
  620. package/src/stories/Chat.stories.tsx +0 -657
  621. package/src/stories/components/BlueprintContainer.tsx +0 -34
  622. package/src/stories/components/ChatContainer.tsx +0 -74
  623. package/src/stories/components/ChessContainer.tsx +0 -17
  624. package/src/stories/components/CommentsContainer.tsx +0 -25
  625. package/src/stories/components/DebugCard.tsx +0 -61
  626. package/src/stories/components/GraphContainer.tsx +0 -119
  627. package/src/stories/components/InvocationsContainer.tsx +0 -17
  628. package/src/stories/components/LoggingContainer.tsx +0 -33
  629. package/src/stories/components/MessageContainer.tsx +0 -22
  630. package/src/stories/components/PromptContainer.tsx +0 -52
  631. package/src/stories/components/ResearchInputStack.tsx +0 -30
  632. package/src/stories/components/ResearchOutputStack.tsx +0 -29
  633. package/src/stories/components/TasksContainer.tsx +0 -49
  634. package/src/stories/components/TokenManagerContainer.tsx +0 -14
  635. package/src/stories/components/TriggersContainer.tsx +0 -75
  636. package/src/stories/components/index.ts +0 -20
  637. package/src/stories/components/types.ts +0 -11
  638. package/src/stories/testing/data.ts +0 -142
  639. package/src/stories/testing/index.ts +0 -6
  640. package/src/stories/testing/schema.ts +0 -17
  641. package/src/stories/testing/testing.tsx +0 -279
  642. package/src/testing/test-data.ts +0 -245
  643. package/src/testing/test-functions.ts +0 -16
  644. /package/dist/lib/browser/{blueprint-definition-VHFSRTEJ.mjs.map → blueprints/index.mjs.map} +0 -0
  645. /package/dist/lib/node-esm/{blueprint-definition-4E6XTLVN.mjs.map → blueprints/index.mjs.map} +0 -0
  646. /package/dist/types/src/components/TemplateEditor/{handlebars-extension.d.ts → extensions/handlebars-extension.d.ts} +0 -0
@@ -0,0 +1,13 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import List from './object-list';
6
+ import Load from './object-load';
7
+ import Search from './object-search';
8
+
9
+ export const AssistantFunctions = {
10
+ List,
11
+ Load,
12
+ Search,
13
+ };
@@ -2,20 +2,23 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Effect, Schema } from 'effect';
5
+ import * as Effect from 'effect/Effect';
6
+ import * as Schema from 'effect/Schema';
6
7
 
7
8
  import { Filter, Obj, Query } from '@dxos/echo';
8
- import { DatabaseService, defineFunction } from '@dxos/functions';
9
+ import { Database } from '@dxos/echo';
10
+ import { defineFunction } from '@dxos/functions';
9
11
  import { trim } from '@dxos/util';
10
12
 
11
- // TODO(burdon): Factor out to space plugin.
13
+ // TODO(burdon): Move to toolkit (i.e., tool not function).
12
14
  export default defineFunction({
13
- name: 'dxos.org/function/assistant/list',
15
+ key: 'dxos.org/function/assistant/object-list',
16
+ name: 'List objects',
14
17
  description:
15
18
  // TODO(wittjosiah): Find a better way to prompt for looking up typenames before querying with them.
16
19
  trim`
17
20
  Lists the objects of the given type.
18
- Check the list-schemas tool for available types before calling this function.
21
+ Check the get-schemas tool for available types before calling this function.
19
22
  `,
20
23
  inputSchema: Schema.Struct({
21
24
  typename: Schema.String.annotations({
@@ -32,10 +35,10 @@ export default defineFunction({
32
35
  }),
33
36
  handler: Effect.fn(function* ({ data: { typename } }) {
34
37
  // TODO(wittjosiah): Typename query is not working for dynamic schemas.
35
- const [schema] = yield* DatabaseService.runSchemaQuery({ typename });
38
+ const [schema] = yield* Database.runSchemaQuery({ typename });
36
39
  const filter = schema ? Filter.type(schema) : Filter.typename(typename);
37
40
 
38
- const { objects } = yield* DatabaseService.runQuery(Query.select(filter));
41
+ const objects = yield* Database.runQuery(Query.select(filter));
39
42
  const results = objects.map((object) => ({
40
43
  dxn: Obj.getDXN(object).toString(),
41
44
  label: Obj.getLabel(object),
@@ -0,0 +1,44 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+ import * as Function from 'effect/Function';
7
+ import * as Option from 'effect/Option';
8
+ import * as Schema from 'effect/Schema';
9
+
10
+ import { Database, Entity, Type } from '@dxos/echo';
11
+ import { defineFunction } from '@dxos/functions';
12
+
13
+ // TODO(burdon): Move to toolkit (i.e., tool not function).
14
+ export default defineFunction({
15
+ key: 'dxos.org/function/assistant/object-load',
16
+ name: 'Load object',
17
+ description: 'Loads the object.',
18
+ inputSchema: Schema.Struct({
19
+ object: Type.Ref(Type.Obj).annotations({
20
+ description: 'The ID of the object.',
21
+ }),
22
+ typename: Schema.String.annotations({
23
+ description: 'The typename of the object.',
24
+ }),
25
+ }),
26
+ outputSchema: Schema.Struct({
27
+ // TODO(wittjosiah): Type.Entity.Any
28
+ object: Schema.Any,
29
+ }),
30
+ handler: Effect.fn(function* ({ data: { object, typename } }) {
31
+ const loadedObject = yield* Database.load(object);
32
+ return yield* Function.pipe(
33
+ Option.fromNullable(loadedObject),
34
+ Option.flatMap((obj) => (Entity.getTypename(obj) === typename ? Option.some(obj) : Option.none())),
35
+ Option.match({
36
+ onNone: () => Effect.fail('Object not found.'),
37
+ onSome: (obj) => {
38
+ // log.info('object', { object: obj });
39
+ return Effect.succeed({ object: obj });
40
+ },
41
+ }),
42
+ );
43
+ }),
44
+ });
@@ -0,0 +1,46 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+ import * as Schema from 'effect/Schema';
7
+
8
+ import { Filter, Obj, Query } from '@dxos/echo';
9
+ import { Database } from '@dxos/echo';
10
+ import { defineFunction } from '@dxos/functions';
11
+ import { trim } from '@dxos/util';
12
+
13
+ // TODO(burdon): Move to toolkit (i.e., tool not function).
14
+ export default defineFunction({
15
+ key: 'dxos.org/function/assistant/object-search',
16
+ name: 'Search objects',
17
+ description:
18
+ // TODO(wittjosiah): Find a better way to prompt for looking up typenames before querying with them.
19
+ trim`
20
+ Searches the objects using full-text search.
21
+ `,
22
+ inputSchema: Schema.Struct({
23
+ query: Schema.String.annotations({
24
+ description: 'The query to search for.',
25
+ }),
26
+ }),
27
+ outputSchema: Schema.Struct({
28
+ results: Schema.Array(
29
+ Schema.Struct({
30
+ dxn: Schema.String.annotations({ description: 'The DXN of the object.' }),
31
+ label: Schema.optional(Schema.String.annotations({ description: 'The label of the object.' })),
32
+ }),
33
+ ),
34
+ }),
35
+ handler: Effect.fn(function* ({ data: { query } }) {
36
+ const objects = yield* Database.runQuery(
37
+ Query.select(Filter.text(query, { type: 'full-text' })).options({ allQueuesFromSpaces: true }),
38
+ );
39
+ const results = objects.map((object) => ({
40
+ dxn: Obj.getDXN(object).toString(),
41
+ label: Obj.getLabel(object),
42
+ }));
43
+
44
+ return { results };
45
+ }),
46
+ });
@@ -0,0 +1,5 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ export { default as AssistantBlueprint } from './blueprint';
@@ -2,4 +2,4 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- export * from './Toolbar';
5
+ export * from './assistant';
@@ -0,0 +1,30 @@
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 } from '@dxos/app-framework';
10
+ import { AppCapabilities } from '@dxos/app-toolkit';
11
+
12
+ export default Capability.makeModule(
13
+ Effect.fnUntraced(function* () {
14
+ const resolvers = yield* Capability.getAll(AppCapabilities.AiModelResolver);
15
+
16
+ // TODO(dmaretskyi): Extract function to reduce them.
17
+ const combinedLayer = resolvers.reduce(
18
+ (acc, resolver) => resolver.pipe(Layer.provide(acc)),
19
+ AiModelResolver.AiModelResolver.fromModelMap({ name: 'Fallback' }, Effect.succeed({})), // Empty resolver as fallback.
20
+ );
21
+
22
+ return [
23
+ // TODO(dmaretskyi): Read config from settings.
24
+ Capability.contributes(
25
+ AppCapabilities.AiServiceLayer,
26
+ AiModelResolver.AiModelResolver.buildAiService.pipe(Layer.provide(combinedLayer)),
27
+ ),
28
+ ];
29
+ }),
30
+ );
@@ -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'));
@@ -0,0 +1,200 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capabilities, Capability } from '@dxos/app-framework';
8
+ import { AppCapabilities, LayoutOperation } from '@dxos/app-toolkit';
9
+ import { Chat } from '@dxos/assistant-toolkit';
10
+ import { Blueprint, Prompt } from '@dxos/blueprints';
11
+ import { Sequence } from '@dxos/conductor';
12
+ import { DXN, Database, Obj, type Ref } from '@dxos/echo';
13
+ import { AtomObj } from '@dxos/echo-atom';
14
+ import { invariant } from '@dxos/invariant';
15
+ import { Operation, type OperationInvoker } from '@dxos/operation';
16
+ import { ClientCapabilities } from '@dxos/plugin-client';
17
+ import { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
18
+ import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
19
+ import { getActiveSpace } from '@dxos/plugin-space';
20
+ import { SpaceOperation } from '@dxos/plugin-space/types';
21
+ import { Query } from '@dxos/react-client/echo';
22
+
23
+ import { ASSISTANT_DIALOG, meta } from '../../meta';
24
+ import { AssistantCapabilities, AssistantOperation } from '../../types';
25
+
26
+ export default Capability.makeModule(
27
+ Effect.fnUntraced(function* () {
28
+ const capabilities = yield* Capability.Service;
29
+
30
+ const extensions = yield* Effect.all([
31
+ GraphBuilder.createTypeExtension({
32
+ id: `${meta.id}/root`,
33
+ type: Chat.Chat,
34
+ actions: (chat) => {
35
+ const id = Obj.getDXN(chat).toString();
36
+ return Effect.succeed([
37
+ {
38
+ id: `${AssistantOperation.UpdateChatName.meta.key}/${id}`,
39
+ data: () => Operation.invoke(AssistantOperation.UpdateChatName, { chat }),
40
+ properties: {
41
+ label: ['chat update name label', { ns: meta.id }],
42
+ icon: 'ph--magic-wand--regular',
43
+ disposition: 'list-item',
44
+ },
45
+ },
46
+ ]);
47
+ },
48
+ }),
49
+
50
+ GraphBuilder.createExtension({
51
+ id: `${meta.id}/assistant`,
52
+ match: NodeMatcher.whenRoot,
53
+ actions: () =>
54
+ Effect.succeed([
55
+ {
56
+ id: `${LayoutOperation.UpdateDialog.meta.key}/assistant/open`,
57
+ data: Effect.fnUntraced(function* () {
58
+ const capabilities = yield* Capability.Service;
59
+ const client = yield* Capability.get(ClientCapabilities.Client);
60
+ const operationInvoker = yield* Capability.get(Capabilities.OperationInvoker);
61
+ const space = getActiveSpace(capabilities) ?? client.spaces.default;
62
+ const chat = yield* Effect.tryPromise(() => getOrCreateChat(operationInvoker.invokePromise, space.db));
63
+ if (!chat) {
64
+ return;
65
+ }
66
+
67
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
68
+ subject: ASSISTANT_DIALOG,
69
+ state: true,
70
+ blockAlign: 'end',
71
+ props: {
72
+ chat,
73
+ },
74
+ });
75
+ }),
76
+ properties: {
77
+ label: ['open assistant label', { ns: meta.id }],
78
+ icon: 'ph--sparkle--regular',
79
+ disposition: 'pin-end',
80
+ position: 'hoist',
81
+ keyBinding: {
82
+ macos: 'shift+meta+k',
83
+ windows: 'shift+ctrl+k',
84
+ },
85
+ },
86
+ },
87
+ {
88
+ id: `${meta.id}/reset-blueprints`,
89
+ data: Effect.fnUntraced(function* () {
90
+ const capabilities = yield* Capability.Service;
91
+ const client = yield* Capability.get(ClientCapabilities.Client);
92
+ const space = getActiveSpace(capabilities) ?? client.spaces.default;
93
+ const blueprints = yield* Effect.tryPromise(() =>
94
+ space.db.query(Query.type(Blueprint.Blueprint)).run(),
95
+ );
96
+ for (const blueprint of blueprints) {
97
+ space.db.remove(blueprint);
98
+ }
99
+ yield* Database.flush({ indexes: true });
100
+ }),
101
+ properties: {
102
+ label: ['reset blueprints label', { ns: meta.id }],
103
+ icon: 'ph--arrow-clockwise--regular',
104
+ },
105
+ },
106
+ ]),
107
+ }),
108
+
109
+ GraphBuilder.createExtension({
110
+ id: `${meta.id}/companion-chat`,
111
+ match: NodeMatcher.whenEchoObject,
112
+ connector: (object, get) =>
113
+ Effect.gen(function* () {
114
+ const state = get(yield* Capability.get(AssistantCapabilities.State));
115
+ const currentChatState = state.currentChat[Obj.getDXN(object).toString()];
116
+ // If no state, continue to allow chat initialization.
117
+ if (!currentChatState) {
118
+ return [
119
+ {
120
+ id: [Obj.getDXN(object).toString(), 'assistant-chat'].join(ATTENDABLE_PATH_SEPARATOR),
121
+ type: PLANK_COMPANION_TYPE,
122
+ data: 'assistant-chat',
123
+ properties: {
124
+ label: ['assistant chat label', { ns: meta.id }],
125
+ icon: 'ph--sparkle--regular',
126
+ position: 'hoist',
127
+ disposition: 'hidden',
128
+ },
129
+ },
130
+ ];
131
+ }
132
+
133
+ const db = Obj.getDatabase(object);
134
+ const currentChatDxn = DXN.tryParse(currentChatState);
135
+ const currentChatRef = currentChatDxn ? db?.makeRef(currentChatDxn) : undefined;
136
+ const currentChat = currentChatRef ? get(AtomObj.make(currentChatRef as Ref.Ref<Obj.Unknown>)) : undefined;
137
+
138
+ // Return the resolved chat object, or fall back to 'assistant-chat' string if it can't be resolved.
139
+ // This ensures the companion remains visible even during transient states.
140
+ return [
141
+ {
142
+ id: [Obj.getDXN(object).toString(), 'assistant-chat'].join(ATTENDABLE_PATH_SEPARATOR),
143
+ type: PLANK_COMPANION_TYPE,
144
+ data: Obj.isObject(currentChat) ? currentChat : 'assistant-chat',
145
+ properties: {
146
+ label: ['assistant chat label', { ns: meta.id }],
147
+ icon: 'ph--sparkle--regular',
148
+ position: 'hoist',
149
+ disposition: 'hidden',
150
+ },
151
+ },
152
+ ];
153
+ }),
154
+ }),
155
+
156
+ GraphBuilder.createExtension({
157
+ id: `${meta.id}/invocations`,
158
+ match: NodeMatcher.whenAny(
159
+ NodeMatcher.whenEchoTypeMatches(Sequence),
160
+ NodeMatcher.whenEchoTypeMatches(Prompt.Prompt),
161
+ ),
162
+ connector: (node) =>
163
+ Effect.succeed([
164
+ {
165
+ id: [node.id, 'invocations'].join(ATTENDABLE_PATH_SEPARATOR),
166
+ type: PLANK_COMPANION_TYPE,
167
+ data: 'invocations',
168
+ properties: {
169
+ label: ['invocations label', { ns: meta.id }],
170
+ icon: 'ph--clock-countdown--regular',
171
+ disposition: 'hidden',
172
+ },
173
+ },
174
+ ]),
175
+ }),
176
+ ]);
177
+
178
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
179
+ }),
180
+ );
181
+
182
+ // TODO(burdon): Factor out.
183
+ const getOrCreateChat = async (
184
+ invokePromise: OperationInvoker.OperationInvoker['invokePromise'],
185
+ db: Database.Database,
186
+ ): Promise<Chat.Chat | undefined> => {
187
+ // TODO(wittjosiah): This should be possible with a single query.
188
+ const allChats = await db.query(Query.type(Chat.Chat)).run();
189
+ const relatedChats = await db.query(Query.type(Chat.Chat).sourceOf(Chat.CompanionTo).source()).run();
190
+
191
+ const chats = allChats.filter((chat) => !relatedChats.includes(chat));
192
+ if (chats.length > 0) {
193
+ return chats.at(-1);
194
+ }
195
+
196
+ const { data } = await invokePromise(AssistantOperation.CreateChat, { db });
197
+ invariant(Obj.instanceOf(Chat.Chat, data?.object));
198
+ await invokePromise(SpaceOperation.AddObject, { target: db, object: data.object });
199
+ return data.object;
200
+ };
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Capability } from '@dxos/app-framework';
6
+
7
+ export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
@@ -0,0 +1,46 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+ import * as Record from 'effect/Record';
7
+
8
+ import { Capability } from '@dxos/app-framework';
9
+ import { AppCapabilities } from '@dxos/app-toolkit';
10
+ import {
11
+ AgentFunctions,
12
+ DiscordBlueprint,
13
+ EntityExtractionFunctions,
14
+ InitiativeBlueprint,
15
+ LinearBlueprint,
16
+ PlanningBlueprint,
17
+ ResearchBlueprint,
18
+ WebSearchBlueprint,
19
+ } from '@dxos/assistant-toolkit';
20
+
21
+ import { AssistantBlueprint } from '../../blueprints';
22
+
23
+ const blueprintDefinition = Capability.makeModule<
24
+ [],
25
+ Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[]
26
+ >(() =>
27
+ Effect.succeed([
28
+ Capability.contributes(AppCapabilities.BlueprintDefinition, {
29
+ ...AssistantBlueprint,
30
+ functions: [
31
+ // TODO(burdon): Co-locate all of these functions?
32
+ ...AssistantBlueprint.functions,
33
+ ...Record.values(AgentFunctions),
34
+ ...Record.values(EntityExtractionFunctions),
35
+ ],
36
+ }),
37
+ Capability.contributes(AppCapabilities.BlueprintDefinition, ResearchBlueprint),
38
+ Capability.contributes(AppCapabilities.BlueprintDefinition, WebSearchBlueprint),
39
+ Capability.contributes(AppCapabilities.BlueprintDefinition, DiscordBlueprint),
40
+ Capability.contributes(AppCapabilities.BlueprintDefinition, LinearBlueprint),
41
+ Capability.contributes(AppCapabilities.BlueprintDefinition, InitiativeBlueprint),
42
+ Capability.contributes(AppCapabilities.BlueprintDefinition, PlanningBlueprint),
43
+ ]),
44
+ );
45
+
46
+ export default blueprintDefinition;
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Capability } from '@dxos/app-framework';
6
+
7
+ export const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));
@@ -0,0 +1,33 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as AnthropicClient from '@effect/ai-anthropic/AnthropicClient';
6
+ import * as FetchHttpClient from '@effect/platform/FetchHttpClient';
7
+ import * as Effect from 'effect/Effect';
8
+ import * as Layer from 'effect/Layer';
9
+
10
+ import { AnthropicResolver } from '@dxos/ai/resolvers';
11
+ import { Capability } from '@dxos/app-framework';
12
+ import { AppCapabilities } from '@dxos/app-toolkit';
13
+
14
+ export type EdgeModelResolverCapabilities = [Capability.Capability<typeof AppCapabilities.AiModelResolver>];
15
+
16
+ const edgeModelResolver = Capability.makeModule<[], EdgeModelResolverCapabilities>(() =>
17
+ Effect.succeed([
18
+ Capability.contributes(
19
+ AppCapabilities.AiModelResolver,
20
+ AnthropicResolver.make().pipe(
21
+ Layer.provide(
22
+ AnthropicClient.layer({
23
+ // TODO(dmaretskyi): Read endpoint from config/settings.
24
+ apiUrl: 'https://ai-service.dxos.workers.dev/provider/anthropic',
25
+ }),
26
+ ),
27
+ Layer.provide(FetchHttpClient.layer),
28
+ ),
29
+ ),
30
+ ]),
31
+ );
32
+
33
+ export default edgeModelResolver;
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Capability } from '@dxos/app-framework';
6
+
7
+ export const EdgeModelResolver = Capability.lazy('EdgeModelResolver', () => import('./edge-model-resolver'));
@@ -2,19 +2,14 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { lazy } from '@dxos/app-framework';
6
-
7
- export const AiService = lazy(() => import('./ai-service'));
8
- export const AppGraphBuilder = lazy(() => import('./app-graph-builder'));
9
- export const AssistantState = lazy(() => import('./state'));
10
- export const BlueprintDefinition = lazy(() => import('./blueprint-definition'));
11
- export const EdgeModelResolver = lazy(() => import('./edge-model-resolver'));
12
- export const IntentResolver = lazy(() => import('./intent-resolver'));
13
- export const LocalModelResolver = lazy(() => import('./local-model-resolver'));
14
- export const ReactSurface = lazy(() => import('./react-surface'));
15
- export const Settings = lazy(() => import('./settings'));
16
- export const Toolkit = lazy(() => import('./toolkit'));
17
- export const ComputeRuntime = lazy(() => import('./compute-runtime'));
18
-
5
+ export * from './ai-service';
6
+ export * from './app-graph-builder';
19
7
  export * from './blueprint-definition';
20
- export * from './capabilities';
8
+ export * from './edge-model-resolver';
9
+ export * from './local-model-resolver';
10
+ export * from './operation-resolver';
11
+ export * from './react-surface';
12
+ export * from './repair';
13
+ export * from './settings';
14
+ export * from './state';
15
+ export * from './toolkit';
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Capability } from '@dxos/app-framework';
6
+
7
+ export const LocalModelResolver = Capability.lazy('LocalModelResolver', () => import('./local-model-resolver'));
@@ -0,0 +1,38 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as OpenAiClient from '@effect/ai-openai/OpenAiClient';
6
+ import * as FetchHttpClient from '@effect/platform/FetchHttpClient';
7
+ import * as Effect from 'effect/Effect';
8
+ import * as Layer from 'effect/Layer';
9
+
10
+ import { LMStudioResolver } from '@dxos/ai/resolvers';
11
+ import { Capability } from '@dxos/app-framework';
12
+ import { AppCapabilities } from '@dxos/app-toolkit';
13
+
14
+ export type LocalModelResolverCapabilities = [Capability.Capability<typeof AppCapabilities.AiModelResolver>];
15
+
16
+ /**
17
+ * To start LM Studio server:
18
+ * ```bash
19
+ * ~/.lmstudio/bin/lms server start --cors
20
+ * ```
21
+ */
22
+ const localModelResolver = Capability.makeModule<[], LocalModelResolverCapabilities>(() =>
23
+ Effect.succeed([
24
+ Capability.contributes(
25
+ AppCapabilities.AiModelResolver,
26
+ LMStudioResolver.make().pipe(
27
+ Layer.provide(
28
+ OpenAiClient.layer({
29
+ apiUrl: LMStudioResolver.DEFAULT_LMSTUDIO_ENDPOINT,
30
+ }),
31
+ ),
32
+ Layer.provide(FetchHttpClient.layer),
33
+ ),
34
+ ),
35
+ ]),
36
+ );
37
+
38
+ export default localModelResolver;
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Capability } from '@dxos/app-framework';
6
+
7
+ export const OperationResolver = Capability.lazy('OperationResolver', () => import('./operation-resolver'));