@brglng/pi-currency-cost 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +9 -10
  2. package/src/index.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brglng/pi-currency-cost",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Convert configured provider/model usage costs to USD for Pi sessions",
5
5
  "type": "module",
6
6
  "exports": {
@@ -18,14 +18,6 @@
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
- },
29
21
  "keywords": [
30
22
  "pi-package",
31
23
  "pi",
@@ -73,5 +65,12 @@
73
65
  "rumdl": "^0.2.10",
74
66
  "typescript": "^6.0.3",
75
67
  "vitest": "^4.1.8"
68
+ },
69
+ "scripts": {
70
+ "check": "tsc --noEmit",
71
+ "build:types": "rollup -c rollup.dts.config.mjs",
72
+ "test": "vitest run",
73
+ "lint:md": "rumdl check *.md",
74
+ "lint": "biome check . && pnpm run lint:md"
76
75
  }
77
- }
76
+ }
package/src/index.ts CHANGED
@@ -172,7 +172,7 @@ class CurrencyCostRuntime {
172
172
  return;
173
173
  }
174
174
  const note = await this.persistFetchedRates(agentDir, cwd, result);
175
- ctx.ui.notify(note, result.errors.length > 0 ? "warning" : "info");
175
+ ctx.ui.notify(note, "info");
176
176
  }
177
177
 
178
178
  private async persistFetchedRates(