A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
fix(convert): prune stale tool output before regenerating (#605)
Michael Sitarzewski55beae93a772
diff --git a/scripts/convert.sh b/scripts/convert.shindex 28d46d31..c8e92910 100755--- a/scripts/convert.sh+++ b/scripts/convert.sh@@ -528,10 +528,22 @@ HEREDOC# --- Main loop ---+# Remove a tool's previously-generated output before regenerating, so renamed or+# deleted agents don't leave orphan files behind (convert.sh overwrites in place+# but never pruned stale output). Preserves the committed README.md — the only+# tracked file under integrations/<tool>/ for conversion targets.+clean_tool_output() {+ local dir="$OUT_DIR/$1"+ [[ -d "$dir" ]] || return 0+ find "$dir" -mindepth 1 -maxdepth 1 ! -name 'README.md' -exec rm -rf {} ++}+run_conversions() {local tool="$1"local count=0+ clean_tool_output "$tool"+for dir in "${AGENT_DIRS[@]}"; dolocal dirpath="$REPO_ROOT/$dir"[[ -d "$dirpath" ]] || continue