@eventcatalog/core 3.39.5 → 3.40.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/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-KVAEAYEP.js → chunk-72BKUYSR.js} +1 -1
- package/dist/{chunk-M4S7PORQ.js → chunk-J5CG7FRO.js} +1 -1
- package/dist/{chunk-S4HLJWQ7.js → chunk-K762FILQ.js} +1 -1
- package/dist/{chunk-TNE5QSJ4.js → chunk-UPI6QQEZ.js} +1 -1
- package/dist/{chunk-H5BZMNK3.js → chunk-WFNAWDCB.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/docs/api/03-domain-api.md +16 -0
- package/dist/docs/api/04-service-api.md +16 -0
- package/dist/docs/api/05-command-api.md +16 -0
- package/dist/docs/api/06-event-api.md +16 -0
- package/dist/docs/api/06-query-api.md +16 -0
- package/dist/docs/api/08-channel-api.md +16 -0
- package/dist/docs/api/09-flow-api.md +16 -0
- package/dist/docs/api/10-entity-api.md +15 -0
- package/dist/docs/api/12-data-product-api.md +17 -0
- package/dist/docs/development/01-fundamentals.md +7 -0
- package/dist/docs/development/01-getting-started/installation.md +8 -0
- package/dist/docs/development/01-getting-started/project-structure.md +2 -0
- package/dist/docs/development/ask-your-architecture/03-mcp-server/getting-started.md +72 -0
- package/dist/docs/development/bring-your-own-documentation/01-introduction.md +3 -1
- package/dist/docs/development/customization/customize-sidebars/00-application-sidebar.md +45 -5
- package/dist/docs/editor/00-overview.md +73 -0
- package/dist/docs/editor/01-first-edit.md +124 -0
- package/dist/docs/editor/_category_.json +12 -0
- package/dist/docs/editor/explanation/_category_.json +11 -0
- package/dist/docs/editor/explanation/beta-status-feedback.md +48 -0
- package/dist/docs/editor/explanation/how-it-works.md +49 -0
- package/dist/docs/editor/explanation/markdown-mdx-git.md +58 -0
- package/dist/docs/editor/how-to/_category_.json +11 -0
- package/dist/docs/editor/how-to/add-schemas-and-specifications.md +66 -0
- package/dist/docs/editor/how-to/edit-resource.md +88 -0
- package/dist/docs/editor/how-to/invite-editors.md +68 -0
- package/dist/docs/editor/how-to/open-catalog.md +44 -0
- package/dist/docs/editor/how-to/preview-changes.md +55 -0
- package/dist/docs/editor/how-to/revert-local-changes.md +43 -0
- package/dist/docs/editor/how-to/review-and-commit-changes.md +57 -0
- package/dist/docs/editor/how-to/run-locally.md +71 -0
- package/dist/docs/editor/how-to/use-flow-editor.md +66 -0
- package/dist/docs/editor/how-to/use-slash-commands.md +67 -0
- package/dist/docs/editor/reference/_category_.json +11 -0
- package/dist/docs/editor/reference/cli.md +61 -0
- package/dist/docs/editor/reference/supported-content.md +81 -0
- package/dist/docs/editor/reference/supported-resources.md +51 -0
- package/dist/docs/editor/reference/troubleshooting.md +76 -0
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.config.d.cts +42 -0
- package/dist/eventcatalog.config.d.ts +42 -0
- package/dist/eventcatalog.js +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/components/Badge.astro +50 -0
- package/eventcatalog/src/components/Tables/Discover/DiscoverTable.tsx +1 -0
- package/eventcatalog/src/components/Tables/Discover/columns.tsx +35 -13
- package/eventcatalog/src/components/Tables/Table.tsx +1 -0
- package/eventcatalog/src/components/Tables/columns/SharedColumns.tsx +24 -11
- package/eventcatalog/src/content.config-shared-collections.ts +1 -0
- package/eventcatalog/src/enterprise/auth/middleware/middleware-auth.ts +6 -1
- package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/index.astro +2 -18
- package/eventcatalog/src/enterprise/feature.ts +2 -0
- package/eventcatalog/src/enterprise/integrations/eventcatalog-features.ts +12 -0
- package/eventcatalog/src/enterprise/mcp/mcp-auth.ts +266 -0
- package/eventcatalog/src/enterprise/mcp/mcp-server.ts +13 -0
- package/eventcatalog/src/enterprise/mcp/oauth-protected-resource.ts +25 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +2 -14
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +2 -14
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/changelog/index.astro +3 -15
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/graphql/[filename].astro +2 -18
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +2 -18
- package/eventcatalog/src/pages/docs/[type]/[id]/language/[dictionaryId]/index.astro +2 -11
- package/eventcatalog/src/utils/badge-styles.ts +31 -0
- package/eventcatalog/src/utils/feature.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 9
|
|
3
|
+
sidebar_label: Review and publish changes
|
|
4
|
+
title: Review and publish editor changes
|
|
5
|
+
description: Use the editor changes view to inspect local Git changes and publish a local commit.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
EventCatalog Editor writes to your local catalog files. Use the **Changes** page to inspect what changed before you publish.
|
|
9
|
+
|
|
10
|
+
## Open the Changes page
|
|
11
|
+
|
|
12
|
+
Choose **Changes** from the editor navigation.
|
|
13
|
+
|
|
14
|
+
If the catalog is a Git repository, the editor shows local changes grouped by EventCatalog resource.
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
## Inspect a file diff
|
|
19
|
+
|
|
20
|
+
Open a changed file to view the unified diff.
|
|
21
|
+
|
|
22
|
+
Use the diff to check:
|
|
23
|
+
|
|
24
|
+
- The intended Markdown or MDX changed
|
|
25
|
+
- Metadata changes are correct
|
|
26
|
+
- Generated schema or specification paths look right
|
|
27
|
+
- Unrelated files were not changed accidentally
|
|
28
|
+
|
|
29
|
+
## Publish from the editor
|
|
30
|
+
|
|
31
|
+
When the changes look right, click **Publish** in the editor.
|
|
32
|
+
|
|
33
|
+
In the beta editor, **Publish** commits your changes locally to Git. It does not deploy your catalog or open a pull request.
|
|
34
|
+
|
|
35
|
+
Use a short message that describes the catalog change, for example:
|
|
36
|
+
|
|
37
|
+
```txt
|
|
38
|
+
Document OrderPlaced event schema
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Continue with your team's workflow
|
|
42
|
+
|
|
43
|
+
After publishing, use your existing Git workflow to share and release the change.
|
|
44
|
+
|
|
45
|
+
For example:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
git push
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Then open a pull request if your team reviews catalog changes through GitHub or another Git hosting provider.
|
|
52
|
+
|
|
53
|
+
::::info Pull request creation
|
|
54
|
+
|
|
55
|
+
Built-in pull request creation is planned, but beta users should continue using their existing Git workflow after publishing local changes.
|
|
56
|
+
|
|
57
|
+
::::
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 1
|
|
3
|
+
sidebar_label: Run locally
|
|
4
|
+
title: Run EventCatalog Editor locally
|
|
5
|
+
description: Start EventCatalog Editor against a local EventCatalog project.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Use this guide when you want to start EventCatalog Editor on your machine.
|
|
9
|
+
|
|
10
|
+
## Prerequisites
|
|
11
|
+
|
|
12
|
+
You need:
|
|
13
|
+
|
|
14
|
+
- Node.js 22 or later
|
|
15
|
+
- Git
|
|
16
|
+
- An EventCatalog project containing `eventcatalog.config.js`
|
|
17
|
+
- EventCatalog Editor access through [EventCatalog Cloud](https://eventcatalog.cloud)
|
|
18
|
+
|
|
19
|
+
## Run from a catalog directory
|
|
20
|
+
|
|
21
|
+
Open a terminal in your EventCatalog project and run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx @eventcatalog/editor
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The editor starts on [http://localhost:3900](http://localhost:3900).
|
|
28
|
+
|
|
29
|
+
## Run with an explicit catalog path
|
|
30
|
+
|
|
31
|
+
If you are not in the catalog directory, pass the catalog path:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx @eventcatalog/editor --catalog /path/to/my-catalog
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The directory must contain `eventcatalog.config.js`.
|
|
38
|
+
|
|
39
|
+
## Choose a different editor port
|
|
40
|
+
|
|
41
|
+
Use `--port` when port `3900` is already in use:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx @eventcatalog/editor --port 3999
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Connect preview links to a running catalog
|
|
48
|
+
|
|
49
|
+
The editor looks for a local EventCatalog preview on port `3000` by default.
|
|
50
|
+
|
|
51
|
+
Start EventCatalog in your catalog project:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npm run dev
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Then start the editor in another terminal:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npx @eventcatalog/editor
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
If your EventCatalog preview runs on another port, pass it to the editor:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npx @eventcatalog/editor --eventcatalog-port 3001
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Stop the editor
|
|
70
|
+
|
|
71
|
+
Return to the terminal running the editor and press `Ctrl+C`.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 5
|
|
3
|
+
sidebar_label: Flow Editor
|
|
4
|
+
title: Use the Flow Editor
|
|
5
|
+
description: Create and update EventCatalog flows visually with EventCatalog Editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Use the Flow Editor when you want to document a business process, user journey, or architecture workflow without editing the [flow](/docs/development/guides/flows/introduction) files by hand.
|
|
9
|
+
|
|
10
|
+
Flow resources are still stored in your local EventCatalog project. The editor gives you a visual way to create and arrange the steps, then writes the change back to your catalog files.
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
## Open a flow
|
|
15
|
+
|
|
16
|
+
Start EventCatalog Editor and open a flow from the resource list.
|
|
17
|
+
|
|
18
|
+
If you are creating a new flow, create it from the editor first, then open it from the flow list.
|
|
19
|
+
|
|
20
|
+
Click the **Flow Editor** tab at the top of the resource to switch from the documentation view into the visual editor.
|
|
21
|
+
|
|
22
|
+
## Add a step
|
|
23
|
+
|
|
24
|
+
Use **Add step** or choose an empty node in the flow.
|
|
25
|
+
|
|
26
|
+
The editor opens a picker so you can choose what kind of node belongs in the flow.
|
|
27
|
+
|
|
28
|
+

|
|
29
|
+
|
|
30
|
+
## Choose the right node
|
|
31
|
+
|
|
32
|
+
Use the node picker to add the resource that best represents the next step.
|
|
33
|
+
|
|
34
|
+
For example:
|
|
35
|
+
|
|
36
|
+
- Add a [service](/docs/development/guides/services/introduction) when a system performs work
|
|
37
|
+
- Add an [event](/docs/development/guides/messages/events/introduction) when something has happened
|
|
38
|
+
- Add a [command](/docs/development/guides/messages/commands/introduction) when one system asks another system to do something
|
|
39
|
+
- Add a [query](/docs/development/guides/messages/queries/introduction) when the flow reads information
|
|
40
|
+
|
|
41
|
+
Use existing catalog resources when they already exist. Create new resources when the flow reveals something that is missing from the catalog.
|
|
42
|
+
|
|
43
|
+
## Review the flow
|
|
44
|
+
|
|
45
|
+
After adding steps, read the flow from left to right and check that it tells the story clearly.
|
|
46
|
+
|
|
47
|
+
Check that:
|
|
48
|
+
|
|
49
|
+
- The flow starts with the trigger or first meaningful step
|
|
50
|
+
- Each step uses the most accurate resource type
|
|
51
|
+
- Resource names match the language your team uses
|
|
52
|
+
- The flow is clear enough for someone who was not in the design discussion
|
|
53
|
+
|
|
54
|
+
## Preview the flow
|
|
55
|
+
|
|
56
|
+
Use **Open Preview** to view the flow in your local EventCatalog site.
|
|
57
|
+
|
|
58
|
+
Preview helps you check how the flow will look to readers before you publish the local commit.
|
|
59
|
+
|
|
60
|
+
## Publish the change
|
|
61
|
+
|
|
62
|
+
Open **Changes** and review the files the Flow Editor changed.
|
|
63
|
+
|
|
64
|
+
When the diff looks right, click **Publish**. In the beta editor, **Publish** commits your changes locally to Git.
|
|
65
|
+
|
|
66
|
+
After publishing, continue with your team's normal Git review and release workflow.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 6
|
|
3
|
+
sidebar_label: Use slash commands
|
|
4
|
+
title: Use slash commands
|
|
5
|
+
description: Insert Markdown blocks and EventCatalog components from the rich editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Slash commands let you add content without remembering Markdown syntax or MDX component names.
|
|
9
|
+
|
|
10
|
+
Type `/` in an empty paragraph to open the command menu. The menu shows matching blocks, grouped by purpose, with a visual preview of the selected command.
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
## Insert a block
|
|
15
|
+
|
|
16
|
+
1. Click into the resource documentation.
|
|
17
|
+
2. Start a new empty paragraph.
|
|
18
|
+
3. Type `/`.
|
|
19
|
+
4. Search or scroll to the block you want.
|
|
20
|
+
5. Press `Enter` or click the command.
|
|
21
|
+
|
|
22
|
+
The editor inserts the matching Markdown or MDX block into the resource.
|
|
23
|
+
|
|
24
|
+
## Add EventCatalog components
|
|
25
|
+
|
|
26
|
+
Slash commands are useful for adding EventCatalog-specific components without switching to source mode.
|
|
27
|
+
|
|
28
|
+
You can insert components such as:
|
|
29
|
+
|
|
30
|
+
- Node Graph
|
|
31
|
+
- Miro diagram
|
|
32
|
+
- Draw.io diagram
|
|
33
|
+
- Lucid diagram
|
|
34
|
+
- IcePanel diagram
|
|
35
|
+
- [Flow](/docs/development/guides/flows/introduction)
|
|
36
|
+
- Mermaid diagram
|
|
37
|
+
- Entity Map
|
|
38
|
+
- Schema Viewer
|
|
39
|
+
- Steps
|
|
40
|
+
- Tiles
|
|
41
|
+
- Accordion group
|
|
42
|
+
- Prompt
|
|
43
|
+
- Visibility
|
|
44
|
+
- Admonitions such as note, tip, warning, danger, and info
|
|
45
|
+
|
|
46
|
+
Some commands are available only when they make sense for the current resource. For example, **Schema Viewer** is available for [events](/docs/development/guides/messages/events/introduction), [commands](/docs/development/guides/messages/commands/introduction), and [queries](/docs/development/guides/messages/queries/introduction), while **Entity Map** is available for [domains](/docs/development/guides/domains/introduction).
|
|
47
|
+
|
|
48
|
+
## Use visual previews
|
|
49
|
+
|
|
50
|
+
The preview panel shows what the selected command is for before you insert it.
|
|
51
|
+
|
|
52
|
+
Use this when you are deciding between similar blocks, such as diagram components or callout types.
|
|
53
|
+
|
|
54
|
+
## Edit the inserted block
|
|
55
|
+
|
|
56
|
+
After inserting a component, you can usually edit it directly in the rich editor.
|
|
57
|
+
|
|
58
|
+
If the component needs configuration that is not exposed visually yet, switch to source mode and edit the MDX.
|
|
59
|
+
|
|
60
|
+
## When to use source mode instead
|
|
61
|
+
|
|
62
|
+
Use source mode when you need to:
|
|
63
|
+
|
|
64
|
+
- Paste an existing MDX component
|
|
65
|
+
- Change advanced component attributes
|
|
66
|
+
- Edit custom components that the slash menu does not know about
|
|
67
|
+
- Review the exact Markdown or MDX that will be saved
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"label": "Reference",
|
|
3
|
+
"position": 4,
|
|
4
|
+
"collapsible": true,
|
|
5
|
+
"collapsed": false,
|
|
6
|
+
"link": {
|
|
7
|
+
"type": "generated-index",
|
|
8
|
+
"title": "Editor reference",
|
|
9
|
+
"description": "Lookup information for EventCatalog Editor commands, supported resources, content support, and troubleshooting."
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 1
|
|
3
|
+
sidebar_label: CLI
|
|
4
|
+
title: EventCatalog Editor CLI reference
|
|
5
|
+
description: Command and option reference for running EventCatalog Editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Run the editor with:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npx @eventcatalog/editor
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Requirements
|
|
15
|
+
|
|
16
|
+
- Node.js 22 or later
|
|
17
|
+
- Git
|
|
18
|
+
- An EventCatalog directory containing `eventcatalog.config.js`
|
|
19
|
+
|
|
20
|
+
## Options
|
|
21
|
+
|
|
22
|
+
| Option | Description | Default |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| `--catalog <path>` | Path to the EventCatalog root to edit. | Current directory, a detected child catalog, or browser selection |
|
|
25
|
+
| `--port <n>` | Port for the editor server. | `3900` |
|
|
26
|
+
| `--eventcatalog-port <n>` | Port where local EventCatalog preview is running. | `3000` |
|
|
27
|
+
| `--no-open` | Start the editor without opening the browser automatically. | Opens browser |
|
|
28
|
+
| `--help`, `-h` | Show CLI help. | |
|
|
29
|
+
| `--version`, `-v` | Show the installed editor version. | |
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
Run from a catalog directory:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx @eventcatalog/editor
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Run against a specific catalog:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx @eventcatalog/editor --catalog /Users/me/dev/my-catalog
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Use a different editor port:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npx @eventcatalog/editor --port 3999
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Use a different EventCatalog preview port:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npx @eventcatalog/editor --eventcatalog-port 3001
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Start without opening a browser:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npx @eventcatalog/editor --no-open
|
|
61
|
+
```
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 3
|
|
3
|
+
sidebar_label: Supported content
|
|
4
|
+
title: Supported content and MDX
|
|
5
|
+
description: Markdown, MDX, and component support in EventCatalog Editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
EventCatalog Editor supports rich editing for common Markdown content and source editing for advanced Markdown and MDX.
|
|
9
|
+
|
|
10
|
+
## Rich editor content
|
|
11
|
+
|
|
12
|
+
The rich editor supports:
|
|
13
|
+
|
|
14
|
+
- Headings
|
|
15
|
+
- Paragraphs
|
|
16
|
+
- Bold and italic text
|
|
17
|
+
- Links
|
|
18
|
+
- Bullet lists
|
|
19
|
+
- Numbered lists
|
|
20
|
+
- Blockquotes
|
|
21
|
+
- Code blocks
|
|
22
|
+
- Horizontal dividers
|
|
23
|
+
- Tables
|
|
24
|
+
|
|
25
|
+
Use `/` in an empty paragraph to open the slash command menu.
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+
## Slash commands
|
|
30
|
+
|
|
31
|
+
Slash commands can insert Markdown blocks and EventCatalog components from the rich editor.
|
|
32
|
+
|
|
33
|
+
Common command groups include:
|
|
34
|
+
|
|
35
|
+
- Text: headings, paragraphs, and quotes
|
|
36
|
+
- Lists: bullet and ordered lists
|
|
37
|
+
- Advanced: code blocks, dividers, and tables
|
|
38
|
+
- Admonitions: note, tip, warning, danger, and info callouts
|
|
39
|
+
- Diagrams: Node Graph, [Flow](/docs/development/guides/flows/introduction), Mermaid, Miro, Draw.io, Lucid, IcePanel, Entity Map, and Schema Viewer
|
|
40
|
+
- Layout: Steps, Tiles, and Accordion group
|
|
41
|
+
- AI: Prompt and Visibility blocks
|
|
42
|
+
|
|
43
|
+
Some commands are resource-aware. For example, Schema Viewer appears for [events](/docs/development/guides/messages/events/introduction), [commands](/docs/development/guides/messages/commands/introduction), and [queries](/docs/development/guides/messages/queries/introduction), and Entity Map appears for [domains](/docs/development/guides/domains/introduction).
|
|
44
|
+
|
|
45
|
+
## Source mode
|
|
46
|
+
|
|
47
|
+
Use source mode for:
|
|
48
|
+
|
|
49
|
+
- Frontmatter edits
|
|
50
|
+
- Custom Markdown
|
|
51
|
+
- MDX components
|
|
52
|
+
- Content the rich editor does not expose yet
|
|
53
|
+
|
|
54
|
+
Source mode edits the full document source.
|
|
55
|
+
|
|
56
|
+
## MDX components
|
|
57
|
+
|
|
58
|
+
The editor understands common EventCatalog MDX components and keeps unknown or complex components as blocks so they can round trip through the editor.
|
|
59
|
+
|
|
60
|
+
Examples of EventCatalog content you may see include:
|
|
61
|
+
|
|
62
|
+
- `NodeGraph`
|
|
63
|
+
- `EntityMap`
|
|
64
|
+
- `Mermaid`
|
|
65
|
+
- `Steps`
|
|
66
|
+
- `Schema`
|
|
67
|
+
- `SchemaViewer`
|
|
68
|
+
- `MessageTable`
|
|
69
|
+
- `ChannelInformation`
|
|
70
|
+
- `OpenAPI`
|
|
71
|
+
- `AsyncAPI`
|
|
72
|
+
- `Admonition`
|
|
73
|
+
- `ResourceGroupList`
|
|
74
|
+
|
|
75
|
+
If a component cannot be edited visually yet, use source mode.
|
|
76
|
+
|
|
77
|
+
## Editor modes
|
|
78
|
+
|
|
79
|
+
Use the header controls to switch between visual editing and source editing.
|
|
80
|
+
|
|
81
|
+

|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 2
|
|
3
|
+
sidebar_label: Supported resources
|
|
4
|
+
title: Supported resources
|
|
5
|
+
description: Resource types and capabilities currently supported by EventCatalog Editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
EventCatalog Editor can browse and edit the main EventCatalog resource types.
|
|
9
|
+
|
|
10
|
+
| Resource type | Browse | Edit docs | Edit metadata | Create | Delete | Notes |
|
|
11
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
12
|
+
| [Domain](/docs/development/guides/domains/introduction) | Yes | Yes | Yes | Yes | Yes | Supports services, messages, entities, specifications, and ubiquitous language |
|
|
13
|
+
| [Service](/docs/development/guides/services/introduction) | Yes | Yes | Yes | Yes | Yes | Supports message relationships, data store relationships, and specifications |
|
|
14
|
+
| [Event](/docs/development/guides/messages/events/introduction) | Yes | Yes | Yes | Yes | Yes | Supports schemas and producer/consumer relationships |
|
|
15
|
+
| [Command](/docs/development/guides/messages/commands/introduction) | Yes | Yes | Yes | Yes | Yes | Supports schemas, operations, and producer/consumer relationships |
|
|
16
|
+
| [Query](/docs/development/guides/messages/queries/introduction) | Yes | Yes | Yes | Yes | Yes | Supports schemas, operations, and producer/consumer relationships |
|
|
17
|
+
| [Channel](/docs/development/guides/channels/introduction) | Yes | Yes | Yes | Yes | Yes | Supports common metadata |
|
|
18
|
+
| [Entity](/docs/development/guides/domains/entities/introduction) | Yes | Yes | Yes | Yes | Yes | Supports common metadata |
|
|
19
|
+
| [Data store](/docs/development/guides/data/introduction) | Yes | Yes | Yes | Yes | Yes | Represented as EventCatalog container resources |
|
|
20
|
+
| [Flow](/docs/development/guides/flows/introduction) | Yes | Yes | Yes | Yes | Yes | Supports flow step editing |
|
|
21
|
+
| [User](/docs/development/guides/owners/users/introduction) | Yes | Yes | Yes | Yes | Yes | Versionless |
|
|
22
|
+
| [Team](/docs/development/guides/owners/teams/introduction) | Yes | Yes | Yes | Yes | Yes | Versionless |
|
|
23
|
+
|
|
24
|
+
## Schemas
|
|
25
|
+
|
|
26
|
+
Schemas are supported on:
|
|
27
|
+
|
|
28
|
+
- [Events](/docs/development/guides/messages/events/introduction)
|
|
29
|
+
- [Commands](/docs/development/guides/messages/commands/introduction)
|
|
30
|
+
- [Queries](/docs/development/guides/messages/queries/introduction)
|
|
31
|
+
|
|
32
|
+
## Specifications
|
|
33
|
+
|
|
34
|
+
Specifications are supported on:
|
|
35
|
+
|
|
36
|
+
- [Domains](/docs/development/guides/domains/introduction)
|
|
37
|
+
- [Services](/docs/development/guides/services/introduction)
|
|
38
|
+
|
|
39
|
+
Supported specification types:
|
|
40
|
+
|
|
41
|
+
- OpenAPI
|
|
42
|
+
- AsyncAPI
|
|
43
|
+
- GraphQL
|
|
44
|
+
|
|
45
|
+
## Versionless resources
|
|
46
|
+
|
|
47
|
+
Users and teams are versionless in EventCatalog. Other resources use versions.
|
|
48
|
+
|
|
49
|
+
## Beta limitations
|
|
50
|
+
|
|
51
|
+
Some advanced resource fields may still require source mode. If a visual field is missing, switch to source mode and edit the underlying Markdown, MDX, or frontmatter directly.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 4
|
|
3
|
+
sidebar_label: Troubleshooting
|
|
4
|
+
title: Troubleshooting EventCatalog Editor
|
|
5
|
+
description: Fix common issues when running EventCatalog Editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## The editor cannot find my catalog
|
|
9
|
+
|
|
10
|
+
Check that:
|
|
11
|
+
|
|
12
|
+
- You are running the editor from the catalog directory, or using `--catalog`
|
|
13
|
+
- The directory contains `eventcatalog.config.js`
|
|
14
|
+
- The config file can be loaded by Node.js
|
|
15
|
+
- Catalog dependencies are installed
|
|
16
|
+
|
|
17
|
+
Run with an explicit path:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx @eventcatalog/editor --catalog /path/to/my-catalog
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## I cannot sign in
|
|
24
|
+
|
|
25
|
+
The editor uses [EventCatalog Cloud](https://eventcatalog.cloud) for access.
|
|
26
|
+
|
|
27
|
+
If sign-in fails:
|
|
28
|
+
|
|
29
|
+
- Check your internet connection
|
|
30
|
+
- Try signing out of [EventCatalog Cloud](https://eventcatalog.cloud) and signing in again
|
|
31
|
+
- Restart the local editor
|
|
32
|
+
- Check that your account has editor access
|
|
33
|
+
|
|
34
|
+
If you see an editor access message, ask an organization admin to [invite you as an editor](/docs/editor/how-to/invite-editors) or change your role to **Editor** or **Admin**. Viewer accounts can sign in to [EventCatalog Cloud](https://eventcatalog.cloud), but they cannot open a local editor session.
|
|
35
|
+
|
|
36
|
+
## Preview is unavailable
|
|
37
|
+
|
|
38
|
+
Preview links require a local EventCatalog development server.
|
|
39
|
+
|
|
40
|
+
Start EventCatalog:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm run dev
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Then restart the editor. If your catalog runs on a different port, pass it with `--eventcatalog-port`.
|
|
47
|
+
|
|
48
|
+
## Changes are not shown
|
|
49
|
+
|
|
50
|
+
The Changes page uses Git. Check that:
|
|
51
|
+
|
|
52
|
+
- Your catalog is inside a Git repository
|
|
53
|
+
- Git is installed
|
|
54
|
+
- The files have actually changed on disk
|
|
55
|
+
|
|
56
|
+
You can also check from a terminal:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
git status
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## A save reports a conflict
|
|
63
|
+
|
|
64
|
+
A conflict means the file changed on disk after the editor loaded it.
|
|
65
|
+
|
|
66
|
+
Reload the resource, review the external change, and apply your edit again.
|
|
67
|
+
|
|
68
|
+
## A visual field is missing
|
|
69
|
+
|
|
70
|
+
The beta editor does not expose every possible EventCatalog field as a form yet.
|
|
71
|
+
|
|
72
|
+
Use source mode to edit unsupported frontmatter or MDX directly.
|
|
73
|
+
|
|
74
|
+
## Get help
|
|
75
|
+
|
|
76
|
+
Join the [EventCatalog Discord](https://eventcatalog.dev/discord) or [open an issue in the editor repository](https://github.com/event-catalog/eventcatalog-editor-code/issues).
|
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.40.0";
|
|
118
118
|
|
|
119
119
|
// src/constants.ts
|
|
120
120
|
var VERSION = version;
|
|
@@ -47,6 +47,47 @@ type PagesConfiguration = {
|
|
|
47
47
|
type AuthConfig = {
|
|
48
48
|
enabled: boolean;
|
|
49
49
|
};
|
|
50
|
+
type McpAuthConfig = {
|
|
51
|
+
/**
|
|
52
|
+
* Require OAuth Bearer tokens for the built-in MCP server.
|
|
53
|
+
* EventCatalog acts as the MCP protected resource server; the
|
|
54
|
+
* configured authorization server remains responsible for login,
|
|
55
|
+
* consent, token issuance, and client registration.
|
|
56
|
+
*/
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Absolute URL for the MCP resource. Defaults to the request origin
|
|
60
|
+
* plus `/docs/mcp`, but production deployments behind proxies should
|
|
61
|
+
* set this explicitly.
|
|
62
|
+
*/
|
|
63
|
+
resource?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Optional absolute URL for the OAuth Protected Resource Metadata
|
|
66
|
+
* document. Defaults to `/.well-known/oauth-protected-resource`.
|
|
67
|
+
*/
|
|
68
|
+
protectedResourceMetadataUrl?: string;
|
|
69
|
+
/** Authorization server issuer/base URLs advertised to MCP clients. */
|
|
70
|
+
authorizationServers?: string[];
|
|
71
|
+
/** Expected token issuer (`iss`). */
|
|
72
|
+
issuer?: string;
|
|
73
|
+
/** Expected token audience (`aud`). Defaults to `resource`. */
|
|
74
|
+
audience?: string | string[];
|
|
75
|
+
/** Scopes required to call the MCP server. */
|
|
76
|
+
requiredScopes?: string[];
|
|
77
|
+
/** JWKS endpoint used to validate asymmetric JWT access tokens. */
|
|
78
|
+
jwksUri?: string;
|
|
79
|
+
/** Inline public key for asymmetric JWT validation. */
|
|
80
|
+
publicKey?: string;
|
|
81
|
+
/** Environment variable containing the public key. */
|
|
82
|
+
publicKeyEnvVar?: string;
|
|
83
|
+
/** Inline shared secret for symmetric JWT validation. Prefer `sharedSecretEnvVar`. */
|
|
84
|
+
sharedSecret?: string;
|
|
85
|
+
/** Environment variable containing the shared secret. */
|
|
86
|
+
sharedSecretEnvVar?: string;
|
|
87
|
+
};
|
|
88
|
+
type McpConfig = {
|
|
89
|
+
auth?: McpAuthConfig;
|
|
90
|
+
};
|
|
50
91
|
type GA4Config = {
|
|
51
92
|
measurementId: string;
|
|
52
93
|
};
|
|
@@ -90,6 +131,7 @@ interface Config {
|
|
|
90
131
|
*/
|
|
91
132
|
theme?: CatalogTheme;
|
|
92
133
|
auth?: AuthConfig;
|
|
134
|
+
mcp?: McpConfig;
|
|
93
135
|
rss?: {
|
|
94
136
|
enabled: boolean;
|
|
95
137
|
limit: number;
|
|
@@ -47,6 +47,47 @@ type PagesConfiguration = {
|
|
|
47
47
|
type AuthConfig = {
|
|
48
48
|
enabled: boolean;
|
|
49
49
|
};
|
|
50
|
+
type McpAuthConfig = {
|
|
51
|
+
/**
|
|
52
|
+
* Require OAuth Bearer tokens for the built-in MCP server.
|
|
53
|
+
* EventCatalog acts as the MCP protected resource server; the
|
|
54
|
+
* configured authorization server remains responsible for login,
|
|
55
|
+
* consent, token issuance, and client registration.
|
|
56
|
+
*/
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Absolute URL for the MCP resource. Defaults to the request origin
|
|
60
|
+
* plus `/docs/mcp`, but production deployments behind proxies should
|
|
61
|
+
* set this explicitly.
|
|
62
|
+
*/
|
|
63
|
+
resource?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Optional absolute URL for the OAuth Protected Resource Metadata
|
|
66
|
+
* document. Defaults to `/.well-known/oauth-protected-resource`.
|
|
67
|
+
*/
|
|
68
|
+
protectedResourceMetadataUrl?: string;
|
|
69
|
+
/** Authorization server issuer/base URLs advertised to MCP clients. */
|
|
70
|
+
authorizationServers?: string[];
|
|
71
|
+
/** Expected token issuer (`iss`). */
|
|
72
|
+
issuer?: string;
|
|
73
|
+
/** Expected token audience (`aud`). Defaults to `resource`. */
|
|
74
|
+
audience?: string | string[];
|
|
75
|
+
/** Scopes required to call the MCP server. */
|
|
76
|
+
requiredScopes?: string[];
|
|
77
|
+
/** JWKS endpoint used to validate asymmetric JWT access tokens. */
|
|
78
|
+
jwksUri?: string;
|
|
79
|
+
/** Inline public key for asymmetric JWT validation. */
|
|
80
|
+
publicKey?: string;
|
|
81
|
+
/** Environment variable containing the public key. */
|
|
82
|
+
publicKeyEnvVar?: string;
|
|
83
|
+
/** Inline shared secret for symmetric JWT validation. Prefer `sharedSecretEnvVar`. */
|
|
84
|
+
sharedSecret?: string;
|
|
85
|
+
/** Environment variable containing the shared secret. */
|
|
86
|
+
sharedSecretEnvVar?: string;
|
|
87
|
+
};
|
|
88
|
+
type McpConfig = {
|
|
89
|
+
auth?: McpAuthConfig;
|
|
90
|
+
};
|
|
50
91
|
type GA4Config = {
|
|
51
92
|
measurementId: string;
|
|
52
93
|
};
|
|
@@ -90,6 +131,7 @@ interface Config {
|
|
|
90
131
|
*/
|
|
91
132
|
theme?: CatalogTheme;
|
|
92
133
|
auth?: AuthConfig;
|
|
134
|
+
mcp?: McpConfig;
|
|
93
135
|
rss?: {
|
|
94
136
|
enabled: boolean;
|
|
95
137
|
limit: number;
|