@dxos/plugin-automation 0.8.4-staging.60fe92afc8 → 0.9.1-main.c7dcc2e112

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 (131) hide show
  1. package/dist/lib/neutral/{AutomationArticle-GN36NUX2.mjs → AutomationArticle-CG4ZML3C.mjs} +3 -2
  2. package/dist/lib/neutral/{AutomationCompanion-M26WR6VP.mjs → AutomationCompanion-67LW2WZS.mjs} +12 -13
  3. package/dist/lib/neutral/AutomationCompanion-67LW2WZS.mjs.map +7 -0
  4. package/dist/lib/neutral/AutomationPlugin.mjs +1 -1
  5. package/dist/lib/neutral/AutomationPlugin.node.mjs +4 -4
  6. package/dist/lib/neutral/AutomationPlugin.node.mjs.map +3 -3
  7. package/dist/lib/neutral/{AutomationSettings-YXUJDRQA.mjs → AutomationSettings-2XCCFX6X.mjs} +5 -5
  8. package/dist/lib/neutral/{AutomationSettings-YXUJDRQA.mjs.map → AutomationSettings-2XCCFX6X.mjs.map} +3 -3
  9. package/dist/lib/neutral/{TriggerSettings-XCHIZPOR.mjs → TriggerSettings-ABOTKRUA.mjs} +2 -2
  10. package/dist/lib/neutral/{app-graph-builder-BTTHS4VK.mjs → app-graph-builder-VX54SXD6.mjs} +6 -6
  11. package/dist/lib/neutral/app-graph-builder-VX54SXD6.mjs.map +7 -0
  12. package/dist/lib/neutral/capabilities/index.mjs +3 -3
  13. package/dist/lib/neutral/capabilities/node.mjs +1 -1
  14. package/dist/lib/neutral/{chunk-2JP77CMN.mjs → chunk-73DGSL37.mjs} +2 -2
  15. package/dist/lib/neutral/chunk-73DGSL37.mjs.map +7 -0
  16. package/dist/lib/neutral/{chunk-HPUHQ3L6.mjs → chunk-77QU5RSC.mjs} +3 -3
  17. package/dist/lib/neutral/chunk-77QU5RSC.mjs.map +7 -0
  18. package/dist/lib/neutral/chunk-D4RCXOP4.mjs +13 -0
  19. package/dist/lib/neutral/chunk-D4RCXOP4.mjs.map +7 -0
  20. package/dist/lib/neutral/{chunk-SONGOJRB.mjs → chunk-EJ5J22XS.mjs} +2 -2
  21. package/dist/lib/neutral/chunk-HHIFH3N3.mjs +45 -0
  22. package/dist/lib/neutral/chunk-HHIFH3N3.mjs.map +7 -0
  23. package/dist/lib/neutral/chunk-HQU5QWF4.mjs +349 -0
  24. package/dist/lib/neutral/chunk-HQU5QWF4.mjs.map +7 -0
  25. package/dist/lib/neutral/{chunk-FE7YFBX7.mjs → chunk-LVUL7GIN.mjs} +151 -60
  26. package/dist/lib/neutral/chunk-LVUL7GIN.mjs.map +7 -0
  27. package/dist/lib/neutral/{chunk-GARB7S5R.mjs → chunk-YHK7FWGV.mjs} +5 -3
  28. package/dist/lib/neutral/chunk-YHK7FWGV.mjs.map +7 -0
  29. package/dist/lib/neutral/components/index.mjs +36 -2
  30. package/dist/lib/neutral/components/index.mjs.map +3 -3
  31. package/dist/lib/neutral/containers/index.mjs +4 -4
  32. package/dist/lib/neutral/{create-automation-OE3TNXYE.mjs → create-automation-AGYTF62E.mjs} +5 -9
  33. package/dist/lib/neutral/create-automation-AGYTF62E.mjs.map +7 -0
  34. package/dist/lib/neutral/{create-trigger-from-template-TERHKWJM.mjs → create-trigger-from-template-TYGCSR3Z.mjs} +5 -5
  35. package/dist/lib/neutral/create-trigger-from-template-TYGCSR3Z.mjs.map +7 -0
  36. package/dist/lib/neutral/index.mjs +10 -2
  37. package/dist/lib/neutral/meta.json +1 -1
  38. package/dist/lib/neutral/meta.mjs +1 -1
  39. package/dist/lib/neutral/{navigation-resolver-I3L5FHJO.mjs → navigation-resolver-FSJNF3DQ.mjs} +3 -3
  40. package/dist/lib/neutral/navigation-resolver-FSJNF3DQ.mjs.map +7 -0
  41. package/dist/lib/neutral/operations/index.mjs +1 -1
  42. package/dist/lib/neutral/plugin.mjs +2 -2
  43. package/dist/lib/neutral/{react-surface-IBRWUKPC.mjs → react-surface-W3J3CDHA.mjs} +2 -2
  44. package/dist/lib/neutral/{react-surface-IBRWUKPC.mjs.map → react-surface-W3J3CDHA.mjs.map} +3 -3
  45. package/dist/lib/neutral/testing.mjs +1 -1
  46. package/dist/lib/neutral/translations.mjs +6 -2
  47. package/dist/lib/neutral/translations.mjs.map +3 -3
  48. package/dist/lib/neutral/types/index.mjs +1 -1
  49. package/dist/types/dx.config.d.ts +28 -0
  50. package/dist/types/dx.config.d.ts.map +1 -0
  51. package/dist/types/src/capabilities/index.d.ts +8 -13
  52. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  53. package/dist/types/src/capabilities/navigation-resolver.d.ts.map +1 -1
  54. package/dist/types/src/capabilities/node.d.ts +5 -5
  55. package/dist/types/src/capabilities/node.d.ts.map +1 -1
  56. package/dist/types/src/capabilities/react-surface.d.ts +2 -2
  57. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  58. package/dist/types/src/components/CronBuilder/CronBuilder.d.ts +16 -0
  59. package/dist/types/src/components/CronBuilder/CronBuilder.d.ts.map +1 -0
  60. package/dist/types/src/components/CronBuilder/CronBuilder.stories.d.ts +194 -0
  61. package/dist/types/src/components/CronBuilder/CronBuilder.stories.d.ts.map +1 -0
  62. package/dist/types/src/components/CronBuilder/cron.d.ts +17 -0
  63. package/dist/types/src/components/CronBuilder/cron.d.ts.map +1 -0
  64. package/dist/types/src/components/CronBuilder/cron.test.d.ts +2 -0
  65. package/dist/types/src/components/CronBuilder/cron.test.d.ts.map +1 -0
  66. package/dist/types/src/components/CronBuilder/index.d.ts +4 -0
  67. package/dist/types/src/components/CronBuilder/index.d.ts.map +1 -0
  68. package/dist/types/src/components/CronBuilder/schema.d.ts +96 -0
  69. package/dist/types/src/components/CronBuilder/schema.d.ts.map +1 -0
  70. package/dist/types/src/components/index.d.ts +1 -0
  71. package/dist/types/src/components/index.d.ts.map +1 -1
  72. package/dist/types/src/containers/AutomationArticle/AutomationArticle.d.ts +6 -0
  73. package/dist/types/src/containers/AutomationArticle/AutomationArticle.d.ts.map +1 -1
  74. package/dist/types/src/containers/AutomationArticle/AutomationArticle.stories.d.ts +120 -0
  75. package/dist/types/src/containers/AutomationArticle/AutomationArticle.stories.d.ts.map +1 -0
  76. package/dist/types/src/containers/AutomationCompanion/AutomationCompanion.d.ts.map +1 -1
  77. package/dist/types/src/index.d.ts +1 -0
  78. package/dist/types/src/index.d.ts.map +1 -1
  79. package/dist/types/src/meta.d.ts +28 -2
  80. package/dist/types/src/meta.d.ts.map +1 -1
  81. package/dist/types/src/paths.d.ts +2 -0
  82. package/dist/types/src/paths.d.ts.map +1 -1
  83. package/dist/types/src/translations.d.ts +9 -1
  84. package/dist/types/src/translations.d.ts.map +1 -1
  85. package/dist/types/src/types/AutomationCapabilities.d.ts +6 -1
  86. package/dist/types/src/types/AutomationCapabilities.d.ts.map +1 -1
  87. package/dist/types/tsconfig.tsbuildinfo +1 -1
  88. package/dx.config.ts +34 -0
  89. package/package.json +40 -38
  90. package/src/AutomationPlugin.test.ts +1 -1
  91. package/src/AutomationPlugin.tsx +1 -1
  92. package/src/capabilities/app-graph-builder.ts +5 -5
  93. package/src/capabilities/navigation-resolver.ts +2 -2
  94. package/src/capabilities/react-surface.tsx +1 -1
  95. package/src/commands/trigger/create/queue.ts +2 -2
  96. package/src/commands/trigger/update/queue.ts +2 -2
  97. package/src/components/CreateAutomationPanel/CreateAutomationPanel.tsx +1 -1
  98. package/src/components/CronBuilder/CronBuilder.stories.tsx +72 -0
  99. package/src/components/CronBuilder/CronBuilder.tsx +94 -0
  100. package/src/components/CronBuilder/cron.test.ts +131 -0
  101. package/src/components/CronBuilder/cron.ts +138 -0
  102. package/src/components/CronBuilder/index.ts +7 -0
  103. package/src/components/CronBuilder/schema.ts +119 -0
  104. package/src/components/index.ts +1 -0
  105. package/src/containers/AutomationArticle/AutomationArticle.stories.tsx +73 -0
  106. package/src/containers/AutomationArticle/AutomationArticle.tsx +186 -56
  107. package/src/containers/AutomationCompanion/AutomationCompanion.tsx +79 -72
  108. package/src/containers/AutomationSettings/AutomationSettings.tsx +3 -3
  109. package/src/containers/TriggerSettings/TriggerSettings.tsx +1 -1
  110. package/src/index.ts +1 -0
  111. package/src/meta.ts +2 -26
  112. package/src/operations/create-trigger-from-template.ts +3 -3
  113. package/src/paths.ts +7 -2
  114. package/src/translations.ts +7 -2
  115. package/src/types/AutomationCapabilities.ts +9 -1
  116. package/src/types/AutomationOperation.ts +1 -1
  117. package/src/types/schema.ts +1 -1
  118. package/dist/lib/neutral/AutomationCompanion-M26WR6VP.mjs.map +0 -7
  119. package/dist/lib/neutral/app-graph-builder-BTTHS4VK.mjs.map +0 -7
  120. package/dist/lib/neutral/chunk-2JP77CMN.mjs.map +0 -7
  121. package/dist/lib/neutral/chunk-DUGOIM7G.mjs +0 -36
  122. package/dist/lib/neutral/chunk-DUGOIM7G.mjs.map +0 -7
  123. package/dist/lib/neutral/chunk-FE7YFBX7.mjs.map +0 -7
  124. package/dist/lib/neutral/chunk-GARB7S5R.mjs.map +0 -7
  125. package/dist/lib/neutral/chunk-HPUHQ3L6.mjs.map +0 -7
  126. package/dist/lib/neutral/create-automation-OE3TNXYE.mjs.map +0 -7
  127. package/dist/lib/neutral/create-trigger-from-template-TERHKWJM.mjs.map +0 -7
  128. package/dist/lib/neutral/navigation-resolver-I3L5FHJO.mjs.map +0 -7
  129. /package/dist/lib/neutral/{AutomationArticle-GN36NUX2.mjs.map → AutomationArticle-CG4ZML3C.mjs.map} +0 -0
  130. /package/dist/lib/neutral/{TriggerSettings-XCHIZPOR.mjs.map → TriggerSettings-ABOTKRUA.mjs.map} +0 -0
  131. /package/dist/lib/neutral/{chunk-SONGOJRB.mjs.map → chunk-EJ5J22XS.mjs.map} +0 -0
@@ -3,12 +3,12 @@ import "./chunk-J5LGTIGS.mjs";
3
3
  // src/capabilities/navigation-resolver.ts
4
4
  import * as Effect from "effect/Effect";
5
5
  import { Capability } from "@dxos/app-framework";
6
- import { AppCapabilities, createTypeSectionPathResolver } from "@dxos/app-toolkit";
6
+ import { AppCapabilities, TypeSection } from "@dxos/app-toolkit";
7
7
  import { Automation } from "#types";
8
8
  var navigation_resolver_default = Capability.makeModule(Effect.fnUntraced(function* () {
9
- return Capability.contributes(AppCapabilities.NavigationPathResolver, createTypeSectionPathResolver(Automation.Automation));
9
+ return Capability.contributes(AppCapabilities.NavigationPathResolver, TypeSection.createTypeSectionPathResolver(Automation.Automation));
10
10
  }));
11
11
  export {
12
12
  navigation_resolver_default as default
13
13
  };
14
- //# sourceMappingURL=navigation-resolver-I3L5FHJO.mjs.map
14
+ //# sourceMappingURL=navigation-resolver-FSJNF3DQ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/navigation-resolver.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities, TypeSection } from '@dxos/app-toolkit';\n\nimport { Automation } from '#types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n return Capability.contributes(\n AppCapabilities.NavigationPathResolver,\n TypeSection.createTypeSectionPathResolver(Automation.Automation),\n );\n }),\n);\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiBC,mBAAmB;AAE7C,SAASC,kBAAkB;AAE3B,IAAA,8BAAeH,WAAWI,WACjBC,kBAAW,aAAA;AAChB,SAAOL,WAAWM,YAChBL,gBAAgBM,wBAChBL,YAAYM,8BAA8BL,WAAWA,UAAU,CAAA;AAEnE,CAAA,CAAA;",
6
+ "names": ["Effect", "Capability", "AppCapabilities", "TypeSection", "Automation", "makeModule", "fnUntraced", "contributes", "NavigationPathResolver", "createTypeSectionPathResolver"]
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AutomationOperationHandlerSet
3
- } from "../chunk-SONGOJRB.mjs";
3
+ } from "../chunk-EJ5J22XS.mjs";
4
4
  import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  AutomationOperationHandlerSet
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AutomationOperationHandlerSet
3
- } from "./chunk-SONGOJRB.mjs";
3
+ } from "./chunk-EJ5J22XS.mjs";
4
4
  import {
5
5
  meta
6
- } from "./chunk-DUGOIM7G.mjs";
6
+ } from "./chunk-HHIFH3N3.mjs";
7
7
  import "./chunk-J5LGTIGS.mjs";
