ai-heatmap 1.10.0 → 1.11.0
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/README.md +5 -2
- package/bin/cli.mjs +5 -0
- package/package.json +1 -1
- package/src/App.tsx +1 -5
- package/vercel.json +1 -1
package/README.md
CHANGED
|
@@ -161,9 +161,11 @@ For automated updates, use a local cron job or macOS LaunchAgent:
|
|
|
161
161
|
|
|
162
162
|
```bash
|
|
163
163
|
# crontab -e (runs daily at midnight)
|
|
164
|
-
0 0 * * * npx ai-heatmap update
|
|
164
|
+
0 0 * * * npx --yes ai-heatmap@latest update
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
+
> `--yes` skips the npx install prompt, required for non-interactive environments like cron.
|
|
168
|
+
|
|
167
169
|
## Upgrade
|
|
168
170
|
|
|
169
171
|
To use the latest version of ai-heatmap:
|
|
@@ -188,7 +190,8 @@ npx --yes ai-heatmap@latest update
|
|
|
188
190
|
|
|
189
191
|
1. Import this repo on [vercel.com](https://vercel.com)
|
|
190
192
|
2. Deploy (zero config — `vercel.json` included)
|
|
191
|
-
3.
|
|
193
|
+
3. Make public: Project Settings > Deployment Protection > Vercel Authentication > **OFF**
|
|
194
|
+
4. Use the deployed URL for dynamic SVG embeds
|
|
192
195
|
|
|
193
196
|
## Local Development
|
|
194
197
|
|
package/bin/cli.mjs
CHANGED
|
@@ -75,6 +75,11 @@ switch (command) {
|
|
|
75
75
|
} catch {}
|
|
76
76
|
}
|
|
77
77
|
console.log(`Deploying from ${deployDir}...`);
|
|
78
|
+
try {
|
|
79
|
+
execSync("git pull", { cwd: deployDir, stdio: "inherit" });
|
|
80
|
+
} catch {
|
|
81
|
+
console.log("git pull skipped (not a git repo or no remote)");
|
|
82
|
+
}
|
|
78
83
|
execSync(`vercel --prod`, {
|
|
79
84
|
cwd: deployDir,
|
|
80
85
|
stdio: "inherit",
|
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -282,10 +282,6 @@ export default function App() {
|
|
|
282
282
|
style={containerStyle}
|
|
283
283
|
>
|
|
284
284
|
<h1>AI Usage Heatmap</h1>
|
|
285
|
-
<p className="summary">
|
|
286
|
-
💰 Total: {formatUSD(totalCost)} across {filtered.length} days ({yearLabel})
|
|
287
|
-
</p>
|
|
288
|
-
|
|
289
285
|
<ActivityCalendar
|
|
290
286
|
data={filtered}
|
|
291
287
|
blockSize={options.blockSize}
|
|
@@ -299,7 +295,7 @@ export default function App() {
|
|
|
299
295
|
weekStart={options.weekStart}
|
|
300
296
|
colorScheme={options.colorScheme}
|
|
301
297
|
labels={{
|
|
302
|
-
totalCount: `💰 ${formatUSD(totalCost)}
|
|
298
|
+
totalCount: `💰 Total: ${formatUSD(totalCost)} across ${filtered.length} days (${yearLabel})`,
|
|
303
299
|
}}
|
|
304
300
|
theme={{
|
|
305
301
|
light: themeColors,
|
package/vercel.json
CHANGED