dd598/dsh-plugin-auto-install0

dsh-plugin-auto-install

Windows 环境下的 DSH 插件自动安装辅助插件。提供直连安装工具,支持版本解析、安装后验证及沙箱安全授权自动升级,无需配置代理。

AI 分析

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

包名
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..."