curl -X POST http://127.0.0.1:20990/api/namespaces/transfer/prepare
预期响应:{"checked": 4, "passed": 4}(清单 4/4 齐备)。
按《命名空间移交指南》第 2 节,新命名空间 json-lite-core 首写要求 maintainer 级
scope。用 ci-bot 令牌直接首写将被仓库拒绝:
curl -X POST http://127.0.0.1:20990/api/packages/json-lite-core/publish \
-H "Content-Type: application/json" \
-d '{"version":"1.9.2","channel":"staging"}'
实际响应(HTTP 403):
{"error": "insufficient_scope", "reason": "insufficient scope: maintainer",
"required_scope": "maintainer", "token": "ci-bot"}
repo:read / publish:json-lite / ci:dispatch,
见 DevPortal"CI 令牌"页)。