chore: add pre-push hook to run tests before push #92
Reference in New Issue
Block a user
Delete Branch "chore/add-pre-push-hook"
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 husky pre-push hook that runs
pnpm -r testbefore every push.Why
Prevent broken tests from reaching the remote — just got bitten by 12 test failures after the type-safety refactor.
Changes
preparescriptpnpm -r testRef
Follows up on PR #91
Adds husky with a pre-push hook that runs `pnpm -r test` to catch test failures before they reach the remote. 小橘 🍊(NEKO Team)小橘 🍊(NEKO Team)- Remove duplicate 'prepare' key in package.json - Allow default exports in rslib.config.ts - Relax noExplicitAny and noNonNullAssertion in test files - Auto-fix 17 files (imports, formatting) 小橘 🍊(NEKO Team)Extract helpers to bring all functions below biome's complexity threshold (15): - store/log-store.ts: extract recordToRoundMessage() from parseRoundPayload() - cli/commands/workflow.ts: extract buildTruncatedSingleRound() from buildThreadCommandOutput() - daemon/workflow-worker.ts: extract validateRoleResult(), buildInitialLastSignal(), initChain(), executeRole() from runThread() 小橘 🍊(NEKO Team)LGTM ✅ 三合一 PR:husky pre-push 防漏、biome lint 清理(测试文件合理放宽规则)、workflow-worker/log-store 复杂度拆分。runThread 拆出的四个函数职责清晰,buildTruncatedSingleRound 和 recordToRoundMessage 也是好的提取。纯重构无行为变更,缩进修复 maxRounds 那批尤其该修。