@monotykamary/pi-better-openai 0.1.29 → 0.1.31
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/package.json +3 -3
- package/src/usage-controller.ts +1 -1
- package/src/usage.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monotykamary/pi-better-openai",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Improve OpenAI in pi with fast mode, usage stats, realtime voice, image generation, and footer polish.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fast",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"ws": "8.21.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@earendil-works/pi-coding-agent": "0.84.
|
|
54
|
-
"@earendil-works/pi-tui": "0.84.
|
|
53
|
+
"@earendil-works/pi-coding-agent": "0.84.4",
|
|
54
|
+
"@earendil-works/pi-tui": "0.84.4",
|
|
55
55
|
"@types/node": "~22.19.0",
|
|
56
56
|
"@types/proxy-from-env": "1.0.4",
|
|
57
57
|
"@types/ws": "8.18.1",
|
package/src/usage-controller.ts
CHANGED
|
@@ -94,7 +94,7 @@ export class UsageController {
|
|
|
94
94
|
return "Usage unavailable.";
|
|
95
95
|
const stale =
|
|
96
96
|
this.usageUpdatedAt && Date.now() - this.usageUpdatedAt > cfg.usage.refreshIntervalMs * 2
|
|
97
|
-
? `
|
|
97
|
+
? ` · stale ${formatResetCountdown((Date.now() - this.usageUpdatedAt) / 1000)}`
|
|
98
98
|
: "";
|
|
99
99
|
return `${formatUsageSnapshot(this.usageSnapshot, cfg.usage)}${stale}`;
|
|
100
100
|
}
|
package/src/usage.ts
CHANGED
|
@@ -252,7 +252,7 @@ export function formatUsageSnapshot(
|
|
|
252
252
|
),
|
|
253
253
|
].filter((value): value is string => value !== null)
|
|
254
254
|
: [];
|
|
255
|
-
return `Usage: 5h: ${fiveHour}
|
|
255
|
+
return `Usage: 5h: ${fiveHour} · 7d: ${sevenDay}${resets.length ? ` · ${resets.join(" · ")}` : ""}`;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
function remainingResetSeconds(
|