@eventcatalog/core 3.40.1 → 3.41.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 (139) hide show
  1. package/bin/eventcatalog.config.d.ts +1 -0
  2. package/dist/__mocks__/astro-content.d.cts +1 -1
  3. package/dist/__mocks__/astro-content.d.ts +1 -1
  4. package/dist/analytics/analytics.cjs +1 -1
  5. package/dist/analytics/analytics.js +2 -2
  6. package/dist/analytics/count-resources.cjs +1 -0
  7. package/dist/analytics/count-resources.js +1 -1
  8. package/dist/analytics/log-build.cjs +3 -2
  9. package/dist/analytics/log-build.js +4 -4
  10. package/dist/catalog-to-astro-content-directory.cjs +1 -0
  11. package/dist/catalog-to-astro-content-directory.js +2 -2
  12. package/dist/{chunk-4UVFXLPI.js → chunk-3DVHEVHQ.js} +1 -0
  13. package/dist/{chunk-K3ZVEX2Y.js → chunk-3H2RT3CM.js} +1 -1
  14. package/dist/{chunk-BRMLU4PR.js → chunk-3R6TKNHG.js} +1 -1
  15. package/dist/{chunk-OIVICT4V.js → chunk-DKFIEB24.js} +1 -1
  16. package/dist/{chunk-55D645EH.js → chunk-IR4IAKWS.js} +1 -0
  17. package/dist/{chunk-YDXB3BD2.js → chunk-O6KT4DPL.js} +1 -1
  18. package/dist/{chunk-D6IBLY3O.js → chunk-QMORF42U.js} +1 -0
  19. package/dist/{chunk-HNG4KOYQ.js → chunk-QVJGIQYP.js} +1 -1
  20. package/dist/{chunk-4OEF5W6Y.js → chunk-TWFS6THS.js} +1 -1
  21. package/dist/{chunk-7UR72UMK.js → chunk-ZN3JKTWB.js} +5 -5
  22. package/dist/constants.cjs +1 -1
  23. package/dist/constants.js +1 -1
  24. package/dist/eventcatalog.cjs +5 -2
  25. package/dist/eventcatalog.config.d.cts +27 -11
  26. package/dist/eventcatalog.config.d.ts +27 -11
  27. package/dist/eventcatalog.js +14 -14
  28. package/dist/generate.cjs +1 -1
  29. package/dist/generate.js +3 -3
  30. package/dist/map-catalog-to-astro.cjs +1 -0
  31. package/dist/map-catalog-to-astro.js +1 -1
  32. package/dist/search-indexer.cjs +1 -0
  33. package/dist/search-indexer.js +1 -1
  34. package/dist/utils/cli-logger.cjs +1 -1
  35. package/dist/utils/cli-logger.js +2 -2
  36. package/dist/watcher.cjs +1 -0
  37. package/dist/watcher.js +2 -2
  38. package/eventcatalog/public/agents/anthropic-dark.svg +1 -0
  39. package/eventcatalog/public/agents/anthropic-light.svg +1 -0
  40. package/eventcatalog/public/agents/openai-dark.svg +1 -0
  41. package/eventcatalog/public/agents/openai-light.svg +1 -0
  42. package/eventcatalog/public/agents/openai.svg +1 -0
  43. package/eventcatalog/public/icons/agent/anthropic-dark.svg +1 -0
  44. package/eventcatalog/public/icons/agent/anthropic-light.svg +1 -0
  45. package/eventcatalog/public/icons/agent/anthropic.svg +1 -0
  46. package/eventcatalog/public/icons/agent/gemini.svg +1 -0
  47. package/eventcatalog/public/icons/agent/openai-dark.svg +1 -0
  48. package/eventcatalog/public/icons/agent/openai-light.svg +1 -0
  49. package/eventcatalog/public/icons/agent/openai.svg +1 -0
  50. package/eventcatalog/public/icons/agents/anthropic-dark.svg +1 -0
  51. package/eventcatalog/public/icons/agents/anthropic-light.svg +1 -0
  52. package/eventcatalog/public/icons/agents/anthropic.svg +1 -0
  53. package/eventcatalog/public/icons/agents/gemini.svg +1 -0
  54. package/eventcatalog/public/icons/agents/openai-dark.svg +1 -0
  55. package/eventcatalog/public/icons/agents/openai-light.svg +1 -0
  56. package/eventcatalog/public/icons/agents/openai.svg +1 -0
  57. package/eventcatalog/public/icons/protocols/mcp-dark.svg +1 -0
  58. package/eventcatalog/public/icons/protocols/mcp-light.svg +1 -0
  59. package/eventcatalog/public/icons/protocols/mcp.svg +1 -0
  60. package/eventcatalog/public/icons/tools/datadog.svg +1 -0
  61. package/eventcatalog/public/icons/tools/github.svg +1 -0
  62. package/eventcatalog/public/icons/tools/hubspot.svg +1 -0
  63. package/eventcatalog/public/icons/tools/slack.svg +1 -0
  64. package/eventcatalog/public/icons/tools/snowflake.svg +1 -0
  65. package/eventcatalog/public/icons/tools/zendesk.svg +1 -0
  66. package/eventcatalog/src/components/Badge.astro +41 -2
  67. package/eventcatalog/src/components/Grids/MessageGrid.tsx +16 -11
  68. package/eventcatalog/src/components/MDX/AgentTools/AgentTools.astro +132 -0
  69. package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.astro +2 -0
  70. package/eventcatalog/src/components/MDX/ResourceRef/ResourceRef.astro +8 -3
  71. package/eventcatalog/src/components/MDX/components.tsx +2 -0
  72. package/eventcatalog/src/components/Search/SearchModal.tsx +3 -0
  73. package/eventcatalog/src/components/Search/search-utils.ts +2 -0
  74. package/eventcatalog/src/components/SideNav/NestedSideBar/SearchBar.tsx +3 -0
  75. package/eventcatalog/src/components/SideNav/NestedSideBar/index.tsx +3 -0
  76. package/eventcatalog/src/components/Tables/Discover/DiscoverTable.tsx +165 -0
  77. package/eventcatalog/src/components/Tables/Discover/columns.tsx +132 -7
  78. package/eventcatalog/src/components/Tables/Table.tsx +2 -0
  79. package/eventcatalog/src/components/Tables/columns/TeamsTableColumns.tsx +17 -0
  80. package/eventcatalog/src/components/Tables/columns/UserTableColumns.tsx +17 -0
  81. package/eventcatalog/src/content.config.ts +83 -25
  82. package/eventcatalog/src/enterprise/collections/resource-docs-utils.ts +7 -4
  83. package/eventcatalog/src/enterprise/mcp/mcp-server.ts +9 -2
  84. package/eventcatalog/src/enterprise/tools/catalog-tools.ts +62 -28
  85. package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +13 -1
  86. package/eventcatalog/src/pages/_index.astro +1 -3
  87. package/eventcatalog/src/pages/architecture/[type]/[id]/[version]/_index.data.ts +5 -5
  88. package/eventcatalog/src/pages/architecture/[type]/[id]/[version]/index.astro +5 -2
  89. package/eventcatalog/src/pages/directory/[type]/index.astro +2 -0
  90. package/eventcatalog/src/pages/discover/[type]/_index.data.ts +5 -0
  91. package/eventcatalog/src/pages/discover/[type]/index.astro +69 -23
  92. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId].mdx.ts +1 -0
  93. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/_index.data.ts +1 -0
  94. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/changelog/_index.data.ts +1 -1
  95. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +47 -2
  96. package/eventcatalog/src/pages/docs/[type]/[id]/[version].md.ts +2 -0
  97. package/eventcatalog/src/pages/docs/[type]/[id]/[version].mdx.ts +2 -0
  98. package/eventcatalog/src/pages/docs/[type]/[id]/_index.data.ts +1 -0
  99. package/eventcatalog/src/pages/docs/llm/llms-full.txt.ts +3 -0
  100. package/eventcatalog/src/pages/docs/llm/llms.txt.ts +3 -0
  101. package/eventcatalog/src/pages/docs/teams/[id]/index.astro +24 -1
  102. package/eventcatalog/src/pages/docs/users/[id]/index.astro +24 -1
  103. package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/_index.data.ts +2 -1
  104. package/eventcatalog/src/stores/sidebar-store/builders/agent.ts +141 -0
  105. package/eventcatalog/src/stores/sidebar-store/builders/domain.ts +9 -0
  106. package/eventcatalog/src/stores/sidebar-store/builders/flow.ts +19 -0
  107. package/eventcatalog/src/stores/sidebar-store/builders/message.ts +8 -2
  108. package/eventcatalog/src/stores/sidebar-store/builders/shared.ts +10 -7
  109. package/eventcatalog/src/stores/sidebar-store/state.ts +121 -2
  110. package/eventcatalog/src/types/index.ts +3 -1
  111. package/eventcatalog/src/utils/collection-colors.ts +5 -0
  112. package/eventcatalog/src/utils/collections/agents.ts +163 -0
  113. package/eventcatalog/src/utils/collections/commands.ts +3 -2
  114. package/eventcatalog/src/utils/collections/domains.ts +94 -15
  115. package/eventcatalog/src/utils/collections/events.ts +3 -2
  116. package/eventcatalog/src/utils/collections/flows.ts +20 -3
  117. package/eventcatalog/src/utils/collections/icons.ts +3 -1
  118. package/eventcatalog/src/utils/collections/messages.ts +35 -5
  119. package/eventcatalog/src/utils/collections/queries.ts +3 -2
  120. package/eventcatalog/src/utils/collections/schemas.ts +4 -4
  121. package/eventcatalog/src/utils/collections/services.ts +1 -1
  122. package/eventcatalog/src/utils/collections/teams.ts +5 -1
  123. package/eventcatalog/src/utils/collections/types.ts +1 -0
  124. package/eventcatalog/src/utils/collections/users.ts +5 -1
  125. package/eventcatalog/src/utils/collections/util.ts +2 -0
  126. package/eventcatalog/src/utils/eventcatalog-config/catalog.ts +1 -0
  127. package/eventcatalog/src/utils/llms.ts +1 -1
  128. package/eventcatalog/src/utils/node-graphs/agents-node-graph.ts +4 -0
  129. package/eventcatalog/src/utils/node-graphs/container-node-graph.ts +2 -2
  130. package/eventcatalog/src/utils/node-graphs/domains-node-graph.ts +42 -9
  131. package/eventcatalog/src/utils/node-graphs/export-mermaid.ts +20 -0
  132. package/eventcatalog/src/utils/node-graphs/export-node-graph.ts +4 -0
  133. package/eventcatalog/src/utils/node-graphs/flows-node-graph.ts +22 -1
  134. package/eventcatalog/src/utils/node-graphs/message-node-graph.ts +175 -98
  135. package/eventcatalog/src/utils/node-graphs/services-node-graph.ts +117 -23
  136. package/eventcatalog/src/utils/node-graphs/utils/utils.ts +30 -0
  137. package/eventcatalog/src/utils/page-loaders/page-data-loader.ts +2 -0
  138. package/eventcatalog/src/utils/resource-reference-colors.ts +1 -0
  139. package/package.json +11 -4
@@ -0,0 +1 @@
1
+ export type { Config, SideBarConfig } from '../dist/eventcatalog.config.js';
@@ -1,5 +1,5 @@
1
1
  declare const getCollection: (key: string, filter?: (entry: any) => boolean) => Promise<never[]>;
2
- type CollectionKey = 'events' | 'services' | 'commands' | 'queries' | 'domains' | 'channels' | 'flows' | 'messages' | 'entities' | 'schemas';
2
+ type CollectionKey = 'agents' | 'events' | 'services' | 'commands' | 'queries' | 'domains' | 'channels' | 'flows' | 'messages' | 'entities' | 'schemas';
3
3
  type CollectionEntry<T extends CollectionKey> = {
4
4
  id: string;
5
5
  slug: string;
@@ -1,5 +1,5 @@
1
1
  declare const getCollection: (key: string, filter?: (entry: any) => boolean) => Promise<never[]>;
2
- type CollectionKey = 'events' | 'services' | 'commands' | 'queries' | 'domains' | 'channels' | 'flows' | 'messages' | 'entities' | 'schemas';
2
+ type CollectionKey = 'agents' | 'events' | 'services' | 'commands' | 'queries' | 'domains' | 'channels' | 'flows' | 'messages' | 'entities' | 'schemas';
3
3
  type CollectionEntry<T extends CollectionKey> = {
4
4
  id: string;
5
5
  slug: string;
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "3.40.1";
40
+ var version = "3.41.0";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-4OEF5W6Y.js";
4
- import "../chunk-HNG4KOYQ.js";
3
+ } from "../chunk-TWFS6THS.js";
4
+ import "../chunk-QVJGIQYP.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -26,6 +26,7 @@ __export(count_resources_exports, {
26
26
  module.exports = __toCommonJS(count_resources_exports);
27
27
  var import_glob = require("glob");
28
28
  var RESOURCE_PATTERNS = {
29
+ agents: ["**/agents/*/index.@(md|mdx)"],
29
30
  events: ["**/events/*/index.@(md|mdx)"],
30
31
  commands: ["**/commands/*/index.@(md|mdx)"],
31
32
  queries: ["**/queries/*/index.@(md|mdx)"],
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  countResources,
3
3
  serializeCounts
4
- } from "../chunk-4UVFXLPI.js";
4
+ } from "../chunk-3DVHEVHQ.js";
5
5
  export {
6
6
  countResources,
7
7
  serializeCounts
@@ -111,7 +111,7 @@ var import_axios = __toESM(require("axios"), 1);
111
111
  var import_os = __toESM(require("os"), 1);
112
112
 
113
113
  // package.json
114
- var version = "3.40.1";
114
+ var version = "3.41.0";
115
115
 
116
116
  // src/constants.ts
117
117
  var VERSION = version;
@@ -143,6 +143,7 @@ async function raiseEvent(eventData) {
143
143
  // src/analytics/count-resources.js
144
144
  var import_glob = require("glob");
145
145
  var RESOURCE_PATTERNS = {
146
+ agents: ["**/agents/*/index.@(md|mdx)"],
146
147
  events: ["**/events/*/index.@(md|mdx)"],
147
148
  commands: ["**/commands/*/index.@(md|mdx)"],
148
149
  queries: ["**/queries/*/index.@(md|mdx)"],
@@ -189,6 +190,7 @@ var getFeatures = async (configFile) => {
189
190
  };
190
191
  var CLOUD_ANALYTICS_ENDPOINT = "https://api.ecingest.dev/v1/analytics/ingest";
191
192
  var toCloudResourceCounts = (counts) => ({
193
+ agents: counts.agents || 0,
192
194
  domains: counts.domains || 0,
193
195
  services: counts.services || 0,
194
196
  events: counts.events || 0,
@@ -224,7 +226,6 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
224
226
  });
225
227
  };
226
228
  var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled }) => {
227
- if (process.env.NODE_ENV === "CI") return;
228
229
  try {
229
230
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
230
231
  const configFile = await getEventCatalogConfigFile(projectDir);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-7UR72UMK.js";
4
- import "../chunk-4UVFXLPI.js";
5
- import "../chunk-4OEF5W6Y.js";
6
- import "../chunk-HNG4KOYQ.js";
3
+ } from "../chunk-ZN3JKTWB.js";
4
+ import "../chunk-TWFS6THS.js";
5
+ import "../chunk-3DVHEVHQ.js";
6
+ import "../chunk-QVJGIQYP.js";
7
7
  import "../chunk-5T63CXKU.js";
8
8
  export {
9
9
  log_build_default as default
@@ -120,6 +120,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
120
120
  // src/map-catalog-to-astro.js
121
121
  var import_node_path2 = __toESM(require("path"), 1);
122
122
  var COLLECTION_KEYS = [
123
+ "agents",
123
124
  "events",
124
125
  "commands",
125
126
  "services",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  catalogToAstro
3
- } from "./chunk-YDXB3BD2.js";
4
- import "./chunk-55D645EH.js";
3
+ } from "./chunk-O6KT4DPL.js";
4
+ import "./chunk-IR4IAKWS.js";
5
5
  import "./chunk-5T63CXKU.js";
6
6
  export {
7
7
  catalogToAstro
@@ -1,6 +1,7 @@
1
1
  // src/analytics/count-resources.js
2
2
  import { glob } from "glob";
3
3
  var RESOURCE_PATTERNS = {
4
+ agents: ["**/agents/*/index.@(md|mdx)"],
4
5
  events: ["**/events/*/index.@(md|mdx)"],
5
6
  commands: ["**/commands/*/index.@(md|mdx)"],
6
7
  queries: ["**/queries/*/index.@(md|mdx)"],
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapCatalogToAstro
3
- } from "./chunk-55D645EH.js";
3
+ } from "./chunk-IR4IAKWS.js";
4
4
 
5
5
  // src/watcher.js
6
6
  import watcher from "@parcel/watcher";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-OIVICT4V.js";
3
+ } from "./chunk-DKFIEB24.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-HNG4KOYQ.js";
3
+ } from "./chunk-QVJGIQYP.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,7 @@
1
1
  // src/map-catalog-to-astro.js
2
2
  import path from "path";
3
3
  var COLLECTION_KEYS = [
4
+ "agents",
4
5
  "events",
5
6
  "commands",
6
7
  "services",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapCatalogToAstro
3
- } from "./chunk-55D645EH.js";
3
+ } from "./chunk-IR4IAKWS.js";
4
4
  import {
5
5
  verifyRequiredFieldsAreInCatalogConfigFile
6
6
  } from "./chunk-5T63CXKU.js";
@@ -4,6 +4,7 @@ import path from "path";
4
4
  import { glob } from "glob";
5
5
  import matter from "gray-matter";
6
6
  var RESOURCE_COLLECTIONS = {
7
+ agents: { docsPath: "agents", type: "Agent" },
7
8
  channels: { docsPath: "channels", type: "Channel" },
8
9
  commands: { docsPath: "commands", type: "Command" },
9
10
  containers: { docsPath: "containers", type: "Container" },
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.40.1";
2
+ var version = "3.41.0";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-HNG4KOYQ.js";
3
+ } from "./chunk-QVJGIQYP.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,10 +1,10 @@
1
+ import {
2
+ raiseEvent
3
+ } from "./chunk-TWFS6THS.js";
1
4
  import {
2
5
  countResources,
3
6
  serializeCounts
4
- } from "./chunk-4UVFXLPI.js";
5
- import {
6
- raiseEvent
7
- } from "./chunk-4OEF5W6Y.js";
7
+ } from "./chunk-3DVHEVHQ.js";
8
8
  import {
9
9
  getEventCatalogConfigFile,
10
10
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -21,6 +21,7 @@ var getFeatures = async (configFile) => {
21
21
  };
22
22
  var CLOUD_ANALYTICS_ENDPOINT = "https://api.ecingest.dev/v1/analytics/ingest";
23
23
  var toCloudResourceCounts = (counts) => ({
24
+ agents: counts.agents || 0,
24
25
  domains: counts.domains || 0,
25
26
  services: counts.services || 0,
26
27
  events: counts.events || 0,
@@ -56,7 +57,6 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
56
57
  });
57
58
  };
58
59
  var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled }) => {
59
- if (process.env.NODE_ENV === "CI") return;
60
60
  try {
61
61
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
62
62
  const configFile = await getEventCatalogConfigFile(projectDir);
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.40.1";
28
+ var version = "3.41.0";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-HNG4KOYQ.js";
3
+ } from "./chunk-QVJGIQYP.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -114,7 +114,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
114
114
  var import_picocolors = __toESM(require("picocolors"), 1);
115
115
 
116
116
  // package.json
117
- var version = "3.40.1";
117
+ var version = "3.41.0";
118
118
 
119
119
  // src/constants.ts
120
120
  var VERSION = version;
@@ -238,6 +238,7 @@ async function raiseEvent(eventData) {
238
238
  // src/analytics/count-resources.js
239
239
  var import_glob = require("glob");
240
240
  var RESOURCE_PATTERNS = {
241
+ agents: ["**/agents/*/index.@(md|mdx)"],
241
242
  events: ["**/events/*/index.@(md|mdx)"],
242
243
  commands: ["**/commands/*/index.@(md|mdx)"],
243
244
  queries: ["**/queries/*/index.@(md|mdx)"],
@@ -284,6 +285,7 @@ var getFeatures = async (configFile) => {
284
285
  };
285
286
  var CLOUD_ANALYTICS_ENDPOINT = "https://api.ecingest.dev/v1/analytics/ingest";
286
287
  var toCloudResourceCounts = (counts) => ({
288
+ agents: counts.agents || 0,
287
289
  domains: counts.domains || 0,
288
290
  services: counts.services || 0,
289
291
  events: counts.events || 0,
@@ -319,7 +321,6 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
319
321
  });
320
322
  };
321
323
  var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStarterEnabled2, isEventCatalogScaleEnabled: isEventCatalogScaleEnabled2, isBackstagePluginEnabled }) => {
322
- if (process.env.NODE_ENV === "CI") return;
323
324
  try {
324
325
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
325
326
  const configFile = await getEventCatalogConfigFile(projectDir);
@@ -357,6 +358,7 @@ var import_node_fs2 = __toESM(require("fs"), 1);
357
358
  // src/map-catalog-to-astro.js
358
359
  var import_node_path3 = __toESM(require("path"), 1);
359
360
  var COLLECTION_KEYS = [
361
+ "agents",
360
362
  "events",
361
363
  "commands",
362
364
  "services",
@@ -1324,6 +1326,7 @@ var import_node_path8 = __toESM(require("path"), 1);
1324
1326
  var import_glob4 = require("glob");
1325
1327
  var import_gray_matter4 = __toESM(require("gray-matter"), 1);
1326
1328
  var RESOURCE_COLLECTIONS = {
1329
+ agents: { docsPath: "agents", type: "Agent" },
1327
1330
  channels: { docsPath: "channels", type: "Channel" },
1328
1331
  commands: { docsPath: "commands", type: "Command" },
1329
1332
  containers: { docsPath: "containers", type: "Container" },
@@ -35,6 +35,7 @@ type TableConfiguration = {
35
35
  columns: {
36
36
  [key: string]: {
37
37
  visible?: boolean;
38
+ label?: string;
38
39
  };
39
40
  };
40
41
  };
@@ -44,6 +45,8 @@ type PagesConfiguration = {
44
45
  icon?: string;
45
46
  pages?: string[];
46
47
  };
48
+ type NavigationPage = string | PagesConfiguration;
49
+ type GeneratorConfig = string | Record<string, unknown> | [string, Record<string, unknown>];
47
50
  type AuthConfig = {
48
51
  enabled: boolean;
49
52
  };
@@ -118,18 +121,26 @@ type IntegrationsConfig = {
118
121
  type CatalogTheme = 'default' | 'ocean' | 'sapphire' | 'sunset' | 'forest' | (string & {});
119
122
  type ScalarConfiguration = any;
120
123
  interface Config {
124
+ cId: string;
121
125
  title: string;
122
- tagline: false;
123
126
  organizationName: string;
124
- homepageLink: string;
125
- editUrl: string;
127
+ tagline?: string | false;
128
+ homepageLink?: string;
129
+ editUrl?: string;
126
130
  repositoryUrl?: string;
127
131
  landingPage?: string;
128
132
  base?: string;
129
- port?: string;
130
- host?: string;
133
+ port?: string | number;
134
+ outDir?: string;
135
+ host?: string | boolean;
131
136
  trailingSlash?: boolean;
132
137
  output?: 'server' | 'static';
138
+ server?: {
139
+ allowedHosts?: string[] | true;
140
+ };
141
+ security?: {
142
+ checkOrigin?: boolean;
143
+ };
133
144
  /**
134
145
  * Theme for the catalog UI.
135
146
  * - 'default': Default purple/slate theme
@@ -143,8 +154,8 @@ interface Config {
143
154
  auth?: AuthConfig;
144
155
  mcp?: McpConfig;
145
156
  rss?: {
146
- enabled: boolean;
147
- limit: number;
157
+ enabled?: boolean;
158
+ limit?: number;
148
159
  };
149
160
  search?: {
150
161
  /**
@@ -170,15 +181,16 @@ interface Config {
170
181
  compress?: boolean;
171
182
  sidebar?: SideBarConfig[];
172
183
  navigation?: {
173
- pages: PagesConfiguration[];
184
+ pages: NavigationPage[];
174
185
  };
175
- docs: {
186
+ docs?: {
176
187
  sidebar: {
177
188
  type?: 'TREE_VIEW' | 'LIST_VIEW';
178
189
  showOrphanedMessages?: boolean;
179
190
  };
180
191
  };
181
192
  dependencies?: {
193
+ agents?: ResourceDependency[];
182
194
  commands?: ResourceDependency[];
183
195
  events?: ResourceDependency[];
184
196
  services?: ResourceDependency[];
@@ -189,7 +201,7 @@ interface Config {
189
201
  iconPacks?: string[];
190
202
  };
191
203
  chat?: {
192
- enabled: boolean;
204
+ enabled?: boolean;
193
205
  provider?: 'openai' | 'anthropic' | 'google';
194
206
  model?: string;
195
207
  max_tokens?: number;
@@ -207,7 +219,7 @@ interface Config {
207
219
  /**
208
220
  * Enable or disable the /api/catalog endpoint that dumps the entire catalog as JSON.
209
221
  * Disabling this can significantly reduce memory usage during builds for large catalogs (1000+ files).
210
- * @default false
222
+ * @default true
211
223
  */
212
224
  fullCatalogAPIEnabled?: boolean;
213
225
  };
@@ -235,6 +247,9 @@ interface Config {
235
247
  events?: {
236
248
  tableConfiguration?: TableConfiguration;
237
249
  };
250
+ agents?: {
251
+ tableConfiguration?: TableConfiguration;
252
+ };
238
253
  services?: {
239
254
  tableConfiguration?: TableConfiguration;
240
255
  };
@@ -256,6 +271,7 @@ interface Config {
256
271
  cloud?: EventCatalogCloudConfig;
257
272
  integrations?: IntegrationsConfig;
258
273
  scalarConfiguration?: ScalarConfiguration;
274
+ generators?: GeneratorConfig[];
259
275
  }
260
276
 
261
277
  export type { Config, SideBarConfig };
@@ -35,6 +35,7 @@ type TableConfiguration = {
35
35
  columns: {
36
36
  [key: string]: {
37
37
  visible?: boolean;
38
+ label?: string;
38
39
  };
39
40
  };
40
41
  };
@@ -44,6 +45,8 @@ type PagesConfiguration = {
44
45
  icon?: string;
45
46
  pages?: string[];
46
47
  };
48
+ type NavigationPage = string | PagesConfiguration;
49
+ type GeneratorConfig = string | Record<string, unknown> | [string, Record<string, unknown>];
47
50
  type AuthConfig = {
48
51
  enabled: boolean;
49
52
  };
@@ -118,18 +121,26 @@ type IntegrationsConfig = {
118
121
  type CatalogTheme = 'default' | 'ocean' | 'sapphire' | 'sunset' | 'forest' | (string & {});
119
122
  type ScalarConfiguration = any;
120
123
  interface Config {
124
+ cId: string;
121
125
  title: string;
122
- tagline: false;
123
126
  organizationName: string;
124
- homepageLink: string;
125
- editUrl: string;
127
+ tagline?: string | false;
128
+ homepageLink?: string;
129
+ editUrl?: string;
126
130
  repositoryUrl?: string;
127
131
  landingPage?: string;
128
132
  base?: string;
129
- port?: string;
130
- host?: string;
133
+ port?: string | number;
134
+ outDir?: string;
135
+ host?: string | boolean;
131
136
  trailingSlash?: boolean;
132
137
  output?: 'server' | 'static';
138
+ server?: {
139
+ allowedHosts?: string[] | true;
140
+ };
141
+ security?: {
142
+ checkOrigin?: boolean;
143
+ };
133
144
  /**
134
145
  * Theme for the catalog UI.
135
146
  * - 'default': Default purple/slate theme
@@ -143,8 +154,8 @@ interface Config {
143
154
  auth?: AuthConfig;
144
155
  mcp?: McpConfig;
145
156
  rss?: {
146
- enabled: boolean;
147
- limit: number;
157
+ enabled?: boolean;
158
+ limit?: number;
148
159
  };
149
160
  search?: {
150
161
  /**
@@ -170,15 +181,16 @@ interface Config {
170
181
  compress?: boolean;
171
182
  sidebar?: SideBarConfig[];
172
183
  navigation?: {
173
- pages: PagesConfiguration[];
184
+ pages: NavigationPage[];
174
185
  };
175
- docs: {
186
+ docs?: {
176
187
  sidebar: {
177
188
  type?: 'TREE_VIEW' | 'LIST_VIEW';
178
189
  showOrphanedMessages?: boolean;
179
190
  };
180
191
  };
181
192
  dependencies?: {
193
+ agents?: ResourceDependency[];
182
194
  commands?: ResourceDependency[];
183
195
  events?: ResourceDependency[];
184
196
  services?: ResourceDependency[];
@@ -189,7 +201,7 @@ interface Config {
189
201
  iconPacks?: string[];
190
202
  };
191
203
  chat?: {
192
- enabled: boolean;
204
+ enabled?: boolean;
193
205
  provider?: 'openai' | 'anthropic' | 'google';
194
206
  model?: string;
195
207
  max_tokens?: number;
@@ -207,7 +219,7 @@ interface Config {
207
219
  /**
208
220
  * Enable or disable the /api/catalog endpoint that dumps the entire catalog as JSON.
209
221
  * Disabling this can significantly reduce memory usage during builds for large catalogs (1000+ files).
210
- * @default false
222
+ * @default true
211
223
  */
212
224
  fullCatalogAPIEnabled?: boolean;
213
225
  };
@@ -235,6 +247,9 @@ interface Config {
235
247
  events?: {
236
248
  tableConfiguration?: TableConfiguration;
237
249
  };
250
+ agents?: {
251
+ tableConfiguration?: TableConfiguration;
252
+ };
238
253
  services?: {
239
254
  tableConfiguration?: TableConfiguration;
240
255
  };
@@ -256,6 +271,7 @@ interface Config {
256
271
  cloud?: EventCatalogCloudConfig;
257
272
  integrations?: IntegrationsConfig;
258
273
  scalarConfiguration?: ScalarConfiguration;
274
+ generators?: GeneratorConfig[];
259
275
  }
260
276
 
261
277
  export type { Config, SideBarConfig };
@@ -1,25 +1,25 @@
1
1
  import {
2
- log_build_default
3
- } from "./chunk-7UR72UMK.js";
4
- import "./chunk-4UVFXLPI.js";
2
+ runMigrations
3
+ } from "./chunk-XUAF2H54.js";
4
+ import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  resolve_catalog_dependencies_default
7
7
  } from "./chunk-WAJIJEI3.js";
8
8
  import {
9
9
  buildSearchIndex
10
- } from "./chunk-D6IBLY3O.js";
10
+ } from "./chunk-QMORF42U.js";
11
11
  import {
12
12
  watch
13
- } from "./chunk-K3ZVEX2Y.js";
13
+ } from "./chunk-3H2RT3CM.js";
14
14
  import {
15
- runMigrations
16
- } from "./chunk-XUAF2H54.js";
17
- import "./chunk-CA4U2JP7.js";
18
- import "./chunk-4OEF5W6Y.js";
15
+ log_build_default
16
+ } from "./chunk-ZN3JKTWB.js";
17
+ import "./chunk-TWFS6THS.js";
18
+ import "./chunk-3DVHEVHQ.js";
19
19
  import {
20
20
  catalogToAstro
21
- } from "./chunk-YDXB3BD2.js";
22
- import "./chunk-55D645EH.js";
21
+ } from "./chunk-O6KT4DPL.js";
22
+ import "./chunk-IR4IAKWS.js";
23
23
  import {
24
24
  getProjectOutDir,
25
25
  isAuthEnabled,
@@ -28,13 +28,13 @@ import {
28
28
  } from "./chunk-ULZYHF3V.js";
29
29
  import {
30
30
  generate
31
- } from "./chunk-BRMLU4PR.js";
31
+ } from "./chunk-3R6TKNHG.js";
32
32
  import {
33
33
  logger
34
- } from "./chunk-OIVICT4V.js";
34
+ } from "./chunk-DKFIEB24.js";
35
35
  import {
36
36
  VERSION
37
- } from "./chunk-HNG4KOYQ.js";
37
+ } from "./chunk-QVJGIQYP.js";
38
38
  import {
39
39
  getEventCatalogConfigFile,
40
40
  verifyRequiredFieldsAreInCatalogConfigFile
package/dist/generate.cjs CHANGED
@@ -78,7 +78,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
78
78
  var import_picocolors = __toESM(require("picocolors"), 1);
79
79
 
80
80
  // package.json
81
- var version = "3.40.1";
81
+ var version = "3.41.0";
82
82
 
83
83
  // src/constants.ts
84
84
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-BRMLU4PR.js";
4
- import "./chunk-OIVICT4V.js";
5
- import "./chunk-HNG4KOYQ.js";
3
+ } from "./chunk-3R6TKNHG.js";
4
+ import "./chunk-DKFIEB24.js";
5
+ import "./chunk-QVJGIQYP.js";
6
6
  import "./chunk-5T63CXKU.js";
7
7
  export {
8
8
  generate
@@ -35,6 +35,7 @@ __export(map_catalog_to_astro_exports, {
35
35
  module.exports = __toCommonJS(map_catalog_to_astro_exports);
36
36
  var import_node_path = __toESM(require("path"), 1);
37
37
  var COLLECTION_KEYS = [
38
+ "agents",
38
39
  "events",
39
40
  "commands",
40
41
  "services",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapCatalogToAstro
3
- } from "./chunk-55D645EH.js";
3
+ } from "./chunk-IR4IAKWS.js";
4
4
  export {
5
5
  mapCatalogToAstro
6
6
  };
@@ -40,6 +40,7 @@ var import_node_path = __toESM(require("path"), 1);
40
40
  var import_glob = require("glob");
41
41
  var import_gray_matter = __toESM(require("gray-matter"), 1);
42
42
  var RESOURCE_COLLECTIONS = {
43
+ agents: { docsPath: "agents", type: "Agent" },
43
44
  channels: { docsPath: "channels", type: "Channel" },
44
45
  commands: { docsPath: "commands", type: "Command" },
45
46
  containers: { docsPath: "containers", type: "Container" },
@@ -2,7 +2,7 @@ import {
2
2
  buildSearchIndex,
3
3
  collectSearchRecords,
4
4
  markdownToSearchText
5
- } from "./chunk-D6IBLY3O.js";
5
+ } from "./chunk-QMORF42U.js";
6
6
  export {
7
7
  buildSearchIndex,
8
8
  collectSearchRecords,
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "3.40.1";
39
+ var version = "3.41.0";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;