feat(pi): 3 new Pi Dev extensions — read-tweet, auto-context, task-lifecycle tools
CI / build (push) Has been cancelled

This commit is contained in:
Lap Tran
2026-06-26 22:40:49 -04:00
parent c2355954b9
commit 287cfeff7c
7 changed files with 452 additions and 11 deletions
+19 -11
View File
@@ -54,18 +54,26 @@ else
echo "OpenCode: not detected (no ~/.config/opencode/opencode.json or .jsonc)"
fi
# Pi Dev guard
PI_SOURCE="$FRAMEWORK_DIR/plugins/automaton-guard-pi"
# Pi Dev extensions
PI_EXTENSIONS=(
"$FRAMEWORK_DIR/plugins/automaton-guard-pi"
"$FRAMEWORK_DIR/plugins/pi-read-tweet"
"$FRAMEWORK_DIR/plugins/pi-automaton-context"
"$FRAMEWORK_DIR/plugins/pi-automaton-tools"
)
if command -v pi &>/dev/null; then
INSTALLED=$(pi list 2>/dev/null | grep -c "automaton-guard-pi" || true)
if [ "$INSTALLED" -gt 0 ]; then
echo "Pi Dev: already installed"
else
echo "Pi Dev: installing guard extension..."
pi install "$PI_SOURCE" 2>&1 | sed 's/^/ /'
INSTALLED_PI=true
echo "Pi Dev: installed"
fi
for ext in "${PI_EXTENSIONS[@]}"; do
ext_name=$(basename "$ext")
INSTALLED=$(pi list 2>/dev/null | grep -c "$ext_name" || true)
if [ "$INSTALLED" -gt 0 ]; then
echo "Pi Dev: $ext_name already installed"
else
echo "Pi Dev: installing $ext_name..."
pi install "$ext" 2>&1 | sed 's/^/ /'
INSTALLED_PI=true
echo "Pi Dev: $ext_name installed"
fi
done
# Offer pi-automaton startup wrapper
PI_WRAPPER="$FRAMEWORK_DIR/scripts/pi-automaton.sh"
if [ -f "$PI_WRAPPER" ]; then