@eventcatalog/core 2.32.2 → 2.33.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.
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 +8 -4
  4. package/dist/analytics/log-build.d.cts +3 -2
  5. package/dist/analytics/log-build.d.ts +3 -2
  6. package/dist/analytics/log-build.js +3 -3
  7. package/dist/{chunk-DSBB2TAS.js → chunk-MC6EBL4I.js} +1 -1
  8. package/dist/{chunk-IHJ2QDXX.js → chunk-MXEVMOGW.js} +8 -4
  9. package/dist/{chunk-JJKQS722.js → chunk-TNU27WQF.js} +1 -1
  10. package/dist/{chunk-NJGR7XUU.js → chunk-ZIZUBYNO.js} +52 -9
  11. package/dist/constants.cjs +1 -1
  12. package/dist/constants.js +1 -1
  13. package/dist/eventcatalog.cjs +79 -23
  14. package/dist/eventcatalog.js +27 -16
  15. package/dist/features.cjs +54 -10
  16. package/dist/features.d.cts +3 -2
  17. package/dist/features.d.ts +3 -2
  18. package/dist/features.js +5 -3
  19. package/eventcatalog/public/images/eventcatalog-upgrade.png +0 -0
  20. package/eventcatalog/src/enterprise/ai-assistant/components/ChatSidebar.tsx +59 -61
  21. package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +72 -34
  22. package/eventcatalog/src/pages/chat/feature.astro +159 -0
  23. package/eventcatalog/src/pages/chat/index.astro +6 -2
  24. package/eventcatalog/src/pages/docs/custom/[...path]/index.astro +3 -9
  25. package/eventcatalog/src/pages/docs/custom/feature.astro +165 -0
  26. package/eventcatalog/src/pages/docs/custom/index.astro +6 -2
  27. package/eventcatalog/src/pages/plans/index.astro +292 -0
  28. package/eventcatalog/src/utils/feature.ts +21 -5
  29. package/package.json +1 -1
  30. package/eventcatalog/src/pages/pro/index.astro +0 -272
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "2.32.2";
40
+ var version = "2.33.0";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-DSBB2TAS.js";
4
- import "../chunk-JJKQS722.js";
3
+ } from "../chunk-MC6EBL4I.js";
4
+ import "../chunk-TNU27WQF.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.32.2";
109
+ var version = "2.33.0";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -136,19 +136,23 @@ async function raiseEvent(eventData) {
136
136
  }
137
137
 
138
138
  // src/analytics/log-build.js
139
- var main = async (projectDir, { isEventCatalogProEnabled, isBackstagePluginEnabled }) => {
139
+ var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled }) => {
140
140
  if (process.env.NODE_ENV === "CI") return;
141
141
  try {
142
142
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
143
143
  const configFile = await getEventCatalogConfigFile(projectDir);
144
144
  const { cId, organizationName, generators = [] } = configFile;
145
145
  let generatorNames = generators.length > 0 ? generators.map((generator) => generator[0]) : ["none"];
146
- if (isEventCatalogProEnabled) {
147
- generatorNames.push("@eventcatalog/eventcatalog-pro");
146
+ if (isEventCatalogStarterEnabled) {
147
+ generatorNames.push("@eventcatalog/eventcatalog-starter");
148
+ }
149
+ if (isEventCatalogScaleEnabled) {
150
+ generatorNames.push("@eventcatalog/eventcatalog-scale");
148
151
  }
149
152
  if (isBackstagePluginEnabled) {
150
153
  generatorNames.push("@eventcatalog/backstage-plugin-eventcatalog");
151
154
  }
155
+ console.log("generatorNames", generatorNames);
152
156
  await raiseEvent({
153
157
  command: "build",
154
158
  org: organizationName,
@@ -2,8 +2,9 @@
2
2
  *
3
3
  * @param {string} projectDir
4
4
  */
5
- declare function main(projectDir: string, { isEventCatalogProEnabled, isBackstagePluginEnabled }: {
6
- isEventCatalogProEnabled: any;
5
+ declare function main(projectDir: string, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled }: {
6
+ isEventCatalogStarterEnabled: any;
7
+ isEventCatalogScaleEnabled: any;
7
8
  isBackstagePluginEnabled: any;
8
9
  }): Promise<void>;
9
10
 
@@ -2,8 +2,9 @@
2
2
  *
3
3
  * @param {string} projectDir
4
4
  */
5
- declare function main(projectDir: string, { isEventCatalogProEnabled, isBackstagePluginEnabled }: {
6
- isEventCatalogProEnabled: any;
5
+ declare function main(projectDir: string, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled }: {
6
+ isEventCatalogStarterEnabled: any;
7
+ isEventCatalogScaleEnabled: any;
7
8
  isBackstagePluginEnabled: any;
8
9
  }): Promise<void>;
9
10
 
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-IHJ2QDXX.js";
4
- import "../chunk-DSBB2TAS.js";
5
- import "../chunk-JJKQS722.js";
3
+ } from "../chunk-MXEVMOGW.js";
4
+ import "../chunk-MC6EBL4I.js";
5
+ import "../chunk-TNU27WQF.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-JJKQS722.js";
3
+ } from "./chunk-TNU27WQF.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,25 +1,29 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-DSBB2TAS.js";
3
+ } from "./chunk-MC6EBL4I.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
7
7
  } from "./chunk-E7TXTI7G.js";
8
8
 
9
9
  // src/analytics/log-build.js
10
- var main = async (projectDir, { isEventCatalogProEnabled, isBackstagePluginEnabled }) => {
10
+ var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled }) => {
11
11
  if (process.env.NODE_ENV === "CI") return;
12
12
  try {
13
13
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
14
14
  const configFile = await getEventCatalogConfigFile(projectDir);
15
15
  const { cId, organizationName, generators = [] } = configFile;
16
16
  let generatorNames = generators.length > 0 ? generators.map((generator) => generator[0]) : ["none"];
17
- if (isEventCatalogProEnabled) {
18
- generatorNames.push("@eventcatalog/eventcatalog-pro");
17
+ if (isEventCatalogStarterEnabled) {
18
+ generatorNames.push("@eventcatalog/eventcatalog-starter");
19
+ }
20
+ if (isEventCatalogScaleEnabled) {
21
+ generatorNames.push("@eventcatalog/eventcatalog-scale");
19
22
  }
20
23
  if (isBackstagePluginEnabled) {
21
24
  generatorNames.push("@eventcatalog/backstage-plugin-eventcatalog");
22
25
  }
26
+ console.log("generatorNames", generatorNames);
23
27
  await raiseEvent({
24
28
  command: "build",
25
29
  org: organizationName,
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.32.2";
2
+ var version = "2.33.0";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -42,8 +42,8 @@ var isBackstagePluginEnabled = async (licenseKey) => {
42
42
  }
43
43
  return true;
44
44
  };
45
- var isEventCatalogProEnabled = async (licenseKey) => {
46
- const LICENSE_KEY = process.env.EVENTCATALOG_PRO_LICENSE_KEY || null;
45
+ var isEventCatalogScaleEnabled = async (licenseKey) => {
46
+ const LICENSE_KEY = process.env.EVENTCATALOG_SCALE_LICENSE_KEY || null;
47
47
  if (!LICENSE_KEY) {
48
48
  return false;
49
49
  }
@@ -56,28 +56,70 @@ var isEventCatalogProEnabled = async (licenseKey) => {
56
56
  });
57
57
  if (response.status !== 200) {
58
58
  console.log(
59
- "\nTried to verify your EventCatalog Pro license but it is not valid. Please check your license key or purchase a license at https://eventcatalog.cloud/\n"
59
+ "\nTried to verify your EventCatalog Scale plan, but your license key is not valid. Please check your license key or purchase a license at https://eventcatalog.cloud/\n"
60
60
  );
61
61
  return false;
62
62
  }
63
63
  if (response.status === 200) {
64
64
  const data = await response.json();
65
- if ("@eventcatalog/eventcatalog-pro" !== data.plugin) {
65
+ if ("@eventcatalog/eventcatalog-scale" !== data.plugin) {
66
66
  console.log(
67
- "\nInvalid license key for EventCatalog Pro, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
67
+ "\nInvalid license key for EventCatalog Scale plan, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
68
68
  );
69
69
  return false;
70
70
  }
71
- let message = "EventCatalog Pro is enabled for EventCatalog";
71
+ let message = "EventCatalog Scale plan is enabled for EventCatalog";
72
72
  if (data.is_trial) {
73
- message += "\nYou are using a trial license for EventCatalog Pro.";
73
+ message += "\nYou are using a trial license for EventCatalog Scale plan.";
74
74
  }
75
75
  console.log(
76
76
  boxen(message, {
77
77
  padding: 1,
78
78
  margin: 1,
79
79
  borderColor: "green",
80
- title: "@eventcatalog/eventcatalog-pro",
80
+ title: "@eventcatalog/eventcatalog-scale",
81
+ titleAlignment: "center"
82
+ })
83
+ );
84
+ }
85
+ return true;
86
+ };
87
+ var isEventCatalogStarterEnabled = async (licenseKey) => {
88
+ const LICENSE_KEY = process.env.EVENTCATALOG_STARTER_LICENSE_KEY || null;
89
+ if (!LICENSE_KEY) {
90
+ return false;
91
+ }
92
+ const response = await fetch("https://api.eventcatalog.cloud/functions/v1/license", {
93
+ method: "POST",
94
+ headers: {
95
+ Authorization: `Bearer ${LICENSE_KEY}`,
96
+ "Content-Type": "application/json"
97
+ }
98
+ });
99
+ if (response.status !== 200) {
100
+ console.log(
101
+ "\nTried to verify your EventCatalog Starter plan, but your license key is not valid. Please check your license key or purchase a license at https://eventcatalog.cloud/\n"
102
+ );
103
+ return false;
104
+ }
105
+ if (response.status === 200) {
106
+ const data = await response.json();
107
+ if ("@eventcatalog/eventcatalog-starter" !== data.plugin) {
108
+ console.log(
109
+ "\nInvalid license key for EventCatalog Starter plan, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
110
+ );
111
+ return false;
112
+ }
113
+ let message = "EventCatalog Starter plan is enabled for EventCatalog";
114
+ if (data.is_trial) {
115
+ message += "\nYou are using a trial license for EventCatalog Starter Plan.";
116
+ }
117
+ console.log(
118
+ boxen(message, {
119
+ padding: 1,
120
+ margin: 1,
121
+ borderColor: "green",
122
+ title: "@eventcatalog/eventcatalog-starter",
81
123
  titleAlignment: "center"
82
124
  })
83
125
  );
@@ -87,5 +129,6 @@ var isEventCatalogProEnabled = async (licenseKey) => {
87
129
 
88
130
  export {
89
131
  isBackstagePluginEnabled,
90
- isEventCatalogProEnabled
132
+ isEventCatalogScaleEnabled,
133
+ isEventCatalogStarterEnabled
91
134
  };
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.32.2";
28
+ var version = "2.33.0";
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-JJKQS722.js";
3
+ } from "./chunk-TNU27WQF.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
157
157
  var import_os = __toESM(require("os"), 1);
158
158
 
159
159
  // package.json
160
- var version = "2.32.2";
160
+ var version = "2.33.0";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -187,19 +187,23 @@ async function raiseEvent(eventData) {
187
187
  }
188
188
 
189
189
  // src/analytics/log-build.js
190
- var main = async (projectDir, { isEventCatalogProEnabled: isEventCatalogProEnabled2, isBackstagePluginEnabled: isBackstagePluginEnabled2 }) => {
190
+ var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStarterEnabled2, isEventCatalogScaleEnabled: isEventCatalogScaleEnabled2, isBackstagePluginEnabled: isBackstagePluginEnabled2 }) => {
191
191
  if (process.env.NODE_ENV === "CI") return;
192
192
  try {
193
193
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
194
194
  const configFile = await getEventCatalogConfigFile(projectDir);
195
195
  const { cId, organizationName, generators = [] } = configFile;
196
196
  let generatorNames = generators.length > 0 ? generators.map((generator) => generator[0]) : ["none"];
197
- if (isEventCatalogProEnabled2) {
198
- generatorNames.push("@eventcatalog/eventcatalog-pro");
197
+ if (isEventCatalogStarterEnabled2) {
198
+ generatorNames.push("@eventcatalog/eventcatalog-starter");
199
+ }
200
+ if (isEventCatalogScaleEnabled2) {
201
+ generatorNames.push("@eventcatalog/eventcatalog-scale");
199
202
  }
200
203
  if (isBackstagePluginEnabled2) {
201
204
  generatorNames.push("@eventcatalog/backstage-plugin-eventcatalog");
202
205
  }
206
+ console.log("generatorNames", generatorNames);
203
207
  await raiseEvent({
204
208
  command: "build",
205
209
  org: organizationName,
@@ -511,8 +515,50 @@ var isBackstagePluginEnabled = async (licenseKey) => {
511
515
  }
512
516
  return true;
513
517
  };
514
- var isEventCatalogProEnabled = async (licenseKey) => {
515
- const LICENSE_KEY = process.env.EVENTCATALOG_PRO_LICENSE_KEY || null;
518
+ var isEventCatalogScaleEnabled = async (licenseKey) => {
519
+ const LICENSE_KEY = process.env.EVENTCATALOG_SCALE_LICENSE_KEY || null;
520
+ if (!LICENSE_KEY) {
521
+ return false;
522
+ }
523
+ const response = await fetch("https://api.eventcatalog.cloud/functions/v1/license", {
524
+ method: "POST",
525
+ headers: {
526
+ Authorization: `Bearer ${LICENSE_KEY}`,
527
+ "Content-Type": "application/json"
528
+ }
529
+ });
530
+ if (response.status !== 200) {
531
+ console.log(
532
+ "\nTried to verify your EventCatalog Scale plan, but your license key is not valid. Please check your license key or purchase a license at https://eventcatalog.cloud/\n"
533
+ );
534
+ return false;
535
+ }
536
+ if (response.status === 200) {
537
+ const data = await response.json();
538
+ if ("@eventcatalog/eventcatalog-scale" !== data.plugin) {
539
+ console.log(
540
+ "\nInvalid license key for EventCatalog Scale plan, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
541
+ );
542
+ return false;
543
+ }
544
+ let message = "EventCatalog Scale plan is enabled for EventCatalog";
545
+ if (data.is_trial) {
546
+ message += "\nYou are using a trial license for EventCatalog Scale plan.";
547
+ }
548
+ console.log(
549
+ (0, import_boxen.default)(message, {
550
+ padding: 1,
551
+ margin: 1,
552
+ borderColor: "green",
553
+ title: "@eventcatalog/eventcatalog-scale",
554
+ titleAlignment: "center"
555
+ })
556
+ );
557
+ }
558
+ return true;
559
+ };
560
+ var isEventCatalogStarterEnabled = async (licenseKey) => {
561
+ const LICENSE_KEY = process.env.EVENTCATALOG_STARTER_LICENSE_KEY || null;
516
562
  if (!LICENSE_KEY) {
517
563
  return false;
518
564
  }
@@ -525,28 +571,28 @@ var isEventCatalogProEnabled = async (licenseKey) => {
525
571
  });
526
572
  if (response.status !== 200) {
527
573
  console.log(
528
- "\nTried to verify your EventCatalog Pro license but it is not valid. Please check your license key or purchase a license at https://eventcatalog.cloud/\n"
574
+ "\nTried to verify your EventCatalog Starter plan, but your license key is not valid. Please check your license key or purchase a license at https://eventcatalog.cloud/\n"
529
575
  );
530
576
  return false;
531
577
  }
532
578
  if (response.status === 200) {
533
579
  const data = await response.json();
534
- if ("@eventcatalog/eventcatalog-pro" !== data.plugin) {
580
+ if ("@eventcatalog/eventcatalog-starter" !== data.plugin) {
535
581
  console.log(
536
- "\nInvalid license key for EventCatalog Pro, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
582
+ "\nInvalid license key for EventCatalog Starter plan, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
537
583
  );
538
584
  return false;
539
585
  }
540
- let message = "EventCatalog Pro is enabled for EventCatalog";
586
+ let message = "EventCatalog Starter plan is enabled for EventCatalog";
541
587
  if (data.is_trial) {
542
- message += "\nYou are using a trial license for EventCatalog Pro.";
588
+ message += "\nYou are using a trial license for EventCatalog Starter Plan.";
543
589
  }
544
590
  console.log(
545
591
  (0, import_boxen.default)(message, {
546
592
  padding: 1,
547
593
  margin: 1,
548
594
  borderColor: "green",
549
- title: "@eventcatalog/eventcatalog-pro",
595
+ title: "@eventcatalog/eventcatalog-starter",
550
596
  titleAlignment: "center"
551
597
  })
552
598
  );
@@ -633,7 +679,8 @@ program.command("dev").description("Run development server of EventCatalog").opt
633
679
  await checkAndConvertMdToMdx(dir, core);
634
680
  await catalogToAstro(dir, core);
635
681
  const canEmbedPages = await isBackstagePluginEnabled();
636
- const isEventCatalogPro = await isEventCatalogProEnabled();
682
+ const isEventCatalogStarter = await isEventCatalogStarterEnabled();
683
+ const isEventCatalogScale = await isEventCatalogScaleEnabled();
637
684
  checkForUpdate();
638
685
  let watchUnsub;
639
686
  try {
@@ -649,7 +696,8 @@ program.command("dev").description("Run development server of EventCatalog").opt
649
696
  PROJECT_DIR: dir,
650
697
  CATALOG_DIR: core,
651
698
  ENABLE_EMBED: canEmbedPages,
652
- EVENTCATALOG_PRO: isEventCatalogPro
699
+ EVENTCATALOG_STARTER: isEventCatalogStarter,
700
+ EVENTCATALOG_SCALE: isEventCatalogScale
653
701
  }
654
702
  }
655
703
  ],
@@ -677,8 +725,13 @@ program.command("build").description("Run build of EventCatalog").action(async (
677
725
  console.log("Building EventCatalog...");
678
726
  copyCore();
679
727
  const canEmbedPages = await isBackstagePluginEnabled();
680
- const isEventCatalogPro = await isEventCatalogProEnabled();
681
- await log_build_default(dir, { isEventCatalogProEnabled: isEventCatalogPro, isBackstagePluginEnabled: canEmbedPages });
728
+ const isEventCatalogStarter = await isEventCatalogStarterEnabled();
729
+ const isEventCatalogScale = await isEventCatalogScaleEnabled();
730
+ await log_build_default(dir, {
731
+ isEventCatalogStarterEnabled: isEventCatalogStarter,
732
+ isEventCatalogScaleEnabled: isEventCatalogScale,
733
+ isBackstagePluginEnabled: canEmbedPages
734
+ });
682
735
  await resolve_catalog_dependencies_default(dir, core);
683
736
  await checkAndConvertMdToMdx(dir, core);
684
737
  await catalogToAstro(dir, core);
@@ -687,7 +740,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
687
740
  const unixCommand = `npx astro build ${command.args.join(" ").trim()} 2>&1 | grep -v "The collection.*does not exist"`;
688
741
  const buildCommand = process.platform === "win32" ? windowsCommand : unixCommand;
689
742
  (0, import_node_child_process.execSync)(
690
- `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_PRO=${isEventCatalogPro} ${buildCommand}`,
743
+ `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} ${buildCommand}`,
691
744
  {
692
745
  cwd: core,
693
746
  stdio: "inherit"
@@ -697,10 +750,11 @@ program.command("build").description("Run build of EventCatalog").action(async (
697
750
  var previewCatalog = ({
698
751
  command,
699
752
  canEmbedPages = false,
700
- isEventCatalogPro = false
753
+ isEventCatalogStarter = false,
754
+ isEventCatalogScale = false
701
755
  }) => {
702
756
  (0, import_node_child_process.execSync)(
703
- `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_PRO=${isEventCatalogPro} npx astro preview ${command.args.join(" ").trim()}`,
757
+ `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} npx astro preview ${command.args.join(" ").trim()}`,
704
758
  {
705
759
  cwd: core,
706
760
  stdio: "inherit"
@@ -710,14 +764,16 @@ var previewCatalog = ({
710
764
  program.command("preview").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
711
765
  console.log("Starting preview of your build...");
712
766
  const canEmbedPages = await isBackstagePluginEnabled();
713
- const isEventCatalogPro = await isEventCatalogProEnabled();
714
- previewCatalog({ command, canEmbedPages, isEventCatalogPro });
767
+ const isEventCatalogStarter = await isEventCatalogStarterEnabled();
768
+ const isEventCatalogScale = await isEventCatalogScaleEnabled();
769
+ previewCatalog({ command, canEmbedPages, isEventCatalogStarter, isEventCatalogScale });
715
770
  });
716
771
  program.command("start").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
717
772
  console.log("Starting preview of your build...");
718
773
  const canEmbedPages = await isBackstagePluginEnabled();
719
- const isEventCatalogPro = await isEventCatalogProEnabled();
720
- previewCatalog({ command, canEmbedPages, isEventCatalogPro });
774
+ const isEventCatalogStarter = await isEventCatalogStarterEnabled();
775
+ const isEventCatalogScale = await isEventCatalogScaleEnabled();
776
+ previewCatalog({ command, canEmbedPages, isEventCatalogStarter, isEventCatalogScale });
721
777
  });
722
778
  program.command("generate [siteDir]").description("Start the generator scripts.").action(async () => {
723
779
  await generate(dir);
@@ -6,19 +6,20 @@ import {
6
6
  } from "./chunk-UKJ7F5WR.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-IHJ2QDXX.js";
10
- import "./chunk-DSBB2TAS.js";
9
+ } from "./chunk-MXEVMOGW.js";
10
+ import "./chunk-MC6EBL4I.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
14
14
  } from "./chunk-7SI5EVOX.js";
15
15
  import {
16
16
  VERSION
17
- } from "./chunk-JJKQS722.js";
17
+ } from "./chunk-TNU27WQF.js";
18
18
  import {
19
19
  isBackstagePluginEnabled,
20
- isEventCatalogProEnabled
21
- } from "./chunk-NJGR7XUU.js";
20
+ isEventCatalogScaleEnabled,
21
+ isEventCatalogStarterEnabled
22
+ } from "./chunk-ZIZUBYNO.js";
22
23
  import {
23
24
  generate
24
25
  } from "./chunk-YEQVKHST.js";
@@ -112,7 +113,8 @@ program.command("dev").description("Run development server of EventCatalog").opt
112
113
  await checkAndConvertMdToMdx(dir, core);
113
114
  await catalogToAstro(dir, core);
114
115
  const canEmbedPages = await isBackstagePluginEnabled();
115
- const isEventCatalogPro = await isEventCatalogProEnabled();
116
+ const isEventCatalogStarter = await isEventCatalogStarterEnabled();
117
+ const isEventCatalogScale = await isEventCatalogScaleEnabled();
116
118
  checkForUpdate();
117
119
  let watchUnsub;
118
120
  try {
@@ -128,7 +130,8 @@ program.command("dev").description("Run development server of EventCatalog").opt
128
130
  PROJECT_DIR: dir,
129
131
  CATALOG_DIR: core,
130
132
  ENABLE_EMBED: canEmbedPages,
131
- EVENTCATALOG_PRO: isEventCatalogPro
133
+ EVENTCATALOG_STARTER: isEventCatalogStarter,
134
+ EVENTCATALOG_SCALE: isEventCatalogScale
132
135
  }
133
136
  }
134
137
  ],
@@ -156,8 +159,13 @@ program.command("build").description("Run build of EventCatalog").action(async (
156
159
  console.log("Building EventCatalog...");
157
160
  copyCore();
158
161
  const canEmbedPages = await isBackstagePluginEnabled();
159
- const isEventCatalogPro = await isEventCatalogProEnabled();
160
- await log_build_default(dir, { isEventCatalogProEnabled: isEventCatalogPro, isBackstagePluginEnabled: canEmbedPages });
162
+ const isEventCatalogStarter = await isEventCatalogStarterEnabled();
163
+ const isEventCatalogScale = await isEventCatalogScaleEnabled();
164
+ await log_build_default(dir, {
165
+ isEventCatalogStarterEnabled: isEventCatalogStarter,
166
+ isEventCatalogScaleEnabled: isEventCatalogScale,
167
+ isBackstagePluginEnabled: canEmbedPages
168
+ });
161
169
  await resolve_catalog_dependencies_default(dir, core);
162
170
  await checkAndConvertMdToMdx(dir, core);
163
171
  await catalogToAstro(dir, core);
@@ -166,7 +174,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
166
174
  const unixCommand = `npx astro build ${command.args.join(" ").trim()} 2>&1 | grep -v "The collection.*does not exist"`;
167
175
  const buildCommand = process.platform === "win32" ? windowsCommand : unixCommand;
168
176
  execSync(
169
- `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_PRO=${isEventCatalogPro} ${buildCommand}`,
177
+ `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} ${buildCommand}`,
170
178
  {
171
179
  cwd: core,
172
180
  stdio: "inherit"
@@ -176,10 +184,11 @@ program.command("build").description("Run build of EventCatalog").action(async (
176
184
  var previewCatalog = ({
177
185
  command,
178
186
  canEmbedPages = false,
179
- isEventCatalogPro = false
187
+ isEventCatalogStarter = false,
188
+ isEventCatalogScale = false
180
189
  }) => {
181
190
  execSync(
182
- `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_PRO=${isEventCatalogPro} npx astro preview ${command.args.join(" ").trim()}`,
191
+ `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} npx astro preview ${command.args.join(" ").trim()}`,
183
192
  {
184
193
  cwd: core,
185
194
  stdio: "inherit"
@@ -189,14 +198,16 @@ var previewCatalog = ({
189
198
  program.command("preview").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
190
199
  console.log("Starting preview of your build...");
191
200
  const canEmbedPages = await isBackstagePluginEnabled();
192
- const isEventCatalogPro = await isEventCatalogProEnabled();
193
- previewCatalog({ command, canEmbedPages, isEventCatalogPro });
201
+ const isEventCatalogStarter = await isEventCatalogStarterEnabled();
202
+ const isEventCatalogScale = await isEventCatalogScaleEnabled();
203
+ previewCatalog({ command, canEmbedPages, isEventCatalogStarter, isEventCatalogScale });
194
204
  });
195
205
  program.command("start").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
196
206
  console.log("Starting preview of your build...");
197
207
  const canEmbedPages = await isBackstagePluginEnabled();
198
- const isEventCatalogPro = await isEventCatalogProEnabled();
199
- previewCatalog({ command, canEmbedPages, isEventCatalogPro });
208
+ const isEventCatalogStarter = await isEventCatalogStarterEnabled();
209
+ const isEventCatalogScale = await isEventCatalogScaleEnabled();
210
+ previewCatalog({ command, canEmbedPages, isEventCatalogStarter, isEventCatalogScale });
200
211
  });
201
212
  program.command("generate [siteDir]").description("Start the generator scripts.").action(async () => {
202
213
  await generate(dir);