bin/pi-spark: load pi-verify-on-write when the checkout is present
This commit is contained in:
1 parent
3618086af0
commit
665806b2cd
1 file changed
+7
-1
+7
-1
@@ -21,6 +21,12 @@ 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.
|
||||
EXTRA=""
|
||||
VERIFY_EXT="$HOME/Projects/pi-verify-on-write/src/index.ts"
|
||||
[ -f "$VERIFY_EXT" ] && EXTRA="--extension $VERIFY_EXT"
|
||||
|
||||
mkdir -p "$DIR/.pi"
|
||||
# Small models need explicit tool-first rules; seed them into a new project.
|
||||
if [ ! -f "$DIR/.pi/APPEND_SYSTEM.md" ] && [ -f "$HOME/.dotfiles/config/pi/small-model-APPEND_SYSTEM.md" ]; then
|
||||
@@ -29,7 +35,7 @@ if [ ! -f "$DIR/.pi/APPEND_SYSTEM.md" ] && [ -f "$HOME/.dotfiles/config/pi/small
|
||||
fi
|
||||
# Drop the free-pi session environment so pi uses ~/.pi/agent, not the free-pi agent dir.
|
||||
tmux new-session -d -s "$SESSION" -x "${PI_SPARK_COLS:-210}" -y "${PI_SPARK_ROWS:-50}" -c "$DIR" \
|
||||
"env -u PI_CODING_AGENT_DIR -u PI_SESSION_FILE -u PI_SESSION_ID -u PI_MODEL -u PI_PROVIDER -u PI_REASONING_LEVEL PI_SKIP_VERSION_CHECK=1 pi --model $MODEL --thinking $THINKING"
|
||||
"env -u PI_CODING_AGENT_DIR -u PI_SESSION_FILE -u PI_SESSION_ID -u PI_MODEL -u PI_PROVIDER -u PI_REASONING_LEVEL PI_SKIP_VERSION_CHECK=1 pi --model $MODEL --thinking $THINKING $EXTRA"
|
||||
|
||||
if [ -t 1 ]; then exec tmux attach -t "$SESSION"; fi
|
||||
echo "session $SESSION ready with $MODEL (thinking $THINKING): tmux attach -t $SESSION"
|
||||
Reference in new issue
Block a user