This commit adds new npm package installations to the pi-agent installer script, enhancing its capabilities with pi-lens, pi-permission-system, pi-native-search, pi-subagents, and context-mode.
24 lines
598 B
Bash
Executable File
24 lines
598 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
|
|
|
|
pi install npm:pi-lens
|
|
pi install npm:@gotgenes/pi-permission-system
|
|
pi install npm:pi-native-search
|
|
pi install npm:pi-subagents
|
|
pi install npm:context-mode
|
|
|