wqzhellohhwy/dsh-profile-lab ↗★ 0

dsh-profile-lab

DSH 临时 profile 实验台:一键从模板或现有 profile 克隆隔离环境、装插件、跑 headless 探针会话、读回会话摘要并安全回收——把「改插件怕把本体改暴毙」这件事变成有护栏的标准动作。 适合需要安全测试新插件、避免破坏主配置的开发者。

Package
dsh-profile-lab
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Oct 11, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wqzhellohhwy/dsh-profile-lab

配置(cordis 行 config,全部可选)

- insert:
    - id: dsh-profile-lab
      name: 'dsh-profile-lab'
      config:
        home: 'C:/Users/you/.dsh'      # 缺省 $DSH_HOME 或 ~/.dsh
        dshBin: ''                      # 显式指定 dsh 的 lib/bin.js(缺省自动探测)
        nodePath: ''                    # 显式指定跑子进程的 node(缺省 process.execPath)
        tools:
          disabled: ['tmpprofile_fingerprint']   # 按名字关掉工具

dsh 可执行文件是怎么找的

按优先级探测,每条都用 -V 实测(app.asar 是文件,existsSync 看不到内部路径,只能试跑):

  1. config.dshBin / 环境变量 DSH_LAB_DSH_BIN
  2. 宿主安装锚点:宿主进程的 profileContext.installAnchor → /…/@deepseek-ai/dsh/lib/bin.js,用 process.execPath + ELECTRON_RUN_AS_NODE=1(版本与宿主一致,兼容性最好)
  3. npm 全局安装:%APPDATA%\npm\node_modules\@deepseek-ai\dsh\lib\bin.js
  4. C:\dsh-runtime\\...

实测样例(Windows + 桌面版宿主):宿主锚点 → 0.2.0-rc.2(host 同版本);兜底 npm 全局 → 0.2.1-alpha.1。