ai-heatmap 1.17.4 → 1.17.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/README.md +5 -5
- package/bin/init.mjs +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,14 +20,14 @@ gh auth login
|
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
# npx --yes ai-heatmap@latest delete
|
|
23
|
-
npx --yes ai-heatmap@latest init
|
|
23
|
+
npx clear-npx-cache && npx --yes ai-heatmap@latest init
|
|
24
24
|
|
|
25
25
|
USER=$(gh api user -q .login)
|
|
26
26
|
open "https://${USER}.github.io/${USER}-ai-heatmap/heatmap.svg"
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
npx --yes ai-heatmap@latest deploy
|
|
30
|
+
npx clear-npx-cache && npx --yes ai-heatmap@latest deploy
|
|
31
31
|
|
|
32
32
|
USER=$(gh api user -q .login)
|
|
33
33
|
open "https://${USER}-ai-heatmap.vercel.app/api/heatmap?colorScheme=dark"
|
|
@@ -196,7 +196,7 @@ GH_TOKEN=ghp_xxx
|
|
|
196
196
|
> which npx # e.g. /home/user/.local/bin/npx
|
|
197
197
|
>
|
|
198
198
|
> # Use full path in cron
|
|
199
|
-
> 0 0 * * * PATH=$HOME/.local/bin:$PATH npx --yes ai-heatmap@latest update
|
|
199
|
+
> 0 0 * * * PATH=$HOME/.local/bin:$PATH npx clear-npx-cache && PATH=$HOME/.local/bin:$PATH npx --yes ai-heatmap@latest update
|
|
200
200
|
> ```
|
|
201
201
|
|
|
202
202
|
## Upgrade
|
|
@@ -204,7 +204,7 @@ GH_TOKEN=ghp_xxx
|
|
|
204
204
|
To use the latest version of ai-heatmap:
|
|
205
205
|
|
|
206
206
|
```bash
|
|
207
|
-
npx --yes ai-heatmap@latest update
|
|
207
|
+
npx clear-npx-cache && npx --yes ai-heatmap@latest update
|
|
208
208
|
```
|
|
209
209
|
|
|
210
210
|
> **Still running an old version?** npx caches packages locally. If the update command behaves unexpectedly after a release, clear the cache:
|
|
@@ -228,7 +228,7 @@ npm publish
|
|
|
228
228
|
### Vercel (SVG API)
|
|
229
229
|
|
|
230
230
|
```bash
|
|
231
|
-
npx --yes ai-heatmap@latest deploy
|
|
231
|
+
npx clear-npx-cache && npx --yes ai-heatmap@latest deploy
|
|
232
232
|
```
|
|
233
233
|
|
|
234
234
|
Or manually:
|
package/bin/init.mjs
CHANGED
|
@@ -123,7 +123,7 @@ readmeLines.push(
|
|
|
123
123
|
"## Usage",
|
|
124
124
|
"",
|
|
125
125
|
"```bash",
|
|
126
|
-
"npx --yes ai-heatmap@latest update",
|
|
126
|
+
"npx clear-npx-cache && npx --yes ai-heatmap@latest update",
|
|
127
127
|
"```",
|
|
128
128
|
"",
|
|
129
129
|
"### Cron (daily update)",
|
|
@@ -132,7 +132,7 @@ readmeLines.push(
|
|
|
132
132
|
"CLAUDE_CODE_OAUTH_TOKEN=sk-ant-xxx",
|
|
133
133
|
"GH_TOKEN=ghp_xxx",
|
|
134
134
|
"",
|
|
135
|
-
"0 0 * * * npx --yes ai-heatmap@latest update",
|
|
135
|
+
"0 0 * * * npx clear-npx-cache && npx --yes ai-heatmap@latest update",
|
|
136
136
|
"```",
|
|
137
137
|
"",
|
|
138
138
|
`## [Dynamic SVG (by Vercel)](https://${repoName}.vercel.app/)`,
|
|
@@ -140,7 +140,7 @@ readmeLines.push(
|
|
|
140
140
|
``,
|
|
141
141
|
"",
|
|
142
142
|
"```bash",
|
|
143
|
-
"npx --yes ai-heatmap@latest deploy",
|
|
143
|
+
"npx clear-npx-cache && npx --yes ai-heatmap@latest deploy",
|
|
144
144
|
"```",
|
|
145
145
|
"",
|
|
146
146
|
);
|