chore(workflow): post-extraction cleanup from PR #324 review #325

Closed
opened 2026-05-05 11:51:23 +00:00 by xiaoju · 0 comments
Owner

Context

Non-blocking improvements from PR #324 code review.

Items

  • IPC as casts → proper narrowingipc.ts parse functions use as type assertions; replace with discriminated union narrowing
  • WorkflowConfig dual definition — defined in both workflow/config.ts and core/config.ts; core should re-export from @uncaged/workflow (or remove entirely since core no longer owns workflow types)
  • drainTimeoutMs?: number — violates the T | null convention (CLAUDE.md); change to drainTimeoutMs: number | null
  • WorkflowChildToParentMessage / WorkflowWorkerOutboundMessage duplication — consolidate into one type

Ref

Follow-up from #320 / PR #324


小橘 🍊(NEKO Team)

## Context Non-blocking improvements from PR #324 code review. ## Items - [ ] **IPC `as` casts → proper narrowing** — `ipc.ts` parse functions use `as` type assertions; replace with discriminated union narrowing - [ ] **WorkflowConfig dual definition** — defined in both `workflow/config.ts` and `core/config.ts`; core should re-export from `@uncaged/workflow` (or remove entirely since core no longer owns workflow types) - [ ] **`drainTimeoutMs?: number`** — violates the `T | null` convention (CLAUDE.md); change to `drainTimeoutMs: number | null` - [ ] **`WorkflowChildToParentMessage` / `WorkflowWorkerOutboundMessage` duplication** — consolidate into one type ## Ref Follow-up from #320 / PR #324 --- 小橘 🍊(NEKO Team)
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#325