@dxos/plugin-automation 0.7.4 → 0.7.5-labs.401163d

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 (302) hide show
  1. package/dist/lib/browser/AutomationPanel-VW2XIUPU.mjs +8 -0
  2. package/dist/lib/browser/ChatContainer-OLRZNGWK.mjs +12 -0
  3. package/dist/lib/browser/ai-client-5CNY6JBF.mjs +22 -0
  4. package/dist/lib/browser/ai-client-5CNY6JBF.mjs.map +7 -0
  5. package/dist/lib/browser/app-graph-builder-6H7MDCXE.mjs +197 -0
  6. package/dist/lib/browser/app-graph-builder-6H7MDCXE.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-2H2EUYXL.mjs +15 -0
  8. package/dist/lib/browser/chunk-2H2EUYXL.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-ITG6CBKL.mjs +1602 -0
  10. package/dist/lib/browser/chunk-ITG6CBKL.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-MRBC5J4T.mjs +518 -0
  12. package/dist/lib/browser/chunk-MRBC5J4T.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-NQFZ6XRX.mjs +243 -0
  14. package/dist/lib/browser/chunk-NQFZ6XRX.mjs.map +7 -0
  15. package/dist/lib/browser/chunk-Q4IMHYGH.mjs +150 -0
  16. package/dist/lib/browser/chunk-Q4IMHYGH.mjs.map +7 -0
  17. package/dist/lib/browser/{chunk-X5KMOH3I.mjs → chunk-R4JH4TLE.mjs} +6 -4
  18. package/dist/lib/browser/chunk-R4JH4TLE.mjs.map +7 -0
  19. package/dist/lib/browser/index.mjs +157 -252
  20. package/dist/lib/browser/index.mjs.map +4 -4
  21. package/dist/lib/browser/intent-resolver-BWAXKT27.mjs +29 -0
  22. package/dist/lib/browser/intent-resolver-BWAXKT27.mjs.map +7 -0
  23. package/dist/lib/browser/meta.json +1 -1
  24. package/dist/lib/browser/react-surface-O6SHIBCA.mjs +58 -0
  25. package/dist/lib/browser/react-surface-O6SHIBCA.mjs.map +7 -0
  26. package/dist/lib/browser/types/index.mjs +12 -3
  27. package/dist/lib/node/{meta.cjs → AutomationPanel-G6EDDYWW.cjs} +7 -11
  28. package/dist/lib/node/AutomationPanel-G6EDDYWW.cjs.map +7 -0
  29. package/dist/lib/node/ChatContainer-GRZDJIG5.cjs +33 -0
  30. package/dist/lib/node/ChatContainer-GRZDJIG5.cjs.map +7 -0
  31. package/dist/lib/node/ai-client-FKLPDELV.cjs +38 -0
  32. package/dist/lib/node/ai-client-FKLPDELV.cjs.map +7 -0
  33. package/dist/lib/node/app-graph-builder-7JMJLZIE.cjs +212 -0
  34. package/dist/lib/node/app-graph-builder-7JMJLZIE.cjs.map +7 -0
  35. package/dist/lib/node/chunk-CFBERLTN.cjs +1586 -0
  36. package/dist/lib/node/chunk-CFBERLTN.cjs.map +7 -0
  37. package/dist/lib/node/{chunk-DTJ7XVO2.cjs → chunk-EQYHOTGG.cjs} +11 -8
  38. package/dist/lib/node/chunk-EQYHOTGG.cjs.map +7 -0
  39. package/dist/lib/node/chunk-FQUY77HT.cjs +527 -0
  40. package/dist/lib/node/chunk-FQUY77HT.cjs.map +7 -0
  41. package/dist/lib/node/chunk-GB7245FH.cjs +173 -0
  42. package/dist/lib/node/chunk-GB7245FH.cjs.map +7 -0
  43. package/dist/lib/node/chunk-QXIHYOMF.cjs +267 -0
  44. package/dist/lib/node/chunk-QXIHYOMF.cjs.map +7 -0
  45. package/dist/lib/node/chunk-U5Z7LFWB.cjs +34 -0
  46. package/dist/lib/node/chunk-U5Z7LFWB.cjs.map +7 -0
  47. package/dist/lib/node/index.cjs +174 -282
  48. package/dist/lib/node/index.cjs.map +4 -4
  49. package/dist/lib/node/intent-resolver-C6OKFVEW.cjs +44 -0
  50. package/dist/lib/node/intent-resolver-C6OKFVEW.cjs.map +7 -0
  51. package/dist/lib/node/meta.json +1 -1
  52. package/dist/lib/node/react-surface-JT6SVCPK.cjs +76 -0
  53. package/dist/lib/node/react-surface-JT6SVCPK.cjs.map +7 -0
  54. package/dist/lib/node/types/index.cjs +16 -7
  55. package/dist/lib/node/types/index.cjs.map +2 -2
  56. package/dist/lib/node-esm/AutomationPanel-V3IWQAMO.mjs +9 -0
  57. package/dist/lib/node-esm/AutomationPanel-V3IWQAMO.mjs.map +7 -0
  58. package/dist/lib/node-esm/ChatContainer-ORVWQPJO.mjs +13 -0
  59. package/dist/lib/node-esm/ChatContainer-ORVWQPJO.mjs.map +7 -0
  60. package/dist/lib/node-esm/ai-client-XGNA6SJ5.mjs +23 -0
  61. package/dist/lib/node-esm/ai-client-XGNA6SJ5.mjs.map +7 -0
  62. package/dist/lib/node-esm/app-graph-builder-C6NUQGCU.mjs +198 -0
  63. package/dist/lib/node-esm/app-graph-builder-C6NUQGCU.mjs.map +7 -0
  64. package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs +519 -0
  65. package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs.map +7 -0
  66. package/dist/lib/node-esm/chunk-6HLBYDUI.mjs +244 -0
  67. package/dist/lib/node-esm/chunk-6HLBYDUI.mjs.map +7 -0
  68. package/dist/lib/node-esm/chunk-7VPT3OO3.mjs +1603 -0
  69. package/dist/lib/node-esm/chunk-7VPT3OO3.mjs.map +7 -0
  70. package/dist/lib/node-esm/chunk-DNCXRGAF.mjs +151 -0
  71. package/dist/lib/node-esm/chunk-DNCXRGAF.mjs.map +7 -0
  72. package/dist/lib/node-esm/{chunk-HNOBZHWK.mjs → chunk-EMVA6QUT.mjs} +6 -4
  73. package/dist/lib/node-esm/chunk-EMVA6QUT.mjs.map +7 -0
  74. package/dist/lib/node-esm/chunk-IJRTDSKN.mjs +16 -0
  75. package/dist/lib/node-esm/chunk-IJRTDSKN.mjs.map +7 -0
  76. package/dist/lib/node-esm/index.mjs +157 -252
  77. package/dist/lib/node-esm/index.mjs.map +4 -4
  78. package/dist/lib/node-esm/intent-resolver-DCP4ZDBA.mjs +30 -0
  79. package/dist/lib/node-esm/intent-resolver-DCP4ZDBA.mjs.map +7 -0
  80. package/dist/lib/node-esm/meta.json +1 -1
  81. package/dist/lib/node-esm/react-surface-DSVM33SA.mjs +59 -0
  82. package/dist/lib/node-esm/react-surface-DSVM33SA.mjs.map +7 -0
  83. package/dist/lib/node-esm/types/index.mjs +12 -3
  84. package/dist/types/src/AutomationPlugin.d.ts +1 -3
  85. package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
  86. package/dist/types/src/artifacts.stories.d.ts +16 -0
  87. package/dist/types/src/artifacts.stories.d.ts.map +1 -0
  88. package/dist/types/src/capabilities/ai-client.d.ts +5 -0
  89. package/dist/types/src/capabilities/ai-client.d.ts.map +1 -0
  90. package/dist/types/src/capabilities/app-graph-builder.d.ts +181 -0
  91. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  92. package/dist/types/src/capabilities/capabilities.d.ts +5 -0
  93. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
  94. package/dist/types/src/capabilities/index.d.ts +182 -0
  95. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  96. package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
  97. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
  98. package/dist/types/src/capabilities/react-surface.d.ts +4 -0
  99. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  100. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts +3 -0
  101. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts.map +1 -0
  102. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts +8 -0
  103. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts.map +1 -0
  104. package/dist/types/src/components/AmbientChatDialog/index.d.ts +2 -0
  105. package/dist/types/src/components/AmbientChatDialog/index.d.ts.map +1 -0
  106. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +1 -1
  107. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
  108. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
  109. package/dist/types/src/components/Box/StatusLine.d.ts +11 -0
  110. package/dist/types/src/components/Box/StatusLine.d.ts.map +1 -0
  111. package/dist/types/src/components/Box/StatusLine.stories.d.ts +9 -0
  112. package/dist/types/src/components/Box/StatusLine.stories.d.ts.map +1 -0
  113. package/dist/types/src/components/Box/Tabbed.d.ts +15 -0
  114. package/dist/types/src/components/Box/Tabbed.d.ts.map +1 -0
  115. package/dist/types/src/components/Box/Tabbed.stories.d.ts +8 -0
  116. package/dist/types/src/components/Box/Tabbed.stories.d.ts.map +1 -0
  117. package/dist/types/src/components/Box/ToggleContainer.d.ts +13 -0
  118. package/dist/types/src/components/Box/ToggleContainer.d.ts.map +1 -0
  119. package/dist/types/src/components/Box/ToggleContainer.stories.d.ts +9 -0
  120. package/dist/types/src/components/Box/ToggleContainer.stories.d.ts.map +1 -0
  121. package/dist/types/src/components/Box/index.d.ts +4 -0
  122. package/dist/types/src/components/Box/index.d.ts.map +1 -0
  123. package/dist/types/src/components/ChatContainer/ChatContainer.d.ts +7 -0
  124. package/dist/types/src/components/ChatContainer/ChatContainer.d.ts.map +1 -0
  125. package/dist/types/src/components/ChatContainer/index.d.ts +4 -0
  126. package/dist/types/src/components/ChatContainer/index.d.ts.map +1 -0
  127. package/dist/types/src/components/MarkdownViewer/MarkdownViewer.d.ts +14 -0
  128. package/dist/types/src/components/MarkdownViewer/MarkdownViewer.d.ts.map +1 -0
  129. package/dist/types/src/components/MarkdownViewer/MarkdownViewer.stories.d.ts +8 -0
  130. package/dist/types/src/components/MarkdownViewer/MarkdownViewer.stories.d.ts.map +1 -0
  131. package/dist/types/src/components/MarkdownViewer/index.d.ts +2 -0
  132. package/dist/types/src/components/MarkdownViewer/index.d.ts.map +1 -0
  133. package/dist/types/src/components/Prompt/Prompt.d.ts +7 -0
  134. package/dist/types/src/components/Prompt/Prompt.d.ts.map +1 -0
  135. package/dist/types/src/components/Prompt/Prompt.stories.d.ts +8 -0
  136. package/dist/types/src/components/Prompt/Prompt.stories.d.ts.map +1 -0
  137. package/dist/types/src/components/Prompt/index.d.ts +2 -0
  138. package/dist/types/src/components/Prompt/index.d.ts.map +1 -0
  139. package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts +20 -0
  140. package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts.map +1 -0
  141. package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts +6 -0
  142. package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts.map +1 -0
  143. package/dist/types/src/components/ServiceRegistry/ServiceRegistry.stories.d.ts +8 -0
  144. package/dist/types/src/components/ServiceRegistry/ServiceRegistry.stories.d.ts.map +1 -0
  145. package/dist/types/src/components/ServiceRegistry/index.d.ts +2 -0
  146. package/dist/types/src/components/ServiceRegistry/index.d.ts.map +1 -0
  147. package/dist/types/src/components/Thread/Thread.d.ts +11 -0
  148. package/dist/types/src/components/Thread/Thread.d.ts.map +1 -0
  149. package/dist/types/src/components/Thread/Thread.stories.d.ts +11 -0
  150. package/dist/types/src/components/Thread/Thread.stories.d.ts.map +1 -0
  151. package/dist/types/src/components/Thread/ThreadMessage.d.ts +12 -0
  152. package/dist/types/src/components/Thread/ThreadMessage.d.ts.map +1 -0
  153. package/dist/types/src/components/Thread/index.d.ts +2 -0
  154. package/dist/types/src/components/Thread/index.d.ts.map +1 -0
  155. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +1 -2
  156. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
  157. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
  158. package/dist/types/src/components/index.d.ts +13 -2
  159. package/dist/types/src/components/index.d.ts.map +1 -1
  160. package/dist/types/src/hooks/email.d.ts.map +1 -1
  161. package/dist/types/src/hooks/index.d.ts +4 -0
  162. package/dist/types/src/hooks/index.d.ts.map +1 -1
  163. package/dist/types/src/hooks/invocation-handler.d.ts.map +1 -1
  164. package/dist/types/src/hooks/processor.d.ts +70 -0
  165. package/dist/types/src/hooks/processor.d.ts.map +1 -0
  166. package/dist/types/src/hooks/processor.test.d.ts +2 -0
  167. package/dist/types/src/hooks/processor.test.d.ts.map +1 -0
  168. package/dist/types/src/hooks/useChatProcessor.d.ts +7 -0
  169. package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -0
  170. package/dist/types/src/hooks/useMessageQueue.d.ts +41 -0
  171. package/dist/types/src/hooks/useMessageQueue.d.ts.map +1 -0
  172. package/dist/types/src/hooks/useServices.d.ts +7 -0
  173. package/dist/types/src/hooks/useServices.d.ts.map +1 -0
  174. package/dist/types/src/index.d.ts +1 -2
  175. package/dist/types/src/index.d.ts.map +1 -1
  176. package/dist/types/src/meta.d.ts +2 -2
  177. package/dist/types/src/meta.d.ts.map +1 -1
  178. package/dist/types/src/testing/index.d.ts +2 -1
  179. package/dist/types/src/testing/index.d.ts.map +1 -1
  180. package/dist/types/src/testing/{testing.d.ts → test-functions.d.ts} +3 -1
  181. package/dist/types/src/testing/test-functions.d.ts.map +1 -0
  182. package/dist/types/src/testing/test-services.d.ts +5 -0
  183. package/dist/types/src/testing/test-services.d.ts.map +1 -0
  184. package/dist/types/src/tools/function.d.ts +5 -0
  185. package/dist/types/src/tools/function.d.ts.map +1 -0
  186. package/dist/types/src/tools/index.d.ts +3 -0
  187. package/dist/types/src/tools/index.d.ts.map +1 -0
  188. package/dist/types/src/tools/openapi.d.ts +10 -0
  189. package/dist/types/src/tools/openapi.d.ts.map +1 -0
  190. package/dist/types/src/tools/openapi.test.d.ts +2 -0
  191. package/dist/types/src/tools/openapi.test.d.ts.map +1 -0
  192. package/dist/types/src/translations.d.ts +84 -2
  193. package/dist/types/src/translations.d.ts.map +1 -1
  194. package/dist/types/src/types/index.d.ts +1 -0
  195. package/dist/types/src/types/index.d.ts.map +1 -1
  196. package/dist/types/src/types/registry.d.ts +10 -0
  197. package/dist/types/src/types/registry.d.ts.map +1 -0
  198. package/dist/types/src/types/schema.d.ts +189 -39
  199. package/dist/types/src/types/schema.d.ts.map +1 -1
  200. package/dist/types/src/types/types.d.ts +16 -5
  201. package/dist/types/src/types/types.d.ts.map +1 -1
  202. package/dist/types/tsconfig.tsbuildinfo +1 -0
  203. package/package.json +57 -48
  204. package/src/AutomationPlugin.tsx +77 -194
  205. package/src/artifacts.stories.tsx +241 -0
  206. package/src/capabilities/ai-client.ts +19 -0
  207. package/src/capabilities/app-graph-builder.ts +187 -0
  208. package/src/capabilities/capabilities.ts +12 -0
  209. package/src/capabilities/index.ts +12 -0
  210. package/src/capabilities/intent-resolver.ts +27 -0
  211. package/src/capabilities/react-surface.tsx +42 -0
  212. package/src/components/AmbientChatDialog/AmbientChatDialog.stories.tsx +44 -0
  213. package/src/components/AmbientChatDialog/AmbientChatDialog.tsx +63 -0
  214. package/src/components/AmbientChatDialog/index.ts +5 -0
  215. package/src/components/AutomationPanel/AutomationPanel.stories.tsx +1 -2
  216. package/src/components/AutomationPanel/AutomationPanel.tsx +61 -39
  217. package/src/components/Box/StatusLine.stories.tsx +52 -0
  218. package/src/components/Box/StatusLine.tsx +76 -0
  219. package/src/components/Box/Tabbed.stories.tsx +51 -0
  220. package/src/components/Box/Tabbed.tsx +89 -0
  221. package/src/components/Box/ToggleContainer.stories.tsx +110 -0
  222. package/src/components/Box/ToggleContainer.tsx +108 -0
  223. package/src/components/Box/index.ts +7 -0
  224. package/src/components/ChatContainer/ChatContainer.tsx +52 -0
  225. package/src/components/ChatContainer/index.ts +8 -0
  226. package/src/components/MarkdownViewer/MarkdownViewer.stories.tsx +56 -0
  227. package/src/components/MarkdownViewer/MarkdownViewer.tsx +79 -0
  228. package/src/components/MarkdownViewer/index.ts +5 -0
  229. package/src/components/Prompt/Prompt.stories.tsx +50 -0
  230. package/src/components/Prompt/Prompt.tsx +39 -0
  231. package/src/components/Prompt/index.ts +5 -0
  232. package/src/components/Prompt/prompt-autocomplete.ts +200 -0
  233. package/src/components/PromptEditor/PromptEditor.stories.tsx +6 -6
  234. package/src/components/PromptEditor/PromptEditor.tsx +3 -3
  235. package/src/components/ServiceRegistry/ServiceRegistry.stories.tsx +49 -0
  236. package/src/components/ServiceRegistry/ServiceRegistry.tsx +76 -0
  237. package/src/components/ServiceRegistry/index.ts +5 -0
  238. package/src/components/Thread/Thread.stories.tsx +197 -0
  239. package/src/components/Thread/Thread.tsx +156 -0
  240. package/src/components/Thread/ThreadMessage.tsx +225 -0
  241. package/src/components/Thread/index.ts +5 -0
  242. package/src/components/TriggerEditor/TriggerEditor.stories.tsx +1 -2
  243. package/src/components/TriggerEditor/TriggerEditor.tsx +86 -16
  244. package/src/components/index.ts +10 -1
  245. package/src/hooks/email.ts +2 -2
  246. package/src/hooks/index.ts +5 -0
  247. package/src/hooks/invocation-handler.ts +2 -2
  248. package/src/hooks/processor.test.ts +15 -0
  249. package/src/hooks/processor.ts +210 -0
  250. package/src/hooks/useChatProcessor.tsx +86 -0
  251. package/src/hooks/useMessageQueue.ts +23 -0
  252. package/src/hooks/useServices.ts +28 -0
  253. package/src/index.ts +1 -4
  254. package/src/meta.ts +5 -2
  255. package/src/testing/index.ts +2 -1
  256. package/src/testing/{testing.ts → test-functions.ts} +9 -2
  257. package/src/testing/test-services.ts +131 -0
  258. package/src/tools/function.ts +47 -0
  259. package/src/tools/index.ts +6 -0
  260. package/src/tools/openapi.test.ts +224 -0
  261. package/src/tools/openapi.ts +331 -0
  262. package/src/translations.ts +18 -2
  263. package/src/types/index.ts +1 -0
  264. package/src/types/registry.ts +26 -0
  265. package/src/types/schema.ts +96 -2
  266. package/src/types/types.ts +15 -21
  267. package/dist/lib/browser/AssistantPanel-N3QSALKY.mjs +0 -341
  268. package/dist/lib/browser/AssistantPanel-N3QSALKY.mjs.map +0 -7
  269. package/dist/lib/browser/AutomationPanel-AQMN2CQR.mjs +0 -153
  270. package/dist/lib/browser/AutomationPanel-AQMN2CQR.mjs.map +0 -7
  271. package/dist/lib/browser/chunk-7KB4UMXO.mjs +0 -49
  272. package/dist/lib/browser/chunk-7KB4UMXO.mjs.map +0 -7
  273. package/dist/lib/browser/chunk-X5KMOH3I.mjs.map +0 -7
  274. package/dist/lib/browser/meta.mjs +0 -9
  275. package/dist/lib/node/AssistantPanel-RIA4TI3B.cjs +0 -361
  276. package/dist/lib/node/AssistantPanel-RIA4TI3B.cjs.map +0 -7
  277. package/dist/lib/node/AutomationPanel-HZS5WKI5.cjs +0 -173
  278. package/dist/lib/node/AutomationPanel-HZS5WKI5.cjs.map +0 -7
  279. package/dist/lib/node/chunk-CUCUWUAF.cjs +0 -73
  280. package/dist/lib/node/chunk-CUCUWUAF.cjs.map +0 -7
  281. package/dist/lib/node/chunk-DTJ7XVO2.cjs.map +0 -7
  282. package/dist/lib/node/meta.cjs.map +0 -7
  283. package/dist/lib/node-esm/AssistantPanel-72YH43CH.mjs +0 -342
  284. package/dist/lib/node-esm/AssistantPanel-72YH43CH.mjs.map +0 -7
  285. package/dist/lib/node-esm/AutomationPanel-JUHOWQWW.mjs +0 -154
  286. package/dist/lib/node-esm/AutomationPanel-JUHOWQWW.mjs.map +0 -7
  287. package/dist/lib/node-esm/chunk-23LY7DYS.mjs +0 -51
  288. package/dist/lib/node-esm/chunk-23LY7DYS.mjs.map +0 -7
  289. package/dist/lib/node-esm/chunk-HNOBZHWK.mjs.map +0 -7
  290. package/dist/lib/node-esm/meta.mjs +0 -10
  291. package/dist/types/src/components/AssistantPanel/AssistantPanel.d.ts +0 -8
  292. package/dist/types/src/components/AssistantPanel/AssistantPanel.d.ts.map +0 -1
  293. package/dist/types/src/components/AssistantPanel/index.d.ts +0 -3
  294. package/dist/types/src/components/AssistantPanel/index.d.ts.map +0 -1
  295. package/dist/types/src/components/AssistantPanel/system-instructions.d.ts +0 -6
  296. package/dist/types/src/components/AssistantPanel/system-instructions.d.ts.map +0 -1
  297. package/dist/types/src/testing/testing.d.ts.map +0 -1
  298. package/src/components/AssistantPanel/AssistantPanel.tsx +0 -230
  299. package/src/components/AssistantPanel/index.ts +0 -7
  300. package/src/components/AssistantPanel/system-instructions.ts +0 -166
  301. /package/dist/lib/browser/{meta.mjs.map → AutomationPanel-VW2XIUPU.mjs.map} +0 -0
  302. /package/dist/lib/{node-esm/meta.mjs.map → browser/ChatContainer-OLRZNGWK.mjs.map} +0 -0
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,49 +15,53 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
  var node_exports = {};
