usage-tab 1.0.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.
- package/LICENSE +21 -0
- package/README.md +560 -0
- package/dist/index.cjs +2173 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +420 -0
- package/dist/index.d.ts +420 -0
- package/dist/index.js +2150 -0
- package/dist/index.js.map +1 -0
- package/package.json +73 -0
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "usage-tab",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Deterministic LLM cost calculation from provider usage objects using versioned pricing data.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"llm",
|
|
7
|
+
"pricing",
|
|
8
|
+
"cost",
|
|
9
|
+
"tokens",
|
|
10
|
+
"openai",
|
|
11
|
+
"anthropic",
|
|
12
|
+
"gemini",
|
|
13
|
+
"usage",
|
|
14
|
+
"billing",
|
|
15
|
+
"fixed-point"
|
|
16
|
+
],
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "Dmitrii Sergeev",
|
|
20
|
+
"url": "https://github.com/SergeevDmitry"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/SergeevDmitry/llm-kit/tree/master/packages/usage-tab#readme",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/SergeevDmitry/llm-kit.git",
|
|
26
|
+
"directory": "packages/usage-tab"
|
|
27
|
+
},
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/SergeevDmitry/llm-kit/issues"
|
|
30
|
+
},
|
|
31
|
+
"type": "module",
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=20"
|
|
35
|
+
},
|
|
36
|
+
"main": "./dist/index.cjs",
|
|
37
|
+
"module": "./dist/index.js",
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"types": {
|
|
42
|
+
"import": "./dist/index.d.ts",
|
|
43
|
+
"require": "./dist/index.d.cts"
|
|
44
|
+
},
|
|
45
|
+
"import": "./dist/index.js",
|
|
46
|
+
"require": "./dist/index.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./package.json": "./package.json"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist",
|
|
52
|
+
"README.md",
|
|
53
|
+
"LICENSE"
|
|
54
|
+
],
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "tsup",
|
|
60
|
+
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
61
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"test:coverage": "vitest run --coverage",
|
|
64
|
+
"bench": "vitest bench --run",
|
|
65
|
+
"generate:registry": "tsx ../../scripts/generate-model-registry.ts",
|
|
66
|
+
"verify:registry": "tsx ../../scripts/generate-model-registry.ts --check"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@llm-kit/build-config": "workspace:*",
|
|
70
|
+
"@llm-kit/model-registry": "workspace:*",
|
|
71
|
+
"@llm-kit/test-utils": "workspace:*"
|
|
72
|
+
}
|
|
73
|
+
}
|