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

Function resolveFreshSessionBindingRequest

src/daemon/request-binding.ts:52–61  ·  view source on GitHub ↗
(req: DaemonRequest)

Source from the content-addressed store, hash-verified

50}
51
52function resolveFreshSessionBindingRequest(req: DaemonRequest): DaemonRequest {
53 if (!req.meta?.lockPolicy) return req;
54 try {
55 return applyRequestLockPolicy(req);
56 } catch {
57 // The request will be rejected during locked binding preparation. Keep lock
58 // selection best-effort so invalid selectors do not block unrelated work.
59 return req;
60 }
61}
62
63function shouldResolveFreshSessionDeviceLock(req: DaemonRequest): boolean {
64 return req.command === 'open' || hasExplicitDeviceSelector(req.flags);

Callers 1

Calls 1

applyRequestLockPolicyFunction · 0.90

Tested by

no test coverage detected