ai-heatmap 1.9.0 → 1.9.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 seunggabi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-heatmap",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "AI usage cost heatmap powered by ccusage + react-activity-calendar",
5
5
  "type": "module",
6
6
  "bin": {
package/src/App.css CHANGED
@@ -20,7 +20,7 @@ body {
20
20
  }
21
21
 
22
22
  .container {
23
- max-width: 960px;
23
+ max-width: 1200px;
24
24
  margin: 0 auto;
25
25
  overflow: hidden;
26
26
  }
package/src/App.tsx CHANGED
@@ -183,6 +183,7 @@ function shortModel(name: string) {
183
183
  }
184
184
 
185
185
  const DAY_LABELS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
186
+ const DAY_SHORT = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
186
187
 
187
188
  export default function App() {
188
189
  const [data, setData] = useState<Activity[]>([]);
@@ -293,12 +294,12 @@ export default function App() {
293
294
  fontSize={options.fontSize}
294
295
  hideColorLegend={options.hideColorLegend}
295
296
  hideMonthLabels={options.hideMonthLabels}
296
- hideTotalCount={true}
297
+ hideTotalCount={options.hideTotalCount}
297
298
  showWeekdayLabels={options.showWeekdayLabels}
298
299
  weekStart={options.weekStart}
299
300
  colorScheme={options.colorScheme}
300
301
  labels={{
301
- totalCount: "{{count}} USD spent in {{year}}",
302
+ totalCount: `${formatUSD(totalCost)} spent in {{year}}`,
302
303
  }}
303
304
  theme={{
304
305
  light: themeColors,
@@ -308,7 +309,7 @@ export default function App() {
308
309
  const a = activity as Activity;
309
310
  if (a.count === 0) return block;
310
311
  const lines = [
311
- `<strong>${a.date}</strong>`,
312
+ `<strong>${a.date} (${DAY_SHORT[new Date(a.date).getDay()]})</strong>`,
312
313
  `Cost: ${formatUSD(a.count)}`,
313
314
  a.inputTokens != null ? `In: ${formatTokens(a.inputTokens)} / Out: ${formatTokens(a.outputTokens ?? 0)}` : "",
314
315
  a.totalTokens ? `Total: ${formatTokens(a.totalTokens)}` : "",