mirror of
https://github.com/codeflash-ai/codeflash-agent.git
synced 2026-05-04 18:25:19 +00:00
14 lines
428 B
Bash
14 lines
428 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# Plugin SessionEnd hook: Clean up symlink in target repo if in dogfood mode.
|
||
|
|
# The symlink redirects .codeflash/ to the agent repo — remove it when done
|
||
|
|
# so the target repo stays clean.
|
||
|
|
|
||
|
|
cd "$CLAUDE_PROJECT_DIR" 2>/dev/null || exit 0
|
||
|
|
|
||
|
|
# Only clean up if .codeflash is a symlink (dogfood mode created it)
|
||
|
|
if [ -L "$CLAUDE_PROJECT_DIR/.codeflash" ]; then
|
||
|
|
rm "$CLAUDE_PROJECT_DIR/.codeflash"
|
||
|
|
fi
|
||
|
|
|
||
|
|
exit 0
|