@eventcatalog/core 4.12.2 → 5.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/LICENSE +226 -95
  2. package/NOTICE +30 -0
  3. package/README.md +3 -2
  4. package/dist/analytics/analytics.cjs +1 -1
  5. package/dist/analytics/analytics.js +2 -2
  6. package/dist/analytics/log-build.cjs +43 -16
  7. package/dist/analytics/log-build.d.cts +6 -5
  8. package/dist/analytics/log-build.d.ts +6 -5
  9. package/dist/analytics/log-build.js +4 -3
  10. package/dist/{chunk-U4YJSTGV.js → chunk-AYNZXUB5.js} +2 -10
  11. package/dist/{chunk-IVVM67LN.js → chunk-CR6AK5LR.js} +1 -1
  12. package/dist/{chunk-GTIC4R74.js → chunk-LR7AGRHN.js} +13 -16
  13. package/dist/chunk-TQLRG35T.js +203 -0
  14. package/dist/{chunk-WK4J6FP3.js → chunk-TWN43V4T.js} +1 -1
  15. package/dist/{chunk-ZW3MYAWF.js → chunk-WAIADKQE.js} +1 -1
  16. package/dist/{chunk-RPVA2SZY.js → chunk-ZHKEARLJ.js} +1 -1
  17. package/dist/constants.cjs +1 -1
  18. package/dist/constants.js +1 -1
  19. package/dist/eventcatalog.cjs +407 -291
  20. package/dist/eventcatalog.config.d.cts +2 -3
  21. package/dist/eventcatalog.config.d.ts +2 -3
  22. package/dist/eventcatalog.js +30 -93
  23. package/dist/federation/content-cache.d.cts +0 -5
  24. package/dist/federation/content-cache.d.ts +0 -5
  25. package/dist/federation/diagnostics.d.cts +0 -5
  26. package/dist/federation/diagnostics.d.ts +0 -5
  27. package/dist/federation/federate.cjs +0 -9
  28. package/dist/federation/federate.d.cts +0 -5
  29. package/dist/federation/federate.d.ts +0 -5
  30. package/dist/federation/federate.js +2 -3
  31. package/dist/federation/filesystem-source-provider.d.cts +0 -5
  32. package/dist/federation/filesystem-source-provider.d.ts +0 -5
  33. package/dist/federation/github-source-provider.d.cts +0 -5
  34. package/dist/federation/github-source-provider.d.ts +0 -5
  35. package/dist/federation/output-transaction.d.cts +0 -4
  36. package/dist/federation/output-transaction.d.ts +0 -4
  37. package/dist/federation/public-assets.d.cts +0 -5
  38. package/dist/federation/public-assets.d.ts +0 -5
  39. package/dist/federation/source-provider.d.cts +0 -5
  40. package/dist/federation/source-provider.d.ts +0 -5
  41. package/dist/federation/types.d.cts +0 -5
  42. package/dist/federation/types.d.ts +0 -5
  43. package/dist/generate.cjs +1 -1
  44. package/dist/generate.js +3 -3
  45. package/dist/license-C1y-56bb.d.cts +23 -0
  46. package/dist/license-C1y-56bb.d.ts +23 -0
  47. package/dist/runtime-dependencies/@eventcatalog__visualiser__layout.mjs +3 -0
  48. package/dist/runtime-dependencies/@modelcontextprotocol__ext-apps.mjs +3 -0
  49. package/dist/runtime-dependencies/@modelcontextprotocol__ext-apps__react.mjs +3 -0
  50. package/dist/runtime-dependencies/@modelcontextprotocol__ext-apps__server.mjs +3 -0
  51. package/dist/runtime-dependencies/@modelcontextprotocol__sdk__types.js.mjs +3 -0
  52. package/dist/runtime-dependencies/manifest.json +12 -1
  53. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__graphql.mjs +3 -0
  54. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__json.mjs +3 -0
  55. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__markup.mjs +3 -0
  56. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__protobuf.mjs +3 -0
  57. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__yaml.mjs +3 -0
  58. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__styles__prism__one-dark.mjs +3 -0
  59. package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__styles__prism__one-light.mjs +3 -0
  60. package/dist/utils/cli-logger.cjs +1 -1
  61. package/dist/utils/cli-logger.js +2 -2
  62. package/dist/utils/license-status.cjs +240 -0
  63. package/dist/utils/license-status.d.cts +28 -0
  64. package/dist/utils/license-status.d.ts +28 -0
  65. package/dist/utils/license-status.js +12 -0
  66. package/eventcatalog/astro.config.mjs +1 -1
  67. package/eventcatalog/integrations/eventcatalog-runtime.mjs +1 -1
  68. package/eventcatalog/src/components/ChatPanel/ChatPanel.tsx +29 -19
  69. package/eventcatalog/src/components/ChatPanel/OfflineReply.tsx +74 -0
  70. package/eventcatalog/src/components/FieldsExplorer/FieldFilters.tsx +24 -28
  71. package/eventcatalog/src/components/FieldsExplorer/FieldNodeGraph.tsx +16 -11
  72. package/eventcatalog/src/components/FieldsExplorer/FieldsExplorer.tsx +4 -218
  73. package/eventcatalog/src/components/FieldsExplorer/FieldsTable.tsx +27 -36
  74. package/eventcatalog/src/components/Header.astro +43 -58
  75. package/eventcatalog/src/components/Lists/PillListFlat.styles.css +17 -17
  76. package/eventcatalog/src/components/MDX/EntityMap/EntityMap.astro +1 -1
  77. package/eventcatalog/src/components/MDX/Flow/Flow.astro +4 -0
  78. package/eventcatalog/src/components/MDX/NodeGraph/AstroNodeGraph.tsx +14 -0
  79. package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.astro +49 -18
  80. package/eventcatalog/src/components/MDX/RemoteFile.astro +2 -24
  81. package/eventcatalog/src/components/SchemaExplorer/ApiAccessSection.tsx +59 -93
  82. package/eventcatalog/src/components/SchemaExplorer/ApiContentViewer.tsx +1 -32
  83. package/eventcatalog/src/components/SchemaExplorer/DiffViewer.tsx +20 -67
  84. package/eventcatalog/src/components/SchemaExplorer/SchemaContentViewer.tsx +2 -11
  85. package/eventcatalog/src/components/SchemaExplorer/SchemaDetailsPanel.tsx +11 -60
  86. package/eventcatalog/src/components/SchemaExplorer/SchemaExplorer.tsx +1 -3
  87. package/eventcatalog/src/components/SchemaExplorer/SchemaPageViewer.tsx +0 -3
  88. package/eventcatalog/src/components/SchemaExplorer/VersionHistoryModal.tsx +2 -9
  89. package/eventcatalog/src/components/SchemaExplorer/parse-schema.ts +46 -0
  90. package/eventcatalog/src/components/SchemaExplorer/utils.ts +11 -0
  91. package/eventcatalog/src/components/Settings/AssistantSettingsForm.tsx +2 -9
  92. package/eventcatalog/src/components/Settings/LicenseSettings.tsx +288 -0
  93. package/eventcatalog/src/components/Settings/LlmAccessSettingsForm.tsx +3 -19
  94. package/eventcatalog/src/components/Settings/McpSettingsForm.tsx +85 -30
  95. package/eventcatalog/src/components/Settings/SettingsShared.tsx +7 -75
  96. package/eventcatalog/src/components/SideNav/CustomDocsNav.astro +2 -2
  97. package/eventcatalog/src/components/TrialBadge.astro +82 -0
  98. package/eventcatalog/src/content.config.ts +9 -90
  99. package/eventcatalog/src/{enterprise → features}/ai/chat-api.ts +22 -34
  100. package/eventcatalog/src/{enterprise → features}/analytics/adapters/ga4.ts +0 -5
  101. package/eventcatalog/src/{enterprise → features}/analytics/adapters/gtm.ts +0 -5
  102. package/eventcatalog/src/{enterprise → features}/analytics/adapters/posthog.ts +0 -5
  103. package/eventcatalog/src/{enterprise → features}/analytics/components/AnalyticsHead.astro +2 -4
  104. package/eventcatalog/src/{enterprise → features}/analytics/components/AnalyticsTracker.astro +2 -4
  105. package/eventcatalog/src/{enterprise → features}/analytics/tracker.ts +0 -5
  106. package/eventcatalog/src/{enterprise → features}/api/catalog.ts +0 -5
  107. package/eventcatalog/src/{enterprise → features}/auth/[...auth].ts +0 -5
  108. package/eventcatalog/src/{enterprise → features}/auth/middleware/middleware-auth.ts +0 -5
  109. package/eventcatalog/src/{enterprise → features}/auth/middleware/middleware.ts +0 -5
  110. package/eventcatalog/src/{enterprise → features}/collections/custom-pages.ts +0 -5
  111. package/eventcatalog/src/{enterprise → features}/collections/index.ts +0 -5
  112. package/eventcatalog/src/{enterprise → features}/collections/resource-docs.ts +0 -5
  113. package/eventcatalog/src/{enterprise → features}/custom-documentation/collection.ts +0 -5
  114. package/eventcatalog/src/features/custom-documentation/components/CustomDocsNav/CustomDocsNav.astro +9 -0
  115. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/CustomDocsNavWrapper.tsx +0 -5
  116. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/components/NestedItem.tsx +1 -6
  117. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/components/NoResultsFound.tsx +0 -5
  118. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/index.tsx +1 -6
  119. package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/types.ts +0 -5
  120. package/eventcatalog/src/{enterprise/custom-documentation/pages/docs/custom/index.astro → features/custom-documentation/components/CustomDocumentationPage.astro} +5 -5
  121. package/eventcatalog/src/{enterprise → features}/custom-documentation/utils/badge-styles.ts +0 -5
  122. package/eventcatalog/src/{enterprise → features}/custom-documentation/utils/custom-docs.ts +1 -6
  123. package/eventcatalog/src/{enterprise → features}/custom-documentation/utils/docs-search.ts +0 -5
  124. package/eventcatalog/src/{enterprise → features}/custom-pages/routes.ts +0 -5
  125. package/eventcatalog/src/{enterprise → features}/directory/user-team-directory.ts +0 -5
  126. package/eventcatalog/src/{enterprise → features}/fields/field-extractor.ts +0 -5
  127. package/eventcatalog/src/{enterprise → features}/fields/field-indexer.ts +0 -5
  128. package/eventcatalog/src/{enterprise → features}/fields/fields-db.ts +0 -5
  129. package/eventcatalog/src/{enterprise → features}/fields/pages/api/fields.ts +1 -6
  130. package/eventcatalog/src/{enterprise → features}/fields/pages/fields.astro +1 -2
  131. package/eventcatalog/src/{enterprise → features}/integrations/eventcatalog-features.ts +17 -75
  132. package/eventcatalog/src/features/mcp/apps/architecture-diagram/links.ts +59 -0
  133. package/eventcatalog/src/features/mcp/apps/architecture-diagram/node-chat.tsx +299 -0
  134. package/eventcatalog/src/features/mcp/apps/architecture-diagram/shared.ts +14 -0
  135. package/eventcatalog/src/features/mcp/apps/architecture-diagram/view.tsx +454 -0
  136. package/eventcatalog/src/features/mcp/apps/generated/viewer.html +432 -0
  137. package/eventcatalog/src/features/mcp/apps/mermaid-stub.ts +10 -0
  138. package/eventcatalog/src/features/mcp/apps/schema-viewer/schema-code.tsx +65 -0
  139. package/eventcatalog/src/features/mcp/apps/schema-viewer/shared.ts +23 -0
  140. package/eventcatalog/src/features/mcp/apps/schema-viewer/view.tsx +170 -0
  141. package/eventcatalog/src/features/mcp/apps/shared/app-view.tsx +98 -0
  142. package/eventcatalog/src/features/mcp/apps/shared/resource-types.ts +15 -0
  143. package/eventcatalog/src/features/mcp/apps/viewer/shared.ts +24 -0
  144. package/eventcatalog/src/features/mcp/apps/viewer/styles.css +25 -0
  145. package/eventcatalog/src/features/mcp/apps/viewer/view.tsx +59 -0
  146. package/eventcatalog/src/features/mcp/mcp-app-icons.ts +63 -0
  147. package/eventcatalog/src/features/mcp/mcp-apps.ts +160 -0
  148. package/eventcatalog/src/{enterprise → features}/mcp/mcp-auth.ts +0 -5
  149. package/eventcatalog/src/{enterprise → features}/mcp/mcp-scope.ts +7 -7
  150. package/eventcatalog/src/{enterprise → features}/mcp/mcp-scoped-tools.ts +47 -40
  151. package/eventcatalog/src/{enterprise → features}/mcp/mcp-server.ts +347 -34
  152. package/eventcatalog/src/{enterprise → features}/mcp/oauth-protected-resource.ts +0 -5
  153. package/eventcatalog/src/features/mcp/schema-viewer.ts +24 -0
  154. package/eventcatalog/src/{enterprise → features}/tools/catalog-tools.ts +133 -102
  155. package/eventcatalog/src/features/tools/index.ts +5 -0
  156. package/eventcatalog/src/{enterprise → features}/visualizer-layout/reset.ts +0 -5
  157. package/eventcatalog/src/{enterprise → features}/visualizer-layout/save.ts +0 -5
  158. package/eventcatalog/src/layouts/BaseLayout.astro +2 -2
  159. package/eventcatalog/src/layouts/Footer.astro +31 -39
  160. package/eventcatalog/src/layouts/SettingsLayout.astro +6 -6
  161. package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +7 -37
  162. package/eventcatalog/src/{enterprise → pages}/api/schemas/[collection]/[id]/[version]/index.ts +0 -22
  163. package/eventcatalog/src/{enterprise → pages}/api/schemas/services/[id]/[version]/[specification]/index.ts +0 -19
  164. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/_index.data.ts +2 -6
  165. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +1 -5
  166. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/_index.data.ts +2 -6
  167. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +1 -5
  168. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId].md.ts +2 -6
  169. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId].mdx.ts +2 -6
  170. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +9 -5
  171. package/eventcatalog/src/pages/docs/custom/[...path]/index.astro +12 -0
  172. package/eventcatalog/src/{enterprise/custom-documentation/pages/docs/custom/root-index.astro → pages/docs/custom/index.astro} +1 -23
  173. package/eventcatalog/src/pages/docs/llm/llms-full.txt.ts +4 -9
  174. package/eventcatalog/src/pages/docs/llm/llms.txt.ts +4 -4
  175. package/eventcatalog/src/pages/docs/llm/schemas.txt.ts +0 -11
  176. package/eventcatalog/src/pages/docs/services/[id]/[docType]/[docId]/index.astro +2 -2
  177. package/eventcatalog/src/pages/index.astro +2 -2
  178. package/eventcatalog/src/pages/schemas/[type]/[id]/[version]/index.astro +0 -3
  179. package/eventcatalog/src/pages/schemas/explorer/index.astro +1 -4
  180. package/eventcatalog/src/pages/settings/assistant.astro +2 -4
  181. package/eventcatalog/src/pages/settings/license.astro +18 -0
  182. package/eventcatalog/src/pages/settings/llm-access.astro +1 -4
  183. package/eventcatalog/src/pages/settings/mcp.astro +33 -4
  184. package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/_index.data.ts +1 -2
  185. package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/data/index.astro +2 -45
  186. package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/entity-map/index.astro +1 -1
  187. package/eventcatalog/src/pages/visualiser/[type]/[id]/[version].mermaid.ts +7 -109
  188. package/eventcatalog/src/pages/visualiser/_mermaid-route.ts +78 -0
  189. package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/_index.data.ts +44 -0
  190. package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/entity-map/index.astro +1 -1
  191. package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/index.astro +56 -0
  192. package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/systems-context/index.astro +3 -40
  193. package/eventcatalog/src/pages/visualiser/domains/[id]/[version].mermaid.ts +20 -0
  194. package/eventcatalog/src/pages/visualiser/systems/[id]/[version]/_index.data.ts +29 -0
  195. package/eventcatalog/src/pages/visualiser/systems/[id]/[version]/context/index.astro +3 -38
  196. package/eventcatalog/src/pages/visualiser/systems/[id]/[version]/index.astro +56 -0
  197. package/eventcatalog/src/pages/visualiser/systems/[id]/[version].mermaid.ts +20 -0
  198. package/eventcatalog/src/stores/sidebar-store/builders/agent.ts +1 -1
  199. package/eventcatalog/src/stores/sidebar-store/builders/container.ts +1 -1
  200. package/eventcatalog/src/stores/sidebar-store/builders/data-product.ts +1 -1
  201. package/eventcatalog/src/stores/sidebar-store/builders/domain.ts +7 -32
  202. package/eventcatalog/src/stores/sidebar-store/builders/entity.ts +1 -1
  203. package/eventcatalog/src/stores/sidebar-store/builders/message.ts +1 -1
  204. package/eventcatalog/src/stores/sidebar-store/builders/service.ts +2 -8
  205. package/eventcatalog/src/stores/sidebar-store/builders/system.ts +2 -12
  206. package/eventcatalog/src/stores/sidebar-store/custom-sidebar.ts +0 -10
  207. package/eventcatalog/src/stores/sidebar-store/state.ts +4 -6
  208. package/eventcatalog/src/styles/theme.css +22 -18
  209. package/eventcatalog/src/styles/themes/forest.css +8 -8
  210. package/eventcatalog/src/styles/themes/ocean.css +8 -8
  211. package/eventcatalog/src/styles/themes/sapphire.css +8 -8
  212. package/eventcatalog/src/styles/themes/sunset.css +8 -8
  213. package/eventcatalog/src/utils/clipboard.ts +4 -4
  214. package/eventcatalog/src/utils/collections/flow-step-schema.ts +117 -0
  215. package/eventcatalog/src/utils/collections/pointer-schema.ts +7 -0
  216. package/eventcatalog/src/utils/collections/resource-docs.ts +677 -14
  217. package/eventcatalog/src/utils/collections/schema-loader.ts +0 -5
  218. package/eventcatalog/src/utils/feature.ts +14 -23
  219. package/eventcatalog/src/utils/license.ts +114 -0
  220. package/eventcatalog/src/utils/node-graphs/architecture-diagram-types.ts +32 -0
  221. package/eventcatalog/src/utils/node-graphs/architecture-diagram.ts +84 -0
  222. package/eventcatalog/src/utils/node-graphs/catalog-force-graph.ts +1 -0
  223. package/eventcatalog/src/utils/node-graphs/channel-node-graph.ts +4 -25
  224. package/eventcatalog/src/utils/node-graphs/container-node-graph.ts +12 -39
  225. package/eventcatalog/src/utils/node-graphs/data-products-node-graph.ts +11 -27
  226. package/eventcatalog/src/utils/node-graphs/domain-levels-node-graph.ts +679 -0
  227. package/eventcatalog/src/utils/node-graphs/domains-node-graph.ts +3 -20
  228. package/eventcatalog/src/utils/node-graphs/export-mermaid.ts +62 -4
  229. package/eventcatalog/src/utils/node-graphs/field-node-graph.ts +8 -23
  230. package/eventcatalog/src/utils/node-graphs/flow-lanes.ts +119 -0
  231. package/eventcatalog/src/utils/node-graphs/flows-node-graph.ts +153 -45
  232. package/eventcatalog/src/utils/node-graphs/layout-node-graph.ts +28 -0
  233. package/eventcatalog/src/utils/node-graphs/layout-persistence.ts +3 -3
  234. package/eventcatalog/src/utils/node-graphs/message-node-graph.ts +16 -34
  235. package/eventcatalog/src/utils/node-graphs/services-node-graph.ts +11 -25
  236. package/eventcatalog/src/utils/node-graphs/system-context-node-graph.ts +18 -54
  237. package/eventcatalog/src/utils/node-graphs/system-levels-node-graph.ts +59 -0
  238. package/eventcatalog/src/utils/node-graphs/systems-node-graph.ts +20 -80
  239. package/eventcatalog/src/utils/node-graphs/utils/utils.ts +1 -78
  240. package/eventcatalog/src/utils/trial.ts +36 -0
  241. package/eventcatalog/tsconfig.json +1 -1
  242. package/package.json +11 -11
  243. package/dist/chunk-FV56YFM4.js +0 -7
  244. package/dist/federation/entitlement.cjs +0 -31
  245. package/dist/federation/entitlement.d.cts +0 -12
  246. package/dist/federation/entitlement.d.ts +0 -12
  247. package/dist/federation/entitlement.js +0 -6
  248. package/dist/runtime-dependencies/dagre.mjs +0 -3
  249. package/eventcatalog/src/components/Settings/BillingSettingsForm.tsx +0 -265
  250. package/eventcatalog/src/enterprise/LICENSE +0 -57
  251. package/eventcatalog/src/enterprise/README.md +0 -5
  252. package/eventcatalog/src/enterprise/collections/resource-docs-utils.ts +0 -691
  253. package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/CustomDocsNav.astro +0 -9
  254. package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/[...path]/index.astro +0 -18
  255. package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/feature.astro +0 -171
  256. package/eventcatalog/src/enterprise/feature.ts +0 -75
  257. package/eventcatalog/src/enterprise/tools/index.ts +0 -10
  258. package/eventcatalog/src/hooks/eventcatalog-visualizer.ts +0 -126
  259. package/eventcatalog/src/pages/settings/billing.astro +0 -17
  260. package/eventcatalog/src/pages/visualiser/domain-integrations/index.astro +0 -26
  261. package/eventcatalog/src/types/mcp-modules.d.ts +0 -67
  262. package/eventcatalog/src/utils/node-graphs/domains-canvas.ts +0 -261
  263. package/eventcatalog/src/utils/node-graphs/export-node-graph.ts +0 -91
  264. /package/eventcatalog/src/{enterprise → features}/auth/error.astro +0 -0
  265. /package/eventcatalog/src/{enterprise → features}/auth/login.astro +0 -0
  266. /package/eventcatalog/src/{enterprise → features}/auth/unauthorized.astro +0 -0
  267. /package/eventcatalog/src/{enterprise/custom-documentation/pages → pages}/docs/custom/[...path]/_index.data.ts +0 -0
  268. /package/eventcatalog/src/{enterprise/custom-documentation/pages → pages}/docs/custom/[...path].mdx.ts +0 -0
