@eventcatalog/core 2.42.7 → 2.42.9
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-3HMUTETN.js → chunk-4A2C2PVU.js} +1 -1
- package/dist/{chunk-AIFALM4J.js → chunk-ISA6KNLN.js} +1 -1
- package/dist/{chunk-774S2HDO.js → chunk-OQA3PAMR.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.config.d.cts +1 -0
- package/dist/eventcatalog.config.d.ts +1 -0
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/astro.config.mjs +2 -1
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/spec/_styles.css +0 -4
- package/eventcatalog/src/pages/docs/[type]/[id]/language.mdx.ts +1 -1
- package/eventcatalog/src/pages/docs/llm/llms-services.txt.ts +40 -0
- package/eventcatalog/src/pages/docs/llm/llms.txt.ts +2 -3
- 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-4A2C2PVU.js";
|
|
4
|
+
import "../chunk-OQA3PAMR.js";
|
|
5
|
+
import "../chunk-ISA6KNLN.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-4A2C2PVU.js";
|
|
10
|
+
import "./chunk-OQA3PAMR.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
14
|
} from "./chunk-SLEMYHTU.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ISA6KNLN.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -16,11 +16,12 @@ import expressiveCode from 'astro-expressive-code';
|
|
|
16
16
|
|
|
17
17
|
const projectDirectory = process.env.PROJECT_DIR || process.cwd();
|
|
18
18
|
const base = config.base || '/';
|
|
19
|
+
const host = config.host || false;
|
|
19
20
|
|
|
20
21
|
// https://astro.build/config
|
|
21
22
|
export default defineConfig({
|
|
22
23
|
base,
|
|
23
|
-
server: { port: config.port || 3000 },
|
|
24
|
+
server: { port: config.port || 3000, host: host },
|
|
24
25
|
|
|
25
26
|
// output: config.output || 'static',
|
|
26
27
|
|
|
@@ -29,7 +29,7 @@ export const GET: APIRoute = async ({ params, props }) => {
|
|
|
29
29
|
return new Response('llms.txt is not enabled for this Catalog.', { status: 404 });
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
const ubiquitousLanguages = await getUbiquitousLanguage(props);
|
|
32
|
+
const ubiquitousLanguages = await getUbiquitousLanguage(props as CollectionEntry<'domains'>);
|
|
33
33
|
const ubiquitousLanguage = ubiquitousLanguages[0];
|
|
34
34
|
|
|
35
35
|
if (ubiquitousLanguage?.filePath) {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type CollectionEntry } from 'astro:content';
|
|
2
|
+
import type { APIRoute } from 'astro';
|
|
3
|
+
|
|
4
|
+
import { getServices } from '@utils/collections/services';
|
|
5
|
+
|
|
6
|
+
const services = await getServices();
|
|
7
|
+
|
|
8
|
+
export const GET: APIRoute = async ({ params, request }) => {
|
|
9
|
+
const url = new URL(request.url);
|
|
10
|
+
const baseUrl = process.env.LLMS_TXT_BASE_URL || `${url.origin}`;
|
|
11
|
+
|
|
12
|
+
const formatServiceWithLinks = (service: CollectionEntry<'services'>) => {
|
|
13
|
+
const sends = service.data.sends as unknown as CollectionEntry<'events'>[];
|
|
14
|
+
const receives = service.data.receives as unknown as CollectionEntry<'events'>[];
|
|
15
|
+
|
|
16
|
+
const sendsList =
|
|
17
|
+
sends
|
|
18
|
+
.map(
|
|
19
|
+
(send) =>
|
|
20
|
+
` - [${send.data.name} - ${send.data.version}](${baseUrl}/docs/events/${send.data.id}/${send.data.version}.mdx) - ${send.data.summary}`
|
|
21
|
+
)
|
|
22
|
+
.join('') || ' - Does not send any messages';
|
|
23
|
+
|
|
24
|
+
const receivesList =
|
|
25
|
+
receives
|
|
26
|
+
.map(
|
|
27
|
+
(receive) =>
|
|
28
|
+
` - [${receive.data.name} - ${receive.data.version}](${baseUrl}/docs/events/${receive.data.id}/${receive.data.version}.mdx) - ${receive.data.summary}`
|
|
29
|
+
)
|
|
30
|
+
.join('') || ' - Does not receive any messages';
|
|
31
|
+
|
|
32
|
+
return `## [${service.data.name} - ${service.data.version}](${baseUrl}/docs/services/${service.data.id}/${service.data.version}.mdx) - ${service.data.summary}\n ## Sends\n${sendsList}\n ## Receives\n${receivesList}`;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const content = ['# Services \n\n', services.map((item) => formatServiceWithLinks(item)).join('\n')].join('\n');
|
|
36
|
+
|
|
37
|
+
return new Response(content, {
|
|
38
|
+
headers: { 'Content-Type': 'text/plain; charset=utf-8' },
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -3,7 +3,7 @@ import config from '@config';
|
|
|
3
3
|
import type { APIRoute } from 'astro';
|
|
4
4
|
|
|
5
5
|
import { isCustomDocsEnabled } from '@utils/feature';
|
|
6
|
-
import { getUbiquitousLanguage
|
|
6
|
+
import { getUbiquitousLanguage } from '@utils/collections/domains';
|
|
7
7
|
|
|
8
8
|
const events = await getCollection('events');
|
|
9
9
|
const commands = await getCollection('commands');
|
|
@@ -45,7 +45,7 @@ const renderUbiquitousLanguages = (baseUrl: string) => {
|
|
|
45
45
|
// @ts-ignore
|
|
46
46
|
const propertiesList = Object.entries(item.properties)
|
|
47
47
|
.map(
|
|
48
|
-
([key, value]) =>
|
|
48
|
+
([key, value]: any) =>
|
|
49
49
|
` - [${value.name}: - ${value.summary}](${baseUrl}/docs/domains/${domainId.split('-')[0]}/language.mdx)`
|
|
50
50
|
)
|
|
51
51
|
.join('\n');
|
|
@@ -78,7 +78,6 @@ const renderEntities = (baseUrl: string) => {
|
|
|
78
78
|
.join('\n');
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
console.log('PROTOCOL', channels[0]);
|
|
82
81
|
export const GET: APIRoute = async ({ params, request }) => {
|
|
83
82
|
const url = new URL(request.url);
|
|
84
83
|
const baseUrl = process.env.LLMS_TXT_BASE_URL || `${url.origin}`;
|