8
8
 
9
9
  // src/plugin.ts
@@ -22,7 +22,7 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
22
22
  }),
23
23
  Surface.create({
24
24
  id: "spaceSettingsAutomation",
25
- filter: AppSurface.literal(AppSurface.Article, `${meta.id}.space-settings-automation`),
25
+ filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.space-settings-automation`),
26
26
  component: () => {
27
27
  const space = useActiveSpace();
28
28
  if (!space) {
@@ -51,4 +51,4 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
51
51
  export {
52
52
  react_surface_default as default
53
53
  };
54
- //# sourceMappingURL=react-surface-IBRWUKPC.mjs.map
54
+ //# sourceMappingURL=react-surface-W3J3CDHA.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/capabilities/react-surface.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { AppSurface, useActiveSpace } from '@dxos/app-toolkit/ui';\nimport { Obj } from '@dxos/echo';\n\nimport { AutomationArticle, AutomationCompanion, AutomationSettings } from '#containers';\nimport { meta } from '#meta';\nimport { Automation } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: 'automation.article',\n filter: AppSurface.object(AppSurface.Article, Automation.Automation),\n component: ({ data, role }) => (\n <AutomationArticle role={role} subject={data.subject} attendableId={data.attendableId} />\n ),\n }),\n Surface.create({\n id: 'spaceSettingsAutomation',\n filter: AppSurface.literal(AppSurface.Article, `${meta.id}.space-settings-automation`),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <AutomationSettings space={space} />;\n },\n }),\n Surface.create({\n id: 'companion.automation',\n filter: AppSurface.allOf(\n AppSurface.literal(AppSurface.Article, 'automation'),\n AppSurface.companion(AppSurface.Article),\n ),\n component: ({ data }) => {\n const db = Obj.getDatabase(data.companionTo);\n if (!db) {\n return null;\n }\n return <AutomationCompanion db={db} object={data.companionTo} />;\n },\n }),\n ]),\n ),\n);\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,YAAYC,sBAAsB;AAC3C,SAASC,WAAW;AAEpB,SAASC,mBAAmBC,qBAAqBC,0BAA0B;AAC3E,SAASC,YAAY;AACrB,SAASC,kBAAkB;AAE3B,IAAA,wBAAeT,WAAWU,WAAW,MAC5BC,eACLX,WAAWY,YAAYb,aAAac,cAAc;EAChDZ,QAAQa,OAAO;IACbC,IAAI;IACJC,QAAQd,WAAWe,OAAOf,WAAWgB,SAAST,WAAWA,UAAU;IACnEU,WAAW,CAAC,EAAEC,MAAMC,KAAI,MACtB,sBAAA,cAAChB,mBAAAA;MAAkBgB;MAAYC,SAASF,KAAKE;MAASC,cAAcH,KAAKG;;EAE7E,CAAA;EACAtB,QAAQa,OAAO;IACbC,IAAI;IACJC,QAAQd,WAAWsB,QAAQtB,WAAWgB,SAAS,GAAGV,KAAKO,EAAE,4BAA4B;IACrFI,WAAW,MAAA;AACT,YAAMM,QAAQtB,eAAAA;AACd,UAAI,CAACsB,OAAO;AACV,eAAO;MACT;AAEA,aAAO,sBAAA,cAAClB,oBAAAA;QAAmBkB;;IAC7B;EACF,CAAA;EACAxB,QAAQa,OAAO;IACbC,IAAI;IACJC,QAAQd,WAAWwB,MACjBxB,WAAWsB,QAAQtB,WAAWgB,SAAS,YAAA,GACvChB,WAAWyB,UAAUzB,WAAWgB,OAAO,CAAA;IAEzCC,WAAW,CAAC,EAAEC,KAAI,MAAE;AAClB,YAAMQ,KAAKxB,IAAIyB,YAAYT,KAAKU,WAAW;AAC3C,UAAI,CAACF,IAAI;AACP,eAAO;MACT;AACA,aAAO,sBAAA,cAACtB,qBAAAA;QAAoBsB;QAAQX,QAAQG,KAAKU;;IACnD;EACF,CAAA;CACD,CAAA,CAAA;",
6
- "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "AppSurface", "useActiveSpace", "Obj", "AutomationArticle", "AutomationCompanion", "AutomationSettings", "meta", "Automation", "makeModule", "succeed", "contributes", "ReactSurface", "create", "id", "filter", "object", "Article", "component", "data", "role", "subject", "attendableId", "literal", "space", "allOf", "companion", "db", "getDatabase", "companionTo"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { AppSurface, useActiveSpace } from '@dxos/app-toolkit/ui';\nimport { Obj } from '@dxos/echo';\n\nimport { AutomationArticle, AutomationCompanion, AutomationSettings } from '#containers';\nimport { meta } from '#meta';\nimport { Automation } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: 'automation.article',\n filter: AppSurface.object(AppSurface.Article, Automation.Automation),\n component: ({ data, role }) => (\n <AutomationArticle role={role} subject={data.subject} attendableId={data.attendableId} />\n ),\n }),\n Surface.create({\n id: 'spaceSettingsAutomation',\n filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.space-settings-automation`),\n component: () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <AutomationSettings space={space} />;\n },\n }),\n Surface.create({\n id: 'companion.automation',\n filter: AppSurface.allOf(\n AppSurface.literal(AppSurface.Article, 'automation'),\n AppSurface.companion(AppSurface.Article),\n ),\n component: ({ data }) => {\n const db = Obj.getDatabase(data.companionTo);\n if (!db) {\n return null;\n }\n return <AutomationCompanion db={db} object={data.companionTo} />;\n },\n }),\n ]),\n ),\n);\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,YAAYC,sBAAsB;AAC3C,SAASC,WAAW;AAEpB,SAASC,mBAAmBC,qBAAqBC,0BAA0B;AAC3E,SAASC,YAAY;AACrB,SAASC,kBAAkB;AAE3B,IAAA,wBAAeT,WAAWU,WAAW,MAC5BC,eACLX,WAAWY,YAAYb,aAAac,cAAc;EAChDZ,QAAQa,OAAO;IACbC,IAAI;IACJC,QAAQd,WAAWe,OAAOf,WAAWgB,SAAST,WAAWA,UAAU;IACnEU,WAAW,CAAC,EAAEC,MAAMC,KAAI,MACtB,sBAAA,cAAChB,mBAAAA;MAAkBgB;MAAYC,SAASF,KAAKE;MAASC,cAAcH,KAAKG;;EAE7E,CAAA;EACAtB,QAAQa,OAAO;IACbC,IAAI;IACJC,QAAQd,WAAWsB,QAAQtB,WAAWgB,SAAS,GAAGV,KAAKiB,QAAQC,GAAG,4BAA4B;IAC9FP,WAAW,MAAA;AACT,YAAMQ,QAAQxB,eAAAA;AACd,UAAI,CAACwB,OAAO;AACV,eAAO;MACT;AAEA,aAAO,sBAAA,cAACpB,oBAAAA;QAAmBoB;;IAC7B;EACF,CAAA;EACA1B,QAAQa,OAAO;IACbC,IAAI;IACJC,QAAQd,WAAW0B,MACjB1B,WAAWsB,QAAQtB,WAAWgB,SAAS,YAAA,GACvChB,WAAW2B,UAAU3B,WAAWgB,OAAO,CAAA;IAEzCC,WAAW,CAAC,EAAEC,KAAI,MAAE;AAClB,YAAMU,KAAK1B,IAAI2B,YAAYX,KAAKY,WAAW;AAC3C,UAAI,CAACF,IAAI;AACP,eAAO;MACT;AACA,aAAO,sBAAA,cAACxB,qBAAAA;QAAoBwB;QAAQb,QAAQG,KAAKY;;IACnD;EACF,CAAA;CACD,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "AppSurface", "useActiveSpace", "Obj", "AutomationArticle", "AutomationCompanion", "AutomationSettings", "meta", "Automation", "makeModule", "succeed", "contributes", "ReactSurface", "create", "id", "filter", "object", "Article", "component", "data", "role", "subject", "attendableId", "literal", "profile", "key", "space", "allOf", "companion", "db", "getDatabase", "companionTo"]
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AutomationPlugin
3
- } from "./chunk-HPUHQ3L6.mjs";
3
+ } from "./chunk-77QU5RSC.mjs";
4
4
  import "./chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  AutomationPlugin
