feat: 管理面板补齐(RAG导入/记忆添加/会话接history/诚实表述) + design/16 §4.6 IM多会话隔离+第三方身份+黑白名单
CI / Backend (build / vet / test / cross-compile) (push) Has been cancelled
CI / Frontend (tsc + vite build) (push) Has been cancelled

agent-98 面板批次:
- 会话管理面板改接 history.ListSessions(主web+次级) + 新建次级会话按钮
- 记忆面板手动添加入口 POST /admin/memories(owner)
- 知识库真正实现 IndexDocument(分块+落projectindex) + POST /admin/rag 导入端点
- 三面板空态诚实表述(去除'后端M10+提供')
- RAG嵌入降级到keyword/line(无直属embedder,不伪造语义,符合红线)

agent-99 design/16 §4.6:
- model.Message.SenderName + 迁移0006 sender_name 列
- 第三方身份边界: session.ResolveActor判定(非LLM猜) + [第三方·昵称]前缀(不改源content)
- 群聊/陌生人落独立sess-xxx(persistIsolated),不写主会话,不广播
- 黑/白名单(allowGroups/denyGroups/allowUsers/denyUsers)最前拦截,不进LLM
- 多账号 CHANNELS_JSON 配置 + 每平台多实例
- 管理只读 GET /admin/channels/{platform}/messages(该平台非主人消息流)

实机验证(JWT): 会话管理返回主会话web / 记忆添加成功 / RAG导入documents非空+Cyrene命中; 后端build/vet/test全绿 + 前端build绿
This commit is contained in:
Aska committed 2026-09-07 05:13:36 +08:00
1 parent 37e98ec584
commit 9c2a37c4ac
32 files changed
+1768 -136

No files matched your search

+5 -5
View File
@@ -40,15 +40,15 @@ const (
type Config struct {
// Mode selects the WS role: "server" accepts inbound OneBot connections,
// "client" dials the OneBot endpoint. Empty defaults to "server".
Mode string
Mode string `json:"mode"`
// ListenAddr is the TCP address to bind in server mode (host:port).
ListenAddr string
ListenAddr string `json:"listen_addr"`
// RemoteURL is the ws:// endpoint to dial in client mode.
RemoteURL string
RemoteURL string `json:"remote_url"`
// AccessToken is the optional OneBot access token for both modes.
AccessToken string
AccessToken string `json:"access_token"`
// SelfID is the bot's own QQ number when known.
SelfID string
SelfID string `json:"self_id"`
// MaxProactivePerWindow caps sends within ProactiveWindow. Zero uses the
// default.
MaxProactivePerWindow int