make-mp-data 1.5.55 → 2.0.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 (56) hide show
  1. package/.claude/settings.local.json +20 -0
  2. package/.gcloudignore +2 -1
  3. package/.vscode/launch.json +6 -3
  4. package/.vscode/settings.json +31 -2
  5. package/dungeons/media.js +371 -0
  6. package/index.js +354 -1757
  7. package/{components → lib/cli}/cli.js +21 -6
  8. package/lib/cloud-function.js +20 -0
  9. package/lib/core/config-validator.js +248 -0
  10. package/lib/core/context.js +180 -0
  11. package/lib/core/storage.js +268 -0
  12. package/{components → lib/data}/defaults.js +17 -14
  13. package/lib/generators/adspend.js +133 -0
  14. package/lib/generators/events.js +242 -0
  15. package/lib/generators/funnels.js +330 -0
  16. package/lib/generators/mirror.js +168 -0
  17. package/lib/generators/profiles.js +93 -0
  18. package/lib/generators/scd.js +102 -0
  19. package/lib/orchestrators/mixpanel-sender.js +222 -0
  20. package/lib/orchestrators/user-loop.js +194 -0
  21. package/lib/orchestrators/worker-manager.js +200 -0
  22. package/{components → lib/utils}/ai.js +8 -36
  23. package/{components → lib/utils}/chart.js +9 -9
  24. package/{components → lib/utils}/project.js +4 -4
  25. package/{components → lib/utils}/utils.js +35 -23
  26. package/package.json +19 -12
  27. package/scripts/dana.mjs +137 -0
  28. package/scripts/new-dungeon.sh +7 -6
  29. package/scripts/update-deps.sh +2 -1
  30. package/tests/cli.test.js +28 -25
  31. package/tests/e2e.test.js +38 -36
  32. package/tests/int.test.js +151 -56
  33. package/tests/testSoup.mjs +1 -1
  34. package/tests/unit.test.js +15 -14
  35. package/tsconfig.json +1 -1
  36. package/types.d.ts +76 -18
  37. package/vitest.config.js +47 -0
  38. package/dungeons/adspend.js +0 -96
  39. package/dungeons/anon.js +0 -104
  40. package/dungeons/big.js +0 -224
  41. package/dungeons/business.js +0 -327
  42. package/dungeons/complex.js +0 -396
  43. package/dungeons/foobar.js +0 -241
  44. package/dungeons/funnels.js +0 -220
  45. package/dungeons/gaming-experiments.js +0 -323
  46. package/dungeons/gaming.js +0 -314
  47. package/dungeons/governance.js +0 -288
  48. package/dungeons/mirror.js +0 -129
  49. package/dungeons/sanity.js +0 -118
  50. package/dungeons/scd.js +0 -205
  51. package/dungeons/session-replay.js +0 -175
  52. package/dungeons/simple.js +0 -150
  53. package/dungeons/userAgent.js +0 -190
  54. package/log.json +0 -1067
  55. package/tests/jest.config.js +0 -47
  56. /package/{components → lib/utils}/prompt.txt +0 -0
@@ -1,47 +0,0 @@
1
-
2
-
3
- const isDebugMode = process.env.NODE_OPTIONS?.includes('--inspect') || process.env.NODE_OPTIONS?.includes('--inspect-brk');
4
-
5
- /** @type {import('jest').Config} */
6
- const jestConfig = {
7
- verbose: isDebugMode,
8
- watch: false,
9
- projects: [
10
- {
11
- "displayName": "cli",
12
- "testMatch": [
13
- "<rootDir>/tests/cli.test.js"
14
- ],
15
- maxWorkers: 1
16
- },
17
- {
18
- "displayName": "e2e",
19
- "testMatch": [
20
- "<rootDir>/tests/e2e.test.js"
21
- ],
22
- // @ts-ignore
23
- maxWorkers: 1
24
-
25
-
26
- },
27
- {
28
- displayName: "unit",
29
- testMatch: [
30
- "<rootDir>/tests/unit.test.js"
31
- ],
32
- // @ts-ignore
33
- maxWorkers: "50%"
34
- },
35
- {
36
- displayName: "integration",
37
- testMatch: [
38
- "<rootDir>/tests/int.test.js"
39
- ],
40
- // @ts-ignore
41
- maxWorkers: "50%"
42
- },
43
- ],
44
- coverageDirectory: "./tests/coverage",
45
- };
46
-
47
- module.exports = jestConfig;
File without changes