Skip to content

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

fix(telemetry): renames _aggregateTelemetry to aggregateTelemetry to avoid confusion about it being a private function (it's not)

Eyal Toledano8a3b611fc2f3
diff --git a/scripts/modules/task-manager/expand-all-tasks.js b/scripts/modules/task-manager/expand-all-tasks.js
index 128aa972..57d19c6a 100644
--- a/scripts/modules/task-manager/expand-all-tasks.js
+++ b/scripts/modules/task-manager/expand-all-tasks.js
@@ -6,7 +6,7 @@ import {
} from '../ui.js';
import expandTask from './expand-task.js';
import { getDebugFlag } from '../config-manager.js';
-import { _aggregateTelemetry } from '../utils.js';
+import { aggregateTelemetry } from '../utils.js';
import chalk from 'chalk';
import boxen from 'boxen';
@@ -153,7 +153,7 @@ async function expandAllTasks(
);
// Aggregate the collected telemetry data
- const aggregatedTelemetryData = _aggregateTelemetry(
+ const aggregatedTelemetryData = aggregateTelemetry(
allTelemetryData,
'expand-all-tasks'
);
diff --git a/scripts/modules/utils.js b/scripts/modules/utils.js
index 176fd97c..1b4b5f4c 100644
--- a/scripts/modules/utils.js
+++ b/scripts/modules/utils.js
@@ -552,7 +552,7 @@ function detectCamelCaseFlags(args) {
* @param {string} overallCommandName - The name for the aggregated command.
* @returns {Object|null} Aggregated telemetry object or null if input is empty.
*/
-function _aggregateTelemetry(telemetryArray, overallCommandName) {
+function aggregateTelemetry(telemetryArray, overallCommandName) {
if (!telemetryArray || telemetryArray.length === 0) {
return null;
}
@@ -624,5 +624,5 @@ export {
addComplexityToTask,
resolveEnvVariable,
findProjectRoot,
- _aggregateTelemetry
+ aggregateTelemetry
};