@leeovery/claude-technical-workflows 2.1.39 → 2.1.40
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.
|
@@ -10,8 +10,16 @@
|
|
|
10
10
|
# Extract session_id from stdin JSON
|
|
11
11
|
session_id=$(cat | grep -o '"session_id" *: *"[^"]*"' | sed 's/.*: *"//;s/"//')
|
|
12
12
|
|
|
13
|
-
if [ -
|
|
14
|
-
echo "
|
|
13
|
+
if [ -z "$session_id" ]; then
|
|
14
|
+
echo "[session-env] WARNING: Could not parse session_id from stdin" >&2
|
|
15
|
+
exit 0
|
|
15
16
|
fi
|
|
16
17
|
|
|
18
|
+
if [ -z "$CLAUDE_ENV_FILE" ]; then
|
|
19
|
+
echo "[session-env] WARNING: CLAUDE_ENV_FILE not set — cannot persist CLAUDE_SESSION_ID" >&2
|
|
20
|
+
exit 0
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
echo "export CLAUDE_SESSION_ID=${session_id}" >> "$CLAUDE_ENV_FILE"
|
|
24
|
+
|
|
17
25
|
exit 0
|