MCPcopy Create free account
hub / github.com/callstack/agent-device / shouldPrepareRuntime

Function shouldPrepareRuntime

src/cli/commands/connection-runtime.ts:238–246  ·  view source on GitHub ↗
(
  forceRuntimePrepare: boolean | undefined,
  runtime: SessionRuntimeHints | undefined,
  platform: CliFlags['platform'],
)

Source from the content-addressed store, hash-verified

236}
237
238function shouldPrepareRuntime(
239 forceRuntimePrepare: boolean | undefined,
240 runtime: SessionRuntimeHints | undefined,
241 platform: CliFlags['platform'],
242): boolean {
243 return (
244 forceRuntimePrepare === true || !runtime || !isRuntimeCompatibleWithPlatform(runtime, platform)
245 );
246}
247
248async function persistMaterializedConnection(options: {
249 changed: boolean;

Callers 1

prepareRuntimeForCommandFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…