@ak--47/dungeon-master 1.3.0 → 1.4.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 (98) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dungeons/technical/array-of-object-lookup.js +0 -2
  3. package/dungeons/technical/hook-helpers-verify.js +89 -0
  4. package/dungeons/technical/identity-model-verify.js +47 -0
  5. package/dungeons/technical/pattern-aggregate-by-bin.js +41 -0
  6. package/dungeons/technical/pattern-attributed-by-source.js +42 -0
  7. package/dungeons/technical/pattern-frequency-by-frequency.js +40 -0
  8. package/dungeons/technical/pattern-funnel-frequency.js +54 -0
  9. package/dungeons/technical/pattern-ttc-by-segment.js +45 -0
  10. package/dungeons/technical/simple.js +3 -4
  11. package/dungeons/technical/simplest-schema.json +5 -0
  12. package/dungeons/technical/text-generation.js +1 -1
  13. package/dungeons/vertical/ai-platform.js +216 -164
  14. package/dungeons/vertical/community.js +74 -41
  15. package/dungeons/vertical/crypto.js +343 -233
  16. package/dungeons/vertical/dating.js +246 -292
  17. package/dungeons/vertical/devtools.js +179 -70
  18. package/dungeons/vertical/ecommerce.js +275 -122
  19. package/dungeons/vertical/education.js +345 -312
  20. package/dungeons/vertical/fintech.js +445 -314
  21. package/dungeons/vertical/fitness.js +199 -165
  22. package/dungeons/vertical/food-delivery.js +309 -330
  23. package/dungeons/vertical/gaming.js +387 -241
  24. package/dungeons/vertical/healthcare.js +149 -66
  25. package/dungeons/vertical/insurance-application.js +173 -75
  26. package/dungeons/vertical/logistics.js +107 -12
  27. package/dungeons/vertical/marketplace.js +171 -76
  28. package/dungeons/vertical/media.js +259 -402
  29. package/dungeons/vertical/real-estate.js +336 -318
  30. package/dungeons/vertical/sass.js +294 -288
  31. package/dungeons/vertical/social.js +289 -234
  32. package/dungeons/vertical/travel.js +66 -20
  33. package/index.js +17 -17
  34. package/lib/core/config-validator.js +226 -175
  35. package/lib/core/context.js +10 -24
  36. package/lib/core/storage.js +6 -1
  37. package/lib/generators/events.js +57 -104
  38. package/lib/generators/funnels.js +212 -93
  39. package/lib/generators/mirror.js +3 -2
  40. package/lib/generators/product-names.js +1 -1
  41. package/lib/generators/scd.js +2 -1
  42. package/lib/generators/text.js +1 -1
  43. package/lib/hook-helpers/_internal.js +23 -0
  44. package/lib/hook-helpers/cohort.js +124 -0
  45. package/lib/hook-helpers/identity.js +56 -0
  46. package/lib/hook-helpers/index.js +44 -0
  47. package/lib/hook-helpers/inject.js +99 -0
  48. package/lib/hook-helpers/mutate.js +151 -0
  49. package/lib/hook-helpers/timing.js +99 -0
  50. package/lib/hook-patterns/aggregate-per-user-by-bin.js +38 -0
  51. package/lib/hook-patterns/attributed-by-source.js +72 -0
  52. package/lib/hook-patterns/frequency-by-frequency.js +46 -0
  53. package/lib/hook-patterns/funnel-frequency-breakdown.js +73 -0
  54. package/lib/hook-patterns/index.js +14 -0
  55. package/lib/hook-patterns/time-to-convert-by-segment.js +41 -0
  56. package/lib/orchestrators/user-loop.js +143 -293
  57. package/lib/utils/utils.js +97 -52
  58. package/lib/verify/emulate-breakdown.js +281 -0
  59. package/lib/verify/index.js +12 -0
  60. package/lib/verify/verify-dungeon.js +61 -0
  61. package/package.json +6 -4
  62. package/scripts/smoke-test-all.mjs +162 -0
  63. package/scripts/verify-runner.mjs +72 -24
  64. package/types.d.ts +434 -225
  65. package/dungeons/technical/ad-spend-schema.json +0 -128
  66. package/dungeons/technical/anonymous-users-schema.json +0 -92
  67. package/dungeons/technical/array-of-object-lookup-schema.json +0 -191
  68. package/dungeons/technical/experiments-schema.json +0 -203
  69. package/dungeons/technical/foobar-schema.json +0 -362
  70. package/dungeons/technical/group-analytics-schema.json +0 -241
  71. package/dungeons/technical/mirror-strategies-schema.json +0 -84
  72. package/dungeons/technical/nested-objects-schema.json +0 -145
  73. package/dungeons/technical/retention-cadence-schema.json +0 -37
  74. package/dungeons/technical/sanity-schema.json +0 -185
  75. package/dungeons/technical/scale-test-schema.json +0 -70
  76. package/dungeons/technical/scd-schema.json +0 -467
  77. package/dungeons/technical/simple-schema.json +0 -362
  78. package/dungeons/technical/text-generation-schema.json +0 -1062
  79. package/dungeons/vertical/ai-platform-schema.json +0 -617
  80. package/dungeons/vertical/community-schema.json +0 -579
  81. package/dungeons/vertical/crypto-schema.json +0 -546
  82. package/dungeons/vertical/dating-schema.json +0 -401
  83. package/dungeons/vertical/devtools-schema.json +0 -601
  84. package/dungeons/vertical/ecommerce-schema.json +0 -604
  85. package/dungeons/vertical/education-schema.json +0 -5686
  86. package/dungeons/vertical/fintech-schema.json +0 -630
  87. package/dungeons/vertical/fitness-schema.json +0 -530
  88. package/dungeons/vertical/food-delivery-schema.json +0 -36728
  89. package/dungeons/vertical/gaming-schema.json +0 -2703
  90. package/dungeons/vertical/healthcare-schema.json +0 -549
  91. package/dungeons/vertical/insurance-application-schema.json +0 -485
  92. package/dungeons/vertical/logistics-schema.json +0 -574
  93. package/dungeons/vertical/marketplace-schema.json +0 -533
  94. package/dungeons/vertical/media-schema.json +0 -4749
  95. package/dungeons/vertical/real-estate-schema.json +0 -527
  96. package/dungeons/vertical/sass-schema.json +0 -3128
  97. package/dungeons/vertical/social-schema.json +0 -620
  98. package/dungeons/vertical/travel-schema.json +0 -580
