feat(admin): 菜单快照对齐迁移,存量库自动补齐运行管理与XHProf菜单

对齐迁移是菜单快照进入数据库的唯一途径(新装与存量库同路径);缺失行按显式 id 补插,框架结构行仅对齐 pid+sort,软删/用户分组跳过;新增规则文件与索引;清理 status 模块孤儿占位文件。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
augushong
2026-09-09 14:37:56 +00:00
parent 95c9126410
commit e54c772868
7 changed files with 274 additions and 0 deletions

View File

@@ -4,6 +4,13 @@
## 项目信息
- 项目概述:ulthon_admin 框架本身(框架作者开发模式,非下游业务项目)
- 运行方式:使用框架内置 docker-dev 栈(`source/stack/docker-dev/`)。启动:`cd source/stack/docker-dev && docker compose up -d`
- 命令执行方式:`php think` 一律在容器内执行,不在宿主机直接执行。模式目录内:`docker compose exec ulthon_admin php think ...`;仓库根目录:`docker compose -f source/stack/docker-dev/docker-compose.yaml exec ulthon_admin php think ...`
- 端口:应用 8000、MySQL 13306(容器内 3306,root/root,库名 ulthon)、Redis 16379、phpMyAdmin 18888
- 访问地址:<http://localhost:8000/admin>(后台,默认账号 admin / 123456)
- 注意:宿主机 `docker compose exec` 默认以 root 执行,产生的 runtime 文件 www-data 不可写;遇到 runtime 权限问题时 `chmod -R a+rwX runtime`(模式目录内 exec 可加 `--user www-data` 规避)
<!-- 由开发者维护:写任何智能体必须先知道的项目特有信息,格式不限、按需增删,不限于建议项。
建议涵盖:
- 项目概述(做什么的、服务于谁)
@@ -53,6 +60,7 @@
| [ulthon-source-directory.md](./.agents/rules/ulthon-source-directory.md) | source/ 目录约定与安全要求 |
| [ulthon-file-override-mechanism.md](./.agents/rules/ulthon-file-override-mechanism.md) | app/ 覆盖 extend/base/ 的三类文件 |
| [ulthon-system-config.md](./.agents/rules/ulthon-system-config.md) | sysconfig 的存储/读取/扩展 |
| [ulthon-init-data-migration.md](./.agents/rules/ulthon-init-data-migration.md) | 初始化数据变更必须同提交配套数据型 migration |
## 标准开发流程(Scheme + CURD)