@brglng/pi-currency-cost 0.1.0 → 0.1.1
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/config/config.example.json +1 -1
- package/package.json +13 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/brglng/pi-
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/brglng/pi-currency-cost/main/schemas/config.schema.json",
|
|
3
3
|
"currencies": {
|
|
4
4
|
"CNY": {
|
|
5
5
|
"usdRate": 0.147
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brglng/pi-currency-cost",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Convert configured provider/model usage costs to USD for Pi sessions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,6 +18,14 @@
|
|
|
18
18
|
"README.zh.md",
|
|
19
19
|
"LICENSE"
|
|
20
20
|
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"check": "tsc --noEmit",
|
|
23
|
+
"build:types": "rollup -c rollup.dts.config.mjs",
|
|
24
|
+
"prepack": "pnpm run build:types",
|
|
25
|
+
"test": "vitest run",
|
|
26
|
+
"lint:md": "rumdl check *.md",
|
|
27
|
+
"lint": "biome check . && pnpm run lint:md"
|
|
28
|
+
},
|
|
21
29
|
"keywords": [
|
|
22
30
|
"pi-package",
|
|
23
31
|
"pi",
|
|
@@ -36,12 +44,11 @@
|
|
|
36
44
|
"license": "MPL-2.0",
|
|
37
45
|
"repository": {
|
|
38
46
|
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/brglng/pi-
|
|
40
|
-
"directory": "packages/pi-currency-cost"
|
|
47
|
+
"url": "git+https://github.com/brglng/pi-currency-cost.git"
|
|
41
48
|
},
|
|
42
|
-
"homepage": "https://github.com/brglng/pi-
|
|
49
|
+
"homepage": "https://github.com/brglng/pi-currency-cost#readme",
|
|
43
50
|
"bugs": {
|
|
44
|
-
"url": "https://github.com/brglng/pi-
|
|
51
|
+
"url": "https://github.com/brglng/pi-currency-cost/issues"
|
|
45
52
|
},
|
|
46
53
|
"engines": {
|
|
47
54
|
"node": ">=22"
|
|
@@ -66,12 +73,5 @@
|
|
|
66
73
|
"rumdl": "^0.2.10",
|
|
67
74
|
"typescript": "^6.0.3",
|
|
68
75
|
"vitest": "^4.1.8"
|
|
69
|
-
},
|
|
70
|
-
"scripts": {
|
|
71
|
-
"check": "tsc --noEmit",
|
|
72
|
-
"build:types": "rollup -c rollup.dts.config.mjs",
|
|
73
|
-
"test": "vitest run",
|
|
74
|
-
"lint:md": "rumdl check *.md",
|
|
75
|
-
"lint": "biome check . && pnpm run lint:md"
|
|
76
76
|
}
|
|
77
|
-
}
|
|
77
|
+
}
|