@tmustier/pi-usage-extension 0.8.0 → 0.8.1
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/CHANGELOG.md +5 -0
- package/data.ts +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.1] - 2026-07-17
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- **Consistent units.** Every alarm in “Worth attention” now leads with dollars (the act-or-ignore number), with the period share in the dimmed parenthetical; “Where it went” keeps percentages (shares of the pie). Session concentration and upfront tax previously led with %.
|
|
7
|
+
|
|
3
8
|
## [0.8.0] - 2026-07-17
|
|
4
9
|
|
|
5
10
|
### Changed
|
package/data.ts
CHANGED
|
@@ -1093,8 +1093,8 @@ function computeInsights(raw: PeriodRawData, trend: TrendInfo | null): PeriodIns
|
|
|
1093
1093
|
if (topPct >= CONCENTRATION_ALARM_PERCENT) {
|
|
1094
1094
|
insights.push({
|
|
1095
1095
|
kind: "alarm",
|
|
1096
|
-
stat:
|
|
1097
|
-
headline: `
|
|
1096
|
+
stat: fmtMoney(topWeight),
|
|
1097
|
+
headline: `came from just ${TOP_SESSION_COUNT} of your ${raw.sessionCosts.size} sessions (${fmtPercent(topPct)} of this period)`,
|
|
1098
1098
|
advice: "A handful of sessions drove most of the spend. The graph view can show what they were doing.",
|
|
1099
1099
|
});
|
|
1100
1100
|
}
|
|
@@ -1104,8 +1104,8 @@ function computeInsights(raw: PeriodRawData, trend: TrendInfo | null): PeriodIns
|
|
|
1104
1104
|
if (upfrontPct >= UPFRONT_ALARM_PERCENT) {
|
|
1105
1105
|
insights.push({
|
|
1106
1106
|
kind: "alarm",
|
|
1107
|
-
stat:
|
|
1108
|
-
headline:
|
|
1107
|
+
stat: fmtMoney(raw.upfrontCost),
|
|
1108
|
+
headline: `spent on the opening message of new sessions (${fmtPercent(upfrontPct)} of this period)`,
|
|
1109
1109
|
advice: "A session's first message sends everything from scratch. Fewer, longer sessions cut this overhead.",
|
|
1110
1110
|
});
|
|
1111
1111
|
}
|