@ak--47/dungeon-master 1.0.0 → 1.2.0

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 (104) hide show
  1. package/README.md +7 -7
  2. package/dungeons/technical/ad-spend-schema.json +128 -0
  3. package/dungeons/technical/ad-spend.js +116 -0
  4. package/dungeons/technical/anonymous-users-schema.json +92 -0
  5. package/dungeons/technical/anonymous-users.js +102 -0
  6. package/dungeons/technical/array-of-object-lookup-schema.json +191 -0
  7. package/dungeons/{array-of-object-lookup.js → technical/array-of-object-lookup.js} +12 -5
  8. package/dungeons/technical/experiments-schema.json +203 -0
  9. package/dungeons/technical/experiments.js +168 -0
  10. package/dungeons/technical/foobar-schema.json +362 -0
  11. package/dungeons/{foobar.js → technical/foobar.js} +3 -3
  12. package/dungeons/technical/group-analytics-schema.json +241 -0
  13. package/dungeons/technical/group-analytics.js +151 -0
  14. package/dungeons/technical/mirror-strategies-schema.json +84 -0
  15. package/dungeons/technical/mirror-strategies.js +126 -0
  16. package/dungeons/technical/nested-objects-schema.json +145 -0
  17. package/dungeons/technical/nested-objects.js +207 -0
  18. package/dungeons/technical/retention-cadence-schema.json +37 -0
  19. package/dungeons/{retention-cadence.js → technical/retention-cadence.js} +2 -3
  20. package/dungeons/technical/sanity-schema.json +185 -0
  21. package/dungeons/{sanity.js → technical/sanity.js} +4 -2
  22. package/dungeons/technical/scale-test-schema.json +70 -0
  23. package/dungeons/technical/scale-test.js +90 -0
  24. package/dungeons/technical/scd-schema.json +467 -0
  25. package/dungeons/{scd.js → technical/scd.js} +20 -10
  26. package/dungeons/technical/simple-schema.json +362 -0
  27. package/dungeons/{simple.js → technical/simple.js} +7 -7
  28. package/dungeons/technical/simplest-schema.json +724 -0
  29. package/dungeons/{simplest.js → technical/simplest.js} +7 -7
  30. package/dungeons/technical/text-generation-schema.json +1062 -0
  31. package/dungeons/{text-generation.js → technical/text-generation.js} +24 -11
  32. package/dungeons/vertical/community-schema.json +579 -0
  33. package/dungeons/vertical/community.js +794 -0
  34. package/dungeons/vertical/devtools-schema.json +601 -0
  35. package/dungeons/vertical/devtools.js +843 -0
  36. package/dungeons/vertical/ecommerce-schema.json +604 -0
  37. package/dungeons/{ecommerce.js → vertical/ecommerce.js} +43 -5
  38. package/dungeons/vertical/education-schema.json +5686 -0
  39. package/dungeons/{education.js → vertical/education.js} +70 -39
  40. package/dungeons/vertical/fintech-schema.json +630 -0
  41. package/dungeons/{fintech.js → vertical/fintech.js} +107 -56
  42. package/dungeons/vertical/fitness-schema.json +530 -0
  43. package/dungeons/vertical/fitness.js +808 -0
  44. package/dungeons/vertical/food-delivery-schema.json +36728 -0
  45. package/dungeons/{food.js → vertical/food-delivery.js} +67 -26
  46. package/dungeons/vertical/gaming-schema.json +438 -0
  47. package/dungeons/{gaming.js → vertical/gaming.js} +29 -16
  48. package/dungeons/vertical/healthcare-schema.json +549 -0
  49. package/dungeons/vertical/healthcare.js +775 -0
  50. package/dungeons/vertical/insurance-application-schema.json +485 -0
  51. package/dungeons/{insurance-application.js → vertical/insurance-application.js} +41 -31
  52. package/dungeons/vertical/logistics-schema.json +574 -0
  53. package/dungeons/vertical/logistics.js +799 -0
  54. package/dungeons/vertical/marketplace-schema.json +533 -0
  55. package/dungeons/vertical/marketplace.js +850 -0
  56. package/dungeons/vertical/media-schema.json +4749 -0
  57. package/dungeons/{media.js → vertical/media.js} +103 -19
  58. package/dungeons/vertical/rpg-schema.json +2491 -0
  59. package/dungeons/{rpg.js → vertical/rpg.js} +87 -60
  60. package/dungeons/vertical/sass-schema.json +3128 -0
  61. package/dungeons/{sass.js → vertical/sass.js} +65 -26
  62. package/dungeons/vertical/social-schema.json +620 -0
  63. package/dungeons/{social.js → vertical/social.js} +76 -17
  64. package/dungeons/vertical/travel-schema.json +580 -0
  65. package/dungeons/vertical/travel.js +742 -0
  66. package/index.js +20 -16
  67. package/lib/core/config-validator.js +286 -1
  68. package/lib/core/context.js +16 -5
  69. package/lib/core/storage.js +2 -0
  70. package/lib/generators/adspend.js +3 -3
  71. package/lib/generators/events.js +141 -14
  72. package/lib/generators/funnels.js +67 -7
  73. package/lib/generators/text.js +2 -2
  74. package/lib/orchestrators/user-loop.js +444 -22
  75. package/lib/templates/soup-presets.js +2 -2
  76. package/lib/utils/utils.js +4 -5
  77. package/package.json +4 -3
  78. package/scripts/dungeon-to-json.mjs +163 -0
  79. package/scripts/extract-dungeon-schema.mjs +343 -0
  80. package/scripts/json-to-dungeon.mjs +200 -0
  81. package/scripts/run-dungeon.mjs +76 -0
  82. package/scripts/run-many.mjs +118 -0
  83. package/scripts/verify-runner.mjs +42 -0
  84. package/types.d.ts +316 -1
  85. package/dungeons/array-of-object-lookup-schema.json +0 -327
  86. package/dungeons/ecommerce-schema.json +0 -462
  87. package/dungeons/education-schema.json +0 -2409
  88. package/dungeons/fintech-schema.json +0 -14034
  89. package/dungeons/foobar-schema.json +0 -403
  90. package/dungeons/food-delivery-schema.json +0 -192
  91. package/dungeons/food-delivery.js +0 -602
  92. package/dungeons/food-schema.json +0 -1152
  93. package/dungeons/gaming-schema.json +0 -1270
  94. package/dungeons/insurance-application-schema.json +0 -204
  95. package/dungeons/media-schema.json +0 -906
  96. package/dungeons/retention-cadence-schema.json +0 -78
  97. package/dungeons/rpg-schema.json +0 -4526
  98. package/dungeons/sanity-schema.json +0 -255
  99. package/dungeons/sass-schema.json +0 -1291
  100. package/dungeons/scd-schema.json +0 -919
  101. package/dungeons/simple-schema.json +0 -608
  102. package/dungeons/simplest-schema.json +0 -1418
  103. package/dungeons/social-schema.json +0 -1118
  104. package/dungeons/text-generation-schema.json +0 -3096
@@ -0,0 +1,533 @@
1
+ {
2
+ "events": [
3
+ {
4
+ "event": "account created",
5
+ "isFirstEvent": true,
6
+ "properties": {
7
+ "signup_source": [
8
+ "organic",
9
+ "google_shopping",
10
+ "tiktok",
11
+ "seller_referral",
12
+ "email_campaign",
13
+ "word_of_mouth"
14
+ ]
15
+ }
16
+ },
17
+ {
18
+ "event": "item searched",
19
+ "weight": 8,
20
+ "properties": {
21
+ "search_query": [
22
+ "laptop",
23
+ "vintage jacket",
24
+ "sneakers",
25
+ "headphones",
26
+ "phone case",
27
+ "gaming console",
28
+ "watch",
29
+ "sunglasses",
30
+ "backpack",
31
+ "camera"
32
+ ],
33
+ "results_count": {
34
+ "$range": [
35
+ 7,
36
+ 41
37
+ ]
38
+ },
39
+ "sort_by": [
40
+ "relevance",
41
+ "price_low",
42
+ "price_high",
43
+ "newest",
44
+ "best_selling"
45
+ ]
46
+ }
47
+ },
48
+ {
49
+ "event": "item viewed",
50
+ "weight": 7,
51
+ "properties": {
52
+ "listing_id": {
53
+ "$type": "string"
54
+ },
55
+ "item_price": {
56
+ "$range": [
57
+ 98,
58
+ 393
59
+ ]
60
+ },
61
+ "condition": [
62
+ "new",
63
+ "like_new",
64
+ "good",
65
+ "fair"
66
+ ],
67
+ "seller_rating": [
68
+ 2
69
+ ],
70
+ "photos_count": [
71
+ 7,
72
+ 6,
73
+ 3
74
+ ]
75
+ }
76
+ },
77
+ {
78
+ "event": "add to cart",
79
+ "weight": 5,
80
+ "properties": {
81
+ "listing_id": {
82
+ "$type": "string"
83
+ },
84
+ "item_price": {
85
+ "$range": [
86
+ 102,
87
+ 399
88
+ ]
89
+ },
90
+ "quantity": {
91
+ "$range": [
92
+ 2,
93
+ 4
94
+ ]
95
+ }
96
+ }
97
+ },
98
+ {
99
+ "event": "purchase completed",
100
+ "weight": 3,
101
+ "properties": {
102
+ "listing_id": {
103
+ "$type": "string"
104
+ },
105
+ "total_amount": {
106
+ "$range": [
107
+ 102,
108
+ 406
109
+ ]
110
+ },
111
+ "item_count": {
112
+ "$range": [
113
+ 2,
114
+ 4
115
+ ]
116
+ },
117
+ "payment_method": [
118
+ "credit_card",
119
+ "paypal",
120
+ "apple_pay",
121
+ "debit"
122
+ ],
123
+ "shipping_method": [
124
+ "standard",
125
+ "express",
126
+ "pickup"
127
+ ],
128
+ "is_whale_purchase": [
129
+ false
130
+ ]
131
+ }
132
+ },
133
+ {
134
+ "event": "listing created",
135
+ "weight": 4,
136
+ "properties": {
137
+ "listing_id": {
138
+ "$type": "string"
139
+ },
140
+ "store_id": {
141
+ "$type": "string"
142
+ },
143
+ "asking_price": {
144
+ "$range": [
145
+ 104,
146
+ 394
147
+ ]
148
+ },
149
+ "condition": [
150
+ "new",
151
+ "like_new",
152
+ "good",
153
+ "fair"
154
+ ],
155
+ "listing_fee": {
156
+ "$range": [
157
+ 10,
158
+ 23
159
+ ]
160
+ },
161
+ "fee_change": [
162
+ "none"
163
+ ]
164
+ }
165
+ },
166
+ {
167
+ "event": "listing updated",
168
+ "weight": 3,
169
+ "properties": {
170
+ "listing_id": {
171
+ "$type": "string"
172
+ },
173
+ "field_updated": [
174
+ "price",
175
+ "description",
176
+ "photos",
177
+ "condition",
178
+ "shipping"
179
+ ],
180
+ "price_change_pct": {
181
+ "$range": [
182
+ -20,
183
+ 24
184
+ ]
185
+ }
186
+ }
187
+ },
188
+ {
189
+ "event": "offer received",
190
+ "weight": 3,
191
+ "properties": {
192
+ "listing_id": {
193
+ "$type": "string"
194
+ },
195
+ "offer_amount": {
196
+ "$range": [
197
+ 81,
198
+ 325
199
+ ]
200
+ },
201
+ "offer_pct_of_asking": {
202
+ "$range": [
203
+ 59,
204
+ 92
205
+ ]
206
+ }
207
+ }
208
+ },
209
+ {
210
+ "event": "offer accepted",
211
+ "weight": 2,
212
+ "properties": {
213
+ "listing_id": {
214
+ "$type": "string"
215
+ },
216
+ "final_price": {
217
+ "$range": [
218
+ 100,
219
+ 395
220
+ ]
221
+ },
222
+ "negotiation_rounds": {
223
+ "$range": [
224
+ 2,
225
+ 4
226
+ ]
227
+ },
228
+ "response_time_hours": [
229
+ 35,
230
+ 13,
231
+ 10,
232
+ 36
233
+ ]
234
+ }
235
+ },
236
+ {
237
+ "event": "review submitted",
238
+ "weight": 2,
239
+ "properties": {
240
+ "listing_id": {
241
+ "$type": "string"
242
+ },
243
+ "rating": [
244
+ 4,
245
+ 3,
246
+ 2
247
+ ],
248
+ "review_length": {
249
+ "$range": [
250
+ 55,
251
+ 246
252
+ ]
253
+ },
254
+ "is_verified_purchase": [
255
+ true,
256
+ false
257
+ ]
258
+ }
259
+ },
260
+ {
261
+ "event": "seller rated",
262
+ "weight": 2,
263
+ "properties": {
264
+ "store_id": {
265
+ "$type": "string"
266
+ },
267
+ "seller_rating": [
268
+ 2,
269
+ 4
270
+ ],
271
+ "would_buy_again": [
272
+ true,
273
+ false
274
+ ]
275
+ }
276
+ },
277
+ {
278
+ "event": "message sent",
279
+ "weight": 5,
280
+ "properties": {
281
+ "message_type": [
282
+ "inquiry",
283
+ "negotiation",
284
+ "shipping_question",
285
+ "complaint",
286
+ "thank_you"
287
+ ],
288
+ "recipient_type": [
289
+ "seller",
290
+ "buyer",
291
+ "support"
292
+ ],
293
+ "response_time_hours": [
294
+ 12,
295
+ 11,
296
+ 10,
297
+ 34,
298
+ 35
299
+ ]
300
+ }
301
+ },
302
+ {
303
+ "event": "shipping updated",
304
+ "weight": 3,
305
+ "properties": {
306
+ "status": [
307
+ "label_created",
308
+ "in_transit",
309
+ "out_for_delivery",
310
+ "delivered"
311
+ ],
312
+ "carrier": [
313
+ "usps",
314
+ "ups",
315
+ "fedex",
316
+ "dhl"
317
+ ],
318
+ "tracking_viewed": [
319
+ true,
320
+ false
321
+ ]
322
+ }
323
+ },
324
+ {
325
+ "event": "refund requested",
326
+ "properties": {
327
+ "reason": [
328
+ "not_as_described",
329
+ "damaged",
330
+ "wrong_item",
331
+ "changed_mind",
332
+ "late_delivery"
333
+ ],
334
+ "refund_amount": {
335
+ "$range": [
336
+ 61,
337
+ 242
338
+ ]
339
+ },
340
+ "resolution_status": [
341
+ "pending",
342
+ "approved",
343
+ "denied"
344
+ ]
345
+ }
346
+ },
347
+ {
348
+ "event": "notification received",
349
+ "weight": 6,
350
+ "properties": {
351
+ "notification_type": [
352
+ "price_drop",
353
+ "new_offer",
354
+ "shipping_update",
355
+ "message_received",
356
+ "sale_reminder"
357
+ ],
358
+ "channel": [
359
+ "push",
360
+ "email",
361
+ "sms"
362
+ ],
363
+ "opened": [
364
+ true,
365
+ false
366
+ ]
367
+ }
368
+ },
369
+ {
370
+ "event": "profile updated",
371
+ "weight": 2,
372
+ "properties": {
373
+ "field_updated": [
374
+ "address",
375
+ "payment_method",
376
+ "profile_photo",
377
+ "bio",
378
+ "phone",
379
+ "store_description"
380
+ ]
381
+ }
382
+ },
383
+ {
384
+ "event": "app session",
385
+ "weight": 8,
386
+ "properties": {
387
+ "session_duration_sec": {
388
+ "$range": [
389
+ 310,
390
+ 1498
391
+ ]
392
+ },
393
+ "pages_viewed": [
394
+ 4,
395
+ 13,
396
+ 5
397
+ ]
398
+ }
399
+ },
400
+ {
401
+ "event": "account deactivated",
402
+ "isChurnEvent": true,
403
+ "returnLikelihood": 0.15,
404
+ "isStrictEvent": true,
405
+ "properties": {
406
+ "reason": [
407
+ "low_sales",
408
+ "high_fees",
409
+ "found_alternative",
410
+ "bad_experience",
411
+ "no_longer_needed"
412
+ ]
413
+ }
414
+ }
415
+ ],
416
+ "funnels": [
417
+ {
418
+ "sequence": [
419
+ "account created",
420
+ "item searched",
421
+ "item viewed",
422
+ "add to cart"
423
+ ],
424
+ "name": "Buyer Onboarding",
425
+ "isFirstFunnel": true,
426
+ "conversionRate": 40,
427
+ "timeToConvert": 72,
428
+ "weight": 3
429
+ },
430
+ {
431
+ "sequence": [
432
+ "item searched",
433
+ "item viewed",
434
+ "add to cart",
435
+ "purchase completed"
436
+ ],
437
+ "name": "Browse to Purchase",
438
+ "conversionRate": 30,
439
+ "timeToConvert": 48,
440
+ "weight": 5
441
+ },
442
+ {
443
+ "sequence": [
444
+ "listing created",
445
+ "listing updated",
446
+ "offer received",
447
+ "offer accepted"
448
+ ],
449
+ "name": "Seller Listing Flow",
450
+ "conversionRate": 25,
451
+ "timeToConvert": 168,
452
+ "weight": 3
453
+ },
454
+ {
455
+ "sequence": [
456
+ "offer received",
457
+ "message sent",
458
+ "offer accepted"
459
+ ],
460
+ "name": "Offer Negotiation",
461
+ "conversionRate": 35,
462
+ "timeToConvert": 72,
463
+ "weight": 2
464
+ },
465
+ {
466
+ "sequence": [
467
+ "purchase completed",
468
+ "shipping updated",
469
+ "review submitted"
470
+ ],
471
+ "name": "Review After Purchase",
472
+ "conversionRate": 20,
473
+ "timeToConvert": 336,
474
+ "weight": 2
475
+ }
476
+ ],
477
+ "superProps": {
478
+ "platform": [
479
+ "ios",
480
+ "android",
481
+ "web"
482
+ ],
483
+ "category": [
484
+ "electronics",
485
+ "clothing",
486
+ "home_garden",
487
+ "collectibles",
488
+ "sports",
489
+ "toys",
490
+ "automotive"
491
+ ]
492
+ },
493
+ "userProps": {
494
+ "user_type": [
495
+ "buyer"
496
+ ],
497
+ "segment": [
498
+ "window_shopper"
499
+ ],
500
+ "seller_rating": {
501
+ "$range": [
502
+ 1,
503
+ 4
504
+ ]
505
+ },
506
+ "total_transactions": [
507
+ 0
508
+ ],
509
+ "response_time_hours": {
510
+ "$range": [
511
+ 7,
512
+ 38
513
+ ]
514
+ },
515
+ "store_name": [
516
+ "none"
517
+ ]
518
+ },
519
+ "scdProps": {
520
+ "seller_tier": {
521
+ "type": "user",
522
+ "frequency": "month",
523
+ "timing": "fuzzy",
524
+ "max": 8,
525
+ "values": [
526
+ "new",
527
+ "verified",
528
+ "power",
529
+ "featured"
530
+ ]
531
+ }
532
+ }
533
+ }