Files
dotfiles/installer/pi-agent.sh
T

19 lines
441 B
Bash
Executable File

#!/bin/sh -e
if [[ ! -x "$(command -v pi)" ]]; then
node -v || paru -Sy --noconfirm nodejs npm
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
npm install -g pi-acp
fi
mkdir ~/.pi
ln -snf ~/.pi ~/.config/pi
ln -snf ~/.agents/.agents/AGENTS.md ~/.pi/agent/AGENTS.md
${DOTFILES_DIR}/sync-config config/pi
if [[ -x "$(command -v pass)" ]]; then
pass show agent/pi/agent/auth.json > ~/.pi/agent/auth.json
fi