30
20
  __export(node_exports, {
31
- AssistantPanel: () => AssistantPanel,
32
- AutomationAction: () => import_chunk_CUCUWUAF.AutomationAction,
33
- AutomationPanel: () => AutomationPanel,
21
+ AIChatType: () => import_chunk_GB7245FH.AIChatType,
22
+ AMBIENT_CHAT_DIALOG: () => import_chunk_EQYHOTGG.AMBIENT_CHAT_DIALOG,
23
+ AUTOMATION_PLUGIN: () => import_chunk_EQYHOTGG.AUTOMATION_PLUGIN,
24
+ AmbientChatDialog: () => import_chunk_FQUY77HT.AmbientChatDialog,
25
+ ApiAuthorization: () => import_chunk_GB7245FH.ApiAuthorization,
26
+ AutomationAction: () => import_chunk_GB7245FH.AutomationAction,
27
+ AutomationPanel: () => import_chunk_FQUY77HT.AutomationPanel,
34
28
  AutomationPlugin: () => AutomationPlugin,
35
- ChainInputSchema: () => import_chunk_CUCUWUAF.ChainInputSchema,
36
- ChainInputType: () => import_chunk_CUCUWUAF.ChainInputType,
37
- ChainPromptType: () => import_chunk_CUCUWUAF.ChainPromptType,
38
- ChainType: () => import_chunk_CUCUWUAF.ChainType,
29
+ ChainInputSchema: () => import_chunk_GB7245FH.ChainInputSchema,
30
+ ChainInputType: () => import_chunk_GB7245FH.ChainInputType,
31
+ ChainPromptType: () => import_chunk_GB7245FH.ChainPromptType,
32
+ ChainType: () => import_chunk_GB7245FH.ChainType,
33
+ ChatContainer: () => import_chunk_FQUY77HT.ChatContainer,
34
+ MarkdownViewer: () => import_chunk_CFBERLTN.MarkdownViewer,
35
+ PromptEditor: () => import_chunk_FQUY77HT.PromptEditor,
36
+ ServiceRegistry: () => import_chunk_FQUY77HT.ServiceRegistry,
37
+ ServiceType: () => import_chunk_GB7245FH.ServiceType,
38
+ Thread: () => import_chunk_CFBERLTN.Thread,
39
+ TriggerEditor: () => import_chunk_QXIHYOMF.TriggerEditor,
40
+ categoryIcons: () => import_chunk_GB7245FH.categoryIcons,
39
41
  chainPresets: () => chainPresets,
40
- default: () => src_default,
42
+ meta: () => import_chunk_EQYHOTGG.meta,
41
43
  str: () => str
42
44
  });
43
45
  module.exports = __toCommonJS(node_exports);
44
- var import_chunk_CUCUWUAF = require("./chunk-CUCUWUAF.cjs");
45
- var import_chunk_DTJ7XVO2 = require("./chunk-DTJ7XVO2.cjs");
46
- var import_react = __toESM(require("react"));
46
+ var import_chunk_FQUY77HT = require("./chunk-FQUY77HT.cjs");
47
+ var import_chunk_QXIHYOMF = require("./chunk-QXIHYOMF.cjs");
48
+ var import_chunk_CFBERLTN = require("./chunk-CFBERLTN.cjs");
49
+ var import_chunk_U5Z7LFWB = require("./chunk-U5Z7LFWB.cjs");
50
+ var import_chunk_GB7245FH = require("./chunk-GB7245FH.cjs");
51
+ var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
47
52
  var import_app_framework = require("@dxos/app-framework");
48
53
  var import_functions = require("@dxos/functions");
49
- var import_invariant = require("@dxos/invariant");
50
54
  var import_plugin_client = require("@dxos/plugin-client");
51
- var import_plugin_graph = require("@dxos/plugin-graph");
52
- var import_plugin_space = require("@dxos/plugin-space");
55
+ var import_plugin_deck = require("@dxos/plugin-deck");
53
56
  var import_echo = require("@dxos/react-client/echo");
