dsh-mini-remote 0.1.3 → 0.1.5

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 CHANGED
@@ -2,6 +2,40 @@
2
2
 
3
3
  本文件记录每个版本改了什么。格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## [0.1.5] - 2026-09-27
6
+
7
+ ### 新加的
8
+
9
+ - **回复里能带图了。** 原来 `![说明](地址)` 会被原样显示成一行字——渲染器不认图片,还把尖括号里的东西一律当字面文字(那是当初为安全定的规矩)。现在认两种写法:完整的 `http(s)` 链接原样用,手机直接去那个网站取图;写一个名字(如 `out-demo`)就走本机的图片通道 `/mini/art/<名字>.webp`,和鲸鱼娘立绘同一条路、同一样要密码。想让手机看到电脑上的图,把图放进 `lib/art/`、名字以 `out-` 开头就行(这个前缀写在 .gitignore 里,不进仓库)。只放开「图片」这一类,正文和配置文件仍然一个字都读不到。
10
+ - **两套外观:深色、浅色,还能跟随系统。** 设置里多了一行「外观」。浅色那套的色调从宣传图那张画上取(近白的冰蓝地、深宝蓝的字),深色那套照旧。选哪套记在手机上,下次打开还是它;页面主题色也跟着换,手机上那条状态栏不会跟页面打架。
11
+ - **在手机上排队时,界面会显示一把刻度尺**:一条细线上排着刻度点,第一个是正在跑的那条指令,后面每个点对应一条真排在队里的指令。队列空着的时候它整块不出现——2026-09-27 你报的:队列是空的,屏幕上却留着一句「排队中 0 条」和一个孤零零的金点。
12
+
13
+ ### 改了的
14
+
15
+ - **界面按你的设计稿重做了一版。** 所有卡片、气泡、输入框、按钮的圆角统一成 **2 像素**(原来是 10~20 像素那种"软卡片"),层次改由 **1 像素细线**建立,不再靠阴影和色块堆叠;配色换成深海墨蓝打底、鲸鱼娘的冰蓝做次级色,**暖金只留两处**——发送键,和"当前这一步"那个刻度。顶栏和底栏变成悬浮毛玻璃,内容从它们底下淡出。
16
+ - **删掉了四种"界面在表演"的动效**:顶栏那颗一直呼吸闪动的圆点、进度条上来回扫的流光、鲸鱼娘整块的上下浮动、会话抽屉的滑入。现在全页只剩两个动效:队列刻度由"待"变"过"时的 160 毫秒颜色过渡,和进度条逐格推进(见下面那条)。
17
+ - **排队那块改成一把刻度尺。** 一条细线上排着刻度点:第一个是**正在跑的那条指令**(暖金),后面每个点对应一条真排在队里的指令,超过 12 个就收成一个省略号。**这把尺子量的是队列,不是模型跑到哪一步**——插件按设计只看得到「你的指令」和「最终回复」,看不到它中间那几步,所以界面上不出现编出来的进度。
18
+ - 图标从字符(`☰`、`⚙`、`⟳`、`✕`)换成手写细线图标,笔法和回形针一致。
19
+ - 文案:页面标题和顶栏改用中文名「**极简遥控器**」(原来是英文 `DSH mini remote`)。
20
+ - **进度条改成逐格推进的。** 它原来是静止的:宽度固定在三成八,看着像卡住了(2026-09-27 你报的「底部的进度条好像不会动」)。现在宽度仍然写死不动,动的是位置——十六格一轮、每格 160 毫秒,一格一格往右走。它给得出「还在跑」,但**始终不说跑到多少**:插件只看得到你的指令和最终回复,看不到中间那几步,编个百分比就是撒谎。
21
+ - **浅色主题下主按钮改用宝蓝。** 深色下它仍是暖金——那是这块屏幕上唯一「该动手」的地方,醒目就是它的职责;浅色那套底色本来就从宣传图取的,冷底上再压一块饱和暖金不像自己人。所以发送键、设置里的主按钮、口令页那个按钮都换成宣传图的宝蓝配白字,暖金在浅色下只留刻度上「当前这一步」那一个点。
22
+
23
+ ## [0.1.4] - 2026-09-27
24
+
25
+ ### 新加的
26
+
27
+ - **模型执行过程中的自言自语,现在由鲸鱼娘念出来。** 她在干活时会开口说一句——念的是模型写给人看的那句旁白(「我先看一下这个文件」)。**句子多长就显示多长**:气泡跟着长高,整页给它让位(只有几屏那种病态长文才会让气泡内部滚动)。**没有旁白就不说话**(气泡留着上一句),**它自己想的那些不上手机**,不分中英文。说的时长跟着句子长短走(2026-09-27 起:短句 15 秒起步、每字再加 0.15 秒、最多 30 秒;之前一律 10 秒);这期间轮播**停住**,说完了回到被打断的那一格接着走,不是从第一张重来。同一句不会重复念。
28
+ - **回答区一个字都不动。** 这句话只进鲸鱼娘的说话气泡,不进「最新回复」,不进聊天记录,不冒充「正在写」。2026-09-22 你说过过程的文字别出现在手机上——那次说的是它**落进回答区**(刷屏、把真正的回复挤走);这次它落在气泡里,不在回答区。这条界线写在 `工程说明.md` 的不变式 20 里。
29
+ - **配套一张新的立绘**(说话的动作,两帧),风格和配色跟已有的八张一致。
30
+ - **思考不上气泡**(2026-09-27 你定的口径):模型想事情的习惯是英文、也常是长段落,念出来既看不懂也不是给你的话。气泡里出现的每一句,都是它特意写给人看的那句。所以她有时会安静一会儿——那不是坏了。
31
+ - **句子不被截断**(2026-09-27 你报的):以前电脑侧掐到 80 字、手机侧又限三行,两句长话凑起来就是"话说了一半"——第四行只剩上半截。现在两处截断都撤了,话完整显示;气泡长高时整页跟着让位。
32
+ - **气泡里的话会渲染 markdown**(2026-09-27 你报的):以前气泡是纯文本,`**重启把连接掐断**` 连星号一起显示。现在跟回答区共用同一套渲染——粗体、斜体、行内代码、链接都变成样式。模型原话里的尖括号仍然只是字面文字,不会变成标签。列表、标题、围栏代码块这类块级语法不认(旁白是一句话,用不到),真遇到就原样显示。
33
+ - **她说话的时间变长了**(2026-09-27 你问的):以前固定 10 秒,长句子还没念完她就回去干别的了。现在短句 15 秒起步,句子越长留得越久(每分钟约 400 字的默读速度),最多 30 秒封顶——封顶是为了防"某一步她再没说话,画面却一直卡在说话那张"。
34
+ - **设置接上了 DSH 的标准配置通道**(2026-09-27):插件现在把设置清单完整声明出来(`Config`),其中"默认模式"和"外部推送"标成**改了不用重载**——改这两样时 DSH 会把新值就地交给正在运行的插件,插件当场按新值办事,不会被重建。其余几样(端口、绑定地址、隧道、口令、历史条数)改完确实得重新监听或重建,就照旧重建插件,不假装能热改。顺带:访问口令和 Telegram 机器人令牌标成敏感值,不会回显在表单里。**更老的 DSH(0.1.5 那一代)上照样装得上、功能照旧**,只是没有"改完立即生效"这一条——这条声明不会让插件在旧版本上起不来。
35
+ - 子代理(它派出去干活的小分身)的自言自语不会推到你手机上,别的会话的也不会。
36
+ - **文案更正:不再拿"通知和麦克风"当加密地址的理由**(2026-09-27 你指出的):Tailscale 加密地址那段原来写着「手机浏览器只在加密连接上才肯给用通知和麦克风」。问题是这两样我们**并没有做**——系统通知的入口从 2026-09-25 起一直藏着(锁屏会冻结后台页面,那条路走不通),麦克风图标也早已移除。拿不存在的能力当卖点,等于把你往一个没有的东西上引。现在只说成立的那一条:**这条连接是加密的**(地址栏上会出现 https 那把锁)。DSH 设置卡片、配对页那两条提示、README 中英两版都改了;相关测试也从"要提到这两样"改成"不许再出现",并反向验证过它们真的会红。
37
+ - **声明了对 DSH 的版本要求**(2026-09-27):DSH 0.1.7 起,装插件前会先拿插件声明的版本去比对运行中的 DSH。我们原来把要求写在 `engines.dsh` 里,而这道检查**只看 `peerDependencies`**——等于它对我们完全不设限。现在两处都写了(`engines.dsh` 保留给插件市场做适配展示)。效果:以后 DSH 大版本变动、我们确实不兼容时,DSH 会在加载我们之前把我们这一行禁用并打一句诊断,**整个 DSH 照常启动**(而不是默默加载失败);要给某个具体版本开绿灯,有 `dsh plugin allow-version` 这条通道。
38
+
5
39
  ## [0.1.3] - 2026-09-25
