@eventmodelers/cli 1.0.72 → 1.0.74

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 (75) hide show
  1. package/README.md +29 -8
  2. package/RELEASE_NOTES.md +5 -0
  3. package/cli.js +119 -28
  4. package/package.json +2 -2
  5. package/shared/demo-slices/Understanding Eventsourcing/additem/slice.json +176 -0
  6. package/shared/demo-slices/Understanding Eventsourcing/archiveitem/slice.json +209 -0
  7. package/shared/demo-slices/Understanding Eventsourcing/cartitems/slice.json +236 -0
  8. package/shared/demo-slices/Understanding Eventsourcing/cartpublicationfailed/slice.json +65 -0
  9. package/shared/demo-slices/Understanding Eventsourcing/cartpublished/slice.json +65 -0
  10. package/shared/demo-slices/Understanding Eventsourcing/cartswithproducts/slice.json +105 -0
  11. package/shared/demo-slices/Understanding Eventsourcing/changedprices/slice.json +91 -0
  12. package/shared/demo-slices/Understanding Eventsourcing/changeinventory/slice.json +191 -0
  13. package/shared/demo-slices/Understanding Eventsourcing/changeprice/slice.json +220 -0
  14. package/shared/demo-slices/Understanding Eventsourcing/clearcart/slice.json +219 -0
  15. package/shared/demo-slices/Understanding Eventsourcing/config.json +2631 -0
  16. package/shared/demo-slices/Understanding Eventsourcing/context.json +3 -0
  17. package/shared/demo-slices/Understanding Eventsourcing/index.json +132 -0
  18. package/shared/demo-slices/Understanding Eventsourcing/inventories/slice.json +132 -0
  19. package/shared/demo-slices/Understanding Eventsourcing/itemadded/slice.json +137 -0
  20. package/shared/demo-slices/Understanding Eventsourcing/publishcart/slice.json +230 -0
  21. package/shared/demo-slices/Understanding Eventsourcing/removeitem/slice.json +239 -0
  22. package/shared/demo-slices/Understanding Eventsourcing/submitcart/slice.json +199 -0
  23. package/shared/demo-slices/Understanding Eventsourcing/submittedcartdata/slice.json +90 -0
  24. package/shared/demo-slices/current_context.json +3 -0
  25. package/stacks/blank/templates/.claude/skills/build-automation/SKILL.md +1 -1
  26. package/stacks/blank/templates/.claude/skills/build-state-change/SKILL.md +1 -1
  27. package/stacks/blank/templates/.claude/skills/build-state-view/SKILL.md +1 -1
  28. package/stacks/blank/templates/root/README.md +1 -1
  29. package/stacks/modeling-kit/templates/kit/CLAUDE-STANDALONE.md +8 -6
  30. package/stacks/modeling-kit/templates/kit/CLAUDE.md +12 -7
  31. package/stacks/modeling-kit/templates/kit/README.md +1 -1
  32. package/stacks/react/templates/.claude/skills/build-automation/SKILL.md +1 -1
  33. package/stacks/react/templates/.claude/skills/build-state-change/SKILL.md +1 -1
  34. package/stacks/react/templates/.claude/skills/build-state-view/SKILL.md +1 -1
  35. package/stacks/cratis-csharp/templates/.claude/skills/_shared/cratis-conventions.md +0 -251
  36. package/stacks/cratis-csharp/templates/.claude/skills/build-automation/SKILL.md +0 -122
  37. package/stacks/cratis-csharp/templates/.claude/skills/build-automation/references/patterns.md +0 -115
  38. package/stacks/cratis-csharp/templates/.claude/skills/build-state-change/SKILL.md +0 -191
  39. package/stacks/cratis-csharp/templates/.claude/skills/build-state-change/references/patterns.md +0 -234
  40. package/stacks/cratis-csharp/templates/.claude/skills/build-state-view/SKILL.md +0 -149
  41. package/stacks/cratis-csharp/templates/.claude/skills/build-state-view/references/patterns.md +0 -166
  42. package/stacks/cratis-csharp/templates/build-kit/CLAUDE.md +0 -78
  43. package/stacks/cratis-csharp/templates/build-kit/lib/AGENT.md +0 -59
  44. package/stacks/cratis-csharp/templates/build-kit/lib/backend-prompt.md +0 -140
  45. package/stacks/cratis-csharp/templates/build-kit/lib/prompt.md +0 -126
  46. package/stacks/cratis-csharp/templates/root/.frontend/index.css +0 -29
  47. package/stacks/cratis-csharp/templates/root/.frontend/index.html +0 -17
  48. package/stacks/cratis-csharp/templates/root/.frontend/main.tsx +0 -18
  49. package/stacks/cratis-csharp/templates/root/.frontend/tsconfig.json +0 -42
  50. package/stacks/cratis-csharp/templates/root/.frontend/tsconfig.node.json +0 -11
  51. package/stacks/cratis-csharp/templates/root/.frontend/vite.config.ts +0 -56
  52. package/stacks/cratis-csharp/templates/root/App.tsx +0 -23
  53. package/stacks/cratis-csharp/templates/root/CratisApp.csproj +0 -25
  54. package/stacks/cratis-csharp/templates/root/CratisApp.sln +0 -18
  55. package/stacks/cratis-csharp/templates/root/GlobalUsings.cs +0 -3
  56. package/stacks/cratis-csharp/templates/root/Home.tsx +0 -102
  57. package/stacks/cratis-csharp/templates/root/Program.cs +0 -26
  58. package/stacks/cratis-csharp/templates/root/README.md +0 -192
  59. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/AllListings.ts +0 -47
  60. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/Listing.cs +0 -11
  61. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/Listing.ts +0 -12
  62. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/ListingDataTable.tsx +0 -17
  63. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/index.ts +0 -1
  64. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/Register.ts +0 -51
  65. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/RegisterDialog.tsx +0 -18
  66. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/Registration.cs +0 -27
  67. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/index.ts +0 -1
  68. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/SomeFeature.tsx +0 -22
  69. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/SomeName.cs +0 -3
  70. package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/index.ts +0 -1
  71. package/stacks/cratis-csharp/templates/root/appsettings.Development.json +0 -9
  72. package/stacks/cratis-csharp/templates/root/appsettings.json +0 -26
  73. package/stacks/cratis-csharp/templates/root/docker-compose.yml +0 -23
  74. package/stacks/cratis-csharp/templates/root/package.json +0 -33
  75. package/stacks/cratis-csharp/templates/root/tsconfig.json +0 -3
