@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,264 +0,0 @@
1
- {
2
- "id": "3458764596700878567",
3
- "status": "Done",
4
- "title": "slice: change inventory",
5
- "context": "Cart",
6
- "sliceType": "STATE_CHANGE",
7
- "commands": [
8
- {
9
- "id": "3458764596395279433",
10
- "tags": [],
11
- "domain": "Cart",
12
- "elementContext": "INTERNAL",
13
- "modelContext": "Cart",
14
- "context": "INTERNAL",
15
- "slice": "slice: change inventory",
16
- "title": "Change Inventory",
17
- "fields": [
18
- {
19
- "name": "inventory",
20
- "type": "Int",
21
- "example": "",
22
- "mapping": "",
23
- "optional": false,
24
- "cardinality": "Single",
25
- "idAttribute": false
26
- },
27
- {
28
- "name": "productId",
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": "Inventory",
40
- "aggregateDependencies": [
41
- "Inventory"
42
- ],
43
- "dependencies": [
44
- {
45
- "id": "3458764596395403355",
46
- "type": "OUTBOUND",
47
- "title": "Inventory Changed",
48
- "elementType": "EVENT"
49
- },
50
- {
51
- "id": "3458764596395278973",
52
- "type": "INBOUND",
53
- "title": "automation",
54
- "elementType": "AUTOMATION"
55
- }
56
- ],
57
- "apiEndpoint": "",
58
- "createsAggregate": false,
59
- "triggers": [],
60
- "sketched": false,
61
- "prototype": {
62
- "activeByDefault": false
63
- }
64
- }
65
- ],
66
- "events": [
67
- {
68
- "id": "3458764596395403355",
69
- "tags": [],
70
- "domain": "Cart",
71
- "elementContext": "INTERNAL",
72
- "modelContext": "Cart",
73
- "context": "INTERNAL",
74
- "slice": "slice: change inventory",
75
- "title": "Inventory Changed",
76
- "fields": [
77
- {
78
- "name": "inventory",
79
- "type": "Int",
80
- "example": "",
81
- "mapping": "",
82
- "optional": false,
83
- "cardinality": "Single",
84
- "idAttribute": false
85
- },
86
- {
87
- "name": "productId",
88
- "type": "UUID",
89
- "example": "",
90
- "mapping": "",
91
- "optional": false,
92
- "cardinality": "Single",
93
- "idAttribute": true
94
- }
95
- ],
96
- "type": "EVENT",
97
- "description": "",
98
- "aggregate": "Inventory",
99
- "aggregateDependencies": [
100
- "Inventory"
101
- ],
102
- "dependencies": [
103
- {
104
- "id": "3458764596395903488",
105
- "type": "OUTBOUND",
106
- "title": "Inventories",
107
- "elementType": "READMODEL"
108
- },
109
- {
110
- "id": "3458764596395279433",
111
- "type": "INBOUND",
112
- "title": "Change Inventory",
113
- "elementType": "COMMAND"
114
- }
115
- ],
116
- "apiEndpoint": "",
117
- "service": null,
118
- "createsAggregate": false,
119
- "triggers": [],
120
- "sketched": false,
121
- "prototype": {
122
- "activeByDefault": false
123
- }
124
- }
125
- ],
126
- "readmodels": [],
127
- "screens": [],
128
- "screenImages": [],
129
- "screenLayouts": [],
130
- "processors": [
131
- {
132
- "id": "3458764596395278973",
133
- "tags": [],
134
- "domain": "Cart",
135
- "elementContext": "INTERNAL",
136
- "modelContext": "Cart",
137
- "context": "INTERNAL",
138
- "slice": "slice: change inventory",
139
- "title": "automation",
140
- "fields": [
141
- {
142
- "name": "inventory",
143
- "type": "Int",
144
- "example": "",
145
- "mapping": "",
146
- "optional": false,
147
- "cardinality": "Single",
148
- "idAttribute": false
149
- },
150
- {
151
- "name": "productId",
152
- "type": "String",
153
- "example": "",
154
- "mapping": "",
155
- "optional": false,
156
- "cardinality": "Single",
157
- "idAttribute": false
158
- }
159
- ],
160
- "type": "AUTOMATION",
161
- "description": "",
162
- "aggregate": "Inventory",
163
- "aggregateDependencies": [
164
- "Inventory"
165
- ],
166
- "dependencies": [
167
- {
168
- "id": "3458764596395279433",
169
- "type": "OUTBOUND",
170
- "title": "Change Inventory",
171
- "elementType": "COMMAND"
172
- }
173
- ],
174
- "apiEndpoint": "",
175
- "createsAggregate": false,
176
- "triggers": [],
177
- "sketched": false,
178
- "prototype": {
179
- "activeByDefault": false
180
- }
181
- }
182
- ],
183
- "tables": [],
184
- "specifications": [
185
- {
186
- "vertical": false,
187
- "id": "3458764596955969400",
188
- "sliceName": "slice: change inventory",
189
- "title": "spec: change inventory",
190
- "given": [],
191
- "when": [
192
- {
193
- "title": "Change Inventory",
194
- "tags": [],
195
- "id": "3458764596955969401",
196
- "index": 0,
197
- "type": "SPEC_COMMAND",
198
- "fields": [
199
- {
200
- "name": "inventory",
201
- "type": "Int",
202
- "example": "",
203
- "mapping": "",
204
- "optional": false,
205
- "cardinality": "Single",
206
- "subfields": []
207
- },
208
- {
209
- "name": "productId",
210
- "type": "UUID",
211
- "example": "",
212
- "mapping": "",
213
- "optional": false,
214
- "cardinality": "Single",
215
- "subfields": []
216
- }
217
- ],
218
- "linkedId": "3458764596395279433"
219
- }
220
- ],
221
- "then": [
222
- {
223
- "title": "Inventory Changed",
224
- "tags": [],
225
- "id": "3458764596955969402",
226
- "index": 0,
227
- "type": "SPEC_EVENT",
228
- "fields": [
229
- {
230
- "name": "inventory",
231
- "type": "Int",
232
- "example": "",
233
- "mapping": "",
234
- "optional": false,
235
- "cardinality": "Single",
236
- "subfields": []
237
- },
238
- {
239
- "name": "productId",
240
- "type": "UUID",
241
- "example": "",
242
- "mapping": "",
243
- "optional": false,
244
- "cardinality": "Single",
245
- "idAttribute": true,
246
- "subfields": []
247
- }
248
- ],
249
- "linkedId": "3458764596395403355"
250
- }
251
- ],
252
- "comments": [],
253
- "linkedId": "3458764596700878567"
254
- }
255
- ],
256
- "actors": [
257
- {
258
- "name": "bots"
259
- }
260
- ],
261
- "aggregates": [
262
- "Inventory"
263
- ]
264
- }
@@ -1,308 +0,0 @@
1
- {
2
- "id": "3458764596700962283",
3
- "status": "Done",
4
- "title": "slice: change price",
5
- "context": "Cart",
6
- "sliceType": "STATE_CHANGE",
7
- "commands": [
8
- {
9
- "id": "3458764596402011072",
10
- "tags": [],
11
- "domain": "Cart",
12
- "elementContext": "INTERNAL",
13
- "modelContext": "Cart",
14
- "context": "INTERNAL",
15
- "slice": "slice: change price",
16
- "title": "Change Price",
17
- "fields": [
18
- {
19
- "name": "newPrice",
20
- "type": "Double",
21
- "example": "",
22
- "mapping": "",
23
- "optional": false,
24
- "cardinality": "Single",
25
- "idAttribute": false
26
- },
27
- {
28
- "name": "oldPrice",
29
- "type": "Double",
30
- "example": "",
31
- "mapping": "",
32
- "optional": false,
33
- "cardinality": "Single",
34
- "idAttribute": false
35
- },
36
- {
37
- "name": "productId",
38
- "type": "String",
39
- "example": "",
40
- "mapping": "",
41
- "optional": false,
42
- "cardinality": "Single",
43
- "idAttribute": false
44
- }
45
- ],
46
- "type": "COMMAND",
47
- "description": "",
48
- "aggregate": "Pricing",
49
- "aggregateDependencies": [
50
- "Pricing"
51
- ],
52
- "dependencies": [
53
- {
54
- "id": "3458764595641022550",
55
- "type": "OUTBOUND",
56
- "title": "Price Changed",
57
- "elementType": "EVENT"
58
- },
59
- {
60
- "id": "3458764596401905894",
61
- "type": "INBOUND",
62
- "title": "automation",
63
- "elementType": "AUTOMATION"
64
- }
65
- ],
66
- "apiEndpoint": "",
67
- "createsAggregate": false,
68
- "triggers": [],
69
- "sketched": false,
70
- "prototype": {
71
- "activeByDefault": false
72
- }
73
- }
74
- ],
75
- "events": [
76
- {
77
- "id": "3458764595641022550",
78
- "tags": [],
79
- "domain": "Cart",
80
- "elementContext": "INTERNAL",
81
- "modelContext": "Cart",
82
- "context": "INTERNAL",
83
- "slice": "slice: change price",
84
- "title": "Price Changed",
85
- "fields": [
86
- {
87
- "name": "newPrice",
88
- "type": "Double",
89
- "example": "",
90
- "mapping": "",
91
- "optional": false,
92
- "cardinality": "Single",
93
- "idAttribute": false
94
- },
95
- {
96
- "name": "oldPrice",
97
- "type": "Double",
98
- "example": "",
99
- "mapping": "",
100
- "optional": false,
101
- "cardinality": "Single",
102
- "idAttribute": false
103
- },
104
- {
105
- "name": "productId",
106
- "type": "UUID",
107
- "example": "",
108
- "mapping": "",
109
- "optional": false,
110
- "cardinality": "Single",
111
- "idAttribute": false
112
- }
113
- ],
114
- "type": "EVENT",
115
- "description": "",
116
- "aggregate": "Pricing",
117
- "aggregateDependencies": [
118
- "Pricing"
119
- ],
120
- "dependencies": [
121
- {
122
- "id": "3458764596409128019",
123
- "type": "OUTBOUND",
124
- "title": "Changed Prices",
125
- "elementType": "READMODEL"
126
- },
127
- {
128
- "id": "3458764596402011072",
129
- "type": "INBOUND",
130
- "title": "Change Price",
131
- "elementType": "COMMAND"
132
- }
133
- ],
134
- "apiEndpoint": "",
135
- "service": null,
136
- "createsAggregate": false,
137
- "triggers": [],
138
- "sketched": false,
139
- "prototype": {
140
- "activeByDefault": false
141
- }
142
- }
143
- ],
144
- "readmodels": [],
145
- "screens": [],
146
- "screenImages": [],
147
- "screenLayouts": [],
148
- "processors": [
149
- {
150
- "id": "3458764596401905894",
151
- "tags": [],
152
- "domain": "Cart",
153
- "elementContext": "INTERNAL",
154
- "modelContext": "Cart",
155
- "context": "INTERNAL",
156
- "slice": "slice: change price",
157
- "title": "automation",
158
- "fields": [
159
- {
160
- "name": "newPrice",
161
- "type": "Double",
162
- "example": "",
163
- "mapping": "",
164
- "optional": false,
165
- "cardinality": "Single",
166
- "idAttribute": false
167
- },
168
- {
169
- "name": "oldPrice",
170
- "type": "Double",
171
- "example": "",
172
- "mapping": "",
173
- "optional": false,
174
- "cardinality": "Single",
175
- "idAttribute": false
176
- },
177
- {
178
- "name": "productId",
179
- "type": "String",
180
- "example": "",
181
- "mapping": "",
182
- "optional": false,
183
- "cardinality": "Single",
184
- "idAttribute": false
185
- }
186
- ],
187
- "type": "AUTOMATION",
188
- "description": "",
189
- "aggregate": "Pricing",
190
- "aggregateDependencies": [
191
- "Pricing"
192
- ],
193
- "dependencies": [
194
- {
195
- "id": "3458764596402011072",
196
- "type": "OUTBOUND",
197
- "title": "Change Price",
198
- "elementType": "COMMAND"
199
- }
200
- ],
201
- "apiEndpoint": "",
202
- "createsAggregate": false,
203
- "triggers": [],
204
- "sketched": false,
205
- "prototype": {
206
- "activeByDefault": false
207
- }
208
- }
209
- ],
210
- "tables": [],
211
- "specifications": [
212
- {
213
- "vertical": false,
214
- "id": "3458764597370328087",
215
- "sliceName": "slice: change price",
216
- "title": "spec: change price",
217
- "given": [],
218
- "when": [
219
- {
220
- "title": "Change Price",
221
- "tags": [],
222
- "id": "3458764597370328089",
223
- "index": 0,
224
- "type": "SPEC_COMMAND",
225
- "fields": [
226
- {
227
- "name": "newPrice",
228
- "type": "Double",
229
- "example": "",
230
- "mapping": "",
231
- "optional": false,
232
- "cardinality": "Single",
233
- "subfields": []
234
- },
235
- {
236
- "name": "oldPrice",
237
- "type": "Double",
238
- "example": "",
239
- "mapping": "",
240
- "optional": false,
241
- "cardinality": "Single",
242
- "subfields": []
243
- },
244
- {
245
- "name": "productId",
246
- "type": "String",
247
- "example": "",
248
- "mapping": "",
249
- "optional": false,
250
- "cardinality": "Single",
251
- "subfields": []
252
- }
253
- ],
254
- "linkedId": "3458764596402011072"
255
- }
256
- ],
257
- "then": [
258
- {
259
- "title": "Price Changed",
260
- "tags": [],
261
- "id": "3458764597370328090",
262
- "index": 0,
263
- "type": "SPEC_EVENT",
264
- "fields": [
265
- {
266
- "name": "newPrice",
267
- "type": "Double",
268
- "example": "",
269
- "mapping": "",
270
- "optional": false,
271
- "cardinality": "Single",
272
- "subfields": []
273
- },
274
- {
275
- "name": "oldPrice",
276
- "type": "Double",
277
- "example": "",
278
- "mapping": "",
279
- "optional": false,
280
- "cardinality": "Single",
281
- "subfields": []
282
- },
283
- {
284
- "name": "productId",
285
- "type": "UUID",
286
- "example": "",
287
- "mapping": "",
288
- "optional": false,
289
- "cardinality": "Single",
290
- "subfields": []
291
- }
292
- ],
293
- "linkedId": "3458764595641022550"
294
- }
295
- ],
296
- "comments": [],
297
- "linkedId": "3458764596700962283"
298
- }
299
- ],
300
- "actors": [
301
- {
302
- "name": "bots"
303
- }
304
- ],
305
- "aggregates": [
306
- "Pricing"
307
- ]
308
- }