@dxos/plugin-assistant 0.8.4-main.1da679c → 0.8.4-main.21d9917

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 (619) 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-GFSJZTOT.mjs +153 -0
  4. package/dist/lib/browser/ChatCompanion-GFSJZTOT.mjs.map +7 -0
  5. package/dist/lib/browser/ChatContainer-IHAPBIZE.mjs +72 -0
  6. package/dist/lib/browser/ChatContainer-IHAPBIZE.mjs.map +7 -0
  7. package/dist/lib/browser/ChatDialog-EGRMPCTL.mjs +85 -0
  8. package/dist/lib/browser/ChatDialog-EGRMPCTL.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/blueprints/index.mjs +12 -0
  17. package/dist/lib/browser/chunk-A75V4MOQ.mjs +1832 -0
  18. package/dist/lib/browser/chunk-A75V4MOQ.mjs.map +7 -0
  19. package/dist/lib/browser/chunk-DKQMSMBN.mjs +326 -0
  20. package/dist/lib/browser/chunk-DKQMSMBN.mjs.map +7 -0
  21. package/dist/lib/browser/chunk-EXVT7D4B.mjs +23 -0
  22. package/dist/lib/browser/chunk-EXVT7D4B.mjs.map +7 -0
  23. package/dist/lib/browser/chunk-ML3QCFKA.mjs +265 -0
  24. package/dist/lib/browser/chunk-ML3QCFKA.mjs.map +7 -0
  25. package/dist/lib/browser/chunk-MRJVYGLU.mjs +208 -0
  26. package/dist/lib/browser/chunk-MRJVYGLU.mjs.map +7 -0
  27. package/dist/lib/browser/chunk-V772AMZM.mjs +250 -0
  28. package/dist/lib/browser/chunk-V772AMZM.mjs.map +7 -0
  29. package/dist/lib/browser/chunk-WGQTU6UJ.mjs +41 -0
  30. package/dist/lib/browser/chunk-WGQTU6UJ.mjs.map +7 -0
  31. package/dist/lib/browser/edge-model-resolver-26BOY6HY.mjs +20 -0
  32. package/dist/lib/browser/edge-model-resolver-26BOY6HY.mjs.map +7 -0
  33. package/dist/lib/browser/index.mjs +229 -216
  34. package/dist/lib/browser/index.mjs.map +4 -4
  35. package/dist/lib/browser/local-model-resolver-ZFIM6GGV.mjs +19 -0
  36. package/dist/lib/browser/local-model-resolver-ZFIM6GGV.mjs.map +7 -0
  37. package/dist/lib/browser/meta.json +1 -1
  38. package/dist/lib/browser/operation-resolver-7XJLBRQY.mjs +132 -0
  39. package/dist/lib/browser/operation-resolver-7XJLBRQY.mjs.map +7 -0
  40. package/dist/lib/browser/react-surface-S7SBFOSW.mjs +109 -0
  41. package/dist/lib/browser/react-surface-S7SBFOSW.mjs.map +7 -0
  42. package/dist/lib/browser/repair-6QGAKOVM.mjs +54 -0
  43. package/dist/lib/browser/repair-6QGAKOVM.mjs.map +7 -0
  44. package/dist/lib/browser/settings-4ZDLUMYE.mjs +32 -0
  45. package/dist/lib/browser/settings-4ZDLUMYE.mjs.map +7 -0
  46. package/dist/lib/browser/state-AN6336ZX.mjs +26 -0
  47. package/dist/lib/browser/state-AN6336ZX.mjs.map +7 -0
  48. package/dist/lib/browser/toolkit-7AVTEPMA.mjs +18 -0
  49. package/dist/lib/browser/toolkit-7AVTEPMA.mjs.map +7 -0
  50. package/dist/lib/browser/types/index.mjs +8 -4
  51. package/dist/lib/node-esm/BlueprintArticle-WZ76E2C4.mjs +32 -0
  52. package/dist/lib/node-esm/BlueprintArticle-WZ76E2C4.mjs.map +7 -0
  53. package/dist/lib/node-esm/ChatCompanion-UR7DXZ54.mjs +154 -0
  54. package/dist/lib/node-esm/ChatCompanion-UR7DXZ54.mjs.map +7 -0
  55. package/dist/lib/node-esm/ChatContainer-YMLLGOZK.mjs +73 -0
  56. package/dist/lib/node-esm/ChatContainer-YMLLGOZK.mjs.map +7 -0
  57. package/dist/lib/node-esm/ChatDialog-D24WJPK4.mjs +86 -0
  58. package/dist/lib/node-esm/ChatDialog-D24WJPK4.mjs.map +7 -0
  59. package/dist/lib/node-esm/PromptArticle-D4HAIIC6.mjs +54 -0
  60. package/dist/lib/node-esm/PromptArticle-D4HAIIC6.mjs.map +7 -0
  61. package/dist/lib/node-esm/ai-service-PXKKCFIF.mjs +22 -0
  62. package/dist/lib/node-esm/ai-service-PXKKCFIF.mjs.map +7 -0
  63. package/dist/lib/node-esm/app-graph-builder-TJCUEXW5.mjs +213 -0
  64. package/dist/lib/node-esm/app-graph-builder-TJCUEXW5.mjs.map +7 -0
  65. package/dist/lib/node-esm/{blueprint-definition-B6UDX5U3.mjs → blueprint-definition-SEMDEIYG.mjs} +6 -4
  66. package/dist/lib/node-esm/blueprint-definition-SEMDEIYG.mjs.map +7 -0
  67. package/dist/lib/node-esm/blueprints/index.mjs +13 -0
  68. package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
  69. package/dist/lib/node-esm/chunk-355W5B27.mjs +251 -0
  70. package/dist/lib/node-esm/chunk-355W5B27.mjs.map +7 -0
  71. package/dist/lib/node-esm/chunk-4BERCIES.mjs +1833 -0
  72. package/dist/lib/node-esm/chunk-4BERCIES.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-DCA5QWQT.mjs +209 -0
  76. package/dist/lib/node-esm/chunk-DCA5QWQT.mjs.map +7 -0
  77. package/dist/lib/node-esm/chunk-MSBPC4RJ.mjs +42 -0
  78. package/dist/lib/node-esm/chunk-MSBPC4RJ.mjs.map +7 -0
  79. package/dist/lib/node-esm/chunk-POWB2BPC.mjs +25 -0
  80. package/dist/lib/node-esm/chunk-POWB2BPC.mjs.map +7 -0
  81. package/dist/lib/node-esm/chunk-ZRIPP7YF.mjs +267 -0
  82. package/dist/lib/node-esm/chunk-ZRIPP7YF.mjs.map +7 -0
  83. package/dist/lib/node-esm/edge-model-resolver-G5KMODPO.mjs +21 -0
  84. package/dist/lib/node-esm/edge-model-resolver-G5KMODPO.mjs.map +7 -0
  85. package/dist/lib/node-esm/index.mjs +229 -216
  86. package/dist/lib/node-esm/index.mjs.map +4 -4
  87. package/dist/lib/node-esm/local-model-resolver-KDZLYI7Y.mjs +20 -0
  88. package/dist/lib/node-esm/local-model-resolver-KDZLYI7Y.mjs.map +7 -0
  89. package/dist/lib/node-esm/meta.json +1 -1
  90. package/dist/lib/node-esm/operation-resolver-SX4WMNA7.mjs +133 -0
  91. package/dist/lib/node-esm/operation-resolver-SX4WMNA7.mjs.map +7 -0
  92. package/dist/lib/node-esm/react-surface-ZR6FXGLF.mjs +110 -0
  93. package/dist/lib/node-esm/react-surface-ZR6FXGLF.mjs.map +7 -0
  94. package/dist/lib/node-esm/repair-QJ7CQDKU.mjs +55 -0
  95. package/dist/lib/node-esm/repair-QJ7CQDKU.mjs.map +7 -0
  96. package/dist/lib/node-esm/settings-CQEOHR3R.mjs +33 -0
  97. package/dist/lib/node-esm/settings-CQEOHR3R.mjs.map +7 -0
  98. package/dist/lib/node-esm/state-HDON4REW.mjs +27 -0
  99. package/dist/lib/node-esm/state-HDON4REW.mjs.map +7 -0
  100. package/dist/lib/node-esm/toolkit-OWGCEKOO.mjs +19 -0
  101. package/dist/lib/node-esm/toolkit-OWGCEKOO.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 +209 -0
  106. package/dist/types/src/blueprints/assistant-blueprint.d.ts.map +1 -0
  107. package/dist/types/src/blueprints/index.d.ts +7 -0
  108. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  109. package/dist/types/src/capabilities/ai-service/ai-service.d.ts +5 -0
  110. package/dist/types/src/capabilities/ai-service/ai-service.d.ts.map +1 -0
  111. package/dist/types/src/capabilities/ai-service/index.d.ts +3 -0
  112. package/dist/types/src/capabilities/ai-service/index.d.ts.map +1 -0
  113. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  114. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  115. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  116. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  117. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +21 -0
  118. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
  119. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +4 -0
  120. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
  121. package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts +6 -0
  122. package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts.map +1 -0
  123. package/dist/types/src/capabilities/edge-model-resolver/index.d.ts +3 -0
  124. package/dist/types/src/capabilities/edge-model-resolver/index.d.ts.map +1 -0
  125. package/dist/types/src/capabilities/index.d.ts +10 -11
  126. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  127. package/dist/types/src/capabilities/local-model-resolver/index.d.ts +3 -0
  128. package/dist/types/src/capabilities/local-model-resolver/index.d.ts.map +1 -0
  129. package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts +12 -0
  130. package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts.map +1 -0
  131. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  132. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  133. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  134. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  135. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  136. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  137. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  138. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  139. package/dist/types/src/capabilities/repair/index.d.ts +3 -0
  140. package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
  141. package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
  142. package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
  143. package/dist/types/src/capabilities/settings/index.d.ts +15 -0
  144. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  145. package/dist/types/src/capabilities/settings/settings.d.ts +17 -0
  146. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  147. package/dist/types/src/capabilities/state/index.d.ts +11 -0
  148. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  149. package/dist/types/src/capabilities/state/state.d.ts +13 -0
  150. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  151. package/dist/types/src/capabilities/toolkit/index.d.ts +3 -0
  152. package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -0
  153. package/dist/types/src/capabilities/toolkit/toolkit.d.ts +5 -0
  154. package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -0
  155. package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts +4 -2
  156. package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -1
  157. package/dist/types/src/components/BlueprintArticle.d.ts +7 -0
  158. package/dist/types/src/components/BlueprintArticle.d.ts.map +1 -0
  159. package/dist/types/src/components/Chat/Chat.d.ts +23 -13
  160. package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
  161. package/dist/types/src/components/Chat/events.d.ts +5 -1
  162. package/dist/types/src/components/Chat/events.d.ts.map +1 -1
  163. package/dist/types/src/components/ChatCompanion.d.ts +2 -2
  164. package/dist/types/src/components/ChatCompanion.d.ts.map +1 -1
  165. package/dist/types/src/components/ChatContainer.d.ts +13 -5
  166. package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
  167. package/dist/types/src/components/ChatDialog.d.ts.map +1 -1
  168. package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +1 -1
  169. package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
  170. package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +3 -3
  171. package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -1
  172. package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +3 -3
  173. package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
  174. package/dist/types/src/components/ChatThread/ChatThread.d.ts +7 -8
  175. package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
  176. package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +133 -74
  177. package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
  178. package/dist/types/src/components/ChatThread/reducers.d.ts +5 -5
  179. package/dist/types/src/components/ChatThread/reducers.d.ts.map +1 -1
  180. package/dist/types/src/components/ChatThread/registry.d.ts +1 -1
  181. package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -1
  182. package/dist/types/src/components/ChatThread/sync.d.ts +12 -6
  183. package/dist/types/src/components/ChatThread/sync.d.ts.map +1 -1
  184. package/dist/types/src/components/PromptArticle.d.ts +7 -0
  185. package/dist/types/src/components/PromptArticle.d.ts.map +1 -0
  186. package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +2 -1
  187. package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
  188. package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +116 -61
  189. package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
  190. package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +12 -2
  191. package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
  192. package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +117 -62
  193. package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
  194. package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +1 -0
  195. package/dist/types/src/components/TemplateEditor/extensions/index.d.ts +3 -0
  196. package/dist/types/src/components/TemplateEditor/extensions/index.d.ts.map +1 -0
  197. package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts +8 -0
  198. package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts.map +1 -0
  199. package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +10 -8
  200. package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -1
  201. package/dist/types/src/components/Toolbox/Toolbox.d.ts +6 -7
  202. package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
  203. package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +116 -61
  204. package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
  205. package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts +12 -0
  206. package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts.map +1 -0
  207. package/dist/types/src/components/Typewriter/Typewriter.d.ts +11 -0
  208. package/dist/types/src/components/Typewriter/Typewriter.d.ts.map +1 -0
  209. package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts +7 -0
  210. package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts.map +1 -0
  211. package/dist/types/src/components/Typewriter/assistant-extension.d.ts +5 -0
  212. package/dist/types/src/components/Typewriter/assistant-extension.d.ts.map +1 -0
  213. package/dist/types/src/components/Typewriter/index.d.ts +2 -0
  214. package/dist/types/src/components/Typewriter/index.d.ts.map +1 -0
  215. package/dist/types/src/components/index.d.ts +10 -9
  216. package/dist/types/src/components/index.d.ts.map +1 -1
  217. package/dist/types/src/functions/index.d.ts +3 -3
  218. package/dist/types/src/functions/index.d.ts.map +1 -1
  219. package/dist/types/src/functions/{list.d.ts → object-list.d.ts} +3 -3
  220. package/dist/types/src/functions/object-list.d.ts.map +1 -0
  221. package/dist/types/src/functions/{load.d.ts → object-load.d.ts} +2 -2
  222. package/dist/types/src/functions/object-load.d.ts.map +1 -0
  223. package/dist/types/src/functions/object-search.d.ts +10 -0
  224. package/dist/types/src/functions/object-search.d.ts.map +1 -0
  225. package/dist/types/src/hooks/index.d.ts +2 -2
  226. package/dist/types/src/hooks/index.d.ts.map +1 -1
  227. package/dist/types/src/hooks/useBlueprintRegistry.d.ts +5 -4
  228. package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
  229. package/dist/types/src/hooks/useChatProcessor.d.ts +4 -2
  230. package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
  231. package/dist/types/src/hooks/useChatServices.d.ts +4 -4
  232. package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
  233. package/dist/types/src/hooks/useChatToolbarActions.d.ts +8 -0
  234. package/dist/types/src/hooks/useChatToolbarActions.d.ts.map +1 -0
  235. package/dist/types/src/hooks/useContextBinder.d.ts +2 -2
  236. package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -1
  237. package/dist/types/src/hooks/useContextObjects.d.ts +7 -7
  238. package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -1
  239. package/dist/types/src/hooks/useFilteredTypes.d.ts +3 -0
  240. package/dist/types/src/hooks/useFilteredTypes.d.ts.map +1 -0
  241. package/dist/types/src/hooks/useReferencesProvider.d.ts.map +1 -1
  242. package/dist/types/src/index.d.ts +2 -1
  243. package/dist/types/src/index.d.ts.map +1 -1
  244. package/dist/types/src/meta.d.ts +3 -4
  245. package/dist/types/src/meta.d.ts.map +1 -1
  246. package/dist/types/src/processor/index.d.ts +1 -0
  247. package/dist/types/src/processor/index.d.ts.map +1 -1
  248. package/dist/types/src/processor/presets.d.ts +1 -1
  249. package/dist/types/src/processor/presets.d.ts.map +1 -1
  250. package/dist/types/src/processor/processor.d.ts +19 -17
  251. package/dist/types/src/processor/processor.d.ts.map +1 -1
  252. package/dist/types/src/processor/update-name.d.ts +10 -0
  253. package/dist/types/src/processor/update-name.d.ts.map +1 -0
  254. package/dist/types/src/queue-logger.d.ts.map +1 -1
  255. package/dist/types/src/testing/index.d.ts +0 -2
  256. package/dist/types/src/testing/index.d.ts.map +1 -1
  257. package/dist/types/src/testing/test-generator.d.ts +6 -5
  258. package/dist/types/src/testing/test-generator.d.ts.map +1 -1
  259. package/dist/types/src/testing/test-services.d.ts +2 -2
  260. package/dist/types/src/testing/test-services.d.ts.map +1 -1
  261. package/dist/types/src/translations.d.ts +244 -26
  262. package/dist/types/src/translations.d.ts.map +1 -1
  263. package/dist/types/src/types/Assistant.d.ts +20 -20
  264. package/dist/types/src/types/Assistant.d.ts.map +1 -1
  265. package/dist/types/src/types/AssistantAction.d.ts +89 -101
  266. package/dist/types/src/types/AssistantAction.d.ts.map +1 -1
  267. package/dist/types/src/types/capabilities.d.ts +33 -0
  268. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  269. package/dist/types/src/types/events.d.ts +5 -0
  270. package/dist/types/src/types/events.d.ts.map +1 -0
  271. package/dist/types/src/types/index.d.ts +3 -1
  272. package/dist/types/src/types/index.d.ts.map +1 -1
  273. package/dist/types/src/types/service.d.ts +14 -216
  274. package/dist/types/src/types/service.d.ts.map +1 -1
  275. package/dist/types/tsconfig.tsbuildinfo +1 -1
  276. package/package.json +118 -117
  277. package/src/AssistantPlugin.tsx +114 -146
  278. package/src/blueprints/assistant-blueprint.ts +62 -0
  279. package/src/blueprints/index.ts +12 -0
  280. package/src/capabilities/ai-service/ai-service.ts +29 -0
  281. package/src/capabilities/ai-service/index.ts +7 -0
  282. package/src/capabilities/app-graph-builder/app-graph-builder.ts +180 -0
  283. package/src/capabilities/app-graph-builder/index.ts +7 -0
  284. package/src/capabilities/blueprint-definition/blueprint-definition.ts +60 -0
  285. package/src/capabilities/blueprint-definition/index.ts +8 -0
  286. package/src/capabilities/edge-model-resolver/edge-model-resolver.ts +32 -0
  287. package/src/capabilities/edge-model-resolver/index.ts +7 -0
  288. package/src/capabilities/index.ts +10 -14
  289. package/src/capabilities/local-model-resolver/index.ts +7 -0
  290. package/src/capabilities/local-model-resolver/local-model-resolver.ts +37 -0
  291. package/src/capabilities/operation-resolver/index.ts +7 -0
  292. package/src/capabilities/operation-resolver/operation-resolver.ts +110 -0
  293. package/src/capabilities/react-surface/index.ts +7 -0
  294. package/src/capabilities/react-surface/react-surface.tsx +95 -0
  295. package/src/capabilities/repair/index.ts +7 -0
  296. package/src/capabilities/repair/repair.ts +63 -0
  297. package/src/capabilities/settings/index.ts +7 -0
  298. package/src/capabilities/settings/settings.ts +30 -0
  299. package/src/capabilities/state/index.ts +7 -0
  300. package/src/capabilities/state/state.ts +27 -0
  301. package/src/capabilities/toolkit/index.ts +7 -0
  302. package/src/capabilities/toolkit/toolkit.ts +26 -0
  303. package/src/components/AssistantSettings/AssistantSettings.tsx +13 -5
  304. package/src/components/BlueprintArticle.tsx +29 -0
  305. package/src/components/Chat/Chat.tsx +193 -151
  306. package/src/components/Chat/events.ts +7 -1
  307. package/src/components/ChatCompanion.tsx +143 -91
  308. package/src/components/ChatContainer.tsx +40 -30
  309. package/src/components/ChatDialog.tsx +13 -7
  310. package/src/components/ChatProgress/ChatProgress.tsx +4 -18
  311. package/src/components/ChatPrompt/ChatActions.tsx +3 -5
  312. package/src/components/ChatPrompt/ChatOptions.tsx +104 -99
  313. package/src/components/ChatPrompt/ChatReferences.tsx +7 -8
  314. package/src/components/ChatPrompt/ChatStatusIndicator.tsx +1 -1
  315. package/src/components/ChatThread/ChatThread.stories.tsx +62 -42
  316. package/src/components/ChatThread/ChatThread.tsx +29 -35
  317. package/src/components/ChatThread/Link.tsx +3 -3
  318. package/src/components/ChatThread/reducers.ts +6 -6
  319. package/src/components/ChatThread/registry.tsx +26 -41
  320. package/src/components/ChatThread/sync.test.ts +33 -18
  321. package/src/components/ChatThread/sync.ts +54 -13
  322. package/src/components/ChatThread/testing/thread.md +37 -0
  323. package/src/components/PromptArticle.tsx +50 -0
  324. package/src/components/TemplateEditor/TemplateEditor.stories.tsx +16 -8
  325. package/src/components/TemplateEditor/TemplateEditor.tsx +24 -12
  326. package/src/components/TemplateEditor/TemplateForm.stories.tsx +17 -11
  327. package/src/components/TemplateEditor/TemplateForm.tsx +77 -30
  328. package/src/components/TemplateEditor/extensions/handlebars-extension.ts +274 -0
  329. package/src/components/TemplateEditor/extensions/index.ts +6 -0
  330. package/src/components/TemplateEditor/extensions/xml-extension.ts +64 -0
  331. package/src/components/ToolBlock/ToolBlock.tsx +40 -49
  332. package/src/components/Toolbox/Toolbox.stories.tsx +11 -15
  333. package/src/components/Toolbox/Toolbox.tsx +18 -19
  334. package/src/components/Typewriter/AssistantToolbar.tsx +161 -0
  335. package/src/components/Typewriter/Typewriter.stories.tsx +83 -0
  336. package/src/components/Typewriter/Typewriter.tsx +54 -0
  337. package/src/components/Typewriter/assistant-extension.tsx +144 -0
  338. package/src/components/Typewriter/index.ts +5 -0
  339. package/src/components/index.ts +2 -5
  340. package/src/functions/index.ts +3 -3
  341. package/src/functions/{list.ts → object-list.ts} +10 -7
  342. package/src/functions/{load.ts → object-load.ts} +15 -10
  343. package/src/functions/object-search.ts +46 -0
  344. package/src/hooks/index.ts +2 -2
  345. package/src/hooks/useBlueprintRegistry.ts +44 -19
  346. package/src/hooks/useChatProcessor.ts +25 -14
  347. package/src/hooks/useChatServices.ts +16 -17
  348. package/src/hooks/useChatToolbarActions.ts +121 -0
  349. package/src/hooks/useContextBinder.ts +21 -7
  350. package/src/hooks/useContextObjects.ts +13 -25
  351. package/src/hooks/useFilteredTypes.ts +37 -0
  352. package/src/hooks/useReferencesProvider.ts +7 -6
  353. package/src/index.ts +2 -1
  354. package/src/meta.ts +11 -8
  355. package/src/processor/index.ts +1 -0
  356. package/src/processor/presets.ts +2 -2
  357. package/src/processor/processor.test.ts +19 -24
  358. package/src/processor/processor.ts +51 -78
  359. package/src/processor/update-name.ts +59 -0
  360. package/src/queue-logger.ts +8 -9
  361. package/src/testing/index.ts +0 -2
  362. package/src/testing/test-generator.ts +19 -14
  363. package/src/testing/test-services.ts +10 -14
  364. package/src/translations.ts +28 -16
  365. package/src/types/Assistant.ts +13 -12
  366. package/src/types/AssistantAction.ts +65 -52
  367. package/src/types/capabilities.ts +27 -0
  368. package/src/types/events.ts +11 -0
  369. package/src/types/index.ts +3 -1
  370. package/src/types/service.ts +25 -14
  371. package/dist/lib/browser/BlueprintContainer-6MZHBQ25.mjs +0 -29
  372. package/dist/lib/browser/BlueprintContainer-6MZHBQ25.mjs.map +0 -7
  373. package/dist/lib/browser/ChatCompanion-B4DLQE6Y.mjs +0 -124
  374. package/dist/lib/browser/ChatCompanion-B4DLQE6Y.mjs.map +0 -7
  375. package/dist/lib/browser/ChatContainer-Z7A3RKOY.mjs +0 -73
  376. package/dist/lib/browser/ChatContainer-Z7A3RKOY.mjs.map +0 -7
  377. package/dist/lib/browser/ChatDialog-PL5TSGD5.mjs +0 -86
  378. package/dist/lib/browser/ChatDialog-PL5TSGD5.mjs.map +0 -7
  379. package/dist/lib/browser/SequenceContainer-TF5QNXYM.mjs +0 -150
  380. package/dist/lib/browser/SequenceContainer-TF5QNXYM.mjs.map +0 -7
  381. package/dist/lib/browser/ai-service-4VESSFNB.mjs +0 -18
  382. package/dist/lib/browser/ai-service-4VESSFNB.mjs.map +0 -7
  383. package/dist/lib/browser/app-graph-builder-BBDHBJXA.mjs +0 -153
  384. package/dist/lib/browser/app-graph-builder-BBDHBJXA.mjs.map +0 -7
  385. package/dist/lib/browser/blueprint-definition-3SATLYJW.mjs +0 -12
  386. package/dist/lib/browser/chunk-BBT6KNXA.mjs +0 -165
  387. package/dist/lib/browser/chunk-BBT6KNXA.mjs.map +0 -7
  388. package/dist/lib/browser/chunk-JDI4FEKA.mjs +0 -299
  389. package/dist/lib/browser/chunk-JDI4FEKA.mjs.map +0 -7
  390. package/dist/lib/browser/chunk-O4LUJEDV.mjs +0 -20
  391. package/dist/lib/browser/chunk-O4LUJEDV.mjs.map +0 -7
  392. package/dist/lib/browser/chunk-PQI3MGDN.mjs +0 -169
  393. package/dist/lib/browser/chunk-PQI3MGDN.mjs.map +0 -7
  394. package/dist/lib/browser/chunk-SMIVXXAI.mjs +0 -202
  395. package/dist/lib/browser/chunk-SMIVXXAI.mjs.map +0 -7
  396. package/dist/lib/browser/chunk-TMKK6VCA.mjs +0 -216
  397. package/dist/lib/browser/chunk-TMKK6VCA.mjs.map +0 -7
  398. package/dist/lib/browser/chunk-YKODYEYR.mjs +0 -16
  399. package/dist/lib/browser/chunk-YKODYEYR.mjs.map +0 -7
  400. package/dist/lib/browser/chunk-YOBHCEEI.mjs +0 -1941
  401. package/dist/lib/browser/chunk-YOBHCEEI.mjs.map +0 -7
  402. package/dist/lib/browser/edge-model-resolver-6YWYDPTS.mjs +0 -18
  403. package/dist/lib/browser/edge-model-resolver-6YWYDPTS.mjs.map +0 -7
  404. package/dist/lib/browser/intent-resolver-MRZJU255.mjs +0 -112
  405. package/dist/lib/browser/intent-resolver-MRZJU255.mjs.map +0 -7
  406. package/dist/lib/browser/local-model-resolver-QXLLTV2H.mjs +0 -17
  407. package/dist/lib/browser/local-model-resolver-QXLLTV2H.mjs.map +0 -7
  408. package/dist/lib/browser/react-surface-UKMOARXR.mjs +0 -107
  409. package/dist/lib/browser/react-surface-UKMOARXR.mjs.map +0 -7
  410. package/dist/lib/browser/settings-4AJ34FKF.mjs +0 -23
  411. package/dist/lib/browser/settings-4AJ34FKF.mjs.map +0 -7
  412. package/dist/lib/browser/state-ABR7YSSA.mjs +0 -21
  413. package/dist/lib/browser/state-ABR7YSSA.mjs.map +0 -7
  414. package/dist/lib/browser/toolkit-U7SKGAIC.mjs +0 -191
  415. package/dist/lib/browser/toolkit-U7SKGAIC.mjs.map +0 -7
  416. package/dist/lib/node-esm/BlueprintContainer-MUHW5HNY.mjs +0 -30
  417. package/dist/lib/node-esm/BlueprintContainer-MUHW5HNY.mjs.map +0 -7
  418. package/dist/lib/node-esm/ChatCompanion-DK6FULBU.mjs +0 -125
  419. package/dist/lib/node-esm/ChatCompanion-DK6FULBU.mjs.map +0 -7
  420. package/dist/lib/node-esm/ChatContainer-7IN7ZICQ.mjs +0 -74
  421. package/dist/lib/node-esm/ChatContainer-7IN7ZICQ.mjs.map +0 -7
  422. package/dist/lib/node-esm/ChatDialog-LPE653RZ.mjs +0 -87
  423. package/dist/lib/node-esm/ChatDialog-LPE653RZ.mjs.map +0 -7
  424. package/dist/lib/node-esm/SequenceContainer-UXOVZPZO.mjs +0 -151
  425. package/dist/lib/node-esm/SequenceContainer-UXOVZPZO.mjs.map +0 -7
  426. package/dist/lib/node-esm/ai-service-I5JU4JN2.mjs +0 -19
  427. package/dist/lib/node-esm/ai-service-I5JU4JN2.mjs.map +0 -7
  428. package/dist/lib/node-esm/app-graph-builder-EMR5JF6Z.mjs +0 -154
  429. package/dist/lib/node-esm/app-graph-builder-EMR5JF6Z.mjs.map +0 -7
  430. package/dist/lib/node-esm/chunk-4WLFSXZG.mjs +0 -170
  431. package/dist/lib/node-esm/chunk-4WLFSXZG.mjs.map +0 -7
  432. package/dist/lib/node-esm/chunk-5MYWJPYA.mjs +0 -167
  433. package/dist/lib/node-esm/chunk-5MYWJPYA.mjs.map +0 -7
  434. package/dist/lib/node-esm/chunk-7YOGZI66.mjs +0 -203
  435. package/dist/lib/node-esm/chunk-7YOGZI66.mjs.map +0 -7
  436. package/dist/lib/node-esm/chunk-FHRJMZ7L.mjs +0 -17
  437. package/dist/lib/node-esm/chunk-FHRJMZ7L.mjs.map +0 -7
  438. package/dist/lib/node-esm/chunk-GCNF3CQU.mjs +0 -217
  439. package/dist/lib/node-esm/chunk-GCNF3CQU.mjs.map +0 -7
  440. package/dist/lib/node-esm/chunk-H3ZC4UL7.mjs +0 -300
  441. package/dist/lib/node-esm/chunk-H3ZC4UL7.mjs.map +0 -7
  442. package/dist/lib/node-esm/chunk-VFY2JG62.mjs +0 -22
  443. package/dist/lib/node-esm/chunk-VFY2JG62.mjs.map +0 -7
  444. package/dist/lib/node-esm/chunk-X2YUKRBE.mjs +0 -1942
  445. package/dist/lib/node-esm/chunk-X2YUKRBE.mjs.map +0 -7
  446. package/dist/lib/node-esm/edge-model-resolver-A7B6QHLL.mjs +0 -19
  447. package/dist/lib/node-esm/edge-model-resolver-A7B6QHLL.mjs.map +0 -7
  448. package/dist/lib/node-esm/intent-resolver-CIXO3KMY.mjs +0 -113
  449. package/dist/lib/node-esm/intent-resolver-CIXO3KMY.mjs.map +0 -7
  450. package/dist/lib/node-esm/local-model-resolver-JCYDHAZY.mjs +0 -18
  451. package/dist/lib/node-esm/local-model-resolver-JCYDHAZY.mjs.map +0 -7
  452. package/dist/lib/node-esm/react-surface-5NDJAWA2.mjs +0 -108
  453. package/dist/lib/node-esm/react-surface-5NDJAWA2.mjs.map +0 -7
  454. package/dist/lib/node-esm/settings-K2QW4ATZ.mjs +0 -24
  455. package/dist/lib/node-esm/settings-K2QW4ATZ.mjs.map +0 -7
  456. package/dist/lib/node-esm/state-6UHESJI5.mjs +0 -22
  457. package/dist/lib/node-esm/state-6UHESJI5.mjs.map +0 -7
  458. package/dist/lib/node-esm/toolkit-LNLRBVDU.mjs +0 -192
  459. package/dist/lib/node-esm/toolkit-LNLRBVDU.mjs.map +0 -7
  460. package/dist/types/src/capabilities/ai-service.d.ts +0 -4
  461. package/dist/types/src/capabilities/ai-service.d.ts.map +0 -1
  462. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  463. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  464. package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -7
  465. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
  466. package/dist/types/src/capabilities/capabilities.d.ts +0 -11
  467. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  468. package/dist/types/src/capabilities/edge-model-resolver.d.ts +0 -4
  469. package/dist/types/src/capabilities/edge-model-resolver.d.ts.map +0 -1
  470. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  471. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  472. package/dist/types/src/capabilities/local-model-resolver.d.ts +0 -10
  473. package/dist/types/src/capabilities/local-model-resolver.d.ts.map +0 -1
  474. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  475. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  476. package/dist/types/src/capabilities/settings.d.ts +0 -4
  477. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  478. package/dist/types/src/capabilities/state.d.ts +0 -4
  479. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  480. package/dist/types/src/capabilities/toolkit.d.ts +0 -4
  481. package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
  482. package/dist/types/src/components/BlueprintContainer.d.ts +0 -8
  483. package/dist/types/src/components/BlueprintContainer.d.ts.map +0 -1
  484. package/dist/types/src/components/PromptSettings.d.ts +0 -6
  485. package/dist/types/src/components/PromptSettings.d.ts.map +0 -1
  486. package/dist/types/src/components/SequenceContainer.d.ts +0 -8
  487. package/dist/types/src/components/SequenceContainer.d.ts.map +0 -1
  488. package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts +0 -13
  489. package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts.map +0 -1
  490. package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts +0 -267
  491. package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts.map +0 -1
  492. package/dist/types/src/components/SequenceEditor/index.d.ts +0 -2
  493. package/dist/types/src/components/SequenceEditor/index.d.ts.map +0 -1
  494. package/dist/types/src/components/TemplateEditor/handlebars-extension.d.ts.map +0 -1
  495. package/dist/types/src/components/Toolbar/Toolbar.d.ts +0 -5
  496. package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +0 -1
  497. package/dist/types/src/components/Toolbar/index.d.ts +0 -2
  498. package/dist/types/src/components/Toolbar/index.d.ts.map +0 -1
  499. package/dist/types/src/components/Toolbar/useChatToolbarActions.d.ts +0 -11
  500. package/dist/types/src/components/Toolbar/useChatToolbarActions.d.ts.map +0 -1
  501. package/dist/types/src/events.d.ts +0 -4
  502. package/dist/types/src/events.d.ts.map +0 -1
  503. package/dist/types/src/execution-graph/execution-graph.d.ts +0 -21
  504. package/dist/types/src/execution-graph/execution-graph.d.ts.map +0 -1
  505. package/dist/types/src/execution-graph/index.d.ts +0 -2
  506. package/dist/types/src/execution-graph/index.d.ts.map +0 -1
  507. package/dist/types/src/functions/analysis.d.ts +0 -5
  508. package/dist/types/src/functions/analysis.d.ts.map +0 -1
  509. package/dist/types/src/functions/list.d.ts.map +0 -1
  510. package/dist/types/src/functions/load.d.ts.map +0 -1
  511. package/dist/types/src/hooks/useExecutionGraph.d.ts +0 -6
  512. package/dist/types/src/hooks/useExecutionGraph.d.ts.map +0 -1
  513. package/dist/types/src/hooks/useItemTypes.d.ts +0 -4
  514. package/dist/types/src/hooks/useItemTypes.d.ts.map +0 -1
  515. package/dist/types/src/stories/Chat.stories.d.ts +0 -31
  516. package/dist/types/src/stories/Chat.stories.d.ts.map +0 -1
  517. package/dist/types/src/stories/components/BlueprintContainer.d.ts +0 -4
  518. package/dist/types/src/stories/components/BlueprintContainer.d.ts.map +0 -1
  519. package/dist/types/src/stories/components/ChatContainer.d.ts +0 -4
  520. package/dist/types/src/stories/components/ChatContainer.d.ts.map +0 -1
  521. package/dist/types/src/stories/components/ChessContainer.d.ts +0 -4
  522. package/dist/types/src/stories/components/ChessContainer.d.ts.map +0 -1
  523. package/dist/types/src/stories/components/CommentsContainer.d.ts +0 -4
  524. package/dist/types/src/stories/components/CommentsContainer.d.ts.map +0 -1
  525. package/dist/types/src/stories/components/DebugCard.d.ts +0 -8
  526. package/dist/types/src/stories/components/DebugCard.d.ts.map +0 -1
  527. package/dist/types/src/stories/components/GraphContainer.d.ts +0 -6
  528. package/dist/types/src/stories/components/GraphContainer.d.ts.map +0 -1
  529. package/dist/types/src/stories/components/InvocationsContainer.d.ts +0 -4
  530. package/dist/types/src/stories/components/InvocationsContainer.d.ts.map +0 -1
  531. package/dist/types/src/stories/components/LoggingContainer.d.ts +0 -7
  532. package/dist/types/src/stories/components/LoggingContainer.d.ts.map +0 -1
  533. package/dist/types/src/stories/components/MessageContainer.d.ts +0 -4
  534. package/dist/types/src/stories/components/MessageContainer.d.ts.map +0 -1
  535. package/dist/types/src/stories/components/ProjectContainer.d.ts +0 -4
  536. package/dist/types/src/stories/components/ProjectContainer.d.ts.map +0 -1
  537. package/dist/types/src/stories/components/PromptContainer.d.ts +0 -6
  538. package/dist/types/src/stories/components/PromptContainer.d.ts.map +0 -1
  539. package/dist/types/src/stories/components/ResearchInputStack.d.ts +0 -4
  540. package/dist/types/src/stories/components/ResearchInputStack.d.ts.map +0 -1
  541. package/dist/types/src/stories/components/ResearchOutputStack.d.ts +0 -4
  542. package/dist/types/src/stories/components/ResearchOutputStack.d.ts.map +0 -1
  543. package/dist/types/src/stories/components/TasksContainer.d.ts +0 -4
  544. package/dist/types/src/stories/components/TasksContainer.d.ts.map +0 -1
  545. package/dist/types/src/stories/components/TokenManagerContainer.d.ts +0 -3
  546. package/dist/types/src/stories/components/TokenManagerContainer.d.ts.map +0 -1
  547. package/dist/types/src/stories/components/TriggersContainer.d.ts +0 -3
  548. package/dist/types/src/stories/components/TriggersContainer.d.ts.map +0 -1
  549. package/dist/types/src/stories/components/index.d.ts +0 -17
  550. package/dist/types/src/stories/components/index.d.ts.map +0 -1
  551. package/dist/types/src/stories/components/types.d.ts +0 -7
  552. package/dist/types/src/stories/components/types.d.ts.map +0 -1
  553. package/dist/types/src/stories/testing/data.d.ts +0 -9
  554. package/dist/types/src/stories/testing/data.d.ts.map +0 -1
  555. package/dist/types/src/stories/testing/index.d.ts +0 -3
  556. package/dist/types/src/stories/testing/index.d.ts.map +0 -1
  557. package/dist/types/src/stories/testing/schema.d.ts +0 -7
  558. package/dist/types/src/stories/testing/schema.d.ts.map +0 -1
  559. package/dist/types/src/stories/testing/testing.d.ts +0 -48
  560. package/dist/types/src/stories/testing/testing.d.ts.map +0 -1
  561. package/dist/types/src/testing/test-data.d.ts +0 -14
  562. package/dist/types/src/testing/test-data.d.ts.map +0 -1
  563. package/dist/types/src/testing/test-functions.d.ts +0 -6
  564. package/dist/types/src/testing/test-functions.d.ts.map +0 -1
  565. package/src/capabilities/ai-service.ts +0 -26
  566. package/src/capabilities/app-graph-builder.ts +0 -162
  567. package/src/capabilities/blueprint-definition.ts +0 -61
  568. package/src/capabilities/capabilities.ts +0 -18
  569. package/src/capabilities/edge-model-resolver.ts +0 -25
  570. package/src/capabilities/intent-resolver.ts +0 -94
  571. package/src/capabilities/local-model-resolver.ts +0 -30
  572. package/src/capabilities/react-surface.tsx +0 -91
  573. package/src/capabilities/settings.ts +0 -19
  574. package/src/capabilities/state.ts +0 -20
  575. package/src/capabilities/toolkit.ts +0 -163
  576. package/src/components/BlueprintContainer.tsx +0 -24
  577. package/src/components/PromptSettings.tsx +0 -90
  578. package/src/components/SequenceContainer.tsx +0 -131
  579. package/src/components/SequenceEditor/SequenceEditor.stories.tsx +0 -33
  580. package/src/components/SequenceEditor/SequenceEditor.tsx +0 -50
  581. package/src/components/SequenceEditor/index.ts +0 -5
  582. package/src/components/TemplateEditor/handlebars-extension.ts +0 -165
  583. package/src/components/Toolbar/Toolbar.tsx +0 -21
  584. package/src/components/Toolbar/index.ts +0 -5
  585. package/src/components/Toolbar/useChatToolbarActions.ts +0 -126
  586. package/src/events.ts +0 -11
  587. package/src/execution-graph/execution-graph.ts +0 -211
  588. package/src/execution-graph/index.ts +0 -5
  589. package/src/functions/analysis.ts +0 -20
  590. package/src/hooks/useExecutionGraph.ts +0 -20
  591. package/src/hooks/useItemTypes.ts +0 -37
  592. package/src/stories/Chat.stories.tsx +0 -804
  593. package/src/stories/components/BlueprintContainer.tsx +0 -34
  594. package/src/stories/components/ChatContainer.tsx +0 -74
  595. package/src/stories/components/ChessContainer.tsx +0 -17
  596. package/src/stories/components/CommentsContainer.tsx +0 -25
  597. package/src/stories/components/DebugCard.tsx +0 -61
  598. package/src/stories/components/GraphContainer.tsx +0 -119
  599. package/src/stories/components/InvocationsContainer.tsx +0 -17
  600. package/src/stories/components/LoggingContainer.tsx +0 -33
  601. package/src/stories/components/MessageContainer.tsx +0 -22
  602. package/src/stories/components/ProjectContainer.tsx +0 -17
  603. package/src/stories/components/PromptContainer.tsx +0 -52
  604. package/src/stories/components/ResearchInputStack.tsx +0 -30
  605. package/src/stories/components/ResearchOutputStack.tsx +0 -29
  606. package/src/stories/components/TasksContainer.tsx +0 -49
  607. package/src/stories/components/TokenManagerContainer.tsx +0 -14
  608. package/src/stories/components/TriggersContainer.tsx +0 -12
  609. package/src/stories/components/index.ts +0 -21
  610. package/src/stories/components/types.ts +0 -11
  611. package/src/stories/testing/data.ts +0 -142
  612. package/src/stories/testing/index.ts +0 -6
  613. package/src/stories/testing/schema.ts +0 -17
  614. package/src/stories/testing/testing.tsx +0 -284
  615. package/src/testing/test-data.ts +0 -255
  616. package/src/testing/test-functions.ts +0 -16
  617. /package/dist/lib/browser/{blueprint-definition-3SATLYJW.mjs.map → blueprint-definition-DGHH7MUU.mjs.map} +0 -0
  618. /package/dist/lib/{node-esm/blueprint-definition-B6UDX5U3.mjs.map → browser/blueprints/index.mjs.map} +0 -0
  619. /package/dist/types/src/components/TemplateEditor/{handlebars-extension.d.ts → extensions/handlebars-extension.d.ts} +0 -0
