@diogonzafe/tokenwatch 0.5.0 → 0.7.0

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.
@@ -1,4 +1,4 @@
1
- import { a as Tracker } from './index-CJKk1hHw.cjs';
1
+ import { a as Tracker } from './index-D9xq0RNg.cjs';
2
2
 
3
3
  interface TokenUsage {
4
4
  promptTokens?: number;
@@ -1,4 +1,4 @@
1
- import { a as Tracker } from './index-CJKk1hHw.js';
1
+ import { a as Tracker } from './index-D9xq0RNg.js';
2
2
 
3
3
  interface TokenUsage {
4
4
  promptTokens?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diogonzafe/tokenwatch",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Transparent wrapper to track LLM API costs in real-time by session, user and model",
5
5
  "author": "diogonzafe",
6
6
  "license": "MIT",
@@ -23,6 +23,11 @@
23
23
  "types": "./dist/langchain.d.ts",
24
24
  "import": "./dist/langchain.js",
25
25
  "require": "./dist/langchain.cjs"
26
+ },
27
+ "./exporters": {
28
+ "types": "./dist/exporters.d.ts",
29
+ "import": "./dist/exporters.js",
30
+ "require": "./dist/exporters.cjs"
26
31
  }
27
32
  },
28
33
  "bin": {
@@ -44,6 +49,7 @@
44
49
  "zod": "^3.23.8"
45
50
  },
46
51
  "devDependencies": {
52
+ "@opentelemetry/api": "^1.9.1",
47
53
  "@types/better-sqlite3": "^7.6.12",
48
54
  "@types/node": "^20.17.0",
49
55
  "tsup": "^8.3.5",
@@ -53,12 +59,13 @@
53
59
  "peerDependencies": {
54
60
  "@anthropic-ai/sdk": ">=0.26.0",
55
61
  "@google/generative-ai": ">=0.21.0",
62
+ "@langchain/core": ">=0.1.0",
63
+ "@opentelemetry/api": ">=1.0.0",
56
64
  "better-sqlite3": ">=11.0.0",
57
65
  "mongodb": ">=6.0.0",
58
66
  "mysql2": ">=3.0.0",
59
67
  "openai": ">=4.68.0",
60
- "pg": ">=8.0.0",
61
- "@langchain/core": ">=0.1.0"
68
+ "pg": ">=8.0.0"
62
69
  },
63
70
  "peerDependenciesMeta": {
64
71
  "openai": {
@@ -84,6 +91,9 @@
84
91
  },
85
92
  "@langchain/core": {
86
93
  "optional": true
94
+ },
95
+ "@opentelemetry/api": {
96
+ "optional": true
87
97
  }
88
98
  },
89
99
  "keywords": [
package/prices.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "updated_at": "2026-04-22",
2
+ "updated_at": "2026-04-24",
3
3
  "source": "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json",
4
4
  "models": {
5
5
  "gpt-4o": {
@@ -1316,6 +1316,12 @@
1316
1316
  "cachedInput": 0.3,
1317
1317
  "cacheCreationInput": 3.75,
1318
1318
  "maxInputTokens": 1000000
1319
+ },
1320
+ "gpt-5.5": {
1321
+ "input": 5,
1322
+ "output": 30,
1323
+ "cachedInput": 0.5,
1324
+ "maxInputTokens": 272000
1319
1325
  }
1320
1326
  }
1321
1327
  }
package/dist/cli.d.ts DELETED
@@ -1 +0,0 @@
1
- #!/usr/bin/env node