@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,574 @@
1
+ {
2
+ "events": [
3
+ {
4
+ "event": "account created",
5
+ "isFirstEvent": true,
6
+ "properties": {
7
+ "referral_source": [
8
+ "organic",
9
+ "partner_referral",
10
+ "google_search",
11
+ "trade_show",
12
+ "linkedin"
13
+ ]
14
+ }
15
+ },
16
+ {
17
+ "event": "inventory checked",
18
+ "weight": 8,
19
+ "properties": {
20
+ "warehouse_id": {
21
+ "$type": "string"
22
+ },
23
+ "sku_category": [
24
+ "electronics",
25
+ "apparel",
26
+ "food_beverage",
27
+ "pharma",
28
+ "raw_materials",
29
+ "packaging",
30
+ "automotive_parts"
31
+ ],
32
+ "stock_level": {
33
+ "$range": [
34
+ 787,
35
+ 4417
36
+ ]
37
+ },
38
+ "reorder_point": {
39
+ "$range": [
40
+ 84,
41
+ 399
42
+ ]
43
+ },
44
+ "reorder_method": [
45
+ "manual"
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "event": "stockout alert",
51
+ "weight": 5,
52
+ "properties": {
53
+ "warehouse_id": {
54
+ "$type": "string"
55
+ },
56
+ "sku_category": [
57
+ "electronics",
58
+ "apparel",
59
+ "food_beverage",
60
+ "pharma",
61
+ "raw_materials",
62
+ "packaging"
63
+ ],
64
+ "items_affected": [
65
+ 12,
66
+ 31,
67
+ 41,
68
+ 35,
69
+ 19
70
+ ],
71
+ "severity": [
72
+ "low",
73
+ "medium",
74
+ "high",
75
+ "critical"
76
+ ],
77
+ "response_time_hours": [
78
+ 15,
79
+ 33,
80
+ 18,
81
+ 34
82
+ ]
83
+ }
84
+ },
85
+ {
86
+ "event": "purchase order created",
87
+ "weight": 5,
88
+ "properties": {
89
+ "supplier_id": {
90
+ "$type": "string"
91
+ },
92
+ "sku_category": [
93
+ "electronics",
94
+ "apparel",
95
+ "food_beverage",
96
+ "pharma",
97
+ "raw_materials",
98
+ "packaging",
99
+ "automotive_parts"
100
+ ],
101
+ "quantity": {
102
+ "$range": [
103
+ 940,
104
+ 4110
105
+ ]
106
+ },
107
+ "unit_cost": {
108
+ "$range": [
109
+ 44,
110
+ 164
111
+ ]
112
+ },
113
+ "priority": [
114
+ "standard",
115
+ "expedited",
116
+ "urgent"
117
+ ],
118
+ "estimated_delivery_days": [
119
+ 10,
120
+ 25,
121
+ 9,
122
+ 13,
123
+ 8,
124
+ 22
125
+ ]
126
+ }
127
+ },
128
+ {
129
+ "event": "order received",
130
+ "weight": 4,
131
+ "properties": {
132
+ "warehouse_id": {
133
+ "$type": "string"
134
+ },
135
+ "supplier_id": {
136
+ "$type": "string"
137
+ },
138
+ "quantity_received": {
139
+ "$range": [
140
+ 855,
141
+ 4023
142
+ ]
143
+ },
144
+ "quantity_damaged": {
145
+ "$range": [
146
+ 4,
147
+ 16
148
+ ]
149
+ },
150
+ "receiving_time_hours": [
151
+ 6,
152
+ 3
153
+ ]
154
+ }
155
+ },
156
+ {
157
+ "event": "shipment tracked",
158
+ "weight": 6,
159
+ "properties": {
160
+ "carrier": [
161
+ "fedex",
162
+ "ups",
163
+ "dhl",
164
+ "usps",
165
+ "freight_line",
166
+ "regional_courier"
167
+ ],
168
+ "shipment_status": [
169
+ "in_transit",
170
+ "delivered",
171
+ "delayed",
172
+ "exception"
173
+ ],
174
+ "origin_warehouse": {
175
+ "$type": "string"
176
+ },
177
+ "estimated_days": [
178
+ 5,
179
+ 4
180
+ ],
181
+ "weight_kg": {
182
+ "$range": [
183
+ 323,
184
+ 1668
185
+ ]
186
+ }
187
+ }
188
+ },
189
+ {
190
+ "event": "supplier contacted",
191
+ "weight": 3,
192
+ "properties": {
193
+ "supplier_id": {
194
+ "$type": "string"
195
+ },
196
+ "contact_reason": [
197
+ "price_negotiation",
198
+ "order_status",
199
+ "quality_issue",
200
+ "new_product",
201
+ "contract_renewal",
202
+ "returns"
203
+ ],
204
+ "contact_method": [
205
+ "email",
206
+ "phone",
207
+ "portal"
208
+ ],
209
+ "supplier_access": [
210
+ "email_only"
211
+ ]
212
+ }
213
+ },
214
+ {
215
+ "event": "integration connected",
216
+ "weight": 2,
217
+ "properties": {
218
+ "integration_type": [
219
+ "erp",
220
+ "accounting",
221
+ "shipping",
222
+ "ecommerce",
223
+ "crm",
224
+ "bi_tool"
225
+ ],
226
+ "integration_name": [
227
+ "SAP",
228
+ "QuickBooks",
229
+ "ShipStation",
230
+ "Shopify",
231
+ "Salesforce",
232
+ "NetSuite",
233
+ "Xero"
234
+ ],
235
+ "setup_time_minutes": {
236
+ "$range": [
237
+ 27,
238
+ 94
239
+ ]
240
+ }
241
+ }
242
+ },
243
+ {
244
+ "event": "report generated",
245
+ "weight": 4,
246
+ "properties": {
247
+ "report_type": [
248
+ "inventory_summary",
249
+ "order_history",
250
+ "supplier_performance",
251
+ "cost_analysis",
252
+ "forecast",
253
+ "compliance"
254
+ ],
255
+ "report_pages": {
256
+ "$range": [
257
+ 7,
258
+ 38
259
+ ]
260
+ },
261
+ "export_format": [
262
+ "pdf",
263
+ "csv",
264
+ "xlsx"
265
+ ],
266
+ "time_range_days": [
267
+ 7,
268
+ 14,
269
+ 30,
270
+ 90
271
+ ]
272
+ }
273
+ },
274
+ {
275
+ "event": "alert configured",
276
+ "weight": 2,
277
+ "properties": {
278
+ "alert_type": [
279
+ "low_stock",
280
+ "delivery_delay",
281
+ "price_change",
282
+ "quality_threshold",
283
+ "expiry_warning"
284
+ ],
285
+ "threshold_value": {
286
+ "$range": [
287
+ 63,
288
+ 419
289
+ ]
290
+ },
291
+ "notification_channel": [
292
+ "email",
293
+ "sms",
294
+ "push",
295
+ "slack"
296
+ ]
297
+ }
298
+ },
299
+ {
300
+ "event": "warehouse transfer",
301
+ "weight": 3,
302
+ "properties": {
303
+ "from_warehouse": {
304
+ "$type": "string"
305
+ },
306
+ "to_warehouse": {
307
+ "$type": "string"
308
+ },
309
+ "sku_category": [
310
+ "electronics",
311
+ "apparel",
312
+ "food_beverage",
313
+ "pharma",
314
+ "raw_materials"
315
+ ],
316
+ "transfer_quantity": {
317
+ "$range": [
318
+ 136,
319
+ 850
320
+ ]
321
+ },
322
+ "transfer_reason": [
323
+ "rebalance",
324
+ "demand_shift",
325
+ "consolidation",
326
+ "overflow",
327
+ "seasonal"
328
+ ]
329
+ }
330
+ },
331
+ {
332
+ "event": "quality inspection",
333
+ "weight": 2,
334
+ "properties": {
335
+ "warehouse_id": {
336
+ "$type": "string"
337
+ },
338
+ "inspection_result": [
339
+ "pass",
340
+ "minor_issue",
341
+ "major_issue",
342
+ "fail"
343
+ ],
344
+ "items_inspected": {
345
+ "$range": [
346
+ 100,
347
+ 429
348
+ ]
349
+ },
350
+ "defect_rate_pct": [
351
+ 3,
352
+ 4
353
+ ]
354
+ }
355
+ },
356
+ {
357
+ "event": "invoice processed",
358
+ "weight": 3,
359
+ "properties": {
360
+ "supplier_id": {
361
+ "$type": "string"
362
+ },
363
+ "invoice_amount": {
364
+ "$range": [
365
+ 7161,
366
+ 41928
367
+ ]
368
+ },
369
+ "payment_terms": [
370
+ "net_30",
371
+ "net_60",
372
+ "net_15",
373
+ "on_receipt"
374
+ ],
375
+ "payment_status": [
376
+ "paid",
377
+ "pending",
378
+ "overdue"
379
+ ]
380
+ }
381
+ },
382
+ {
383
+ "event": "notification received",
384
+ "weight": 6,
385
+ "properties": {
386
+ "notification_type": [
387
+ "low_stock_alert",
388
+ "delivery_update",
389
+ "order_confirmation",
390
+ "invoice_due",
391
+ "system_update"
392
+ ],
393
+ "channel": [
394
+ "email",
395
+ "push",
396
+ "sms"
397
+ ],
398
+ "opened": [
399
+ true,
400
+ false
401
+ ]
402
+ }
403
+ },
404
+ {
405
+ "event": "support ticket",
406
+ "properties": {
407
+ "category": [
408
+ "billing",
409
+ "technical",
410
+ "integration",
411
+ "data_import",
412
+ "feature_request",
413
+ "training"
414
+ ],
415
+ "priority": [
416
+ "low",
417
+ "medium",
418
+ "high"
419
+ ],
420
+ "resolution_hours": {
421
+ "$range": [
422
+ 12,
423
+ 57
424
+ ]
425
+ }
426
+ }
427
+ },
428
+ {
429
+ "event": "app session",
430
+ "weight": 7,
431
+ "properties": {
432
+ "session_duration_sec": {
433
+ "$range": [
434
+ 549,
435
+ 3057
436
+ ]
437
+ },
438
+ "pages_viewed": [
439
+ 6,
440
+ 9,
441
+ 10,
442
+ 12,
443
+ 15
444
+ ]
445
+ }
446
+ },
447
+ {
448
+ "event": "account deactivated",
449
+ "isChurnEvent": true,
450
+ "returnLikelihood": 0.1,
451
+ "isStrictEvent": true,
452
+ "properties": {
453
+ "reason": [
454
+ "too_expensive",
455
+ "switched_competitor",
456
+ "business_closed",
457
+ "missing_features",
458
+ "poor_support"
459
+ ]
460
+ }
461
+ }
462
+ ],
463
+ "funnels": [
464
+ {
465
+ "sequence": [
466
+ "account created",
467
+ "inventory checked",
468
+ "integration connected",
469
+ "report generated"
470
+ ],
471
+ "name": "Onboarding",
472
+ "isFirstFunnel": true,
473
+ "conversionRate": 40,
474
+ "timeToConvert": 72,
475
+ "weight": 3
476
+ },
477
+ {
478
+ "sequence": [
479
+ "inventory checked",
480
+ "purchase order created",
481
+ "order received",
482
+ "shipment tracked"
483
+ ],
484
+ "name": "Order Fulfillment",
485
+ "conversionRate": 35,
486
+ "timeToConvert": 168,
487
+ "weight": 5
488
+ },
489
+ {
490
+ "sequence": [
491
+ "supplier contacted",
492
+ "purchase order created",
493
+ "invoice processed"
494
+ ],
495
+ "name": "Supplier Management",
496
+ "conversionRate": 45,
497
+ "timeToConvert": 336,
498
+ "weight": 3
499
+ },
500
+ {
501
+ "sequence": [
502
+ "integration connected",
503
+ "report generated",
504
+ "alert configured"
505
+ ],
506
+ "name": "Integration Setup",
507
+ "conversionRate": 30,
508
+ "timeToConvert": 48,
509
+ "weight": 2
510
+ },
511
+ {
512
+ "sequence": [
513
+ "stockout alert",
514
+ "purchase order created",
515
+ "order received"
516
+ ],
517
+ "name": "Alert Response",
518
+ "conversionRate": 50,
519
+ "timeToConvert": 120,
520
+ "weight": 3
521
+ }
522
+ ],
523
+ "superProps": {
524
+ "platform": [
525
+ "web",
526
+ "desktop_app"
527
+ ],
528
+ "subscription_plan": [
529
+ "free_trial",
530
+ "starter",
531
+ "professional",
532
+ "enterprise"
533
+ ]
534
+ },
535
+ "userProps": {
536
+ "company_tier": [
537
+ "small_business"
538
+ ],
539
+ "warehouse_count": [
540
+ 8,
541
+ 3
542
+ ],
543
+ "employee_count": {
544
+ "$range": [
545
+ 94,
546
+ 385
547
+ ]
548
+ },
549
+ "industry": [
550
+ "retail",
551
+ "manufacturing",
552
+ "food_beverage",
553
+ "pharma",
554
+ "electronics"
555
+ ],
556
+ "integration_count": [
557
+ 0
558
+ ]
559
+ },
560
+ "scdProps": {
561
+ "company_tier": {
562
+ "type": "user",
563
+ "frequency": "month",
564
+ "timing": "fuzzy",
565
+ "max": 6,
566
+ "values": [
567
+ "trial",
568
+ "starter",
569
+ "professional",
570
+ "enterprise"
571
+ ]
572
+ }
573
+ }
574
+ }