@dxos/plugin-automation 0.8.4-main.bc674ce → 0.8.4-main.c351d160a8

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 (219) hide show
  1. package/dist/lib/browser/AutomationPanel-IGLIQY2N.mjs +11 -0
  2. package/dist/lib/browser/AutomationSettings-XGJGVBDD.mjs +37 -0
  3. package/dist/lib/browser/AutomationSettings-XGJGVBDD.mjs.map +7 -0
  4. package/dist/lib/browser/FunctionsContainer-R4ZMYSFJ.mjs +43 -0
  5. package/dist/lib/browser/FunctionsContainer-R4ZMYSFJ.mjs.map +7 -0
  6. package/dist/lib/browser/{FunctionsPanel-ZX4J75UM.mjs → FunctionsPanel-NMA4RYJL.mjs} +3 -3
  7. package/dist/lib/browser/FunctionsRegistry-TMKAEG5E.mjs +10 -0
  8. package/dist/lib/browser/TriggerSettings-GW5OEM2G.mjs +11 -0
  9. package/dist/lib/browser/{app-graph-builder-LAQMEBMH.mjs → app-graph-builder-74ILZP25.mjs} +19 -20
  10. package/dist/lib/browser/app-graph-builder-74ILZP25.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-JOXPQ27I.mjs → chunk-5WMYSXEH.mjs} +7 -7
  12. package/dist/lib/browser/chunk-5WMYSXEH.mjs.map +7 -0
  13. package/dist/lib/browser/{chunk-BFUIVUQH.mjs → chunk-75XLBFAG.mjs} +11 -16
  14. package/dist/lib/browser/chunk-75XLBFAG.mjs.map +7 -0
  15. package/dist/lib/browser/{chunk-QW3EM35H.mjs → chunk-BWEKRPFJ.mjs} +62 -16
  16. package/dist/lib/browser/chunk-BWEKRPFJ.mjs.map +7 -0
  17. package/dist/lib/browser/{chunk-PZNBEKO5.mjs → chunk-EL64ZPPN.mjs} +2 -2
  18. package/dist/lib/browser/{chunk-PZNBEKO5.mjs.map → chunk-EL64ZPPN.mjs.map} +1 -1
  19. package/dist/lib/browser/{FunctionsContainer-6QLC7JP4.mjs → chunk-FUVAC5EC.mjs} +15 -48
  20. package/dist/lib/browser/chunk-FUVAC5EC.mjs.map +7 -0
  21. package/dist/lib/browser/{chunk-BKFQBKYO.mjs → chunk-LHJEQVX5.mjs} +2 -2
  22. package/dist/lib/browser/{chunk-YWLEY2FD.mjs → chunk-O23LHDEX.mjs} +119 -50
  23. package/dist/lib/browser/chunk-O23LHDEX.mjs.map +7 -0
  24. package/dist/lib/browser/chunk-PUYY7B5F.mjs +31 -0
  25. package/dist/lib/browser/chunk-PUYY7B5F.mjs.map +7 -0
  26. package/dist/lib/browser/{chunk-RAF2FJST.mjs → chunk-ZBEMNWNY.mjs} +19 -12
  27. package/dist/lib/browser/chunk-ZBEMNWNY.mjs.map +7 -0
  28. package/dist/lib/browser/cli/index.mjs +62 -54
  29. package/dist/lib/browser/cli/index.mjs.map +3 -3
  30. package/dist/lib/browser/{compute-runtime-WTWLQ67J.mjs → compute-runtime-I3I2BIRE.mjs} +36 -20
  31. package/dist/lib/browser/compute-runtime-I3I2BIRE.mjs.map +7 -0
  32. package/dist/lib/browser/hooks/index.mjs +3 -3
  33. package/dist/lib/browser/index.mjs +26 -25
  34. package/dist/lib/browser/index.mjs.map +4 -4
  35. package/dist/lib/browser/meta.json +1 -1
  36. package/dist/lib/browser/{operation-resolver-Q3MWOR7K.mjs → operation-resolver-NGN4BEWN.mjs} +11 -9
  37. package/dist/lib/browser/operation-resolver-NGN4BEWN.mjs.map +7 -0
  38. package/dist/lib/browser/react-surface-SXDIM3RM.mjs +65 -0
  39. package/dist/lib/browser/react-surface-SXDIM3RM.mjs.map +7 -0
  40. package/dist/lib/browser/types/index.mjs +2 -2
  41. package/dist/lib/node-esm/{AutomationPanel-B7NAGDFA.mjs → AutomationPanel-O2BCQA7P.mjs} +4 -4
  42. package/dist/lib/node-esm/AutomationPanel-O2BCQA7P.mjs.map +7 -0
  43. package/dist/lib/node-esm/AutomationSettings-W52ZO2XI.mjs +38 -0
  44. package/dist/lib/node-esm/AutomationSettings-W52ZO2XI.mjs.map +7 -0
  45. package/dist/lib/node-esm/FunctionsContainer-GYRPQZM7.mjs +44 -0
  46. package/dist/lib/node-esm/FunctionsContainer-GYRPQZM7.mjs.map +7 -0
  47. package/dist/lib/node-esm/{FunctionsPanel-SS6GIVNU.mjs → FunctionsPanel-DCXXLSVP.mjs} +3 -3
  48. package/dist/lib/node-esm/FunctionsPanel-DCXXLSVP.mjs.map +7 -0
  49. package/dist/lib/node-esm/FunctionsRegistry-7WCHC64E.mjs +11 -0
  50. package/dist/lib/node-esm/FunctionsRegistry-7WCHC64E.mjs.map +7 -0
  51. package/dist/lib/node-esm/TriggerSettings-2GKFPECW.mjs +12 -0
  52. package/dist/lib/node-esm/TriggerSettings-2GKFPECW.mjs.map +7 -0
  53. package/dist/lib/node-esm/{app-graph-builder-4UCMXHYY.mjs → app-graph-builder-VDXPOWCH.mjs} +19 -20
  54. package/dist/lib/node-esm/app-graph-builder-VDXPOWCH.mjs.map +7 -0
  55. package/dist/lib/node-esm/{FunctionsContainer-J4O2ULWR.mjs → chunk-6JVB3IHW.mjs} +15 -48
  56. package/dist/lib/node-esm/chunk-6JVB3IHW.mjs.map +7 -0
  57. package/dist/lib/node-esm/chunk-BNWZ2NNI.mjs +32 -0
  58. package/dist/lib/node-esm/chunk-BNWZ2NNI.mjs.map +7 -0
  59. package/dist/lib/node-esm/{chunk-2CKVH7JC.mjs → chunk-FPXVLTEY.mjs} +119 -50
  60. package/dist/lib/node-esm/chunk-FPXVLTEY.mjs.map +7 -0
  61. package/dist/lib/node-esm/{chunk-KWKWOGS5.mjs → chunk-K7T2MVB7.mjs} +11 -16
  62. package/dist/lib/node-esm/chunk-K7T2MVB7.mjs.map +7 -0
  63. package/dist/lib/node-esm/{chunk-LJAXQ6CX.mjs → chunk-Q5JSKD6Z.mjs} +62 -16
  64. package/dist/lib/node-esm/chunk-Q5JSKD6Z.mjs.map +7 -0
  65. package/dist/lib/node-esm/{chunk-K7GCM342.mjs → chunk-V3VUE2NR.mjs} +2 -2
  66. package/dist/lib/node-esm/{chunk-5FXNN3MV.mjs → chunk-WC5AT7B3.mjs} +2 -2
  67. package/dist/lib/node-esm/{chunk-5FXNN3MV.mjs.map → chunk-WC5AT7B3.mjs.map} +1 -1
  68. package/dist/lib/node-esm/{chunk-RX52VKI2.mjs → chunk-XCFO2IXT.mjs} +7 -7
  69. package/dist/lib/node-esm/chunk-XCFO2IXT.mjs.map +7 -0
  70. package/dist/lib/node-esm/{chunk-HQLVREIX.mjs → chunk-XQO3HK62.mjs} +19 -12
  71. package/dist/lib/node-esm/chunk-XQO3HK62.mjs.map +7 -0
  72. package/dist/lib/node-esm/cli/index.mjs +62 -54
  73. package/dist/lib/node-esm/cli/index.mjs.map +3 -3
  74. package/dist/lib/node-esm/{compute-runtime-ZHROOBLY.mjs → compute-runtime-7HCSIYFG.mjs} +36 -20
  75. package/dist/lib/node-esm/compute-runtime-7HCSIYFG.mjs.map +7 -0
  76. package/dist/lib/node-esm/hooks/index.mjs +3 -3
  77. package/dist/lib/node-esm/index.mjs +26 -25
  78. package/dist/lib/node-esm/index.mjs.map +4 -4
  79. package/dist/lib/node-esm/meta.json +1 -1
  80. package/dist/lib/node-esm/{operation-resolver-R5GA4YNO.mjs → operation-resolver-ANGACQZG.mjs} +11 -9
  81. package/dist/lib/node-esm/operation-resolver-ANGACQZG.mjs.map +7 -0
  82. package/dist/lib/node-esm/{react-surface-S6VZJCEZ.mjs → react-surface-QVLVDEVW.mjs} +25 -25
  83. package/dist/lib/node-esm/react-surface-QVLVDEVW.mjs.map +7 -0
  84. package/dist/lib/node-esm/types/index.mjs +2 -2
  85. package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
  86. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +1 -1
  87. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
  88. package/dist/types/src/capabilities/compute-runtime/compute-runtime.d.ts +1 -1
  89. package/dist/types/src/capabilities/compute-runtime/compute-runtime.d.ts.map +1 -1
  90. package/dist/types/src/capabilities/operation-resolver/index.d.ts +1 -1
  91. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -1
  92. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
  93. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
  94. package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
  95. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
  96. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
  97. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
  98. package/dist/types/src/cli/commands/trigger/update/queue.d.ts.map +1 -1
  99. package/dist/types/src/cli/commands/trigger/util.d.ts +2 -2
  100. package/dist/types/src/cli/commands/trigger/util.d.ts.map +1 -1
  101. package/dist/types/src/cli/plugin.d.ts.map +1 -1
  102. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +3 -4
  103. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
  104. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +1 -0
  105. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
  106. package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -1
  107. package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts.map +1 -1
  108. package/dist/types/src/components/FunctionsRegistry/index.d.ts +3 -1
  109. package/dist/types/src/components/FunctionsRegistry/index.d.ts.map +1 -1
  110. package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts.map +1 -1
  111. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
  112. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +2 -0
  113. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
  114. package/dist/types/src/components/index.d.ts +3 -4
  115. package/dist/types/src/components/index.d.ts.map +1 -1
  116. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts +4 -0
  117. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts.map +1 -0
  118. package/dist/types/src/containers/AutomationSettings/index.d.ts +3 -0
  119. package/dist/types/src/containers/AutomationSettings/index.d.ts.map +1 -0
  120. package/dist/types/src/{components → containers/FunctionsContainer}/FunctionsContainer.d.ts +0 -1
  121. package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts.map +1 -0
  122. package/dist/types/src/containers/FunctionsContainer/index.d.ts +3 -0
  123. package/dist/types/src/containers/FunctionsContainer/index.d.ts.map +1 -0
  124. package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts.map +1 -0
  125. package/dist/types/src/containers/TriggerSettings/index.d.ts +3 -0
  126. package/dist/types/src/containers/TriggerSettings/index.d.ts.map +1 -0
  127. package/dist/types/src/containers/index.d.ts +5 -0
  128. package/dist/types/src/containers/index.d.ts.map +1 -0
  129. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +2 -1
  130. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -1
  131. package/dist/types/src/translations.d.ts +1 -0
  132. package/dist/types/src/translations.d.ts.map +1 -1
  133. package/dist/types/src/types/capabilities.d.ts +3 -2
  134. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  135. package/dist/types/src/types/schema.d.ts +3 -3
  136. package/dist/types/tsconfig.tsbuildinfo +1 -1
  137. package/package.json +51 -46
  138. package/src/AutomationPlugin.tsx +7 -6
  139. package/src/capabilities/app-graph-builder/app-graph-builder.ts +17 -15
  140. package/src/capabilities/compute-runtime/compute-runtime.ts +36 -14
  141. package/src/capabilities/operation-resolver/operation-resolver.ts +7 -6
  142. package/src/capabilities/react-surface/react-surface.tsx +16 -19
  143. package/src/cli/commands/trigger/create/queue.ts +4 -4
  144. package/src/cli/commands/trigger/create/subscription.ts +4 -4
  145. package/src/cli/commands/trigger/create/timer.ts +4 -4
  146. package/src/cli/commands/trigger/list.ts +2 -2
  147. package/src/cli/commands/trigger/remove.ts +2 -2
  148. package/src/cli/commands/trigger/update/queue.ts +5 -5
  149. package/src/cli/commands/trigger/update/subscription.ts +5 -5
  150. package/src/cli/commands/trigger/update/timer.ts +5 -5
  151. package/src/cli/commands/trigger/util.ts +34 -25
  152. package/src/cli/plugin.ts +3 -2
  153. package/src/components/AutomationPanel/AutomationPanel.stories.tsx +3 -3
  154. package/src/components/AutomationPanel/AutomationPanel.tsx +137 -69
  155. package/src/components/FunctionsPanel/FunctionsPanel.tsx +9 -11
  156. package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +9 -10
  157. package/src/components/FunctionsRegistry/index.ts +4 -1
  158. package/src/components/TriggerEditor/FunctionInputEditor.tsx +13 -4
  159. package/src/components/TriggerEditor/SpecSelector.tsx +1 -1
  160. package/src/components/TriggerEditor/TriggerEditor.stories.tsx +46 -4
  161. package/src/components/TriggerEditor/TriggerEditor.tsx +39 -7
  162. package/src/components/index.ts +1 -2
  163. package/src/{components → containers/AutomationSettings}/AutomationSettings.tsx +8 -11
  164. package/src/containers/AutomationSettings/index.ts +7 -0
  165. package/src/{components → containers/FunctionsContainer}/FunctionsContainer.tsx +10 -13
  166. package/src/containers/FunctionsContainer/index.ts +7 -0
  167. package/src/containers/TriggerSettings/TriggerSettings.tsx +26 -0
  168. package/src/containers/TriggerSettings/index.ts +6 -0
  169. package/src/containers/index.ts +9 -0
  170. package/src/hooks/useComputeRuntimeCallback.ts +1 -1
  171. package/src/hooks/useTriggerRuntimeControls.ts +22 -8
  172. package/src/meta.ts +1 -1
  173. package/src/testing/test-functions.ts +5 -5
  174. package/src/translations.ts +2 -0
  175. package/src/types/capabilities.ts +5 -2
  176. package/src/types/events.ts +1 -1
  177. package/src/types/schema.ts +3 -3
  178. package/dist/lib/browser/AutomationPanel-FAS6ADCW.mjs +0 -11
  179. package/dist/lib/browser/AutomationSettings-XN2OIYWL.mjs +0 -56
  180. package/dist/lib/browser/AutomationSettings-XN2OIYWL.mjs.map +0 -7
  181. package/dist/lib/browser/FunctionsContainer-6QLC7JP4.mjs.map +0 -7
  182. package/dist/lib/browser/app-graph-builder-LAQMEBMH.mjs.map +0 -7
  183. package/dist/lib/browser/chunk-54PANILA.mjs +0 -14
  184. package/dist/lib/browser/chunk-54PANILA.mjs.map +0 -7
  185. package/dist/lib/browser/chunk-BFUIVUQH.mjs.map +0 -7
  186. package/dist/lib/browser/chunk-JOXPQ27I.mjs.map +0 -7
  187. package/dist/lib/browser/chunk-QW3EM35H.mjs.map +0 -7
  188. package/dist/lib/browser/chunk-RAF2FJST.mjs.map +0 -7
  189. package/dist/lib/browser/chunk-YWLEY2FD.mjs.map +0 -7
  190. package/dist/lib/browser/compute-runtime-WTWLQ67J.mjs.map +0 -7
  191. package/dist/lib/browser/operation-resolver-Q3MWOR7K.mjs.map +0 -7
  192. package/dist/lib/browser/react-surface-EV3AC62F.mjs +0 -65
  193. package/dist/lib/browser/react-surface-EV3AC62F.mjs.map +0 -7
  194. package/dist/lib/node-esm/AutomationSettings-M5PMZJ6P.mjs +0 -57
  195. package/dist/lib/node-esm/AutomationSettings-M5PMZJ6P.mjs.map +0 -7
  196. package/dist/lib/node-esm/FunctionsContainer-J4O2ULWR.mjs.map +0 -7
  197. package/dist/lib/node-esm/app-graph-builder-4UCMXHYY.mjs.map +0 -7
  198. package/dist/lib/node-esm/chunk-2CKVH7JC.mjs.map +0 -7
  199. package/dist/lib/node-esm/chunk-7QRUPEHH.mjs +0 -16
  200. package/dist/lib/node-esm/chunk-7QRUPEHH.mjs.map +0 -7
  201. package/dist/lib/node-esm/chunk-HQLVREIX.mjs.map +0 -7
  202. package/dist/lib/node-esm/chunk-KWKWOGS5.mjs.map +0 -7
  203. package/dist/lib/node-esm/chunk-LJAXQ6CX.mjs.map +0 -7
  204. package/dist/lib/node-esm/chunk-RX52VKI2.mjs.map +0 -7
  205. package/dist/lib/node-esm/compute-runtime-ZHROOBLY.mjs.map +0 -7
  206. package/dist/lib/node-esm/operation-resolver-R5GA4YNO.mjs.map +0 -7
  207. package/dist/lib/node-esm/react-surface-S6VZJCEZ.mjs.map +0 -7
  208. package/dist/types/src/components/AutomationSettings.d.ts +0 -5
  209. package/dist/types/src/components/AutomationSettings.d.ts.map +0 -1
  210. package/dist/types/src/components/FunctionsContainer.d.ts.map +0 -1
  211. package/dist/types/src/components/TriggerSettings.d.ts.map +0 -1
  212. package/src/components/TriggerSettings.tsx +0 -25
  213. /package/dist/lib/browser/{AutomationPanel-FAS6ADCW.mjs.map → AutomationPanel-IGLIQY2N.mjs.map} +0 -0
  214. /package/dist/lib/browser/{FunctionsPanel-ZX4J75UM.mjs.map → FunctionsPanel-NMA4RYJL.mjs.map} +0 -0
  215. /package/dist/lib/{node-esm/AutomationPanel-B7NAGDFA.mjs.map → browser/FunctionsRegistry-TMKAEG5E.mjs.map} +0 -0
  216. /package/dist/lib/{node-esm/FunctionsPanel-SS6GIVNU.mjs.map → browser/TriggerSettings-GW5OEM2G.mjs.map} +0 -0
  217. /package/dist/lib/browser/{chunk-BKFQBKYO.mjs.map → chunk-LHJEQVX5.mjs.map} +0 -0
  218. /package/dist/lib/node-esm/{chunk-K7GCM342.mjs.map → chunk-V3VUE2NR.mjs.map} +0 -0
  219. /package/dist/types/src/{components → containers/TriggerSettings}/TriggerSettings.d.ts +0 -0
