You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
正式 Calcit 0.41.0 的 247 个定义、完整 strict、原质量门禁、7 项附带测试、离线流式和派发回归及 Vite 构建通过。
Summary by CodeRabbit
Refactor
Updated type declarations for state-related inputs, stored state, and fallback values in code-generation interfaces. This aligns how these values are represented across the interfaces while preserving their existing behavior. There are no user-visible feature changes in this update.
No actionable comments were generated in the recent review.
Walkthrough
The PR updates the declared types for use-gen-code and read-open-field-or. It also changes the declared type of StoreData.states from Map to respo.schema/States.
Changes
Type declaration updates
Layer / File(s)
Summary
Function and state type declarations calcit.cirru
use-gen-code declares StatesInput for its states parameter. read-open-field-or declares separate Raw and Fallback types. StoreData.states uses respo.schema/States.
calcit-lang/gen-code#22 — The PR adds Raw and Fallback generics to read-open-field-or, matching the issue’s request to preserve input and fallback types.
This change tightens plugin and state type declarations while keeping runtime behavior and fallbacks the same. No actionable merge-blocking risk remains.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly and concisely describes the main changes: tightening Gen Code plugin state types and field-reading types.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 9e84afa5-d623-40c0-baab-4d80eb0cbe76
Commits
Reviewing files that changed from the base of the PR and between 3ecc97b and 512b9d5.
Files selected for processing: 1
calcit.cirru
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
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
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.
对使用者的影响
现有插件调用和保存的状态继续可用。字段缺失或为 nil 时仍采用原回退值,插件事件继续使用现有匿名枚举格式。
改动与风险
插件入口保留调用方的状态类型,字段读取分别保留原输入和回退值的类型。存档结构中的状态树明确声明为 Respo
States。三处签名收紧,开放字段结果和旧事件适配保留,原类型门禁保持。验证
正式 Calcit 0.41.0 的 247 个定义、完整 strict、原质量门禁、7 项附带测试、离线流式和派发回归及 Vite 构建通过。
Summary by CodeRabbit