Standalone plugin with one skill: when to use orbit and when grep, a mandatory preflight for stale indexes and blind regions (cfg(test), features, macros, dyn dispatch), a scripted review pass over isolated worktree DBs, and a JSONL feedback log for mining real usage later. Registered in the marketplace as a prototype.
12 lines
500 B
Bash
Executable File
12 lines
500 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: review-teardown.sh <repo> <name> — removes the two detached worktrees and the isolated DB.
|
|
set -euo pipefail
|
|
REPO=$1; NAME=$2; H=${ORBIT_REVIEW_HOME:-$HOME/.cache/orbit-review}
|
|
for side in base tip; do
|
|
wt=$H/worktrees/$NAME-$side
|
|
[ -d "$wt" ] && git -C "$REPO" worktree remove --force "$wt"
|
|
done
|
|
git -C "$REPO" worktree prune
|
|
rm -f "$H/$NAME.duckdb" "$H/$NAME.duckdb.wal"
|
|
echo "removed worktrees + $NAME.duckdb; remaining worktrees:"; git -C "$REPO" worktree list
|