pi-dent-purse 0.2.1 → 0.2.3

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/lib/ui.ts +2 -0
  2. package/package.json +4 -2
package/lib/ui.ts CHANGED
@@ -188,6 +188,8 @@ function limitLine(window: LimitWindow, now: number): string {
188
188
  // specs/user-interface.md#billing-report: no percent when it is unknown, the limit unknown, and used known.
189
189
  if (!(window.percent === null && window.limit === null && window.used !== null)) {
190
190
  line += ` ${formatPercent(window.percent)}`;
191
+ // specs/user-interface.md#billing-report: a known percent reads `<percent>% used`.
192
+ if (window.percent !== null) line += " used";
191
193
  }
192
194
  if (window.limit !== null) {
193
195
  line += ` ${amount(window.used)}/${amount(window.limit)} ${unitText(window)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-dent-purse",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "A pi extension that collects per-provider LLM billing state and serves it to other extensions and the user",
5
5
  "keywords": [
6
6
  "billing",
@@ -20,13 +20,15 @@
20
20
  "lib/"
21
21
  ],
22
22
  "type": "module",
23
+ "dependencies": {
24
+ "jsonc-parser": "^3.3.1"
25
+ },
23
26
  "devDependencies": {
24
27
  "@earendil-works/pi-agent-core": "1.5.2",
25
28
  "@earendil-works/pi-ai": "1.5.2",
26
29
  "@earendil-works/pi-coding-agent": "1.5.2",
27
30
  "@earendil-works/pi-tui": "1.5.2",
28
31
  "@types/node": "^26.6.6",
29
- "jsonc-parser": "^3.3.1",
30
32
  "oxfmt": "^0.77.0",
31
33
  "oxlint": "^1.93.0",
32
34
  "typebox": "1.3.27",