rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:rekey/dsh-link
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DshLink 是一个 macOS 图形客户端,用于连接和管理 DeepSeek Harness Web UI(dsh web)。
dsh 启动 dsh web。user@host:sshPort,通过 SSH 启动或复用远端 dsh web,并建立本地 SSH 隧道访问。本项目的平台支持状态:
/bin/zsh -lcInfo.plistRunEvent::Reopen本项目只提供源码,不提供任何编译后产物。
.app、.dmg、.exe、.msi、AppImage、deb/rpm 等二进制包。Tauri v2
├── Rust 后端:连接管理、SSH、隧道、进程生命周期
├── SvelteKit + TypeScript 前端:manager 窗口
└── WKWebView:独立 dsh 窗口
dsh web,断开后默认保留运行127.0.0.1dsh 且可从登录 shell 的 PATH 找到dsh 和 Node.jsnpm install
npm run tauri dev
项目不提供编译产物,按以下步骤在本机构建。
npm install
npm run tauri build
.appnpx tauri build --debug --bundles app
macOS 产物位于:
src-tauri/target/debug/bundle/macos/DshLink.app
发布构建产物通常位于:
src-tauri/target/release/bundle/macos/
分发给他人时,签名、公证和 Gatekeeper 策略需要自行处理,本项目不提供 Developer ID 配置或签名产物。
core-smoke 是独立于 GUI 的核心链路测试入口:
cargo run --bin core-smoke -- local-start --port 3190 --wait-ms 6000
cargo run --bin core-smoke -- ssh-preflight --target <SSH_TARGET>
cargo run --bin core-smoke -- remote-detect \
--target <SSH_TARGET> --target-id example-remote --remote-port 3080
cargo run --bin core-smoke -- remote-connect \
--target <SSH_TARGET> --target-id example-remote \
--remote-port 3080 --local-port 3080 --wait-ms 6000
cargo run --bin core-smoke -- remote-force-restart \
--target <SSH_TARGET> --target-id example-remote \
--remote-port 3199 --local-port 3199 --wait-ms 6000
cargo run --bin core-smoke -- remote-stop \
--target <SSH_TARGET> --target-id example-remote
scripts/acceptance-core.sh <SSH_TARGET> <EXISTING_REMOTE_PORT>
例如:
scripts/acceptance-core.sh your-ssh-alias 3080
脚本覆盖:
user@host:port 解析人工 GUI 清单见 docs/manual-qa.md。
客户端配置保存在:
~/Library/Application Support/dev.dshlink.client/config.json
字段对齐 docs/v1-spec.md 第 5 节,核心字段如下:
{
"version": 1,
"targets": [
{
"id": "local",
"name": "Local",
"kind": "local",
"localPort": 3080,
"dshBin": null,
"localWorkspace": "~"
},
{
"id": "example-remote",
"name": "Example Remote",
"kind": "ssh",
"sshMode": "alias",
"sshAlias": "your-ssh-alias",
"localPort": 3080,
"remoteHost": "127.0.0.1",
"remotePort": 3080,
"remoteWorkspace": "~",
"remoteDshBin": null
}
]
}
手动 SSH target 也支持:
sshUser
sshHost
sshPort
identityFile
| 场景 | 行为 |
|---|---|
| 关闭 DSH 窗口 | 只关窗口,连接保持 |
| 点击断开 | local 杀 dsh;remote 只关隧道,远端 dsh 保留 |
| 停止远端 | 只杀受本客户端管理的 dsh web 进程 |
| 关闭 manager 窗口 | 隐藏,App 继续运行 |
| Cmd+Q 退出 | 清理 local dsh 和 SSH 隧道,远端 dsh 保留 |
| 复用已有实例 | 本地端口必须等于远端实际端口,避免 trusted-host 不匹配 |
客户端在远端使用:
~/.dsh-link/
├── lib/
│ ├── detect.sh
│ ├── start.sh
│ ├── stop.sh
│ └── VERSION
└── remote/
└── <targetId>/
├── web.pid
├── web.port
└── web.log
远端 dsh web 由客户端启动时只绑定 127.0.0.1。
docs/
v1-spec.md # 规格与实现进度
manual-qa.md # 人工 GUI 验收清单
scripts/
acceptance-core.sh
src/ # SvelteKit manager 前端
src-tauri/
src/core/ # local / remote / ssh / 隧道 / 健康检查
src/connection.rs # ConnectionManager、状态事件、日志
src/lib.rs # Tauri commands 与生命周期
src/bin/core-smoke.rs
scripts/ # 远端 helper
Info.plist # ATS 本地网络例外
127.0.0.1,不暴露公网。127.0.0.1。docs/v1-spec.mddocs/manual-qa.mdMIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。