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

Function getRuntimeInstance

src/utils/runtime-instance.ts:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25export function getRuntimeInstance(): RuntimeInstance {
26 const workspaceKey = configuredWorkspaceKey;
27 if (!workspaceKey) {
28 throw new Error('Runtime workspace key has not been configured');
29 }
30
31 runtimeInstance ??= {
32 instanceId: randomUUID(),
33 pid: process.pid,
34 workspaceKey,
35 };
36 return runtimeInstance;
37}
38
39export function getRuntimeInstanceIfConfigured(): RuntimeInstance | null {
40 if (runtimeInstance) {

Callers 8

resolveWorkspaceKeyFunction · 0.90
resolveWritableLogDirFunction · 0.90
resolveSimulatorLogDirFunction · 0.90
createArtifactPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected