@dxos/plugin-automation 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

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 (192) hide show
  1. package/dist/lib/browser/{chunk-WQLEMRPU.mjs → chunk-CHUTFU3D.mjs} +1 -1
  2. package/dist/lib/browser/chunk-CHUTFU3D.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-POEIL4RN.mjs → chunk-RE64VLSV.mjs} +3 -3
  4. package/dist/lib/browser/{chunk-POEIL4RN.mjs.map → chunk-RE64VLSV.mjs.map} +3 -3
  5. package/dist/lib/browser/{create-trigger-from-template-JZ62EZTB.mjs → create-trigger-from-template-JLBSJRVB.mjs} +9 -16
  6. package/dist/lib/browser/create-trigger-from-template-JLBSJRVB.mjs.map +7 -0
  7. package/dist/lib/browser/hooks/index.mjs +61 -17
  8. package/dist/lib/browser/hooks/index.mjs.map +3 -3
  9. package/dist/lib/browser/index.mjs +6 -71
  10. package/dist/lib/browser/index.mjs.map +4 -4
  11. package/dist/lib/browser/meta.json +1 -1
  12. package/dist/lib/browser/operations/index.mjs +4 -4
  13. package/dist/lib/browser/operations/index.mjs.map +3 -3
  14. package/dist/lib/browser/translations.mjs +47 -0
  15. package/dist/lib/browser/translations.mjs.map +7 -0
  16. package/dist/lib/browser/types/index.mjs +1 -1
  17. package/dist/lib/node-esm/{chunk-SP3P4OUI.mjs → chunk-HHIHREME.mjs} +3 -3
  18. package/dist/lib/node-esm/{chunk-SP3P4OUI.mjs.map → chunk-HHIHREME.mjs.map} +3 -3
  19. package/dist/lib/node-esm/{chunk-JWZAVQLF.mjs → chunk-NWQMBY32.mjs} +1 -1
  20. package/dist/lib/node-esm/chunk-NWQMBY32.mjs.map +7 -0
  21. package/dist/lib/node-esm/{create-trigger-from-template-224Z7WJI.mjs → create-trigger-from-template-FUQ3LUIF.mjs} +9 -16
  22. package/dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs.map +7 -0
  23. package/dist/lib/node-esm/hooks/index.mjs +61 -17
  24. package/dist/lib/node-esm/hooks/index.mjs.map +3 -3
  25. package/dist/lib/node-esm/index.mjs +6 -71
  26. package/dist/lib/node-esm/index.mjs.map +4 -4
  27. package/dist/lib/node-esm/meta.json +1 -1
  28. package/dist/lib/node-esm/operations/index.mjs +4 -4
  29. package/dist/lib/node-esm/operations/index.mjs.map +3 -3
  30. package/dist/lib/node-esm/translations.mjs +48 -0
  31. package/dist/lib/node-esm/translations.mjs.map +7 -0
  32. package/dist/lib/node-esm/types/index.mjs +1 -1
  33. package/dist/types/src/AutomationPlugin.d.ts +1 -0
  34. package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
  35. package/dist/types/src/{cli/plugin.d.ts → AutomationPlugin.node.d.ts} +2 -1
  36. package/dist/types/src/AutomationPlugin.node.d.ts.map +1 -0
  37. package/dist/types/src/AutomationPlugin.test.d.ts +2 -0
  38. package/dist/types/src/AutomationPlugin.test.d.ts.map +1 -0
  39. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/compute-runtime.d.ts +8 -0
  41. package/dist/types/src/capabilities/compute-runtime.d.ts.map +1 -1
  42. package/dist/types/src/capabilities/index.d.ts +1 -1
  43. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  44. package/dist/types/src/capabilities/node.d.ts +3 -0
  45. package/dist/types/src/capabilities/node.d.ts.map +1 -1
  46. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  47. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  48. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  49. package/dist/types/src/commands/index.d.ts.map +1 -0
  50. package/dist/types/src/{cli/commands → commands}/trigger/create/index.d.ts +6 -6
  51. package/dist/types/src/commands/trigger/create/index.d.ts.map +1 -0
  52. package/dist/types/src/{cli/commands → commands}/trigger/create/queue.d.ts +1 -1
  53. package/dist/types/src/commands/trigger/create/queue.d.ts.map +1 -0
  54. package/dist/types/src/{cli/commands → commands}/trigger/create/subscription.d.ts +1 -1
  55. package/dist/types/src/commands/trigger/create/subscription.d.ts.map +1 -0
  56. package/dist/types/src/{cli/commands → commands}/trigger/create/timer.d.ts +1 -1
  57. package/dist/types/src/commands/trigger/create/timer.d.ts.map +1 -0
  58. package/dist/types/src/{cli/commands → commands}/trigger/index.d.ts +7 -7
  59. package/dist/types/src/commands/trigger/index.d.ts.map +1 -0
  60. package/dist/types/src/commands/trigger/list.d.ts.map +1 -0
  61. package/dist/types/src/commands/trigger/options.d.ts.map +1 -0
  62. package/dist/types/src/{cli/commands → commands}/trigger/remove.d.ts +1 -1
  63. package/dist/types/src/commands/trigger/remove.d.ts.map +1 -0
  64. package/dist/types/src/{cli/commands → commands}/trigger/update/index.d.ts +5 -5
  65. package/dist/types/src/commands/trigger/update/index.d.ts.map +1 -0
  66. package/dist/types/src/commands/trigger/update/queue.d.ts.map +1 -0
  67. package/dist/types/src/commands/trigger/update/subscription.d.ts.map +1 -0
  68. package/dist/types/src/commands/trigger/update/timer.d.ts.map +1 -0
  69. package/dist/types/src/{cli/commands → commands}/trigger/util.d.ts +2 -2
  70. package/dist/types/src/commands/trigger/util.d.ts.map +1 -0
  71. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +1 -1
  72. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
  73. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +32 -29
  74. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
  75. package/dist/types/src/components/AutomationPanel/index.d.ts.map +1 -1
  76. package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -1
  77. package/dist/types/src/components/FunctionsPanel/index.d.ts.map +1 -1
  78. package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts.map +1 -1
  79. package/dist/types/src/components/FunctionsRegistry/index.d.ts.map +1 -1
  80. package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts +5 -5
  81. package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts.map +1 -1
  82. package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts +4 -4
  83. package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +1 -1
  84. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +1 -1
  85. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
  86. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +95 -91
  87. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
  88. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts +3 -1
  89. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts.map +1 -1
  90. package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts +2 -4
  91. package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts.map +1 -1
  92. package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts +3 -3
  93. package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts.map +1 -1
  94. package/dist/types/src/hooks/useComputeRuntime.d.ts +1 -0
  95. package/dist/types/src/hooks/useComputeRuntime.d.ts.map +1 -1
  96. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +1 -1
  97. package/dist/types/src/hooks/useComputeRuntimeService.d.ts +14 -2
  98. package/dist/types/src/hooks/useComputeRuntimeService.d.ts.map +1 -1
  99. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +1 -1
  100. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -1
  101. package/dist/types/src/index.d.ts +2 -1
  102. package/dist/types/src/index.d.ts.map +1 -1
  103. package/dist/types/src/operations/create-trigger-from-template.d.ts +1 -1
  104. package/dist/types/src/operations/create-trigger-from-template.d.ts.map +1 -1
  105. package/dist/types/src/operations/definitions.d.ts +4 -4
  106. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  107. package/dist/types/src/operations/index.d.ts +1 -1
  108. package/dist/types/src/operations/index.d.ts.map +1 -1
  109. package/dist/types/src/testing/test-functions.d.ts +77 -77
  110. package/dist/types/src/translations.d.ts +32 -30
  111. package/dist/types/src/translations.d.ts.map +1 -1
  112. package/dist/types/src/types/capabilities.d.ts +6 -7
  113. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  114. package/dist/types/src/types/events.d.ts.map +1 -1
  115. package/dist/types/src/types/schema.d.ts.map +1 -1
  116. package/dist/types/tsconfig.tsbuildinfo +1 -1
  117. package/package.json +60 -60
  118. package/src/{cli/plugin.ts → AutomationPlugin.node.ts} +8 -2
  119. package/src/AutomationPlugin.test.ts +27 -0
  120. package/src/AutomationPlugin.tsx +6 -6
  121. package/src/capabilities/app-graph-builder.ts +10 -6
  122. package/src/capabilities/compute-runtime.ts +216 -139
  123. package/src/capabilities/index.ts +1 -1
  124. package/src/capabilities/node.ts +6 -0
  125. package/src/capabilities/operation-handler.ts +1 -1
  126. package/src/capabilities/react-surface.tsx +6 -6
  127. package/src/{cli/commands → commands}/trigger/create/queue.ts +2 -6
  128. package/src/{cli/commands → commands}/trigger/create/subscription.ts +6 -10
  129. package/src/{cli/commands → commands}/trigger/create/timer.ts +2 -6
  130. package/src/{cli/commands → commands}/trigger/list.ts +5 -3
  131. package/src/{cli/commands → commands}/trigger/remove.ts +1 -1
  132. package/src/{cli/commands → commands}/trigger/update/queue.ts +5 -6
  133. package/src/{cli/commands → commands}/trigger/update/subscription.ts +5 -6
  134. package/src/{cli/commands → commands}/trigger/update/timer.ts +5 -6
  135. package/src/{cli/commands → commands}/trigger/util.ts +5 -4
  136. package/src/components/AutomationPanel/AutomationPanel.stories.tsx +2 -3
  137. package/src/components/AutomationPanel/AutomationPanel.tsx +9 -6
  138. package/src/components/FunctionsPanel/FunctionsPanel.tsx +1 -2
  139. package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +1 -1
  140. package/src/components/TriggerEditor/FunctionInputEditor.tsx +1 -1
  141. package/src/components/TriggerEditor/SpecSelector.tsx +6 -11
  142. package/src/components/TriggerEditor/TriggerEditor.stories.tsx +4 -5
  143. package/src/components/TriggerEditor/TriggerEditor.tsx +2 -3
  144. package/src/containers/AutomationSettings/AutomationSettings.tsx +5 -2
  145. package/src/containers/FunctionsContainer/FunctionsContainer.tsx +3 -4
  146. package/src/containers/TriggerSettings/TriggerSettings.tsx +29 -7
  147. package/src/hooks/useComputeRuntime.ts +17 -3
  148. package/src/hooks/useComputeRuntimeService.ts +49 -9
  149. package/src/hooks/useTriggerRuntimeControls.ts +6 -3
  150. package/src/index.ts +5 -1
  151. package/src/operations/create-trigger-from-template.ts +6 -10
  152. package/src/operations/definitions.ts +1 -1
  153. package/src/operations/index.ts +1 -1
  154. package/src/translations.ts +8 -6
  155. package/src/types/capabilities.ts +9 -18
  156. package/dist/lib/browser/chunk-WQLEMRPU.mjs.map +0 -7
  157. package/dist/lib/browser/cli/index.mjs +0 -1122
  158. package/dist/lib/browser/cli/index.mjs.map +0 -7
  159. package/dist/lib/browser/create-trigger-from-template-JZ62EZTB.mjs.map +0 -7
  160. package/dist/lib/node-esm/chunk-JWZAVQLF.mjs.map +0 -7
  161. package/dist/lib/node-esm/cli/index.mjs +0 -1123
  162. package/dist/lib/node-esm/cli/index.mjs.map +0 -7
  163. package/dist/lib/node-esm/create-trigger-from-template-224Z7WJI.mjs.map +0 -7
  164. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  165. package/dist/types/src/cli/commands/trigger/create/index.d.ts.map +0 -1
  166. package/dist/types/src/cli/commands/trigger/create/queue.d.ts.map +0 -1
  167. package/dist/types/src/cli/commands/trigger/create/subscription.d.ts.map +0 -1
  168. package/dist/types/src/cli/commands/trigger/create/timer.d.ts.map +0 -1
  169. package/dist/types/src/cli/commands/trigger/index.d.ts.map +0 -1
  170. package/dist/types/src/cli/commands/trigger/list.d.ts.map +0 -1
  171. package/dist/types/src/cli/commands/trigger/options.d.ts.map +0 -1
  172. package/dist/types/src/cli/commands/trigger/remove.d.ts.map +0 -1
  173. package/dist/types/src/cli/commands/trigger/update/index.d.ts.map +0 -1
  174. package/dist/types/src/cli/commands/trigger/update/queue.d.ts.map +0 -1
  175. package/dist/types/src/cli/commands/trigger/update/subscription.d.ts.map +0 -1
  176. package/dist/types/src/cli/commands/trigger/update/timer.d.ts.map +0 -1
  177. package/dist/types/src/cli/commands/trigger/util.d.ts.map +0 -1
  178. package/dist/types/src/cli/index.d.ts +0 -2
  179. package/dist/types/src/cli/index.d.ts.map +0 -1
  180. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  181. package/src/cli/index.ts +0 -5
  182. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  183. /package/dist/types/src/{cli/commands → commands}/trigger/list.d.ts +0 -0
  184. /package/dist/types/src/{cli/commands → commands}/trigger/options.d.ts +0 -0
  185. /package/dist/types/src/{cli/commands → commands}/trigger/update/queue.d.ts +0 -0
  186. /package/dist/types/src/{cli/commands → commands}/trigger/update/subscription.d.ts +0 -0
  187. /package/dist/types/src/{cli/commands → commands}/trigger/update/timer.d.ts +0 -0
  188. /package/src/{cli/commands → commands}/index.ts +0 -0
  189. /package/src/{cli/commands → commands}/trigger/create/index.ts +0 -0
  190. /package/src/{cli/commands → commands}/trigger/index.ts +0 -0
  191. /package/src/{cli/commands → commands}/trigger/options.ts +0 -0
  192. /package/src/{cli/commands → commands}/trigger/update/index.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/hooks/useComputeRuntimeCallback.ts", "../../../../src/hooks/useComputeRuntime.ts", "../../../../src/hooks/useTriggerRuntimeControls.ts", "../../../../src/hooks/useComputeRuntimeService.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport { type DependencyList, useCallback } from 'react';\n\nimport { type Key } from '@dxos/echo';\n\nimport { AutomationCapabilities } from '#types';\n\nimport { useComputeRuntime } from './useComputeRuntime';\n\n/**\n * Create an effectful function that has access to compute services\n */\n// TODO(burdon): Factor out (figure out cross-plugin capabilities dependencies).\nexport const useComputeRuntimeCallback = <T>(\n id: Key.SpaceId | undefined,\n fn: () => Effect.Effect<T, any, AutomationCapabilities.ComputeServices>,\n deps?: DependencyList,\n): (() => Promise<T>) => {\n const runtime = useComputeRuntime(id);\n\n return useCallback(() => {\n if (!runtime) {\n throw new TypeError('Space not provided to useComputeRuntimeCallback');\n }\n\n return runtime.runPromise(fn());\n }, [runtime, ...(deps ?? [])]);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useCapability } from '@dxos/app-framework/ui';\nimport { SpaceId } from '@dxos/keys';\n\nimport { AutomationCapabilities } from '../types';\n\n/**\n * Resolves the compute runtime for a space.\n */\nexport const useComputeRuntime = (id: SpaceId | undefined): AutomationCapabilities.ComputeRuntime | undefined => {\n const computeRuntime = useCapability(AutomationCapabilities.ComputeRuntime);\n return id !== undefined ? computeRuntime.getRuntime(id) : undefined;\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Atom, useAtomValue } from '@effect-atom/atom-react';\nimport type * as Context from 'effect/Context';\nimport * as Effect from 'effect/Effect';\nimport { useEffect, useState } from 'react';\n\nimport { type Database, Filter } from '@dxos/echo';\nimport { Trigger } from '@dxos/functions';\nimport { TriggerDispatcher, type TriggerDispatcherState } from '@dxos/functions-runtime';\nimport { useQuery } from '@dxos/react-client/echo';\n\nimport { useComputeRuntimeCallback } from './useComputeRuntimeCallback';\n\ninterface TriggerRuntimeControls {\n triggers: Trigger.Trigger[];\n\n state: TriggerDispatcherState | undefined;\n\n start: () => void;\n stop: () => void;\n}\n\nexport const useTriggerRuntimeControls = (db: Database.Database | undefined): TriggerRuntimeControls => {\n const triggers = useQuery(db, Filter.type(Trigger.Trigger));\n\n const [dispatcher, setDispatcher] = useState<Context.Tag.Service<TriggerDispatcher> | undefined>(undefined);\n\n const init = useComputeRuntimeCallback(\n db?.spaceId,\n Effect.fnUntraced(function* () {\n const dispatcher = yield* TriggerDispatcher;\n setDispatcher(dispatcher);\n }),\n );\n\n useEffect(() => {\n void init();\n }, []);\n\n const state = useAtomValue(dispatcher?.state ?? Atom.make(undefined));\n\n const start = useComputeRuntimeCallback(\n db?.spaceId,\n Effect.fnUntraced(function* () {\n const dispatcher = yield* TriggerDispatcher;\n yield* dispatcher.start();\n }),\n );\n\n const stop = useComputeRuntimeCallback(\n db?.spaceId,\n Effect.fnUntraced(function* () {\n const dispatcher = yield* TriggerDispatcher;\n yield* dispatcher.stop();\n }),\n );\n\n return {\n triggers,\n state,\n start: () => void start(),\n stop: () => void stop(),\n };\n};\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Context from 'effect/Context';\nimport { use } from 'react';\nimport { useMemo } from 'react';\n\nimport { unwrapExit } from '@dxos/effect';\nimport { SpaceId } from '@dxos/keys';\n\nimport { AutomationCapabilities } from '../types';\nimport { useComputeRuntime } from './useComputeRuntime';\n\nexport const useComputeRuntimeService = <T extends Context.Tag<any, any>>(\n tag: T,\n spaceId?: SpaceId,\n): (Context.Tag.Service<T> & AutomationCapabilities.ComputeRuntime) | undefined => {\n const runtime = useComputeRuntime(spaceId);\n if (!runtime) {\n return undefined;\n }\n return unwrapExit(use(useMemo(() => runtime.runPromiseExit(tag), [runtime, tag])));\n};\n"],
5
- "mappings": ";;;;;;;AAKA,SAA8BA,mBAAmB;;;ACDjD,SAASC,qBAAqB;AAQvB,IAAMC,oBAAoB,CAACC,OAAAA;AAChC,QAAMC,iBAAiBC,cAAcC,uBAAuBC,cAAc;AAC1E,SAAOJ,OAAOK,SAAYJ,eAAeK,WAAWN,EAAAA,IAAMK;AAC5D;;;ADEO,IAAME,4BAA4B,CACvCC,IACAC,IACAC,SAAAA;AAEA,QAAMC,UAAUC,kBAAkBJ,EAAAA;AAElC,SAAOK,YAAY,MAAA;AACjB,QAAI,CAACF,SAAS;AACZ,YAAM,IAAIG,UAAU,iDAAA;IACtB;AAEA,WAAOH,QAAQI,WAAWN,GAAAA,CAAAA;EAC5B,GAAG;IAACE;OAAaD,QAAQ,CAAA;GAAI;AAC/B;;;AE3BA,SAASM,MAAMC,oBAAoB;AAEnC,YAAYC,YAAY;AACxB,SAASC,WAAWC,gBAAgB;AAEpC,SAAwBC,cAAc;AACtC,SAASC,eAAe;AACxB,SAASC,yBAAsD;AAC/D,SAASC,gBAAgB;AAalB,IAAMC,4BAA4B,CAACC,OAAAA;AACxC,QAAMC,WAAWC,SAASF,IAAIG,OAAOC,KAAKC,QAAQA,OAAO,CAAA;AAEzD,QAAM,CAACC,YAAYC,aAAAA,IAAiBC,SAA6DC,MAAAA;AAEjG,QAAMC,OAAOC,0BACXX,IAAIY,SACGC,kBAAW,aAAA;AAChB,UAAMP,cAAa,OAAOQ;AAC1BP,kBAAcD,WAAAA;EAChB,CAAA,CAAA;AAGFS,YAAU,MAAA;AACR,SAAKL,KAAAA;EACP,GAAG,CAAA,CAAE;AAEL,QAAMM,QAAQC,aAAaX,YAAYU,SAASE,KAAKC,KAAKV,MAAAA,CAAAA;AAE1D,QAAMW,QAAQT,0BACZX,IAAIY,SACGC,kBAAW,aAAA;AAChB,UAAMP,cAAa,OAAOQ;AAC1B,WAAOR,YAAWc,MAAK;EACzB,CAAA,CAAA;AAGF,QAAMC,OAAOV,0BACXX,IAAIY,SACGC,kBAAW,aAAA;AAChB,UAAMP,cAAa,OAAOQ;AAC1B,WAAOR,YAAWe,KAAI;EACxB,CAAA,CAAA;AAGF,SAAO;IACLpB;IACAe;IACAI,OAAO,MAAM,KAAKA,MAAAA;IAClBC,MAAM,MAAM,KAAKA,KAAAA;EACnB;AACF;;;AC7DA,SAASC,WAAW;AACpB,SAASC,eAAe;AAExB,SAASC,kBAAkB;AAMpB,IAAMC,2BAA2B,CACtCC,KACAC,YAAAA;AAEA,QAAMC,UAAUC,kBAAkBF,OAAAA;AAClC,MAAI,CAACC,SAAS;AACZ,WAAOE;EACT;AACA,SAAOC,WAAWC,IAAIC,QAAQ,MAAML,QAAQM,eAAeR,GAAAA,GAAM;IAACE;IAASF;GAAI,CAAA,CAAA;AACjF;",
6
- "names": ["useCallback", "useCapability", "useComputeRuntime", "id", "computeRuntime", "useCapability", "AutomationCapabilities", "ComputeRuntime", "undefined", "getRuntime", "useComputeRuntimeCallback", "id", "fn", "deps", "runtime", "useComputeRuntime", "useCallback", "TypeError", "runPromise", "Atom", "useAtomValue", "Effect", "useEffect", "useState", "Filter", "Trigger", "TriggerDispatcher", "useQuery", "useTriggerRuntimeControls", "db", "triggers", "useQuery", "Filter", "type", "Trigger", "dispatcher", "setDispatcher", "useState", "undefined", "init", "useComputeRuntimeCallback", "spaceId", "fnUntraced", "TriggerDispatcher", "useEffect", "state", "useAtomValue", "Atom", "make", "start", "stop", "use", "useMemo", "unwrapExit", "useComputeRuntimeService", "tag", "spaceId", "runtime", "useComputeRuntime", "undefined", "unwrapExit", "use", "useMemo", "runPromiseExit"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport { type DependencyList, useCallback } from 'react';\n\nimport { type Key } from '@dxos/echo';\n\nimport { AutomationCapabilities } from '#types';\n\nimport { useComputeRuntime } from './useComputeRuntime';\n\n/**\n * Create an effectful function that has access to compute services\n */\n// TODO(burdon): Factor out (figure out cross-plugin capabilities dependencies).\nexport const useComputeRuntimeCallback = <T>(\n id: Key.SpaceId | undefined,\n fn: () => Effect.Effect<T, any, AutomationCapabilities.ComputeServices>,\n deps?: DependencyList,\n): (() => Promise<T>) => {\n const runtime = useComputeRuntime(id);\n\n return useCallback(() => {\n if (!runtime) {\n throw new TypeError('Space not provided to useComputeRuntimeCallback');\n }\n\n return runtime.runPromise(fn());\n }, [runtime, ...(deps ?? [])]);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useEffect } from 'react';\n\nimport { useCapabilities } from '@dxos/app-framework/ui';\nimport { SpaceId } from '@dxos/keys';\nimport { log } from '@dxos/log';\n\nimport { AutomationCapabilities } from '../types';\n\n/**\n * Resolves the compute runtime for a space.\n * Returns undefined if the AutomationPlugin is not loaded or spaceId is not provided.\n */\nexport const useComputeRuntime = (id: SpaceId | undefined): AutomationCapabilities.ComputeRuntime | undefined => {\n const [computeRuntime] = useCapabilities(AutomationCapabilities.ComputeRuntime);\n // One log per change of (capability availability, spaceId) so we can see when\n // the React subscription actually observes the contributed runtime.\n useEffect(() => {\n log('useComputeRuntime', { hasCapability: !!computeRuntime, spaceId: id });\n }, [!!computeRuntime, id]);\n\n if (!computeRuntime || id === undefined) {\n return undefined;\n }\n\n return computeRuntime.getRuntime(id);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Atom, useAtomValue } from '@effect-atom/atom-react';\nimport type * as Context from 'effect/Context';\nimport * as Effect from 'effect/Effect';\nimport { useEffect, useState } from 'react';\n\nimport { Trigger } from '@dxos/compute';\nimport { type Database, Filter, Query } from '@dxos/echo';\nimport { TriggerDispatcher, type TriggerDispatcherState } from '@dxos/functions-runtime';\nimport { useQuery } from '@dxos/react-client/echo';\n\nimport { useComputeRuntimeCallback } from './useComputeRuntimeCallback';\n\ninterface TriggerRuntimeControls {\n triggers: Trigger.Trigger[];\n\n state: TriggerDispatcherState | undefined;\n\n start: () => void;\n stop: () => void;\n}\n\nexport const useTriggerRuntimeControls = (db: Database.Database | undefined): TriggerRuntimeControls => {\n const triggers = useQuery(\n db,\n Query.select(Filter.type(Trigger.Trigger)).debugLabel('plugin-automation.useTriggerRuntimeControls'),\n );\n\n const [dispatcher, setDispatcher] = useState<Context.Tag.Service<TriggerDispatcher> | undefined>(undefined);\n\n const init = useComputeRuntimeCallback(\n db?.spaceId,\n Effect.fnUntraced(function* () {\n const dispatcher = yield* TriggerDispatcher;\n setDispatcher(dispatcher);\n }),\n );\n\n useEffect(() => {\n void init();\n }, []);\n\n const state = useAtomValue(dispatcher?.state ?? Atom.make(undefined));\n\n const start = useComputeRuntimeCallback(\n db?.spaceId,\n Effect.fnUntraced(function* () {\n const dispatcher = yield* TriggerDispatcher;\n yield* dispatcher.start();\n }),\n );\n\n const stop = useComputeRuntimeCallback(\n db?.spaceId,\n Effect.fnUntraced(function* () {\n const dispatcher = yield* TriggerDispatcher;\n yield* dispatcher.stop();\n }),\n );\n\n return {\n triggers,\n state,\n start: () => void start(),\n stop: () => void stop(),\n };\n};\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Context from 'effect/Context';\nimport * as Effect from 'effect/Effect';\nimport * as Exit from 'effect/Exit';\nimport { useEffect, useState } from 'react';\n\nimport { SpaceId } from '@dxos/keys';\nimport { log } from '@dxos/log';\n\nimport { useComputeRuntime } from './useComputeRuntime';\n\ntype ResolvedService<T extends Context.Tag<any, any>> = Context.Tag.Service<T> | undefined;\n\n/**\n * Resolves a service from the compute runtime for a given space.\n *\n * NOTE: Previously implemented via `use(useMemo(() => runtime.runPromiseExit(...)))`.\n * React's `use()` is weird and unreliable in production builds — the Suspense\n * boundary can stay pending indefinitely without the promise ever resolving\n * from React's perspective (the runtime is built lazily on first invocation\n * and one of its `acquire` steps can block). This `useState` + `useEffect`\n * flavour avoids suspension entirely: the hook returns `undefined` while the\n * service is being acquired or if acquisition fails / times out.\n */\nexport const useComputeRuntimeService = <T extends Context.Tag<any, any>>(\n tag: T,\n spaceId?: SpaceId,\n): ResolvedService<T> => {\n const runtime = useComputeRuntime(spaceId);\n const [service, setService] = useState<ResolvedService<T>>(undefined);\n\n useEffect(() => {\n setService(undefined);\n if (!runtime) {\n return;\n }\n let cancelled = false;\n void (async () => {\n try {\n const exit = await runtime.runPromiseExit(tag.pipe(Effect.timeout('30 seconds')));\n if (cancelled) {\n return;\n }\n if (Exit.isSuccess(exit)) {\n setService(exit.value);\n } else {\n log.warn('useComputeRuntimeService: failed to acquire service', { cause: exit.cause });\n }\n } catch (error) {\n if (!cancelled) {\n log.catch(error);\n }\n }\n })();\n return () => {\n cancelled = true;\n };\n }, [runtime, tag]);\n\n return service;\n};\n"],
5
+ "mappings": ";;;;;;;AAKA,SAA8BA,mBAAmB;;;ACDjD,SAASC,iBAAiB;AAE1B,SAASC,uBAAuB;AAEhC,SAASC,WAAW;AAIpB,IAAA,eAAA;AAME,IAAA,oBAAA,CAAA,OAAA;AACA,QAAA,CAAA,cAAA,IAAA,gBAAA,uBAAA,cAAoE;YAEvCC,MAAAA;QAAiCC,qBAASC;MAAG,eAAA,CAAA,CAAA;MACvE,SAAA;IAAC,GAAEC,EAAAA,YAAAA,YAAAA,GAAAA,cAAAA,GAAAA,IAAAA,GAAAA,OAAAA,CAAAA;;IAAmB,CAAA,CAAA;IAErB;;AAEJ,MAAA,CAAA,kBAAA,OAAA,QAAA;AAEA,WAAOA;EACP;;;;;ADZK,IAAMC,4BAA4B,CACvCC,IACAC,IACAC,SAAAA;AAEA,QAAMC,UAAUC,kBAAkBJ,EAAAA;AAElC,SAAOK,YAAY,MAAA;AACjB,QAAI,CAACF,SAAS;AACZ,YAAM,IAAIG,UAAU,iDAAA;IACtB;AAEA,WAAOH,QAAQI,WAAWN,GAAAA,CAAAA;EAC5B,GAAG;IAACE;OAAaD,QAAQ,CAAA;GAAI;AAC/B;;;AE3BA,SAASM,MAAMC,oBAAoB;AAEnC,YAAYC,YAAY;AACxB,SAASC,aAAAA,YAAWC,gBAAgB;AAEpC,SAASC,eAAe;AACxB,SAAwBC,QAAQC,aAAa;AAC7C,SAASC,yBAAsD;AAC/D,SAASC,gBAAgB;AAalB,IAAMC,4BAA4B,CAACC,OAAAA;AACxC,QAAMC,WAAWC,SACfF,IACAG,MAAMC,OAAOC,OAAOC,KAAKC,QAAQA,OAAO,CAAA,EAAGC,WAAW,6CAAA,CAAA;AAGxD,QAAM,CAACC,YAAYC,aAAAA,IAAiBC,SAA6DC,MAAAA;AAEjG,QAAMC,OAAOC,0BACXd,IAAIe,SACGC,kBAAW,aAAA;AAChB,UAAMP,cAAa,OAAOQ;AAC1BP,kBAAcD,WAAAA;EAChB,CAAA,CAAA;AAGFS,EAAAA,WAAU,MAAA;AACR,SAAKL,KAAAA;EACP,GAAG,CAAA,CAAE;AAEL,QAAMM,QAAQC,aAAaX,YAAYU,SAASE,KAAKC,KAAKV,MAAAA,CAAAA;AAE1D,QAAMW,QAAQT,0BACZd,IAAIe,SACGC,kBAAW,aAAA;AAChB,UAAMP,cAAa,OAAOQ;AAC1B,WAAOR,YAAWc,MAAK;EACzB,CAAA,CAAA;AAGF,QAAMC,OAAOV,0BACXd,IAAIe,SACGC,kBAAW,aAAA;AAChB,UAAMP,cAAa,OAAOQ;AAC1B,WAAOR,YAAWe,KAAI;EACxB,CAAA,CAAA;AAGF,SAAO;IACLvB;IACAkB;IACAI,OAAO,MAAM,KAAKA,MAAAA;IAClBC,MAAM,MAAM,KAAKA,KAAAA;EACnB;AACF;;;AChEA,YAAYC,aAAY;AACxB,YAAYC,UAAU;AACtB,SAASC,aAAAA,YAAWC,YAAAA,iBAAgB;AAGpC,SAASC,OAAAA,YAAW;AAMpB,IAAAC,gBAAA;AAgBSC,IAAAA,2BAAoDC,CAAAA,KAAAA,YAAAA;AAE3DC,QAAAA,UAAU,kBAAA,OAAA;QACRC,CAAAA,SAAWF,UAAAA,IAAAA,UAAAA,MAAAA;aACNG,MAAAA;eACH,MAAA;AACF,QAAA,CAAA,SAAA;AACIC;IACJ;QACE,YAAI;sBACIC;UACN;cACE,OAAA,MAAA,QAAA,eAAA,IAAA,KAAA,gBAAA,YAAA,CAAA,CAAA;AACF,YAAA,WAAA;AACIC;;AAEJ,YAAO,eAAA,IAAA,GAAA;AACLC,qBAAS,KAAA,KAAA;;AAA2E,UAAAA,KAAA,KAAA,uDAAA;YACtF,OAAA,KAAA;UACA,GAAOC,EAAAA,YAAO,YAAA,GAAAV,eAAA,GAAA,IAAA,GAAA,OAAA,CAAA;QACd;eACES,OAAIE;AACN,YAAA,CAAA,WAAA;AACF,UAAAF,KAAA,MAAA,OAAA,QAAA,EAAA,YAAA,YAAA,GAAAT,eAAA,GAAA,IAAA,GAAA,OAAA,CAAA;QACF;MACA;;AAEA,WAAA,MAAA;AACC,kBAAA;IAACK;;IAAa;IAEjB;EACA,CAAA;;;",
6
+ "names": ["useCallback", "useEffect", "useCapabilities", "log", "hasCapability", "spaceId", "id", "computeRuntime", "useComputeRuntimeCallback", "id", "fn", "deps", "runtime", "useComputeRuntime", "useCallback", "TypeError", "runPromise", "Atom", "useAtomValue", "Effect", "useEffect", "useState", "Trigger", "Filter", "Query", "TriggerDispatcher", "useQuery", "useTriggerRuntimeControls", "db", "triggers", "useQuery", "Query", "select", "Filter", "type", "Trigger", "debugLabel", "dispatcher", "setDispatcher", "useState", "undefined", "init", "useComputeRuntimeCallback", "spaceId", "fnUntraced", "TriggerDispatcher", "useEffect", "state", "useAtomValue", "Atom", "make", "start", "stop", "Effect", "Exit", "useEffect", "useState", "log", "__dxlog_file", "service", "undefined", "useEffect", "setService", "runtime", "cancelled", "exit", "Exit", "log", "error", "catch"]
7
7
  }