54
- var import_react_ui_form = require("@dxos/react-ui-form");
55
- var import_react2 = require("react");
56
57
  var import_live_object = require("@dxos/live-object");
57
- var AssistantPanel = (0, import_react2.lazy)(() => import("./AssistantPanel-RIA4TI3B.cjs"));
58
- var AutomationPanel = (0, import_react2.lazy)(() => import("./AutomationPanel-HZS5WKI5.cjs"));
59
58
  var translations_default = [
60
59
  {
61
60
  "en-US": {
62
- [import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN]: {
61
+ [import_chunk_GB7245FH.AIChatType.typename]: {
62
+ "typename label": "AI Chat"
63
+ },
64
+ [import_chunk_EQYHOTGG.AUTOMATION_PLUGIN]: {
63
65
  "plugin name": "Automation",
64
66
  "object placeholder": "New prompt",
65
67
  "create object label": "Create prompt",
@@ -70,6 +72,10 @@ var translations_default = [
70
72
  "value placeholder": "Enter value...",
71
73
  "select preset template placeholder": "Select preset",
72
74
  "open automation panel label": "Show Automations",
75
+ "automation panel label": "Automations",
76
+ "service registry label": "Service Registry",
77
+ "chat input placeholder": "Ask a question...",
78
+ "chat stop": "Cancel request.",
73
79
  "function select label": "Function",
74
80
  "function select placeholder": "Select function",
75
81
  "function enabled": "Enabled",
@@ -79,254 +85,128 @@ var translations_default = [
79
85
  "trigger type webhook": "Webhook",
80
86
  "trigger type websocket": "Websocket",
81
87
  "trigger type subscription": "Subscription",
88
+ "trigger type email": "Email",
89
+ "trigger type queue": "Queue",
82
90
  "trigger filter": "Filter",
83
91
  "trigger cron": "Cron",
84
92
  "trigger method": "Method",
85
93
  "trigger endpoint": "Endpoint",
86
- "open assistant panel label": "Show Assistant",
87
- "assistant panel label": "Assistant"
94
+ "trigger copy url": "Copy URL",
95
+ "trigger copy email": "Copy Email",
96
+ "trigger meta add": "Add",
97
+ "trigger meta remove": "Remove",
98
+ "trigger meta prop name placeholder": "New meta property name"
88
99
  }
89
100
  }
90
101
  }
91
102
  ];
92
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/experimental/plugin-automation/src/AutomationPlugin.tsx";
93
- var AutomationPlugin = () => {
94
- return {
95
- meta: import_chunk_DTJ7XVO2.meta_default,
96
- provides: {
97
- metadata: {
98
- records: {
99
- [import_chunk_CUCUWUAF.ChainType.typename]: {
100
- placeholder: [
101
- "object placeholder",
102
- {
103
- ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
104
- }
105
- ],
106
- icon: "ph--magic-wand--regular",
107
- // TODO(wittjosiah): Move out of metadata.
108
- loadReferences: (chain) => (0, import_echo.loadObjectReferences)(chain, (chain2) => chain2.prompts)
109
- }
103
+ var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_EQYHOTGG.meta, [
104
+ (0, import_app_framework.defineModule)({
105
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/translations`,
106
+ activatesOn: import_app_framework.Events.SetupTranslations,
107
+ activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
108
+ }),
109
+ (0, import_app_framework.defineModule)({
110
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/metadata`,
111
+ activatesOn: import_app_framework.Events.SetupMetadata,
112
+ activate: () => [
113
+ (0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
114
+ id: import_chunk_GB7245FH.ChainType.typename,
115
+ metadata: {
116
+ placeholder: [
117
+ "object placeholder",
118
+ {
119
+ ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
120
+ }
121
+ ],
122
+ icon: "ph--magic-wand--regular",
123
+ // TODO(wittjosiah): Move out of metadata.
124
+ loadReferences: async (chain) => await import_echo.RefArray.loadAll(chain.prompts ?? [])
110
125
  }
111
- },
112
- translations: [
113
- ...translations_default,
114
- ...import_react_ui_form.translations
115
- ],
116
- echo: {
117
- system: [
118
- import_chunk_CUCUWUAF.ChainType,
119
- import_chunk_CUCUWUAF.ChainPromptType,
120
- import_functions.FunctionTrigger
121
- ]
122
- },
123
- complementary: {
124
- panels: [
125
- {
126
- id: "automation",
127
- label: [
128
- "open automation panel label",
129
- {
130
- ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
131
- }
132
- ],
133
- icon: "ph--magic-wand--regular"
134
- },
126
+ }),
127
+ (0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
128
+ id: import_chunk_GB7245FH.AIChatType.typename,
129
+ metadata: {
130
+ createObject: (props) => (0, import_app_framework.createIntent)(import_chunk_GB7245FH.AutomationAction.Create, props),
131
+ placeholder: [
132
+ "object placeholder",
133
+ {
134
+ ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
135
+ }
136
+ ],
137
+ icon: "ph--atom--regular"
138
+ }
139
+ })
140
+ ]
141
+ }),
142
+ (0, import_app_framework.defineModule)({
143
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/schema`,
144
+ activatesOn: import_plugin_client.ClientEvents.SetupSchema,
145
+ activate: () => [
146
+ (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.SystemSchema, [
147
+ import_chunk_GB7245FH.ChainType,
148
+ import_chunk_GB7245FH.ChainPromptType,
149
+ import_functions.FunctionTrigger,
150
+ import_chunk_GB7245FH.ServiceType
151
+ ]),
152
+ (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
153
+ import_chunk_GB7245FH.AIChatType
154
+ ])
155
+ ]
156
+ }),
157
+ (0, import_app_framework.defineModule)({
158
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/complementary-panels`,
159
+ activatesOn: import_app_framework.Events.Startup,
160
+ activate: () => [
161
+ (0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
162
+ id: "service-registry",
163
+ label: [
164
+ "service registry label",
135
165
  {
136
- id: "assistant",
137
- label: [
138
- "open assistant panel label",
139
- {
140
- ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
141
- }
142
- ],
143
- icon: "ph--atom--regular"
166
+ ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
144
167
  }
145
- ]
146
- },
147
- graph: {
148
- builder: (plugins) => {
149
- const clientPlugin = (0, import_app_framework.resolvePlugin)(plugins, import_plugin_client.parseClientPlugin);
150
- const metadataPlugin = (0, import_app_framework.resolvePlugin)(plugins, import_app_framework.parseMetadataResolverPlugin);
151
- const resolve = metadataPlugin?.provides.metadata.resolver;
152
- const client = clientPlugin?.provides.client;
153
- (0, import_invariant.invariant)(resolve, void 0, {
154
- F: __dxlog_file,
155
- L: 66,
156
- S: void 0,
157
- A: [
158
- "resolve",
159
- ""
160
- ]
161
- });
162
- (0, import_invariant.invariant)(client, void 0, {
163
- F: __dxlog_file,
164
- L: 67,
165
- S: void 0,
166
- A: [
167
- "client",
168
- ""
169
- ]
170
- });
171
- return [
172
- // Create nodes for object settings.
173
- (0, import_plugin_graph.createExtension)({
174
- id: `${import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN}/automation-for-subject`,
175
- resolver: ({ id }) => {
176
- if (!id.endsWith("~automation")) {
177
- return;
178
- }
179
- const type = "orphan-settings-for-subject";
180
- const icon = "ph--magic-wand--regular";
181
- const [subjectId] = id.split("~");
182
- const { spaceId, objectId } = (0, import_echo.parseId)(subjectId);
183
- const spaces = (0, import_plugin_graph.toSignal)((onChange) => client.spaces.subscribe(() => onChange()).unsubscribe, () => client.spaces.get());
184
- const space = spaces?.find((space2) => space2.id === spaceId && space2.state.get() === import_echo.SpaceState.SPACE_READY);
185
- if (!objectId) {
186
- const label2 = space ? space.properties.name || [
187
- "unnamed space label",
188
- {
189
- ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
190
- }
191
- ] : [
192
- "unnamed object settings label",
193
- {
194
- ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
195
- }
196
- ];
197
- return {
198
- id,
199
- type,
200
- data: null,
201
- properties: {
202
- icon,
203
- label: label2,
204
- showResolvedThreads: false,
205
- object: null,
206
- space
207
- }
208
- };
209
- }
210
- const [object] = (0, import_plugin_space.memoizeQuery)(space, {
211
- id: objectId
212
- });
213
- if (!object || !subjectId) {
214
- return;
215
- }
216
- const meta = resolve((0, import_echo.getTypename)(object) ?? "");
217
- const label = meta.label?.(object) || object.name || meta.placeholder || [
218
- "unnamed object settings label",
219
- {
220
- ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
221
- }
222
- ];
223
- return {
224
- id,
225
- type,
226
- data: null,
227
- properties: {
228
- icon,
229
- label,
230
- object
231
- }
232
- };
233
- }
234
- }),
235
- (0, import_plugin_graph.createExtension)({
236
- id: `${import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN}/assistant-for-subject`,
237
- resolver: ({ id }) => {
238
- if (!id.endsWith("~assistant")) {
239
- return;
240
- }
241
- const [subjectId] = id.split("~");
242
- const { spaceId, objectId } = (0, import_echo.parseId)(subjectId);
243
- const spaces = (0, import_plugin_graph.toSignal)((onChange) => client.spaces.subscribe(() => onChange()).unsubscribe, () => client.spaces.get());
244
- const space = spaces?.find((space2) => space2.id === spaceId && space2.state.get() === import_echo.SpaceState.SPACE_READY);
245
- if (!objectId) {
246
- return {
247
- id,
248
- type: "orphan-automation-for-subject",
249
- data: null,
250
- properties: {
251
- icon: "ph--atom--regular",
252
- label: [
253
- "assistant panel label",
254
- {
255
- ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
256
- }
257
- ],
258
- object: null,
259
- space
260
- }
261
- };
262
- }
263
- const [object] = (0, import_plugin_space.memoizeQuery)(space, {
264
- id: objectId
265
- });
266
- return {
267
- id,
268
- type: "orphan-automation-for-subject",
269
- data: null,
270
- properties: {
271
- icon: "ph--atom--regular",
272
- label: [
273
- "assistant panel label",
274
- {
275
- ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
276
- }
277
- ],
278
- object
279
- }
280
- };
281
- }
282
- })
283
- ];
284
- }
285
- },
286
- surface: {
287
- component: ({ data, role }) => {
288
- switch (role) {
289
- case "complementary--assistant":
290
- return /* @__PURE__ */ import_react.default.createElement(AssistantPanel, {
291
- subject: data.subject
292
- });
293
- case "complementary--automation": {
294
- const object = data.subject;
295
- const space = (0, import_echo.isEchoObject)(object) ? (0, import_echo.getSpace)(object) : void 0;
296
- if (space) {
297
- (0, import_invariant.invariant)((0, import_echo.isEchoObject)(object), void 0, {
298
- F: __dxlog_file,
299
- L: 193,
300
- S: void 0,
301
- A: [
302
- "isEchoObject(object)",
303
- ""
304
- ]
305
- });
306
- return /* @__PURE__ */ import_react.default.createElement(AutomationPanel, {
307
- space,
308
- object
309
- });
310
- }
311
- break;
312
- }
168
+ ],
169
+ icon: "ph--plugs--regular"
170
+ }),
171
+ (0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
172
+ id: "automation",
173
+ label: [
174
+ "automation panel label",
175
+ {
176
+ ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
313
177
  }
314
- return null;
315
- }
316
- },
317
- intent: {
318
- resolver: (intent) => {
319
- }
320
- }
321
- }
322
- };
323
- };
178
+ ],
179
+ icon: "ph--magic-wand--regular"
180
+ })
181
+ ]
182
+ }),
183
+ (0, import_app_framework.defineModule)({
184
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/react-surface`,
185
+ activatesOn: import_app_framework.Events.SetupSurfaces,
186
+ activate: import_chunk_CFBERLTN.ReactSurface
187
+ }),
188
+ (0, import_app_framework.defineModule)({
189
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/app-graph-builder`,
190
+ activatesOn: import_app_framework.Events.SetupAppGraph,
191
+ activate: import_chunk_CFBERLTN.AppGraphBuilder
192
+ }),
193
+ (0, import_app_framework.defineModule)({
194
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/intent-resolver`,
195
+ activatesOn: import_app_framework.Events.SetupIntents,
196
+ activate: import_chunk_CFBERLTN.IntentResolver
197
+ }),
198
+ (0, import_app_framework.defineModule)({
199
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/ai-client`,
200
+ activatesOn: import_plugin_client.ClientEvents.ClientReady,
201
+ activate: import_chunk_CFBERLTN.AiClient
202
+ })
203
+ ]);
324
204
  var str = (...text) => text.filter((value) => value !== void 0 && value !== false).flat().join("\n");
