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

Function shouldUseHostMacFastPath

src/core/platform-inventory.ts:113–121  ·  view source on GitHub ↗
(selector: {
  platform?: PlatformSelector;
  target?: DeviceTarget;
})

Source from the content-addressed store, hash-verified

111// Exported so the Apple platform-plugin's `discoverDevices` reuses the SAME
112// host-mac fast-path predicate instead of carrying a divergent copy.
113export function shouldUseHostMacFastPath(selector: {
114 platform?: PlatformSelector;
115 target?: DeviceTarget;
116}): boolean {
117 return (
118 selector.platform === 'macos' ||
119 (selector.platform === 'apple' && selector.target === 'desktop')
120 );
121}

Callers 2

plugin.tsFile · 0.90
listLocalDeviceInventoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected