@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
@@ -1,255 +0,0 @@
1
- {
2
- "schema": {
3
- "token": "",
4
- "seed": "foo bar",
5
- "numDays": 90,
6
- "numEvents": 50000,
7
- "numUsers": 500,
8
- "format": "json",
9
- "region": "US",
10
- "hasAnonIds": false,
11
- "hasSessionIds": false,
12
- "alsoInferFunnels": true,
13
- "writeToDisk": false,
14
- "concurrency": 1,
15
- "funnels": [
16
- {
17
- "sequence": [
18
- "qux",
19
- "garply",
20
- "durtle",
21
- "linny",
22
- "fonk",
23
- "crumn",
24
- "yak"
25
- ]
26
- },
27
- {
28
- "sequence": [
29
- "foo",
30
- "bar",
31
- "baz"
32
- ],
33
- "isFirstFunnel": true
34
- }
35
- ],
36
- "events": [
37
- {
38
- "event": "foo",
39
- "weight": 10,
40
- "properties": {}
41
- },
42
- {
43
- "event": "bar",
44
- "weight": 9,
45
- "isFirstEvent": true,
46
- "properties": {}
47
- },
48
- {
49
- "event": "baz",
50
- "weight": 8,
51
- "properties": {}
52
- },
53
- {
54
- "event": "qux",
55
- "weight": 7,
56
- "properties": {}
57
- },
58
- {
59
- "event": "garply",
60
- "weight": 6,
61
- "properties": {}
62
- },
63
- {
64
- "event": "durtle",
65
- "weight": 5,
66
- "properties": {}
67
- },
68
- {
69
- "event": "linny",
70
- "weight": 4,
71
- "properties": {}
72
- },
73
- {
74
- "event": "fonk",
75
- "weight": 3,
76
- "properties": {}
77
- },
78
- {
79
- "event": "crumn",
80
- "weight": 2,
81
- "properties": {}
82
- },
83
- {
84
- "event": "yak",
85
- "weight": 1,
86
- "properties": {}
87
- }
88
- ],
89
- "superProps": {
90
- "color": [
91
- "red",
92
- "orange",
93
- "yellow",
94
- "green",
95
- "blue",
96
- "indigo",
97
- "violet"
98
- ],
99
- "number": {
100
- "functionName": "integer",
101
- "args": []
102
- }
103
- },
104
- "userProps": {
105
- "title": {
106
- "functionName": "arrow",
107
- "body": "function () { [native code] }"
108
- },
109
- "luckyNumber": [
110
- 65,
111
- 191,
112
- 230,
113
- 411,
114
- 104,
115
- 142,
116
- 202,
117
- 220,
118
- 389,
119
- 289,
120
- 74,
121
- 233,
122
- 267,
123
- 158,
124
- 307,
125
- 144,
126
- 172,
127
- 132,
128
- 188,
129
- 356,
130
- 254,
131
- 289,
132
- 70,
133
- 183,
134
- 251,
135
- 199,
136
- 224,
137
- 201,
138
- 103,
139
- 255,
140
- 306,
141
- 133,
142
- 125,
143
- 335,
144
- 209,
145
- 138,
146
- 374,
147
- 127,
148
- 194,
149
- 122,
150
- 261,
151
- 227,
152
- 201,
153
- 144,
154
- 231,
155
- 184,
156
- 194,
157
- 202,
158
- 184,
159
- 248
160
- ],
161
- "spiritAnimal": [
162
- "duck",
163
- "dog",
164
- "otter",
165
- "penguin",
166
- "cat",
167
- "elephant",
168
- "lion",
169
- "cheetah",
170
- "giraffe",
171
- "zebra",
172
- "rhino",
173
- "hippo",
174
- "whale",
175
- "dolphin",
176
- "shark",
177
- "octopus",
178
- "squid",
179
- "jellyfish",
180
- "starfish",
181
- "seahorse",
182
- "crab",
183
- "lobster",
184
- "shrimp",
185
- "clam",
186
- "snail",
187
- "slug",
188
- "butterfly",
189
- "moth",
190
- "bee",
191
- "wasp",
192
- "ant",
193
- "beetle",
194
- "ladybug",
195
- "caterpillar",
196
- "centipede",
197
- "millipede",
198
- "scorpion",
199
- "spider",
200
- "tarantula",
201
- "tick",
202
- "mite",
203
- "mosquito",
204
- "fly",
205
- "dragonfly",
206
- "damselfly",
207
- "grasshopper",
208
- "cricket",
209
- "locust",
210
- "mantis",
211
- "cockroach",
212
- "termite",
213
- "praying mantis",
214
- "walking stick",
215
- "stick bug",
216
- "leaf insect",
217
- "lacewing",
218
- "aphid",
219
- "cicada",
220
- "thrips",
221
- "psyllid",
222
- "scale insect",
223
- "whitefly",
224
- "mealybug",
225
- "planthopper",
226
- "leafhopper",
227
- "treehopper",
228
- "flea",
229
- "louse",
230
- "bedbug",
231
- "flea beetle",
232
- "weevil",
233
- "longhorn beetle",
234
- "leaf beetle",
235
- "tiger beetle",
236
- "ground beetle",
237
- "lady beetle",
238
- "firefly",
239
- "click beetle",
240
- "rove beetle",
241
- "scarab beetle",
242
- "dung beetle",
243
- "stag beetle",
244
- "rhinoceros beetle",
245
- "hercules beetle",
246
- "goliath beetle",
247
- "jewel beetle",
248
- "tortoise beetle"
249
- ]
250
- }
251
- },
252
- "hooks": "function (record, type, meta) {\n\t\t// --- user hook: tag power users based on luckyNumber ---\n\t\tif (type === \"user\") {\n\t\t\trecord.userTier = record.luckyNumber > 300 ? \"power\" : \"regular\";\n\t\t\treturn record;\n\t\t}\n\n\t\t// --- event hook: add an engagement score based on event type ---\n\t\tif (type === \"event\") {\n\t\t\tconst highEngagement = [\"fonk\", \"crumn\", \"yak\"];\n\t\t\tconst midEngagement = [\"garply\", \"durtle\", \"linny\"];\n\t\t\tif (highEngagement.includes(record.event)) {\n\t\t\t\trecord.engagement_score = chance.integer({ min: 70, max: 100 });\n\t\t\t} else if (midEngagement.includes(record.event)) {\n\t\t\t\trecord.engagement_score = chance.integer({ min: 30, max: 69 });\n\t\t\t} else {\n\t\t\t\trecord.engagement_score = chance.integer({ min: 1, max: 29 });\n\t\t\t}\n\t\t\treturn record;\n\t\t}\n\n\t\t// --- everything hook: low-activity users lose their last few events (churn simulation) ---\n\t\tif (type === \"everything\") {\n\t\t\tif (record.length > 3 && record.length < 8) {\n\t\t\t\t// users with few events lose the tail end — simulates churn\n\t\t\t\treturn record.slice(0, Math.ceil(record.length * 0.6));\n\t\t\t}\n\t\t\treturn record;\n\t\t}\n\n\t\treturn record;\n\t}",
253
- "timestamp": "2026-04-10T01:38:56.166Z",
254
- "version": "4.0"
255
- }