Skip to content

同步 Touch Control 至 Calcit 0.32.0 类型语法 - #44

Merged
tiye merged 1 commit into
mainfrom
migrate/touch-control-0320-643
Oct 29, 2026
Merged

tiye merged 1 commit into
mainfrom
migrate/touch-control-0320-643

Conversation

@tiye

@tiye tiye commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

使用者需同步 Calcit CLI / @calcit/procs 0.32.0 和正式 JS-FFI 0.2.8,并重新生成 JS。模块候选 0.0.35 的 ControlState/ControlDelta、坐标、按钮和生命周期合同不变;0.31.0 使用者继续使用 0.0.34。本 PR 不代表 tag/npm 已发布。

官方 formatter 更新类型标注,39 个定义 schema 保持一致,7 个实现视图仅等价类型表示变化。同步 deps、runtime lock 和 README;原工作流、部署路径、COS 内置校验和测试全部保留。

本地通过 Caps strict/toolchain、immutable 安装、全部定义检查、完整 strict、原 unit、零动态方法/弃用调用及构建。实际 Demo 验证四个按钮、Shift 和刷新;隔离公开 API 页面以 16ms 回调记录真实双方向盘非零输出,验证 start/replace/重复 clear/重启,清理后计数停止、控制台无错误。该临时页面不进入 PR,不把此采样夹具等同于原 Demo 的 300ms 输出时序验收。独立只读评审无代码问题;Linux CI 待确认。

未在真实移动设备上验收。PR 仅构建并保存原 artifact,不上传 COS、不部署服务器;main 合并会触发原 Demo 部署,因此合并与发版另行确认。未增加项目验证脚本或放宽类型门禁。

Summary by CodeRabbit

  • Updates
    • Updated the release candidate to version 0.0.35, aligned with Calcit 0.32.0 and JS-FFI 0.2.8.
  • Documentation
    • Updated the README to reflect the new version pairing and clarify that this candidate targets the formal Calcit 0.32.0 release.
    • Clarified that unchanged type contracts do not guarantee acceptance across platforms or consumers.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5230cae2-5615-48b6-8ba6-060ed2a530a8
Commits

Reviewing files that changed from the base of the PR and between 0715ac1 and 41f053b.

Files ignored due to path filters: 1
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Files selected for processing: 4
  • README.md
  • calcit.cirru
  • deps.cirru
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The project updates its Calcit and JS-FFI versions and its project version. Schema declarations change to quoted expressions; declared types and executable code remain unchanged.

Changes: Calcit compatibility update

Layer / File(s) Summary
Release pairing and compatibility notes
deps.cirru, package.json, README.md
The project version moves to 0.0.35, Calcit and @calcit/procs move to 0.32.0, and JS-FFI moves to 0.2.8. The README documents the pairing and 0.32.0 syntax target.
Quoted schema declarations
calcit.cirru
Schema and function-hint declarations use quoted expressions. Their declared types, arguments, return types, and feature requirements remain unchanged.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

Possibly related PRs

Merge Risk: Minimal · up to 41f05

No actionable merge-blocking issue was identified; normal build and CI checks remain appropriate.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 标题准确概括了主要变更:将 Touch Control 同步至 Calcit 0.32.0 的类型语法,并涵盖相关版本更新。
Docstring Coverage Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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. (4 skipped: 4 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tiye
tiye merged commit 2673a7b into main Oct 29, 2026
2 checks passed
@tiye
tiye deleted the migrate/touch-control-0320-643 branch October 29, 2026 01:23
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.

1 participant