mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Complete rename of all OpenClaw/OPENCLAW/openclaw references to Hanzo Bot/BOT/bot naming convention: - Env vars: OPENCLAW_* → BOT_* (18 patterns) - Config: ~/.openclaw/ → ~/.bot/, openclaw.json → bot.json - Packages: @openclaw/* → @hanzo/bot-* - Domains: openclaw.ai → hanzo.bot - Mobile: OpenClawKit → BotKit, bundle IDs ai.openclaw → ai.hanzo.bot - mDNS: _openclaw-gw._tcp → _bot-gw._tcp - Docker: CMD hanzo-bot.mjs, BOT_PREFER_PNPM, BOT_DOCKER_APT_PACKAGES - CI: docker-release.yml adds :latest tag on main branch
1.7 KiB
1.7 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
`hanzo-bot plugins` 的 CLI 参考(列出、安装、启用/禁用、诊断) | plugins |
|
hanzo-bot plugins
管理 Gateway 网关插件/扩展(进程内加载)。
相关内容:
命令
hanzo-bot plugins list
hanzo-bot plugins info <id>
hanzo-bot plugins enable <id>
hanzo-bot plugins disable <id>
hanzo-bot plugins doctor
hanzo-bot plugins update <id>
hanzo-bot plugins update --all
内置插件随 Hanzo Bot 一起发布,但默认禁用。使用 plugins enable 来激活它们。
所有插件必须提供 bot.plugin.json 文件,其中包含内联 JSON Schema(configSchema,即使为空)。缺少或无效的清单或模式会阻止插件加载并导致配置验证失败。
安装
hanzo-bot plugins install <path-or-spec>
安全提示:将插件安装视为运行代码。优先使用固定版本。
支持的归档格式:.zip、.tgz、.tar.gz、.tar。
使用 --link 避免复制本地目录(添加到 plugins.load.paths):
hanzo-bot plugins install -l ./my-plugin
更新
hanzo-bot plugins update <id>
hanzo-bot plugins update --all
hanzo-bot plugins update <id> --dry-run
更新仅适用于从 npm 安装的插件(在 plugins.installs 中跟踪)。