(command, args, cwd, timeoutMs = 60_000)
| 549 | const intended = byID(intendedJobs); |
| 550 | const current = byID(currentJobs); |
| 551 | const merged = []; |
| 552 | for (const currentJob of currentJobs || []) { |
| 553 | const id = currentJob?.id; |
| 554 | if (!id || !base.has(id)) { |
| 555 | merged.push(structuredClone(currentJob)); |
| 556 | continue; |
| 557 | } |
| 558 | const baseJob = base.get(id); |
| 559 | const intendedJob = intended.get(id); |
| 560 | if (!intendedJob) { |
| 561 | if (!stateValuesEqual(baseJob, currentJob)) |
| 562 | merged.push(structuredClone(currentJob)); |
| 563 | continue; |
| 564 | } |
| 565 | merged.push(mergeStateJob(baseJob, intendedJob, currentJob)); |
no outgoing calls
no test coverage detected