@dxos/plugin-automation 0.8.3 → 0.8.4-main.1da679c

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 (208) hide show
  1. package/dist/lib/browser/AutomationPanel-N5HFJJXW.mjs +11 -0
  2. package/dist/lib/browser/AutomationSettings-S3F2VT7Q.mjs +70 -0
  3. package/dist/lib/browser/AutomationSettings-S3F2VT7Q.mjs.map +7 -0
  4. package/dist/lib/browser/{FunctionsContainer-JY7V7PLF.mjs → FunctionsContainer-U4HASI4P.mjs} +6 -9
  5. package/dist/lib/browser/FunctionsContainer-U4HASI4P.mjs.map +7 -0
  6. package/dist/lib/browser/{FunctionsPanel-LY4IFKR7.mjs → FunctionsPanel-I443Y6KB.mjs} +3 -3
  7. package/dist/lib/browser/{app-graph-builder-T34RV5UA.mjs → app-graph-builder-SRA3X2GQ.mjs} +6 -6
  8. package/dist/lib/{node-esm/app-graph-builder-DYWAKQM3.mjs.map → browser/app-graph-builder-SRA3X2GQ.mjs.map} +3 -3
  9. package/dist/lib/browser/{chunk-C5VOC5EE.mjs → chunk-4TWQV33E.mjs} +14 -18
  10. package/dist/lib/browser/chunk-4TWQV33E.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-CRUNQZ2M.mjs +15 -0
  12. package/dist/lib/browser/chunk-CRUNQZ2M.mjs.map +7 -0
  13. package/dist/lib/browser/{chunk-IHAKPP5A.mjs → chunk-GW5U2DGT.mjs} +2 -2
  14. package/dist/lib/browser/{chunk-4E2KPMLB.mjs → chunk-HN7OHFCB.mjs} +5 -6
  15. package/dist/lib/browser/chunk-HN7OHFCB.mjs.map +7 -0
  16. package/dist/lib/browser/chunk-NQGKPPXI.mjs +14 -0
  17. package/dist/lib/browser/chunk-NQGKPPXI.mjs.map +7 -0
  18. package/dist/lib/browser/chunk-P6YOYDXP.mjs +53 -0
  19. package/dist/lib/browser/chunk-P6YOYDXP.mjs.map +7 -0
  20. package/dist/lib/browser/{chunk-N5VLW7UZ.mjs → chunk-S4SM663I.mjs} +20 -20
  21. package/dist/lib/browser/chunk-S4SM663I.mjs.map +7 -0
  22. package/dist/lib/browser/chunk-UHXDXRP4.mjs +14 -0
  23. package/dist/lib/browser/chunk-UHXDXRP4.mjs.map +7 -0
  24. package/dist/lib/browser/{chunk-RHSCK7AU.mjs → chunk-Z5DT4MHW.mjs} +5 -5
  25. package/dist/lib/{node-esm/chunk-2IH4VB3R.mjs.map → browser/chunk-Z5DT4MHW.mjs.map} +3 -3
  26. package/dist/lib/browser/compute-runtime-G25R3RSS.mjs +154 -0
  27. package/dist/lib/browser/compute-runtime-G25R3RSS.mjs.map +7 -0
  28. package/dist/lib/browser/hooks/index.mjs +12 -0
  29. package/dist/lib/browser/index.mjs +30 -19
  30. package/dist/lib/browser/index.mjs.map +4 -4
  31. package/dist/lib/browser/{intent-resolver-AX46HSU7.mjs → intent-resolver-CMLGPFD6.mjs} +12 -11
  32. package/dist/lib/browser/intent-resolver-CMLGPFD6.mjs.map +7 -0
  33. package/dist/lib/browser/meta.json +1 -1
  34. package/dist/lib/browser/{react-surface-Z7A272CA.mjs → react-surface-IYFH2BEM.mjs} +18 -18
  35. package/dist/lib/browser/react-surface-IYFH2BEM.mjs.map +7 -0
  36. package/dist/lib/browser/types/index.mjs +8 -0
  37. package/dist/lib/node-esm/{AutomationPanel-Y3ODAHH7.mjs → AutomationPanel-MKOLA2FE.mjs} +4 -4
  38. package/dist/lib/node-esm/AutomationSettings-C3GNAUYC.mjs +71 -0
  39. package/dist/lib/node-esm/AutomationSettings-C3GNAUYC.mjs.map +7 -0
  40. package/dist/lib/node-esm/{FunctionsContainer-25M5VT3J.mjs → FunctionsContainer-VZIVURH6.mjs} +6 -9
  41. package/dist/lib/node-esm/FunctionsContainer-VZIVURH6.mjs.map +7 -0
  42. package/dist/lib/node-esm/{FunctionsPanel-HVGF5AJP.mjs → FunctionsPanel-ELINCXPW.mjs} +3 -3
  43. package/dist/lib/node-esm/{app-graph-builder-DYWAKQM3.mjs → app-graph-builder-R5XQJKZS.mjs} +6 -6
  44. package/dist/lib/{browser/app-graph-builder-T34RV5UA.mjs.map → node-esm/app-graph-builder-R5XQJKZS.mjs.map} +3 -3
  45. package/dist/lib/node-esm/{chunk-2T2OZC3A.mjs → chunk-AONUBWBE.mjs} +14 -18
  46. package/dist/lib/node-esm/chunk-AONUBWBE.mjs.map +7 -0
  47. package/dist/lib/node-esm/chunk-BTD2B4SZ.mjs +16 -0
  48. package/dist/lib/node-esm/chunk-BTD2B4SZ.mjs.map +7 -0
  49. package/dist/lib/node-esm/chunk-CTAX6WBZ.mjs +16 -0
  50. package/dist/lib/node-esm/chunk-CTAX6WBZ.mjs.map +7 -0
  51. package/dist/lib/node-esm/{chunk-2IH4VB3R.mjs → chunk-CX2AILIS.mjs} +5 -5
  52. package/dist/lib/{browser/chunk-RHSCK7AU.mjs.map → node-esm/chunk-CX2AILIS.mjs.map} +3 -3
  53. package/dist/lib/node-esm/{chunk-HCCLRNMJ.mjs → chunk-NK5N3QKD.mjs} +2 -2
  54. package/dist/lib/node-esm/{chunk-6JOJ2NN4.mjs → chunk-OEZNHUL2.mjs} +5 -6
  55. package/dist/lib/node-esm/chunk-OEZNHUL2.mjs.map +7 -0
  56. package/dist/lib/node-esm/chunk-UAOO5IZQ.mjs +16 -0
  57. package/dist/lib/node-esm/chunk-UAOO5IZQ.mjs.map +7 -0
  58. package/dist/lib/node-esm/chunk-XL33Y62M.mjs +54 -0
  59. package/dist/lib/node-esm/chunk-XL33Y62M.mjs.map +7 -0
  60. package/dist/lib/node-esm/{chunk-UFHDB2OA.mjs → chunk-ZOJVKPCA.mjs} +20 -20
  61. package/dist/lib/node-esm/chunk-ZOJVKPCA.mjs.map +7 -0
  62. package/dist/lib/node-esm/compute-runtime-LHO62OVM.mjs +155 -0
  63. package/dist/lib/node-esm/compute-runtime-LHO62OVM.mjs.map +7 -0
  64. package/dist/lib/node-esm/hooks/index.mjs +13 -0
  65. package/dist/lib/node-esm/hooks/index.mjs.map +7 -0
  66. package/dist/lib/node-esm/index.mjs +30 -19
  67. package/dist/lib/node-esm/index.mjs.map +4 -4
  68. package/dist/lib/node-esm/{intent-resolver-WXHFNJJI.mjs → intent-resolver-NUPI6NC6.mjs} +12 -11
  69. package/dist/lib/node-esm/intent-resolver-NUPI6NC6.mjs.map +7 -0
  70. package/dist/lib/node-esm/meta.json +1 -1
  71. package/dist/lib/node-esm/{react-surface-TP6IYSR4.mjs → react-surface-FDRJ76PK.mjs} +18 -18
  72. package/dist/lib/node-esm/react-surface-FDRJ76PK.mjs.map +7 -0
  73. package/dist/lib/node-esm/{types.mjs → types/index.mjs} +3 -3
  74. package/dist/lib/node-esm/types/index.mjs.map +7 -0
  75. package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
  76. package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -1
  77. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  78. package/dist/types/src/capabilities/capabilities.d.ts +18 -0
  79. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
  80. package/dist/types/src/capabilities/compute-runtime.d.ts +5 -0
  81. package/dist/types/src/capabilities/compute-runtime.d.ts.map +1 -0
  82. package/dist/types/src/capabilities/index.d.ts +5 -3
  83. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  84. package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
  85. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  86. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  87. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +6 -5
  88. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
  89. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +45 -3
  90. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
  91. package/dist/types/src/components/AutomationSettings.d.ts +5 -0
  92. package/dist/types/src/components/AutomationSettings.d.ts.map +1 -0
  93. package/dist/types/src/components/FunctionsContainer.d.ts.map +1 -1
  94. package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -1
  95. package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +1 -1
  96. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +2 -2
  97. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
  98. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +45 -3
  99. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
  100. package/dist/types/src/components/TriggerSettings.d.ts +6 -0
  101. package/dist/types/src/components/TriggerSettings.d.ts.map +1 -0
  102. package/dist/types/src/components/index.d.ts +2 -2
  103. package/dist/types/src/components/index.d.ts.map +1 -1
  104. package/dist/types/src/hooks/index.d.ts +3 -0
  105. package/dist/types/src/hooks/index.d.ts.map +1 -0
  106. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts +8 -0
  107. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +1 -0
  108. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +11 -0
  109. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -0
  110. package/dist/types/src/index.d.ts +1 -0
  111. package/dist/types/src/index.d.ts.map +1 -1
  112. package/dist/types/src/translations.d.ts +31 -29
  113. package/dist/types/src/translations.d.ts.map +1 -1
  114. package/dist/types/src/types/index.d.ts +2 -0
  115. package/dist/types/src/types/index.d.ts.map +1 -0
  116. package/dist/types/src/{types.d.ts → types/schema.d.ts} +3 -3
  117. package/dist/types/src/types/schema.d.ts.map +1 -0
  118. package/dist/types/tsconfig.tsbuildinfo +1 -1
  119. package/package.json +55 -34
  120. package/src/AutomationPlugin.tsx +9 -4
  121. package/src/capabilities/app-graph-builder.ts +2 -2
  122. package/src/capabilities/capabilities.ts +52 -0
  123. package/src/capabilities/compute-runtime.ts +124 -0
  124. package/src/capabilities/index.ts +3 -0
  125. package/src/capabilities/intent-resolver.ts +7 -7
  126. package/src/capabilities/react-surface.tsx +11 -11
  127. package/src/components/AutomationPanel/AutomationPanel.stories.tsx +11 -8
  128. package/src/components/AutomationPanel/AutomationPanel.tsx +15 -27
  129. package/src/components/AutomationSettings.tsx +30 -0
  130. package/src/components/FunctionsContainer.tsx +10 -12
  131. package/src/components/FunctionsPanel/FunctionsPanel.tsx +2 -2
  132. package/src/components/TriggerEditor/SpecSelector.tsx +14 -14
  133. package/src/components/TriggerEditor/TriggerEditor.stories.tsx +12 -9
  134. package/src/components/TriggerEditor/TriggerEditor.tsx +6 -12
  135. package/src/components/TriggerSettings.tsx +25 -0
  136. package/src/components/index.ts +1 -1
  137. package/src/hooks/index.ts +6 -0
  138. package/src/hooks/useComputeRuntimeCallback.ts +30 -0
  139. package/src/hooks/useTriggerRuntimeControls.ts +52 -0
  140. package/src/index.ts +1 -0
  141. package/src/translations.ts +10 -4
  142. package/src/types/index.ts +5 -0
  143. package/src/{types.ts → types/schema.ts} +2 -4
  144. package/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs +0 -38
  145. package/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs.map +0 -7
  146. package/dist/lib/browser/AutomationPanel-PRIIAXD5.mjs +0 -11
  147. package/dist/lib/browser/FunctionsContainer-JY7V7PLF.mjs.map +0 -7
  148. package/dist/lib/browser/chunk-4E2KPMLB.mjs.map +0 -7
  149. package/dist/lib/browser/chunk-C5VOC5EE.mjs.map +0 -7
  150. package/dist/lib/browser/chunk-N5VLW7UZ.mjs.map +0 -7
  151. package/dist/lib/browser/chunk-VQWJ5UYA.mjs +0 -14
  152. package/dist/lib/browser/chunk-VQWJ5UYA.mjs.map +0 -7
  153. package/dist/lib/browser/intent-resolver-AX46HSU7.mjs.map +0 -7
  154. package/dist/lib/browser/react-surface-Z7A272CA.mjs.map +0 -7
  155. package/dist/lib/browser/types.mjs +0 -8
  156. package/dist/lib/node/AutomationContainer-B7PSJFIS.cjs +0 -66
  157. package/dist/lib/node/AutomationContainer-B7PSJFIS.cjs.map +0 -7
  158. package/dist/lib/node/AutomationPanel-XYLZU4MI.cjs +0 -32
  159. package/dist/lib/node/AutomationPanel-XYLZU4MI.cjs.map +0 -7
  160. package/dist/lib/node/FunctionsContainer-4FGOQW5X.cjs +0 -67
  161. package/dist/lib/node/FunctionsContainer-4FGOQW5X.cjs.map +0 -7
  162. package/dist/lib/node/FunctionsPanel-EWWAZK3W.cjs +0 -31
  163. package/dist/lib/node/FunctionsPanel-EWWAZK3W.cjs.map +0 -7
  164. package/dist/lib/node/app-graph-builder-5XRIIV7E.cjs +0 -96
  165. package/dist/lib/node/app-graph-builder-5XRIIV7E.cjs.map +0 -7
  166. package/dist/lib/node/chunk-3EF7MLFX.cjs +0 -38
  167. package/dist/lib/node/chunk-3EF7MLFX.cjs.map +0 -7
  168. package/dist/lib/node/chunk-6X3XJ4VI.cjs +0 -122
  169. package/dist/lib/node/chunk-6X3XJ4VI.cjs.map +0 -7
  170. package/dist/lib/node/chunk-GIIVTK4O.cjs +0 -58
  171. package/dist/lib/node/chunk-GIIVTK4O.cjs.map +0 -7
  172. package/dist/lib/node/chunk-IXUCZ3YY.cjs +0 -173
  173. package/dist/lib/node/chunk-IXUCZ3YY.cjs.map +0 -7
  174. package/dist/lib/node/chunk-LQ6XK4N5.cjs +0 -253
  175. package/dist/lib/node/chunk-LQ6XK4N5.cjs.map +0 -7
  176. package/dist/lib/node/chunk-TH4XDKAY.cjs +0 -49
  177. package/dist/lib/node/chunk-TH4XDKAY.cjs.map +0 -7
  178. package/dist/lib/node/index.cjs +0 -124
  179. package/dist/lib/node/index.cjs.map +0 -7
  180. package/dist/lib/node/intent-resolver-EAREQZFE.cjs +0 -92
  181. package/dist/lib/node/intent-resolver-EAREQZFE.cjs.map +0 -7
  182. package/dist/lib/node/meta.json +0 -1
  183. package/dist/lib/node/react-surface-OI6CDHEI.cjs +0 -87
  184. package/dist/lib/node/react-surface-OI6CDHEI.cjs.map +0 -7
  185. package/dist/lib/node/types.cjs +0 -30
  186. package/dist/lib/node/types.cjs.map +0 -7
  187. package/dist/lib/node-esm/AutomationContainer-ANCUYDDA.mjs +0 -39
  188. package/dist/lib/node-esm/AutomationContainer-ANCUYDDA.mjs.map +0 -7
  189. package/dist/lib/node-esm/FunctionsContainer-25M5VT3J.mjs.map +0 -7
  190. package/dist/lib/node-esm/chunk-2T2OZC3A.mjs.map +0 -7
  191. package/dist/lib/node-esm/chunk-6JOJ2NN4.mjs.map +0 -7
  192. package/dist/lib/node-esm/chunk-UFHDB2OA.mjs.map +0 -7
  193. package/dist/lib/node-esm/chunk-WJHKFPX2.mjs +0 -16
  194. package/dist/lib/node-esm/chunk-WJHKFPX2.mjs.map +0 -7
  195. package/dist/lib/node-esm/intent-resolver-WXHFNJJI.mjs.map +0 -7
  196. package/dist/lib/node-esm/react-surface-TP6IYSR4.mjs.map +0 -7
  197. package/dist/types/src/components/AutomationContainer.d.ts +0 -5
  198. package/dist/types/src/components/AutomationContainer.d.ts.map +0 -1
  199. package/dist/types/src/types.d.ts.map +0 -1
  200. package/src/components/AutomationContainer.tsx +0 -30
  201. /package/dist/lib/browser/{AutomationPanel-PRIIAXD5.mjs.map → AutomationPanel-N5HFJJXW.mjs.map} +0 -0
  202. /package/dist/lib/browser/{FunctionsPanel-LY4IFKR7.mjs.map → FunctionsPanel-I443Y6KB.mjs.map} +0 -0
  203. /package/dist/lib/browser/{chunk-IHAKPP5A.mjs.map → chunk-GW5U2DGT.mjs.map} +0 -0
  204. /package/dist/lib/browser/{types.mjs.map → hooks/index.mjs.map} +0 -0
  205. /package/dist/lib/{node-esm/AutomationPanel-Y3ODAHH7.mjs.map → browser/types/index.mjs.map} +0 -0
  206. /package/dist/lib/node-esm/{FunctionsPanel-HVGF5AJP.mjs.map → AutomationPanel-MKOLA2FE.mjs.map} +0 -0
  207. /package/dist/lib/node-esm/{types.mjs.map → FunctionsPanel-ELINCXPW.mjs.map} +0 -0
  208. /package/dist/lib/node-esm/{chunk-HCCLRNMJ.mjs.map → chunk-NK5N3QKD.mjs.map} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface, useLayout } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { ScriptType } from '@dxos/functions';\nimport { getSpace, parseId, useSpace } from '@dxos/react-client/echo';\n\nimport { AutomationContainer, FunctionsContainer } from '../components';\nimport { meta } from '../meta';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${meta.id}/space-settings-automation`,\n role: 'article',\n filter: (data): data is { subject: string } => data.subject === `${meta.id}/space-settings-automation`,\n component: () => {\n const layout = useLayout();\n const { spaceId } = parseId(layout.workspace);\n const space = useSpace(spaceId);\n if (!space || !spaceId) {\n return null;\n }\n\n return <AutomationContainer space={space} />;\n },\n }),\n createSurface({\n id: `${meta.id}/space-settings-functions`,\n role: 'article',\n filter: (data): data is { subject: string } => data.subject === `${meta.id}/space-settings-functions`,\n component: () => {\n const layout = useLayout();\n const { spaceId } = parseId(layout.workspace);\n const space = useSpace(spaceId);\n if (!space || !spaceId) {\n return null;\n }\n\n return <FunctionsContainer space={space} />;\n },\n }),\n createSurface({\n id: `${meta.id}/companion/automation`,\n role: 'article',\n filter: (data): data is { companionTo: ScriptType; subject: 'automation' } =>\n Obj.instanceOf(ScriptType, data.companionTo) && data.subject === 'automation',\n component: ({ data, role }) => {\n return <AutomationContainer space={getSpace(data.companionTo)!} object={data.companionTo} />;\n },\n }),\n ]);\n"],
5
- "mappings": ";;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,eAAeC,iBAAiB;AACpE,SAASC,WAAW;AACpB,SAASC,kBAAkB;AAC3B,SAASC,UAAUC,SAASC,gBAAgB;AAK5C,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAsCA,KAAKC,YAAY,GAAGJ,KAAKD,EAAE;IAC1EM,WAAW,MAAA;AACT,YAAMC,SAASC,UAAAA;AACf,YAAM,EAAEC,QAAO,IAAKC,QAAQH,OAAOI,SAAS;AAC5C,YAAMC,QAAQC,SAASJ,OAAAA;AACvB,UAAI,CAACG,SAAS,CAACH,SAAS;AACtB,eAAO;MACT;AAEA,aAAO,sBAAA,cAACK,qBAAAA;QAAoBF;;IAC9B;EACF,CAAA;EACAb,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAsCA,KAAKC,YAAY,GAAGJ,KAAKD,EAAE;IAC1EM,WAAW,MAAA;AACT,YAAMC,SAASC,UAAAA;AACf,YAAM,EAAEC,QAAO,IAAKC,QAAQH,OAAOI,SAAS;AAC5C,YAAMC,QAAQC,SAASJ,OAAAA;AACvB,UAAI,CAACG,SAAS,CAACH,SAAS;AACtB,eAAO;MACT;AAEA,aAAO,sBAAA,cAACM,oBAAAA;QAAmBH;;IAC7B;EACF,CAAA;EACAb,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SACPY,IAAIC,WAAWC,YAAYd,KAAKe,WAAW,KAAKf,KAAKC,YAAY;IACnEC,WAAW,CAAC,EAAEF,MAAMF,KAAI,MAAE;AACxB,aAAO,sBAAA,cAACY,qBAAAA;QAAoBF,OAAOQ,SAAShB,KAAKe,WAAW;QAAIE,QAAQjB,KAAKe;;IAC/E;EACF,CAAA;CACD;",
6
- "names": ["React", "Capabilities", "contributes", "createSurface", "useLayout", "Obj", "ScriptType", "getSpace", "parseId", "useSpace", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "meta", "role", "filter", "data", "subject", "component", "layout", "useLayout", "spaceId", "parseId", "workspace", "space", "useSpace", "AutomationContainer", "FunctionsContainer", "Obj", "instanceOf", "ScriptType", "companionTo", "getSpace", "object"]
7
- }
@@ -1,8 +0,0 @@
1
- import {
2
- AutomationAction
3
- } from "./chunk-4E2KPMLB.mjs";
4
- import "./chunk-IHAKPP5A.mjs";
5
- export {
6
- AutomationAction
7
- };
8
- //# sourceMappingURL=types.mjs.map
@@ -1,66 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var AutomationContainer_B7PSJFIS_exports = {};
30
- __export(AutomationContainer_B7PSJFIS_exports, {
31
- AutomationContainer: () => AutomationContainer,
32
- default: () => AutomationContainer_default
33
- });
34
- module.exports = __toCommonJS(AutomationContainer_B7PSJFIS_exports);
35
- var import_chunk_IXUCZ3YY = require("./chunk-IXUCZ3YY.cjs");
36
- var import_chunk_LQ6XK4N5 = require("./chunk-LQ6XK4N5.cjs");
37
- var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
38
- var import_tracking = require("@preact-signals/safe-react/tracking");
39
- var import_react = __toESM(require("react"));
40
- var import_react_ui = require("@dxos/react-ui");
41
- var import_react_ui_form = require("@dxos/react-ui-form");
42
- var import_react_ui_stack = require("@dxos/react-ui-stack");
43
- var AutomationContainer = (props) => {
44
- var _effect = (0, import_tracking.useSignals)();
45
- try {
46
- const { t } = (0, import_react_ui.useTranslation)(import_chunk_3EF7MLFX.AUTOMATION_PLUGIN);
47
- return /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
48
- classNames: "block overflow-y-auto"
49
- }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.ControlPage, null, /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.ControlSection, {
50
- title: t("automation verbose label", {
51
- ns: import_chunk_3EF7MLFX.AUTOMATION_PLUGIN
52
- }),
53
- description: t("automation description", {
54
- ns: import_chunk_3EF7MLFX.AUTOMATION_PLUGIN
55
- })
56
- }, /* @__PURE__ */ import_react.default.createElement(import_chunk_IXUCZ3YY.AutomationPanel, props))));
57
- } finally {
58
- _effect.f();
59
- }
60
- };
61
- var AutomationContainer_default = AutomationContainer;
62
- // Annotate the CommonJS export names for ESM import in node:
63
- 0 && (module.exports = {
64
- AutomationContainer
65
- });
66
- //# sourceMappingURL=AutomationContainer-B7PSJFIS.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/AutomationContainer.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useTranslation } from '@dxos/react-ui';\nimport { ControlSection, ControlPage } from '@dxos/react-ui-form';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { AutomationPanel, type AutomationPanelProps } from './AutomationPanel';\nimport { AUTOMATION_PLUGIN } from '../meta';\n\nexport const AutomationContainer = (props: AutomationPanelProps) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n return (\n <StackItem.Content classNames='block overflow-y-auto'>\n <ControlPage>\n <ControlSection\n title={t('automation verbose label', { ns: AUTOMATION_PLUGIN })}\n description={t('automation description', { ns: AUTOMATION_PLUGIN })}\n >\n <AutomationPanel {...props} />\n </ControlSection>\n </ControlPage>\n </StackItem.Content>\n );\n};\n\nexport default AutomationContainer;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,sBAA+B;AAC/B,2BAA4C;AAC5C,4BAA0B;AAKnB,IAAMA,sBAAsB,CAACC,UAAAA;;;AAClC,UAAM,EAAEC,EAAC,QAAKC,gCAAeC,uCAAAA;AAC7B,WACE,6BAAAC,QAAA,cAACC,gCAAUC,SAAO;MAACC,YAAW;OAC5B,6BAAAH,QAAA,cAACI,kCAAAA,MACC,6BAAAJ,QAAA,cAACK,qCAAAA;MACCC,OAAOT,EAAE,4BAA4B;QAAEU,IAAIR;MAAkB,CAAA;MAC7DS,aAAaX,EAAE,0BAA0B;QAAEU,IAAIR;MAAkB,CAAA;OAEjE,6BAAAC,QAAA,cAACS,uCAAoBb,KAAAA,CAAAA,CAAAA,CAAAA;;;;AAK/B;AAEA,IAAA,8BAAeD;",
6
- "names": ["AutomationContainer", "props", "t", "useTranslation", "AUTOMATION_PLUGIN", "React", "StackItem", "Content", "classNames", "ControlPage", "ControlSection", "title", "ns", "description", "AutomationPanel"]
7
- }
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var AutomationPanel_XYLZU4MI_exports = {};
20
- __export(AutomationPanel_XYLZU4MI_exports, {
21
- AutomationPanel: () => import_chunk_IXUCZ3YY.AutomationPanel,
22
- default: () => import_chunk_IXUCZ3YY.AutomationPanel_default
23
- });
24
- module.exports = __toCommonJS(AutomationPanel_XYLZU4MI_exports);
25
- var import_chunk_IXUCZ3YY = require("./chunk-IXUCZ3YY.cjs");
26
- var import_chunk_LQ6XK4N5 = require("./chunk-LQ6XK4N5.cjs");
27
- var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {
30
- AutomationPanel
31
- });
32
- //# sourceMappingURL=AutomationPanel-XYLZU4MI.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["AutomationPanel-XYLZU4MI.cjs"],
4
- "sourcesContent": ["import {\n AutomationPanel,\n AutomationPanel_default\n} from \"./chunk-IXUCZ3YY.cjs\";\nimport \"./chunk-LQ6XK4N5.cjs\";\nimport \"./chunk-3EF7MLFX.cjs\";\nexport {\n AutomationPanel,\n AutomationPanel_default as default\n};\n//# sourceMappingURL=AutomationPanel-XYLZU4MI.cjs.map\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAGO;AACP,4BAAO;AACP,4BAAO;",
6
- "names": []
7
- }
@@ -1,67 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var FunctionsContainer_4FGOQW5X_exports = {};
30
- __export(FunctionsContainer_4FGOQW5X_exports, {
31
- FunctionsContainer: () => FunctionsContainer,
32
- default: () => FunctionsContainer_default
33
- });
34
- module.exports = __toCommonJS(FunctionsContainer_4FGOQW5X_exports);
35
- var import_chunk_6X3XJ4VI = require("./chunk-6X3XJ4VI.cjs");
36
- var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
37
- var import_tracking = require("@preact-signals/safe-react/tracking");
38
- var import_react = __toESM(require("react"));
39
- var import_react_ui = require("@dxos/react-ui");
40
- var import_react_ui_form = require("@dxos/react-ui-form");
41
- var import_react_ui_stack = require("@dxos/react-ui-stack");
42
- var FunctionsContainer = ({ space }) => {
43
- var _effect = (0, import_tracking.useSignals)();
44
- try {
45
- const { t } = (0, import_react_ui.useTranslation)(import_chunk_3EF7MLFX.AUTOMATION_PLUGIN);
46
- return /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
47
- classNames: "block overflow-y-auto"
48
- }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.ControlPage, null, /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.ControlSection, {
49
- title: t("functions verbose label", {
50
- ns: import_chunk_3EF7MLFX.AUTOMATION_PLUGIN
51
- }),
52
- description: t("functions description", {
53
- ns: import_chunk_3EF7MLFX.AUTOMATION_PLUGIN
54
- })
55
- }, /* @__PURE__ */ import_react.default.createElement(import_chunk_6X3XJ4VI.FunctionsPanel, {
56
- space
57
- }))));
58
- } finally {
59
- _effect.f();
60
- }
61
- };
62
- var FunctionsContainer_default = FunctionsContainer;
63
- // Annotate the CommonJS export names for ESM import in node:
64
- 0 && (module.exports = {
65
- FunctionsContainer
66
- });
67
- //# sourceMappingURL=FunctionsContainer-4FGOQW5X.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/FunctionsContainer.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Space } from '@dxos/react-client/echo';\nimport { useTranslation } from '@dxos/react-ui';\nimport { ControlPage, ControlSection } from '@dxos/react-ui-form';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { FunctionsPanel } from './FunctionsPanel';\nimport { AUTOMATION_PLUGIN } from '../meta';\n\nexport const FunctionsContainer = ({ space }: { space: Space }) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n return (\n <StackItem.Content classNames='block overflow-y-auto'>\n <ControlPage>\n <ControlSection\n title={t('functions verbose label', { ns: AUTOMATION_PLUGIN })}\n description={t('functions description', { ns: AUTOMATION_PLUGIN })}\n >\n <FunctionsPanel space={space} />\n </ControlSection>\n </ControlPage>\n </StackItem.Content>\n );\n};\n\nexport default FunctionsContainer;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAGlB,sBAA+B;AAC/B,2BAA4C;AAC5C,4BAA0B;AAKnB,IAAMA,qBAAqB,CAAC,EAAEC,MAAK,MAAoB;;;AAC5D,UAAM,EAAEC,EAAC,QAAKC,gCAAeC,uCAAAA;AAC7B,WACE,6BAAAC,QAAA,cAACC,gCAAUC,SAAO;MAACC,YAAW;OAC5B,6BAAAH,QAAA,cAACI,kCAAAA,MACC,6BAAAJ,QAAA,cAACK,qCAAAA;MACCC,OAAOT,EAAE,2BAA2B;QAAEU,IAAIR;MAAkB,CAAA;MAC5DS,aAAaX,EAAE,yBAAyB;QAAEU,IAAIR;MAAkB,CAAA;OAEhE,6BAAAC,QAAA,cAACS,sCAAAA;MAAeb;;;;;AAK1B;AAEA,IAAA,6BAAeD;",
6
- "names": ["FunctionsContainer", "space", "t", "useTranslation", "AUTOMATION_PLUGIN", "React", "StackItem", "Content", "classNames", "ControlPage", "ControlSection", "title", "ns", "description", "FunctionsPanel"]
7
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var FunctionsPanel_EWWAZK3W_exports = {};
20
- __export(FunctionsPanel_EWWAZK3W_exports, {
21
- FunctionsPanel: () => import_chunk_6X3XJ4VI.FunctionsPanel,
22
- default: () => import_chunk_6X3XJ4VI.FunctionsPanel_default
23
- });
24
- module.exports = __toCommonJS(FunctionsPanel_EWWAZK3W_exports);
25
- var import_chunk_6X3XJ4VI = require("./chunk-6X3XJ4VI.cjs");
26
- var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- FunctionsPanel
30
- });
31
- //# sourceMappingURL=FunctionsPanel-EWWAZK3W.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["FunctionsPanel-EWWAZK3W.cjs"],
4
- "sourcesContent": ["import {\n FunctionsPanel,\n FunctionsPanel_default\n} from \"./chunk-6X3XJ4VI.cjs\";\nimport \"./chunk-3EF7MLFX.cjs\";\nexport {\n FunctionsPanel,\n FunctionsPanel_default as default\n};\n//# sourceMappingURL=FunctionsPanel-EWWAZK3W.cjs.map\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAGO;AACP,4BAAO;",
6
- "names": []
7
- }
@@ -1,96 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var app_graph_builder_5XRIIV7E_exports = {};
20
- __export(app_graph_builder_5XRIIV7E_exports, {
21
- default: () => app_graph_builder_default
22
- });
23
- module.exports = __toCommonJS(app_graph_builder_5XRIIV7E_exports);
24
- var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
25
- var import_rx_react = require("@effect-rx/rx-react");
26
- var import_effect = require("effect");
27
- var import_app_framework = require("@dxos/app-framework");
28
- var import_echo = require("@dxos/echo");
29
- var import_functions = require("@dxos/functions");
30
- var import_types = require("@dxos/plugin-deck/types");
31
- var import_plugin_graph = require("@dxos/plugin-graph");
32
- var import_plugin_space = require("@dxos/plugin-space");
33
- var app_graph_builder_default = (context) => (0, import_app_framework.contributes)(import_app_framework.Capabilities.AppGraphBuilder, [
34
- (0, import_plugin_graph.createExtension)({
35
- id: `${import_chunk_3EF7MLFX.meta.id}/space-settings-automation`,
36
- connector: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => node2.type === `${import_plugin_space.SPACE_PLUGIN}/settings` ? import_effect.Option.some(node2) : import_effect.Option.none()), import_effect.Option.map((node2) => [
37
- {
38
- id: `automation-${node2.id}`,
39
- type: `${import_chunk_3EF7MLFX.meta.id}/space-settings-automation`,
40
- data: `${import_chunk_3EF7MLFX.meta.id}/space-settings-automation`,
41
- properties: {
42
- label: [
43
- "automation panel label",
44
- {
45
- ns: import_chunk_3EF7MLFX.meta.id
46
- }
47
- ],
48
- icon: "ph--lightning--regular"
49
- }
50
- }
51
- ]), import_effect.Option.getOrElse(() => [])))
52
- }),
53
- (0, import_plugin_graph.createExtension)({
54
- id: `${import_chunk_3EF7MLFX.meta.id}/space-settings-functions`,
55
- connector: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => node2.type === `${import_plugin_space.SPACE_PLUGIN}/settings` ? import_effect.Option.some(node2) : import_effect.Option.none()), import_effect.Option.map((node2) => [
56
- {
57
- id: `functions-${node2.id}`,
58
- type: `${import_chunk_3EF7MLFX.meta.id}/space-settings-functions`,
59
- data: `${import_chunk_3EF7MLFX.meta.id}/space-settings-functions`,
60
- properties: {
61
- label: [
62
- "functions panel label",
63
- {
64
- ns: import_chunk_3EF7MLFX.meta.id
65
- }
66
- ],
67
- icon: "ph--function--regular"
68
- }
69
- }
70
- ]), import_effect.Option.getOrElse(() => [])))
71
- }),
72
- (0, import_plugin_graph.createExtension)({
73
- id: `${import_chunk_3EF7MLFX.meta.id}/script-companion`,
74
- connector: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => import_echo.Obj.instanceOf(import_functions.ScriptType, node2.data) ? import_effect.Option.some(node2) : import_effect.Option.none()), import_effect.Option.map((node2) => [
75
- {
76
- id: [
77
- node2.id,
78
- "automation"
79
- ].join(import_types.ATTENDABLE_PATH_SEPARATOR),
80
- type: import_types.PLANK_COMPANION_TYPE,
81
- data: "automation",
82
- properties: {
83
- label: [
84
- "script automation label",
85
- {
86
- ns: import_chunk_3EF7MLFX.meta.id
87
- }
88
- ],
89
- icon: "ph--lightning--regular",
90
- disposition: "hidden"
91
- }
92
- }
93
- ]), import_effect.Option.getOrElse(() => [])))
94
- })
95
- ]);
96
- //# sourceMappingURL=app-graph-builder-5XRIIV7E.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Rx } from '@effect-rx/rx-react';\nimport { Option, pipe } from 'effect';\n\nimport { Capabilities, contributes, type PluginContext } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { ScriptType } from '@dxos/functions';\nimport { PLANK_COMPANION_TYPE, ATTENDABLE_PATH_SEPARATOR } from '@dxos/plugin-deck/types';\nimport { createExtension } from '@dxos/plugin-graph';\nimport { SPACE_PLUGIN } from '@dxos/plugin-space';\n\nimport { meta } from '../meta';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${meta.id}/space-settings-automation`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.type === `${SPACE_PLUGIN}/settings` ? Option.some(node) : Option.none())),\n Option.map((node) => [\n {\n id: `automation-${node.id}`,\n type: `${meta.id}/space-settings-automation`,\n data: `${meta.id}/space-settings-automation`,\n properties: {\n label: ['automation panel label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${meta.id}/space-settings-functions`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.type === `${SPACE_PLUGIN}/settings` ? Option.some(node) : Option.none())),\n Option.map((node) => [\n {\n id: `functions-${node.id}`,\n type: `${meta.id}/space-settings-functions`,\n data: `${meta.id}/space-settings-functions`,\n properties: {\n label: ['functions panel label', { ns: meta.id }],\n icon: 'ph--function--regular',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${meta.id}/script-companion`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (Obj.instanceOf(ScriptType, node.data) ? Option.some(node) : Option.none())),\n Option.map((node) => [\n {\n id: [node.id, 'automation'].join(ATTENDABLE_PATH_SEPARATOR),\n type: PLANK_COMPANION_TYPE,\n data: 'automation',\n properties: {\n label: ['script automation label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n disposition: 'hidden',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n ]);\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,sBAAmB;AACnB,oBAA6B;AAE7B,2BAA8D;AAC9D,kBAAoB;AACpB,uBAA2B;AAC3B,mBAAgE;AAChE,0BAAgC;AAChC,0BAA6B;AAI7B,IAAA,4BAAe,CAACA,gBACdC,kCAAYC,kCAAaC,iBAAiB;MACxCC,qCAAgB;IACdC,IAAI,GAAGC,2BAAKD,EAAE;IACdE,WAAW,CAACC,SACVC,mBAAGC,KAAK,CAACC,YACPC,oBACED,IAAIH,IAAAA,GACJK,qBAAOC,QAAQ,CAACN,UAAUA,MAAKO,SAAS,GAAGC,gCAAAA,cAA0BH,qBAAOI,KAAKT,KAAAA,IAAQK,qBAAOK,KAAI,CAAA,GACpGL,qBAAOM,IAAI,CAACX,UAAS;MACnB;QACEH,IAAI,cAAcG,MAAKH,EAAE;QACzBU,MAAM,GAAGT,2BAAKD,EAAE;QAChBe,MAAM,GAAGd,2BAAKD,EAAE;QAChBgB,YAAY;UACVC,OAAO;YAAC;YAA0B;cAAEC,IAAIjB,2BAAKD;YAAG;;UAChDmB,MAAM;QACR;MACF;KACD,GACDX,qBAAOY,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;MACArB,qCAAgB;IACdC,IAAI,GAAGC,2BAAKD,EAAE;IACdE,WAAW,CAACC,SACVC,mBAAGC,KAAK,CAACC,YACPC,oBACED,IAAIH,IAAAA,GACJK,qBAAOC,QAAQ,CAACN,UAAUA,MAAKO,SAAS,GAAGC,gCAAAA,cAA0BH,qBAAOI,KAAKT,KAAAA,IAAQK,qBAAOK,KAAI,CAAA,GACpGL,qBAAOM,IAAI,CAACX,UAAS;MACnB;QACEH,IAAI,aAAaG,MAAKH,EAAE;QACxBU,MAAM,GAAGT,2BAAKD,EAAE;QAChBe,MAAM,GAAGd,2BAAKD,EAAE;QAChBgB,YAAY;UACVC,OAAO;YAAC;YAAyB;cAAEC,IAAIjB,2BAAKD;YAAG;;UAC/CmB,MAAM;QACR;MACF;KACD,GACDX,qBAAOY,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;MACArB,qCAAgB;IACdC,IAAI,GAAGC,2BAAKD,EAAE;IACdE,WAAW,CAACC,SACVC,mBAAGC,KAAK,CAACC,YACPC,oBACED,IAAIH,IAAAA,GACJK,qBAAOC,QAAQ,CAACN,UAAUkB,gBAAIC,WAAWC,6BAAYpB,MAAKY,IAAI,IAAIP,qBAAOI,KAAKT,KAAAA,IAAQK,qBAAOK,KAAI,CAAA,GACjGL,qBAAOM,IAAI,CAACX,UAAS;MACnB;QACEH,IAAI;UAACG,MAAKH;UAAI;UAAcwB,KAAKC,sCAAAA;QACjCf,MAAMgB;QACNX,MAAM;QACNC,YAAY;UACVC,OAAO;YAAC;YAA2B;cAAEC,IAAIjB,2BAAKD;YAAG;;UACjDmB,MAAM;UACNQ,aAAa;QACf;MACF;KACD,GACDnB,qBAAOY,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;CACD;",
6
- "names": ["context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "meta", "connector", "node", "Rx", "make", "get", "pipe", "Option", "flatMap", "type", "SPACE_PLUGIN", "some", "none", "map", "data", "properties", "label", "ns", "icon", "getOrElse", "Obj", "instanceOf", "ScriptType", "join", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "disposition"]
7
- }
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_3EF7MLFX_exports = {};
20
- __export(chunk_3EF7MLFX_exports, {
21
- AUTOMATION_PLUGIN: () => AUTOMATION_PLUGIN,
22
- meta: () => meta
23
- });
24
- module.exports = __toCommonJS(chunk_3EF7MLFX_exports);
25
- var AUTOMATION_PLUGIN = "dxos.org/plugin/automation";
26
- var meta = {
27
- id: AUTOMATION_PLUGIN,
28
- name: "Automation",
29
- description: "The Automation tab allows you to trigger pre-defined workflows related to the element you are interacting with inside of Composer.",
30
- icon: "ph--robot--regular",
31
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-automation"
32
- };
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {
35
- AUTOMATION_PLUGIN,
36
- meta
37
- });
38
- //# sourceMappingURL=chunk-3EF7MLFX.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const AUTOMATION_PLUGIN = 'dxos.org/plugin/automation';\n\nexport const meta: PluginMeta = {\n id: AUTOMATION_PLUGIN,\n name: 'Automation',\n description:\n 'The Automation tab allows you to trigger pre-defined workflows related to the element you are interacting with inside of Composer.',\n icon: 'ph--robot--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-automation',\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,oBAAoB;AAE1B,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;AACV;",
6
- "names": ["AUTOMATION_PLUGIN", "meta", "id", "name", "description", "icon", "source"]
7
- }
@@ -1,122 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_6X3XJ4VI_exports = {};
30
- __export(chunk_6X3XJ4VI_exports, {
31
- FunctionsPanel: () => FunctionsPanel,
32
- FunctionsPanel_default: () => FunctionsPanel_default
33
- });
34
- module.exports = __toCommonJS(chunk_6X3XJ4VI_exports);
35
- var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
36
- var import_tracking = require("@preact-signals/safe-react/tracking");
37
- var import_effect = require("effect");
38
- var import_react = __toESM(require("react"));
39
- var import_app_framework = require("@dxos/app-framework");
40
- var import_functions = require("@dxos/functions");
41
- var import_echo = require("@dxos/react-client/echo");
42
- var import_react_ui = require("@dxos/react-ui");
43
- var import_react_ui_form = require("@dxos/react-ui-form");
44
- var import_react_ui_list = require("@dxos/react-ui-list");
45
- var import_react_ui_theme = require("@dxos/react-ui-theme");
46
- var grid = "grid grid-cols-[1fr_auto] min-bs-[2.5rem]";
47
- var FunctionsPanel = ({ space }) => {
48
- var _effect = (0, import_tracking.useSignals)();
49
- try {
50
- const { t } = (0, import_react_ui.useTranslation)(import_chunk_3EF7MLFX.AUTOMATION_PLUGIN);
51
- const functions = (0, import_echo.useQuery)(space, import_echo.Filter.type(import_functions.FunctionType));
52
- const scripts = (0, import_echo.useQuery)(space, import_echo.Filter.type(import_functions.ScriptType));
53
- const { dispatchPromise: dispatch } = (0, import_app_framework.useIntentDispatcher)();
54
- const functionToScriptMap = (0, import_react.useMemo)(() => functions.reduce((map, func) => {
55
- const scriptId = func.source?.target?.id;
56
- if (scriptId) {
57
- const script = scripts.find((s) => s.id === scriptId);
58
- if (script) {
59
- map[func.id] = script;
60
- }
61
- }
62
- return map;
63
- }, {}), [
64
- functions,
65
- scripts
66
- ]);
67
- const getScriptName = (0, import_react.useCallback)((func) => {
68
- const script = functionToScriptMap[func.id];
69
- return script?.name;
70
- }, [
71
- functionToScriptMap
72
- ]);
73
- const handleGoToScript = (0, import_react.useCallback)((func) => {
74
- const script = functionToScriptMap[func.id];
75
- if (script) {
76
- void dispatch((0, import_app_framework.createIntent)(import_app_framework.LayoutAction.Open, {
77
- part: "main",
78
- subject: [
79
- (0, import_echo.fullyQualifiedId)(script)
80
- ]
81
- }));
82
- }
83
- }, [
84
- functionToScriptMap,
85
- dispatch
86
- ]);
87
- return /* @__PURE__ */ import_react.default.createElement("div", {
88
- role: "none",
89
- className: (0, import_react_ui_theme.mx)(import_react_ui_form.controlItemClasses)
90
- }, functions.length > 0 && /* @__PURE__ */ import_react.default.createElement(import_react_ui_list.List.Root, {
91
- items: functions,
92
- isItem: import_effect.Schema.is(import_functions.FunctionType),
93
- getId: (func) => func.id
94
- }, ({ items }) => /* @__PURE__ */ import_react.default.createElement("div", {
95
- role: "list",
96
- className: "flex flex-col w-full"
97
- }, items?.map((func) => /* @__PURE__ */ import_react.default.createElement(import_react_ui_list.List.Item, {
98
- key: func.id,
99
- item: func,
100
- classNames: (0, import_react_ui_theme.mx)(grid, import_react_ui_theme.ghostHover, "items-center", "pli-2", "min-bs-[3rem]")
101
- }, /* @__PURE__ */ import_react.default.createElement("div", {
102
- className: "flex flex-col truncate"
103
- }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_list.List.ItemTitle, {
104
- classNames: "truncate"
105
- }, func.name), getScriptName(func) && /* @__PURE__ */ import_react.default.createElement("div", {
106
- className: "text-xs text-description truncate"
107
- }, getScriptName(func))), functionToScriptMap[func.id] && /* @__PURE__ */ import_react.default.createElement(import_react_ui.Button, {
108
- onClick: () => handleGoToScript(func)
109
- }, t("go to function source button label")))))), functions.length === 0 && /* @__PURE__ */ import_react.default.createElement("div", {
110
- className: "text-center plb-4 text-gray-500"
111
- }, t("no functions found")));
112
- } finally {
113
- _effect.f();
114
- }
115
- };
116
- var FunctionsPanel_default = FunctionsPanel;
117
- // Annotate the CommonJS export names for ESM import in node:
118
- 0 && (module.exports = {
119
- FunctionsPanel,
120
- FunctionsPanel_default
121
- });
122
- //# sourceMappingURL=chunk-6X3XJ4VI.cjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/FunctionsPanel/FunctionsPanel.tsx", "../../../src/components/FunctionsPanel/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Schema } from 'effect';\nimport React, { useCallback, useMemo } from 'react';\n\nimport { createIntent, LayoutAction, useIntentDispatcher } from '@dxos/app-framework';\nimport { FunctionType, ScriptType } from '@dxos/functions';\nimport { Filter, fullyQualifiedId, useQuery, type Space } from '@dxos/react-client/echo';\nimport { Button, useTranslation } from '@dxos/react-ui';\nimport { controlItemClasses } from '@dxos/react-ui-form';\nimport { List } from '@dxos/react-ui-list';\nimport { ghostHover, mx } from '@dxos/react-ui-theme';\n\nimport { AUTOMATION_PLUGIN } from '../../meta';\n\nconst grid = 'grid grid-cols-[1fr_auto] min-bs-[2.5rem]';\n\nexport type FunctionsPanelProps = {\n space: Space;\n};\n\nexport const FunctionsPanel = ({ space }: FunctionsPanelProps) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n const functions = useQuery(space, Filter.type(FunctionType));\n const scripts = useQuery(space, Filter.type(ScriptType));\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n\n const functionToScriptMap = useMemo(\n () =>\n functions.reduce(\n (map, func) => {\n const scriptId = func.source?.target?.id;\n if (scriptId) {\n const script = scripts.find((s) => s.id === scriptId);\n if (script) {\n map[func.id] = script;\n }\n }\n return map;\n },\n {} as Record<string, ScriptType>,\n ),\n [functions, scripts],\n );\n\n const getScriptName = useCallback(\n (func: FunctionType) => {\n const script = functionToScriptMap[func.id];\n return script?.name;\n },\n [functionToScriptMap],\n );\n\n const handleGoToScript = useCallback(\n (func: FunctionType) => {\n const script = functionToScriptMap[func.id];\n if (script) {\n void dispatch(createIntent(LayoutAction.Open, { part: 'main', subject: [fullyQualifiedId(script)] }));\n }\n },\n [functionToScriptMap, dispatch],\n );\n\n return (\n <div role='none' className={mx(controlItemClasses)}>\n {functions.length > 0 && (\n <List.Root<FunctionType> items={functions} isItem={Schema.is(FunctionType)} getId={(func) => func.id}>\n {({ items }) => (\n <div role='list' className='flex flex-col w-full'>\n {items?.map((func) => (\n <List.Item<FunctionType>\n key={func.id}\n item={func}\n classNames={mx(grid, ghostHover, 'items-center', 'pli-2', 'min-bs-[3rem]')}\n >\n <div className='flex flex-col truncate'>\n <List.ItemTitle classNames='truncate'>{func.name}</List.ItemTitle>\n {getScriptName(func) && (\n <div className='text-xs text-description truncate'>{getScriptName(func)}</div>\n )}\n </div>\n {functionToScriptMap[func.id] && (\n <Button onClick={() => handleGoToScript(func)}>{t('go to function source button label')}</Button>\n )}\n </List.Item>\n ))}\n </div>\n )}\n </List.Root>\n )}\n\n {functions.length === 0 && <div className='text-center plb-4 text-gray-500'>{t('no functions found')}</div>}\n </div>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { FunctionsPanel } from './FunctionsPanel';\n\nexport * from './FunctionsPanel';\nexport default FunctionsPanel;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAAuB;AACvB,mBAA4C;AAE5C,2BAAgE;AAChE,uBAAyC;AACzC,kBAA+D;AAC/D,sBAAuC;AACvC,2BAAmC;AACnC,2BAAqB;AACrB,4BAA+B;AAI/B,IAAMA,OAAO;AAMN,IAAMC,iBAAiB,CAAC,EAAEC,MAAK,MAAuB;;;AAC3D,UAAM,EAAEC,EAAC,QAAKC,gCAAeC,uCAAAA;AAC7B,UAAMC,gBAAYC,sBAASL,OAAOM,mBAAOC,KAAKC,6BAAAA,CAAAA;AAC9C,UAAMC,cAAUJ,sBAASL,OAAOM,mBAAOC,KAAKG,2BAAAA,CAAAA;AAC5C,UAAM,EAAEC,iBAAiBC,SAAQ,QAAKC,0CAAAA;AAEtC,UAAMC,0BAAsBC,sBAC1B,MACEX,UAAUY,OACR,CAACC,KAAKC,SAAAA;AACJ,YAAMC,WAAWD,KAAKE,QAAQC,QAAQC;AACtC,UAAIH,UAAU;AACZ,cAAMI,SAASd,QAAQe,KAAK,CAACC,MAAMA,EAAEH,OAAOH,QAAAA;AAC5C,YAAII,QAAQ;AACVN,cAAIC,KAAKI,EAAE,IAAIC;QACjB;MACF;AACA,aAAON;IACT,GACA,CAAC,CAAA,GAEL;MAACb;MAAWK;KAAQ;AAGtB,UAAMiB,oBAAgBC,0BACpB,CAACT,SAAAA;AACC,YAAMK,SAAST,oBAAoBI,KAAKI,EAAE;AAC1C,aAAOC,QAAQK;IACjB,GACA;MAACd;KAAoB;AAGvB,UAAMe,uBAAmBF,0BACvB,CAACT,SAAAA;AACC,YAAMK,SAAST,oBAAoBI,KAAKI,EAAE;AAC1C,UAAIC,QAAQ;AACV,aAAKX,aAASkB,mCAAaC,kCAAaC,MAAM;UAAEC,MAAM;UAAQC,SAAS;gBAACC,8BAAiBZ,MAAAA;;QAAS,CAAA,CAAA;MACpG;IACF,GACA;MAACT;MAAqBF;KAAS;AAGjC,WACE,6BAAAwB,QAAA,cAACC,OAAAA;MAAIC,MAAK;MAAOC,eAAWC,0BAAGC,uCAAAA;OAC5BrC,UAAUsC,SAAS,KAClB,6BAAAN,QAAA,cAACO,0BAAKC,MAAI;MAAeC,OAAOzC;MAAW0C,QAAQC,qBAAOC,GAAGxC,6BAAAA;MAAeyC,OAAO,CAAC/B,SAASA,KAAKI;OAC/F,CAAC,EAAEuB,MAAK,MACP,6BAAAT,QAAA,cAACC,OAAAA;MAAIC,MAAK;MAAOC,WAAU;OACxBM,OAAO5B,IAAI,CAACC,SACX,6BAAAkB,QAAA,cAACO,0BAAKO,MAAI;MACRC,KAAKjC,KAAKI;MACV8B,MAAMlC;MACNmC,gBAAYb,0BAAG1C,MAAMwD,kCAAY,gBAAgB,SAAS,eAAA;OAE1D,6BAAAlB,QAAA,cAACC,OAAAA;MAAIE,WAAU;OACb,6BAAAH,QAAA,cAACO,0BAAKY,WAAS;MAACF,YAAW;OAAYnC,KAAKU,IAAI,GAC/CF,cAAcR,IAAAA,KACb,6BAAAkB,QAAA,cAACC,OAAAA;MAAIE,WAAU;OAAqCb,cAAcR,IAAAA,CAAAA,CAAAA,GAGrEJ,oBAAoBI,KAAKI,EAAE,KAC1B,6BAAAc,QAAA,cAACoB,wBAAAA;MAAOC,SAAS,MAAM5B,iBAAiBX,IAAAA;OAAQjB,EAAE,oCAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAS/DG,UAAUsC,WAAW,KAAK,6BAAAN,QAAA,cAACC,OAAAA;MAAIE,WAAU;OAAmCtC,EAAE,oBAAA,CAAA,CAAA;;;;AAGrF;ACzFA,IAAA,yBAAeF;",
6
- "names": ["grid", "FunctionsPanel", "space", "t", "useTranslation", "AUTOMATION_PLUGIN", "functions", "useQuery", "Filter", "type", "FunctionType", "scripts", "ScriptType", "dispatchPromise", "dispatch", "useIntentDispatcher", "functionToScriptMap", "useMemo", "reduce", "map", "func", "scriptId", "source", "target", "id", "script", "find", "s", "getScriptName", "useCallback", "name", "handleGoToScript", "createIntent", "LayoutAction", "Open", "part", "subject", "fullyQualifiedId", "React", "div", "role", "className", "mx", "controlItemClasses", "length", "List", "Root", "items", "isItem", "Schema", "is", "getId", "Item", "key", "item", "classNames", "ghostHover", "ItemTitle", "Button", "onClick"]
7
- }
@@ -1,58 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_GIIVTK4O_exports = {};
20
- __export(chunk_GIIVTK4O_exports, {
21
- AutomationAction: () => AutomationAction
22
- });
23
- module.exports = __toCommonJS(chunk_GIIVTK4O_exports);
24
- var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
25
- var import_effect = require("effect");
26
- var import_echo = require("@dxos/react-client/echo");
27
- var TriggerTemplate = import_effect.Schema.Union(import_effect.Schema.Struct({
28
- type: import_effect.Schema.Literal("timer"),
29
- cron: import_effect.Schema.String
30
- }), import_effect.Schema.Struct({
31
- type: import_effect.Schema.Literal("queue"),
32
- queueDXN: import_effect.Schema.Any
33
- }));
34
- (function(AutomationAction2) {
35
- const AUTOMATION_ACTION = `${import_chunk_3EF7MLFX.AUTOMATION_PLUGIN}/action`;
36
- class CreateTriggerFromTemplate extends import_effect.Schema.TaggedClass()(`${AUTOMATION_ACTION}/create-trigger-from-template`, {
37
- input: import_effect.Schema.Struct({
38
- space: import_echo.SpaceSchema,
39
- template: TriggerTemplate,
40
- enabled: import_effect.Schema.optional(import_effect.Schema.Boolean),
41
- // TODO(wittjosiah): Improve how this lookup is done.
42
- scriptName: import_effect.Schema.optional(import_effect.Schema.String),
43
- input: import_effect.Schema.optional(import_effect.Schema.Record({
44
- key: import_effect.Schema.String,
45
- value: import_effect.Schema.Any
46
- }))
47
- }),
48
- output: import_effect.Schema.Void
49
- }) {
50
- }
51
- AutomationAction2.CreateTriggerFromTemplate = CreateTriggerFromTemplate;
52
- })(AutomationAction || (AutomationAction = {}));
53
- var AutomationAction;
54
- // Annotate the CommonJS export names for ESM import in node:
55
- 0 && (module.exports = {
56
- AutomationAction
57
- });
58
- //# sourceMappingURL=chunk-GIIVTK4O.cjs.map