@@ -1,142 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { type Live, type Space } from '@dxos/client/echo';
6
- import { Obj, Relation, type Type } from '@dxos/echo';
7
- import { invariant } from '@dxos/invariant';
8
- import { DataType } from '@dxos/schema';
9
-
10
- // import { faker } from '@dxos/random';
11
- // import { DataType } from '@dxos/schema';
12
- // import { type ValueGenerator, createGenerator } from '@dxos/schema/testing';
13
- // faker.seed(1);
14
- // const generator = faker as any as ValueGenerator;
15
- // const objectGenerator = createGenerator(generator, DataType.Organization, { force: true });
16
-
17
- export const testTypes: Type.Obj.Any[] = [
18
- DataType.Organization,
19
- DataType.Person,
20
- DataType.Employer,
21
- DataType.HasConnection,
22
- ];
23
-
24
- export const organizations: (Type.Properties<DataType.Organization> & { id: string })[] = [
25
- { id: 'dxos', name: 'DXOS', website: 'https://dxos.org' },
26
- { id: 'socket_supply', name: 'Socket Supply', website: 'https://socketsupply.com' },
27
- { id: 'ink_and_switch', name: 'Ink & Switch', website: 'https://inkandswitch.com' },
28
- { id: 'effectful', name: 'Effectful', website: 'https://effect.co' },
29
- { id: 'blueyard', name: 'Blue Yard', website: 'https://blueyard.com' },
30
- { id: 'backed', name: 'Backed', website: 'https://backed.vc' },
31
- { id: 'protocol_labs', name: 'Protocol Labs', website: 'https://protocol.ai' },
32
- { id: 'newlab', name: 'Newlab', website: 'https://newlab.com' },
33
- { id: 'google', name: 'Google', website: 'https://google.com' },
34
- { id: 'microsoft', name: 'Microsoft', website: 'https://microsoft.com' },
35
- { id: 'openai', name: 'OpenAI', website: 'https://openai.com' },
36
- { id: 'anthropic', name: 'Anthropic', website: 'https://anthropic.com' },
37
- { id: 'amazon', name: 'Amazon', website: 'https://amazon.com' },
38
- { id: 'deshaw', name: 'D. E. Shaw & Co.', website: 'https://deshaw.com' },
39
- ];
40
-
41
- const people: (Type.Properties<DataType.Person> & { id: string })[] = [
42
- { id: 'rich_burdon', fullName: 'Rich Burdon' },
43
- { id: 'josiah_witt', fullName: 'Josiah Witt' },
44
- { id: 'dima_dmaretskyi', fullName: 'Dima Maretskyi' },
45
- { id: 'chad_fowler', fullName: 'Chad Fowler' },
46
- { id: 'ciaran_oleary', fullName: "Ciarán O'Leary" },
47
- { id: 'jason_whitmire', fullName: 'Jason Whitmire' },
48
- { id: 'alex_brunicki', fullName: 'Alex Brunicki' },
49
- { id: 'andre_de_haes', fullName: 'Andre de Haes' },
50
- { id: 'scott_cohen', fullName: 'Scott Cohen' },
51
- { id: 'juan_benet', fullName: 'Juan Benet' },
52
- { id: 'satya_nadella', fullName: 'Satya Nadella' },
53
- { id: 'kevin_scott', fullName: 'Kevin Scott' },
54
- { id: 'jeff_bezos', fullName: 'Jeff Bezos' },
55
- ];
56
-
57
- const testObjects: Record<string, any[]> = {
58
- [DataType.Organization.typename]: organizations,
59
- [DataType.Person.typename]: people,
60
- };
61
-
62
- const testRelationships: Record<
63
- string,
64
- ({
65
- source: string;
66
- target: string;
67
- } & Record<string, any>)[]
68
- > = {
69
- [DataType.Employer.typename]: [
70
- // prettier-ignore
71
- { source: 'rich_burdon', target: 'dxos' },
72
- { source: 'rich_burdon', target: 'google', active: false }, // TODO(burdon): Should not contribute to force.
73
- { source: 'rich_burdon', target: 'deshaw', active: false },
74
- { source: 'josiah_witt', target: 'dxos' },
75
- { source: 'dima_dmaretskyi', target: 'dxos' },
76
- { source: 'chad_fowler', target: 'blueyard' },
77
- { source: 'chad_fowler', target: 'microsoft', active: false },
78
- { source: 'ciaran_oleary', target: 'blueyard' },
79
- { source: 'jason_whitmire', target: 'blueyard' },
80
- { source: 'juan_benet', target: 'protocol_labs' },
81
- { source: 'alex_brunicki', target: 'backed' },
82
- { source: 'andre_de_haes', target: 'backed' },
83
- { source: 'scott_cohen', target: 'newlab' },
84
- { source: 'satya_nadella', target: 'microsoft' },
85
- { source: 'kevin_scott', target: 'microsoft' },
86
- { source: 'kevin_scott', target: 'google', active: false },
87
- { source: 'jeff_bezos', target: 'amazon' },
88
- { source: 'jeff_bezos', target: 'deshaw', active: false },
89
- ],
90
-
91
- // TODO(burdon): Limit graph view to selected relationship types.
92
- [DataType.HasConnection.typename]: [
93
- // prettier-ignore
94
- { kind: 'partner', source: 'dxos', target: 'ink_and_switch' },
95
- { kind: 'partner', source: 'dxos', target: 'effectful' },
96
- { kind: 'partner', source: 'dxos', target: 'socket_supply' },
97
-
98
- // prettier-ignore
99
- { kind: 'investor', source: 'blueyard', target: 'dxos' },
100
- { kind: 'investor', source: 'blueyard', target: 'protocol_labs' },
101
- { kind: 'investor', source: 'protocol_labs', target: 'dxos' },
102
- { kind: 'investor', source: 'backed', target: 'dxos' },
103
- { kind: 'investor', source: 'newlab', target: 'dxos' },
104
- { kind: 'investor', source: 'microsoft', target: 'openai' },
105
- { kind: 'investor', source: 'google', target: 'anthropic' },
106
- { kind: 'investor', source: 'amazon', target: 'anthropic' },
107
- ],
108
- };
109
-
110
- export const addTestData = async (space: Space): Promise<void> => {
111
- const objectMap = new Map<string, Live<any>>();
112
-
113
- for (const [typename, objects] of Object.entries(testObjects)) {
114
- const schema = space.db.graph.schemaRegistry.getSchema(typename);
115
- invariant(schema, `Schema not found: ${typename}`);
116
- for (const { id, ...data } of objects) {
117
- const object = space.db.add(Obj.make(schema, data));
118
- objectMap.set(id, object);
119
- }
120
- }
121
-
122
- for (const [typename, relationships] of Object.entries(testRelationships)) {
123
- const schema = space.db.graph.schemaRegistry.getSchema(typename);
124
- invariant(schema, `Schema not found: ${typename}`);
125
-
126
- for (const { source, target, ...data } of relationships) {
127
- const sourceObject = objectMap.get(source);
128
- const targetObject = objectMap.get(target);
129
- invariant(sourceObject, `Source object not found: ${source}`);
130
- invariant(targetObject, `Target object not found: ${target}`);
131
-
132
- space.db.add(
133
- Relation.make(schema, {
134
- // TODO(burdon): Test source/target types match.
135
- [Relation.Source]: sourceObject,
136
- [Relation.Target]: targetObject,
137
- ...data,
138
- }),
139
- );
140
- }
141
- }
142
- };
@@ -1,6 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- export * from './testing';
6
- export * from './schema';
@@ -1,17 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Schema } from 'effect';
6
-
7
- import { Type } from '@dxos/echo';
8
- import { Queue } from '@dxos/echo-db';
9
-
10
- export const ResearchInputQueue = Schema.Struct({
11
- queue: Type.Ref(Queue),
12
- }).pipe(
13
- Type.Obj({
14
- typename: 'dxos.org/type/ResearchInputQueue',
15
- version: '0.1.0',
16
- }),
17
- );
@@ -1,284 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { AiTool, AiToolkit } from '@effect/ai';
6
- import { Console, Schema } from 'effect';
7
-
8
- import { SERVICES_CONFIG } from '@dxos/ai/testing';
9
- import {
10
- Capabilities,
11
- Events,
12
- IntentPlugin,
13
- LayoutAction,
14
- type Plugin,
15
- type PluginContext,
16
- SettingsPlugin,
17
- allOf,
18
- contributes,
19
- createIntent,
20
- createResolver,
21
- defineModule,
22
- definePlugin,
23
- } from '@dxos/app-framework';
24
- import { withPluginManager } from '@dxos/app-framework/testing';
25
- import { AiContextBinder, ArtifactId } from '@dxos/assistant';
26
- import {
27
- DESIGN_BLUEPRINT,
28
- PLANNING_BLUEPRINT,
29
- agent,
30
- createResearchNote,
31
- readDocument,
32
- readTasks,
33
- research,
34
- updateDocument,
35
- updateTasks,
36
- } from '@dxos/assistant-testing';
37
- import { Blueprint, Prompt } from '@dxos/blueprints';
38
- import { type Space } from '@dxos/client/echo';
39
- import { Obj, Ref } from '@dxos/echo';
40
- import { FunctionTrigger, FunctionType, exampleFunctions } from '@dxos/functions';
41
- import { log } from '@dxos/log';
42
- import { AttentionPlugin } from '@dxos/plugin-attention';
43
- import { AutomationPlugin } from '@dxos/plugin-automation';
44
- import { ClientCapabilities, ClientEvents, ClientPlugin } from '@dxos/plugin-client';
45
- import { type ClientPluginOptions } from '@dxos/plugin-client/types';
46
- import { DeckAction } from '@dxos/plugin-deck/types';
47
- import { GraphPlugin } from '@dxos/plugin-graph';
48
- import { Markdown } from '@dxos/plugin-markdown/types';
49
- import { PreviewPlugin } from '@dxos/plugin-preview';
50
- import { SpacePlugin } from '@dxos/plugin-space';
51
- import { StorybookLayoutPlugin } from '@dxos/plugin-storybook-layout';
52
- import { ThemePlugin } from '@dxos/plugin-theme';
53
- import { Config } from '@dxos/react-client';
54
- import { defaultTx } from '@dxos/react-ui-theme';
55
- import { DataType } from '@dxos/schema';
56
- import { withLayout } from '@dxos/storybook-utils';
57
- import { trim } from '@dxos/util';
58
-
59
- import { AssistantPlugin } from '../../AssistantPlugin';
60
- import { Assistant, AssistantAction } from '../../types';
61
-
62
- // TODO(burdon): Factor out.
63
- export const config = {
64
- remote: new Config({
65
- runtime: {
66
- services: SERVICES_CONFIG.REMOTE,
67
- },
68
- }),
69
- persistent: new Config({
70
- runtime: {
71
- client: {
72
- storage: {
73
- persistent: true,
74
- },
75
- },
76
- services: SERVICES_CONFIG.REMOTE,
77
- },
78
- }),
79
- local: new Config({
80
- runtime: {
81
- services: SERVICES_CONFIG.LOCAL,
82
- },
83
- }),
84
- };
85
-
86
- class TestingToolkit extends AiToolkit.make(
87
- AiTool.make('open-item', {
88
- description: trim`
89
- Opens an item in the application.
90
- `,
91
- parameters: {
92
- id: ArtifactId,
93
- },
94
- success: Schema.Any,
95
- failure: Schema.Never,
96
- }),
97
- ) {
98
- static layer = (_context: PluginContext) =>
99
- TestingToolkit.toLayer({
100
- 'open-item': ({ id }) => Console.log('Called open-item', { id }),
101
- });
102
- }
103
-
104
- type DecoratorsProps = Omit<ClientPluginOptions, 'onClientInitialized' | 'onSpacesReady'> & {
105
- plugins?: Plugin[];
106
- accessTokens?: DataType.AccessToken[];
107
- onInit?: (props: { space: Space }) => Promise<void>;
108
- onChatCreated?: (props: { space: Space; chat: Assistant.Chat; binder: AiContextBinder }) => Promise<void>;
109
- };
110
-
111
- /**
112
- * Create storybook decorators.
113
- */
114
- export const getDecorators = ({
115
- types = [],
116
- plugins = [],
117
- accessTokens = [],
118
- onInit,
119
- onChatCreated,
120
- ...props
121
- }: DecoratorsProps) => [
122
- withPluginManager({
123
- plugins: [
124
- // System plugins.
125
- AttentionPlugin(),
126
- AutomationPlugin(),
127
- GraphPlugin(),
128
- IntentPlugin(),
129
- SettingsPlugin(),
130
- SpacePlugin(),
131
- ClientPlugin({
132
- types: [
133
- Markdown.Document,
134
- Assistant.Chat,
135
- Blueprint.Blueprint,
136
- Prompt.Prompt,
137
- DataType.AccessToken,
138
- FunctionTrigger,
139
- FunctionType,
140
- ...types,
141
- ],
142
- onClientInitialized: async ({ client }) => {
143
- log('onClientInitialized', { identity: client.halo.identity.get()?.did });
144
- // Abort if already initialized.
145
- if (client.halo.identity.get()) {
146
- return;
147
- }
148
-
149
- await client.halo.createIdentity();
150
- await client.spaces.waitUntilReady();
151
-
152
- const space = client.spaces.default;
153
- // TODO(burdon): Should not require this.
154
- // ERROR: invariant violation: Database was not initialized with root object.
155
- // TODO(burdon): onSpacesReady is never called.
156
- await space.waitUntilReady();
157
-
158
- // Add tokens.
159
- for (const accessToken of accessTokens) {
160
- space.db.add(Obj.clone(accessToken));
161
- }
162
-
163
- await space.db.flush({ indexes: true });
164
- await onInit?.({ space });
165
- await space.db.flush({ indexes: true });
166
- },
167
- ...props,
168
- }),
169
-
170
- // Cards
171
- ThemePlugin({ tx: defaultTx }),
172
- StorybookLayoutPlugin(),
173
- PreviewPlugin(),
174
-
175
- // User plugins.
176
- AssistantPlugin(),
177
-
178
- // Custom.
179
- definePlugin({ id: 'example.com/plugin/testing', name: 'Testing' }, [
180
- defineModule({
181
- id: 'example.com/plugin/testing/module/testing',
182
- activatesOn: Events.SetupArtifactDefinition,
183
- activate: () => [
184
- // TODO(burdon): Move into assistnat?
185
- contributes(Capabilities.BlueprintDefinition, DESIGN_BLUEPRINT),
186
- contributes(Capabilities.BlueprintDefinition, PLANNING_BLUEPRINT),
187
- contributes(Capabilities.Functions, [agent]),
188
- contributes(Capabilities.Functions, [readDocument, updateDocument]),
189
- contributes(Capabilities.Functions, [readTasks, updateTasks]),
190
- contributes(Capabilities.Functions, [research, createResearchNote]),
191
- contributes(Capabilities.Functions, [exampleFunctions.reply]),
192
- ],
193
- }),
194
- defineModule({
195
- id: 'example.com/plugin/testing/module/toolkit',
196
- activatesOn: Events.Startup,
197
- activate: (context) => [
198
- contributes(Capabilities.Toolkit, TestingToolkit),
199
- contributes(Capabilities.ToolkitHandler, TestingToolkit.layer(context)),
200
- ],
201
- }),
202
- defineModule({
203
- id: 'example.com/plugin/testing/module/setup',
204
- activatesOn: allOf(Events.DispatcherReady, ClientEvents.SpacesReady),
205
- activate: async (context) => {
206
- const client = context.getCapability(ClientCapabilities.Client);
207
- const space = client.spaces.default;
208
- const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
209
-
210
- // Ensure workspace is set.
211
- await dispatch(createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: space.id }));
212
-
213
- // Create initial chat.
214
- await dispatch(createIntent(AssistantAction.CreateChat, { space }));
215
-
216
- return [];
217
- },
218
- }),
219
- defineModule({
220
- id: 'example.com/plugin/testing/module/intent-resolver',
221
- activatesOn: Events.SetupIntentResolver,
222
- activate: () => [
223
- contributes(Capabilities.IntentResolver, [
224
- createResolver({
225
- intent: DeckAction.ChangeCompanion,
226
- resolve: () => ({}),
227
- }),
228
- createResolver({
229
- intent: AssistantAction.CreateChat,
230
- position: 'hoist',
231
- resolve: async ({ space, name }) => {
232
- const queue = space.queues.create();
233
- const traceQueue = space.queues.create();
234
- const chat = Obj.make(Assistant.Chat, {
235
- name,
236
- queue: Ref.fromDXN(queue.dxn),
237
- traceQueue: Ref.fromDXN(traceQueue.dxn),
238
- });
239
- const binder = new AiContextBinder(queue);
240
-
241
- // Story-specific behaviour to allow chat creation to be extended.
242
- space.db.add(chat);
243
- await space.db.flush({ indexes: true });
244
- await onChatCreated?.({ space, chat, binder });
245
-
246
- return {
247
- data: { object: chat },
248
- };
249
- },
250
- }),
251
- ]),
252
- ],
253
- }),
254
- ]),
255
-
256
- // Test-specific.
257
- ...plugins,
258
- ],
259
- }),
260
- withLayout({
261
- fullscreen: true,
262
- classNames: 'justify-center bg-deckSurface',
263
- }),
264
- ];
265
-
266
- /**
267
- * Creates access tokens from environment variables.
268
- * @param tokens - Record of token sources mapped to their VITE_ prefixed environment variable values
269
- * @returns Array of AccessToken objects for non-empty token values
270
- * @example
271
- * ```tsx
272
- * const tokens = accessTokensFromEnv({
273
- * 'exa.ai': process.env.VITE_EXA_API_KEY,
274
- * 'linear.app': process.env.VITE_LINEAR_API_KEY
275
- * });
276
- * ```
277
- * @note All environment variables should use the VITE_ prefix for proper Vite bundling
278
- */
279
-
280
- export const accessTokensFromEnv = (tokens: Record<string, string | undefined>) => {
281
- return Object.entries(tokens)
282
- .filter(([, token]) => !!token)
283
- .map(([source, token]) => Obj.make(DataType.AccessToken, { source, token: token! }));
284
- };