#!/bin/sh
# Debian wrapper for the pi coding agent.
# Runs the Node.js entry point installed under /usr/lib/pi with the node26
# runtime (which provides /usr/bin/node >= 22 via update-alternatives), because
# pi requires Node >= 22.19 while the distribution's stock nodejs is older.
# User configuration and state live in ~/.pi by default (override with
# PI_CODING_AGENT_DIR).
PI_HOME="/usr/lib/pi"
export PI_CODING_AGENT=1
exec /usr/bin/node "$PI_HOME/packages/coding-agent/dist/cli.js" "$@"
