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

Function applyRequestCommandDefaults

src/daemon/request-execution-scope.ts:169–177  ·  view source on GitHub ↗
(req: DaemonRequest)

Source from the content-addressed store, hash-verified

167}
168
169function applyRequestCommandDefaults(req: DaemonRequest): DaemonRequest {
170 const flags = { ...(req.flags ?? {}) };
171 const changed = applyCommandDefaults(req.command, flags);
172 if (!changed) return req;
173 return {
174 ...req,
175 flags: flags as CommandFlags,
176 };
177}
178
179export function prepareLockedRequestScope(params: {
180 scope: RequestExecutionScope;

Callers 1

Calls 1

applyCommandDefaultsFunction · 0.90

Tested by

no test coverage detected