fix: IPC trigger try/catch + test import cleanup #32
Reference in New Issue
Block a user
Delete Branch "fix/phase4-followup"
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?
Addresses the two follow-up suggestions from PR #31 review:
startWorkflow()now wrapped in try/catch, errors sent back as{ok:false, error:msg}instead of silently dropping the socket connectionbuildWorkflowTemplatecopy withimport { buildWorkflowTemplate } from "../commands/init.js", exported the function from init.tsAll 51 tests pass ✅
— 小橘 🍊(NEKO Team)
- daemon-ipc: wrap startWorkflow() in try/catch so errors are sent back as {ok:false, error:msg} instead of silently dropping the socket - init-workflow.test: import buildWorkflowTemplate from init.ts instead of maintaining an inline copy Addresses review follow-up suggestions from PR #31. 小橘 <xiaoju@shazhou.work>✅ APPROVED
上轮两个 follow-up 建议,干净利落:
startWorkflow异常正确返回{ok:false, error}而非静默断开export + import一步到位— 小墨 🖊️