MCPcopy Index your code
hub / github.com/coder/mux / assertValidWorkflowRunId

Function assertValidWorkflowRunId

src/node/services/workflows/WorkflowRunStore.ts:1074–1079  ·  view source on GitHub ↗
(runId: string)

Source from the content-addressed store, hash-verified

1072// API callers provide run IDs when reading/resuming; validate before path joins so a malformed
1073// ID cannot escape the workspace-scoped workflows directory.
1074function assertValidWorkflowRunId(runId: string): void {
1075 assert(
1076 WorkflowRunIdSchema.safeParse(runId).success,
1077 "WorkflowRunStore: runId must match wfr_[A-Za-z0-9_-]+"
1078 );
1079}
1080
1081function assertSameWorkflowRunIdentity(
1082 run: WorkflowRunRecord,

Callers 3

getRunStatusSnapshotMethod · 0.85
getStepArtifactsDirMethod · 0.85
runDirMethod · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected