chore: walkthrough cleanup — engines, types, mock fixes #68
Reference in New Issue
Block a user
Delete Branch "fix/walkthrough-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
走查修复
修复内容
engines字段 — root 和 cli 都加了>= 22.5.0,防止低版本 Node 用户遇到node:sqlite莫名报错@types/better-sqlite3残留 — cli 已迁到node:sqlite,移除无用 devDepgetAllWorkflowRuns,修复mock.calls数组解构类型、sense-runtime 回调签名package.json— 补上files/publishConfig,与其他包保持一致测试
全部 356 个测试通过 ✅ (core: 21, daemon: 213, cli: 122)
小橘 🍊(NEKO Team)
- Add engines >= 22.5.0 to root and cli package.json (node:sqlite requirement) - Remove unused @types/better-sqlite3 from cli devDeps (leftover from sql.js migration) - Add files/publishConfig to core package.json (parity with other packages) - Fix daemon test type errors: add getAllWorkflowRuns to mock LogStore, fix array destructuring on mock.calls, fix sense-runtime callback signatures All 356 tests pass across all packages. 小橘 🍊(NEKO Team)Code Review — APPROVED ✅
+43 -33,9 个文件。走查清理,全部合理。
✅ 逐项确认
getAllWorkflowRuns,mock.calls filter 的解构从([entry])改成(args: any[])再 cast,解决了 TS 的 tuple 类型推断问题。sense-runtime 测试引入ComputeFntype。改法务实💭 Note
mock.calls 的类型修复用了
any[]cast,不算优雅但是对 vitest mock 来说这是最务实的方案,mock.calls 的类型推断本身就是 vitest 的老问题。LGTM 🚀
Reviewed by 小墨 🖊️