dd598/dsh-plugin-auto-install ↗★ 0
dsh-plugin-auto-install
Windows 下让 DeepSeek Harness (DSH) 自动执行 DSH 插件安装流程的动态 Cordis 插件:纯直连安装(无需代理)、显式版本解析、安装后验证、沙箱 danger-full-access 授权自动升级。
AI Analysis
核心用途是简化 Windows 用户安装 DSH 插件的繁琐步骤。适合希望让智能体自主完成插件发现、下载、安装和沙箱授权全流程的用户。专为 Windows 平台优化,支持纯直连无代理环境。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗Usage
Option 1: dynamic plugin (current session, recommended)
In a DSH session, ask the agent to:
cordis_define(kind: new,idPrefix: dshi) — put themodule.exportsobject fromplugin/host.jsintocode.host(or paste theapplybody directly);cordis_run(mode: run) to activate;- The
dsh_plugin_installtool then appears in the tool list and is called automatically whenever an install is needed.
Option 2: permanent mount (survives restarts)
Mount plugin/host.js as a row in an agent preset's agent.cordis.yml (e.g. a copy of standard), or add it to the host composition. It depends on the host services shell, sandboxPolicy, approval, and tools.
Tool parameters: dsh_plugin_install
| Parameter | Required | Description |
|---|---|---|
package | ✔ | npm package name, e.g. @liustack/modlens |
version | explicit version; defaults to the latest resolved at install time | |
profile | DSH profile, default web | |
profileRoot | DSH home directory holding the profiles, default C:\Users\jiang\.dsh (used for post-install verification) | |
nodePath | override node.exe path (default D:\ruanjian\NodeJs\node.exe) | |
dshBin | override DSH CLI bin.js path | |
dryRun | true resolves the version and reports what would be installed, without making any changes | |
sandbox_permissions | pre-request sandbox escalation (workspace-write / danger-full-access); requires justification |
Returns: { ok, package, version, message, installExitCode, outputTail, sandboxMode, sandboxDenied, verified, restartRequired }.
Example:
dsh_plugin_install(package: "@liustack/modlens")
→ ok: true, version: 3.17.0, verified: true, sandboxMode: danger-full-access
"installed @liustack/modlens@3.17.0 into profile web (direct) and verified
(dependencies: yes; dsh.profile.bundles: yes). Restart DSH..."