make-mp-data 2.0.22 → 2.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.
- package/dungeons/ai-chat-analytics-ed.js +274 -0
- package/dungeons/business.js +0 -1
- package/dungeons/complex.js +0 -1
- package/dungeons/experiments.js +0 -1
- package/dungeons/gaming.js +47 -14
- package/dungeons/media.js +5 -6
- package/dungeons/mil.js +296 -0
- package/dungeons/money2020-ed-also.js +277 -0
- package/dungeons/money2020-ed.js +579 -0
- package/dungeons/sanity.js +0 -1
- package/dungeons/scd.js +0 -1
- package/dungeons/simple.js +57 -18
- package/dungeons/student-teacher.js +0 -1
- package/dungeons/text-generation.js +706 -0
- package/dungeons/userAgent.js +1 -2
- package/entry.js +4 -0
- package/index.js +63 -38
- package/lib/cli/cli.js +7 -8
- package/lib/core/config-validator.js +11 -13
- package/lib/core/context.js +13 -1
- package/lib/core/storage.js +45 -13
- package/lib/generators/adspend.js +1 -1
- package/lib/generators/events.js +18 -17
- package/lib/generators/funnels.js +293 -240
- package/lib/generators/text-bak-old.js +1121 -0
- package/lib/generators/text.js +1173 -0
- package/lib/orchestrators/mixpanel-sender.js +1 -1
- package/lib/templates/abbreviated.d.ts +13 -3
- package/lib/templates/defaults.js +311 -169
- package/lib/templates/hooks-instructions.txt +434 -0
- package/lib/templates/phrases-bak.js +925 -0
- package/lib/templates/phrases.js +2066 -0
- package/lib/templates/{instructions.txt → schema-instructions.txt} +78 -1
- package/lib/templates/scratch-dungeon-template.js +1 -1
- package/lib/templates/textQuickTest.js +172 -0
- package/lib/utils/ai.js +51 -2
- package/lib/utils/utils.js +145 -7
- package/package.json +8 -5
- package/types.d.ts +322 -7
- 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 (
|
|
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
|
-
*
|
|
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
|
/**
|