ai-heatmap 1.13.3 → 1.14.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.
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [seunggabi]
package/bin/init.mjs CHANGED
@@ -3,6 +3,7 @@ import { execSync } from "node:child_process";
3
3
  import { mkdirSync, writeFileSync, copyFileSync, existsSync } from "node:fs";
4
4
  import { resolve, dirname } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
6
+ import { createInterface } from "node:readline";
6
7
 
7
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
8
9
  const templateRoot = resolve(__dirname, "..");
@@ -135,17 +136,23 @@ readmeLines.push(
135
136
  "## Usage",
136
137
  "",
137
138
  "```bash",
138
- "npx ai-heatmap@latest update",
139
+ "npx --yes ai-heatmap@latest update",
139
140
  "```",
140
141
  "",
141
- "## Dynamic SVG (by Vercel)",
142
+ "### Cron (daily update)",
142
143
  "",
143
144
  "```bash",
144
- "npx ai-heatmap@latest deploy",
145
+ "0 0 * * * npx --yes ai-heatmap@latest update",
145
146
  "```",
146
147
  "",
148
+ "## Dynamic SVG (by Vercel)",
149
+ "",
147
150
  `![AI Heatmap](https://${repoName}.vercel.app/api/heatmap?theme=blue)`,
148
151
  "",
152
+ "```bash",
153
+ "npx --yes ai-heatmap@latest deploy",
154
+ "```",
155
+ "",
149
156
  );
150
157
  writeFileSync(resolve(targetDir, "README.md"), readmeLines.join("\n"));
151
158
 
@@ -204,3 +211,17 @@ Done! Your heatmap repo is ready:
204
211
  npm install
205
212
  npm run dev # Preview locally
206
213
  `);
214
+
215
+ // Ask to star the repo
216
+ const rl = createInterface({ input: process.stdin, output: process.stdout });
217
+ rl.question("⭐ Star https://github.com/seunggabi/ai-heatmap ? (y/n) ", (answer) => {
218
+ rl.close();
219
+ if (answer.toLowerCase() === "y") {
220
+ try {
221
+ execSync("gh api user/starred/seunggabi/ai-heatmap -X PUT", { stdio: "ignore" });
222
+ console.log("Thanks for starring! ⭐");
223
+ } catch {
224
+ console.log("Star skipped (gh CLI not available or auth needed).");
225
+ }
226
+ }
227
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-heatmap",
3
- "version": "1.13.3",
3
+ "version": "1.14.1",
4
4
  "description": "AI usage cost heatmap powered by ccusage + react-activity-calendar",
5
5
  "type": "module",
6
6
  "bin": {