From 6ccd634cd9fa8c4d3b7e1af52926b6ba5be7133f Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Mon, 13 Jul 2026 23:18:25 +0000 Subject: [PATCH] fix: upgrade better-sqlite3 to v12 for Node 26 compatibility n2-soul@9.0.9 depends on better-sqlite3@^11.10.0 which does not support Node.js 26. The V8 API changed (GetPrototype removed in favor of GetPrototypeV2), causing native compilation to fail. Upgrade to better-sqlite3@12.11.1 which supports Node 26 and has prebuilt binaries. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index f3fb581..77940c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ RUN apt-get update && \ useradd -m -u 1000 -g 1000 -s /usr/bin/bash opencode; \ npm update -g --no-fund --no-audit && \ npm install -g --no-fund --no-audit --allow-scripts=opencode-ai,better-sqlite3 opencode-ai@1.17.18 n2-soul@9.0.9 && \ + cd /usr/local/lib/node_modules/n2-soul && npm install --no-fund --no-audit --no-save better-sqlite3@12.11.1 && cd / && \ npm cache clean --force && \ chown -R 1000:1000 /usr/local/lib/node_modules/n2-soul/