@@ -1,579 +0,0 @@
1
- {
2
- "events": [
3
- {
4
- "event": "account created",
5
- "isFirstEvent": true,
6
- "properties": {
7
- "referral_source": [
8
- "organic",
9
- "google_search",
10
- "reddit_referral",
11
- "youtube_link",
12
- "friend_invite"
13
- ]
14
- }
15
- },
16
- {
17
- "event": "article viewed",
18
- "weight": 9,
19
- "properties": {
20
- "wiki_id": {
21
- "$type": "string"
22
- },
23
- "content_hub": [
24
- "gaming",
25
- "anime",
26
- "movies",
27
- "tv",
28
- "comics",
29
- "music"
30
- ],
31
- "view_count": {
32
- "$range": [
33
- 23,
34
- 79
35
- ]
36
- },
37
- "time_on_page_sec": {
38
- "$range": [
39
- 123,
40
- 496
41
- ]
42
- },
43
- "is_weekend": [
44
- false
45
- ]
46
- }
47
- },
48
- {
49
- "event": "article published",
50
- "weight": 3,
51
- "properties": {
52
- "wiki_id": {
53
- "$type": "string"
54
- },
55
- "content_hub": [
56
- "gaming",
57
- "anime",
58
- "movies",
59
- "tv",
60
- "comics",
61
- "music"
62
- ],
63
- "word_count": {
64
- "$range": [
65
- 802,
66
- 4228
67
- ]
68
- },
69
- "has_images": [
70
- true,
71
- false
72
- ],
73
- "category": [
74
- "lore",
75
- "character",
76
- "episode_guide",
77
- "review",
78
- "tutorial",
79
- "news"
80
- ],
81
- "is_weekend": [
82
- false
83
- ],
84
- "poll_enabled": [
85
- false
86
- ]
87
- }
88
- },
89
- {
90
- "event": "article edited",
91
- "weight": 4,
92
- "properties": {
93
- "wiki_id": {
94
- "$type": "string"
95
- },
96
- "content_hub": [
97
- "gaming",
98
- "anime",
99
- "movies",
100
- "tv",
101
- "comics",
102
- "music"
103
- ],
104
- "edit_type": [
105
- "content",
106
- "formatting",
107
- "grammar",
108
- "citation",
109
- "revert"
110
- ],
111
- "edit_quality": [
112
- 2,
113
- 3
114
- ],
115
- "chars_changed": {
116
- "$range": [
117
- 372,
118
- 1596
119
- ]
120
- }
121
- }
122
- },
123
- {
124
- "event": "discussion posted",
125
- "weight": 5,
126
- "properties": {
127
- "community_id": {
128
- "$type": "string"
129
- },
130
- "content_hub": [
131
- "gaming",
132
- "anime",
133
- "movies",
134
- "tv",
135
- "comics",
136
- "music"
137
- ],
138
- "topic_type": [
139
- "theory",
140
- "question",
141
- "news",
142
- "review",
143
- "recommendation",
144
- "debate"
145
- ],
146
- "reply_count": [
147
- 35,
148
- 18,
149
- 39,
150
- 13,
151
- 14
152
- ],
153
- "discussion_mode": [
154
- "classic"
155
- ]
156
- }
157
- },
158
- {
159
- "event": "comment posted",
160
- "weight": 6,
161
- "properties": {
162
- "community_id": {
163
- "$type": "string"
164
- },
165
- "content_hub": [
166
- "gaming",
167
- "anime",
168
- "movies",
169
- "tv",
170
- "comics",
171
- "music"
172
- ],
173
- "comment_length": {
174
- "$range": [
175
- 93,
176
- 411
177
- ]
178
- },
179
- "is_reply": [
180
- true,
181
- false
182
- ],
183
- "discussion_mode": [
184
- "classic"
185
- ]
186
- }
187
- },
188
- {
189
- "event": "upvote given",
190
- "weight": 7,
191
- "properties": {
192
- "content_type": [
193
- "article",
194
- "discussion",
195
- "comment"
196
- ],
197
- "content_hub": [
198
- "gaming",
199
- "anime",
200
- "movies",
201
- "tv",
202
- "comics",
203
- "music"
204
- ],
205
- "upvote_count": [
206
- 3,
207
- 5
208
- ]
209
- }
210
- },
211
- {
212
- "event": "search performed",
213
- "weight": 6,
214
- "properties": {
215
- "search_term": [
216
- "walkthrough",
217
- "character list",
218
- "ending explained",
219
- "tier list",
220
- "release date",
221
- "easter eggs",
222
- "best builds",
223
- "lore timeline",
224
- "voice actors",
225
- "soundtrack"
226
- ],
227
- "results_count": {
228
- "$range": [
229
- 11,
230
- 38
231
- ]
232
- },
233
- "content_hub": [
234
- "gaming",
235
- "anime",
236
- "movies",
237
- "tv",
238
- "comics",
239
- "music"
240
- ]
241
- }
242
- },
243
- {
244
- "event": "wiki page created",
245
- "weight": 2,
246
- "properties": {
247
- "wiki_id": {
248
- "$type": "string"
249
- },
250
- "content_hub": [
251
- "gaming",
252
- "anime",
253
- "movies",
254
- "tv",
255
- "comics",
256
- "music"
257
- ],
258
- "page_type": [
259
- "character",
260
- "location",
261
- "item",
262
- "episode",
263
- "concept",
264
- "organization"
265
- ],
266
- "word_count": {
267
- "$range": [
268
- 536,
269
- 2605
270
- ]
271
- }
272
- }
273
- },
274
- {
275
- "event": "media uploaded",
276
- "weight": 2,
277
- "properties": {
278
- "media_type": [
279
- "image",
280
- "gif",
281
- "video_clip",
282
- "screenshot"
283
- ],
284
- "file_size_kb": {
285
- "$range": [
286
- 882,
287
- 4292
288
- ]
289
- },
290
- "content_hub": [
291
- "gaming",
292
- "anime",
293
- "movies",
294
- "tv",
295
- "comics",
296
- "music"
297
- ]
298
- }
299
- },
300
- {
301
- "event": "moderation action",
302
- "weight": 2,
303
- "properties": {
304
- "action_type": [
305
- "warn",
306
- "edit_revert",
307
- "content_removal",
308
- "user_mute",
309
- "spam_flag",
310
- "lock_thread"
311
- ],
312
- "severity": [
313
- "low",
314
- "medium",
315
- "high"
316
- ],
317
- "content_hub": [
318
- "gaming",
319
- "anime",
320
- "movies",
321
- "tv",
322
- "comics",
323
- "music"
324
- ],
325
- "resolution_time_hours": [
326
- 11,
327
- 12
328
- ]
329
- }
330
- },
331
- {
332
- "event": "user followed",
333
- "weight": 3,
334
- "properties": {
335
- "follow_source": [
336
- "profile",
337
- "article",
338
- "discussion",
339
- "recommendation"
340
- ]
341
- }
342
- },
343
- {
344
- "event": "notification received",
345
- "weight": 6,
346
- "properties": {
347
- "notification_type": [
348
- "reply",
349
- "mention",
350
- "upvote",
351
- "follow",
352
- "article_update",
353
- "moderation"
354
- ],
355
- "channel": [
356
- "push",
357
- "email",
358
- "in_app"
359
- ],
360
- "opened": [
361
- true,
362
- false
363
- ]
364
- }
365
- },
366
- {
367
- "event": "support ticket created",
368
- "properties": {
369
- "category": [
370
- "bug_report",
371
- "content_dispute",
372
- "account_issue",
373
- "feature_request",
374
- "abuse_report",
375
- "other"
376
- ],
377
- "priority": [
378
- "low",
379
- "medium",
380
- "high"
381
- ],
382
- "resolution_hours": {
383
- "$range": [
384
- 19,
385
- 74
386
- ]
387
- }
388
- }
389
- },
390
- {
391
- "event": "profile updated",
392
- "weight": 2,
393
- "properties": {
394
- "field_updated": [
395
- "avatar",
396
- "bio",
397
- "display_name",
398
- "preferred_hub",
399
- "notification_settings",
400
- "badges"
401
- ]
402
- }
403
- },
404
- {
405
- "event": "app session",
406
- "weight": 8,
407
- "properties": {
408
- "session_duration_sec": {
409
- "$range": [
410
- 250,
411
- 2913
412
- ]
413
- },
414
- "pages_viewed": [
415
- 8,
416
- 7,
417
- 22,
418
- 9,
419
- 23
420
- ]
421
- }
422
- },
423
- {
424
- "event": "report submitted",
425
- "properties": {
426
- "report_type": [
427
- "spam",
428
- "harassment",
429
- "misinformation",
430
- "vandalism",
431
- "copyright",
432
- "other"
433
- ],
434
- "content_type": [
435
- "article",
436
- "comment",
437
- "discussion",
438
- "media"
439
- ]
440
- }
441
- },
442
- {
443
- "event": "account deactivated",
444
- "isChurnEvent": true,
445
- "returnLikelihood": 0.15,
446
- "isStrictEvent": true,
447
- "properties": {
448
- "reason": [
449
- "lost_interest",
450
- "toxicity",
451
- "no_time",
452
- "switched_platform",
453
- "privacy_concern"
454
- ]
455
- }
456
- }
457
- ],
458
- "funnels": [
459
- {
460
- "sequence": [
461
- "account created",
462
- "search performed",
463
- "article viewed",
464
- "discussion posted"
465
- ],
466
- "name": "Onboarding Flow",
467
- "isFirstFunnel": true,
468
- "conversionRate": 40,
469
- "timeToConvert": 72,
470
- "weight": 3
471
- },
472
- {
473
- "sequence": [
474
- "article viewed",
475
- "article published",
476
- "comment posted"
477
- ],
478
- "name": "Content Creation",
479
- "conversionRate": 35,
480
- "timeToConvert": 48,
481
- "weight": 5
482
- },
483
- {
484
- "sequence": [
485
- "article viewed",
486
- "upvote given",
487
- "comment posted",
488
- "discussion posted"
489
- ],
490
- "name": "Engagement Loop",
491
- "conversionRate": 30,
492
- "timeToConvert": 96,
493
- "weight": 4
494
- },
495
- {
496
- "sequence": [
497
- "article published",
498
- "profile updated",
499
- "notification received"
500
- ],
501
- "name": "Creator to Supporter",
502
- "conversionRate": 45,
503
- "timeToConvert": 168,
504
- "weight": 2
505
- },
506
- {
507
- "sequence": [
508
- "report submitted",
509
- "moderation action"
510
- ],
511
- "name": "Moderation Pipeline",
512
- "conversionRate": 60,
513
- "timeToConvert": 48,
514
- "weight": 2
515
- }
516
- ],
517
- "superProps": {
518
- "subscription_tier": [
519
- "free",
520
- "supporter",
521
- "pro"
522
- ],
523
- "Platform": [
524
- "ios",
525
- "android",
526
- "web"
527
- ],
528
- "content_hub": [
529
- "gaming",
530
- "anime",
531
- "movies",
532
- "tv",
533
- "comics",
534
- "music"
535
- ]
536
- },
537
- "userProps": {
538
- "role": [
539
- "reader",
540
- "contributor",
541
- "moderator",
542
- "creator"
543
- ],
544
- "contributor_level": [
545
- "newcomer"
546
- ],
547
- "articles_created": [
548
- 0
549
- ],
550
- "reputation_score": {
551
- "$range": [
552
- 20,
553
- 76
554
- ]
555
- },
556
- "preferred_hub": [
557
- "gaming",
558
- "anime",
559
- "movies",
560
- "tv",
561
- "comics",
562
- "music"
563
- ]
564
- },
565
- "scdProps": {
566
- "contributor_level": {
567
- "type": "user",
568
- "frequency": "month",
569
- "timing": "fuzzy",
570
- "max": 8,
571
- "values": [
572
- "newcomer",
573
- "regular",
574
- "trusted",
575
- "admin"
576
- ]
577
- }
578
- }
579
- }