@nebulit/embuilder 0.1.39 → 0.1.41

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 (31) hide show
  1. package/package.json +1 -1
  2. package/templates/.claude/skills/sample-slices/SKILL.md +3 -1
  3. package/templates/.claude/skills/sample-slices/templates/.slices/index.json +1 -1
  4. package/templates/.claude/skills/ui-analyze-slices/SKILL.md +102 -0
  5. package/templates/.claude/skills/ui-build-slice-ui/SKILL.md +228 -0
  6. package/templates/.claude/skills/ui-generate-api/SKILL.md +141 -0
  7. package/templates/.claude/skills/ui-generate-hook/SKILL.md +118 -0
  8. package/templates/.claude/skills/ui-generate-types/SKILL.md +223 -0
  9. package/templates/.claude/skills/ui-read-ui-prompts/SKILL.md +192 -0
  10. package/templates/.claude/skills/ui-scaffold-component/SKILL.md +274 -0
  11. package/templates/.slices/Context/event/slice.json +117 -0
  12. package/templates/.slices/index.json +12 -0
  13. package/templates/backend/prompt.md +140 -0
  14. package/templates/config.json +133 -0
  15. package/templates/frontend/prompt.md +484 -0
  16. package/templates/prompt.md +4 -132
  17. package/templates/server.mjs +24 -2
  18. package/templates/.claude/skills/sample-slices/templates/Cart/additem/slice.json +0 -979
  19. package/templates/.claude/skills/sample-slices/templates/Cart/archiveitem/slice.json +0 -529
  20. package/templates/.claude/skills/sample-slices/templates/Cart/cartitems/slice.json +0 -1072
  21. package/templates/.claude/skills/sample-slices/templates/Cart/cartwithproducts/slice.json +0 -394
  22. package/templates/.claude/skills/sample-slices/templates/Cart/changedprices/slice.json +0 -88
  23. package/templates/.claude/skills/sample-slices/templates/Cart/changeinventory/slice.json +0 -264
  24. package/templates/.claude/skills/sample-slices/templates/Cart/changeprice/slice.json +0 -308
  25. package/templates/.claude/skills/sample-slices/templates/Cart/clearcart/slice.json +0 -358
  26. package/templates/.claude/skills/sample-slices/templates/Cart/inventories/slice.json +0 -203
  27. package/templates/.claude/skills/sample-slices/templates/Cart/publishcart/slice.json +0 -876
  28. package/templates/.claude/skills/sample-slices/templates/Cart/removeitem/slice.json +0 -560
  29. package/templates/.claude/skills/sample-slices/templates/Cart/submitcart/slice.json +0 -708
  30. package/templates/.claude/skills/sample-slices/templates/Cart/submittedcartdata/slice.json +0 -399
  31. package/templates/.claude/skills/sample-slices/templates/index.json +0 -108
