@ak--47/dungeon-master 1.1.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 (67) hide show
  1. package/dungeons/technical/ad-spend-schema.json +2 -2
  2. package/dungeons/technical/ad-spend.js +1 -1
  3. package/dungeons/technical/anonymous-users-schema.json +4 -3
  4. package/dungeons/technical/anonymous-users.js +1 -1
  5. package/dungeons/technical/array-of-object-lookup-schema.json +1 -1
  6. package/dungeons/technical/array-of-object-lookup.js +1 -1
  7. package/dungeons/technical/experiments-schema.json +25 -19
  8. package/dungeons/technical/experiments.js +1 -1
  9. package/dungeons/technical/foobar.js +1 -1
  10. package/dungeons/technical/group-analytics-schema.json +92 -0
  11. package/dungeons/technical/group-analytics.js +1 -1
  12. package/dungeons/technical/mirror-strategies-schema.json +4 -4
  13. package/dungeons/technical/mirror-strategies.js +1 -1
  14. package/dungeons/technical/nested-objects.js +1 -1
  15. package/dungeons/technical/retention-cadence.js +1 -2
  16. package/dungeons/technical/sanity-schema.json +22 -22
  17. package/dungeons/technical/sanity.js +1 -0
  18. package/dungeons/technical/scale-test.js +1 -1
  19. package/dungeons/technical/scd-schema.json +230 -33
  20. package/dungeons/technical/scd.js +1 -0
  21. package/dungeons/technical/simple-schema.json +132 -48
  22. package/dungeons/technical/simple.js +1 -1
  23. package/dungeons/technical/simplest-schema.json +168 -79
  24. package/dungeons/technical/simplest.js +1 -1
  25. package/dungeons/technical/text-generation-schema.json +7 -4
  26. package/dungeons/technical/text-generation.js +1 -2
  27. package/dungeons/vertical/community-schema.json +71 -49
  28. package/dungeons/vertical/community.js +8 -2
  29. package/dungeons/vertical/devtools-schema.json +69 -48
  30. package/dungeons/vertical/devtools.js +8 -2
  31. package/dungeons/vertical/ecommerce-schema.json +126 -108
  32. package/dungeons/vertical/ecommerce.js +9 -2
  33. package/dungeons/vertical/education-schema.json +5261 -272
  34. package/dungeons/vertical/education.js +16 -3
  35. package/dungeons/vertical/fintech-schema.json +165 -98
  36. package/dungeons/vertical/fintech.js +16 -3
  37. package/dungeons/vertical/fitness-schema.json +69 -47
  38. package/dungeons/vertical/fitness.js +8 -2
  39. package/dungeons/vertical/food-delivery-schema.json +36237 -187
  40. package/dungeons/vertical/food-delivery.js +16 -3
  41. package/dungeons/vertical/gaming-schema.json +103 -59
  42. package/dungeons/vertical/gaming.js +20 -9
  43. package/dungeons/vertical/healthcare-schema.json +70 -48
  44. package/dungeons/vertical/healthcare.js +8 -2
  45. package/dungeons/vertical/insurance-application-schema.json +66 -47
  46. package/dungeons/vertical/insurance-application.js +8 -2
  47. package/dungeons/vertical/logistics-schema.json +60 -38
  48. package/dungeons/vertical/logistics.js +8 -2
  49. package/dungeons/vertical/marketplace-schema.json +65 -43
  50. package/dungeons/vertical/marketplace.js +8 -2
  51. package/dungeons/vertical/media-schema.json +4085 -123
  52. package/dungeons/vertical/media.js +9 -3
  53. package/dungeons/vertical/rpg-schema.json +1984 -147
  54. package/dungeons/vertical/rpg.js +9 -3
  55. package/dungeons/vertical/sass-schema.json +2622 -147
  56. package/dungeons/vertical/sass.js +16 -3
  57. package/dungeons/vertical/social-schema.json +146 -78
  58. package/dungeons/vertical/social.js +16 -3
  59. package/dungeons/vertical/travel-schema.json +57 -35
  60. package/dungeons/vertical/travel.js +8 -2
  61. package/index.js +1 -1
  62. package/lib/core/context.js +9 -0
  63. package/lib/core/storage.js +2 -0
  64. package/lib/orchestrators/user-loop.js +4 -1
  65. package/package.json +1 -1
  66. package/scripts/extract-dungeon-schema.mjs +64 -18
  67. package/types.d.ts +3 -0
