claude-code-tracker 1.1.4 → 1.1.5

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 +7 -2
  2. package/package.json +1 -1
package/install.sh CHANGED
@@ -12,9 +12,14 @@ mkdir -p "$INSTALL_DIR"
12
12
 
13
13
  # Detect Homebrew install (SCRIPT_DIR is inside a Cellar path)
14
14
  if [[ "$SCRIPT_DIR" == */Cellar/* ]]; then
15
- # Symlink scripts — avoids macOS provenance xattr issues on upgrade
15
+ # Symlink scripts — avoids macOS provenance xattr issues on upgrade.
16
+ # ln -sf fails if the target has com.apple.provenance (SIP-protected),
17
+ # so create a temp symlink and mv -f (rename syscall bypasses SIP).
16
18
  for f in "$SCRIPT_DIR/src/"*.sh "$SCRIPT_DIR/src/"*.py; do
17
- ln -sf "$f" "$INSTALL_DIR/$(basename "$f")"
19
+ dest="$INSTALL_DIR/$(basename "$f")"
20
+ tmplink=$(mktemp -u "$INSTALL_DIR/.tmp.XXXXXX")
21
+ ln -s "$f" "$tmplink"
22
+ mv -f "$tmplink" "$dest"
18
23
  done
19
24
  else
20
25
  # Direct copy for npm / git-clone installs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-tracker",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Automatic token, cost, and prompt tracking for Claude Code sessions",
5
5
  "keywords": [
6
6
  "claude",