Compare commits

2 Commits
master ... Vova

Author SHA1 Message Date
EugeneTes
584d41b78b Pin pi-claude-code-provider to 0.3.0, the last release supporting Pi 0.85.1 2026-09-24 14:48:33 +00:00
EugeneTes
9347ea6e64 Bind Vova instance volumes to volcanic_secretary_vova 2026-09-24 14:00:40 +00:00
2 changed files with 11 additions and 10 deletions

View File

@@ -25,6 +25,6 @@ services:
- TILION_REGION=${TILION_REGION:-} - TILION_REGION=${TILION_REGION:-}
- CAPTCHA_API_KEY=${CAPTCHA_API_KEY:-} - CAPTCHA_API_KEY=${CAPTCHA_API_KEY:-}
volumes: volumes:
- /media/disk1/containers/volcanic_secretary/workspace:/workspace - /media/disk1/containers/volcanic_secretary_vova/workspace:/workspace
- /media/disk1/containers/volcanic_secretary/pi-agent:/pi-agent - /media/disk1/containers/volcanic_secretary_vova/pi-agent:/pi-agent
- /media/disk1/containers/volcanic_secretary/claude:/root/.claude - /media/disk1/containers/volcanic_secretary_vova/claude:/root/.claude

View File

@@ -2,23 +2,24 @@
set -e set -e
PI_DIR="${PI_CODING_AGENT_DIR:-/pi-agent}" PI_DIR="${PI_CODING_AGENT_DIR:-/pi-agent}"
# Marker version bumped from `.installed` to `.installed.v2` so existing volumes with a # Pinned: 0.4.0+ calls piAi.getCurrentSystemPrompt, which Pi 0.85.1 (package.json) lacks,
# previously-patched pi-claude-code-provider get a clean reinstall (we removed the # so an unpinned install on a fresh volume breaks every turn. 0.3.0 is the last release that
# claude-args.ts sed patch — see commit history). # supports Pi 0.85.1. The version is part of the marker so changing it forces a reinstall.
MARKER="$PI_DIR/.pi-claude-code-provider.installed.v2" PROVIDER_VERSION="0.3.0"
MARKER="$PI_DIR/.pi-claude-code-provider.installed.$PROVIDER_VERSION"
if [ ! -f "$MARKER" ]; then if [ ! -f "$MARKER" ]; then
echo "[entrypoint] pi install npm:pi-claude-code-provider" echo "[entrypoint] pi install npm:pi-claude-code-provider@$PROVIDER_VERSION"
mkdir -p "$PI_DIR" mkdir -p "$PI_DIR"
# Wipe any previous (possibly-patched) install so pi restores the canonical package. # Wipe any previous (possibly-patched) install so pi restores the canonical package.
rm -rf "$PI_DIR/npm/node_modules/pi-claude-code-provider" rm -rf "$PI_DIR/npm/node_modules/pi-claude-code-provider"
if /app/node_modules/.bin/pi install npm:pi-claude-code-provider; then if /app/node_modules/.bin/pi install "npm:pi-claude-code-provider@$PROVIDER_VERSION"; then
touch "$MARKER" touch "$MARKER"
else else
echo "[entrypoint] pi install failed; will retry on next start" >&2 echo "[entrypoint] pi install failed; will retry on next start" >&2
fi fi
else else
echo "[entrypoint] pi-claude-code-provider already installed" echo "[entrypoint] pi-claude-code-provider@$PROVIDER_VERSION already installed"
fi fi
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then