Skip to content

Conversation

@xiaomoziyi
Copy link
Collaborator

@xiaomoziyi xiaomoziyi commented Dec 5, 2025

Related Issue

Main Changes

  • chore: update dependencies
  • feat: add model availability check in API status route and refine welcome credit validation
  • fix: handle optional chaining for payment settings and return correct payment link

Screenshots

Test Plan

Checklist

  • This change adds or updates npm dependencies without causing multiple versions of the same dependency (check pnpm-lock.yaml diff)
  • I have upgraded ArcBlock dependencies to the latest version for this change: pnpm update:deps
  • (Check before merging to main) Successfully ran pnpm dev, pnpm bundle, pnpm bump-version

Summary by AIGNE

发布说明 v0.6.22

新功能

  • 新增模型可用性检查功能,确保只有可用的AI模型才能被使用

错误修复

  • 修复了支付设置中可选链处理的运行时错误问题
  • 修复了积分支付链接返回值不正确的问题
  • 改进了欢迎积分验证逻辑,现在只有活跃状态的积分才被认为有效

维护更新

  • 更新了多个依赖包版本,提升系统稳定性和性能

这些改进增强了系统的可靠性和用户体验。

@xiaomoziyi xiaomoziyi changed the title Fix url fix: handle optional chaining for payment settings and return correct payment link Dec 5, 2025
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Image description AIGNE CodeSmith

Pull Request Title Suggestions

  1. feat: add model availability check and improve payment handling with dependency updates
  2. feat: enhance API status validation with model availability check and fix payment link handling
  3. feat: implement model status validation and refine credit grant verification with dependency updates

@xiaomoziyi xiaomoziyi requested a review from leermao December 5, 2025 09:46
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Image description AIGNE CodeSmith

Walkthrough

此次发布将应用程序从版本 0.6.21 升级到 0.6.22,主要包含代码健壮性改进和功能增强。关键修复包括支付设置的可选链处理、信用支付链接返回值修正,以及欢迎积分验证逻辑的严格化。新增了模型可用性检查功能,提升了 API 状态端点的验证能力。同时更新了多个依赖包版本,确保系统稳定性和兼容性。

Changes

文件 摘要
blocklets/core/CHANGELOG.md, blocklets/core/blocklet.yml 版本发布文档更新:应用程序版本从 0.6.21 升级到 0.6.22,添加新版本变更日志条目
blocklets/core/api/src/libs/payment.ts 修复支付相关函数:添加可选链操作符防止运行时错误,修正 getCreditPaymentLink 返回值
blocklets/core/api/src/routes/v2.ts /status 路由中新增模型可用性检查功能,增强 API 验证机制
blocklets/core/src/pages/customer/usage.tsx 严格化欢迎积分验证逻辑,要求积分状态必须为活跃状态
pnpm-lock.yaml 依赖项版本更新:多个 @aigne@blocklet 包版本升级

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description AIGNE CodeSmith

Commits Files that changed from the base of the PR and between 0c31f10 and 6c7b5e7 commits.
Files selected (6)
  • blocklets/core/CHANGELOG.md (1)
  • blocklets/core/api/src/libs/payment.ts (2)
  • blocklets/core/api/src/routes/v2.ts (2)
  • blocklets/core/blocklet.yml (1)
  • blocklets/core/src/pages/customer/usage.tsx (1)
  • pnpm-lock.yaml (60)
Files ignored due to filter (3)
  • blocklets/core/package.json
  • package.json
  • packages/ai-kit/package.json
Files skipped from review due to trivial changes (3)
  • blocklets/core/CHANGELOG.md
  • blocklets/core/blocklet.yml
  • pnpm-lock.yaml
Review comments generated (5)
  • Review: 0
  • LGTM: 5

提示

Image description AIGNE CodeSmith (@codesmith) 聊天

  • 回复此机器人留下的审查评论以提出后续问题。审查评论是对差异或文件的评论。
  • 通过在回复中标记 @codesmith 邀请机器人加入审查评论链。

代码建议

  • 机器人可能会提出代码建议,但在提交前请仔细审查它们,因为行号范围可能会不对齐。
  • 你可以编辑机器人做出的评论,并在建议稍有偏差时手动调整。

暂停增量审查

  • 在 PR 描述中的任何位置添加 @codesmith: ignore 以暂停机器人的进一步审查。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants