@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,560 +0,0 @@
1
- {
2
- "id": "3458764595831815463",
3
- "status": "Done",
4
- "title": "slice: remove item",
5
- "context": "Cart",
6
- "sliceType": "STATE_CHANGE",
7
- "commands": [
8
- {
9
- "id": "3458764595830770125",
10
- "tags": [],
11
- "domain": "Cart",
12
- "elementContext": "INTERNAL",
13
- "modelContext": "Cart",
14
- "context": "INTERNAL",
15
- "slice": "slice: remove item",
16
- "title": "Remove Item",
17
- "fields": [
18
- {
19
- "name": "aggregateId",
20
- "type": "UUID",
21
- "example": "",
22
- "mapping": "",
23
- "optional": false,
24
- "cardinality": "Single",
25
- "idAttribute": false
26
- },
27
- {
28
- "name": "itemId",
29
- "type": "UUID",
30
- "example": "",
31
- "mapping": "",
32
- "optional": false,
33
- "cardinality": "Single",
34
- "idAttribute": false
35
- }
36
- ],
37
- "type": "COMMAND",
38
- "description": "",
39
- "aggregate": "Cart",
40
- "aggregateDependencies": [
41
- "Cart"
42
- ],
43
- "dependencies": [
44
- {
45
- "id": "3458764595631345609",
46
- "type": "OUTBOUND",
47
- "title": "Item Removed",
48
- "elementType": "EVENT"
49
- },
50
- {
51
- "id": "3458764595668362949",
52
- "type": "INBOUND",
53
- "title": "title",
54
- "elementType": "SCREEN"
55
- }
56
- ],
57
- "apiEndpoint": "",
58
- "createsAggregate": false,
59
- "triggers": [],
60
- "sketched": false,
61
- "prototype": {
62
- "projection": "",
63
- "label": "Remove Item",
64
- "placement": "MAIN",
65
- "initialValue": null,
66
- "css": null,
67
- "pageTemplate": null,
68
- "activeByDefault": false
69
- }
70
- }
71
- ],
72
- "events": [
73
- {
74
- "id": "3458764595631345609",
75
- "tags": [],
76
- "domain": "Cart",
77
- "elementContext": "INTERNAL",
78
- "modelContext": "Cart",
79
- "context": "INTERNAL",
80
- "slice": "slice: remove item",
81
- "title": "Item Removed",
82
- "fields": [
83
- {
84
- "name": "aggregateId",
85
- "type": "UUID",
86
- "example": "",
87
- "mapping": "",
88
- "optional": false,
89
- "cardinality": "Single",
90
- "idAttribute": false
91
- },
92
- {
93
- "name": "itemId",
94
- "type": "UUID",
95
- "example": "",
96
- "mapping": "",
97
- "optional": false,
98
- "cardinality": "Single",
99
- "idAttribute": false
100
- }
101
- ],
102
- "type": "EVENT",
103
- "description": "",
104
- "aggregate": "Cart",
105
- "aggregateDependencies": [
106
- "Cart"
107
- ],
108
- "dependencies": [
109
- {
110
- "id": "3458764596403196690",
111
- "type": "OUTBOUND",
112
- "title": "Carts with Products",
113
- "elementType": "READMODEL"
114
- },
115
- {
116
- "id": "3458764595831018749",
117
- "type": "OUTBOUND",
118
- "title": "cart items",
119
- "elementType": "READMODEL"
120
- },
121
- {
122
- "id": "3458764595830770125",
123
- "type": "INBOUND",
124
- "title": "Remove Item",
125
- "elementType": "COMMAND"
126
- }
127
- ],
128
- "apiEndpoint": "",
129
- "createsAggregate": false,
130
- "triggers": [],
131
- "sketched": false,
132
- "prototype": {
133
- "activeByDefault": false
134
- }
135
- }
136
- ],
137
- "readmodels": [],
138
- "screens": [
139
- {
140
- "id": "3458764595668362949",
141
- "tags": [],
142
- "domain": "Cart",
143
- "elementContext": "INTERNAL",
144
- "modelContext": "Cart",
145
- "context": "INTERNAL",
146
- "slice": "slice: remove item",
147
- "title": "title",
148
- "fields": [
149
- {
150
- "name": "aggregateId",
151
- "type": "UUID",
152
- "example": "",
153
- "mapping": "",
154
- "optional": false,
155
- "cardinality": "Single",
156
- "idAttribute": false
157
- },
158
- {
159
- "name": "description",
160
- "type": "String",
161
- "example": "",
162
- "mapping": "",
163
- "optional": false,
164
- "cardinality": "Single",
165
- "idAttribute": false
166
- },
167
- {
168
- "name": "image",
169
- "type": "String",
170
- "example": "",
171
- "mapping": "",
172
- "optional": false,
173
- "cardinality": "Single",
174
- "idAttribute": false
175
- },
176
- {
177
- "name": "itemId",
178
- "type": "UUID",
179
- "example": "",
180
- "mapping": "",
181
- "optional": false,
182
- "cardinality": "Single",
183
- "idAttribute": false
184
- },
185
- {
186
- "name": "price",
187
- "type": "Double",
188
- "example": "",
189
- "mapping": "",
190
- "optional": false,
191
- "cardinality": "Single",
192
- "idAttribute": false
193
- },
194
- {
195
- "name": "totalPrice",
196
- "type": "Double",
197
- "example": "",
198
- "mapping": "",
199
- "optional": false,
200
- "cardinality": "Single",
201
- "idAttribute": false
202
- }
203
- ],
204
- "type": "SCREEN",
205
- "description": "",
206
- "aggregate": "Cart",
207
- "aggregateDependencies": [
208
- "Cart"
209
- ],
210
- "dependencies": [
211
- {
212
- "id": "3458764595830770125",
213
- "type": "OUTBOUND",
214
- "title": "Remove Item",
215
- "elementType": "COMMAND"
216
- },
217
- {
218
- "id": "3458764595831018749",
219
- "type": "INBOUND",
220
- "title": "cart items",
221
- "elementType": "READMODEL"
222
- }
223
- ],
224
- "apiEndpoint": "",
225
- "createsAggregate": false,
226
- "triggers": [],
227
- "sketched": false,
228
- "prototype": {
229
- "activeByDefault": false
230
- }
231
- }
232
- ],
233
- "screenImages": [],
234
- "screenLayouts": [],
235
- "processors": [],
236
- "tables": [],
237
- "specifications": [
238
- {
239
- "vertical": false,
240
- "id": "3458764596855766863",
241
- "sliceName": "slice: remove item",
242
- "title": "spec: remove item which was already removed",
243
- "given": [
244
- {
245
- "title": "Item Removed",
246
- "tags": [],
247
- "id": "3458764596855766866",
248
- "index": 2,
249
- "type": "SPEC_EVENT",
250
- "fields": [
251
- {
252
- "name": "aggregateId",
253
- "type": "UUID",
254
- "example": "",
255
- "mapping": "",
256
- "optional": false,
257
- "cardinality": "Single",
258
- "subfields": []
259
- },
260
- {
261
- "name": "itemId",
262
- "type": "UUID",
263
- "example": "",
264
- "mapping": "",
265
- "optional": false,
266
- "cardinality": "Single",
267
- "subfields": []
268
- }
269
- ],
270
- "linkedId": "3458764595631345609"
271
- },
272
- {
273
- "title": "Item Added",
274
- "tags": [],
275
- "id": "3458764596855766865",
276
- "index": 1,
277
- "type": "SPEC_EVENT",
278
- "fields": [
279
- {
280
- "name": "aggregateId",
281
- "type": "UUID",
282
- "example": "",
283
- "mapping": "",
284
- "optional": false,
285
- "cardinality": "Single",
286
- "subfields": []
287
- },
288
- {
289
- "name": "description",
290
- "type": "String",
291
- "example": "",
292
- "mapping": "",
293
- "optional": false,
294
- "cardinality": "Single",
295
- "subfields": []
296
- },
297
- {
298
- "name": "image",
299
- "type": "String",
300
- "example": "",
301
- "mapping": "",
302
- "optional": false,
303
- "cardinality": "Single",
304
- "subfields": []
305
- },
306
- {
307
- "name": "price",
308
- "type": "Double",
309
- "example": "",
310
- "mapping": "",
311
- "optional": false,
312
- "cardinality": "Single",
313
- "subfields": []
314
- },
315
- {
316
- "name": "itemId",
317
- "type": "UUID",
318
- "example": "",
319
- "mapping": "",
320
- "optional": false,
321
- "cardinality": "Single",
322
- "subfields": []
323
- },
324
- {
325
- "name": "productId",
326
- "type": "UUID",
327
- "example": "",
328
- "mapping": "",
329
- "optional": false,
330
- "cardinality": "Single",
331
- "subfields": []
332
- }
333
- ],
334
- "linkedId": "3458764595631345476"
335
- },
336
- {
337
- "title": "Cart Created",
338
- "tags": [],
339
- "id": "3458764596855766864",
340
- "index": 0,
341
- "type": "SPEC_EVENT",
342
- "fields": [
343
- {
344
- "name": "aggregateId",
345
- "type": "UUID",
346
- "example": "",
347
- "mapping": "",
348
- "optional": false,
349
- "cardinality": "Single",
350
- "subfields": []
351
- }
352
- ],
353
- "linkedId": "3458764596402400430"
354
- }
355
- ],
356
- "when": [
357
- {
358
- "title": "Remove Item",
359
- "tags": [],
360
- "id": "3458764596855766867",
361
- "index": 0,
362
- "type": "SPEC_COMMAND",
363
- "fields": [
364
- {
365
- "name": "aggregateId",
366
- "type": "UUID",
367
- "example": "",
368
- "mapping": "",
369
- "optional": false,
370
- "cardinality": "Single",
371
- "subfields": []
372
- },
373
- {
374
- "name": "itemId",
375
- "type": "UUID",
376
- "example": "",
377
- "mapping": "",
378
- "optional": false,
379
- "cardinality": "Single",
380
- "subfields": []
381
- }
382
- ],
383
- "linkedId": "3458764595830770125"
384
- }
385
- ],
386
- "then": [
387
- {
388
- "title": "Error-Case",
389
- "tags": [],
390
- "id": "3458764596855766868",
391
- "index": 0,
392
- "type": "SPEC_ERROR"
393
- }
394
- ],
395
- "comments": [],
396
- "linkedId": "3458764595831815463"
397
- },
398
- {
399
- "vertical": false,
400
- "id": "3458764596855188305",
401
- "sliceName": "slice: remove item",
402
- "title": "spec: remove item",
403
- "given": [
404
- {
405
- "title": "Item Added",
406
- "tags": [],
407
- "id": "3458764596855188308",
408
- "index": 1,
409
- "type": "SPEC_EVENT",
410
- "fields": [
411
- {
412
- "name": "aggregateId",
413
- "type": "UUID",
414
- "example": "",
415
- "mapping": "",
416
- "optional": false,
417
- "cardinality": "Single",
418
- "subfields": []
419
- },
420
- {
421
- "name": "description",
422
- "type": "String",
423
- "example": "",
424
- "mapping": "",
425
- "optional": false,
426
- "cardinality": "Single",
427
- "subfields": []
428
- },
429
- {
430
- "name": "image",
431
- "type": "String",
432
- "example": "",
433
- "mapping": "",
434
- "optional": false,
435
- "cardinality": "Single",
436
- "subfields": []
437
- },
438
- {
439
- "name": "price",
440
- "type": "Double",
441
- "example": "",
442
- "mapping": "",
443
- "optional": false,
444
- "cardinality": "Single",
445
- "subfields": []
446
- },
447
- {
448
- "name": "itemId",
449
- "type": "UUID",
450
- "example": "",
451
- "mapping": "",
452
- "optional": false,
453
- "cardinality": "Single",
454
- "subfields": []
455
- },
456
- {
457
- "name": "productId",
458
- "type": "UUID",
459
- "example": "",
460
- "mapping": "",
461
- "optional": false,
462
- "cardinality": "Single",
463
- "subfields": []
464
- }
465
- ],
466
- "linkedId": "3458764595631345476"
467
- },
468
- {
469
- "title": "Cart Created",
470
- "tags": [],
471
- "id": "3458764596855188307",
472
- "index": 0,
473
- "type": "SPEC_EVENT",
474
- "fields": [
475
- {
476
- "name": "aggregateId",
477
- "type": "UUID",
478
- "example": "",
479
- "mapping": "",
480
- "optional": false,
481
- "cardinality": "Single",
482
- "subfields": []
483
- }
484
- ],
485
- "linkedId": "3458764596402400430"
486
- }
487
- ],
488
- "when": [
489
- {
490
- "title": "Remove Item",
491
- "tags": [],
492
- "id": "3458764596855188309",
493
- "index": 0,
494
- "type": "SPEC_COMMAND",
495
- "fields": [
496
- {
497
- "name": "aggregateId",
498
- "type": "UUID",
499
- "example": "",
500
- "mapping": "",
501
- "optional": false,
502
- "cardinality": "Single",
503
- "subfields": []
504
- },
505
- {
506
- "name": "itemId",
507
- "type": "UUID",
508
- "example": "",
509
- "mapping": "",
510
- "optional": false,
511
- "cardinality": "Single",
512
- "subfields": []
513
- }
514
- ],
515
- "linkedId": "3458764595830770125"
516
- }
517
- ],
518
- "then": [
519
- {
520
- "title": "Item Removed",
521
- "tags": [],
522
- "id": "3458764596855188310",
523
- "index": 0,
524
- "type": "SPEC_EVENT",
525
- "fields": [
526
- {
527
- "name": "aggregateId",
528
- "type": "UUID",
529
- "example": "",
530
- "mapping": "",
531
- "optional": false,
532
- "cardinality": "Single",
533
- "subfields": []
534
- },
535
- {
536
- "name": "itemId",
537
- "type": "UUID",
538
- "example": "",
539
- "mapping": "",
540
- "optional": false,
541
- "cardinality": "Single",
542
- "subfields": []
543
- }
544
- ],
545
- "linkedId": "3458764595631345609"
546
- }
547
- ],
548
- "comments": [],
549
- "linkedId": "3458764595831815463"
550
- }
551
- ],
552
- "actors": [
553
- {
554
- "name": "User"
555
- }
556
- ],
557
- "aggregates": [
558
- "Cart"
559
- ]
560
- }