claude-code-cache-fix 2.0.5 → 2.0.6
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/tools/manual-compact.sh +5 -3
package/package.json
CHANGED
package/tools/manual-compact.sh
CHANGED
|
@@ -46,8 +46,8 @@ USER_CONTEXT_FILE="${2:-}"
|
|
|
46
46
|
if [ -d "$INPUT" ]; then
|
|
47
47
|
# Convert project directory to CC's project path format
|
|
48
48
|
REAL_PATH=$(realpath "$INPUT")
|
|
49
|
-
# CC replaces / with - and prepends -
|
|
50
|
-
PROJECT_KEY=$(echo "$REAL_PATH" | sed 's|/|-|g')
|
|
49
|
+
# CC replaces / with - and underscores with - , then prepends -
|
|
50
|
+
PROJECT_KEY=$(echo "$REAL_PATH" | sed 's|/|-|g' | sed 's|_|-|g')
|
|
51
51
|
PROJECT_DIR="$HOME/.claude/projects/${PROJECT_KEY}"
|
|
52
52
|
|
|
53
53
|
if [ ! -d "$PROJECT_DIR" ]; then
|
|
@@ -208,5 +208,7 @@ SIZE=$(wc -c < "$OUTPUT")
|
|
|
208
208
|
echo ""
|
|
209
209
|
echo "Summary generated: $OUTPUT ($SIZE bytes)"
|
|
210
210
|
echo ""
|
|
211
|
-
echo "To restore context after /clear:"
|
|
211
|
+
echo "To restore context after /clear, use this as your first message:"
|
|
212
|
+
echo ""
|
|
212
213
|
echo " Read $OUTPUT for context on where we left off."
|
|
214
|
+
echo ""
|