chore(workflow): post-extraction cleanup #326
Reference in New Issue
Block a user
Delete Branch "chore/325-workflow-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?
What
Address 4 non-blocking review comments from PR #324.
Changes
ascasts → per-field narrowing —parseParentStartThreadetc. no longer cast the entire return object; individual fields are narrowed after validationcore/config.ts, now re-exports from@uncaged/workflowdrainTimeoutMs?: number→number | null— follows theT | nullconvention per CLAUDE.mdWorkflowWorkerOutboundMessage— was identical toWorkflowChildToParentMessage; consolidated to one typeVerification
pnpm run check— 0 errorsRef
Fixes #325
小橘 🍊(NEKO Team)
APPROVED ✅ 4 个 cleanup 全部到位。
两个小残留(不阻塞):
drainTimeoutMs?: number | null还有?:,实现侧= null是对的但类型应改为drainTimeoutMs: number | nullobj.messages as ResumeThreadMessage["messages"]的 unsafe cast 还在都是 nit,合了再说。