mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 23:12:30 +02:00
feat: sync ecc2 cost tracker metrics
This commit is contained in:
parent
cf9c68846c
commit
08f61f667d
8 changed files with 352 additions and 13 deletions
|
|
@ -55,7 +55,7 @@ process.stdin.on('end', () => {
|
|||
const outputTokens = toNumber(usage.output_tokens || usage.completion_tokens || 0);
|
||||
|
||||
const model = String(input.model || input._cursor?.model || process.env.CLAUDE_MODEL || 'unknown');
|
||||
const sessionId = String(process.env.CLAUDE_SESSION_ID || 'default');
|
||||
const sessionId = String(process.env.ECC_SESSION_ID || process.env.CLAUDE_SESSION_ID || 'default');
|
||||
|
||||
const metricsDir = path.join(getClaudeDir(), 'metrics');
|
||||
ensureDir(metricsDir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue