github jlcodes99/cockpit-tools v0.14.1
Cockpit Tools v0.14.1

latest releases: v0.14.4, v0.14.3, v0.14.2...
8 hours ago

更新日志(中文)

[0.14.1] - 2026-03-14

新增

  • CodeBuddy/CodeBuddy CN 资源包配额已支持在应用内直接展示:账号卡片与表格现可按资源包展示额度数值、进度条和刷新/到期时间(含加量包),不再依赖“仅网页查看”。
  • CodeBuddy CN Token 导入现在会立即补全配额元数据:Token 导入时会同步拉取 dosage/payment/user-resource 并落盘到配额与用量字段,创建账号后即可展示。

变更

  • 配额刷新链路改为使用 IDE Access Token,不再依赖 Cookie 绑定:后端刷新改为调用 /v2/billing/meter/get-user-resource(Bearer Token + 身份请求头),并将刷新失败写入账号状态供前端展示。
  • 前后端已移除手动配额绑定旧链路:CodeBuddy 与 CodeBuddy CN 均删除 cURL 重放绑定、清除绑定命令,以及对应的 service/type 入口。
  • 多语言文案已按新配额模型统一更新:移除过时的 Cookie 绑定流程文案,网络范围描述统一为“资源包配额刷新”,并为基础体验包/活动赠送包补齐所有支持语言键。
  • 配额接口压缩响应兼容性提升reqwest 现启用 brotli/deflate/zstd,提升计费接口压缩响应解析稳定性。

修复

  • 配额摘要与推荐逻辑不再依赖旧绑定状态:资源摘要在 quota_binding 缺失时不再直接返回 null,避免 token 刷新后推荐逻辑退化为仅按回退规则排序。

Changelog (English)

[0.14.1] - 2026-03-14

Added

  • CodeBuddy/CodeBuddy CN resource-package quota is now shown directly in app: account cards and tables now render per-package quota amount, progress, and refresh/expiry time (including extra credits) without requiring web-only viewing.
  • CodeBuddy CN Token import now hydrates quota metadata immediately: Token import now pulls dosage/payment/user-resource payloads and persists them into quota and usage fields during account creation.

Changed

  • Quota refresh now uses IDE access tokens instead of Cookie binding: backend refresh now calls /v2/billing/meter/get-user-resource with Bearer token and identity headers, and writes refresh errors into account state for UI visibility.
  • Legacy manual quota-binding flow is removed across backend and frontend: removed cURL replay binding, binding-clear commands, and related service/type paths for both CodeBuddy and CodeBuddy CN.
  • Localization copy is aligned with the new quota model across all locales: removed obsolete Cookie-binding flow text, updated network-scope wording to resource-package quota refresh, and added package-title keys for base/activity packages in all supported languages.
  • HTTP decoding compatibility for quota APIs is expanded: reqwest now enables brotli/deflate/zstd features to handle compressed billing responses more reliably.

Fixed

  • Quota summary and recommendation no longer depend on legacy binding state: resource summary no longer returns null when quota_binding is absent, preventing fallback-only recommendation behavior after token refresh.

Don't miss a new cockpit-tools release

NewReleases is sending notifications on new releases.