(stepId: string, primitiveName: string)
| 3 | import assert from "@/common/utils/assert"; |
| 4 | |
| 5 | export function assertWorkflowStepId(stepId: string, primitiveName: string): void { |
| 6 | assert( |
| 7 | stepId.trim().length > 0, |
| 8 | `${primitiveName} replay boundary requires a stable id so completed workflow work can be reused` |
| 9 | ); |
| 10 | } |
| 11 | |
| 12 | export function hashWorkflowStepInput(stepId: string, input: unknown): string { |
| 13 | assertWorkflowStepId(stepId, "workflow step"); |
no test coverage detected