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

Function isWorkflowRunTaskId

src/node/services/tools/taskId.ts:15–17  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

13 * string inputs keep their type instead of collapsing to `never`.
14 */
15export function isWorkflowRunTaskId(value: unknown): value is `wfr_${string}` {
16 return typeof value === "string" && value.startsWith(WORKFLOW_RUN_TASK_ID_PREFIX);
17}
18
19export function toBashTaskId(processId: string): string {
20 assert(typeof processId === "string", "toBashTaskId: processId must be a string");

Callers 4

createTaskTerminateToolFunction · 0.90
createWorkflowResumeToolFunction · 0.90
createTaskAwaitToolFunction · 0.90
awaitOneFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected