@ramarivera/coding-agent-langfuse 0.1.11 → 0.1.12
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.
- package/dist/backfill.js +1 -3
- package/package.json +1 -1
package/dist/backfill.js
CHANGED
|
@@ -569,9 +569,7 @@ function opencodeEvents(homeDir, rowLimit) {
|
|
|
569
569
|
const sessionId = asString(message.session_id);
|
|
570
570
|
const session = sessionsById.get(sessionId);
|
|
571
571
|
const tokens = normalizeUsage(parseMaybeJson(message.tokens));
|
|
572
|
-
const usage = tokens
|
|
573
|
-
? { ...tokens, cost: asNumber(message.cost) ?? tokens.cost }
|
|
574
|
-
: normalizeUsage(parseMaybeJson(message.usage));
|
|
572
|
+
const usage = tokens ?? normalizeUsage(parseMaybeJson(message.usage));
|
|
575
573
|
events.push({
|
|
576
574
|
agent: "opencode",
|
|
577
575
|
sourcePath: db,
|