@eventcatalog/create-eventcatalog 4.2.6 → 4.2.8
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/index.js
CHANGED
|
@@ -29808,7 +29808,7 @@ var import_os2 = __toESM(require("os"));
|
|
|
29808
29808
|
var package_default = {
|
|
29809
29809
|
name: "@eventcatalog/create-eventcatalog",
|
|
29810
29810
|
description: "Create EventCatalog with one command",
|
|
29811
|
-
version: "4.2.
|
|
29811
|
+
version: "4.2.8",
|
|
29812
29812
|
license: "MIT",
|
|
29813
29813
|
bin: {
|
|
29814
29814
|
"create-catalog": "./dist/index.js"
|
|
@@ -29891,6 +29891,14 @@ async function raiseEvent(eventData) {
|
|
|
29891
29891
|
}
|
|
29892
29892
|
|
|
29893
29893
|
// templates/index.ts
|
|
29894
|
+
var AGENT_RULES = `<!-- BEGIN:eventcatalog-agent-rules -->
|
|
29895
|
+
# EventCatalog: ALWAYS read docs before coding
|
|
29896
|
+
|
|
29897
|
+
Before any EventCatalog work, find and read the relevant doc in \`node_modules/@eventcatalog/core/dist/docs/\`. Your training data may be outdated. The bundled docs are the source of truth.
|
|
29898
|
+
|
|
29899
|
+
<!-- END:eventcatalog-agent-rules -->
|
|
29900
|
+
`;
|
|
29901
|
+
var CLAUDE_RULES = "@AGENTS.md\n";
|
|
29894
29902
|
var installTemplate = async ({
|
|
29895
29903
|
appName,
|
|
29896
29904
|
root,
|
|
@@ -29970,6 +29978,8 @@ var installTemplate = async ({
|
|
|
29970
29978
|
}
|
|
29971
29979
|
}
|
|
29972
29980
|
});
|
|
29981
|
+
import_fs16.default.writeFileSync(import_path9.default.join(root, "AGENTS.md"), AGENT_RULES);
|
|
29982
|
+
import_fs16.default.writeFileSync(import_path9.default.join(root, "CLAUDE.md"), CLAUDE_RULES);
|
|
29973
29983
|
const cId = (0, import_uuid.v4)();
|
|
29974
29984
|
const eventCatalogConfigPath = import_path9.default.join(root, "eventcatalog.config.js");
|
|
29975
29985
|
let eventCatalogConfig = import_fs16.default.readFileSync(eventCatalogConfigPath, "utf8");
|
package/package.json
CHANGED
|
@@ -68,13 +68,7 @@ The E-Commerce domain is built on the following sub domains:
|
|
|
68
68
|
</ResourceLink>
|
|
69
69
|
- Generic subscription domain handling users subscriptions
|
|
70
70
|
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
Our target architecture was defined through collaborative event storming sessions with product, engineering, and business stakeholders. This represents our vision for FlowMart's commerce capabilities.
|
|
74
|
-
|
|
75
|
-
<Miro boardId="uXjVIHCImos=/" moveToWidget="3074457347671667709" edit={false} />
|
|
76
|
-
|
|
77
|
-
## Current Production Architecture
|
|
71
|
+
## Architecture
|
|
78
72
|
|
|
79
73
|
Our current event-driven architecture powering FlowMart's shopping experience:
|
|
80
74
|
|
package/templates/index.ts
CHANGED
|
@@ -16,6 +16,16 @@ export const getTemplateFile = ({ template, mode, file }: GetTemplateFileArgs):
|
|
|
16
16
|
return path.join(__dirname, template, mode, file);
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
+
const AGENT_RULES = `<!-- BEGIN:eventcatalog-agent-rules -->
|
|
20
|
+
# EventCatalog: ALWAYS read docs before coding
|
|
21
|
+
|
|
22
|
+
Before any EventCatalog work, find and read the relevant doc in \`node_modules/@eventcatalog/core/dist/docs/\`. Your training data may be outdated. The bundled docs are the source of truth.
|
|
23
|
+
|
|
24
|
+
<!-- END:eventcatalog-agent-rules -->
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
const CLAUDE_RULES = '@AGENTS.md\n';
|
|
28
|
+
|
|
19
29
|
/**
|
|
20
30
|
* Install a Next.js internal template to a given `root` directory.
|
|
21
31
|
*/
|
|
@@ -132,6 +142,9 @@ export const installTemplate = async ({
|
|
|
132
142
|
},
|
|
133
143
|
});
|
|
134
144
|
|
|
145
|
+
fs.writeFileSync(path.join(root, 'AGENTS.md'), AGENT_RULES);
|
|
146
|
+
fs.writeFileSync(path.join(root, 'CLAUDE.md'), CLAUDE_RULES);
|
|
147
|
+
|
|
135
148
|
const cId = v4();
|
|
136
149
|
|
|
137
150
|
// update the properties in the eventcatalog.config.js
|