MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / isWorkflowAvailableForRuntime

Function isWorkflowAvailableForRuntime

src/visibility/exposure.ts:19–27  ·  view source on GitHub ↗
(
  workflow: WorkflowManifestEntry,
  runtime: RuntimeKind,
)

Source from the content-addressed store, hash-verified

17 * This checks the availability flag only, not predicates.
18 */
19export function isWorkflowAvailableForRuntime(
20 workflow: WorkflowManifestEntry,
21 runtime: RuntimeKind,
22): boolean {
23 if (runtime === 'daemon') {
24 return true;
25 }
26 return workflow.availability[runtime];
27}
28
29/**
30 * Check if a workflow is enabled (visible) for the current runtime context.

Callers 3

exposure.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected