OverviewFilesCommitsIssuesDocsReleasesPeers

hypermosh-shell commits / 1ca6ef5

fix: import process for Bare (session.mjs + identity.mjs)
`process` is a Node global but must be imported on Bare — session.mjs used process.env in the mosh-server spawn and crashed with "process is not defined" when run on Bare (celltron). identity.mjs had the same latent issue. Both now `import process from '#node:process'`. Proven end-to-end: `hypermosh celltron` runs a live mosh session on the phone (arm64) over the DHT. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1ca6ef5432d640e97eb400f2a82df478e023deb5
by plankatron <plankatron@users.noreply.github.com> · 2026-07-14T21:42:57.000Z

Changed files (2) +2 -0

lib/identity.mjs +1 -0
……@@ -6,6 +6,7 @@ import os from '#node:os'
66import path from '#node:path'
77import b4a from 'b4a'
88import DHT from 'hyperdht'
9import process from '#node:process'
910import HypercoreId from 'hypercore-id-encoding'
1011
1112function homedir () { return os.homedir ? os.homedir() : (process.env.HOME || '/root') }
lib/session.mjs +1 -0
……@@ -9,6 +9,7 @@
99import DHT from 'hyperdht'
1010import dgram from '#node:dgram'
1111import cp from '#node:child_process'
12import process from '#node:process'
1213import b4a from 'b4a'
1314
1415const T_CTRL = 0