@@ -17,7 +17,7 @@ var translations = [
17
17
  "rename-object.label": "Rename automation",
18
18
  "delete-object.label": "Delete automation"
19
19
  },
20
- [meta.id]: {
20
+ [meta.profile.key]: {
21
21
  "plugin.name": "Automation",
22
22
  "automation-panel.label": "Automations",
23
23
  "create-panel.template.placeholder": "Search templates...",
@@ -33,7 +33,7 @@ var translations = [
33
33
  "trigger-picker.title": "Trigger",
34
34
  "trigger-picker.description": "When this automation runs.",
35
35
  "trigger-kind.placeholder": "Select trigger type",
36
- "trigger-kind.timer.label": "Schedule (cron)",
36
+ "trigger-kind.timer.label": "Schedule",
37
37
  "trigger-kind.feed.label": "Feed",
38
38
  "cron.placeholder": "0 0 * * *",
39
39
  "feed.placeholder": "Select a feed",
@@ -47,6 +47,10 @@ var translations = [
47
47
  "no-automations.message": "No automations for this object.",
48
48
  "automation-not-associated.message": "Not yet associated with this object.",
49
49
  "automation-detached.message": "No longer associated with this object.",
50
+ "testing.title": "Testing",
51
+ "force-run.label": "Force run",
52
+ "reset-cursor.label": "Reset feed cursor",
53
+ "reset-cursor-confirm.label": "Confirm reset feed cursor",
50
54
  "automation-verbose.label": "Manage automations",
51
55
  "automation.description": "Manage where automations in this space run.",
52
56
  "runtime.label": "Runtime location",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Automation } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Type.getTypename(Automation.Automation)]: {\n 'typename.label': 'Automation',\n 'typename.label_zero': 'Automations',\n 'typename.label_one': 'Automation',\n 'typename.label_other': 'Automations',\n 'object-name.placeholder': 'New automation',\n 'add-object.label': 'Add automation',\n 'rename-object.label': 'Rename automation',\n 'delete-object.label': 'Delete automation',\n },\n [meta.id]: {\n 'plugin.name': 'Automation',\n 'automation-panel.label': 'Automations',\n 'create-panel.template.placeholder': 'Search templates...',\n\n 'automation-name.label': 'Name',\n 'general.title': 'General',\n 'general.description': 'Name and status.',\n 'action.title': 'Action',\n 'action.description': 'What this automation runs.',\n 'action.placeholder': 'Select an operation or routine',\n 'action-input.label': 'Input',\n 'action-kind.operation.label': 'Operation',\n 'action-kind.routine.label': 'Routine',\n 'trigger-picker.title': 'Trigger',\n 'trigger-picker.description': 'When this automation runs.',\n 'trigger-kind.placeholder': 'Select trigger type',\n 'trigger-kind.timer.label': 'Schedule (cron)',\n 'trigger-kind.feed.label': 'Feed',\n 'cron.placeholder': '0 0 * * *',\n 'feed.placeholder': 'Select a feed',\n 'enabled.label': 'Enabled',\n 'enabled.description': 'Turn this automation on or off.',\n 'add-trigger.label': 'Add trigger',\n 'add-trigger-first.message': 'Add a trigger to enable.',\n 'remove-trigger.label': 'Remove',\n 'select-action-first.message': 'Select an action first.',\n 'automation-companion.label': 'Automation',\n 'no-automations.message': 'No automations for this object.',\n 'automation-not-associated.message': 'Not yet associated with this object.',\n 'automation-detached.message': 'No longer associated with this object.',\n\n 'automation-verbose.label': 'Manage automations',\n 'automation.description': 'Manage where automations in this space run.',\n\n 'runtime.label': 'Runtime location',\n 'runtime.description': 'Determines where automations in this space run.',\n 'runtime.disabled.label': 'Disabled',\n 'runtime.local.label': 'Local',\n 'runtime.edge.label': 'EDGE (experimental)',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
- "mappings": ";;;AAIA,SAASA,YAAY;AAGrB,SAASC,YAAY;AACrB,SAASC,kBAAkB;AAEpB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACH,KAAKI,YAAYF,WAAWA,UAAU,CAAA,GAAI;QACzC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;MACzB;MACA,CAACD,KAAKI,EAAE,GAAG;QACT,eAAe;QACf,0BAA0B;QAC1B,qCAAqC;QAErC,yBAAyB;QACzB,iBAAiB;QACjB,uBAAuB;QACvB,gBAAgB;QAChB,sBAAsB;QACtB,sBAAsB;QACtB,sBAAsB;QACtB,+BAA+B;QAC/B,6BAA6B;QAC7B,wBAAwB;QACxB,8BAA8B;QAC9B,4BAA4B;QAC5B,4BAA4B;QAC5B,2BAA2B;QAC3B,oBAAoB;QACpB,oBAAoB;QACpB,iBAAiB;QACjB,uBAAuB;QACvB,qBAAqB;QACrB,6BAA6B;QAC7B,wBAAwB;QACxB,+BAA+B;QAC/B,8BAA8B;QAC9B,0BAA0B;QAC1B,qCAAqC;QACrC,+BAA+B;QAE/B,4BAA4B;QAC5B,0BAA0B;QAE1B,iBAAiB;QACjB,uBAAuB;QACvB,0BAA0B;QAC1B,uBAAuB;QACvB,sBAAsB;MACxB;IACF;EACF;;",
6
- "names": ["Type", "meta", "Automation", "translations", "getTypename", "id"]
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Automation } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Type.getTypename(Automation.Automation)]: {\n 'typename.label': 'Automation',\n 'typename.label_zero': 'Automations',\n 'typename.label_one': 'Automation',\n 'typename.label_other': 'Automations',\n 'object-name.placeholder': 'New automation',\n 'add-object.label': 'Add automation',\n 'rename-object.label': 'Rename automation',\n 'delete-object.label': 'Delete automation',\n },\n [meta.profile.key]: {\n 'plugin.name': 'Automation',\n 'automation-panel.label': 'Automations',\n 'create-panel.template.placeholder': 'Search templates...',\n\n 'automation-name.label': 'Name',\n 'general.title': 'General',\n 'general.description': 'Name and status.',\n 'action.title': 'Action',\n 'action.description': 'What this automation runs.',\n 'action.placeholder': 'Select an operation or routine',\n 'action-input.label': 'Input',\n 'action-kind.operation.label': 'Operation',\n 'action-kind.routine.label': 'Routine',\n 'trigger-picker.title': 'Trigger',\n 'trigger-picker.description': 'When this automation runs.',\n 'trigger-kind.placeholder': 'Select trigger type',\n 'trigger-kind.timer.label': 'Schedule',\n 'trigger-kind.feed.label': 'Feed',\n 'cron.placeholder': '0 0 * * *',\n 'feed.placeholder': 'Select a feed',\n 'enabled.label': 'Enabled',\n 'enabled.description': 'Turn this automation on or off.',\n 'add-trigger.label': 'Add trigger',\n 'add-trigger-first.message': 'Add a trigger to enable.',\n 'remove-trigger.label': 'Remove',\n 'select-action-first.message': 'Select an action first.',\n 'automation-companion.label': 'Automation',\n 'no-automations.message': 'No automations for this object.',\n 'automation-not-associated.message': 'Not yet associated with this object.',\n 'automation-detached.message': 'No longer associated with this object.',\n\n 'testing.title': 'Testing',\n 'force-run.label': 'Force run',\n 'reset-cursor.label': 'Reset feed cursor',\n 'reset-cursor-confirm.label': 'Confirm reset feed cursor',\n\n 'automation-verbose.label': 'Manage automations',\n 'automation.description': 'Manage where automations in this space run.',\n\n 'runtime.label': 'Runtime location',\n 'runtime.description': 'Determines where automations in this space run.',\n 'runtime.disabled.label': 'Disabled',\n 'runtime.local.label': 'Local',\n 'runtime.edge.label': 'EDGE (experimental)',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAIA,SAASA,YAAY;AAGrB,SAASC,YAAY;AACrB,SAASC,kBAAkB;AAEpB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACH,KAAKI,YAAYF,WAAWA,UAAU,CAAA,GAAI;QACzC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;MACzB;MACA,CAACD,KAAKI,QAAQC,GAAG,GAAG;QAClB,eAAe;QACf,0BAA0B;QAC1B,qCAAqC;QAErC,yBAAyB;QACzB,iBAAiB;QACjB,uBAAuB;QACvB,gBAAgB;QAChB,sBAAsB;QACtB,sBAAsB;QACtB,sBAAsB;QACtB,+BAA+B;QAC/B,6BAA6B;QAC7B,wBAAwB;QACxB,8BAA8B;QAC9B,4BAA4B;QAC5B,4BAA4B;QAC5B,2BAA2B;QAC3B,oBAAoB;QACpB,oBAAoB;QACpB,iBAAiB;QACjB,uBAAuB;QACvB,qBAAqB;QACrB,6BAA6B;QAC7B,wBAAwB;QACxB,+BAA+B;QAC/B,8BAA8B;QAC9B,0BAA0B;QAC1B,qCAAqC;QACrC,+BAA+B;QAE/B,iBAAiB;QACjB,mBAAmB;QACnB,sBAAsB;QACtB,8BAA8B;QAE9B,4BAA4B;QAC5B,0BAA0B;QAE1B,iBAAiB;QACjB,uBAAuB;QACvB,0BAA0B;QAC1B,uBAAuB;QACvB,sBAAsB;MACxB;IACF;EACF;;",
6
+ "names": ["Type", "meta", "Automation", "translations", "getTypename", "profile", "key"]
7
7
  }
@@ -5,7 +5,7 @@ import {
5
5
  Automation_exports,
6
6
  Runnable_exports,
7
7
  TriggerTemplate
8
- } from "../chunk-GARB7S5R.mjs";
8
+ } from "../chunk-YHK7FWGV.mjs";
9
9
  import "../chunk-J5LGTIGS.mjs";
