Repository navigation
feat(cli): 接入 Token 账本与安全同步设置 - #448
Closed
Eternal-dream-MAX wants to merge 1 commit into
Closed
Eternal-dream-MAX wants to merge 1 commit into
Eternal-dream-MAX wants to merge 1 commit into
Conversation
Eternal-dream-MAX
marked this pull request as ready for review
October 12, 2026 11:57
Owner
|
已完成审查,并按本项目的收编流程移植合入开发主仓 main,提交 本次接入了用量查看、密码输入、显式开启自动同步,以及累计快照和跨进程持久化。审查后补齐了 config show 对多 Key 提供商池内密钥的脱敏,并强化了“仅保存密钥、未开启自动同步时退出不得上传”的回归用例。 验证:账本专项 75 项、配置与命令相关 859 项、VS Code 227 项测试通过(另有 4 项跳过);两端类型检查、CLI bundle 和 VS Code 构建通过;5 类隔离缺陷还原均触发行为断言。结构与行数门禁仍有既有失败,本次未增加违规。 当前完成的是开发主仓收编,尚未同步公开仓,因此此 PR 暂保持打开;公开仓同步和收编关闭流程完成后再更新状态。 |
Owner
|
已通过 sync 流程合入 dev,感谢 @Eternal-dream-MAX 的贡献 🎉 本 PR 的改动(feat(cli): 接入 Token 账本与安全同步设置)已经 sync 流程合入主仓(本次 sync),并已收录进 CONTRIBUTORS.md。 按仓库的双仓流程,公开仓 PR 不经 merge 按钮合入(保持 dev 主仓唯一事实源),现以 sync-merged 标记关闭。欢迎继续贡献! |
huiliyi37
added a commit
that referenced
this pull request
Oct 12, 2026
内容已经 sync 流程合入(本次 sync),本提交为作者署名落账: GitHub 贡献者图谱按 Co-authored-by trailer 计入。 Co-authored-by: Eternal-dream-MAX <130294909+Eternal-dream-MAX@users.noreply.github.com>
huiliyi37
pushed a commit
that referenced
this pull request
Oct 12, 2026
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.
默认的 Token 账本此前缺少 CLI / VS Code 用户入口,并且增量折叠、设备身份、跨进程发布和上传确认存在导致漏计、重复设备或错误确认的边界。本改动接通公开客户端,使用户能查看本地累计、在受遮挡的宿主输入框配置同步密钥,并主动同步或开启每 30 分钟自动上传。
/token-ledger(别名/usage)与原生遮挡连接框;VS Code 设置抽屉新增账本卡和宿主密码框。总 Token 为输入+输出,缓存已含于输入,计价值不固定币种,也不是统一账单。验证:macOS / Windows CLI 专项各 153/153;VS Code 在 macOS 为 227 通过、4 项 Windows 专属跳过,Windows 231/231。两平台类型检查与完整构建通过;macOS 最终源码增量重打包后运行依赖检查通过。实际 VSIX 的网页界面在宽、窄窗口通过交互检查,尚未在真实 VS Code 宿主窗口做人工验收。一次真实 DeepSeek 对话产生 24,596 Token,新构建 CLI 持久化后上传到隔离验收身份,正式服务回执一致,重复同步与同账号密钥轮换均未增加总量或设备;验收密钥已撤销。此项没有写入正式论坛成员用量,也不代表 20 名实际成员已完成验收。
安装包:Apple 芯片 macOS / Windows x64 均携带 Node 24.18.0 和平台原生依赖;两平台独立解压包各 15 项检查通过,涵盖启动、SQLite、鉴权、默认不上传、写密钥、统计口径、同步与清除。包内包含对应内核、VSIX、源码标识和使用说明,不含账户配置。
边界:仅覆盖本公开仓 CLI、sidecar、VS Code,公开仓不包含闭源 desktop。当前基线有四个已存在的文件行数预算超限;本改动没有增加超限文件、没有放宽门禁。未修改发布版本、签名目录或生产徽章数据。本 PR 保持草稿,等待审阅和发布流程,不合并。