cn-coding-mirrors 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,22 @@
2
2
 
3
3
  格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本遵循 [SemVer](https://semver.org/lang/zh-CN/)。
4
4
 
5
- ## [0.1.0] - 2025-11-29
5
+ ## [Unreleased]
6
+
7
+ ## [0.1.2] - 2026-11-29
8
+
9
+ ### Added
10
+ - `scripts/release.sh`:一键发版脚本(预检、打包核对、发布、异步等待、干净安装验证、镜像同步等待、tag)。
11
+
12
+ ### Changed
13
+ - `package.json` 的 `description` 改为中文(npm 页面面向国内用户,原为英文)。
14
+
15
+ ### Notes
16
+ - 本版本号定为 **0.1.2**:`0.1.1` 已进入 npm 暂存区但未批准(无权限 approve),避免版本复用。
17
+ - 首次发布 `0.1.0` 时 npm 因「禁止 2FA bypass token 直接发布」策略,
18
+ 在 registry 里生成过 `0.0.0-stage` 占位版本;该记录无害,`latest` 已指向 `0.1.0`。
19
+
20
+ ## [0.1.0] - 2026-11-29
6
21
 
7
22
  首个版本。
8
23
 
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![star](https://gitee.com/zxh126/cn-coding-mirrors/badge/star.svg?theme=dark)](https://gitee.com/zxh126/cn-coding-mirrors/stargazers)
4
4
  [![fork](https://gitee.com/zxh126/cn-coding-mirrors/badge/fork.svg?theme=dark)](https://gitee.com/zxh126/cn-coding-mirrors/members)
5
+ [![npm](https://img.shields.io/npm/v/cn-coding-mirrors)](https://www.npmjs.com/package/cn-coding-mirrors)
5
6
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
6
7
  [![skills](https://img.shields.io/badge/skills-3-brightgreen.svg)](./skills)
7
8
  [![mirror checks](https://img.shields.io/badge/mirror%20checks-38-informational.svg)](./MIRRORS-STATUS.md)
@@ -41,7 +42,8 @@ cd cn-coding-mirrors
41
42
  ./scripts/install.sh ~/.claude/skills # Claude Code
42
43
 
43
44
  # 方式 B:Pi / Pi-Bolt 作为 package 安装(推荐,可随仓库更新)
44
- pi install git:gitee.com/zxh126/cn-coding-mirrors
45
+ pi install npm:cn-coding-mirrors # 走 npm(国内 npmmirror 自动同步)
46
+ pi install git:gitee.com/zxh126/cn-coding-mirrors # 或直接跟 Gitee 仓库
45
47
  ```
46
48
 
47
49
  装完重启 / `/reload`,技能即可被自动路由;也可强制调用:
@@ -262,7 +264,8 @@ cn-coding-mirrors/
262
264
  ├── package.json # Pi package 清单(pi.skills)
263
265
  ├── scripts/
264
266
  │ ├── install.sh # 跨智能体安装脚本
265
- │ └── check-mirrors.sh # 38 个镜像端点实时探测
267
+ │ ├── check-mirrors.sh # 38 个镜像端点实时探测
268
+ │ └── release.sh # 一键发版(预检→打包核对→发布→验证→tag)
266
269
  ├── MIRRORS-STATUS.md # 最近一次探测快照(脚本生成,勿手改)
267
270
  ├── CHANGELOG.md
268
271
  └── skills/
@@ -339,6 +342,19 @@ cn-coding-mirrors/
339
342
 
340
343
  镜像地址变更属于 **patch** 版本(见 [CHANGELOG](./CHANGELOG.md));脚本参数/行为变更才是 minor。
341
344
 
345
+ ### 发版(维护者)
346
+
347
+ ```bash
348
+ ./scripts/release.sh --dry-run # 预检 + 打包核对,不发布
349
+ ./scripts/release.sh --bump patch # 递增版本并发布
350
+ ./scripts/release.sh --otp 123456 # 账号要求 2FA 时
351
+ ./scripts/release.sh --tag # 发布成功后打 tag 并推送
352
+ ```
353
+
354
+ 脚本内建了三个坑的处理:强制发到 npmjs(本机 npm 默认可能指向只读的 npmmirror)、
355
+ 轮询等待 npm 异步生效(`0.0.0-stage` 占位版本的由来见 CHANGELOG)、
356
+ 发布后做一次干净缓存安装验证并等待国内镜像同步。
357
+
342
358
  ---
343
359
 
344
360
  ## 许可
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cn-coding-mirrors",
3
- "version": "0.1.0",
4
- "description": "China-network download & mirror toolkit for coding agents: GitHub release downloader, OCI image puller, and per-ecosystem mirror configuration (pip/npm/maven/go/cargo/apt/conda/HF/docker).",
3
+ "version": "0.1.2",
4
+ "description": "国内网络环境下的编程镜像与下载工具包:GitHub release 分片下载、OCI 镜像国内源分片拉取、各语言包管理器镜像速查(pip/npm/maven/go/cargo/apt/hf-mirror)",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "pi-package",
@@ -0,0 +1,281 @@
1
+ #!/usr/bin/env bash
2
+ # release.sh —— 一条命令走完发版:预检 → 打包核对 → 发布 npmjs → 异步等待 → 全链路验证 → 打 tag
3
+ #
4
+ # ./scripts/release.sh --dry-run # 只做预检与打包核对(不发布,安全)
5
+ # ./scripts/release.sh # 正式发布当前 package.json 的版本
6
+ # ./scripts/release.sh --otp 123456 # 需要 2FA 验证码时
7
+ # ./scripts/release.sh --stage # 走 staged publishing(需之后 approve)
8
+ # ./scripts/release.sh --tag # 发布成功后打 git tag 并推送
9
+ # ./scripts/release.sh --bump patch # 先 npm version 再发布(patch|minor|major)
10
+ #
11
+ # 背景(踩过的坑,脚本已内建处理):
12
+ # 1. 本机 npm registry 可能是 npmmirror —— 它是只读镜像,绝不能发布,脚本强制 npmjs。
13
+ # 2. npm 限制「绕过 2FA 的 token 直接发布」后,publish 会先产生 0.0.0-stage 占位版本,
14
+ # 真实版本**异步**出现(几十秒到几分钟),所以校验必须轮询,不能发完就 `npm view`。
15
+ # 3. npmmirror 同步更慢,脚本会轮询并明确区分「发布失败」与「国内镜像还没同步」。
16
+ # 4. 发布后必须做一次「干净缓存安装」验证,否则可能装到占位空包。
17
+ set -uo pipefail
18
+
19
+ REGISTRY="https://registry.npmjs.org"
20
+ MIRROR="https://registry.npmmirror.com"
21
+ REPO_DIR="$(cd "$(dirname "$0")/.." && pwd)"
22
+ DRY_RUN=0; DO_TAG=0; STAGE=0; OTP=""; BUMP=""; SET_VER=""
23
+ WAIT_REG="${WAIT_REG:-180}" # 等 npmjs 出现新版本(秒)
24
+ WAIT_MIRROR="${WAIT_MIRROR:-600}" # 等 npmmirror 同步(秒)
25
+
26
+ usage() { sed -n '2,20p' "$0" | sed 's/^# \{0,1\}//'; exit "${1:-0}"; }
27
+ die() { printf '\033[31m✗ %s\033[0m\n' "$*" >&2; exit 1; }
28
+ ok() { printf '\033[32m✓ %s\033[0m\n' "$*"; }
29
+ warn(){ printf '\033[33m! %s\033[0m\n' "$*"; }
30
+ step(){ printf '\n\033[36m== %s\033[0m\n' "$*"; }
31
+
32
+ while [ $# -gt 0 ]; do
33
+ case "$1" in
34
+ --dry-run) DRY_RUN=1; shift ;;
35
+ --tag) DO_TAG=1; shift ;;
36
+ --stage) STAGE=1; shift ;;
37
+ --otp) OTP="${2:?--otp 需要验证码}"; shift 2 ;;
38
+ --otp=*) OTP="${1#*=}"; shift ;;
39
+ --bump) BUMP="${2:?--bump 需要 patch|minor|major}"; shift 2 ;;
40
+ --version) SET_VER="${2:?--version 需要 x.y.z}"; shift 2 ;;
41
+ -h|--help) usage 0 ;;
42
+ *) die "未知参数: $1(-h 看帮助)" ;;
43
+ esac
44
+ done
45
+
46
+ cd "$REPO_DIR" || die "进不去仓库目录"
47
+
48
+ # ---------- 0. 前置 ----------
49
+ step "0/6 前置检查"
50
+ command -v npm >/dev/null || die "找不到 npm"
51
+ command -v curl >/dev/null || die "找不到 curl"
52
+ [ -f package.json ] || die "不在包根目录"
53
+
54
+ command -v jq >/dev/null 2>&1 && JQ=jq || JQ=""
55
+ pkg() { # pkg <field> —— 只支持顶层字段,避免 shell 引号与 eval 打架
56
+ if [ -n "$JQ" ]; then jq -r ".$1" package.json; else
57
+ python3 -c "import json,sys;d=json.load(open('package.json'));print(d.get(sys.argv[1],''))" "$1"
58
+ fi
59
+ }
60
+
61
+ changelog_stamp() { # 把 CHANGELOG 的 [Unreleased] 段定格为本次版本
62
+ local v="$1" d; d=$(date +%F)
63
+ grep -q '^## \[Unreleased\]' CHANGELOG.md || { warn "CHANGELOG 无 [Unreleased] 段,跳过定格"; return 0; }
64
+ python3 - "$v" "$d" <<'PYEOF'
65
+ import sys, pathlib
66
+ v, d = sys.argv[1], sys.argv[2]
67
+ p = pathlib.Path('CHANGELOG.md')
68
+ s = p.read_text()
69
+ s = s.replace('## [Unreleased]', '## [Unreleased]\n\n## [' + v + '] - ' + d, 1)
70
+ p.write_text(s)
71
+ PYEOF
72
+ ok "CHANGELOG: [Unreleased] 定格为 [$v] - $d"
73
+ }
74
+
75
+ if [ -n "$SET_VER" ]; then
76
+ [ "$DRY_RUN" = 1 ] && warn "dry-run: 跳过设置版本 $SET_VER" || {
77
+ python3 -c "
78
+ import json,sys,pathlib
79
+ p=pathlib.Path('package.json'); d=json.loads(p.read_text()); d['version']=sys.argv[1]
80
+ p.write_text(json.dumps(d,indent=2,ensure_ascii=False)+'\n')" "$SET_VER" || die "设置版本失败"
81
+ ok "版本设为 $SET_VER"
82
+ changelog_stamp "$SET_VER"
83
+ if [ -d .git ] && [ -n "$(git status --porcelain)" ]; then
84
+ git add -A && git commit -q -m "chore(release): v$SET_VER" && ok "已提交版本变更"
85
+ fi
86
+ }
87
+ elif [ -n "$BUMP" ]; then
88
+ case "$BUMP" in patch|minor|major) ;; *) die "--bump 只能是 patch|minor|major" ;; esac
89
+ [ "$DRY_RUN" = 1 ] && warn "dry-run: 跳过 npm version $BUMP" || {
90
+ npm version "$BUMP" --no-git-tag-version >/dev/null || die "版本号递增失败"
91
+ ok "版本递增为 $(pkg version)"
92
+ changelog_stamp "$(pkg version)"
93
+ if [ -d .git ] && [ -n "$(git status --porcelain)" ]; then
94
+ git add -A && git commit -q -m "chore(release): v$(pkg version)" \
95
+ && ok "已提交版本变更($(git log --oneline -1 | cut -d' ' -f1))"
96
+ fi
97
+ }
98
+ fi
99
+
100
+ NAME=$(pkg name); VERSION=$(pkg version)
101
+ [ -n "$NAME" ] && [ "$NAME" != "None" ] || die "package.json 缺少 name"
102
+ [ -n "$VERSION" ] && [ "$VERSION" != "None" ] || die "package.json 缺少 version"
103
+ ok "目标: $NAME@$VERSION"
104
+
105
+ for f in README.md CHANGELOG.md LICENSE SECURITY.md; do
106
+ [ -f "$f" ] || die "缺少必需文档: $f"
107
+ done
108
+ ok "必需文档齐全"
109
+
110
+ grep -q "pi-package" package.json || die "keywords 缺少 pi-package(Pi 画廊不会收录)"
111
+ ok "pi-package 关键字存在"
112
+
113
+ if grep -qE "npm_[A-Za-z0-9]{20,}|ghp_[A-Za-z0-9]{20,}|sk-[A-Za-z0-9]{20,}" -r \
114
+ --include='*.md' --include='*.sh' --include='*.ts' --include='*.py' --include='*.json' . 2>/dev/null; then
115
+ die "工作区疑似含凭据(npm_/ghp_/sk- 开头),请先移除"
116
+ fi
117
+ ok "未发现明文凭据"
118
+
119
+ if [ -d .git ]; then
120
+ [ -z "$(git status --porcelain)" ] || die "工作区有未提交改动,先 commit(或用 git stash)"
121
+ ok "工作区干净"
122
+ fi
123
+
124
+ WHOAMI=$(npm whoami --registry "$REGISTRY" 2>/dev/null) || die "未登录 npmjs($REGISTRY)"
125
+ ok "npm 登录身份: $WHOAMI"
126
+
127
+ # ---------- 1. 版本是否已被占用 ----------
128
+ step "1/6 版本占用检查"
129
+ COLLIDE=$(curl -sS -m 20 "$REGISTRY/$NAME" 2>/dev/null |
130
+ python3 -c "
131
+ import sys,json
132
+ try: d=json.load(sys.stdin)
133
+ except Exception: print(''); raise SystemExit
134
+ print('yes' if '$VERSION' in (d.get('versions') or {}) else '')" 2>/dev/null || echo "")
135
+ STAGED_HIT=$(curl -sS -m 20 -H "Authorization: Bearer $(grep -o 'npm_[A-Za-z0-9]*' "$HOME/.npmrc" 2>/dev/null | head -1)" \
136
+ "https://registry.npmjs.org/-/stage" 2>/dev/null |
137
+ python3 -c "
138
+ import sys,json
139
+ try: d=json.load(sys.stdin)
140
+ except Exception: raise SystemExit
141
+ print('yes' if any(i.get('packageName')=='$NAME' and i.get('version')=='$VERSION' for i in d.get('items') or []) else '')" 2>/dev/null)
142
+ if [ "$STAGED_HIT" = "yes" ]; then
143
+ die "$NAME@$VERSION 已在 npm 暂存区(未批准),不能复用:请换版本号(如 --version 更高版本)"
144
+ fi
145
+
146
+ if [ "$COLLIDE" = "yes" ]; then
147
+ warn "$NAME@$VERSION 已存在于 registry"
148
+ if [ "$STAGE" = 1 ]; then
149
+ die "已发布版本不能再 stage:请先 --bump patch"
150
+ fi
151
+ die "已发布版本不能再发布:请先 --bump patch"
152
+ fi
153
+ [ "$COLLIDE" = "yes" ] || ok "$NAME@$VERSION 未被占用"
154
+
155
+ # CHANGELOG 是否记录本版本
156
+ if grep -qE "^## \[?v?$VERSION\]?" CHANGELOG.md; then ok "CHANGELOG 含 [$VERSION] 条目"; else
157
+ warn "CHANGELOG 没有 [$VERSION] 条目(继续,但建议补上)"
158
+ fi
159
+
160
+ # ---------- 2. 打包内容核对 ----------
161
+ step "2/6 打包内容核对"
162
+ PACK_JSON=$(npm pack --dry-run --json --registry "$REGISTRY" 2>/dev/null) || die "npm pack --dry-run 失败"
163
+ echo "$PACK_JSON" | python3 -c "
164
+ import sys,json
165
+ d=json.load(sys.stdin)[0]
166
+ files=[f['path'] for f in d['files']]
167
+ n=len(files)
168
+ skills=[f for f in files if f.endswith('SKILL.md')]
169
+ scripts=[f for f in files if '/scripts/' in f or f.startswith('scripts/')]
170
+ docs=[f for f in ['README.md','CHANGELOG.md','LICENSE','SECURITY.md','MIRRORS-STATUS.md'] if f in files]
171
+ missing=[f for f in ['README.md','CHANGELOG.md','LICENSE','SECURITY.md','MIRRORS-STATUS.md'] if f not in files]
172
+ print(f' 文件数 {n} / 打包 {d[\"size\"]/1024:.1f} kB / 解包 {d[\"unpackedSize\"]/1024:.1f} kB')
173
+ print(f' SKILL.md {len(skills)} 个: ' + ', '.join(s.split('/')[-2] for s in skills))
174
+ print(f' 脚本 {len(scripts)} 个')
175
+ if missing: print(' ❌ 打包缺文件: ' + ', '.join(missing)); sys.exit(1)
176
+ if len(skills) < 1: print(' ❌ 没有 SKILL.md,Pi 不会发现任何技能'); sys.exit(1)
177
+ if not scripts: print(' ❌ 没有 scripts/,ghdl/dpull 会缺失'); sys.exit(1)
178
+ print(' ✓ 内容核对通过')
179
+ " || die "打包内容不合格(见上)"
180
+
181
+ if [ "$DRY_RUN" = 1 ]; then
182
+ step "dry-run 结束"
183
+ echo "将执行:"
184
+ echo " npm $([ "$STAGE" = 1 ] && echo 'stage publish' || echo publish) --registry $REGISTRY${OTP:+ --otp ***}"
185
+ [ -n "$BUMP" ] && echo " (真实运行时:npm version $BUMP,并把 CHANGELOG 的 [Unreleased] 定格为 $(pkg version))"
186
+ echo " 等待 npmjs 出现 $VERSION(最多 ${WAIT_REG}s)→ 干净缓存安装验证 → 等待 npmmirror 同步(最多 ${WAIT_MIRROR}s)"
187
+ [ "$DO_TAG" = 1 ] && echo " git tag v$VERSION && git push origin v$VERSION"
188
+ exit 0
189
+ fi
190
+
191
+ # ---------- 3. 发布 ----------
192
+ step "3/6 发布到 npmjs"
193
+ PUBLISH_ARGS=(--registry "$REGISTRY")
194
+ [ -n "$OTP" ] && PUBLISH_ARGS+=(--otp "$OTP")
195
+ if [ "$STAGE" = 1 ]; then
196
+ OUT=$(npm stage publish "${PUBLISH_ARGS[@]}" 2>&1) || { printf '%s\n' "$OUT" | tail -15; die "staged publish 失败"; }
197
+ printf '%s\n' "$OUT" | tail -3
198
+ SID=$(printf '%s\n' "$OUT" | grep -oE '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}' | head -1)
199
+ ok "已暂存:${SID:-见上}"
200
+ cat <<EOF
201
+
202
+ 下一步(需要 2FA 证明,脚本无法代做):
203
+ npm stage approve ${SID:-<stage-id>} --otp <6位验证码>
204
+ 或到 https://www.npmjs.com/package/$NAME 的 staged 列表点批准
205
+ 批准后重跑本脚本的验证段:./scripts/release.sh --verify-only(或手工跑第 4、5 步)
206
+ EOF
207
+ exit 0
208
+ fi
209
+
210
+ OUT=$(npm publish "${PUBLISH_ARGS[@]}" 2>&1) || { printf '%s\n' "$OUT" | tail -15; die "publish 失败"; }
211
+ printf '%s\n' "$OUT" | grep -E "^\+|notice Publishing" | tail -3
212
+ ok "publish 请求已被接受(注意:registry 侧是异步生效)"
213
+
214
+ # ---------- 4. 等待生效 ----------
215
+ step "4/6 等待 registry 生效(异步,最多 ${WAIT_REG}s)"
216
+ deadline=$(( $(date +%s) + WAIT_REG ))
217
+ while :; do
218
+ LIVE=$(curl -sS -m 15 "$REGISTRY/$NAME/$VERSION" 2>/dev/null | head -c 80)
219
+ if printf '%s' "$LIVE" | grep -q "\"version\""; then break; fi
220
+ [ "$(date +%s)" -ge "$deadline" ] && die "超时:$NAME@$VERSION 未出现在 registry(可能被审核/占位版本阻塞)"
221
+ sleep 5
222
+ done
223
+ ok "registry 已可解析 $NAME@$VERSION"
224
+
225
+ LATEST=$(curl -sS -m 15 "$REGISTRY/$NAME" | python3 -c "import sys,json;print(json.load(sys.stdin).get('dist-tags',{}).get('latest',''))")
226
+ [ "$LATEST" = "$VERSION" ] && ok "dist-tags latest → $VERSION" || warn "latest 仍指向 $LATEST(发的是非 latest 版本?)"
227
+
228
+ # ---------- 5. 干净缓存安装验证 ----------
229
+ step "5/6 干净缓存安装验证"
230
+ TMPD=$(mktemp -d); CACHE=$(mktemp -d)
231
+ trap 'rm -rf "$TMPD" "$CACHE"' EXIT
232
+ npm install --prefix "$TMPD" --cache "$CACHE" "$NAME@$VERSION" --registry "$REGISTRY" -s >/dev/null 2>&1 ||
233
+ die "从 registry 安装 $NAME@$VERSION 失败"
234
+ python3 - "$TMPD" "$VERSION" <<'PY' || exit 1
235
+ import json,os,sys
236
+ root=os.path.join(sys.argv[1],'node_modules')
237
+ if not os.path.isdir(root): print(' ❌ 安装目录不存在'); sys.exit(1)
238
+ pkg=os.path.join(root,os.listdir(root)[0])
239
+ v=json.load(open(os.path.join(pkg,'package.json')))['version']
240
+ sk=[os.path.join(r,f) for r,_,fs in os.walk(os.path.join(pkg,'skills')) for f in fs if f=='SKILL.md']
241
+ print(f' 安装版本 {v},SKILL.md {len(sk)} 个')
242
+ if v!=sys.argv[2]: print(f' ❌ 版本不符,期望 {sys.argv[2]}'); sys.exit(1)
243
+ if len(sk)<1: print(' ❌ 技能缺失(可能装到占位版本)'); sys.exit(1)
244
+ print(' ✓ 安装验证通过')
245
+ PY
246
+
247
+ # ---------- 6. npmmirror 同步(不阻塞成功) ----------
248
+ step "6/6 等待 npmmirror 同步(最多 ${WAIT_MIRROR}s,超时不视为失败)"
249
+ deadline=$(( $(date +%s) + WAIT_MIRROR ))
250
+ while :; do
251
+ MT=$(curl -sS -m 10 "$MIRROR/$NAME" 2>/dev/null |
252
+ python3 -c "import sys,json;d=json.load(sys.stdin);print(d.get('dist-tags',{}).get('latest',''), 'yes' if sys.argv[1] in d.get('versions',{}) else '')" "$VERSION" 2>/dev/null)
253
+ case "$MT" in
254
+ "$VERSION yes") ok "npmmirror 已同步(国内用户可直接安装)"; break ;;
255
+ esac
256
+ if [ "$(date +%s)" -ge "$deadline" ]; then
257
+ warn "npmmirror 尚未同步到 $VERSION(当前: ${MT:-未知})—— 通常几分钟后自愈,无需操作"
258
+ break
259
+ fi
260
+ sleep 20
261
+ done
262
+
263
+ # ---------- tag ----------
264
+ if [ "$DO_TAG" = 1 ] && [ -d .git ]; then
265
+ step "打 tag v$VERSION"
266
+ git tag -a "v$VERSION" -m "release: v$VERSION" 2>/dev/null || warn "tag v$VERSION 已存在"
267
+ git push origin HEAD 2>&1 | tail -1
268
+ git push origin "v$VERSION" 2>&1 | tail -1
269
+ ok "tag v$VERSION 与分支已推送"
270
+ fi
271
+
272
+ cat <<EOF
273
+
274
+ \033[32m发布完成\033[0m
275
+ npm : https://www.npmjs.com/package/$NAME/v/$VERSION
276
+ 国内镜像 : https://npmmirror.com/package/$NAME
277
+ 安装验证 : pi install npm:$NAME
278
+
279
+ 提示:若曾出现 0.0.0-stage 占位版本,它不影响 latest,可忽略;
280
+ staged 版本(未批准)会在约 7 天后自动过期。
281
+ EOF