(items: WorkItem[])
| 2 | import { partitionWork, toWorkItems, type WorkItem } from '../src/orchestration/partition.js'; |
| 3 | |
| 4 | function ids(items: WorkItem[]): string[] { |
| 5 | return items.map((i) => i.id); |
| 6 | } |
| 7 | /** All item ids across every partition, sorted — for "nothing lost/duplicated" checks. */ |
| 8 | function allIds(parts: ReturnType<typeof partitionWork>): string[] { |
| 9 | return parts.flatMap((p) => ids(p.items)).sort(); |
no outgoing calls
no test coverage detected