taskplane 0.24.6 → 0.24.7
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.
|
@@ -641,7 +641,9 @@ export function spawnAgent(
|
|
|
641
641
|
contextUsage = event.data.contextUsage;
|
|
642
642
|
emitEvent("context_usage", { ...event.data.contextUsage });
|
|
643
643
|
// Emit telemetry immediately so context % is live in dashboard
|
|
644
|
-
onTelemetry
|
|
644
|
+
if (onTelemetry) {
|
|
645
|
+
onTelemetry({ inputTokens, outputTokens, cacheReadTokens, cacheWriteTokens, costUsd, toolCalls, lastTool, contextUsage });
|
|
646
|
+
}
|
|
645
647
|
}
|
|
646
648
|
break;
|
|
647
649
|
}
|