@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,399 +0,0 @@
1
- {
2
- "id": "3458764596112606680",
3
- "status": "Done",
4
- "title": "slice: submitted cart data",
5
- "context": "Cart",
6
- "sliceType": "STATE_VIEW",
7
- "commands": [],
8
- "events": [],
9
- "readmodels": [
10
- {
11
- "id": "3458764596111217572",
12
- "tags": [],
13
- "domain": "Cart",
14
- "elementContext": "INTERNAL",
15
- "modelContext": "Cart",
16
- "context": "INTERNAL",
17
- "slice": "slice: submitted cart data",
18
- "title": "Submitted Cart Data",
19
- "fields": [
20
- {
21
- "name": "aggregateId",
22
- "type": "UUID",
23
- "example": "",
24
- "mapping": "",
25
- "optional": false,
26
- "cardinality": "Single",
27
- "idAttribute": false
28
- },
29
- {
30
- "name": "orderedProducts",
31
- "type": "Custom",
32
- "example": "productId, price",
33
- "mapping": "",
34
- "optional": false,
35
- "cardinality": "List",
36
- "idAttribute": false
37
- },
38
- {
39
- "name": "totalPrice",
40
- "type": "Double",
41
- "example": "",
42
- "mapping": "orderedProducts",
43
- "optional": false,
44
- "cardinality": "Single",
45
- "idAttribute": false
46
- }
47
- ],
48
- "type": "READMODEL",
49
- "description": "",
50
- "aggregate": "Cart",
51
- "aggregateDependencies": [
52
- "Cart"
53
- ],
54
- "dependencies": [
55
- {
56
- "id": "3458764596112734108",
57
- "type": "OUTBOUND",
58
- "title": "automation",
59
- "elementType": "AUTOMATION"
60
- },
61
- {
62
- "id": "3458764595641022547",
63
- "type": "INBOUND",
64
- "title": "Cart Submitted",
65
- "elementType": "EVENT"
66
- }
67
- ],
68
- "apiEndpoint": "",
69
- "createsAggregate": false,
70
- "triggers": [],
71
- "sketched": false,
72
- "prototype": {
73
- "activeByDefault": false
74
- }
75
- }
76
- ],
77
- "screens": [],
78
- "screenImages": [],
79
- "screenLayouts": [],
80
- "processors": [],
81
- "tables": [],
82
- "specifications": [
83
- {
84
- "vertical": false,
85
- "id": "3458764598754654370",
86
- "sliceName": "slice: submitted cart data",
87
- "title": "spec: empty submitted cart data",
88
- "given": [
89
- {
90
- "title": "Item Added",
91
- "tags": [],
92
- "id": "3458764598754654373",
93
- "index": 1,
94
- "type": "SPEC_EVENT",
95
- "fields": [
96
- {
97
- "name": "aggregateId",
98
- "type": "UUID",
99
- "example": "",
100
- "mapping": "",
101
- "optional": false,
102
- "cardinality": "Single",
103
- "subfields": []
104
- },
105
- {
106
- "name": "description",
107
- "type": "String",
108
- "example": "",
109
- "mapping": "",
110
- "optional": false,
111
- "cardinality": "Single",
112
- "subfields": []
113
- },
114
- {
115
- "name": "image",
116
- "type": "String",
117
- "example": "",
118
- "mapping": "",
119
- "optional": false,
120
- "cardinality": "Single",
121
- "subfields": []
122
- },
123
- {
124
- "name": "price",
125
- "type": "Double",
126
- "example": "",
127
- "mapping": "",
128
- "optional": false,
129
- "cardinality": "Single",
130
- "subfields": []
131
- },
132
- {
133
- "name": "itemId",
134
- "type": "UUID",
135
- "example": "",
136
- "mapping": "",
137
- "optional": false,
138
- "cardinality": "Single",
139
- "subfields": []
140
- },
141
- {
142
- "name": "productId",
143
- "type": "UUID",
144
- "example": "",
145
- "mapping": "",
146
- "optional": false,
147
- "cardinality": "Single",
148
- "subfields": []
149
- }
150
- ],
151
- "linkedId": "3458764595631345476"
152
- },
153
- {
154
- "title": "Cart Created",
155
- "tags": [],
156
- "id": "3458764598754654371",
157
- "index": 0,
158
- "type": "SPEC_EVENT",
159
- "fields": [
160
- {
161
- "name": "aggregateId",
162
- "type": "UUID",
163
- "example": "",
164
- "mapping": "",
165
- "optional": false,
166
- "cardinality": "Single",
167
- "subfields": []
168
- }
169
- ],
170
- "linkedId": "3458764596402400430"
171
- }
172
- ],
173
- "when": [],
174
- "then": [
175
- {
176
- "title": "Submitted Cart Data",
177
- "tags": [],
178
- "id": "3458764598754654374",
179
- "index": 0,
180
- "type": "SPEC_READMODEL",
181
- "fields": [
182
- {
183
- "name": "aggregateId",
184
- "type": "UUID",
185
- "example": "",
186
- "mapping": "",
187
- "optional": false,
188
- "cardinality": "Single",
189
- "subfields": []
190
- },
191
- {
192
- "name": "orderedProducts",
193
- "type": "Custom",
194
- "example": "productId, price",
195
- "mapping": "",
196
- "optional": false,
197
- "cardinality": "List",
198
- "subfields": []
199
- },
200
- {
201
- "name": "totalPrice",
202
- "type": "Double",
203
- "example": "",
204
- "mapping": "orderedProducts",
205
- "optional": false,
206
- "cardinality": "Single",
207
- "subfields": []
208
- }
209
- ],
210
- "linkedId": "3458764596111217572"
211
- }
212
- ],
213
- "comments": [
214
- {
215
- "description": "contains no data if cart was not submitted"
216
- }
217
- ],
218
- "linkedId": "3458764596112606680"
219
- },
220
- {
221
- "vertical": false,
222
- "id": "3458764598754621998",
223
- "sliceName": "slice: submitted cart data",
224
- "title": "spec: submitted cart data",
225
- "given": [
226
- {
227
- "title": "Cart Submitted",
228
- "tags": [],
229
- "id": "3458764598754622002",
230
- "index": 2,
231
- "type": "SPEC_EVENT",
232
- "fields": [
233
- {
234
- "name": "aggregateId",
235
- "type": "UUID",
236
- "example": "",
237
- "mapping": "",
238
- "optional": false,
239
- "cardinality": "Single",
240
- "subfields": []
241
- },
242
- {
243
- "name": "orderedProducts",
244
- "type": "Custom",
245
- "example": "productId, price",
246
- "mapping": "",
247
- "optional": false,
248
- "cardinality": "List",
249
- "subfields": []
250
- },
251
- {
252
- "name": "totalPrice",
253
- "type": "Double",
254
- "example": "",
255
- "mapping": "orderedProducts",
256
- "optional": false,
257
- "cardinality": "Single",
258
- "subfields": []
259
- }
260
- ],
261
- "linkedId": "3458764595641022547"
262
- },
263
- {
264
- "title": "Item Added",
265
- "tags": [],
266
- "id": "3458764598754622001",
267
- "index": 1,
268
- "type": "SPEC_EVENT",
269
- "fields": [
270
- {
271
- "name": "aggregateId",
272
- "type": "UUID",
273
- "example": "",
274
- "mapping": "",
275
- "optional": false,
276
- "cardinality": "Single",
277
- "subfields": []
278
- },
279
- {
280
- "name": "description",
281
- "type": "String",
282
- "example": "",
283
- "mapping": "",
284
- "optional": false,
285
- "cardinality": "Single",
286
- "subfields": []
287
- },
288
- {
289
- "name": "image",
290
- "type": "String",
291
- "example": "",
292
- "mapping": "",
293
- "optional": false,
294
- "cardinality": "Single",
295
- "subfields": []
296
- },
297
- {
298
- "name": "price",
299
- "type": "Double",
300
- "example": "",
301
- "mapping": "",
302
- "optional": false,
303
- "cardinality": "Single",
304
- "subfields": []
305
- },
306
- {
307
- "name": "itemId",
308
- "type": "UUID",
309
- "example": "",
310
- "mapping": "",
311
- "optional": false,
312
- "cardinality": "Single",
313
- "subfields": []
314
- },
315
- {
316
- "name": "productId",
317
- "type": "UUID",
318
- "example": "",
319
- "mapping": "",
320
- "optional": false,
321
- "cardinality": "Single",
322
- "subfields": []
323
- }
324
- ],
325
- "linkedId": "3458764595631345476"
326
- },
327
- {
328
- "title": "Cart Created",
329
- "tags": [],
330
- "id": "3458764598754621999",
331
- "index": 0,
332
- "type": "SPEC_EVENT",
333
- "fields": [
334
- {
335
- "name": "aggregateId",
336
- "type": "UUID",
337
- "example": "",
338
- "mapping": "",
339
- "optional": false,
340
- "cardinality": "Single",
341
- "subfields": []
342
- }
343
- ],
344
- "linkedId": "3458764596402400430"
345
- }
346
- ],
347
- "when": [],
348
- "then": [
349
- {
350
- "title": "Submitted Cart Data",
351
- "tags": [],
352
- "id": "3458764598754622003",
353
- "index": 0,
354
- "type": "SPEC_READMODEL",
355
- "fields": [
356
- {
357
- "name": "aggregateId",
358
- "type": "UUID",
359
- "example": "",
360
- "mapping": "",
361
- "optional": false,
362
- "cardinality": "Single",
363
- "subfields": []
364
- },
365
- {
366
- "name": "orderedProducts",
367
- "type": "Custom",
368
- "example": "productId, price",
369
- "mapping": "",
370
- "optional": false,
371
- "cardinality": "List",
372
- "subfields": []
373
- },
374
- {
375
- "name": "totalPrice",
376
- "type": "Double",
377
- "example": "",
378
- "mapping": "orderedProducts",
379
- "optional": false,
380
- "cardinality": "Single",
381
- "subfields": []
382
- }
383
- ],
384
- "linkedId": "3458764596111217572"
385
- }
386
- ],
387
- "comments": [
388
- {
389
- "description": "contains submitted cart data"
390
- }
391
- ],
392
- "linkedId": "3458764596112606680"
393
- }
394
- ],
395
- "actors": [],
396
- "aggregates": [
397
- "Cart"
398
- ]
399
- }
@@ -1,108 +0,0 @@
1
- {
2
- "slices": [
3
- {
4
- "id": "3458764595831815141",
5
- "slice": "slice: add item",
6
- "index": 1,
7
- "context": "Cart",
8
- "folder": "additem",
9
- "status": "Done"
10
- },
11
- {
12
- "id": "3458764595831815463",
13
- "slice": "slice: remove item",
14
- "index": 2,
15
- "context": "Cart",
16
- "folder": "removeitem",
17
- "status": "Done"
18
- },
19
- {
20
- "id": "3458764595831815528",
21
- "slice": "slice: cart items",
22
- "index": 3,
23
- "context": "Cart",
24
- "folder": "cartitems",
25
- "status": "Done"
26
- },
27
- {
28
- "id": "3458764595935790438",
29
- "slice": "slice: clear cart",
30
- "index": 4,
31
- "context": "Cart",
32
- "folder": "clearcart",
33
- "status": "Done"
34
- },
35
- {
36
- "id": "3458764596700878567",
37
- "slice": "slice: change inventory",
38
- "index": 5,
39
- "context": "Cart",
40
- "folder": "changeinventory",
41
- "status": "Done"
42
- },
43
- {
44
- "id": "3458764596700878694",
45
- "slice": "slice: Inventories",
46
- "index": 6,
47
- "context": "Cart",
48
- "folder": "inventories",
49
- "status": "Done"
50
- },
51
- {
52
- "id": "3458764596700962283",
53
- "slice": "slice: change price",
54
- "index": 7,
55
- "context": "Cart",
56
- "folder": "changeprice",
57
- "status": "Done"
58
- },
59
- {
60
- "id": "3458764597396562122",
61
- "slice": "slice: cart with products",
62
- "index": 8,
63
- "context": "Cart",
64
- "folder": "cartwithproducts",
65
- "status": "Done"
66
- },
67
- {
68
- "id": "3458764596700962150",
69
- "slice": "slice: Changed Prices",
70
- "index": 9,
71
- "context": "Cart",
72
- "folder": "changedprices",
73
- "status": "Created"
74
- },
75
- {
76
- "id": "3458764596700962479",
77
- "slice": "slice: Archive Item",
78
- "index": 10,
79
- "context": "Cart",
80
- "folder": "archiveitem",
81
- "status": "Done"
82
- },
83
- {
84
- "id": "3458764596110806982",
85
- "slice": "slice: submit cart",
86
- "index": 11,
87
- "context": "Cart",
88
- "folder": "submitcart",
89
- "status": "Done"
90
- },
91
- {
92
- "id": "3458764596112606680",
93
- "slice": "slice: submitted cart data",
94
- "index": 12,
95
- "context": "Cart",
96
- "folder": "submittedcartdata",
97
- "status": "Done"
98
- },
99
- {
100
- "id": "3458764596112734544",
101
- "slice": "slice: publish cart",
102
- "index": 13,
103
- "context": "Cart",
104
- "folder": "publishcart",
105
- "status": "Done"
106
- }
107
- ]
108
- }