pi-web-ui 0.65.0 → 0.67.0

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/README.md CHANGED
@@ -163,6 +163,48 @@ silences the warning):
163
163
  npm i -g --allow-scripts=node-pty,@google/genai,protobufjs pi-web-ui@latest
164
164
  ```
165
165
 
166
+ ### Termux (Android)
167
+
168
+ pi-web-ui runs fine on Android via [Termux](https://termux.dev), but `node-pty`
169
+ (the native dependency) needs a toolchain, and Android has a few quirks worth
170
+ knowing:
171
+
172
+ 1. **Install the build toolchain first** — `node-pty` needs Python and a C
173
+ toolchain:
174
+
175
+ ```bash
176
+ pkg install python clang make binutils
177
+ ```
178
+
179
+ 2. **Point the node-pty build at a dummy NDK path.** On Android, gyp fails with
180
+ `Undefined variable android_ndk_path` unless the variable is defined:
181
+
182
+ ```bash
183
+ GYP_DEFINES="android_ndk_path=' '" npm i -g --allow-scripts=node-pty,@google/genai,protobufjs pi-web-ui@latest
184
+ ```
185
+
186
+ 3. **If `pi-web-ui` won't execute after install** (the exec bit and/or shebang
187
+ can get mangled on Android): restore it:
188
+
189
+ ```bash
190
+ chmod +x "$(command -v pi-web-ui)"
191
+ sed -i 's/\r$//' "$(command -v pi-web-ui)"
192
+ ```
193
+
194
+ 4. **Run it in the background** with `--no-browser` (there is no desktop
195
+ browser to auto-open):
196
+
197
+ ```bash
198
+ setsid nohup pi-web-ui --no-browser --cwd /path/to/workspace >~/pi-web.log 2>&1 &
199
+ ```
200
+
201
+ `setsid` detaches the server from the launching shell's process group, so
202
+ closing the Termux session doesn't take the server down — `nohup` alone is
203
+ not enough when the parent process group gets killed.
204
+
205
+ The `[control] socket error: EACCES …/.pi-web/pi-web-ui.sock` warning at startup
206
+ is harmless on Android: `pi-web-ui server stop/restart` won't work over the
207
+ control socket, but the web UI itself is unaffected.
166
208
 
167
209
  ## Quick start
168
210