@dxos/plugin-automation 0.8.4-main.fffef41 → 0.9.0

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 (407) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +428 -0
  3. package/README.md +1 -1
  4. package/dist/lib/neutral/AutomationArticle-GN36NUX2.mjs +17 -0
  5. package/dist/lib/neutral/AutomationCompanion-M26WR6VP.mjs +165 -0
  6. package/dist/lib/neutral/AutomationCompanion-M26WR6VP.mjs.map +7 -0
  7. package/dist/lib/neutral/AutomationPlugin.mjs +10 -0
  8. package/dist/lib/neutral/AutomationPlugin.node.mjs +1132 -0
  9. package/dist/lib/neutral/AutomationPlugin.node.mjs.map +7 -0
  10. package/dist/lib/neutral/AutomationPlugin.workerd.mjs +36 -0
  11. package/dist/lib/neutral/AutomationPlugin.workerd.mjs.map +7 -0
  12. package/dist/lib/neutral/AutomationSettings-YXUJDRQA.mjs +27 -0
  13. package/dist/lib/neutral/AutomationSettings-YXUJDRQA.mjs.map +7 -0
  14. package/dist/lib/neutral/TriggerSettings-XCHIZPOR.mjs +9 -0
  15. package/dist/lib/neutral/app-graph-builder-BTTHS4VK.mjs +102 -0
  16. package/dist/lib/neutral/app-graph-builder-BTTHS4VK.mjs.map +7 -0
  17. package/dist/lib/neutral/capabilities/index.mjs +25 -0
  18. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  19. package/dist/lib/neutral/capabilities/node.mjs +19 -0
  20. package/dist/lib/neutral/capabilities/node.mjs.map +7 -0
  21. package/dist/lib/neutral/chunk-24JKY6NU.mjs +21 -0
  22. package/dist/lib/neutral/chunk-24JKY6NU.mjs.map +7 -0
  23. package/dist/lib/neutral/chunk-2JP77CMN.mjs +42 -0
  24. package/dist/lib/neutral/chunk-2JP77CMN.mjs.map +7 -0
  25. package/dist/lib/neutral/chunk-DUGOIM7G.mjs +36 -0
  26. package/dist/lib/neutral/chunk-DUGOIM7G.mjs.map +7 -0
  27. package/dist/lib/neutral/chunk-FE7YFBX7.mjs +486 -0
  28. package/dist/lib/neutral/chunk-FE7YFBX7.mjs.map +7 -0
  29. package/dist/lib/neutral/chunk-GARB7S5R.mjs +157 -0
  30. package/dist/lib/neutral/chunk-GARB7S5R.mjs.map +7 -0
  31. package/dist/lib/neutral/chunk-HPUHQ3L6.mjs +64 -0
  32. package/dist/lib/neutral/chunk-HPUHQ3L6.mjs.map +7 -0
  33. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  34. package/dist/lib/neutral/chunk-SONGOJRB.mjs +8 -0
  35. package/dist/lib/neutral/chunk-SONGOJRB.mjs.map +7 -0
  36. package/dist/lib/neutral/components/index.mjs +48 -0
  37. package/dist/lib/neutral/components/index.mjs.map +7 -0
  38. package/dist/lib/neutral/containers/index.mjs +15 -0
  39. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  40. package/dist/lib/neutral/create-automation-OE3TNXYE.mjs +41 -0
  41. package/dist/lib/neutral/create-automation-OE3TNXYE.mjs.map +7 -0
  42. package/dist/lib/neutral/create-object-MEJOWGMH.mjs +25 -0
  43. package/dist/lib/neutral/create-object-MEJOWGMH.mjs.map +7 -0
  44. package/dist/lib/neutral/create-trigger-from-template-TERHKWJM.mjs +68 -0
  45. package/dist/lib/neutral/create-trigger-from-template-TERHKWJM.mjs.map +7 -0
  46. package/dist/lib/neutral/hooks/index.mjs +47 -0
  47. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  48. package/dist/lib/neutral/index.mjs +22 -0
  49. package/dist/lib/neutral/layer-specs-G6GCH7BE.mjs +137 -0
  50. package/dist/lib/neutral/layer-specs-G6GCH7BE.mjs.map +7 -0
  51. package/dist/lib/neutral/meta.json +1 -0
  52. package/dist/lib/neutral/meta.mjs +8 -0
  53. package/dist/lib/neutral/navigation-resolver-I3L5FHJO.mjs +14 -0
  54. package/dist/lib/neutral/navigation-resolver-I3L5FHJO.mjs.map +7 -0
  55. package/dist/lib/neutral/operation-handler-YXGYH5W5.mjs +13 -0
  56. package/dist/lib/neutral/operation-handler-YXGYH5W5.mjs.map +7 -0
  57. package/dist/lib/neutral/operations/index.mjs +8 -0
  58. package/dist/lib/neutral/plugin.mjs +16 -0
  59. package/dist/lib/neutral/plugin.mjs.map +7 -0
  60. package/dist/lib/neutral/react-surface-IBRWUKPC.mjs +54 -0
  61. package/dist/lib/neutral/react-surface-IBRWUKPC.mjs.map +7 -0
  62. package/dist/lib/neutral/registry-sync-G6TKKZGK.mjs +86 -0
  63. package/dist/lib/neutral/registry-sync-G6TKKZGK.mjs.map +7 -0
  64. package/dist/lib/neutral/templates-ETXVD3VE.mjs +16 -0
  65. package/dist/lib/neutral/templates-ETXVD3VE.mjs.map +7 -0
  66. package/dist/lib/neutral/testing.mjs +8 -0
  67. package/dist/lib/neutral/translations.mjs +64 -0
  68. package/dist/lib/neutral/translations.mjs.map +7 -0
  69. package/dist/lib/neutral/trigger-runtime-controller-BOEJYGWC.mjs +77 -0
  70. package/dist/lib/neutral/trigger-runtime-controller-BOEJYGWC.mjs.map +7 -0
  71. package/dist/lib/neutral/types/index.mjs +18 -0
  72. package/dist/lib/neutral/types/index.mjs.map +7 -0
  73. package/dist/types/src/AutomationPlugin.d.ts +3 -1
  74. package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
  75. package/dist/types/src/AutomationPlugin.node.d.ts +4 -0
  76. package/dist/types/src/AutomationPlugin.node.d.ts.map +1 -0
  77. package/dist/types/src/AutomationPlugin.test.d.ts +2 -0
  78. package/dist/types/src/AutomationPlugin.test.d.ts.map +1 -0
  79. package/dist/types/src/AutomationPlugin.workerd.d.ts +4 -0
  80. package/dist/types/src/AutomationPlugin.workerd.d.ts.map +1 -0
  81. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  82. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  83. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  84. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  85. package/dist/types/src/capabilities/create-object.test.d.ts +2 -0
  86. package/dist/types/src/capabilities/create-object.test.d.ts.map +1 -0
  87. package/dist/types/src/capabilities/index.d.ts +16 -5
  88. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  89. package/dist/types/src/capabilities/layer-specs.d.ts +6 -0
  90. package/dist/types/src/capabilities/layer-specs.d.ts.map +1 -0
  91. package/dist/types/src/capabilities/navigation-resolver.d.ts +6 -0
  92. package/dist/types/src/capabilities/navigation-resolver.d.ts.map +1 -0
  93. package/dist/types/src/capabilities/node.d.ts +9 -0
  94. package/dist/types/src/capabilities/node.d.ts.map +1 -0
  95. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  96. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  97. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  98. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  99. package/dist/types/src/capabilities/registry-sync.d.ts +21 -0
  100. package/dist/types/src/capabilities/registry-sync.d.ts.map +1 -0
  101. package/dist/types/src/capabilities/templates.d.ts +6 -0
  102. package/dist/types/src/capabilities/templates.d.ts.map +1 -0
  103. package/dist/types/src/capabilities/trigger-runtime-controller.d.ts +5 -0
  104. package/dist/types/src/capabilities/trigger-runtime-controller.d.ts.map +1 -0
  105. package/dist/types/src/capabilities/trigger-runtime-controller.test.d.ts +2 -0
  106. package/dist/types/src/capabilities/trigger-runtime-controller.test.d.ts.map +1 -0
  107. package/dist/types/src/commands/index.d.ts +2 -0
  108. package/dist/types/src/commands/index.d.ts.map +1 -0
  109. package/dist/types/src/commands/trigger/create/index.d.ts +25 -0
  110. package/dist/types/src/commands/trigger/create/index.d.ts.map +1 -0
  111. package/dist/types/src/commands/trigger/create/queue.d.ts +13 -0
  112. package/dist/types/src/commands/trigger/create/queue.d.ts.map +1 -0
  113. package/dist/types/src/commands/trigger/create/subscription.d.ts +15 -0
  114. package/dist/types/src/commands/trigger/create/subscription.d.ts.map +1 -0
  115. package/dist/types/src/commands/trigger/create/timer.d.ts +13 -0
  116. package/dist/types/src/commands/trigger/create/timer.d.ts.map +1 -0
  117. package/dist/types/src/commands/trigger/index.d.ts +57 -0
  118. package/dist/types/src/commands/trigger/index.d.ts.map +1 -0
  119. package/dist/types/src/commands/trigger/list.d.ts +7 -0
  120. package/dist/types/src/commands/trigger/list.d.ts.map +1 -0
  121. package/dist/types/src/commands/trigger/options.d.ts +10 -0
  122. package/dist/types/src/commands/trigger/options.d.ts.map +1 -0
  123. package/dist/types/src/commands/trigger/remove.d.ts +8 -0
  124. package/dist/types/src/commands/trigger/remove.d.ts.map +1 -0
  125. package/dist/types/src/commands/trigger/update/index.d.ts +28 -0
  126. package/dist/types/src/commands/trigger/update/index.d.ts.map +1 -0
  127. package/dist/types/src/commands/trigger/update/queue.d.ts +11 -0
  128. package/dist/types/src/commands/trigger/update/queue.d.ts.map +1 -0
  129. package/dist/types/src/commands/trigger/update/subscription.d.ts +13 -0
  130. package/dist/types/src/commands/trigger/update/subscription.d.ts.map +1 -0
  131. package/dist/types/src/commands/trigger/update/timer.d.ts +11 -0
  132. package/dist/types/src/commands/trigger/update/timer.d.ts.map +1 -0
  133. package/dist/types/src/commands/trigger/util.d.ts +85 -0
  134. package/dist/types/src/commands/trigger/util.d.ts.map +1 -0
  135. package/dist/types/src/components/CreateAutomationPanel/CreateAutomationPanel.d.ts +14 -0
  136. package/dist/types/src/components/CreateAutomationPanel/CreateAutomationPanel.d.ts.map +1 -0
  137. package/dist/types/src/components/CreateAutomationPanel/index.d.ts +2 -0
  138. package/dist/types/src/components/CreateAutomationPanel/index.d.ts.map +1 -0
  139. package/dist/types/src/components/index.d.ts +1 -7
  140. package/dist/types/src/components/index.d.ts.map +1 -1
  141. package/dist/types/src/containers/AutomationArticle/AutomationArticle.d.ts +35 -0
  142. package/dist/types/src/containers/AutomationArticle/AutomationArticle.d.ts.map +1 -0
  143. package/dist/types/src/containers/AutomationArticle/index.d.ts +3 -0
  144. package/dist/types/src/containers/AutomationArticle/index.d.ts.map +1 -0
  145. package/dist/types/src/containers/AutomationCompanion/AutomationCompanion.d.ts +13 -0
  146. package/dist/types/src/containers/AutomationCompanion/AutomationCompanion.d.ts.map +1 -0
  147. package/dist/types/src/containers/AutomationCompanion/index.d.ts +3 -0
  148. package/dist/types/src/containers/AutomationCompanion/index.d.ts.map +1 -0
  149. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts +10 -0
  150. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts.map +1 -0
  151. package/dist/types/src/containers/AutomationSettings/index.d.ts +2 -0
  152. package/dist/types/src/containers/AutomationSettings/index.d.ts.map +1 -0
  153. package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts.map +1 -0
  154. package/dist/types/src/containers/TriggerSettings/index.d.ts +3 -0
  155. package/dist/types/src/containers/TriggerSettings/index.d.ts.map +1 -0
  156. package/dist/types/src/containers/index.d.ts +6 -0
  157. package/dist/types/src/containers/index.d.ts.map +1 -0
  158. package/dist/types/src/hooks/index.d.ts +0 -1
  159. package/dist/types/src/hooks/index.d.ts.map +1 -1
  160. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +5 -4
  161. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -1
  162. package/dist/types/src/index.d.ts +1 -5
  163. package/dist/types/src/index.d.ts.map +1 -1
  164. package/dist/types/src/meta.d.ts +2 -2
  165. package/dist/types/src/meta.d.ts.map +1 -1
  166. package/dist/types/src/operations/create-automation.d.ts +5 -0
  167. package/dist/types/src/operations/create-automation.d.ts.map +1 -0
  168. package/dist/types/src/operations/create-trigger-from-template.d.ts +5 -0
  169. package/dist/types/src/operations/create-trigger-from-template.d.ts.map +1 -0
  170. package/dist/types/src/operations/index.d.ts +3 -0
  171. package/dist/types/src/operations/index.d.ts.map +1 -0
  172. package/dist/types/src/paths.d.ts +3 -0
  173. package/dist/types/src/paths.d.ts.map +1 -0
  174. package/dist/types/src/plugin.d.ts +4 -0
  175. package/dist/types/src/plugin.d.ts.map +1 -0
  176. package/dist/types/src/templates/index.d.ts +10 -0
  177. package/dist/types/src/templates/index.d.ts.map +1 -0
  178. package/dist/types/src/testing/test-functions.d.ts +318 -3
  179. package/dist/types/src/testing/test-functions.d.ts.map +1 -1
  180. package/dist/types/src/testing.d.ts +2 -0
  181. package/dist/types/src/testing.d.ts.map +1 -0
  182. package/dist/types/src/translations.d.ts +90 -31
  183. package/dist/types/src/translations.d.ts.map +1 -1
  184. package/dist/types/src/types/Automation.d.ts +41 -0
  185. package/dist/types/src/types/Automation.d.ts.map +1 -0
  186. package/dist/types/src/types/Automation.test.d.ts +2 -0
  187. package/dist/types/src/types/Automation.test.d.ts.map +1 -0
  188. package/dist/types/src/types/AutomationCapabilities.d.ts +42 -0
  189. package/dist/types/src/types/AutomationCapabilities.d.ts.map +1 -0
  190. package/dist/types/src/types/AutomationOperation.d.ts +31 -0
  191. package/dist/types/src/types/AutomationOperation.d.ts.map +1 -0
  192. package/dist/types/src/types/Runnable.d.ts +14 -0
  193. package/dist/types/src/types/Runnable.d.ts.map +1 -0
  194. package/dist/types/src/types/index.d.ts +4 -0
  195. package/dist/types/src/types/index.d.ts.map +1 -1
  196. package/dist/types/src/types/schema.d.ts +13 -5
  197. package/dist/types/src/types/schema.d.ts.map +1 -1
  198. package/dist/types/src/util/automations-for-object.d.ts +20 -0
  199. package/dist/types/src/util/automations-for-object.d.ts.map +1 -0
  200. package/dist/types/src/util/automations-for-object.test.d.ts +2 -0
  201. package/dist/types/src/util/automations-for-object.test.d.ts.map +1 -0
  202. package/dist/types/tsconfig.tsbuildinfo +1 -1
  203. package/package.json +136 -71
  204. package/src/AutomationPlugin.node.ts +48 -0
  205. package/src/AutomationPlugin.test.ts +27 -0
  206. package/src/AutomationPlugin.tsx +47 -35
  207. package/src/AutomationPlugin.workerd.ts +24 -0
  208. package/src/capabilities/app-graph-builder.ts +81 -78
  209. package/src/capabilities/create-object.test.ts +18 -0
  210. package/src/capabilities/create-object.ts +26 -0
  211. package/src/capabilities/index.ts +17 -7
  212. package/src/capabilities/layer-specs.ts +196 -0
  213. package/src/capabilities/navigation-resolver.ts +19 -0
  214. package/src/capabilities/node.ts +19 -0
  215. package/src/capabilities/operation-handler.ts +16 -0
  216. package/src/capabilities/react-surface.tsx +45 -46
  217. package/src/capabilities/registry-sync.ts +114 -0
  218. package/src/capabilities/templates.ts +17 -0
  219. package/src/capabilities/trigger-runtime-controller.test.ts +107 -0
  220. package/src/capabilities/trigger-runtime-controller.ts +126 -0
  221. package/src/commands/index.ts +5 -0
  222. package/src/commands/trigger/create/index.ts +14 -0
  223. package/src/commands/trigger/create/queue.ts +87 -0
  224. package/src/commands/trigger/create/subscription.ts +126 -0
  225. package/src/commands/trigger/create/timer.ts +90 -0
  226. package/src/commands/trigger/index.ts +16 -0
  227. package/src/commands/trigger/list.ts +69 -0
  228. package/src/commands/trigger/options.ts +47 -0
  229. package/src/commands/trigger/remove.ts +45 -0
  230. package/src/commands/trigger/update/index.ts +14 -0
  231. package/src/commands/trigger/update/queue.ts +191 -0
  232. package/src/commands/trigger/update/subscription.ts +279 -0
  233. package/src/commands/trigger/update/timer.ts +195 -0
  234. package/src/commands/trigger/util.ts +410 -0
  235. package/src/components/CreateAutomationPanel/CreateAutomationPanel.tsx +68 -0
  236. package/src/components/CreateAutomationPanel/index.ts +5 -0
  237. package/src/components/index.ts +1 -8
  238. package/src/containers/AutomationArticle/AutomationArticle.tsx +586 -0
  239. package/src/containers/AutomationArticle/index.ts +6 -0
  240. package/src/containers/AutomationCompanion/AutomationCompanion.tsx +183 -0
  241. package/src/containers/AutomationCompanion/index.ts +6 -0
  242. package/src/containers/AutomationSettings/AutomationSettings.tsx +34 -0
  243. package/src/containers/AutomationSettings/index.ts +5 -0
  244. package/src/containers/TriggerSettings/TriggerSettings.tsx +48 -0
  245. package/src/containers/TriggerSettings/index.ts +6 -0
  246. package/src/containers/index.ts +10 -0
  247. package/src/hooks/index.ts +1 -1
  248. package/src/hooks/useTriggerRuntimeControls.ts +38 -19
  249. package/src/index.ts +1 -6
  250. package/src/meta.ts +23 -7
  251. package/src/operations/create-automation.ts +38 -0
  252. package/src/operations/create-trigger-from-template.ts +70 -0
  253. package/src/operations/index.ts +10 -0
  254. package/src/paths.ts +13 -0
  255. package/src/plugin.ts +11 -0
  256. package/src/templates/index.ts +22 -0
  257. package/src/testing/test-functions.ts +43 -9
  258. package/src/testing.ts +7 -0
  259. package/src/translations.ts +49 -33
  260. package/src/types/Automation.test.ts +37 -0
  261. package/src/types/Automation.ts +45 -0
  262. package/src/types/AutomationCapabilities.ts +52 -0
  263. package/src/types/AutomationOperation.ts +61 -0
  264. package/src/types/Runnable.ts +14 -0
  265. package/src/types/index.ts +5 -0
  266. package/src/types/schema.ts +6 -6
  267. package/src/util/automations-for-object.test.ts +86 -0
  268. package/src/util/automations-for-object.ts +72 -0
  269. package/src/vite-env.d.ts +10 -0
  270. package/dist/lib/browser/AutomationPanel-7OECLR5N.mjs +0 -11
  271. package/dist/lib/browser/AutomationSettings-KCZISXI6.mjs +0 -68
  272. package/dist/lib/browser/AutomationSettings-KCZISXI6.mjs.map +0 -7
  273. package/dist/lib/browser/FunctionsContainer-MIWEISRR.mjs +0 -151
  274. package/dist/lib/browser/FunctionsContainer-MIWEISRR.mjs.map +0 -7
  275. package/dist/lib/browser/FunctionsPanel-CRW6SJUN.mjs +0 -10
  276. package/dist/lib/browser/app-graph-builder-W7LLC6XW.mjs +0 -81
  277. package/dist/lib/browser/app-graph-builder-W7LLC6XW.mjs.map +0 -7
  278. package/dist/lib/browser/chunk-EPEXQP45.mjs +0 -14
  279. package/dist/lib/browser/chunk-EPEXQP45.mjs.map +0 -7
  280. package/dist/lib/browser/chunk-JW7XSPYW.mjs +0 -267
  281. package/dist/lib/browser/chunk-JW7XSPYW.mjs.map +0 -7
  282. package/dist/lib/browser/chunk-LZQFZO3B.mjs +0 -17
  283. package/dist/lib/browser/chunk-LZQFZO3B.mjs.map +0 -7
  284. package/dist/lib/browser/chunk-NAPXRXTY.mjs +0 -100
  285. package/dist/lib/browser/chunk-NAPXRXTY.mjs.map +0 -7
  286. package/dist/lib/browser/chunk-QKFBHAGN.mjs +0 -184
  287. package/dist/lib/browser/chunk-QKFBHAGN.mjs.map +0 -7
  288. package/dist/lib/browser/chunk-TWWFNOIR.mjs +0 -109
  289. package/dist/lib/browser/chunk-TWWFNOIR.mjs.map +0 -7
  290. package/dist/lib/browser/chunk-XAKZ4ANY.mjs +0 -15
  291. package/dist/lib/browser/chunk-XAKZ4ANY.mjs.map +0 -7
  292. package/dist/lib/browser/chunk-YBPJCY3F.mjs +0 -38
  293. package/dist/lib/browser/chunk-YBPJCY3F.mjs.map +0 -7
  294. package/dist/lib/browser/compute-runtime-EIQTHJFZ.mjs +0 -113
  295. package/dist/lib/browser/compute-runtime-EIQTHJFZ.mjs.map +0 -7
  296. package/dist/lib/browser/hooks/index.mjs +0 -13
  297. package/dist/lib/browser/index.mjs +0 -130
  298. package/dist/lib/browser/index.mjs.map +0 -7
  299. package/dist/lib/browser/intent-resolver-5HR7M7T6.mjs +0 -77
  300. package/dist/lib/browser/intent-resolver-5HR7M7T6.mjs.map +0 -7
  301. package/dist/lib/browser/meta.json +0 -1
  302. package/dist/lib/browser/react-surface-YQW7WCFW.mjs +0 -64
  303. package/dist/lib/browser/react-surface-YQW7WCFW.mjs.map +0 -7
  304. package/dist/lib/browser/types/index.mjs +0 -8
  305. package/dist/lib/node-esm/AutomationPanel-HCVFNHGQ.mjs +0 -12
  306. package/dist/lib/node-esm/AutomationSettings-UUUPVNUJ.mjs +0 -69
  307. package/dist/lib/node-esm/AutomationSettings-UUUPVNUJ.mjs.map +0 -7
  308. package/dist/lib/node-esm/FunctionsContainer-6OB3JN5O.mjs +0 -152
  309. package/dist/lib/node-esm/FunctionsContainer-6OB3JN5O.mjs.map +0 -7
  310. package/dist/lib/node-esm/FunctionsPanel-RVVCS6VH.mjs +0 -11
  311. package/dist/lib/node-esm/app-graph-builder-SLQOO7GH.mjs +0 -82
  312. package/dist/lib/node-esm/app-graph-builder-SLQOO7GH.mjs.map +0 -7
  313. package/dist/lib/node-esm/chunk-6YRKST6M.mjs +0 -185
  314. package/dist/lib/node-esm/chunk-6YRKST6M.mjs.map +0 -7
  315. package/dist/lib/node-esm/chunk-CEVIVRTY.mjs +0 -19
  316. package/dist/lib/node-esm/chunk-CEVIVRTY.mjs.map +0 -7
  317. package/dist/lib/node-esm/chunk-CPP35BE6.mjs +0 -16
  318. package/dist/lib/node-esm/chunk-CPP35BE6.mjs.map +0 -7
  319. package/dist/lib/node-esm/chunk-ECJKIUBO.mjs +0 -39
  320. package/dist/lib/node-esm/chunk-ECJKIUBO.mjs.map +0 -7
  321. package/dist/lib/node-esm/chunk-KB7NFEYY.mjs +0 -16
  322. package/dist/lib/node-esm/chunk-KB7NFEYY.mjs.map +0 -7
  323. package/dist/lib/node-esm/chunk-PICJ2REN.mjs +0 -101
  324. package/dist/lib/node-esm/chunk-PICJ2REN.mjs.map +0 -7
  325. package/dist/lib/node-esm/chunk-RVK52XGK.mjs +0 -110
  326. package/dist/lib/node-esm/chunk-RVK52XGK.mjs.map +0 -7
  327. package/dist/lib/node-esm/chunk-W76WUTZY.mjs +0 -268
  328. package/dist/lib/node-esm/chunk-W76WUTZY.mjs.map +0 -7
  329. package/dist/lib/node-esm/compute-runtime-URROOC34.mjs +0 -114
  330. package/dist/lib/node-esm/compute-runtime-URROOC34.mjs.map +0 -7
  331. package/dist/lib/node-esm/hooks/index.mjs +0 -14
  332. package/dist/lib/node-esm/index.mjs +0 -131
  333. package/dist/lib/node-esm/index.mjs.map +0 -7
  334. package/dist/lib/node-esm/intent-resolver-KDRYB5BC.mjs +0 -78
  335. package/dist/lib/node-esm/intent-resolver-KDRYB5BC.mjs.map +0 -7
  336. package/dist/lib/node-esm/meta.json +0 -1
  337. package/dist/lib/node-esm/react-surface-NNHYNBO6.mjs +0 -65
  338. package/dist/lib/node-esm/react-surface-NNHYNBO6.mjs.map +0 -7
  339. package/dist/lib/node-esm/types/index.mjs +0 -9
  340. package/dist/types/src/capabilities/capabilities.d.ts +0 -20
  341. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  342. package/dist/types/src/capabilities/compute-runtime.d.ts +0 -5
  343. package/dist/types/src/capabilities/compute-runtime.d.ts.map +0 -1
  344. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  345. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  346. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +0 -13
  347. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +0 -1
  348. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +0 -50
  349. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +0 -1
  350. package/dist/types/src/components/AutomationPanel/index.d.ts +0 -4
  351. package/dist/types/src/components/AutomationPanel/index.d.ts.map +0 -1
  352. package/dist/types/src/components/AutomationSettings.d.ts +0 -5
  353. package/dist/types/src/components/AutomationSettings.d.ts.map +0 -1
  354. package/dist/types/src/components/FunctionsContainer.d.ts +0 -7
  355. package/dist/types/src/components/FunctionsContainer.d.ts.map +0 -1
  356. package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts +0 -7
  357. package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +0 -1
  358. package/dist/types/src/components/FunctionsPanel/index.d.ts +0 -4
  359. package/dist/types/src/components/FunctionsPanel/index.d.ts.map +0 -1
  360. package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts +0 -8
  361. package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts.map +0 -1
  362. package/dist/types/src/components/FunctionsRegistry/index.d.ts +0 -2
  363. package/dist/types/src/components/FunctionsRegistry/index.d.ts.map +0 -1
  364. package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts +0 -12
  365. package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts.map +0 -1
  366. package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts +0 -5
  367. package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +0 -1
  368. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +0 -13
  369. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +0 -1
  370. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +0 -51
  371. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +0 -1
  372. package/dist/types/src/components/TriggerEditor/index.d.ts +0 -2
  373. package/dist/types/src/components/TriggerEditor/index.d.ts.map +0 -1
  374. package/dist/types/src/components/TriggerSettings.d.ts.map +0 -1
  375. package/dist/types/src/events.d.ts +0 -4
  376. package/dist/types/src/events.d.ts.map +0 -1
  377. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts +0 -12
  378. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +0 -1
  379. package/src/capabilities/capabilities.ts +0 -41
  380. package/src/capabilities/compute-runtime.ts +0 -127
  381. package/src/capabilities/intent-resolver.ts +0 -72
  382. package/src/components/AutomationPanel/AutomationPanel.stories.tsx +0 -56
  383. package/src/components/AutomationPanel/AutomationPanel.tsx +0 -223
  384. package/src/components/AutomationPanel/index.ts +0 -9
  385. package/src/components/AutomationSettings.tsx +0 -30
  386. package/src/components/FunctionsContainer.tsx +0 -36
  387. package/src/components/FunctionsPanel/FunctionsPanel.tsx +0 -116
  388. package/src/components/FunctionsPanel/index.ts +0 -8
  389. package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +0 -135
  390. package/src/components/FunctionsRegistry/index.ts +0 -5
  391. package/src/components/TriggerEditor/FunctionInputEditor.tsx +0 -84
  392. package/src/components/TriggerEditor/SpecSelector.tsx +0 -65
  393. package/src/components/TriggerEditor/TriggerEditor.stories.tsx +0 -121
  394. package/src/components/TriggerEditor/TriggerEditor.tsx +0 -127
  395. package/src/components/TriggerEditor/index.ts +0 -5
  396. package/src/components/TriggerSettings.tsx +0 -25
  397. package/src/events.ts +0 -11
  398. package/src/hooks/useComputeRuntimeCallback.ts +0 -68
  399. /package/dist/lib/{browser/AutomationPanel-7OECLR5N.mjs.map → neutral/AutomationArticle-GN36NUX2.mjs.map} +0 -0
  400. /package/dist/lib/{browser/FunctionsPanel-CRW6SJUN.mjs.map → neutral/AutomationPlugin.mjs.map} +0 -0
  401. /package/dist/lib/{browser/hooks/index.mjs.map → neutral/TriggerSettings-XCHIZPOR.mjs.map} +0 -0
  402. /package/dist/lib/{browser/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  403. /package/dist/lib/{node-esm/hooks → neutral}/index.mjs.map +0 -0
  404. /package/dist/lib/{node-esm/AutomationPanel-HCVFNHGQ.mjs.map → neutral/meta.mjs.map} +0 -0
  405. /package/dist/lib/{node-esm/types → neutral/operations}/index.mjs.map +0 -0
  406. /package/dist/lib/{node-esm/FunctionsPanel-RVVCS6VH.mjs.map → neutral/testing.mjs.map} +0 -0
  407. /package/dist/types/src/{components → containers/TriggerSettings}/TriggerSettings.d.ts +0 -0
@@ -1,13 +1,328 @@
1
- import { Type } from '@dxos/echo';
1
+ import { DXN } from '@dxos/echo';
2
+ /**
3
+ * Operations seeded into the local space in stories.
4
+ */
2
5
  export declare const functions: ({
6
+ key: DXN.DXN;
3
7
  name: string;
4
8
  version: string;
5
- inputSchema: Type.JsonSchema;
9
+ inputSchema: {
10
+ $id?: string | undefined;
11
+ $schema?: string | undefined;
12
+ $ref?: string | undefined;
13
+ $comment?: string | undefined;
14
+ entityKind?: import("@dxos/echo/internal").EntityKind | undefined;
15
+ typename?: string | undefined;
16
+ version?: string | undefined;
17
+ relationTarget?: /*elided*/ any | undefined;
18
+ relationSource?: /*elided*/ any | undefined;
19
+ title?: string | undefined;
20
+ description?: string | undefined;
21
+ readOnly?: boolean | undefined;
22
+ writeOnly?: boolean | undefined;
23
+ examples?: any[] | undefined;
24
+ default?: any;
25
+ const?: any;
26
+ enum?: any[] | undefined;
27
+ type?: "array" | "boolean" | "integer" | "null" | "number" | "object" | "string" | ("array" | "boolean" | "integer" | "null" | "number" | "object" | "string")[] | undefined;
28
+ multipleOf?: number | undefined;
29
+ maximum?: number | undefined;
30
+ exclusiveMaximum?: number | undefined;
31
+ minimum?: number | undefined;
32
+ exclusiveMinimum?: number | undefined;
33
+ maxLength?: number | undefined;
34
+ pattern?: string | undefined;
35
+ format?: string | undefined;
36
+ minLength?: number | undefined;
37
+ items?: /*elided*/ any[] | /*elided*/ any | undefined;
38
+ additionalItems?: boolean | /*elided*/ any | undefined;
39
+ maxItems?: number | undefined;
40
+ minItems?: number | undefined;
41
+ uniqueItems?: boolean | undefined;
42
+ contains?: /*elided*/ any | undefined;
43
+ maxProperties?: number | undefined;
44
+ minProperties?: number | undefined;
45
+ required?: string[] | undefined;
46
+ propertyOrder?: string[] | undefined;
47
+ additionalProperties?: boolean | /*elided*/ any | undefined;
48
+ properties?: {
49
+ [x: string]: /*elided*/ any;
50
+ } | undefined;
51
+ patternProperties?: {
52
+ [x: string]: any;
53
+ } | undefined;
54
+ propertyNames?: /*elided*/ any | undefined;
55
+ definitions?: {
56
+ [x: string]: any;
57
+ } | undefined;
58
+ dependencies?: {
59
+ [x: string]: string | string[] | /*elided*/ any;
60
+ } | undefined;
61
+ contentMediaType?: string | undefined;
62
+ contentEncoding?: string | undefined;
63
+ if?: /*elided*/ any | undefined;
64
+ then?: /*elided*/ any | undefined;
65
+ else?: /*elided*/ any | undefined;
66
+ allOf?: /*elided*/ any[] | undefined;
67
+ anyOf?: /*elided*/ any[] | undefined;
68
+ oneOf?: /*elided*/ any[] | undefined;
69
+ not?: /*elided*/ any | undefined;
70
+ $defs?: {
71
+ [x: string]: any;
72
+ } | undefined;
73
+ currency?: string | undefined;
74
+ reference?: {
75
+ schema: /*elided*/ any;
76
+ schemaVersion?: string | undefined;
77
+ schemaObject?: string | undefined;
78
+ } | undefined;
79
+ annotations?: {
80
+ labelProp?: import("@dxos/effect").JsonPath[] | import("@dxos/effect").JsonPath | undefined;
81
+ generator?: string | [string, number] | undefined;
82
+ meta?: {
83
+ [x: string]: any;
84
+ } | undefined;
85
+ type?: {
86
+ typename: string;
87
+ version: string;
88
+ schemaId?: string | undefined;
89
+ } | undefined;
90
+ annotations?: {
91
+ [x: string]: any;
92
+ } | undefined;
93
+ } | undefined;
94
+ echo?: {
95
+ labelProp?: import("@dxos/effect").JsonPath[] | import("@dxos/effect").JsonPath | undefined;
96
+ generator?: string | [string, number] | undefined;
97
+ meta?: {
98
+ [x: string]: any;
99
+ } | undefined;
100
+ type?: {
101
+ typename: string;
102
+ version: string;
103
+ schemaId?: string | undefined;
104
+ } | undefined;
105
+ annotations?: {
106
+ [x: string]: any;
107
+ } | undefined;
108
+ } | undefined;
109
+ };
6
110
  binding?: undefined;
7
111
  } | {
112
+ key: DXN.DXN;
8
113
  name: string;
9
114
  version: string;
10
115
  binding: string;
11
- inputSchema: Type.JsonSchema;
116
+ inputSchema: {
117
+ $id?: string | undefined;
118
+ $schema?: string | undefined;
119
+ $ref?: string | undefined;
120
+ $comment?: string | undefined;
121
+ entityKind?: import("@dxos/echo/internal").EntityKind | undefined;
122
+ typename?: string | undefined;
123
+ version?: string | undefined;
124
+ relationTarget?: any | undefined;
125
+ relationSource?: any | undefined;
126
+ title?: string | undefined;
127
+ description?: string | undefined;
128
+ readOnly?: boolean | undefined;
129
+ writeOnly?: boolean | undefined;
130
+ examples?: any[] | undefined;
131
+ default?: any;
132
+ const?: any;
133
+ enum?: any[] | undefined;
134
+ type?: "array" | "boolean" | "integer" | "null" | "number" | "object" | "string" | ("array" | "boolean" | "integer" | "null" | "number" | "object" | "string")[] | undefined;
135
+ multipleOf?: number | undefined;
136
+ maximum?: number | undefined;
137
+ exclusiveMaximum?: number | undefined;
138
+ minimum?: number | undefined;
139
+ exclusiveMinimum?: number | undefined;
140
+ maxLength?: number | undefined;
141
+ pattern?: string | undefined;
142
+ format?: string | undefined;
143
+ minLength?: number | undefined;
144
+ items?: any[] | any | undefined;
145
+ additionalItems?: boolean | any | undefined;
146
+ maxItems?: number | undefined;
147
+ minItems?: number | undefined;
148
+ uniqueItems?: boolean | undefined;
149
+ contains?: any | undefined;
150
+ maxProperties?: number | undefined;
151
+ minProperties?: number | undefined;
152
+ required?: string[] | undefined;
153
+ propertyOrder?: string[] | undefined;
154
+ additionalProperties?: boolean | any | undefined;
155
+ properties?: {
156
+ [x: string]: any;
157
+ } | undefined;
158
+ patternProperties?: {
159
+ [x: string]: any;
160
+ } | undefined;
161
+ propertyNames?: any | undefined;
162
+ definitions?: {
163
+ [x: string]: any;
164
+ } | undefined;
165
+ dependencies?: {
166
+ [x: string]: string | string[] | any;
167
+ } | undefined;
168
+ contentMediaType?: string | undefined;
169
+ contentEncoding?: string | undefined;
170
+ if?: any | undefined;
171
+ then?: any | undefined;
172
+ else?: any | undefined;
173
+ allOf?: any[] | undefined;
174
+ anyOf?: any[] | undefined;
175
+ oneOf?: any[] | undefined;
176
+ not?: any | undefined;
177
+ $defs?: {
178
+ [x: string]: any;
179
+ } | undefined;
180
+ currency?: string | undefined;
181
+ reference?: {
182
+ schema: any;
183
+ schemaVersion?: string | undefined;
184
+ schemaObject?: string | undefined;
185
+ } | undefined;
186
+ annotations?: {
187
+ labelProp?: import("@dxos/effect").JsonPath[] | import("@dxos/effect").JsonPath | undefined;
188
+ generator?: string | [string, number] | undefined;
189
+ meta?: {
190
+ [x: string]: any;
191
+ } | undefined;
192
+ type?: {
193
+ typename: string;
194
+ version: string;
195
+ schemaId?: string | undefined;
196
+ } | undefined;
197
+ annotations?: {
198
+ [x: string]: any;
199
+ } | undefined;
200
+ } | undefined;
201
+ echo?: {
202
+ labelProp?: import("@dxos/effect").JsonPath[] | import("@dxos/effect").JsonPath | undefined;
203
+ generator?: string | [string, number] | undefined;
204
+ meta?: {
205
+ [x: string]: any;
206
+ } | undefined;
207
+ type?: {
208
+ typename: string;
209
+ version: string;
210
+ schemaId?: string | undefined;
211
+ } | undefined;
212
+ annotations?: {
213
+ [x: string]: any;
214
+ } | undefined;
215
+ } | undefined;
216
+ };
12
217
  })[];
218
+ /**
219
+ * Operations seeded into the registry (not the local space) in stories.
220
+ * Simulates built-in or plugin-provided operations available globally.
221
+ */
222
+ export declare const registryFunctions: {
223
+ key: string;
224
+ name: string;
225
+ version: string;
226
+ inputSchema: {
227
+ $id?: string | undefined;
228
+ $schema?: string | undefined;
229
+ $ref?: string | undefined;
230
+ $comment?: string | undefined;
231
+ entityKind?: import("@dxos/echo/internal").EntityKind | undefined;
232
+ typename?: string | undefined;
233
+ version?: string | undefined;
234
+ relationTarget?: /*elided*/ any | undefined;
235
+ relationSource?: /*elided*/ any | undefined;
236
+ title?: string | undefined;
237
+ description?: string | undefined;
238
+ readOnly?: boolean | undefined;
239
+ writeOnly?: boolean | undefined;
240
+ examples?: any[] | undefined;
241
+ default?: any;
242
+ const?: any;
243
+ enum?: any[] | undefined;
244
+ type?: "array" | "boolean" | "integer" | "null" | "number" | "object" | "string" | ("array" | "boolean" | "integer" | "null" | "number" | "object" | "string")[] | undefined;
245
+ multipleOf?: number | undefined;
246
+ maximum?: number | undefined;
247
+ exclusiveMaximum?: number | undefined;
248
+ minimum?: number | undefined;
249
+ exclusiveMinimum?: number | undefined;
250
+ maxLength?: number | undefined;
251
+ pattern?: string | undefined;
252
+ format?: string | undefined;
253
+ minLength?: number | undefined;
254
+ items?: /*elided*/ any[] | /*elided*/ any | undefined;
255
+ additionalItems?: boolean | /*elided*/ any | undefined;
256
+ maxItems?: number | undefined;
257
+ minItems?: number | undefined;
258
+ uniqueItems?: boolean | undefined;
259
+ contains?: /*elided*/ any | undefined;
260
+ maxProperties?: number | undefined;
261
+ minProperties?: number | undefined;
262
+ required?: string[] | undefined;
263
+ propertyOrder?: string[] | undefined;
264
+ additionalProperties?: boolean | /*elided*/ any | undefined;
265
+ properties?: {
266
+ [x: string]: /*elided*/ any;
267
+ } | undefined;
268
+ patternProperties?: {
269
+ [x: string]: any;
270
+ } | undefined;
271
+ propertyNames?: /*elided*/ any | undefined;
272
+ definitions?: {
273
+ [x: string]: any;
274
+ } | undefined;
275
+ dependencies?: {
276
+ [x: string]: string | string[] | /*elided*/ any;
277
+ } | undefined;
278
+ contentMediaType?: string | undefined;
279
+ contentEncoding?: string | undefined;
280
+ if?: /*elided*/ any | undefined;
281
+ then?: /*elided*/ any | undefined;
282
+ else?: /*elided*/ any | undefined;
283
+ allOf?: /*elided*/ any[] | undefined;
284
+ anyOf?: /*elided*/ any[] | undefined;
285
+ oneOf?: /*elided*/ any[] | undefined;
286
+ not?: /*elided*/ any | undefined;
287
+ $defs?: {
288
+ [x: string]: any;
289
+ } | undefined;
290
+ currency?: string | undefined;
291
+ reference?: {
292
+ schema: /*elided*/ any;
293
+ schemaVersion?: string | undefined;
294
+ schemaObject?: string | undefined;
295
+ } | undefined;
296
+ annotations?: {
297
+ labelProp?: import("@dxos/effect").JsonPath[] | import("@dxos/effect").JsonPath | undefined;
298
+ generator?: string | [string, number] | undefined;
299
+ meta?: {
300
+ [x: string]: any;
301
+ } | undefined;
302
+ type?: {
303
+ typename: string;
304
+ version: string;
305
+ schemaId?: string | undefined;
306
+ } | undefined;
307
+ annotations?: {
308
+ [x: string]: any;
309
+ } | undefined;
310
+ } | undefined;
311
+ echo?: {
312
+ labelProp?: import("@dxos/effect").JsonPath[] | import("@dxos/effect").JsonPath | undefined;
313
+ generator?: string | [string, number] | undefined;
314
+ meta?: {
315
+ [x: string]: any;
316
+ } | undefined;
317
+ type?: {
318
+ typename: string;
319
+ version: string;
320
+ schemaId?: string | undefined;
321
+ } | undefined;
322
+ annotations?: {
323
+ [x: string]: any;
324
+ } | undefined;
325
+ } | undefined;
326
+ };
327
+ }[];
13
328
  //# sourceMappingURL=test-functions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-functions.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-functions.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,eAAO,MAAM,SAAS;;;;;;;;;;IAgCrB,CAAC"}
1
+ {"version":3,"file":"test-functions.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-functions.ts"],"names":[],"mappings":"AAOA,OAAO,EAAmB,GAAG,EAAE,MAAM,YAAY,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmCrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsB7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './AutomationPlugin';
2
+ //# sourceMappingURL=testing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAMA,cAAc,oBAAoB,CAAC"}
@@ -1,36 +1,95 @@
1
- import { meta } from './meta';
2
1
  export declare const translations: [{
3
2
  readonly 'en-US': {
4
- readonly [meta.id]: {
5
- readonly 'plugin name': "Automation";
6
- readonly 'automation panel label': "Automations";
7
- readonly 'script automation label': "Automation";
8
- readonly 'automation verbose label': "Manage automations";
9
- readonly 'automation description': "You can manage all the triggers which automate your space here.";
10
- readonly 'runtime label': "Enable Local Runtime";
11
- readonly 'runtime description': "This will start a trigger dispatcher locally for this space to run triggers on your device while Composer is running.";
12
- readonly 'functions panel label': "Functions";
13
- readonly 'functions verbose label': "Manage deployed functions";
14
- readonly 'functions registry verbose label': "Functions registry";
15
- readonly 'functions registry description': "Import functions from the registry";
16
- readonly 'functions description': "You can manage all the functions deployed from your space on EDGE here.";
17
- readonly 'function copy id': "Copy Function ID";
18
- readonly 'no functions found': "No functions found";
19
- readonly 'go to function source button label': "Show function source";
20
- readonly 'delete function button label': "Delete function";
21
- readonly 'trigger editor title': "Configure Trigger";
22
- readonly 'new trigger label': "Add Trigger";
23
- readonly 'trigger type timer': "Timer";
24
- readonly 'trigger type webhook': "Webhook";
25
- readonly 'trigger type websocket': "Websocket";
26
- readonly 'trigger type subscription': "Subscription";
27
- readonly 'trigger type email': "Email";
28
- readonly 'trigger type queue': "Queue";
29
- readonly 'trigger copy url': "Copy URL";
30
- readonly 'trigger copy email': "Copy Email";
31
- readonly 'trigger payload add': "Add";
32
- readonly 'trigger payload remove': "Remove";
33
- readonly 'trigger payload prop name placeholder': "New payload property name";
3
+ readonly [x: string]: {
4
+ readonly 'typename.label': 'Automation';
5
+ readonly 'typename.label_zero': 'Automations';
6
+ readonly 'typename.label_one': 'Automation';
7
+ readonly 'typename.label_other': 'Automations';
8
+ readonly 'object-name.placeholder': 'New automation';
9
+ readonly 'add-object.label': 'Add automation';
10
+ readonly 'rename-object.label': 'Rename automation';
11
+ readonly 'delete-object.label': 'Delete automation';
12
+ readonly 'plugin.name'?: undefined;
13
+ readonly 'automation-panel.label'?: undefined;
14
+ readonly 'create-panel.template.placeholder'?: undefined;
15
+ readonly 'automation-name.label'?: undefined;
16
+ readonly 'general.title'?: undefined;
17
+ readonly 'general.description'?: undefined;
18
+ readonly 'action.title'?: undefined;
19
+ readonly 'action.description'?: undefined;
20
+ readonly 'action.placeholder'?: undefined;
21
+ readonly 'action-input.label'?: undefined;
22
+ readonly 'action-kind.operation.label'?: undefined;
23
+ readonly 'action-kind.routine.label'?: undefined;
24
+ readonly 'trigger-picker.title'?: undefined;
25
+ readonly 'trigger-picker.description'?: undefined;
26
+ readonly 'trigger-kind.placeholder'?: undefined;
27
+ readonly 'trigger-kind.timer.label'?: undefined;
28
+ readonly 'trigger-kind.feed.label'?: undefined;
29
+ readonly 'cron.placeholder'?: undefined;
30
+ readonly 'feed.placeholder'?: undefined;
31
+ readonly 'enabled.label'?: undefined;
32
+ readonly 'enabled.description'?: undefined;
33
+ readonly 'add-trigger.label'?: undefined;
34
+ readonly 'add-trigger-first.message'?: undefined;
35
+ readonly 'remove-trigger.label'?: undefined;
36
+ readonly 'select-action-first.message'?: undefined;
37
+ readonly 'automation-companion.label'?: undefined;
38
+ readonly 'no-automations.message'?: undefined;
39
+ readonly 'automation-not-associated.message'?: undefined;
40
+ readonly 'automation-detached.message'?: undefined;
41
+ readonly 'automation-verbose.label'?: undefined;
42
+ readonly 'automation.description'?: undefined;
43
+ readonly 'runtime.label'?: undefined;
44
+ readonly 'runtime.description'?: undefined;
45
+ readonly 'runtime.disabled.label'?: undefined;
46
+ readonly 'runtime.local.label'?: undefined;
47
+ readonly 'runtime.edge.label'?: undefined;
48
+ } | {
49
+ readonly 'typename.label'?: undefined;
50
+ readonly 'typename.label_zero'?: undefined;
51
+ readonly 'typename.label_one'?: undefined;
52
+ readonly 'typename.label_other'?: undefined;
53
+ readonly 'object-name.placeholder'?: undefined;
54
+ readonly 'add-object.label'?: undefined;
55
+ readonly 'rename-object.label'?: undefined;
56
+ readonly 'delete-object.label'?: undefined;
57
+ readonly 'plugin.name': 'Automation';
58
+ readonly 'automation-panel.label': 'Automations';
59
+ readonly 'create-panel.template.placeholder': 'Search templates...';
60
+ readonly 'automation-name.label': 'Name';
61
+ readonly 'general.title': 'General';
62
+ readonly 'general.description': 'Name and status.';
63
+ readonly 'action.title': 'Action';
64
+ readonly 'action.description': 'What this automation runs.';
65
+ readonly 'action.placeholder': 'Select an operation or routine';
66
+ readonly 'action-input.label': 'Input';
67
+ readonly 'action-kind.operation.label': 'Operation';
68
+ readonly 'action-kind.routine.label': 'Routine';
69
+ readonly 'trigger-picker.title': 'Trigger';
70
+ readonly 'trigger-picker.description': 'When this automation runs.';
71
+ readonly 'trigger-kind.placeholder': 'Select trigger type';
72
+ readonly 'trigger-kind.timer.label': 'Schedule (cron)';
73
+ readonly 'trigger-kind.feed.label': 'Feed';
74
+ readonly 'cron.placeholder': '0 0 * * *';
75
+ readonly 'feed.placeholder': 'Select a feed';
76
+ readonly 'enabled.label': 'Enabled';
77
+ readonly 'enabled.description': 'Turn this automation on or off.';
78
+ readonly 'add-trigger.label': 'Add trigger';
79
+ readonly 'add-trigger-first.message': 'Add a trigger to enable.';
80
+ readonly 'remove-trigger.label': 'Remove';
81
+ readonly 'select-action-first.message': 'Select an action first.';
82
+ readonly 'automation-companion.label': 'Automation';
83
+ readonly 'no-automations.message': 'No automations for this object.';
84
+ readonly 'automation-not-associated.message': 'Not yet associated with this object.';
85
+ readonly 'automation-detached.message': 'No longer associated with this object.';
86
+ readonly 'automation-verbose.label': 'Manage automations';
87
+ readonly 'automation.description': 'Manage where automations in this space run.';
88
+ readonly 'runtime.label': 'Runtime location';
89
+ readonly 'runtime.description': 'Determines where automations in this space run.';
90
+ readonly 'runtime.disabled.label': 'Disabled';
91
+ readonly 'runtime.local.label': 'Local';
92
+ readonly 'runtime.edge.label': 'EDGE (experimental)';
34
93
  };
35
94
  };
36
95
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAoCR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;uCAIC,YAAY;4CACP,aAAa;2CACd,YAAY;6CACV,aAAa;gDACV,gBAAgB;yCACvB,gBAAgB;4CACb,mBAAmB;4CACnB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAG3B,YAAY;+CACD,aAAa;0DACF,qBAAqB;8CAEjC,MAAM;sCACd,SAAS;4CACH,kBAAkB;qCACzB,QAAQ;2CACF,4BAA4B;2CAC5B,gCAAgC;2CAChC,OAAO;oDACE,WAAW;kDACb,SAAS;6CACd,SAAS;mDACH,4BAA4B;iDAC9B,qBAAqB;iDACrB,iBAAiB;gDAClB,MAAM;yCACb,WAAW;yCACX,eAAe;sCAClB,SAAS;4CACH,iCAAiC;0CACnC,aAAa;kDACL,0BAA0B;6CAC/B,QAAQ;oDACD,yBAAyB;mDAC1B,YAAY;+CAChB,iCAAiC;0DACtB,sCAAsC;oDAC5C,wCAAwC;iDAE3C,oBAAoB;+CACtB,6CAA6C;sCAEtD,kBAAkB;4CACZ,iDAAiD;+CAC9C,UAAU;4CACb,OAAO;2CACR,qBAAqB;;;EAIpB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { Obj, Type } from '@dxos/echo';
3
+ /**
4
+ * User-facing automation: a thin aggregate of an action (`runnable`) and the triggers that fire it.
5
+ * App-level only — EDGE stays unaware of it (triggers point directly at the runnable).
6
+ */
7
+ export declare const Automation: Type.Obj<{
8
+ readonly name?: string | undefined;
9
+ readonly description?: string | undefined;
10
+ readonly runnable?: import("@dxos/echo/internal").Ref<{
11
+ readonly name: string;
12
+ readonly description?: string | undefined;
13
+ readonly updated?: string | undefined;
14
+ readonly source?: import("@dxos/echo/internal").Ref<Obj.Unknown> | undefined;
15
+ readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
16
+ readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
17
+ readonly services?: readonly string[] | undefined;
18
+ readonly binding?: string | undefined;
19
+ readonly icon?: string | undefined;
20
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
21
+ readonly triggers: readonly import("@dxos/echo/internal").Ref<Obj.Unknown>[];
22
+ }, Schema.Struct.Fields>;
23
+ export type Automation = Type.InstanceType<typeof Automation>;
24
+ export declare const instanceOf: (value: unknown) => value is Automation;
25
+ export declare const make: (props: Obj.MakeProps<typeof Automation>) => Obj.OfShape<{
26
+ readonly name?: string | undefined;
27
+ readonly description?: string | undefined;
28
+ readonly runnable?: import("@dxos/echo/internal").Ref<{
29
+ readonly name: string;
30
+ readonly description?: string | undefined;
31
+ readonly updated?: string | undefined;
32
+ readonly source?: import("@dxos/echo/internal").Ref<Obj.Unknown> | undefined;
33
+ readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
34
+ readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
35
+ readonly services?: readonly string[] | undefined;
36
+ readonly binding?: string | undefined;
37
+ readonly icon?: string | undefined;
38
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
39
+ readonly triggers: readonly import("@dxos/echo/internal").Ref<Obj.Unknown>[];
40
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>>;
41
+ //# sourceMappingURL=Automation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../../../src/types/Automation.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAmB,GAAG,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAK7D;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;wBAqBtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9D,eAAO,MAAM,UAAU,UAAW,OAAO,KAAG,KAAK,IAAI,UAA+C,CAAC;AAErG,eAAO,MAAM,IAAI,UAAW,GAAG,CAAC,SAAS,CAAC,OAAO,UAAU,CAAC;;;;;;;;;;;;;;;wFAAgC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Automation.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Automation.test.d.ts","sourceRoot":"","sources":["../../../../src/types/Automation.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import type * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import type { Database, Obj } from '@dxos/echo';
4
+ import { type DelegationStrategy } from '@dxos/functions-runtime';
5
+ import * as Automation from './Automation';
6
+ /**
7
+ * Optional supervisor strategy for the agent chat service. When contributed (by a plugin that knows
8
+ * the agent/plan model, e.g. plugin-assistant), the conversational agent delegates outstanding work
9
+ * to sub-agents and folds their results back into the conversation. Consumed by the AgentService
10
+ * LayerSpec; absent by default (a plain conversational agent).
11
+ */
12
+ export declare const AgentDelegationStrategy: Capability.InterfaceDef<DelegationStrategy>;
13
+ /**
14
+ * An automation template contributed by a plugin. The create dialog and the per-object "Automations"
15
+ * companion list contributed templates (`Capability.getAll(AutomationCapabilities.Template)`) and run the
16
+ * chosen template's `scaffold` to build the automation.
17
+ */
18
+ export type Template = {
19
+ /** Stable id (e.g. 'org.dxos.automation.blank'). */
20
+ id: string;
21
+ /** Human-readable label shown in the picker. */
22
+ label: string;
23
+ /** Optional Phosphor icon name. */
24
+ icon?: string;
25
+ /**
26
+ * Whether this template applies to the given companion subject. The subject is the object whose
27
+ * "Automations" companion is open, or undefined in the global create dialog. Templates that need a
28
+ * specific subject (e.g. a feed-bearing Mailbox) gate themselves here. Defaults to always-applies.
29
+ */
30
+ appliesTo?: (subject?: Obj.Unknown) => boolean;
31
+ /**
32
+ * Build the Automation from the user's input. The returned Automation is added to the database by the
33
+ * create flow; any auxiliary objects (runnable, triggers) must be added by the scaffold itself via
34
+ * Database.Service. `subject` is set when scaffolding from an object's companion.
35
+ */
36
+ scaffold: (ctx: {
37
+ name?: string;
38
+ subject?: Obj.Unknown;
39
+ }) => Effect.Effect<Automation.Automation, Error, Database.Service>;
40
+ };
41
+ export declare const Template: Capability.InterfaceDef<Template>;
42
+ //# sourceMappingURL=AutomationCapabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/AutomationCapabilities.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,6CAEnC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,KAAK,OAAO,CAAC;IAC/C;;;;OAIG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;KACvB,KAAK,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAA8E,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { Operation } from '@dxos/compute';
3
+ import { Database, Obj } from '@dxos/echo';
4
+ import { EID as _EchoURIReference } from '@dxos/keys';
5
+ export { _EchoURIReference };
6
+ export declare const CreateTriggerFromTemplate: Operation.Definition<{
7
+ readonly db: Database.Database;
8
+ readonly template: {
9
+ readonly type: "timer";
10
+ readonly cron: string;
11
+ } | {
12
+ readonly type: "feed";
13
+ readonly feed: any;
14
+ };
15
+ readonly enabled?: boolean | undefined;
16
+ readonly scriptName?: string | undefined;
17
+ readonly input?: {
18
+ readonly [x: string]: any;
19
+ } | undefined;
20
+ }, void, Capability.Service>;
21
+ export declare const CreateAutomation: Operation.Definition<{
22
+ readonly db: Database.Database;
23
+ readonly templateId: string;
24
+ readonly name?: string | undefined;
25
+ readonly subject?: Obj.Unknown | undefined;
26
+ }, {
27
+ readonly id: string;
28
+ readonly subject: readonly string[];
29
+ readonly object: Obj.Unknown;
30
+ }, Capability.Service>;
31
+ //# sourceMappingURL=AutomationOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationOperation.d.ts","sourceRoot":"","sources":["../../../../src/types/AutomationOperation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAO,GAAG,EAAE,MAAM,YAAY,CAAC;AAIhD,OAAO,EAAE,GAAG,IAAI,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAKtD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAI7B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;4BAepC,CAAC;AAIH,eAAO,MAAM,gBAAgB;;;;;;;;;sBAkB3B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Operation } from '@dxos/compute';
2
+ export type Runnable = Operation.PersistentOperation;
3
+ export declare const Runnable: import("@dxos/echo/Type").Obj<{
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly updated?: string | undefined;
7
+ readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown> | undefined;
8
+ readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
9
+ readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
10
+ readonly services?: readonly string[] | undefined;
11
+ readonly binding?: string | undefined;
12
+ readonly icon?: string | undefined;
13
+ }, import("effect/Schema").Struct.Fields>;
14
+ //# sourceMappingURL=Runnable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Runnable.d.ts","sourceRoot":"","sources":["../../../../src/types/Runnable.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,mBAAmB,CAAC;AACrD,eAAO,MAAM,QAAQ;;;;;;;;;;yCAAgC,CAAC"}
@@ -1,2 +1,6 @@
1
1
  export * from './schema';
2
+ export * as Automation from './Automation';
3
+ export * as AutomationCapabilities from './AutomationCapabilities';
4
+ export * as AutomationOperation from './AutomationOperation';
5
+ export * as Runnable from './Runnable';
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AAEzB,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,sBAAsB,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC"}