@eventcatalog/core 5.0.0-beta.12 → 5.0.0-beta.13
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 +4 -4
- package/dist/catalog-runtime.cjs +1 -1
- package/dist/{chunk-FY6MSP6J.js → chunk-BO2HHVZ3.js} +1 -1
- package/dist/{chunk-CX2VB7AI.js → chunk-JPT3QC5V.js} +1 -1
- package/dist/{chunk-BWC4YKW3.js → chunk-PLTLW45Q.js} +5 -5
- package/dist/{chunk-TSY5CC27.js → chunk-T75DOVFP.js} +1 -1
- package/dist/{chunk-QB7X34OD.js → chunk-XA5W6DXX.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +2 -2
- package/dist/eventcatalog.js +14 -14
- package/dist/federation/federate.js +3 -3
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/runtime-dependencies/@eventcatalog__visualiser__studio-fonts.css.mjs +3 -0
- package/dist/runtime-dependencies/@eventcatalog__visualiser__studio.css.mjs +3 -0
- package/dist/runtime-dependencies/@eventcatalog__visualiser__studio.mjs +3 -0
- package/dist/runtime-dependencies/manifest.json +3 -0
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/components/MDX/NodeGraph/AstroNodeGraph.tsx +11 -3
- package/eventcatalog/src/features/mcp/apps/canvas/shared.ts +3 -3
- package/eventcatalog/src/features/mcp/apps/canvas/styles.css +3 -1
- package/eventcatalog/src/features/mcp/apps/canvas/view.tsx +7 -5
- package/eventcatalog/src/features/mcp/apps/generated/canvas.html +133 -71
- package/eventcatalog/src/features/mcp/apps/generated/viewer.html +66 -66
- package/eventcatalog/src/features/studio/agent-choreography.ts +5 -4
- package/eventcatalog/src/features/studio/agents.ts +28 -0
- package/eventcatalog/src/features/studio/api/canvases-api.ts +1 -1
- package/eventcatalog/src/features/studio/canvas-actions.ts +22 -14
- package/eventcatalog/src/features/studio/canvas-preview.ts +1 -2
- package/eventcatalog/src/features/studio/catalog.ts +1 -4
- package/eventcatalog/src/features/studio/components/CanvasHeader.tsx +246 -115
- package/eventcatalog/src/features/studio/components/CanvasStatusMenu.tsx +7 -3
- package/eventcatalog/src/features/studio/components/ConnectAgentDialog.tsx +272 -119
- package/eventcatalog/src/features/studio/components/ConnectionsChooser.tsx +1 -2
- package/eventcatalog/src/features/studio/components/DeleteCanvasDialog.tsx +1 -1
- package/eventcatalog/src/features/studio/components/JoinForm.tsx +101 -26
- package/eventcatalog/src/features/studio/components/LeftPanel.tsx +102 -241
- package/eventcatalog/src/features/studio/components/NodeDetails.tsx +183 -0
- package/eventcatalog/src/features/studio/components/OpenInStudioDialog.tsx +1 -1
- package/eventcatalog/src/features/studio/components/Presence.tsx +6 -8
- package/eventcatalog/src/features/studio/components/ShareDialog.tsx +277 -141
- package/eventcatalog/src/features/studio/components/ShortcutsDialog.tsx +41 -0
- package/eventcatalog/src/features/studio/components/StudioDesigner.tsx +1005 -354
- package/eventcatalog/src/features/studio/document-name.ts +7 -0
- package/eventcatalog/src/features/studio/from-visualiser.ts +1 -1
- package/eventcatalog/src/features/studio/hooks/presence-sender.ts +19 -2
- package/eventcatalog/src/features/studio/hooks/use-canvas-webmcp.ts +9 -3
- package/eventcatalog/src/features/studio/hooks/use-comments.ts +2 -2
- package/eventcatalog/src/features/studio/hooks/use-studio-flow.ts +162 -23
- package/eventcatalog/src/features/studio/identity.ts +23 -1
- package/eventcatalog/src/features/studio/pages/[id].astro +2 -1
- package/eventcatalog/src/features/studio/pages/index.astro +1 -2
- package/eventcatalog/src/features/studio/server/canvas-mcp.ts +7 -22
- package/eventcatalog/src/features/studio/server/runtime.ts +4 -5
- package/package.json +3 -3
- package/eventcatalog/src/features/studio/canvas-doc.ts +0 -569
- package/eventcatalog/src/features/studio/clipboard.ts +0 -97
- package/eventcatalog/src/features/studio/components/CanvasControls.tsx +0 -119
- package/eventcatalog/src/features/studio/components/Comments.tsx +0 -777
- package/eventcatalog/src/features/studio/components/ContainerChooser.tsx +0 -145
- package/eventcatalog/src/features/studio/components/DragGhost.tsx +0 -115
- package/eventcatalog/src/features/studio/components/Picture.tsx +0 -21
- package/eventcatalog/src/features/studio/components/PropertiesPanel.tsx +0 -212
- package/eventcatalog/src/features/studio/components/canvas-nodes.tsx +0 -271
- package/eventcatalog/src/features/studio/components/icons.ts +0 -53
- package/eventcatalog/src/features/studio/components/status.ts +0 -53
- package/eventcatalog/src/features/studio/edges.ts +0 -56
- package/eventcatalog/src/features/studio/flow-state.ts +0 -121
- package/eventcatalog/src/features/studio/grouping.ts +0 -230
- package/eventcatalog/src/features/studio/hooks/use-counter-scale.ts +0 -20
- package/eventcatalog/src/features/studio/layout.ts +0 -56
- package/eventcatalog/src/features/studio/level-layout.ts +0 -145
- package/eventcatalog/src/features/studio/levels.ts +0 -337
- package/eventcatalog/src/features/studio/node-types.ts +0 -245
- package/eventcatalog/src/features/studio/placement.ts +0 -197
- package/eventcatalog/src/features/studio/studio.css +0 -273
- package/dist/{chunk-KHACCTW2.js → chunk-ZEY2XUJN.js} +4 -4
|
@@ -176,7 +176,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
176
176
|
var import_os = __toESM(require("os"), 1);
|
|
177
177
|
|
|
178
178
|
// package.json
|
|
179
|
-
var version = "5.0.0-beta.
|
|
179
|
+
var version = "5.0.0-beta.13";
|
|
180
180
|
|
|
181
181
|
// src/constants.ts
|
|
182
182
|
var VERSION = version;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-PLTLW45Q.js";
|
|
4
|
+
import "../chunk-JPT3QC5V.js";
|
|
5
5
|
import "../chunk-ZAZHAVKB.js";
|
|
6
|
-
import "../chunk-CX2VB7AI.js";
|
|
7
6
|
import "../chunk-CPW6G62V.js";
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-AWOO63ME.js";
|
|
8
|
+
import "../chunk-BO2HHVZ3.js";
|
|
9
9
|
import "../chunk-RFIXKATC.js";
|
|
10
10
|
export {
|
|
11
11
|
log_build_default as default
|
package/dist/catalog-runtime.cjs
CHANGED
|
@@ -36,7 +36,7 @@ __export(catalog_runtime_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(catalog_runtime_exports);
|
|
38
38
|
|
|
39
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.
|
|
39
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.29_tsx@4.23.15_typescript@5.9.3_yaml@2.9.0/node_modules/tsup/assets/cjs_shims.js
|
|
40
40
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
41
41
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
42
42
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
raiseEvent
|
|
3
|
+
} from "./chunk-JPT3QC5V.js";
|
|
4
4
|
import {
|
|
5
5
|
countResources,
|
|
6
6
|
hashCatalogContent,
|
|
7
7
|
serializeCounts
|
|
8
8
|
} from "./chunk-ZAZHAVKB.js";
|
|
9
|
-
import {
|
|
10
|
-
raiseEvent
|
|
11
|
-
} from "./chunk-CX2VB7AI.js";
|
|
12
9
|
import {
|
|
13
10
|
TELEMETRY_REQUEST_TIMEOUT_MS,
|
|
14
11
|
isTelemetryDisabled
|
|
15
12
|
} from "./chunk-CPW6G62V.js";
|
|
13
|
+
import {
|
|
14
|
+
getLicenseAnalytics
|
|
15
|
+
} from "./chunk-AWOO63ME.js";
|
|
16
16
|
import {
|
|
17
17
|
getEventCatalogConfigFile,
|
|
18
18
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
24
|
|
|
25
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.
|
|
25
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.29_tsx@4.23.15_typescript@5.9.3_yaml@2.9.0/node_modules/tsup/assets/cjs_shims.js
|
|
26
26
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
27
27
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
28
28
|
|
|
@@ -181,7 +181,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
181
181
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
182
182
|
|
|
183
183
|
// package.json
|
|
184
|
-
var version = "5.0.0-beta.
|
|
184
|
+
var version = "5.0.0-beta.13";
|
|
185
185
|
|
|
186
186
|
// src/constants.ts
|
|
187
187
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
log_build_default
|
|
3
|
+
} from "./chunk-PLTLW45Q.js";
|
|
4
|
+
import "./chunk-JPT3QC5V.js";
|
|
5
|
+
import "./chunk-ZAZHAVKB.js";
|
|
6
|
+
import "./chunk-CPW6G62V.js";
|
|
1
7
|
import {
|
|
2
8
|
runMigrations
|
|
3
9
|
} from "./chunk-XUAF2H54.js";
|
|
4
10
|
import "./chunk-CA4U2JP7.js";
|
|
5
|
-
import {
|
|
6
|
-
log_build_default
|
|
7
|
-
} from "./chunk-BWC4YKW3.js";
|
|
8
11
|
import {
|
|
9
12
|
getLicenseStatus,
|
|
10
13
|
printLicenseStatus
|
|
11
14
|
} from "./chunk-AWOO63ME.js";
|
|
12
|
-
import "./chunk-ZAZHAVKB.js";
|
|
13
15
|
import {
|
|
14
16
|
FederationConflictError,
|
|
15
17
|
FederationDiagnosticError,
|
|
16
18
|
federateCatalog
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-WRNH5C3U.js";
|
|
19
|
-
import "./chunk-5EPNFDT5.js";
|
|
20
|
-
import "./chunk-A2RZR3U4.js";
|
|
21
|
-
import "./chunk-R7Z5ALYI.js";
|
|
19
|
+
} from "./chunk-ZEY2XUJN.js";
|
|
22
20
|
import {
|
|
23
21
|
getFederationDiagnosticCounts,
|
|
24
22
|
getVisibleFederationDiagnostics
|
|
25
23
|
} from "./chunk-JJPB6EOZ.js";
|
|
24
|
+
import "./chunk-WRNH5C3U.js";
|
|
25
|
+
import "./chunk-5EPNFDT5.js";
|
|
26
|
+
import "./chunk-A2RZR3U4.js";
|
|
26
27
|
import "./chunk-SDZQJTJW.js";
|
|
27
28
|
import "./chunk-352FGP6W.js";
|
|
28
29
|
import {
|
|
@@ -33,10 +34,10 @@ import {
|
|
|
33
34
|
} from "./chunk-MDWB5HLO.js";
|
|
34
35
|
import {
|
|
35
36
|
generate
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-T75DOVFP.js";
|
|
37
38
|
import {
|
|
38
39
|
logger
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XA5W6DXX.js";
|
|
40
41
|
import {
|
|
41
42
|
resolve_catalog_dependencies_default
|
|
42
43
|
} from "./chunk-36RYTYT5.js";
|
|
@@ -50,8 +51,7 @@ import {
|
|
|
50
51
|
import {
|
|
51
52
|
watch
|
|
52
53
|
} from "./chunk-U63GDPPY.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-CPW6G62V.js";
|
|
54
|
+
import "./chunk-R7Z5ALYI.js";
|
|
55
55
|
import {
|
|
56
56
|
getAstroConfigPath
|
|
57
57
|
} from "./chunk-VIJJ7JKH.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
} from "./chunk-LFQJXLHG.js";
|
|
68
68
|
import {
|
|
69
69
|
VERSION
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-BO2HHVZ3.js";
|
|
71
71
|
import {
|
|
72
72
|
getEventCatalogConfigFile,
|
|
73
73
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
FederationConflictError,
|
|
3
3
|
FederationDiagnosticError,
|
|
4
4
|
federateCatalog
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ZEY2XUJN.js";
|
|
6
|
+
import "../chunk-JJPB6EOZ.js";
|
|
6
7
|
import "../chunk-WRNH5C3U.js";
|
|
7
8
|
import "../chunk-5EPNFDT5.js";
|
|
8
9
|
import "../chunk-A2RZR3U4.js";
|
|
9
|
-
import "../chunk-R7Z5ALYI.js";
|
|
10
|
-
import "../chunk-JJPB6EOZ.js";
|
|
11
10
|
import "../chunk-SDZQJTJW.js";
|
|
12
11
|
import "../chunk-352FGP6W.js";
|
|
12
|
+
import "../chunk-R7Z5ALYI.js";
|
|
13
13
|
import "../chunk-RFIXKATC.js";
|
|
14
14
|
export {
|
|
15
15
|
FederationConflictError,
|
package/dist/generate.cjs
CHANGED
|
@@ -112,7 +112,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
112
112
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
113
113
|
|
|
114
114
|
// package.json
|
|
115
|
-
var version = "5.0.0-beta.
|
|
115
|
+
var version = "5.0.0-beta.13";
|
|
116
116
|
|
|
117
117
|
// src/constants.ts
|
|
118
118
|
var VERSION = version;
|
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-T75DOVFP.js";
|
|
4
|
+
import "./chunk-XA5W6DXX.js";
|
|
5
|
+
import "./chunk-BO2HHVZ3.js";
|
|
6
6
|
import "./chunk-RFIXKATC.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"@eventcatalog/sdk": "@eventcatalog__sdk.mjs",
|
|
22
22
|
"@eventcatalog/visualiser": "@eventcatalog__visualiser.mjs",
|
|
23
23
|
"@eventcatalog/visualiser/layout": "@eventcatalog__visualiser__layout.mjs",
|
|
24
|
+
"@eventcatalog/visualiser/studio": "@eventcatalog__visualiser__studio.mjs",
|
|
25
|
+
"@eventcatalog/visualiser/studio-fonts.css": "@eventcatalog__visualiser__studio-fonts.css.mjs",
|
|
26
|
+
"@eventcatalog/visualiser/studio.css": "@eventcatalog__visualiser__studio.css.mjs",
|
|
24
27
|
"@eventcatalog/visualiser/styles-core.css": "@eventcatalog__visualiser__styles-core.css.mjs",
|
|
25
28
|
"@fontsource/inter": "@fontsource__inter.mjs",
|
|
26
29
|
"@fontsource/inter/400.css": "@fontsource__inter__400.css.mjs",
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -17,9 +17,11 @@ import type { Node, Edge } from '@xyflow/react';
|
|
|
17
17
|
import type { FlowGroupBy, OpenInStudioRequest } from '@eventcatalog/visualiser';
|
|
18
18
|
import { buildUrl } from '@utils/url-builder';
|
|
19
19
|
import { createCanvasThroughApi } from '@features/studio/api/client';
|
|
20
|
-
import { canvasFromVisualiser } from '@features/studio/from-visualiser';
|
|
21
20
|
import { getStoredName } from '@features/studio/identity';
|
|
22
|
-
|
|
21
|
+
|
|
22
|
+
// Studio's canvas code (what turns a diagram into a canvas, and the dialog asking for its name) is only loaded when a
|
|
23
|
+
// diagram is opened in Studio: every page with a diagram would load it otherwise, with Studio on or not
|
|
24
|
+
const OpenInStudioDialog = lazy(() => import('@features/studio/components/OpenInStudioDialog'));
|
|
23
25
|
|
|
24
26
|
const NodeGraph = lazy(() =>
|
|
25
27
|
import('@eventcatalog/visualiser').then((module) => ({ default: module.NodeGraph }))
|
|
@@ -123,6 +125,7 @@ const AstroNodeGraph = ({ isDevMode = false, resourceKey, studioApiUrl, ...other
|
|
|
123
125
|
async (title: string | undefined) => {
|
|
124
126
|
if (!studioApiUrl || !toOpen) return;
|
|
125
127
|
const snapshot = await toOpen.getSnapshot();
|
|
128
|
+
const { canvasFromVisualiser } = await import('@features/studio/from-visualiser');
|
|
126
129
|
const { nodes, edges, levels } = canvasFromVisualiser(snapshot);
|
|
127
130
|
if (nodes.length === 0) throw new Error('Nothing on this diagram can go on a canvas yet');
|
|
128
131
|
const canvas = await createCanvasThroughApi(studioApiUrl, {
|
|
@@ -149,7 +152,12 @@ const AstroNodeGraph = ({ isDevMode = false, resourceKey, studioApiUrl, ...other
|
|
|
149
152
|
onResetLayout={handleResetLayout}
|
|
150
153
|
onOpenInStudio={studioApiUrl ? setToOpen : undefined}
|
|
151
154
|
/>
|
|
152
|
-
{toOpen &&
|
|
155
|
+
{toOpen && (
|
|
156
|
+
// Its own, so the diagram isn't swapped for "Loading graph..." while the dialog loads
|
|
157
|
+
<Suspense fallback={null}>
|
|
158
|
+
<OpenInStudioDialog title={toOpen.title} onOpen={openInStudio} onClose={closeOpenInStudio} />
|
|
159
|
+
</Suspense>
|
|
160
|
+
)}
|
|
153
161
|
</Suspense>
|
|
154
162
|
);
|
|
155
163
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Shared by the canvas MCP App (client) and the MCP server: no server-only imports here
|
|
2
2
|
import type { CatalogRelation, CatalogResource } from '../../../studio/catalog-resources';
|
|
3
|
-
import type
|
|
3
|
+
import { type CanvasStatus } from '@eventcatalog/visualiser/studio';
|
|
4
4
|
|
|
5
5
|
export const CANVAS_RESOURCE_URI = 'ui://eventcatalog/canvas.html';
|
|
6
6
|
/** Key of the payload in openCanvas results' `_meta` */
|
|
@@ -40,8 +40,8 @@ export type CanvasView = {
|
|
|
40
40
|
canvasUrl: string;
|
|
41
41
|
/** The EventCatalog MCP server, for "Connect your agent" */
|
|
42
42
|
mcpUrl: string;
|
|
43
|
-
/**
|
|
44
|
-
|
|
43
|
+
/** The chat's agent: the view joins the canvas as it (its name, colour and logo) */
|
|
44
|
+
agent?: { name: string; color: string };
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export type CanvasCatalog = { resources: CatalogResource[]; relations: CatalogRelation[] };
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
@import 'tailwindcss' source(none);
|
|
6
6
|
@import '../../../../styles/theme.css';
|
|
7
|
-
@import '
|
|
7
|
+
@import '@eventcatalog/visualiser/studio.css';
|
|
8
8
|
|
|
9
9
|
@source './*.tsx';
|
|
10
10
|
@source '../../../studio/components/*.{ts,tsx}';
|
|
11
|
+
/* Studio's shared canvas (nodes, comments, hotspots), from the visualiser in this repo */
|
|
12
|
+
@source '../../../../../../../visualiser/src/studio';
|
|
11
13
|
|
|
12
14
|
body {
|
|
13
15
|
margin: 0;
|
|
@@ -15,7 +15,8 @@ import type { App } from '@modelcontextprotocol/ext-apps';
|
|
|
15
15
|
import styles from './styles.css?inline';
|
|
16
16
|
import visualiserStyles from '@eventcatalog/visualiser/styles.css?inline';
|
|
17
17
|
import StudioDesigner, { type SelectedNode } from '@features/studio/components/StudioDesigner';
|
|
18
|
-
import {
|
|
18
|
+
import { getAgent } from '@features/studio/agents';
|
|
19
|
+
import { CANVAS_STATUS_LOOK, STATUS } from '@eventcatalog/visualiser/studio';
|
|
19
20
|
import { getToolResultPayload, mountView, useMcpAppView } from '../shared/app-view';
|
|
20
21
|
import {
|
|
21
22
|
CANVAS_CATALOG_TOOL,
|
|
@@ -212,10 +213,10 @@ function CanvasApp() {
|
|
|
212
213
|
const iconButton =
|
|
213
214
|
'flex items-center gap-1 rounded-md px-2 py-1 text-xs text-[rgb(var(--ec-page-text-muted))] hover:bg-[rgb(var(--ec-page-border)/0.5)]';
|
|
214
215
|
|
|
215
|
-
// No join form inside a chat:
|
|
216
|
+
// No join form inside a chat: it joins as the chat's agent (e.g. ChatGPT or Claude, with its logo), as the agent
|
|
217
|
+
// working on the canvas does, else as the chat it's in
|
|
216
218
|
const hostName = app?.getHostVersion()?.name;
|
|
217
|
-
const
|
|
218
|
-
view.userName ?? `${hostName ? hostName.replace(/^\w/, (letter) => letter.toUpperCase()) : 'Chat'} user`;
|
|
219
|
+
const agentOf = (view: CanvasView) => view.agent ?? getAgent(undefined, hostName);
|
|
219
220
|
|
|
220
221
|
return (
|
|
221
222
|
<div className="flex flex-col" style={{ height: fullscreen ? '100vh' : INLINE_HEIGHT }}>
|
|
@@ -255,11 +256,12 @@ function CanvasApp() {
|
|
|
255
256
|
shareUrl={canvas.canvasUrl}
|
|
256
257
|
mcpUrl={canvas.mcpUrl}
|
|
257
258
|
syncViaTools={syncViaTools}
|
|
258
|
-
|
|
259
|
+
asAgent={agentOf(canvas)}
|
|
259
260
|
resources={catalog.resources}
|
|
260
261
|
relations={catalog.relations}
|
|
261
262
|
onSelectionChange={setSelection}
|
|
262
263
|
followChanges
|
|
264
|
+
paletteCollapsed
|
|
263
265
|
/>
|
|
264
266
|
) : (
|
|
265
267
|
<CanvasPicker
|