feat: complete HomeAgent architecture v2

- IO abstraction layer with OutputChannel routing and capability validation
- Three-layer memory (Context-Document-Graph) with TF-IDF relevance pruning
- OneBot V11 QQ protocol plugin with Reverse WebSocket client
- Plugin system with hot-reload (SKILL.md + native factories)
- Knowledge system with TF-IDF vector indexing
- Personality system (personal.md)
- Text memory (JSONL with rotation)
- Change tracker (overlayfs) with rollback
- Lua adapter VM
- Design document (DESIGN.md)

Module: gitcode.com/JianFeeeee/HomeAgent
This commit is contained in:
root
2026-07-02 12:04:36 +08:00
parent 1a7a846d58
commit bc26850b50
43 changed files with 10296 additions and 0 deletions

31
plugins/qq/SKILL.md Normal file
View File

@ -0,0 +1,31 @@
# QQ 通知插件
version: 1.0.0
author: HomeAgent
io_type: io
io_input_route: qq
io_output_route: qq
io_output_caps: text,file,image
QQ 通道插件,通过 OneBot 标准协议与 QQ 前端(go-cqhttp / Lagrange)协同工作。
OneBot 前端处理 QQ 协议登录与消息收发,本插件将 OneBot 事件转换为 IO 输入,
将 AI 输出转换为 OneBot 动作调用。
## qq_send_private_msg
发送 QQ 私聊消息
- user_id: 目标 QQ 号
- message: 消息内容(支持 CQ 码,如 [CQ:image,file=xxx.jpg])
- auto_escape: 是否作为纯文本发送
## qq_send_group_msg
发送 QQ 群消息
- group_id: 目标群号
- message: 消息内容(支持 CQ 码)
- auto_escape: 是否作为纯文本发送
## qq_get_group_member_info
获取 QQ 群成员信息
- group_id: 群号
- user_id: QQ 号
## qq_get_group_list
获取 QQ 群列表

13
plugins/qq/skill.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "qq",
"description": "QQ 通道插件,通过 OneBot 标准协议与 QQ 前端协同工作",
"version": "1.0.0",
"author": "HomeAgent",
"entry": "ws://127.0.0.1:6700",
"io": {
"type": "io",
"input_route": "qq",
"output_route": "qq",
"output_caps": ["text", "file", "image"]
}
}