export function excludeContextEmptyTasks(tasks, state) {
    const ids = state.contextEmptyTaskIds;
    if (!ids || ids.length === 0)
        return { kept: tasks, skippedCount: 0 };
    const skip = new Set(ids);
    const kept = tasks.filter((t) => {
        const id = t.id;
        return id === undefined || !skip.has(id);
    });
    return { kept, skippedCount: tasks.length - kept.length };
}
