dsh-remote-plugin 0.6.11 → 0.6.12
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.en.md +3 -2
- package/README.md +3 -2
- package/apk/dsh-remote.apk +0 -0
- package/gateway.cjs +466 -65
- package/index.mjs +3 -2
- package/package.json +1 -1
- package/public/announcements.json +8 -0
- package/public/app.js +270 -35
- package/public/index.html +50 -12
- package/public/styles.css +41 -2
- package/public/update.json +9 -9
- package/public/version.json +1 -1
package/README.en.md
CHANGED
|
@@ -31,15 +31,16 @@ Open `http://127.0.0.1:8787/health` on the DSH host before pairing a phone. Once
|
|
|
31
31
|
|
|
32
32
|
The Android app / mobile WebUI has five main destinations: Sessions, Files, Home, Stats, and Settings. Session detail supports goals, subagent interruption, model selection, fullscreen input, slash commands, and image attachments. Images can come from the camera or gallery and are sent as image content in `session.prompt`.
|
|
33
33
|
|
|
34
|
-
Notification settings include approval / question notifications, background polling, peak reminders, task completion notices, and announcement history. Four themes are retained: Default Deep Space, Sunset, Elbphilharmonie, and Prairie Tower.
|
|
34
|
+
Notification settings include approval / question notifications, background polling, peak reminders, task completion notices, and announcement history. Announcements update from a central HTTPS source every 30 seconds while the app is in the foreground, with gateway-cache and bundled-file fallback. Four themes are retained: Default Deep Space, Sunset, Elbphilharmonie, and Prairie Tower.
|
|
35
35
|
|
|
36
36
|
## Gateway configuration
|
|
37
37
|
|
|
38
38
|
- Port priority: `DSH_REMOTE_GATEWAY_PORT` → `~/.dsh-remote/gateway-port` → `8787`.
|
|
39
39
|
- Token: `~/.dsh-remote/token`, generated on first run.
|
|
40
40
|
- Self-healing: `~/.dsh-remote/gateway.enabled`; use `DSH_REMOTE_AUTOSTART=0` to disable automatic management.
|
|
41
|
-
- File roots: `DSH_REMOTE_FS_ROOT`, separated by `:` on Linux/macOS and `;` on Windows.
|
|
41
|
+
- File roots: registered DSH workspaces are allowed automatically; configure other directories with `DSH_REMOTE_FS_ROOT`, separated by `:` on Linux/macOS and `;` on Windows.
|
|
42
42
|
- Upload limit: `DSH_REMOTE_FS_MAX_UPLOAD`, 2 GB by default.
|
|
43
|
+
- Central announcements: override the default HTTPS endpoint with `DSH_REMOTE_ANNOUNCEMENTS_URL`, or set it to an empty string to disable the central source.
|
|
43
44
|
- DSH upstream: `http://127.0.0.1:3080` by default.
|
|
44
45
|
|
|
45
46
|
The token grants remote control of DSH. Keep it private. For cross-network access, prefer Tailscale or another authenticated secure tunnel.
|
package/README.md
CHANGED
|
@@ -31,15 +31,16 @@ dsh plugin --profile web add dsh-remote-plugin@0.6.8
|
|
|
31
31
|
|
|
32
32
|
Android 应用 / 手机 WebUI 采用五个主要页面:会话、文件、主页、统计、设置。会话详情支持目标控制、子代理中断、模型切换、全屏输入、斜杠命令和图片附件。图片附件可从相机或相册选择,并以 `session.prompt` 图片内容发送到当前会话。
|
|
33
33
|
|
|
34
|
-
通知设置支持审批 /
|
|
34
|
+
通知设置支持审批 / 提问通知、后台轮询、峰谷提醒、任务完成提醒和历史公告。公告通过中央 HTTPS 源更新,App 前台每 30 秒检查,中央源不可达时回退网关缓存或安装包内公告。当前保留四套主题:默认深空、落日、易北爱乐厅、草原孤塔。
|
|
35
35
|
|
|
36
36
|
## 网关配置
|
|
37
37
|
|
|
38
38
|
- 网关端口优先级:`DSH_REMOTE_GATEWAY_PORT` 环境变量 → `~/.dsh-remote/gateway-port` → `8787`;
|
|
39
39
|
- 令牌:`~/.dsh-remote/token`,首次运行自动生成;
|
|
40
40
|
- 自愈开关:`~/.dsh-remote/gateway.enabled`,或使用 `DSH_REMOTE_AUTOSTART=0` 禁用自动管理;
|
|
41
|
-
-
|
|
41
|
+
- 文件根目录:DSH 已登记工作区会自动放行;其他目录用 `DSH_REMOTE_FS_ROOT` 配置,Linux/macOS 使用 `:`,Windows 使用 `;`;
|
|
42
42
|
- 文件上限:`DSH_REMOTE_FS_MAX_UPLOAD`,默认 2GB;
|
|
43
|
+
- 中央公告:`DSH_REMOTE_ANNOUNCEMENTS_URL` 可覆盖默认 HTTPS 地址,设为空字符串可禁用中央源;
|
|
43
44
|
- DSH 上游:默认 `http://127.0.0.1:3080`。
|
|
44
45
|
|
|
45
46
|
令牌等同于 DSH 远程操作凭证,请不要公开或提交到仓库。局域网访问建议配合防火墙;跨网络访问建议使用 Tailscale 或其他带认证的安全隧道。
|
package/apk/dsh-remote.apk
CHANGED
|
Binary file
|