🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/analysis.js

This commit is contained in:
rUv committed 2025-08-13 20:12:21 +00:00
1 parent ae4ef3889c
commit e6b098679d
3 files changed
+3 -14

No files matched your search

+1 -14
View File
@@ -310,20 +310,7 @@ EXAMPLES:
`);
}
// Helper functions for real token tracking
async function getRealTokenUsage(agent) {
// Check if Claude Code OpenTelemetry is configured
const isOTelEnabled = process.env.CLAUDE_CODE_ENABLE_TELEMETRY === '1';
if (!isOTelEnabled) {
// Try to read from local metrics file if OTel is not enabled
return await getLocalTokenMetrics(agent);
}
// Get metrics from OpenTelemetry
return await getOTelTokenMetrics(agent);
}
// Helper functions for real token tracking are now imported from token-tracker.js
async function getLocalTokenMetrics(agent) {
// Look for Claude Code metrics in standard locations