@@ -1,80 +1,12 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import "./chunk-HSLMI22Q.mjs";
3
3
 
4
- // src/AutomationPlugin.tsx
4
+ // src/index.ts
5
5
  import { Plugin } from "@dxos/app-framework";
6
- import { AppPlugin } from "@dxos/app-toolkit";
7
- import { Trigger } from "@dxos/functions";
8
- import { Operation } from "@dxos/operation";
9
- import { ClientEvents } from "@dxos/plugin-client/types";
10
- import { AppGraphBuilder, ComputeRuntime, OperationHandler, ReactSurface } from "#capabilities";
11
- import { meta as meta2 } from "#meta";
12
- import { AutomationEvents } from "#types";
13
-
14
- // src/translations.ts
15
- import { meta } from "#meta";
16
- var translations = [
17
- {
18
- "en-US": {
19
- [meta.id]: {
20
- "plugin.name": "Automation",
21
- "automation-panel.label": "Automations",
22
- "script-automation.label": "Automation",
23
- "automation-verbose.label": "Manage automations",
24
- "automation.description": "You can manage all the triggers which automate your space here.",
25
- "runtime.label": "Enable Local Runtime",
26
- "runtime.description": "This will start a trigger dispatcher locally for this space to run triggers on your device while Composer is running.",
27
- "functions-panel.label": "Functions",
28
- "functions-verbose.label": "Manage deployed functions",
29
- "functions-registry-verbose.label": "Functions registry",
30
- "functions-registry.description": "Import functions from the registry",
31
- "functions.description": "You can manage all the functions deployed from your space on EDGE here.",
32
- "show-source-button.label": "Show source",
33
- "delete-function-button.label": "Delete function",
34
- "function-parameters.label": "Function parameters",
35
- "trigger-editor.title": "Configure Trigger",
36
- "trigger-editor.description": "Triggers are used to run functions at specific times or when specific events occur.",
37
- "new-trigger.label": "Add Trigger",
38
- "trigger-type.timer.label": "Timer",
39
- "trigger-type.webhook.label": "Webhook",
40
- "trigger-type.websocket.label": "Websocket",
41
- "trigger-type.subscription.label": "Subscription",
42
- "trigger-type.email.label": "Email",
43
- "trigger-type.queue.label": "Feed",
44
- "trigger-payload-prop-name.placeholder": "New payload property name",
45
- "import-function-button.label": "Loading...",
46
- "loading-functions.message": "Loading functions...",
47
- "update-function-button.label": "Update"
48
- }
49
- }
50
- }
51
- ];
52
-
53
- // src/AutomationPlugin.tsx
54
- var AutomationPlugin = Plugin.define(meta2).pipe(AppPlugin.addAppGraphModule({
55
- activate: AppGraphBuilder
56
- }), AppPlugin.addOperationHandlerModule({
57
- activate: OperationHandler
58
- }), AppPlugin.addSchemaModule({
59
- schema: [
60
- Operation.PersistentOperation,
61
- Trigger.Trigger
62
- ]
63
- }), AppPlugin.addSurfaceModule({
64
- activate: ReactSurface
65
- }), AppPlugin.addTranslationsModule({
66
- translations
67
- }), Plugin.addModule({
68
- activatesOn: ClientEvents.ClientReady,
69
- activatesAfter: [
70
- AutomationEvents.ComputeRuntimeReady
71
- ],
72
- activate: ComputeRuntime
73
- }), Plugin.make);
74
6
 