10
10
  export {
11
11
  Automation_exports as Automation,
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ readonly plugin: {
3
+ readonly key: string;
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly author?: string | undefined;
7
+ readonly homePage?: string | undefined;
8
+ readonly source?: string | undefined;
9
+ readonly screenshots?: readonly {
10
+ readonly light?: string | undefined;
11
+ readonly dark?: string | undefined;
12
+ }[] | undefined;
13
+ readonly tags?: readonly string[] | undefined;
14
+ readonly icon?: {
15
+ readonly key: string;
16
+ readonly hue?: string | undefined;
17
+ } | undefined;
18
+ readonly spec?: string | undefined;
19
+ readonly dependsOn?: readonly string[] | undefined;
20
+ };
21
+ readonly publish?: {
22
+ readonly buildCommand?: string | undefined;
23
+ readonly outputDirectory?: string | undefined;
24
+ readonly assetBaseUrl?: string | undefined;
25
+ } | undefined;
26
+ };
27
+ export default _default;
28
+ //# sourceMappingURL=dx.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dx.config.d.ts","sourceRoot":"","sources":["../../dx.config.ts"],"names":[],"mappings":""}
@@ -1,17 +1,12 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
2
  import { OperationHandlerSet } from '@dxos/compute';
3
- export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
4
- export declare const CreateObject: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
5
- id: string;
6
- createObject: import("@dxos/plugin-space").CreateObject;
7
- inputSchema?: import("effect/Schema").Schema.AnyNoContext;
8
- customPanel?: import("react").ComponentType<import("@dxos/plugin-space").SpaceCapabilities.CreateObjectCustomPanelProps>;
9
- }>>>, Error>;
10
- export declare const LayerSpecs: Capability.LazyCapability<void, Capability.Any[], Error>;
3
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
4
+ export declare const CreateObject: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
5
+ export declare const LayerSpecs: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
11
6
  export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
