From d309aa70040b0eb188d293988088f4a22ba595f0 Mon Sep 17 00:00:00 2001 From: Sam & Claude Date: Sun, 21 Jun 2026 08:50:42 +0200 Subject: [PATCH] fix(bootstrap): add npm-global bin to clawdie PATH in jail --- packaging/freebsd/agent-jail-bootstrap.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/freebsd/agent-jail-bootstrap.sh b/packaging/freebsd/agent-jail-bootstrap.sh index 3bebd1e..fc66f17 100755 --- a/packaging/freebsd/agent-jail-bootstrap.sh +++ b/packaging/freebsd/agent-jail-bootstrap.sh @@ -83,4 +83,10 @@ if [ ! -e "${NPM_PREFIX}/bin/pi" ]; then fi cp -a "${NPM_PREFIX}/bin/pi" "${JAIL_ROOT}${NPM_PREFIX}/bin/pi" +# Add npm-global bin to clawdie's PATH so pi/bw are found on login +if ! grep -q 'npm-global/bin' "${JAIL_ROOT}/home/clawdie/.profile" 2>/dev/null; then + echo 'PATH="/home/clawdie/.npm-global/bin:$PATH"' >> "${JAIL_ROOT}/home/clawdie/.profile" + echo 'export PATH' >> "${JAIL_ROOT}/home/clawdie/.profile" +fi + echo "Done — ${JAIL_NAME} ready for vault provision." -- 2.45.3