refactor: 将 A_Memorix 重构为主线长期记忆子系统并重建管理界面
- 将 A_Memorix 从旧 submodule / 插件形态迁入主线源码,主体落到 src/A_memorix - 调整主程序接入方式,使 A_Memorix 作为源码内长期记忆子系统运行 - 回收父项目插件体系中针对 A_Memorix 的特判,减少对 plugin 通用层的侵入 - 将长期记忆配置、运行时、自检、导入、调优等能力收口到 memory 路由与主线服务层 - 重做长期记忆控制台与图谱页面,按 MaiBot 现有 dashboard 风格接入 - 补充实体关系图与证据视图双视图能力,支持查看节点、关系、段落及其证据链路 - 新增长期记忆配置编辑器与 memory-api,支持主线内配置管理 - 补齐删除管理能力:删除预览、混合删除、来源批量删除、删除操作恢复 - 优化删除预览与删除操作详情的前端展示,支持分页、检索,并以实体名/关系内容/段落摘要替代单纯 hash 展示 - 修复图谱与控制台相关前端问题,包括证据视图切换、查询触发时机、删除弹层空值保护等 - 新增或更新 A_Memorix 相关测试、WebUI 路由测试、前端 vitest 测试与辅助验证脚本 - 移除旧 plugins/A_memorix、.gitmodules 及相关历史维护文档
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
# A_Memorix 子模块维护说明(维护者内部文档)
|
||||
|
||||
> 本文档用于维护者,不面向普通用户。
|
||||
|
||||
## 1. 基本约束
|
||||
- 子模块路径固定:`plugins/A_memorix`
|
||||
- 子模块仓库固定:`https://github.com/A-Dawn/A_memorix.git`
|
||||
- 子模块分支固定:`MaiBot_branch`
|
||||
- 强约束:主仓内 `plugins/A_memorix` 指针必须等于远端 `origin/MaiBot_branch` 最新 HEAD
|
||||
|
||||
## 2. 首次拉取/恢复子模块
|
||||
```bash
|
||||
git submodule update --init --recursive
|
||||
```
|
||||
|
||||
若目录为空或缺少 `_manifest.json`,先执行上面的命令再排查其他问题。
|
||||
|
||||
## 3. 维护者更新流程
|
||||
1. 先在外部仓 `MaiBot_branch` 完成目标功能合入。
|
||||
2. 在主仓执行:
|
||||
```bash
|
||||
git submodule update --remote --recursive plugins/A_memorix
|
||||
git add plugins/A_memorix .gitmodules
|
||||
git commit -m "chore(submodule): bump A_memorix"
|
||||
```
|
||||
|
||||
## 4. CI 严格校验说明
|
||||
- PR Precheck 会校验:
|
||||
- `.gitmodules` 的 path/url/branch 必须匹配固定值
|
||||
- 子模块指针必须等于远端 `MaiBot_branch` 最新 HEAD
|
||||
- Docker 构建工作流在构建前也会执行同样的 fail-fast 对齐检查
|
||||
|
||||
## 5. 回滚策略
|
||||
- 回滚主仓提交会同时回滚子模块指针。
|
||||
- 但若回滚后的指针不再是远端 `MaiBot_branch` 最新 HEAD,CI 会阻断。
|
||||
- 处理方式:
|
||||
- 先在外部仓移动/回滚 `MaiBot_branch` 到目标提交,再重跑;
|
||||
- 或按团队流程申请一次性 CI 豁免。
|
||||
Reference in New Issue
Block a user