12
- export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
13
- export declare const NavigationResolver: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.NavigationPathResolver>>, Error>;
14
- export declare const RegistrySync: Capability.LazyCapability<void, void, Error>;
15
- export declare const Templates: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("../types/AutomationCapabilities").Template>>[], Error>;
16
- export declare const TriggerRuntimeController: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
7
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
8
+ export declare const NavigationResolver: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
9
+ export declare const RegistrySync: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
10
+ export declare const Templates: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
11
+ export declare const TriggerRuntimeController: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
17
12
  //# sourceMappingURL=index.d.ts.map
@@ -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,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,YAAY;;;;;YAAmE,CAAC;AAC7F,eAAO,MAAM,UAAU,0DAAuF,CAAC;AAC/G,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,kBAAkB,4JAA+E,CAAC;AAC/G,eAAO,MAAM,YAAY,8CAAmE,CAAC;AAC7F,eAAO,MAAM,SAAS,8IAA4D,CAAC;AACnF,eAAO,MAAM,wBAAwB,8FAGpC,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,iEAA0E,CAAC;AACvG,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,UAAU,iEAAuF,CAAC;AAC/G,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,kBAAkB,iEAA+E,CAAC;AAC/G,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,SAAS,iEAA4D,CAAC;AACnF,eAAO,MAAM,wBAAwB,iEAGpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/navigation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAiC,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"navigation-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/navigation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAe,MAAM,mBAAmB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
2
  import { OperationHandlerSet } from '@dxos/compute';
3
- export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
4
- export declare const LayerSpecs: Capability.LazyCapability<void, Capability.Any[], Error>;
3
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
4
+ export declare const LayerSpecs: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
5
5
  export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
6
- export declare const RegistrySync: Capability.LazyCapability<void, void, Error>;
7
- export declare const Templates: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("../types/AutomationCapabilities").Template>>[], Error>;
8
- export declare const TriggerRuntimeController: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
6
+ export declare const RegistrySync: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
7
+ export declare const Templates: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
8
+ export declare const TriggerRuntimeController: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
9
9
  //# 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;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,UAAU,0DAAuF,CAAC;AAC/G,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,8CAAmE,CAAC;AAC7F,eAAO,MAAM,SAAS,8IAA4D,CAAC;AACnF,eAAO,MAAM,wBAAwB,8FAGpC,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,iEAA0E,CAAC;AACvG,eAAO,MAAM,UAAU,iEAAuF,CAAC;AAC/G,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,SAAS,iEAA4D,CAAC;AACnF,eAAO,MAAM,wBAAwB,iEAGpC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as Effect from 'effect/Effect';
