dd598/dsh-plugin-auto-install ↗★ 0
dsh-plugin-auto-install
Windows 下让 DeepSeek Harness (DSH) 自动执行 DSH 插件安装流程的动态 Cordis 插件:纯直连安装(无需代理)、显式版本解析、安装后验证、沙箱 danger-full-access 授权自动升级。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 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..."