@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.
- package/bin/eventcatalog.config.d.ts +1 -0
- package/dist/__mocks__/astro-content.d.cts +1 -1
- package/dist/__mocks__/astro-content.d.ts +1 -1
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/count-resources.cjs +1 -0
- package/dist/analytics/count-resources.js +1 -1
- package/dist/analytics/log-build.cjs +3 -2
- package/dist/analytics/log-build.js +4 -4
- package/dist/catalog-to-astro-content-directory.cjs +1 -0
- package/dist/catalog-to-astro-content-directory.js +2 -2
- package/dist/{chunk-4UVFXLPI.js → chunk-3DVHEVHQ.js} +1 -0
- package/dist/{chunk-K3ZVEX2Y.js → chunk-3H2RT3CM.js} +1 -1
- package/dist/{chunk-BRMLU4PR.js → chunk-3R6TKNHG.js} +1 -1
- package/dist/{chunk-OIVICT4V.js → chunk-DKFIEB24.js} +1 -1
- package/dist/{chunk-55D645EH.js → chunk-IR4IAKWS.js} +1 -0
- package/dist/{chunk-YDXB3BD2.js → chunk-O6KT4DPL.js} +1 -1
- package/dist/{chunk-D6IBLY3O.js → chunk-QMORF42U.js} +1 -0
- package/dist/{chunk-HNG4KOYQ.js → chunk-QVJGIQYP.js} +1 -1
- package/dist/{chunk-4OEF5W6Y.js → chunk-TWFS6THS.js} +1 -1
- package/dist/{chunk-7UR72UMK.js → chunk-ZN3JKTWB.js} +5 -5
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +5 -2
- package/dist/eventcatalog.config.d.cts +27 -11
- package/dist/eventcatalog.config.d.ts +27 -11
- package/dist/eventcatalog.js +14 -14
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/map-catalog-to-astro.cjs +1 -0
- package/dist/map-catalog-to-astro.js +1 -1
- package/dist/search-indexer.cjs +1 -0
- package/dist/search-indexer.js +1 -1
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/dist/watcher.cjs +1 -0
- package/dist/watcher.js +2 -2
- package/eventcatalog/public/agents/anthropic-dark.svg +1 -0
- package/eventcatalog/public/agents/anthropic-light.svg +1 -0
- package/eventcatalog/public/agents/openai-dark.svg +1 -0
- package/eventcatalog/public/agents/openai-light.svg +1 -0
- package/eventcatalog/public/agents/openai.svg +1 -0
- package/eventcatalog/public/icons/agent/anthropic-dark.svg +1 -0
- package/eventcatalog/public/icons/agent/anthropic-light.svg +1 -0
- package/eventcatalog/public/icons/agent/anthropic.svg +1 -0
- package/eventcatalog/public/icons/agent/gemini.svg +1 -0
- package/eventcatalog/public/icons/agent/openai-dark.svg +1 -0
- package/eventcatalog/public/icons/agent/openai-light.svg +1 -0
- package/eventcatalog/public/icons/agent/openai.svg +1 -0
- package/eventcatalog/public/icons/agents/anthropic-dark.svg +1 -0
- package/eventcatalog/public/icons/agents/anthropic-light.svg +1 -0
- package/eventcatalog/public/icons/agents/anthropic.svg +1 -0
- package/eventcatalog/public/icons/agents/gemini.svg +1 -0
- package/eventcatalog/public/icons/agents/openai-dark.svg +1 -0
- package/eventcatalog/public/icons/agents/openai-light.svg +1 -0
- package/eventcatalog/public/icons/agents/openai.svg +1 -0
- package/eventcatalog/public/icons/protocols/mcp-dark.svg +1 -0
- package/eventcatalog/public/icons/protocols/mcp-light.svg +1 -0
- package/eventcatalog/public/icons/protocols/mcp.svg +1 -0
- package/eventcatalog/public/icons/tools/datadog.svg +1 -0
- package/eventcatalog/public/icons/tools/github.svg +1 -0
- package/eventcatalog/public/icons/tools/hubspot.svg +1 -0
- package/eventcatalog/public/icons/tools/slack.svg +1 -0
- package/eventcatalog/public/icons/tools/snowflake.svg +1 -0
- package/eventcatalog/public/icons/tools/zendesk.svg +1 -0
- package/eventcatalog/src/components/Badge.astro +41 -2
- package/eventcatalog/src/components/Grids/MessageGrid.tsx +16 -11
- package/eventcatalog/src/components/MDX/AgentTools/AgentTools.astro +132 -0
- package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.astro +2 -0
- package/eventcatalog/src/components/MDX/ResourceRef/ResourceRef.astro +8 -3
- package/eventcatalog/src/components/MDX/components.tsx +2 -0
- package/eventcatalog/src/components/Search/SearchModal.tsx +3 -0
- package/eventcatalog/src/components/Search/search-utils.ts +2 -0
- package/eventcatalog/src/components/SideNav/NestedSideBar/SearchBar.tsx +3 -0
- package/eventcatalog/src/components/SideNav/NestedSideBar/index.tsx +3 -0
- package/eventcatalog/src/components/Tables/Discover/DiscoverTable.tsx +165 -0
- package/eventcatalog/src/components/Tables/Discover/columns.tsx +132 -7
- package/eventcatalog/src/components/Tables/Table.tsx +2 -0
- package/eventcatalog/src/components/Tables/columns/TeamsTableColumns.tsx +17 -0
- package/eventcatalog/src/components/Tables/columns/UserTableColumns.tsx +17 -0
- package/eventcatalog/src/content.config.ts +83 -25
- package/eventcatalog/src/enterprise/collections/resource-docs-utils.ts +7 -4
- package/eventcatalog/src/enterprise/mcp/mcp-server.ts +9 -2
- package/eventcatalog/src/enterprise/tools/catalog-tools.ts +62 -28
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +13 -1
- package/eventcatalog/src/pages/_index.astro +1 -3
- package/eventcatalog/src/pages/architecture/[type]/[id]/[version]/_index.data.ts +5 -5
- package/eventcatalog/src/pages/architecture/[type]/[id]/[version]/index.astro +5 -2
- package/eventcatalog/src/pages/directory/[type]/index.astro +2 -0
- package/eventcatalog/src/pages/discover/[type]/_index.data.ts +5 -0
- package/eventcatalog/src/pages/discover/[type]/index.astro +69 -23
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId].mdx.ts +1 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/_index.data.ts +1 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/changelog/_index.data.ts +1 -1
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +47 -2
- package/eventcatalog/src/pages/docs/[type]/[id]/[version].md.ts +2 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/[version].mdx.ts +2 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/_index.data.ts +1 -0
- package/eventcatalog/src/pages/docs/llm/llms-full.txt.ts +3 -0
- package/eventcatalog/src/pages/docs/llm/llms.txt.ts +3 -0
- package/eventcatalog/src/pages/docs/teams/[id]/index.astro +24 -1
- package/eventcatalog/src/pages/docs/users/[id]/index.astro +24 -1
- package/eventcatalog/src/pages/visualiser/[type]/[id]/[version]/_index.data.ts +2 -1
- package/eventcatalog/src/stores/sidebar-store/builders/agent.ts +141 -0
- package/eventcatalog/src/stores/sidebar-store/builders/domain.ts +9 -0
- package/eventcatalog/src/stores/sidebar-store/builders/flow.ts +19 -0
- package/eventcatalog/src/stores/sidebar-store/builders/message.ts +8 -2
- package/eventcatalog/src/stores/sidebar-store/builders/shared.ts +10 -7
- package/eventcatalog/src/stores/sidebar-store/state.ts +121 -2
- package/eventcatalog/src/types/index.ts +3 -1
- package/eventcatalog/src/utils/collection-colors.ts +5 -0
- package/eventcatalog/src/utils/collections/agents.ts +163 -0
- package/eventcatalog/src/utils/collections/commands.ts +3 -2
- package/eventcatalog/src/utils/collections/domains.ts +94 -15
- package/eventcatalog/src/utils/collections/events.ts +3 -2
- package/eventcatalog/src/utils/collections/flows.ts +20 -3
- package/eventcatalog/src/utils/collections/icons.ts +3 -1
- package/eventcatalog/src/utils/collections/messages.ts +35 -5
- package/eventcatalog/src/utils/collections/queries.ts +3 -2
- package/eventcatalog/src/utils/collections/schemas.ts +4 -4
- package/eventcatalog/src/utils/collections/services.ts +1 -1
- package/eventcatalog/src/utils/collections/teams.ts +5 -1
- package/eventcatalog/src/utils/collections/types.ts +1 -0
- package/eventcatalog/src/utils/collections/users.ts +5 -1
- package/eventcatalog/src/utils/collections/util.ts +2 -0
- package/eventcatalog/src/utils/eventcatalog-config/catalog.ts +1 -0
- package/eventcatalog/src/utils/llms.ts +1 -1
- package/eventcatalog/src/utils/node-graphs/agents-node-graph.ts +4 -0
- package/eventcatalog/src/utils/node-graphs/container-node-graph.ts +2 -2
- package/eventcatalog/src/utils/node-graphs/domains-node-graph.ts +42 -9
- package/eventcatalog/src/utils/node-graphs/export-mermaid.ts +20 -0
- package/eventcatalog/src/utils/node-graphs/export-node-graph.ts +4 -0
- package/eventcatalog/src/utils/node-graphs/flows-node-graph.ts +22 -1
- package/eventcatalog/src/utils/node-graphs/message-node-graph.ts +175 -98
- package/eventcatalog/src/utils/node-graphs/services-node-graph.ts +117 -23
- package/eventcatalog/src/utils/node-graphs/utils/utils.ts +30 -0
- package/eventcatalog/src/utils/page-loaders/page-data-loader.ts +2 -0
- package/eventcatalog/src/utils/resource-reference-colors.ts +1 -0
- 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;
|
|
@@ -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)"],
|
|
@@ -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.
|
|
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-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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,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)"],
|
|
@@ -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,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
raiseEvent
|
|
3
|
+
} from "./chunk-TWFS6THS.js";
|
|
1
4
|
import {
|
|
2
5
|
countResources,
|
|
3
6
|
serializeCounts
|
|
4
|
-
} from "./chunk-
|
|
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);
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
125
|
-
|
|
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
|
-
|
|
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
|
|
147
|
-
limit
|
|
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:
|
|
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
|
|
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
|
|
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
|
-
|
|
125
|
-
|
|
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
|
-
|
|
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
|
|
147
|
-
limit
|
|
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:
|
|
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
|
|
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
|
|
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 };
|
package/dist/eventcatalog.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
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-
|
|
10
|
+
} from "./chunk-QMORF42U.js";
|
|
11
11
|
import {
|
|
12
12
|
watch
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3H2RT3CM.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
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-
|
|
22
|
-
import "./chunk-
|
|
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-
|
|
31
|
+
} from "./chunk-3R6TKNHG.js";
|
|
32
32
|
import {
|
|
33
33
|
logger
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-DKFIEB24.js";
|
|
35
35
|
import {
|
|
36
36
|
VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-QVJGIQYP.js";
|
|
38
38
|
import {
|
|
39
39
|
getEventCatalogConfigFile,
|
|
40
40
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/generate.cjs
CHANGED
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
|
package/dist/search-indexer.cjs
CHANGED
|
@@ -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" },
|
package/dist/search-indexer.js
CHANGED