325
205
  var chainPresets = [
326
206
  {
327
207
  id: "dxos.org/prompt/translate",
328
208
  title: "Translate",
329
- createPrompt: () => (0, import_live_object.create)(import_chunk_CUCUWUAF.ChainPromptType, {
209
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
330
210
  command: "say",
331
211
  template: str(
332
212
  // prettier-ignore
@@ -338,12 +218,12 @@ var chainPresets = [
338
218
  ),
339
219
  inputs: [
340
220
  {
341
- type: import_chunk_CUCUWUAF.ChainInputType.VALUE,
221
+ type: import_chunk_GB7245FH.ChainInputType.VALUE,
342
222
  name: "language",
343
223
  value: "japanese"
344
224
  },
345
225
  {
346
- type: import_chunk_CUCUWUAF.ChainInputType.PASS_THROUGH,
226
+ type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
347
227
  name: "input"
348
228
  }
349
229
  ]
@@ -352,7 +232,7 @@ var chainPresets = [
352
232
  {
353
233
  id: "dxos.org/prompt/chess",
354
234
  title: "Chess",
355
- createPrompt: () => (0, import_live_object.create)(import_chunk_CUCUWUAF.ChainPromptType, {
235
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
356
236
  command: "hint",
357
237
  template: str(
358
238
  // prettier-ignore
@@ -364,7 +244,7 @@ var chainPresets = [
364
244
  ),
365
245
  inputs: [
366
246
  {
367
- type: import_chunk_CUCUWUAF.ChainInputType.CONTEXT,
247
+ type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
368
248
  name: "history",
369
249
  value: "object.pgn"
370
250
  }
@@ -374,7 +254,7 @@ var chainPresets = [
374
254
  {
375
255
  id: "dxos.org/prompt/mermaid",
376
256
  title: "Mermaid",
377
- createPrompt: () => (0, import_live_object.create)(import_chunk_CUCUWUAF.ChainPromptType, {
257
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
378
258
  command: "draw",
379
259
  template: str(
380
260
  // prettier-ignore
@@ -387,7 +267,7 @@ var chainPresets = [
387
267
  ),
388
268
  inputs: [
389
269
  {
390
- type: import_chunk_CUCUWUAF.ChainInputType.PASS_THROUGH,
270
+ type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
391
271
  name: "input"
392
272
  }
393
273
  ]
@@ -396,7 +276,7 @@ var chainPresets = [
396
276
  {
397
277
  id: "dxos.org/prompt/list",
398
278
  title: "List",
399
- createPrompt: () => (0, import_live_object.create)(import_chunk_CUCUWUAF.ChainPromptType, {
279
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
400
280
  command: "list",
401
281
  template: str(
402
282
  // prettier-ignore
@@ -413,12 +293,12 @@ var chainPresets = [
413
293
  ),
414
294
  inputs: [
415
295
  {
416
- type: import_chunk_CUCUWUAF.ChainInputType.SCHEMA,
296
+ type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
417
297
  name: "schema",
418
298
  value: "example.com/type/project"
419
299
  },
420
300
  {
421
- type: import_chunk_CUCUWUAF.ChainInputType.PASS_THROUGH,
301
+ type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
422
302
  name: "question"
423
303
  }
424
304
  ]
@@ -427,7 +307,7 @@ var chainPresets = [
427
307
  {
428
308
  id: "dxos.org/prompt/base",
429
309
  title: "RAG",
430
- createPrompt: () => (0, import_live_object.create)(import_chunk_CUCUWUAF.ChainPromptType, {
310
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
431
311
  command: "rag",
432
312
  template: str(
433
313
  // prettier-ignore
@@ -442,11 +322,11 @@ var chainPresets = [
442
322
  ),
443
323
  inputs: [
444
324
  {
445
- type: import_chunk_CUCUWUAF.ChainInputType.RETRIEVER,
325
+ type: import_chunk_GB7245FH.ChainInputType.RETRIEVER,
446
326
  name: "context"
447
327
  },
448
328
  {
449
- type: import_chunk_CUCUWUAF.ChainInputType.CONTEXT,
329
+ type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
450
330
  name: "question",
451
331
  value: "object.text"
452
332
  }
@@ -456,7 +336,7 @@ var chainPresets = [
456
336
  {
457
337
  id: "dxos.org/prompt/lookup",
458
338
  title: "Lookup",
459
- createPrompt: () => (0, import_live_object.create)(import_chunk_CUCUWUAF.ChainPromptType, {
339
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
460
340
  command: "lookup",
461
341
  template: str(
462
342
  // prettier-ignore
@@ -468,7 +348,7 @@ var chainPresets = [
468
348
  ),
469
349
  inputs: [
470
350
  {
471
- type: import_chunk_CUCUWUAF.ChainInputType.CONTEXT,
351
+ type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
472
352
  name: "input",
473
353
  value: "text"
474
354
  }
@@ -478,7 +358,7 @@ var chainPresets = [
478
358
  {
479
359
  id: "dxos.org/prompt/extract",
480
360
  title: "Extract",
481
- createPrompt: () => (0, import_live_object.create)(import_chunk_CUCUWUAF.ChainPromptType, {
361
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
482
362
  command: "extract",
483
363
  template: str(
484
364
  // prettier-ignore
@@ -496,17 +376,17 @@ var chainPresets = [
496
376
  ),
497
377
  inputs: [
498
378
  {
499
- type: import_chunk_CUCUWUAF.ChainInputType.SCHEMA,
379
+ type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
500
380
  name: "contact",
501
381
  value: "example.com/type/contact"
502
382
  },
503
383
  {
504
- type: import_chunk_CUCUWUAF.ChainInputType.SCHEMA,
384
+ type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
505
385
  name: "company",
506
386
  value: "example.com/type/organization"
507
387
  },
508
388
  {
509
- type: import_chunk_CUCUWUAF.ChainInputType.CONTEXT,
389
+ type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
510
390
  name: "input",
511
391
  value: "text"
512
392
  }
@@ -516,7 +396,7 @@ var chainPresets = [
516
396
  {
517
397
  id: "dxos.org/prompt/discord",
518
398
  title: "Summarize",
519
- createPrompt: () => (0, import_live_object.create)(import_chunk_CUCUWUAF.ChainPromptType, {
399
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
520
400
  command: "summarize",
521
401
  template: str(
522
402
  // prettier-ignore
@@ -528,7 +408,7 @@ var chainPresets = [
528
408
  ),
529
409
  inputs: [
530
410
  {
531
- type: import_chunk_CUCUWUAF.ChainInputType.RESOLVER,
411
+ type: import_chunk_GB7245FH.ChainInputType.RESOLVER,
532
412
  name: "context",
533
413
  value: "discord.messages.recent"
534
414
  }
@@ -536,10 +416,13 @@ var chainPresets = [
536
416
  })
537
417
  }
538
418
  ];
539
- var src_default = AutomationPlugin;
540
419
  // Annotate the CommonJS export names for ESM import in node:
541
420
  0 && (module.exports = {
542
- AssistantPanel,
421
+ AIChatType,
422
+ AMBIENT_CHAT_DIALOG,
423
+ AUTOMATION_PLUGIN,
424
+ AmbientChatDialog,
425
+ ApiAuthorization,
543
426
  AutomationAction,
544
427
  AutomationPanel,
545
428
  AutomationPlugin,
@@ -547,7 +430,16 @@ var src_default = AutomationPlugin;
547
430
  ChainInputType,
548
431
  ChainPromptType,
549
432
  ChainType,
433
+ ChatContainer,
434
+ MarkdownViewer,
435
+ PromptEditor,
436
+ ServiceRegistry,
437
+ ServiceType,
438
+ Thread,
439
+ TriggerEditor,
440
+ categoryIcons,
550
441
  chainPresets,
442
+ meta,
551
443
  str
552
444
  });
553
445
  //# sourceMappingURL=index.cjs.map