dsh-plugin-agentdeck 0.1.0 → 0.2.0
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.md +29 -54
- package/lib/client.js +484 -592
- package/lib/index.js +151 -18
- package/lib/setup.js +175 -5
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
# dsh-plugin-agentdeck
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Zero-config mobile remote control plugin for [DeepSeek Harness (`dsh`)](https://github.com/deepseek-ai/deepseek-harness), powered by [AgentDeck](https://agentdeck.xianqiao.wang).
|
|
4
4
|
|
|
5
5
|
Control DeepSeek Harness from your **iPhone or Android** over native ACP — end-to-end encrypted (`XChaCha20-Poly1305`), with push notifications, file & diff viewing, terminal output, and zero tunnel/VPN setup.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Zero-Click Setup
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Install the plugin and open **Settings → AgentDeck** — everything is provisioned automatically in the background on startup:
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
- Installs `@openma/deepseek-harness-acp` into the `acp` profile if missing.
|
|
12
|
+
- Syncs model & provider config into `~/.dsh/profiles/acp/cordis.patch.yml` (including `acp-plugin.config.provider` for third-party providers like OpenRouter).
|
|
13
|
+
- Registers `dsh` in AgentDeck's `custom_agents.json` while preserving your other agents.
|
|
14
|
+
- Installs `agentdeckd` automatically and enables OS login autostart (`launchd` / `systemd --user` / Windows Task Scheduler).
|
|
15
|
+
|
|
16
|
+
The Settings tab stays minimal — just your **scannable pairing QR code** plus the 3 controls you actually need:
|
|
17
|
+
|
|
18
|
+
1. **Remote Service & Autostart** (`Start` / `Restart` / `Stop`)
|
|
19
|
+
2. **Prevent Automatic Sleep** (`Off` / `On Power` / `Active 1h` / `Always`, hot-reloads without restarting)
|
|
20
|
+
3. **Mobile Default Model** (shows active model; syncs with your current profile in one click if different)
|
|
16
21
|
|
|
17
22
|
## Install
|
|
18
23
|
|
|
@@ -25,67 +30,37 @@ dsh web
|
|
|
25
30
|
|
|
26
31
|
### DeepSeek Harness Desktop
|
|
27
32
|
|
|
28
|
-
Open **Settings → Plugins**, install `dsh-plugin-agentdeck`, then open **Settings → AgentDeck
|
|
29
|
-
|
|
30
|
-
## Pair Your Phone
|
|
31
|
-
|
|
32
|
-
1. Open **Settings → AgentDeck** in DeepSeek Harness and click **One-Click Setup & Start**.
|
|
33
|
-
2. Install [AgentDeck](https://agentdeck.xianqiao.wang) on your phone:
|
|
34
|
-
- [App Store (iOS)](https://apps.apple.com/app/id6821905390)
|
|
35
|
-
- [Google Play (Android)](https://play.google.com/store/apps/details?id=com.mantou.agentdeck)
|
|
36
|
-
- [Android APK (GitHub Releases)](https://github.com/mantou132/AgentDeck/releases/latest)
|
|
37
|
-
3. Scan the QR code shown in **Settings → AgentDeck** and select **DeepSeek Harness** when creating a new session.
|
|
33
|
+
Open **Settings → Plugins**, install `dsh-plugin-agentdeck`, then open **Settings → AgentDeck** and scan the QR code.
|
|
38
34
|
|
|
39
|
-
##
|
|
40
|
-
|
|
41
|
-
If you prefer configuring without the plugin:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
dsh plugin --profile acp add @openma/deepseek-harness-acp@latest
|
|
45
|
-
npm install -g agentdeckd # or: brew install mantou132/tap/agentdeckd
|
|
46
|
-
agentdeckd start
|
|
47
|
-
```
|
|
35
|
+
## Get the Mobile App
|
|
48
36
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"agents": [
|
|
54
|
-
{
|
|
55
|
-
"id": "dsh",
|
|
56
|
-
"name": "DeepSeek Harness",
|
|
57
|
-
"command": "dsh",
|
|
58
|
-
"args": ["--profile", "acp"]
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
```
|
|
37
|
+
- [App Store (iOS)](https://apps.apple.com/app/id6821905390)
|
|
38
|
+
- [Google Play (Android)](https://play.google.com/store/apps/details?id=com.mantou.agentdeck)
|
|
39
|
+
- [Android APK (GitHub Releases)](https://github.com/mantou132/AgentDeck/releases/latest)
|
|
40
|
+
- [AgentDeck Website](https://agentdeck.xianqiao.wang)
|
|
63
41
|
|
|
64
42
|
---
|
|
65
43
|
|
|
66
44
|
## 中文说明
|
|
67
45
|
|
|
68
|
-
[AgentDeck](https://agentdeck.xianqiao.wang/zh) 的 DeepSeek Harness (`dsh`)
|
|
46
|
+
[AgentDeck](https://agentdeck.xianqiao.wang/zh) 的 DeepSeek Harness (`dsh`) 零配置手机远控插件。
|
|
47
|
+
|
|
48
|
+
安装启用后会在后台**自动完成全部初始化**(无需手动点击配置按钮):自动安装 `@openma/deepseek-harness-acp`、同步模型与服务商配置、写入 `custom_agents.json`、安装 `agentdeckd` 并开启系统登录自启。
|
|
69
49
|
|
|
70
|
-
|
|
71
|
-
2. **同步模型与服务商**:将当前界面的模型与服务商配置同步到 `~/.dsh/profiles/acp/cordis.patch.yml`(自动补齐 OpenRouter 等第三方服务商的 `acp-plugin.config.provider`)。
|
|
72
|
-
3. **注册自定义 Agent**:将 `dsh --profile acp` 写入 AgentDeck 的 `custom_agents.json`(保留你原有的其他 Agent)。
|
|
73
|
-
4. **自动安装并自启 `agentdeckd`**:未安装时自动通过 Homebrew / npm / Scoop 或本地目录安装 `agentdeckd`,并执行 `agentdeckd start` 注册开机自启(macOS LaunchAgent / Linux systemd / Windows 计划任务)。
|
|
74
|
-
5. **界面内直接扫码配对**:配置完成后直接展示实时配对二维码,并提供启动 / 重启 / 停止并取消自启按钮。
|
|
50
|
+
打开 DSH 的 **设置 → AgentDeck 手机远控** 即可直接扫码配对,界面仅保留最核心的 3 项开关:
|
|
75
51
|
|
|
76
|
-
|
|
52
|
+
1. **远程服务与开机自启**(开启 / 重启 / 停止)
|
|
53
|
+
2. **防自动休眠**(关闭 / 插电常亮 / 活跃 1 小时 / 始终常亮,热重载生效)
|
|
54
|
+
3. **手机端默认模型**(与当前界面不同时一键同步)
|
|
55
|
+
|
|
56
|
+
### 安装
|
|
77
57
|
|
|
78
58
|
```bash
|
|
79
59
|
dsh plugin --profile web add dsh-plugin-agentdeck
|
|
80
60
|
dsh web
|
|
81
61
|
```
|
|
82
62
|
|
|
83
|
-
打开
|
|
84
|
-
|
|
85
|
-
- [App Store (iOS)](https://apps.apple.com/app/id6821905390)
|
|
86
|
-
- [Google Play (Android)](https://play.google.com/store/apps/details?id=com.mantou.agentdeck)
|
|
87
|
-
- [Android APK](https://github.com/mantou132/AgentDeck/releases/latest)
|
|
88
|
-
- [AgentDeck 官网](https://agentdeck.xianqiao.wang/zh)
|
|
63
|
+
打开 **设置 → AgentDeck 手机远控** 扫码即可使用([App Store](https://apps.apple.com/app/id6821905390) · [Google Play](https://play.google.com/store/apps/details?id=com.mantou.agentdeck) · [Android APK](https://github.com/mantou132/AgentDeck/releases/latest))。
|
|
89
64
|
|
|
90
65
|
## License
|
|
91
66
|
|