claude-code-tracker 1.1.3 → 1.1.4

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.
Files changed (2) hide show
  1. package/install.sh +14 -4
  2. package/package.json +1 -1
package/install.sh CHANGED
@@ -7,11 +7,21 @@ SETTINGS="$HOME/.claude/settings.json"
7
7
 
8
8
  echo "Installing claude-code-tracker..."
9
9
 
10
- # Copy scripts
10
+ # Install scripts
11
11
  mkdir -p "$INSTALL_DIR"
12
- rm -f "$INSTALL_DIR/"*.sh "$INSTALL_DIR/"*.py
13
- cp "$SCRIPT_DIR/src/"*.sh "$SCRIPT_DIR/src/"*.py "$INSTALL_DIR/"
14
- chmod +x "$INSTALL_DIR/"*.sh "$INSTALL_DIR/"*.py
12
+
13
+ # Detect Homebrew install (SCRIPT_DIR is inside a Cellar path)
14
+ if [[ "$SCRIPT_DIR" == */Cellar/* ]]; then
15
+ # Symlink scripts — avoids macOS provenance xattr issues on upgrade
16
+ for f in "$SCRIPT_DIR/src/"*.sh "$SCRIPT_DIR/src/"*.py; do
17
+ ln -sf "$f" "$INSTALL_DIR/$(basename "$f")"
18
+ done
19
+ else
20
+ # Direct copy for npm / git-clone installs
21
+ rm -f "$INSTALL_DIR/"*.sh "$INSTALL_DIR/"*.py 2>/dev/null || true
22
+ cp "$SCRIPT_DIR/src/"*.sh "$SCRIPT_DIR/src/"*.py "$INSTALL_DIR/"
23
+ chmod +x "$INSTALL_DIR/"*.sh "$INSTALL_DIR/"*.py
24
+ fi
15
25
 
16
26
  echo "Scripts installed to $INSTALL_DIR"
17
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-tracker",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Automatic token, cost, and prompt tracking for Claude Code sessions",
5
5
  "keywords": [
6
6
  "claude",