@@ -0,0 +1,11 @@
1
+ import {
2
+ AutomationPanel,
3
+ AutomationPanel_default
4
+ } from "./chunk-O23LHDEX.mjs";
5
+ import "./chunk-BWEKRPFJ.mjs";
6
+ import "./chunk-EL64ZPPN.mjs";
7
+ export {
8
+ AutomationPanel,
9
+ AutomationPanel_default as default
10
+ };
11
+ //# sourceMappingURL=AutomationPanel-IGLIQY2N.mjs.map
@@ -0,0 +1,37 @@
1
+ import {
2
+ TriggersSettings
3
+ } from "./chunk-PUYY7B5F.mjs";
4
+ import "./chunk-ZBEMNWNY.mjs";
5
+ import "./chunk-5WMYSXEH.mjs";
6
+ import {
7
+ AutomationPanel
8
+ } from "./chunk-O23LHDEX.mjs";
9
+ import "./chunk-BWEKRPFJ.mjs";
10
+ import {
11
+ meta
12
+ } from "./chunk-EL64ZPPN.mjs";
13
+
14
+ // src/containers/AutomationSettings/AutomationSettings.tsx
15
+ import React from "react";
16
+ import { useTranslation } from "@dxos/react-ui";
17
+ import { Settings } from "@dxos/react-ui-form";
18
+ var AutomationSettings = (props) => {
19
+ const { t } = useTranslation(meta.id);
20
+ return /* @__PURE__ */ React.createElement(Settings.Root, null, /* @__PURE__ */ React.createElement(Settings.Section, {
21
+ title: t("automation verbose label", {
22
+ ns: meta.id
23
+ }),
24
+ description: t("automation description", {
25
+ ns: meta.id
26
+ })
27
+ }, /* @__PURE__ */ React.createElement(AutomationPanel, props), /* @__PURE__ */ React.createElement(TriggersSettings, {
28
+ db: props.space.db
29
+ })));
30
+ };
31
+
32
+ // src/containers/AutomationSettings/index.ts
33
+ var AutomationSettings_default = AutomationSettings;
34
+ export {
35
+ AutomationSettings_default as default
36
+ };
37
+ //# sourceMappingURL=AutomationSettings-XGJGVBDD.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/containers/AutomationSettings/AutomationSettings.tsx", "../../../src/containers/AutomationSettings/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useTranslation } from '@dxos/react-ui';\nimport { Settings } from '@dxos/react-ui-form';\n\nimport { AutomationPanel, type AutomationPanelProps } from '../../components/AutomationPanel';\nimport { meta } from '../../meta';\nimport { TriggersSettings } from '../TriggerSettings';\n\nexport const AutomationSettings = (props: AutomationPanelProps) => {\n const { t } = useTranslation(meta.id);\n return (\n <Settings.Root>\n <Settings.Section\n title={t('automation verbose label', { ns: meta.id })}\n description={t('automation description', { ns: meta.id })}\n >\n <AutomationPanel {...props} />\n <TriggersSettings db={props.space.db} />\n </Settings.Section>\n </Settings.Root>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { AutomationSettings } from './AutomationSettings';\n\nexport default AutomationSettings;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,sBAAsB;AAC/B,SAASC,gBAAgB;AAMlB,IAAMC,qBAAqB,CAACC,UAAAA;AACjC,QAAM,EAAEC,EAAC,IAAKC,eAAeC,KAAKC,EAAE;AACpC,SACE,sBAAA,cAACC,SAASC,MAAI,MACZ,sBAAA,cAACD,SAASE,SAAO;IACfC,OAAOP,EAAE,4BAA4B;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;IACnDM,aAAaT,EAAE,0BAA0B;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;KAEvD,sBAAA,cAACO,iBAAoBX,KAAAA,GACrB,sBAAA,cAACY,kBAAAA;IAAiBC,IAAIb,MAAMc,MAAMD;;AAI1C;;;ACpBA,IAAA,6BAAeE;",
6
+ "names": ["React", "useTranslation", "Settings", "AutomationSettings", "props", "t", "useTranslation", "meta", "id", "Settings", "Root", "Section", "title", "ns", "description", "AutomationPanel", "TriggersSettings", "db", "space", "AutomationSettings"]
7
+ }
@@ -0,0 +1,43 @@
1
+ import {
2
+ FunctionsPanel
3
+ } from "./chunk-75XLBFAG.mjs";
4
+ import {
5
+ FunctionsRegistry
6
+ } from "./chunk-FUVAC5EC.mjs";
7
+ import {
8
+ meta
9
+ } from "./chunk-EL64ZPPN.mjs";
10
+
11
+ // src/containers/FunctionsContainer/FunctionsContainer.tsx
12
+ import React from "react";
13
+ import { useTranslation } from "@dxos/react-ui";
14
+ import { Settings } from "@dxos/react-ui-form";
15
+ var FunctionsContainer = ({ space }) => {
16
+ const { t } = useTranslation(meta.id);
17
+ return /* @__PURE__ */ React.createElement(Settings.Root, null, /* @__PURE__ */ React.createElement(Settings.Section, {
18
+ title: t("functions verbose label", {
19
+ ns: meta.id
20
+ }),
21
+ description: t("functions description", {
22
+ ns: meta.id
23
+ })
24
+ }, /* @__PURE__ */ React.createElement(FunctionsPanel, {
25
+ space
26
+ })), /* @__PURE__ */ React.createElement(Settings.Section, {
27
+ title: t("functions registry verbose label", {
28
+ ns: meta.id
29
+ }),
30
+ description: t("functions registry description", {
31
+ ns: meta.id
32
+ })
33
+ }, /* @__PURE__ */ React.createElement(FunctionsRegistry, {
34
+ space
35
+ })));
36
+ };
37
+
38
+ // src/containers/FunctionsContainer/index.ts
39
+ var FunctionsContainer_default = FunctionsContainer;
40
+ export {
41
+ FunctionsContainer_default as default
42
+ };
43
+ //# sourceMappingURL=FunctionsContainer-R4ZMYSFJ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/containers/FunctionsContainer/FunctionsContainer.tsx", "../../../src/containers/FunctionsContainer/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Space } from '@dxos/react-client/echo';\nimport { useTranslation } from '@dxos/react-ui';\nimport { Settings } from '@dxos/react-ui-form';\n\nimport { FunctionsPanel } from '../../components/FunctionsPanel';\nimport { FunctionsRegistry } from '../../components/FunctionsRegistry';\nimport { meta } from '../../meta';\n\nexport const FunctionsContainer = ({ space }: { space: Space }) => {\n const { t } = useTranslation(meta.id);\n return (\n <Settings.Root>\n <Settings.Section\n title={t('functions verbose label', { ns: meta.id })}\n description={t('functions description', { ns: meta.id })}\n >\n <FunctionsPanel space={space} />\n </Settings.Section>\n <Settings.Section\n title={t('functions registry verbose label', { ns: meta.id })}\n description={t('functions registry description', { ns: meta.id })}\n >\n <FunctionsRegistry space={space} />\n </Settings.Section>\n </Settings.Root>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { FunctionsContainer } from './FunctionsContainer';\n\nexport default FunctionsContainer;\n"],
5
+ "mappings": ";;;;;;;;;;;AAIA,OAAOA,WAAW;AAGlB,SAASC,sBAAsB;AAC/B,SAASC,gBAAgB;AAMlB,IAAMC,qBAAqB,CAAC,EAAEC,MAAK,MAAoB;AAC5D,QAAM,EAAEC,EAAC,IAAKC,eAAeC,KAAKC,EAAE;AACpC,SACE,sBAAA,cAACC,SAASC,MAAI,MACZ,sBAAA,cAACD,SAASE,SAAO;IACfC,OAAOP,EAAE,2BAA2B;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;IAClDM,aAAaT,EAAE,yBAAyB;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;KAEtD,sBAAA,cAACO,gBAAAA;IAAeX;OAElB,sBAAA,cAACK,SAASE,SAAO;IACfC,OAAOP,EAAE,oCAAoC;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;IAC3DM,aAAaT,EAAE,kCAAkC;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;KAE/D,sBAAA,cAACQ,mBAAAA;IAAkBZ;;AAI3B;;;AC1BA,IAAA,6BAAea;",
6
+ "names": ["React", "useTranslation", "Settings", "FunctionsContainer", "space", "t", "useTranslation", "meta", "id", "Settings", "Root", "Section", "title", "ns", "description", "FunctionsPanel", "FunctionsRegistry", "FunctionsContainer"]
7
+ }
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  FunctionsPanel,
3
3
  FunctionsPanel_default