2
- import { Capabilities, Capability } from '@dxos/app-framework';
3
- declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<any>>, never, never>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=react-surface.d.ts.map
@@ -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"}
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,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { type FormFieldRendererProps, type FormRootProps } from '@dxos/react-ui-form';
3
+ import { type CronSpecType } from './schema';
4
+ export type CronBuilderProps = {
5
+ value?: CronSpecType;
6
+ onChange?: (value: CronSpecType, cron: string) => void;
7
+ } & Pick<FormRootProps, 'readonly'>;
8
+ export declare function CronBuilder({ value, onChange, readonly }: CronBuilderProps): React.JSX.Element;
9
+ export declare namespace CronBuilder {
10
+ var displayName: string;
11
+ }
12
+ declare function FrequencySelector(props: FormFieldRendererProps): React.JSX.Element;
13
+ declare namespace FrequencySelector {
14
+ var displayName: string;
15
+ }
16
+ //# sourceMappingURL=CronBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CronBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/components/CronBuilder/CronBuilder.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAEL,KAAK,sBAAsB,EAE3B,KAAK,aAAa,EAGnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAGL,KAAK,YAAY,EAIlB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;oCAER,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,gBAAgB;;;;mCA0ChD,KAAK,EAAE,sBAAsB"}
@@ -0,0 +1,194 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: {
6
+ ({ value, onChange, readonly }: import("./CronBuilder").CronBuilderProps): React.JSX.Element;
7
+ displayName: string;
8
+ };
9
+ decorators: import("@storybook/react").Decorator[];
10
+ parameters: {
11
+ layout: string;
12
+ translations: ({
13
+ readonly 'en-US': {
14
+ readonly [x: string]: {
15
+ readonly 'typename.label': 'Automation';
16
+ readonly 'typename.label_zero': 'Automations';
17
+ readonly 'typename.label_one': 'Automation';
18
+ readonly 'typename.label_other': 'Automations';
19
+ readonly 'object-name.placeholder': 'New automation';
20
+ readonly 'add-object.label': 'Add automation';
21
+ readonly 'rename-object.label': 'Rename automation';
22
+ readonly 'delete-object.label': 'Delete automation';
23
+ readonly 'plugin.name'?: undefined;
24
+ readonly 'automation-panel.label'?: undefined;
25
+ readonly 'create-panel.template.placeholder'?: undefined;
26
+ readonly 'automation-name.label'?: undefined;
27
+ readonly 'general.title'?: undefined;
28
+ readonly 'general.description'?: undefined;
29
+ readonly 'action.title'?: undefined;
30
+ readonly 'action.description'?: undefined;
31
+ readonly 'action.placeholder'?: undefined;
32
+ readonly 'action-input.label'?: undefined;
33
+ readonly 'action-kind.operation.label'?: undefined;
34
+ readonly 'action-kind.routine.label'?: undefined;
35
+ readonly 'trigger-picker.title'?: undefined;
36
+ readonly 'trigger-picker.description'?: undefined;
37
+ readonly 'trigger-kind.placeholder'?: undefined;
38
+ readonly 'trigger-kind.timer.label'?: undefined;
39
+ readonly 'trigger-kind.feed.label'?: undefined;
40
+ readonly 'cron.placeholder'?: undefined;
41
+ readonly 'feed.placeholder'?: undefined;
42
+ readonly 'enabled.label'?: undefined;
43
+ readonly 'enabled.description'?: undefined;
44
+ readonly 'add-trigger.label'?: undefined;
45
+ readonly 'add-trigger-first.message'?: undefined;
46
+ readonly 'remove-trigger.label'?: undefined;
47
+ readonly 'select-action-first.message'?: undefined;
48
+ readonly 'automation-companion.label'?: undefined;
49
+ readonly 'no-automations.message'?: undefined;
50
+ readonly 'automation-not-associated.message'?: undefined;
51
+ readonly 'automation-detached.message'?: undefined;
52
+ readonly 'testing.title'?: undefined;
53
+ readonly 'force-run.label'?: undefined;
54
+ readonly 'reset-cursor.label'?: undefined;
55
+ readonly 'reset-cursor-confirm.label'?: undefined;
56
+ readonly 'automation-verbose.label'?: undefined;
57
+ readonly 'automation.description'?: undefined;
58
+ readonly 'runtime.label'?: undefined;
59
+ readonly 'runtime.description'?: undefined;
60
+ readonly 'runtime.disabled.label'?: undefined;
61
+ readonly 'runtime.local.label'?: undefined;
62
+ readonly 'runtime.edge.label'?: undefined;
63
+ } | {
64
+ readonly 'typename.label'?: undefined;
65
+ readonly 'typename.label_zero'?: undefined;
66
+ readonly 'typename.label_one'?: undefined;
67
+ readonly 'typename.label_other'?: undefined;
68
+ readonly 'object-name.placeholder'?: undefined;
69
+ readonly 'add-object.label'?: undefined;
70
+ readonly 'rename-object.label'?: undefined;
71
+ readonly 'delete-object.label'?: undefined;
72
+ readonly 'plugin.name': 'Automation';
73
+ readonly 'automation-panel.label': 'Automations';
74
+ readonly 'create-panel.template.placeholder': 'Search templates...';
75
+ readonly 'automation-name.label': 'Name';
76
+ readonly 'general.title': 'General';
77
+ readonly 'general.description': 'Name and status.';
78
+ readonly 'action.title': 'Action';
79
+ readonly 'action.description': 'What this automation runs.';
80
+ readonly 'action.placeholder': 'Select an operation or routine';
81
+ readonly 'action-input.label': 'Input';
82
+ readonly 'action-kind.operation.label': 'Operation';
83
+ readonly 'action-kind.routine.label': 'Routine';
84
+ readonly 'trigger-picker.title': 'Trigger';
85
+ readonly 'trigger-picker.description': 'When this automation runs.';
86
+ readonly 'trigger-kind.placeholder': 'Select trigger type';
87
+ readonly 'trigger-kind.timer.label': 'Schedule';
88
+ readonly 'trigger-kind.feed.label': 'Feed';
89
+ readonly 'cron.placeholder': '0 0 * * *';
90
+ readonly 'feed.placeholder': 'Select a feed';
91
+ readonly 'enabled.label': 'Enabled';
92
+ readonly 'enabled.description': 'Turn this automation on or off.';
93
+ readonly 'add-trigger.label': 'Add trigger';
94
+ readonly 'add-trigger-first.message': 'Add a trigger to enable.';
95
+ readonly 'remove-trigger.label': 'Remove';
96
+ readonly 'select-action-first.message': 'Select an action first.';
97
+ readonly 'automation-companion.label': 'Automation';
98
+ readonly 'no-automations.message': 'No automations for this object.';
99
+ readonly 'automation-not-associated.message': 'Not yet associated with this object.';
100
+ readonly 'automation-detached.message': 'No longer associated with this object.';
101
+ readonly 'testing.title': 'Testing';
102
+ readonly 'force-run.label': 'Force run';
103
+ readonly 'reset-cursor.label': 'Reset feed cursor';
104
+ readonly 'reset-cursor-confirm.label': 'Confirm reset feed cursor';
105
+ readonly 'automation-verbose.label': 'Manage automations';
106
+ readonly 'automation.description': 'Manage where automations in this space run.';
107
+ readonly 'runtime.label': 'Runtime location';
108
+ readonly 'runtime.description': 'Determines where automations in this space run.';
109
+ readonly 'runtime.disabled.label': 'Disabled';
110
+ readonly 'runtime.local.label': 'Local';
111
+ readonly 'runtime.edge.label': 'EDGE (experimental)';
112
+ };
113
+ };
114
+ } | {
115
+ readonly 'en-US': {
116
+ readonly "@dxos/react-ui-form": {
117
+ readonly 'ref-editor.placeholder': "Type '@' to add a reference, or enter a value";
118
+ readonly 'ref-editor-auto.placeholder': 'Search by name, or enter a value';
119
+ readonly 'fields.label': 'Fields';
120
+ readonly 'hidden-fields.label': 'Hidden Fields';
121
+ readonly 'empty-readonly-ref-field.label': '(none)';
122
+ readonly 'field-property.label': 'Property';
123
+ readonly 'field-property.placeholder': 'Property name';
124
+ readonly 'field-format.label': 'Type';
125
+ readonly 'field-path.label': 'Field path';
126
+ readonly 'remove-item.button': 'Delete item';
127
+ readonly 'add-item.button': 'Add item';
128
+ readonly 'add-property-button.label': 'Add property';
129
+ readonly 'boolean-input-true.value': 'Yes';
130
+ readonly 'boolean-input-false.value': 'No';
131
+ readonly 'show-field.label': 'Show field';
132
+ readonly 'hide-field.label': 'Hide field';
133
+ readonly 'expand-fields.label': 'Expand';
134
+ readonly 'collapse-fields.label': 'Collapse';
135
+ readonly 'delete-field.label': 'Delete field';
136
+ readonly 'create-option.label': 'Create';
137
+ readonly 'add-tag.label': 'Add tag';
138
+ readonly 'ref-field-combobox-input.placeholder': 'Search\u2026';
139
+ readonly 'ref-field.placeholder': 'Select\u2026';
140
+ readonly 'ref-field.placeholder_one': 'Select\u2026';
141
+ readonly 'ref-field.placeholder_other': 'Select items\u2026';
142
+ readonly 'example.placeholder': 'Example';
143
+ readonly 'latitude.placeholder': 'Latitude (e.g., 40.7128)';
144
+ readonly 'longitude.placeholder': 'Longitude (e.g., -74.0060)';
145
+ readonly 'cancel-button.label': 'Cancel';
146
+ readonly 'save-button.label': 'Save';
147
+ readonly 'create-text.label': 'Create text';
148
+ readonly 'format.boolean.label': 'Boolean';
149
+ readonly 'format.currency.label': 'Currency';
150
+ readonly 'format.date.label': 'Date';
151
+ readonly 'format.date-time.label': 'DateTime';
152
+ readonly 'format.did.label': 'DID';
153
+ readonly 'format.duration.label': 'Duration';
154
+ readonly 'format.dxn.label': 'DXN';
155
+ readonly 'format.email.label': 'Email';
156
+ readonly 'format.formula.label': 'Formula';
157
+ readonly 'format.hostname.label': 'Hostname';
158
+ readonly 'format.integer.label': 'Integer';
159
+ readonly 'format.json.label': 'JSON';
160
+ readonly 'format.lnglat.label': 'Geopoint';
161
+ readonly 'format.markdown.label': 'Markdown';
162
+ readonly 'format.percent.label': 'Percent';
163
+ readonly 'format.ref.label': 'Reference';
164
+ readonly 'format.regex.label': 'RegExp';
165
+ readonly 'format.string.label': 'String';
166
+ readonly 'format.single-select.label': 'Select';
167
+ readonly 'format.multi-select.label': 'Multi-select';
168
+ readonly 'format.text.label': 'Long text';
169
+ readonly 'format.time.label': 'Time';
170
+ readonly 'format.timestamp.label': 'Timestamp';
171
+ readonly 'format.user.label': 'User';
172
+ readonly 'format.number.label': 'Number';
173
+ readonly 'format.uri.label': 'URI';
174
+ readonly 'format.url.label': 'URL';
175
+ readonly 'format.uuid.label': 'UUID';
176
+ readonly 'latitude.label': 'Latitude';
177
+ readonly 'longitude.label': 'Longitude';
178
+ readonly 'select-option.label': 'Label';
179
+ readonly 'select-option-label.placeholder': 'Option label';
180
+ readonly 'select-option-delete.button': 'Delete';
181
+ readonly 'select-option-add.button': 'Add option';
182
+ readonly 'system-schema.title': 'System type';
183
+ readonly 'system-schema.description': 'System type: cannot add or remove fields.';
184
+ readonly 'remove.button': 'Delete';
185
+ };
186
+ };
187
+ })[];
188
+ };
189
+ };
190
+ export default meta;
191
+ type Story = StoryObj<typeof meta>;
192
+ export declare const Default: Story;
193
+ export declare const Readonly: Story;
194
+ //# sourceMappingURL=CronBuilder.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CronBuilder.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/CronBuilder/CronBuilder.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AA8CxC,QAAA,MAAM,IAAI;;;;;;;;QAKN,MAAM;QACN,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEoB,CAAC;eAEtB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { CronSpecType } from './schema';
2
+ /**
3
+ * Derives a 5-field standard cron expression from a decomposed CronSpec value.
4
+ * Fields: minute hour day-of-month month day-of-week
5
+ */
6
+ export declare const toCron: (value: CronSpecType) => string;
7
+ /**
8
+ * Parses a 5-field cron expression into a CronSpec value.
9
+ * Recognises common patterns (minutely, hourly, daily, weekly, monthly) and falls back to `custom`.
10
+ */
11
+ export declare const fromCron: (cron: string) => CronSpecType;
12
+ /**
13
+ * Returns a human-readable description of a cron expression, e.g. "At 09:00 on Monday".
14
+ * Falls back to the raw expression string on parse errors.
15
+ */
16
+ export declare const describeCron: (cron: string) => string;
17
+ //# sourceMappingURL=cron.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../../../src/components/CronBuilder/cron.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,UAAU,CAAC;AAYxD;;;GAGG;AACH,eAAO,MAAM,MAAM,UAAW,YAAY,KAAG,MAwB5C,CAAC;AAuBF;;;GAGG;AACH,eAAO,MAAM,QAAQ,SAAU,MAAM,KAAG,YAoDvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAU,MAAM,KAAG,MAM3C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cron.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cron.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/CronBuilder/cron.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './CronBuilder';
2
+ export * from './cron';
3
+ export * from './schema';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CronBuilder/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}