claude-code-wakatime 2.2.0 → 3.0.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/.claude-plugin/marketplace.json +25 -0
- package/.claude-plugin/plugin.json +17 -0
- package/README.md +58 -11
- package/dist/index.js +41692 -182
- package/hooks/hooks.json +92 -0
- package/package.json +15 -16
- package/src/dependencies.ts +2 -2
- package/src/index.ts +14 -16
- package/src/install-hooks.ts +10 -1
- package/dist/dependencies.js +0 -416
- package/dist/install-hooks.js +0 -53
- package/dist/logger.js +0 -74
- package/dist/options.js +0 -214
- package/dist/utils.js +0 -129
- package/dist/version.js +0 -5
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wakatime",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "WakaTime"
|
|
5
|
+
},
|
|
6
|
+
"plugins": [
|
|
7
|
+
{
|
|
8
|
+
"name": "claude-code-wakatime",
|
|
9
|
+
"source": "./",
|
|
10
|
+
"description": "Track your AI usage, lines of code generated, and time spent prompting AI",
|
|
11
|
+
"version": "3.0.0",
|
|
12
|
+
"homepage": "https://github.com/wakatime/claude-code-wakatime",
|
|
13
|
+
"repository": "https://github.com/wakatime/claude-code-wakatime",
|
|
14
|
+
"license": "BSD-3-Clause",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"time-tracking",
|
|
17
|
+
"hooks",
|
|
18
|
+
"productivity",
|
|
19
|
+
"metrics"
|
|
20
|
+
],
|
|
21
|
+
"category": "productivity",
|
|
22
|
+
"tags": ["productivity", "metrics"]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "claude-code-wakatime",
|
|
3
|
+
"description": "WakaTime plugin for Claude Code - Track your AI usage, lines of code generated, and time spent prompting AI",
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "WakaTime"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/wakatime/claude-code-wakatime",
|
|
9
|
+
"repository": "https://github.com/wakatime/claude-code-wakatime",
|
|
10
|
+
"license": "BSD-3-Clause",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"time-tracking",
|
|
13
|
+
"hooks",
|
|
14
|
+
"productivity",
|
|
15
|
+
"metrics"
|
|
16
|
+
]
|
|
17
|
+
}
|
package/README.md
CHANGED
|
@@ -1,26 +1,73 @@
|
|
|
1
1
|
# WakaTime for Claude Code
|
|
2
2
|
|
|
3
|
-
Track your AI usage, lines of code generated, time spent prompting AI, etc. using
|
|
3
|
+
Track your AI usage, lines of code generated, time spent prompting AI, etc. using the WakaTime plugin for Claude Code.
|
|
4
4
|
|
|
5
|
-
[WakaTime](https://wakatime.com/) is an open source
|
|
5
|
+
[WakaTime](https://wakatime.com/) is an open source plugin for metrics, insights, and time tracking automatically generated from your programming activity.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### Using the Claude Code Plugin System (Recommended)
|
|
10
|
+
|
|
11
|
+
1. `claude plugin marketplace add https://github.com/wakatime/claude-code-wakatime.git`
|
|
12
|
+
|
|
13
|
+
2. `claude plugin i claude-code-wakatime@wakatime`
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
3. Add your [API key][api-key] to `~/.wakatime.cfg`:
|
|
16
|
+
```
|
|
17
|
+
[settings]
|
|
18
|
+
api_key = waka_123
|
|
19
|
+
```
|
|
12
20
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
```
|
|
21
|
+
### NPM Installation (Legacy)
|
|
22
|
+
|
|
23
|
+
1. `npm install -g claude-code-wakatime`
|
|
17
24
|
|
|
18
|
-
|
|
25
|
+
2. Add your [API key][api-key] to `~/.wakatime.cfg`:
|
|
26
|
+
```
|
|
27
|
+
[settings]
|
|
28
|
+
api_key = waka_123
|
|
29
|
+
```
|
|
19
30
|
|
|
20
31
|
## Usage
|
|
21
32
|
|
|
22
|
-
New: See the lines of code generated by AI on your dashboard!
|
|
33
|
+
New: See the lines of code generated by AI on your [dashboard][wakatime.com]!
|
|
23
34
|
|
|
24
|
-
Visit [https://wakatime.com]
|
|
35
|
+
Visit [https://wakatime.com][wakatime.com] to see your coding activity.
|
|
25
36
|
|
|
26
37
|

|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm run watch
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Troubleshooting
|
|
46
|
+
|
|
47
|
+
Diagnostic tool for troubleshooting the installation and health of Claude Code and plugins:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
claude doctor
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Make sure you have node.js installed and in your `$PATH`:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
node -v
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Run claude with verbose logging to see any plugin load errors:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
claude --debug
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Look for errors in the [wakatime-cli][wakatime-cli] log file:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
grep error ~/.wakatime/wakatime.log | grep -v backoff
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
[wakatime.com]: https://wakatime.com
|
|
72
|
+
[api-key]: https://wakatime.com/api-key
|
|
73
|
+
[wakatime-cli]: https://github.com/wakatime/wakatime-cli
|