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

Function resolveLabel

src/utils/responses/next-step-formatting.ts:12–18  ·  view source on GitHub ↗
(step: NextStep)

Source from the content-addressed store, hash-verified

10const SHELL_SAFE_UNQUOTED_ARG = /^[A-Za-z0-9_@%+=:,./~-]+$/;
11
12function resolveLabel(step: NextStep): string {
13 const label = step.label?.trim();
14 if (label) return label;
15 if (step.tool) return step.tool;
16 if (step.cliTool) return step.cliTool;
17 return 'Next action';
18}
19
20function formatCliArg(value: string): string {
21 return SHELL_SAFE_UNQUOTED_ARG.test(value) && !value.startsWith('-')

Callers 3

formatNextStepForCliFunction · 0.85
formatNextStepForMcpFunction · 0.85
formatNextStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected