claude-code-wakatime 2.2.0 → 3.0.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.
@@ -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 [claude-code-wakatime](https://www.npmjs.com/package/claude-code-wakatime).
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 VS Code plugin for metrics, insights, and time tracking automatically generated from your programming activity.
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
- 1. `npm install -g claude-code-wakatime`
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
- 2. Add your [api key](https://wakatime.com/settings/api-key) to `~/.wakatime.cfg`:
15
+ 3. Add your [API key][api-key] to `~/.wakatime.cfg`:
16
+ ```
17
+ [settings]
18
+ api_key = waka_123
19
+ ```
12
20
 
13
- ```
14
- [settings]
15
- api_key = waka_123
16
- ```
21
+ ### NPM Installation (Legacy)
22
+
23
+ 1. `npm install -g claude-code-wakatime`
17
24
 
18
- 4. Use Claude Code and your AI coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com)
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](https://wakatime.com) to see your coding activity.
35
+ Visit [https://wakatime.com][wakatime.com] to see your coding activity.
25
36
 
26
37
  ![Project Overview](https://wakatime.com/static/img/ScreenShots/Screen-Shot-2016-03-21.png)
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