patchcord 0.3.48 → 0.3.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.48",
3
+ "version": "0.3.49",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -13,16 +13,22 @@ for arg in "$@"; do
13
13
  [ "$arg" = "--full" ] && EXTRA_ARGS=" --full"
14
14
  done
15
15
 
16
- # Find the statusline script path
16
+ # Copy statusline.sh to a stable location (npx cache can be cleared)
17
17
  SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
18
- STATUSLINE="$SCRIPT_DIR/statusline.sh"
18
+ SRC_STATUSLINE="$SCRIPT_DIR/statusline.sh"
19
+ STABLE_DIR="$HOME/.claude/patchcord"
20
+ STABLE_STATUSLINE="$STABLE_DIR/statusline.sh"
19
21
 
20
- if [ ! -f "$STATUSLINE" ]; then
21
- echo "Error: statusline.sh not found at $STATUSLINE" >&2
22
+ if [ ! -f "$SRC_STATUSLINE" ]; then
23
+ echo "Error: statusline.sh not found at $SRC_STATUSLINE" >&2
22
24
  exit 1
23
25
  fi
24
26
 
25
- NEW_CMD="bash \"$STATUSLINE\"${EXTRA_ARGS}"
27
+ mkdir -p "$STABLE_DIR"
28
+ cp "$SRC_STATUSLINE" "$STABLE_STATUSLINE"
29
+ chmod +x "$STABLE_STATUSLINE"
30
+
31
+ NEW_CMD="bash \"$STABLE_STATUSLINE\"${EXTRA_ARGS}"
26
32
 
27
33
  # Decide where to write
28
34
  USER_SETTINGS="$HOME/.claude/settings.json"