Files
admin e6207aa691
build / build-and-scan (push) Waiting to run
chore(仓库对齐): 文档库结构治理 + IM/插件线落地
文档库:目录改为编号制(01-规范/02-架构设计/03-数据库/04-调整方案/
05-交接单/06-ops/07-scripts/08-skills/09-archive),顶层散文件归入 01-规范/;
INDEX.md 与 docs-manifest.json 重刷(档案 146 篇);旧目录名引用全量对齐。

IM 线:src/im/**(SDK / hub / store / presence / ws / gateway-token)、
src/web/routes/im.ts、src/db/plugin-data/**、src/supervisor/plugin-assembly.ts
及对应 test/**。

插件线:poc/{im-agent-bridge,im-connection-gateway,im-conversation-tabs,
business-plugins-im,carbon-mcp-probe}、src/web/routes/{sessions,overlay-device}.ts、
src/net/relay/{device-grant,instance-credential}.ts。

仓库卫生:清出 40 个历史误入库 / 已改名文件(34 个交接单归档 + 6 个旧结构,
本地均有副本);dsh-server-docs/.gitignore 补 tmp/;交接单不入库(政策)。
2026-09-24 07:25:16 +08:00

50 lines
2.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 多远端推送(GitHub 主仓 + CNB 镜像)
> **归属**:技能 `dsh-opensource-release` 的详情档(**按需读**,不是每次都要读)。
> **本档覆盖**:多远端推送(原行 L545–L583)。
> **主文件 / 判据与流程主干** = `../SKILL.md`(§0.5 事故清单 · §0 事实 · §1 硬规则 R-O1–R-O17 · §1.5 用户当场纠正的硬口径 · §5 授权结构 · §6 发布 SOP 主干 · §7 验证八件套 · §相关)。
> **来源**:2026-09-22「技能重组线」把 `../SKILL.md` 的 L545–L583 段**逐行原样**下沉到本文件,未改一字。
> **跨档引用**:正文里的「§N / 见 §8 坑 N / 见下表」等编号,用 `../SKILL.md` 末节「详情索引」的原章节列定位。
> **维护**:本文件与 `../SKILL.md` 的指针行成对;改内容时同时核对主文件的指针描述是否仍准确。
---
### 6b. 多远端推送(2026-09-18 定型:GitHub 主仓 + CNB 镜像)
| 远端 | 地址 | 备注 |
|---|---|---|
| `origin` | `[email protected]:maogeigei/dsh-users-platform.git` | **主仓**(SSH,密钥顺序见 §8 坑) |
| `cnb` | `https://cnb.cool/maogeigei/dsh-users-platform.git` | **镜像**(HTTPS + 凭据管理器,凭据已保存 ⇒ 无需配 SSH) |
```sh
cd "/e/ProgramData/AI技能/dsh-ai1net-github/dsh-users-platform"
# 加镜像远端(一次即可)
git remote add cnb https://cnb.cool/maogeigei/dsh-users-platform.git
# ⛔ 只推 main —— 本地备份分支(backup-before-orphan-*)含改名泄漏期旧内容,绝不外推
GIT_TERMINAL_PROMPT=0 git push origin main # 主仓
# ⚠️ CNB 首次/大推送**必须后台跑**:实测前台 180s 被 SIGTERM 杀掉
# (仓库仅 1.67 MB、207 objects ⇒ 与体积无关,是连接/服务端处理慢),
# 后台运行 20s 完成。⇒ 用 run_in_background,别用前台短超时。
GIT_TERMINAL_PROMPT=0 git push cnb main # 镜像
# 核对「三方同 hash」——这是多远端同步的唯一验收判据
git ls-remote origin refs/heads/main | cut -c1-12
git ls-remote cnb refs/heads/main | cut -c1-12
git rev-parse --short=12 HEAD
```
⚠️ **README 里的 clone 地址保持指向主仓(GitHub)**,不改指镜像:这是「多远端同步」的正常形态,CNB 页面自带克隆按钮。若要改指 CNB,属改变对外口径,先问用户。
**版本号约定**:遵循语义化版本。写 README 版本表时**同时写「类型」列**(首个公开发布 / 特性 / 修复 / 内部迭代)。
**登记格式**(README「版本与迭代」表):
```
| **v1.1.0** | 2026-10-xx | 特性 | 一句话摘要(对外能看懂,不写内部档案号)。 |
```
---