(req: DaemonRequest)
| 167 | } |
| 168 | |
| 169 | function 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 | |
| 179 | export function prepareLockedRequestScope(params: { |
| 180 | scope: RequestExecutionScope; |
no test coverage detected