#!/bin/sh DRAW_IMAGE_DIR="/root/.config/opencode/draw-image" if [ ! -d "$DRAW_IMAGE_DIR/node_modules/sharp" ]; then echo "[entrypoint] Installing draw-image dependencies..." npm ci --prefix "$DRAW_IMAGE_DIR" || echo "[entrypoint] WARN: npm ci failed, draw-image may not work" fi exec opencode "$@"