mohdel 0.104.2 → 0.104.4

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/js/session/run.js CHANGED
@@ -357,6 +357,8 @@ function finalizeSpanOk (span, result, sawDelta = false, maxInterFrameMs = 0) {
357
357
  'mohdel.stream': !!sawDelta,
358
358
  'mohdel.max_inter_frame_ms': maxInterFrameMs
359
359
  }
360
+ if (result?.cacheWriteInputTokens) attrs['mohdel.cache_write_input_tokens'] = result.cacheWriteInputTokens
361
+ if (result?.cacheReadInputTokens) attrs['mohdel.cache_read_input_tokens'] = result.cacheReadInputTokens
360
362
  if (result?.cost != null) attrs['mohdel.cost'] = result.cost
361
363
  if (result?.warning) attrs['mohdel.warning'] = result.warning
362
364
  if (result?.timestamps?.start && result?.timestamps?.first) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mohdel",
3
- "version": "0.104.2",
3
+ "version": "0.104.4",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Christophe Le Bars",
@@ -87,7 +87,7 @@
87
87
  "@opentelemetry/exporter-trace-otlp-grpc": "^0.217.0",
88
88
  "@opentelemetry/sdk-node": "^0.217.0",
89
89
  "chalk": "^5.4.0",
90
- "mohdel-thin-gate-linux-x64-gnu": "0.104.2"
90
+ "mohdel-thin-gate-linux-x64-gnu": "0.104.4"
91
91
  },
92
92
  "dependencies": {
93
93
  "@anthropic-ai/sdk": "^0.95.1",