@@ -0,0 +1,219 @@
1
+ {
2
+ "id": "d7e5ba77-fd22-4975-b131-3e942b4859b0",
3
+ "status": "Planned",
4
+ "title": "Clear Cart",
5
+ "context": "Understanding Eventsourcing",
6
+ "sliceType": "STATE_CHANGE",
7
+ "commands": [
8
+ {
9
+ "id": "84d6812f-3646-4953-9697-9848d21ca961",
10
+ "tags": [],
11
+ "lane": "Interaction",
12
+ "modelContext": "Understanding Eventsourcing",
13
+ "slice": "Clear Cart",
14
+ "title": "Clear Cart",
15
+ "fields": [
16
+ {
17
+ "name": "aggregateId",
18
+ "type": "UUID",
19
+ "example": "",
20
+ "mapping": "",
21
+ "optional": false,
22
+ "subfields": [],
23
+ "cardinality": "Single",
24
+ "idAttribute": false
25
+ }
26
+ ],
27
+ "type": "COMMAND",
28
+ "description": "",
29
+ "aggregate": "default",
30
+ "aggregateDependencies": [],
31
+ "dependencies": [
32
+ {
33
+ "id": "d7cb2a4a-6d1a-4abf-9a37-0bdd9b84eb32",
34
+ "type": "OUTBOUND",
35
+ "title": "Cart Cleared",
36
+ "elementType": "EVENT"
37
+ },
38
+ {
39
+ "id": "1977b408-2125-4752-992c-6bc36e00f8bb",
40
+ "type": "INBOUND",
41
+ "title": "title",
42
+ "elementType": "SCREEN"
43
+ }
44
+ ],
45
+ "apiEndpoint": "",
46
+ "createsAggregate": false,
47
+ "triggers": [],
48
+ "elementCopy": false,
49
+ "linkedId": "84d6812f-3646-4953-9697-9848d21ca961",
50
+ "sketched": false,
51
+ "prototype": {
52
+ "activeByDefault": false
53
+ },
54
+ "comments": []
55
+ }
56
+ ],
57
+ "events": [
58
+ {
59
+ "id": "d7cb2a4a-6d1a-4abf-9a37-0bdd9b84eb32",
60
+ "tags": [],
61
+ "lane": "Events",
62
+ "modelContext": "Understanding Eventsourcing",
63
+ "slice": "Clear Cart",
64
+ "title": "Cart Cleared",
65
+ "fields": [
66
+ {
67
+ "name": "aggregateId",
68
+ "type": "UUID",
69
+ "example": "",
70
+ "mapping": "",
71
+ "optional": false,
72
+ "subfields": [],
73
+ "cardinality": "Single",
74
+ "idAttribute": false
75
+ }
76
+ ],
77
+ "type": "EVENT",
78
+ "description": "",
79
+ "aggregate": "default",
80
+ "aggregateDependencies": [],
81
+ "dependencies": [
82
+ {
83
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
84
+ "type": "OUTBOUND",
85
+ "title": "cart items",
86
+ "elementType": "READMODEL"
87
+ },
88
+ {
89
+ "id": "22511305-2296-43ba-b8e8-d786d53cd25f",
90
+ "type": "OUTBOUND",
91
+ "title": "Carts with Products",
92
+ "elementType": "READMODEL"
93
+ },
94
+ {
95
+ "id": "84d6812f-3646-4953-9697-9848d21ca961",
96
+ "type": "INBOUND",
97
+ "title": "Clear Cart",
98
+ "elementType": "COMMAND"
99
+ }
100
+ ],
101
+ "apiEndpoint": "",
102
+ "createsAggregate": false,
103
+ "triggers": [],
104
+ "elementCopy": false,
105
+ "linkedId": "d7cb2a4a-6d1a-4abf-9a37-0bdd9b84eb32",
106
+ "sketched": false,
107
+ "prototype": {
108
+ "activeByDefault": false
109
+ },
110
+ "comments": []
111
+ }
112
+ ],
113
+ "readmodels": [],
114
+ "screens": [
115
+ {
116
+ "id": "1977b408-2125-4752-992c-6bc36e00f8bb",
117
+ "tags": [],
118
+ "lane": "Actor",
119
+ "modelContext": "Understanding Eventsourcing",
120
+ "slice": "Clear Cart",
121
+ "title": "title",
122
+ "fields": [
123
+ {
124
+ "name": "aggregateId",
125
+ "type": "UUID",
126
+ "example": "",
127
+ "mapping": "",
128
+ "optional": false,
129
+ "cardinality": "Single",
130
+ "idAttribute": false
131
+ },
132
+ {
133
+ "name": "description",
134
+ "type": "String",
135
+ "example": "",
136
+ "mapping": "",
137
+ "optional": false,
138
+ "cardinality": "Single",
139
+ "idAttribute": false
140
+ },
141
+ {
142
+ "name": "image",
143
+ "type": "String",
144
+ "example": "",
145
+ "mapping": "",
146
+ "optional": false,
147
+ "cardinality": "Single",
148
+ "idAttribute": false
149
+ },
150
+ {
151
+ "name": "itemId",
152
+ "type": "UUID",
153
+ "example": "",
154
+ "mapping": "",
155
+ "optional": false,
156
+ "cardinality": "Single",
157
+ "idAttribute": false
158
+ },
159
+ {
160
+ "name": "price",
161
+ "type": "Double",
162
+ "example": "",
163
+ "mapping": "",
164
+ "optional": false,
165
+ "cardinality": "Single",
166
+ "idAttribute": false
167
+ },
168
+ {
169
+ "name": "totalPrice",
170
+ "type": "Double",
171
+ "example": "",
172
+ "mapping": "",
173
+ "optional": false,
174
+ "cardinality": "Single",
175
+ "idAttribute": false
176
+ }
177
+ ],
178
+ "type": "SCREEN",
179
+ "description": "",
180
+ "aggregate": "default",
181
+ "aggregateDependencies": [],
182
+ "dependencies": [
183
+ {
184
+ "id": "84d6812f-3646-4953-9697-9848d21ca961",
185
+ "type": "OUTBOUND",
186
+ "title": "Clear Cart",
187
+ "elementType": "COMMAND"
188
+ },
189
+ {
190
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
191
+ "type": "INBOUND",
192
+ "title": "cart items",
193
+ "elementType": "READMODEL"
194
+ }
195
+ ],
196
+ "apiEndpoint": "",
197
+ "createsAggregate": false,
198
+ "triggers": [],
199
+ "elementCopy": false,
200
+ "linkedId": "1977b408-2125-4752-992c-6bc36e00f8bb",
201
+ "sketched": false,
202
+ "prototype": {
203
+ "activeByDefault": false
204
+ },
205
+ "comments": []
206
+ }
207
+ ],
208
+ "screenImages": [],
209
+ "screenLayouts": [],
210
+ "processors": [],
211
+ "tables": [],
212
+ "specifications": [],
213
+ "storylines": [],
214
+ "chapter": "Understanding Eventsourcing",
215
+ "codeGen": {},
216
+ "notes": [],
217
+ "comments": [],
218
+ "aggregates": []
219
+ }