@eventcatalog/core 2.35.5 → 2.35.7
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-TPPFSMZQ.js → chunk-GRFWCJAM.js} +1 -1
- package/dist/{chunk-OGH4IHXU.js → chunk-O7CEYSZC.js} +1 -1
- package/dist/{chunk-Z6HUQ55R.js → chunk-ZEIS5QXO.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/Chat.tsx +2 -2
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/ChatSidebar.tsx +2 -2
- package/eventcatalog/src/enterprise/eventcatalog-chat/pages/chat/index.astro +12 -4
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ZEIS5QXO.js";
|
|
4
|
+
import "../chunk-GRFWCJAM.js";
|
|
5
|
+
import "../chunk-O7CEYSZC.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-DCLTVJDP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ZEIS5QXO.js";
|
|
10
|
+
import "./chunk-GRFWCJAM.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
14
|
} from "./chunk-5ZG43YD2.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-O7CEYSZC.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -4,8 +4,6 @@ import ChatWindowWebLLM from './windows/ChatWindow.client';
|
|
|
4
4
|
import ChatWindowServer from './windows/ChatWindow.server';
|
|
5
5
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
6
6
|
import type { ChatPromptCategoryGroup } from '@enterprise/eventcatalog-chat/utils/chat-prompts';
|
|
7
|
-
import config from '@config';
|
|
8
|
-
const output = config.output || 'static';
|
|
9
7
|
interface Resource {
|
|
10
8
|
id: string;
|
|
11
9
|
type: string;
|
|
@@ -24,10 +22,12 @@ const Chat = ({
|
|
|
24
22
|
chatConfig,
|
|
25
23
|
resources,
|
|
26
24
|
chatPrompts,
|
|
25
|
+
output,
|
|
27
26
|
}: {
|
|
28
27
|
chatConfig: any;
|
|
29
28
|
resources: Resource[];
|
|
30
29
|
chatPrompts: ChatPromptCategoryGroup[];
|
|
30
|
+
output: 'static' | 'server';
|
|
31
31
|
}) => {
|
|
32
32
|
const queryClient = new QueryClient();
|
|
33
33
|
|
|
@@ -90,7 +90,7 @@ const Sidebar: React.FC<{}> = () => {
|
|
|
90
90
|
|
|
91
91
|
{/* Beta Message */}
|
|
92
92
|
<div className="p-4 text-xs text-gray-500 border-t border-gray-200">
|
|
93
|
-
<
|
|
93
|
+
<div>
|
|
94
94
|
Have issues or ideas? Let us know on{' '}
|
|
95
95
|
<a
|
|
96
96
|
href="https://discord.com/channels/918092420338569216/1342473496957288581"
|
|
@@ -159,7 +159,7 @@ const Sidebar: React.FC<{}> = () => {
|
|
|
159
159
|
</Dialog.Portal>
|
|
160
160
|
</Dialog.Root>
|
|
161
161
|
</div>
|
|
162
|
-
</
|
|
162
|
+
</div>
|
|
163
163
|
</div>
|
|
164
164
|
</div>
|
|
165
165
|
</div>
|
|
@@ -10,9 +10,10 @@ import { getDomains } from '@utils/collections/domains';
|
|
|
10
10
|
import { getEvents } from '@utils/events';
|
|
11
11
|
import { getCommands } from '@utils/commands';
|
|
12
12
|
import { getServices } from '@utils/collections/services';
|
|
13
|
-
|
|
13
|
+
import { getQueries } from '@utils/queries';
|
|
14
14
|
const isEnabled = config.chat?.enabled || false;
|
|
15
15
|
const chatConfig = config.chat || {};
|
|
16
|
+
const output = config.output || 'static';
|
|
16
17
|
|
|
17
18
|
const PROJECT_DIR = path.resolve(process.env.PROJECT_DIR || process.cwd());
|
|
18
19
|
const GENERATED_AI_DIR = path.resolve(PROJECT_DIR, 'public/ai');
|
|
@@ -20,13 +21,14 @@ const GENERATED_AI_DIR = path.resolve(PROJECT_DIR, 'public/ai');
|
|
|
20
21
|
const directoryExists = fs.existsSync(GENERATED_AI_DIR);
|
|
21
22
|
|
|
22
23
|
// Get all information for the mention input
|
|
23
|
-
const [events, commands, services, domains] = await Promise.all([
|
|
24
|
+
const [events, commands, queries, services, domains] = await Promise.all([
|
|
24
25
|
getEvents({ getAllVersions: false }),
|
|
25
26
|
getCommands({ getAllVersions: false }),
|
|
27
|
+
getQueries({ getAllVersions: false }),
|
|
26
28
|
getServices({ getAllVersions: false }),
|
|
27
29
|
getDomains({ getAllVersions: false }),
|
|
28
30
|
]);
|
|
29
|
-
const allItems = [...events, ...commands, ...services, ...domains];
|
|
31
|
+
const allItems = [...events, ...commands, ...queries, ...services, ...domains];
|
|
30
32
|
|
|
31
33
|
const chatPrompts = await getChatPromptsGroupedByCategory();
|
|
32
34
|
|
|
@@ -64,7 +66,13 @@ const generatorConfig = `
|
|
|
64
66
|
</div>
|
|
65
67
|
</div>
|
|
66
68
|
<div id="chatContainer" class="w-full">
|
|
67
|
-
<Chat
|
|
69
|
+
<Chat
|
|
70
|
+
client:only="react"
|
|
71
|
+
chatConfig={chatConfig}
|
|
72
|
+
resources={resources}
|
|
73
|
+
chatPrompts={chatPrompts}
|
|
74
|
+
output={output as 'static' | 'server'}
|
|
75
|
+
/>
|
|
68
76
|
</div>
|
|
69
77
|
</>
|
|
70
78
|
) : (
|