make-mp-data 2.0.23 → 2.1.1

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 (38) hide show
  1. package/dungeons/ai-chat-analytics-ed.js +274 -0
  2. package/dungeons/business.js +0 -1
  3. package/dungeons/complex.js +0 -1
  4. package/dungeons/experiments.js +0 -1
  5. package/dungeons/gaming.js +47 -14
  6. package/dungeons/media.js +5 -6
  7. package/dungeons/mil.js +296 -0
  8. package/dungeons/money2020-ed-also.js +277 -0
  9. package/dungeons/money2020-ed.js +579 -0
  10. package/dungeons/sanity.js +0 -1
  11. package/dungeons/scd.js +0 -1
  12. package/dungeons/simple.js +57 -18
  13. package/dungeons/student-teacher.js +0 -1
  14. package/dungeons/text-generation.js +706 -0
  15. package/dungeons/userAgent.js +1 -2
  16. package/entry.js +3 -0
  17. package/index.js +13 -40
  18. package/lib/cli/cli.js +0 -7
  19. package/lib/core/config-validator.js +6 -8
  20. package/lib/generators/adspend.js +1 -1
  21. package/lib/generators/events.js +1 -1
  22. package/lib/generators/funnels.js +293 -242
  23. package/lib/generators/text-bak-old.js +1121 -0
  24. package/lib/generators/text.js +1173 -0
  25. package/lib/orchestrators/mixpanel-sender.js +1 -1
  26. package/lib/templates/abbreviated.d.ts +13 -3
  27. package/lib/templates/defaults.js +311 -169
  28. package/lib/templates/hooks-instructions.txt +434 -0
  29. package/lib/templates/phrases-bak.js +925 -0
  30. package/lib/templates/phrases.js +2066 -0
  31. package/lib/templates/{instructions.txt → schema-instructions.txt} +78 -1
  32. package/lib/templates/scratch-dungeon-template.js +1 -1
  33. package/lib/templates/textQuickTest.js +172 -0
  34. package/lib/utils/ai.js +51 -2
  35. package/lib/utils/utils.js +29 -18
  36. package/package.json +7 -5
  37. package/types.d.ts +319 -4
  38. package/lib/utils/chart.js +0 -206
@@ -103,7 +103,7 @@ export async function sendToMixpanel(context) {
103
103
  }
104
104
 
105
105
  // Import ad spend data
106
- if (groupEventData || isBATCH_MODE) {
106
+ if (adSpendData || isBATCH_MODE) {
107
107
  log(`importing ad spend data to mixpanel...\n`);
108
108
  let adSpendDataToImport = u.deepClone(adSpendData);
109
109
  if (isBATCH_MODE) {
@@ -1,10 +1,20 @@
1
1
  /**
2
- * A "validValue" can be a primitive, an array of primitives,
3
- * or a function that returns a primitive or an array of primitives.
2
+ * A "validValue" can be a primitive, an array of primitives,
3
+ * a function that returns a primitive or an array of primitives,
4
+ * or a text generator object (from createGenerator).
4
5
  * This is the building block for all property values in the dungeon.
5
6
  */
6
7
  type Primitives = string | number | boolean | Date;
7
- type ValueValid = Primitives | Primitives[] | (() => Primitives | Primitives[]);
8
+ type ValueValid = Primitives | Primitives[] | (() => Primitives | Primitives[]) | TextGenerator;
9
+
10
+ /**
11
+ * Text generator for creating realistic, contextual text content.
12
+ * Created using createGenerator() with various style, tone, and keyword options.
13
+ */
14
+ interface TextGenerator {
15
+ generateOne(): string;
16
+ next(): string;
17
+ }
8
18
 
9
19
 
10
20
  /**