claude-code-wakatime 3.1.1 → 3.1.2
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 +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/scripts/run +3 -2
- package/scripts/run.cmd +39 -0
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"name": "claude-code-wakatime",
|
|
12
12
|
"source": "./",
|
|
13
13
|
"description": "WakaTime plugin for Claude Code - Track your AI usage, lines of code generated, and time spent prompting AI",
|
|
14
|
-
"version": "3.1.
|
|
14
|
+
"version": "3.1.2",
|
|
15
15
|
"homepage": "https://github.com/wakatime/claude-code-wakatime",
|
|
16
16
|
"repository": "https://github.com/wakatime/claude-code-wakatime",
|
|
17
17
|
"license": "BSD-3-Clause",
|
package/dist/index.js
CHANGED
|
@@ -41134,7 +41134,7 @@ var Options = class {
|
|
|
41134
41134
|
};
|
|
41135
41135
|
|
|
41136
41136
|
// src/version.ts
|
|
41137
|
-
var VERSION = "3.1.
|
|
41137
|
+
var VERSION = "3.1.2";
|
|
41138
41138
|
|
|
41139
41139
|
// src/dependencies.ts
|
|
41140
41140
|
var import_adm_zip = __toESM(require_adm_zip());
|
package/package.json
CHANGED
package/scripts/run
CHANGED
|
@@ -18,7 +18,8 @@ if command -v nix >/dev/null 2>&1; then
|
|
|
18
18
|
exec nix run nixpkgs#nodejs -- node "$ROOT/dist/index.js" "$@"
|
|
19
19
|
fi
|
|
20
20
|
|
|
21
|
-
echo "Error: Node.js not found.
|
|
22
|
-
-
|
|
21
|
+
echo "Error: Node.js not found. Is node in your PATH?
|
|
22
|
+
- The WakaTime Claude Code plugin requires Node to run.
|
|
23
|
+
- set NODE_BIN=/absolute/path/to/node, or if using NixOS
|
|
23
24
|
- ensure 'nix' is available and flakes are enabled." >&2
|
|
24
25
|
exit 127
|
package/scripts/run.cmd
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
setlocal EnableExtensions EnableDelayedExpansion
|
|
3
|
+
|
|
4
|
+
rem ---- Resolve plugin root ----
|
|
5
|
+
rem Prefer CLAUDE_PLUGIN_ROOT; otherwise infer from this script location: <root>\bin\run.cmd
|
|
6
|
+
set "ROOT=%CLAUDE_PLUGIN_ROOT%"
|
|
7
|
+
if not defined ROOT (
|
|
8
|
+
set "ROOT=%~dp0.."
|
|
9
|
+
)
|
|
10
|
+
rem Normalize: remove trailing backslash if present
|
|
11
|
+
if "%ROOT:~-1%"=="\" set "ROOT=%ROOT:~0,-1%"
|
|
12
|
+
|
|
13
|
+
set "ENTRY=%ROOT%\dist\index.js"
|
|
14
|
+
|
|
15
|
+
rem ---- Use explicit override if provided ----
|
|
16
|
+
rem NODE_BIN should point to node.exe
|
|
17
|
+
if defined NODE_BIN (
|
|
18
|
+
if exist "%NODE_BIN%" (
|
|
19
|
+
"%NODE_BIN%" "%ENTRY%" %*
|
|
20
|
+
exit /b %ERRORLEVEL%
|
|
21
|
+
)
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
rem ---- If node in PATH, use it ----
|
|
25
|
+
where node >nul 2>nul
|
|
26
|
+
if %ERRORLEVEL%==0 (
|
|
27
|
+
node "%ENTRY%" %*
|
|
28
|
+
exit /b %ERRORLEVEL%
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
echo Error: Node.js not found. Is node in your PATH?
|
|
32
|
+
echo The WakaTime Claude Code plugin requires Node to run.
|
|
33
|
+
echo.
|
|
34
|
+
echo Fix options:
|
|
35
|
+
echo 1) Install Node.js and ensure node.exe is available, OR
|
|
36
|
+
echo 2) Set NODE_BIN to the full path of node.exe, e.g.:
|
|
37
|
+
echo setx NODE_BIN "C:\Program Files\nodejs\node.exe"
|
|
38
|
+
echo Then restart Claude Code.
|
|
39
|
+
exit /b 127
|