dsh-plugin-agentdeck 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 mantou132
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,92 @@
1
- # Temporary Holding Version
1
+ # dsh-plugin-agentdeck
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Mobile remote control plugin for [DeepSeek Harness (`dsh`)](https://github.com/deepseek-ai/deepseek-harness), powered by [AgentDeck](https://agentdeck.xianqiao.wang).
4
+
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
+
7
+ ## What It Does
8
+
9
+ Adds an **AgentDeck** tab inside DeepSeek Harness **Settings** (`web` and `desktop`, English & 中文) that handles the entire setup in **one click**:
10
+
11
+ 1. **Interactive ACP Adapter**: Installs `@openma/deepseek-harness-acp` into your `acp` profile if missing.
12
+ 2. **Model & Provider Sync**: Mirrors model & provider settings into `~/.dsh/profiles/acp/cordis.patch.yml` (and sets `acp-plugin.config.provider` for non-DeepSeek providers like OpenRouter).
13
+ 3. **AgentDeck Registration**: Adds `dsh` (`--profile acp`) to AgentDeck's `custom_agents.json` while keeping your other agents untouched.
14
+ 4. **Daemon & Autostart**: Automatically installs `agentdeckd` (via Homebrew, npm, Scoop, or a self-contained fallback prefix) and runs `agentdeckd start` to register OS login autostart (`launchd` / `systemd --user` / Windows Task Scheduler).
15
+ 5. **In-App Pairing QR Code**: Displays your live scannable pairing QR code right inside DSH Settings, plus Start / Restart / Stop controls.
16
+
17
+ ## Install
18
+
19
+ ### DeepSeek Harness Web / CLI
20
+
21
+ ```bash
22
+ dsh plugin --profile web add dsh-plugin-agentdeck
23
+ dsh web
24
+ ```
25
+
26
+ ### DeepSeek Harness Desktop
27
+
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.
38
+
39
+ ## Manual Setup (Optional)
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
+ ```
48
+
49
+ Then add `dsh` to AgentDeck's `custom_agents.json` (`~/Library/Application Support/agentdeck/custom_agents.json` on macOS, `~/.local/share/agentdeck/custom_agents.json` on Linux, `%LOCALAPPDATA%\agentdeck\custom_agents.json` on Windows):
50
+
51
+ ```json
52
+ {
53
+ "agents": [
54
+ {
55
+ "id": "dsh",
56
+ "name": "DeepSeek Harness",
57
+ "command": "dsh",
58
+ "args": ["--profile", "acp"]
59
+ }
60
+ ]
61
+ }
62
+ ```
63
+
64
+ ---
65
+
66
+ ## 中文说明
67
+
68
+ [AgentDeck](https://agentdeck.xianqiao.wang/zh) 的 DeepSeek Harness (`dsh`) 手机远控插件,在 DSH 设置面板中新增 **AgentDeck 手机远控** 标签页,**一键完成全部配置并开启自启动**:
69
+
70
+ 1. **自动安装 ACP 适配器**:为 `acp` profile 安装 `@openma/deepseek-harness-acp`。
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. **界面内直接扫码配对**:配置完成后直接展示实时配对二维码,并提供启动 / 重启 / 停止并取消自启按钮。
75
+
76
+ ### 安装使用
77
+
78
+ ```bash
79
+ dsh plugin --profile web add dsh-plugin-agentdeck
80
+ dsh web
81
+ ```
82
+
83
+ 打开 DSH 的 **设置 → AgentDeck 手机远控**,点击 **一键配置并启动**,用手机端 AgentDeck 扫描二维码即可开始远程控制:
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)
89
+
90
+ ## License
91
+
92
+ MIT
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: agentdeck
3
+ name: dsh-plugin-agentdeck
package/icon.svg ADDED
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
2
+ <rect width="64" height="64" rx="16" fill="#18181B"/>
3
+ <rect x="19" y="11" width="26" height="42" rx="6" stroke="#FAFAFA" stroke-width="3.2"/>
4
+ <path d="M27 27L32 32L27 37" stroke="#60A5FA" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M34 37H38" stroke="#60A5FA" stroke-width="3.2" stroke-linecap="round"/>
6
+ <circle cx="32" cy="46.5" r="1.8" fill="#FAFAFA"/>
7
+ </svg>