MCPcopy
hub / github.com/coder/mux / assertWorkflowStepId

Function assertWorkflowStepId

src/node/services/workflows/workflowReplayKey.ts:5–10  ·  view source on GitHub ↗
(stepId: string, primitiveName: string)

Source from the content-addressed store, hash-verified

3import assert from "@/common/utils/assert";
4
5export 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
12export function hashWorkflowStepInput(stepId: string, input: unknown): string {
13 assertWorkflowStepId(stepId, "workflow step");

Callers 7

runApplyPatchStepMethod · 0.90
runNestedWorkflowStepMethod · 0.90
runAgentStepMethod · 0.90
hashWorkflowStepInputFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected