@rubytech/create-maxy-lite 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +17 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -136,18 +136,27 @@ const installDeps = async () => {
|
|
|
136
136
|
// built artifact directly to recover the actual dlopen error, and carry THAT into
|
|
137
137
|
// err= — the true reason (ABI/NODE_MODULE_VERSION/symbol/ELF), not the swallowed miss.
|
|
138
138
|
if (runIn(ptyLoadCommand()).code !== 0) {
|
|
139
|
-
|
|
140
|
-
//
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
const cause =
|
|
144
|
-
direct.stderr
|
|
139
|
+
// proot emits `can't sanitize binding /proc/self/fd/*` lines on every
|
|
140
|
+
// non-interactive login; they are noise that buries the real error. Strip them.
|
|
141
|
+
const clean = (s) =>
|
|
142
|
+
String(s || '')
|
|
145
143
|
.split('\n')
|
|
146
144
|
.filter((l) => !/proot warning: can't sanitize binding/.test(l))
|
|
147
145
|
.join(' ')
|
|
148
146
|
.replace(/\s+/g, ' ')
|
|
149
|
-
.trim()
|
|
150
|
-
|
|
147
|
+
.trim()
|
|
148
|
+
const direct = runIn(ptyDirectLoadCommand())
|
|
149
|
+
const cause = clean(direct.stderr) || `no stderr; ${PTY_NODE}`
|
|
150
|
+
// The load error is a libc-link failure (`libc.so: cannot open shared object
|
|
151
|
+
// file`). Capture which libraries pty.node actually needs (ldd) and any leaked
|
|
152
|
+
// Termux linker env (LD_*/LIBRARY_PATH) so the next run names the exact cause
|
|
153
|
+
// and we fix from certainty, not a guess.
|
|
154
|
+
const diag = runIn(
|
|
155
|
+
`ldd ${PTY_NODE} 2>&1; echo '|env:'; env | grep -iE 'LD_PRELOAD|LD_LIBRARY_PATH|LIBRARY_PATH' || echo '(no LD_* env)'`,
|
|
156
|
+
)
|
|
157
|
+
throw new Error(
|
|
158
|
+
`node-pty native module did not load after build: ${cause} || ldd+env: ${clean(diag.stdout + ' ' + diag.stderr)}`,
|
|
159
|
+
)
|
|
151
160
|
}
|
|
152
161
|
}
|
|
153
162
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rubytech/create-maxy-lite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Install maxy-lite on an Android phone: orchestrates proot-distro Ubuntu, glibc Node, claude, the web-chat relay, the vault and its bind-mount — run via npx in bare Termux.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|