MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / isWorkflowEnabledForRuntime

Function isWorkflowEnabledForRuntime

src/visibility/exposure.ts:33–44  ·  view source on GitHub ↗
(
  workflow: WorkflowManifestEntry,
  ctx: PredicateContext,
)

Source from the content-addressed store, hash-verified

31 * Checks both availability flag and all predicates.
32 */
33export function isWorkflowEnabledForRuntime(
34 workflow: WorkflowManifestEntry,
35 ctx: PredicateContext,
36): boolean {
37 // Check availability flag first
38 if (!isWorkflowAvailableForRuntime(workflow, ctx.runtime)) {
39 return false;
40 }
41
42 // Then check predicates
43 return evalPredicates(workflow.predicates, ctx);
44}
45
46/**
47 * Check if a tool is available for the current runtime.

Callers 8

buildToolListFunction · 0.90
getWorkflowOptionsFunction · 0.90
exposure.test.tsFile · 0.90
isToolInWorkflowExposedFunction · 0.85
filterEnabledWorkflowsFunction · 0.85
getAutoIncludeWorkflowsFunction · 0.85

Calls 2

evalPredicatesFunction · 0.90

Tested by

no test coverage detected