dd598/dsh-plugin-auto-install0

dsh-plugin-auto-install

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

AI Analysis

核心用途是简化 Windows 用户安装 DSH 插件的繁琐步骤。适合希望让智能体自主完成插件发现、下载、安装和沙箱授权全流程的用户。专为 Windows 平台优化,支持纯直连无代理环境。

Package
dsh-plugin-auto-install
Version
1.1.0
License
MIT
Last updated
Aug 16, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full 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..."