@@ -463,6 +463,9 @@
463
463
  },
464
464
  {
465
465
  "event": "account deactivated",
466
+ "isChurnEvent": true,
467
+ "returnLikelihood": 0.15,
468
+ "isStrictEvent": true,
466
469
  "properties": {
467
470
  "reason": [
468
471
  "switched_provider",
@@ -475,53 +478,6 @@
475
478
  }
476
479
  }
477
480
  ],
478
- "superProps": {
479
- "subscription_tier": [
480
- "free",
481
- "team",
482
- "business",
483
- "enterprise"
484
- ],
485
- "platform": [
486
- "web",
487
- "desktop_app",
488
- "cli"
489
- ],
490
- "language": [
491
- "javascript",
492
- "python",
493
- "go",
494
- "rust",
495
- "java",
496
- "typescript"
497
- ]
498
- },
499
- "userProps": {
500
- "dev_role": [
501
- "full_stack"
502
- ],
503
- "segment": [
504
- "full_stack"
505
- ],
506
- "team_size": [
507
- 41,
508
- 35,
509
- 9,
510
- 13,
511
- 21
512
- ],
513
- "repos_connected": [
514
- 0
515
- ],
516
- "org_name": [
517
- "personal"
518
- ],
519
- "experience_level": [
520
- "junior",
521
- "mid",
522
- "senior"
523
- ]
524
- },
525
481
  "funnels": [
526
482
  {
527
483
  "sequence": [
@@ -530,6 +486,7 @@
530
486
  "pipeline configured",
531
487
  "build completed"
532
488
  ],
489
+ "name": "Onboarding",
533
490
  "isFirstFunnel": true,
534
491
  "conversionRate": 45,
535
492
  "timeToConvert": 72,
@@ -541,6 +498,7 @@
541
498
  "deployment completed",
542
499
  "monitoring dashboard viewed"
543
500
  ],
501
+ "name": "Build-Deploy Pipeline",
544
502
  "conversionRate": 40,
545
503
  "timeToConvert": 48,
546
504
  "weight": 5
@@ -552,6 +510,7 @@
552
510
  "build completed",
553
511
  "deployment completed"
554
512
  ],
513
+ "name": "PR Review Flow",
555
514
  "conversionRate": 35,
556
515
  "timeToConvert": 72,
557
516
  "weight": 4
@@ -562,6 +521,7 @@
562
521
  "incident created",
563
522
  "incident resolved"
564
523
  ],
524
+ "name": "Incident Response",
565
525
  "conversionRate": 50,
566
526
  "timeToConvert": 24,
567
527
  "weight": 3
@@ -572,9 +532,70 @@
572
532
  "billing updated",
573
533
  "collaboration invited"
574
534
  ],
535
+ "name": "Upgrade Path",
575
536
  "conversionRate": 20,
576
537
  "timeToConvert": 168,
577
538
  "weight": 2
578
539
  }
579
- ]
540
+ ],
541
+ "superProps": {
542
+ "subscription_tier": [
543
+ "free",
544
+ "team",
545
+ "business",
546
+ "enterprise"
547
+ ],
548
+ "platform": [
549
+ "web",
550
+ "desktop_app",
551
+ "cli"
552
+ ],
553
+ "language": [
554
+ "javascript",
555
+ "python",
556
+ "go",
557
+ "rust",
558
+ "java",
559
+ "typescript"
560
+ ]
561
+ },
562
+ "userProps": {
563
+ "dev_role": [
564
+ "full_stack"
565
+ ],
566
+ "segment": [
567
+ "full_stack"
568
+ ],
569
+ "team_size": [
570
+ 41,
571
+ 35,
572
+ 9,
573
+ 13,
574
+ 21
575
+ ],
576
+ "repos_connected": [
577
+ 0
578
+ ],
579
+ "org_name": [
580
+ "personal"
581
+ ],
582
+ "experience_level": [
583
+ "junior",
584
+ "mid",
585
+ "senior"
586
+ ]
587
+ },
588
+ "scdProps": {
589
+ "subscription_tier": {
590
+ "type": "user",
591
+ "frequency": "month",
592
+ "timing": "fuzzy",
593
+ "max": 6,
594
+ "values": [
595
+ "free",
596
+ "pro",
597
+ "enterprise"
598
+ ]
599
+ }
600
+ }
580
601
  }
@@ -265,10 +265,16 @@ const config = {
265
265
  hasAdSpend: false,
266
266
  percentUsersBornInDataset: 35,
267
267
  hasAvatar: true,
268
- batchSize: 2_500_000,
269
268
  concurrency: 1,
270
269
  writeToDisk: false,
271
- scdProps: {},
270
+ scdProps: {
271
+ subscription_tier: {
272
+ values: ["free", "pro", "enterprise"],
273
+ frequency: "month",
274
+ timing: "fuzzy",
275
+ max: 6
276
+ }
277
+ },
272
278
  mirrorProps: {},
273
279
  lookupTables: [],
274
280
 
@@ -365,113 +365,6 @@
365
365
  }
366
366
  }
367
367
  ],
368
- "superProps": {
369
- "theme": [
370
- "light",
371
- "dark",
372
- "custom"
373
- ]
374
- },
375
- "userProps": {
376
- "title": {
377
- "$type": "string"
378
- },
379
- "luckyNumber": {
380
- "$range": [
381
- 102,
382
- 338
383
- ]
384
- },
385
- "spiritAnimal": [
386
- "duck",
387
- "dog",
388
- "otter",
389
- "penguin",
390
- "cat",
391
- "elephant",
392
- "lion",
393
- "cheetah",
394
- "giraffe",
395
- "zebra",
396
- "rhino",
397
- "hippo",
398
- "whale",
399
- "dolphin",
400
- "shark",
401
- "octopus",
402
- "squid",
403
- "jellyfish",
404
- "starfish",
405
- "seahorse",
406
- "crab",
407
- "lobster",
408
- "shrimp",
409
- "clam",
410
- "snail",
411
- "slug",
412
- "butterfly",
413
- "moth",
414
- "bee",
415
- "wasp",
416
- "ant",
417
- "beetle",
418
- "ladybug",
419
- "caterpillar",
420
- "centipede",
421
- "millipede",
422
- "scorpion",
423
- "spider",
424
- "tarantula",
425
- "tick",
426
- "mite",
427
- "mosquito",
428
- "fly",
429
- "dragonfly",
430
- "damselfly",
431
- "grasshopper",
432
- "cricket",
433
- "locust",
434
- "mantis",
435
- "cockroach",
436
- "termite",
437
- "praying mantis",
438
- "walking stick",
439
- "stick bug",
440
- "leaf insect",
441
- "lacewing",
442
- "aphid",
443
- "cicada",
444
- "thrips",
445
- "psyllid",
446
- "scale insect",
447
- "whitefly",
448
- "mealybug",
449
- "planthopper",
450
- "leafhopper",
451
- "treehopper",
452
- "flea",
453
- "louse",
454
- "bedbug",
455
- "flea beetle",
456
- "weevil",
457
- "longhorn beetle",
458
- "leaf beetle",
459
- "tiger beetle",
460
- "ground beetle",
461
- "lady beetle",
462
- "firefly",
463
- "click beetle",
464
- "rove beetle",
465
- "scarab beetle",
466
- "dung beetle",
467
- "stag beetle",
468
- "rhinoceros beetle",
469
- "hercules beetle",
470
- "goliath beetle",
471
- "jewel beetle",
472
- "tortoise beetle"
473
- ]
474
- },
475
368
  "funnels": [
476
369
  {
477
370
  "sequence": [
@@ -481,6 +374,7 @@
481
374
  "page view",
482
375
  "sign up"
483
376
  ],
377
+ "name": "Signup Flow",
484
378
  "isFirstFunnel": true,
485
379
  "conversionRate": 50,
486
380
  "timeToConvert": 2,
@@ -493,6 +387,7 @@
493
387
  "watch video",
494
388
  "like video"
495
389
  ],
390
+ "name": "Video Likes",
496
391
  "conversionRate": 60,
497
392
  "props": {
498
393
  "videoCategory": [
@@ -534,6 +429,7 @@
534
429
  "watch video",
535
430
  "dislike video"
536
431
  ],
432
+ "name": "Video Dislikes",
537
433
  "conversionRate": 20,
538
434
  "props": {
539
435
  "videoCategory": [
@@ -577,10 +473,132 @@
577
473
  "add to cart",
578
474
  "checkout"
579
475
  ],
476
+ "name": "eCommerce Purchase",
580
477
  "conversionRate": 15,
581
478
  "order": "last-fixed",
582
479
  "weight": 10,
583
480
  "requireRepeats": true
584
481
  }
585
- ]
482
+ ],
483
+ "superProps": {
484
+ "theme": [
485
+ "light",
486
+ "dark",
487
+ "custom"
488
+ ]
489
+ },
490
+ "userProps": {
491
+ "title": {
492
+ "$type": "string"
493
+ },
494
+ "luckyNumber": {
495
+ "$range": [
496
+ 102,
497
+ 338
498
+ ]
499
+ },
500
+ "spiritAnimal": [
501
+ "duck",
502
+ "dog",
503
+ "otter",
504
+ "penguin",
505
+ "cat",
506
+ "elephant",
507
+ "lion",
508
+ "cheetah",
509
+ "giraffe",
510
+ "zebra",
511
+ "rhino",
512
+ "hippo",
513
+ "whale",
514
+ "dolphin",
515
+ "shark",
516
+ "octopus",
517
+ "squid",
518
+ "jellyfish",
519
+ "starfish",
520
+ "seahorse",
521
+ "crab",
522
+ "lobster",
523
+ "shrimp",
524
+ "clam",
525
+ "snail",
526
+ "slug",
527
+ "butterfly",
528
+ "moth",
529
+ "bee",
530
+ "wasp",
531
+ "ant",
532
+ "beetle",
533
+ "ladybug",
534
+ "caterpillar",
535
+ "centipede",
536
+ "millipede",
537
+ "scorpion",
538
+ "spider",
539
+ "tarantula",
540
+ "tick",
541
+ "mite",
542
+ "mosquito",
543
+ "fly",
544
+ "dragonfly",
545
+ "damselfly",
546
+ "grasshopper",
547
+ "cricket",
548
+ "locust",
549
+ "mantis",
550
+ "cockroach",
551
+ "termite",
552
+ "praying mantis",
553
+ "walking stick",
554
+ "stick bug",
555
+ "leaf insect",
556
+ "lacewing",
557
+ "aphid",
558
+ "cicada",
559
+ "thrips",
560
+ "psyllid",
561
+ "scale insect",
562
+ "whitefly",
563
+ "mealybug",
564
+ "planthopper",
565
+ "leafhopper",
566
+ "treehopper",
567
+ "flea",
568
+ "louse",
569
+ "bedbug",
570
+ "flea beetle",
571
+ "weevil",
572
+ "longhorn beetle",
573
+ "leaf beetle",
574
+ "tiger beetle",
575
+ "ground beetle",
576
+ "lady beetle",
577
+ "firefly",
578
+ "click beetle",
579
+ "rove beetle",
580
+ "scarab beetle",
581
+ "dung beetle",
582
+ "stag beetle",
583
+ "rhinoceros beetle",
584
+ "hercules beetle",
585
+ "goliath beetle",
586
+ "jewel beetle",
587
+ "tortoise beetle"
588
+ ]
589
+ },
590
+ "scdProps": {
591
+ "loyalty_tier": {
592
+ "type": "user",
593
+ "frequency": "month",
594
+ "timing": "fuzzy",
595
+ "max": 8,
596
+ "values": [
597
+ "bronze",
598
+ "silver",
599
+ "gold",
600
+ "platinum"
601
+ ]
602
+ }
603
+ }
586
604
  }
