@brglng/pi-currency-cost 0.1.0 → 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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/brglng/pi-packages/main/packages/pi-currency-cost/schemas/config.schema.json",
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.0",
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": {
@@ -36,12 +36,11 @@
36
36
  "license": "MPL-2.0",
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "git+https://github.com/brglng/pi-packages.git",
40
- "directory": "packages/pi-currency-cost"
39
+ "url": "git+https://github.com/brglng/pi-currency-cost.git"
41
40
  },
42
- "homepage": "https://github.com/brglng/pi-packages/tree/main/packages/pi-currency-cost#readme",
41
+ "homepage": "https://github.com/brglng/pi-currency-cost#readme",
43
42
  "bugs": {
44
- "url": "https://github.com/brglng/pi-packages/issues"
43
+ "url": "https://github.com/brglng/pi-currency-cost/issues"
45
44
  },
46
45
  "engines": {
47
46
  "node": ">=22"
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(