MCPcopy Index your code
hub / github.com/callstack/agent-device / getSwiftCacheRoot

Function getSwiftCacheRoot

src/utils/swift-cache.ts:72–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72function getSwiftCacheRoot(): string {
73 const configured = process.env.AGENT_DEVICE_SWIFT_CACHE_DIR?.trim();
74 if (configured) {
75 return path.resolve(configured);
76 }
77 return path.join(os.tmpdir(), 'agent-device-swift-cache');
78}
79
80async function ensureSwiftExecutable(params: {
81 sourcePath: string;

Callers 3

buildSwiftToolEnvFunction · 0.85
compileSwiftSourceFileFunction · 0.85
compileSwiftSourceTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected