@eventcatalog/core 5.5.1 → 5.5.2

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 (30) hide show
  1. package/dist/analytics/analytics.cjs +1 -1
  2. package/dist/analytics/analytics.js +2 -2
  3. package/dist/analytics/log-build.cjs +1 -1
  4. package/dist/analytics/log-build.js +3 -3
  5. package/dist/{chunk-GZLVDQPM.js → chunk-5HSYALWK.js} +1 -1
  6. package/dist/{chunk-K5QKWVI3.js → chunk-7ZEKF2LA.js} +1 -1
  7. package/dist/{chunk-6KR5ZLEQ.js → chunk-CNN747RO.js} +1 -1
  8. package/dist/{chunk-EBZQJP7F.js → chunk-MC4F3VVM.js} +1 -1
  9. package/dist/{chunk-GPIKYBQ5.js → chunk-WG6ZK6L3.js} +1 -1
  10. package/dist/constants.cjs +1 -1
  11. package/dist/constants.js +1 -1
  12. package/dist/eventcatalog.cjs +1 -1
  13. package/dist/eventcatalog.js +11 -11
  14. package/dist/federation/federate.js +3 -3
  15. package/dist/generate.cjs +1 -1
  16. package/dist/generate.js +3 -3
  17. package/dist/utils/cli-logger.cjs +1 -1
  18. package/dist/utils/cli-logger.js +2 -2
  19. package/eventcatalog/src/features/mcp/apps/architecture-diagram/view.tsx +8 -2
  20. package/eventcatalog/src/features/mcp/apps/canvas/view.tsx +2 -2
  21. package/eventcatalog/src/features/mcp/apps/generated/canvas.html +67 -67
  22. package/eventcatalog/src/features/mcp/apps/generated/viewer.html +72 -72
  23. package/eventcatalog/src/features/mcp/apps/schema-viewer/view.tsx +2 -1
  24. package/eventcatalog/src/features/mcp/apps/shared/app-view.tsx +24 -5
  25. package/eventcatalog/src/features/mcp/mcp-apps.ts +6 -1
  26. package/eventcatalog/src/features/mcp/mcp-server.ts +2 -0
  27. package/eventcatalog/src/features/studio/server/canvas-mcp.ts +2 -0
  28. package/eventcatalog/src/features/studio/tool-sync.ts +67 -3
  29. package/package.json +3 -3
  30. package/dist/{chunk-NCEZDQSW.js → chunk-QJ7KKN2D.js} +7 -7
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(analytics_exports);
36
36
  var import_os = __toESM(require("os"), 1);
37
37
 
38
38
  // package.json
39
- var version = "5.5.1";
39
+ var version = "5.5.2";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-GZLVDQPM.js";
3
+ } from "../chunk-5HSYALWK.js";
4
4
  import "../chunk-CPW6G62V.js";
5
- import "../chunk-GPIKYBQ5.js";
5
+ import "../chunk-WG6ZK6L3.js";
6
6
  export {
7
7
  raiseEvent
8
8
  };
@@ -169,7 +169,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
169
169
  var import_os = __toESM(require("os"), 1);
170
170
 
171
171
  // package.json
172
- var version = "5.5.1";
172
+ var version = "5.5.2";
173
173
 
174
174
  // src/constants.ts
175
175
  var VERSION = version;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-6KR5ZLEQ.js";
3
+ } from "../chunk-CNN747RO.js";
4
4
  import "../chunk-AD7CL772.js";
5
- import "../chunk-GZLVDQPM.js";
5
+ import "../chunk-5HSYALWK.js";
6
6
  import "../chunk-YRZK7HKX.js";
7
7
  import "../chunk-CA6WCQ2T.js";
8
8
  import "../chunk-CPW6G62V.js";
9
- import "../chunk-GPIKYBQ5.js";
9
+ import "../chunk-WG6ZK6L3.js";
10
10
  import "../chunk-4G7FSRPN.js";
11
11
  export {
12
12
  log_build_default as default
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-CPW6G62V.js";
5
5
  import {
6
6
  VERSION
7
- } from "./chunk-GPIKYBQ5.js";
7
+ } from "./chunk-WG6ZK6L3.js";
8
8
 
9
9
  // src/analytics/analytics.js
10
10
  import os from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-EBZQJP7F.js";
3
+ } from "./chunk-MC4F3VVM.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AD7CL772.js";
4
4
  import {
5
5
  raiseEvent
6
- } from "./chunk-GZLVDQPM.js";
6
+ } from "./chunk-5HSYALWK.js";
7
7
  import {
8
8
  countResources,
9
9
  hashCatalogContent,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-GPIKYBQ5.js";
3
+ } from "./chunk-WG6ZK6L3.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "5.5.1";
2
+ var version = "5.5.2";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "5.5.1";
28
+ var version = "5.5.2";
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-GPIKYBQ5.js";
3
+ } from "./chunk-WG6ZK6L3.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -174,7 +174,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
174
174
  var import_picocolors = __toESM(require("picocolors"), 1);
175
175
 
176
176
  // package.json
177
- var version = "5.5.1";
177
+ var version = "5.5.2";
178
178
 
179
179
  // src/constants.ts
180
180
  var VERSION = version;
@@ -7,12 +7,12 @@ import {
7
7
  import "./chunk-CA4U2JP7.js";
8
8
  import {
9
9
  log_build_default
10
- } from "./chunk-6KR5ZLEQ.js";
10
+ } from "./chunk-CNN747RO.js";
11
11
  import {
12
12
  getLicenseStatus,
13
13
  printLicenseStatus
14
14
  } from "./chunk-AD7CL772.js";
15
- import "./chunk-GZLVDQPM.js";
15
+ import "./chunk-5HSYALWK.js";
16
16
  import "./chunk-YRZK7HKX.js";
17
17
  import "./chunk-CA6WCQ2T.js";
18
18
  import "./chunk-CPW6G62V.js";
@@ -20,17 +20,17 @@ import {
20
20
  FederationConflictError,
21
21
  FederationDiagnosticError,
22
22
  federateCatalog
23
- } from "./chunk-NCEZDQSW.js";
24
- import "./chunk-R7Z5ALYI.js";
25
- import {
26
- getFederationDiagnosticCounts,
27
- getVisibleFederationDiagnostics
28
- } from "./chunk-JJPB6EOZ.js";
23
+ } from "./chunk-QJ7KKN2D.js";
29
24
  import "./chunk-WRNH5C3U.js";
30
25
  import "./chunk-5EPNFDT5.js";
31
26
  import "./chunk-A2RZR3U4.js";
32
27
  import "./chunk-SDZQJTJW.js";
33
28
  import "./chunk-352FGP6W.js";
29
+ import "./chunk-R7Z5ALYI.js";
30
+ import {
31
+ getFederationDiagnosticCounts,
32
+ getVisibleFederationDiagnostics
33
+ } from "./chunk-JJPB6EOZ.js";
34
34
  import {
35
35
  getProjectOutDir,
36
36
  isAuthEnabled,
@@ -39,10 +39,10 @@ import {
39
39
  } from "./chunk-NKNOXQ62.js";
40
40
  import {
41
41
  generate
42
- } from "./chunk-K5QKWVI3.js";
42
+ } from "./chunk-7ZEKF2LA.js";
43
43
  import {
44
44
  logger
45
- } from "./chunk-EBZQJP7F.js";
45
+ } from "./chunk-MC4F3VVM.js";
46
46
  import {
47
47
  resolve_catalog_dependencies_default
48
48
  } from "./chunk-PD7KTSYN.js";
@@ -79,7 +79,7 @@ import {
79
79
  } from "./chunk-LFQJXLHG.js";
80
80
  import {
81
81
  VERSION
82
- } from "./chunk-GPIKYBQ5.js";
82
+ } from "./chunk-WG6ZK6L3.js";
83
83
  import {
84
84
  getEventCatalogConfigFile,
85
85
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -2,14 +2,14 @@ import {
2
2
  FederationConflictError,
3
3
  FederationDiagnosticError,
4
4
  federateCatalog
5
- } from "../chunk-NCEZDQSW.js";
6
- import "../chunk-R7Z5ALYI.js";
7
- import "../chunk-JJPB6EOZ.js";
5
+ } from "../chunk-QJ7KKN2D.js";
8
6
  import "../chunk-WRNH5C3U.js";
9
7
  import "../chunk-5EPNFDT5.js";
10
8
  import "../chunk-A2RZR3U4.js";
11
9
  import "../chunk-SDZQJTJW.js";
12
10
  import "../chunk-352FGP6W.js";
11
+ import "../chunk-R7Z5ALYI.js";
12
+ import "../chunk-JJPB6EOZ.js";
13
13
  import "../chunk-4G7FSRPN.js";
14
14
  export {
15
15
  FederationConflictError,
package/dist/generate.cjs CHANGED
@@ -105,7 +105,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
105
105
  var import_picocolors = __toESM(require("picocolors"), 1);
106
106
 
107
107
  // package.json
108
- var version = "5.5.1";
108
+ var version = "5.5.2";
109
109
 
110
110
  // src/constants.ts
111
111
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-K5QKWVI3.js";
4
- import "./chunk-EBZQJP7F.js";
5
- import "./chunk-GPIKYBQ5.js";
3
+ } from "./chunk-7ZEKF2LA.js";
4
+ import "./chunk-MC4F3VVM.js";
5
+ import "./chunk-WG6ZK6L3.js";
6
6
  import "./chunk-4G7FSRPN.js";
7
7
  export {
8
8
  generate
@@ -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 = "5.5.1";
39
+ var version = "5.5.2";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-EBZQJP7F.js";
4
- import "../chunk-GPIKYBQ5.js";
3
+ } from "../chunk-MC4F3VVM.js";
4
+ import "../chunk-WG6ZK6L3.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -16,7 +16,7 @@ import type { ArchitectureDiagramPayload } from './shared';
16
16
  const LEVEL_OF_DETAIL = { overview: 1, services: 2, full: 3 } as const;
17
17
  import { NodeChat, describeNode, describeNodeForModel, type SelectedNode } from './node-chat';
18
18
  import { parseAskLink, parseDiagramLink, withAskMenuItem, type DiagramLink } from './links';
19
- import { getToolResultPayload } from '../shared/app-view';
19
+ import { fullscreenStyle, getToolResultPayload } from '../shared/app-view';
20
20
  import { RESOURCE_TYPE_LABELS } from '../shared/resource-types';
21
21
  import { VIEWER_META_KEY, VIEWER_VIEW_TOOL, type ViewerPayload } from '../viewer/shared';
22
22
 
@@ -377,7 +377,13 @@ export function ArchitectureDiagramView({ app, payload: toolPayload, hostContext
377
377
  const graphId = `mcp-${resource.collection}-${resource.id}-${resource.version}`;
378
378
 
379
379
  return (
380
- <div style={{ height: isFullscreen ? '100vh' : INLINE_HEIGHT, display: 'flex', flexDirection: 'column' }}>
380
+ <div
381
+ style={{
382
+ ...(isFullscreen ? fullscreenStyle(hostContext) : { height: INLINE_HEIGHT }),
383
+ display: 'flex',
384
+ flexDirection: 'column',
385
+ }}
386
+ >
381
387
  <div className="ec-mcp-header">
382
388
  <div className="ec-mcp-title">
383
389
  {diagrams.length > 1 && (
@@ -17,7 +17,7 @@ import visualiserStyles from '@eventcatalog/visualiser/styles.css?inline';
17
17
  import StudioDesigner, { type SelectedNode } from '@features/studio/components/StudioDesigner';
18
18
  import { getAgent } from '@features/studio/agents';
19
19
  import { CANVAS_STATUS_LOOK, STATUS } from '@eventcatalog/visualiser/studio';
20
- import { getToolResultPayload, mountView, useMcpAppView } from '../shared/app-view';
20
+ import { fullscreenStyle, getToolResultPayload, mountView, useMcpAppView } from '../shared/app-view';
21
21
  import {
22
22
  CANVAS_CATALOG_TOOL,
23
23
  CANVAS_META_KEY,
@@ -219,7 +219,7 @@ function CanvasApp() {
219
219
  const agentOf = (view: CanvasView) => view.agent ?? getAgent(undefined, hostName);
220
220
 
221
221
  return (
222
- <div className="flex flex-col" style={{ height: fullscreen ? '100vh' : INLINE_HEIGHT }}>
222
+ <div className="flex flex-col" style={fullscreen ? fullscreenStyle(hostContext) : { height: INLINE_HEIGHT }}>
223
223
  <div className="flex items-center justify-between border-b px-3 py-1.5 border-[rgb(var(--ec-page-border))]">
224
224
  <span className="flex min-w-0 items-center gap-1">
225
225
  {canvas && (