@@ -1,394 +0,0 @@
1
- {
2
- "id": "3458764597396562122",
3
- "status": "Done",
4
- "title": "slice: cart with products",
5
- "context": "Cart",
6
- "sliceType": "STATE_VIEW",
7
- "commands": [],
8
- "events": [],
9
- "readmodels": [
10
- {
11
- "id": "3458764596403196690",
12
- "tags": [],
13
- "domain": "Cart",
14
- "elementContext": "INTERNAL",
15
- "modelContext": "Cart",
16
- "context": "INTERNAL",
17
- "slice": "slice: cart with products",
18
- "title": "Carts with Products",
19
- "fields": [
20
- {
21
- "name": "aggregateId",
22
- "type": "UUID",
23
- "schema": "",
24
- "example": "",
25
- "mapping": "",
26
- "optional": false,
27
- "cardinality": "Single",
28
- "idAttribute": true
29
- },
30
- {
31
- "name": "productId",
32
- "type": "UUID",
33
- "example": "",
34
- "mapping": "",
35
- "optional": false,
36
- "cardinality": "Single",
37
- "idAttribute": false
38
- }
39
- ],
40
- "type": "READMODEL",
41
- "description": "",
42
- "aggregate": "Cart",
43
- "aggregateDependencies": [
44
- "Cart"
45
- ],
46
- "dependencies": [
47
- {
48
- "id": "3458764596406327949",
49
- "type": "OUTBOUND",
50
- "title": "automation",
51
- "elementType": "AUTOMATION"
52
- },
53
- {
54
- "id": "3458764595631345609",
55
- "type": "INBOUND",
56
- "title": "Item Removed",
57
- "elementType": "EVENT"
58
- },
59
- {
60
- "id": "3458764595641022551",
61
- "type": "INBOUND",
62
- "title": "Item Archived",
63
- "elementType": "EVENT"
64
- },
65
- {
66
- "id": "3458764596402400430",
67
- "type": "INBOUND",
68
- "title": "Cart Created",
69
- "elementType": "EVENT"
70
- },
71
- {
72
- "id": "3458764595641022548",
73
- "type": "INBOUND",
74
- "title": "Cart Cleared",
75
- "elementType": "EVENT"
76
- },
77
- {
78
- "id": "3458764595631345476",
79
- "type": "INBOUND",
80
- "title": "Item Added",
81
- "elementType": "EVENT"
82
- }
83
- ],
84
- "listElement": true,
85
- "apiEndpoint": "",
86
- "service": null,
87
- "createsAggregate": false,
88
- "triggers": [],
89
- "sketched": false,
90
- "prototype": {
91
- "activeByDefault": false
92
- }
93
- }
94
- ],
95
- "screens": [],
96
- "screenImages": [],
97
- "screenLayouts": [],
98
- "processors": [],
99
- "tables": [],
100
- "specifications": [
101
- {
102
- "vertical": false,
103
- "id": "3458764597409429208",
104
- "sliceName": "slice: cart with products",
105
- "title": "spec: cart with products and item archived",
106
- "given": [
107
- {
108
- "title": "Item Archived",
109
- "tags": [],
110
- "id": "3458764597409429211",
111
- "index": 2,
112
- "type": "SPEC_EVENT",
113
- "fields": [
114
- {
115
- "name": "aggregateId",
116
- "type": "UUID",
117
- "example": "",
118
- "mapping": "",
119
- "optional": false,
120
- "cardinality": "Single",
121
- "subfields": []
122
- },
123
- {
124
- "name": "itemId",
125
- "type": "UUID",
126
- "example": "",
127
- "mapping": "productId",
128
- "optional": false,
129
- "cardinality": "Single",
130
- "subfields": []
131
- }
132
- ],
133
- "linkedId": "3458764595641022551"
134
- },
135
- {
136
- "title": "Item Added",
137
- "tags": [],
138
- "id": "3458764597409429210",
139
- "index": 1,
140
- "type": "SPEC_EVENT",
141
- "fields": [
142
- {
143
- "name": "aggregateId",
144
- "type": "UUID",
145
- "example": "",
146
- "mapping": "",
147
- "optional": false,
148
- "cardinality": "Single",
149
- "subfields": []
150
- },
151
- {
152
- "name": "description",
153
- "type": "String",
154
- "example": "",
155
- "mapping": "",
156
- "optional": false,
157
- "cardinality": "Single",
158
- "subfields": []
159
- },
160
- {
161
- "name": "image",
162
- "type": "String",
163
- "example": "",
164
- "mapping": "",
165
- "optional": false,
166
- "cardinality": "Single",
167
- "subfields": []
168
- },
169
- {
170
- "name": "price",
171
- "type": "Double",
172
- "example": "",
173
- "mapping": "",
174
- "optional": false,
175
- "cardinality": "Single",
176
- "subfields": []
177
- },
178
- {
179
- "name": "itemId",
180
- "type": "UUID",
181
- "example": "",
182
- "mapping": "",
183
- "optional": false,
184
- "cardinality": "Single",
185
- "subfields": []
186
- },
187
- {
188
- "name": "productId",
189
- "type": "UUID",
190
- "example": "",
191
- "mapping": "",
192
- "optional": false,
193
- "cardinality": "Single",
194
- "subfields": []
195
- }
196
- ],
197
- "linkedId": "3458764595631345476"
198
- },
199
- {
200
- "title": "Cart Created",
201
- "tags": [],
202
- "id": "3458764597409429209",
203
- "index": 0,
204
- "type": "SPEC_EVENT",
205
- "fields": [
206
- {
207
- "name": "aggregateId",
208
- "type": "UUID",
209
- "example": "",
210
- "mapping": "",
211
- "optional": false,
212
- "cardinality": "Single",
213
- "subfields": []
214
- }
215
- ],
216
- "linkedId": "3458764596402400430"
217
- }
218
- ],
219
- "when": [],
220
- "then": [
221
- {
222
- "title": "Carts with Products",
223
- "tags": [],
224
- "id": "3458764597409429212",
225
- "index": 0,
226
- "type": "SPEC_READMODEL",
227
- "fields": [
228
- {
229
- "name": "aggregateId",
230
- "type": "UUID",
231
- "schema": "",
232
- "example": "",
233
- "mapping": "",
234
- "optional": false,
235
- "cardinality": "Single",
236
- "idAttribute": true,
237
- "subfields": []
238
- },
239
- {
240
- "name": "productId",
241
- "type": "UUID",
242
- "example": "",
243
- "mapping": "",
244
- "optional": false,
245
- "cardinality": "Single",
246
- "subfields": []
247
- }
248
- ],
249
- "linkedId": "3458764596403196690"
250
- }
251
- ],
252
- "comments": [
253
- {
254
- "description": "archived items should be removed from the list"
255
- }
256
- ],
257
- "linkedId": "3458764597396562122"
258
- },
259
- {
260
- "vertical": false,
261
- "id": "3458764597390097468",
262
- "sliceName": "slice: cart with products",
263
- "title": "spec: cart with products",
264
- "given": [
265
- {
266
- "title": "Item Added",
267
- "tags": [],
268
- "id": "3458764597390097470",
269
- "index": 1,
270
- "type": "SPEC_EVENT",
271
- "fields": [
272
- {
273
- "name": "aggregateId",
274
- "type": "UUID",
275
- "example": "",
276
- "mapping": "",
277
- "optional": false,
278
- "cardinality": "Single",
279
- "subfields": []
280
- },
281
- {
282
- "name": "description",
283
- "type": "String",
284
- "example": "",
285
- "mapping": "",
286
- "optional": false,
287
- "cardinality": "Single",
288
- "subfields": []
289
- },
290
- {
291
- "name": "image",
292
- "type": "String",
293
- "example": "",
294
- "mapping": "",
295
- "optional": false,
296
- "cardinality": "Single",
297
- "subfields": []
298
- },
299
- {
300
- "name": "price",
301
- "type": "Double",
302
- "example": "",
303
- "mapping": "",
304
- "optional": false,
305
- "cardinality": "Single",
306
- "subfields": []
307
- },
308
- {
309
- "name": "itemId",
310
- "type": "UUID",
311
- "example": "",
312
- "mapping": "",
313
- "optional": false,
314
- "cardinality": "Single",
315
- "subfields": []
316
- },
317
- {
318
- "name": "productId",
319
- "type": "UUID",
320
- "example": "",
321
- "mapping": "",
322
- "optional": false,
323
- "cardinality": "Single",
324
- "subfields": []
325
- }
326
- ],
327
- "linkedId": "3458764595631345476"
328
- },
329
- {
330
- "title": "Cart Created",
331
- "tags": [],
332
- "id": "3458764597390097469",
333
- "index": 0,
334
- "type": "SPEC_EVENT",
335
- "fields": [
336
- {
337
- "name": "aggregateId",
338
- "type": "UUID",
339
- "example": "",
340
- "mapping": "",
341
- "optional": false,
342
- "cardinality": "Single",
343
- "subfields": []
344
- }
345
- ],
346
- "linkedId": "3458764596402400430"
347
- }
348
- ],
349
- "when": [],
350
- "then": [
351
- {
352
- "title": "Carts with Products",
353
- "tags": [],
354
- "id": "3458764597390097471",
355
- "index": 0,
356
- "type": "SPEC_READMODEL",
357
- "fields": [
358
- {
359
- "name": "aggregateId",
360
- "type": "UUID",
361
- "schema": "",
362
- "example": "",
363
- "mapping": "",
364
- "optional": false,
365
- "cardinality": "Single",
366
- "idAttribute": true,
367
- "subfields": []
368
- },
369
- {
370
- "name": "productId",
371
- "type": "UUID",
372
- "example": "",
373
- "mapping": "",
374
- "optional": false,
375
- "cardinality": "Single",
376
- "subfields": []
377
- }
378
- ],
379
- "linkedId": "3458764596403196690"
380
- }
381
- ],
382
- "comments": [
383
- {
384
- "description": "Cart should contain the exact product id of the added item"
385
- }
386
- ],
387
- "linkedId": "3458764597396562122"
388
- }
389
- ],
390
- "actors": [],
391
- "aggregates": [
392
- "Cart"
393
- ]
394
- }
@@ -1,88 +0,0 @@
1
- {
2
- "id": "3458764596700962150",
3
- "status": "Created",
4
- "title": "slice: Changed Prices",
5
- "context": "Cart",
6
- "sliceType": "STATE_VIEW",
7
- "commands": [],
8
- "events": [],
9
- "readmodels": [
10
- {
11
- "id": "3458764596409128019",
12
- "tags": [],
13
- "domain": "Cart",
14
- "elementContext": "INTERNAL",
15
- "modelContext": "Cart",
16
- "context": "INTERNAL",
17
- "slice": "slice: Changed Prices",
18
- "title": "Changed Prices",
19
- "fields": [
20
- {
21
- "name": "newPrice",
22
- "type": "Double",
23
- "example": "",
24
- "mapping": "",
25
- "optional": false,
26
- "cardinality": "Single",
27
- "idAttribute": false
28
- },
29
- {
30
- "name": "oldPrice",
31
- "type": "Double",
32
- "example": "",
33
- "mapping": "",
34
- "optional": false,
35
- "cardinality": "Single",
36
- "idAttribute": false
37
- },
38
- {
39
- "name": "productId",
40
- "type": "String",
41
- "example": "",
42
- "mapping": "",
43
- "optional": false,
44
- "cardinality": "Single",
45
- "idAttribute": true
46
- }
47
- ],
48
- "type": "READMODEL",
49
- "description": "",
50
- "aggregate": "Pricing",
51
- "aggregateDependencies": [
52
- "Pricing"
53
- ],
54
- "dependencies": [
55
- {
56
- "id": "3458764596406327949",
57
- "type": "OUTBOUND",
58
- "title": "automation",
59
- "elementType": "AUTOMATION"
60
- },
61
- {
62
- "id": "3458764595641022550",
63
- "type": "INBOUND",
64
- "title": "Price Changed",
65
- "elementType": "EVENT"
66
- }
67
- ],
68
- "apiEndpoint": "",
69
- "service": null,
70
- "createsAggregate": false,
71
- "triggers": [],
72
- "sketched": false,
73
- "prototype": {
74
- "activeByDefault": false
75
- }
76
- }
77
- ],
78
- "screens": [],
79
- "screenImages": [],
80
- "screenLayouts": [],
81
- "processors": [],
82
- "tables": [],
83
- "specifications": [],
84
- "actors": [],
85
- "aggregates": [
86
- "Pricing"
87
- ]
88
- }