bridge: resolve pi SDK via absolute container path (global npm ESM resolution)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user