commit 7e739a301975ebd20261ffbcb826542f7522a029 Author: Zhongwei Li Date: Sun Nov 30 09:05:14 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..0096524 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "claude-code-wakatime", + "description": "WakaTime plugin for Claude Code - Track your AI usage, lines of code generated, and time spent prompting AI", + "version": "3.0.0", + "author": { + "name": "WakaTime" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..9a89d08 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# claude-code-wakatime + +WakaTime plugin for Claude Code - Track your AI usage, lines of code generated, and time spent prompting AI diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..4e2fcfc --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,81 @@ +{ + "hooks": { + "SessionEnd": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/dist/index.js" + } + ] + } + ], + "PreToolUse": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/dist/index.js" + } + ] + } + ], + "PostToolUse": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/dist/index.js" + } + ] + } + ], + "UserPromptSubmit": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/dist/index.js" + } + ] + } + ], + "PreCompact": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/dist/index.js" + } + ] + } + ], + "SubagentStop": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/dist/index.js" + } + ] + } + ], + "Stop": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/dist/index.js" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..afe77b5 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:wakatime/claude-code-wakatime:", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "95b3955cb46fc20e81b4c6ab500dc1122cace459", + "treeHash": "b8d1ab3f24c9c93565c10c2be4e09bc1322b1c5378780b31771ebd8f085a2f3d", + "generatedAt": "2025-11-28T10:28:57.979117Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "claude-code-wakatime", + "description": "WakaTime plugin for Claude Code - Track your AI usage, lines of code generated, and time spent prompting AI", + "version": "3.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "c05136bbdd620a126810174ab79c3b93ce1e5898c8cb74e70d9619c88774170b" + }, + { + "path": "hooks/hooks.json", + "sha256": "c1472fe62fb32168937151c28ca949161b5ec9db9a28286f1bd00bc4da1a3222" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "89a41646fbde572ab8c6cc060af2c6c944bd8b699c0447447ffcfc0d63b03316" + } + ], + "dirSha256": "b8d1ab3f24c9c93565c10c2be4e09bc1322b1c5378780b31771ebd8f085a2f3d" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file