-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
120 lines (120 loc) · 3.08 KB
/
Copy pathpackage.json
File metadata and controls
120 lines (120 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "tokenmeter",
"version": "0.9.11",
"description": "OpenTelemetry-native cost tracking for AI workflows",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./processor": {
"types": "./dist/processor/TokenMeterProcessor.d.ts",
"import": "./dist/processor/TokenMeterProcessor.js"
},
"./exporter": {
"types": "./dist/exporter/index.d.ts",
"import": "./dist/exporter/index.js"
},
"./query": {
"types": "./dist/query/index.d.ts",
"import": "./dist/query/index.js"
},
"./inngest": {
"types": "./dist/integrations/inngest/index.d.ts",
"import": "./dist/integrations/inngest/index.js"
},
"./next": {
"types": "./dist/integrations/next/index.d.ts",
"import": "./dist/integrations/next/index.js"
},
"./client": {
"types": "./dist/client/index.d.ts",
"import": "./dist/client/index.js"
},
"./vercel-ai": {
"types": "./dist/integrations/vercel-ai/index.d.ts",
"import": "./dist/integrations/vercel-ai/index.js"
}
},
"scripts": {
"build": "npm run build:manifest && tsc && npm run build:pricing",
"build:manifest": "npx tsx scripts/build-manifest.ts",
"build:pricing": "mkdir -p dist/pricing && cp src/pricing/manifest.json dist/pricing/manifest.json",
"dev": "tsc --watch",
"lint": "eslint . --max-warnings 0",
"check-types": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lminne/tokenmeter.git"
},
"homepage": "https://github.com/lminne/tokenmeter#readme",
"bugs": {
"url": "https://github.com/lminne/tokenmeter/issues"
},
"author": "Lukas Minnebeck",
"license": "MIT",
"dependencies": {
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/core": "^1.25.0"
},
"peerDependencies": {
"@opentelemetry/sdk-trace-base": "^1.25.0",
"@opentelemetry/sdk-trace-node": "^1.25.0",
"pg": "^8.0.0",
"inngest": "^3.0.0"
},
"peerDependenciesMeta": {
"@opentelemetry/sdk-trace-base": {
"optional": true
},
"@opentelemetry/sdk-trace-node": {
"optional": true
},
"pg": {
"optional": true
},
"inngest": {
"optional": true
}
},
"devDependencies": {
"@anthropic-ai/sdk": "^0.39.0",
"@eslint/js": "^9.17.0",
"@fal-ai/client": "^1.8.0",
"@opentelemetry/context-async-hooks": "^2.2.0",
"@opentelemetry/sdk-trace-base": "^1.25.0",
"@opentelemetry/sdk-trace-node": "^1.25.0",
"@types/node": "^22.15.3",
"@types/pg": "^8.11.6",
"eslint": "^9.17.0",
"openai": "^4.77.0",
"pg": "^8.13.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.18.2",
"vitest": "^2.1.0"
},
"keywords": [
"ai",
"cost-tracking",
"opentelemetry",
"otel",
"tracing",
"openai",
"anthropic",
"fal",
"llm",
"tokens",
"billing",
"observability"
]
}