@deepseek-ai/dsh-uuyc
提供 Windows 远程控制与终端执行插件 适合 Windows 宿主用户,用于本地 Agent 的设备管理和远程终端执行。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:luxus0946/dsh-uuyc說明文件
閱讀完整 README ↗Configuration (cordis.yml / profile patch)
- id: uuyc
name: '@deepseek-ai/dsh-uuyc'
disabled: !!js process.platform !== 'win32' # enable only on Windows host
config:
cliPath: '' # empty → auto-detect via PATH (`where`), running GameViewer.exe, then known install dirs
defaultShell: powershell # powershell | cmd
execTimeoutMs: 120000
controlTimeoutMs: 15000
sessionIdleTtlMs: 600000
password: '' # optional: unlock password for locked devices, sent as first stdin line
handshakeRetries: 1 # auto retry on handshake failure (total attempts = 1 + retries)
handshakeBackoffMs: 1500 # backoff base (ms); nth retry waits backoffMs * n
Workflow hardening (built in)
- CLI auto-discovery — when
cliPathis empty, the plugin probes in order: explicit config →where uuyc-cli.exeon PATH → thebin\uuyc-cli.exenext to the runningGameViewer.exeprocess → a list of well-known install directories (D:\uu,D:\Netease,C:\Program Files\NetEase, …). You usually never need to setcliPath. - Device-list cache + fuzzy matching —
device listresults are cached for 60s;targetaccepts a device name or ID and matches case-insensitively, with a substring fuzzy match. If the fuzzy match hits more than one device, the plugin lists the candidates instead of guessing. - Handshake auto-retry — on
handshakeUnavailablethe plugin backs off and retries up tohandshakeRetriestimes (handshake failures are usually transient — no active terminal on the controlled end, or a just-restarted P2P link). - Shell auto-fallback — if the default
powershellkeeps failing the handshake, the plugin retries once oncmd; ifcmdtriggersterminal_bridge_unavailable, it falls back to the supportedpowershell.
配置(cordis.yml / profile patch)
- id: uuyc
name: '@deepseek-ai/dsh-uuyc'
disabled: !!js process.platform !== 'win32' # 仅 Windows 主控端启用
config:
cliPath: '' # 留空→依次探测 PATH(`where`)、运行中的 GameViewer.exe 同目录、常见安装目录
defaultShell: powershell # powershell | cmd
execTimeoutMs: 120000
controlTimeoutMs: 15000
sessionIdleTtlMs: 600000
password: '' # 可选:被锁屏设备的解锁密码,作为 stdin 首行发送
handshakeRetries: 1 # 握手失败时自动重试次数(总尝试 = 1 + 该值)
handshakeBackoffMs: 1500 # 退避基数(毫秒),第 n 次重试等待 backoffMs * n
内置的工作流加固
- CLI 路径自动发现:
cliPath留空时,插件按序探测:显式配置 → PATH 上的where uuyc-cli.exe→ 正在运行的GameViewer.exe同目录bin\uuyc-cli.exe→ 一堆常见安装目录(D:\uu、D:\Netease、C:\Program Files\NetEase等)。多数情况下无需手动配置cliPath。 - 设备列表缓存 + 模糊匹配:
device list结果缓存 60s;target接受设备名或设备 ID,大小写不敏感,并支持子串模糊匹配。若模糊匹配命中多台设备,插件会列出候选清单而非盲目猜测。 - 握手自动重试:命中
handshakeUnavailable时,插件按退避策略重试最多handshakeRetries次(握手失败多为瞬态——被控端无活跃终端,或 P2P 刚重启)。 - Shell 自动回退:若默认
powershell持续握手失败,插件会用cmd回退重试一次;若cmd触发terminal_bridge_unavailable,则回退到受支持的powershell。