bridge: resolve pi SDK via absolute container path (global npm ESM resolution)

This commit is contained in:
Raphael Westphal
2026-08-18 15:47:49 +02:00
parent f8bfaeaa21
commit b5d267e61e
6 changed files with 198 additions and 1 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
// lvmh worker bridge: headless pi session via SDK; the lvmh plugin (installed
// at /root/.pi/agent/extensions/lvmh-agent.ts) dials the daemon and delivers
// web prompts through pi.sendUserMessage. This process just hosts the session.
import { createAgentSession } from "@earendil-works/pi-coding-agent";
// Global npm layout: resolve pi via absolute path (NODE_PATH does not apply to ESM).
import { createAgentSession } from "/usr/local/lib/node_modules/@earendil-works/pi-coding-agent/dist/index.js";
process.on("unhandledRejection", (err) => {
console.error("[lvmh-bridge] unhandledRejection:", err);