Repository navigation
feat(plugin): 云端 Global Skill 与设备码授权 - #43
Open
TristanIsK wants to merge 1 commit into
Open
TristanIsK wants to merge 1 commit into
TristanIsK wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex / ChatGPT 云端不能沿用本机 loopback 登录或本地 token。本 PR 新增 Global 纯 Skill + CLI 插件 4.0.0:用户在另一台设备确认短码,云端通过独立的 start / poll 命令领取并私有保存凭据;不依赖后台常驻进程或入站回调。
实现:
/api/connect/device/authorize和/api/connect/device/token,使用原生 CLI 凭据格式。Global 站点、API 和云端凭据目录隔离,拒绝跨站配置和 API-key 环境覆盖。验证:本地 19 项回归通过,包括真实 HTTP 设备授权路由、拒绝/过期/取消、跨站/项目隔离、并发开始、原生 CLI 1.5.0 读取生成凭据,以及可复现 ZIP。Skill 校验、shell 语法、源文件字符和 diff 检查通过。Global 授权起始接口已实测正常;内置浏览器访问服务器返回的
/connect/device时显示“Service unavailable in your region”,所以当前网络下的人工确认、真实凭据领取和浏览器操作验收尚未完成。新插件 Linux 测试及原有 CI 均通过,共六项检查。未修改通用 Skill 或浏览器接口;未上传商店、合并或部署。
使用边界:Global 站点的地区准入仍然适用。发码接口成功不代表人工授权页可访问;遇到地区限制时停止等待,不自动切换到
.cn或混用另一站点的凭据。继续真实验收需要能访问 Global 授权页的网络。