chore(memory): 记录 server-core 迁移 OPC-Hub 试点完成(b90539a)

- MASTER §10 改为规范名映射 + 状态;新增 §11 迁移执行记录
- ports/server-core.md、CURRENT.md 更新
This commit is contained in:
Pine
2026-08-24 14:24:45 +08:00
parent eda369a492
commit 9a0bcb83cc
3 changed files with 29 additions and 16 deletions
+19 -13
View File
@@ -58,18 +58,24 @@
## 10. 项目仓库映射表(迁移 → OPC-Hub 组织)
> 组织 `OPC-Hub` 已在 Gitea 建立;仓库仍位于 `Pine` 下,**迁移待完成**(需 Gitea 管理员 API token 执行转让/创建;本机无该 token,token 在部署服务器 `/app/working.secret/gitea_token`)。
> 约定:仓库名保留,组织路径改为 `OPC-Hub/<同名>.git`;主远端 `origin`,副远端 `infoepoch_lan`。
> 组织 `OPC-Hub` 已建;迁移**按规范名仓库**(server-core/agent-desktop/…,即新名 repo,含四层重构)→ `OPC-Hub/<同名>.git`。
> 原则:① 先把各项目最新代码(含我在旧仓库的改动)**合并/port 进规范名仓库**再转让;② **保留 Pine 旧仓库作备份**;③ 迁后全线用 OPC-Hub,不再碰 Pine。
> 主远端 `origin`=infoepoch,副远端 `infoepoch_lan`。`Pine/*` 旧名仓库(PineAgents/PineAgentsServer/PineAgentsWeb/DPM/opc)作备份保留,不迁移。
| 项目 | 仓库名 | 现状远端(Pine) | OPC-Hub 目标 | 主机 |
|------|--------|------------------|--------------|------|
| agent-desktop | PineAgents | `git@infoepoch:Pine/PineAgents.git` `git@infoepoch_lan:Pine/PineAgents.git` | `OPC-Hub/PineAgents.git` | infoepoch(生产) + infoepoch_lan(LAN) |
| server-core | PineAgentsServer | `git@infoepoch:Pine/PineAgentsServer.git` | `OPC-Hub/PineAgentsServer.git` | 同上 |
| web-official | PineAgentsWeb | `git@infoepoch_lan:Pine/PineAgentsWeb.git` | `OPC-Hub/PineAgentsWeb.git` | 同上 |
| park-desktop | dpm_rust | `http://code.infoepoch.cn/Pine/dpm_rust.git` | `OPC-Hub/dpm_rust.git` | 同上 |
| compute-engine | compute-engine | `git@infoepoch:Pine/compute-engine.git` | `OPC-Hub/compute-engine.git` | 同上 |
| training | training | `git@infoepoch:Pine/training.git` | `OPC-Hub/training.git` | 同上 |
| admin-portal | admin-portal | `git@infoepoch:Pine/admin-portal.git` | `OPC-Hub/admin-portal.git` | 同上 |
| 项目(规范名) | 被迁仓库 | 来源(Pine) | 目标(OPC-Hub) | 状态 |
|------|------|------|------|------|
| server-core | server-core | `Pine/server-core` | `OPC-Hub/server-core` | ✅ 已迁 `b90539a`(旧 `Pine/*` 备份保留) |
| agent-desktop | agent-desktop | `Pine/agent-desktop` | `OPC-Hub/agent-desktop` | ⏳ 需先合并 TaskSquare |
| web-official | web-official | `Pine/web-official` | `OPC-Hub/web-official` | ⏳ |
| park-desktop | park-desktop | `Pine/park-desktop` | `OPC-Hub/park-desktop` | ⏳(本地 origin dpm_rust 缺失) |
| compute-engine | compute-engine | `Pine/compute-engine` | `OPC-Hub/compute-engine` | ⏳(本地即新名) |
| training | training | `Pine/training` | `OPC-Hub/training` | ⏳(本地即新名) |
| admin-portal | admin-portal | `Pine/admin-portal`(待建) | `OPC-Hub/admin-portal` | ⏳(需新建+推送) |
> 其它(reference/ 下 PinePixel、cloud-opc 参考源;bark-notify 临时)**不在**迁移范围。
> 迁移完成后:各克隆本地远端改为 `OPC-Hub/<同名>.git`(origin + infoepoch_lan),并回写本表状态与 `ports/*.md`。
> 其它(reference/ 下 PinePixel、cloud-opc;bark-notify 临时)**不在**迁移范围。
> 迁移完成一个即回写本表状态与 `ports/*.md`、`CURRENT.md`;本地克隆远端改指 `OPC-Hub/<同名>.git`(origin + infoepoch_lan)。
> Gitea 管理 token 存于仓库外自动记忆(勿入库):[[gitea-opchub-token]]。
## 11. 仓库迁移执行记录
- **server-core**(试点):port 阶段0-1 至四层仓库 → 推 `Pine/server-core`(`b90539a`) → `POST /repos/Pine/server-core/transfer`(new_owner=OPC-Hub) 成功 → 本地 `code/server-core` 已改为 `OPC-Hub/server-core` 全新克隆。备份:`Pine/server-core`(及旧 `Pine/PineAgentsServer`)保留。