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 +1 -1
- package/scripts/enable-statusline.sh +11 -5
package/package.json
CHANGED
|
@@ -13,16 +13,22 @@ for arg in "$@"; do
|
|
|
13
13
|
[ "$arg" = "--full" ] && EXTRA_ARGS=" --full"
|
|
14
14
|
done
|
|
15
15
|
|
|
16
|
-
#
|
|
16
|
+
# Copy statusline.sh to a stable location (npx cache can be cleared)
|
|
17
17
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
18
|
-
|
|
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 "$
|
|
21
|
-
echo "Error: statusline.sh not found at $
|
|
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
|
-
|
|
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"
|