Clear saved SourceAtlas analysis results
/plugin marketplace add lis186/SourceAtlas/plugin install sourceatlas@lis186-SourceAtlas(optional) [target: overview|patterns|flows|history|impact|deps]haikuTarget: $ARGUMENTS (default: all)
Help user clear saved analysis results from .sourceatlas/ directory.
ls -la .sourceatlas/ 2>/dev/null || echo "No .sourceatlas/ directory found"
Also check subdirectories:
# Count files in each subdirectory
for dir in patterns flows impact deps; do
if [ -d ".sourceatlas/$dir" ]; then
count=$(ls -1 ".sourceatlas/$dir" 2>/dev/null | wc -l)
echo "$dir/: $count files"
fi
done
List what will be deleted based on target:
Example output:
Found the following saved analyses:
- overview.yaml (2025-12-12)
- patterns/ (3 files)
- history.md (2025-12-11)
Are you sure you want to delete?
Ask user to confirm. Do NOT proceed without explicit confirmation.
Acceptable confirmations:
Based on target:
# All (default, no argument)
rm -rf .sourceatlas/*
# Specific targets
rm -f .sourceatlas/overview.yaml # for "overview"
rm -rf .sourceatlas/patterns/ # for "patterns"
rm -rf .sourceatlas/flows/ # for "flows"
rm -f .sourceatlas/history.md # for "history"
rm -rf .sourceatlas/impact/ # for "impact"
rm -rf .sourceatlas/deps/ # for "deps"
✅ Cleared [target or ".sourceatlas/"]
.sourceatlas/ directory does not exist or is already empty
| Target | Path | Description |
|---|---|---|
overview | .sourceatlas/overview.yaml | Project overview |
patterns | .sourceatlas/patterns/ | Pattern analysis |
flows | .sourceatlas/flows/ | Flow analysis |
history | .sourceatlas/history.md | Temporal analysis |
impact | .sourceatlas/impact/ | Impact analysis |
deps | .sourceatlas/deps/ | Dependency analysis |
| (no argument) | .sourceatlas/* | Clear all |