bfd8f9af92
fix: allow admin to bypass @bot check in group chat
...
Admin (2198972886) messages in group chat should always be forwarded
to LLM even without @-mention. Others still require @bot to trigger.
2026-05-05 20:47:59 +08:00
fef115f05d
fix: skip LLM call for group messages without @bot
...
Only forward group chat messages to OpenClaw LLM when the bot is
@-mentioned. Non-@ messages are still saved to history but no longer
consume API calls or tokens.
2026-05-05 18:57:33 +08:00
9dff73e7bc
fix: 通过本地完整测试发现的 11 个 bug
...
🔴 致命(5个):
- Bug1: onebot11.json 格式错误(旧 {http:{},ws:{}} → network.httpServers/httppClients)
- Bug2: 端口映射错位(WebUI 6099, OneBot API 6097 独立端口)
- Bug3: 变量名含空格 NAP CAT_HOST → NAPCAT_HOST(14脚本+2SKILL+README)
- Bug4: heredoc 单引号阻止变量展开
- Bug5: process.py 缺失 _get_high_risk_words() 方法
🟡 重要(3个):
- Bug6: onebot11.json 默认不存在(cat > 而非 edit)
- Bug7: API 须登录后才响应(新增扫码引导步骤)
- Bug8: qqrebot systemd 依赖 napcat 服务
🟢 中等(3个):
- Bug9: Skills 占位符缺 YOUR_NAPCAT_HOST sed 覆盖
- Bug10: venv 不可用需降级方案
- Bug11: 端口 25580 冲突处理
已验证全链路:NapCat + qqrebot + 插件 + OpenClaw Gateway + AI 回复
2026-05-04 19:47:26 +08:00
e1fbd31c64
完整 AgentSkill:词库外部化 + 全部脚本/Skill 脱敏上传
...
- 高危词库从 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 等)
2026-05-04 16:23:59 +08:00
8c4c5074f2
重构为 openclaw_bridge 模板插件
...
- 将 process.py 替换为 OpenClaw Gateway QQ AI Reply 插件
- 新增 config/openclawbridge/config.toml(SDK 标准路径)
- 遵循 SDK 官方配置方式,移除硬编码默认值
- 内置高危词检测、管理员白名单、MC指令过滤
- 完善的 README.md 文档(使用说明+架构图+安全特性)
- packup.sh 增加『必须在目标主机打包』警告
- 保留 SDK 框架文件(plugin_modules.py, file_store_api.py 等)
- 更新 test.py 适配 openclaw_bridge 测试
注意:打包必须在目标主机执行,避免 C 扩展兼容性问题
2026-05-04 16:14:42 +08:00
b88e868160
modified: src/process.py
2026-01-21 22:56:09 +08:00
0e9bf54d1f
modified: src/process.py
2026-01-21 22:50:07 +08:00
f15fac8b14
修复递归导致的栈溢出
2026-01-21 22:43:23 +08:00
85ca0e7589
new file: dependence.py
...
new file: package.py
new file: packup.bat
new file: packup.sh
new file: requirements.txt
new file: scripts/__init__.py
new file: scripts/file_store_api.py
new file: src/__init__.py
new file: src/config.toml
new file: src/modules/__init__.py
new file: src/modules/plugin_modules.py
new file: src/modules/user_module.py
new file: src/process.py
new file: test.py
2025-08-14 16:01:37 +08:00