(runId: string)
| 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. |
| 1074 | function assertValidWorkflowRunId(runId: string): void { |
| 1075 | assert( |
| 1076 | WorkflowRunIdSchema.safeParse(runId).success, |
| 1077 | "WorkflowRunStore: runId must match wfr_[A-Za-z0-9_-]+" |
| 1078 | ); |
| 1079 | } |
| 1080 | |
| 1081 | function assertSameWorkflowRunIdentity( |
| 1082 | run: WorkflowRunRecord, |
no test coverage detected