@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.
Files changed (2) hide show
  1. package/dist/backfill.js +1 -3
  2. 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramarivera/coding-agent-langfuse",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Universal coding-agent Langfuse backfiller and live OTLP helpers",
5
5
  "type": "module",
6
6
  "license": "MIT",