@eventcatalog/core 4.12.3 → 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.
- package/LICENSE +226 -95
- package/NOTICE +30 -0
- package/README.md +3 -2
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +43 -16
- package/dist/analytics/log-build.d.cts +6 -5
- package/dist/analytics/log-build.d.ts +6 -5
- package/dist/analytics/log-build.js +4 -3
- package/dist/{chunk-U4YJSTGV.js → chunk-AYNZXUB5.js} +2 -10
- package/dist/{chunk-TV3YAWKQ.js → chunk-CR6AK5LR.js} +1 -1
- package/dist/{chunk-M577VUOX.js → chunk-LR7AGRHN.js} +13 -16
- package/dist/chunk-TQLRG35T.js +203 -0
- package/dist/{chunk-HPC6KUDQ.js → chunk-TWN43V4T.js} +1 -1
- package/dist/{chunk-ZYTCBNB3.js → chunk-WAIADKQE.js} +1 -1
- package/dist/{chunk-5BPN6QEC.js → chunk-ZHKEARLJ.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +407 -291
- package/dist/eventcatalog.config.d.cts +2 -3
- package/dist/eventcatalog.config.d.ts +2 -3
- package/dist/eventcatalog.js +35 -98
- package/dist/federation/content-cache.d.cts +0 -5
- package/dist/federation/content-cache.d.ts +0 -5
- package/dist/federation/diagnostics.d.cts +0 -5
- package/dist/federation/diagnostics.d.ts +0 -5
- package/dist/federation/federate.cjs +0 -9
- package/dist/federation/federate.d.cts +0 -5
- package/dist/federation/federate.d.ts +0 -5
- package/dist/federation/federate.js +4 -5
- package/dist/federation/filesystem-source-provider.d.cts +0 -5
- package/dist/federation/filesystem-source-provider.d.ts +0 -5
- package/dist/federation/github-source-provider.d.cts +0 -5
- package/dist/federation/github-source-provider.d.ts +0 -5
- package/dist/federation/output-transaction.d.cts +0 -4
- package/dist/federation/output-transaction.d.ts +0 -4
- package/dist/federation/public-assets.d.cts +0 -5
- package/dist/federation/public-assets.d.ts +0 -5
- package/dist/federation/source-provider.d.cts +0 -5
- package/dist/federation/source-provider.d.ts +0 -5
- package/dist/federation/types.d.cts +0 -5
- package/dist/federation/types.d.ts +0 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/license-C1y-56bb.d.cts +23 -0
- package/dist/license-C1y-56bb.d.ts +23 -0
- package/dist/runtime-dependencies/@eventcatalog__visualiser__layout.mjs +3 -0
- package/dist/runtime-dependencies/@modelcontextprotocol__ext-apps.mjs +3 -0
- package/dist/runtime-dependencies/@modelcontextprotocol__ext-apps__react.mjs +3 -0
- package/dist/runtime-dependencies/@modelcontextprotocol__ext-apps__server.mjs +3 -0
- package/dist/runtime-dependencies/@modelcontextprotocol__sdk__types.js.mjs +3 -0
- package/dist/runtime-dependencies/manifest.json +12 -1
- package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__graphql.mjs +3 -0
- package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__json.mjs +3 -0
- package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__markup.mjs +3 -0
- package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__protobuf.mjs +3 -0
- package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__languages__prism__yaml.mjs +3 -0
- package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__styles__prism__one-dark.mjs +3 -0
- package/dist/runtime-dependencies/react-syntax-highlighter__dist__esm__styles__prism__one-light.mjs +3 -0
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/dist/utils/license-status.cjs +240 -0
- package/dist/utils/license-status.d.cts +28 -0
- package/dist/utils/license-status.d.ts +28 -0
- package/dist/utils/license-status.js +12 -0
- package/eventcatalog/astro.config.mjs +1 -1
- package/eventcatalog/integrations/eventcatalog-runtime.mjs +1 -1
- package/eventcatalog/src/components/ChatPanel/ChatPanel.tsx +29 -19
- package/eventcatalog/src/components/ChatPanel/OfflineReply.tsx +74 -0
- package/eventcatalog/src/components/FieldsExplorer/FieldFilters.tsx +24 -28
- package/eventcatalog/src/components/FieldsExplorer/FieldNodeGraph.tsx +16 -11
- package/eventcatalog/src/components/FieldsExplorer/FieldsExplorer.tsx +4 -218
- package/eventcatalog/src/components/FieldsExplorer/FieldsTable.tsx +27 -36
- package/eventcatalog/src/components/Header.astro +43 -58
- package/eventcatalog/src/components/Lists/PillListFlat.styles.css +17 -17
- package/eventcatalog/src/components/MDX/EntityMap/EntityMap.astro +1 -1
- package/eventcatalog/src/components/MDX/Flow/Flow.astro +4 -0
- package/eventcatalog/src/components/MDX/NodeGraph/AstroNodeGraph.tsx +14 -0
- package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.astro +49 -18
- package/eventcatalog/src/components/MDX/RemoteFile.astro +2 -24
- package/eventcatalog/src/components/SchemaExplorer/ApiAccessSection.tsx +59 -93
- package/eventcatalog/src/components/SchemaExplorer/ApiContentViewer.tsx +1 -32
- package/eventcatalog/src/components/SchemaExplorer/DiffViewer.tsx +20 -67
- package/eventcatalog/src/components/SchemaExplorer/SchemaContentViewer.tsx +2 -11
- package/eventcatalog/src/components/SchemaExplorer/SchemaDetailsPanel.tsx +11 -60
- package/eventcatalog/src/components/SchemaExplorer/SchemaExplorer.tsx +1 -3
- package/eventcatalog/src/components/SchemaExplorer/SchemaPageViewer.tsx +0 -3
- package/eventcatalog/src/components/SchemaExplorer/VersionHistoryModal.tsx +2 -9
- package/eventcatalog/src/components/SchemaExplorer/parse-schema.ts +46 -0
- package/eventcatalog/src/components/SchemaExplorer/utils.ts +11 -0
- package/eventcatalog/src/components/Settings/AssistantSettingsForm.tsx +2 -9
- package/eventcatalog/src/components/Settings/LicenseSettings.tsx +288 -0
- package/eventcatalog/src/components/Settings/LlmAccessSettingsForm.tsx +3 -19
- package/eventcatalog/src/components/Settings/McpSettingsForm.tsx +85 -30
- package/eventcatalog/src/components/Settings/SettingsShared.tsx +7 -75
- package/eventcatalog/src/components/SideNav/CustomDocsNav.astro +2 -2
- package/eventcatalog/src/components/TrialBadge.astro +82 -0
- package/eventcatalog/src/content.config.ts +9 -96
- package/eventcatalog/src/{enterprise → features}/ai/chat-api.ts +22 -34
- package/eventcatalog/src/{enterprise → features}/analytics/adapters/ga4.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/analytics/adapters/gtm.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/analytics/adapters/posthog.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/analytics/components/AnalyticsHead.astro +2 -4
- package/eventcatalog/src/{enterprise → features}/analytics/components/AnalyticsTracker.astro +2 -4
- package/eventcatalog/src/{enterprise → features}/analytics/tracker.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/api/catalog.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/auth/[...auth].ts +0 -5
- package/eventcatalog/src/{enterprise → features}/auth/middleware/middleware-auth.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/auth/middleware/middleware.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/collections/custom-pages.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/collections/index.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/collections/resource-docs.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/custom-documentation/collection.ts +0 -5
- package/eventcatalog/src/features/custom-documentation/components/CustomDocsNav/CustomDocsNav.astro +9 -0
- package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/CustomDocsNavWrapper.tsx +0 -5
- package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/components/NestedItem.tsx +1 -6
- package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/components/NoResultsFound.tsx +0 -5
- package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/index.tsx +1 -6
- package/eventcatalog/src/{enterprise → features}/custom-documentation/components/CustomDocsNav/types.ts +0 -5
- package/eventcatalog/src/{enterprise/custom-documentation/pages/docs/custom/index.astro → features/custom-documentation/components/CustomDocumentationPage.astro} +5 -5
- package/eventcatalog/src/{enterprise → features}/custom-documentation/utils/badge-styles.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/custom-documentation/utils/custom-docs.ts +1 -6
- package/eventcatalog/src/{enterprise → features}/custom-documentation/utils/docs-search.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/custom-pages/routes.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/directory/user-team-directory.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/fields/field-extractor.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/fields/field-indexer.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/fields/fields-db.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/fields/pages/api/fields.ts +1 -6
- package/eventcatalog/src/{enterprise → features}/fields/pages/fields.astro +1 -2
- package/eventcatalog/src/{enterprise → features}/integrations/eventcatalog-features.ts +17 -75
- package/eventcatalog/src/features/mcp/apps/architecture-diagram/links.ts +59 -0
- package/eventcatalog/src/features/mcp/apps/architecture-diagram/node-chat.tsx +299 -0
- package/eventcatalog/src/features/mcp/apps/architecture-diagram/shared.ts +14 -0
- package/eventcatalog/src/features/mcp/apps/architecture-diagram/view.tsx +454 -0
- package/eventcatalog/src/features/mcp/apps/generated/viewer.html +432 -0
- package/eventcatalog/src/features/mcp/apps/mermaid-stub.ts +10 -0
- package/eventcatalog/src/features/mcp/apps/schema-viewer/schema-code.tsx +65 -0
- package/eventcatalog/src/features/mcp/apps/schema-viewer/shared.ts +23 -0
- package/eventcatalog/src/features/mcp/apps/schema-viewer/view.tsx +170 -0
- package/eventcatalog/src/features/mcp/apps/shared/app-view.tsx +98 -0
- package/eventcatalog/src/features/mcp/apps/shared/resource-types.ts +15 -0
- package/eventcatalog/src/features/mcp/apps/viewer/shared.ts +24 -0
- package/eventcatalog/src/features/mcp/apps/viewer/styles.css +25 -0
- package/eventcatalog/src/features/mcp/apps/viewer/view.tsx +59 -0
- package/eventcatalog/src/features/mcp/mcp-app-icons.ts +63 -0
- package/eventcatalog/src/features/mcp/mcp-apps.ts +160 -0
- package/eventcatalog/src/{enterprise → features}/mcp/mcp-auth.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/mcp/mcp-scope.ts +7 -7
- package/eventcatalog/src/{enterprise → features}/mcp/mcp-scoped-tools.ts +47 -40
- package/eventcatalog/src/{enterprise → features}/mcp/mcp-server.ts +347 -34
- package/eventcatalog/src/{enterprise → features}/mcp/oauth-protected-resource.ts +0 -5
- package/eventcatalog/src/features/mcp/schema-viewer.ts +24 -0
- package/eventcatalog/src/{enterprise → features}/tools/catalog-tools.ts +133 -102
- package/eventcatalog/src/features/tools/index.ts +5 -0
- package/eventcatalog/src/{enterprise → features}/visualizer-layout/reset.ts +0 -5
- package/eventcatalog/src/{enterprise → features}/visualizer-layout/save.ts +0 -5
- package/eventcatalog/src/layouts/BaseLayout.astro +2 -2
- package/eventcatalog/src/layouts/Footer.astro +31 -39
- package/eventcatalog/src/layouts/SettingsLayout.astro +6 -6
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +7 -37
- package/eventcatalog/src/{enterprise → pages}/api/schemas/[collection]/[id]/[version]/index.ts +0 -22
- package/eventcatalog/src/{enterprise → pages}/api/schemas/services/[id]/[version]/[specification]/index.ts +0 -19
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/_index.data.ts +2 -6
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +1 -5
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/_index.data.ts +2 -6
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +1 -5
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId].md.ts +2 -6
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId].mdx.ts +2 -6
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +9 -5
- package/eventcatalog/src/pages/docs/custom/[...path]/index.astro +12 -0
- package/eventcatalog/src/{enterprise/custom-documentation/pages/docs/custom/root-index.astro → pages/docs/custom/index.astro} +1 -23
- package/eventcatalog/src/pages/docs/llm/llms-full.txt.ts +4 -9
- package/eventcatalog/src/pages/docs/llm/llms.txt.ts +4 -4
- package/eventcatalog/src/pages/docs/llm/schemas.txt.ts +0 -11
- package/eventcatalog/src/pages/docs/services/[id]/[docType]/[docId]/index.astro +2 -2
- package/eventcatalog/src/pages/index.astro +2 -2
- package/eventcatalog/src/pages/schemas/[type]/[id]/[version]/index.astro +0 -3
- package/eventcatalog/src/pages/schemas/explorer/index.astro +1 -4
- package/eventcatalog/src/pages/settings/assistant.astro +2 -4
- package/eventcatalog/src/pages/settings/license.astro +18 -0
- package/eventcatalog/src/pages/settings/llm-access.astro +1 -4
- package/eventcatalog/src/pages/settings/mcp.astro +33 -4
- package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/_index.data.ts +1 -2
- package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/data/index.astro +2 -45
- package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/entity-map/index.astro +1 -1
- package/eventcatalog/src/pages/visualiser/[type]/[id]/[version].mermaid.ts +7 -109
- package/eventcatalog/src/pages/visualiser/_mermaid-route.ts +78 -0
- package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/_index.data.ts +44 -0
- package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/entity-map/index.astro +1 -1
- package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/index.astro +56 -0
- package/eventcatalog/src/pages/visualiser/domains/[id]/[version]/systems-context/index.astro +3 -40
- package/eventcatalog/src/pages/visualiser/domains/[id]/[version].mermaid.ts +20 -0
- package/eventcatalog/src/pages/visualiser/systems/[id]/[version]/_index.data.ts +29 -0
- package/eventcatalog/src/pages/visualiser/systems/[id]/[version]/context/index.astro +3 -38
- package/eventcatalog/src/pages/visualiser/systems/[id]/[version]/index.astro +56 -0
- package/eventcatalog/src/pages/visualiser/systems/[id]/[version].mermaid.ts +20 -0
- package/eventcatalog/src/stores/sidebar-store/builders/agent.ts +1 -1
- package/eventcatalog/src/stores/sidebar-store/builders/container.ts +1 -1
- package/eventcatalog/src/stores/sidebar-store/builders/data-product.ts +1 -1
- package/eventcatalog/src/stores/sidebar-store/builders/domain.ts +7 -32
- package/eventcatalog/src/stores/sidebar-store/builders/entity.ts +1 -1
- package/eventcatalog/src/stores/sidebar-store/builders/message.ts +1 -1
- package/eventcatalog/src/stores/sidebar-store/builders/service.ts +2 -8
- package/eventcatalog/src/stores/sidebar-store/builders/system.ts +2 -12
- package/eventcatalog/src/stores/sidebar-store/custom-sidebar.ts +0 -10
- package/eventcatalog/src/stores/sidebar-store/state.ts +4 -6
- package/eventcatalog/src/styles/theme.css +22 -18
- package/eventcatalog/src/styles/themes/forest.css +8 -8
- package/eventcatalog/src/styles/themes/ocean.css +8 -8
- package/eventcatalog/src/styles/themes/sapphire.css +8 -8
- package/eventcatalog/src/styles/themes/sunset.css +8 -8
- package/eventcatalog/src/utils/clipboard.ts +4 -4
- package/eventcatalog/src/utils/collections/flow-step-schema.ts +117 -0
- package/eventcatalog/src/utils/collections/pointer-schema.ts +7 -0
- package/eventcatalog/src/utils/collections/resource-docs.ts +677 -14
- package/eventcatalog/src/utils/collections/schema-loader.ts +0 -5
- package/eventcatalog/src/utils/feature.ts +14 -23
- package/eventcatalog/src/utils/license.ts +114 -0
- package/eventcatalog/src/utils/node-graphs/architecture-diagram-types.ts +32 -0
- package/eventcatalog/src/utils/node-graphs/architecture-diagram.ts +84 -0
- package/eventcatalog/src/utils/node-graphs/channel-node-graph.ts +4 -25
- package/eventcatalog/src/utils/node-graphs/container-node-graph.ts +12 -39
- package/eventcatalog/src/utils/node-graphs/data-products-node-graph.ts +11 -27
- package/eventcatalog/src/utils/node-graphs/domain-levels-node-graph.ts +679 -0
- package/eventcatalog/src/utils/node-graphs/domains-node-graph.ts +3 -20
- package/eventcatalog/src/utils/node-graphs/export-mermaid.ts +51 -4
- package/eventcatalog/src/utils/node-graphs/field-node-graph.ts +8 -23
- package/eventcatalog/src/utils/node-graphs/flow-lanes.ts +119 -0
- package/eventcatalog/src/utils/node-graphs/flows-node-graph.ts +133 -47
- package/eventcatalog/src/utils/node-graphs/layout-node-graph.ts +28 -0
- package/eventcatalog/src/utils/node-graphs/layout-persistence.ts +3 -3
- package/eventcatalog/src/utils/node-graphs/message-node-graph.ts +16 -34
- package/eventcatalog/src/utils/node-graphs/services-node-graph.ts +11 -25
- package/eventcatalog/src/utils/node-graphs/system-context-node-graph.ts +18 -54
- package/eventcatalog/src/utils/node-graphs/system-levels-node-graph.ts +59 -0
- package/eventcatalog/src/utils/node-graphs/systems-node-graph.ts +20 -80
- package/eventcatalog/src/utils/node-graphs/utils/utils.ts +1 -78
- package/eventcatalog/src/utils/trial.ts +36 -0
- package/eventcatalog/tsconfig.json +1 -1
- package/package.json +11 -11
- package/dist/chunk-FV56YFM4.js +0 -7
- package/dist/federation/entitlement.cjs +0 -31
- package/dist/federation/entitlement.d.cts +0 -12
- package/dist/federation/entitlement.d.ts +0 -12
- package/dist/federation/entitlement.js +0 -6
- package/dist/runtime-dependencies/dagre.mjs +0 -3
- package/eventcatalog/src/components/Settings/BillingSettingsForm.tsx +0 -265
- package/eventcatalog/src/enterprise/LICENSE +0 -57
- package/eventcatalog/src/enterprise/README.md +0 -5
- package/eventcatalog/src/enterprise/collections/resource-docs-utils.ts +0 -691
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/CustomDocsNav.astro +0 -9
- package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/[...path]/index.astro +0 -18
- package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/feature.astro +0 -171
- package/eventcatalog/src/enterprise/feature.ts +0 -75
- package/eventcatalog/src/enterprise/tools/index.ts +0 -10
- package/eventcatalog/src/hooks/eventcatalog-visualizer.ts +0 -126
- package/eventcatalog/src/pages/settings/billing.astro +0 -17
- package/eventcatalog/src/pages/visualiser/domain-integrations/index.astro +0 -26
- package/eventcatalog/src/types/mcp-modules.d.ts +0 -67
- package/eventcatalog/src/utils/node-graphs/domains-canvas.ts +0 -261
- package/eventcatalog/src/utils/node-graphs/export-node-graph.ts +0 -91
- /package/eventcatalog/src/{enterprise → features}/auth/error.astro +0 -0
- /package/eventcatalog/src/{enterprise → features}/auth/login.astro +0 -0
- /package/eventcatalog/src/{enterprise → features}/auth/unauthorized.astro +0 -0
- /package/eventcatalog/src/{enterprise/custom-documentation/pages → pages}/docs/custom/[...path]/_index.data.ts +0 -0
- /package/eventcatalog/src/{enterprise/custom-documentation/pages → pages}/docs/custom/[...path].mdx.ts +0 -0
package/LICENSE
CHANGED
|
@@ -1,95 +1,226 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
and
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
the
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
209
|
-
|
|
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)).
|
|
@@ -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 = "
|
|
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, {
|
|
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
|
-
|
|
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, {
|
|
6
|
-
|
|
7
|
-
|
|
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, {
|
|
6
|
-
|
|
7
|
-
|
|
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-
|
|
3
|
+
} from "../chunk-LR7AGRHN.js";
|
|
4
|
+
import "../chunk-TQLRG35T.js";
|
|
4
5
|
import "../chunk-ZAZHAVKB.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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
|
-
|
|
19
|
-
} from "./chunk-
|
|
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" });
|