pi-web-ui 0.64.8 → 0.66.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 +50 -0
- package/README.zh-CN.md +466 -427
- package/dist/server/agent-service.js +45 -9
- package/dist/server/index.js +40 -3
- package/dist/server/plugin-catalog.js +159 -0
- package/dist/server/plugins.js +57 -1
- package/dist/server/update-check.js +55 -16
- package/package.json +111 -108
- package/plugins/catalog.json +38 -0
- package/web/dist/assets/{TerminalPanel-DL8sTcRC.js → TerminalPanel-Bu0PEPj5.js} +1 -1
- package/web/dist/assets/index-DiO-MN6k.css +10 -0
- package/web/dist/assets/index-DoOQgKox.js +326 -0
- package/web/dist/assets/{markdown-BJJLXG-8.js → markdown-DRBrS2Nf.js} +1 -1
- package/web/dist/assets/{react-ezqUM1Or.js → react-C9ovnpIm.js} +1 -1
- package/web/dist/index.html +4 -4
- package/web/dist/assets/abnfDiagram-VCTEODGH-BF9usV5C.js +0 -1
- package/web/dist/assets/arc-BHXahvV5.js +0 -1
- package/web/dist/assets/architectureDiagram-5GKGNRK7-V2QNH_BW.js +0 -36
- package/web/dist/assets/blockDiagram-I7D4REHJ-DNWe8D5y.js +0 -129
- package/web/dist/assets/c4Diagram-7LVT6UL2-Cd7YCdDn.js +0 -38
- package/web/dist/assets/channel-DDCgqHU5.js +0 -1
- package/web/dist/assets/chunk-2Q5K7J3B-Dn4M1g1T.js +0 -1
- package/web/dist/assets/chunk-5VM5RSS4-U5uyVkTI.js +0 -15
- package/web/dist/assets/chunk-F27PBJKO-lMqDdknq.js +0 -1
- package/web/dist/assets/chunk-IMKFNOWR-DlzpFcKz.js +0 -231
- package/web/dist/assets/chunk-JWPE2WC7-BdI7zobW.js +0 -1
- package/web/dist/assets/chunk-POPQ4Y6H-Dk7oA6BE.js +0 -1
- package/web/dist/assets/chunk-SVP7TREG-BhXOKkNm.js +0 -88
- package/web/dist/assets/chunk-TICWLB2K-DFW_5Q5s.js +0 -206
- package/web/dist/assets/chunk-XXDRQBXY-d-B9YyVA.js +0 -1
- package/web/dist/assets/classDiagram-ZZMXUADV-DnlRT21K.js +0 -1
- package/web/dist/assets/classDiagram-v2-VYDZK3BY-DnlRT21K.js +0 -1
- package/web/dist/assets/cose-bilkent-JH36ORCC-W3IYYiNN.js +0 -1
- package/web/dist/assets/cynefin-OW5HDTMX-DVcVxvWj.js +0 -178
- package/web/dist/assets/cynefinDiagram-5FMLGOSQ-DdUHHDle.js +0 -62
- package/web/dist/assets/cytoscape.esm-Bch-eiPH.js +0 -331
- package/web/dist/assets/dagre-GXQ25YYZ-DMqzPbm8.js +0 -4
- package/web/dist/assets/defaultLocale-DX6XiGOO.js +0 -1
- package/web/dist/assets/diagram-S7CK7UJ4-g-T7ZpRp.js +0 -30
- package/web/dist/assets/diagram-UQ7AKVKN-Cj1HB5mV.js +0 -41
- package/web/dist/assets/diagram-VSXAHHWV-D4Xgm5yq.js +0 -3
- package/web/dist/assets/diagram-VX7I27RA-CPaDZ0sg.js +0 -24
- package/web/dist/assets/diagram-Z3DM3KII-BwroUmR-.js +0 -24
- package/web/dist/assets/ebnfDiagram-PWID7BFC-CymjTfGP.js +0 -1
- package/web/dist/assets/erDiagram-RLTQ6QDP-CkCv1f0Q.js +0 -99
- package/web/dist/assets/flowDiagram-HODETNUW-IrWWLHqn.js +0 -168
- package/web/dist/assets/ganttDiagram-EL5Y4UJY-DhHylBej.js +0 -292
- package/web/dist/assets/gitGraphDiagram-WWUBYQGX-C1O_4b0m.js +0 -106
- package/web/dist/assets/index-B-D8dBbi.js +0 -326
- package/web/dist/assets/index-DWUw-5kk.css +0 -10
- package/web/dist/assets/infoDiagram-27XIBGKW-B3SzbIHm.js +0 -2
- package/web/dist/assets/init-Gi6I4Gst.js +0 -1
- package/web/dist/assets/ishikawaDiagram-5VMMS53U-CM5U90LI.js +0 -70
- package/web/dist/assets/journeyDiagram-3NMN7TZE-BIWbaonv.js +0 -139
- package/web/dist/assets/kanban-definition-UXKFOSKX-Cg0FRvzj.js +0 -89
- package/web/dist/assets/katex-C5jXJg4s.js +0 -257
- package/web/dist/assets/layout-BMZQTQDF.js +0 -1
- package/web/dist/assets/linear--htAmwBy.js +0 -1
- package/web/dist/assets/mermaid.core-Bxpg8jiH.js +0 -312
- package/web/dist/assets/mindmap-definition-YA3MSWOX-CNp9C6Gy.js +0 -96
- package/web/dist/assets/ordinal-Cboi1Yqb.js +0 -1
- package/web/dist/assets/pegDiagram-XKGWAZYB-B4mLGlJp.js +0 -1
- package/web/dist/assets/pieDiagram-E7YTZNPT-hP4zuAzM.js +0 -39
- package/web/dist/assets/quadrantDiagram-AXDQQJYC-DVN-GEzm.js +0 -7
- package/web/dist/assets/railroadDiagram-O6MQD6OU-BjBVdCWk.js +0 -1
- package/web/dist/assets/requirementDiagram-BXWQKSXE-BOwNWcER.js +0 -84
- package/web/dist/assets/sankeyDiagram-P5KCCOFB-CkK6Y6CK.js +0 -40
- package/web/dist/assets/sequenceDiagram-WJ2MYXX4-D49cIkIS.js +0 -162
- package/web/dist/assets/sizeCapture-INFHLROL-D9R6YbVj.js +0 -1
- package/web/dist/assets/stateDiagram-D77RDMKH-DvwH4KPJ.js +0 -1
- package/web/dist/assets/stateDiagram-v2-MP3YSRHH-CHVwI1ZU.js +0 -1
- package/web/dist/assets/swimlanes-42K2YHIH-DgpCt172.js +0 -1
- package/web/dist/assets/swimlanesDiagram-VR7AAH4N-L7ZmzB2n.js +0 -8
- package/web/dist/assets/timeline-definition-24CTP7MA-Cy-6c2rf.js +0 -120
- package/web/dist/assets/vennDiagram-4TSXK5OY-D05mFAgh.js +0 -34
- package/web/dist/assets/wardleyDiagram-VM6X3IG4--c9A1xky.js +0 -78
- package/web/dist/assets/xychartDiagram-S5SC5T6Z-F6B_ZHcI.js +0 -7
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
|
|
|
@@ -280,6 +322,14 @@ Example — install the webmail plugin:
|
|
|
280
322
|
pi-web-ui install https://github.com/xing-shuyin/pi-web-ui/tree/main/plugins/webmail
|
|
281
323
|
```
|
|
282
324
|
|
|
325
|
+
You can also install from inside the UI: **设置 → 界面插件 → 插件市场** lists
|
|
326
|
+
maintainable plugins (the same set, shipped in `plugins/catalog.json`) with
|
|
327
|
+
full **安装 / 更新 / 卸载** controls (updates keep `config.json`), and lets you
|
|
328
|
+
drop any third-party plugin into the list via **添加插件** (paste `owner/repo`
|
|
329
|
+
or an `owner/repo/subdir` source) — your additions are stored in
|
|
330
|
+
`<dataDir>/plugin-catalog.json`. A plugin author can contribute to the built-in
|
|
331
|
+
list with a one-line PR to `plugins/catalog.json`.
|
|
332
|
+
|
|
283
333
|
Each plugin's directory in the repo has its own `README.md` with full feature
|
|
284
334
|
lists, configuration and per-plugin caveats.
|
|
285
335
|
|