6
40
 
7
41
  ### 新加的
@@ -49,7 +83,7 @@
49
83
  - **权限档位能在手机上切。** 仅可查看 / 工作区内修改 / 完全权限,不用再回电脑改,档位显示中文名。
50
84
  - **每个会话的模型和思考强度能在手机上换。** 顶栏那一行就是当前用的模型,点它就能改。会话没在跑(睡在硬盘上)的时候也读得出它上次用的是什么,不用先跑一轮。
51
85
  - **手机上能新建工作区和会话。** 浏览电脑上的目录,挑一个登记成工作区,再在里面开会话。
52
- - **Tailscale 那条路上多了一个加密地址**(形如 `https://你的电脑名.你的网络名.ts.net/`)。它和原来那条是同一台电脑、同一条通道,区别只在连接加不加密。加密之后浏览器才肯给用系统通知和麦克风——要那两样,前提是「加密连接」。
86
+ - **Tailscale 那条路上多了一个加密地址**(形如 `https://你的电脑名.你的网络名.ts.net/`)。它和原来那条是同一台电脑、同一条通道,区别只在连接加不加密。加密之后浏览器才肯给用系统通知和麦克风——要那两样,前提是「加密连接」。(**2026-09-27 更正**:当时这么写是错的——系统通知和麦克风这两样一直没有真正落地,界面上从来没有过可用的入口,详见本版顶部那条「文案更正」。)
53
87
 
54
88
  ### 修好的
55
89
 
@@ -60,7 +94,7 @@
60
94
 
61
95
  ### 已知的取舍
62
96
 
63
- - 只有 Tailscale 的加密地址和公网隧道是 `https://`。明文那条路上,浏览器不给用系统通知和麦克风。
97
+ - 只有 Tailscale 的加密地址和公网隧道是 `https://`。明文那条路上,浏览器不给用系统通知和麦克风。(**2026-09-27 更正**:这两样如今在界面上都没有,也不需要靠加密连接去换——想要提醒请用电脑端的外部推送,详见顶部那条「文案更正」。)
64
98
  - 手机上答的是 AI 主动提给你的选择题。**系统层面的确认弹窗(比如危险命令的审批)手机上点不了**,还得回电脑。
65
99
  - 公网隧道的地址每次重启都会换。
66
100
 
@@ -90,3 +124,5 @@
90
124
  [0.1.1]: https://github.com/xingzhen199186/dsh-mini-remote/releases/tag/v0.1.1
91
125
  [0.1.2]: https://github.com/xingzhen199186/dsh-mini-remote/releases/tag/v0.1.2
92
126
  [0.1.3]: https://github.com/xingzhen199186/dsh-mini-remote/releases/tag/v0.1.3
127
+ [0.1.4]: https://github.com/xingzhen199186/dsh-mini-remote/releases/tag/v0.1.4
128
+ [0.1.5]: https://github.com/xingzhen199186/dsh-mini-remote/releases/tag/v0.1.5
package/README.en.md CHANGED
@@ -1,29 +1,43 @@
1
- # dsh-mini-remote
2
-
3
- > A [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) (DSH) plugin that puts a **minimal remote control** on your mobile device — only the instruction you send and the AI's final conclusion reach it. Tool calls, file reads and writes, sub-agent dispatch, and reasoning traces all stay on the computer.
1
+ # Minimal Remote · dsh-mini-remote
4
2
 
3
+ [![npm](https://img.shields.io/npm/v/dsh-mini-remote)](https://www.npmjs.com/package/dsh-mini-remote)
5
4
  ![DSH plugin](https://img.shields.io/badge/DSH_plugin-dsh--plugin-blue)
6
5
  ![License](https://img.shields.io/badge/license-MIT-green)
7
6
 
8
- [中文说明 →](README.md)
7
+ [中文说明](README.md)
8
+
9
+ ![Minimal Remote: only your instruction and the AI's conclusion reach the phone; everything in between stays on the computer](https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/promo.webp)
10
+
11
+ **You send one line; the phone gets one conclusion.**
12
+
13
+ Tool calls, file reads and writes, sub-agent dispatch, and the body of the reasoning trace never reach the phone. This plugin exists for one situation: you're out, and all you want to do is send an instruction and read the result — a phone, one input box, the latest reply.
14
+
15
+ [What it is](#what-it-is) ・ [When you'd use it](#when-youd-use-it) ・ [Install](#install) ・ [Connecting your phone](#connecting-your-phone-three-routes-pick-one) ・ [What the phone can do](#what-the-phone-can-do) ・ [FAQ](#faq) ・ [Security](#security) ・ [Why I built this](#why-i-built-this-plugin)
9
16
 
10
17
  ---
11
18
 
12
- ## Why I built this plugin
19
+ ## What it is
13
20
 
14
- The idea came from this: an agent task often takes a long time to finish, and if you step out, you need the phone to drive it remotely.
21
+ A plugin for [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) (DSH, a plugin-extensible AI agent framework). Once installed:
15
22
 
16
- But the phone clients that exist show the PC's execution steps in faithful detail. You send one instruction; it may think for several minutes, read dozens of files, call tools a few times, and only then give you a conclusion. If you're out, or busy away from the computer, you simply don't have the time to watch the phone that closely.
23
+ - a web page opens on your phone with exactly one input box and the latest reply;
24
+ - instructions you send from the phone go straight to the session already running on your computer;
25
+ - everything in between — tool calls, files read and written, sub-agents, the reasoning trace itself — **is never pushed to the phone**;
26
+ - the only thing that "talks" is the whale girl: the line the model mutters between steps, spoken in her speech bubble.
17
27
 
18
- I don't think that approach is bad. It's complete and controllable, and if you're going to do serious work, it's the right one.
28
+ Here is what the interface looks like — dark and light, switchable in settings (rendered at a phone size of 390×844):
19
29
 
20
- But when I'm out, what I want is something else — **a lighter way to interact that asks less of my attention**. The phone screen is small, and so is the attention I have to spare when I'm out. Most of the time I only need one thing: **this round is done, time to send the next instruction.** And even at my desk, I rarely read the AI's running commentary while it works.
30
+ <img width="290" alt="Dark: one conversation, carrying only your instruction and the conclusion" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/screen-dark.png" /> <img width="290" alt="Light: the same conversation, in the palette taken from the promo artwork" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/screen-light.png" />
21
31
 
22
- So the interface here is deliberately crude: it drops the PC's execution steps entirely and puts only the AI's final conclusion in front of you.
32
+ It is **not** a second screen for the desktop interface. Approval dialogs, file diffs and tool-call chains exist on the computer and nowhere on the phone — deliberately. It does very little.
23
33
 
24
- **In a sense, it exists so that you look at it less.**
34
+ Other phone clients copy the computer's execution process over to the phone in full. This one does the opposite: **it sends only the two lines you asked for.** That is the single biggest difference between it and them.
25
35
 
26
- So you can spend your time more freely — instead of being stuck in that small screen while you're playing with your daughter or out on a trip.
36
+ ## When you'd use it
37
+
38
+ - **You're out and a task is still running.** The computer is at your desk mid-round; you just want to glance at the phone to see whether it finished, and hand it the next line while you're at it.
39
+ - **You're with your kid, eating, or out for a walk.** You don't want to touch the computer, but an idea shows up and you'd like it working on that already.
40
+ - **The computer is in the study and you're in the living room.** Not worth walking back, and not worth pulling that whole screen of process onto the phone.
27
41
 
28
42
  ---
29
43
 
@@ -33,6 +47,13 @@ So you can spend your time more freely — instead of being stuck in that small
33
47
  dsh plugin --profile web add dsh-mini-remote
34
48
  ```
35
49
 
50
+ **You must restart DSH once after installing** (close the `dsh web` window and start it again), or "Phone Remote" will not appear in the left column. The startup log then prints the phone URL and password.
51
+
52
+ The `web` in that command is a DSH **profile name** — the folder under `~/.dsh/profiles/`. Most people's default profile is called `web`; if yours isn't, use your own name instead.
53
+
54
+ <details>
55
+ <summary>Installing from GitHub source, from a local folder, and which DSH versions it fits</summary>
56
+
36
57
  Or straight from GitHub, if you would rather pin the source:
37
58
 
38
59
  ```powershell
@@ -45,41 +66,43 @@ If you already have the source on disk, you can point it at the folder:
45
66
  dsh plugin --profile web add <the folder you put the source in>
46
67
  ```
47
68
 
48
- **You must restart DSH once after installing**, or nothing new shows up in the settings page. After the restart a "Phone Remote" entry appears in the left column, and the startup log prints the phone URL and password.
49
-
50
69
  **Which DSH versions it fits.** This plugin was developed on DSH **0.1.5-rc.2** and re-checked item by item on **0.1.7-rc.2** (every interface it uses was unchanged); **versions below 0.1.5 have not been tried**. `rc` is the tag the project puts on preview builds, and DSH as a whole is still a developer preview — minor versions may break things, so versions newer than 0.1.7 are not guaranteed either. If it ever does hit an incompatibility, the usual symptom is one entry point going missing (the model line at the top, say) while everything else keeps working: the plugin is written so that a missing service switches off that one feature rather than the whole thing.
51
70
 
71
+ Settings follow the same rule: the settings are declared the standard DSH way, and on the 0.1.5-era library that ability does not exist yet — the plugin **still installs and works exactly as before**, it just loses the "applies immediately" behaviour mentioned below. On the **0.1.7 generation** that ability is fully there.
72
+
73
+ </details>
74
+
52
75
  ---
53
76
 
54
- ## Configuration: three routes, pick what you need
77
+ ## Connecting your phone: three routes, pick one
55
78
 
56
79
  All three connection methods **exist at the same time**. Pick one, or leave several on.
57
80
 
81
+ | Route | When to use it | What you install | What it costs |
82
+ | --- | --- | --- | --- |
83
+ | **LAN** | Phone and computer on the same Wi-Fi — at home only | Nothing at all | It stops the moment you leave the house |
84
+ | **Tailscale** | You need it outside, and you want the address to stay fixed | Tailscale on the computer and on the phone | An app on both sides |
85
+ | **Public tunnel** | Nothing installed, reachable on any network | Nothing at all | The address changes on every restart; the first run downloads a ~50 MB component |
86
+
58
87
  Open DSH settings (bottom of the sidebar) → "Phone Remote" in the left column. Every route on that page has a QR code and a link, and the small text under each QR code says **when to use that route**. That's all you need to read.
59
88
 
60
- ### 1. LAN: at home only
89
+ The plugin's own settings (default mode, external notifications, port, password and so on) also have a standard declaration, so writing them in DSH's standard configuration works too. If the same item is set in both places, **the standard configuration wins**. One difference worth knowing: **"default mode" and "external notifications" apply immediately, with no plugin restart**; port, bind address, tunnel, password and history length make the plugin restart and the phone reconnect once — those genuinely need to re-bind or rebuild, and the plugin says so instead of pretending they can be changed live.
61
90
 
62
- When the phone and the computer are on the same Wi-Fi, scan the "LAN" code and you're in. **Nothing extra to install** — the least fuss of the three.
91
+ ### 1. LAN: at home only
63
92
 
64
- The cost is that it stops working the moment you leave: the phone switches to mobile data and this route is gone.
93
+ When the phone and the computer are on the same Wi-Fi, scan the "LAN" code and you're in. **Nothing extra to install** — the least fuss of the three. The cost is that it stops working the moment you leave: the phone switches to mobile data and this route is gone.
65
94
 
66
95
  ### 2. Tailscale: works outside, and the address stays fixed
67
96
 
68
- Install [Tailscale](https://tailscale.com) on both the computer and the phone, sign in to the same account, and this route appears on the pairing page by itself. The address is fixed — set it up once and forget it.
69
-
70
- The cost is an app on each side. If you don't mind installing it, **this is the steadiest route when you're out**.
97
+ Install [Tailscale](https://tailscale.com) on both the computer and the phone, sign in to the same account, and this route appears on the pairing page by itself. The address is fixed — set it up once and forget it. The cost is an app on each side; if you don't mind installing it, **this is the steadiest route when you're out**.
71
98
 
72
- You can take this route one step further and get an encrypted address as well (shaped like `https://your-machine.your-tailnet.ts.net/`). It is **the same computer over the same tunnel** as the entry above; the only difference is that the connection is encrypted. It is not a fourth route — the plain `http://` entry keeps working and keeps showing.
99
+ There's a switch on the pairing page that gets you an encrypted address as well (shaped like `https://your-machine.your-tailnet.ts.net/`). It is **the same computer over the same tunnel** as the entry above; the only difference is that the connection is encrypted. It is not a fourth route — the plain `http://` entry keeps working and keeps showing.
73
100
 
74
- Encryption is what makes the browser willing to hand over system notifications, the microphone, and full clipboard access. **Those three need an encrypted connection — they do not specifically need Tailscale**: the public tunnel in route 3 below also gives you an `https://` address, and that is enough.
101
+ The first time, you have to confirm it in Tailscale's admin console: it is a tailnet-wide switch, and the plugin cannot click it for you. So the pairing page puts the exact link Tailscale hands out right in front of you — one click and you're there. If this computer isn't signed in to Tailscale yet, it says so and gives you a sign-in link instead.
75
102
 
76
- The two encrypted routes have different prerequisites, so it's worth being precise. This one uses a name shaped like `your-machine.your-tailnet.ts.net`, and **that name only resolves inside your Tailscale network**, via MagicDNS on the phone's client. **But some clients don't have that capability** — MeshArc, the third-party client for HarmonyOS, states in its own README that MagicDNS is not enabled and you should use Tailscale IP addresses; on such a phone this encrypted route simply won't work, and it isn't a matter of a setting being switched off. The tunnel route uses a Cloudflare name that resolves for anyone and doesn't care about the phone; its cost is that the address changes on every restart.
103
+ ### 3. Public tunnel: nothing to install
77
104
 
78
- There's a switch on the pairing page — just turn it on. The first time, you have to confirm it in Tailscale's admin console: it is a tailnet-wide switch, and the plugin cannot click it for you. So the pairing page puts the exact link Tailscale hands out right in front of you — one click and you're there. If this computer isn't signed in to Tailscale yet, it says so and gives you a sign-in link instead.
79
-
80
- ### 3. Public access: nothing to install
81
-
82
- There's a switch at the bottom of the pairing page. Turn it on and Cloudflare hands you a public URL (shaped like `https://random-words.trycloudflare.com/`). The phone can reach it on any network, **with nothing installed**. It is an **encrypted connection**, so the three browser capabilities (system notifications, microphone, clipboard) work on this route too — if the phone's Tailscale DNS setting can't be turned on, this is how you still get encryption.
105
+ There's a switch at the bottom of the pairing page. Turn it on and Cloudflare hands you a public URL (shaped like `https://random-words.trycloudflare.com/`). The phone can reach it on any network, **with nothing installed**.
83
106
 
84
107
  Two costs, worth knowing before you decide:
85
108
 
@@ -88,12 +111,15 @@ Two costs, worth knowing before you decide:
88
111
 
89
112
  Once it's on, **wait half a minute before scanning.** Cloudflare needs a moment to publish the address. Scanning too early reports that it can't be opened — that's not breakage, it's just too soon.
90
113
 
91
- ---
114
+ ### About that "encrypted address"
92
115
 
93
- <img width="1314" height="2186" alt="screenshot_20260922_233535_com huawei hmos brows" src="https://github.com/user-attachments/assets/8befa186-3e20-4c0e-8efc-8ea523f77648" />
116
+ Two of the routes above can hand you an `https://` address, and what encryption covers is **the connection itself**: the address bar shows the https padlock, and what travels the wire is encrypted. That does not depend on which route you pick — both give the same thing.
94
117
 
118
+ The difference is who can resolve the name. The Tailscale one uses a name shaped like `your-machine.your-tailnet.ts.net`, and **that name only resolves inside your Tailscale network**, via MagicDNS on the phone's client. **But some clients don't have that capability** — MeshArc, the third-party client for HarmonyOS, states in its own README that you should use Tailscale IP addresses instead; on such a phone this encrypted route simply won't work, and it isn't a matter of a setting being switched off. The tunnel route uses a Cloudflare name that resolves for anyone and doesn't care about the phone; its cost is that the address changes on every restart.
95
119
 
96
- ## What the mobile side does
120
+ ---
121
+
122
+ ## What the phone can do
97
123
 
98
124
  Open the link and that's the whole interface: one input box, and the latest reply.
99
125
 
@@ -101,6 +127,18 @@ Open the link and that's the whole interface: one input box, and the latest repl
101
127
 
102
128
  **Wait for the conclusion.** While it runs, the page shows "running…". You can keep sending during that time — instructions queue up. When the task ends, the conclusion appears on the page, and the phone chimes and buzzes.
103
129
 
130
+ **She speaks up while she works.** On the computer, the model often mutters a line between steps ("let me look at this file first"). That line is now spoken by the whale girl through her speech bubble — the talking pose is a newly drawn sprite, the rotation pauses for it, and afterwards picks up from where it stopped. It stays **in the bubble** and never bleeds into the answer area below. Only the line it deliberately writes *for a human reader* is spoken; its own working thoughts — often English, often a whole paragraph — never reach the phone at all. Should that one narration line itself be in English, it is shown as-is, untranslated (translating would mean putting words in its mouth).
131
+
132
+ **Two appearances, switchable anytime.** Settings has an "Appearance" row: **Dark** (the default), **Light**, and **Follow system**. Dark is deep-sea navy; the light palette is taken from the promo artwork — near-white ice blue for the ground, deep royal blue for the text, and the same royal blue on primary buttons. Your choice is stored on the phone, so it is still there next time you open the page.
133
+
134
+ <img width="290" alt="Settings (dark): display mode and appearance" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/settings-dark.png" /> <img width="290" alt="Settings (light): the selected states and the primary button turn royal blue too" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/settings-light.png" />
135
+
136
+ **The screen while a task is running.** She is mid-stride, the progress bar is moving, and the queue lists what goes next once this round ends. No tool calls and no file diffs on this screen — only the fact that something is running.
137
+
138
+ <img width="290" alt="Running (dark, photographed on a phone): the whale girl running, 15s elapsed" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/running-dark-phone.jpg" /> <img width="290" alt="Running (light, photographed on a phone): the whale girl running, 7m43s elapsed, one instruction queued" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/running-light-phone.jpg" />
139
+
140
+ Both are phone photographs (the browser's own chrome is in frame, so they sit slightly taller than a render would).
141
+
104
142
  **Two display modes.** Tap the ⚙ in the top right to switch. "Single frame" (the default) keeps only the newest reply on screen — good for "I just want to see how this one turned out". "Chat" is a back-and-forth bubble list — good for several rounds of follow-up questions. Use it for a while and you'll know which you prefer.
105
143
 
106
144
  **Open a session and you see what was said in it before.** Switch to a session that has existed for a while and Chat mode lists every earlier round (the instructions you sent, the conclusion of each round); Single frame shows only the last conclusion. **Very large sessions show only the most recent stretch**: reading one of those in full — tens of thousands of events — would drag the DSH process on your computer down, so the plugin reads just the tail and says so at the top ("this is not everything, only the most recent stretch"). That line is not boilerplate; it is the truth.
@@ -111,7 +149,7 @@ Open the link and that's the whole interface: one input box, and the latest repl
111
149
 
112
150
  **Three things you can change in passing.** Tap the line at the top to switch the current session's model and reasoning effort; switch the permission preset (View Only / Workspace Write / Full Access); browse the computer's folders to register a new workspace and start a session in it.
113
151
 
114
- **You're reading conclusions, not the process.** There's no tool-call chain and no file diff on the page. **System-level confirmation dialogs cannot be answered from the phone** (approving a dangerous command, for instance) — those still need the computer. What the phone can answer is the multiple-choice question the AI puts to you; the two are not the same thing. It's a remote control: the TV still has to be on for the remote to be any use.
152
+ **You're reading conclusions, not the process.** There's no tool-call chain and no file diff on the page. The one exception is the line the whale girl says out loud — it goes into her bubble, never into the answer area (see above). **System-level confirmation dialogs cannot be answered from the phone** (approving a dangerous command, for instance) — those still need the computer. What the phone can answer is the multiple-choice question the AI puts to you; the two are not the same thing. It's a remote control: the TV still has to be on for the remote to be any use.
115
153
 
116
154
  ---
117
155
 
@@ -141,7 +179,25 @@ Change it in the password section of "Settings → Phone Remote". **At least 12
141
179
 
142
180
  **The pairing page carries the password — don't screenshot it and send it around.** The password is encoded straight into the QR code so you never have to type it. That's convenient, and the price is that whoever holds that image can get in.
143
181
 
144
- Beyond that: every endpoint requires the password; password comparison is constant-time; five wrong attempts from one source blocks that source for a minute; pairing information is **readable only from the local machine**, so other devices on the same Wi-Fi can't get it; the public tunnel is off by default and you have to turn it on yourself in the settings page; the phone sees no file contents — when you pick a workspace it lists folder names only, and never lists or reads files. **One thing worth stating plainly: the phone can switch the agent's permission preset.** On Full Access, the agent can then modify any file on this computer. That path is open.
182
+ Beyond that: every endpoint requires the password; password comparison is constant-time; five wrong attempts from one source blocks that source for a minute; pairing information is **readable only from the local machine**, so other devices on the same Wi-Fi can't get it; the public tunnel is off by default and you have to turn it on yourself in the settings page; the phone sees no file contents — when you pick a workspace it lists folder names only, and never lists or reads files. **The one exception is images**: when something the AI wants to show you includes a picture (an interface screenshot, say), that image is placed under the plugin's `lib/art/` directory with a name starting with `out-`, and the page fetches it over the same password-protected image route the sprites use. Only that one class of file — an image, with that prefix — can be fetched; message bodies, configuration files and everything else stay unreadable, and directories still cannot be listed. **One thing worth stating plainly: the phone can switch the agent's permission preset.** On Full Access, the agent can then modify any file on this computer. That path is open.
183
+
184
+ ---
185
+
186
+ ## Why I built this plugin
187
+
188
+ The idea came from this: an agent task often takes a long time to finish, and if you step out, you need the phone to drive it remotely.
189
+
190
+ But the phone clients that exist show the PC's execution steps in faithful detail. You send one instruction; it may think for several minutes, read dozens of files, call tools a few times, and only then give you a conclusion. If you're out, or busy away from the computer, you simply don't have the time to watch the phone that closely.
191
+
192
+ I don't think that approach is bad. It's complete and controllable, and if you're going to do serious work, it's the right one.
193
+
194
+ But when I'm out, what I want is something else — **a lighter way to interact that asks less of my attention**. The phone screen is small, and so is the attention I have to spare when I'm out. Most of the time I only need one thing: **this round is done, time to send the next instruction.** And even at my desk, I rarely read the AI's running commentary while it works.
195
+
196
+ So the interface here is deliberately crude: it drops the PC's execution steps entirely and puts only the AI's final conclusion in front of you.
197
+
198
+ **In a sense, it exists so that you look at it less.**
199
+
200
+ So you can spend your time more freely — instead of being stuck in that small screen while you're playing with your daughter or out on a trip.
145
201
 
146
202
  ---
147
203
 
package/README.md CHANGED
@@ -1,29 +1,43 @@
1
- # dsh-mini-remote
2
-
3
- > 一个 [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness)(DSH)插件,把一部手机变成**极简遥控器**——移动端只收到你发出去的指令和 AI 最后的结论,工具调用、文件读写、子 Agent 调度、思考过程全部留在电脑上。
1
+ # 极简遥控器 · dsh-mini-remote
4
2
 
3
+ [![npm](https://img.shields.io/npm/v/dsh-mini-remote)](https://www.npmjs.com/package/dsh-mini-remote)
5
4
  ![DSH plugin](https://img.shields.io/badge/DSH_plugin-dsh--plugin-blue)
6
5
  ![License](https://img.shields.io/badge/license-MIT-green)
7
6
 
8
- [English →](README.en.md)
7
+ [English](README.en.md)
8
+
9
+ ![极简遥控器:手机上只留你的指令和它的结论,中间过程留在电脑上](https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/promo.webp)
10
+
11
+ **你发一句话,手机上只收到它的结论。**
12
+
13
+ 工具调用、文件读写、子 Agent 调度、思考过程的正文,全都不上手机。这个插件是给「出门在外,只想发指令、等结论」这件事做的——一部手机、一个输入框、最新的一条回答,就这些。
14
+
15
+ [这是什么](#这是什么) ・ [什么时候会用到它](#什么时候会用到它) ・ [安装](#安装) ・ [连上手机](#连上手机三条路选一条) ・ [手机上能做什么](#手机上能做什么) ・ [常见问题](#常见问题) ・ [安全](#安全) ・ [为什么做这个插件](#为什么做这个插件)
9
16
 
10
17
  ---
11
18
 
12
- ## 为什么做这个插件
19
+ ## 这是什么
13
20
 
14
- 初衷是因为现在AGENT任务执行一轮往往需要很久,而如果出门,则需要手机端来远程操作。
21
+ 一个 [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness)(DSH,一个用插件扩展的 AI agent 框架)插件。装上之后:
15
22
 
16
- 但现有的手机端,会把PC的执行步骤非常还原地展现出来。你发一条指令,它可能要想上几分钟、读几十个文件、调好几次工具,最后才给你一个结论。如果出门或有事不在电脑前,实在没时间盯着手机看那么细致。
23
+ - 手机上打开一个网页,上面只有一个输入框和最新的一条回答;
24
+ - 你在手机上发的指令,直接交给电脑上正在跑的那个会话;
25
+ - AI 干活的中间过程(工具调用、读写文件、子 Agent、思考正文)**一律不推给手机**;
26
+ - 唯一会「说话」的是鲸鱼娘:模型在步骤之间自言自语的那一句,由她念出来,只进她的气泡。
17
27
 
18
- 我并不认为那种方式不好。信息完整、过程可控,如果你要认真处理任务,它是对的。
28
+ 界面长这样——深色和浅色两套,设置里随手换:
19
29
 
20
- 但出门在外的时候,就我个人而言,我需要的是另一种东西——**更轻便、更少占用注意力的交互方式**。手机屏幕就那么大,出门时的精力也就那么多。而大部分时候我真正需要的只有一件事:**这一轮跑完了,该发下一条指令了**。而且大部分时间,即使在电脑上,我也很少会去仔细阅读AI做执行过程中的“自言自语”。
30
+ <img width="290" alt="深色:一段对话,手机上只留你的指令和它的结论" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/screen-dark.png" /> <img width="290" alt="浅色:同一段对话,色调跟宣传图那张画统一" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/screen-light.png" />
21
31
 
22
- 所以这个插件的界面做得相当「原始」:它完全省略了电脑网页端的执行步骤,只把 AI 最后的结论送到你面前。
32
+ 它**不是**:电脑端界面的备用屏。电脑上有的审批弹窗、文件 diff、工具调用链,手机上都没有——它刻意做得很少。
23
33
 
24
- **某种意义上,它的存在,是为了让你更少地去看它。**
34
+ 别的手机端会把电脑上的执行过程原样搬过来,它反过来:**只把你要的那两句送过去**。这是它和它们最不一样的地方。
25
35
 
26
- 你可以更加自由地支配自己的时间,而不是当你和女儿玩耍时,抑或出游时,被困在那个小小的屏幕里。
36
+ ## 什么时候会用到它
37
+
38
+ - **出门在外,任务还在跑。** 你人在外面,电脑在桌上跑着一轮任务;你只想掏出手机看一眼「跑完没有」,顺便把下一句交代过去。
39
+ - **陪孩子、吃饭、散步的时候。** 手不想碰电脑,但脑子里冒出一个念头,想让它先干着。
40
+ - **电脑在书房,人在客厅。** 不值得专门走回去,也不想把电脑端那一整屏过程搬到手机上看。
27
41
 
28
42
  ---
29
43
 
@@ -33,6 +47,13 @@
33
47
  dsh plugin --profile web add dsh-mini-remote
34
48
  ```
35
49
 
50
+ 装完**必须重启一次 DSH**(把 `dsh web` 那个窗口关掉重开),左栏才会多出「手机遥控」;重启后的启动日志里会打印手机访问地址和密码。
51
+
52
+ 命令里的 `web` 是 DSH 的**配置档名**(profile)——就是 `~/.dsh/profiles/` 下面那个文件夹的名字,多数人的默认档就叫 `web`。不叫这个的话,把它换成你自己的。
53
+
54
+ <details>
55
+ <summary>从 GitHub 源码装、从本地目录装,以及它适配哪些 DSH 版本</summary>
56
+
36
57
  也可以直接从 GitHub 装,这样锁的是源码:
37
58
 
38
59
  ```powershell
@@ -45,41 +66,43 @@ dsh plugin --profile web add github:xingzhen199186/dsh-mini-remote
45
66
  dsh plugin --profile web add <你放源码的目录>
46
67
  ```
47
68
 
48
- 装完**必须重启一次 DSH**,设置页里才会出现新东西。重启后左栏会多出「手机遥控」,启动日志里也会打印手机访问地址和密码。
49
-
50
69
  **它适配哪些 DSH 版本。** 这个插件在 DSH **0.1.5-rc.2** 上开发,在 **0.1.7-rc.2** 上重新逐项核对过(插件用到的那些接口,一个都没变),**低于 0.1.5 的版本没试过**。`rc` 是官方给预览版编的号,DSH 目前整体还是开发者预览版,跨小版本可能有破坏性改动,所以比 0.1.7 更新的版本同样不保证。真遇上不兼容,症状一般是某一块入口不见了(比如顶栏那行模型),其余部分照常——插件是按「少了哪个服务就关掉哪块功能」写的,不会整个起不来。
51
70
 
71
+ 设置也是这样处理的:设置清单按 DSH 的标准方式声明,而在 0.1.5 那一代的库还没有相应能力,插件**照样装得上、功能照旧**,只是少了下面提到的「改完立即生效」。**0.1.7 这一代**上这条能力是齐的。
72
+
73
+ </details>
74
+
52
75
  ---
53
76
 
54
- ## 配置:三条路,按需要选
77
+ ## 连上手机:三条路,选一条
55
78
 
56
79
  三条连接方式**同时存在**,选一条就行,也可以都开着。
57
80
 
81
+ | 这条路 | 什么时候用 | 要装什么 | 代价 |
82
+ | --- | --- | --- | --- |
83
+ | **内网** | 手机和电脑在同一个 Wi-Fi,只在家里用 | 什么都不用装 | 一出家门就断 |
84
+ | **Tailscale** | 出门也要连,地址还想固定 | 电脑和手机各装一个 Tailscale | 两边都要装一个 App |
85
+ | **公网隧道** | 什么都不想装,任何网络都要能连 | 什么都不用装 | 地址每次重启都换;第一次要下一个约 50 MB 的组件 |
86
+
58
87
  打开 DSH 设置(侧边栏最下面)→ 左栏「手机遥控」。这一页上每条路都有一个二维码和一条链接,二维码底下那行小字写着**什么时候用这条**,看它就够了。
59
88
 
60
- ### 一、内网:只在家里用
89
+ 插件的设置(默认模式、外部推送、端口、口令这些)也有一份标准声明,写在 DSH 的标准配置里同样认得。两处都写了同一项时,**以标准配置为准**。另有一条区别:**「默认模式」和「外部推送」改完立即生效、插件不重启**;端口、绑定地址、隧道、口令、历史条数这几样改完会让你重连一次——它们本来就得重新监听或重建,插件如实声明,不假装能热改。
61
90
 
62
- 手机和电脑连同一个 Wi-Fi 时,扫「内网」那个码就能用。**不需要任何额外安装**,最省事的一条。
91
+ ### 一、内网:只在家里用
63
92
 
64
- 代价是出了门就连不上——手机一切到流量,这条就断了。
93
+ 手机和电脑连同一个 Wi-Fi 时,扫「内网」那个码就能用。**不需要任何额外安装**,最省事的一条。代价是出了门就连不上——手机一切到流量,这条就断了。
65
94
 
66
95
  ### 二、Tailscale:出门也能连,地址还固定
67
96
 
68
- 电脑和手机都装上 [Tailscale](https://tailscale.com)、登录同一个账号,配对页上就会自动多出这一条。地址固定,配一次以后不用再管。
69
-
70
- 代价是两边都要装一个 App。如果你不介意装,**出门在外这条最稳**。
97
+ 电脑和手机都装上 [Tailscale](https://tailscale.com)、登录同一个账号,配对页上就会自动多出这一条。地址固定,配一次以后不用再管。代价是两边都要装一个 App——如果你不介意装,**出门在外这条最稳**。
71
98
 
72
- 这条路上还能再开一步,多拿一个加密地址(形如 `https://你的电脑名.你的网络名.ts.net/`)。它和上面那条是**同一台电脑、同一条通道**,区别只在连接加不加密——不是第四条路,那条明文的照旧能用、也照旧显示。
99
+ 配对页上有一个开关,打开它还能多拿一个加密地址(形如 `https://你的电脑名.你的网络名.ts.net/`)。它和上面那条是**同一台电脑、同一条通道**,区别只在连接加不加密;不是第四条路,那条明文的照旧能用、也照旧显示。
73
100
 
74
- 加密之后,浏览器才肯给用系统通知、麦克风、剪贴板的完整能力。**要那三样,前提是「加密连接」,不是非得走 Tailscale**——下面第三条的公网隧道给的也是 `https://` 地址,一样够用。
101
+ 第一次开需要你在 Tailscale 的后台确认一次——那是整个网络级别的开关,插件代不了你点,所以配对页会把 Tailscale 给出的那条链接直接摆在你面前,点一下就过去。要是这台电脑还没登录 Tailscale,它会说清楚,并给你登录链接。
75
102
 
76
- 两条加密路各有各的前提,说清楚免得你走错:这一条用的是形如 `你的电脑名.你的网络名.ts.net` 的域名,**它只在你的 Tailscale 网络内部解析得出**,靠的是手机客户端上的 MagicDNS。**但有些客户端没有这个能力**——HarmonyOS 上那个第三方客户端 MeshArc,它自己的说明里就写着「请用 Tailscale IP 地址」,那类手机上这条加密路走不通,不是设置没开的问题。隧道那条用的是 Cloudflare 的域名,谁都能解析,不挑手机,代价是地址每次重启都会换。
103
+ ### 三、公网隧道:什么都不用装
77
104
 
78
- 配对页上有一个开关,打开就行。第一次开需要你在 Tailscale 的后台确认一次——那是整个网络级别的开关,插件代不了你点,所以配对页会把 Tailscale 给出的那条链接直接摆在你面前,点一下就过去。要是这台电脑还没登录 Tailscale,它会说清楚,并给你登录链接。
79
-
80
- ### 三、公网访问:什么都不用装
81
-
82
- 配对页最底下有个开关,打开它,Cloudflare 会给你一个公网网址(形如 `https://随机词.trycloudflare.com/`)。手机在任何网络下都能连,**不用装任何东西**。它是**加密连接**,所以浏览器那三样(系统通知、麦克风、剪贴板)在这条路上也够用——手机上 Tailscale 的 DNS 设置开不了的话,想要加密就走这条。
105
+ 配对页最底下有个开关,打开它,Cloudflare 会给你一个公网网址(形如 `https://随机词.trycloudflare.com/`)。手机在任何网络下都能连,**不用装任何东西**。
83
106
 
84
107
  两个代价,先知道再决定:
85
108
 
@@ -88,12 +111,15 @@ dsh plugin --profile web add <你放源码的目录>
88
111
 
89
112
  打开之后**等半分钟再扫**。Cloudflare 需要一点时间把这个地址公布出去,太早扫会提示打不开——那不是坏了,是还没到时候。
90
113
 
91
- ---
114
+ ### 关于「加密地址」,一次说清楚
92
115
 
93
- <img width="1314" height="2186" alt="screenshot_20260922_233535_com huawei hmos brows" src="https://github.com/user-attachments/assets/8befa186-3e20-4c0e-8efc-8ea523f77648" />
116
+ 上面两条路都可能给你一个 `https://` 地址,加密的是**连接本身**:地址栏上会出现 https 那把锁,路上传的东西是密的。这一点不挑路,两条给的都一样。
94
117
 
118
+ 区别在域名由谁解析:Tailscale 那条用的是形如 `你的电脑名.你的网络名.ts.net` 的域名,**它只在你的 Tailscale 网络内部解析得出**,靠手机客户端上的 MagicDNS——而**有些客户端没有这个能力**:HarmonyOS 上那个第三方客户端 MeshArc,它自己的说明里就写着「请用 Tailscale IP 地址」,那类手机上这条加密路走不通,不是设置没开。隧道那条用的是 Cloudflare 的域名,谁都能解析,不挑手机,代价是地址每次重启都会换。
95
119
 
96
- ## 移动端能做什么
120
+ ---
121
+
122
+ ## 手机上能做什么
97
123
 
98
124
  打开链接就是全部界面:一个输入框,和最新的一条回复。
99
125
 
@@ -101,6 +127,18 @@ dsh plugin --profile web add <你放源码的目录>
101
127
 
102
128
  **等结论。** 跑的时候上面显示「运行中…」。这期间你可以接着发,指令会排队。任务结束,结论直接出现在页面上,同时响一声、震一下。
103
129
 
130
+ **她干活的时候会开口。** 电脑上的模型在步骤之间常会自言自语一句(「我先看一下这个文件」这类),这一句现在由鲸鱼娘念出来——说话的动作是新画的一张立绘,轮播会为它停一下,说完接着从停下的地方往下走。它**只在那只气泡里**,不会混进下面的回答区。气泡里只念**它特意写给人看的那一句**;它自己心里想的那些(常是英文、也常成段)一个字都不上手机。万一那句旁白本身就是英文,就照原样显示、不翻译——翻译等于替它编一句它没说过的话。
131
+
132
+ **两套外观,随手换。** 设置里有一行「外观」:**深色**(默认)、**浅色**、**跟随系统**。深色是深海墨蓝打底;浅色那套的色是从宣传图那张画上取的——近白的冰蓝地、深宝蓝的字,主按钮也换成同一个宝蓝。选哪套记在手机上,下次打开还是它。
133
+
134
+ <img width="290" alt="设置(深色):显示模式与外观" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/settings-dark.png" /> <img width="290" alt="设置(浅色):选中态和主按钮都跟着换成宝蓝" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/settings-light.png" />
135
+
136
+ **任务执行中的那一屏。** 她迈步跑着,进度条在走,队列里排着"跑完这轮就轮到它们"的几条。这一屏上没有工具调用、没有文件差异——只有"在跑"这件事本身。
137
+
138
+ <img width="290" alt="执行中(深色,手机实拍):鲸鱼娘正在跑、已计时 15 秒" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/running-dark-phone.jpg" /> <img width="290" alt="执行中(浅色,手机实拍):鲸鱼娘正在跑、已计时 7 分 43 秒、队列排着一条" src="https://raw.githubusercontent.com/xingzhen199186/dsh-mini-remote/main/docs/running-light-phone.jpg" />
139
+
140
+ 两张都是手机实拍(浏览器自带的状态栏也在画面上,所以比渲染图略高一点)。
141
+
104
142
  **两种显示模式。** 点右上角的 ⚙ 切换。「单帧」(默认)整屏只留最新一条回复,适合「我就想看这次的结果」;「聊天」是一来一回的气泡列表,适合连着追问好几轮。用一阵子你会知道自己偏哪个。
105
143
 
106
144
  **点开一个会话,能看到它之前聊过什么。** 在左边切到一个早就存在的会话,聊天模式会把之前的每一轮都列出来(你发过的指令、每一轮的结论),单帧模式只显示最后一条结论。**特别大的会话只给最近一段**:那种几万个事件的会话,整份读下来会把电脑上的 DSH 拖垮,所以只读末尾那一小段,并在最上面写明「这不是全部,只显示了最近一段」——你看到的那句话不是客套话,是实情。
@@ -111,7 +149,7 @@ dsh plugin --profile web add <你放源码的目录>
111
149
 
112
150
  **顺手能改的三样。** 点顶栏那一行,换当前会话的模型和思考强度;切权限档位(仅可查看 / 工作区内修改 / 完全权限);浏览电脑上的目录,登记新的工作区和会话。
113
151
 
114
- **看的是结论,不是过程。** 页面上没有工具调用链、没有文件 diff。**系统层面的确认弹窗手机上点不了**(比如危险命令的审批),那类还得回电脑处理——手机上能答的是 AI 主动提给你的选择题,这两件事不一样。它的定位是一根遥控器:电视还得在那儿开着,遥控器才有用。
152
+ **看的是结论,不是过程。** 页面上没有工具调用链、没有文件 diff。唯一的例外是鲸鱼娘嘴里那一句自言自语——它只进气泡,不进回答区(见上面那一段)。**系统层面的确认弹窗手机上点不了**(比如危险命令的审批),那类还得回电脑处理——手机上能答的是 AI 主动提给你的选择题,这两件事不一样。它的定位是一根遥控器:电视还得在那儿开着,遥控器才有用。
115
153
 
116
154
  ---
117
155
 
@@ -141,7 +179,25 @@ dsh plugin --profile web add <你放源码的目录>
141
179
 
142
180
  **配对页上带着密码,别截图发出去。** 密码直接编在二维码里,扫完不用手敲——方便是方便,代价是谁拿到这张图谁就能进。
143
181
 
144
- 除此之外:所有接口都要密码,密码比对用定长比较;同一来源一分钟错 5 次就挡一分钟;配对信息**只允许本机读取**,同一个 Wi-Fi 下的其他设备拿不到;公网隧道默认关着,要你自己在设置页里打开;手机看不到任何文件内容——挑工作区的时候只列文件夹名字,文件一个都不列、也不读。**但有一件事要说清楚:手机上能切换 Agent 的权限档位。**切到「完全权限」,Agent 就能改这台电脑上的任何文件。这条路径是开着的。
182
+ 除此之外:所有接口都要密码,密码比对用定长比较;同一来源一分钟错 5 次就挡一分钟;配对信息**只允许本机读取**,同一个 Wi-Fi 下的其他设备拿不到;公网隧道默认关着,要你自己在设置页里打开;手机看不到任何文件内容——挑工作区的时候只列文件夹名字,文件一个都不列、也不读。**唯一的例外是图片**:要让手机看到一张图(比如我截给你的界面图),那张图会被放进插件目录 `lib/art/`、名字以 `out-` 开头,页面按「带密码的图片通道」把它取出来——能被取到的只有这一类(是图片、且是这个前缀),正文、配置文件和别的东西仍然一个字都读不到,也不能列目录。**但有一件事要说清楚:手机上能切换 Agent 的权限档位。** 切到「完全权限」,Agent 就能改这台电脑上的任何文件。这条路径是开着的。
183
+
184
+ ---
185
+
186
+ ## 为什么做这个插件
187
+
188
+ 初衷是因为现在 AGENT 任务执行一轮往往需要很久,而如果出门,则需要手机端来远程操作。
189
+
190
+ 但现有的手机端,会把 PC 的执行步骤非常还原地展现出来。你发一条指令,它可能要想上几分钟、读几十个文件、调好几次工具,最后才给你一个结论。如果出门或有事不在电脑前,实在没时间盯着手机看那么细致。
191
+
192
+ 我并不认为那种方式不好。信息完整、过程可控,如果你要认真处理任务,它是对的。
193
+
194
+ 但出门在外的时候,就我个人而言,我需要的是另一种东西——**更轻便、更少占用注意力的交互方式**。手机屏幕就那么大,出门时的精力也就那么多。而大部分时候我真正需要的只有一件事:**这一轮跑完了,该发下一条指令了**。而且大部分时间,即使在电脑上,我也很少会去仔细阅读 AI 做执行过程中的"自言自语"。
195
+
196
+ 所以这个插件的界面做得相当「原始」:它完全省略了电脑网页端的执行步骤,只把 AI 最后的结论送到你面前。
197
+
198
+ **某种意义上,它的存在,是为了让你更少地去看它。**
199
+
200
+ 你可以更加自由地支配自己的时间,而不是当你和女儿玩耍时,抑或出游时,被困在那个小小的屏幕里。
145
201
 
146
202
  ---
147
203
 
package/client/client.js CHANGED
@@ -325,7 +325,11 @@ window.__ModuleLoader__.load({
325
325
  // 不能含糊地说「没开」:用户会以为是自己这台电脑不支持。
326
326
  status = 'Tailscale 的 serve 配着,但它指的是别的端口,不是这个插件。想给手机用的话,把下面这个开关打开。';
327
327
  } else {
328
- status = '没开。开了之后 Tailscale 那条路上会多一个 https:// 地址——手机浏览器只在加密连接上才肯给用通知和麦克风。'
328
+ // 2026-09-27 改口径:这段原来写的是「手机浏览器只在加密连接上才肯给用通知和麦克风」,
329
+ // 那两样我们**都没有实现**(系统通知 2026-09-25 起入口就是藏着的,麦克风图标也已移除),
330
+ // 拿它们当理由等于替自己许一个不存在的功能。加密本身是实打实的好处,就只说加密。
331
+ status = '没开。开了之后 Tailscale 那条路上会多一个 https:// 地址——同一台电脑、同一个服务,'
332
+ + '区别是这条连接本身是加密的(浏览器地址栏上会出现 https 那把锁)。'
329
333
  + '第一次开要在浏览器里确认一下(Tailscale 后台的一个开关),插件代不了你点。';
330
334
  }
331
335
 
Binary file
package/lib/build.js CHANGED
@@ -20,20 +20,26 @@ const HERE = dirname(fileURLToPath(import.meta.url))
20
20
  /**
21
21
  * 参与计算的文件:插件端的 lib/*,客户端那半边(改它同样要重启才生效),
22
22
  * 以及 lib/art 下的立绘——换了图,指纹就该跟着变。
23
+ *
24
+ * **哈希里放的是文件名,不是路径。** 插件平时是被 DSH 通过一条目录链接
25
+ * (`profiles/web/node_modules/dsh-mini-remote` → 工作副本)加载的,
26
+ * `import.meta.url` 拿到的于是是**链接那条**路径。早先这里把绝对路径也揉进哈希,
27
+ * 结果同一份代码经链接和经真实路径是两个数,「现在应答我的,是不是我改的那份代码」
28
+ * 这条检查永远报红。文件名加内容足够认人——路径是环境,不是代码。
23
29
  */
24
30
  function sources() {
25
31
  const files = []
26
32
  try {
27
33
  for (const f of readdirSync(HERE).sort()) {
28
- if (f.endsWith('.js') || f.endsWith('.html')) files.push(join(HERE, f))
34
+ if (f.endsWith('.js') || f.endsWith('.html')) files.push([f, join(HERE, f)])
29
35
  }
30
36
  } catch {
31
37
  // 目录读不到就退化成空指纹,不该让插件起不来。
32
38
  }
33
- files.push(join(HERE, '..', 'client', 'client.js'))
39
+ files.push(['client/client.js', join(HERE, '..', 'client', 'client.js')])
34
40
  try {
35
41
  for (const f of readdirSync(join(HERE, 'art')).sort()) {
36
- if (f.endsWith('.webp')) files.push(join(HERE, 'art', f))
42
+ if (f.endsWith('.webp')) files.push(['art/' + f, join(HERE, 'art', f)])
37
43
  }
38
44
  } catch {
39
45
  // 没有 art 目录(比如只拷了 .js 的旧安装)就当没有立绘,照常起。
@@ -47,8 +53,8 @@ function sources() {
47
53
  */
48
54
  export function buildId() {
49
55
  const hash = createHash('sha256')
50
- for (const file of sources()) {
51
- hash.update(file)
56
+ for (const [name, file] of sources()) {
57
+ hash.update(name)
52
58
  try {
53
59
  hash.update(readFileSync(file))
54
60
  } catch {