6 Commits
Author SHA1 Message Date
Hermes Agent 9cf881a8fd fix: install better-sqlite3 globally, remove local copy in n2-soul
PR Checks / hadolint (pull_request) Successful in 6s
PR Checks / build-test (pull_request) Successful in 1m32s
npm 10+ rejects --allow-scripts in project-scoped (non-global) installs.
Install better-sqlite3@12.11.1 globally with --allow-scripts, then remove
the incompatible v11.10.0 from n2-soul's node_modules so Node.js resolves
the global v12.11.1 instead.
2026-07-13 23:28:16 +00:00
Hermes Agent 988bf26667 fix: install n2-soul with --ignore-scripts, then upgrade better-sqlite3
PR Checks / hadolint (pull_request) Successful in 6s
PR Checks / build-test (pull_request) Failing after 39s
n2-soul's npm install fails on Node 26 because its dependency
better-sqlite3@11.10.0 cannot compile (V8 API removed GetPrototype).
The subsequent upgrade to v12 never runs due to set -eux.

Fix: install n2-soul without scripts, then replace better-sqlite3
with v12.11.1 which has prebuilt binaries for Node 26.

open-code-ai is installed separately with scripts allowed.
2026-07-13 23:26:20 +00:00
Hermes Agent 523c39808f fix: suppress hadolint DL3003 for subshell cd pattern
PR Checks / hadolint (pull_request) Successful in 7s
PR Checks / build-test (pull_request) Failing after 2m26s
2026-07-13 23:21:19 +00:00
Hermes Agent 25ce5423ed fix: use subshell to avoid hadolint DL3003 warning
PR Checks / hadolint (pull_request) Failing after 6s
PR Checks / build-test (pull_request) Failing after 2m39s
2026-07-13 23:19:18 +00:00
Hermes Agent 6ccd634cd9 fix: upgrade better-sqlite3 to v12 for Node 26 compatibility
PR Checks / hadolint (pull_request) Failing after 6s
PR Checks / build-test (pull_request) Failing after 2m39s
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.
2026-07-13 23:18:25 +00:00
Hermes Agent 7dc7c4a043 fix: pass --allow-scripts to npm install for blocked postinstall
PR Checks / hadolint (pull_request) Successful in 5s
PR Checks / build-test (pull_request) Successful in 3m7s
The node:24-trixie base image has npm configured with a restricted
allowScripts list, preventing opencode-ai's postinstall from running.
Pass --allow-scripts=opencode-ai,better-sqlite3 to npm install -g to
explicitly allow these packages to run their install scripts.

This is the npm-recommended fix as shown in the npm warning message.
2026-07-13 20:52:32 +00:00