@dxos/plugin-automation 0.7.5-labs.c0e040f → 0.7.5-labs.d199c0f

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 (320) hide show
  1. package/dist/lib/browser/AutomationPanel-ITYXSN5Z.mjs +132 -0
  2. package/dist/lib/browser/AutomationPanel-ITYXSN5Z.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-R4JH4TLE.mjs → chunk-OFDNNRLE.mjs} +3 -8
  4. package/dist/lib/browser/chunk-OFDNNRLE.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-U7QLNY2S.mjs +8 -0
  6. package/dist/lib/browser/chunk-U7QLNY2S.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-WY2C7JY4.mjs +119 -0
  8. package/dist/lib/browser/chunk-WY2C7JY4.mjs.map +7 -0
  9. package/dist/lib/browser/complementary-panel-4CPOJL4Y.mjs +56 -0
  10. package/dist/lib/browser/complementary-panel-4CPOJL4Y.mjs.map +7 -0
  11. package/dist/lib/browser/index.mjs +21 -377
  12. package/dist/lib/browser/index.mjs.map +4 -4
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/react-surface-SAPMN4PF.mjs +27 -0
  15. package/dist/lib/browser/react-surface-SAPMN4PF.mjs.map +7 -0
  16. package/dist/lib/node/{chunk-QXIHYOMF.cjs → AutomationPanel-X33HHDMQ.cjs} +19 -132
  17. package/dist/lib/node/AutomationPanel-X33HHDMQ.cjs.map +7 -0
  18. package/dist/lib/node/chunk-7Q5SNGCL.cjs +148 -0
  19. package/dist/lib/node/chunk-7Q5SNGCL.cjs.map +7 -0
  20. package/dist/lib/node/chunk-CB5OB6JH.cjs +40 -0
  21. package/dist/lib/node/chunk-CB5OB6JH.cjs.map +7 -0
  22. package/dist/lib/node/{chunk-EQYHOTGG.cjs → chunk-ORMEYEBE.cjs} +6 -12
  23. package/dist/lib/node/chunk-ORMEYEBE.cjs.map +7 -0
  24. package/dist/lib/node/complementary-panel-ZYJJ42ZU.cjs +72 -0
  25. package/dist/lib/node/complementary-panel-ZYJJ42ZU.cjs.map +7 -0
  26. package/dist/lib/node/index.cjs +36 -378
  27. package/dist/lib/node/index.cjs.map +4 -4
  28. package/dist/lib/node/meta.json +1 -1
  29. package/dist/lib/node/{react-surface-JT6SVCPK.cjs → react-surface-2WRVAPGR.cjs} +9 -34
  30. package/dist/lib/node/react-surface-2WRVAPGR.cjs.map +7 -0
  31. package/dist/lib/node-esm/AutomationPanel-HY3GB4BT.mjs +133 -0
  32. package/dist/lib/node-esm/AutomationPanel-HY3GB4BT.mjs.map +7 -0
  33. package/dist/lib/node-esm/{chunk-EMVA6QUT.mjs → chunk-6MUUH67V.mjs} +3 -8
  34. package/dist/lib/node-esm/chunk-6MUUH67V.mjs.map +7 -0
  35. package/dist/lib/node-esm/chunk-R3P2WPBQ.mjs +10 -0
  36. package/dist/lib/node-esm/chunk-R3P2WPBQ.mjs.map +7 -0
  37. package/dist/lib/node-esm/chunk-UDD2VA6G.mjs +120 -0
  38. package/dist/lib/node-esm/chunk-UDD2VA6G.mjs.map +7 -0
  39. package/dist/lib/node-esm/complementary-panel-S42RIIAY.mjs +57 -0
  40. package/dist/lib/node-esm/complementary-panel-S42RIIAY.mjs.map +7 -0
  41. package/dist/lib/node-esm/index.mjs +21 -377
  42. package/dist/lib/node-esm/index.mjs.map +4 -4
  43. package/dist/lib/node-esm/meta.json +1 -1
  44. package/dist/lib/node-esm/react-surface-QWLPOYXO.mjs +28 -0
  45. package/dist/lib/node-esm/react-surface-QWLPOYXO.mjs.map +7 -0
  46. package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
  47. package/dist/types/src/capabilities/{ai-client.d.ts → complementary-panel.d.ts} +2 -3
  48. package/dist/types/src/capabilities/complementary-panel.d.ts.map +1 -0
  49. package/dist/types/src/capabilities/index.d.ts +1 -180
  50. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  51. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  52. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +1 -2
  53. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
  54. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
  55. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +1 -2
  56. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
  57. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
  58. package/dist/types/src/components/index.d.ts +1 -12
  59. package/dist/types/src/components/index.d.ts.map +1 -1
  60. package/dist/types/src/index.d.ts +1 -3
  61. package/dist/types/src/index.d.ts.map +1 -1
  62. package/dist/types/src/meta.d.ts +0 -2
  63. package/dist/types/src/meta.d.ts.map +1 -1
  64. package/dist/types/src/testing/index.d.ts +0 -1
  65. package/dist/types/src/testing/index.d.ts.map +1 -1
  66. package/dist/types/src/testing/test-functions.d.ts +0 -2
  67. package/dist/types/src/testing/test-functions.d.ts.map +1 -1
  68. package/dist/types/src/translations.d.ts +1 -94
  69. package/dist/types/src/translations.d.ts.map +1 -1
  70. package/package.json +23 -74
  71. package/src/AutomationPlugin.tsx +9 -64
  72. package/src/capabilities/complementary-panel.ts +56 -0
  73. package/src/capabilities/index.ts +1 -5
  74. package/src/capabilities/react-surface.tsx +3 -23
  75. package/src/components/AutomationPanel/AutomationPanel.stories.tsx +1 -2
  76. package/src/components/AutomationPanel/AutomationPanel.tsx +56 -49
  77. package/src/components/TriggerEditor/TriggerEditor.stories.tsx +1 -2
  78. package/src/components/index.ts +0 -8
  79. package/src/index.ts +2 -3
  80. package/src/meta.ts +1 -4
  81. package/src/testing/index.ts +0 -1
  82. package/src/testing/test-functions.ts +0 -7
  83. package/src/translations.ts +1 -29
  84. package/dist/lib/browser/AutomationPanel-VW2XIUPU.mjs +0 -8
  85. package/dist/lib/browser/AutomationPanel-VW2XIUPU.mjs.map +0 -7
  86. package/dist/lib/browser/ChatContainer-OLRZNGWK.mjs +0 -12
  87. package/dist/lib/browser/ChatContainer-OLRZNGWK.mjs.map +0 -7
  88. package/dist/lib/browser/ai-client-5CNY6JBF.mjs +0 -22
  89. package/dist/lib/browser/ai-client-5CNY6JBF.mjs.map +0 -7
  90. package/dist/lib/browser/app-graph-builder-6H7MDCXE.mjs +0 -197
  91. package/dist/lib/browser/app-graph-builder-6H7MDCXE.mjs.map +0 -7
  92. package/dist/lib/browser/chunk-2H2EUYXL.mjs +0 -15
  93. package/dist/lib/browser/chunk-2H2EUYXL.mjs.map +0 -7
  94. package/dist/lib/browser/chunk-ITG6CBKL.mjs +0 -1602
  95. package/dist/lib/browser/chunk-ITG6CBKL.mjs.map +0 -7
  96. package/dist/lib/browser/chunk-MRBC5J4T.mjs +0 -518
  97. package/dist/lib/browser/chunk-MRBC5J4T.mjs.map +0 -7
  98. package/dist/lib/browser/chunk-NQFZ6XRX.mjs +0 -243
  99. package/dist/lib/browser/chunk-NQFZ6XRX.mjs.map +0 -7
  100. package/dist/lib/browser/chunk-Q4IMHYGH.mjs +0 -150
  101. package/dist/lib/browser/chunk-Q4IMHYGH.mjs.map +0 -7
  102. package/dist/lib/browser/chunk-R4JH4TLE.mjs.map +0 -7
  103. package/dist/lib/browser/intent-resolver-BWAXKT27.mjs +0 -29
  104. package/dist/lib/browser/intent-resolver-BWAXKT27.mjs.map +0 -7
  105. package/dist/lib/browser/react-surface-O6SHIBCA.mjs +0 -58
  106. package/dist/lib/browser/react-surface-O6SHIBCA.mjs.map +0 -7
  107. package/dist/lib/browser/types/index.mjs +0 -24
  108. package/dist/lib/browser/types/index.mjs.map +0 -7
  109. package/dist/lib/node/AutomationPanel-G6EDDYWW.cjs +0 -26
  110. package/dist/lib/node/AutomationPanel-G6EDDYWW.cjs.map +0 -7
  111. package/dist/lib/node/ChatContainer-GRZDJIG5.cjs +0 -33
  112. package/dist/lib/node/ChatContainer-GRZDJIG5.cjs.map +0 -7
  113. package/dist/lib/node/ai-client-FKLPDELV.cjs +0 -38
  114. package/dist/lib/node/ai-client-FKLPDELV.cjs.map +0 -7
  115. package/dist/lib/node/app-graph-builder-7JMJLZIE.cjs +0 -212
  116. package/dist/lib/node/app-graph-builder-7JMJLZIE.cjs.map +0 -7
  117. package/dist/lib/node/chunk-CFBERLTN.cjs +0 -1586
  118. package/dist/lib/node/chunk-CFBERLTN.cjs.map +0 -7
  119. package/dist/lib/node/chunk-EQYHOTGG.cjs.map +0 -7
  120. package/dist/lib/node/chunk-FQUY77HT.cjs +0 -527
  121. package/dist/lib/node/chunk-FQUY77HT.cjs.map +0 -7
  122. package/dist/lib/node/chunk-GB7245FH.cjs +0 -173
  123. package/dist/lib/node/chunk-GB7245FH.cjs.map +0 -7
  124. package/dist/lib/node/chunk-QXIHYOMF.cjs.map +0 -7
  125. package/dist/lib/node/chunk-U5Z7LFWB.cjs +0 -34
  126. package/dist/lib/node/chunk-U5Z7LFWB.cjs.map +0 -7
  127. package/dist/lib/node/intent-resolver-C6OKFVEW.cjs +0 -44
  128. package/dist/lib/node/intent-resolver-C6OKFVEW.cjs.map +0 -7
  129. package/dist/lib/node/react-surface-JT6SVCPK.cjs.map +0 -7
  130. package/dist/lib/node/types/index.cjs +0 -46
  131. package/dist/lib/node/types/index.cjs.map +0 -7
  132. package/dist/lib/node-esm/AutomationPanel-V3IWQAMO.mjs +0 -9
  133. package/dist/lib/node-esm/AutomationPanel-V3IWQAMO.mjs.map +0 -7
  134. package/dist/lib/node-esm/ChatContainer-ORVWQPJO.mjs +0 -13
  135. package/dist/lib/node-esm/ChatContainer-ORVWQPJO.mjs.map +0 -7
  136. package/dist/lib/node-esm/ai-client-XGNA6SJ5.mjs +0 -23
  137. package/dist/lib/node-esm/ai-client-XGNA6SJ5.mjs.map +0 -7
  138. package/dist/lib/node-esm/app-graph-builder-C6NUQGCU.mjs +0 -198
  139. package/dist/lib/node-esm/app-graph-builder-C6NUQGCU.mjs.map +0 -7
  140. package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs +0 -519
  141. package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs.map +0 -7
  142. package/dist/lib/node-esm/chunk-6HLBYDUI.mjs +0 -244
  143. package/dist/lib/node-esm/chunk-6HLBYDUI.mjs.map +0 -7
  144. package/dist/lib/node-esm/chunk-7VPT3OO3.mjs +0 -1603
  145. package/dist/lib/node-esm/chunk-7VPT3OO3.mjs.map +0 -7
  146. package/dist/lib/node-esm/chunk-DNCXRGAF.mjs +0 -151
  147. package/dist/lib/node-esm/chunk-DNCXRGAF.mjs.map +0 -7
  148. package/dist/lib/node-esm/chunk-EMVA6QUT.mjs.map +0 -7
  149. package/dist/lib/node-esm/chunk-IJRTDSKN.mjs +0 -16
  150. package/dist/lib/node-esm/chunk-IJRTDSKN.mjs.map +0 -7
  151. package/dist/lib/node-esm/intent-resolver-DCP4ZDBA.mjs +0 -30
  152. package/dist/lib/node-esm/intent-resolver-DCP4ZDBA.mjs.map +0 -7
  153. package/dist/lib/node-esm/react-surface-DSVM33SA.mjs +0 -59
  154. package/dist/lib/node-esm/react-surface-DSVM33SA.mjs.map +0 -7
  155. package/dist/lib/node-esm/types/index.mjs +0 -25
  156. package/dist/lib/node-esm/types/index.mjs.map +0 -7
  157. package/dist/types/src/artifacts.stories.d.ts +0 -16
  158. package/dist/types/src/artifacts.stories.d.ts.map +0 -1
  159. package/dist/types/src/capabilities/ai-client.d.ts.map +0 -1
  160. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -181
  161. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  162. package/dist/types/src/capabilities/capabilities.d.ts +0 -5
  163. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  164. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  165. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  166. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts +0 -3
  167. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts.map +0 -1
  168. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts +0 -8
  169. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts.map +0 -1
  170. package/dist/types/src/components/AmbientChatDialog/index.d.ts +0 -2
  171. package/dist/types/src/components/AmbientChatDialog/index.d.ts.map +0 -1
  172. package/dist/types/src/components/Box/StatusLine.d.ts +0 -11
  173. package/dist/types/src/components/Box/StatusLine.d.ts.map +0 -1
  174. package/dist/types/src/components/Box/StatusLine.stories.d.ts +0 -9
  175. package/dist/types/src/components/Box/StatusLine.stories.d.ts.map +0 -1
  176. package/dist/types/src/components/Box/Tabbed.d.ts +0 -15
  177. package/dist/types/src/components/Box/Tabbed.d.ts.map +0 -1
  178. package/dist/types/src/components/Box/Tabbed.stories.d.ts +0 -8
  179. package/dist/types/src/components/Box/Tabbed.stories.d.ts.map +0 -1
  180. package/dist/types/src/components/Box/ToggleContainer.d.ts +0 -13
  181. package/dist/types/src/components/Box/ToggleContainer.d.ts.map +0 -1
  182. package/dist/types/src/components/Box/ToggleContainer.stories.d.ts +0 -9
  183. package/dist/types/src/components/Box/ToggleContainer.stories.d.ts.map +0 -1
  184. package/dist/types/src/components/Box/index.d.ts +0 -4
  185. package/dist/types/src/components/Box/index.d.ts.map +0 -1
  186. package/dist/types/src/components/ChatContainer/ChatContainer.d.ts +0 -7
  187. package/dist/types/src/components/ChatContainer/ChatContainer.d.ts.map +0 -1
  188. package/dist/types/src/components/ChatContainer/index.d.ts +0 -4
  189. package/dist/types/src/components/ChatContainer/index.d.ts.map +0 -1
  190. package/dist/types/src/components/MarkdownViewer/MarkdownViewer.d.ts +0 -14
  191. package/dist/types/src/components/MarkdownViewer/MarkdownViewer.d.ts.map +0 -1
  192. package/dist/types/src/components/MarkdownViewer/MarkdownViewer.stories.d.ts +0 -8
  193. package/dist/types/src/components/MarkdownViewer/MarkdownViewer.stories.d.ts.map +0 -1
  194. package/dist/types/src/components/MarkdownViewer/index.d.ts +0 -2
  195. package/dist/types/src/components/MarkdownViewer/index.d.ts.map +0 -1
  196. package/dist/types/src/components/Prompt/Prompt.d.ts +0 -7
  197. package/dist/types/src/components/Prompt/Prompt.d.ts.map +0 -1
  198. package/dist/types/src/components/Prompt/Prompt.stories.d.ts +0 -8
  199. package/dist/types/src/components/Prompt/Prompt.stories.d.ts.map +0 -1
  200. package/dist/types/src/components/Prompt/index.d.ts +0 -2
  201. package/dist/types/src/components/Prompt/index.d.ts.map +0 -1
  202. package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts +0 -20
  203. package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts.map +0 -1
  204. package/dist/types/src/components/PromptEditor/PromptEditor.d.ts +0 -10
  205. package/dist/types/src/components/PromptEditor/PromptEditor.d.ts.map +0 -1
  206. package/dist/types/src/components/PromptEditor/PromptEditor.stories.d.ts +0 -6
  207. package/dist/types/src/components/PromptEditor/PromptEditor.stories.d.ts.map +0 -1
  208. package/dist/types/src/components/PromptEditor/index.d.ts +0 -2
  209. package/dist/types/src/components/PromptEditor/index.d.ts.map +0 -1
  210. package/dist/types/src/components/PromptEditor/prompt-extension.d.ts +0 -4
  211. package/dist/types/src/components/PromptEditor/prompt-extension.d.ts.map +0 -1
  212. package/dist/types/src/components/PromptEditor/types.d.ts +0 -18
  213. package/dist/types/src/components/PromptEditor/types.d.ts.map +0 -1
  214. package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts +0 -6
  215. package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts.map +0 -1
  216. package/dist/types/src/components/ServiceRegistry/ServiceRegistry.stories.d.ts +0 -8
  217. package/dist/types/src/components/ServiceRegistry/ServiceRegistry.stories.d.ts.map +0 -1
  218. package/dist/types/src/components/ServiceRegistry/index.d.ts +0 -2
  219. package/dist/types/src/components/ServiceRegistry/index.d.ts.map +0 -1
  220. package/dist/types/src/components/Thread/Thread.d.ts +0 -11
  221. package/dist/types/src/components/Thread/Thread.d.ts.map +0 -1
  222. package/dist/types/src/components/Thread/Thread.stories.d.ts +0 -11
  223. package/dist/types/src/components/Thread/Thread.stories.d.ts.map +0 -1
  224. package/dist/types/src/components/Thread/ThreadMessage.d.ts +0 -12
  225. package/dist/types/src/components/Thread/ThreadMessage.d.ts.map +0 -1
  226. package/dist/types/src/components/Thread/index.d.ts +0 -2
  227. package/dist/types/src/components/Thread/index.d.ts.map +0 -1
  228. package/dist/types/src/hooks/email.d.ts +0 -4
  229. package/dist/types/src/hooks/email.d.ts.map +0 -1
  230. package/dist/types/src/hooks/index.d.ts +0 -6
  231. package/dist/types/src/hooks/index.d.ts.map +0 -1
  232. package/dist/types/src/hooks/invocation-handler.d.ts +0 -5
  233. package/dist/types/src/hooks/invocation-handler.d.ts.map +0 -1
  234. package/dist/types/src/hooks/processor.d.ts +0 -70
  235. package/dist/types/src/hooks/processor.d.ts.map +0 -1
  236. package/dist/types/src/hooks/processor.test.d.ts +0 -2
  237. package/dist/types/src/hooks/processor.test.d.ts.map +0 -1
  238. package/dist/types/src/hooks/useChatProcessor.d.ts +0 -7
  239. package/dist/types/src/hooks/useChatProcessor.d.ts.map +0 -1
  240. package/dist/types/src/hooks/useLocalTriggerManager.d.ts +0 -3
  241. package/dist/types/src/hooks/useLocalTriggerManager.d.ts.map +0 -1
  242. package/dist/types/src/hooks/useMessageQueue.d.ts +0 -41
  243. package/dist/types/src/hooks/useMessageQueue.d.ts.map +0 -1
  244. package/dist/types/src/hooks/useServices.d.ts +0 -7
  245. package/dist/types/src/hooks/useServices.d.ts.map +0 -1
  246. package/dist/types/src/presets.d.ts +0 -9
  247. package/dist/types/src/presets.d.ts.map +0 -1
  248. package/dist/types/src/testing/test-services.d.ts +0 -5
  249. package/dist/types/src/testing/test-services.d.ts.map +0 -1
  250. package/dist/types/src/tools/function.d.ts +0 -5
  251. package/dist/types/src/tools/function.d.ts.map +0 -1
  252. package/dist/types/src/tools/index.d.ts +0 -3
  253. package/dist/types/src/tools/index.d.ts.map +0 -1
  254. package/dist/types/src/tools/openapi.d.ts +0 -10
  255. package/dist/types/src/tools/openapi.d.ts.map +0 -1
  256. package/dist/types/src/tools/openapi.test.d.ts +0 -2
  257. package/dist/types/src/tools/openapi.test.d.ts.map +0 -1
  258. package/dist/types/src/types/index.d.ts +0 -4
  259. package/dist/types/src/types/index.d.ts.map +0 -1
  260. package/dist/types/src/types/registry.d.ts +0 -10
  261. package/dist/types/src/types/registry.d.ts.map +0 -1
  262. package/dist/types/src/types/schema.d.ts +0 -221
  263. package/dist/types/src/types/schema.d.ts.map +0 -1
  264. package/dist/types/src/types/types.d.ts +0 -18
  265. package/dist/types/src/types/types.d.ts.map +0 -1
  266. package/src/artifacts.stories.tsx +0 -241
  267. package/src/capabilities/ai-client.ts +0 -19
  268. package/src/capabilities/app-graph-builder.ts +0 -187
  269. package/src/capabilities/capabilities.ts +0 -12
  270. package/src/capabilities/intent-resolver.ts +0 -27
  271. package/src/components/AmbientChatDialog/AmbientChatDialog.stories.tsx +0 -44
  272. package/src/components/AmbientChatDialog/AmbientChatDialog.tsx +0 -63
  273. package/src/components/AmbientChatDialog/index.ts +0 -5
  274. package/src/components/Box/StatusLine.stories.tsx +0 -52
  275. package/src/components/Box/StatusLine.tsx +0 -76
  276. package/src/components/Box/Tabbed.stories.tsx +0 -51
  277. package/src/components/Box/Tabbed.tsx +0 -89
  278. package/src/components/Box/ToggleContainer.stories.tsx +0 -110
  279. package/src/components/Box/ToggleContainer.tsx +0 -108
  280. package/src/components/Box/index.ts +0 -7
  281. package/src/components/ChatContainer/ChatContainer.tsx +0 -52
  282. package/src/components/ChatContainer/index.ts +0 -8
  283. package/src/components/MarkdownViewer/MarkdownViewer.stories.tsx +0 -56
  284. package/src/components/MarkdownViewer/MarkdownViewer.tsx +0 -79
  285. package/src/components/MarkdownViewer/index.ts +0 -5
  286. package/src/components/Prompt/Prompt.stories.tsx +0 -50
  287. package/src/components/Prompt/Prompt.tsx +0 -39
  288. package/src/components/Prompt/index.ts +0 -5
  289. package/src/components/Prompt/prompt-autocomplete.ts +0 -200
  290. package/src/components/PromptEditor/PromptEditor.stories.tsx +0 -64
  291. package/src/components/PromptEditor/PromptEditor.tsx +0 -222
  292. package/src/components/PromptEditor/index.ts +0 -5
  293. package/src/components/PromptEditor/prompt-extension.ts +0 -43
  294. package/src/components/PromptEditor/types.tsx +0 -28
  295. package/src/components/ServiceRegistry/ServiceRegistry.stories.tsx +0 -49
  296. package/src/components/ServiceRegistry/ServiceRegistry.tsx +0 -76
  297. package/src/components/ServiceRegistry/index.ts +0 -5
  298. package/src/components/Thread/Thread.stories.tsx +0 -197
  299. package/src/components/Thread/Thread.tsx +0 -156
  300. package/src/components/Thread/ThreadMessage.tsx +0 -225
  301. package/src/components/Thread/index.ts +0 -5
  302. package/src/hooks/email.ts +0 -49
  303. package/src/hooks/index.ts +0 -10
  304. package/src/hooks/invocation-handler.ts +0 -109
  305. package/src/hooks/processor.test.ts +0 -15
  306. package/src/hooks/processor.ts +0 -210
  307. package/src/hooks/useChatProcessor.tsx +0 -86
  308. package/src/hooks/useLocalTriggerManager.ts +0 -82
  309. package/src/hooks/useMessageQueue.ts +0 -23
  310. package/src/hooks/useServices.ts +0 -28
  311. package/src/presets.ts +0 -248
  312. package/src/testing/test-services.ts +0 -131
  313. package/src/tools/function.ts +0 -47
  314. package/src/tools/index.ts +0 -6
  315. package/src/tools/openapi.test.ts +0 -224
  316. package/src/tools/openapi.ts +0 -331
  317. package/src/types/index.ts +0 -7
  318. package/src/types/registry.ts +0 -26
  319. package/src/types/schema.ts +0 -132
  320. package/src/types/types.ts +0 -21
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var AutomationPanel_G6EDDYWW_exports = {};
20
- __export(AutomationPanel_G6EDDYWW_exports, {
21
- default: () => import_chunk_QXIHYOMF.AutomationPanel_default
22
- });
23
- module.exports = __toCommonJS(AutomationPanel_G6EDDYWW_exports);
24
- var import_chunk_QXIHYOMF = require("./chunk-QXIHYOMF.cjs");
25
- var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
26
- //# sourceMappingURL=AutomationPanel-G6EDDYWW.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["AutomationPanel-G6EDDYWW.cjs"],
4
- "sourcesContent": ["import {\n AutomationPanel_default\n} from \"./chunk-QXIHYOMF.cjs\";\nimport \"./chunk-EQYHOTGG.cjs\";\nexport {\n AutomationPanel_default as default\n};\n//# sourceMappingURL=AutomationPanel-G6EDDYWW.cjs.map\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAEO;AACP,4BAAO;",
6
- "names": []
7
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var ChatContainer_GRZDJIG5_exports = {};
20
- __export(ChatContainer_GRZDJIG5_exports, {
21
- ChatContainer: () => import_chunk_CFBERLTN.ChatContainer,
22
- default: () => import_chunk_CFBERLTN.ChatContainer_default
23
- });
24
- module.exports = __toCommonJS(ChatContainer_GRZDJIG5_exports);
25
- var import_chunk_CFBERLTN = require("./chunk-CFBERLTN.cjs");
26
- var import_chunk_U5Z7LFWB = require("./chunk-U5Z7LFWB.cjs");
27
- var import_chunk_GB7245FH = require("./chunk-GB7245FH.cjs");
28
- var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
31
- ChatContainer
32
- });
33
- //# sourceMappingURL=ChatContainer-GRZDJIG5.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["ChatContainer-GRZDJIG5.cjs"],
4
- "sourcesContent": ["import {\n ChatContainer,\n ChatContainer_default\n} from \"./chunk-CFBERLTN.cjs\";\nimport \"./chunk-U5Z7LFWB.cjs\";\nimport \"./chunk-GB7245FH.cjs\";\nimport \"./chunk-EQYHOTGG.cjs\";\nexport {\n ChatContainer,\n ChatContainer_default as default\n};\n//# sourceMappingURL=ChatContainer-GRZDJIG5.cjs.map\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAGO;AACP,4BAAO;AACP,4BAAO;AACP,4BAAO;",
6
- "names": []
7
- }
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var ai_client_FKLPDELV_exports = {};
20
- __export(ai_client_FKLPDELV_exports, {
21
- default: () => ai_client_default
22
- });
23
- module.exports = __toCommonJS(ai_client_FKLPDELV_exports);
24
- var import_chunk_U5Z7LFWB = require("./chunk-U5Z7LFWB.cjs");
25
- var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
26
- var import_app_framework = require("@dxos/app-framework");
27
- var import_assistant = require("@dxos/assistant");
28
- var import_plugin_client = require("@dxos/plugin-client");
29
- var DEFAULT_AI_SERVICE_URL = "http://localhost:8788";
30
- var ai_client_default = (context) => {
31
- const client = context.requestCapability(import_plugin_client.ClientCapabilities.Client);
32
- const endpoint = client.config.values.runtime?.services?.ai?.server ?? DEFAULT_AI_SERVICE_URL;
33
- const aiClient = new import_assistant.AIServiceClientImpl({
34
- endpoint
35
- });
36
- return (0, import_app_framework.contributes)(import_chunk_U5Z7LFWB.AutomationCapabilities.AiClient, aiClient);
37
- };
38
- //# sourceMappingURL=ai-client-FKLPDELV.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/ai-client.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { contributes, type PluginsContext } from '@dxos/app-framework';\nimport { AIServiceClientImpl } from '@dxos/assistant';\nimport { ClientCapabilities } from '@dxos/plugin-client';\n\nimport { AutomationCapabilities } from './capabilities';\n\n// TODO(wittjosiah): Factor out.\nconst DEFAULT_AI_SERVICE_URL = 'http://localhost:8788';\n\nexport default (context: PluginsContext) => {\n const client = context.requestCapability(ClientCapabilities.Client);\n const endpoint = client.config.values.runtime?.services?.ai?.server ?? DEFAULT_AI_SERVICE_URL;\n const aiClient = new AIServiceClientImpl({ endpoint });\n return contributes(AutomationCapabilities.AiClient, aiClient);\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAAiD;AACjD,uBAAoC;AACpC,2BAAmC;AAKnC,IAAMA,yBAAyB;AAE/B,IAAA,oBAAe,CAACC,YAAAA;AACd,QAAMC,SAASD,QAAQE,kBAAkBC,wCAAmBC,MAAM;AAClE,QAAMC,WAAWJ,OAAOK,OAAOC,OAAOC,SAASC,UAAUC,IAAIC,UAAUZ;AACvE,QAAMa,WAAW,IAAIC,qCAAoB;IAAER;EAAS,CAAA;AACpD,aAAOS,kCAAYC,6CAAuBC,UAAUJ,QAAAA;AACtD;",
6
- "names": ["DEFAULT_AI_SERVICE_URL", "context", "client", "requestCapability", "ClientCapabilities", "Client", "endpoint", "config", "values", "runtime", "services", "ai", "server", "aiClient", "AIServiceClientImpl", "contributes", "AutomationCapabilities", "AiClient"]
7
- }
@@ -1,212 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var app_graph_builder_7JMJLZIE_exports = {};
20
- __export(app_graph_builder_7JMJLZIE_exports, {
21
- default: () => app_graph_builder_default
22
- });
23
- module.exports = __toCommonJS(app_graph_builder_7JMJLZIE_exports);
24
- var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
25
- var import_app_framework = require("@dxos/app-framework");
26
- var import_plugin_client = require("@dxos/plugin-client");
27
- var import_plugin_graph = require("@dxos/plugin-graph");
28
- var import_plugin_space = require("@dxos/plugin-space");
29
- var import_echo = require("@dxos/react-client/echo");
30
- var app_graph_builder_default = (context) => {
31
- const resolve = (typename) => context.requestCapabilities(import_app_framework.Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};
32
- return (0, import_app_framework.contributes)(import_app_framework.Capabilities.AppGraphBuilder, [
33
- (0, import_plugin_graph.createExtension)({
34
- id: `${import_chunk_EQYHOTGG.AUTOMATION_PLUGIN}/ambient-chat`,
35
- filter: (node) => node.id === import_plugin_graph.ROOT_ID,
36
- actions: () => [
37
- {
38
- id: `${import_app_framework.LayoutAction.UpdateDialog._tag}/ambient-chat/open`,
39
- data: async () => {
40
- const { dispatchPromise: dispatch } = context.requestCapability(import_app_framework.Capabilities.IntentDispatcher);
41
- await dispatch((0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdateDialog, {
42
- part: "dialog",
43
- subject: import_chunk_EQYHOTGG.AMBIENT_CHAT_DIALOG,
44
- options: {
45
- state: true,
46
- blockAlign: "end"
47
- }
48
- }));
49
- },
50
- properties: {
51
- label: [
52
- "open ambient chat label",
53
- {
54
- ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
55
- }
56
- ],
57
- icon: "ph--chat-centered-text--regular",
58
- disposition: "pin-end",
59
- keyBinding: {
60
- macos: "shift+meta+k",
61
- windows: "shift+ctrl+k"
62
- }
63
- }
64
- }
65
- ]
66
- }),
67
- (0, import_plugin_graph.createExtension)({
68
- id: `${import_chunk_EQYHOTGG.AUTOMATION_PLUGIN}/service-registry`,
69
- resolver: ({ id }) => {
70
- if (!id.endsWith("~service-registry")) {
71
- return;
72
- }
73
- const type = "orphan-settings-for-subject";
74
- const icon = "ph--plugs--regular";
75
- const client = context.requestCapability(import_plugin_client.ClientCapabilities.Client);
76
- const [subjectId] = id.split("~");
77
- const { spaceId } = (0, import_echo.parseId)(subjectId);
78
- const spaces = (0, import_plugin_graph.toSignal)((onChange) => client.spaces.subscribe(() => onChange()).unsubscribe, () => client.spaces.get());
79
- const space = spaces?.find((space2) => space2.id === spaceId && space2.state.get() === import_echo.SpaceState.SPACE_READY);
80
- return {
81
- id,
82
- type,
83
- data: null,
84
- properties: {
85
- icon,
86
- label: [
87
- "service registry label",
88
- {
89
- ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
90
- }
91
- ],
92
- object: null,
93
- space
94
- }
95
- };
96
- }
97
- }),
98
- (0, import_plugin_graph.createExtension)({
99
- id: `${import_chunk_EQYHOTGG.AUTOMATION_PLUGIN}/automation-for-subject`,
100
- resolver: ({ id }) => {
101
- if (!id.endsWith("~automation")) {
102
- return;
103
- }
104
- const type = "orphan-settings-for-subject";
105
- const icon = "ph--magic-wand--regular";
106
- const client = context.requestCapability(import_plugin_client.ClientCapabilities.Client);
107
- const [subjectId] = id.split("~");
108
- const { spaceId, objectId } = (0, import_echo.parseId)(subjectId);
109
- const spaces = (0, import_plugin_graph.toSignal)((onChange) => client.spaces.subscribe(() => onChange()).unsubscribe, () => client.spaces.get());
110
- const space = spaces?.find((space2) => space2.id === spaceId && space2.state.get() === import_echo.SpaceState.SPACE_READY);
111
- if (!objectId) {
112
- const label2 = space ? space.properties.name || [
113
- "unnamed space label",
114
- {
115
- ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
116
- }
117
- ] : [
118
- "unnamed object settings label",
119
- {
120
- ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
121
- }
122
- ];
123
- return {
124
- id,
125
- type,
126
- data: null,
127
- properties: {
128
- icon,
129
- label: label2,
130
- showResolvedThreads: false,
131
- object: null,
132
- space
133
- }
134
- };
135
- }
136
- const [object] = (0, import_plugin_space.memoizeQuery)(space, {
137
- id: objectId
138
- });
139
- if (!object || !subjectId) {
140
- return;
141
- }
142
- const meta = resolve((0, import_echo.getTypename)(object) ?? "");
143
- const label = meta.label?.(object) || object.name || meta.placeholder || [
144
- "unnamed object settings label",
145
- {
146
- ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
147
- }
148
- ];
149
- return {
150
- id,
151
- type,
152
- data: null,
153
- properties: {
154
- icon,
155
- label,
156
- object
157
- }
158
- };
159
- }
160
- }),
161
- (0, import_plugin_graph.createExtension)({
162
- id: `${import_chunk_EQYHOTGG.AUTOMATION_PLUGIN}/assistant-for-subject`,
163
- resolver: ({ id }) => {
164
- if (!id.endsWith("~assistant")) {
165
- return;
166
- }
167
- const client = context.requestCapability(import_plugin_client.ClientCapabilities.Client);
168
- const [subjectId] = id.split("~");
169
- const { spaceId, objectId } = (0, import_echo.parseId)(subjectId);
170
- const spaces = (0, import_plugin_graph.toSignal)((onChange) => client.spaces.subscribe(() => onChange()).unsubscribe, () => client.spaces.get());
171
- const space = spaces?.find((space2) => space2.id === spaceId && space2.state.get() === import_echo.SpaceState.SPACE_READY);
172
- if (!objectId) {
173
- return {
174
- id,
175
- type: "orphan-automation-for-subject",
176
- data: null,
177
- properties: {
178
- icon: "ph--atom--regular",
179
- label: [
180
- "assistant panel label",
181
- {
182
- ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
183
- }
184
- ],
185
- object: null,
186
- space
187
- }
188
- };
189
- }
190
- const [object] = (0, import_plugin_space.memoizeQuery)(space, {
191
- id: objectId
192
- });
193
- return {
194
- id,
195
- type: "orphan-automation-for-subject",
196
- data: null,
197
- properties: {
198
- icon: "ph--atom--regular",
199
- label: [
200
- "assistant panel label",
201
- {
202
- ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
203
- }
204
- ],
205
- object
206
- }
207
- };
208
- }
209
- })
210
- ]);
211
- };
212
- //# sourceMappingURL=app-graph-builder-7JMJLZIE.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, LayoutAction, type PluginsContext } from '@dxos/app-framework';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { createExtension, type Node, ROOT_ID, toSignal } from '@dxos/plugin-graph';\nimport { memoizeQuery } from '@dxos/plugin-space';\nimport { getTypename, parseId, SpaceState } from '@dxos/react-client/echo';\n\nimport { AMBIENT_CHAT_DIALOG, AUTOMATION_PLUGIN } from '../meta';\n\nexport default (context: PluginsContext) => {\n const resolve = (typename: string) =>\n context.requestCapabilities(Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};\n\n return contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${AUTOMATION_PLUGIN}/ambient-chat`,\n filter: (node): node is Node<null> => node.id === ROOT_ID,\n actions: () => [\n {\n id: `${LayoutAction.UpdateDialog._tag}/ambient-chat/open`,\n data: async () => {\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);\n await dispatch(\n createIntent(LayoutAction.UpdateDialog, {\n part: 'dialog',\n subject: AMBIENT_CHAT_DIALOG,\n options: {\n state: true,\n blockAlign: 'end',\n },\n }),\n );\n },\n properties: {\n label: ['open ambient chat label', { ns: AUTOMATION_PLUGIN }],\n icon: 'ph--chat-centered-text--regular',\n disposition: 'pin-end',\n keyBinding: {\n macos: 'shift+meta+k',\n windows: 'shift+ctrl+k',\n },\n },\n },\n ],\n }),\n createExtension({\n id: `${AUTOMATION_PLUGIN}/service-registry`,\n resolver: ({ id }) => {\n if (!id.endsWith('~service-registry')) {\n return;\n }\n\n const type = 'orphan-settings-for-subject';\n const icon = 'ph--plugs--regular';\n\n const client = context.requestCapability(ClientCapabilities.Client);\n const [subjectId] = id.split('~');\n const { spaceId } = parseId(subjectId);\n const spaces = toSignal(\n (onChange) => client.spaces.subscribe(() => onChange()).unsubscribe,\n () => client.spaces.get(),\n );\n const space = spaces?.find((space) => space.id === spaceId && space.state.get() === SpaceState.SPACE_READY);\n return {\n id,\n type,\n data: null,\n properties: {\n icon,\n label: ['service registry label', { ns: AUTOMATION_PLUGIN }],\n object: null,\n space,\n },\n };\n },\n }),\n createExtension({\n id: `${AUTOMATION_PLUGIN}/automation-for-subject`,\n resolver: ({ id }) => {\n if (!id.endsWith('~automation')) {\n return;\n }\n\n const type = 'orphan-settings-for-subject';\n const icon = 'ph--magic-wand--regular';\n\n const client = context.requestCapability(ClientCapabilities.Client);\n const [subjectId] = id.split('~');\n const { spaceId, objectId } = parseId(subjectId);\n const spaces = toSignal(\n (onChange) => client.spaces.subscribe(() => onChange()).unsubscribe,\n () => client.spaces.get(),\n );\n const space = spaces?.find((space) => space.id === spaceId && space.state.get() === SpaceState.SPACE_READY);\n if (!objectId) {\n // TODO(burdon): Ref SPACE_PLUGIN ns.\n const label = space\n ? space.properties.name || ['unnamed space label', { ns: AUTOMATION_PLUGIN }]\n : ['unnamed object settings label', { ns: AUTOMATION_PLUGIN }];\n\n // TODO(wittjosiah): Support comments for arbitrary subjects.\n // This is to ensure that the comments panel is not stuck on an old object.\n return {\n id,\n type,\n data: null,\n properties: {\n icon,\n label,\n showResolvedThreads: false,\n object: null,\n space,\n },\n };\n }\n\n const [object] = memoizeQuery(space, { id: objectId });\n if (!object || !subjectId) {\n return;\n }\n\n const meta = resolve(getTypename(object) ?? '');\n const label = meta.label?.(object) ||\n object.name ||\n meta.placeholder || ['unnamed object settings label', { ns: AUTOMATION_PLUGIN }];\n\n return {\n id,\n type,\n data: null,\n properties: {\n icon,\n label,\n object,\n },\n };\n },\n }),\n createExtension({\n id: `${AUTOMATION_PLUGIN}/assistant-for-subject`,\n resolver: ({ id }) => {\n if (!id.endsWith('~assistant')) {\n return;\n }\n\n const client = context.requestCapability(ClientCapabilities.Client);\n const [subjectId] = id.split('~');\n const { spaceId, objectId } = parseId(subjectId);\n const spaces = toSignal(\n (onChange) => client.spaces.subscribe(() => onChange()).unsubscribe,\n () => client.spaces.get(),\n );\n const space = spaces?.find((space) => space.id === spaceId && space.state.get() === SpaceState.SPACE_READY);\n if (!objectId) {\n // TODO(wittjosiah): Support assistant for arbitrary subjects.\n // This is to ensure that the assistant panel is not stuck on an old object.\n return {\n id,\n type: 'orphan-automation-for-subject',\n data: null,\n properties: {\n icon: 'ph--atom--regular',\n label: ['assistant panel label', { ns: AUTOMATION_PLUGIN }],\n object: null,\n space,\n },\n };\n }\n\n const [object] = memoizeQuery(space, { id: objectId });\n return {\n id,\n type: 'orphan-automation-for-subject',\n data: null,\n properties: {\n icon: 'ph--atom--regular',\n label: ['assistant panel label', { ns: AUTOMATION_PLUGIN }],\n object,\n },\n };\n },\n }),\n ]);\n};\n"],
5
- "mappings": "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",
6
- "names": ["context", "resolve", "typename", "requestCapabilities", "Capabilities", "Metadata", "find", "id", "metadata", "contributes", "AppGraphBuilder", "createExtension", "AUTOMATION_PLUGIN", "filter", "node", "ROOT_ID", "actions", "LayoutAction", "UpdateDialog", "_tag", "data", "dispatchPromise", "dispatch", "requestCapability", "IntentDispatcher", "createIntent", "part", "subject", "AMBIENT_CHAT_DIALOG", "options", "state", "blockAlign", "properties", "label", "ns", "icon", "disposition", "keyBinding", "macos", "windows", "resolver", "endsWith", "type", "client", "ClientCapabilities", "Client", "subjectId", "split", "spaceId", "parseId", "spaces", "toSignal", "onChange", "subscribe", "unsubscribe", "get", "space", "SpaceState", "SPACE_READY", "object", "objectId", "name", "showResolvedThreads", "memoizeQuery", "meta", "getTypename", "placeholder"]
7
- }