fix: IPC trigger try/catch + test import cleanup #32

Merged
xiaomo merged 1 commits from fix/phase4-followup into main 2026-04-22 14:16:11 +00:00

1 Commits

Author SHA1 Message Date
xiaoju 362dc94582 fix: add try/catch to IPC trigger handler & import real buildWorkflowTemplate in test
- 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>
2026-04-22 14:15:19 +00:00