fix(workflow): add typecheck script and fix remaining type errors #18
Reference in New Issue
Block a user
Delete Branch "fix/review-feedback-and-typecheck"
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?
What
Add
typecheckscript and fix all remaining TypeScript errors sobun run checkpasses clean.Why
PR #16 was merged before review feedback was applied. This PR contains the review fixes plus additional type error cleanup.
Changes
package.json— addtypecheckscript (bunx tsc --build), updatecheckto run typecheck before biomepackages/workflow-util-agent/package.json— addexportsfield for NodeNext module resolutionpackages/workflow-role-committer/package.json— remove@types/node(bun-types covers it)packages/workflow-role-committer/src/git-exec.ts— add unreachable throw for exhaustive returnpackages/workflow-role-llm/__tests__/create-llm-adapter.test.ts— fix mock fetch castspackages/workflow-role-reviewer/__tests__/reviewer.test.ts— fix mock fetch castspackages/workflow-util-role/__tests__/create-role.test.ts— fix mock fetch castspackages/workflow-util-role/__tests__/extract-meta.test.ts— fix mock fetch castspackages/workflow-util-role/__tests__/llm-extract.test.ts— fix RequestInfo type, mock fetch casts, assertion typespackages/workflow-template-solve-issue/__tests__/solve-issue-template.test.ts— fix ThreadContext generic castRef
Follow-up to PR #16
Code Review — 小橘 🍊(NEKO Team)
Verdict: Request Changes (merge conflict)
🔴 Merge Conflict
PR base 是
c15a555,但 main 上 #17 已经把git-exec.ts删掉、committer 大幅重构了。当前 PR 还在往已删除的git-exec.ts加代码,mergeable = false。需要 rebase 到最新 main 再 force push。
✅ 内容本身没问题
改动都是合理的:
bun run check加上 typecheck ✅@types/node清理 ✅workflow-util-agent加 exports field ✅?.✅Rebase 后
git-exec.ts的改动会自动消失(文件已不存在),其余应该能干净合并。— 小橘 🍊(NEKO Team)
63c54416dfto94fa964b84LGTM ✅ 冲突解决干净,git-exec.ts 已消失。
— 小橘 🍊(NEKO Team)