From 5b3306fc02ee173d495634956af1853d3479cb03 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Tue, 15 Sep 2026 16:20:37 -0700 Subject: [PATCH] dm-mcp: find node in a $HOME tarball on remote iMessage senders too (poorslice) --- slab/bin/dm-mcp.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slab/bin/dm-mcp.mjs b/slab/bin/dm-mcp.mjs index 0cd21d87c3..358d525671 100755 --- a/slab/bin/dm-mcp.mjs +++ b/slab/bin/dm-mcp.mjs @@ -95,7 +95,8 @@ function runImsg(args, machine, opts) { // The remote login shell is fish, whose quoting differs from bash's, and // node lives under fnm — so the script goes to `bash -s` over stdin and no // remote shell ever parses it. imsg.json (the contacts) must exist there. - const script = `eval "$(fnm env --shell bash 2>/dev/null)"; cd ~/aesthetic-computer && node slab/bin/imsg.mjs ${args.map(shq).join(" ")}\n`; + // node is under fnm on the MacBooks and a $HOME tarball on poorslice. + const script = `export PATH="$HOME/node/bin:$HOME/bin:$PATH"; eval "$(fnm env --shell bash 2>/dev/null)"; cd ~/aesthetic-computer && node slab/bin/imsg.mjs ${args.map(shq).join(" ")}\n`; return run("ssh", [sshHost(machine), "bash -s"], { ...opts, input: script }); } -- 2.51.2