@@ -6,6 +6,7 @@ dayjs.extend(utc);
6
6
  import { uid, comma } from 'ak-tools';
7
7
  import { weighNumRange, date, integer, weighChoices, decimal } from "../../lib/utils/utils.js";
8
8
 
9
+ /** @typedef {import("../../types").Dungeon} Config */
9
10
  const itemCategories = ["Books", "Movies", "Music", "Games", "Electronics", "Computers", "Smart Home", "Home", "Garden", "Pet", "Beauty", "Health", "Toys", "Kids", "Baby", "Handmade", "Sports", "Outdoors", "Automotive", "Industrial", "Entertainment", "Art", "Food", "Appliances", "Office", "Wedding", "Software"];
10
11
  const videoCategories = ["funny", "educational", "inspirational", "music", "news", "sports", "cooking", "DIY", "travel", "gaming"];
11
12
  const spiritAnimals = ["duck", "dog", "otter", "penguin", "cat", "elephant", "lion", "cheetah", "giraffe", "zebra", "rhino", "hippo", "whale", "dolphin", "shark", "octopus", "squid", "jellyfish", "starfish", "seahorse", "crab", "lobster", "shrimp", "clam", "snail", "slug", "butterfly", "moth", "bee", "wasp", "ant", "beetle", "ladybug", "caterpillar", "centipede", "millipede", "scorpion", "spider", "tarantula", "tick", "mite", "mosquito", "fly", "dragonfly", "damselfly", "grasshopper", "cricket", "locust", "mantis", "cockroach", "termite", "praying mantis", "walking stick", "stick bug", "leaf insect", "lacewing", "aphid", "cicada", "thrips", "psyllid", "scale insect", "whitefly", "mealybug", "planthopper", "leafhopper", "treehopper", "flea", "louse", "bedbug", "flea beetle", "weevil", "longhorn beetle", "leaf beetle", "tiger beetle", "ground beetle", "lady beetle", "firefly", "click beetle", "rove beetle", "scarab beetle", "dung beetle", "stag beetle", "rhinoceros beetle", "hercules beetle", "goliath beetle", "jewel beetle", "tortoise beetle"];
@@ -148,7 +149,6 @@ const config = {
148
149
  isAnonymous: false,
149
150
  alsoInferFunnels: false,
150
151
  concurrency: 1,
151
- batchSize: 2_500_000,
152
152
  percentUsersBornInDataset: 25,
153
153
  events: [
154
154
  {
@@ -307,7 +307,14 @@ const config = {
307
307
  luckyNumber: weighNumRange(42, 420, .3),
308
308
  spiritAnimal: spiritAnimals
309
309
  },
310
- scdProps: {},
310
+ scdProps: {
311
+ loyalty_tier: {
312
+ values: ["bronze", "silver", "gold", "platinum"],
313
+ frequency: "month",
314
+ timing: "fuzzy",
315
+ max: 8
316
+ }
317
+ },
311
318
  mirrorProps: {},
312
319
 
313
320
  /*