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

Function normalizeNextSteps

src/runtime/tool-invoker.ts:152–174  ·  view source on GitHub ↗
(
  steps: NextStep[],
  catalog: ToolCatalog,
  preferredWorkflow: string,
)

Source from the content-addressed store, hash-verified

150}
151
152function normalizeNextSteps(
153 steps: NextStep[],
154 catalog: ToolCatalog,
155 preferredWorkflow: string,
156): NextStep[] {
157 return steps.map((step) => {
158 if (!step.tool) {
159 return step;
160 }
161
162 const target = getNextStepTarget({ catalog, mcpName: step.tool, preferredWorkflow });
163 if (!target) {
164 return step;
165 }
166
167 return {
168 ...step,
169 tool: target.mcpName,
170 workflow: target.workflow,
171 cliTool: target.cliName,
172 };
173 });
174}
175
176function isStructuredXcodebuildFailureSession(session: RenderSession): boolean {
177 const structuredOutput = session.getStructuredOutput?.();

Callers 1

postProcessSessionFunction · 0.85

Calls 1

getNextStepTargetFunction · 0.85

Tested by

no test coverage detected