4
- } from "./chunk-BFUIVUQH.mjs";
5
- import "./chunk-PZNBEKO5.mjs";
4
+ } from "./chunk-75XLBFAG.mjs";
5
+ import "./chunk-EL64ZPPN.mjs";
6
6
  export {
7
7
  FunctionsPanel,
8
8
  FunctionsPanel_default as default
9
9
  };
10
- //# sourceMappingURL=FunctionsPanel-ZX4J75UM.mjs.map
10
+ //# sourceMappingURL=FunctionsPanel-NMA4RYJL.mjs.map
@@ -0,0 +1,10 @@
1
+ import {
2
+ FunctionsRegistry,
3
+ FunctionsRegistry_default
4
+ } from "./chunk-FUVAC5EC.mjs";
5
+ import "./chunk-EL64ZPPN.mjs";
6
+ export {
7
+ FunctionsRegistry,
8
+ FunctionsRegistry_default as default
9
+ };
10
+ //# sourceMappingURL=FunctionsRegistry-TMKAEG5E.mjs.map
@@ -0,0 +1,11 @@
1
+ import {
2
+ TriggersSettings
3
+ } from "./chunk-PUYY7B5F.mjs";
4
+ import "./chunk-ZBEMNWNY.mjs";
5
+ import "./chunk-5WMYSXEH.mjs";
6
+ import "./chunk-EL64ZPPN.mjs";
7
+ export {
8
+ TriggersSettings,
9
+ TriggersSettings as default
10
+ };
11
+ //# sourceMappingURL=TriggerSettings-GW5OEM2G.mjs.map
@@ -1,24 +1,26 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-PZNBEKO5.mjs";
3
+ } from "./chunk-EL64ZPPN.mjs";
4
4
 
5
5
  // src/capabilities/app-graph-builder/app-graph-builder.ts
6
6
  import * as Effect from "effect/Effect";
7
- import { Capability, Common } from "@dxos/app-framework";
7
+ import { Capability } from "@dxos/app-framework";
8
+ import { AppCapabilities } from "@dxos/app-toolkit";
8
9
  import { Script } from "@dxos/functions";
9
- import { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
10
+ import { COMPANION_PREFIX } from "@dxos/app-toolkit";
11
+ import { PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
10
12
  import { GraphBuilder, NodeMatcher } from "@dxos/plugin-graph";
11
13
  import { meta as spaceMeta } from "@dxos/plugin-space";
12
14
  var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
13
15
  const extensions = yield* Effect.all([
14
16
  GraphBuilder.createExtension({
15
- id: `${meta.id}/space-settings-automation`,
16
- match: NodeMatcher.whenNodeType(`${spaceMeta.id}/settings`),
17
+ id: `${meta.id}.space-settings-automation`,
18
+ match: NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`),
17
19
  connector: (node) => Effect.succeed([
18
20
  {
19
- id: `automation-${node.id}`,
20
- type: `${meta.id}/space-settings-automation`,
21
- data: `${meta.id}/space-settings-automation`,
21
+ id: `${meta.id}.automations`,
22
+ type: `${meta.id}.space-settings-automation`,
23
+ data: `${meta.id}.space-settings-automation`,
22
24
  properties: {
23
25
  label: [
24
26
  "automation panel label",
@@ -32,13 +34,13 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
32
34
  ])
33
35
  }),
34
36
  GraphBuilder.createExtension({
35
- id: `${meta.id}/space-settings-functions`,
36
- match: NodeMatcher.whenNodeType(`${spaceMeta.id}/settings`),
37
+ id: `${meta.id}.space-settings-functions`,
38
+ match: NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`),
37
39
  connector: (node) => Effect.succeed([
38
40
  {
39
- id: `functions-${node.id}`,
40
- type: `${meta.id}/space-settings-functions`,
41
- data: `${meta.id}/space-settings-functions`,
41
+ id: `${meta.id}.functions`,
42
+ type: `${meta.id}.space-settings-functions`,
43
+ data: `${meta.id}.space-settings-functions`,
42
44
  properties: {
43
45
  label: [
44
46
  "functions panel label",
@@ -52,14 +54,11 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
52
54
  ])
53
55
  }),
54
56
  GraphBuilder.createTypeExtension({
55
- id: `${meta.id}/script-companion`,
57
+ id: `${meta.id}.script-companion`,
56
58
  type: Script.Script,
57
59
  connector: (script) => Effect.succeed([
58
60
  {
59
- id: [
60
- script.id,
61
- "automation"
62
- ].join(ATTENDABLE_PATH_SEPARATOR),
61
+ id: `${COMPANION_PREFIX}automation`,
63
62
  type: PLANK_COMPANION_TYPE,
64
63
  data: "automation",
65
64
  properties: {
@@ -76,9 +75,9 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
76
75
  ])
77
76
  })
78
77
  ]);
79
- return Capability.contributes(Common.Capability.AppGraphBuilder, extensions);
78
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
80
79
  }));
81
80
  export {
82
81
  app_graph_builder_default as default
83
82
  };
84
- //# sourceMappingURL=app-graph-builder-LAQMEBMH.mjs.map
83
+ //# sourceMappingURL=app-graph-builder-74ILZP25.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Script } from '@dxos/functions';\nimport { COMPANION_PREFIX } from '@dxos/app-toolkit';\nimport { PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\nimport { meta as spaceMeta } from '@dxos/plugin-space';\n\nimport { meta } from '../../meta';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* Effect.all([\n GraphBuilder.createExtension({\n id: `${meta.id}.space-settings-automation`,\n match: NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`),\n connector: (node) =>\n Effect.succeed([\n {\n id: `${meta.id}.automations`,\n type: `${meta.id}.space-settings-automation`,\n data: `${meta.id}.space-settings-automation`,\n properties: {\n label: ['automation panel label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n },\n },\n ]),\n }),\n GraphBuilder.createExtension({\n id: `${meta.id}.space-settings-functions`,\n match: NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`),\n connector: (node) =>\n Effect.succeed([\n {\n id: `${meta.id}.functions`,\n type: `${meta.id}.space-settings-functions`,\n data: `${meta.id}.space-settings-functions`,\n properties: {\n label: ['functions panel label', { ns: meta.id }],\n icon: 'ph--function--regular',\n },\n },\n ]),\n }),\n GraphBuilder.createTypeExtension({\n id: `${meta.id}.script-companion`,\n type: Script.Script,\n connector: (script) =>\n Effect.succeed([\n {\n id: `${COMPANION_PREFIX}automation`,\n type: PLANK_COMPANION_TYPE,\n data: 'automation',\n properties: {\n label: ['script automation label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n disposition: 'hidden',\n },\n },\n ]),\n }),\n ]);\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
5
+ "mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,cAAc;AACvB,SAASC,wBAAwB;AACjC,SAASC,4BAA4B;AACrC,SAASC,cAAcC,mBAAmB;AAC1C,SAASC,QAAQC,iBAAiB;AAIlC,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAcC,WAAI;IACnCC,aAAaC,gBAAgB;MAC3BC,IAAI,GAAGC,KAAKD,EAAE;MACdE,OAAOC,YAAYC,aAAa,GAAGC,UAAUL,EAAE,WAAW;MAC1DM,WAAW,CAACC,SACHC,eAAQ;QACb;UACER,IAAI,GAAGC,KAAKD,EAAE;UACdS,MAAM,GAAGR,KAAKD,EAAE;UAChBU,MAAM,GAAGT,KAAKD,EAAE;UAChBW,YAAY;YACVC,OAAO;cAAC;cAA0B;gBAAEC,IAAIZ,KAAKD;cAAG;;YAChDc,MAAM;UACR;QACF;OACD;IACL,CAAA;IACAhB,aAAaC,gBAAgB;MAC3BC,IAAI,GAAGC,KAAKD,EAAE;MACdE,OAAOC,YAAYC,aAAa,GAAGC,UAAUL,EAAE,WAAW;MAC1DM,WAAW,CAACC,SACHC,eAAQ;QACb;UACER,IAAI,GAAGC,KAAKD,EAAE;UACdS,MAAM,GAAGR,KAAKD,EAAE;UAChBU,MAAM,GAAGT,KAAKD,EAAE;UAChBW,YAAY;YACVC,OAAO;cAAC;cAAyB;gBAAEC,IAAIZ,KAAKD;cAAG;;YAC/Cc,MAAM;UACR;QACF;OACD;IACL,CAAA;IACAhB,aAAaiB,oBAAoB;MAC/Bf,IAAI,GAAGC,KAAKD,EAAE;MACdS,MAAMO,OAAOA;MACbV,WAAW,CAACW,WACHT,eAAQ;QACb;UACER,IAAI,GAAGkB,gBAAAA;UACPT,MAAMU;UACNT,MAAM;UACNC,YAAY;YACVC,OAAO;cAAC;cAA2B;gBAAEC,IAAIZ,KAAKD;cAAG;;YACjDc,MAAM;YACNM,aAAa;UACf;QACF;OACD;IACL,CAAA;GACD;AAED,SAAO3B,WAAW4B,YAAYC,gBAAgBC,iBAAiB3B,UAAAA;AACjE,CAAA,CAAA;",
6
+ "names": ["Effect", "Capability", "AppCapabilities", "Script", "COMPANION_PREFIX", "PLANK_COMPANION_TYPE", "GraphBuilder", "NodeMatcher", "meta", "spaceMeta", "Capability", "makeModule", "fnUntraced", "extensions", "all", "GraphBuilder", "createExtension", "id", "meta", "match", "NodeMatcher", "whenNodeType", "spaceMeta", "connector", "node", "succeed", "type", "data", "properties", "label", "ns", "icon", "createTypeExtension", "Script", "script", "COMPANION_PREFIX", "PLANK_COMPANION_TYPE", "disposition", "contributes", "AppCapabilities", "AppGraphBuilder"]
7
+ }
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-PZNBEKO5.mjs";
3
+ } from "./chunk-EL64ZPPN.mjs";
4
4
 
5
5
  // src/types/capabilities.ts
6
6
  import { Capability } from "@dxos/app-framework";
7
7
  (function(AutomationCapabilities2) {
8
- AutomationCapabilities2.ComputeRuntime = Capability.make(`${meta.id}/capability/compute-runtime`);
8
+ AutomationCapabilities2.ComputeRuntime = Capability.make(`${meta.id}.capability.compute-runtime`);
9
9
  })(AutomationCapabilities || (AutomationCapabilities = {}));
10
10
  var AutomationCapabilities;
11
11
 
12
12
  // src/types/events.ts
13
13
  import { ActivationEvent } from "@dxos/app-framework";
14
14
  (function(AutomationEvents2) {
15
- AutomationEvents2.ComputeRuntimeReady = ActivationEvent.make(`${meta.id}/event/compute-runtime-ready`);
15
+ AutomationEvents2.ComputeRuntimeReady = ActivationEvent.make(`${meta.id}.event.compute-runtime-ready`);
16
16
  })(AutomationEvents || (AutomationEvents = {}));
17
17
  var AutomationEvents;
18
18
 
@@ -29,7 +29,7 @@ var TriggerTemplate = Schema.Union(Schema.Struct({
29
29
  queueDXN: Schema.Any
30
30
  }));
31
31
  (function(AutomationAction2) {
32
- class CreateTriggerFromTemplate extends Schema.TaggedClass()(`${meta.id}/action/create-trigger-from-template`, {
32
+ class CreateTriggerFromTemplate extends Schema.TaggedClass()(`${meta.id}.action.create-trigger-from-template`, {
33
33
  input: Schema.Struct({
34
34
  db: Database.Database,
35
35
  template: TriggerTemplate,
@@ -46,11 +46,11 @@ var TriggerTemplate = Schema.Union(Schema.Struct({
46
46
  }
47
47
  AutomationAction2.CreateTriggerFromTemplate = CreateTriggerFromTemplate;
48
48
  })(AutomationAction || (AutomationAction = {}));
49
- var AUTOMATION_OPERATION = `${meta.id}/operation`;
49
+ var AUTOMATION_OPERATION = `${meta.id}.operation`;
50
50
  (function(AutomationOperation2) {
51
51
  AutomationOperation2.CreateTriggerFromTemplate = Operation.make({
52
52
  meta: {
53
- key: `${AUTOMATION_OPERATION}/create-trigger-from-template`,
53
+ key: `${AUTOMATION_OPERATION}.create-trigger-from-template`,
54
54
  name: "Create Trigger From Template"
55
55
  },
56
56
  services: [
@@ -80,4 +80,4 @@ export {
80
80
  AutomationAction,
81
81
  AutomationOperation
82
82
  };
83
- //# sourceMappingURL=chunk-JOXPQ27I.mjs.map
83
+ //# sourceMappingURL=chunk-5WMYSXEH.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/capabilities.ts", "../../../src/types/events.ts", "../../../src/types/schema.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport type * as ManagedRuntime from 'effect/ManagedRuntime';\n\nimport { type AiService, type ToolExecutionService, type ToolResolverService } from '@dxos/ai';\nimport { Capability } from '@dxos/app-framework';\nimport { type Database, type Feed } from '@dxos/echo';\nimport type { CredentialsService, FunctionInvocationService, QueueService, TracingService } from '@dxos/functions';\nimport type { TriggerDispatcher, TriggerStateStore } from '@dxos/functions-runtime';\nimport type { SpaceId } from '@dxos/keys';\nimport type { Blueprint } from '@dxos/blueprints';\n\nimport { meta } from '../meta';\n\nexport namespace AutomationCapabilities {\n /**\n * Service stack for executing agents, functions, and triggers.\n */\n export type ComputeServices =\n | TriggerDispatcher\n | TriggerStateStore\n | AiService.AiService\n | Database.Service\n | Feed.Service\n | QueueService\n | CredentialsService\n | FunctionInvocationService\n | TracingService\n | Blueprint.RegistryService\n // TODO(dmaretskyi): Those should be provided at AI-chat call site.\n | ToolResolverService\n | ToolExecutionService;\n\n export type ComputeRuntime = ManagedRuntime.ManagedRuntime<AutomationCapabilities.ComputeServices, never>;\n export interface ComputeRuntimeProvider {\n getRuntime(spaceId: SpaceId): ComputeRuntime;\n }\n\n /**\n * Runtime for executing agents, functions, and triggers.\n */\n export const ComputeRuntime = Capability.make<ComputeRuntimeProvider>(`${meta.id}.capability.compute-runtime`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent } from '@dxos/app-framework';\n\nimport { meta } from '../meta';\n\nexport namespace AutomationEvents {\n export const ComputeRuntimeReady = ActivationEvent.make(`${meta.id}.event.compute-runtime-ready`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Database } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\n\nimport { meta } from '../meta';\n\nconst TriggerTemplate = Schema.Union(\n Schema.Struct({ type: Schema.Literal('timer'), cron: Schema.String }),\n Schema.Struct({ type: Schema.Literal('queue'), queueDXN: Schema.Any }),\n);\n\nexport namespace AutomationAction {\n export class CreateTriggerFromTemplate extends Schema.TaggedClass<CreateTriggerFromTemplate>()(\n `${meta.id}.action.create-trigger-from-template`,\n {\n input: Schema.Struct({\n db: Database.Database,\n template: TriggerTemplate,\n enabled: Schema.optional(Schema.Boolean),\n // TODO(wittjosiah): Improve how this lookup is done.\n scriptName: Schema.optional(Schema.String),\n input: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n output: Schema.Void,\n },\n ) {}\n}\n\nconst AUTOMATION_OPERATION = `${meta.id}.operation`;\n\nexport namespace AutomationOperation {\n export const CreateTriggerFromTemplate = Operation.make({\n meta: { key: `${AUTOMATION_OPERATION}.create-trigger-from-template`, name: 'Create Trigger From Template' },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n db: Database.Database,\n template: TriggerTemplate,\n enabled: Schema.optional(Schema.Boolean),\n scriptName: Schema.optional(Schema.String),\n input: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n output: Schema.Void,\n },\n });\n}\n"],
5
+ "mappings": ";;;;;AAOA,SAASA,kBAAkB;UASVC,yBAAAA;0BA2BFC,iBAAiBC,WAAWC,KAA6B,GAAGC,KAAKC,EAAE,6BAA6B;AAC/G,GA5BiBL,2BAAAA,yBAAAA,CAAAA,EAAAA;;;;ACZjB,SAASM,uBAAuB;UAIfC,mBAAAA;oBACFC,sBAAsBC,gBAAgBC,KAAK,GAAGC,KAAKC,EAAE,8BAA8B;AAClG,GAFiBL,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;ACJjB,YAAYM,YAAY;AAExB,SAASC,cAAAA,mBAAkB;AAC3B,SAASC,gBAAgB;AACzB,SAASC,iBAAiB;AAI1B,IAAMC,kBAAyBC,aACtBC,cAAO;EAAEC,MAAaC,eAAQ,OAAA;EAAUC,MAAaC;AAAO,CAAA,GAC5DJ,cAAO;EAAEC,MAAaC,eAAQ,OAAA;EAAUG,UAAiBC;AAAI,CAAA,CAAA;UAGrDC,mBAAAA;EACR,MAAMC,kCAAyCC,mBAAW,EAC/D,GAAGC,KAAKC,EAAE,wCACV;IACEC,OAAcZ,cAAO;MACnBa,IAAIC,SAASA;MACbC,UAAUjB;MACVkB,SAAgBC,gBAAgBC,cAAO;;MAEvCC,YAAmBF,gBAAgBb,aAAM;MACzCQ,OAAcK,gBAAgBG,cAAO;QAAEC,KAAYjB;QAAQkB,OAAchB;MAAI,CAAA,CAAA;IAC/E,CAAA;IACAiB,QAAeC;EACjB,CAAA,EAAA;EACC;oBAbUhB,4BAAAA;AAcf,GAfiBD,qBAAAA,mBAAAA,CAAAA,EAAAA;AAiBjB,IAAMkB,uBAAuB,GAAGf,KAAKC,EAAE;UAEtBe,sBAAAA;uBACFlB,4BAA4BmB,UAAUC,KAAK;IACtDlB,MAAM;MAAEW,KAAK,GAAGI,oBAAAA;MAAqDI,MAAM;IAA+B;IAC1GC,UAAU;MAACC,YAAWC;;IACtBC,QAAQ;MACNrB,OAAcZ,cAAO;QACnBa,IAAIC,SAASA;QACbC,UAAUjB;QACVkB,SAAgBC,gBAAgBC,cAAO;QACvCC,YAAmBF,gBAAgBb,aAAM;QACzCQ,OAAcK,gBAAgBG,cAAO;UAAEC,KAAYjB;UAAQkB,OAAchB;QAAI,CAAA,CAAA;MAC/E,CAAA;MACAiB,QAAeC;IACjB;EACF,CAAA;AACF,GAfiBE,wBAAAA,sBAAAA,CAAAA,EAAAA;;;",
6
+ "names": ["Capability", "AutomationCapabilities", "ComputeRuntime", "Capability", "make", "meta", "id", "ActivationEvent", "AutomationEvents", "ComputeRuntimeReady", "ActivationEvent", "make", "meta", "id", "Schema", "Capability", "Database", "Operation", "TriggerTemplate", "Union", "Struct", "type", "Literal", "cron", "String", "queueDXN", "Any", "AutomationAction", "CreateTriggerFromTemplate", "TaggedClass", "meta", "id", "input", "db", "Database", "template", "enabled", "optional", "Boolean", "scriptName", "Record", "key", "value", "output", "Void", "AUTOMATION_OPERATION", "AutomationOperation", "Operation", "make", "name", "services", "Capability", "Service", "schema"]
7
+ }
@@ -1,21 +1,19 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-PZNBEKO5.mjs";
3
+ } from "./chunk-EL64ZPPN.mjs";
4
4
 
5
5
  // src/components/FunctionsPanel/FunctionsPanel.tsx
6
6
  import * as Schema from "effect/Schema";
7
7
  import React, { useCallback, useMemo } from "react";
8
- import { Common } from "@dxos/app-framework";
9
- import { useOperationInvoker } from "@dxos/app-framework/react";
10
- import { Obj } from "@dxos/echo";
8
+ import { useOperationInvoker } from "@dxos/app-framework/ui";
9
+ import { LayoutOperation, getObjectPathFromObject } from "@dxos/app-toolkit";
11
10
  import { Function, Script } from "@dxos/functions";
12
11
  import { SpaceOperation } from "@dxos/plugin-space/types";
13
12
  import { Filter, useQuery } from "@dxos/react-client/echo";
14
13
  import { Button, IconButton, useTranslation } from "@dxos/react-ui";
15
- import { controlItemClasses } from "@dxos/react-ui-form";
14
+ import { Settings } from "@dxos/react-ui-form";
16
15
  import { List } from "@dxos/react-ui-list";
17
16
  import { ghostHover, mx } from "@dxos/ui-theme";
18
- var grid = "grid grid-cols-[1fr_auto] min-bs-[2.5rem]";
19
17
  var FunctionsPanel = ({ space }) => {
20
18
  const { t } = useTranslation(meta.id);
21
19
  const functions = useQuery(space.db, Filter.type(Function.Function));
@@ -43,9 +41,9 @@ var FunctionsPanel = ({ space }) => {
43
41
  const handleGoToScript = useCallback((func) => {
44
42
  const script = functionToScriptMap[func.id];
45
43
  if (script) {
46
- void invokePromise(Common.LayoutOperation.Open, {
44
+ void invokePromise(LayoutOperation.Open, {
47
45
  subject: [
48
- Obj.getDXN(script).toString()
46
+ getObjectPathFromObject(script)
49
47
  ]
50
48
  });
51
49
  }
@@ -60,20 +58,17 @@ var FunctionsPanel = ({ space }) => {
60
58
  }), [
61
59
  invokePromise
62
60
  ]);
63
- return /* @__PURE__ */ React.createElement("div", {
64
- role: "none",
65
- className: mx(controlItemClasses)
66
- }, functions.length > 0 && /* @__PURE__ */ React.createElement(List.Root, {
61
+ return /* @__PURE__ */ React.createElement(Settings.Container, null, functions.length > 0 && /* @__PURE__ */ React.createElement(List.Root, {
67
62
  items: functions,
68
63
  isItem: Schema.is(Function.Function),
69
64
  getId: (func) => func.id
70
65
  }, ({ items }) => /* @__PURE__ */ React.createElement("div", {
71
66
  role: "list",
72
- className: "flex flex-col is-full"
67
+ className: "flex flex-col w-full"
73
68
  }, items?.map((func) => /* @__PURE__ */ React.createElement(List.Item, {
74
69
  key: func.id,
75
70
  item: func,
76
- classNames: mx(grid, ghostHover, "items-center", "pli-2", "min-bs-[3rem]")
71
+ classNames: mx("grid grid-cols-[1fr_auto] min-h-[2.5rem] min-h-[3rem] px-2 items-center", ghostHover)
77
72
  }, /* @__PURE__ */ React.createElement("div", {
78
73
  className: "flex flex-col truncate"
79
74
  }, /* @__PURE__ */ React.createElement(List.ItemTitle, {
@@ -88,7 +83,7 @@ var FunctionsPanel = ({ space }) => {
88
83
  label: t("delete function button label"),
89
84
  onClick: () => handleDelete(func)
90
85
  }))))), functions.length === 0 && /* @__PURE__ */ React.createElement("div", {
91
- className: "text-center plb-4 text-gray-500"
86
+ className: "text-center py-4 text-description"
92
87
  }, t("no functions found")));
93
88
  };
94
89
 
@@ -99,4 +94,4 @@ export {
99
94
  FunctionsPanel,
100
95
  FunctionsPanel_default
101
96
  };
102
- //# sourceMappingURL=chunk-BFUIVUQH.mjs.map
97
+ //# sourceMappingURL=chunk-75XLBFAG.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/FunctionsPanel/FunctionsPanel.tsx", "../../../src/components/FunctionsPanel/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport React, { useCallback, useMemo } from 'react';\n\nimport { useOperationInvoker } from '@dxos/app-framework/ui';\nimport { LayoutOperation, getObjectPathFromObject } from '@dxos/app-toolkit';\nimport { Obj } from '@dxos/echo';\nimport { Function, Script } from '@dxos/functions';\nimport { SpaceOperation } from '@dxos/plugin-space/types';\nimport { Filter, type Space, useQuery } from '@dxos/react-client/echo';\nimport { Button, IconButton, useTranslation } from '@dxos/react-ui';\nimport { Settings } from '@dxos/react-ui-form';\nimport { List } from '@dxos/react-ui-list';\nimport { ghostHover, mx } from '@dxos/ui-theme';\n\nimport { meta } from '../../meta';\n\nexport type FunctionsPanelProps = {\n space: Space;\n};\n\nexport const FunctionsPanel = ({ space }: FunctionsPanelProps) => {\n const { t } = useTranslation(meta.id);\n const functions = useQuery(space.db, Filter.type(Function.Function));\n const scripts = useQuery(space.db, Filter.type(Script.Script));\n const { invokePromise } = useOperationInvoker();\n\n const functionToScriptMap = useMemo(\n () =>\n functions.reduce(\n (map, func) => {\n const scriptId = func.source?.target?.id;\n if (scriptId) {\n const script = scripts.find((s) => s.id === scriptId);\n if (script) {\n map[func.id] = script;\n }\n }\n return map;\n },\n {} as Record<string, Script.Script>,\n ),\n [functions, scripts],\n );\n\n const getScriptName = useCallback(\n (func: Function.Function) => {\n const script = functionToScriptMap[func.id];\n return script?.name;\n },\n [functionToScriptMap],\n );\n\n const handleGoToScript = useCallback(\n (func: Function.Function) => {\n const script = functionToScriptMap[func.id];\n if (script) {\n void invokePromise(LayoutOperation.Open, { subject: [getObjectPathFromObject(script)] });\n }\n },\n [functionToScriptMap, invokePromise],\n );\n\n const handleDelete = useCallback(\n (func: Function.Function) => invokePromise(SpaceOperation.RemoveObjects, { objects: [func] }),\n [invokePromise],\n );\n\n return (\n <Settings.Container>\n {functions.length > 0 && (\n <List.Root<Function.Function> items={functions} isItem={Schema.is(Function.Function)} getId={(func) => func.id}>\n {({ items }) => (\n <div role='list' className='flex flex-col w-full'>\n {items?.map((func) => (\n <List.Item<Function.Function>\n key={func.id}\n item={func}\n classNames={mx('grid grid-cols-[1fr_auto] min-h-[2.5rem] min-h-[3rem] px-2 items-center', ghostHover)}\n >\n <div className='flex flex-col truncate'>\n <List.ItemTitle classNames='truncate'>{func.name}</List.ItemTitle>\n {getScriptName(func) && (\n <div className='text-xs text-description truncate'>{getScriptName(func)}</div>\n )}\n </div>\n {functionToScriptMap[func.id] && (\n <Button onClick={() => handleGoToScript(func)}>{t('go to function source button label')}</Button>\n )}\n <IconButton\n iconOnly\n icon='ph--trash--regular'\n label={t('delete function button label')}\n onClick={() => handleDelete(func)}\n />\n </List.Item>\n ))}\n </div>\n )}\n </List.Root>\n )}\n\n {functions.length === 0 && <div className='text-center py-4 text-description'>{t('no functions found')}</div>}\n </Settings.Container>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { FunctionsPanel } from './FunctionsPanel';\n\nexport * from './FunctionsPanel';\nexport default FunctionsPanel;\n"],
5
+ "mappings": ";;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,SAASC,aAAaC,eAAe;AAE5C,SAASC,2BAA2B;AACpC,SAASC,iBAAiBC,+BAA+B;AAEzD,SAASC,UAAUC,cAAc;AACjC,SAASC,sBAAsB;AAC/B,SAASC,QAAoBC,gBAAgB;AAC7C,SAASC,QAAQC,YAAYC,sBAAsB;AACnD,SAASC,gBAAgB;AACzB,SAASC,YAAY;AACrB,SAASC,YAAYC,UAAU;AAQxB,IAAMC,iBAAiB,CAAC,EAAEC,MAAK,MAAuB;AAC3D,QAAM,EAAEC,EAAC,IAAKC,eAAeC,KAAKC,EAAE;AACpC,QAAMC,YAAYC,SAASN,MAAMO,IAAIC,OAAOC,KAAKC,SAASA,QAAQ,CAAA;AAClE,QAAMC,UAAUL,SAASN,MAAMO,IAAIC,OAAOC,KAAKG,OAAOA,MAAM,CAAA;AAC5D,QAAM,EAAEC,cAAa,IAAKC,oBAAAA;AAE1B,QAAMC,sBAAsBC,QAC1B,MACEX,UAAUY,OACR,CAACC,KAAKC,SAAAA;AACJ,UAAMC,WAAWD,KAAKE,QAAQC,QAAQlB;AACtC,QAAIgB,UAAU;AACZ,YAAMG,SAASZ,QAAQa,KAAK,CAACC,MAAMA,EAAErB,OAAOgB,QAAAA;AAC5C,UAAIG,QAAQ;AACVL,YAAIC,KAAKf,EAAE,IAAImB;MACjB;IACF;AACA,WAAOL;EACT,GACA,CAAC,CAAA,GAEL;IAACb;IAAWM;GAAQ;AAGtB,QAAMe,gBAAgBC,YACpB,CAACR,SAAAA;AACC,UAAMI,SAASR,oBAAoBI,KAAKf,EAAE;AAC1C,WAAOmB,QAAQK;EACjB,GACA;IAACb;GAAoB;AAGvB,QAAMc,mBAAmBF,YACvB,CAACR,SAAAA;AACC,UAAMI,SAASR,oBAAoBI,KAAKf,EAAE;AAC1C,QAAImB,QAAQ;AACV,WAAKV,cAAciB,gBAAgBC,MAAM;QAAEC,SAAS;UAACC,wBAAwBV,MAAAA;;MAAS,CAAA;IACxF;EACF,GACA;IAACR;IAAqBF;GAAc;AAGtC,QAAMqB,eAAeP,YACnB,CAACR,SAA4BN,cAAcsB,eAAeC,eAAe;IAAEC,SAAS;MAAClB;;EAAM,CAAA,GAC3F;IAACN;GAAc;AAGjB,SACE,sBAAA,cAACyB,SAASC,WAAS,MAChBlC,UAAUmC,SAAS,KAClB,sBAAA,cAACC,KAAKC,MAAI;IAAoBC,OAAOtC;IAAWuC,QAAeC,UAAGnC,SAASA,QAAQ;IAAGoC,OAAO,CAAC3B,SAASA,KAAKf;KACzG,CAAC,EAAEuC,MAAK,MACP,sBAAA,cAACI,OAAAA;IAAIC,MAAK;IAAOC,WAAU;KACxBN,OAAOzB,IAAI,CAACC,SACX,sBAAA,cAACsB,KAAKS,MAAI;IACRC,KAAKhC,KAAKf;IACVgD,MAAMjC;IACNkC,YAAYC,GAAG,2EAA2EC,UAAAA;KAE1F,sBAAA,cAACR,OAAAA;IAAIE,WAAU;KACb,sBAAA,cAACR,KAAKe,WAAS;IAACH,YAAW;KAAYlC,KAAKS,IAAI,GAC/CF,cAAcP,IAAAA,KACb,sBAAA,cAAC4B,OAAAA;IAAIE,WAAU;KAAqCvB,cAAcP,IAAAA,CAAAA,CAAAA,GAGrEJ,oBAAoBI,KAAKf,EAAE,KAC1B,sBAAA,cAACqD,QAAAA;IAAOC,SAAS,MAAM7B,iBAAiBV,IAAAA;KAAQlB,EAAE,oCAAA,CAAA,GAEpD,sBAAA,cAAC0D,YAAAA;IACCC,UAAAA;IACAC,MAAK;IACLC,OAAO7D,EAAE,8BAAA;IACTyD,SAAS,MAAMxB,aAAaf,IAAAA;UASzCd,UAAUmC,WAAW,KAAK,sBAAA,cAACO,OAAAA;IAAIE,WAAU;KAAqChD,EAAE,oBAAA,CAAA,CAAA;AAGvF;;;ACrGA,IAAA,yBAAe8D;",
6
+ "names": ["Schema", "React", "useCallback", "useMemo", "useOperationInvoker", "LayoutOperation", "getObjectPathFromObject", "Function", "Script", "SpaceOperation", "Filter", "useQuery", "Button", "IconButton", "useTranslation", "Settings", "List", "ghostHover", "mx", "FunctionsPanel", "space", "t", "useTranslation", "meta", "id", "functions", "useQuery", "db", "Filter", "type", "Function", "scripts", "Script", "invokePromise", "useOperationInvoker", "functionToScriptMap", "useMemo", "reduce", "map", "func", "scriptId", "source", "target", "script", "find", "s", "getScriptName", "useCallback", "name", "handleGoToScript", "LayoutOperation", "Open", "subject", "getObjectPathFromObject", "handleDelete", "SpaceOperation", "RemoveObjects", "objects", "Settings", "Container", "length", "List", "Root", "items", "isItem", "is", "getId", "div", "role", "className", "Item", "key", "item", "classNames", "mx", "ghostHover", "ItemTitle", "Button", "onClick", "IconButton", "iconOnly", "icon", "label", "FunctionsPanel"]
7
+ }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-PZNBEKO5.mjs";
3
+ } from "./chunk-EL64ZPPN.mjs";
4
4
 
5
5
  // src/components/TriggerEditor/TriggerEditor.tsx
6
6
  import React3, { useCallback as useCallback3, useMemo as useMemo3 } from "react";
7
7
  import { ComputeGraph } from "@dxos/conductor";
8
- import { DXN } from "@dxos/echo";
8
+ import { DXN, Entity, Feed, Obj as Obj2 } from "@dxos/echo";
9
9
  import { Function, Script, Trigger as Trigger2 } from "@dxos/functions";
10
10
  import { Filter as Filter2, Ref as Ref2, useQuery } from "@dxos/react-client/echo";
11
11
  import { Input } from "@dxos/react-ui";
@@ -14,7 +14,7 @@ import { Form as Form2, FormFieldLabel, SelectField as SelectField2, omitId } fr
14
14
 
15
15
  // src/components/TriggerEditor/FunctionInputEditor.tsx
16
16
  import React, { useCallback, useMemo } from "react";
17
- import { Ref, Type } from "@dxos/echo";
17
+ import { JsonSchema, Obj, Ref } from "@dxos/echo";
18
18
  import { useOnTransition, useTranslation } from "@dxos/react-ui";
19
19
  import { Form, useFormValues } from "@dxos/react-ui-form";
20
20
  var FunctionInputEditor = ({ type, functions, db, getValue, onValueChange }) => {
@@ -48,15 +48,22 @@ var FunctionInputEditor = ({ type, functions, db, getValue, onValueChange }) =>
48
48
  const inputSchema = useMemo(() => selectedFunction?.inputSchema, [
49
49
  selectedFunction
50
50
  ]);
51
- const effectSchema = useMemo(() => inputSchema ? Type.toEffectSchema(inputSchema) : void 0, [
51
+ const effectSchema = useMemo(() => inputSchema ? JsonSchema.toEffectSchema(inputSchema) : void 0, [
52
52
  inputSchema
53
53
  ]);
54
54
  const propertyCount = inputSchema?.properties ? Object.keys(inputSchema.properties).length : 0;
55
- const values = useMemo(() => getValue() ?? {}, [
55
+ const defaultValues = useMemo(() => {
56
+ const raw = getValue() ?? {};
57
+ return Obj.isObject(raw) ? {
58
+ ...Obj.getSnapshot(raw)
59
+ } : {
60
+ ...raw
61
+ };
62
+ }, [
56
63
  getValue
57
64
  ]);
58
- const handleValuesChanged = useCallback((values2) => {
59
- onValueChange(type, values2);
65
+ const handleValuesChanged = useCallback((values) => {
66
+ onValueChange(type, values);
60
67
  }, [
61
68
  type,
62
69
  onValueChange
@@ -68,8 +75,9 @@ var FunctionInputEditor = ({ type, functions, db, getValue, onValueChange }) =>
68
75
  label: t("function parameters label"),
69
76
  asChild: true
70
77
  }), /* @__PURE__ */ React.createElement(Form.Root, {
78
+ key: selectedFunction.id,
71
79
  schema: effectSchema,
72
- values,
80
+ defaultValues,
73
81
  db,
74
82
  onValuesChanged: handleValuesChanged
75
83
  }, /* @__PURE__ */ React.createElement(Form.FieldSet, null)));
@@ -105,7 +113,7 @@ var SpecSelector = (props) => {
105
113
  case "queue":
106
114
  return {
107
115
  kind: "queue",
108
- queue: "dxn:"
116
+ queue: "dxn:queue:default"
109
117
  };
110
118
  case "email":
111
119
  return {
@@ -150,18 +158,34 @@ var TriggerEditor = ({ db, types, tags, readonlySpec, trigger, ...formProps }) =
150
158
  tags,
151
159
  readonlySpec
152
160
  });
161
+ const handleValuesChanged = useCallback3((newValues) => {
162
+ Obj2.change(trigger, (t) => {
163
+ Object.assign(t, newValues);
164
+ });
165
+ }, [
166
+ trigger
167
+ ]);
168
+ const triggerSchema = useMemo3(() => omitId(Trigger2.Trigger), []);
169
+ const defaultValues = useMemo3(() => {
170
+ const { id: _, ...values } = trigger;
171
+ return values;
172
+ }, [
173
+ trigger
174
+ ]);
153
175
  return /* @__PURE__ */ React3.createElement(Form2.Root, {
154
176
  ...formProps,
155
- schema: omitId(Trigger2.Trigger),
156
- values: trigger,
157
177
  db,
158
- fieldMap
178
+ schema: triggerSchema,
179
+ defaultValues,
180
+ fieldMap,
181
+ onValuesChanged: handleValuesChanged
159
182
  }, /* @__PURE__ */ React3.createElement(Form2.Viewport, null, /* @__PURE__ */ React3.createElement(Form2.Content, null, /* @__PURE__ */ React3.createElement(Form2.FieldSet, null), /* @__PURE__ */ React3.createElement(Form2.Actions, null))));
160
183
  };
161
184
  var useCustomInputs = ({ db, readonlySpec, types, tags }) => {
162
185
  const functions = useQuery(db, Filter2.type(Function.Function));
163
186
  const workflows = useQuery(db, Filter2.type(ComputeGraph));
164
187
  const scripts = useQuery(db, Filter2.type(Script.Script));
188
+ const feeds = useQuery(db, Filter2.type(Feed.Feed));
165
189
  return useMemo3(() => ({
166
190
  // Function selector.
167
191
  ["function"]: (props) => {
@@ -192,13 +216,18 @@ var useCustomInputs = ({ db, readonlySpec, types, tags }) => {
192
216
  });
193
217
  },
194
218
  // Spec selector.
195
- ["spec.kind"]: (props) => /* @__PURE__ */ React3.createElement(SpecSelector, {
219
+ "spec.kind": (props) => /* @__PURE__ */ React3.createElement(SpecSelector, {
196
220
  ...props,
197
221
  readonly: readonlySpec
198
222
  }),
223
+ // Queue feed selector with parent labels.
224
+ "spec.queue": (props) => /* @__PURE__ */ React3.createElement(SelectField2, {
225
+ ...props,
226
+ options: getFeedQueueOptions(feeds)
227
+ }),
199
228
  // TODO(wittjosiah): Copied from ViewEditor.
200
229
  // Query input editor.
201
- ["spec.query"]: (props) => {
230
+ "spec.query": (props) => {
202
231
  const handleChange = useCallback3((query) => props.onValueChange(props.type, {
203
232
  ast: query.ast
204
233
  }), [
@@ -216,7 +245,7 @@ var useCustomInputs = ({ db, readonlySpec, types, tags }) => {
216
245
  }));
217
246
  },
218
247
  // Function input editor.
219
- ["input"]: (props) => /* @__PURE__ */ React3.createElement(FunctionInputEditor, {
248
+ input: (props) => /* @__PURE__ */ React3.createElement(FunctionInputEditor, {
220
249
  ...props,
221
250
  functions,
222
251
  db
@@ -225,6 +254,7 @@ var useCustomInputs = ({ db, readonlySpec, types, tags }) => {
225
254
  workflows,
226
255
  scripts,
227
256
  functions,
257
+ feeds,
228
258
  readonlySpec
229
259
  ]);
230
260
  };
@@ -241,8 +271,24 @@ var getFunctionOptions = (scripts, functions) => {
241
271
  value: `dxn:echo:@:${fn.id}`
242
272
  }));
243
273
  };
274
+ var getFeedQueueOptions = (feeds) => {
275
+ return feeds.flatMap((feed) => {
276
+ const queueDxn = Feed.getQueueDxn(feed);
277
+ if (!queueDxn) {
278
+ return [];
279
+ }
280
+ const parent = Obj2.getParent(feed);
281
+ const label = parent ? Entity.getLabel(parent) : Entity.getLabel(feed);
282
+ return [
283
+ {
284
+ label: label ?? feed.id,
285
+ value: queueDxn.toString()
286
+ }
287
+ ];
288
+ });
289
+ };
244
290
 
245
291
  export {
246
292
  TriggerEditor
247
293
  };
248
- //# sourceMappingURL=chunk-QW3EM35H.mjs.map
294
+ //# sourceMappingURL=chunk-BWEKRPFJ.mjs.map