sha256:e19230cb3bc54022003aeeb7a20018092710a1077fcf8376b9abd34b2b7349bd
Last pushed
about 20 hours by christianhkb
Type
Sandbox Kit
Manifest digest
sha256:e19230cb3bc54022003aeeb7a20018092710a1077fcf8376b9abd34b2b7349bd
schemaVersion: "3"
displayName: Pi Version
description: Installs a chosen Pi release over the one baked into the Pi workload
version: 0.1.0
kind: mixin
capabilities:
- type: com.docker.sandbox/network-policy@1
config:
install:
allow:
- registry.npmjs.org
- type: com.docker.sandbox/lifecycle@1
config:
install:
- command: |
set -eu
want="${{ kit.args.version }}"
if [ "$want" != latest ] && pi --version 2>/dev/null | grep -qxF "$want"; then
echo "Pi $want already installed"
exit 0
fi
npm install -g "@earendil-works/pi-coding-agent@$want"
pi --version
description: Install the requested Pi release
env:
- NPM_CONFIG_PREFIX
- HTTP_PROXY
- HTTPS_PROXY
- NODE_EXTRA_CA_CERTS
- SSL_CERT_FILE
user: "1000"
args:
version:
required: true
description: Pi release to install (e.g. 0.86.1, or latest)
pattern: ^([0-9]+\.[0-9]+\.[0-9]+|latest)$