@nijaru/pi-peak-hours 0.0.5 → 0.0.6
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/extensions/index.ts +3 -2
- package/package.json +3 -3
package/extensions/index.ts
CHANGED
|
@@ -491,8 +491,9 @@ function describeSchedule(schedule: Schedule): string {
|
|
|
491
491
|
})
|
|
492
492
|
.join(", ");
|
|
493
493
|
const days = schedule.days.map((day) => DAY_NAMES[day]).join(",");
|
|
494
|
-
|
|
495
|
-
return
|
|
494
|
+
// With no windows, `outside` is the rate all day; there is no "inside".
|
|
495
|
+
if (windows === "") return `×${schedule.outside} always (${days} UTC) for ${schedule.providers.join(",")}`;
|
|
496
|
+
return `×${schedule.multiplier} in ${windows}, ×${schedule.outside} outside (${days} UTC) for ${schedule.providers.join(",")}`;
|
|
496
497
|
}
|
|
497
498
|
|
|
498
499
|
function describeAll(schedules: Schedule[]): string {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nijaru/pi-peak-hours",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Correct pi's recorded cost for providers that bill by time of day, with a peak multiplier in the footer status.",
|
|
6
6
|
"keywords": [
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"check": "bun test && oxlint extensions/ tests/ && tsc --noEmit"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@earendil-works/pi-ai": "1.
|
|
38
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
37
|
+
"@earendil-works/pi-ai": "1.3.0",
|
|
38
|
+
"@earendil-works/pi-coding-agent": "1.3.0",
|
|
39
39
|
"@types/bun": "latest",
|
|
40
40
|
"oxlint": "latest",
|
|
41
41
|
"typescript": "^6.0.3"
|