@rubytech/create-maxy-lite 0.1.16 → 0.1.17
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/lib/paths.mjs +7 -5
- package/package.json +1 -1
package/lib/paths.mjs
CHANGED
|
@@ -185,11 +185,13 @@ export function launcherScript({
|
|
|
185
185
|
} = {}) {
|
|
186
186
|
// Kill any prior relay before starting so `maxy-lite` always runs the freshly
|
|
187
187
|
// installed server.mjs, never a stale process still holding the port (which made
|
|
188
|
-
// a new build appear to "have no effect").
|
|
189
|
-
// <vault>/.maxy-lite/relay.pid
|
|
190
|
-
//
|
|
191
|
-
//
|
|
192
|
-
|
|
188
|
+
// a new build appear to "have no effect"). Kill ONLY the pid the relay recorded in
|
|
189
|
+
// <vault>/.maxy-lite/relay.pid, via the bash builtin (no external tools). A broad
|
|
190
|
+
// `pkill -f "node server.mjs"` is NOT used: pkill -f matches the full command line,
|
|
191
|
+
// and this launcher's own `bash -lc '… exec node server.mjs'` contains that string,
|
|
192
|
+
// so it would SIGTERM its own session (proot vpid 1). A stale relay with no pid file
|
|
193
|
+
// is caught loudly by the relay's own EADDRINUSE handler instead.
|
|
194
|
+
const killPrior = `P=$(cat ${vaultGuest}/.maxy-lite/relay.pid 2>/dev/null); [ -n "$P" ] && kill "$P" 2>/dev/null; sleep 1`
|
|
193
195
|
const inner = `${killPrior}; cd ${webchatDir} && ${webchatRunEnv({ vaultGuest, port })} exec node server.mjs`
|
|
194
196
|
return `#!${prefix}/bin/bash
|
|
195
197
|
# maxy-lite launcher — starts the on-device web chat relay.
|
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.17",
|
|
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": {
|