mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/analysis.js
This commit is contained in:
1 parent
ae4ef3889c
commit
e6b098679d
3 files changed
+3
-14
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user