@eventmodelers/cli 1.0.72 → 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 (26) hide show
  1. package/README.md +19 -5
  2. package/RELEASE_NOTES.md +5 -0
  3. package/cli.js +119 -21
  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/stacks/modeling-kit/templates/kit/CLAUDE-STANDALONE.md +8 -6
  26. package/stacks/modeling-kit/templates/kit/CLAUDE.md +12 -7
@@ -0,0 +1,91 @@
1
+ {
2
+ "id": "4dbc8407-87a0-4e5b-a9ee-61d0f83d437e",
3
+ "status": "Planned",
4
+ "title": "Changed Prices",
5
+ "context": "Understanding Eventsourcing",
6
+ "sliceType": "STATE_VIEW",
7
+ "commands": [],
8
+ "events": [],
9
+ "readmodels": [
10
+ {
11
+ "id": "262b687e-a34a-4395-97a9-040945290cb5",
12
+ "tags": [],
13
+ "lane": "Interaction",
14
+ "modelContext": "Understanding Eventsourcing",
15
+ "slice": "Changed Prices",
16
+ "title": "Changed Prices",
17
+ "fields": [
18
+ {
19
+ "name": "newPrice",
20
+ "type": "Double",
21
+ "example": "",
22
+ "mapping": "",
23
+ "optional": false,
24
+ "subfields": [],
25
+ "cardinality": "Single",
26
+ "idAttribute": false
27
+ },
28
+ {
29
+ "name": "oldPrice",
30
+ "type": "Double",
31
+ "example": "",
32
+ "mapping": "",
33
+ "optional": false,
34
+ "subfields": [],
35
+ "cardinality": "Single",
36
+ "idAttribute": false
37
+ },
38
+ {
39
+ "name": "productId",
40
+ "type": "String",
41
+ "example": "",
42
+ "mapping": "",
43
+ "optional": false,
44
+ "subfields": [],
45
+ "cardinality": "Single",
46
+ "idAttribute": true
47
+ }
48
+ ],
49
+ "type": "READMODEL",
50
+ "description": "",
51
+ "aggregate": "default",
52
+ "aggregateDependencies": [],
53
+ "dependencies": [
54
+ {
55
+ "id": "1ccbf498-e4eb-4eb7-90c9-7c113780a136",
56
+ "type": "OUTBOUND",
57
+ "title": "automation",
58
+ "elementType": "AUTOMATION"
59
+ },
60
+ {
61
+ "id": "5a70c236-a04e-49b2-8dec-ffaffa20cecb",
62
+ "type": "INBOUND",
63
+ "title": "Price Changed",
64
+ "elementType": "EVENT"
65
+ }
66
+ ],
67
+ "apiEndpoint": "",
68
+ "createsAggregate": false,
69
+ "triggers": [],
70
+ "elementCopy": false,
71
+ "linkedId": "262b687e-a34a-4395-97a9-040945290cb5",
72
+ "sketched": false,
73
+ "prototype": {
74
+ "activeByDefault": false
75
+ },
76
+ "comments": []
77
+ }
78
+ ],
79
+ "screens": [],
80
+ "screenImages": [],
81
+ "screenLayouts": [],
82
+ "processors": [],
83
+ "tables": [],
84
+ "specifications": [],
85
+ "storylines": [],
86
+ "chapter": "Understanding Eventsourcing",
87
+ "codeGen": {},
88
+ "notes": [],
89
+ "comments": [],
90
+ "aggregates": []
91
+ }
@@ -0,0 +1,191 @@
1
+ {
2
+ "id": "472e6e49-ab4d-408c-9653-df364587036d",
3
+ "status": "Planned",
4
+ "title": "Change Inventory",
5
+ "context": "Understanding Eventsourcing",
6
+ "sliceType": "AUTOMATION",
7
+ "commands": [
8
+ {
9
+ "id": "9a4189b3-02f8-4c77-8f81-01d7317d5649",
10
+ "tags": [],
11
+ "lane": "Interaction",
12
+ "modelContext": "Understanding Eventsourcing",
13
+ "slice": "Change Inventory",
14
+ "title": "Change Inventory",
15
+ "fields": [
16
+ {
17
+ "name": "inventory",
18
+ "type": "Int",
19
+ "example": "",
20
+ "mapping": "",
21
+ "optional": false,
22
+ "subfields": [],
23
+ "cardinality": "Single",
24
+ "idAttribute": false
25
+ },
26
+ {
27
+ "name": "productId",
28
+ "type": "UUID",
29
+ "example": "",
30
+ "mapping": "",
31
+ "optional": false,
32
+ "subfields": [],
33
+ "cardinality": "Single",
34
+ "idAttribute": false
35
+ }
36
+ ],
37
+ "type": "COMMAND",
38
+ "description": "",
39
+ "aggregate": "default",
40
+ "aggregateDependencies": [],
41
+ "dependencies": [
42
+ {
43
+ "id": "ee37a976-e3af-48d5-8c4c-c168294bda9a",
44
+ "type": "OUTBOUND",
45
+ "title": "Inventory Changed",
46
+ "elementType": "EVENT"
47
+ },
48
+ {
49
+ "id": "fb1aeac2-88f3-4d0d-8011-7588c1d743ae",
50
+ "type": "INBOUND",
51
+ "title": "automation",
52
+ "elementType": "AUTOMATION"
53
+ }
54
+ ],
55
+ "apiEndpoint": "",
56
+ "createsAggregate": false,
57
+ "triggers": [],
58
+ "elementCopy": false,
59
+ "linkedId": "9a4189b3-02f8-4c77-8f81-01d7317d5649",
60
+ "sketched": false,
61
+ "prototype": {
62
+ "activeByDefault": false
63
+ },
64
+ "comments": []
65
+ }
66
+ ],
67
+ "events": [
68
+ {
69
+ "id": "ee37a976-e3af-48d5-8c4c-c168294bda9a",
70
+ "tags": [],
71
+ "lane": "Events",
72
+ "modelContext": "Understanding Eventsourcing",
73
+ "slice": "Change Inventory",
74
+ "title": "Inventory Changed",
75
+ "fields": [
76
+ {
77
+ "name": "inventory",
78
+ "type": "Int",
79
+ "example": "",
80
+ "mapping": "",
81
+ "optional": false,
82
+ "subfields": [],
83
+ "cardinality": "Single",
84
+ "idAttribute": false
85
+ },
86
+ {
87
+ "name": "productId",
88
+ "type": "UUID",
89
+ "example": "",
90
+ "mapping": "",
91
+ "optional": false,
92
+ "subfields": [],
93
+ "cardinality": "Single",
94
+ "idAttribute": true
95
+ }
96
+ ],
97
+ "type": "EVENT",
98
+ "description": "",
99
+ "aggregate": "default",
100
+ "aggregateDependencies": [],
101
+ "dependencies": [
102
+ {
103
+ "id": "eb95e57c-3b32-45a5-bb85-89078fe07476",
104
+ "type": "OUTBOUND",
105
+ "title": "Inventories",
106
+ "elementType": "READMODEL"
107
+ },
108
+ {
109
+ "id": "9a4189b3-02f8-4c77-8f81-01d7317d5649",
110
+ "type": "INBOUND",
111
+ "title": "Change Inventory",
112
+ "elementType": "COMMAND"
113
+ }
114
+ ],
115
+ "apiEndpoint": "",
116
+ "createsAggregate": false,
117
+ "triggers": [],
118
+ "elementCopy": false,
119
+ "linkedId": "ee37a976-e3af-48d5-8c4c-c168294bda9a",
120
+ "sketched": false,
121
+ "prototype": {
122
+ "activeByDefault": false
123
+ },
124
+ "comments": []
125
+ }
126
+ ],
127
+ "readmodels": [],
128
+ "screens": [],
129
+ "screenImages": [],
130
+ "screenLayouts": [],
131
+ "processors": [
132
+ {
133
+ "id": "fb1aeac2-88f3-4d0d-8011-7588c1d743ae",
134
+ "tags": [],
135
+ "lane": "Actor",
136
+ "modelContext": "Understanding Eventsourcing",
137
+ "slice": "Change Inventory",
138
+ "title": "automation",
139
+ "fields": [
140
+ {
141
+ "name": "inventory",
142
+ "type": "Int",
143
+ "example": "",
144
+ "mapping": "",
145
+ "optional": false,
146
+ "cardinality": "Single",
147
+ "idAttribute": false
148
+ },
149
+ {
150
+ "name": "productId",
151
+ "type": "String",
152
+ "example": "",
153
+ "mapping": "",
154
+ "optional": false,
155
+ "cardinality": "Single",
156
+ "idAttribute": false
157
+ }
158
+ ],
159
+ "type": "AUTOMATION",
160
+ "description": "",
161
+ "aggregate": "default",
162
+ "aggregateDependencies": [],
163
+ "dependencies": [
164
+ {
165
+ "id": "9a4189b3-02f8-4c77-8f81-01d7317d5649",
166
+ "type": "OUTBOUND",
167
+ "title": "Change Inventory",
168
+ "elementType": "COMMAND"
169
+ }
170
+ ],
171
+ "apiEndpoint": "",
172
+ "createsAggregate": false,
173
+ "triggers": [],
174
+ "elementCopy": false,
175
+ "linkedId": "fb1aeac2-88f3-4d0d-8011-7588c1d743ae",
176
+ "sketched": false,
177
+ "prototype": {
178
+ "activeByDefault": false
179
+ },
180
+ "comments": []
181
+ }
182
+ ],
183
+ "tables": [],
184
+ "specifications": [],
185
+ "storylines": [],
186
+ "chapter": "Understanding Eventsourcing",
187
+ "codeGen": {},
188
+ "notes": [],
189
+ "comments": [],
190
+ "aggregates": []
191
+ }
@@ -0,0 +1,220 @@
1
+ {
2
+ "id": "bffefd48-cb91-482a-b2cc-e17b16fff358",
3
+ "status": "Planned",
4
+ "title": "Change Price",
5
+ "context": "Understanding Eventsourcing",
6
+ "sliceType": "AUTOMATION",
7
+ "commands": [
8
+ {
9
+ "id": "b3c543d7-e049-4d3e-a953-45b23d156273",
10
+ "tags": [],
11
+ "lane": "Interaction",
12
+ "modelContext": "Understanding Eventsourcing",
13
+ "slice": "Change Price",
14
+ "title": "Change Price",
15
+ "fields": [
16
+ {
17
+ "name": "newPrice",
18
+ "type": "Double",
19
+ "example": "",
20
+ "mapping": "",
21
+ "optional": false,
22
+ "subfields": [],
23
+ "cardinality": "Single",
24
+ "idAttribute": false
25
+ },
26
+ {
27
+ "name": "oldPrice",
28
+ "type": "Double",
29
+ "example": "",
30
+ "mapping": "",
31
+ "optional": false,
32
+ "subfields": [],
33
+ "cardinality": "Single",
34
+ "idAttribute": false
35
+ },
36
+ {
37
+ "name": "productId",
38
+ "type": "String",
39
+ "example": "",
40
+ "mapping": "",
41
+ "optional": false,
42
+ "subfields": [],
43
+ "cardinality": "Single",
44
+ "idAttribute": false
45
+ }
46
+ ],
47
+ "type": "COMMAND",
48
+ "description": "",
49
+ "aggregate": "default",
50
+ "aggregateDependencies": [],
51
+ "dependencies": [
52
+ {
53
+ "id": "5a70c236-a04e-49b2-8dec-ffaffa20cecb",
54
+ "type": "OUTBOUND",
55
+ "title": "Price Changed",
56
+ "elementType": "EVENT"
57
+ },
58
+ {
59
+ "id": "297ddf35-aa5b-4a5a-b520-e458ea04ed7e",
60
+ "type": "INBOUND",
61
+ "title": "automation",
62
+ "elementType": "AUTOMATION"
63
+ }
64
+ ],
65
+ "apiEndpoint": "",
66
+ "createsAggregate": false,
67
+ "triggers": [],
68
+ "elementCopy": false,
69
+ "linkedId": "b3c543d7-e049-4d3e-a953-45b23d156273",
70
+ "sketched": false,
71
+ "prototype": {
72
+ "activeByDefault": false
73
+ },
74
+ "comments": []
75
+ }
76
+ ],
77
+ "events": [
78
+ {
79
+ "id": "5a70c236-a04e-49b2-8dec-ffaffa20cecb",
80
+ "tags": [],
81
+ "lane": "Events",
82
+ "modelContext": "Understanding Eventsourcing",
83
+ "slice": "Change Price",
84
+ "title": "Price Changed",
85
+ "fields": [
86
+ {
87
+ "name": "newPrice",
88
+ "type": "Double",
89
+ "example": "",
90
+ "mapping": "",
91
+ "optional": false,
92
+ "subfields": [],
93
+ "cardinality": "Single",
94
+ "idAttribute": false
95
+ },
96
+ {
97
+ "name": "oldPrice",
98
+ "type": "Double",
99
+ "example": "",
100
+ "mapping": "",
101
+ "optional": false,
102
+ "subfields": [],
103
+ "cardinality": "Single",
104
+ "idAttribute": false
105
+ },
106
+ {
107
+ "name": "productId",
108
+ "type": "UUID",
109
+ "example": "",
110
+ "mapping": "",
111
+ "optional": false,
112
+ "subfields": [],
113
+ "cardinality": "Single",
114
+ "idAttribute": false
115
+ }
116
+ ],
117
+ "type": "EVENT",
118
+ "description": "",
119
+ "aggregate": "default",
120
+ "aggregateDependencies": [],
121
+ "dependencies": [
122
+ {
123
+ "id": "262b687e-a34a-4395-97a9-040945290cb5",
124
+ "type": "OUTBOUND",
125
+ "title": "Changed Prices",
126
+ "elementType": "READMODEL"
127
+ },
128
+ {
129
+ "id": "b3c543d7-e049-4d3e-a953-45b23d156273",
130
+ "type": "INBOUND",
131
+ "title": "Change Price",
132
+ "elementType": "COMMAND"
133
+ }
134
+ ],
135
+ "apiEndpoint": "",
136
+ "createsAggregate": false,
137
+ "triggers": [],
138
+ "elementCopy": false,
139
+ "linkedId": "5a70c236-a04e-49b2-8dec-ffaffa20cecb",
140
+ "sketched": false,
141
+ "prototype": {
142
+ "activeByDefault": false
143
+ },
144
+ "comments": []
145
+ }
146
+ ],
147
+ "readmodels": [],
148
+ "screens": [],
149
+ "screenImages": [],
150
+ "screenLayouts": [],
151
+ "processors": [
152
+ {
153
+ "id": "297ddf35-aa5b-4a5a-b520-e458ea04ed7e",
154
+ "tags": [],
155
+ "lane": "Actor",
156
+ "modelContext": "Understanding Eventsourcing",
157
+ "slice": "Change Price",
158
+ "title": "automation",
159
+ "fields": [
160
+ {
161
+ "name": "newPrice",
162
+ "type": "Double",
163
+ "example": "",
164
+ "mapping": "",
165
+ "optional": false,
166
+ "cardinality": "Single",
167
+ "idAttribute": false
168
+ },
169
+ {
170
+ "name": "oldPrice",
171
+ "type": "Double",
172
+ "example": "",
173
+ "mapping": "",
174
+ "optional": false,
175
+ "cardinality": "Single",
176
+ "idAttribute": false
177
+ },
178
+ {
179
+ "name": "productId",
180
+ "type": "String",
181
+ "example": "",
182
+ "mapping": "",
183
+ "optional": false,
184
+ "cardinality": "Single",
185
+ "idAttribute": false
186
+ }
187
+ ],
188
+ "type": "AUTOMATION",
189
+ "description": "",
190
+ "aggregate": "default",
191
+ "aggregateDependencies": [],
192
+ "dependencies": [
193
+ {
194
+ "id": "b3c543d7-e049-4d3e-a953-45b23d156273",
195
+ "type": "OUTBOUND",
196
+ "title": "Change Price",
197
+ "elementType": "COMMAND"
198
+ }
199
+ ],
200
+ "apiEndpoint": "",
201
+ "createsAggregate": false,
202
+ "triggers": [],
203
+ "elementCopy": false,
204
+ "linkedId": "297ddf35-aa5b-4a5a-b520-e458ea04ed7e",
205
+ "sketched": false,
206
+ "prototype": {
207
+ "activeByDefault": false
208
+ },
209
+ "comments": []
210
+ }
211
+ ],
212
+ "tables": [],
213
+ "specifications": [],
214
+ "storylines": [],
215
+ "chapter": "Understanding Eventsourcing",
216
+ "codeGen": {},
217
+ "notes": [],
218
+ "comments": [],
219
+ "aggregates": []
220
+ }