aiden-shared-calculations-unified 1.0.150 → 1.0.151

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.
@@ -224,8 +224,11 @@ class BehavioralAnomaly {
224
224
  triggered: false,
225
225
  anomalyScore: parseFloat(distance.toFixed(2))
226
226
  };
227
+
227
228
  }
228
229
  }
230
+ async getResult() { return this.results; }
231
+
229
232
  }
230
233
 
231
234
  module.exports = BehavioralAnomaly;
@@ -6,10 +6,8 @@ class AumLeaderboard {
6
6
  return {
7
7
  type: 'meta',
8
8
  category: 'analytics',
9
- // We only need the rankings root data
10
9
  rootDataDependencies: ['rankings'],
11
10
  mandatoryRoots: ['rankings'],
12
- // Daily schedule is standard for leaderboards
13
11
  schedule: { type: 'DAILY' }
14
12
  };
15
13
  }
@@ -42,7 +40,6 @@ class AumLeaderboard {
42
40
  return {
43
41
  username: entry.UserName || entry.username || "Unknown",
44
42
  cid: String(entry.CustomerId || entry.cid),
45
- // Use Extractor for safety
46
43
  aum: RankingsExtractor.getAUMValue(entry)
47
44
  };
48
45
  });
@@ -59,9 +56,12 @@ class AumLeaderboard {
59
56
  // 4. Output Global Result
60
57
  this.results = rankedResult;
61
58
 
62
- // CRITICAL FIX: MetaExecutor requires the data to be returned
59
+ // Critical: Return for MetaExecutor wrapping
63
60
  return this.results;
64
61
  }
62
+
63
+ // CRITICAL FIX: Interface required by ResultCommitter
64
+ async getResult() { return this.results; }
65
65
  }
66
66
 
67
67
  module.exports = AumLeaderboard;
@@ -46,6 +46,7 @@ class GlobalAumPerAsset30D {
46
46
  // CRITICAL FIX: MetaExecutor requires the data to be returned
47
47
  return this.results;
48
48
  }
49
+ async getResult() { return this.results; }
49
50
  }
50
51
 
51
52
  module.exports = GlobalAumPerAsset30D;
@@ -96,6 +96,11 @@ class PIDailyAssetAUM {
96
96
  averageMap: rollingAverage
97
97
  }
98
98
  };
99
+ return this.results;
100
+ }
101
+
102
+ async getResult() {
103
+ return this.results;
99
104
  }
100
105
  }
101
106
 
@@ -89,6 +89,7 @@ class PiAnomalyDetector {
89
89
  }
90
90
 
91
91
  this.results[userId] = alerts.length > 0 ? alerts : null;
92
+ return this.results;
92
93
  }
93
94
 
94
95
  async getResult() {
@@ -47,6 +47,7 @@ class PiAumOverTime {
47
47
  }
48
48
 
49
49
  this.results[userId] = Number(aum.toFixed(2));
50
+ return this.results;
50
51
  }
51
52
 
52
53
  async getResult() {
@@ -79,6 +79,7 @@ class PiCryptoBuyers {
79
79
  isCryptoBuyer,
80
80
  lastCryptoTrade
81
81
  };
82
+ return this.results;
82
83
  }
83
84
 
84
85
  async getResult() {
@@ -166,7 +166,11 @@ class RecommendedPopularInvestors {
166
166
  this.results = {
167
167
  [context.user.id]: recommendations.slice(0, 5)
168
168
  };
169
+ return this.results;
169
170
  }
171
+ // CRITICAL FIX: Interface required by ResultCommitter
172
+ async getResult() { return this.results; }
173
+
170
174
  }
171
175
 
172
176
  module.exports = RecommendedPopularInvestors;
@@ -55,9 +55,11 @@ class RiskLeaderboard {
55
55
 
56
56
  this.results = rankedResult;
57
57
 
58
- // CRITICAL FIX: MetaExecutor requires the data to be returned
59
58
  return this.results;
60
59
  }
60
+
61
+ // CRITICAL FIX: Interface required by ResultCommitter
62
+ async getResult() { return this.results; }
61
63
  }
62
64
 
63
65
  module.exports = RiskLeaderboard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiden-shared-calculations-unified",
3
- "version": "1.0.150",
3
+ "version": "1.0.151",
4
4
  "description": "Shared calculation modules for the BullTrackers Computation System.",
5
5
  "main": "index.js",
6
6
  "files": [