@nuvin/nuvin-core 1.9.1 → 1.9.2

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/VERSION CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "1.9.1",
3
- "commit": "a486158"
2
+ "version": "1.9.2",
3
+ "commit": "28ede6b"
4
4
  }
package/dist/index.js CHANGED
@@ -99,6 +99,9 @@ var InMemoryMetricsPort = class {
99
99
  this.snapshot.currentCompletionTokens = completion;
100
100
  this.snapshot.currentCachedTokens = cached;
101
101
  this.snapshot.currentCost = actualCost;
102
+ if (this.snapshot.contextWindowLimit && prompt > 0) {
103
+ this.snapshot.contextWindowUsage = prompt / this.snapshot.contextWindowLimit;
104
+ }
102
105
  this.emit();
103
106
  }
104
107
  recordToolCall() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvin/nuvin-core",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "main": "dist/index.js",