bin/pi-spark: pi-lens covers post-edit checks, make verify-on-write opt-in
This commit is contained in:
1 parent
665806b2cd
commit
cde0fd97fe
1 file changed
+5
-3
+5
-3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user