- 高危词库从 process.py 抽到 config.toml [security] section - process.py 改为 _get_high_risk_words() 动态加载(配置优先) - 新增 15 个 QQ 操作脚本(已脱敏:QQ号/IP/Token → 占位符) - 新增 8 个 SKILL.md(qq-messenger/management/resolver/napcat-extras 等) - 新增 SKILL.md 入口(完整部署方案文档) - 保留 SDK 框架(plugin_modules.py, file_store_api.py, package.py 等)
35 lines
1.3 KiB
TOML
35 lines
1.3 KiB
TOML
[plugin]
|
||
name = "openclaw_bridge"
|
||
version = "1.0.0"
|
||
|
||
# qqrebot 插件框架测试用
|
||
[test]
|
||
message = "openclaw_bridge_loaded"
|
||
|
||
# ── 核心配置(使用前必须修改) ──────────────────────────
|
||
# 克隆本仓库后,将此文件放在 config/openclawbridge/config.toml
|
||
# 或在目标主机上打包后首次加载插件时会生成此路径
|
||
[openclaw]
|
||
# OpenClaw Gateway 地址
|
||
# 如果使用同机部署的 OpenClaw,默认 http://127.0.0.1:18789
|
||
gateway_url = "http://127.0.0.1:18789"
|
||
|
||
# Gateway 认证 Token(必填!从 OpenClaw 配置中获取)
|
||
gateway_token = "your_gateway_token_here"
|
||
|
||
# 管理员 QQ 号(唯一可发敏感指令、不受 MC 指令过滤限制)
|
||
allowed_sender = "your_admin_qq"
|
||
|
||
# 要调用的 agent 模型 ID
|
||
# 默认:openclaw/qq-agent(对应 qq-agent 配置)
|
||
model = "openclaw/qq-agent"
|
||
|
||
# Agent ID(与 OpenClaw 配置中 agent id 一致)
|
||
agent_id = "qq-agent"
|
||
|
||
# ── 安全配置 ──────────────────────────────────────────
|
||
# HIGH_RISK_WORDS 也可以在此配置,内容较多时建议放外部文件
|
||
# 如不配置则使用 process.py 中的内置默认词库
|
||
# [security]
|
||
# high_risk_words = ["word1", "word2", ...]
|