package/LICENSE CHANGED
@@ -1,95 +1,226 @@
1
- EventCatalog Core is distributed under a mixed-license model.
2
-
3
- The EventCatalog Commercial License below applies to these source paths:
4
-
5
- - `eventcatalog/src/enterprise/**`
6
- - `src/federation/**`
7
-
8
- The EventCatalog Commercial License also applies to any portion of a compiled,
9
- bundled, copied, minified, or otherwise generated artifact derived from those
10
- paths, regardless of its output location, including artifacts under `dist/**`
11
- and `bin/**`.
12
-
13
- The MIT License below applies to all remaining portions of this package.
14
-
15
- MIT License
16
-
17
- Copyright (c) 2022-2026 boyney123
18
-
19
- Permission is hereby granted, free of charge, to any person obtaining a copy
20
- of this software and associated documentation files (the "Software"), to deal
21
- in the Software without restriction, including without limitation the rights
22
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23
- copies of the Software, and to permit persons to whom the Software is
24
- furnished to do so, subject to the following conditions:
25
-
26
- The above copyright notice and this permission notice shall be included in all
27
- copies or substantial portions of the Software.
28
-
29
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
- SOFTWARE.
36
-
37
- ---
38
-
39
- The EventCatalog Commercial License (the "Commercial License")
40
- Copyright (c) 2022-2026 EventCatalog Ltd
41
-
42
- With regard to the EventCatalog Software:
43
-
44
- This software and associated documentation files (the "Software") may only be
45
- used in production, if you (and any entity that you represent) have agreed to,
46
- and are in compliance with, the EventCatalog Terms of Service available
47
- at https://www.eventcatalog.dev/terms, or other agreements governing the use of
48
- the Software, as mutually agreed by you and EventCatalog Ltd ("EventCatalog"),
49
- and otherwise have a valid EventCatalog Starter, Scale, or Enterprise
50
- subscription ("Commercial Subscription").
51
-
52
- Subject to the foregoing sentence, you are free to modify this Software and
53
- publish patches to the Software. You agree that EventCatalog and/or its
54
- licensors (as applicable) retain all right, title and interest in and to all
55
- such modifications and/or patches, and all such modifications and/or patches
56
- may only be used, copied, modified, displayed, distributed, or otherwise
57
- exploited with a valid Commercial Subscription.
58
-
59
- A 14-day free trial of premium features is available at
60
- https://eventcatalog.cloud/ to help you evaluate the Software before purchasing
61
- a Commercial Subscription.
62
-
63
- Notwithstanding the foregoing, you may copy and modify the Software for
64
- development and testing purposes, without requiring a subscription. You agree
65
- that EventCatalog and/or its licensors (as applicable) retain all right, title
66
- and interest in and to all such modifications. You are not granted any other
67
- rights beyond what is expressly stated herein. Subject to the foregoing, it is
68
- forbidden to copy, merge, publish, distribute, sublicense, and/or sell the
69
- Software.
70
-
71
- You may not move, change, disable, or circumvent the license key functionality
72
- in the Software, and you may not remove or obscure any functionality in the
73
- Software that is protected by the license key.
74
-
75
- This Software is source-available for the purposes of transparency and
76
- auditability. Source availability does not constitute a grant of rights to use
77
- the Software in production without a valid Commercial Subscription.
78
-
79
- This Commercial License applies only to the part of this Software that is not
80
- distributed under the MIT license. Any part of this Software distributed under
81
- the MIT license is copyrighted under the MIT license. The full text of this
82
- Commercial License shall be included in all copies or substantial portions of
83
- the Software.
84
-
85
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
86
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
87
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
88
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
89
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
90
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
91
- SOFTWARE.
92
-
93
- For all third party components incorporated into the EventCatalog Software,
94
- those components are licensed under the original license provided by the owner
95
- of the applicable component.
1
+ License text copyright (c) 2024 MariaDB plc, All Rights Reserved.
2
+ "Business Source License" is a trademark of MariaDB plc.
3
+
4
+ Parameters
5
+
6
+ Licensor: EventCatalog Ltd (company number 15764703)
7
+ Licensed Work: The @eventcatalog/core package, version 5.0, including
8
+ its pre-releases, or later. The Licensed
9
+ Work is (c) 2026 EventCatalog Ltd.
10
+ Additional Use Grant: You may make Production use of the Licensed Work,
11
+ provided that You are an Eligible User and Your use
12
+ does not include a Hosted Offering.
13
+
14
+ 1. Eligible Users
15
+
16
+ An "Eligible User" is any of the following:
17
+
18
+ (a) an individual using the Licensed Work on their own
19
+ behalf, and not on behalf of or for the benefit of
20
+ an Organisation;
21
+
22
+ (b) an Organisation whose Annual Revenue is less than
23
+ USD 10,000,000 (ten million US dollars);
24
+
25
+ (c) any person or Organisation using the Licensed Work
26
+ solely to document a Public Open Source Project;
27
+
28
+ (d) an accredited educational institution, using the
29
+ Licensed Work solely for teaching or academic
30
+ research, and not for its administrative or
31
+ commercial operations; or
32
+
33
+ (e) any Organisation, during one evaluation period of
34
+ up to ninety (90) days starting on the date it
35
+ first makes Production use of any version of the
36
+ Licensed Work, or any longer period agreed in
37
+ writing by the Licensor. Each Organisation,
38
+ including all of its Affiliates, has one
39
+ evaluation period in total, across all versions of
40
+ the Licensed Work. Upgrading to a new version,
41
+ reinstalling the Licensed Work, creating another
42
+ catalog, or a change in the Organisation's
43
+ Affiliates does not start a new evaluation period.
44
+
45
+ 2. Crossing the threshold
46
+
47
+ An Organisation that is an Eligible User under (b)
48
+ remains one until ninety (90) days after the end of
49
+ the first financial year for which its Annual Revenue
50
+ equals or exceeds USD 10,000,000.
51
+
52
+ 3. Service providers
53
+
54
+ Where You use the Licensed Work to provide services to
55
+ a client (for example, as a consultant, contractor or
56
+ agency) and that use is for the client's benefit,
57
+ Your use is permitted if the client is an Eligible
58
+ User or holds a commercial license from the Licensor
59
+ that covers that use.
60
+
61
+ 4. Cure period
62
+
63
+ If You stop being an Eligible User, or learn that
64
+ Your use is not permitted by this Additional Use
65
+ Grant, You may continue to use the Licensed Work for
66
+ thirty (30) days in order to obtain a commercial
67
+ license or stop that use (the "Cure Period"). Such
68
+ continued use during the Cure Period is permitted
69
+ Production use under this Additional Use Grant, is
70
+ not a use in violation of this License, and Your
71
+ rights under this License will not terminate during
72
+ the Cure Period for that reason.
73
+
74
+ 5. Definitions
75
+
76
+ "Production use" includes any use of a catalog built
77
+ with the Licensed Work that an Organisation's
78
+ employees, contractors or automated systems
79
+ (including AI agents) rely on to document, discover,
80
+ understand or govern its software systems, whether
81
+ that catalog is available internally, privately or
82
+ publicly, and use of the Licensed Work in continuous
83
+ integration or deployment pipelines to build, update
84
+ or validate such a catalog. For the avoidance of
85
+ doubt, use that is internal to an Organisation can be
86
+ Production use.
87
+
88
+ "Organisation" means a legal entity together with all
89
+ of its Affiliates. "Affiliate" means any entity that
90
+ directly or indirectly controls, is controlled by, or
91
+ is under common control with that legal entity, where
92
+ "control" means ownership of more than fifty percent
93
+ (50%) of the voting interests of the entity. For a
94
+ government or public-sector body, the Organisation is
95
+ that body (for example, a ministry, department,
96
+ agency or local authority), and not the wider
97
+ government of which it forms part.
98
+
99
+ "Annual Revenue" means the total consolidated gross
100
+ revenue of the Organisation for its most recently
101
+ completed financial year or, if it has not yet
102
+ completed a financial year, its reasonably projected
103
+ revenue for its first financial year. For a
104
+ government or public-sector body, charity or
105
+ non-profit organisation, it means the greater of its
106
+ total income (including grants and donations) and its
107
+ total annual budget for that financial year. Amounts
108
+ in other currencies are converted to US dollars at
109
+ the average exchange rate for that financial year.
110
+
111
+ "Public Open Source Project" means a software project
112
+ whose source code is publicly available under a
113
+ license approved by the Open Source Initiative, where
114
+ the catalog documents only that project.
115
+
116
+ "Hosted Offering" means using the Licensed Work to
117
+ provide third parties with access to the Licensed
118
+ Work, or to its functionality, as a hosted or managed
119
+ service, whether or not for a fee. The following are
120
+ not Hosted Offerings: publishing a catalog that
121
+ documents Your own software systems, including making
122
+ it publicly accessible; and hosting a catalog on
123
+ behalf of a client, where the catalog documents that
124
+ client's software systems and the client is an
125
+ Eligible User or holds a commercial license from the
126
+ Licensor that covers that use.
127
+
128
+ All other Production use requires a commercial
129
+ license from the Licensor. Interpretive guidance is
130
+ published at https://www.eventcatalog.dev/license-faq.
131
+ Guidance for a version of the Licensed Work will not
132
+ be changed to further restrict use of that version.
133
+ Change Date: For each version of the Licensed Work, four years from
134
+ the date that version is first publicly released.
135
+
136
+ For the purposes of this License, a "version" of the
137
+ Licensed Work is a major or minor release (for
138
+ example, 5.0 or 5.1), together with its pre-releases
139
+ and patch releases (for example, 5.1.0-beta.1 or
140
+ 5.1.3). A version is first publicly released on the
141
+ date its first release, including any pre-release, is
142
+ published. Unreleased builds, such as individual
143
+ commits or nightly builds, are part of the next
144
+ version to be released.
145
+ Change License: MIT
146
+
147
+ For information about commercial licensing of the Licensed Work, please
148
+ contact hello@eventcatalog.dev.
149
+
150
+ Portions of the Licensed Work were previously released under the MIT License.
151
+ Those prior releases remain available under the MIT License, and their
152
+ copyright and permission notices are preserved in NOTICE.
153
+
154
+ Notice
155
+
156
+ The Business Source License (this document, or the "License") is not an Open
157
+ Source license. However, the Licensed Work will eventually be made available
158
+ under an Open Source License, as stated in this License.
159
+
160
+ Business Source License 1.1
161
+
162
+ Terms
163
+
164
+ The Licensor hereby grants you the right to copy, modify, create derivative
165
+ works, redistribute, and make non-production use of the Licensed Work. The
166
+ Licensor may make an Additional Use Grant, above, permitting limited production use.
167
+
168
+ Effective on the Change Date, or the fourth anniversary of the first publicly
169
+ available distribution of a specific version of the Licensed Work under this
170
+ License, whichever comes first, the Licensor hereby grants you rights under
171
+ the terms of the Change License, and the rights granted in the paragraph
172
+ above terminate.
173
+
174
+ If your use of the Licensed Work does not comply with the requirements
175
+ currently in effect as described in this License, you must purchase a
176
+ commercial license from the Licensor, its affiliated entities, or authorized
177
+ resellers, or you must refrain from using the Licensed Work.
178
+
179
+ All copies of the original and modified Licensed Work, and derivative works
180
+ of the Licensed Work, are subject to this License. This License applies
181
+ separately for each version of the Licensed Work and the Change Date may vary
182
+ for each version of the Licensed Work released by Licensor.
183
+
184
+ You must conspicuously display this License on each original or modified copy
185
+ of the Licensed Work. If you receive the Licensed Work in original or
186
+ modified form from a third party, the terms and conditions set forth in this
187
+ License apply to your use of that work.
188
+
189
+ Any use of the Licensed Work in violation of this License will automatically
190
+ terminate your rights under this License for the current and all other
191
+ versions of the Licensed Work.
192
+
193
+ This License does not grant you any right in any trademark or logo of
194
+ Licensor or its affiliates (provided that you may use a trademark or logo of
195
+ Licensor as expressly required by this License).
196
+
197
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
198
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
199
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
200
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
201
+ TITLE.
202
+
203
+ MariaDB hereby grants you permission to use this License's text to license
204
+ your works, and to refer to it using the trademark "Business Source License",
205
+ as long as you comply with the Covenants of Licensor below.
206
+
207
+ Covenants of Licensor
208
+
209
+ In consideration of the right to use this License's text and the "Business
210
+ Source License" name and trademark, Licensor covenants to MariaDB, and to all
211
+ other recipients of the licensed work to be provided by Licensor:
212
+
213
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
214
+ or a license that is compatible with GPL Version 2.0 or a later version,
215
+ where "compatible" means that software provided under the Change License can
216
+ be included in a program with software provided under GPL Version 2.0 or a
217
+ later version. Licensor may specify additional Change Licenses without
218
+ limitation.
219
+
220
+ 2. To either: (a) specify an additional grant of rights to use that does not
221
+ impose any additional restriction on the right granted in this License, as
222
+ the Additional Use Grant; or (b) insert the text "None".
223
+
224
+ 3. To specify a Change Date.
225
+
226
+ 4. Not to modify this License in any other way.
package/NOTICE ADDED
@@ -0,0 +1,30 @@
1
+ EventCatalog
2
+ Copyright (c) 2026 EventCatalog Ltd
3
+
4
+ Portions of the Licensed Work were previously released under the MIT License.
5
+ Those prior releases remain available under the MIT License, and their
6
+ copyright and permission notice is preserved below.
7
+
8
+ -------------------------------------------------------------------------------
9
+
10
+ MIT License
11
+
12
+ Copyright (c) 2022-2026 boyney123
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
package/README.md CHANGED
@@ -205,5 +205,6 @@ This project follows the [all-contributors](https://github.com/all-contributors/
205
205
 
206
206
  # License
207
207
 
208
- EventCatalog Core uses a mixed-license model. Most files are licensed under MIT; the Enterprise and Federation paths
209
- identified in [LICENSE](./LICENSE) use the EventCatalog Commercial License.
208
+ `@eventcatalog/core` 5.0.0 (including its pre-releases) and later is licensed under the
209
+ [Business Source License 1.1](./LICENSE). Releases up to and including 4.x remain available under the MIT
210
+ License (see [NOTICE](./NOTICE)).
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(analytics_exports);
36
36
  var import_os = __toESM(require("os"), 1);
37
37
 
38
38
  // package.json
39
- var version = "4.12.2";
39
+ var version = "5.0.0-beta.0";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-ZW3MYAWF.js";
4
- import "../chunk-WK4J6FP3.js";
3
+ } from "../chunk-WAIADKQE.js";
4
+ import "../chunk-TWN43V4T.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -176,7 +176,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
176
176
  var import_os = __toESM(require("os"), 1);
