@eventmodelers/cli 1.0.71 → 1.0.73

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 (28) hide show
  1. package/README.md +25 -8
  2. package/RELEASE_NOTES.md +5 -0
  3. package/cli.js +211 -49
  4. package/package.json +1 -1
  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/shared/skills/learn-eventmodelers-api/SKILL.md +1 -1
  26. package/stacks/modeling-kit/templates/.claude/skills/update-prompt-status/SKILL.md +1 -0
  27. package/stacks/modeling-kit/templates/kit/CLAUDE-STANDALONE.md +14 -9
  28. package/stacks/modeling-kit/templates/kit/CLAUDE.md +12 -7
@@ -0,0 +1,3 @@
1
+ {
2
+ "name": "Understanding Eventsourcing"
3
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "slices": [
3
+ {
4
+ "id": "6829844f-fbb5-41ab-b948-fdef54c7e9c1",
5
+ "slice": "Add Item",
6
+ "index": 0,
7
+ "context": "Understanding Eventsourcing",
8
+ "folder": "additem",
9
+ "status": "Planned"
10
+ },
11
+ {
12
+ "id": "1ee269a6-cdb5-4c83-9c78-a71246bb4985",
13
+ "slice": "Item Added",
14
+ "index": 0,
15
+ "context": "Understanding Eventsourcing",
16
+ "folder": "itemadded",
17
+ "status": "Planned"
18
+ },
19
+ {
20
+ "id": "f263e451-78a6-475e-a112-bff181295e65",
21
+ "slice": "Remove Item",
22
+ "index": 0,
23
+ "context": "Understanding Eventsourcing",
24
+ "folder": "removeitem",
25
+ "status": "Planned"
26
+ },
27
+ {
28
+ "id": "47781f50-9bf5-425d-adc5-810801b94fb2",
29
+ "slice": "cart items",
30
+ "index": 0,
31
+ "context": "Understanding Eventsourcing",
32
+ "folder": "cartitems",
33
+ "status": "Planned"
34
+ },
35
+ {
36
+ "id": "d7e5ba77-fd22-4975-b131-3e942b4859b0",
37
+ "slice": "Clear Cart",
38
+ "index": 0,
39
+ "context": "Understanding Eventsourcing",
40
+ "folder": "clearcart",
41
+ "status": "Planned"
42
+ },
43
+ {
44
+ "id": "472e6e49-ab4d-408c-9653-df364587036d",
45
+ "slice": "Change Inventory",
46
+ "index": 0,
47
+ "context": "Understanding Eventsourcing",
48
+ "folder": "changeinventory",
49
+ "status": "Planned"
50
+ },
51
+ {
52
+ "id": "0631d89b-9b87-4981-9b37-e745842a6d48",
53
+ "slice": "Inventories",
54
+ "index": 0,
55
+ "context": "Understanding Eventsourcing",
56
+ "folder": "inventories",
57
+ "status": "Planned"
58
+ },
59
+ {
60
+ "id": "bffefd48-cb91-482a-b2cc-e17b16fff358",
61
+ "slice": "Change Price",
62
+ "index": 0,
63
+ "context": "Understanding Eventsourcing",
64
+ "folder": "changeprice",
65
+ "status": "Planned"
66
+ },
67
+ {
68
+ "id": "b7e24b44-1c2c-4d42-b81d-298eb48ce19c",
69
+ "slice": "Carts with Products",
70
+ "index": 0,
71
+ "context": "Understanding Eventsourcing",
72
+ "folder": "cartswithproducts",
73
+ "status": "Planned"
74
+ },
75
+ {
76
+ "id": "4dbc8407-87a0-4e5b-a9ee-61d0f83d437e",
77
+ "slice": "Changed Prices",
78
+ "index": 0,
79
+ "context": "Understanding Eventsourcing",
80
+ "folder": "changedprices",
81
+ "status": "Planned"
82
+ },
83
+ {
84
+ "id": "ecb9f15d-1700-483e-be5a-71b3aa822644",
85
+ "slice": "Archive Item",
86
+ "index": 0,
87
+ "context": "Understanding Eventsourcing",
88
+ "folder": "archiveitem",
89
+ "status": "Planned"
90
+ },
91
+ {
92
+ "id": "46e2eee1-54ef-4a9c-9403-a3403bf45943",
93
+ "slice": "Submit Cart",
94
+ "index": 0,
95
+ "context": "Understanding Eventsourcing",
96
+ "folder": "submitcart",
97
+ "status": "Planned"
98
+ },
99
+ {
100
+ "id": "412dfce9-0843-4ac0-82e5-4e645716d502",
101
+ "slice": "Submitted Cart Data",
102
+ "index": 0,
103
+ "context": "Understanding Eventsourcing",
104
+ "folder": "submittedcartdata",
105
+ "status": "Planned"
106
+ },
107
+ {
108
+ "id": "c8427265-9c14-4d11-91ee-a88f22ee74cd",
109
+ "slice": "Publish Cart",
110
+ "index": 0,
111
+ "context": "Understanding Eventsourcing",
112
+ "folder": "publishcart",
113
+ "status": "Planned"
114
+ },
115
+ {
116
+ "id": "4d9b60f9-f59f-4475-bfd8-8a4ca686f17f",
117
+ "slice": "Cart Publication Failed",
118
+ "index": 0,
119
+ "context": "Understanding Eventsourcing",
120
+ "folder": "cartpublicationfailed",
121
+ "status": "Planned"
122
+ },
123
+ {
124
+ "id": "cccef300-beb0-41de-8127-df7a8fd8a5b7",
125
+ "slice": "Cart Published",
126
+ "index": 0,
127
+ "context": "Understanding Eventsourcing",
128
+ "folder": "cartpublished",
129
+ "status": "Planned"
130
+ }
131
+ ]
132
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "id": "0631d89b-9b87-4981-9b37-e745842a6d48",
3
+ "status": "Planned",
4
+ "title": "Inventories",
5
+ "context": "Understanding Eventsourcing",
6
+ "sliceType": "STATE_VIEW",
7
+ "commands": [],
8
+ "events": [],
9
+ "readmodels": [
10
+ {
11
+ "id": "eb95e57c-3b32-45a5-bb85-89078fe07476",
12
+ "tags": [],
13
+ "lane": "Interaction",
14
+ "modelContext": "Understanding Eventsourcing",
15
+ "slice": "Inventories",
16
+ "title": "Inventories",
17
+ "fields": [
18
+ {
19
+ "name": "inventory",
20
+ "type": "Int",
21
+ "example": "",
22
+ "mapping": "",
23
+ "optional": false,
24
+ "subfields": [],
25
+ "cardinality": "Single",
26
+ "idAttribute": false
27
+ },
28
+ {
29
+ "name": "productId",
30
+ "type": "UUID",
31
+ "example": "",
32
+ "mapping": "",
33
+ "optional": false,
34
+ "subfields": [],
35
+ "cardinality": "Single",
36
+ "idAttribute": true
37
+ }
38
+ ],
39
+ "type": "READMODEL",
40
+ "description": "",
41
+ "aggregate": "default",
42
+ "aggregateDependencies": [],
43
+ "dependencies": [
44
+ {
45
+ "id": "70b2a647-3ff3-4d3f-b269-defda6a78122",
46
+ "type": "OUTBOUND",
47
+ "title": "title",
48
+ "elementType": "SCREEN"
49
+ },
50
+ {
51
+ "id": "ee37a976-e3af-48d5-8c4c-c168294bda9a",
52
+ "type": "INBOUND",
53
+ "title": "Inventory Changed",
54
+ "elementType": "EVENT"
55
+ }
56
+ ],
57
+ "apiEndpoint": "",
58
+ "createsAggregate": false,
59
+ "triggers": [],
60
+ "elementCopy": false,
61
+ "linkedId": "eb95e57c-3b32-45a5-bb85-89078fe07476",
62
+ "sketched": false,
63
+ "prototype": {
64
+ "activeByDefault": false
65
+ },
66
+ "comments": []
67
+ }
68
+ ],
69
+ "screens": [
70
+ {
71
+ "id": "70b2a647-3ff3-4d3f-b269-defda6a78122",
72
+ "tags": [],
73
+ "lane": "Actor",
74
+ "modelContext": "Understanding Eventsourcing",
75
+ "slice": "Inventories",
76
+ "title": "title",
77
+ "fields": [
78
+ {
79
+ "name": "inventory",
80
+ "type": "Int",
81
+ "example": "",
82
+ "mapping": "",
83
+ "optional": false,
84
+ "cardinality": "Single",
85
+ "idAttribute": false
86
+ },
87
+ {
88
+ "name": "productId",
89
+ "type": "String",
90
+ "example": "",
91
+ "mapping": "",
92
+ "optional": false,
93
+ "cardinality": "Single",
94
+ "idAttribute": false
95
+ }
96
+ ],
97
+ "type": "SCREEN",
98
+ "description": "",
99
+ "aggregate": "default",
100
+ "aggregateDependencies": [],
101
+ "dependencies": [
102
+ {
103
+ "id": "eb95e57c-3b32-45a5-bb85-89078fe07476",
104
+ "type": "INBOUND",
105
+ "title": "Inventories",
106
+ "elementType": "READMODEL"
107
+ }
108
+ ],
109
+ "apiEndpoint": "",
110
+ "createsAggregate": false,
111
+ "triggers": [],
112
+ "elementCopy": false,
113
+ "linkedId": "70b2a647-3ff3-4d3f-b269-defda6a78122",
114
+ "sketched": false,
115
+ "prototype": {
116
+ "activeByDefault": false
117
+ },
118
+ "comments": []
119
+ }
120
+ ],
121
+ "screenImages": [],
122
+ "screenLayouts": [],
123
+ "processors": [],
124
+ "tables": [],
125
+ "specifications": [],
126
+ "storylines": [],
127
+ "chapter": "Understanding Eventsourcing",
128
+ "codeGen": {},
129
+ "notes": [],
130
+ "comments": [],
131
+ "aggregates": []
132
+ }
@@ -0,0 +1,137 @@
1
+ {
2
+ "id": "1ee269a6-cdb5-4c83-9c78-a71246bb4985",
3
+ "status": "Planned",
4
+ "title": "Item Added",
5
+ "context": "Understanding Eventsourcing",
6
+ "sliceType": "UNDEFINED",
7
+ "commands": [],
8
+ "events": [
9
+ {
10
+ "id": "544d0a8c-809c-4670-a9d9-aa8259f43c46",
11
+ "tags": [],
12
+ "lane": "Events",
13
+ "modelContext": "Understanding Eventsourcing",
14
+ "slice": "Item Added",
15
+ "title": "Item Added",
16
+ "fields": [
17
+ {
18
+ "name": "aggregateId",
19
+ "type": "UUID",
20
+ "example": "",
21
+ "mapping": "",
22
+ "optional": false,
23
+ "subfields": [],
24
+ "cardinality": "Single",
25
+ "idAttribute": false
26
+ },
27
+ {
28
+ "name": "description",
29
+ "type": "String",
30
+ "example": "",
31
+ "mapping": "",
32
+ "optional": false,
33
+ "subfields": [],
34
+ "cardinality": "Single",
35
+ "idAttribute": false
36
+ },
37
+ {
38
+ "name": "image",
39
+ "type": "String",
40
+ "example": "",
41
+ "mapping": "",
42
+ "optional": false,
43
+ "subfields": [],
44
+ "cardinality": "Single",
45
+ "idAttribute": false
46
+ },
47
+ {
48
+ "name": "price",
49
+ "type": "Double",
50
+ "example": "",
51
+ "mapping": "",
52
+ "optional": false,
53
+ "subfields": [],
54
+ "cardinality": "Single",
55
+ "idAttribute": false
56
+ },
57
+ {
58
+ "name": "itemId",
59
+ "type": "UUID",
60
+ "example": "",
61
+ "mapping": "",
62
+ "optional": false,
63
+ "subfields": [],
64
+ "cardinality": "Single",
65
+ "idAttribute": false
66
+ },
67
+ {
68
+ "name": "productId",
69
+ "type": "UUID",
70
+ "example": "",
71
+ "mapping": "",
72
+ "optional": false,
73
+ "subfields": [],
74
+ "cardinality": "Single",
75
+ "idAttribute": false
76
+ },
77
+ {
78
+ "name": "deviceFingerPrint",
79
+ "type": "String",
80
+ "example": "",
81
+ "mapping": "",
82
+ "optional": false,
83
+ "subfields": [],
84
+ "cardinality": "Single",
85
+ "idAttribute": false
86
+ }
87
+ ],
88
+ "type": "EVENT",
89
+ "description": "",
90
+ "aggregate": "default",
91
+ "aggregateDependencies": [],
92
+ "dependencies": [
93
+ {
94
+ "id": "22511305-2296-43ba-b8e8-d786d53cd25f",
95
+ "type": "OUTBOUND",
96
+ "title": "Carts with Products",
97
+ "elementType": "READMODEL"
98
+ },
99
+ {
100
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
101
+ "type": "OUTBOUND",
102
+ "title": "cart items",
103
+ "elementType": "READMODEL"
104
+ },
105
+ {
106
+ "id": "75ed140d-12c0-44f9-bf81-c2fa4886cf9d",
107
+ "type": "INBOUND",
108
+ "title": "Add Item",
109
+ "elementType": "COMMAND"
110
+ }
111
+ ],
112
+ "apiEndpoint": "",
113
+ "createsAggregate": false,
114
+ "triggers": [],
115
+ "elementCopy": false,
116
+ "linkedId": "544d0a8c-809c-4670-a9d9-aa8259f43c46",
117
+ "sketched": false,
118
+ "prototype": {
119
+ "activeByDefault": false
120
+ },
121
+ "comments": []
122
+ }
123
+ ],
124
+ "readmodels": [],
125
+ "screens": [],
126
+ "screenImages": [],
127
+ "screenLayouts": [],
128
+ "processors": [],
129
+ "tables": [],
130
+ "specifications": [],
131
+ "storylines": [],
132
+ "chapter": "Understanding Eventsourcing",
133
+ "codeGen": {},
134
+ "notes": [],
135
+ "comments": [],
136
+ "aggregates": []
137
+ }
@@ -0,0 +1,230 @@
1
+ {
2
+ "id": "c8427265-9c14-4d11-91ee-a88f22ee74cd",
3
+ "status": "Planned",
4
+ "title": "Publish Cart",
5
+ "context": "Understanding Eventsourcing",
6
+ "sliceType": "AUTOMATION",
7
+ "commands": [
8
+ {
9
+ "id": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
10
+ "tags": [],
11
+ "lane": "Interaction",
12
+ "modelContext": "Understanding Eventsourcing",
13
+ "slice": "Publish Cart",
14
+ "title": "Publish 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
+ "name": "orderedProducts",
28
+ "type": "Custom",
29
+ "example": "productId, price",
30
+ "mapping": "",
31
+ "optional": false,
32
+ "cardinality": "List",
33
+ "idAttribute": false
34
+ },
35
+ {
36
+ "name": "totalPrice",
37
+ "type": "Double",
38
+ "example": "",
39
+ "mapping": "orderedProducts",
40
+ "optional": false,
41
+ "subfields": [],
42
+ "cardinality": "Single",
43
+ "idAttribute": false
44
+ }
45
+ ],
46
+ "type": "COMMAND",
47
+ "description": "",
48
+ "aggregate": "default",
49
+ "aggregateDependencies": [],
50
+ "dependencies": [
51
+ {
52
+ "id": "efe58df2-5a4a-4344-9759-d4d2779c1045",
53
+ "type": "OUTBOUND",
54
+ "title": "Cart Publication Failed",
55
+ "elementType": "EVENT"
56
+ },
57
+ {
58
+ "id": "8dc753b4-a03e-4052-b5c6-ffcb84fdb023",
59
+ "type": "OUTBOUND",
60
+ "title": "Cart Published",
61
+ "elementType": "EVENT"
62
+ },
63
+ {
64
+ "id": "eb816080-8140-4db8-8a65-f96df8876ec8",
65
+ "type": "OUTBOUND",
66
+ "title": "External Cart Published",
67
+ "elementType": "EVENT"
68
+ },
69
+ {
70
+ "id": "e3073105-b883-444b-b7d2-170de493e093",
71
+ "type": "INBOUND",
72
+ "title": "automation",
73
+ "elementType": "AUTOMATION"
74
+ }
75
+ ],
76
+ "apiEndpoint": "",
77
+ "createsAggregate": false,
78
+ "triggers": [],
79
+ "elementCopy": false,
80
+ "linkedId": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
81
+ "sketched": false,
82
+ "prototype": {
83
+ "activeByDefault": false
84
+ },
85
+ "comments": []
86
+ }
87
+ ],
88
+ "events": [
89
+ {
90
+ "id": "eb816080-8140-4db8-8a65-f96df8876ec8",
91
+ "tags": [],
92
+ "lane": "Events",
93
+ "modelContext": "Understanding Eventsourcing",
94
+ "slice": "Publish Cart",
95
+ "title": "External Cart Published",
96
+ "fields": [
97
+ {
98
+ "name": "aggregateId",
99
+ "type": "UUID",
100
+ "example": "",
101
+ "mapping": "",
102
+ "optional": false,
103
+ "subfields": [],
104
+ "cardinality": "Single",
105
+ "idAttribute": false
106
+ },
107
+ {
108
+ "name": "orderedProducts",
109
+ "type": "Custom",
110
+ "example": "productId, price",
111
+ "mapping": "",
112
+ "optional": false,
113
+ "cardinality": "List",
114
+ "idAttribute": false
115
+ },
116
+ {
117
+ "name": "totalPrice",
118
+ "type": "Double",
119
+ "example": "",
120
+ "mapping": "orderedProducts",
121
+ "optional": false,
122
+ "subfields": [],
123
+ "cardinality": "Single",
124
+ "idAttribute": false
125
+ }
126
+ ],
127
+ "type": "EVENT",
128
+ "description": "",
129
+ "aggregate": "default",
130
+ "aggregateDependencies": [],
131
+ "dependencies": [
132
+ {
133
+ "id": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
134
+ "type": "INBOUND",
135
+ "title": "Publish Cart",
136
+ "elementType": "COMMAND"
137
+ }
138
+ ],
139
+ "apiEndpoint": "",
140
+ "createsAggregate": false,
141
+ "triggers": [],
142
+ "elementCopy": false,
143
+ "linkedId": "eb816080-8140-4db8-8a65-f96df8876ec8",
144
+ "sketched": false,
145
+ "prototype": {
146
+ "activeByDefault": false
147
+ },
148
+ "comments": []
149
+ }
150
+ ],
151
+ "readmodels": [],
152
+ "screens": [],
153
+ "screenImages": [],
154
+ "screenLayouts": [],
155
+ "processors": [
156
+ {
157
+ "id": "e3073105-b883-444b-b7d2-170de493e093",
158
+ "tags": [],
159
+ "lane": "Actor",
160
+ "modelContext": "Understanding Eventsourcing",
161
+ "slice": "Publish Cart",
162
+ "title": "automation",
163
+ "fields": [
164
+ {
165
+ "name": "aggregateId",
166
+ "type": "UUID",
167
+ "example": "",
168
+ "mapping": "",
169
+ "optional": false,
170
+ "cardinality": "Single",
171
+ "idAttribute": false
172
+ },
173
+ {
174
+ "name": "orderedProducts",
175
+ "type": "Custom",
176
+ "example": "productId, price",
177
+ "mapping": "",
178
+ "optional": false,
179
+ "cardinality": "List",
180
+ "idAttribute": false
181
+ },
182
+ {
183
+ "name": "totalPrice",
184
+ "type": "Double",
185
+ "example": "",
186
+ "mapping": "orderedProducts",
187
+ "optional": false,
188
+ "cardinality": "Single",
189
+ "idAttribute": false
190
+ }
191
+ ],
192
+ "type": "AUTOMATION",
193
+ "description": "",
194
+ "aggregate": "default",
195
+ "aggregateDependencies": [],
196
+ "dependencies": [
197
+ {
198
+ "id": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
199
+ "type": "OUTBOUND",
200
+ "title": "Publish Cart",
201
+ "elementType": "COMMAND"
202
+ },
203
+ {
204
+ "id": "e3dc2c7e-7327-480a-bdb4-4b2055327540",
205
+ "type": "INBOUND",
206
+ "title": "Submitted Cart Data",
207
+ "elementType": "READMODEL"
208
+ }
209
+ ],
210
+ "apiEndpoint": "",
211
+ "createsAggregate": false,
212
+ "triggers": [],
213
+ "elementCopy": false,
214
+ "linkedId": "e3073105-b883-444b-b7d2-170de493e093",
215
+ "sketched": false,
216
+ "prototype": {
217
+ "activeByDefault": false
218
+ },
219
+ "comments": []
220
+ }
221
+ ],
222
+ "tables": [],
223
+ "specifications": [],
224
+ "storylines": [],
225
+ "chapter": "Understanding Eventsourcing",
226
+ "codeGen": {},
227
+ "notes": [],
228
+ "comments": [],
229
+ "aggregates": []
230
+ }