dd598/dsh-plugin-auto-install0

dsh-plugin-auto-install

Windows 下让 DeepSeek Harness (DSH) 自动执行 DSH 插件安装流程的动态 Cordis 插件:纯直连安装(无需代理)、显式版本解析、安装后验证、沙箱 danger-full-access 授权自动升级。

包名
dsh-plugin-auto-install
版本
1.1.0
许可证
MIT
最近更新
2026年8月16日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

Usage

Option 1: dynamic plugin (current session, recommended)

In a DSH session, ask the agent to:

  1. cordis_define (kind: new, idPrefix: dshi) — put the module.exports object from plugin/host.js into code.host (or paste the apply body directly);
  2. cordis_run (mode: run) to activate;
  3. The dsh_plugin_install tool 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

ParameterRequiredDescription
packagenpm package name, e.g. @liustack/modlens
versionexplicit version; defaults to the latest resolved at install time
profileDSH profile, default web
profileRootDSH home directory holding the profiles, default C:\Users\jiang\.dsh (used for post-install verification)
nodePathoverride node.exe path (default D:\ruanjian\NodeJs\node.exe)
dshBinoverride DSH CLI bin.js path
dryRuntrue resolves the version and reports what would be installed, without making any changes
sandbox_permissionspre-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..."