@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,358 +0,0 @@
1
- {
2
- "id": "3458764595935790438",
3
- "status": "Done",
4
- "title": "slice: clear cart",
5
- "context": "Cart",
6
- "sliceType": "STATE_CHANGE",
7
- "commands": [
8
- {
9
- "id": "3458764595934952195",
10
- "tags": [],
11
- "domain": "Cart",
12
- "elementContext": "INTERNAL",
13
- "modelContext": "Cart",
14
- "context": "INTERNAL",
15
- "slice": "slice: clear cart",
16
- "title": "Clear Cart",
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
- "type": "COMMAND",
29
- "description": "",
30
- "aggregate": "Cart",
31
- "aggregateDependencies": [
32
- "Cart"
33
- ],
34
- "dependencies": [
35
- {
36
- "id": "3458764595641022548",
37
- "type": "OUTBOUND",
38
- "title": "Cart Cleared",
39
- "elementType": "EVENT"
40
- },
41
- {
42
- "id": "3458764595831398076",
43
- "type": "INBOUND",
44
- "title": "title",
45
- "elementType": "SCREEN"
46
- }
47
- ],
48
- "apiEndpoint": "",
49
- "createsAggregate": false,
50
- "triggers": [],
51
- "sketched": false,
52
- "prototype": {
53
- "activeByDefault": false
54
- }
55
- }
56
- ],
57
- "events": [
58
- {
59
- "id": "3458764595641022548",
60
- "tags": [],
61
- "domain": "Cart",
62
- "elementContext": "INTERNAL",
63
- "modelContext": "Cart",
64
- "context": "INTERNAL",
65
- "slice": "slice: clear cart",
66
- "title": "Cart Cleared",
67
- "fields": [
68
- {
69
- "name": "aggregateId",
70
- "type": "UUID",
71
- "example": "",
72
- "mapping": "",
73
- "optional": false,
74
- "cardinality": "Single",
75
- "idAttribute": false
76
- }
77
- ],
78
- "type": "EVENT",
79
- "description": "",
80
- "aggregate": "Cart",
81
- "aggregateDependencies": [
82
- "Cart"
83
- ],
84
- "dependencies": [
85
- {
86
- "id": "3458764596403196690",
87
- "type": "OUTBOUND",
88
- "title": "Carts with Products",
89
- "elementType": "READMODEL"
90
- },
91
- {
92
- "id": "3458764595831018749",
93
- "type": "OUTBOUND",
94
- "title": "cart items",
95
- "elementType": "READMODEL"
96
- },
97
- {
98
- "id": "3458764595934952195",
99
- "type": "INBOUND",
100
- "title": "Clear Cart",
101
- "elementType": "COMMAND"
102
- }
103
- ],
104
- "apiEndpoint": "",
105
- "createsAggregate": false,
106
- "triggers": [],
107
- "sketched": false,
108
- "prototype": {
109
- "activeByDefault": false
110
- }
111
- }
112
- ],
113
- "readmodels": [],
114
- "screens": [
115
- {
116
- "id": "3458764595831398076",
117
- "tags": [],
118
- "domain": "Cart",
119
- "elementContext": "INTERNAL",
120
- "modelContext": "Cart",
121
- "context": "INTERNAL",
122
- "slice": "slice: clear cart",
123
- "title": "title",
124
- "fields": [
125
- {
126
- "name": "aggregateId",
127
- "type": "UUID",
128
- "example": "",
129
- "mapping": "",
130
- "optional": false,
131
- "cardinality": "Single",
132
- "idAttribute": false
133
- },
134
- {
135
- "name": "description",
136
- "type": "String",
137
- "example": "",
138
- "mapping": "",
139
- "optional": false,
140
- "cardinality": "Single",
141
- "idAttribute": false
142
- },
143
- {
144
- "name": "image",
145
- "type": "String",
146
- "example": "",
147
- "mapping": "",
148
- "optional": false,
149
- "cardinality": "Single",
150
- "idAttribute": false
151
- },
152
- {
153
- "name": "itemId",
154
- "type": "UUID",
155
- "example": "",
156
- "mapping": "",
157
- "optional": false,
158
- "cardinality": "Single",
159
- "idAttribute": false
160
- },
161
- {
162
- "name": "price",
163
- "type": "Double",
164
- "example": "",
165
- "mapping": "",
166
- "optional": false,
167
- "cardinality": "Single",
168
- "idAttribute": false
169
- },
170
- {
171
- "name": "totalPrice",
172
- "type": "Double",
173
- "example": "",
174
- "mapping": "",
175
- "optional": false,
176
- "cardinality": "Single",
177
- "idAttribute": false
178
- }
179
- ],
180
- "type": "SCREEN",
181
- "description": "",
182
- "aggregate": "Cart",
183
- "aggregateDependencies": [
184
- "Cart"
185
- ],
186
- "dependencies": [
187
- {
188
- "id": "3458764595934952195",
189
- "type": "OUTBOUND",
190
- "title": "Clear Cart",
191
- "elementType": "COMMAND"
192
- },
193
- {
194
- "id": "3458764595831018749",
195
- "type": "INBOUND",
196
- "title": "cart items",
197
- "elementType": "READMODEL"
198
- }
199
- ],
200
- "apiEndpoint": "",
201
- "createsAggregate": false,
202
- "triggers": [],
203
- "sketched": false,
204
- "prototype": {
205
- "activeByDefault": false
206
- }
207
- }
208
- ],
209
- "screenImages": [],
210
- "screenLayouts": [],
211
- "processors": [],
212
- "tables": [],
213
- "specifications": [
214
- {
215
- "vertical": false,
216
- "id": "3458764596856777915",
217
- "sliceName": "slice: clear cart",
218
- "title": "spec: clear cart",
219
- "given": [
220
- {
221
- "title": "Item Added",
222
- "tags": [],
223
- "id": "3458764596856777917",
224
- "index": 1,
225
- "type": "SPEC_EVENT",
226
- "fields": [
227
- {
228
- "name": "aggregateId",
229
- "type": "UUID",
230
- "example": "",
231
- "mapping": "",
232
- "optional": false,
233
- "cardinality": "Single",
234
- "subfields": []
235
- },
236
- {
237
- "name": "description",
238
- "type": "String",
239
- "example": "",
240
- "mapping": "",
241
- "optional": false,
242
- "cardinality": "Single",
243
- "subfields": []
244
- },
245
- {
246
- "name": "image",
247
- "type": "String",
248
- "example": "",
249
- "mapping": "",
250
- "optional": false,
251
- "cardinality": "Single",
252
- "subfields": []
253
- },
254
- {
255
- "name": "price",
256
- "type": "Double",
257
- "example": "",
258
- "mapping": "",
259
- "optional": false,
260
- "cardinality": "Single",
261
- "subfields": []
262
- },
263
- {
264
- "name": "itemId",
265
- "type": "UUID",
266
- "example": "",
267
- "mapping": "",
268
- "optional": false,
269
- "cardinality": "Single",
270
- "subfields": []
271
- },
272
- {
273
- "name": "productId",
274
- "type": "UUID",
275
- "example": "",
276
- "mapping": "",
277
- "optional": false,
278
- "cardinality": "Single",
279
- "subfields": []
280
- }
281
- ],
282
- "linkedId": "3458764595631345476"
283
- },
284
- {
285
- "title": "Cart Created",
286
- "tags": [],
287
- "id": "3458764596856777916",
288
- "index": 0,
289
- "type": "SPEC_EVENT",
290
- "fields": [
291
- {
292
- "name": "aggregateId",
293
- "type": "UUID",
294
- "example": "",
295
- "mapping": "",
296
- "optional": false,
297
- "cardinality": "Single",
298
- "subfields": []
299
- }
300
- ],
301
- "linkedId": "3458764596402400430"
302
- }
303
- ],
304
- "when": [
305
- {
306
- "title": "Clear Cart",
307
- "tags": [],
308
- "id": "3458764596856777918",
309
- "index": 0,
310
- "type": "SPEC_COMMAND",
311
- "fields": [
312
- {
313
- "name": "aggregateId",
314
- "type": "UUID",
315
- "example": "",
316
- "mapping": "",
317
- "optional": false,
318
- "cardinality": "Single",
319
- "subfields": []
320
- }
321
- ],
322
- "linkedId": "3458764595934952195"
323
- }
324
- ],
325
- "then": [
326
- {
327
- "title": "Cart Cleared",
328
- "tags": [],
329
- "id": "3458764596856777919",
330
- "index": 0,
331
- "type": "SPEC_EVENT",
332
- "fields": [
333
- {
334
- "name": "aggregateId",
335
- "type": "UUID",
336
- "example": "",
337
- "mapping": "",
338
- "optional": false,
339
- "cardinality": "Single",
340
- "subfields": []
341
- }
342
- ],
343
- "linkedId": "3458764595641022548"
344
- }
345
- ],
346
- "comments": [],
347
- "linkedId": "3458764595935790438"
348
- }
349
- ],
350
- "actors": [
351
- {
352
- "name": "User"
353
- }
354
- ],
355
- "aggregates": [
356
- "Cart"
357
- ]
358
- }
@@ -1,203 +0,0 @@
1
- {
2
- "id": "3458764596700878694",
3
- "status": "Done",
4
- "title": "slice: Inventories",
5
- "context": "Cart",
6
- "sliceType": "STATE_VIEW",
7
- "commands": [],
8
- "events": [],
9
- "readmodels": [
10
- {
11
- "id": "3458764596395903488",
12
- "tags": [],
13
- "domain": "Cart",
14
- "elementContext": "INTERNAL",
15
- "modelContext": "Cart",
16
- "context": "INTERNAL",
17
- "slice": "slice: Inventories",
18
- "title": "Inventories",
19
- "fields": [
20
- {
21
- "name": "inventory",
22
- "type": "Int",
23
- "example": "",
24
- "mapping": "",
25
- "optional": false,
26
- "cardinality": "Single",
27
- "idAttribute": false
28
- },
29
- {
30
- "name": "productId",
31
- "type": "UUID",
32
- "example": "",
33
- "mapping": "",
34
- "optional": false,
35
- "cardinality": "Single",
36
- "idAttribute": true
37
- }
38
- ],
39
- "type": "READMODEL",
40
- "description": "",
41
- "aggregate": "Inventory",
42
- "aggregateDependencies": [
43
- "Inventory"
44
- ],
45
- "dependencies": [
46
- {
47
- "id": "3458764596395903754",
48
- "type": "OUTBOUND",
49
- "title": "title",
50
- "elementType": "SCREEN"
51
- },
52
- {
53
- "id": "3458764596395403355",
54
- "type": "INBOUND",
55
- "title": "Inventory Changed",
56
- "elementType": "EVENT"
57
- }
58
- ],
59
- "apiEndpoint": "",
60
- "service": null,
61
- "createsAggregate": false,
62
- "triggers": [],
63
- "sketched": false,
64
- "prototype": {
65
- "activeByDefault": false
66
- }
67
- }
68
- ],
69
- "screens": [
70
- {
71
- "id": "3458764596395903754",
72
- "tags": [],
73
- "domain": "Cart",
74
- "elementContext": "INTERNAL",
75
- "modelContext": "Cart",
76
- "context": "INTERNAL",
77
- "slice": "slice: Inventories",
78
- "title": "title",
79
- "fields": [
80
- {
81
- "name": "inventory",
82
- "type": "Int",
83
- "example": "",
84
- "mapping": "",
85
- "optional": false,
86
- "cardinality": "Single",
87
- "idAttribute": false
88
- },
89
- {
90
- "name": "productId",
91
- "type": "String",
92
- "example": "",
93
- "mapping": "",
94
- "optional": false,
95
- "cardinality": "Single",
96
- "idAttribute": false
97
- }
98
- ],
99
- "type": "SCREEN",
100
- "description": "",
101
- "aggregate": "Inventory",
102
- "aggregateDependencies": [
103
- "Inventory"
104
- ],
105
- "dependencies": [
106
- {
107
- "id": "3458764596395903488",
108
- "type": "INBOUND",
109
- "title": "Inventories",
110
- "elementType": "READMODEL"
111
- }
112
- ],
113
- "apiEndpoint": "",
114
- "createsAggregate": false,
115
- "triggers": [],
116
- "sketched": false,
117
- "prototype": {
118
- "activeByDefault": false
119
- }
120
- }
121
- ],
122
- "screenImages": [],
123
- "screenLayouts": [],
124
- "processors": [],
125
- "tables": [],
126
- "specifications": [
127
- {
128
- "vertical": false,
129
- "id": "3458764597266169273",
130
- "sliceName": "slice: Inventories",
131
- "title": "spec: Inventories",
132
- "given": [
133
- {
134
- "title": "Inventory Changed",
135
- "tags": [],
136
- "id": "3458764597266169274",
137
- "index": 0,
138
- "type": "SPEC_EVENT",
139
- "fields": [
140
- {
141
- "name": "inventory",
142
- "type": "Int",
143
- "example": "",
144
- "mapping": "",
145
- "optional": false,
146
- "cardinality": "Single",
147
- "subfields": []
148
- },
149
- {
150
- "name": "productId",
151
- "type": "UUID",
152
- "example": "",
153
- "mapping": "",
154
- "optional": false,
155
- "cardinality": "Single",
156
- "idAttribute": true,
157
- "subfields": []
158
- }
159
- ],
160
- "linkedId": "3458764596395403355"
161
- }
162
- ],
163
- "when": [],
164
- "then": [
165
- {
166
- "title": "Inventories",
167
- "tags": [],
168
- "id": "3458764597266169275",
169
- "index": 0,
170
- "type": "SPEC_READMODEL",
171
- "fields": [
172
- {
173
- "name": "inventory",
174
- "type": "Int",
175
- "example": "",
176
- "mapping": "",
177
- "optional": false,
178
- "cardinality": "Single",
179
- "subfields": []
180
- },
181
- {
182
- "name": "productId",
183
- "type": "UUID",
184
- "example": "",
185
- "mapping": "",
186
- "optional": false,
187
- "cardinality": "Single",
188
- "idAttribute": true,
189
- "subfields": []
190
- }
191
- ],
192
- "linkedId": "3458764596395903488"
193
- }
194
- ],
195
- "comments": [],
196
- "linkedId": "3458764596700878694"
197
- }
198
- ],
199
- "actors": [],
200
- "aggregates": [
201
- "Inventory"
202
- ]
203
- }