refactor: remove IO route mapping, add HTTP API tests, system prompt update

This commit is contained in:
root
2026-07-02 15:47:16 +08:00
parent 3d7d24ebb8
commit 304c3ae294
25 changed files with 3427 additions and 110 deletions

View File

@ -189,9 +189,7 @@ func (d *Device) handleEvent(evt *Event) {
payload["label"] = fmt.Sprintf("private:%d", evt.UserID)
}
d.iom.InjectText(source, text)
// 同时注册输出路由:QQ 消息默认回复到 QQ 通道
d.iom.RegisterOutputRoute(source, d.name)
d.iom.InjectTextTo(source, d.name, text)
case "notice":
log.Printf("[onebot] notice from %s: type=%s", d.name, evt.NoticeType)