diff --git a/bin/pi-spark b/bin/pi-spark index d160b54..1a219e1 100755 --- a/bin/pi-spark +++ b/bin/pi-spark @@ -21,11 +21,13 @@ if tmux has-session -t "$SESSION" 2>/dev/null; then exit 0 fi -# Optional: verify-on-write turns every source edit into a build result the model -# can read. Skipped when the checkout is absent. +# pi-lens (npm:pi-lens) already injects language-server findings after an edit, +# so the home-grown verify-on-write extension is opt-in only: PI_SPARK_VERIFY=1. EXTRA="" VERIFY_EXT="$HOME/Projects/pi-verify-on-write/src/index.ts" -[ -f "$VERIFY_EXT" ] && EXTRA="--extension $VERIFY_EXT" +if [ -n "${PI_SPARK_VERIFY:-}" ] && [ -f "$VERIFY_EXT" ]; then + EXTRA="--extension $VERIFY_EXT" +fi mkdir -p "$DIR/.pi" # Small models need explicit tool-first rules; seed them into a new project.