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

Function buildRuntimeHints

src/daemon/handlers/session-runtime.ts:89–100  ·  view source on GitHub ↗
(
  flags: CommandFlags | undefined,
  platform?: RuntimePlatform,
)

Source from the content-addressed store, hash-verified

87}
88
89export function buildRuntimeHints(
90 flags: CommandFlags | undefined,
91 platform?: RuntimePlatform,
92): SessionRuntimeHints {
93 return {
94 platform,
95 metroHost: trimRuntimeValue(flags?.metroHost),
96 metroPort: validateRuntimePort(flags?.metroPort),
97 bundleUrl: trimRuntimeValue(flags?.bundleUrl),
98 launchUrl: trimRuntimeValue(flags?.launchUrl),
99 };
100}
101
102export function mergeRuntimeHints(
103 current: SessionRuntimeHints | undefined,

Callers 1

setRuntimeCommandFunction · 0.90

Calls 2

trimRuntimeValueFunction · 0.90
validateRuntimePortFunction · 0.85

Tested by

no test coverage detected