Lgv-H/dsh-maibot-plugin-writer ↗★ 0

dsh-maibot-plugin-writer

提供MaiBot插件的编写、校验与安装工具 适合需要开发、测试和部署MaiBot机器人插件的开发者。

包名
dsh-maibot-plugin-writer
兼容性
待验证
Harness 依赖范围
*
Cordis 依赖范围
*
版本
0.1.0
许可证
MIT
最近更新
2026年9月26日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Lgv-H/dsh-maibot-plugin-writer

配置

在 profile 的 cordis.patch.yml 里覆盖(profile 层优先级高于插件自带的 bundle 层):

- id: dsh-maibot-plugin-writer
  name: dsh-maibot-plugin-writer
  config:
    maibotRoot: 'C:\...\modules\MaiBot'   # MaiBot 源码根(含 src/plugin_runtime 与 plugins/)
    pythonPath: ''                        # 可选:AST 深检用解释器;默认从 MaiBot 同级 python-env/.venv 探测
    dshHome: ''                           # 可选:默认 $DSH_HOME 或 ~/.dsh
    syncSkill: true                       # 是否把随包 skill 投放到 /skills

maibotRoot 解析顺序(显式优先,配错即报错,不会静默换目录):

  1. 工具参数 maibotRoot
  2. 插件配置 maibotRoot
  3. 环境变量 DSH_MAIBOT_ROOT / MAIBOT_ROOT
  4. 当前工作目录逐级向上探测
  5. 常见安装位置自动发现:%APPDATA%\MaiBotOneKeyDesktop\*\modules\MaiBot(一键包)、~/MaiBot、~/maibot、~/Documents/MaiBot、/opt/MaiBot 等;命中多个时取最近修改的,并在来源说明里列出全部候选

Python 解释器解析顺序:插件配置 pythonPath → MaiBot 同级的 python-env/、.venv/、.venv312/ → PATH。