177
177
 
178
178
  // package.json
179
- var version = "4.12.2";
179
+ var version = "5.0.0-beta.0";
180
180
 
181
181
  // src/constants.ts
182
182
  var VERSION = version;
@@ -278,8 +278,43 @@ function serializeCounts(counts) {
278
278
  return Object.entries(counts).map(([k, v]) => `${k}:${v}`).join(",");
279
279
  }
280
280
 
281
+ // src/utils/license-status.ts
282
+ var import_boxen = __toESM(require("boxen"), 1);
283
+ var import_license2 = require("@eventcatalog/license");
284
+
285
+ // eventcatalog/src/utils/trial.ts
286
+ var TRIAL_LENGTH_DAYS = 90;
287
+ var DAY_IN_MS = 24 * 60 * 60 * 1e3;
288
+ var getTrialStatus = (tsd, now = Date.now()) => {
289
+ if (typeof tsd !== "number" || !Number.isFinite(tsd) || tsd <= 0) return;
290
+ const endsAt = tsd + TRIAL_LENGTH_DAYS * DAY_IN_MS;
291
+ const daysLeft = Math.max(0, Math.ceil((endsAt - now) / DAY_IN_MS));
292
+ return { daysLeft, ended: daysLeft === 0, endsAt: new Date(endsAt) };
293
+ };
294
+
295
+ // eventcatalog/src/utils/license.ts
296
+ var import_node_fs2 = __toESM(require("fs"), 1);
297
+ var import_node_path4 = __toESM(require("path"), 1);
298
+ var import_license = require("@eventcatalog/license");
299
+
300
+ // src/utils/license-status.ts
301
+ var DAY_IN_MS2 = 24 * 60 * 60 * 1e3;
302
+ var getLicenseType = (license) => {
303
+ if (license.state === "licensed") return "commercial";
304
+ if (license.state === "plan") return license.plan;
305
+ return "trial";
306
+ };
307
+ var getLicenseAnalytics = (license = { state: "none" }, tsd) => ({
308
+ license: getLicenseType(license),
309
+ licenseState: license.state === "licensed" || license.state === "plan" ? "valid" : license.state,
310
+ licenseExpiry: "expiresAt" in license ? license.expiresAt?.getTime() : void 0,
311
+ trialExpiry: getTrialStatus(tsd)?.endsAt.getTime()
312
+ });
313
+
281
314
  // src/analytics/log-build.js
315
+ var isMCPEnabled = (configFile) => configFile.output === "server" && (configFile.mcp?.enabled ?? true);
282
316
  var getFeatures = async (configFile) => {
317
+ const mcp = isMCPEnabled(configFile);
283
318
  return {
284
319
  llmsTxt: configFile.llmsTxt?.enabled || false,
285
320
  rss: configFile.rss?.enabled || false,
@@ -287,7 +322,9 @@ var getFeatures = async (configFile) => {
287
322
  changelog: configFile.changelog?.enabled || false,
288
323
  auth: configFile.auth?.enabled || false,
289
324
  environments: Array.isArray(configFile.environments) && configFile.environments.length > 0,
290
- output: configFile.output || "static"
325
+ output: configFile.output || "static",
326
+ mcp,
327
+ mcpAuth: mcp && (configFile.mcp?.auth?.enabled ?? false)
291
328
  };
292
329
  };
293
330
  var getDirectoryProvider = (source) => {
@@ -347,21 +384,12 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
347
384
  })
348
385
  });
349
386
  };
350
- var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled, command = "build" }) => {
387
+ var main = async (projectDir, { command = "build", license } = {}) => {
351
388
  try {
352
389
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
353
390
  const configFile = await getEventCatalogConfigFile(projectDir);
354
391
  const { cId, tsd, organizationName, generators = [] } = configFile;
355
- let generatorNames = generators.length > 0 ? generators.map((generator) => generator[0]) : ["none"];
356
- if (isEventCatalogStarterEnabled) {
357
- generatorNames.push("@eventcatalog/eventcatalog-starter");
358
- }
359
- if (isEventCatalogScaleEnabled) {
360
- generatorNames.push("@eventcatalog/eventcatalog-scale");
361
- }
362
- if (isBackstagePluginEnabled) {
363
- generatorNames.push("@eventcatalog/backstage-plugin-eventcatalog");
364
- }
392
+ const generatorNames = generators.length > 0 ? generators.map((generator) => generator[0]) : ["none"];
365
393
  const features = await getFeatures(configFile);
366
394
  const resourceCounts = await countResources(projectDir);
367
395
  const contentHash = await hashCatalogContent(projectDir);
@@ -372,11 +400,10 @@ var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScal
372
400
  cId,
373
401
  // Trial start date (unix ms) from eventcatalog.config.js
374
402
  tsd,
403
+ // Commercial license or trial, and when each expires (unix ms)
404
+ ...getLicenseAnalytics(license, tsd),
375
405
  // CI redeploys and human-run builds are different signals; tag rather than suppress
376
406
  ci: process.env.CI ? "true" : "false",
377
- // The commercial plan, separate from the generators list, so telemetry joins cleanly to licensing
378
- plan: isEventCatalogScaleEnabled ? "scale" : isEventCatalogStarterEnabled ? "starter" : "none",
379
- backstage: isBackstagePluginEnabled ? "true" : "false",
380
407
  contentHash,
381
408
  generators: generatorNames.toString(),
382
409
  features: Object.keys(features).map((feature) => `${feature}:${features[feature]}`).join(","),
@@ -1,12 +1,13 @@
1
+ import { L as LicenseStatus } from '../license-C1y-56bb.cjs';
2
+
1
3
  /**
2
4
  *
3
5
  * @param {string} projectDir
6
+ * @param {{ command?: 'build' | 'dev', license?: import('../utils/license-status').LicenseStatus }} [options]
4
7
  */
5
- declare function main(projectDir: string, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled, command }: {
6
- isEventCatalogStarterEnabled: any;
7
- isEventCatalogScaleEnabled: any;
8
- isBackstagePluginEnabled: any;
9
- command?: string | undefined;
8
+ declare function main(projectDir: string, { command, license }?: {
9
+ command?: "build" | "dev";
10
+ license?: LicenseStatus;
10
11
  }): Promise<void>;
11
12
 
12
13
  export { main as default };
@@ -1,12 +1,13 @@
1
+ import { L as LicenseStatus } from '../license-C1y-56bb.js';
2
+
1
3
  /**
2
4
  *
3
5
  * @param {string} projectDir
6
+ * @param {{ command?: 'build' | 'dev', license?: import('../utils/license-status').LicenseStatus }} [options]
4
7
  */
5
- declare function main(projectDir: string, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled, command }: {
6
- isEventCatalogStarterEnabled: any;
7
- isEventCatalogScaleEnabled: any;
8
- isBackstagePluginEnabled: any;
9
- command?: string | undefined;
8
+ declare function main(projectDir: string, { command, license }?: {
9
+ command?: "build" | "dev";
10
+ license?: LicenseStatus;
10
11
  }): Promise<void>;
11
12
 
12
13
  export { main as default };
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-GTIC4R74.js";
3
+ } from "../chunk-LR7AGRHN.js";
4
+ import "../chunk-TQLRG35T.js";
4
5
  import "../chunk-ZAZHAVKB.js";
5
- import "../chunk-ZW3MYAWF.js";
6
- import "../chunk-WK4J6FP3.js";
6
+ import "../chunk-WAIADKQE.js";
7
+ import "../chunk-TWN43V4T.js";
7
8
  import "../chunk-RFIXKATC.js";
8
9
  export {
9
10
  log_build_default as default
@@ -1,6 +1,3 @@
1
- import {
2
- withFederationOutputTransaction
3
- } from "./chunk-WRNH5C3U.js";
4
1
  import {
5
2
  composePublicAssets
6
3
  } from "./chunk-5EPNFDT5.js";
@@ -15,8 +12,8 @@ import {
15
12
  resolveFederationRules
16
13
  } from "./chunk-JJPB6EOZ.js";
17
14
  import {
18
- isFederationEnabled
19
- } from "./chunk-FV56YFM4.js";
15
+ withFederationOutputTransaction
16
+ } from "./chunk-WRNH5C3U.js";
20
17
  import {
21
18
  getEventCatalogConfigFile
22
19
  } from "./chunk-RFIXKATC.js";
@@ -145,11 +142,6 @@ var federateCatalog = async (projectDirectory, options = {}) => {
145
142
  await cleanupPreviousFederation(projectDirectory, options.onProgress);
146
143
  return null;
147
144
  }
148
- if (!await isFederationEnabled()) {
149
- throw new Error(
150
- "Cannot federate catalogs: EventCatalog federation is an Enterprise feature. Visit https://www.eventcatalog.dev/pricing to enable federation."
151
- );
152
- }
153
145
  validateSources(sources);
154
146
  const rules = resolveFederationRules(config.federation?.rules);
155
147
  if (options.useCache === false) options.onProgress?.({ type: "cache:disabled" });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-RPVA2SZY.js";
3
+ } from "./chunk-ZHKEARLJ.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile