@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
@@ -1,204 +0,0 @@
1
- {
2
- "events": [
3
- {
4
- "event": "account created",
5
- "weight": 1,
6
- "isFirstEvent": true,
7
- "properties": {
8
- "signup_source": ["web", "mobile", "agent_referral", "partner"],
9
- "account_type": ["individual", "family", "business"]
10
- }
11
- },
12
- {
13
- "event": "page viewed",
14
- "weight": 10,
15
- "properties": {
16
- "page_name": ["home", "quotes", "coverage_options", "claims", "faq", "profile", "payment", "documents"],
17
- "referrer": ["direct", "google", "email", "social_media"]
18
- }
19
- },
20
- {
21
- "event": "quote requested",
22
- "weight": 5,
23
- "properties": {
24
- "coverage_level": ["basic", "standard", "premium"],
25
- "deductible": { "$range": [250, 5000] }
26
- }
27
- },
28
- {
29
- "event": "quote received",
30
- "weight": 4,
31
- "properties": {
32
- "monthly_premium": { "$range": [30, 800] },
33
- "coverage_amount": { "$range": [10000, 500000] },
34
- "quote_comparison_count": { "$range": [1, 5] }
35
- }
36
- },
37
- {
38
- "event": "application started",
39
- "weight": 4,
40
- "properties": {
41
- "coverage_level": ["basic", "standard", "premium"],
42
- "estimated_premium": { "$range": [30, 800] }
43
- }
44
- },
45
- {
46
- "event": "application step completed",
47
- "weight": 6,
48
- "properties": {
49
- "step_name": ["personal_info", "coverage_selection", "medical_history", "vehicle_info", "beneficiary", "review"],
50
- "step_number": { "$range": [1, 6] },
51
- "time_on_step_sec": { "$range": [15, 600] }
52
- }
53
- },
54
- {
55
- "event": "document uploaded",
56
- "weight": 3,
57
- "properties": {
58
- "document_type": ["drivers_license", "proof_of_address", "vehicle_registration", "medical_records", "property_photos"],
59
- "file_size_kb": { "$range": [50, 5000] }
60
- }
61
- },
62
- {
63
- "event": "application submitted",
64
- "weight": 3,
65
- "properties": {
66
- "documents_attached": { "$range": [1, 5] },
67
- "application_time_min": { "$range": [5, 60] }
68
- }
69
- },
70
- {
71
- "event": "application approved",
72
- "weight": 2,
73
- "properties": {
74
- "approved_premium": { "$range": [30, 800] },
75
- "approval_time_hours": { "$range": [1, 72] }
76
- }
77
- },
78
- {
79
- "event": "policy activated",
80
- "weight": 2,
81
- "properties": {
82
- "policy_term_months": [6, 12, 12, 12, 24],
83
- "effective_date_offset_days": { "$range": [0, 30] }
84
- }
85
- },
86
- {
87
- "event": "claim filed",
88
- "weight": 2,
89
- "properties": {
90
- "claim_type": ["collision", "theft", "water_damage", "fire", "medical", "liability"],
91
- "estimated_amount": { "$range": [100, 50000] }
92
- }
93
- },
94
- {
95
- "event": "claim status checked",
96
- "weight": 4,
97
- "properties": {
98
- "claim_status": ["submitted", "under_review", "approved", "denied", "payment_pending"],
99
- "days_since_filed": { "$range": [1, 60] }
100
- }
101
- },
102
- {
103
- "event": "payment made",
104
- "weight": 5,
105
- "properties": {
106
- "payment_method": ["credit_card", "bank_transfer", "auto_pay", "check"],
107
- "amount": { "$range": [30, 800] },
108
- "payment_status": ["success", "success", "success", "success", "failed"]
109
- }
110
- },
111
- {
112
- "event": "support ticket created",
113
- "weight": 4,
114
- "properties": {
115
- "issue_category": ["billing", "claims", "coverage", "technical", "policy_change"],
116
- "priority": ["low", "medium", "medium", "high"],
117
- "channel": ["chat", "phone", "email", "web_form"]
118
- }
119
- },
120
- {
121
- "event": "support ticket resolved",
122
- "weight": 3,
123
- "properties": {
124
- "resolution_type": ["self_service", "agent_assisted", "escalated", "auto_resolved"],
125
- "satisfaction_score": { "$range": [1, 5] },
126
- "resolution_time_hours": { "$range": [1, 72] }
127
- }
128
- },
129
- {
130
- "event": "coverage reviewed",
131
- "weight": 4,
132
- "properties": {
133
- "current_premium": { "$range": [30, 800] },
134
- "coverage_adequate": [true, true, true, false]
135
- }
136
- },
137
- {
138
- "event": "profile updated",
139
- "weight": 2,
140
- "properties": {
141
- "field_updated": ["address", "phone", "email", "beneficiary", "payment_method", "vehicle_info"]
142
- }
143
- },
144
- {
145
- "event": "renewal completed",
146
- "weight": 2,
147
- "properties": {
148
- "renewal_premium": { "$range": [30, 800] },
149
- "premium_change_pct": { "$range": [-15, 20] },
150
- "auto_renewed": [true, true, false]
151
- }
152
- }
153
- ],
154
- "superProps": {
155
- "platform": ["web", "ios", "android"],
156
- "insurance_type": ["auto", "home", "life", "health", "renters"]
157
- },
158
- "userProps": {
159
- "age_range": ["18-25", "26-35", "36-45", "46-55", "56-65", "65+"],
160
- "risk_profile": ["low", "medium", "high"],
161
- "policy_count": { "$range": [0, 5] },
162
- "lifetime_premium": { "$range": [0, 50000] },
163
- "preferred_contact": ["email", "phone", "app_notification"]
164
- },
165
- "funnels": [
166
- {
167
- "name": "Onboarding",
168
- "sequence": ["account created", "page viewed", "quote requested"],
169
- "isFirstFunnel": true,
170
- "conversionRate": 85,
171
- "timeToConvert": 0.5
172
- },
173
- {
174
- "name": "Application Completion",
175
- "sequence": ["application started", "application step completed", "document uploaded", "application submitted"],
176
- "conversionRate": 60,
177
- "timeToConvert": 48,
178
- "weight": 4,
179
- "order": "sequential"
180
- },
181
- {
182
- "name": "Application Approval",
183
- "sequence": ["application submitted", "application approved", "policy activated"],
184
- "conversionRate": 70,
185
- "timeToConvert": 72,
186
- "weight": 3,
187
- "order": "sequential"
188
- },
189
- {
190
- "name": "Claims Process",
191
- "sequence": ["claim filed", "claim status checked", "support ticket created"],
192
- "conversionRate": 50,
193
- "timeToConvert": 24,
194
- "weight": 2
195
- },
196
- {
197
- "name": "Policy Renewal",
198
- "sequence": ["coverage reviewed", "payment made", "renewal completed"],
199
- "conversionRate": 65,
200
- "timeToConvert": 72,
201
- "weight": 3
202
- }
203
- ]
204
- }