@ak--47/dungeon-master 1.0.0 → 1.1.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 (103) 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 +91 -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} +11 -4
  8. package/dungeons/technical/experiments-schema.json +197 -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} +2 -2
  12. package/dungeons/technical/group-analytics-schema.json +149 -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} +1 -1
  20. package/dungeons/technical/sanity-schema.json +185 -0
  21. package/dungeons/{sanity.js → technical/sanity.js} +3 -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 +270 -0
  25. package/dungeons/{scd.js → technical/scd.js} +19 -10
  26. package/dungeons/technical/simple-schema.json +278 -0
  27. package/dungeons/{simple.js → technical/simple.js} +6 -6
  28. package/dungeons/technical/simplest-schema.json +635 -0
  29. package/dungeons/{simplest.js → technical/simplest.js} +6 -6
  30. package/dungeons/technical/text-generation-schema.json +1059 -0
  31. package/dungeons/{text-generation.js → technical/text-generation.js} +23 -9
  32. package/dungeons/vertical/community-schema.json +557 -0
  33. package/dungeons/vertical/community.js +788 -0
  34. package/dungeons/vertical/devtools-schema.json +580 -0
  35. package/dungeons/vertical/devtools.js +837 -0
  36. package/dungeons/vertical/ecommerce-schema.json +586 -0
  37. package/dungeons/{ecommerce.js → vertical/ecommerce.js} +34 -3
  38. package/dungeons/vertical/education-schema.json +697 -0
  39. package/dungeons/{education.js → vertical/education.js} +54 -36
  40. package/dungeons/vertical/fintech-schema.json +563 -0
  41. package/dungeons/{fintech.js → vertical/fintech.js} +91 -53
  42. package/dungeons/vertical/fitness-schema.json +508 -0
  43. package/dungeons/vertical/fitness.js +802 -0
  44. package/dungeons/vertical/food-delivery-schema.json +678 -0
  45. package/dungeons/{food.js → vertical/food-delivery.js} +51 -23
  46. package/dungeons/vertical/gaming-schema.json +394 -0
  47. package/dungeons/{gaming.js → vertical/gaming.js} +9 -7
  48. package/dungeons/vertical/healthcare-schema.json +527 -0
  49. package/dungeons/vertical/healthcare.js +769 -0
  50. package/dungeons/vertical/insurance-application-schema.json +466 -0
  51. package/dungeons/{insurance-application.js → vertical/insurance-application.js} +33 -29
  52. package/dungeons/vertical/logistics-schema.json +552 -0
  53. package/dungeons/vertical/logistics.js +793 -0
  54. package/dungeons/vertical/marketplace-schema.json +511 -0
  55. package/dungeons/vertical/marketplace.js +844 -0
  56. package/dungeons/vertical/media-schema.json +787 -0
  57. package/dungeons/{media.js → vertical/media.js} +94 -16
  58. package/dungeons/vertical/rpg-schema.json +654 -0
  59. package/dungeons/{rpg.js → vertical/rpg.js} +78 -57
  60. package/dungeons/vertical/sass-schema.json +653 -0
  61. package/dungeons/{sass.js → vertical/sass.js} +49 -23
  62. package/dungeons/vertical/social-schema.json +552 -0
  63. package/dungeons/{social.js → vertical/social.js} +60 -14
  64. package/dungeons/vertical/travel-schema.json +558 -0
  65. package/dungeons/vertical/travel.js +736 -0
  66. package/index.js +19 -15
  67. package/lib/core/config-validator.js +286 -1
  68. package/lib/core/context.js +7 -5
  69. package/lib/generators/adspend.js +3 -3
  70. package/lib/generators/events.js +141 -14
  71. package/lib/generators/funnels.js +67 -7
  72. package/lib/generators/text.js +2 -2
  73. package/lib/orchestrators/user-loop.js +441 -22
  74. package/lib/templates/soup-presets.js +2 -2
  75. package/lib/utils/utils.js +4 -5
  76. package/package.json +4 -3
  77. package/scripts/dungeon-to-json.mjs +163 -0
  78. package/scripts/extract-dungeon-schema.mjs +297 -0
  79. package/scripts/json-to-dungeon.mjs +200 -0
  80. package/scripts/run-dungeon.mjs +76 -0
  81. package/scripts/run-many.mjs +118 -0
  82. package/scripts/verify-runner.mjs +42 -0
  83. package/types.d.ts +313 -1
  84. package/dungeons/array-of-object-lookup-schema.json +0 -327
  85. package/dungeons/ecommerce-schema.json +0 -462
  86. package/dungeons/education-schema.json +0 -2409
  87. package/dungeons/fintech-schema.json +0 -14034
  88. package/dungeons/foobar-schema.json +0 -403
  89. package/dungeons/food-delivery-schema.json +0 -192
  90. package/dungeons/food-delivery.js +0 -602
  91. package/dungeons/food-schema.json +0 -1152
  92. package/dungeons/gaming-schema.json +0 -1270
  93. package/dungeons/insurance-application-schema.json +0 -204
  94. package/dungeons/media-schema.json +0 -906
  95. package/dungeons/retention-cadence-schema.json +0 -78
  96. package/dungeons/rpg-schema.json +0 -4526
  97. package/dungeons/sanity-schema.json +0 -255
  98. package/dungeons/sass-schema.json +0 -1291
  99. package/dungeons/scd-schema.json +0 -919
  100. package/dungeons/simple-schema.json +0 -608
  101. package/dungeons/simplest-schema.json +0 -1418
  102. package/dungeons/social-schema.json +0 -1118
  103. package/dungeons/text-generation-schema.json +0 -3096
@@ -0,0 +1,552 @@
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
+ "properties": {
450
+ "reason": [
451
+ "too_expensive",
452
+ "switched_competitor",
453
+ "business_closed",
454
+ "missing_features",
455
+ "poor_support"
456
+ ]
457
+ }
458
+ }
459
+ ],
460
+ "superProps": {
461
+ "platform": [
462
+ "web",
463
+ "desktop_app"
464
+ ],
465
+ "subscription_plan": [
466
+ "free_trial",
467
+ "starter",
468
+ "professional",
469
+ "enterprise"
470
+ ]
471
+ },
472
+ "userProps": {
473
+ "company_tier": [
474
+ "small_business"
475
+ ],
476
+ "warehouse_count": [
477
+ 8,
478
+ 3
479
+ ],
480
+ "employee_count": {
481
+ "$range": [
482
+ 94,
483
+ 385
484
+ ]
485
+ },
486
+ "industry": [
487
+ "retail",
488
+ "manufacturing",
489
+ "food_beverage",
490
+ "pharma",
491
+ "electronics"
492
+ ],
493
+ "integration_count": [
494
+ 0
495
+ ]
496
+ },
497
+ "funnels": [
498
+ {
499
+ "sequence": [
500
+ "account created",
501
+ "inventory checked",
502
+ "integration connected",
503
+ "report generated"
504
+ ],
505
+ "isFirstFunnel": true,
506
+ "conversionRate": 40,
507
+ "timeToConvert": 72,
508
+ "weight": 3
509
+ },
510
+ {
511
+ "sequence": [
512
+ "inventory checked",
513
+ "purchase order created",
514
+ "order received",
515
+ "shipment tracked"
516
+ ],
517
+ "conversionRate": 35,
518
+ "timeToConvert": 168,
519
+ "weight": 5
520
+ },
521
+ {
522
+ "sequence": [
523
+ "supplier contacted",
524
+ "purchase order created",
525
+ "invoice processed"
526
+ ],
527
+ "conversionRate": 45,
528
+ "timeToConvert": 336,
529
+ "weight": 3
530
+ },
531
+ {
532
+ "sequence": [
533
+ "integration connected",
534
+ "report generated",
535
+ "alert configured"
536
+ ],
537
+ "conversionRate": 30,
538
+ "timeToConvert": 48,
539
+ "weight": 2
540
+ },
541
+ {
542
+ "sequence": [
543
+ "stockout alert",
544
+ "purchase order created",
545
+ "order received"
546
+ ],
547
+ "conversionRate": 50,
548
+ "timeToConvert": 120,
549
+ "weight": 3
550
+ }
551
+ ]
552
+ }