🔖 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
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250813-201110", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/analysis.js", "timestamp": "2025-08-13T20:11:10Z", "type": "pre-edit", "original_branch": "alpha-89"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250813-201112", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/analysis.js", "timestamp": "2025-08-13T20:11:12Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 96 ++++++++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1755115737.json | 1 + .claude/checkpoints/1755115739.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/analysis.js | 34 +++++------ 7 files changed, 120 insertions(+), 20 deletions(-) "}
+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