75
7
  // src/meta.ts
76
8
  import { trim } from "@dxos/util";
77
- var meta3 = {
9
+ var meta = {
78
10
  id: "org.dxos.plugin.automation",
79
11
  name: "Automation",
80
12
  description: trim`
@@ -84,8 +16,11 @@ var meta3 = {
84
16
  icon: "ph--atom--regular",
85
17
  source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-automation"
86
18
  };
19
+
20
+ // src/index.ts
21
+ var AutomationPlugin = Plugin.lazy(meta, () => import("#plugin"));
87
22
  export {
88
23
  AutomationPlugin,
89
- meta3 as meta
24
+ meta
90
25
  };
91
26
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/AutomationPlugin.tsx", "../../../src/translations.ts", "../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Trigger } from '@dxos/functions';\nimport { Operation } from '@dxos/operation';\nimport { ClientEvents } from '@dxos/plugin-client/types';\n\nimport { AppGraphBuilder, ComputeRuntime, OperationHandler, ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\nimport { AutomationEvents } from '#types';\n\nimport { translations } from './translations';\n\nexport const AutomationPlugin = Plugin.define(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addSchemaModule({ schema: [Operation.PersistentOperation, Trigger.Trigger] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule({\n activatesOn: ClientEvents.ClientReady,\n activatesAfter: [AutomationEvents.ComputeRuntimeReady],\n activate: ComputeRuntime,\n }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Automation',\n 'automation-panel.label': 'Automations',\n 'script-automation.label': 'Automation',\n 'automation-verbose.label': 'Manage automations',\n 'automation.description': 'You can manage all the triggers which automate your space here.',\n\n 'runtime.label': 'Enable Local Runtime',\n 'runtime.description':\n 'This will start a trigger dispatcher locally for this space to run triggers on your device while Composer is running.',\n\n 'functions-panel.label': 'Functions',\n 'functions-verbose.label': 'Manage deployed functions',\n 'functions-registry-verbose.label': 'Functions registry',\n 'functions-registry.description': 'Import functions from the registry',\n 'functions.description': 'You can manage all the functions deployed from your space on EDGE here.',\n 'show-source-button.label': 'Show source',\n 'delete-function-button.label': 'Delete function',\n\n 'function-parameters.label': 'Function parameters',\n\n 'trigger-editor.title': 'Configure Trigger',\n 'trigger-editor.description':\n 'Triggers are used to run functions at specific times or when specific events occur.',\n 'new-trigger.label': 'Add Trigger',\n\n 'trigger-type.timer.label': 'Timer',\n 'trigger-type.webhook.label': 'Webhook',\n 'trigger-type.websocket.label': 'Websocket',\n 'trigger-type.subscription.label': 'Subscription',\n 'trigger-type.email.label': 'Email',\n 'trigger-type.queue.label': 'Feed',\n\n 'trigger-payload-prop-name.placeholder': 'New payload property name',\n 'import-function-button.label': 'Loading...',\n 'loading-functions.message': 'Loading functions...',\n 'update-function-button.label': 'Update',\n },\n },\n },\n] as const satisfies Resource[];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.automation',\n name: 'Automation',\n description: trim`\n Workflow automation engine that triggers custom actions based on object events and conditions.\n Create automated pipelines that respond to changes and streamline repetitive tasks.\n `,\n icon: 'ph--atom--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-automation',\n};\n"],
5
- "mappings": ";;;;AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,eAAe;AACxB,SAASC,iBAAiB;AAC1B,SAASC,oBAAoB;AAE7B,SAASC,iBAAiBC,gBAAgBC,kBAAkBC,oBAAoB;AAChF,SAASC,QAAAA,aAAY;AACrB,SAASC,wBAAwB;;;ACNjC,SAASC,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,0BAA0B;QAC1B,2BAA2B;QAC3B,4BAA4B;QAC5B,0BAA0B;QAE1B,iBAAiB;QACjB,uBACE;QAEF,yBAAyB;QACzB,2BAA2B;QAC3B,oCAAoC;QACpC,kCAAkC;QAClC,yBAAyB;QACzB,4BAA4B;QAC5B,gCAAgC;QAEhC,6BAA6B;QAE7B,wBAAwB;QACxB,8BACE;QACF,qBAAqB;QAErB,4BAA4B;QAC5B,8BAA8B;QAC9B,gCAAgC;QAChC,mCAAmC;QACnC,4BAA4B;QAC5B,4BAA4B;QAE5B,yCAAyC;QACzC,gCAAgC;QAChC,6BAA6B;QAC7B,gCAAgC;MAClC;IACF;EACF;;;;ADlCK,IAAMC,mBAAmBC,OAAOC,OAAOC,KAAAA,EAAMC,KAClDC,UAAUC,kBAAkB;EAAEC,UAAUC;AAAgB,CAAA,GACxDH,UAAUI,0BAA0B;EAAEF,UAAUG;AAAiB,CAAA,GACjEL,UAAUM,gBAAgB;EAAEC,QAAQ;IAACC,UAAUC;IAAqBC,QAAQA;;AAAS,CAAA,GACrFV,UAAUW,iBAAiB;EAAET,UAAUU;AAAa,CAAA,GACpDZ,UAAUa,sBAAsB;EAAEC;AAAa,CAAA,GAC/ClB,OAAOmB,UAAU;EACfC,aAAaC,aAAaC;EAC1BC,gBAAgB;IAACC,iBAAiBC;;EAClCnB,UAAUoB;AACZ,CAAA,GACA1B,OAAO2B,IAAI;;;AEtBb,SAASC,YAAY;AAEd,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,QAAQ;AACV;",
6
- "names": ["Plugin", "AppPlugin", "Trigger", "Operation", "ClientEvents", "AppGraphBuilder", "ComputeRuntime", "OperationHandler", "ReactSurface", "meta", "AutomationEvents", "meta", "translations", "meta", "id", "AutomationPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addAppGraphModule", "activate", "AppGraphBuilder", "addOperationHandlerModule", "OperationHandler", "addSchemaModule", "schema", "Operation", "PersistentOperation", "Trigger", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations", "addModule", "activatesOn", "ClientEvents", "ClientReady", "activatesAfter", "AutomationEvents", "ComputeRuntimeReady", "ComputeRuntime", "make", "trim", "meta", "id", "name", "description", "trim", "icon", "source"]
3
+ "sources": ["../../../src/index.ts", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const AutomationPlugin = Plugin.lazy(meta, () => import('#plugin'));\nexport { meta } from './meta';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.automation',\n name: 'Automation',\n description: trim`\n Workflow automation engine that triggers custom actions based on object events and conditions.\n Create automated pipelines that respond to changes and streamline repetitive tasks.\n `,\n icon: 'ph--atom--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-automation',\n};\n"],
5
+ "mappings": ";;;;AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,QAAQ;AACV;;;ADRO,IAAMC,mBAAmBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
6
+ "names": ["Plugin", "trim", "meta", "id", "name", "description", "icon", "source", "AutomationPlugin", "Plugin", "lazy", "meta"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/translations.ts":{"bytes":6011,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/AutomationPlugin.tsx":{"bytes":4432,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/meta.ts":{"bytes":1788,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":687,"imports":[{"path":"src/AutomationPlugin.tsx","kind":"import-statement","original":"./AutomationPlugin"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/cli/commands/trigger/options.ts":{"bytes":5767,"imports":[{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}],"format":"esm"},"src/cli/commands/trigger/util.ts":{"bytes":50581,"imports":[{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"@effect/printer-ansi/Ansi","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/cli/commands/trigger/create/queue.ts":{"bytes":11811,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/HashMap","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/options.ts","kind":"import-statement","original":"../options"},{"path":"src/cli/commands/trigger/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"src/cli/commands/trigger/create/subscription.ts":{"bytes":17280,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/HashMap","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/options.ts","kind":"import-statement","original":"../options"},{"path":"src/cli/commands/trigger/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"src/cli/commands/trigger/create/timer.ts":{"bytes":12119,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/HashMap","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/options.ts","kind":"import-statement","original":"../options"},{"path":"src/cli/commands/trigger/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"src/cli/commands/trigger/create/index.ts":{"bytes":1616,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/create/queue.ts","kind":"import-statement","original":"./queue"},{"path":"src/cli/commands/trigger/create/subscription.ts","kind":"import-statement","original":"./subscription"},{"path":"src/cli/commands/trigger/create/timer.ts","kind":"import-statement","original":"./timer"}],"format":"esm"},"src/cli/commands/trigger/list.ts":{"bytes":8524,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/cli/commands/trigger/remove.ts":{"bytes":6060,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/options.ts","kind":"import-statement","original":"./options"},{"path":"src/cli/commands/trigger/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/cli/commands/trigger/update/queue.ts":{"bytes":25250,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/options.ts","kind":"import-statement","original":"../options"},{"path":"src/cli/commands/trigger/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"src/cli/commands/trigger/update/subscription.ts":{"bytes":37121,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/options.ts","kind":"import-statement","original":"../options"},{"path":"src/cli/commands/trigger/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"src/cli/commands/trigger/update/timer.ts":{"bytes":25228,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/options.ts","kind":"import-statement","original":"../options"},{"path":"src/cli/commands/trigger/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"src/cli/commands/trigger/update/index.ts":{"bytes":1616,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/update/queue.ts","kind":"import-statement","original":"./queue"},{"path":"src/cli/commands/trigger/update/subscription.ts","kind":"import-statement","original":"./subscription"},{"path":"src/cli/commands/trigger/update/timer.ts","kind":"import-statement","original":"./timer"}],"format":"esm"},"src/cli/commands/trigger/index.ts":{"bytes":1906,"imports":[{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"src/cli/commands/trigger/create/index.ts","kind":"import-statement","original":"./create"},{"path":"src/cli/commands/trigger/list.ts","kind":"import-statement","original":"./list"},{"path":"src/cli/commands/trigger/remove.ts","kind":"import-statement","original":"./remove"},{"path":"src/cli/commands/trigger/update/index.ts","kind":"import-statement","original":"./update"}],"format":"esm"},"src/cli/commands/index.ts":{"bytes":473,"imports":[{"path":"src/cli/commands/trigger/index.ts","kind":"import-statement","original":"./trigger"}],"format":"esm"},"src/cli/plugin.ts":{"bytes":2739,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/cli/commands/index.ts","kind":"import-statement","original":"./commands"}],"format":"esm"},"src/cli/index.ts":{"bytes":463,"imports":[{"path":"src/cli/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"},"src/types/capabilities.ts":{"bytes":3500,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/events.ts":{"bytes":1296,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/schema.ts":{"bytes":4040,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":647,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/events.ts","kind":"import-statement","original":"./events"},{"path":"src/types/schema.ts","kind":"import-statement","original":"./schema"}],"format":"esm"},"src/hooks/useComputeRuntime.ts":{"bytes":1833,"imports":[{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/hooks/useComputeRuntimeCallback.ts":{"bytes":2751,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"}],"format":"esm"},"src/hooks/useTriggerRuntimeControls.ts":{"bytes":5774,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/functions-runtime","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntimeCallback.ts","kind":"import-statement","original":"./useComputeRuntimeCallback"}],"format":"esm"},"src/hooks/useComputeRuntimeService.ts":{"bytes":2341,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"}],"format":"esm"},"src/hooks/index.ts":{"bytes":975,"imports":[{"path":"src/hooks/useComputeRuntimeCallback.ts","kind":"import-statement","original":"./useComputeRuntimeCallback"},{"path":"src/hooks/useTriggerRuntimeControls.ts","kind":"import-statement","original":"./useTriggerRuntimeControls"},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"},{"path":"src/hooks/useComputeRuntimeService.ts","kind":"import-statement","original":"./useComputeRuntimeService"}],"format":"esm"},"src/operations/definitions.ts":{"bytes":3661,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/create-trigger-from-template.ts":{"bytes":8831,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/index.ts":{"bytes":1210,"imports":[{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/create-trigger-from-template.ts","kind":"dynamic-import","original":"./create-trigger-from-template"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5812},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["AutomationPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/AutomationPlugin.tsx":{"bytesInOutput":985},"src/translations.ts":{"bytesInOutput":1898},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":438}},"bytes":3625},"dist/lib/node-esm/cli/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":105245},"dist/lib/node-esm/cli/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/HashMap","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"@effect/printer-ansi/Ansi","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/HashMap","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/HashMap","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@effect/cli/Command","kind":"import-statement","external":true},{"path":"@effect/cli/Options","kind":"import-statement","external":true},{"path":"@effect/cli/Prompt","kind":"import-statement","external":true},{"path":"effect/Console","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/cli-util","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["AutomationPlugin"],"entryPoint":"src/cli/index.ts","inputs":{"src/cli/plugin.ts":{"bytesInOutput":554},"src/cli/commands/trigger/index.ts":{"bytesInOutput":217},"src/cli/commands/trigger/create/index.ts":{"bytesInOutput":203},"src/cli/commands/trigger/create/queue.ts":{"bytesInOutput":2672},"src/cli/commands/trigger/options.ts":{"bytesInOutput":1312},"src/cli/commands/trigger/util.ts":{"bytesInOutput":11194},"src/cli/commands/trigger/create/subscription.ts":{"bytesInOutput":4112},"src/cli/commands/trigger/create/timer.ts":{"bytesInOutput":2830},"src/cli/commands/trigger/list.ts":{"bytesInOutput":2117},"src/cli/commands/trigger/remove.ts":{"bytesInOutput":1420},"src/cli/commands/trigger/update/index.ts":{"bytesInOutput":210},"src/cli/commands/trigger/update/queue.ts":{"bytesInOutput":5913},"src/cli/commands/trigger/update/subscription.ts":{"bytesInOutput":8749},"src/cli/commands/trigger/update/timer.ts":{"bytesInOutput":5911},"src/cli/commands/index.ts":{"bytesInOutput":0},"src/cli/index.ts":{"bytesInOutput":0}},"bytes":48386},"dist/lib/node-esm/hooks/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6671},"dist/lib/node-esm/hooks/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-JWZAVQLF.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/functions-runtime","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true}],"exports":["useComputeRuntime","useComputeRuntimeCallback","useComputeRuntimeService","useTriggerRuntimeControls"],"entryPoint":"src/hooks/index.ts","inputs":{"src/hooks/useComputeRuntimeCallback.ts":{"bytesInOutput":347},"src/hooks/useComputeRuntime.ts":{"bytesInOutput":237},"src/hooks/index.ts":{"bytesInOutput":0},"src/hooks/useTriggerRuntimeControls.ts":{"bytesInOutput":1250},"src/hooks/useComputeRuntimeService.ts":{"bytesInOutput":344}},"bytes":2727},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-JWZAVQLF.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["AutomationAction","AutomationCapabilities","AutomationEvents","TriggerTemplate"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":380},"dist/lib/node-esm/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":570},"dist/lib/node-esm/operations/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-SP3P4OUI.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-JWZAVQLF.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/create-trigger-from-template-224Z7WJI.mjs","kind":"dynamic-import"}],"exports":["AutomationOperation","AutomationOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":179}},"bytes":551},"dist/lib/node-esm/create-trigger-from-template-224Z7WJI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4602},"dist/lib/node-esm/create-trigger-from-template-224Z7WJI.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-SP3P4OUI.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-JWZAVQLF.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/create-trigger-from-template.ts","inputs":{"src/operations/create-trigger-from-template.ts":{"bytesInOutput":1920}},"bytes":2322},"dist/lib/node-esm/chunk-SP3P4OUI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1823},"dist/lib/node-esm/chunk-SP3P4OUI.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-JWZAVQLF.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["CreateTriggerFromTemplate","definitions_exports"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":905}},"bytes":1248},"dist/lib/node-esm/chunk-JWZAVQLF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4725},"dist/lib/node-esm/chunk-JWZAVQLF.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["AutomationAction","AutomationCapabilities","AutomationEvents","TriggerTemplate"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":307},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":303},"src/types/schema.ts":{"bytesInOutput":998}},"bytes":1919},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":1704,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":982,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":3054,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/events.ts":{"bytes":1200,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/schema.ts":{"bytes":3948,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":556,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/events.ts","kind":"import-statement","original":"./events"},{"path":"src/types/schema.ts","kind":"import-statement","original":"./schema"}],"format":"esm"},"src/hooks/useComputeRuntime.ts":{"bytes":3478,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/hooks/useComputeRuntimeCallback.ts":{"bytes":2640,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"}],"format":"esm"},"src/hooks/useTriggerRuntimeControls.ts":{"bytes":5964,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions-runtime","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntimeCallback.ts","kind":"import-statement","original":"./useComputeRuntimeCallback"}],"format":"esm"},"src/hooks/useComputeRuntimeService.ts":{"bytes":6499,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Exit","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"}],"format":"esm"},"src/hooks/index.ts":{"bytes":884,"imports":[{"path":"src/hooks/useComputeRuntimeCallback.ts","kind":"import-statement","original":"./useComputeRuntimeCallback"},{"path":"src/hooks/useTriggerRuntimeControls.ts","kind":"import-statement","original":"./useTriggerRuntimeControls"},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"},{"path":"src/hooks/useComputeRuntimeService.ts","kind":"import-statement","original":"./useComputeRuntimeService"}],"format":"esm"},"src/translations.ts":{"bytes":6070,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/operations/definitions.ts":{"bytes":3553,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/create-trigger-from-template.ts":{"bytes":8359,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/index.ts":{"bytes":1108,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/create-trigger-from-template.ts","kind":"dynamic-import","original":"./create-trigger-from-template"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1235},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["AutomationPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":113},"src/meta.ts":{"bytesInOutput":437}},"bytes":797},"dist/lib/node-esm/hooks/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9298},"dist/lib/node-esm/hooks/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions-runtime","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Exit","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["useComputeRuntime","useComputeRuntimeCallback","useComputeRuntimeService","useTriggerRuntimeControls"],"entryPoint":"src/hooks/index.ts","inputs":{"src/hooks/useComputeRuntimeCallback.ts":{"bytesInOutput":347},"src/hooks/useComputeRuntime.ts":{"bytesInOutput":675},"src/hooks/index.ts":{"bytesInOutput":0},"src/hooks/useTriggerRuntimeControls.ts":{"bytesInOutput":1342},"src/hooks/useComputeRuntimeService.ts":{"bytesInOutput":1310}},"bytes":4223},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2776},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1933}},"bytes":2149},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["AutomationAction","AutomationCapabilities","AutomationEvents","TriggerTemplate"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":380},"dist/lib/node-esm/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":545},"dist/lib/node-esm/operations/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HHIHREME.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs","kind":"dynamic-import"}],"exports":["AutomationOperation","AutomationOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":177}},"bytes":549},"dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4488},"dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HHIHREME.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/create-trigger-from-template.ts","inputs":{"src/operations/create-trigger-from-template.ts":{"bytesInOutput":1815}},"bytes":2217},"dist/lib/node-esm/chunk-HHIHREME.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1821},"dist/lib/node-esm/chunk-HHIHREME.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["CreateTriggerFromTemplate","definitions_exports"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":903}},"bytes":1246},"dist/lib/node-esm/chunk-NWQMBY32.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4394},"dist/lib/node-esm/chunk-NWQMBY32.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["AutomationAction","AutomationCapabilities","AutomationEvents","TriggerTemplate"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":307},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":303},"src/types/schema.ts":{"bytesInOutput":998}},"bytes":1919},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
@@ -1,13 +1,13 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  definitions_exports
4
- } from "../chunk-SP3P4OUI.mjs";
5
- import "../chunk-JWZAVQLF.mjs";
4
+ } from "../chunk-HHIHREME.mjs";
5
+ import "../chunk-NWQMBY32.mjs";
6
6
  import "../chunk-HSLMI22Q.mjs";
7
7
 
8
8
  // src/operations/index.ts
9
- import { OperationHandlerSet } from "@dxos/operation";
10
- var AutomationOperationHandlerSet = OperationHandlerSet.lazy(() => import("../create-trigger-from-template-224Z7WJI.mjs"));
9
+ import { OperationHandlerSet } from "@dxos/compute";
10
+ var AutomationOperationHandlerSet = OperationHandlerSet.lazy(() => import("../create-trigger-from-template-FUQ3LUIF.mjs"));
11
11
  export {
12
12
  definitions_exports as AutomationOperation,
13
13
  AutomationOperationHandlerSet
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/operations/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * as AutomationOperation from './definitions';\n\nexport const AutomationOperationHandlerSet = OperationHandlerSet.lazy(() => import('./create-trigger-from-template'));\n"],
5
- "mappings": ";;;;;;;;AAIA,SAASA,2BAA2B;AAI7B,IAAMC,gCAAgCC,oBAAoBC,KAAK,MAAM,OAAO,8CAAA,CAAA;",
6
- "names": ["OperationHandlerSet", "AutomationOperationHandlerSet", "OperationHandlerSet", "lazy"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nexport * as AutomationOperation from './definitions';\n\nexport const AutomationOperationHandlerSet = OperationHandlerSet.lazy(() => import('./create-trigger-from-template'));\n"],
5
+ "mappings": ";;;;;;;;AAIA,SAASA,2BAA2B;AAI7B,IAAMC,gCAAgCD,oBAAoBE,KAAK,MAAM,OAAO,8CAAA,CAAA;",
6
+ "names": ["OperationHandlerSet", "AutomationOperationHandlerSet", "lazy"]
7
7
  }
@@ -0,0 +1,48 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import "./chunk-HSLMI22Q.mjs";
3
+
4
+ // src/translations.ts
5
+ import { meta } from "#meta";
6
+ var translations = [
7
+ {
8
+ "en-US": {
9
+ [meta.id]: {
10
+ "plugin.name": "Automation",
11
+ "automation-panel.label": "Automations",
12
+ "script-automation.label": "Automation",
13
+ "automation-verbose.label": "Manage automations",
14
+ "automation.description": "Triggers that automate this space.",
15
+ "runtime.label": "Trigger runtime location",
16
+ "runtime.description": "Determines where the triggers in this space will execute.",
17
+ "runtime.disabled.label": "Triggers disabled",
18
+ "runtime.local.label": "Local",
19
+ "runtime.edge.label": "EDGE (experimental)",
20
+ "functions-panel.label": "Functions",
21
+ "functions-verbose.label": "Manage deployed functions",
22
+ "functions-registry-verbose.label": "Functions registry",
23
+ "functions-registry.description": "Import functions from the registry",
24
+ "functions.description": "Functions deployed from this space on EDGE.",
25
+ "show-source-button.label": "Show source",
26
+ "delete-function-button.label": "Delete function",
27
+ "function-parameters.label": "Function parameters",
28
+ "trigger-editor.title": "Configure Trigger",
29
+ "trigger-editor.description": "Triggers are used to run functions at specific times or when specific events occur.",
30
+ "new-trigger.label": "Add Trigger",
31
+ "trigger-type.timer.label": "Timer",
32
+ "trigger-type.webhook.label": "Webhook",
33
+ "trigger-type.websocket.label": "Websocket",
34
+ "trigger-type.subscription.label": "Subscription",
35
+ "trigger-type.email.label": "Email",
36
+ "trigger-type.queue.label": "Feed",
37
+ "trigger-payload-prop-name.placeholder": "New payload property name",
38
+ "import-function-button.label": "Loading...",
39
+ "update-function-button.label": "Update",
40
+ "loading-functions.message": "Loading functions..."
41
+ }
42
+ }
43
+ }
44
+ ];
45
+ export {
46
+ translations
47
+ };
48
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Automation',\n 'automation-panel.label': 'Automations',\n 'script-automation.label': 'Automation',\n 'automation-verbose.label': 'Manage automations',\n 'automation.description': 'Triggers that automate this space.',\n\n 'runtime.label': 'Trigger runtime location',\n 'runtime.description': 'Determines where the triggers in this space will execute.',\n 'runtime.disabled.label': 'Triggers disabled',\n 'runtime.local.label': 'Local',\n 'runtime.edge.label': 'EDGE (experimental)',\n\n 'functions-panel.label': 'Functions',\n 'functions-verbose.label': 'Manage deployed functions',\n 'functions-registry-verbose.label': 'Functions registry',\n 'functions-registry.description': 'Import functions from the registry',\n 'functions.description': 'Functions deployed from this space on EDGE.',\n 'show-source-button.label': 'Show source',\n 'delete-function-button.label': 'Delete function',\n\n 'function-parameters.label': 'Function parameters',\n\n 'trigger-editor.title': 'Configure Trigger',\n 'trigger-editor.description':\n 'Triggers are used to run functions at specific times or when specific events occur.',\n 'new-trigger.label': 'Add Trigger',\n\n 'trigger-type.timer.label': 'Timer',\n 'trigger-type.webhook.label': 'Webhook',\n 'trigger-type.websocket.label': 'Websocket',\n 'trigger-type.subscription.label': 'Subscription',\n 'trigger-type.email.label': 'Email',\n 'trigger-type.queue.label': 'Feed',\n\n 'trigger-payload-prop-name.placeholder': 'New payload property name',\n 'import-function-button.label': 'Loading...',\n 'update-function-button.label': 'Update',\n 'loading-functions.message': 'Loading functions...',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;;AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,eAAe;QACf,0BAA0B;QAC1B,2BAA2B;QAC3B,4BAA4B;QAC5B,0BAA0B;QAE1B,iBAAiB;QACjB,uBAAuB;QACvB,0BAA0B;QAC1B,uBAAuB;QACvB,sBAAsB;QAEtB,yBAAyB;QACzB,2BAA2B;QAC3B,oCAAoC;QACpC,kCAAkC;QAClC,yBAAyB;QACzB,4BAA4B;QAC5B,gCAAgC;QAEhC,6BAA6B;QAE7B,wBAAwB;QACxB,8BACE;QACF,qBAAqB;QAErB,4BAA4B;QAC5B,8BAA8B;QAC9B,gCAAgC;QAChC,mCAAmC;QACnC,4BAA4B;QAC5B,4BAA4B;QAE5B,yCAAyC;QACzC,gCAAgC;QAChC,gCAAgC;QAChC,6BAA6B;MAC/B;IACF;EACF;;",
6
+ "names": ["meta", "translations", "id"]
7
+ }
@@ -4,7 +4,7 @@ import {
4
4
  AutomationCapabilities,
5
5
  AutomationEvents,
6
6
  TriggerTemplate
7
- } from "../chunk-JWZAVQLF.mjs";
7
+ } from "../chunk-NWQMBY32.mjs";
8
8
  import "../chunk-HSLMI22Q.mjs";
9
9
  export {
10
10
  AutomationAction,
@@ -1,3 +1,4 @@
1
1
  import { Plugin } from '@dxos/app-framework';
2
2
  export declare const AutomationPlugin: Plugin.PluginFactory<void>;
3
+ export default AutomationPlugin;
3
4
  //# sourceMappingURL=AutomationPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutomationPlugin.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAY7C,eAAO,MAAM,gBAAgB,4BAY5B,CAAC"}
1
+ {"version":3,"file":"AutomationPlugin.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAU7C,eAAO,MAAM,gBAAgB,4BAY5B,CAAC;eAEa,gBAAgB"}
@@ -1,3 +1,4 @@
1
1
  import { Plugin } from '@dxos/app-framework';
2
2
  export declare const AutomationPlugin: Plugin.PluginFactory<void>;
3
- //# sourceMappingURL=plugin.d.ts.map
3
+ export default AutomationPlugin;
4
+ //# sourceMappingURL=AutomationPlugin.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAW7C,eAAO,MAAM,gBAAgB,4BAW5B,CAAC;eAEa,gBAAgB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AutomationPlugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;;AAM/D,wBA8CE"}
1
+ {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC"}
@@ -3,4 +3,12 @@ import { Capability } from '@dxos/app-framework';
3
3
  import { AutomationCapabilities } from '#types';
4
4
  declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<AutomationCapabilities.ComputeRuntimeProvider>>, import("effect/Cause").UnknownException, Capability.Service>;
5
5
  export default _default;
6
+ declare global {
7
+ interface ImportMeta {
8
+ env: ImportMetaEnv;
9
+ }
10
+ interface ImportMetaEnv {
11
+ DEV: boolean;
12
+ }
13
+ }
6
14
  //# sourceMappingURL=compute-runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compute-runtime.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/compute-runtime.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAgB,UAAU,EAA0B,MAAM,qBAAqB,CAAC;AAuCvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;;AAEhD,wBAQE"}
1
+ {"version":3,"file":"compute-runtime.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/compute-runtime.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAAgB,UAAU,EAA0B,MAAM,qBAAqB,CAAC;AAyCvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;;;AAYhD,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,UAAU;QAClB,GAAG,EAAE,aAAa,CAAC;KACpB;IAED,UAAU,aAAa;QACrB,GAAG,EAAE,OAAO,CAAC;KACd;CACF"}
@@ -1,5 +1,5 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
- import { OperationHandlerSet } from '@dxos/operation';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
3
  export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
4
4
  export declare const ComputeRuntime: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("../types").AutomationCapabilities.ComputeRuntimeProvider>>, Error>;
5
5
  export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,cAAc,0JAAuE,CAAC;AACnG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,cAAc,0JAAuE,CAAC;AACnG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -1,3 +1,6 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
2
4
  export declare const ComputeRuntime: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("../types").AutomationCapabilities.ComputeRuntimeProvider>>, Error>;
5
+ export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
3
6
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,cAAc,0JAAuE,CAAC"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,cAAc,0JAAuE,CAAC;AACnG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { Capability } from '@dxos/app-framework';
3
- import type { OperationHandlerSet } from '@dxos/operation';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
4
  declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=operation-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;;AAI3D,wBAIE"}
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAQ/D,wBA2CE"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}