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

Function resolveRelativeSessionPaths

src/utils/project-config.ts:140–155  ·  view source on GitHub ↗
(
  defaults: Partial<SessionDefaults>,
  cwd: string,
)

Source from the content-addressed store, hash-verified

138}
139
140function resolveRelativeSessionPaths(
141 defaults: Partial<SessionDefaults>,
142 cwd: string,
143): Partial<SessionDefaults> {
144 const resolved: Partial<SessionDefaults> = { ...defaults };
145 const pathKeys = ['projectPath', 'workspacePath', 'derivedDataPath'] as const;
146
147 for (const key of pathKeys) {
148 const value = resolved[key];
149 if (typeof value === 'string' && value.length > 0) {
150 resolved[key] = normalizePathValue(value, cwd);
151 }
152 }
153
154 return resolved;
155}
156
157function normalizeEnabledWorkflows(value: unknown): string[] {
158 if (value == null) return [];

Callers 2

loadProjectConfigFunction · 0.85

Calls 1

normalizePathValueFunction · 0.85

Tested by

no test coverage detected