pi-web-ui 0.113.1 → 0.114.1
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/CHANGELOG.md +71 -1
- package/README.md +187 -316
- package/README.zh-CN.md +227 -299
- package/README.zh-TW.md +227 -299
- package/bin/device-hub-cli.mjs +577 -0
- package/bin/frp-manager.mjs +1573 -1573
- package/bin/pi-device-hub.mjs +9 -0
- package/bin/pi-web-ui.mjs +4081 -4041
- package/deploy/nginx-subpath.conf +100 -100
- package/deploy/pi-web-ui.service +36 -36
- package/dist/server/agent-service-daemon.js +102 -24
- package/dist/server/agent-service.js +2419 -1174
- package/dist/server/approval-rules.js +29 -3
- package/dist/server/ask-user-question-tool.js +8 -8
- package/dist/server/atomic-file.js +35 -14
- package/dist/server/attachment-store.js +71 -35
- package/dist/server/attachments.js +69 -13
- package/dist/server/canvas/canvas-agent-tool.js +68 -18
- package/dist/server/canvas/canvas-cards.js +1 -1
- package/dist/server/canvas/canvas-dispatch.js +61 -20
- package/dist/server/canvas/canvas-orchestrator.js +519 -202
- package/dist/server/canvas/canvas-scheduled-task.js +45 -0
- package/dist/server/canvas/canvas-scheduler.js +99 -0
- package/dist/server/canvas/canvas-store.js +107 -54
- package/dist/server/canvas/canvas-validation.js +131 -0
- package/dist/server/canvas/canvas-workspace.js +284 -0
- package/dist/server/client-id-utils.js +8 -0
- package/dist/server/client-state.js +110 -24
- package/dist/server/communicate-tool.js +76 -0
- package/dist/server/compact-context-tool.js +2 -3
- package/dist/server/compaction-instructions.js +75 -0
- package/dist/server/compaction-markers.js +7 -2
- package/dist/server/compaction-state.js +84 -0
- package/dist/server/composer-drafts.js +43 -40
- package/dist/server/context-evidence.js +346 -0
- package/dist/server/conversation-communication.js +368 -0
- package/dist/server/conversation-read-tool.js +3 -4
- package/dist/server/conversation-tool-names.js +14 -0
- package/dist/server/conversation-tool.js +57 -0
- package/dist/server/delegate-mode.js +17 -4
- package/dist/server/device-center/bot-catalog.js +88 -0
- package/dist/server/device-center/bot-execution.js +106 -0
- package/dist/server/device-center/bots.js +170 -0
- package/dist/server/device-center/collab-service.js +153 -0
- package/dist/server/device-center/collab-tool.js +184 -0
- package/dist/server/device-center/connector.js +351 -0
- package/dist/server/device-center/desktop-linux.js +372 -0
- package/dist/server/device-center/desktop-native.js +413 -0
- package/dist/server/device-center/desktop-page.js +232 -0
- package/dist/server/device-center/desktop-setup.js +30 -0
- package/dist/server/device-center/desktop.js +387 -0
- package/dist/server/device-center/device-portals.js +241 -0
- package/dist/server/device-center/execution-failure.js +70 -0
- package/dist/server/device-center/executor.js +371 -0
- package/dist/server/device-center/file-sync.js +493 -0
- package/dist/server/device-center/hub-auth.js +69 -0
- package/dist/server/device-center/hub-page.js +68 -0
- package/dist/server/device-center/hub-setup.js +214 -0
- package/dist/server/device-center/hub.js +830 -0
- package/dist/server/device-center/local-hub.js +92 -0
- package/dist/server/device-center/local.js +529 -0
- package/dist/server/device-center/main.js +118 -0
- package/dist/server/device-center/native-desktop/macos.js +192 -0
- package/dist/server/device-center/native-desktop/windows.js +118 -0
- package/dist/server/device-center/path-portal.js +120 -0
- package/dist/server/device-center/relay.js +996 -0
- package/dist/server/device-center/runtime.js +253 -0
- package/dist/server/device-center/store.js +122 -0
- package/dist/server/device-center/task-error.js +14 -0
- package/dist/server/device-center/transfers.js +293 -0
- package/dist/server/device-center/workspaces.js +45 -0
- package/dist/server/dispatch-domain-handlers.js +84 -27
- package/dist/server/dsh/dsh-agent-service.js +282 -159
- package/dist/server/dsh/dsh-client.js +12 -2
- package/dist/server/dsh/runtime/cordis.yml +1 -1
- package/dist/server/dsh/runtime/custom-prompt.mjs +33 -33
- package/dist/server/dsh/runtime/goal-rpc.mjs +1309 -1309
- package/dist/server/dsh/runtime/launcher.mjs +235 -235
- package/dist/server/dsh/runtime/override.patch.yml +89 -89
- package/dist/server/dsh/runtime/runtime-root.mjs +405 -405
- package/dist/server/durable/durable-agent-service.js +1 -1
- package/dist/server/engine-probe.js +36 -6
- package/dist/server/eval-tool.js +135 -135
- package/dist/server/evidence-tool-hooks.js +49 -0
- package/dist/server/file-save.js +95 -0
- package/dist/server/file-transfer-routes.js +97 -47
- package/dist/server/files-service.js +38 -26
- package/dist/server/global-loader.js +40 -2
- package/dist/server/goal-review-gate.js +16 -6
- package/dist/server/goal-service.js +54 -30
- package/dist/server/http-proxy.js +120 -0
- package/dist/server/index.js +285 -255
- package/dist/server/load-timing.js +31 -0
- package/dist/server/mcp-bridge.js +219 -94
- package/dist/server/mcp-hot-reload.js +31 -5
- package/dist/server/mcp-manager.js +192 -93
- package/dist/server/mcp-oauth-login.js +169 -0
- package/dist/server/mcp-oauth-ui.js +137 -0
- package/dist/server/mcp-oauth.js +395 -0
- package/dist/server/mcp-project-runtime.js +207 -0
- package/dist/server/message-window.js +74 -21
- package/dist/server/net-guard.js +122 -20
- package/dist/server/patch-bash-process.js +125 -0
- package/dist/server/patch-tool.js +9 -9
- package/dist/server/patch-turn-end-boundary.js +3 -3
- package/dist/server/payload-limits.js +17 -0
- package/dist/server/pending-question.js +82 -0
- package/dist/server/persona-chain.js +8 -8
- package/dist/server/plan-mode.js +338 -137
- package/dist/server/plugin-assets.js +8 -4
- package/dist/server/plugin-chat-attachments.js +48 -0
- package/dist/server/plugin-facilities.js +67 -220
- package/dist/server/plugin-installer.js +2 -1
- package/dist/server/plugin-removal.js +49 -0
- package/dist/server/plugin-secrets.js +179 -0
- package/dist/server/plugins.js +288 -94
- package/dist/server/preset-fields.js +56 -0
- package/dist/server/preset-plugin-dependencies.js +57 -0
- package/dist/server/preset-share.js +113 -72
- package/dist/server/prompt-templates.js +106 -0
- package/dist/server/protocol-version.js +1 -1
- package/dist/server/queue-modes.js +10 -0
- package/dist/server/remote-ssh-service.js +199 -106
- package/dist/server/request-context.js +164 -0
- package/dist/server/resolve-global-sdk.js +2 -0
- package/dist/server/sandbox-data.js +655 -0
- package/dist/server/sandbox-engines.js +7 -0
- package/dist/server/sandbox-runtime-gate.js +41 -0
- package/dist/server/sandbox-service.js +139 -698
- package/dist/server/sandbox-tool.js +21 -4
- package/dist/server/schedule-agent-tool.js +39 -21
- package/dist/server/scheduler-tasks.js +106 -55
- package/dist/server/scm-commitmsg.js +10 -10
- package/dist/server/serialize.js +48 -19
- package/dist/server/session-branch.js +25 -3
- package/dist/server/session-parser.js +28 -18
- package/dist/server/session-scan.js +130 -0
- package/dist/server/session-search.js +51 -37
- package/dist/server/settings-service.js +273 -111
- package/dist/server/setup-config.js +58 -0
- package/dist/server/setup-page.js +620 -620
- package/dist/server/skill-maintenance.js +112 -24
- package/dist/server/subagent-helpers.js +4 -1
- package/dist/server/subagent-notify.js +4 -1
- package/dist/server/subagent-security-gate.js +52 -11
- package/dist/server/subagent-task.js +27 -0
- package/dist/server/subagents.js +217 -46
- package/dist/server/tabs.js +9 -1
- package/dist/server/terminals.js +467 -363
- package/dist/server/text-quote.js +9 -0
- package/dist/server/tool-guards.js +42 -6
- package/dist/server/tool-manager.js +48 -20
- package/dist/server/tool-overrides.js +13 -11
- package/dist/server/tool-prompt-overrides.js +32 -2
- package/dist/server/tool-prompts.js +1 -1
- package/dist/server/turn-timing.js +11 -0
- package/dist/server/universal/drivers/claude-code.js +5 -0
- package/dist/server/universal/drivers/codex.js +336 -0
- package/dist/server/universal/index.js +1 -0
- package/dist/server/universal/session-store.js +48 -6
- package/dist/server/universal/universal-attachments.js +24 -1
- package/dist/server/universal/universal-service.js +1 -1
- package/dist/server/universal/universal-session.js +357 -231
- package/dist/server/uploads.js +64 -5
- package/dist/server/vision-bridge.js +18 -18
- package/dist/server/worktree-service.js +32 -24
- package/dist/server/ws-pending-queue.js +73 -27
- package/docs/device-center.md +148 -0
- package/docs/device-desktop.md +48 -0
- package/docs/dsh-engine.md +493 -493
- package/extensions/webui.ts +335 -335
- package/package.json +5 -2
- package/plugin-sdk/README.md +174 -174
- package/plugin-sdk/client-utils.mjs +279 -279
- package/plugin-sdk/import-check.mjs +210 -210
- package/plugin-sdk/index.d.ts +698 -676
- package/plugin-sdk/index.mjs +696 -696
- package/plugin-sdk/package.json +13 -13
- package/plugin-sdk/ssh-host-trust.mjs +225 -0
- package/plugins/catalog.json +11 -1
- package/themes/aetheris.css +501 -607
- package/themes/ayu-light.css +116 -140
- package/themes/bases/flow-base.css +1357 -1363
- package/themes/bases/obsidian-base.css +895 -895
- package/themes/bases/statusbar-flat-base.css +112 -0
- package/themes/bases/zhujian-base.css +688 -687
- package/themes/bases/zhupi-base.css +660 -659
- package/themes/catppuccin-latte.css +119 -142
- package/themes/catppuccin.css +116 -147
- package/themes/claude-code-dark.css +147 -146
- package/themes/codex.css +114 -138
- package/themes/cyberpunk.css +50 -108
- package/themes/dark-teal.css +264 -265
- package/themes/dazzle.css +38 -108
- package/themes/everforest-light.css +115 -138
- package/themes/flow-light.css +164 -164
- package/themes/flow.css +161 -161
- package/themes/geist.css +114 -138
- package/themes/gruvbox-light.css +115 -138
- package/themes/kanagawa-lotus.css +115 -138
- package/themes/md-preview.css +24 -234
- package/themes/mist.css +166 -186
- package/themes/nord.css +107 -138
- package/themes/one-dark.css +106 -139
- package/themes/paper.css +174 -186
- package/themes/rose-pine-dawn.css +114 -138
- package/themes/sakura.css +166 -186
- package/themes/solarized-light.css +114 -137
- package/themes/tokyo-night.css +115 -146
- package/themes/translucent.css +85 -85
- package/themes/transparent.css +116 -116
- package/themes/vs-code-dark.css +147 -147
- package/themes/wallpaper-flow.css +382 -382
- package/themes/wallpaper-obsidian.css +74 -74
- package/themes/white.css +164 -186
- package/themes/zhujian-dark.css +115 -114
- package/themes/zhujian.css +114 -114
- package/themes/zhupi-dark.css +115 -114
- package/themes/zhupi.css +114 -114
- package/web/dist/.build-assets.json +1 -0
- package/web/dist/assets/BgTasksModal-BcXJ20RO.js +1 -0
- package/web/dist/assets/BgTasksModal-DjQmiKnE.js +1 -0
- package/web/dist/assets/CanvasStudio-PI9pid0Y.js +1579 -0
- package/web/dist/assets/CanvasStudio-nf5-HxLM.js +1579 -0
- package/web/dist/assets/DeviceCenter-CYttJw2a.js +3 -0
- package/web/dist/assets/DeviceCenter-DPe4sz74.js +3 -0
- package/web/dist/assets/DeviceGroups-D2rogxEN.js +1 -0
- package/web/dist/assets/Dropdown-ZLS04O8p.js +1 -0
- package/web/dist/assets/FilePreview-C9Ut4Lq6.js +2 -0
- package/web/dist/assets/FilePreview-CvK3ZzX5.js +2 -0
- package/web/dist/assets/GlobalSearchModal-C5e-OCw2.js +1 -0
- package/web/dist/assets/GlobalSearchModal-H7pFK2UC.js +1 -0
- package/web/dist/assets/GroupConversation-C2wNM0dQ.js +1 -0
- package/web/dist/assets/GroupConversation-ChN3TWQK.js +1 -0
- package/web/dist/assets/ModelConfigModal-DDZccDYt.js +2 -0
- package/web/dist/assets/PiSetupModal-DHbqfx8T.js +1 -0
- package/web/dist/assets/ProviderOAuthControls-C-MK36Dk.js +1 -0
- package/web/dist/assets/SCMPanel-buTGziDB.js +2 -0
- package/web/dist/assets/SCMPanel-kx-SCL2s.js +2 -0
- package/web/dist/assets/SettingsModal-BsUF8jqr.js +20 -0
- package/web/dist/assets/SettingsModal-D357Ky7P.js +20 -0
- package/web/dist/assets/TerminalPanel-BBuM_Sez.js +3 -0
- package/web/dist/assets/TerminalPanel-D6x6xz8Q.js +3 -0
- package/web/dist/assets/TuiOverlayModal-CdbGV3Za.js +1 -0
- package/web/dist/assets/TuiOverlayModal-d6x9u25n.js +1 -0
- package/web/dist/assets/app-globals-DcyO0UPi.js +1 -0
- package/web/dist/assets/desktop-YguLbrX1.js +1 -0
- package/web/dist/assets/es-DWMIuDU2.js +2 -0
- package/web/dist/assets/fi-DaSO0Q-m.js +325 -0
- package/web/dist/assets/index-BPvpea8t.js +85 -0
- package/web/dist/assets/index-D6u8xH0o.js +85 -0
- package/web/dist/assets/index-DDZMv6LO.css +1 -0
- package/web/dist/assets/markdown-BggnuQ4H.js +40 -0
- package/web/dist/assets/markdown-C8LL_u4z.css +1 -0
- package/web/dist/assets/math-1uRJCsA9.js +257 -0
- package/web/dist/assets/math-BorAY7qD.css +1 -0
- package/web/dist/assets/plugin-host-BRBg6zmQ.js +1 -0
- package/web/dist/assets/shortcut-stack-hhrDyRBn.js +1 -0
- package/web/dist/assets/theme-DDl-Oy1b.js +1 -0
- package/web/dist/assets/uuid-BzDIGCwP.js +1 -0
- package/web/dist/index.html +42 -35
- package/web/dist/sw.js +179 -179
- package/web/public/sw.js +179 -179
- package/dist/gh-comment-781.md +0 -5
- package/dist/server/durable/durable-capabilities.js +0 -11
- package/dist/server/markers/builtins/services.js +0 -123
- package/dist/server/markers/builtins/todo.js +0 -189
- package/dist/server/markers-list-tool.js +0 -34
- package/dist/server/orchestrator.js +0 -109
- package/dist/server/system-prompt-soul.js +0 -41
- package/dist/server/univer-service.js +0 -448
- package/dist/server/universal/drivers/dsh-driver.js +0 -379
- package/dist/test-artifact.md +0 -9
- package/dist/test-preview-modal.md +0 -11
- package/dist/test-report.html +0 -20
- package/web/dist/assets/TerminalPanel-Ci55JtJL.js +0 -3
- package/web/dist/assets/index-ByiO9f-N.js +0 -2008
- package/web/dist/assets/index-ycGLh4a4.css +0 -1
- package/web/dist/assets/markdown-BJZlfvdP.js +0 -296
- package/web/dist/assets/markdown-DSNUiDzp.css +0 -1
package/README.md
CHANGED
|
@@ -1,316 +1,187 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
#
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
pi-web-ui
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
###
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### Starting the Server
|
|
189
|
-
|
|
190
|
-
```bash
|
|
191
|
-
pi-web-ui # Starts in current folder, opens http://127.0.0.1:8787
|
|
192
|
-
pi-web-ui --port 9000 --cwd /path/to/repo # Specify port and workspace path
|
|
193
|
-
pi-web-ui --no-browser # Start server without auto-opening a browser tab
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### 🌐 Opening Remote SSH Server Projects
|
|
197
|
-
|
|
198
|
-
You can develop on remote servers through two simple ways:
|
|
199
|
-
|
|
200
|
-
1. **From Web UI**: In the top-bar workspace dropdown, click "Switch Directory" → select the **"Remote (SSH)"** tab, fill in the host (e.g. `192.168.1.100`), port, username, and password or SSH private key, then click "Connect & Probe". Browse and pick any remote folder. Profiles are encrypted and saved locally for one-click reconnection.
|
|
201
|
-
2. **From Command Line**:
|
|
202
|
-
```bash
|
|
203
|
-
pi-web-ui --cwd ssh://ubuntu@192.168.1.100:22/var/www/my-project
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
### Common Flags & Environment Variables
|
|
207
|
-
|
|
208
|
-
| CLI Flag | Environment Variable | Default | Description |
|
|
209
|
-
| :------------------- | :------------------- | :---------------- | :-------------------------------------------------------------------------- |
|
|
210
|
-
| `--port <n>` | `PI_WEB_PORT` | `8787` | HTTP port to listen on |
|
|
211
|
-
| `--host <addr>` | `PI_WEB_HOST` | `127.0.0.1` | Listen address (`0.0.0.0` for remote/LAN access) |
|
|
212
|
-
| `--cwd <dir>` | `PI_WEB_CWD` | Current directory | Workspace root (local path or `ssh://user@host:port/path`) |
|
|
213
|
-
| `--data-dir <dir>` | `PI_WEB_DATA_DIR` | `~/.pi-web` | Directory for state, plugins, themes, and uploads |
|
|
214
|
-
| `--engine <pi\|dsh>` | `PI_WEB_ENGINE` | `pi` | Agent engine: `pi` native or `dsh` (DeepSeek Harness) |
|
|
215
|
-
| `--no-browser` | — | off | Do not auto-launch system browser on startup |
|
|
216
|
-
| _Env only_ | `PI_WEB_TOKEN` | empty | Optional shared authentication token |
|
|
217
|
-
| _Env only_ | `PI_WEB_SDK` | `global` | Auto-follow newer pi SDK on ancestor path; set to `bundled` to pin built-in |
|
|
218
|
-
|
|
219
|
-
### System Background Service (`pi-web-ui server`)
|
|
220
|
-
|
|
221
|
-
Manage pi-web-ui as a background daemon with auto-start on boot (launchd on macOS, systemd on Linux, Windows Run key):
|
|
222
|
-
|
|
223
|
-
```bash
|
|
224
|
-
pi-web-ui server install --port 9000 --cwd /path/to/project # Install and start background service
|
|
225
|
-
pi-web-ui server status # Inspect live status, PID, and connections
|
|
226
|
-
pi-web-ui server restart # Restart background server
|
|
227
|
-
pi-web-ui server stop # Stop background server
|
|
228
|
-
pi-web-ui server uninstall # Remove system service
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
### FRP Reverse Proxy Tunnel (`pi-web-ui frp` / `piwebui frp`)
|
|
232
|
-
|
|
233
|
-
Automatically deploy and configure FRP (Fast Reverse Proxy) to forward your local pi-web-ui port to a remote server with a public IP:
|
|
234
|
-
|
|
235
|
-
```bash
|
|
236
|
-
pi-web-ui frp # Interactive setup wizard
|
|
237
|
-
pi-web-ui frp deploy --server <ip> --remote-port 8787 # Auto-deploy remote frps and local frpc
|
|
238
|
-
pi-web-ui frp status # Check client status and public URL
|
|
239
|
-
pi-web-ui frp start|stop|restart # Manage local frpc service
|
|
240
|
-
pi-web-ui frp run # Run frpc in foreground with live logs
|
|
241
|
-
pi-web-ui frp script --server <ip> # Generate standalone remote deploy bash script
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### Updating & Uninstalling
|
|
245
|
-
|
|
246
|
-
```bash
|
|
247
|
-
# Update to latest version
|
|
248
|
-
npm i -g pi-web-ui@latest
|
|
249
|
-
pi-web-ui server restart
|
|
250
|
-
|
|
251
|
-
# Uninstall (conversations in ~/.pi/agent/ and state in ~/.pi-web/ are safely preserved)
|
|
252
|
-
npm uninstall -g pi-web-ui
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
---
|
|
256
|
-
|
|
257
|
-
## 🧩 Plugins & Extensions
|
|
258
|
-
|
|
259
|
-
- **Plugin Market**: Browse, install, and configure built-in and community-contributed extensions directly within the web UI (`Settings` → `Plugins`).
|
|
260
|
-
- **CLI Plugin Installation**: Install directly from any GitHub repository or local directory:
|
|
261
|
-
```bash
|
|
262
|
-
pi-web-ui install owner/repo
|
|
263
|
-
```
|
|
264
|
-
- **Page Picker Extension**: Download `page-picker-extension.zip` from [Releases](https://github.com/xing-shuyin/pi-web-ui/releases/latest), unpack, and load it into Chrome/Edge as an unpacked extension.
|
|
265
|
-
|
|
266
|
-
### 🚀 Submit Third-Party Community Plugins (Fully Automated CI Review & Instant Publish)
|
|
267
|
-
|
|
268
|
-
Whether you develop custom AI tools, workspace views, platform bots (Telegram, Discord, Slack, etc.), or themes, you are warmly invited to submit your plugin to the official community registry!
|
|
269
|
-
|
|
270
|
-
- 📦 **Community Plugin Registry Repository**: 👉 [**xing-shuyin/pi-web-ui-plugins**](https://github.com/xing-shuyin/pi-web-ui-plugins)
|
|
271
|
-
- 📖 **Quick 4-Step Submission (Supports Web-Only Submission)**:
|
|
272
|
-
1. Prepare your open-source GitHub repository with a standard open-source license and a valid `manifest.json`;
|
|
273
|
-
2. Visit and Fork [xing-shuyin/pi-web-ui-plugins](https://github.com/xing-shuyin/pi-web-ui-plugins);
|
|
274
|
-
3. Create `plugins/<your-plugin-id>/plugin.json` with metadata (name, source, description, icon) — you can do this directly on GitHub web via "Add file";
|
|
275
|
-
4. Submit a Pull Request!
|
|
276
|
-
|
|
277
|
-
#### 🌟 Key Benefits of Publishing to the Official Registry
|
|
278
|
-
|
|
279
|
-
| Benefit | Description |
|
|
280
|
-
| :--------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
281
|
-
| ⚡ **Zero-Touch Auto-Merge** | Low-risk plugins (standard tools/views without privileged permissions) are audited by the GitHub Actions bot in real time. **Once checks pass, the bot automatically approves and auto-merges the PR** with zero manual wait! |
|
|
282
|
-
| 🌐 **Global Instant Exposure** | This registry is the **out-of-the-box default catalog** for `pi-web-ui`. Within ~1 minute after merge, your plugin is searchable and installable with one click across all running `pi-web-ui` client markets worldwide. |
|
|
283
|
-
| 🛡️ **Continuous Security Audit & Trust** | Every submission and **subsequent PR update** automatically triggers strict CI security scanning (JSON Schema compliance, SVG icon XSS filtering, permission boundary checks, and author anti-tampering verification). |
|
|
284
|
-
| 🧩 **Zero Merge Conflicts** | Each plugin uses an isolated `plugins/<id>/plugin.json` directory structure, ensuring parallel PRs from multiple authors never conflict. |
|
|
285
|
-
|
|
286
|
-
---
|
|
287
|
-
|
|
288
|
-
## 📖 Complete Documentation
|
|
289
|
-
|
|
290
|
-
For detailed deployment guides, plugin development SDKs, and deep architectural specifications, visit the official documentation portal:
|
|
291
|
-
|
|
292
|
-
👉 **[Documentation Portal](https://xing-shuyin.github.io/pi-web-ui-site/docs.html)**
|
|
293
|
-
|
|
294
|
-
- 🌐 [Official Website & Feature Tour](https://xing-shuyin.github.io/pi-web-ui-site/)
|
|
295
|
-
- 🌐 [Remote SSH Workspaces & Server Setup Guide](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#remote-ssh)
|
|
296
|
-
- 🖥️ [Desktop Portable Edition & Custom Build Guide](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#portable)
|
|
297
|
-
- 🛡️ [Reverse Proxy & Remote Access (Nginx / frp / SSL)](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#reverse-proxy)
|
|
298
|
-
- 🔌 [Plugin System & Plugin SDK Guide](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#plugin-sdk)
|
|
299
|
-
- ⚙️ [Full Environment Variables & Configuration Reference](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#environment-variables)
|
|
300
|
-
- 🏗️ [Core Architecture & WebSocket Protocol Specs](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#architecture)
|
|
301
|
-
- 🐋 [Docker, Systemd, and Production Deployment](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#deployment)
|
|
302
|
-
|
|
303
|
-
---
|
|
304
|
-
|
|
305
|
-
## 🤝 Contributing & Community
|
|
306
|
-
|
|
307
|
-
Contributions are warmly welcomed! Every pull request, bug report, and feature idea helps make pi-web-ui better.
|
|
308
|
-
|
|
309
|
-
- 💡 **Issues & Feature Requests**: [GitHub Issues](https://github.com/xing-shuyin/pi-web-ui/issues)
|
|
310
|
-
- 🗣️ **Discussions**: [GitHub Discussions](https://github.com/xing-shuyin/pi-web-ui/discussions)
|
|
311
|
-
- 💬 **Community QQ Group**: `1126050727`
|
|
312
|
-
- 🔗 **Companion Project**: [dsh-ui-tools](https://github.com/xing-shuyin/dsh-ui-tools)
|
|
313
|
-
|
|
314
|
-
## 📄 License
|
|
315
|
-
|
|
316
|
-
[MIT](LICENSE)
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# pi-web-ui
|
|
4
|
+
|
|
5
|
+
A browser and desktop workspace for AI coding agents.
|
|
6
|
+
|
|
7
|
+
**English** · [简体中文](./README.zh-CN.md) · [繁體中文](./README.zh-TW.md)
|
|
8
|
+
|
|
9
|
+
[Website](https://xing-shuyin.github.io/pi-web-ui-site/) · [Documentation](https://xing-shuyin.github.io/pi-web-ui-site/docs.html) · [Downloads](https://github.com/xing-shuyin/pi-web-ui/releases/latest)
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/pi-web-ui)
|
|
12
|
+
[](https://nodejs.org/)
|
|
13
|
+
[](./LICENSE)
|
|
14
|
+
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
pi-web-ui brings chat, files, terminals, Git and agent workflows into one workspace. Run it locally in a browser, use the Electron desktop app, or connect to remote SSH projects. The pi SDK and DeepSeek Harness (DSH) have different capabilities; choose the engine and model that suit your task.
|
|
18
|
+
|
|
19
|
+
## Quick start
|
|
20
|
+
|
|
21
|
+
For the command-line version, install **Node.js 22.19.0 or newer**. Desktop installers include their runtime. Git and shell availability affect terminal and repository features.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install -g pi-web-ui@latest
|
|
25
|
+
cd /path/to/your/project
|
|
26
|
+
pi-web-ui
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Open `http://127.0.0.1:8787` if the browser does not open automatically. Configure a model provider and its credentials in workspace settings, select a model, and send your first task. Stop a foreground process with Ctrl+C.
|
|
30
|
+
|
|
31
|
+
For a first try without a global installation:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx pi-web-ui@latest
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
If npm blocks native dependency scripts, follow the installed npm version's script-approval instructions. See the [installation guide](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#installation) for platform dependencies and troubleshooting.
|
|
38
|
+
|
|
39
|
+
## Choose an installation
|
|
40
|
+
|
|
41
|
+
| Method | When to use it | Instructions |
|
|
42
|
+
| -------------------- | --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
43
|
+
| npm / npx | Local development or a server with Node.js | Commands above; [complete guide](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#npm-install) |
|
|
44
|
+
| Desktop installers | A desktop app with an included runtime | Download the matching Windows, macOS or Linux asset from [Releases](https://github.com/xing-shuyin/pi-web-ui/releases/latest) |
|
|
45
|
+
| Windows portable ZIP | Keep the app and portable data together | Extract `pi-web-ui-desktop-<version>-portable.zip`; follow its included launcher instructions. Bundled Git/Node depend on the build; see [portable details](./desktop/README.md) |
|
|
46
|
+
| Docker Compose | Container deployment built from source | See the commands below |
|
|
47
|
+
| Android / Termux | Browser access from an Android terminal environment | [Termux prerequisites and commands](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#termux-install) |
|
|
48
|
+
| Source checkout | Contributing or testing local changes | [Development](#development) |
|
|
49
|
+
|
|
50
|
+
On Linux, native dependency compilation may require Python, make and a C++ compiler. On Windows, install Git for Windows when Bash-based workflows are needed. Portable data placement does not guarantee that the operating system, browser or external tools leave no traces.
|
|
51
|
+
|
|
52
|
+
### Run as a background service
|
|
53
|
+
|
|
54
|
+
After global npm installation, install **and start** the service with explicit project and data paths. Stop any foreground process already using the port first.
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pi-web-ui server install --cwd "/path/to/project" --data-dir "/path/to/pi-data" --port 8787
|
|
58
|
+
pi-web-ui server status
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Windows PowerShell example:
|
|
62
|
+
|
|
63
|
+
```powershell
|
|
64
|
+
pi-web-ui server install --cwd "D:\Projects\app" --data-dir "D:\pi-data" --port 8787
|
|
65
|
+
pi-web-ui server status
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Visit `http://127.0.0.1:8787` and verify the project and a model response. macOS uses a user launchd agent, Linux systemd, and Windows the current user's login Run key. Linux installation may require elevated privileges; Windows login autostart is not a system-level Windows Service.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
pi-web-ui server stop
|
|
72
|
+
pi-web-ui server start
|
|
73
|
+
pi-web-ui server restart
|
|
74
|
+
pi-web-ui server status
|
|
75
|
+
pi-web-ui server shortcut
|
|
76
|
+
# Remove the service only when it is no longer needed:
|
|
77
|
+
pi-web-ui server uninstall
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Use `--name my-pi` consistently when installing and managing named services. Services may not inherit interactive-shell credentials or PATH. See [service configuration](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#daemon-service).
|
|
81
|
+
|
|
82
|
+
### Common startup options
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
pi-web-ui --cwd "/path/to/project" --port 9000 --no-browser
|
|
86
|
+
pi-web-ui --host 0.0.0.0 --port 9000 --cwd "/path/to/project"
|
|
87
|
+
pi-web-ui --help
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
| Flag | Environment | Purpose / default |
|
|
91
|
+
| -------------------- | --------------------- | ---------------------------------------------------------------------------------- |
|
|
92
|
+
| `--cwd <dir>` | `PI_WEB_CWD` | Workspace: current directory in foreground; `~/pi-web-ui` for service installation |
|
|
93
|
+
| `--port <n>` | `PI_WEB_PORT` | HTTP and WebSocket port; 8787 |
|
|
94
|
+
| `--host <addr>` | `PI_WEB_HOST` | Listen address; 127.0.0.1 is local-only |
|
|
95
|
+
| `--data-dir <dir>` | `PI_WEB_DATA_DIR` | Service data; `~/.pi-web` under the running account |
|
|
96
|
+
| `--agent-dir <dir>` | `PI_CODING_AGENT_DIR` | pi agent configuration; `~/.pi/agent` |
|
|
97
|
+
| `--engine <pi\|dsh>` | `PI_WEB_ENGINE` | Execution engine; pi |
|
|
98
|
+
| `--no-browser` | — | Do not automatically open a browser |
|
|
99
|
+
|
|
100
|
+
Paths with spaces need quoting. `0.0.0.0` is a listen address; other devices connect using the server's actual IP or domain. Configure authentication and appropriate network protection before sharing access. [Full startup reference](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#cli-and-env).
|
|
101
|
+
|
|
102
|
+
### Local `/setup` page
|
|
103
|
+
|
|
104
|
+
Open **`http://127.0.0.1:8787/setup` on the server's machine**, substituting the actual port. This page configures server access and networking; API keys and models belong in workspace settings.
|
|
105
|
+
|
|
106
|
+
- Set or generate an access token, then **save**. Token changes apply immediately; an empty saved token disables token authentication.
|
|
107
|
+
- Configure listen address, port, Host allowlist and extra Origins; these require a restart.
|
|
108
|
+
- Check the displayed `<dataDir>/server-config.json` path. Startup flags and environment take precedence over saved settings on restart.
|
|
109
|
+
- LAN and proxy access to `/setup` is restricted. A remote server can be reached through an SSH local port forward; see the [step-by-step setup guide](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#setup-page).
|
|
110
|
+
|
|
111
|
+
### Docker from source
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
git clone https://github.com/xing-shuyin/pi-web-ui.git
|
|
115
|
+
cd pi-web-ui
|
|
116
|
+
# Review docker-compose.yml: authentication, ports, project and credential mounts.
|
|
117
|
+
docker compose up -d --build
|
|
118
|
+
docker compose logs -f
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The repository Compose configuration builds the image locally. Persist service data at **`/app/.pi-web`** in the container. Mount projects and credentials deliberately; container paths differ from host paths. Do not assume a published container port satisfies `/setup`'s loopback checks. See [container installation](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#docker-source-install) and [deployment](./docs/deployment.md).
|
|
122
|
+
|
|
123
|
+
### Update and remove
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
npm install -g pi-web-ui@latest
|
|
127
|
+
pi-web-ui server restart # For an installed service; restart foreground processes yourself.
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Desktop and portable users should follow the matching package's update instructions and retain their actual data directories. Before removal, back up needed conversations, settings and credentials. For npm users, uninstall the service first if installed, then run `npm uninstall -g pi-web-ui`. Removing the package does not remove separately stored user data.
|
|
131
|
+
|
|
132
|
+
## What you can do
|
|
133
|
+
|
|
134
|
+
- **Chat and context:** streaming responses, tool outputs, attachments, file references, structured questions and multiple conversations.
|
|
135
|
+
- **Work on projects:** file browsing and previews, uploads, integrated terminals, Git diffs, staging and commits. Remote SSH capabilities depend on the engine, host tools and connection configuration.
|
|
136
|
+
- **Organize agent work:** planning, goal review/execution, delegated work and subagents. File claims coordinate parallel edits through advisory notices; they are not edit locks.
|
|
137
|
+
- **Extend the workspace:** plugins, MCP tools, skills, configuration presets and customizable layouts and themes. Availability depends on installed components and permissions.
|
|
138
|
+
|
|
139
|
+
Approval controls, task modes and isolated project directories have specific implementation boundaries; they are not universal operating-system security sandboxes. See [approval and security](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#approval-and-security).
|
|
140
|
+
|
|
141
|
+
## See the workspace
|
|
142
|
+
|
|
143
|
+
| Chat | Terminal |
|
|
144
|
+
| --------------------------------------------- | ---------------------------------------------- |
|
|
145
|
+
|  |  |
|
|
146
|
+
|
|
147
|
+
| Git | Settings |
|
|
148
|
+
| --------------------------------- | ------------------------------------------------------- |
|
|
149
|
+
|  |  |
|
|
150
|
+
|
|
151
|
+
## Plugins and documentation
|
|
152
|
+
|
|
153
|
+
Browse plugins in the workspace or install from a repository:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
pi-web-ui install owner/repo
|
|
157
|
+
pi-web-ui plugins
|
|
158
|
+
pi-web-ui plugin create my-plugin
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Plugin permissions and external-service requirements vary. For submissions, follow the [community registry](https://github.com/xing-shuyin/pi-web-ui-plugins); automation is governed by that repository's current checks and policies.
|
|
162
|
+
|
|
163
|
+
- [Getting started and installation](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#installation)
|
|
164
|
+
- [Remote SSH projects](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#remote-ssh-projects)
|
|
165
|
+
- [Plan, goal and review workflows](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#modes-guide)
|
|
166
|
+
- [MCP and browser tools](https://xing-shuyin.github.io/pi-web-ui-site/docs.html#mcp-and-browser)
|
|
167
|
+
- [Plugin SDK](./plugin-sdk/README.md) · [Desktop](./desktop/README.md) · [Windows portable launcher](./launcher/README.md)
|
|
168
|
+
- [Environment variables](./docs/env-vars.md) · [Deployment](./docs/deployment.md) · [Architecture](./docs/architecture-core.md)
|
|
169
|
+
|
|
170
|
+
## Development
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
git clone https://github.com/xing-shuyin/pi-web-ui.git
|
|
174
|
+
cd pi-web-ui
|
|
175
|
+
npm ci
|
|
176
|
+
npm run dev
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Node.js 22.19.0+ and the platform's native build dependencies are required. The dev frontend is normally on port 5173 and the backend on 8788. For a production checkout, run `npm run build`, then `npm start`.
|
|
180
|
+
|
|
181
|
+
Before submitting a change, follow [development guidelines](./docs/development.md) and run the applicable formatting, type, lint and test checks. Desktop build details live in [desktop/README.md](./desktop/README.md).
|
|
182
|
+
|
|
183
|
+
## Community and license
|
|
184
|
+
|
|
185
|
+
[Issues](https://github.com/xing-shuyin/pi-web-ui/issues) · [Discussions](https://github.com/xing-shuyin/pi-web-ui/discussions) · QQ group: `1126050727` · [dsh-ui-tools](https://github.com/xing-shuyin/dsh-ui-tools)
|
|
186
|
+
|
|
187
|
+
[MIT License](./LICENSE)
|