packages/dsh-remote-web-ui
zhu1090093659/dsh-web手机/PC 远程操控 dsh web 工作区:扫码配对、令牌门控通道、SSE 实时同步,提供移动端与完整桌面 GUI 两种远程形态。
在 iPhone 信息里直接和本机 DeepSeek Harness(dsh)对话:切换工作区/会话、开新会话、原生信息气泡回复,无需额外 App、服务器或云服务。
在 iPhone 的「信息」里直接和本机 DeepSeek Harness(dsh)代理聊天 —— 不用额外 App、不用服务器、不用云。
English version: README.md.
把 Mac 变成一台 24/7 的 dsh 助手,住在你的 iMessage 会话里。给桥接账户发一条消息,本机 dsh 就会切换工作区/会话、调用工具、把回复发回给你 —— 全程不用开终端。
这个桥接给你真正的聊天体验:dsh 白色气泡,你蓝色气泡,一来一回。
dsh、dsh use stockKing、dsh use 2。dsh sessions stockKing、dsh use stockKing 0。dsh new <消息>。DSH_BRIDGE_LANG=en|zh)。dsh)。本仓库已经是标准 DeepSeek Harness 插件 bundle,可以一条命令安装:
dsh plugin --profile web add github:yuunnn/dsh-on-imessage
然后在启动 dsh web 的 shell 里设置环境变量:
export DSH_BUDDY="+861234567890" # 你的 iPhone 号码
export DSH_AUTHORIZED_FROM="+861234567890" # 发送者白名单
export DSH_BRIDGE_ACCOUNT="E:dsh@icloud.com" # 登录在“信息”里的第二个 Apple ID
重启 dsh web 即可。插件会在 dsh profile 启动时自动拉起 bridge.py。
如果 pnpm 提示需要允许构建脚本,把
dsh-on-imessage: true加到 profile 的pnpm-workspace.yaml即可;本包没有构建步骤,一般不需要。
在 Mac 终端粘贴这一行:
curl -fsSL https://raw.githubusercontent.com/yuunnn/dsh-on-imessage/main/install.sh | bash
完事。安装器会把仓库克隆到 ~/.dsh/bridges/imessage、启动守护进程、打印下一步操作,包括在信息里登录第二个 Apple ID。
安装器只需要
git和python3,其它都在你的 Mac 上。
DSH_BIN (optional): if your dsh CLI is not on PATH and not in the npx cache, set the environment variable to its entry point, e.g. export DSH_BIN="$HOME/deepseek-harness/apps/cli/lib/bin.js".
dsh@example.com),在 appleid.apple.com 注册。这就是「dsh 人格」。DSH_BUDDY = 你的 iPhone 号码,如 +861234567890DSH_AUTHORIZED_FROM = 你的 iPhone 号码(或你回复用的邮箱)DSH_BRIDGE_ACCOUNT = 桥接监听的 iMessage 账户,如 E:dsh@icloud.compkill -f bridge.py; DSH_BUDDY="+861234567890" DSH_AUTHORIZED_FROM="+861234567890" DSH_BRIDGE_ACCOUNT="E:dsh@icloud.com" ~/.dsh/bridges/imessage/install.sh
dsh 帮助。| 命令 | 含义 |
|---|---|
dsh | 列出工作区 |
dsh use <id|路径|名字> | 切换工作区(最新会话) |
dsh use <id|路径|名字> <会话#> | 切换工作区 + 指定会话 |
dsh sessions [<工作区>] | 查看会话 |
dsh new <消息> | 开新会话 |
| 其它任何消息 | 继续当前会话 |
工作区支持按编号、完整路径、目录名匹配 —— 精确匹配优先,模糊匹配有多个时列出候选。
iPhone iMessage
│ (发给 dsh@icloud.com)
▼
Mac 信息(chat.db + osascript)
│
▼
bridge.py(轮询新消息)
│
├── dsh web API (127.0.0.1:3080) ──► dsh web UI 实时同步
└── dsh --profile headless --resume(兜底)
│
▼
通过信息把回复发回 iPhone
AUTHORIZED_FROM 里的号码。为什么要第二个 Apple ID? iMessage 会把同一个 Apple ID 内地址互发当作 self-chat,导致气泡重复。独立的 Apple ID 才能得到干净的一对一对话。
需要开着 dsh web UI 吗? 不需要。web 进程不在时,桥接会自动退回 headless CLI。
别人能触发我的代理吗? 不能。只有白名单里的号码可以。
Apache-2.0,见 LICENSE。